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

5900 lines
292 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 = {
id: number | null
typeId: number | null
stageId: number | null
statusId: number | null
taxCodeId: number | null
probability: number | null
companyId: number | null
contactId: number | null
siteId: number | null
locationId: number | null
departmentId: number | null
productSequence: number | null
}
export type OpportunitySumAggregateOutputType = {
id: number | null
typeId: number | null
stageId: number | null
statusId: number | null
taxCodeId: number | null
probability: number | null
companyId: number | null
contactId: number | null
siteId: number | null
locationId: number | null
departmentId: number | null
productSequence: number[]
}
export type OpportunityMinAggregateOutputType = {
id: number | null
uid: string | null
name: string | null
notes: string | null
oppNarrative: string | null
typeId: number | null
stageId: number | null
statusId: number | null
taxCodeId: number | null
interest: $Enums.OpportunityInterest | null
probability: number | null
source: string | null
primarySalesRepId: string | null
secondarySalesRepId: string | null
companyId: number | null
contactId: number | null
siteId: number | null
customerPO: string | null
locationId: number | null
departmentId: number | null
expectedCloseDate: Date | null
pipelineChangeDate: Date | null
dateBecameLead: Date | null
closedDate: Date | null
closedFlag: boolean | null
closedById: string | null
updatedBy: string | null
eneteredBy: string | null
createdAt: Date | null
updatedAt: Date | null
}
export type OpportunityMaxAggregateOutputType = {
id: number | null
uid: string | null
name: string | null
notes: string | null
oppNarrative: string | null
typeId: number | null
stageId: number | null
statusId: number | null
taxCodeId: number | null
interest: $Enums.OpportunityInterest | null
probability: number | null
source: string | null
primarySalesRepId: string | null
secondarySalesRepId: string | null
companyId: number | null
contactId: number | null
siteId: number | null
customerPO: string | null
locationId: number | null
departmentId: number | null
expectedCloseDate: Date | null
pipelineChangeDate: Date | null
dateBecameLead: Date | null
closedDate: Date | null
closedFlag: boolean | null
closedById: string | null
updatedBy: string | null
eneteredBy: string | null
createdAt: Date | null
updatedAt: Date | null
}
export type OpportunityCountAggregateOutputType = {
id: number
uid: number
name: number
notes: number
oppNarrative: number
typeId: number
stageId: number
statusId: number
taxCodeId: number
interest: number
probability: number
source: number
primarySalesRepId: number
secondarySalesRepId: number
companyId: number
contactId: number
siteId: number
customerPO: number
locationId: number
departmentId: number
expectedCloseDate: number
pipelineChangeDate: number
dateBecameLead: number
closedDate: number
closedFlag: number
closedById: number
productSequence: number
updatedBy: number
eneteredBy: number
createdAt: number
updatedAt: number
_all: number
}
export type OpportunityAvgAggregateInputType = {
id?: true
typeId?: true
stageId?: true
statusId?: true
taxCodeId?: true
probability?: true
companyId?: true
contactId?: true
siteId?: true
locationId?: true
departmentId?: true
productSequence?: true
}
export type OpportunitySumAggregateInputType = {
id?: true
typeId?: true
stageId?: true
statusId?: true
taxCodeId?: true
probability?: true
companyId?: true
contactId?: true
siteId?: true
locationId?: true
departmentId?: true
productSequence?: true
}
export type OpportunityMinAggregateInputType = {
id?: true
uid?: true
name?: true
notes?: true
oppNarrative?: true
typeId?: true
stageId?: true
statusId?: true
taxCodeId?: true
interest?: true
probability?: true
source?: true
primarySalesRepId?: true
secondarySalesRepId?: true
companyId?: true
contactId?: true
siteId?: true
customerPO?: true
locationId?: true
departmentId?: true
expectedCloseDate?: true
pipelineChangeDate?: true
dateBecameLead?: true
closedDate?: true
closedFlag?: true
closedById?: true
updatedBy?: true
eneteredBy?: true
createdAt?: true
updatedAt?: true
}
export type OpportunityMaxAggregateInputType = {
id?: true
uid?: true
name?: true
notes?: true
oppNarrative?: true
typeId?: true
stageId?: true
statusId?: true
taxCodeId?: true
interest?: true
probability?: true
source?: true
primarySalesRepId?: true
secondarySalesRepId?: true
companyId?: true
contactId?: true
siteId?: true
customerPO?: true
locationId?: true
departmentId?: true
expectedCloseDate?: true
pipelineChangeDate?: true
dateBecameLead?: true
closedDate?: true
closedFlag?: true
closedById?: true
updatedBy?: true
eneteredBy?: true
createdAt?: true
updatedAt?: true
}
export type OpportunityCountAggregateInputType = {
id?: true
uid?: true
name?: true
notes?: true
oppNarrative?: true
typeId?: true
stageId?: true
statusId?: true
taxCodeId?: true
interest?: true
probability?: true
source?: true
primarySalesRepId?: true
secondarySalesRepId?: true
companyId?: true
contactId?: true
siteId?: true
customerPO?: true
locationId?: true
departmentId?: true
expectedCloseDate?: true
pipelineChangeDate?: true
dateBecameLead?: true
closedDate?: true
closedFlag?: true
closedById?: true
productSequence?: true
updatedBy?: true
eneteredBy?: 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: number
uid: string
name: string
notes: string | null
oppNarrative: string | null
typeId: number | null
stageId: number | null
statusId: number | null
taxCodeId: number | null
interest: $Enums.OpportunityInterest | null
probability: number
source: string | null
primarySalesRepId: string | null
secondarySalesRepId: string | null
companyId: number | null
contactId: number | null
siteId: number | null
customerPO: string | null
locationId: number | null
departmentId: number | null
expectedCloseDate: Date | null
pipelineChangeDate: Date | null
dateBecameLead: Date | null
closedDate: Date | null
closedFlag: boolean
closedById: string | null
productSequence: number[]
updatedBy: string
eneteredBy: string
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.IntFilter<"Opportunity"> | number
uid?: Prisma.StringFilter<"Opportunity"> | string
name?: Prisma.StringFilter<"Opportunity"> | string
notes?: Prisma.StringNullableFilter<"Opportunity"> | string | null
oppNarrative?: Prisma.StringNullableFilter<"Opportunity"> | string | null
typeId?: Prisma.IntNullableFilter<"Opportunity"> | number | null
stageId?: Prisma.IntNullableFilter<"Opportunity"> | number | null
statusId?: Prisma.IntNullableFilter<"Opportunity"> | number | null
taxCodeId?: Prisma.IntNullableFilter<"Opportunity"> | number | null
interest?: Prisma.EnumOpportunityInterestNullableFilter<"Opportunity"> | $Enums.OpportunityInterest | null
probability?: Prisma.FloatFilter<"Opportunity"> | number
source?: Prisma.StringNullableFilter<"Opportunity"> | string | null
primarySalesRepId?: Prisma.StringNullableFilter<"Opportunity"> | string | null
secondarySalesRepId?: Prisma.StringNullableFilter<"Opportunity"> | string | null
companyId?: Prisma.IntNullableFilter<"Opportunity"> | number | null
contactId?: Prisma.IntNullableFilter<"Opportunity"> | number | null
siteId?: Prisma.IntNullableFilter<"Opportunity"> | number | null
customerPO?: Prisma.StringNullableFilter<"Opportunity"> | string | null
locationId?: Prisma.IntNullableFilter<"Opportunity"> | number | null
departmentId?: 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
closedById?: Prisma.StringNullableFilter<"Opportunity"> | string | null
productSequence?: Prisma.IntNullableListFilter<"Opportunity">
updatedBy?: Prisma.StringFilter<"Opportunity"> | string
eneteredBy?: Prisma.StringFilter<"Opportunity"> | string
createdAt?: Prisma.DateTimeFilter<"Opportunity"> | Date | string
updatedAt?: Prisma.DateTimeFilter<"Opportunity"> | Date | string
generatedQuotes?: Prisma.GeneratedQuotesListRelationFilter
type?: Prisma.XOR<Prisma.OpportunityTypeNullableScalarRelationFilter, Prisma.OpportunityTypeWhereInput> | null
stage?: Prisma.XOR<Prisma.OpportunityStageNullableScalarRelationFilter, Prisma.OpportunityStageWhereInput> | null
status?: Prisma.XOR<Prisma.OpportunityStatusNullableScalarRelationFilter, Prisma.OpportunityStatusWhereInput> | null
taxCode?: Prisma.XOR<Prisma.TaxCodeNullableScalarRelationFilter, Prisma.TaxCodeWhereInput> | null
primarySalesRep?: Prisma.XOR<Prisma.UserNullableScalarRelationFilter, Prisma.UserWhereInput> | null
secondarySalesRep?: Prisma.XOR<Prisma.UserNullableScalarRelationFilter, Prisma.UserWhereInput> | null
company?: Prisma.XOR<Prisma.CompanyNullableScalarRelationFilter, Prisma.CompanyWhereInput> | null
contact?: Prisma.XOR<Prisma.ContactNullableScalarRelationFilter, Prisma.ContactWhereInput> | null
site?: Prisma.XOR<Prisma.CompanyAddressNullableScalarRelationFilter, Prisma.CompanyAddressWhereInput> | null
location?: Prisma.XOR<Prisma.CorporateLocationNullableScalarRelationFilter, Prisma.CorporateLocationWhereInput> | null
department?: Prisma.XOR<Prisma.InternalDepartmentNullableScalarRelationFilter, Prisma.InternalDepartmentWhereInput> | null
products?: Prisma.ProductDataListRelationFilter
}
export type OpportunityOrderByWithRelationInput = {
id?: Prisma.SortOrder
uid?: Prisma.SortOrder
name?: Prisma.SortOrder
notes?: Prisma.SortOrderInput | Prisma.SortOrder
oppNarrative?: Prisma.SortOrderInput | Prisma.SortOrder
typeId?: Prisma.SortOrderInput | Prisma.SortOrder
stageId?: Prisma.SortOrderInput | Prisma.SortOrder
statusId?: Prisma.SortOrderInput | Prisma.SortOrder
taxCodeId?: Prisma.SortOrderInput | Prisma.SortOrder
interest?: Prisma.SortOrderInput | Prisma.SortOrder
probability?: Prisma.SortOrder
source?: Prisma.SortOrderInput | Prisma.SortOrder
primarySalesRepId?: Prisma.SortOrderInput | Prisma.SortOrder
secondarySalesRepId?: Prisma.SortOrderInput | Prisma.SortOrder
companyId?: Prisma.SortOrderInput | Prisma.SortOrder
contactId?: Prisma.SortOrderInput | Prisma.SortOrder
siteId?: Prisma.SortOrderInput | Prisma.SortOrder
customerPO?: Prisma.SortOrderInput | Prisma.SortOrder
locationId?: Prisma.SortOrderInput | Prisma.SortOrder
departmentId?: 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
closedById?: Prisma.SortOrderInput | Prisma.SortOrder
productSequence?: Prisma.SortOrder
updatedBy?: Prisma.SortOrder
eneteredBy?: Prisma.SortOrder
createdAt?: Prisma.SortOrder
updatedAt?: Prisma.SortOrder
generatedQuotes?: Prisma.GeneratedQuotesOrderByRelationAggregateInput
type?: Prisma.OpportunityTypeOrderByWithRelationInput
stage?: Prisma.OpportunityStageOrderByWithRelationInput
status?: Prisma.OpportunityStatusOrderByWithRelationInput
taxCode?: Prisma.TaxCodeOrderByWithRelationInput
primarySalesRep?: Prisma.UserOrderByWithRelationInput
secondarySalesRep?: Prisma.UserOrderByWithRelationInput
company?: Prisma.CompanyOrderByWithRelationInput
contact?: Prisma.ContactOrderByWithRelationInput
site?: Prisma.CompanyAddressOrderByWithRelationInput
location?: Prisma.CorporateLocationOrderByWithRelationInput
department?: Prisma.InternalDepartmentOrderByWithRelationInput
products?: Prisma.ProductDataOrderByRelationAggregateInput
}
export type OpportunityWhereUniqueInput = Prisma.AtLeast<{
id?: number
uid?: string
AND?: Prisma.OpportunityWhereInput | Prisma.OpportunityWhereInput[]
OR?: Prisma.OpportunityWhereInput[]
NOT?: Prisma.OpportunityWhereInput | Prisma.OpportunityWhereInput[]
name?: Prisma.StringFilter<"Opportunity"> | string
notes?: Prisma.StringNullableFilter<"Opportunity"> | string | null
oppNarrative?: Prisma.StringNullableFilter<"Opportunity"> | string | null
typeId?: Prisma.IntNullableFilter<"Opportunity"> | number | null
stageId?: Prisma.IntNullableFilter<"Opportunity"> | number | null
statusId?: Prisma.IntNullableFilter<"Opportunity"> | number | null
taxCodeId?: Prisma.IntNullableFilter<"Opportunity"> | number | null
interest?: Prisma.EnumOpportunityInterestNullableFilter<"Opportunity"> | $Enums.OpportunityInterest | null
probability?: Prisma.FloatFilter<"Opportunity"> | number
source?: Prisma.StringNullableFilter<"Opportunity"> | string | null
primarySalesRepId?: Prisma.StringNullableFilter<"Opportunity"> | string | null
secondarySalesRepId?: Prisma.StringNullableFilter<"Opportunity"> | string | null
companyId?: Prisma.IntNullableFilter<"Opportunity"> | number | null
contactId?: Prisma.IntNullableFilter<"Opportunity"> | number | null
siteId?: Prisma.IntNullableFilter<"Opportunity"> | number | null
customerPO?: Prisma.StringNullableFilter<"Opportunity"> | string | null
locationId?: Prisma.IntNullableFilter<"Opportunity"> | number | null
departmentId?: 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
closedById?: Prisma.StringNullableFilter<"Opportunity"> | string | null
productSequence?: Prisma.IntNullableListFilter<"Opportunity">
updatedBy?: Prisma.StringFilter<"Opportunity"> | string
eneteredBy?: Prisma.StringFilter<"Opportunity"> | string
createdAt?: Prisma.DateTimeFilter<"Opportunity"> | Date | string
updatedAt?: Prisma.DateTimeFilter<"Opportunity"> | Date | string
generatedQuotes?: Prisma.GeneratedQuotesListRelationFilter
type?: Prisma.XOR<Prisma.OpportunityTypeNullableScalarRelationFilter, Prisma.OpportunityTypeWhereInput> | null
stage?: Prisma.XOR<Prisma.OpportunityStageNullableScalarRelationFilter, Prisma.OpportunityStageWhereInput> | null
status?: Prisma.XOR<Prisma.OpportunityStatusNullableScalarRelationFilter, Prisma.OpportunityStatusWhereInput> | null
taxCode?: Prisma.XOR<Prisma.TaxCodeNullableScalarRelationFilter, Prisma.TaxCodeWhereInput> | null
primarySalesRep?: Prisma.XOR<Prisma.UserNullableScalarRelationFilter, Prisma.UserWhereInput> | null
secondarySalesRep?: Prisma.XOR<Prisma.UserNullableScalarRelationFilter, Prisma.UserWhereInput> | null
company?: Prisma.XOR<Prisma.CompanyNullableScalarRelationFilter, Prisma.CompanyWhereInput> | null
contact?: Prisma.XOR<Prisma.ContactNullableScalarRelationFilter, Prisma.ContactWhereInput> | null
site?: Prisma.XOR<Prisma.CompanyAddressNullableScalarRelationFilter, Prisma.CompanyAddressWhereInput> | null
location?: Prisma.XOR<Prisma.CorporateLocationNullableScalarRelationFilter, Prisma.CorporateLocationWhereInput> | null
department?: Prisma.XOR<Prisma.InternalDepartmentNullableScalarRelationFilter, Prisma.InternalDepartmentWhereInput> | null
products?: Prisma.ProductDataListRelationFilter
}, "uid" | "id">
export type OpportunityOrderByWithAggregationInput = {
id?: Prisma.SortOrder
uid?: Prisma.SortOrder
name?: Prisma.SortOrder
notes?: Prisma.SortOrderInput | Prisma.SortOrder
oppNarrative?: Prisma.SortOrderInput | Prisma.SortOrder
typeId?: Prisma.SortOrderInput | Prisma.SortOrder
stageId?: Prisma.SortOrderInput | Prisma.SortOrder
statusId?: Prisma.SortOrderInput | Prisma.SortOrder
taxCodeId?: Prisma.SortOrderInput | Prisma.SortOrder
interest?: Prisma.SortOrderInput | Prisma.SortOrder
probability?: Prisma.SortOrder
source?: Prisma.SortOrderInput | Prisma.SortOrder
primarySalesRepId?: Prisma.SortOrderInput | Prisma.SortOrder
secondarySalesRepId?: Prisma.SortOrderInput | Prisma.SortOrder
companyId?: Prisma.SortOrderInput | Prisma.SortOrder
contactId?: Prisma.SortOrderInput | Prisma.SortOrder
siteId?: Prisma.SortOrderInput | Prisma.SortOrder
customerPO?: Prisma.SortOrderInput | Prisma.SortOrder
locationId?: Prisma.SortOrderInput | Prisma.SortOrder
departmentId?: 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
closedById?: Prisma.SortOrderInput | Prisma.SortOrder
productSequence?: Prisma.SortOrder
updatedBy?: Prisma.SortOrder
eneteredBy?: 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.IntWithAggregatesFilter<"Opportunity"> | number
uid?: Prisma.StringWithAggregatesFilter<"Opportunity"> | string
name?: Prisma.StringWithAggregatesFilter<"Opportunity"> | string
notes?: Prisma.StringNullableWithAggregatesFilter<"Opportunity"> | string | null
oppNarrative?: Prisma.StringNullableWithAggregatesFilter<"Opportunity"> | string | null
typeId?: Prisma.IntNullableWithAggregatesFilter<"Opportunity"> | number | null
stageId?: Prisma.IntNullableWithAggregatesFilter<"Opportunity"> | number | null
statusId?: Prisma.IntNullableWithAggregatesFilter<"Opportunity"> | number | null
taxCodeId?: Prisma.IntNullableWithAggregatesFilter<"Opportunity"> | number | null
interest?: Prisma.EnumOpportunityInterestNullableWithAggregatesFilter<"Opportunity"> | $Enums.OpportunityInterest | null
probability?: Prisma.FloatWithAggregatesFilter<"Opportunity"> | number
source?: Prisma.StringNullableWithAggregatesFilter<"Opportunity"> | string | null
primarySalesRepId?: Prisma.StringNullableWithAggregatesFilter<"Opportunity"> | string | null
secondarySalesRepId?: Prisma.StringNullableWithAggregatesFilter<"Opportunity"> | string | null
companyId?: Prisma.IntNullableWithAggregatesFilter<"Opportunity"> | number | null
contactId?: Prisma.IntNullableWithAggregatesFilter<"Opportunity"> | number | null
siteId?: Prisma.IntNullableWithAggregatesFilter<"Opportunity"> | number | null
customerPO?: Prisma.StringNullableWithAggregatesFilter<"Opportunity"> | string | null
locationId?: Prisma.IntNullableWithAggregatesFilter<"Opportunity"> | number | null
departmentId?: 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
closedById?: Prisma.StringNullableWithAggregatesFilter<"Opportunity"> | string | null
productSequence?: Prisma.IntNullableListFilter<"Opportunity">
updatedBy?: Prisma.StringWithAggregatesFilter<"Opportunity"> | string
eneteredBy?: Prisma.StringWithAggregatesFilter<"Opportunity"> | string
createdAt?: Prisma.DateTimeWithAggregatesFilter<"Opportunity"> | Date | string
updatedAt?: Prisma.DateTimeWithAggregatesFilter<"Opportunity"> | Date | string
}
export type OpportunityCreateInput = {
id: number
uid?: string
name: string
notes?: string | null
oppNarrative?: string | null
interest?: $Enums.OpportunityInterest | null
probability?: number
source?: string | null
customerPO?: string | null
expectedCloseDate?: Date | string | null
pipelineChangeDate?: Date | string | null
dateBecameLead?: Date | string | null
closedDate?: Date | string | null
closedFlag?: boolean
closedById?: string | null
productSequence?: Prisma.OpportunityCreateproductSequenceInput | number[]
updatedBy: string
eneteredBy: string
createdAt?: Date | string
updatedAt?: Date | string
generatedQuotes?: Prisma.GeneratedQuotesCreateNestedManyWithoutOpportunityInput
type?: Prisma.OpportunityTypeCreateNestedOneWithoutOpportunitiesInput
stage?: Prisma.OpportunityStageCreateNestedOneWithoutOpportunitiesInput
status?: Prisma.OpportunityStatusCreateNestedOneWithoutOpportunitiesInput
taxCode?: Prisma.TaxCodeCreateNestedOneWithoutOpportunitiesInput
primarySalesRep?: Prisma.UserCreateNestedOneWithoutOpportunitiesInput
secondarySalesRep?: Prisma.UserCreateNestedOneWithoutOpportunitiesSecondaryInput
company?: Prisma.CompanyCreateNestedOneWithoutOpportunitiesInput
contact?: Prisma.ContactCreateNestedOneWithoutOpportunitiesInput
site?: Prisma.CompanyAddressCreateNestedOneWithoutOppportunitiesInput
location?: Prisma.CorporateLocationCreateNestedOneWithoutOpportunitiesInput
department?: Prisma.InternalDepartmentCreateNestedOneWithoutOpportunitiesInput
products?: Prisma.ProductDataCreateNestedManyWithoutOpportunityInput
}
export type OpportunityUncheckedCreateInput = {
id: number
uid?: string
name: string
notes?: string | null
oppNarrative?: string | null
typeId?: number | null
stageId?: number | null
statusId?: number | null
taxCodeId?: number | null
interest?: $Enums.OpportunityInterest | null
probability?: number
source?: string | null
primarySalesRepId?: string | null
secondarySalesRepId?: string | null
companyId?: number | null
contactId?: number | null
siteId?: number | null
customerPO?: string | null
locationId?: number | null
departmentId?: number | null
expectedCloseDate?: Date | string | null
pipelineChangeDate?: Date | string | null
dateBecameLead?: Date | string | null
closedDate?: Date | string | null
closedFlag?: boolean
closedById?: string | null
productSequence?: Prisma.OpportunityCreateproductSequenceInput | number[]
updatedBy: string
eneteredBy: string
createdAt?: Date | string
updatedAt?: Date | string
generatedQuotes?: Prisma.GeneratedQuotesUncheckedCreateNestedManyWithoutOpportunityInput
products?: Prisma.ProductDataUncheckedCreateNestedManyWithoutOpportunityInput
}
export type OpportunityUpdateInput = {
id?: Prisma.IntFieldUpdateOperationsInput | number
uid?: Prisma.StringFieldUpdateOperationsInput | string
name?: Prisma.StringFieldUpdateOperationsInput | string
notes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
oppNarrative?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
interest?: Prisma.NullableEnumOpportunityInterestFieldUpdateOperationsInput | $Enums.OpportunityInterest | null
probability?: Prisma.FloatFieldUpdateOperationsInput | number
source?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
customerPO?: Prisma.NullableStringFieldUpdateOperationsInput | string | 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
closedById?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
productSequence?: Prisma.OpportunityUpdateproductSequenceInput | number[]
updatedBy?: Prisma.StringFieldUpdateOperationsInput | string
eneteredBy?: Prisma.StringFieldUpdateOperationsInput | string
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
generatedQuotes?: Prisma.GeneratedQuotesUpdateManyWithoutOpportunityNestedInput
type?: Prisma.OpportunityTypeUpdateOneWithoutOpportunitiesNestedInput
stage?: Prisma.OpportunityStageUpdateOneWithoutOpportunitiesNestedInput
status?: Prisma.OpportunityStatusUpdateOneWithoutOpportunitiesNestedInput
taxCode?: Prisma.TaxCodeUpdateOneWithoutOpportunitiesNestedInput
primarySalesRep?: Prisma.UserUpdateOneWithoutOpportunitiesNestedInput
secondarySalesRep?: Prisma.UserUpdateOneWithoutOpportunitiesSecondaryNestedInput
company?: Prisma.CompanyUpdateOneWithoutOpportunitiesNestedInput
contact?: Prisma.ContactUpdateOneWithoutOpportunitiesNestedInput
site?: Prisma.CompanyAddressUpdateOneWithoutOppportunitiesNestedInput
location?: Prisma.CorporateLocationUpdateOneWithoutOpportunitiesNestedInput
department?: Prisma.InternalDepartmentUpdateOneWithoutOpportunitiesNestedInput
products?: Prisma.ProductDataUpdateManyWithoutOpportunityNestedInput
}
export type OpportunityUncheckedUpdateInput = {
id?: Prisma.IntFieldUpdateOperationsInput | number
uid?: Prisma.StringFieldUpdateOperationsInput | string
name?: Prisma.StringFieldUpdateOperationsInput | string
notes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
oppNarrative?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
typeId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
stageId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
statusId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
taxCodeId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
interest?: Prisma.NullableEnumOpportunityInterestFieldUpdateOperationsInput | $Enums.OpportunityInterest | null
probability?: Prisma.FloatFieldUpdateOperationsInput | number
source?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
primarySalesRepId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
secondarySalesRepId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
companyId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
contactId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
siteId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
customerPO?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
locationId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
departmentId?: 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
closedById?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
productSequence?: Prisma.OpportunityUpdateproductSequenceInput | number[]
updatedBy?: Prisma.StringFieldUpdateOperationsInput | string
eneteredBy?: Prisma.StringFieldUpdateOperationsInput | string
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
generatedQuotes?: Prisma.GeneratedQuotesUncheckedUpdateManyWithoutOpportunityNestedInput
products?: Prisma.ProductDataUncheckedUpdateManyWithoutOpportunityNestedInput
}
export type OpportunityCreateManyInput = {
id: number
uid?: string
name: string
notes?: string | null
oppNarrative?: string | null
typeId?: number | null
stageId?: number | null
statusId?: number | null
taxCodeId?: number | null
interest?: $Enums.OpportunityInterest | null
probability?: number
source?: string | null
primarySalesRepId?: string | null
secondarySalesRepId?: string | null
companyId?: number | null
contactId?: number | null
siteId?: number | null
customerPO?: string | null
locationId?: number | null
departmentId?: number | null
expectedCloseDate?: Date | string | null
pipelineChangeDate?: Date | string | null
dateBecameLead?: Date | string | null
closedDate?: Date | string | null
closedFlag?: boolean
closedById?: string | null
productSequence?: Prisma.OpportunityCreateproductSequenceInput | number[]
updatedBy: string
eneteredBy: string
createdAt?: Date | string
updatedAt?: Date | string
}
export type OpportunityUpdateManyMutationInput = {
id?: Prisma.IntFieldUpdateOperationsInput | number
uid?: Prisma.StringFieldUpdateOperationsInput | string
name?: Prisma.StringFieldUpdateOperationsInput | string
notes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
oppNarrative?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
interest?: Prisma.NullableEnumOpportunityInterestFieldUpdateOperationsInput | $Enums.OpportunityInterest | null
probability?: Prisma.FloatFieldUpdateOperationsInput | number
source?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
customerPO?: Prisma.NullableStringFieldUpdateOperationsInput | string | 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
closedById?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
productSequence?: Prisma.OpportunityUpdateproductSequenceInput | number[]
updatedBy?: Prisma.StringFieldUpdateOperationsInput | string
eneteredBy?: Prisma.StringFieldUpdateOperationsInput | string
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
}
export type OpportunityUncheckedUpdateManyInput = {
id?: Prisma.IntFieldUpdateOperationsInput | number
uid?: Prisma.StringFieldUpdateOperationsInput | string
name?: Prisma.StringFieldUpdateOperationsInput | string
notes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
oppNarrative?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
typeId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
stageId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
statusId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
taxCodeId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
interest?: Prisma.NullableEnumOpportunityInterestFieldUpdateOperationsInput | $Enums.OpportunityInterest | null
probability?: Prisma.FloatFieldUpdateOperationsInput | number
source?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
primarySalesRepId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
secondarySalesRepId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
companyId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
contactId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
siteId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
customerPO?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
locationId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
departmentId?: 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
closedById?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
productSequence?: Prisma.OpportunityUpdateproductSequenceInput | number[]
updatedBy?: Prisma.StringFieldUpdateOperationsInput | string
eneteredBy?: Prisma.StringFieldUpdateOperationsInput | string
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 OpportunityNullableScalarRelationFilter = {
is?: Prisma.OpportunityWhereInput | null
isNot?: Prisma.OpportunityWhereInput | null
}
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
uid?: Prisma.SortOrder
name?: Prisma.SortOrder
notes?: Prisma.SortOrder
oppNarrative?: Prisma.SortOrder
typeId?: Prisma.SortOrder
stageId?: Prisma.SortOrder
statusId?: Prisma.SortOrder
taxCodeId?: Prisma.SortOrder
interest?: Prisma.SortOrder
probability?: Prisma.SortOrder
source?: Prisma.SortOrder
primarySalesRepId?: Prisma.SortOrder
secondarySalesRepId?: Prisma.SortOrder
companyId?: Prisma.SortOrder
contactId?: Prisma.SortOrder
siteId?: Prisma.SortOrder
customerPO?: Prisma.SortOrder
locationId?: Prisma.SortOrder
departmentId?: Prisma.SortOrder
expectedCloseDate?: Prisma.SortOrder
pipelineChangeDate?: Prisma.SortOrder
dateBecameLead?: Prisma.SortOrder
closedDate?: Prisma.SortOrder
closedFlag?: Prisma.SortOrder
closedById?: Prisma.SortOrder
productSequence?: Prisma.SortOrder
updatedBy?: Prisma.SortOrder
eneteredBy?: Prisma.SortOrder
createdAt?: Prisma.SortOrder
updatedAt?: Prisma.SortOrder
}
export type OpportunityAvgOrderByAggregateInput = {
id?: Prisma.SortOrder
typeId?: Prisma.SortOrder
stageId?: Prisma.SortOrder
statusId?: Prisma.SortOrder
taxCodeId?: Prisma.SortOrder
probability?: Prisma.SortOrder
companyId?: Prisma.SortOrder
contactId?: Prisma.SortOrder
siteId?: Prisma.SortOrder
locationId?: Prisma.SortOrder
departmentId?: Prisma.SortOrder
productSequence?: Prisma.SortOrder
}
export type OpportunityMaxOrderByAggregateInput = {
id?: Prisma.SortOrder
uid?: Prisma.SortOrder
name?: Prisma.SortOrder
notes?: Prisma.SortOrder
oppNarrative?: Prisma.SortOrder
typeId?: Prisma.SortOrder
stageId?: Prisma.SortOrder
statusId?: Prisma.SortOrder
taxCodeId?: Prisma.SortOrder
interest?: Prisma.SortOrder
probability?: Prisma.SortOrder
source?: Prisma.SortOrder
primarySalesRepId?: Prisma.SortOrder
secondarySalesRepId?: Prisma.SortOrder
companyId?: Prisma.SortOrder
contactId?: Prisma.SortOrder
siteId?: Prisma.SortOrder
customerPO?: Prisma.SortOrder
locationId?: Prisma.SortOrder
departmentId?: Prisma.SortOrder
expectedCloseDate?: Prisma.SortOrder
pipelineChangeDate?: Prisma.SortOrder
dateBecameLead?: Prisma.SortOrder
closedDate?: Prisma.SortOrder
closedFlag?: Prisma.SortOrder
closedById?: Prisma.SortOrder
updatedBy?: Prisma.SortOrder
eneteredBy?: Prisma.SortOrder
createdAt?: Prisma.SortOrder
updatedAt?: Prisma.SortOrder
}
export type OpportunityMinOrderByAggregateInput = {
id?: Prisma.SortOrder
uid?: Prisma.SortOrder
name?: Prisma.SortOrder
notes?: Prisma.SortOrder
oppNarrative?: Prisma.SortOrder
typeId?: Prisma.SortOrder
stageId?: Prisma.SortOrder
statusId?: Prisma.SortOrder
taxCodeId?: Prisma.SortOrder
interest?: Prisma.SortOrder
probability?: Prisma.SortOrder
source?: Prisma.SortOrder
primarySalesRepId?: Prisma.SortOrder
secondarySalesRepId?: Prisma.SortOrder
companyId?: Prisma.SortOrder
contactId?: Prisma.SortOrder
siteId?: Prisma.SortOrder
customerPO?: Prisma.SortOrder
locationId?: Prisma.SortOrder
departmentId?: Prisma.SortOrder
expectedCloseDate?: Prisma.SortOrder
pipelineChangeDate?: Prisma.SortOrder
dateBecameLead?: Prisma.SortOrder
closedDate?: Prisma.SortOrder
closedFlag?: Prisma.SortOrder
closedById?: Prisma.SortOrder
updatedBy?: Prisma.SortOrder
eneteredBy?: Prisma.SortOrder
createdAt?: Prisma.SortOrder
updatedAt?: Prisma.SortOrder
}
export type OpportunitySumOrderByAggregateInput = {
id?: Prisma.SortOrder
typeId?: Prisma.SortOrder
stageId?: Prisma.SortOrder
statusId?: Prisma.SortOrder
taxCodeId?: Prisma.SortOrder
probability?: Prisma.SortOrder
companyId?: Prisma.SortOrder
contactId?: Prisma.SortOrder
siteId?: Prisma.SortOrder
locationId?: Prisma.SortOrder
departmentId?: Prisma.SortOrder
productSequence?: Prisma.SortOrder
}
export type OpportunityScalarRelationFilter = {
is?: Prisma.OpportunityWhereInput
isNot?: Prisma.OpportunityWhereInput
}
export type OpportunityCreateNestedManyWithoutPrimarySalesRepInput = {
create?: Prisma.XOR<Prisma.OpportunityCreateWithoutPrimarySalesRepInput, Prisma.OpportunityUncheckedCreateWithoutPrimarySalesRepInput> | Prisma.OpportunityCreateWithoutPrimarySalesRepInput[] | Prisma.OpportunityUncheckedCreateWithoutPrimarySalesRepInput[]
connectOrCreate?: Prisma.OpportunityCreateOrConnectWithoutPrimarySalesRepInput | Prisma.OpportunityCreateOrConnectWithoutPrimarySalesRepInput[]
createMany?: Prisma.OpportunityCreateManyPrimarySalesRepInputEnvelope
connect?: Prisma.OpportunityWhereUniqueInput | Prisma.OpportunityWhereUniqueInput[]
}
export type OpportunityCreateNestedManyWithoutSecondarySalesRepInput = {
create?: Prisma.XOR<Prisma.OpportunityCreateWithoutSecondarySalesRepInput, Prisma.OpportunityUncheckedCreateWithoutSecondarySalesRepInput> | Prisma.OpportunityCreateWithoutSecondarySalesRepInput[] | Prisma.OpportunityUncheckedCreateWithoutSecondarySalesRepInput[]
connectOrCreate?: Prisma.OpportunityCreateOrConnectWithoutSecondarySalesRepInput | Prisma.OpportunityCreateOrConnectWithoutSecondarySalesRepInput[]
createMany?: Prisma.OpportunityCreateManySecondarySalesRepInputEnvelope
connect?: Prisma.OpportunityWhereUniqueInput | Prisma.OpportunityWhereUniqueInput[]
}
export type OpportunityUncheckedCreateNestedManyWithoutPrimarySalesRepInput = {
create?: Prisma.XOR<Prisma.OpportunityCreateWithoutPrimarySalesRepInput, Prisma.OpportunityUncheckedCreateWithoutPrimarySalesRepInput> | Prisma.OpportunityCreateWithoutPrimarySalesRepInput[] | Prisma.OpportunityUncheckedCreateWithoutPrimarySalesRepInput[]
connectOrCreate?: Prisma.OpportunityCreateOrConnectWithoutPrimarySalesRepInput | Prisma.OpportunityCreateOrConnectWithoutPrimarySalesRepInput[]
createMany?: Prisma.OpportunityCreateManyPrimarySalesRepInputEnvelope
connect?: Prisma.OpportunityWhereUniqueInput | Prisma.OpportunityWhereUniqueInput[]
}
export type OpportunityUncheckedCreateNestedManyWithoutSecondarySalesRepInput = {
create?: Prisma.XOR<Prisma.OpportunityCreateWithoutSecondarySalesRepInput, Prisma.OpportunityUncheckedCreateWithoutSecondarySalesRepInput> | Prisma.OpportunityCreateWithoutSecondarySalesRepInput[] | Prisma.OpportunityUncheckedCreateWithoutSecondarySalesRepInput[]
connectOrCreate?: Prisma.OpportunityCreateOrConnectWithoutSecondarySalesRepInput | Prisma.OpportunityCreateOrConnectWithoutSecondarySalesRepInput[]
createMany?: Prisma.OpportunityCreateManySecondarySalesRepInputEnvelope
connect?: Prisma.OpportunityWhereUniqueInput | Prisma.OpportunityWhereUniqueInput[]
}
export type OpportunityUpdateManyWithoutPrimarySalesRepNestedInput = {
create?: Prisma.XOR<Prisma.OpportunityCreateWithoutPrimarySalesRepInput, Prisma.OpportunityUncheckedCreateWithoutPrimarySalesRepInput> | Prisma.OpportunityCreateWithoutPrimarySalesRepInput[] | Prisma.OpportunityUncheckedCreateWithoutPrimarySalesRepInput[]
connectOrCreate?: Prisma.OpportunityCreateOrConnectWithoutPrimarySalesRepInput | Prisma.OpportunityCreateOrConnectWithoutPrimarySalesRepInput[]
upsert?: Prisma.OpportunityUpsertWithWhereUniqueWithoutPrimarySalesRepInput | Prisma.OpportunityUpsertWithWhereUniqueWithoutPrimarySalesRepInput[]
createMany?: Prisma.OpportunityCreateManyPrimarySalesRepInputEnvelope
set?: Prisma.OpportunityWhereUniqueInput | Prisma.OpportunityWhereUniqueInput[]
disconnect?: Prisma.OpportunityWhereUniqueInput | Prisma.OpportunityWhereUniqueInput[]
delete?: Prisma.OpportunityWhereUniqueInput | Prisma.OpportunityWhereUniqueInput[]
connect?: Prisma.OpportunityWhereUniqueInput | Prisma.OpportunityWhereUniqueInput[]
update?: Prisma.OpportunityUpdateWithWhereUniqueWithoutPrimarySalesRepInput | Prisma.OpportunityUpdateWithWhereUniqueWithoutPrimarySalesRepInput[]
updateMany?: Prisma.OpportunityUpdateManyWithWhereWithoutPrimarySalesRepInput | Prisma.OpportunityUpdateManyWithWhereWithoutPrimarySalesRepInput[]
deleteMany?: Prisma.OpportunityScalarWhereInput | Prisma.OpportunityScalarWhereInput[]
}
export type OpportunityUpdateManyWithoutSecondarySalesRepNestedInput = {
create?: Prisma.XOR<Prisma.OpportunityCreateWithoutSecondarySalesRepInput, Prisma.OpportunityUncheckedCreateWithoutSecondarySalesRepInput> | Prisma.OpportunityCreateWithoutSecondarySalesRepInput[] | Prisma.OpportunityUncheckedCreateWithoutSecondarySalesRepInput[]
connectOrCreate?: Prisma.OpportunityCreateOrConnectWithoutSecondarySalesRepInput | Prisma.OpportunityCreateOrConnectWithoutSecondarySalesRepInput[]
upsert?: Prisma.OpportunityUpsertWithWhereUniqueWithoutSecondarySalesRepInput | Prisma.OpportunityUpsertWithWhereUniqueWithoutSecondarySalesRepInput[]
createMany?: Prisma.OpportunityCreateManySecondarySalesRepInputEnvelope
set?: Prisma.OpportunityWhereUniqueInput | Prisma.OpportunityWhereUniqueInput[]
disconnect?: Prisma.OpportunityWhereUniqueInput | Prisma.OpportunityWhereUniqueInput[]
delete?: Prisma.OpportunityWhereUniqueInput | Prisma.OpportunityWhereUniqueInput[]
connect?: Prisma.OpportunityWhereUniqueInput | Prisma.OpportunityWhereUniqueInput[]
update?: Prisma.OpportunityUpdateWithWhereUniqueWithoutSecondarySalesRepInput | Prisma.OpportunityUpdateWithWhereUniqueWithoutSecondarySalesRepInput[]
updateMany?: Prisma.OpportunityUpdateManyWithWhereWithoutSecondarySalesRepInput | Prisma.OpportunityUpdateManyWithWhereWithoutSecondarySalesRepInput[]
deleteMany?: Prisma.OpportunityScalarWhereInput | Prisma.OpportunityScalarWhereInput[]
}
export type OpportunityUncheckedUpdateManyWithoutPrimarySalesRepNestedInput = {
create?: Prisma.XOR<Prisma.OpportunityCreateWithoutPrimarySalesRepInput, Prisma.OpportunityUncheckedCreateWithoutPrimarySalesRepInput> | Prisma.OpportunityCreateWithoutPrimarySalesRepInput[] | Prisma.OpportunityUncheckedCreateWithoutPrimarySalesRepInput[]
connectOrCreate?: Prisma.OpportunityCreateOrConnectWithoutPrimarySalesRepInput | Prisma.OpportunityCreateOrConnectWithoutPrimarySalesRepInput[]
upsert?: Prisma.OpportunityUpsertWithWhereUniqueWithoutPrimarySalesRepInput | Prisma.OpportunityUpsertWithWhereUniqueWithoutPrimarySalesRepInput[]
createMany?: Prisma.OpportunityCreateManyPrimarySalesRepInputEnvelope
set?: Prisma.OpportunityWhereUniqueInput | Prisma.OpportunityWhereUniqueInput[]
disconnect?: Prisma.OpportunityWhereUniqueInput | Prisma.OpportunityWhereUniqueInput[]
delete?: Prisma.OpportunityWhereUniqueInput | Prisma.OpportunityWhereUniqueInput[]
connect?: Prisma.OpportunityWhereUniqueInput | Prisma.OpportunityWhereUniqueInput[]
update?: Prisma.OpportunityUpdateWithWhereUniqueWithoutPrimarySalesRepInput | Prisma.OpportunityUpdateWithWhereUniqueWithoutPrimarySalesRepInput[]
updateMany?: Prisma.OpportunityUpdateManyWithWhereWithoutPrimarySalesRepInput | Prisma.OpportunityUpdateManyWithWhereWithoutPrimarySalesRepInput[]
deleteMany?: Prisma.OpportunityScalarWhereInput | Prisma.OpportunityScalarWhereInput[]
}
export type OpportunityUncheckedUpdateManyWithoutSecondarySalesRepNestedInput = {
create?: Prisma.XOR<Prisma.OpportunityCreateWithoutSecondarySalesRepInput, Prisma.OpportunityUncheckedCreateWithoutSecondarySalesRepInput> | Prisma.OpportunityCreateWithoutSecondarySalesRepInput[] | Prisma.OpportunityUncheckedCreateWithoutSecondarySalesRepInput[]
connectOrCreate?: Prisma.OpportunityCreateOrConnectWithoutSecondarySalesRepInput | Prisma.OpportunityCreateOrConnectWithoutSecondarySalesRepInput[]
upsert?: Prisma.OpportunityUpsertWithWhereUniqueWithoutSecondarySalesRepInput | Prisma.OpportunityUpsertWithWhereUniqueWithoutSecondarySalesRepInput[]
createMany?: Prisma.OpportunityCreateManySecondarySalesRepInputEnvelope
set?: Prisma.OpportunityWhereUniqueInput | Prisma.OpportunityWhereUniqueInput[]
disconnect?: Prisma.OpportunityWhereUniqueInput | Prisma.OpportunityWhereUniqueInput[]
delete?: Prisma.OpportunityWhereUniqueInput | Prisma.OpportunityWhereUniqueInput[]
connect?: Prisma.OpportunityWhereUniqueInput | Prisma.OpportunityWhereUniqueInput[]
update?: Prisma.OpportunityUpdateWithWhereUniqueWithoutSecondarySalesRepInput | Prisma.OpportunityUpdateWithWhereUniqueWithoutSecondarySalesRepInput[]
updateMany?: Prisma.OpportunityUpdateManyWithWhereWithoutSecondarySalesRepInput | Prisma.OpportunityUpdateManyWithWhereWithoutSecondarySalesRepInput[]
deleteMany?: Prisma.OpportunityScalarWhereInput | Prisma.OpportunityScalarWhereInput[]
}
export type OpportunityCreateNestedManyWithoutLocationInput = {
create?: Prisma.XOR<Prisma.OpportunityCreateWithoutLocationInput, Prisma.OpportunityUncheckedCreateWithoutLocationInput> | Prisma.OpportunityCreateWithoutLocationInput[] | Prisma.OpportunityUncheckedCreateWithoutLocationInput[]
connectOrCreate?: Prisma.OpportunityCreateOrConnectWithoutLocationInput | Prisma.OpportunityCreateOrConnectWithoutLocationInput[]
createMany?: Prisma.OpportunityCreateManyLocationInputEnvelope
connect?: Prisma.OpportunityWhereUniqueInput | Prisma.OpportunityWhereUniqueInput[]
}
export type OpportunityUncheckedCreateNestedManyWithoutLocationInput = {
create?: Prisma.XOR<Prisma.OpportunityCreateWithoutLocationInput, Prisma.OpportunityUncheckedCreateWithoutLocationInput> | Prisma.OpportunityCreateWithoutLocationInput[] | Prisma.OpportunityUncheckedCreateWithoutLocationInput[]
connectOrCreate?: Prisma.OpportunityCreateOrConnectWithoutLocationInput | Prisma.OpportunityCreateOrConnectWithoutLocationInput[]
createMany?: Prisma.OpportunityCreateManyLocationInputEnvelope
connect?: Prisma.OpportunityWhereUniqueInput | Prisma.OpportunityWhereUniqueInput[]
}
export type OpportunityUpdateManyWithoutLocationNestedInput = {
create?: Prisma.XOR<Prisma.OpportunityCreateWithoutLocationInput, Prisma.OpportunityUncheckedCreateWithoutLocationInput> | Prisma.OpportunityCreateWithoutLocationInput[] | Prisma.OpportunityUncheckedCreateWithoutLocationInput[]
connectOrCreate?: Prisma.OpportunityCreateOrConnectWithoutLocationInput | Prisma.OpportunityCreateOrConnectWithoutLocationInput[]
upsert?: Prisma.OpportunityUpsertWithWhereUniqueWithoutLocationInput | Prisma.OpportunityUpsertWithWhereUniqueWithoutLocationInput[]
createMany?: Prisma.OpportunityCreateManyLocationInputEnvelope
set?: Prisma.OpportunityWhereUniqueInput | Prisma.OpportunityWhereUniqueInput[]
disconnect?: Prisma.OpportunityWhereUniqueInput | Prisma.OpportunityWhereUniqueInput[]
delete?: Prisma.OpportunityWhereUniqueInput | Prisma.OpportunityWhereUniqueInput[]
connect?: Prisma.OpportunityWhereUniqueInput | Prisma.OpportunityWhereUniqueInput[]
update?: Prisma.OpportunityUpdateWithWhereUniqueWithoutLocationInput | Prisma.OpportunityUpdateWithWhereUniqueWithoutLocationInput[]
updateMany?: Prisma.OpportunityUpdateManyWithWhereWithoutLocationInput | Prisma.OpportunityUpdateManyWithWhereWithoutLocationInput[]
deleteMany?: Prisma.OpportunityScalarWhereInput | Prisma.OpportunityScalarWhereInput[]
}
export type OpportunityUncheckedUpdateManyWithoutLocationNestedInput = {
create?: Prisma.XOR<Prisma.OpportunityCreateWithoutLocationInput, Prisma.OpportunityUncheckedCreateWithoutLocationInput> | Prisma.OpportunityCreateWithoutLocationInput[] | Prisma.OpportunityUncheckedCreateWithoutLocationInput[]
connectOrCreate?: Prisma.OpportunityCreateOrConnectWithoutLocationInput | Prisma.OpportunityCreateOrConnectWithoutLocationInput[]
upsert?: Prisma.OpportunityUpsertWithWhereUniqueWithoutLocationInput | Prisma.OpportunityUpsertWithWhereUniqueWithoutLocationInput[]
createMany?: Prisma.OpportunityCreateManyLocationInputEnvelope
set?: Prisma.OpportunityWhereUniqueInput | Prisma.OpportunityWhereUniqueInput[]
disconnect?: Prisma.OpportunityWhereUniqueInput | Prisma.OpportunityWhereUniqueInput[]
delete?: Prisma.OpportunityWhereUniqueInput | Prisma.OpportunityWhereUniqueInput[]
connect?: Prisma.OpportunityWhereUniqueInput | Prisma.OpportunityWhereUniqueInput[]
update?: Prisma.OpportunityUpdateWithWhereUniqueWithoutLocationInput | Prisma.OpportunityUpdateWithWhereUniqueWithoutLocationInput[]
updateMany?: Prisma.OpportunityUpdateManyWithWhereWithoutLocationInput | Prisma.OpportunityUpdateManyWithWhereWithoutLocationInput[]
deleteMany?: Prisma.OpportunityScalarWhereInput | Prisma.OpportunityScalarWhereInput[]
}
export type OpportunityCreateNestedManyWithoutDepartmentInput = {
create?: Prisma.XOR<Prisma.OpportunityCreateWithoutDepartmentInput, Prisma.OpportunityUncheckedCreateWithoutDepartmentInput> | Prisma.OpportunityCreateWithoutDepartmentInput[] | Prisma.OpportunityUncheckedCreateWithoutDepartmentInput[]
connectOrCreate?: Prisma.OpportunityCreateOrConnectWithoutDepartmentInput | Prisma.OpportunityCreateOrConnectWithoutDepartmentInput[]
createMany?: Prisma.OpportunityCreateManyDepartmentInputEnvelope
connect?: Prisma.OpportunityWhereUniqueInput | Prisma.OpportunityWhereUniqueInput[]
}
export type OpportunityUncheckedCreateNestedManyWithoutDepartmentInput = {
create?: Prisma.XOR<Prisma.OpportunityCreateWithoutDepartmentInput, Prisma.OpportunityUncheckedCreateWithoutDepartmentInput> | Prisma.OpportunityCreateWithoutDepartmentInput[] | Prisma.OpportunityUncheckedCreateWithoutDepartmentInput[]
connectOrCreate?: Prisma.OpportunityCreateOrConnectWithoutDepartmentInput | Prisma.OpportunityCreateOrConnectWithoutDepartmentInput[]
createMany?: Prisma.OpportunityCreateManyDepartmentInputEnvelope
connect?: Prisma.OpportunityWhereUniqueInput | Prisma.OpportunityWhereUniqueInput[]
}
export type OpportunityUpdateManyWithoutDepartmentNestedInput = {
create?: Prisma.XOR<Prisma.OpportunityCreateWithoutDepartmentInput, Prisma.OpportunityUncheckedCreateWithoutDepartmentInput> | Prisma.OpportunityCreateWithoutDepartmentInput[] | Prisma.OpportunityUncheckedCreateWithoutDepartmentInput[]
connectOrCreate?: Prisma.OpportunityCreateOrConnectWithoutDepartmentInput | Prisma.OpportunityCreateOrConnectWithoutDepartmentInput[]
upsert?: Prisma.OpportunityUpsertWithWhereUniqueWithoutDepartmentInput | Prisma.OpportunityUpsertWithWhereUniqueWithoutDepartmentInput[]
createMany?: Prisma.OpportunityCreateManyDepartmentInputEnvelope
set?: Prisma.OpportunityWhereUniqueInput | Prisma.OpportunityWhereUniqueInput[]
disconnect?: Prisma.OpportunityWhereUniqueInput | Prisma.OpportunityWhereUniqueInput[]
delete?: Prisma.OpportunityWhereUniqueInput | Prisma.OpportunityWhereUniqueInput[]
connect?: Prisma.OpportunityWhereUniqueInput | Prisma.OpportunityWhereUniqueInput[]
update?: Prisma.OpportunityUpdateWithWhereUniqueWithoutDepartmentInput | Prisma.OpportunityUpdateWithWhereUniqueWithoutDepartmentInput[]
updateMany?: Prisma.OpportunityUpdateManyWithWhereWithoutDepartmentInput | Prisma.OpportunityUpdateManyWithWhereWithoutDepartmentInput[]
deleteMany?: Prisma.OpportunityScalarWhereInput | Prisma.OpportunityScalarWhereInput[]
}
export type OpportunityUncheckedUpdateManyWithoutDepartmentNestedInput = {
create?: Prisma.XOR<Prisma.OpportunityCreateWithoutDepartmentInput, Prisma.OpportunityUncheckedCreateWithoutDepartmentInput> | Prisma.OpportunityCreateWithoutDepartmentInput[] | Prisma.OpportunityUncheckedCreateWithoutDepartmentInput[]
connectOrCreate?: Prisma.OpportunityCreateOrConnectWithoutDepartmentInput | Prisma.OpportunityCreateOrConnectWithoutDepartmentInput[]
upsert?: Prisma.OpportunityUpsertWithWhereUniqueWithoutDepartmentInput | Prisma.OpportunityUpsertWithWhereUniqueWithoutDepartmentInput[]
createMany?: Prisma.OpportunityCreateManyDepartmentInputEnvelope
set?: Prisma.OpportunityWhereUniqueInput | Prisma.OpportunityWhereUniqueInput[]
disconnect?: Prisma.OpportunityWhereUniqueInput | Prisma.OpportunityWhereUniqueInput[]
delete?: Prisma.OpportunityWhereUniqueInput | Prisma.OpportunityWhereUniqueInput[]
connect?: Prisma.OpportunityWhereUniqueInput | Prisma.OpportunityWhereUniqueInput[]
update?: Prisma.OpportunityUpdateWithWhereUniqueWithoutDepartmentInput | Prisma.OpportunityUpdateWithWhereUniqueWithoutDepartmentInput[]
updateMany?: Prisma.OpportunityUpdateManyWithWhereWithoutDepartmentInput | Prisma.OpportunityUpdateManyWithWhereWithoutDepartmentInput[]
deleteMany?: Prisma.OpportunityScalarWhereInput | Prisma.OpportunityScalarWhereInput[]
}
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 OpportunityCreateNestedManyWithoutSiteInput = {
create?: Prisma.XOR<Prisma.OpportunityCreateWithoutSiteInput, Prisma.OpportunityUncheckedCreateWithoutSiteInput> | Prisma.OpportunityCreateWithoutSiteInput[] | Prisma.OpportunityUncheckedCreateWithoutSiteInput[]
connectOrCreate?: Prisma.OpportunityCreateOrConnectWithoutSiteInput | Prisma.OpportunityCreateOrConnectWithoutSiteInput[]
createMany?: Prisma.OpportunityCreateManySiteInputEnvelope
connect?: Prisma.OpportunityWhereUniqueInput | Prisma.OpportunityWhereUniqueInput[]
}
export type OpportunityUncheckedCreateNestedManyWithoutSiteInput = {
create?: Prisma.XOR<Prisma.OpportunityCreateWithoutSiteInput, Prisma.OpportunityUncheckedCreateWithoutSiteInput> | Prisma.OpportunityCreateWithoutSiteInput[] | Prisma.OpportunityUncheckedCreateWithoutSiteInput[]
connectOrCreate?: Prisma.OpportunityCreateOrConnectWithoutSiteInput | Prisma.OpportunityCreateOrConnectWithoutSiteInput[]
createMany?: Prisma.OpportunityCreateManySiteInputEnvelope
connect?: Prisma.OpportunityWhereUniqueInput | Prisma.OpportunityWhereUniqueInput[]
}
export type OpportunityUpdateManyWithoutSiteNestedInput = {
create?: Prisma.XOR<Prisma.OpportunityCreateWithoutSiteInput, Prisma.OpportunityUncheckedCreateWithoutSiteInput> | Prisma.OpportunityCreateWithoutSiteInput[] | Prisma.OpportunityUncheckedCreateWithoutSiteInput[]
connectOrCreate?: Prisma.OpportunityCreateOrConnectWithoutSiteInput | Prisma.OpportunityCreateOrConnectWithoutSiteInput[]
upsert?: Prisma.OpportunityUpsertWithWhereUniqueWithoutSiteInput | Prisma.OpportunityUpsertWithWhereUniqueWithoutSiteInput[]
createMany?: Prisma.OpportunityCreateManySiteInputEnvelope
set?: Prisma.OpportunityWhereUniqueInput | Prisma.OpportunityWhereUniqueInput[]
disconnect?: Prisma.OpportunityWhereUniqueInput | Prisma.OpportunityWhereUniqueInput[]
delete?: Prisma.OpportunityWhereUniqueInput | Prisma.OpportunityWhereUniqueInput[]
connect?: Prisma.OpportunityWhereUniqueInput | Prisma.OpportunityWhereUniqueInput[]
update?: Prisma.OpportunityUpdateWithWhereUniqueWithoutSiteInput | Prisma.OpportunityUpdateWithWhereUniqueWithoutSiteInput[]
updateMany?: Prisma.OpportunityUpdateManyWithWhereWithoutSiteInput | Prisma.OpportunityUpdateManyWithWhereWithoutSiteInput[]
deleteMany?: Prisma.OpportunityScalarWhereInput | Prisma.OpportunityScalarWhereInput[]
}
export type OpportunityUncheckedUpdateManyWithoutSiteNestedInput = {
create?: Prisma.XOR<Prisma.OpportunityCreateWithoutSiteInput, Prisma.OpportunityUncheckedCreateWithoutSiteInput> | Prisma.OpportunityCreateWithoutSiteInput[] | Prisma.OpportunityUncheckedCreateWithoutSiteInput[]
connectOrCreate?: Prisma.OpportunityCreateOrConnectWithoutSiteInput | Prisma.OpportunityCreateOrConnectWithoutSiteInput[]
upsert?: Prisma.OpportunityUpsertWithWhereUniqueWithoutSiteInput | Prisma.OpportunityUpsertWithWhereUniqueWithoutSiteInput[]
createMany?: Prisma.OpportunityCreateManySiteInputEnvelope
set?: Prisma.OpportunityWhereUniqueInput | Prisma.OpportunityWhereUniqueInput[]
disconnect?: Prisma.OpportunityWhereUniqueInput | Prisma.OpportunityWhereUniqueInput[]
delete?: Prisma.OpportunityWhereUniqueInput | Prisma.OpportunityWhereUniqueInput[]
connect?: Prisma.OpportunityWhereUniqueInput | Prisma.OpportunityWhereUniqueInput[]
update?: Prisma.OpportunityUpdateWithWhereUniqueWithoutSiteInput | Prisma.OpportunityUpdateWithWhereUniqueWithoutSiteInput[]
updateMany?: Prisma.OpportunityUpdateManyWithWhereWithoutSiteInput | Prisma.OpportunityUpdateManyWithWhereWithoutSiteInput[]
deleteMany?: Prisma.OpportunityScalarWhereInput | Prisma.OpportunityScalarWhereInput[]
}
export type OpportunityCreateNestedManyWithoutContactInput = {
create?: Prisma.XOR<Prisma.OpportunityCreateWithoutContactInput, Prisma.OpportunityUncheckedCreateWithoutContactInput> | Prisma.OpportunityCreateWithoutContactInput[] | Prisma.OpportunityUncheckedCreateWithoutContactInput[]
connectOrCreate?: Prisma.OpportunityCreateOrConnectWithoutContactInput | Prisma.OpportunityCreateOrConnectWithoutContactInput[]
createMany?: Prisma.OpportunityCreateManyContactInputEnvelope
connect?: Prisma.OpportunityWhereUniqueInput | Prisma.OpportunityWhereUniqueInput[]
}
export type OpportunityUncheckedCreateNestedManyWithoutContactInput = {
create?: Prisma.XOR<Prisma.OpportunityCreateWithoutContactInput, Prisma.OpportunityUncheckedCreateWithoutContactInput> | Prisma.OpportunityCreateWithoutContactInput[] | Prisma.OpportunityUncheckedCreateWithoutContactInput[]
connectOrCreate?: Prisma.OpportunityCreateOrConnectWithoutContactInput | Prisma.OpportunityCreateOrConnectWithoutContactInput[]
createMany?: Prisma.OpportunityCreateManyContactInputEnvelope
connect?: Prisma.OpportunityWhereUniqueInput | Prisma.OpportunityWhereUniqueInput[]
}
export type OpportunityUpdateManyWithoutContactNestedInput = {
create?: Prisma.XOR<Prisma.OpportunityCreateWithoutContactInput, Prisma.OpportunityUncheckedCreateWithoutContactInput> | Prisma.OpportunityCreateWithoutContactInput[] | Prisma.OpportunityUncheckedCreateWithoutContactInput[]
connectOrCreate?: Prisma.OpportunityCreateOrConnectWithoutContactInput | Prisma.OpportunityCreateOrConnectWithoutContactInput[]
upsert?: Prisma.OpportunityUpsertWithWhereUniqueWithoutContactInput | Prisma.OpportunityUpsertWithWhereUniqueWithoutContactInput[]
createMany?: Prisma.OpportunityCreateManyContactInputEnvelope
set?: Prisma.OpportunityWhereUniqueInput | Prisma.OpportunityWhereUniqueInput[]
disconnect?: Prisma.OpportunityWhereUniqueInput | Prisma.OpportunityWhereUniqueInput[]
delete?: Prisma.OpportunityWhereUniqueInput | Prisma.OpportunityWhereUniqueInput[]
connect?: Prisma.OpportunityWhereUniqueInput | Prisma.OpportunityWhereUniqueInput[]
update?: Prisma.OpportunityUpdateWithWhereUniqueWithoutContactInput | Prisma.OpportunityUpdateWithWhereUniqueWithoutContactInput[]
updateMany?: Prisma.OpportunityUpdateManyWithWhereWithoutContactInput | Prisma.OpportunityUpdateManyWithWhereWithoutContactInput[]
deleteMany?: Prisma.OpportunityScalarWhereInput | Prisma.OpportunityScalarWhereInput[]
}
export type OpportunityUncheckedUpdateManyWithoutContactNestedInput = {
create?: Prisma.XOR<Prisma.OpportunityCreateWithoutContactInput, Prisma.OpportunityUncheckedCreateWithoutContactInput> | Prisma.OpportunityCreateWithoutContactInput[] | Prisma.OpportunityUncheckedCreateWithoutContactInput[]
connectOrCreate?: Prisma.OpportunityCreateOrConnectWithoutContactInput | Prisma.OpportunityCreateOrConnectWithoutContactInput[]
upsert?: Prisma.OpportunityUpsertWithWhereUniqueWithoutContactInput | Prisma.OpportunityUpsertWithWhereUniqueWithoutContactInput[]
createMany?: Prisma.OpportunityCreateManyContactInputEnvelope
set?: Prisma.OpportunityWhereUniqueInput | Prisma.OpportunityWhereUniqueInput[]
disconnect?: Prisma.OpportunityWhereUniqueInput | Prisma.OpportunityWhereUniqueInput[]
delete?: Prisma.OpportunityWhereUniqueInput | Prisma.OpportunityWhereUniqueInput[]
connect?: Prisma.OpportunityWhereUniqueInput | Prisma.OpportunityWhereUniqueInput[]
update?: Prisma.OpportunityUpdateWithWhereUniqueWithoutContactInput | Prisma.OpportunityUpdateWithWhereUniqueWithoutContactInput[]
updateMany?: Prisma.OpportunityUpdateManyWithWhereWithoutContactInput | Prisma.OpportunityUpdateManyWithWhereWithoutContactInput[]
deleteMany?: Prisma.OpportunityScalarWhereInput | Prisma.OpportunityScalarWhereInput[]
}
export type OpportunityCreateNestedOneWithoutProductsInput = {
create?: Prisma.XOR<Prisma.OpportunityCreateWithoutProductsInput, Prisma.OpportunityUncheckedCreateWithoutProductsInput>
connectOrCreate?: Prisma.OpportunityCreateOrConnectWithoutProductsInput
connect?: Prisma.OpportunityWhereUniqueInput
}
export type OpportunityUpdateOneWithoutProductsNestedInput = {
create?: Prisma.XOR<Prisma.OpportunityCreateWithoutProductsInput, Prisma.OpportunityUncheckedCreateWithoutProductsInput>
connectOrCreate?: Prisma.OpportunityCreateOrConnectWithoutProductsInput
upsert?: Prisma.OpportunityUpsertWithoutProductsInput
disconnect?: Prisma.OpportunityWhereInput | boolean
delete?: Prisma.OpportunityWhereInput | boolean
connect?: Prisma.OpportunityWhereUniqueInput
update?: Prisma.XOR<Prisma.XOR<Prisma.OpportunityUpdateToOneWithWhereWithoutProductsInput, Prisma.OpportunityUpdateWithoutProductsInput>, Prisma.OpportunityUncheckedUpdateWithoutProductsInput>
}
export type OpportunityCreateNestedManyWithoutStageInput = {
create?: Prisma.XOR<Prisma.OpportunityCreateWithoutStageInput, Prisma.OpportunityUncheckedCreateWithoutStageInput> | Prisma.OpportunityCreateWithoutStageInput[] | Prisma.OpportunityUncheckedCreateWithoutStageInput[]
connectOrCreate?: Prisma.OpportunityCreateOrConnectWithoutStageInput | Prisma.OpportunityCreateOrConnectWithoutStageInput[]
createMany?: Prisma.OpportunityCreateManyStageInputEnvelope
connect?: Prisma.OpportunityWhereUniqueInput | Prisma.OpportunityWhereUniqueInput[]
}
export type OpportunityUncheckedCreateNestedManyWithoutStageInput = {
create?: Prisma.XOR<Prisma.OpportunityCreateWithoutStageInput, Prisma.OpportunityUncheckedCreateWithoutStageInput> | Prisma.OpportunityCreateWithoutStageInput[] | Prisma.OpportunityUncheckedCreateWithoutStageInput[]
connectOrCreate?: Prisma.OpportunityCreateOrConnectWithoutStageInput | Prisma.OpportunityCreateOrConnectWithoutStageInput[]
createMany?: Prisma.OpportunityCreateManyStageInputEnvelope
connect?: Prisma.OpportunityWhereUniqueInput | Prisma.OpportunityWhereUniqueInput[]
}
export type OpportunityUpdateManyWithoutStageNestedInput = {
create?: Prisma.XOR<Prisma.OpportunityCreateWithoutStageInput, Prisma.OpportunityUncheckedCreateWithoutStageInput> | Prisma.OpportunityCreateWithoutStageInput[] | Prisma.OpportunityUncheckedCreateWithoutStageInput[]
connectOrCreate?: Prisma.OpportunityCreateOrConnectWithoutStageInput | Prisma.OpportunityCreateOrConnectWithoutStageInput[]
upsert?: Prisma.OpportunityUpsertWithWhereUniqueWithoutStageInput | Prisma.OpportunityUpsertWithWhereUniqueWithoutStageInput[]
createMany?: Prisma.OpportunityCreateManyStageInputEnvelope
set?: Prisma.OpportunityWhereUniqueInput | Prisma.OpportunityWhereUniqueInput[]
disconnect?: Prisma.OpportunityWhereUniqueInput | Prisma.OpportunityWhereUniqueInput[]
delete?: Prisma.OpportunityWhereUniqueInput | Prisma.OpportunityWhereUniqueInput[]
connect?: Prisma.OpportunityWhereUniqueInput | Prisma.OpportunityWhereUniqueInput[]
update?: Prisma.OpportunityUpdateWithWhereUniqueWithoutStageInput | Prisma.OpportunityUpdateWithWhereUniqueWithoutStageInput[]
updateMany?: Prisma.OpportunityUpdateManyWithWhereWithoutStageInput | Prisma.OpportunityUpdateManyWithWhereWithoutStageInput[]
deleteMany?: Prisma.OpportunityScalarWhereInput | Prisma.OpportunityScalarWhereInput[]
}
export type OpportunityUncheckedUpdateManyWithoutStageNestedInput = {
create?: Prisma.XOR<Prisma.OpportunityCreateWithoutStageInput, Prisma.OpportunityUncheckedCreateWithoutStageInput> | Prisma.OpportunityCreateWithoutStageInput[] | Prisma.OpportunityUncheckedCreateWithoutStageInput[]
connectOrCreate?: Prisma.OpportunityCreateOrConnectWithoutStageInput | Prisma.OpportunityCreateOrConnectWithoutStageInput[]
upsert?: Prisma.OpportunityUpsertWithWhereUniqueWithoutStageInput | Prisma.OpportunityUpsertWithWhereUniqueWithoutStageInput[]
createMany?: Prisma.OpportunityCreateManyStageInputEnvelope
set?: Prisma.OpportunityWhereUniqueInput | Prisma.OpportunityWhereUniqueInput[]
disconnect?: Prisma.OpportunityWhereUniqueInput | Prisma.OpportunityWhereUniqueInput[]
delete?: Prisma.OpportunityWhereUniqueInput | Prisma.OpportunityWhereUniqueInput[]
connect?: Prisma.OpportunityWhereUniqueInput | Prisma.OpportunityWhereUniqueInput[]
update?: Prisma.OpportunityUpdateWithWhereUniqueWithoutStageInput | Prisma.OpportunityUpdateWithWhereUniqueWithoutStageInput[]
updateMany?: Prisma.OpportunityUpdateManyWithWhereWithoutStageInput | Prisma.OpportunityUpdateManyWithWhereWithoutStageInput[]
deleteMany?: Prisma.OpportunityScalarWhereInput | Prisma.OpportunityScalarWhereInput[]
}
export type OpportunityCreateNestedManyWithoutTypeInput = {
create?: Prisma.XOR<Prisma.OpportunityCreateWithoutTypeInput, Prisma.OpportunityUncheckedCreateWithoutTypeInput> | Prisma.OpportunityCreateWithoutTypeInput[] | Prisma.OpportunityUncheckedCreateWithoutTypeInput[]
connectOrCreate?: Prisma.OpportunityCreateOrConnectWithoutTypeInput | Prisma.OpportunityCreateOrConnectWithoutTypeInput[]
createMany?: Prisma.OpportunityCreateManyTypeInputEnvelope
connect?: Prisma.OpportunityWhereUniqueInput | Prisma.OpportunityWhereUniqueInput[]
}
export type OpportunityUncheckedCreateNestedManyWithoutTypeInput = {
create?: Prisma.XOR<Prisma.OpportunityCreateWithoutTypeInput, Prisma.OpportunityUncheckedCreateWithoutTypeInput> | Prisma.OpportunityCreateWithoutTypeInput[] | Prisma.OpportunityUncheckedCreateWithoutTypeInput[]
connectOrCreate?: Prisma.OpportunityCreateOrConnectWithoutTypeInput | Prisma.OpportunityCreateOrConnectWithoutTypeInput[]
createMany?: Prisma.OpportunityCreateManyTypeInputEnvelope
connect?: Prisma.OpportunityWhereUniqueInput | Prisma.OpportunityWhereUniqueInput[]
}
export type OpportunityUpdateManyWithoutTypeNestedInput = {
create?: Prisma.XOR<Prisma.OpportunityCreateWithoutTypeInput, Prisma.OpportunityUncheckedCreateWithoutTypeInput> | Prisma.OpportunityCreateWithoutTypeInput[] | Prisma.OpportunityUncheckedCreateWithoutTypeInput[]
connectOrCreate?: Prisma.OpportunityCreateOrConnectWithoutTypeInput | Prisma.OpportunityCreateOrConnectWithoutTypeInput[]
upsert?: Prisma.OpportunityUpsertWithWhereUniqueWithoutTypeInput | Prisma.OpportunityUpsertWithWhereUniqueWithoutTypeInput[]
createMany?: Prisma.OpportunityCreateManyTypeInputEnvelope
set?: Prisma.OpportunityWhereUniqueInput | Prisma.OpportunityWhereUniqueInput[]
disconnect?: Prisma.OpportunityWhereUniqueInput | Prisma.OpportunityWhereUniqueInput[]
delete?: Prisma.OpportunityWhereUniqueInput | Prisma.OpportunityWhereUniqueInput[]
connect?: Prisma.OpportunityWhereUniqueInput | Prisma.OpportunityWhereUniqueInput[]
update?: Prisma.OpportunityUpdateWithWhereUniqueWithoutTypeInput | Prisma.OpportunityUpdateWithWhereUniqueWithoutTypeInput[]
updateMany?: Prisma.OpportunityUpdateManyWithWhereWithoutTypeInput | Prisma.OpportunityUpdateManyWithWhereWithoutTypeInput[]
deleteMany?: Prisma.OpportunityScalarWhereInput | Prisma.OpportunityScalarWhereInput[]
}
export type OpportunityUncheckedUpdateManyWithoutTypeNestedInput = {
create?: Prisma.XOR<Prisma.OpportunityCreateWithoutTypeInput, Prisma.OpportunityUncheckedCreateWithoutTypeInput> | Prisma.OpportunityCreateWithoutTypeInput[] | Prisma.OpportunityUncheckedCreateWithoutTypeInput[]
connectOrCreate?: Prisma.OpportunityCreateOrConnectWithoutTypeInput | Prisma.OpportunityCreateOrConnectWithoutTypeInput[]
upsert?: Prisma.OpportunityUpsertWithWhereUniqueWithoutTypeInput | Prisma.OpportunityUpsertWithWhereUniqueWithoutTypeInput[]
createMany?: Prisma.OpportunityCreateManyTypeInputEnvelope
set?: Prisma.OpportunityWhereUniqueInput | Prisma.OpportunityWhereUniqueInput[]
disconnect?: Prisma.OpportunityWhereUniqueInput | Prisma.OpportunityWhereUniqueInput[]
delete?: Prisma.OpportunityWhereUniqueInput | Prisma.OpportunityWhereUniqueInput[]
connect?: Prisma.OpportunityWhereUniqueInput | Prisma.OpportunityWhereUniqueInput[]
update?: Prisma.OpportunityUpdateWithWhereUniqueWithoutTypeInput | Prisma.OpportunityUpdateWithWhereUniqueWithoutTypeInput[]
updateMany?: Prisma.OpportunityUpdateManyWithWhereWithoutTypeInput | Prisma.OpportunityUpdateManyWithWhereWithoutTypeInput[]
deleteMany?: Prisma.OpportunityScalarWhereInput | Prisma.OpportunityScalarWhereInput[]
}
export type OpportunityCreateNestedManyWithoutStatusInput = {
create?: Prisma.XOR<Prisma.OpportunityCreateWithoutStatusInput, Prisma.OpportunityUncheckedCreateWithoutStatusInput> | Prisma.OpportunityCreateWithoutStatusInput[] | Prisma.OpportunityUncheckedCreateWithoutStatusInput[]
connectOrCreate?: Prisma.OpportunityCreateOrConnectWithoutStatusInput | Prisma.OpportunityCreateOrConnectWithoutStatusInput[]
createMany?: Prisma.OpportunityCreateManyStatusInputEnvelope
connect?: Prisma.OpportunityWhereUniqueInput | Prisma.OpportunityWhereUniqueInput[]
}
export type OpportunityUncheckedCreateNestedManyWithoutStatusInput = {
create?: Prisma.XOR<Prisma.OpportunityCreateWithoutStatusInput, Prisma.OpportunityUncheckedCreateWithoutStatusInput> | Prisma.OpportunityCreateWithoutStatusInput[] | Prisma.OpportunityUncheckedCreateWithoutStatusInput[]
connectOrCreate?: Prisma.OpportunityCreateOrConnectWithoutStatusInput | Prisma.OpportunityCreateOrConnectWithoutStatusInput[]
createMany?: Prisma.OpportunityCreateManyStatusInputEnvelope
connect?: Prisma.OpportunityWhereUniqueInput | Prisma.OpportunityWhereUniqueInput[]
}
export type OpportunityUpdateManyWithoutStatusNestedInput = {
create?: Prisma.XOR<Prisma.OpportunityCreateWithoutStatusInput, Prisma.OpportunityUncheckedCreateWithoutStatusInput> | Prisma.OpportunityCreateWithoutStatusInput[] | Prisma.OpportunityUncheckedCreateWithoutStatusInput[]
connectOrCreate?: Prisma.OpportunityCreateOrConnectWithoutStatusInput | Prisma.OpportunityCreateOrConnectWithoutStatusInput[]
upsert?: Prisma.OpportunityUpsertWithWhereUniqueWithoutStatusInput | Prisma.OpportunityUpsertWithWhereUniqueWithoutStatusInput[]
createMany?: Prisma.OpportunityCreateManyStatusInputEnvelope
set?: Prisma.OpportunityWhereUniqueInput | Prisma.OpportunityWhereUniqueInput[]
disconnect?: Prisma.OpportunityWhereUniqueInput | Prisma.OpportunityWhereUniqueInput[]
delete?: Prisma.OpportunityWhereUniqueInput | Prisma.OpportunityWhereUniqueInput[]
connect?: Prisma.OpportunityWhereUniqueInput | Prisma.OpportunityWhereUniqueInput[]
update?: Prisma.OpportunityUpdateWithWhereUniqueWithoutStatusInput | Prisma.OpportunityUpdateWithWhereUniqueWithoutStatusInput[]
updateMany?: Prisma.OpportunityUpdateManyWithWhereWithoutStatusInput | Prisma.OpportunityUpdateManyWithWhereWithoutStatusInput[]
deleteMany?: Prisma.OpportunityScalarWhereInput | Prisma.OpportunityScalarWhereInput[]
}
export type OpportunityUncheckedUpdateManyWithoutStatusNestedInput = {
create?: Prisma.XOR<Prisma.OpportunityCreateWithoutStatusInput, Prisma.OpportunityUncheckedCreateWithoutStatusInput> | Prisma.OpportunityCreateWithoutStatusInput[] | Prisma.OpportunityUncheckedCreateWithoutStatusInput[]
connectOrCreate?: Prisma.OpportunityCreateOrConnectWithoutStatusInput | Prisma.OpportunityCreateOrConnectWithoutStatusInput[]
upsert?: Prisma.OpportunityUpsertWithWhereUniqueWithoutStatusInput | Prisma.OpportunityUpsertWithWhereUniqueWithoutStatusInput[]
createMany?: Prisma.OpportunityCreateManyStatusInputEnvelope
set?: Prisma.OpportunityWhereUniqueInput | Prisma.OpportunityWhereUniqueInput[]
disconnect?: Prisma.OpportunityWhereUniqueInput | Prisma.OpportunityWhereUniqueInput[]
delete?: Prisma.OpportunityWhereUniqueInput | Prisma.OpportunityWhereUniqueInput[]
connect?: Prisma.OpportunityWhereUniqueInput | Prisma.OpportunityWhereUniqueInput[]
update?: Prisma.OpportunityUpdateWithWhereUniqueWithoutStatusInput | Prisma.OpportunityUpdateWithWhereUniqueWithoutStatusInput[]
updateMany?: Prisma.OpportunityUpdateManyWithWhereWithoutStatusInput | Prisma.OpportunityUpdateManyWithWhereWithoutStatusInput[]
deleteMany?: Prisma.OpportunityScalarWhereInput | Prisma.OpportunityScalarWhereInput[]
}
export type OpportunityCreateproductSequenceInput = {
set: number[]
}
export type NullableEnumOpportunityInterestFieldUpdateOperationsInput = {
set?: $Enums.OpportunityInterest | null
}
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 OpportunityCreateNestedManyWithoutTaxCodeInput = {
create?: Prisma.XOR<Prisma.OpportunityCreateWithoutTaxCodeInput, Prisma.OpportunityUncheckedCreateWithoutTaxCodeInput> | Prisma.OpportunityCreateWithoutTaxCodeInput[] | Prisma.OpportunityUncheckedCreateWithoutTaxCodeInput[]
connectOrCreate?: Prisma.OpportunityCreateOrConnectWithoutTaxCodeInput | Prisma.OpportunityCreateOrConnectWithoutTaxCodeInput[]
createMany?: Prisma.OpportunityCreateManyTaxCodeInputEnvelope
connect?: Prisma.OpportunityWhereUniqueInput | Prisma.OpportunityWhereUniqueInput[]
}
export type OpportunityUncheckedCreateNestedManyWithoutTaxCodeInput = {
create?: Prisma.XOR<Prisma.OpportunityCreateWithoutTaxCodeInput, Prisma.OpportunityUncheckedCreateWithoutTaxCodeInput> | Prisma.OpportunityCreateWithoutTaxCodeInput[] | Prisma.OpportunityUncheckedCreateWithoutTaxCodeInput[]
connectOrCreate?: Prisma.OpportunityCreateOrConnectWithoutTaxCodeInput | Prisma.OpportunityCreateOrConnectWithoutTaxCodeInput[]
createMany?: Prisma.OpportunityCreateManyTaxCodeInputEnvelope
connect?: Prisma.OpportunityWhereUniqueInput | Prisma.OpportunityWhereUniqueInput[]
}
export type OpportunityUpdateManyWithoutTaxCodeNestedInput = {
create?: Prisma.XOR<Prisma.OpportunityCreateWithoutTaxCodeInput, Prisma.OpportunityUncheckedCreateWithoutTaxCodeInput> | Prisma.OpportunityCreateWithoutTaxCodeInput[] | Prisma.OpportunityUncheckedCreateWithoutTaxCodeInput[]
connectOrCreate?: Prisma.OpportunityCreateOrConnectWithoutTaxCodeInput | Prisma.OpportunityCreateOrConnectWithoutTaxCodeInput[]
upsert?: Prisma.OpportunityUpsertWithWhereUniqueWithoutTaxCodeInput | Prisma.OpportunityUpsertWithWhereUniqueWithoutTaxCodeInput[]
createMany?: Prisma.OpportunityCreateManyTaxCodeInputEnvelope
set?: Prisma.OpportunityWhereUniqueInput | Prisma.OpportunityWhereUniqueInput[]
disconnect?: Prisma.OpportunityWhereUniqueInput | Prisma.OpportunityWhereUniqueInput[]
delete?: Prisma.OpportunityWhereUniqueInput | Prisma.OpportunityWhereUniqueInput[]
connect?: Prisma.OpportunityWhereUniqueInput | Prisma.OpportunityWhereUniqueInput[]
update?: Prisma.OpportunityUpdateWithWhereUniqueWithoutTaxCodeInput | Prisma.OpportunityUpdateWithWhereUniqueWithoutTaxCodeInput[]
updateMany?: Prisma.OpportunityUpdateManyWithWhereWithoutTaxCodeInput | Prisma.OpportunityUpdateManyWithWhereWithoutTaxCodeInput[]
deleteMany?: Prisma.OpportunityScalarWhereInput | Prisma.OpportunityScalarWhereInput[]
}
export type OpportunityUncheckedUpdateManyWithoutTaxCodeNestedInput = {
create?: Prisma.XOR<Prisma.OpportunityCreateWithoutTaxCodeInput, Prisma.OpportunityUncheckedCreateWithoutTaxCodeInput> | Prisma.OpportunityCreateWithoutTaxCodeInput[] | Prisma.OpportunityUncheckedCreateWithoutTaxCodeInput[]
connectOrCreate?: Prisma.OpportunityCreateOrConnectWithoutTaxCodeInput | Prisma.OpportunityCreateOrConnectWithoutTaxCodeInput[]
upsert?: Prisma.OpportunityUpsertWithWhereUniqueWithoutTaxCodeInput | Prisma.OpportunityUpsertWithWhereUniqueWithoutTaxCodeInput[]
createMany?: Prisma.OpportunityCreateManyTaxCodeInputEnvelope
set?: Prisma.OpportunityWhereUniqueInput | Prisma.OpportunityWhereUniqueInput[]
disconnect?: Prisma.OpportunityWhereUniqueInput | Prisma.OpportunityWhereUniqueInput[]
delete?: Prisma.OpportunityWhereUniqueInput | Prisma.OpportunityWhereUniqueInput[]
connect?: Prisma.OpportunityWhereUniqueInput | Prisma.OpportunityWhereUniqueInput[]
update?: Prisma.OpportunityUpdateWithWhereUniqueWithoutTaxCodeInput | Prisma.OpportunityUpdateWithWhereUniqueWithoutTaxCodeInput[]
updateMany?: Prisma.OpportunityUpdateManyWithWhereWithoutTaxCodeInput | Prisma.OpportunityUpdateManyWithWhereWithoutTaxCodeInput[]
deleteMany?: Prisma.OpportunityScalarWhereInput | Prisma.OpportunityScalarWhereInput[]
}
export type OpportunityCreateWithoutPrimarySalesRepInput = {
id: number
uid?: string
name: string
notes?: string | null
oppNarrative?: string | null
interest?: $Enums.OpportunityInterest | null
probability?: number
source?: string | null
customerPO?: string | null
expectedCloseDate?: Date | string | null
pipelineChangeDate?: Date | string | null
dateBecameLead?: Date | string | null
closedDate?: Date | string | null
closedFlag?: boolean
closedById?: string | null
productSequence?: Prisma.OpportunityCreateproductSequenceInput | number[]
updatedBy: string
eneteredBy: string
createdAt?: Date | string
updatedAt?: Date | string
generatedQuotes?: Prisma.GeneratedQuotesCreateNestedManyWithoutOpportunityInput
type?: Prisma.OpportunityTypeCreateNestedOneWithoutOpportunitiesInput
stage?: Prisma.OpportunityStageCreateNestedOneWithoutOpportunitiesInput
status?: Prisma.OpportunityStatusCreateNestedOneWithoutOpportunitiesInput
taxCode?: Prisma.TaxCodeCreateNestedOneWithoutOpportunitiesInput
secondarySalesRep?: Prisma.UserCreateNestedOneWithoutOpportunitiesSecondaryInput
company?: Prisma.CompanyCreateNestedOneWithoutOpportunitiesInput
contact?: Prisma.ContactCreateNestedOneWithoutOpportunitiesInput
site?: Prisma.CompanyAddressCreateNestedOneWithoutOppportunitiesInput
location?: Prisma.CorporateLocationCreateNestedOneWithoutOpportunitiesInput
department?: Prisma.InternalDepartmentCreateNestedOneWithoutOpportunitiesInput
products?: Prisma.ProductDataCreateNestedManyWithoutOpportunityInput
}
export type OpportunityUncheckedCreateWithoutPrimarySalesRepInput = {
id: number
uid?: string
name: string
notes?: string | null
oppNarrative?: string | null
typeId?: number | null
stageId?: number | null
statusId?: number | null
taxCodeId?: number | null
interest?: $Enums.OpportunityInterest | null
probability?: number
source?: string | null
secondarySalesRepId?: string | null
companyId?: number | null
contactId?: number | null
siteId?: number | null
customerPO?: string | null
locationId?: number | null
departmentId?: number | null
expectedCloseDate?: Date | string | null
pipelineChangeDate?: Date | string | null
dateBecameLead?: Date | string | null
closedDate?: Date | string | null
closedFlag?: boolean
closedById?: string | null
productSequence?: Prisma.OpportunityCreateproductSequenceInput | number[]
updatedBy: string
eneteredBy: string
createdAt?: Date | string
updatedAt?: Date | string
generatedQuotes?: Prisma.GeneratedQuotesUncheckedCreateNestedManyWithoutOpportunityInput
products?: Prisma.ProductDataUncheckedCreateNestedManyWithoutOpportunityInput
}
export type OpportunityCreateOrConnectWithoutPrimarySalesRepInput = {
where: Prisma.OpportunityWhereUniqueInput
create: Prisma.XOR<Prisma.OpportunityCreateWithoutPrimarySalesRepInput, Prisma.OpportunityUncheckedCreateWithoutPrimarySalesRepInput>
}
export type OpportunityCreateManyPrimarySalesRepInputEnvelope = {
data: Prisma.OpportunityCreateManyPrimarySalesRepInput | Prisma.OpportunityCreateManyPrimarySalesRepInput[]
skipDuplicates?: boolean
}
export type OpportunityCreateWithoutSecondarySalesRepInput = {
id: number
uid?: string
name: string
notes?: string | null
oppNarrative?: string | null
interest?: $Enums.OpportunityInterest | null
probability?: number
source?: string | null
customerPO?: string | null
expectedCloseDate?: Date | string | null
pipelineChangeDate?: Date | string | null
dateBecameLead?: Date | string | null
closedDate?: Date | string | null
closedFlag?: boolean
closedById?: string | null
productSequence?: Prisma.OpportunityCreateproductSequenceInput | number[]
updatedBy: string
eneteredBy: string
createdAt?: Date | string
updatedAt?: Date | string
generatedQuotes?: Prisma.GeneratedQuotesCreateNestedManyWithoutOpportunityInput
type?: Prisma.OpportunityTypeCreateNestedOneWithoutOpportunitiesInput
stage?: Prisma.OpportunityStageCreateNestedOneWithoutOpportunitiesInput
status?: Prisma.OpportunityStatusCreateNestedOneWithoutOpportunitiesInput
taxCode?: Prisma.TaxCodeCreateNestedOneWithoutOpportunitiesInput
primarySalesRep?: Prisma.UserCreateNestedOneWithoutOpportunitiesInput
company?: Prisma.CompanyCreateNestedOneWithoutOpportunitiesInput
contact?: Prisma.ContactCreateNestedOneWithoutOpportunitiesInput
site?: Prisma.CompanyAddressCreateNestedOneWithoutOppportunitiesInput
location?: Prisma.CorporateLocationCreateNestedOneWithoutOpportunitiesInput
department?: Prisma.InternalDepartmentCreateNestedOneWithoutOpportunitiesInput
products?: Prisma.ProductDataCreateNestedManyWithoutOpportunityInput
}
export type OpportunityUncheckedCreateWithoutSecondarySalesRepInput = {
id: number
uid?: string
name: string
notes?: string | null
oppNarrative?: string | null
typeId?: number | null
stageId?: number | null
statusId?: number | null
taxCodeId?: number | null
interest?: $Enums.OpportunityInterest | null
probability?: number
source?: string | null
primarySalesRepId?: string | null
companyId?: number | null
contactId?: number | null
siteId?: number | null
customerPO?: string | null
locationId?: number | null
departmentId?: number | null
expectedCloseDate?: Date | string | null
pipelineChangeDate?: Date | string | null
dateBecameLead?: Date | string | null
closedDate?: Date | string | null
closedFlag?: boolean
closedById?: string | null
productSequence?: Prisma.OpportunityCreateproductSequenceInput | number[]
updatedBy: string
eneteredBy: string
createdAt?: Date | string
updatedAt?: Date | string
generatedQuotes?: Prisma.GeneratedQuotesUncheckedCreateNestedManyWithoutOpportunityInput
products?: Prisma.ProductDataUncheckedCreateNestedManyWithoutOpportunityInput
}
export type OpportunityCreateOrConnectWithoutSecondarySalesRepInput = {
where: Prisma.OpportunityWhereUniqueInput
create: Prisma.XOR<Prisma.OpportunityCreateWithoutSecondarySalesRepInput, Prisma.OpportunityUncheckedCreateWithoutSecondarySalesRepInput>
}
export type OpportunityCreateManySecondarySalesRepInputEnvelope = {
data: Prisma.OpportunityCreateManySecondarySalesRepInput | Prisma.OpportunityCreateManySecondarySalesRepInput[]
skipDuplicates?: boolean
}
export type OpportunityUpsertWithWhereUniqueWithoutPrimarySalesRepInput = {
where: Prisma.OpportunityWhereUniqueInput
update: Prisma.XOR<Prisma.OpportunityUpdateWithoutPrimarySalesRepInput, Prisma.OpportunityUncheckedUpdateWithoutPrimarySalesRepInput>
create: Prisma.XOR<Prisma.OpportunityCreateWithoutPrimarySalesRepInput, Prisma.OpportunityUncheckedCreateWithoutPrimarySalesRepInput>
}
export type OpportunityUpdateWithWhereUniqueWithoutPrimarySalesRepInput = {
where: Prisma.OpportunityWhereUniqueInput
data: Prisma.XOR<Prisma.OpportunityUpdateWithoutPrimarySalesRepInput, Prisma.OpportunityUncheckedUpdateWithoutPrimarySalesRepInput>
}
export type OpportunityUpdateManyWithWhereWithoutPrimarySalesRepInput = {
where: Prisma.OpportunityScalarWhereInput
data: Prisma.XOR<Prisma.OpportunityUpdateManyMutationInput, Prisma.OpportunityUncheckedUpdateManyWithoutPrimarySalesRepInput>
}
export type OpportunityScalarWhereInput = {
AND?: Prisma.OpportunityScalarWhereInput | Prisma.OpportunityScalarWhereInput[]
OR?: Prisma.OpportunityScalarWhereInput[]
NOT?: Prisma.OpportunityScalarWhereInput | Prisma.OpportunityScalarWhereInput[]
id?: Prisma.IntFilter<"Opportunity"> | number
uid?: Prisma.StringFilter<"Opportunity"> | string
name?: Prisma.StringFilter<"Opportunity"> | string
notes?: Prisma.StringNullableFilter<"Opportunity"> | string | null
oppNarrative?: Prisma.StringNullableFilter<"Opportunity"> | string | null
typeId?: Prisma.IntNullableFilter<"Opportunity"> | number | null
stageId?: Prisma.IntNullableFilter<"Opportunity"> | number | null
statusId?: Prisma.IntNullableFilter<"Opportunity"> | number | null
taxCodeId?: Prisma.IntNullableFilter<"Opportunity"> | number | null
interest?: Prisma.EnumOpportunityInterestNullableFilter<"Opportunity"> | $Enums.OpportunityInterest | null
probability?: Prisma.FloatFilter<"Opportunity"> | number
source?: Prisma.StringNullableFilter<"Opportunity"> | string | null
primarySalesRepId?: Prisma.StringNullableFilter<"Opportunity"> | string | null
secondarySalesRepId?: Prisma.StringNullableFilter<"Opportunity"> | string | null
companyId?: Prisma.IntNullableFilter<"Opportunity"> | number | null
contactId?: Prisma.IntNullableFilter<"Opportunity"> | number | null
siteId?: Prisma.IntNullableFilter<"Opportunity"> | number | null
customerPO?: Prisma.StringNullableFilter<"Opportunity"> | string | null
locationId?: Prisma.IntNullableFilter<"Opportunity"> | number | null
departmentId?: 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
closedById?: Prisma.StringNullableFilter<"Opportunity"> | string | null
productSequence?: Prisma.IntNullableListFilter<"Opportunity">
updatedBy?: Prisma.StringFilter<"Opportunity"> | string
eneteredBy?: Prisma.StringFilter<"Opportunity"> | string
createdAt?: Prisma.DateTimeFilter<"Opportunity"> | Date | string
updatedAt?: Prisma.DateTimeFilter<"Opportunity"> | Date | string
}
export type OpportunityUpsertWithWhereUniqueWithoutSecondarySalesRepInput = {
where: Prisma.OpportunityWhereUniqueInput
update: Prisma.XOR<Prisma.OpportunityUpdateWithoutSecondarySalesRepInput, Prisma.OpportunityUncheckedUpdateWithoutSecondarySalesRepInput>
create: Prisma.XOR<Prisma.OpportunityCreateWithoutSecondarySalesRepInput, Prisma.OpportunityUncheckedCreateWithoutSecondarySalesRepInput>
}
export type OpportunityUpdateWithWhereUniqueWithoutSecondarySalesRepInput = {
where: Prisma.OpportunityWhereUniqueInput
data: Prisma.XOR<Prisma.OpportunityUpdateWithoutSecondarySalesRepInput, Prisma.OpportunityUncheckedUpdateWithoutSecondarySalesRepInput>
}
export type OpportunityUpdateManyWithWhereWithoutSecondarySalesRepInput = {
where: Prisma.OpportunityScalarWhereInput
data: Prisma.XOR<Prisma.OpportunityUpdateManyMutationInput, Prisma.OpportunityUncheckedUpdateManyWithoutSecondarySalesRepInput>
}
export type OpportunityCreateWithoutLocationInput = {
id: number
uid?: string
name: string
notes?: string | null
oppNarrative?: string | null
interest?: $Enums.OpportunityInterest | null
probability?: number
source?: string | null
customerPO?: string | null
expectedCloseDate?: Date | string | null
pipelineChangeDate?: Date | string | null
dateBecameLead?: Date | string | null
closedDate?: Date | string | null
closedFlag?: boolean
closedById?: string | null
productSequence?: Prisma.OpportunityCreateproductSequenceInput | number[]
updatedBy: string
eneteredBy: string
createdAt?: Date | string
updatedAt?: Date | string
generatedQuotes?: Prisma.GeneratedQuotesCreateNestedManyWithoutOpportunityInput
type?: Prisma.OpportunityTypeCreateNestedOneWithoutOpportunitiesInput
stage?: Prisma.OpportunityStageCreateNestedOneWithoutOpportunitiesInput
status?: Prisma.OpportunityStatusCreateNestedOneWithoutOpportunitiesInput
taxCode?: Prisma.TaxCodeCreateNestedOneWithoutOpportunitiesInput
primarySalesRep?: Prisma.UserCreateNestedOneWithoutOpportunitiesInput
secondarySalesRep?: Prisma.UserCreateNestedOneWithoutOpportunitiesSecondaryInput
company?: Prisma.CompanyCreateNestedOneWithoutOpportunitiesInput
contact?: Prisma.ContactCreateNestedOneWithoutOpportunitiesInput
site?: Prisma.CompanyAddressCreateNestedOneWithoutOppportunitiesInput
department?: Prisma.InternalDepartmentCreateNestedOneWithoutOpportunitiesInput
products?: Prisma.ProductDataCreateNestedManyWithoutOpportunityInput
}
export type OpportunityUncheckedCreateWithoutLocationInput = {
id: number
uid?: string
name: string
notes?: string | null
oppNarrative?: string | null
typeId?: number | null
stageId?: number | null
statusId?: number | null
taxCodeId?: number | null
interest?: $Enums.OpportunityInterest | null
probability?: number
source?: string | null
primarySalesRepId?: string | null
secondarySalesRepId?: string | null
companyId?: number | null
contactId?: number | null
siteId?: number | null
customerPO?: string | null
departmentId?: number | null
expectedCloseDate?: Date | string | null
pipelineChangeDate?: Date | string | null
dateBecameLead?: Date | string | null
closedDate?: Date | string | null
closedFlag?: boolean
closedById?: string | null
productSequence?: Prisma.OpportunityCreateproductSequenceInput | number[]
updatedBy: string
eneteredBy: string
createdAt?: Date | string
updatedAt?: Date | string
generatedQuotes?: Prisma.GeneratedQuotesUncheckedCreateNestedManyWithoutOpportunityInput
products?: Prisma.ProductDataUncheckedCreateNestedManyWithoutOpportunityInput
}
export type OpportunityCreateOrConnectWithoutLocationInput = {
where: Prisma.OpportunityWhereUniqueInput
create: Prisma.XOR<Prisma.OpportunityCreateWithoutLocationInput, Prisma.OpportunityUncheckedCreateWithoutLocationInput>
}
export type OpportunityCreateManyLocationInputEnvelope = {
data: Prisma.OpportunityCreateManyLocationInput | Prisma.OpportunityCreateManyLocationInput[]
skipDuplicates?: boolean
}
export type OpportunityUpsertWithWhereUniqueWithoutLocationInput = {
where: Prisma.OpportunityWhereUniqueInput
update: Prisma.XOR<Prisma.OpportunityUpdateWithoutLocationInput, Prisma.OpportunityUncheckedUpdateWithoutLocationInput>
create: Prisma.XOR<Prisma.OpportunityCreateWithoutLocationInput, Prisma.OpportunityUncheckedCreateWithoutLocationInput>
}
export type OpportunityUpdateWithWhereUniqueWithoutLocationInput = {
where: Prisma.OpportunityWhereUniqueInput
data: Prisma.XOR<Prisma.OpportunityUpdateWithoutLocationInput, Prisma.OpportunityUncheckedUpdateWithoutLocationInput>
}
export type OpportunityUpdateManyWithWhereWithoutLocationInput = {
where: Prisma.OpportunityScalarWhereInput
data: Prisma.XOR<Prisma.OpportunityUpdateManyMutationInput, Prisma.OpportunityUncheckedUpdateManyWithoutLocationInput>
}
export type OpportunityCreateWithoutDepartmentInput = {
id: number
uid?: string
name: string
notes?: string | null
oppNarrative?: string | null
interest?: $Enums.OpportunityInterest | null
probability?: number
source?: string | null
customerPO?: string | null
expectedCloseDate?: Date | string | null
pipelineChangeDate?: Date | string | null
dateBecameLead?: Date | string | null
closedDate?: Date | string | null
closedFlag?: boolean
closedById?: string | null
productSequence?: Prisma.OpportunityCreateproductSequenceInput | number[]
updatedBy: string
eneteredBy: string
createdAt?: Date | string
updatedAt?: Date | string
generatedQuotes?: Prisma.GeneratedQuotesCreateNestedManyWithoutOpportunityInput
type?: Prisma.OpportunityTypeCreateNestedOneWithoutOpportunitiesInput
stage?: Prisma.OpportunityStageCreateNestedOneWithoutOpportunitiesInput
status?: Prisma.OpportunityStatusCreateNestedOneWithoutOpportunitiesInput
taxCode?: Prisma.TaxCodeCreateNestedOneWithoutOpportunitiesInput
primarySalesRep?: Prisma.UserCreateNestedOneWithoutOpportunitiesInput
secondarySalesRep?: Prisma.UserCreateNestedOneWithoutOpportunitiesSecondaryInput
company?: Prisma.CompanyCreateNestedOneWithoutOpportunitiesInput
contact?: Prisma.ContactCreateNestedOneWithoutOpportunitiesInput
site?: Prisma.CompanyAddressCreateNestedOneWithoutOppportunitiesInput
location?: Prisma.CorporateLocationCreateNestedOneWithoutOpportunitiesInput
products?: Prisma.ProductDataCreateNestedManyWithoutOpportunityInput
}
export type OpportunityUncheckedCreateWithoutDepartmentInput = {
id: number
uid?: string
name: string
notes?: string | null
oppNarrative?: string | null
typeId?: number | null
stageId?: number | null
statusId?: number | null
taxCodeId?: number | null
interest?: $Enums.OpportunityInterest | null
probability?: number
source?: string | null
primarySalesRepId?: string | null
secondarySalesRepId?: string | null
companyId?: number | null
contactId?: number | null
siteId?: number | null
customerPO?: string | null
locationId?: number | null
expectedCloseDate?: Date | string | null
pipelineChangeDate?: Date | string | null
dateBecameLead?: Date | string | null
closedDate?: Date | string | null
closedFlag?: boolean
closedById?: string | null
productSequence?: Prisma.OpportunityCreateproductSequenceInput | number[]
updatedBy: string
eneteredBy: string
createdAt?: Date | string
updatedAt?: Date | string
generatedQuotes?: Prisma.GeneratedQuotesUncheckedCreateNestedManyWithoutOpportunityInput
products?: Prisma.ProductDataUncheckedCreateNestedManyWithoutOpportunityInput
}
export type OpportunityCreateOrConnectWithoutDepartmentInput = {
where: Prisma.OpportunityWhereUniqueInput
create: Prisma.XOR<Prisma.OpportunityCreateWithoutDepartmentInput, Prisma.OpportunityUncheckedCreateWithoutDepartmentInput>
}
export type OpportunityCreateManyDepartmentInputEnvelope = {
data: Prisma.OpportunityCreateManyDepartmentInput | Prisma.OpportunityCreateManyDepartmentInput[]
skipDuplicates?: boolean
}
export type OpportunityUpsertWithWhereUniqueWithoutDepartmentInput = {
where: Prisma.OpportunityWhereUniqueInput
update: Prisma.XOR<Prisma.OpportunityUpdateWithoutDepartmentInput, Prisma.OpportunityUncheckedUpdateWithoutDepartmentInput>
create: Prisma.XOR<Prisma.OpportunityCreateWithoutDepartmentInput, Prisma.OpportunityUncheckedCreateWithoutDepartmentInput>
}
export type OpportunityUpdateWithWhereUniqueWithoutDepartmentInput = {
where: Prisma.OpportunityWhereUniqueInput
data: Prisma.XOR<Prisma.OpportunityUpdateWithoutDepartmentInput, Prisma.OpportunityUncheckedUpdateWithoutDepartmentInput>
}
export type OpportunityUpdateManyWithWhereWithoutDepartmentInput = {
where: Prisma.OpportunityScalarWhereInput
data: Prisma.XOR<Prisma.OpportunityUpdateManyMutationInput, Prisma.OpportunityUncheckedUpdateManyWithoutDepartmentInput>
}
export type OpportunityCreateWithoutCompanyInput = {
id: number
uid?: string
name: string
notes?: string | null
oppNarrative?: string | null
interest?: $Enums.OpportunityInterest | null
probability?: number
source?: string | null
customerPO?: string | null
expectedCloseDate?: Date | string | null
pipelineChangeDate?: Date | string | null
dateBecameLead?: Date | string | null
closedDate?: Date | string | null
closedFlag?: boolean
closedById?: string | null
productSequence?: Prisma.OpportunityCreateproductSequenceInput | number[]
updatedBy: string
eneteredBy: string
createdAt?: Date | string
updatedAt?: Date | string
generatedQuotes?: Prisma.GeneratedQuotesCreateNestedManyWithoutOpportunityInput
type?: Prisma.OpportunityTypeCreateNestedOneWithoutOpportunitiesInput
stage?: Prisma.OpportunityStageCreateNestedOneWithoutOpportunitiesInput
status?: Prisma.OpportunityStatusCreateNestedOneWithoutOpportunitiesInput
taxCode?: Prisma.TaxCodeCreateNestedOneWithoutOpportunitiesInput
primarySalesRep?: Prisma.UserCreateNestedOneWithoutOpportunitiesInput
secondarySalesRep?: Prisma.UserCreateNestedOneWithoutOpportunitiesSecondaryInput
contact?: Prisma.ContactCreateNestedOneWithoutOpportunitiesInput
site?: Prisma.CompanyAddressCreateNestedOneWithoutOppportunitiesInput
location?: Prisma.CorporateLocationCreateNestedOneWithoutOpportunitiesInput
department?: Prisma.InternalDepartmentCreateNestedOneWithoutOpportunitiesInput
products?: Prisma.ProductDataCreateNestedManyWithoutOpportunityInput
}
export type OpportunityUncheckedCreateWithoutCompanyInput = {
id: number
uid?: string
name: string
notes?: string | null
oppNarrative?: string | null
typeId?: number | null
stageId?: number | null
statusId?: number | null
taxCodeId?: number | null
interest?: $Enums.OpportunityInterest | null
probability?: number
source?: string | null
primarySalesRepId?: string | null
secondarySalesRepId?: string | null
contactId?: number | null
siteId?: number | null
customerPO?: string | null
locationId?: number | null
departmentId?: number | null
expectedCloseDate?: Date | string | null
pipelineChangeDate?: Date | string | null
dateBecameLead?: Date | string | null
closedDate?: Date | string | null
closedFlag?: boolean
closedById?: string | null
productSequence?: Prisma.OpportunityCreateproductSequenceInput | number[]
updatedBy: string
eneteredBy: string
createdAt?: Date | string
updatedAt?: Date | string
generatedQuotes?: Prisma.GeneratedQuotesUncheckedCreateNestedManyWithoutOpportunityInput
products?: Prisma.ProductDataUncheckedCreateNestedManyWithoutOpportunityInput
}
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 OpportunityCreateWithoutSiteInput = {
id: number
uid?: string
name: string
notes?: string | null
oppNarrative?: string | null
interest?: $Enums.OpportunityInterest | null
probability?: number
source?: string | null
customerPO?: string | null
expectedCloseDate?: Date | string | null
pipelineChangeDate?: Date | string | null
dateBecameLead?: Date | string | null
closedDate?: Date | string | null
closedFlag?: boolean
closedById?: string | null
productSequence?: Prisma.OpportunityCreateproductSequenceInput | number[]
updatedBy: string
eneteredBy: string
createdAt?: Date | string
updatedAt?: Date | string
generatedQuotes?: Prisma.GeneratedQuotesCreateNestedManyWithoutOpportunityInput
type?: Prisma.OpportunityTypeCreateNestedOneWithoutOpportunitiesInput
stage?: Prisma.OpportunityStageCreateNestedOneWithoutOpportunitiesInput
status?: Prisma.OpportunityStatusCreateNestedOneWithoutOpportunitiesInput
taxCode?: Prisma.TaxCodeCreateNestedOneWithoutOpportunitiesInput
primarySalesRep?: Prisma.UserCreateNestedOneWithoutOpportunitiesInput
secondarySalesRep?: Prisma.UserCreateNestedOneWithoutOpportunitiesSecondaryInput
company?: Prisma.CompanyCreateNestedOneWithoutOpportunitiesInput
contact?: Prisma.ContactCreateNestedOneWithoutOpportunitiesInput
location?: Prisma.CorporateLocationCreateNestedOneWithoutOpportunitiesInput
department?: Prisma.InternalDepartmentCreateNestedOneWithoutOpportunitiesInput
products?: Prisma.ProductDataCreateNestedManyWithoutOpportunityInput
}
export type OpportunityUncheckedCreateWithoutSiteInput = {
id: number
uid?: string
name: string
notes?: string | null
oppNarrative?: string | null
typeId?: number | null
stageId?: number | null
statusId?: number | null
taxCodeId?: number | null
interest?: $Enums.OpportunityInterest | null
probability?: number
source?: string | null
primarySalesRepId?: string | null
secondarySalesRepId?: string | null
companyId?: number | null
contactId?: number | null
customerPO?: string | null
locationId?: number | null
departmentId?: number | null
expectedCloseDate?: Date | string | null
pipelineChangeDate?: Date | string | null
dateBecameLead?: Date | string | null
closedDate?: Date | string | null
closedFlag?: boolean
closedById?: string | null
productSequence?: Prisma.OpportunityCreateproductSequenceInput | number[]
updatedBy: string
eneteredBy: string
createdAt?: Date | string
updatedAt?: Date | string
generatedQuotes?: Prisma.GeneratedQuotesUncheckedCreateNestedManyWithoutOpportunityInput
products?: Prisma.ProductDataUncheckedCreateNestedManyWithoutOpportunityInput
}
export type OpportunityCreateOrConnectWithoutSiteInput = {
where: Prisma.OpportunityWhereUniqueInput
create: Prisma.XOR<Prisma.OpportunityCreateWithoutSiteInput, Prisma.OpportunityUncheckedCreateWithoutSiteInput>
}
export type OpportunityCreateManySiteInputEnvelope = {
data: Prisma.OpportunityCreateManySiteInput | Prisma.OpportunityCreateManySiteInput[]
skipDuplicates?: boolean
}
export type OpportunityUpsertWithWhereUniqueWithoutSiteInput = {
where: Prisma.OpportunityWhereUniqueInput
update: Prisma.XOR<Prisma.OpportunityUpdateWithoutSiteInput, Prisma.OpportunityUncheckedUpdateWithoutSiteInput>
create: Prisma.XOR<Prisma.OpportunityCreateWithoutSiteInput, Prisma.OpportunityUncheckedCreateWithoutSiteInput>
}
export type OpportunityUpdateWithWhereUniqueWithoutSiteInput = {
where: Prisma.OpportunityWhereUniqueInput
data: Prisma.XOR<Prisma.OpportunityUpdateWithoutSiteInput, Prisma.OpportunityUncheckedUpdateWithoutSiteInput>
}
export type OpportunityUpdateManyWithWhereWithoutSiteInput = {
where: Prisma.OpportunityScalarWhereInput
data: Prisma.XOR<Prisma.OpportunityUpdateManyMutationInput, Prisma.OpportunityUncheckedUpdateManyWithoutSiteInput>
}
export type OpportunityCreateWithoutContactInput = {
id: number
uid?: string
name: string
notes?: string | null
oppNarrative?: string | null
interest?: $Enums.OpportunityInterest | null
probability?: number
source?: string | null
customerPO?: string | null
expectedCloseDate?: Date | string | null
pipelineChangeDate?: Date | string | null
dateBecameLead?: Date | string | null
closedDate?: Date | string | null
closedFlag?: boolean
closedById?: string | null
productSequence?: Prisma.OpportunityCreateproductSequenceInput | number[]
updatedBy: string
eneteredBy: string
createdAt?: Date | string
updatedAt?: Date | string
generatedQuotes?: Prisma.GeneratedQuotesCreateNestedManyWithoutOpportunityInput
type?: Prisma.OpportunityTypeCreateNestedOneWithoutOpportunitiesInput
stage?: Prisma.OpportunityStageCreateNestedOneWithoutOpportunitiesInput
status?: Prisma.OpportunityStatusCreateNestedOneWithoutOpportunitiesInput
taxCode?: Prisma.TaxCodeCreateNestedOneWithoutOpportunitiesInput
primarySalesRep?: Prisma.UserCreateNestedOneWithoutOpportunitiesInput
secondarySalesRep?: Prisma.UserCreateNestedOneWithoutOpportunitiesSecondaryInput
company?: Prisma.CompanyCreateNestedOneWithoutOpportunitiesInput
site?: Prisma.CompanyAddressCreateNestedOneWithoutOppportunitiesInput
location?: Prisma.CorporateLocationCreateNestedOneWithoutOpportunitiesInput
department?: Prisma.InternalDepartmentCreateNestedOneWithoutOpportunitiesInput
products?: Prisma.ProductDataCreateNestedManyWithoutOpportunityInput
}
export type OpportunityUncheckedCreateWithoutContactInput = {
id: number
uid?: string
name: string
notes?: string | null
oppNarrative?: string | null
typeId?: number | null
stageId?: number | null
statusId?: number | null
taxCodeId?: number | null
interest?: $Enums.OpportunityInterest | null
probability?: number
source?: string | null
primarySalesRepId?: string | null
secondarySalesRepId?: string | null
companyId?: number | null
siteId?: number | null
customerPO?: string | null
locationId?: number | null
departmentId?: number | null
expectedCloseDate?: Date | string | null
pipelineChangeDate?: Date | string | null
dateBecameLead?: Date | string | null
closedDate?: Date | string | null
closedFlag?: boolean
closedById?: string | null
productSequence?: Prisma.OpportunityCreateproductSequenceInput | number[]
updatedBy: string
eneteredBy: string
createdAt?: Date | string
updatedAt?: Date | string
generatedQuotes?: Prisma.GeneratedQuotesUncheckedCreateNestedManyWithoutOpportunityInput
products?: Prisma.ProductDataUncheckedCreateNestedManyWithoutOpportunityInput
}
export type OpportunityCreateOrConnectWithoutContactInput = {
where: Prisma.OpportunityWhereUniqueInput
create: Prisma.XOR<Prisma.OpportunityCreateWithoutContactInput, Prisma.OpportunityUncheckedCreateWithoutContactInput>
}
export type OpportunityCreateManyContactInputEnvelope = {
data: Prisma.OpportunityCreateManyContactInput | Prisma.OpportunityCreateManyContactInput[]
skipDuplicates?: boolean
}
export type OpportunityUpsertWithWhereUniqueWithoutContactInput = {
where: Prisma.OpportunityWhereUniqueInput
update: Prisma.XOR<Prisma.OpportunityUpdateWithoutContactInput, Prisma.OpportunityUncheckedUpdateWithoutContactInput>
create: Prisma.XOR<Prisma.OpportunityCreateWithoutContactInput, Prisma.OpportunityUncheckedCreateWithoutContactInput>
}
export type OpportunityUpdateWithWhereUniqueWithoutContactInput = {
where: Prisma.OpportunityWhereUniqueInput
data: Prisma.XOR<Prisma.OpportunityUpdateWithoutContactInput, Prisma.OpportunityUncheckedUpdateWithoutContactInput>
}
export type OpportunityUpdateManyWithWhereWithoutContactInput = {
where: Prisma.OpportunityScalarWhereInput
data: Prisma.XOR<Prisma.OpportunityUpdateManyMutationInput, Prisma.OpportunityUncheckedUpdateManyWithoutContactInput>
}
export type OpportunityCreateWithoutProductsInput = {
id: number
uid?: string
name: string
notes?: string | null
oppNarrative?: string | null
interest?: $Enums.OpportunityInterest | null
probability?: number
source?: string | null
customerPO?: string | null
expectedCloseDate?: Date | string | null
pipelineChangeDate?: Date | string | null
dateBecameLead?: Date | string | null
closedDate?: Date | string | null
closedFlag?: boolean
closedById?: string | null
productSequence?: Prisma.OpportunityCreateproductSequenceInput | number[]
updatedBy: string
eneteredBy: string
createdAt?: Date | string
updatedAt?: Date | string
generatedQuotes?: Prisma.GeneratedQuotesCreateNestedManyWithoutOpportunityInput
type?: Prisma.OpportunityTypeCreateNestedOneWithoutOpportunitiesInput
stage?: Prisma.OpportunityStageCreateNestedOneWithoutOpportunitiesInput
status?: Prisma.OpportunityStatusCreateNestedOneWithoutOpportunitiesInput
taxCode?: Prisma.TaxCodeCreateNestedOneWithoutOpportunitiesInput
primarySalesRep?: Prisma.UserCreateNestedOneWithoutOpportunitiesInput
secondarySalesRep?: Prisma.UserCreateNestedOneWithoutOpportunitiesSecondaryInput
company?: Prisma.CompanyCreateNestedOneWithoutOpportunitiesInput
contact?: Prisma.ContactCreateNestedOneWithoutOpportunitiesInput
site?: Prisma.CompanyAddressCreateNestedOneWithoutOppportunitiesInput
location?: Prisma.CorporateLocationCreateNestedOneWithoutOpportunitiesInput
department?: Prisma.InternalDepartmentCreateNestedOneWithoutOpportunitiesInput
}
export type OpportunityUncheckedCreateWithoutProductsInput = {
id: number
uid?: string
name: string
notes?: string | null
oppNarrative?: string | null
typeId?: number | null
stageId?: number | null
statusId?: number | null
taxCodeId?: number | null
interest?: $Enums.OpportunityInterest | null
probability?: number
source?: string | null
primarySalesRepId?: string | null
secondarySalesRepId?: string | null
companyId?: number | null
contactId?: number | null
siteId?: number | null
customerPO?: string | null
locationId?: number | null
departmentId?: number | null
expectedCloseDate?: Date | string | null
pipelineChangeDate?: Date | string | null
dateBecameLead?: Date | string | null
closedDate?: Date | string | null
closedFlag?: boolean
closedById?: string | null
productSequence?: Prisma.OpportunityCreateproductSequenceInput | number[]
updatedBy: string
eneteredBy: string
createdAt?: Date | string
updatedAt?: Date | string
generatedQuotes?: Prisma.GeneratedQuotesUncheckedCreateNestedManyWithoutOpportunityInput
}
export type OpportunityCreateOrConnectWithoutProductsInput = {
where: Prisma.OpportunityWhereUniqueInput
create: Prisma.XOR<Prisma.OpportunityCreateWithoutProductsInput, Prisma.OpportunityUncheckedCreateWithoutProductsInput>
}
export type OpportunityUpsertWithoutProductsInput = {
update: Prisma.XOR<Prisma.OpportunityUpdateWithoutProductsInput, Prisma.OpportunityUncheckedUpdateWithoutProductsInput>
create: Prisma.XOR<Prisma.OpportunityCreateWithoutProductsInput, Prisma.OpportunityUncheckedCreateWithoutProductsInput>
where?: Prisma.OpportunityWhereInput
}
export type OpportunityUpdateToOneWithWhereWithoutProductsInput = {
where?: Prisma.OpportunityWhereInput
data: Prisma.XOR<Prisma.OpportunityUpdateWithoutProductsInput, Prisma.OpportunityUncheckedUpdateWithoutProductsInput>
}
export type OpportunityUpdateWithoutProductsInput = {
id?: Prisma.IntFieldUpdateOperationsInput | number
uid?: Prisma.StringFieldUpdateOperationsInput | string
name?: Prisma.StringFieldUpdateOperationsInput | string
notes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
oppNarrative?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
interest?: Prisma.NullableEnumOpportunityInterestFieldUpdateOperationsInput | $Enums.OpportunityInterest | null
probability?: Prisma.FloatFieldUpdateOperationsInput | number
source?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
customerPO?: Prisma.NullableStringFieldUpdateOperationsInput | string | 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
closedById?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
productSequence?: Prisma.OpportunityUpdateproductSequenceInput | number[]
updatedBy?: Prisma.StringFieldUpdateOperationsInput | string
eneteredBy?: Prisma.StringFieldUpdateOperationsInput | string
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
generatedQuotes?: Prisma.GeneratedQuotesUpdateManyWithoutOpportunityNestedInput
type?: Prisma.OpportunityTypeUpdateOneWithoutOpportunitiesNestedInput
stage?: Prisma.OpportunityStageUpdateOneWithoutOpportunitiesNestedInput
status?: Prisma.OpportunityStatusUpdateOneWithoutOpportunitiesNestedInput
taxCode?: Prisma.TaxCodeUpdateOneWithoutOpportunitiesNestedInput
primarySalesRep?: Prisma.UserUpdateOneWithoutOpportunitiesNestedInput
secondarySalesRep?: Prisma.UserUpdateOneWithoutOpportunitiesSecondaryNestedInput
company?: Prisma.CompanyUpdateOneWithoutOpportunitiesNestedInput
contact?: Prisma.ContactUpdateOneWithoutOpportunitiesNestedInput
site?: Prisma.CompanyAddressUpdateOneWithoutOppportunitiesNestedInput
location?: Prisma.CorporateLocationUpdateOneWithoutOpportunitiesNestedInput
department?: Prisma.InternalDepartmentUpdateOneWithoutOpportunitiesNestedInput
}
export type OpportunityUncheckedUpdateWithoutProductsInput = {
id?: Prisma.IntFieldUpdateOperationsInput | number
uid?: Prisma.StringFieldUpdateOperationsInput | string
name?: Prisma.StringFieldUpdateOperationsInput | string
notes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
oppNarrative?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
typeId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
stageId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
statusId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
taxCodeId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
interest?: Prisma.NullableEnumOpportunityInterestFieldUpdateOperationsInput | $Enums.OpportunityInterest | null
probability?: Prisma.FloatFieldUpdateOperationsInput | number
source?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
primarySalesRepId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
secondarySalesRepId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
companyId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
contactId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
siteId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
customerPO?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
locationId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
departmentId?: 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
closedById?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
productSequence?: Prisma.OpportunityUpdateproductSequenceInput | number[]
updatedBy?: Prisma.StringFieldUpdateOperationsInput | string
eneteredBy?: Prisma.StringFieldUpdateOperationsInput | string
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
generatedQuotes?: Prisma.GeneratedQuotesUncheckedUpdateManyWithoutOpportunityNestedInput
}
export type OpportunityCreateWithoutStageInput = {
id: number
uid?: string
name: string
notes?: string | null
oppNarrative?: string | null
interest?: $Enums.OpportunityInterest | null
probability?: number
source?: string | null
customerPO?: string | null
expectedCloseDate?: Date | string | null
pipelineChangeDate?: Date | string | null
dateBecameLead?: Date | string | null
closedDate?: Date | string | null
closedFlag?: boolean
closedById?: string | null
productSequence?: Prisma.OpportunityCreateproductSequenceInput | number[]
updatedBy: string
eneteredBy: string
createdAt?: Date | string
updatedAt?: Date | string
generatedQuotes?: Prisma.GeneratedQuotesCreateNestedManyWithoutOpportunityInput
type?: Prisma.OpportunityTypeCreateNestedOneWithoutOpportunitiesInput
status?: Prisma.OpportunityStatusCreateNestedOneWithoutOpportunitiesInput
taxCode?: Prisma.TaxCodeCreateNestedOneWithoutOpportunitiesInput
primarySalesRep?: Prisma.UserCreateNestedOneWithoutOpportunitiesInput
secondarySalesRep?: Prisma.UserCreateNestedOneWithoutOpportunitiesSecondaryInput
company?: Prisma.CompanyCreateNestedOneWithoutOpportunitiesInput
contact?: Prisma.ContactCreateNestedOneWithoutOpportunitiesInput
site?: Prisma.CompanyAddressCreateNestedOneWithoutOppportunitiesInput
location?: Prisma.CorporateLocationCreateNestedOneWithoutOpportunitiesInput
department?: Prisma.InternalDepartmentCreateNestedOneWithoutOpportunitiesInput
products?: Prisma.ProductDataCreateNestedManyWithoutOpportunityInput
}
export type OpportunityUncheckedCreateWithoutStageInput = {
id: number
uid?: string
name: string
notes?: string | null
oppNarrative?: string | null
typeId?: number | null
statusId?: number | null
taxCodeId?: number | null
interest?: $Enums.OpportunityInterest | null
probability?: number
source?: string | null
primarySalesRepId?: string | null
secondarySalesRepId?: string | null
companyId?: number | null
contactId?: number | null
siteId?: number | null
customerPO?: string | null
locationId?: number | null
departmentId?: number | null
expectedCloseDate?: Date | string | null
pipelineChangeDate?: Date | string | null
dateBecameLead?: Date | string | null
closedDate?: Date | string | null
closedFlag?: boolean
closedById?: string | null
productSequence?: Prisma.OpportunityCreateproductSequenceInput | number[]
updatedBy: string
eneteredBy: string
createdAt?: Date | string
updatedAt?: Date | string
generatedQuotes?: Prisma.GeneratedQuotesUncheckedCreateNestedManyWithoutOpportunityInput
products?: Prisma.ProductDataUncheckedCreateNestedManyWithoutOpportunityInput
}
export type OpportunityCreateOrConnectWithoutStageInput = {
where: Prisma.OpportunityWhereUniqueInput
create: Prisma.XOR<Prisma.OpportunityCreateWithoutStageInput, Prisma.OpportunityUncheckedCreateWithoutStageInput>
}
export type OpportunityCreateManyStageInputEnvelope = {
data: Prisma.OpportunityCreateManyStageInput | Prisma.OpportunityCreateManyStageInput[]
skipDuplicates?: boolean
}
export type OpportunityUpsertWithWhereUniqueWithoutStageInput = {
where: Prisma.OpportunityWhereUniqueInput
update: Prisma.XOR<Prisma.OpportunityUpdateWithoutStageInput, Prisma.OpportunityUncheckedUpdateWithoutStageInput>
create: Prisma.XOR<Prisma.OpportunityCreateWithoutStageInput, Prisma.OpportunityUncheckedCreateWithoutStageInput>
}
export type OpportunityUpdateWithWhereUniqueWithoutStageInput = {
where: Prisma.OpportunityWhereUniqueInput
data: Prisma.XOR<Prisma.OpportunityUpdateWithoutStageInput, Prisma.OpportunityUncheckedUpdateWithoutStageInput>
}
export type OpportunityUpdateManyWithWhereWithoutStageInput = {
where: Prisma.OpportunityScalarWhereInput
data: Prisma.XOR<Prisma.OpportunityUpdateManyMutationInput, Prisma.OpportunityUncheckedUpdateManyWithoutStageInput>
}
export type OpportunityCreateWithoutTypeInput = {
id: number
uid?: string
name: string
notes?: string | null
oppNarrative?: string | null
interest?: $Enums.OpportunityInterest | null
probability?: number
source?: string | null
customerPO?: string | null
expectedCloseDate?: Date | string | null
pipelineChangeDate?: Date | string | null
dateBecameLead?: Date | string | null
closedDate?: Date | string | null
closedFlag?: boolean
closedById?: string | null
productSequence?: Prisma.OpportunityCreateproductSequenceInput | number[]
updatedBy: string
eneteredBy: string
createdAt?: Date | string
updatedAt?: Date | string
generatedQuotes?: Prisma.GeneratedQuotesCreateNestedManyWithoutOpportunityInput
stage?: Prisma.OpportunityStageCreateNestedOneWithoutOpportunitiesInput
status?: Prisma.OpportunityStatusCreateNestedOneWithoutOpportunitiesInput
taxCode?: Prisma.TaxCodeCreateNestedOneWithoutOpportunitiesInput
primarySalesRep?: Prisma.UserCreateNestedOneWithoutOpportunitiesInput
secondarySalesRep?: Prisma.UserCreateNestedOneWithoutOpportunitiesSecondaryInput
company?: Prisma.CompanyCreateNestedOneWithoutOpportunitiesInput
contact?: Prisma.ContactCreateNestedOneWithoutOpportunitiesInput
site?: Prisma.CompanyAddressCreateNestedOneWithoutOppportunitiesInput
location?: Prisma.CorporateLocationCreateNestedOneWithoutOpportunitiesInput
department?: Prisma.InternalDepartmentCreateNestedOneWithoutOpportunitiesInput
products?: Prisma.ProductDataCreateNestedManyWithoutOpportunityInput
}
export type OpportunityUncheckedCreateWithoutTypeInput = {
id: number
uid?: string
name: string
notes?: string | null
oppNarrative?: string | null
stageId?: number | null
statusId?: number | null
taxCodeId?: number | null
interest?: $Enums.OpportunityInterest | null
probability?: number
source?: string | null
primarySalesRepId?: string | null
secondarySalesRepId?: string | null
companyId?: number | null
contactId?: number | null
siteId?: number | null
customerPO?: string | null
locationId?: number | null
departmentId?: number | null
expectedCloseDate?: Date | string | null
pipelineChangeDate?: Date | string | null
dateBecameLead?: Date | string | null
closedDate?: Date | string | null
closedFlag?: boolean
closedById?: string | null
productSequence?: Prisma.OpportunityCreateproductSequenceInput | number[]
updatedBy: string
eneteredBy: string
createdAt?: Date | string
updatedAt?: Date | string
generatedQuotes?: Prisma.GeneratedQuotesUncheckedCreateNestedManyWithoutOpportunityInput
products?: Prisma.ProductDataUncheckedCreateNestedManyWithoutOpportunityInput
}
export type OpportunityCreateOrConnectWithoutTypeInput = {
where: Prisma.OpportunityWhereUniqueInput
create: Prisma.XOR<Prisma.OpportunityCreateWithoutTypeInput, Prisma.OpportunityUncheckedCreateWithoutTypeInput>
}
export type OpportunityCreateManyTypeInputEnvelope = {
data: Prisma.OpportunityCreateManyTypeInput | Prisma.OpportunityCreateManyTypeInput[]
skipDuplicates?: boolean
}
export type OpportunityUpsertWithWhereUniqueWithoutTypeInput = {
where: Prisma.OpportunityWhereUniqueInput
update: Prisma.XOR<Prisma.OpportunityUpdateWithoutTypeInput, Prisma.OpportunityUncheckedUpdateWithoutTypeInput>
create: Prisma.XOR<Prisma.OpportunityCreateWithoutTypeInput, Prisma.OpportunityUncheckedCreateWithoutTypeInput>
}
export type OpportunityUpdateWithWhereUniqueWithoutTypeInput = {
where: Prisma.OpportunityWhereUniqueInput
data: Prisma.XOR<Prisma.OpportunityUpdateWithoutTypeInput, Prisma.OpportunityUncheckedUpdateWithoutTypeInput>
}
export type OpportunityUpdateManyWithWhereWithoutTypeInput = {
where: Prisma.OpportunityScalarWhereInput
data: Prisma.XOR<Prisma.OpportunityUpdateManyMutationInput, Prisma.OpportunityUncheckedUpdateManyWithoutTypeInput>
}
export type OpportunityCreateWithoutStatusInput = {
id: number
uid?: string
name: string
notes?: string | null
oppNarrative?: string | null
interest?: $Enums.OpportunityInterest | null
probability?: number
source?: string | null
customerPO?: string | null
expectedCloseDate?: Date | string | null
pipelineChangeDate?: Date | string | null
dateBecameLead?: Date | string | null
closedDate?: Date | string | null
closedFlag?: boolean
closedById?: string | null
productSequence?: Prisma.OpportunityCreateproductSequenceInput | number[]
updatedBy: string
eneteredBy: string
createdAt?: Date | string
updatedAt?: Date | string
generatedQuotes?: Prisma.GeneratedQuotesCreateNestedManyWithoutOpportunityInput
type?: Prisma.OpportunityTypeCreateNestedOneWithoutOpportunitiesInput
stage?: Prisma.OpportunityStageCreateNestedOneWithoutOpportunitiesInput
taxCode?: Prisma.TaxCodeCreateNestedOneWithoutOpportunitiesInput
primarySalesRep?: Prisma.UserCreateNestedOneWithoutOpportunitiesInput
secondarySalesRep?: Prisma.UserCreateNestedOneWithoutOpportunitiesSecondaryInput
company?: Prisma.CompanyCreateNestedOneWithoutOpportunitiesInput
contact?: Prisma.ContactCreateNestedOneWithoutOpportunitiesInput
site?: Prisma.CompanyAddressCreateNestedOneWithoutOppportunitiesInput
location?: Prisma.CorporateLocationCreateNestedOneWithoutOpportunitiesInput
department?: Prisma.InternalDepartmentCreateNestedOneWithoutOpportunitiesInput
products?: Prisma.ProductDataCreateNestedManyWithoutOpportunityInput
}
export type OpportunityUncheckedCreateWithoutStatusInput = {
id: number
uid?: string
name: string
notes?: string | null
oppNarrative?: string | null
typeId?: number | null
stageId?: number | null
taxCodeId?: number | null
interest?: $Enums.OpportunityInterest | null
probability?: number
source?: string | null
primarySalesRepId?: string | null
secondarySalesRepId?: string | null
companyId?: number | null
contactId?: number | null
siteId?: number | null
customerPO?: string | null
locationId?: number | null
departmentId?: number | null
expectedCloseDate?: Date | string | null
pipelineChangeDate?: Date | string | null
dateBecameLead?: Date | string | null
closedDate?: Date | string | null
closedFlag?: boolean
closedById?: string | null
productSequence?: Prisma.OpportunityCreateproductSequenceInput | number[]
updatedBy: string
eneteredBy: string
createdAt?: Date | string
updatedAt?: Date | string
generatedQuotes?: Prisma.GeneratedQuotesUncheckedCreateNestedManyWithoutOpportunityInput
products?: Prisma.ProductDataUncheckedCreateNestedManyWithoutOpportunityInput
}
export type OpportunityCreateOrConnectWithoutStatusInput = {
where: Prisma.OpportunityWhereUniqueInput
create: Prisma.XOR<Prisma.OpportunityCreateWithoutStatusInput, Prisma.OpportunityUncheckedCreateWithoutStatusInput>
}
export type OpportunityCreateManyStatusInputEnvelope = {
data: Prisma.OpportunityCreateManyStatusInput | Prisma.OpportunityCreateManyStatusInput[]
skipDuplicates?: boolean
}
export type OpportunityUpsertWithWhereUniqueWithoutStatusInput = {
where: Prisma.OpportunityWhereUniqueInput
update: Prisma.XOR<Prisma.OpportunityUpdateWithoutStatusInput, Prisma.OpportunityUncheckedUpdateWithoutStatusInput>
create: Prisma.XOR<Prisma.OpportunityCreateWithoutStatusInput, Prisma.OpportunityUncheckedCreateWithoutStatusInput>
}
export type OpportunityUpdateWithWhereUniqueWithoutStatusInput = {
where: Prisma.OpportunityWhereUniqueInput
data: Prisma.XOR<Prisma.OpportunityUpdateWithoutStatusInput, Prisma.OpportunityUncheckedUpdateWithoutStatusInput>
}
export type OpportunityUpdateManyWithWhereWithoutStatusInput = {
where: Prisma.OpportunityScalarWhereInput
data: Prisma.XOR<Prisma.OpportunityUpdateManyMutationInput, Prisma.OpportunityUncheckedUpdateManyWithoutStatusInput>
}
export type OpportunityCreateWithoutGeneratedQuotesInput = {
id: number
uid?: string
name: string
notes?: string | null
oppNarrative?: string | null
interest?: $Enums.OpportunityInterest | null
probability?: number
source?: string | null
customerPO?: string | null
expectedCloseDate?: Date | string | null
pipelineChangeDate?: Date | string | null
dateBecameLead?: Date | string | null
closedDate?: Date | string | null
closedFlag?: boolean
closedById?: string | null
productSequence?: Prisma.OpportunityCreateproductSequenceInput | number[]
updatedBy: string
eneteredBy: string
createdAt?: Date | string
updatedAt?: Date | string
type?: Prisma.OpportunityTypeCreateNestedOneWithoutOpportunitiesInput
stage?: Prisma.OpportunityStageCreateNestedOneWithoutOpportunitiesInput
status?: Prisma.OpportunityStatusCreateNestedOneWithoutOpportunitiesInput
taxCode?: Prisma.TaxCodeCreateNestedOneWithoutOpportunitiesInput
primarySalesRep?: Prisma.UserCreateNestedOneWithoutOpportunitiesInput
secondarySalesRep?: Prisma.UserCreateNestedOneWithoutOpportunitiesSecondaryInput
company?: Prisma.CompanyCreateNestedOneWithoutOpportunitiesInput
contact?: Prisma.ContactCreateNestedOneWithoutOpportunitiesInput
site?: Prisma.CompanyAddressCreateNestedOneWithoutOppportunitiesInput
location?: Prisma.CorporateLocationCreateNestedOneWithoutOpportunitiesInput
department?: Prisma.InternalDepartmentCreateNestedOneWithoutOpportunitiesInput
products?: Prisma.ProductDataCreateNestedManyWithoutOpportunityInput
}
export type OpportunityUncheckedCreateWithoutGeneratedQuotesInput = {
id: number
uid?: string
name: string
notes?: string | null
oppNarrative?: string | null
typeId?: number | null
stageId?: number | null
statusId?: number | null
taxCodeId?: number | null
interest?: $Enums.OpportunityInterest | null
probability?: number
source?: string | null
primarySalesRepId?: string | null
secondarySalesRepId?: string | null
companyId?: number | null
contactId?: number | null
siteId?: number | null
customerPO?: string | null
locationId?: number | null
departmentId?: number | null
expectedCloseDate?: Date | string | null
pipelineChangeDate?: Date | string | null
dateBecameLead?: Date | string | null
closedDate?: Date | string | null
closedFlag?: boolean
closedById?: string | null
productSequence?: Prisma.OpportunityCreateproductSequenceInput | number[]
updatedBy: string
eneteredBy: string
createdAt?: Date | string
updatedAt?: Date | string
products?: Prisma.ProductDataUncheckedCreateNestedManyWithoutOpportunityInput
}
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.IntFieldUpdateOperationsInput | number
uid?: Prisma.StringFieldUpdateOperationsInput | string
name?: Prisma.StringFieldUpdateOperationsInput | string
notes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
oppNarrative?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
interest?: Prisma.NullableEnumOpportunityInterestFieldUpdateOperationsInput | $Enums.OpportunityInterest | null
probability?: Prisma.FloatFieldUpdateOperationsInput | number
source?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
customerPO?: Prisma.NullableStringFieldUpdateOperationsInput | string | 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
closedById?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
productSequence?: Prisma.OpportunityUpdateproductSequenceInput | number[]
updatedBy?: Prisma.StringFieldUpdateOperationsInput | string
eneteredBy?: Prisma.StringFieldUpdateOperationsInput | string
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
type?: Prisma.OpportunityTypeUpdateOneWithoutOpportunitiesNestedInput
stage?: Prisma.OpportunityStageUpdateOneWithoutOpportunitiesNestedInput
status?: Prisma.OpportunityStatusUpdateOneWithoutOpportunitiesNestedInput
taxCode?: Prisma.TaxCodeUpdateOneWithoutOpportunitiesNestedInput
primarySalesRep?: Prisma.UserUpdateOneWithoutOpportunitiesNestedInput
secondarySalesRep?: Prisma.UserUpdateOneWithoutOpportunitiesSecondaryNestedInput
company?: Prisma.CompanyUpdateOneWithoutOpportunitiesNestedInput
contact?: Prisma.ContactUpdateOneWithoutOpportunitiesNestedInput
site?: Prisma.CompanyAddressUpdateOneWithoutOppportunitiesNestedInput
location?: Prisma.CorporateLocationUpdateOneWithoutOpportunitiesNestedInput
department?: Prisma.InternalDepartmentUpdateOneWithoutOpportunitiesNestedInput
products?: Prisma.ProductDataUpdateManyWithoutOpportunityNestedInput
}
export type OpportunityUncheckedUpdateWithoutGeneratedQuotesInput = {
id?: Prisma.IntFieldUpdateOperationsInput | number
uid?: Prisma.StringFieldUpdateOperationsInput | string
name?: Prisma.StringFieldUpdateOperationsInput | string
notes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
oppNarrative?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
typeId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
stageId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
statusId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
taxCodeId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
interest?: Prisma.NullableEnumOpportunityInterestFieldUpdateOperationsInput | $Enums.OpportunityInterest | null
probability?: Prisma.FloatFieldUpdateOperationsInput | number
source?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
primarySalesRepId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
secondarySalesRepId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
companyId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
contactId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
siteId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
customerPO?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
locationId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
departmentId?: 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
closedById?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
productSequence?: Prisma.OpportunityUpdateproductSequenceInput | number[]
updatedBy?: Prisma.StringFieldUpdateOperationsInput | string
eneteredBy?: Prisma.StringFieldUpdateOperationsInput | string
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
products?: Prisma.ProductDataUncheckedUpdateManyWithoutOpportunityNestedInput
}
export type OpportunityCreateWithoutTaxCodeInput = {
id: number
uid?: string
name: string
notes?: string | null
oppNarrative?: string | null
interest?: $Enums.OpportunityInterest | null
probability?: number
source?: string | null
customerPO?: string | null
expectedCloseDate?: Date | string | null
pipelineChangeDate?: Date | string | null
dateBecameLead?: Date | string | null
closedDate?: Date | string | null
closedFlag?: boolean
closedById?: string | null
productSequence?: Prisma.OpportunityCreateproductSequenceInput | number[]
updatedBy: string
eneteredBy: string
createdAt?: Date | string
updatedAt?: Date | string
generatedQuotes?: Prisma.GeneratedQuotesCreateNestedManyWithoutOpportunityInput
type?: Prisma.OpportunityTypeCreateNestedOneWithoutOpportunitiesInput
stage?: Prisma.OpportunityStageCreateNestedOneWithoutOpportunitiesInput
status?: Prisma.OpportunityStatusCreateNestedOneWithoutOpportunitiesInput
primarySalesRep?: Prisma.UserCreateNestedOneWithoutOpportunitiesInput
secondarySalesRep?: Prisma.UserCreateNestedOneWithoutOpportunitiesSecondaryInput
company?: Prisma.CompanyCreateNestedOneWithoutOpportunitiesInput
contact?: Prisma.ContactCreateNestedOneWithoutOpportunitiesInput
site?: Prisma.CompanyAddressCreateNestedOneWithoutOppportunitiesInput
location?: Prisma.CorporateLocationCreateNestedOneWithoutOpportunitiesInput
department?: Prisma.InternalDepartmentCreateNestedOneWithoutOpportunitiesInput
products?: Prisma.ProductDataCreateNestedManyWithoutOpportunityInput
}
export type OpportunityUncheckedCreateWithoutTaxCodeInput = {
id: number
uid?: string
name: string
notes?: string | null
oppNarrative?: string | null
typeId?: number | null
stageId?: number | null
statusId?: number | null
interest?: $Enums.OpportunityInterest | null
probability?: number
source?: string | null
primarySalesRepId?: string | null
secondarySalesRepId?: string | null
companyId?: number | null
contactId?: number | null
siteId?: number | null
customerPO?: string | null
locationId?: number | null
departmentId?: number | null
expectedCloseDate?: Date | string | null
pipelineChangeDate?: Date | string | null
dateBecameLead?: Date | string | null
closedDate?: Date | string | null
closedFlag?: boolean
closedById?: string | null
productSequence?: Prisma.OpportunityCreateproductSequenceInput | number[]
updatedBy: string
eneteredBy: string
createdAt?: Date | string
updatedAt?: Date | string
generatedQuotes?: Prisma.GeneratedQuotesUncheckedCreateNestedManyWithoutOpportunityInput
products?: Prisma.ProductDataUncheckedCreateNestedManyWithoutOpportunityInput
}
export type OpportunityCreateOrConnectWithoutTaxCodeInput = {
where: Prisma.OpportunityWhereUniqueInput
create: Prisma.XOR<Prisma.OpportunityCreateWithoutTaxCodeInput, Prisma.OpportunityUncheckedCreateWithoutTaxCodeInput>
}
export type OpportunityCreateManyTaxCodeInputEnvelope = {
data: Prisma.OpportunityCreateManyTaxCodeInput | Prisma.OpportunityCreateManyTaxCodeInput[]
skipDuplicates?: boolean
}
export type OpportunityUpsertWithWhereUniqueWithoutTaxCodeInput = {
where: Prisma.OpportunityWhereUniqueInput
update: Prisma.XOR<Prisma.OpportunityUpdateWithoutTaxCodeInput, Prisma.OpportunityUncheckedUpdateWithoutTaxCodeInput>
create: Prisma.XOR<Prisma.OpportunityCreateWithoutTaxCodeInput, Prisma.OpportunityUncheckedCreateWithoutTaxCodeInput>
}
export type OpportunityUpdateWithWhereUniqueWithoutTaxCodeInput = {
where: Prisma.OpportunityWhereUniqueInput
data: Prisma.XOR<Prisma.OpportunityUpdateWithoutTaxCodeInput, Prisma.OpportunityUncheckedUpdateWithoutTaxCodeInput>
}
export type OpportunityUpdateManyWithWhereWithoutTaxCodeInput = {
where: Prisma.OpportunityScalarWhereInput
data: Prisma.XOR<Prisma.OpportunityUpdateManyMutationInput, Prisma.OpportunityUncheckedUpdateManyWithoutTaxCodeInput>
}
export type OpportunityCreateManyPrimarySalesRepInput = {
id: number
uid?: string
name: string
notes?: string | null
oppNarrative?: string | null
typeId?: number | null
stageId?: number | null
statusId?: number | null
taxCodeId?: number | null
interest?: $Enums.OpportunityInterest | null
probability?: number
source?: string | null
secondarySalesRepId?: string | null
companyId?: number | null
contactId?: number | null
siteId?: number | null
customerPO?: string | null
locationId?: number | null
departmentId?: number | null
expectedCloseDate?: Date | string | null
pipelineChangeDate?: Date | string | null
dateBecameLead?: Date | string | null
closedDate?: Date | string | null
closedFlag?: boolean
closedById?: string | null
productSequence?: Prisma.OpportunityCreateproductSequenceInput | number[]
updatedBy: string
eneteredBy: string
createdAt?: Date | string
updatedAt?: Date | string
}
export type OpportunityCreateManySecondarySalesRepInput = {
id: number
uid?: string
name: string
notes?: string | null
oppNarrative?: string | null
typeId?: number | null
stageId?: number | null
statusId?: number | null
taxCodeId?: number | null
interest?: $Enums.OpportunityInterest | null
probability?: number
source?: string | null
primarySalesRepId?: string | null
companyId?: number | null
contactId?: number | null
siteId?: number | null
customerPO?: string | null
locationId?: number | null
departmentId?: number | null
expectedCloseDate?: Date | string | null
pipelineChangeDate?: Date | string | null
dateBecameLead?: Date | string | null
closedDate?: Date | string | null
closedFlag?: boolean
closedById?: string | null
productSequence?: Prisma.OpportunityCreateproductSequenceInput | number[]
updatedBy: string
eneteredBy: string
createdAt?: Date | string
updatedAt?: Date | string
}
export type OpportunityUpdateWithoutPrimarySalesRepInput = {
id?: Prisma.IntFieldUpdateOperationsInput | number
uid?: Prisma.StringFieldUpdateOperationsInput | string
name?: Prisma.StringFieldUpdateOperationsInput | string
notes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
oppNarrative?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
interest?: Prisma.NullableEnumOpportunityInterestFieldUpdateOperationsInput | $Enums.OpportunityInterest | null
probability?: Prisma.FloatFieldUpdateOperationsInput | number
source?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
customerPO?: Prisma.NullableStringFieldUpdateOperationsInput | string | 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
closedById?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
productSequence?: Prisma.OpportunityUpdateproductSequenceInput | number[]
updatedBy?: Prisma.StringFieldUpdateOperationsInput | string
eneteredBy?: Prisma.StringFieldUpdateOperationsInput | string
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
generatedQuotes?: Prisma.GeneratedQuotesUpdateManyWithoutOpportunityNestedInput
type?: Prisma.OpportunityTypeUpdateOneWithoutOpportunitiesNestedInput
stage?: Prisma.OpportunityStageUpdateOneWithoutOpportunitiesNestedInput
status?: Prisma.OpportunityStatusUpdateOneWithoutOpportunitiesNestedInput
taxCode?: Prisma.TaxCodeUpdateOneWithoutOpportunitiesNestedInput
secondarySalesRep?: Prisma.UserUpdateOneWithoutOpportunitiesSecondaryNestedInput
company?: Prisma.CompanyUpdateOneWithoutOpportunitiesNestedInput
contact?: Prisma.ContactUpdateOneWithoutOpportunitiesNestedInput
site?: Prisma.CompanyAddressUpdateOneWithoutOppportunitiesNestedInput
location?: Prisma.CorporateLocationUpdateOneWithoutOpportunitiesNestedInput
department?: Prisma.InternalDepartmentUpdateOneWithoutOpportunitiesNestedInput
products?: Prisma.ProductDataUpdateManyWithoutOpportunityNestedInput
}
export type OpportunityUncheckedUpdateWithoutPrimarySalesRepInput = {
id?: Prisma.IntFieldUpdateOperationsInput | number
uid?: Prisma.StringFieldUpdateOperationsInput | string
name?: Prisma.StringFieldUpdateOperationsInput | string
notes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
oppNarrative?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
typeId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
stageId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
statusId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
taxCodeId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
interest?: Prisma.NullableEnumOpportunityInterestFieldUpdateOperationsInput | $Enums.OpportunityInterest | null
probability?: Prisma.FloatFieldUpdateOperationsInput | number
source?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
secondarySalesRepId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
companyId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
contactId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
siteId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
customerPO?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
locationId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
departmentId?: 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
closedById?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
productSequence?: Prisma.OpportunityUpdateproductSequenceInput | number[]
updatedBy?: Prisma.StringFieldUpdateOperationsInput | string
eneteredBy?: Prisma.StringFieldUpdateOperationsInput | string
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
generatedQuotes?: Prisma.GeneratedQuotesUncheckedUpdateManyWithoutOpportunityNestedInput
products?: Prisma.ProductDataUncheckedUpdateManyWithoutOpportunityNestedInput
}
export type OpportunityUncheckedUpdateManyWithoutPrimarySalesRepInput = {
id?: Prisma.IntFieldUpdateOperationsInput | number
uid?: Prisma.StringFieldUpdateOperationsInput | string
name?: Prisma.StringFieldUpdateOperationsInput | string
notes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
oppNarrative?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
typeId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
stageId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
statusId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
taxCodeId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
interest?: Prisma.NullableEnumOpportunityInterestFieldUpdateOperationsInput | $Enums.OpportunityInterest | null
probability?: Prisma.FloatFieldUpdateOperationsInput | number
source?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
secondarySalesRepId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
companyId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
contactId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
siteId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
customerPO?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
locationId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
departmentId?: 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
closedById?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
productSequence?: Prisma.OpportunityUpdateproductSequenceInput | number[]
updatedBy?: Prisma.StringFieldUpdateOperationsInput | string
eneteredBy?: Prisma.StringFieldUpdateOperationsInput | string
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
}
export type OpportunityUpdateWithoutSecondarySalesRepInput = {
id?: Prisma.IntFieldUpdateOperationsInput | number
uid?: Prisma.StringFieldUpdateOperationsInput | string
name?: Prisma.StringFieldUpdateOperationsInput | string
notes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
oppNarrative?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
interest?: Prisma.NullableEnumOpportunityInterestFieldUpdateOperationsInput | $Enums.OpportunityInterest | null
probability?: Prisma.FloatFieldUpdateOperationsInput | number
source?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
customerPO?: Prisma.NullableStringFieldUpdateOperationsInput | string | 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
closedById?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
productSequence?: Prisma.OpportunityUpdateproductSequenceInput | number[]
updatedBy?: Prisma.StringFieldUpdateOperationsInput | string
eneteredBy?: Prisma.StringFieldUpdateOperationsInput | string
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
generatedQuotes?: Prisma.GeneratedQuotesUpdateManyWithoutOpportunityNestedInput
type?: Prisma.OpportunityTypeUpdateOneWithoutOpportunitiesNestedInput
stage?: Prisma.OpportunityStageUpdateOneWithoutOpportunitiesNestedInput
status?: Prisma.OpportunityStatusUpdateOneWithoutOpportunitiesNestedInput
taxCode?: Prisma.TaxCodeUpdateOneWithoutOpportunitiesNestedInput
primarySalesRep?: Prisma.UserUpdateOneWithoutOpportunitiesNestedInput
company?: Prisma.CompanyUpdateOneWithoutOpportunitiesNestedInput
contact?: Prisma.ContactUpdateOneWithoutOpportunitiesNestedInput
site?: Prisma.CompanyAddressUpdateOneWithoutOppportunitiesNestedInput
location?: Prisma.CorporateLocationUpdateOneWithoutOpportunitiesNestedInput
department?: Prisma.InternalDepartmentUpdateOneWithoutOpportunitiesNestedInput
products?: Prisma.ProductDataUpdateManyWithoutOpportunityNestedInput
}
export type OpportunityUncheckedUpdateWithoutSecondarySalesRepInput = {
id?: Prisma.IntFieldUpdateOperationsInput | number
uid?: Prisma.StringFieldUpdateOperationsInput | string
name?: Prisma.StringFieldUpdateOperationsInput | string
notes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
oppNarrative?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
typeId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
stageId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
statusId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
taxCodeId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
interest?: Prisma.NullableEnumOpportunityInterestFieldUpdateOperationsInput | $Enums.OpportunityInterest | null
probability?: Prisma.FloatFieldUpdateOperationsInput | number
source?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
primarySalesRepId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
companyId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
contactId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
siteId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
customerPO?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
locationId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
departmentId?: 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
closedById?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
productSequence?: Prisma.OpportunityUpdateproductSequenceInput | number[]
updatedBy?: Prisma.StringFieldUpdateOperationsInput | string
eneteredBy?: Prisma.StringFieldUpdateOperationsInput | string
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
generatedQuotes?: Prisma.GeneratedQuotesUncheckedUpdateManyWithoutOpportunityNestedInput
products?: Prisma.ProductDataUncheckedUpdateManyWithoutOpportunityNestedInput
}
export type OpportunityUncheckedUpdateManyWithoutSecondarySalesRepInput = {
id?: Prisma.IntFieldUpdateOperationsInput | number
uid?: Prisma.StringFieldUpdateOperationsInput | string
name?: Prisma.StringFieldUpdateOperationsInput | string
notes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
oppNarrative?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
typeId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
stageId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
statusId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
taxCodeId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
interest?: Prisma.NullableEnumOpportunityInterestFieldUpdateOperationsInput | $Enums.OpportunityInterest | null
probability?: Prisma.FloatFieldUpdateOperationsInput | number
source?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
primarySalesRepId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
companyId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
contactId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
siteId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
customerPO?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
locationId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
departmentId?: 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
closedById?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
productSequence?: Prisma.OpportunityUpdateproductSequenceInput | number[]
updatedBy?: Prisma.StringFieldUpdateOperationsInput | string
eneteredBy?: Prisma.StringFieldUpdateOperationsInput | string
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
}
export type OpportunityCreateManyLocationInput = {
id: number
uid?: string
name: string
notes?: string | null
oppNarrative?: string | null
typeId?: number | null
stageId?: number | null
statusId?: number | null
taxCodeId?: number | null
interest?: $Enums.OpportunityInterest | null
probability?: number
source?: string | null
primarySalesRepId?: string | null
secondarySalesRepId?: string | null
companyId?: number | null
contactId?: number | null
siteId?: number | null
customerPO?: string | null
departmentId?: number | null
expectedCloseDate?: Date | string | null
pipelineChangeDate?: Date | string | null
dateBecameLead?: Date | string | null
closedDate?: Date | string | null
closedFlag?: boolean
closedById?: string | null
productSequence?: Prisma.OpportunityCreateproductSequenceInput | number[]
updatedBy: string
eneteredBy: string
createdAt?: Date | string
updatedAt?: Date | string
}
export type OpportunityUpdateWithoutLocationInput = {
id?: Prisma.IntFieldUpdateOperationsInput | number
uid?: Prisma.StringFieldUpdateOperationsInput | string
name?: Prisma.StringFieldUpdateOperationsInput | string
notes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
oppNarrative?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
interest?: Prisma.NullableEnumOpportunityInterestFieldUpdateOperationsInput | $Enums.OpportunityInterest | null
probability?: Prisma.FloatFieldUpdateOperationsInput | number
source?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
customerPO?: Prisma.NullableStringFieldUpdateOperationsInput | string | 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
closedById?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
productSequence?: Prisma.OpportunityUpdateproductSequenceInput | number[]
updatedBy?: Prisma.StringFieldUpdateOperationsInput | string
eneteredBy?: Prisma.StringFieldUpdateOperationsInput | string
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
generatedQuotes?: Prisma.GeneratedQuotesUpdateManyWithoutOpportunityNestedInput
type?: Prisma.OpportunityTypeUpdateOneWithoutOpportunitiesNestedInput
stage?: Prisma.OpportunityStageUpdateOneWithoutOpportunitiesNestedInput
status?: Prisma.OpportunityStatusUpdateOneWithoutOpportunitiesNestedInput
taxCode?: Prisma.TaxCodeUpdateOneWithoutOpportunitiesNestedInput
primarySalesRep?: Prisma.UserUpdateOneWithoutOpportunitiesNestedInput
secondarySalesRep?: Prisma.UserUpdateOneWithoutOpportunitiesSecondaryNestedInput
company?: Prisma.CompanyUpdateOneWithoutOpportunitiesNestedInput
contact?: Prisma.ContactUpdateOneWithoutOpportunitiesNestedInput
site?: Prisma.CompanyAddressUpdateOneWithoutOppportunitiesNestedInput
department?: Prisma.InternalDepartmentUpdateOneWithoutOpportunitiesNestedInput
products?: Prisma.ProductDataUpdateManyWithoutOpportunityNestedInput
}
export type OpportunityUncheckedUpdateWithoutLocationInput = {
id?: Prisma.IntFieldUpdateOperationsInput | number
uid?: Prisma.StringFieldUpdateOperationsInput | string
name?: Prisma.StringFieldUpdateOperationsInput | string
notes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
oppNarrative?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
typeId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
stageId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
statusId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
taxCodeId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
interest?: Prisma.NullableEnumOpportunityInterestFieldUpdateOperationsInput | $Enums.OpportunityInterest | null
probability?: Prisma.FloatFieldUpdateOperationsInput | number
source?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
primarySalesRepId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
secondarySalesRepId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
companyId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
contactId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
siteId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
customerPO?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
departmentId?: 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
closedById?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
productSequence?: Prisma.OpportunityUpdateproductSequenceInput | number[]
updatedBy?: Prisma.StringFieldUpdateOperationsInput | string
eneteredBy?: Prisma.StringFieldUpdateOperationsInput | string
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
generatedQuotes?: Prisma.GeneratedQuotesUncheckedUpdateManyWithoutOpportunityNestedInput
products?: Prisma.ProductDataUncheckedUpdateManyWithoutOpportunityNestedInput
}
export type OpportunityUncheckedUpdateManyWithoutLocationInput = {
id?: Prisma.IntFieldUpdateOperationsInput | number
uid?: Prisma.StringFieldUpdateOperationsInput | string
name?: Prisma.StringFieldUpdateOperationsInput | string
notes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
oppNarrative?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
typeId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
stageId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
statusId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
taxCodeId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
interest?: Prisma.NullableEnumOpportunityInterestFieldUpdateOperationsInput | $Enums.OpportunityInterest | null
probability?: Prisma.FloatFieldUpdateOperationsInput | number
source?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
primarySalesRepId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
secondarySalesRepId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
companyId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
contactId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
siteId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
customerPO?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
departmentId?: 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
closedById?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
productSequence?: Prisma.OpportunityUpdateproductSequenceInput | number[]
updatedBy?: Prisma.StringFieldUpdateOperationsInput | string
eneteredBy?: Prisma.StringFieldUpdateOperationsInput | string
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
}
export type OpportunityCreateManyDepartmentInput = {
id: number
uid?: string
name: string
notes?: string | null
oppNarrative?: string | null
typeId?: number | null
stageId?: number | null
statusId?: number | null
taxCodeId?: number | null
interest?: $Enums.OpportunityInterest | null
probability?: number
source?: string | null
primarySalesRepId?: string | null
secondarySalesRepId?: string | null
companyId?: number | null
contactId?: number | null
siteId?: number | null
customerPO?: string | null
locationId?: number | null
expectedCloseDate?: Date | string | null
pipelineChangeDate?: Date | string | null
dateBecameLead?: Date | string | null
closedDate?: Date | string | null
closedFlag?: boolean
closedById?: string | null
productSequence?: Prisma.OpportunityCreateproductSequenceInput | number[]
updatedBy: string
eneteredBy: string
createdAt?: Date | string
updatedAt?: Date | string
}
export type OpportunityUpdateWithoutDepartmentInput = {
id?: Prisma.IntFieldUpdateOperationsInput | number
uid?: Prisma.StringFieldUpdateOperationsInput | string
name?: Prisma.StringFieldUpdateOperationsInput | string
notes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
oppNarrative?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
interest?: Prisma.NullableEnumOpportunityInterestFieldUpdateOperationsInput | $Enums.OpportunityInterest | null
probability?: Prisma.FloatFieldUpdateOperationsInput | number
source?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
customerPO?: Prisma.NullableStringFieldUpdateOperationsInput | string | 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
closedById?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
productSequence?: Prisma.OpportunityUpdateproductSequenceInput | number[]
updatedBy?: Prisma.StringFieldUpdateOperationsInput | string
eneteredBy?: Prisma.StringFieldUpdateOperationsInput | string
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
generatedQuotes?: Prisma.GeneratedQuotesUpdateManyWithoutOpportunityNestedInput
type?: Prisma.OpportunityTypeUpdateOneWithoutOpportunitiesNestedInput
stage?: Prisma.OpportunityStageUpdateOneWithoutOpportunitiesNestedInput
status?: Prisma.OpportunityStatusUpdateOneWithoutOpportunitiesNestedInput
taxCode?: Prisma.TaxCodeUpdateOneWithoutOpportunitiesNestedInput
primarySalesRep?: Prisma.UserUpdateOneWithoutOpportunitiesNestedInput
secondarySalesRep?: Prisma.UserUpdateOneWithoutOpportunitiesSecondaryNestedInput
company?: Prisma.CompanyUpdateOneWithoutOpportunitiesNestedInput
contact?: Prisma.ContactUpdateOneWithoutOpportunitiesNestedInput
site?: Prisma.CompanyAddressUpdateOneWithoutOppportunitiesNestedInput
location?: Prisma.CorporateLocationUpdateOneWithoutOpportunitiesNestedInput
products?: Prisma.ProductDataUpdateManyWithoutOpportunityNestedInput
}
export type OpportunityUncheckedUpdateWithoutDepartmentInput = {
id?: Prisma.IntFieldUpdateOperationsInput | number
uid?: Prisma.StringFieldUpdateOperationsInput | string
name?: Prisma.StringFieldUpdateOperationsInput | string
notes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
oppNarrative?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
typeId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
stageId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
statusId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
taxCodeId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
interest?: Prisma.NullableEnumOpportunityInterestFieldUpdateOperationsInput | $Enums.OpportunityInterest | null
probability?: Prisma.FloatFieldUpdateOperationsInput | number
source?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
primarySalesRepId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
secondarySalesRepId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
companyId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
contactId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
siteId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
customerPO?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
locationId?: 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
closedById?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
productSequence?: Prisma.OpportunityUpdateproductSequenceInput | number[]
updatedBy?: Prisma.StringFieldUpdateOperationsInput | string
eneteredBy?: Prisma.StringFieldUpdateOperationsInput | string
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
generatedQuotes?: Prisma.GeneratedQuotesUncheckedUpdateManyWithoutOpportunityNestedInput
products?: Prisma.ProductDataUncheckedUpdateManyWithoutOpportunityNestedInput
}
export type OpportunityUncheckedUpdateManyWithoutDepartmentInput = {
id?: Prisma.IntFieldUpdateOperationsInput | number
uid?: Prisma.StringFieldUpdateOperationsInput | string
name?: Prisma.StringFieldUpdateOperationsInput | string
notes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
oppNarrative?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
typeId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
stageId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
statusId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
taxCodeId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
interest?: Prisma.NullableEnumOpportunityInterestFieldUpdateOperationsInput | $Enums.OpportunityInterest | null
probability?: Prisma.FloatFieldUpdateOperationsInput | number
source?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
primarySalesRepId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
secondarySalesRepId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
companyId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
contactId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
siteId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
customerPO?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
locationId?: 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
closedById?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
productSequence?: Prisma.OpportunityUpdateproductSequenceInput | number[]
updatedBy?: Prisma.StringFieldUpdateOperationsInput | string
eneteredBy?: Prisma.StringFieldUpdateOperationsInput | string
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
}
export type OpportunityCreateManyCompanyInput = {
id: number
uid?: string
name: string
notes?: string | null
oppNarrative?: string | null
typeId?: number | null
stageId?: number | null
statusId?: number | null
taxCodeId?: number | null
interest?: $Enums.OpportunityInterest | null
probability?: number
source?: string | null
primarySalesRepId?: string | null
secondarySalesRepId?: string | null
contactId?: number | null
siteId?: number | null
customerPO?: string | null
locationId?: number | null
departmentId?: number | null
expectedCloseDate?: Date | string | null
pipelineChangeDate?: Date | string | null
dateBecameLead?: Date | string | null
closedDate?: Date | string | null
closedFlag?: boolean
closedById?: string | null
productSequence?: Prisma.OpportunityCreateproductSequenceInput | number[]
updatedBy: string
eneteredBy: string
createdAt?: Date | string
updatedAt?: Date | string
}
export type OpportunityUpdateWithoutCompanyInput = {
id?: Prisma.IntFieldUpdateOperationsInput | number
uid?: Prisma.StringFieldUpdateOperationsInput | string
name?: Prisma.StringFieldUpdateOperationsInput | string
notes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
oppNarrative?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
interest?: Prisma.NullableEnumOpportunityInterestFieldUpdateOperationsInput | $Enums.OpportunityInterest | null
probability?: Prisma.FloatFieldUpdateOperationsInput | number
source?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
customerPO?: Prisma.NullableStringFieldUpdateOperationsInput | string | 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
closedById?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
productSequence?: Prisma.OpportunityUpdateproductSequenceInput | number[]
updatedBy?: Prisma.StringFieldUpdateOperationsInput | string
eneteredBy?: Prisma.StringFieldUpdateOperationsInput | string
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
generatedQuotes?: Prisma.GeneratedQuotesUpdateManyWithoutOpportunityNestedInput
type?: Prisma.OpportunityTypeUpdateOneWithoutOpportunitiesNestedInput
stage?: Prisma.OpportunityStageUpdateOneWithoutOpportunitiesNestedInput
status?: Prisma.OpportunityStatusUpdateOneWithoutOpportunitiesNestedInput
taxCode?: Prisma.TaxCodeUpdateOneWithoutOpportunitiesNestedInput
primarySalesRep?: Prisma.UserUpdateOneWithoutOpportunitiesNestedInput
secondarySalesRep?: Prisma.UserUpdateOneWithoutOpportunitiesSecondaryNestedInput
contact?: Prisma.ContactUpdateOneWithoutOpportunitiesNestedInput
site?: Prisma.CompanyAddressUpdateOneWithoutOppportunitiesNestedInput
location?: Prisma.CorporateLocationUpdateOneWithoutOpportunitiesNestedInput
department?: Prisma.InternalDepartmentUpdateOneWithoutOpportunitiesNestedInput
products?: Prisma.ProductDataUpdateManyWithoutOpportunityNestedInput
}
export type OpportunityUncheckedUpdateWithoutCompanyInput = {
id?: Prisma.IntFieldUpdateOperationsInput | number
uid?: Prisma.StringFieldUpdateOperationsInput | string
name?: Prisma.StringFieldUpdateOperationsInput | string
notes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
oppNarrative?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
typeId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
stageId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
statusId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
taxCodeId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
interest?: Prisma.NullableEnumOpportunityInterestFieldUpdateOperationsInput | $Enums.OpportunityInterest | null
probability?: Prisma.FloatFieldUpdateOperationsInput | number
source?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
primarySalesRepId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
secondarySalesRepId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
contactId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
siteId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
customerPO?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
locationId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
departmentId?: 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
closedById?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
productSequence?: Prisma.OpportunityUpdateproductSequenceInput | number[]
updatedBy?: Prisma.StringFieldUpdateOperationsInput | string
eneteredBy?: Prisma.StringFieldUpdateOperationsInput | string
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
generatedQuotes?: Prisma.GeneratedQuotesUncheckedUpdateManyWithoutOpportunityNestedInput
products?: Prisma.ProductDataUncheckedUpdateManyWithoutOpportunityNestedInput
}
export type OpportunityUncheckedUpdateManyWithoutCompanyInput = {
id?: Prisma.IntFieldUpdateOperationsInput | number
uid?: Prisma.StringFieldUpdateOperationsInput | string
name?: Prisma.StringFieldUpdateOperationsInput | string
notes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
oppNarrative?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
typeId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
stageId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
statusId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
taxCodeId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
interest?: Prisma.NullableEnumOpportunityInterestFieldUpdateOperationsInput | $Enums.OpportunityInterest | null
probability?: Prisma.FloatFieldUpdateOperationsInput | number
source?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
primarySalesRepId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
secondarySalesRepId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
contactId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
siteId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
customerPO?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
locationId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
departmentId?: 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
closedById?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
productSequence?: Prisma.OpportunityUpdateproductSequenceInput | number[]
updatedBy?: Prisma.StringFieldUpdateOperationsInput | string
eneteredBy?: Prisma.StringFieldUpdateOperationsInput | string
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
}
export type OpportunityCreateManySiteInput = {
id: number
uid?: string
name: string
notes?: string | null
oppNarrative?: string | null
typeId?: number | null
stageId?: number | null
statusId?: number | null
taxCodeId?: number | null
interest?: $Enums.OpportunityInterest | null
probability?: number
source?: string | null
primarySalesRepId?: string | null
secondarySalesRepId?: string | null
companyId?: number | null
contactId?: number | null
customerPO?: string | null
locationId?: number | null
departmentId?: number | null
expectedCloseDate?: Date | string | null
pipelineChangeDate?: Date | string | null
dateBecameLead?: Date | string | null
closedDate?: Date | string | null
closedFlag?: boolean
closedById?: string | null
productSequence?: Prisma.OpportunityCreateproductSequenceInput | number[]
updatedBy: string
eneteredBy: string
createdAt?: Date | string
updatedAt?: Date | string
}
export type OpportunityUpdateWithoutSiteInput = {
id?: Prisma.IntFieldUpdateOperationsInput | number
uid?: Prisma.StringFieldUpdateOperationsInput | string
name?: Prisma.StringFieldUpdateOperationsInput | string
notes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
oppNarrative?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
interest?: Prisma.NullableEnumOpportunityInterestFieldUpdateOperationsInput | $Enums.OpportunityInterest | null
probability?: Prisma.FloatFieldUpdateOperationsInput | number
source?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
customerPO?: Prisma.NullableStringFieldUpdateOperationsInput | string | 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
closedById?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
productSequence?: Prisma.OpportunityUpdateproductSequenceInput | number[]
updatedBy?: Prisma.StringFieldUpdateOperationsInput | string
eneteredBy?: Prisma.StringFieldUpdateOperationsInput | string
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
generatedQuotes?: Prisma.GeneratedQuotesUpdateManyWithoutOpportunityNestedInput
type?: Prisma.OpportunityTypeUpdateOneWithoutOpportunitiesNestedInput
stage?: Prisma.OpportunityStageUpdateOneWithoutOpportunitiesNestedInput
status?: Prisma.OpportunityStatusUpdateOneWithoutOpportunitiesNestedInput
taxCode?: Prisma.TaxCodeUpdateOneWithoutOpportunitiesNestedInput
primarySalesRep?: Prisma.UserUpdateOneWithoutOpportunitiesNestedInput
secondarySalesRep?: Prisma.UserUpdateOneWithoutOpportunitiesSecondaryNestedInput
company?: Prisma.CompanyUpdateOneWithoutOpportunitiesNestedInput
contact?: Prisma.ContactUpdateOneWithoutOpportunitiesNestedInput
location?: Prisma.CorporateLocationUpdateOneWithoutOpportunitiesNestedInput
department?: Prisma.InternalDepartmentUpdateOneWithoutOpportunitiesNestedInput
products?: Prisma.ProductDataUpdateManyWithoutOpportunityNestedInput
}
export type OpportunityUncheckedUpdateWithoutSiteInput = {
id?: Prisma.IntFieldUpdateOperationsInput | number
uid?: Prisma.StringFieldUpdateOperationsInput | string
name?: Prisma.StringFieldUpdateOperationsInput | string
notes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
oppNarrative?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
typeId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
stageId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
statusId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
taxCodeId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
interest?: Prisma.NullableEnumOpportunityInterestFieldUpdateOperationsInput | $Enums.OpportunityInterest | null
probability?: Prisma.FloatFieldUpdateOperationsInput | number
source?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
primarySalesRepId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
secondarySalesRepId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
companyId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
contactId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
customerPO?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
locationId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
departmentId?: 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
closedById?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
productSequence?: Prisma.OpportunityUpdateproductSequenceInput | number[]
updatedBy?: Prisma.StringFieldUpdateOperationsInput | string
eneteredBy?: Prisma.StringFieldUpdateOperationsInput | string
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
generatedQuotes?: Prisma.GeneratedQuotesUncheckedUpdateManyWithoutOpportunityNestedInput
products?: Prisma.ProductDataUncheckedUpdateManyWithoutOpportunityNestedInput
}
export type OpportunityUncheckedUpdateManyWithoutSiteInput = {
id?: Prisma.IntFieldUpdateOperationsInput | number
uid?: Prisma.StringFieldUpdateOperationsInput | string
name?: Prisma.StringFieldUpdateOperationsInput | string
notes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
oppNarrative?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
typeId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
stageId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
statusId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
taxCodeId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
interest?: Prisma.NullableEnumOpportunityInterestFieldUpdateOperationsInput | $Enums.OpportunityInterest | null
probability?: Prisma.FloatFieldUpdateOperationsInput | number
source?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
primarySalesRepId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
secondarySalesRepId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
companyId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
contactId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
customerPO?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
locationId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
departmentId?: 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
closedById?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
productSequence?: Prisma.OpportunityUpdateproductSequenceInput | number[]
updatedBy?: Prisma.StringFieldUpdateOperationsInput | string
eneteredBy?: Prisma.StringFieldUpdateOperationsInput | string
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
}
export type OpportunityCreateManyContactInput = {
id: number
uid?: string
name: string
notes?: string | null
oppNarrative?: string | null
typeId?: number | null
stageId?: number | null
statusId?: number | null
taxCodeId?: number | null
interest?: $Enums.OpportunityInterest | null
probability?: number
source?: string | null
primarySalesRepId?: string | null
secondarySalesRepId?: string | null
companyId?: number | null
siteId?: number | null
customerPO?: string | null
locationId?: number | null
departmentId?: number | null
expectedCloseDate?: Date | string | null
pipelineChangeDate?: Date | string | null
dateBecameLead?: Date | string | null
closedDate?: Date | string | null
closedFlag?: boolean
closedById?: string | null
productSequence?: Prisma.OpportunityCreateproductSequenceInput | number[]
updatedBy: string
eneteredBy: string
createdAt?: Date | string
updatedAt?: Date | string
}
export type OpportunityUpdateWithoutContactInput = {
id?: Prisma.IntFieldUpdateOperationsInput | number
uid?: Prisma.StringFieldUpdateOperationsInput | string
name?: Prisma.StringFieldUpdateOperationsInput | string
notes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
oppNarrative?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
interest?: Prisma.NullableEnumOpportunityInterestFieldUpdateOperationsInput | $Enums.OpportunityInterest | null
probability?: Prisma.FloatFieldUpdateOperationsInput | number
source?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
customerPO?: Prisma.NullableStringFieldUpdateOperationsInput | string | 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
closedById?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
productSequence?: Prisma.OpportunityUpdateproductSequenceInput | number[]
updatedBy?: Prisma.StringFieldUpdateOperationsInput | string
eneteredBy?: Prisma.StringFieldUpdateOperationsInput | string
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
generatedQuotes?: Prisma.GeneratedQuotesUpdateManyWithoutOpportunityNestedInput
type?: Prisma.OpportunityTypeUpdateOneWithoutOpportunitiesNestedInput
stage?: Prisma.OpportunityStageUpdateOneWithoutOpportunitiesNestedInput
status?: Prisma.OpportunityStatusUpdateOneWithoutOpportunitiesNestedInput
taxCode?: Prisma.TaxCodeUpdateOneWithoutOpportunitiesNestedInput
primarySalesRep?: Prisma.UserUpdateOneWithoutOpportunitiesNestedInput
secondarySalesRep?: Prisma.UserUpdateOneWithoutOpportunitiesSecondaryNestedInput
company?: Prisma.CompanyUpdateOneWithoutOpportunitiesNestedInput
site?: Prisma.CompanyAddressUpdateOneWithoutOppportunitiesNestedInput
location?: Prisma.CorporateLocationUpdateOneWithoutOpportunitiesNestedInput
department?: Prisma.InternalDepartmentUpdateOneWithoutOpportunitiesNestedInput
products?: Prisma.ProductDataUpdateManyWithoutOpportunityNestedInput
}
export type OpportunityUncheckedUpdateWithoutContactInput = {
id?: Prisma.IntFieldUpdateOperationsInput | number
uid?: Prisma.StringFieldUpdateOperationsInput | string
name?: Prisma.StringFieldUpdateOperationsInput | string
notes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
oppNarrative?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
typeId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
stageId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
statusId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
taxCodeId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
interest?: Prisma.NullableEnumOpportunityInterestFieldUpdateOperationsInput | $Enums.OpportunityInterest | null
probability?: Prisma.FloatFieldUpdateOperationsInput | number
source?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
primarySalesRepId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
secondarySalesRepId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
companyId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
siteId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
customerPO?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
locationId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
departmentId?: 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
closedById?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
productSequence?: Prisma.OpportunityUpdateproductSequenceInput | number[]
updatedBy?: Prisma.StringFieldUpdateOperationsInput | string
eneteredBy?: Prisma.StringFieldUpdateOperationsInput | string
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
generatedQuotes?: Prisma.GeneratedQuotesUncheckedUpdateManyWithoutOpportunityNestedInput
products?: Prisma.ProductDataUncheckedUpdateManyWithoutOpportunityNestedInput
}
export type OpportunityUncheckedUpdateManyWithoutContactInput = {
id?: Prisma.IntFieldUpdateOperationsInput | number
uid?: Prisma.StringFieldUpdateOperationsInput | string
name?: Prisma.StringFieldUpdateOperationsInput | string
notes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
oppNarrative?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
typeId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
stageId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
statusId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
taxCodeId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
interest?: Prisma.NullableEnumOpportunityInterestFieldUpdateOperationsInput | $Enums.OpportunityInterest | null
probability?: Prisma.FloatFieldUpdateOperationsInput | number
source?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
primarySalesRepId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
secondarySalesRepId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
companyId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
siteId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
customerPO?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
locationId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
departmentId?: 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
closedById?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
productSequence?: Prisma.OpportunityUpdateproductSequenceInput | number[]
updatedBy?: Prisma.StringFieldUpdateOperationsInput | string
eneteredBy?: Prisma.StringFieldUpdateOperationsInput | string
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
}
export type OpportunityCreateManyStageInput = {
id: number
uid?: string
name: string
notes?: string | null
oppNarrative?: string | null
typeId?: number | null
statusId?: number | null
taxCodeId?: number | null
interest?: $Enums.OpportunityInterest | null
probability?: number
source?: string | null
primarySalesRepId?: string | null
secondarySalesRepId?: string | null
companyId?: number | null
contactId?: number | null
siteId?: number | null
customerPO?: string | null
locationId?: number | null
departmentId?: number | null
expectedCloseDate?: Date | string | null
pipelineChangeDate?: Date | string | null
dateBecameLead?: Date | string | null
closedDate?: Date | string | null
closedFlag?: boolean
closedById?: string | null
productSequence?: Prisma.OpportunityCreateproductSequenceInput | number[]
updatedBy: string
eneteredBy: string
createdAt?: Date | string
updatedAt?: Date | string
}
export type OpportunityUpdateWithoutStageInput = {
id?: Prisma.IntFieldUpdateOperationsInput | number
uid?: Prisma.StringFieldUpdateOperationsInput | string
name?: Prisma.StringFieldUpdateOperationsInput | string
notes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
oppNarrative?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
interest?: Prisma.NullableEnumOpportunityInterestFieldUpdateOperationsInput | $Enums.OpportunityInterest | null
probability?: Prisma.FloatFieldUpdateOperationsInput | number
source?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
customerPO?: Prisma.NullableStringFieldUpdateOperationsInput | string | 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
closedById?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
productSequence?: Prisma.OpportunityUpdateproductSequenceInput | number[]
updatedBy?: Prisma.StringFieldUpdateOperationsInput | string
eneteredBy?: Prisma.StringFieldUpdateOperationsInput | string
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
generatedQuotes?: Prisma.GeneratedQuotesUpdateManyWithoutOpportunityNestedInput
type?: Prisma.OpportunityTypeUpdateOneWithoutOpportunitiesNestedInput
status?: Prisma.OpportunityStatusUpdateOneWithoutOpportunitiesNestedInput
taxCode?: Prisma.TaxCodeUpdateOneWithoutOpportunitiesNestedInput
primarySalesRep?: Prisma.UserUpdateOneWithoutOpportunitiesNestedInput
secondarySalesRep?: Prisma.UserUpdateOneWithoutOpportunitiesSecondaryNestedInput
company?: Prisma.CompanyUpdateOneWithoutOpportunitiesNestedInput
contact?: Prisma.ContactUpdateOneWithoutOpportunitiesNestedInput
site?: Prisma.CompanyAddressUpdateOneWithoutOppportunitiesNestedInput
location?: Prisma.CorporateLocationUpdateOneWithoutOpportunitiesNestedInput
department?: Prisma.InternalDepartmentUpdateOneWithoutOpportunitiesNestedInput
products?: Prisma.ProductDataUpdateManyWithoutOpportunityNestedInput
}
export type OpportunityUncheckedUpdateWithoutStageInput = {
id?: Prisma.IntFieldUpdateOperationsInput | number
uid?: Prisma.StringFieldUpdateOperationsInput | string
name?: Prisma.StringFieldUpdateOperationsInput | string
notes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
oppNarrative?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
typeId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
statusId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
taxCodeId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
interest?: Prisma.NullableEnumOpportunityInterestFieldUpdateOperationsInput | $Enums.OpportunityInterest | null
probability?: Prisma.FloatFieldUpdateOperationsInput | number
source?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
primarySalesRepId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
secondarySalesRepId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
companyId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
contactId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
siteId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
customerPO?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
locationId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
departmentId?: 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
closedById?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
productSequence?: Prisma.OpportunityUpdateproductSequenceInput | number[]
updatedBy?: Prisma.StringFieldUpdateOperationsInput | string
eneteredBy?: Prisma.StringFieldUpdateOperationsInput | string
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
generatedQuotes?: Prisma.GeneratedQuotesUncheckedUpdateManyWithoutOpportunityNestedInput
products?: Prisma.ProductDataUncheckedUpdateManyWithoutOpportunityNestedInput
}
export type OpportunityUncheckedUpdateManyWithoutStageInput = {
id?: Prisma.IntFieldUpdateOperationsInput | number
uid?: Prisma.StringFieldUpdateOperationsInput | string
name?: Prisma.StringFieldUpdateOperationsInput | string
notes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
oppNarrative?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
typeId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
statusId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
taxCodeId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
interest?: Prisma.NullableEnumOpportunityInterestFieldUpdateOperationsInput | $Enums.OpportunityInterest | null
probability?: Prisma.FloatFieldUpdateOperationsInput | number
source?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
primarySalesRepId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
secondarySalesRepId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
companyId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
contactId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
siteId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
customerPO?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
locationId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
departmentId?: 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
closedById?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
productSequence?: Prisma.OpportunityUpdateproductSequenceInput | number[]
updatedBy?: Prisma.StringFieldUpdateOperationsInput | string
eneteredBy?: Prisma.StringFieldUpdateOperationsInput | string
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
}
export type OpportunityCreateManyTypeInput = {
id: number
uid?: string
name: string
notes?: string | null
oppNarrative?: string | null
stageId?: number | null
statusId?: number | null
taxCodeId?: number | null
interest?: $Enums.OpportunityInterest | null
probability?: number
source?: string | null
primarySalesRepId?: string | null
secondarySalesRepId?: string | null
companyId?: number | null
contactId?: number | null
siteId?: number | null
customerPO?: string | null
locationId?: number | null
departmentId?: number | null
expectedCloseDate?: Date | string | null
pipelineChangeDate?: Date | string | null
dateBecameLead?: Date | string | null
closedDate?: Date | string | null
closedFlag?: boolean
closedById?: string | null
productSequence?: Prisma.OpportunityCreateproductSequenceInput | number[]
updatedBy: string
eneteredBy: string
createdAt?: Date | string
updatedAt?: Date | string
}
export type OpportunityUpdateWithoutTypeInput = {
id?: Prisma.IntFieldUpdateOperationsInput | number
uid?: Prisma.StringFieldUpdateOperationsInput | string
name?: Prisma.StringFieldUpdateOperationsInput | string
notes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
oppNarrative?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
interest?: Prisma.NullableEnumOpportunityInterestFieldUpdateOperationsInput | $Enums.OpportunityInterest | null
probability?: Prisma.FloatFieldUpdateOperationsInput | number
source?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
customerPO?: Prisma.NullableStringFieldUpdateOperationsInput | string | 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
closedById?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
productSequence?: Prisma.OpportunityUpdateproductSequenceInput | number[]
updatedBy?: Prisma.StringFieldUpdateOperationsInput | string
eneteredBy?: Prisma.StringFieldUpdateOperationsInput | string
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
generatedQuotes?: Prisma.GeneratedQuotesUpdateManyWithoutOpportunityNestedInput
stage?: Prisma.OpportunityStageUpdateOneWithoutOpportunitiesNestedInput
status?: Prisma.OpportunityStatusUpdateOneWithoutOpportunitiesNestedInput
taxCode?: Prisma.TaxCodeUpdateOneWithoutOpportunitiesNestedInput
primarySalesRep?: Prisma.UserUpdateOneWithoutOpportunitiesNestedInput
secondarySalesRep?: Prisma.UserUpdateOneWithoutOpportunitiesSecondaryNestedInput
company?: Prisma.CompanyUpdateOneWithoutOpportunitiesNestedInput
contact?: Prisma.ContactUpdateOneWithoutOpportunitiesNestedInput
site?: Prisma.CompanyAddressUpdateOneWithoutOppportunitiesNestedInput
location?: Prisma.CorporateLocationUpdateOneWithoutOpportunitiesNestedInput
department?: Prisma.InternalDepartmentUpdateOneWithoutOpportunitiesNestedInput
products?: Prisma.ProductDataUpdateManyWithoutOpportunityNestedInput
}
export type OpportunityUncheckedUpdateWithoutTypeInput = {
id?: Prisma.IntFieldUpdateOperationsInput | number
uid?: Prisma.StringFieldUpdateOperationsInput | string
name?: Prisma.StringFieldUpdateOperationsInput | string
notes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
oppNarrative?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
stageId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
statusId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
taxCodeId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
interest?: Prisma.NullableEnumOpportunityInterestFieldUpdateOperationsInput | $Enums.OpportunityInterest | null
probability?: Prisma.FloatFieldUpdateOperationsInput | number
source?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
primarySalesRepId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
secondarySalesRepId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
companyId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
contactId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
siteId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
customerPO?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
locationId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
departmentId?: 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
closedById?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
productSequence?: Prisma.OpportunityUpdateproductSequenceInput | number[]
updatedBy?: Prisma.StringFieldUpdateOperationsInput | string
eneteredBy?: Prisma.StringFieldUpdateOperationsInput | string
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
generatedQuotes?: Prisma.GeneratedQuotesUncheckedUpdateManyWithoutOpportunityNestedInput
products?: Prisma.ProductDataUncheckedUpdateManyWithoutOpportunityNestedInput
}
export type OpportunityUncheckedUpdateManyWithoutTypeInput = {
id?: Prisma.IntFieldUpdateOperationsInput | number
uid?: Prisma.StringFieldUpdateOperationsInput | string
name?: Prisma.StringFieldUpdateOperationsInput | string
notes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
oppNarrative?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
stageId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
statusId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
taxCodeId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
interest?: Prisma.NullableEnumOpportunityInterestFieldUpdateOperationsInput | $Enums.OpportunityInterest | null
probability?: Prisma.FloatFieldUpdateOperationsInput | number
source?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
primarySalesRepId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
secondarySalesRepId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
companyId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
contactId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
siteId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
customerPO?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
locationId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
departmentId?: 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
closedById?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
productSequence?: Prisma.OpportunityUpdateproductSequenceInput | number[]
updatedBy?: Prisma.StringFieldUpdateOperationsInput | string
eneteredBy?: Prisma.StringFieldUpdateOperationsInput | string
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
}
export type OpportunityCreateManyStatusInput = {
id: number
uid?: string
name: string
notes?: string | null
oppNarrative?: string | null
typeId?: number | null
stageId?: number | null
taxCodeId?: number | null
interest?: $Enums.OpportunityInterest | null
probability?: number
source?: string | null
primarySalesRepId?: string | null
secondarySalesRepId?: string | null
companyId?: number | null
contactId?: number | null
siteId?: number | null
customerPO?: string | null
locationId?: number | null
departmentId?: number | null
expectedCloseDate?: Date | string | null
pipelineChangeDate?: Date | string | null
dateBecameLead?: Date | string | null
closedDate?: Date | string | null
closedFlag?: boolean
closedById?: string | null
productSequence?: Prisma.OpportunityCreateproductSequenceInput | number[]
updatedBy: string
eneteredBy: string
createdAt?: Date | string
updatedAt?: Date | string
}
export type OpportunityUpdateWithoutStatusInput = {
id?: Prisma.IntFieldUpdateOperationsInput | number
uid?: Prisma.StringFieldUpdateOperationsInput | string
name?: Prisma.StringFieldUpdateOperationsInput | string
notes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
oppNarrative?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
interest?: Prisma.NullableEnumOpportunityInterestFieldUpdateOperationsInput | $Enums.OpportunityInterest | null
probability?: Prisma.FloatFieldUpdateOperationsInput | number
source?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
customerPO?: Prisma.NullableStringFieldUpdateOperationsInput | string | 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
closedById?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
productSequence?: Prisma.OpportunityUpdateproductSequenceInput | number[]
updatedBy?: Prisma.StringFieldUpdateOperationsInput | string
eneteredBy?: Prisma.StringFieldUpdateOperationsInput | string
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
generatedQuotes?: Prisma.GeneratedQuotesUpdateManyWithoutOpportunityNestedInput
type?: Prisma.OpportunityTypeUpdateOneWithoutOpportunitiesNestedInput
stage?: Prisma.OpportunityStageUpdateOneWithoutOpportunitiesNestedInput
taxCode?: Prisma.TaxCodeUpdateOneWithoutOpportunitiesNestedInput
primarySalesRep?: Prisma.UserUpdateOneWithoutOpportunitiesNestedInput
secondarySalesRep?: Prisma.UserUpdateOneWithoutOpportunitiesSecondaryNestedInput
company?: Prisma.CompanyUpdateOneWithoutOpportunitiesNestedInput
contact?: Prisma.ContactUpdateOneWithoutOpportunitiesNestedInput
site?: Prisma.CompanyAddressUpdateOneWithoutOppportunitiesNestedInput
location?: Prisma.CorporateLocationUpdateOneWithoutOpportunitiesNestedInput
department?: Prisma.InternalDepartmentUpdateOneWithoutOpportunitiesNestedInput
products?: Prisma.ProductDataUpdateManyWithoutOpportunityNestedInput
}
export type OpportunityUncheckedUpdateWithoutStatusInput = {
id?: Prisma.IntFieldUpdateOperationsInput | number
uid?: Prisma.StringFieldUpdateOperationsInput | string
name?: Prisma.StringFieldUpdateOperationsInput | string
notes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
oppNarrative?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
typeId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
stageId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
taxCodeId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
interest?: Prisma.NullableEnumOpportunityInterestFieldUpdateOperationsInput | $Enums.OpportunityInterest | null
probability?: Prisma.FloatFieldUpdateOperationsInput | number
source?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
primarySalesRepId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
secondarySalesRepId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
companyId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
contactId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
siteId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
customerPO?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
locationId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
departmentId?: 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
closedById?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
productSequence?: Prisma.OpportunityUpdateproductSequenceInput | number[]
updatedBy?: Prisma.StringFieldUpdateOperationsInput | string
eneteredBy?: Prisma.StringFieldUpdateOperationsInput | string
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
generatedQuotes?: Prisma.GeneratedQuotesUncheckedUpdateManyWithoutOpportunityNestedInput
products?: Prisma.ProductDataUncheckedUpdateManyWithoutOpportunityNestedInput
}
export type OpportunityUncheckedUpdateManyWithoutStatusInput = {
id?: Prisma.IntFieldUpdateOperationsInput | number
uid?: Prisma.StringFieldUpdateOperationsInput | string
name?: Prisma.StringFieldUpdateOperationsInput | string
notes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
oppNarrative?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
typeId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
stageId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
taxCodeId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
interest?: Prisma.NullableEnumOpportunityInterestFieldUpdateOperationsInput | $Enums.OpportunityInterest | null
probability?: Prisma.FloatFieldUpdateOperationsInput | number
source?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
primarySalesRepId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
secondarySalesRepId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
companyId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
contactId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
siteId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
customerPO?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
locationId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
departmentId?: 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
closedById?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
productSequence?: Prisma.OpportunityUpdateproductSequenceInput | number[]
updatedBy?: Prisma.StringFieldUpdateOperationsInput | string
eneteredBy?: Prisma.StringFieldUpdateOperationsInput | string
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
}
export type OpportunityCreateManyTaxCodeInput = {
id: number
uid?: string
name: string
notes?: string | null
oppNarrative?: string | null
typeId?: number | null
stageId?: number | null
statusId?: number | null
interest?: $Enums.OpportunityInterest | null
probability?: number
source?: string | null
primarySalesRepId?: string | null
secondarySalesRepId?: string | null
companyId?: number | null
contactId?: number | null
siteId?: number | null
customerPO?: string | null
locationId?: number | null
departmentId?: number | null
expectedCloseDate?: Date | string | null
pipelineChangeDate?: Date | string | null
dateBecameLead?: Date | string | null
closedDate?: Date | string | null
closedFlag?: boolean
closedById?: string | null
productSequence?: Prisma.OpportunityCreateproductSequenceInput | number[]
updatedBy: string
eneteredBy: string
createdAt?: Date | string
updatedAt?: Date | string
}
export type OpportunityUpdateWithoutTaxCodeInput = {
id?: Prisma.IntFieldUpdateOperationsInput | number
uid?: Prisma.StringFieldUpdateOperationsInput | string
name?: Prisma.StringFieldUpdateOperationsInput | string
notes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
oppNarrative?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
interest?: Prisma.NullableEnumOpportunityInterestFieldUpdateOperationsInput | $Enums.OpportunityInterest | null
probability?: Prisma.FloatFieldUpdateOperationsInput | number
source?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
customerPO?: Prisma.NullableStringFieldUpdateOperationsInput | string | 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
closedById?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
productSequence?: Prisma.OpportunityUpdateproductSequenceInput | number[]
updatedBy?: Prisma.StringFieldUpdateOperationsInput | string
eneteredBy?: Prisma.StringFieldUpdateOperationsInput | string
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
generatedQuotes?: Prisma.GeneratedQuotesUpdateManyWithoutOpportunityNestedInput
type?: Prisma.OpportunityTypeUpdateOneWithoutOpportunitiesNestedInput
stage?: Prisma.OpportunityStageUpdateOneWithoutOpportunitiesNestedInput
status?: Prisma.OpportunityStatusUpdateOneWithoutOpportunitiesNestedInput
primarySalesRep?: Prisma.UserUpdateOneWithoutOpportunitiesNestedInput
secondarySalesRep?: Prisma.UserUpdateOneWithoutOpportunitiesSecondaryNestedInput
company?: Prisma.CompanyUpdateOneWithoutOpportunitiesNestedInput
contact?: Prisma.ContactUpdateOneWithoutOpportunitiesNestedInput
site?: Prisma.CompanyAddressUpdateOneWithoutOppportunitiesNestedInput
location?: Prisma.CorporateLocationUpdateOneWithoutOpportunitiesNestedInput
department?: Prisma.InternalDepartmentUpdateOneWithoutOpportunitiesNestedInput
products?: Prisma.ProductDataUpdateManyWithoutOpportunityNestedInput
}
export type OpportunityUncheckedUpdateWithoutTaxCodeInput = {
id?: Prisma.IntFieldUpdateOperationsInput | number
uid?: Prisma.StringFieldUpdateOperationsInput | string
name?: Prisma.StringFieldUpdateOperationsInput | string
notes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
oppNarrative?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
typeId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
stageId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
statusId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
interest?: Prisma.NullableEnumOpportunityInterestFieldUpdateOperationsInput | $Enums.OpportunityInterest | null
probability?: Prisma.FloatFieldUpdateOperationsInput | number
source?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
primarySalesRepId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
secondarySalesRepId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
companyId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
contactId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
siteId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
customerPO?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
locationId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
departmentId?: 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
closedById?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
productSequence?: Prisma.OpportunityUpdateproductSequenceInput | number[]
updatedBy?: Prisma.StringFieldUpdateOperationsInput | string
eneteredBy?: Prisma.StringFieldUpdateOperationsInput | string
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
generatedQuotes?: Prisma.GeneratedQuotesUncheckedUpdateManyWithoutOpportunityNestedInput
products?: Prisma.ProductDataUncheckedUpdateManyWithoutOpportunityNestedInput
}
export type OpportunityUncheckedUpdateManyWithoutTaxCodeInput = {
id?: Prisma.IntFieldUpdateOperationsInput | number
uid?: Prisma.StringFieldUpdateOperationsInput | string
name?: Prisma.StringFieldUpdateOperationsInput | string
notes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
oppNarrative?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
typeId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
stageId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
statusId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
interest?: Prisma.NullableEnumOpportunityInterestFieldUpdateOperationsInput | $Enums.OpportunityInterest | null
probability?: Prisma.FloatFieldUpdateOperationsInput | number
source?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
primarySalesRepId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
secondarySalesRepId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
companyId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
contactId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
siteId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
customerPO?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
locationId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
departmentId?: 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
closedById?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
productSequence?: Prisma.OpportunityUpdateproductSequenceInput | number[]
updatedBy?: Prisma.StringFieldUpdateOperationsInput | string
eneteredBy?: Prisma.StringFieldUpdateOperationsInput | string
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
}
/**
* Count Type OpportunityCountOutputType
*/
export type OpportunityCountOutputType = {
generatedQuotes: number
products: number
}
export type OpportunityCountOutputTypeSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
generatedQuotes?: boolean | OpportunityCountOutputTypeCountGeneratedQuotesArgs
products?: boolean | OpportunityCountOutputTypeCountProductsArgs
}
/**
* 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
}
/**
* OpportunityCountOutputType without action
*/
export type OpportunityCountOutputTypeCountProductsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
where?: Prisma.ProductDataWhereInput
}
export type OpportunitySelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
id?: boolean
uid?: boolean
name?: boolean
notes?: boolean
oppNarrative?: boolean
typeId?: boolean
stageId?: boolean
statusId?: boolean
taxCodeId?: boolean
interest?: boolean
probability?: boolean
source?: boolean
primarySalesRepId?: boolean
secondarySalesRepId?: boolean
companyId?: boolean
contactId?: boolean
siteId?: boolean
customerPO?: boolean
locationId?: boolean
departmentId?: boolean
expectedCloseDate?: boolean
pipelineChangeDate?: boolean
dateBecameLead?: boolean
closedDate?: boolean
closedFlag?: boolean
closedById?: boolean
productSequence?: boolean
updatedBy?: boolean
eneteredBy?: boolean
createdAt?: boolean
updatedAt?: boolean
generatedQuotes?: boolean | Prisma.Opportunity$generatedQuotesArgs<ExtArgs>
type?: boolean | Prisma.Opportunity$typeArgs<ExtArgs>
stage?: boolean | Prisma.Opportunity$stageArgs<ExtArgs>
status?: boolean | Prisma.Opportunity$statusArgs<ExtArgs>
taxCode?: boolean | Prisma.Opportunity$taxCodeArgs<ExtArgs>
primarySalesRep?: boolean | Prisma.Opportunity$primarySalesRepArgs<ExtArgs>
secondarySalesRep?: boolean | Prisma.Opportunity$secondarySalesRepArgs<ExtArgs>
company?: boolean | Prisma.Opportunity$companyArgs<ExtArgs>
contact?: boolean | Prisma.Opportunity$contactArgs<ExtArgs>
site?: boolean | Prisma.Opportunity$siteArgs<ExtArgs>
location?: boolean | Prisma.Opportunity$locationArgs<ExtArgs>
department?: boolean | Prisma.Opportunity$departmentArgs<ExtArgs>
products?: boolean | Prisma.Opportunity$productsArgs<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
uid?: boolean
name?: boolean
notes?: boolean
oppNarrative?: boolean
typeId?: boolean
stageId?: boolean
statusId?: boolean
taxCodeId?: boolean
interest?: boolean
probability?: boolean
source?: boolean
primarySalesRepId?: boolean
secondarySalesRepId?: boolean
companyId?: boolean
contactId?: boolean
siteId?: boolean
customerPO?: boolean
locationId?: boolean
departmentId?: boolean
expectedCloseDate?: boolean
pipelineChangeDate?: boolean
dateBecameLead?: boolean
closedDate?: boolean
closedFlag?: boolean
closedById?: boolean
productSequence?: boolean
updatedBy?: boolean
eneteredBy?: boolean
createdAt?: boolean
updatedAt?: boolean
type?: boolean | Prisma.Opportunity$typeArgs<ExtArgs>
stage?: boolean | Prisma.Opportunity$stageArgs<ExtArgs>
status?: boolean | Prisma.Opportunity$statusArgs<ExtArgs>
taxCode?: boolean | Prisma.Opportunity$taxCodeArgs<ExtArgs>
primarySalesRep?: boolean | Prisma.Opportunity$primarySalesRepArgs<ExtArgs>
secondarySalesRep?: boolean | Prisma.Opportunity$secondarySalesRepArgs<ExtArgs>
company?: boolean | Prisma.Opportunity$companyArgs<ExtArgs>
contact?: boolean | Prisma.Opportunity$contactArgs<ExtArgs>
site?: boolean | Prisma.Opportunity$siteArgs<ExtArgs>
location?: boolean | Prisma.Opportunity$locationArgs<ExtArgs>
department?: boolean | Prisma.Opportunity$departmentArgs<ExtArgs>
}, ExtArgs["result"]["opportunity"]>
export type OpportunitySelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
id?: boolean
uid?: boolean
name?: boolean
notes?: boolean
oppNarrative?: boolean
typeId?: boolean
stageId?: boolean
statusId?: boolean
taxCodeId?: boolean
interest?: boolean
probability?: boolean
source?: boolean
primarySalesRepId?: boolean
secondarySalesRepId?: boolean
companyId?: boolean
contactId?: boolean
siteId?: boolean
customerPO?: boolean
locationId?: boolean
departmentId?: boolean
expectedCloseDate?: boolean
pipelineChangeDate?: boolean
dateBecameLead?: boolean
closedDate?: boolean
closedFlag?: boolean
closedById?: boolean
productSequence?: boolean
updatedBy?: boolean
eneteredBy?: boolean
createdAt?: boolean
updatedAt?: boolean
type?: boolean | Prisma.Opportunity$typeArgs<ExtArgs>
stage?: boolean | Prisma.Opportunity$stageArgs<ExtArgs>
status?: boolean | Prisma.Opportunity$statusArgs<ExtArgs>
taxCode?: boolean | Prisma.Opportunity$taxCodeArgs<ExtArgs>
primarySalesRep?: boolean | Prisma.Opportunity$primarySalesRepArgs<ExtArgs>
secondarySalesRep?: boolean | Prisma.Opportunity$secondarySalesRepArgs<ExtArgs>
company?: boolean | Prisma.Opportunity$companyArgs<ExtArgs>
contact?: boolean | Prisma.Opportunity$contactArgs<ExtArgs>
site?: boolean | Prisma.Opportunity$siteArgs<ExtArgs>
location?: boolean | Prisma.Opportunity$locationArgs<ExtArgs>
department?: boolean | Prisma.Opportunity$departmentArgs<ExtArgs>
}, ExtArgs["result"]["opportunity"]>
export type OpportunitySelectScalar = {
id?: boolean
uid?: boolean
name?: boolean
notes?: boolean
oppNarrative?: boolean
typeId?: boolean
stageId?: boolean
statusId?: boolean
taxCodeId?: boolean
interest?: boolean
probability?: boolean
source?: boolean
primarySalesRepId?: boolean
secondarySalesRepId?: boolean
companyId?: boolean
contactId?: boolean
siteId?: boolean
customerPO?: boolean
locationId?: boolean
departmentId?: boolean
expectedCloseDate?: boolean
pipelineChangeDate?: boolean
dateBecameLead?: boolean
closedDate?: boolean
closedFlag?: boolean
closedById?: boolean
productSequence?: boolean
updatedBy?: boolean
eneteredBy?: boolean
createdAt?: boolean
updatedAt?: boolean
}
export type OpportunityOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "uid" | "name" | "notes" | "oppNarrative" | "typeId" | "stageId" | "statusId" | "taxCodeId" | "interest" | "probability" | "source" | "primarySalesRepId" | "secondarySalesRepId" | "companyId" | "contactId" | "siteId" | "customerPO" | "locationId" | "departmentId" | "expectedCloseDate" | "pipelineChangeDate" | "dateBecameLead" | "closedDate" | "closedFlag" | "closedById" | "productSequence" | "updatedBy" | "eneteredBy" | "createdAt" | "updatedAt", ExtArgs["result"]["opportunity"]>
export type OpportunityInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
generatedQuotes?: boolean | Prisma.Opportunity$generatedQuotesArgs<ExtArgs>
type?: boolean | Prisma.Opportunity$typeArgs<ExtArgs>
stage?: boolean | Prisma.Opportunity$stageArgs<ExtArgs>
status?: boolean | Prisma.Opportunity$statusArgs<ExtArgs>
taxCode?: boolean | Prisma.Opportunity$taxCodeArgs<ExtArgs>
primarySalesRep?: boolean | Prisma.Opportunity$primarySalesRepArgs<ExtArgs>
secondarySalesRep?: boolean | Prisma.Opportunity$secondarySalesRepArgs<ExtArgs>
company?: boolean | Prisma.Opportunity$companyArgs<ExtArgs>
contact?: boolean | Prisma.Opportunity$contactArgs<ExtArgs>
site?: boolean | Prisma.Opportunity$siteArgs<ExtArgs>
location?: boolean | Prisma.Opportunity$locationArgs<ExtArgs>
department?: boolean | Prisma.Opportunity$departmentArgs<ExtArgs>
products?: boolean | Prisma.Opportunity$productsArgs<ExtArgs>
_count?: boolean | Prisma.OpportunityCountOutputTypeDefaultArgs<ExtArgs>
}
export type OpportunityIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
type?: boolean | Prisma.Opportunity$typeArgs<ExtArgs>
stage?: boolean | Prisma.Opportunity$stageArgs<ExtArgs>
status?: boolean | Prisma.Opportunity$statusArgs<ExtArgs>
taxCode?: boolean | Prisma.Opportunity$taxCodeArgs<ExtArgs>
primarySalesRep?: boolean | Prisma.Opportunity$primarySalesRepArgs<ExtArgs>
secondarySalesRep?: boolean | Prisma.Opportunity$secondarySalesRepArgs<ExtArgs>
company?: boolean | Prisma.Opportunity$companyArgs<ExtArgs>
contact?: boolean | Prisma.Opportunity$contactArgs<ExtArgs>
site?: boolean | Prisma.Opportunity$siteArgs<ExtArgs>
location?: boolean | Prisma.Opportunity$locationArgs<ExtArgs>
department?: boolean | Prisma.Opportunity$departmentArgs<ExtArgs>
}
export type OpportunityIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
type?: boolean | Prisma.Opportunity$typeArgs<ExtArgs>
stage?: boolean | Prisma.Opportunity$stageArgs<ExtArgs>
status?: boolean | Prisma.Opportunity$statusArgs<ExtArgs>
taxCode?: boolean | Prisma.Opportunity$taxCodeArgs<ExtArgs>
primarySalesRep?: boolean | Prisma.Opportunity$primarySalesRepArgs<ExtArgs>
secondarySalesRep?: boolean | Prisma.Opportunity$secondarySalesRepArgs<ExtArgs>
company?: boolean | Prisma.Opportunity$companyArgs<ExtArgs>
contact?: boolean | Prisma.Opportunity$contactArgs<ExtArgs>
site?: boolean | Prisma.Opportunity$siteArgs<ExtArgs>
location?: boolean | Prisma.Opportunity$locationArgs<ExtArgs>
department?: boolean | Prisma.Opportunity$departmentArgs<ExtArgs>
}
export type $OpportunityPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
name: "Opportunity"
objects: {
generatedQuotes: Prisma.$GeneratedQuotesPayload<ExtArgs>[]
type: Prisma.$OpportunityTypePayload<ExtArgs> | null
stage: Prisma.$OpportunityStagePayload<ExtArgs> | null
status: Prisma.$OpportunityStatusPayload<ExtArgs> | null
taxCode: Prisma.$TaxCodePayload<ExtArgs> | null
primarySalesRep: Prisma.$UserPayload<ExtArgs> | null
secondarySalesRep: Prisma.$UserPayload<ExtArgs> | null
company: Prisma.$CompanyPayload<ExtArgs> | null
contact: Prisma.$ContactPayload<ExtArgs> | null
site: Prisma.$CompanyAddressPayload<ExtArgs> | null
location: Prisma.$CorporateLocationPayload<ExtArgs> | null
department: Prisma.$InternalDepartmentPayload<ExtArgs> | null
products: Prisma.$ProductDataPayload<ExtArgs>[]
}
scalars: runtime.Types.Extensions.GetPayloadResult<{
id: number
uid: string
name: string
notes: string | null
oppNarrative: string | null
typeId: number | null
stageId: number | null
statusId: number | null
taxCodeId: number | null
interest: $Enums.OpportunityInterest | null
probability: number
source: string | null
primarySalesRepId: string | null
secondarySalesRepId: string | null
companyId: number | null
contactId: number | null
siteId: number | null
customerPO: string | null
locationId: number | null
departmentId: number | null
expectedCloseDate: Date | null
pipelineChangeDate: Date | null
dateBecameLead: Date | null
closedDate: Date | null
closedFlag: boolean
closedById: string | null
productSequence: number[]
updatedBy: string
eneteredBy: string
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>
type<T extends Prisma.Opportunity$typeArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Opportunity$typeArgs<ExtArgs>>): Prisma.Prisma__OpportunityTypeClient<runtime.Types.Result.GetResult<Prisma.$OpportunityTypePayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
stage<T extends Prisma.Opportunity$stageArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Opportunity$stageArgs<ExtArgs>>): Prisma.Prisma__OpportunityStageClient<runtime.Types.Result.GetResult<Prisma.$OpportunityStagePayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
status<T extends Prisma.Opportunity$statusArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Opportunity$statusArgs<ExtArgs>>): Prisma.Prisma__OpportunityStatusClient<runtime.Types.Result.GetResult<Prisma.$OpportunityStatusPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
taxCode<T extends Prisma.Opportunity$taxCodeArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Opportunity$taxCodeArgs<ExtArgs>>): Prisma.Prisma__TaxCodeClient<runtime.Types.Result.GetResult<Prisma.$TaxCodePayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
primarySalesRep<T extends Prisma.Opportunity$primarySalesRepArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Opportunity$primarySalesRepArgs<ExtArgs>>): Prisma.Prisma__UserClient<runtime.Types.Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
secondarySalesRep<T extends Prisma.Opportunity$secondarySalesRepArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Opportunity$secondarySalesRepArgs<ExtArgs>>): Prisma.Prisma__UserClient<runtime.Types.Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
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>
contact<T extends Prisma.Opportunity$contactArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Opportunity$contactArgs<ExtArgs>>): Prisma.Prisma__ContactClient<runtime.Types.Result.GetResult<Prisma.$ContactPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
site<T extends Prisma.Opportunity$siteArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Opportunity$siteArgs<ExtArgs>>): Prisma.Prisma__CompanyAddressClient<runtime.Types.Result.GetResult<Prisma.$CompanyAddressPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
location<T extends Prisma.Opportunity$locationArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Opportunity$locationArgs<ExtArgs>>): Prisma.Prisma__CorporateLocationClient<runtime.Types.Result.GetResult<Prisma.$CorporateLocationPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
department<T extends Prisma.Opportunity$departmentArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Opportunity$departmentArgs<ExtArgs>>): Prisma.Prisma__InternalDepartmentClient<runtime.Types.Result.GetResult<Prisma.$InternalDepartmentPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
products<T extends Prisma.Opportunity$productsArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Opportunity$productsArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$ProductDataPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
/**
* 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", 'Int'>
readonly uid: Prisma.FieldRef<"Opportunity", 'String'>
readonly name: Prisma.FieldRef<"Opportunity", 'String'>
readonly notes: Prisma.FieldRef<"Opportunity", 'String'>
readonly oppNarrative: Prisma.FieldRef<"Opportunity", 'String'>
readonly typeId: Prisma.FieldRef<"Opportunity", 'Int'>
readonly stageId: Prisma.FieldRef<"Opportunity", 'Int'>
readonly statusId: Prisma.FieldRef<"Opportunity", 'Int'>
readonly taxCodeId: Prisma.FieldRef<"Opportunity", 'Int'>
readonly interest: Prisma.FieldRef<"Opportunity", 'OpportunityInterest'>
readonly probability: Prisma.FieldRef<"Opportunity", 'Float'>
readonly source: Prisma.FieldRef<"Opportunity", 'String'>
readonly primarySalesRepId: Prisma.FieldRef<"Opportunity", 'String'>
readonly secondarySalesRepId: Prisma.FieldRef<"Opportunity", 'String'>
readonly companyId: Prisma.FieldRef<"Opportunity", 'Int'>
readonly contactId: Prisma.FieldRef<"Opportunity", 'Int'>
readonly siteId: Prisma.FieldRef<"Opportunity", 'Int'>
readonly customerPO: Prisma.FieldRef<"Opportunity", 'String'>
readonly locationId: Prisma.FieldRef<"Opportunity", 'Int'>
readonly departmentId: 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 closedById: Prisma.FieldRef<"Opportunity", 'String'>
readonly productSequence: Prisma.FieldRef<"Opportunity", 'Int[]'>
readonly updatedBy: Prisma.FieldRef<"Opportunity", 'String'>
readonly eneteredBy: Prisma.FieldRef<"Opportunity", 'String'>
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
/**
* {@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 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.type
*/
export type Opportunity$typeArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the OpportunityType
*/
select?: Prisma.OpportunityTypeSelect<ExtArgs> | null
/**
* Omit specific fields from the OpportunityType
*/
omit?: Prisma.OpportunityTypeOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.OpportunityTypeInclude<ExtArgs> | null
where?: Prisma.OpportunityTypeWhereInput
}
/**
* Opportunity.stage
*/
export type Opportunity$stageArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the OpportunityStage
*/
select?: Prisma.OpportunityStageSelect<ExtArgs> | null
/**
* Omit specific fields from the OpportunityStage
*/
omit?: Prisma.OpportunityStageOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.OpportunityStageInclude<ExtArgs> | null
where?: Prisma.OpportunityStageWhereInput
}
/**
* Opportunity.status
*/
export type Opportunity$statusArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the OpportunityStatus
*/
select?: Prisma.OpportunityStatusSelect<ExtArgs> | null
/**
* Omit specific fields from the OpportunityStatus
*/
omit?: Prisma.OpportunityStatusOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.OpportunityStatusInclude<ExtArgs> | null
where?: Prisma.OpportunityStatusWhereInput
}
/**
* Opportunity.taxCode
*/
export type Opportunity$taxCodeArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the TaxCode
*/
select?: Prisma.TaxCodeSelect<ExtArgs> | null
/**
* Omit specific fields from the TaxCode
*/
omit?: Prisma.TaxCodeOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.TaxCodeInclude<ExtArgs> | null
where?: Prisma.TaxCodeWhereInput
}
/**
* Opportunity.primarySalesRep
*/
export type Opportunity$primarySalesRepArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the User
*/
select?: Prisma.UserSelect<ExtArgs> | null
/**
* Omit specific fields from the User
*/
omit?: Prisma.UserOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.UserInclude<ExtArgs> | null
where?: Prisma.UserWhereInput
}
/**
* Opportunity.secondarySalesRep
*/
export type Opportunity$secondarySalesRepArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the User
*/
select?: Prisma.UserSelect<ExtArgs> | null
/**
* Omit specific fields from the User
*/
omit?: Prisma.UserOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.UserInclude<ExtArgs> | null
where?: Prisma.UserWhereInput
}
/**
* 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.contact
*/
export type Opportunity$contactArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the Contact
*/
select?: Prisma.ContactSelect<ExtArgs> | null
/**
* Omit specific fields from the Contact
*/
omit?: Prisma.ContactOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.ContactInclude<ExtArgs> | null
where?: Prisma.ContactWhereInput
}
/**
* Opportunity.site
*/
export type Opportunity$siteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the CompanyAddress
*/
select?: Prisma.CompanyAddressSelect<ExtArgs> | null
/**
* Omit specific fields from the CompanyAddress
*/
omit?: Prisma.CompanyAddressOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.CompanyAddressInclude<ExtArgs> | null
where?: Prisma.CompanyAddressWhereInput
}
/**
* Opportunity.location
*/
export type Opportunity$locationArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the CorporateLocation
*/
select?: Prisma.CorporateLocationSelect<ExtArgs> | null
/**
* Omit specific fields from the CorporateLocation
*/
omit?: Prisma.CorporateLocationOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.CorporateLocationInclude<ExtArgs> | null
where?: Prisma.CorporateLocationWhereInput
}
/**
* Opportunity.department
*/
export type Opportunity$departmentArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the InternalDepartment
*/
select?: Prisma.InternalDepartmentSelect<ExtArgs> | null
/**
* Omit specific fields from the InternalDepartment
*/
omit?: Prisma.InternalDepartmentOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.InternalDepartmentInclude<ExtArgs> | null
where?: Prisma.InternalDepartmentWhereInput
}
/**
* Opportunity.products
*/
export type Opportunity$productsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the ProductData
*/
select?: Prisma.ProductDataSelect<ExtArgs> | null
/**
* Omit specific fields from the ProductData
*/
omit?: Prisma.ProductDataOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.ProductDataInclude<ExtArgs> | null
where?: Prisma.ProductDataWhereInput
orderBy?: Prisma.ProductDataOrderByWithRelationInput | Prisma.ProductDataOrderByWithRelationInput[]
cursor?: Prisma.ProductDataWhereUniqueInput
take?: number
skip?: number
distinct?: Prisma.ProductDataScalarFieldEnum | Prisma.ProductDataScalarFieldEnum[]
}
/**
* 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
}