/* !!! 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 export type AggregateOpportunity = { _count: OpportunityCountAggregateOutputType | null _avg: OpportunityAvgAggregateOutputType | null _sum: OpportunitySumAggregateOutputType | null _min: OpportunityMinAggregateOutputType | null _max: OpportunityMaxAggregateOutputType | null } export type OpportunityAvgAggregateOutputType = { cwOpportunityId: number | null typeCwId: number | null stageCwId: number | null statusCwId: number | null priorityCwId: number | null ratingCwId: number | null campaignCwId: number | null primarySalesRepCwId: number | null secondarySalesRepCwId: number | null companyCwId: number | null contactCwId: number | null siteCwId: number | null totalSalesTax: number | null probability: number | null locationCwId: number | null departmentCwId: number | null closedByCwId: number | null productSequence: number | null } export type OpportunitySumAggregateOutputType = { cwOpportunityId: number | null typeCwId: number | null stageCwId: number | null statusCwId: number | null priorityCwId: number | null ratingCwId: number | null campaignCwId: number | null primarySalesRepCwId: number | null secondarySalesRepCwId: number | null companyCwId: number | null contactCwId: number | null siteCwId: number | null totalSalesTax: number | null probability: number | null locationCwId: number | null departmentCwId: number | null closedByCwId: number | null productSequence: number[] } export type OpportunityMinAggregateOutputType = { id: string | null cwOpportunityId: number | null name: string | null notes: string | null typeName: string | null typeCwId: number | null stageName: string | null stageCwId: number | null statusName: string | null statusCwId: number | null priorityName: string | null priorityCwId: number | null ratingName: string | null ratingCwId: number | null source: string | null campaignName: string | null campaignCwId: number | null primarySalesRepName: string | null primarySalesRepIdentifier: string | null primarySalesRepCwId: number | null secondarySalesRepName: string | null secondarySalesRepIdentifier: string | null secondarySalesRepCwId: number | null companyCwId: number | null companyName: string | null contactCwId: number | null contactName: string | null siteCwId: number | null siteName: string | null customerPO: string | null totalSalesTax: number | null probability: number | null locationName: string | null locationCwId: number | null departmentName: string | null departmentCwId: number | null expectedCloseDate: Date | null pipelineChangeDate: Date | null dateBecameLead: Date | null closedDate: Date | null closedFlag: boolean | null closedByName: string | null closedByCwId: number | null companyId: string | null cwLastUpdated: Date | null createdAt: Date | null updatedAt: Date | null } export type OpportunityMaxAggregateOutputType = { id: string | null cwOpportunityId: number | null name: string | null notes: string | null typeName: string | null typeCwId: number | null stageName: string | null stageCwId: number | null statusName: string | null statusCwId: number | null priorityName: string | null priorityCwId: number | null ratingName: string | null ratingCwId: number | null source: string | null campaignName: string | null campaignCwId: number | null primarySalesRepName: string | null primarySalesRepIdentifier: string | null primarySalesRepCwId: number | null secondarySalesRepName: string | null secondarySalesRepIdentifier: string | null secondarySalesRepCwId: number | null companyCwId: number | null companyName: string | null contactCwId: number | null contactName: string | null siteCwId: number | null siteName: string | null customerPO: string | null totalSalesTax: number | null probability: number | null locationName: string | null locationCwId: number | null departmentName: string | null departmentCwId: number | null expectedCloseDate: Date | null pipelineChangeDate: Date | null dateBecameLead: Date | null closedDate: Date | null closedFlag: boolean | null closedByName: string | null closedByCwId: number | null companyId: string | null cwLastUpdated: Date | null createdAt: Date | null updatedAt: Date | null } export type OpportunityCountAggregateOutputType = { id: number cwOpportunityId: number name: number notes: number typeName: number typeCwId: number stageName: number stageCwId: number statusName: number statusCwId: number priorityName: number priorityCwId: number ratingName: number ratingCwId: number source: number campaignName: number campaignCwId: number primarySalesRepName: number primarySalesRepIdentifier: number primarySalesRepCwId: number secondarySalesRepName: number secondarySalesRepIdentifier: number secondarySalesRepCwId: number companyCwId: number companyName: number contactCwId: number contactName: number siteCwId: number siteName: number customerPO: number totalSalesTax: number probability: number locationName: number locationCwId: number departmentName: number departmentCwId: number expectedCloseDate: number pipelineChangeDate: number dateBecameLead: number closedDate: number closedFlag: number closedByName: number closedByCwId: number companyId: number productSequence: number cwLastUpdated: number createdAt: number updatedAt: number _all: number } export type OpportunityAvgAggregateInputType = { cwOpportunityId?: true typeCwId?: true stageCwId?: true statusCwId?: true priorityCwId?: true ratingCwId?: true campaignCwId?: true primarySalesRepCwId?: true secondarySalesRepCwId?: true companyCwId?: true contactCwId?: true siteCwId?: true totalSalesTax?: true probability?: true locationCwId?: true departmentCwId?: true closedByCwId?: true productSequence?: true } export type OpportunitySumAggregateInputType = { cwOpportunityId?: true typeCwId?: true stageCwId?: true statusCwId?: true priorityCwId?: true ratingCwId?: true campaignCwId?: true primarySalesRepCwId?: true secondarySalesRepCwId?: true companyCwId?: true contactCwId?: true siteCwId?: true totalSalesTax?: true probability?: true locationCwId?: true departmentCwId?: true closedByCwId?: true productSequence?: true } export type OpportunityMinAggregateInputType = { id?: true cwOpportunityId?: true name?: true notes?: true typeName?: true typeCwId?: true stageName?: true stageCwId?: true statusName?: true statusCwId?: true priorityName?: true priorityCwId?: true ratingName?: true ratingCwId?: true source?: true campaignName?: true campaignCwId?: true primarySalesRepName?: true primarySalesRepIdentifier?: true primarySalesRepCwId?: true secondarySalesRepName?: true secondarySalesRepIdentifier?: true secondarySalesRepCwId?: true companyCwId?: true companyName?: true contactCwId?: true contactName?: true siteCwId?: true siteName?: true customerPO?: true totalSalesTax?: true probability?: true locationName?: true locationCwId?: true departmentName?: true departmentCwId?: true expectedCloseDate?: true pipelineChangeDate?: true dateBecameLead?: true closedDate?: true closedFlag?: true closedByName?: true closedByCwId?: true companyId?: true cwLastUpdated?: true createdAt?: true updatedAt?: true } export type OpportunityMaxAggregateInputType = { id?: true cwOpportunityId?: true name?: true notes?: true typeName?: true typeCwId?: true stageName?: true stageCwId?: true statusName?: true statusCwId?: true priorityName?: true priorityCwId?: true ratingName?: true ratingCwId?: true source?: true campaignName?: true campaignCwId?: true primarySalesRepName?: true primarySalesRepIdentifier?: true primarySalesRepCwId?: true secondarySalesRepName?: true secondarySalesRepIdentifier?: true secondarySalesRepCwId?: true companyCwId?: true companyName?: true contactCwId?: true contactName?: true siteCwId?: true siteName?: true customerPO?: true totalSalesTax?: true probability?: true locationName?: true locationCwId?: true departmentName?: true departmentCwId?: true expectedCloseDate?: true pipelineChangeDate?: true dateBecameLead?: true closedDate?: true closedFlag?: true closedByName?: true closedByCwId?: true companyId?: true cwLastUpdated?: true createdAt?: true updatedAt?: true } export type OpportunityCountAggregateInputType = { id?: true cwOpportunityId?: true name?: true notes?: true typeName?: true typeCwId?: true stageName?: true stageCwId?: true statusName?: true statusCwId?: true priorityName?: true priorityCwId?: true ratingName?: true ratingCwId?: true source?: true campaignName?: true campaignCwId?: true primarySalesRepName?: true primarySalesRepIdentifier?: true primarySalesRepCwId?: true secondarySalesRepName?: true secondarySalesRepIdentifier?: true secondarySalesRepCwId?: true companyCwId?: true companyName?: true contactCwId?: true contactName?: true siteCwId?: true siteName?: true customerPO?: true totalSalesTax?: true probability?: true locationName?: true locationCwId?: true departmentName?: true departmentCwId?: true expectedCloseDate?: true pipelineChangeDate?: true dateBecameLead?: true closedDate?: true closedFlag?: true closedByName?: true closedByCwId?: true companyId?: true productSequence?: true cwLastUpdated?: true createdAt?: true updatedAt?: true _all?: true } export type OpportunityAggregateArgs = { /** * 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 = { [P in keyof T & keyof AggregateOpportunity]: P extends '_count' | 'count' ? T[P] extends true ? number : Prisma.GetScalarType : Prisma.GetScalarType } export type OpportunityGroupByArgs = { where?: Prisma.OpportunityWhereInput orderBy?: Prisma.OpportunityOrderByWithAggregationInput | Prisma.OpportunityOrderByWithAggregationInput[] by: Prisma.OpportunityScalarFieldEnum[] | Prisma.OpportunityScalarFieldEnum having?: Prisma.OpportunityScalarWhereWithAggregatesInput take?: number skip?: number _count?: OpportunityCountAggregateInputType | true _avg?: OpportunityAvgAggregateInputType _sum?: OpportunitySumAggregateInputType _min?: OpportunityMinAggregateInputType _max?: OpportunityMaxAggregateInputType } export type OpportunityGroupByOutputType = { id: string cwOpportunityId: number name: string notes: string | null typeName: string | null typeCwId: number | null stageName: string | null stageCwId: number | null statusName: string | null statusCwId: number | null priorityName: string | null priorityCwId: number | null ratingName: string | null ratingCwId: number | null source: string | null campaignName: string | null campaignCwId: number | null primarySalesRepName: string | null primarySalesRepIdentifier: string | null primarySalesRepCwId: number | null secondarySalesRepName: string | null secondarySalesRepIdentifier: string | null secondarySalesRepCwId: number | null companyCwId: number | null companyName: string | null contactCwId: number | null contactName: string | null siteCwId: number | null siteName: string | null customerPO: string | null totalSalesTax: number probability: number locationName: string | null locationCwId: number | null departmentName: string | null departmentCwId: number | null expectedCloseDate: Date | null pipelineChangeDate: Date | null dateBecameLead: Date | null closedDate: Date | null closedFlag: boolean closedByName: string | null closedByCwId: number | null companyId: string | null productSequence: number[] cwLastUpdated: Date | null createdAt: Date updatedAt: Date _count: OpportunityCountAggregateOutputType | null _avg: OpportunityAvgAggregateOutputType | null _sum: OpportunitySumAggregateOutputType | null _min: OpportunityMinAggregateOutputType | null _max: OpportunityMaxAggregateOutputType | null } type GetOpportunityGroupByPayload = Prisma.PrismaPromise< Array< Prisma.PickEnumerable & { [P in ((keyof T) & (keyof OpportunityGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : Prisma.GetScalarType : Prisma.GetScalarType } > > export type OpportunityWhereInput = { AND?: Prisma.OpportunityWhereInput | Prisma.OpportunityWhereInput[] OR?: Prisma.OpportunityWhereInput[] NOT?: Prisma.OpportunityWhereInput | Prisma.OpportunityWhereInput[] id?: Prisma.StringFilter<"Opportunity"> | string cwOpportunityId?: Prisma.IntFilter<"Opportunity"> | number name?: Prisma.StringFilter<"Opportunity"> | string notes?: Prisma.StringNullableFilter<"Opportunity"> | string | null typeName?: Prisma.StringNullableFilter<"Opportunity"> | string | null typeCwId?: Prisma.IntNullableFilter<"Opportunity"> | number | null stageName?: Prisma.StringNullableFilter<"Opportunity"> | string | null stageCwId?: Prisma.IntNullableFilter<"Opportunity"> | number | null statusName?: Prisma.StringNullableFilter<"Opportunity"> | string | null statusCwId?: Prisma.IntNullableFilter<"Opportunity"> | number | null priorityName?: Prisma.StringNullableFilter<"Opportunity"> | string | null priorityCwId?: Prisma.IntNullableFilter<"Opportunity"> | number | null ratingName?: Prisma.StringNullableFilter<"Opportunity"> | string | null ratingCwId?: Prisma.IntNullableFilter<"Opportunity"> | number | null source?: Prisma.StringNullableFilter<"Opportunity"> | string | null campaignName?: Prisma.StringNullableFilter<"Opportunity"> | string | null campaignCwId?: Prisma.IntNullableFilter<"Opportunity"> | number | null primarySalesRepName?: Prisma.StringNullableFilter<"Opportunity"> | string | null primarySalesRepIdentifier?: Prisma.StringNullableFilter<"Opportunity"> | string | null primarySalesRepCwId?: Prisma.IntNullableFilter<"Opportunity"> | number | null secondarySalesRepName?: Prisma.StringNullableFilter<"Opportunity"> | string | null secondarySalesRepIdentifier?: Prisma.StringNullableFilter<"Opportunity"> | string | null secondarySalesRepCwId?: Prisma.IntNullableFilter<"Opportunity"> | number | null companyCwId?: Prisma.IntNullableFilter<"Opportunity"> | number | null companyName?: Prisma.StringNullableFilter<"Opportunity"> | string | null contactCwId?: Prisma.IntNullableFilter<"Opportunity"> | number | null contactName?: Prisma.StringNullableFilter<"Opportunity"> | string | null siteCwId?: Prisma.IntNullableFilter<"Opportunity"> | number | null siteName?: Prisma.StringNullableFilter<"Opportunity"> | string | null customerPO?: Prisma.StringNullableFilter<"Opportunity"> | string | null totalSalesTax?: Prisma.FloatFilter<"Opportunity"> | number probability?: Prisma.FloatFilter<"Opportunity"> | number locationName?: Prisma.StringNullableFilter<"Opportunity"> | string | null locationCwId?: Prisma.IntNullableFilter<"Opportunity"> | number | null departmentName?: Prisma.StringNullableFilter<"Opportunity"> | string | null departmentCwId?: Prisma.IntNullableFilter<"Opportunity"> | number | null expectedCloseDate?: Prisma.DateTimeNullableFilter<"Opportunity"> | Date | string | null pipelineChangeDate?: Prisma.DateTimeNullableFilter<"Opportunity"> | Date | string | null dateBecameLead?: Prisma.DateTimeNullableFilter<"Opportunity"> | Date | string | null closedDate?: Prisma.DateTimeNullableFilter<"Opportunity"> | Date | string | null closedFlag?: Prisma.BoolFilter<"Opportunity"> | boolean closedByName?: Prisma.StringNullableFilter<"Opportunity"> | string | null closedByCwId?: Prisma.IntNullableFilter<"Opportunity"> | number | null companyId?: Prisma.StringNullableFilter<"Opportunity"> | string | null productSequence?: Prisma.IntNullableListFilter<"Opportunity"> cwLastUpdated?: Prisma.DateTimeNullableFilter<"Opportunity"> | Date | string | null createdAt?: Prisma.DateTimeFilter<"Opportunity"> | Date | string updatedAt?: Prisma.DateTimeFilter<"Opportunity"> | Date | string generatedQuotes?: Prisma.GeneratedQuotesListRelationFilter company?: Prisma.XOR | null } export type OpportunityOrderByWithRelationInput = { id?: Prisma.SortOrder cwOpportunityId?: Prisma.SortOrder name?: Prisma.SortOrder notes?: Prisma.SortOrderInput | Prisma.SortOrder typeName?: Prisma.SortOrderInput | Prisma.SortOrder typeCwId?: Prisma.SortOrderInput | Prisma.SortOrder stageName?: Prisma.SortOrderInput | Prisma.SortOrder stageCwId?: Prisma.SortOrderInput | Prisma.SortOrder statusName?: Prisma.SortOrderInput | Prisma.SortOrder statusCwId?: Prisma.SortOrderInput | Prisma.SortOrder priorityName?: Prisma.SortOrderInput | Prisma.SortOrder priorityCwId?: Prisma.SortOrderInput | Prisma.SortOrder ratingName?: Prisma.SortOrderInput | Prisma.SortOrder ratingCwId?: Prisma.SortOrderInput | Prisma.SortOrder source?: Prisma.SortOrderInput | Prisma.SortOrder campaignName?: Prisma.SortOrderInput | Prisma.SortOrder campaignCwId?: Prisma.SortOrderInput | Prisma.SortOrder primarySalesRepName?: Prisma.SortOrderInput | Prisma.SortOrder primarySalesRepIdentifier?: Prisma.SortOrderInput | Prisma.SortOrder primarySalesRepCwId?: Prisma.SortOrderInput | Prisma.SortOrder secondarySalesRepName?: Prisma.SortOrderInput | Prisma.SortOrder secondarySalesRepIdentifier?: Prisma.SortOrderInput | Prisma.SortOrder secondarySalesRepCwId?: Prisma.SortOrderInput | Prisma.SortOrder companyCwId?: Prisma.SortOrderInput | Prisma.SortOrder companyName?: Prisma.SortOrderInput | Prisma.SortOrder contactCwId?: Prisma.SortOrderInput | Prisma.SortOrder contactName?: Prisma.SortOrderInput | Prisma.SortOrder siteCwId?: Prisma.SortOrderInput | Prisma.SortOrder siteName?: Prisma.SortOrderInput | Prisma.SortOrder customerPO?: Prisma.SortOrderInput | Prisma.SortOrder totalSalesTax?: Prisma.SortOrder probability?: Prisma.SortOrder locationName?: Prisma.SortOrderInput | Prisma.SortOrder locationCwId?: Prisma.SortOrderInput | Prisma.SortOrder departmentName?: Prisma.SortOrderInput | Prisma.SortOrder departmentCwId?: Prisma.SortOrderInput | Prisma.SortOrder expectedCloseDate?: Prisma.SortOrderInput | Prisma.SortOrder pipelineChangeDate?: Prisma.SortOrderInput | Prisma.SortOrder dateBecameLead?: Prisma.SortOrderInput | Prisma.SortOrder closedDate?: Prisma.SortOrderInput | Prisma.SortOrder closedFlag?: Prisma.SortOrder closedByName?: Prisma.SortOrderInput | Prisma.SortOrder closedByCwId?: Prisma.SortOrderInput | Prisma.SortOrder companyId?: Prisma.SortOrderInput | Prisma.SortOrder productSequence?: Prisma.SortOrder cwLastUpdated?: Prisma.SortOrderInput | Prisma.SortOrder createdAt?: Prisma.SortOrder updatedAt?: Prisma.SortOrder generatedQuotes?: Prisma.GeneratedQuotesOrderByRelationAggregateInput company?: Prisma.CompanyOrderByWithRelationInput } export type OpportunityWhereUniqueInput = Prisma.AtLeast<{ id?: string cwOpportunityId?: number AND?: Prisma.OpportunityWhereInput | Prisma.OpportunityWhereInput[] OR?: Prisma.OpportunityWhereInput[] NOT?: Prisma.OpportunityWhereInput | Prisma.OpportunityWhereInput[] name?: Prisma.StringFilter<"Opportunity"> | string notes?: Prisma.StringNullableFilter<"Opportunity"> | string | null typeName?: Prisma.StringNullableFilter<"Opportunity"> | string | null typeCwId?: Prisma.IntNullableFilter<"Opportunity"> | number | null stageName?: Prisma.StringNullableFilter<"Opportunity"> | string | null stageCwId?: Prisma.IntNullableFilter<"Opportunity"> | number | null statusName?: Prisma.StringNullableFilter<"Opportunity"> | string | null statusCwId?: Prisma.IntNullableFilter<"Opportunity"> | number | null priorityName?: Prisma.StringNullableFilter<"Opportunity"> | string | null priorityCwId?: Prisma.IntNullableFilter<"Opportunity"> | number | null ratingName?: Prisma.StringNullableFilter<"Opportunity"> | string | null ratingCwId?: Prisma.IntNullableFilter<"Opportunity"> | number | null source?: Prisma.StringNullableFilter<"Opportunity"> | string | null campaignName?: Prisma.StringNullableFilter<"Opportunity"> | string | null campaignCwId?: Prisma.IntNullableFilter<"Opportunity"> | number | null primarySalesRepName?: Prisma.StringNullableFilter<"Opportunity"> | string | null primarySalesRepIdentifier?: Prisma.StringNullableFilter<"Opportunity"> | string | null primarySalesRepCwId?: Prisma.IntNullableFilter<"Opportunity"> | number | null secondarySalesRepName?: Prisma.StringNullableFilter<"Opportunity"> | string | null secondarySalesRepIdentifier?: Prisma.StringNullableFilter<"Opportunity"> | string | null secondarySalesRepCwId?: Prisma.IntNullableFilter<"Opportunity"> | number | null companyCwId?: Prisma.IntNullableFilter<"Opportunity"> | number | null companyName?: Prisma.StringNullableFilter<"Opportunity"> | string | null contactCwId?: Prisma.IntNullableFilter<"Opportunity"> | number | null contactName?: Prisma.StringNullableFilter<"Opportunity"> | string | null siteCwId?: Prisma.IntNullableFilter<"Opportunity"> | number | null siteName?: Prisma.StringNullableFilter<"Opportunity"> | string | null customerPO?: Prisma.StringNullableFilter<"Opportunity"> | string | null totalSalesTax?: Prisma.FloatFilter<"Opportunity"> | number probability?: Prisma.FloatFilter<"Opportunity"> | number locationName?: Prisma.StringNullableFilter<"Opportunity"> | string | null locationCwId?: Prisma.IntNullableFilter<"Opportunity"> | number | null departmentName?: Prisma.StringNullableFilter<"Opportunity"> | string | null departmentCwId?: Prisma.IntNullableFilter<"Opportunity"> | number | null expectedCloseDate?: Prisma.DateTimeNullableFilter<"Opportunity"> | Date | string | null pipelineChangeDate?: Prisma.DateTimeNullableFilter<"Opportunity"> | Date | string | null dateBecameLead?: Prisma.DateTimeNullableFilter<"Opportunity"> | Date | string | null closedDate?: Prisma.DateTimeNullableFilter<"Opportunity"> | Date | string | null closedFlag?: Prisma.BoolFilter<"Opportunity"> | boolean closedByName?: Prisma.StringNullableFilter<"Opportunity"> | string | null closedByCwId?: Prisma.IntNullableFilter<"Opportunity"> | number | null companyId?: Prisma.StringNullableFilter<"Opportunity"> | string | null productSequence?: Prisma.IntNullableListFilter<"Opportunity"> cwLastUpdated?: Prisma.DateTimeNullableFilter<"Opportunity"> | Date | string | null createdAt?: Prisma.DateTimeFilter<"Opportunity"> | Date | string updatedAt?: Prisma.DateTimeFilter<"Opportunity"> | Date | string generatedQuotes?: Prisma.GeneratedQuotesListRelationFilter company?: Prisma.XOR | null }, "id" | "cwOpportunityId"> export type OpportunityOrderByWithAggregationInput = { id?: Prisma.SortOrder cwOpportunityId?: Prisma.SortOrder name?: Prisma.SortOrder notes?: Prisma.SortOrderInput | Prisma.SortOrder typeName?: Prisma.SortOrderInput | Prisma.SortOrder typeCwId?: Prisma.SortOrderInput | Prisma.SortOrder stageName?: Prisma.SortOrderInput | Prisma.SortOrder stageCwId?: Prisma.SortOrderInput | Prisma.SortOrder statusName?: Prisma.SortOrderInput | Prisma.SortOrder statusCwId?: Prisma.SortOrderInput | Prisma.SortOrder priorityName?: Prisma.SortOrderInput | Prisma.SortOrder priorityCwId?: Prisma.SortOrderInput | Prisma.SortOrder ratingName?: Prisma.SortOrderInput | Prisma.SortOrder ratingCwId?: Prisma.SortOrderInput | Prisma.SortOrder source?: Prisma.SortOrderInput | Prisma.SortOrder campaignName?: Prisma.SortOrderInput | Prisma.SortOrder campaignCwId?: Prisma.SortOrderInput | Prisma.SortOrder primarySalesRepName?: Prisma.SortOrderInput | Prisma.SortOrder primarySalesRepIdentifier?: Prisma.SortOrderInput | Prisma.SortOrder primarySalesRepCwId?: Prisma.SortOrderInput | Prisma.SortOrder secondarySalesRepName?: Prisma.SortOrderInput | Prisma.SortOrder secondarySalesRepIdentifier?: Prisma.SortOrderInput | Prisma.SortOrder secondarySalesRepCwId?: Prisma.SortOrderInput | Prisma.SortOrder companyCwId?: Prisma.SortOrderInput | Prisma.SortOrder companyName?: Prisma.SortOrderInput | Prisma.SortOrder contactCwId?: Prisma.SortOrderInput | Prisma.SortOrder contactName?: Prisma.SortOrderInput | Prisma.SortOrder siteCwId?: Prisma.SortOrderInput | Prisma.SortOrder siteName?: Prisma.SortOrderInput | Prisma.SortOrder customerPO?: Prisma.SortOrderInput | Prisma.SortOrder totalSalesTax?: Prisma.SortOrder probability?: Prisma.SortOrder locationName?: Prisma.SortOrderInput | Prisma.SortOrder locationCwId?: Prisma.SortOrderInput | Prisma.SortOrder departmentName?: Prisma.SortOrderInput | Prisma.SortOrder departmentCwId?: Prisma.SortOrderInput | Prisma.SortOrder expectedCloseDate?: Prisma.SortOrderInput | Prisma.SortOrder pipelineChangeDate?: Prisma.SortOrderInput | Prisma.SortOrder dateBecameLead?: Prisma.SortOrderInput | Prisma.SortOrder closedDate?: Prisma.SortOrderInput | Prisma.SortOrder closedFlag?: Prisma.SortOrder closedByName?: Prisma.SortOrderInput | Prisma.SortOrder closedByCwId?: Prisma.SortOrderInput | Prisma.SortOrder companyId?: Prisma.SortOrderInput | Prisma.SortOrder productSequence?: Prisma.SortOrder cwLastUpdated?: Prisma.SortOrderInput | Prisma.SortOrder createdAt?: Prisma.SortOrder updatedAt?: Prisma.SortOrder _count?: Prisma.OpportunityCountOrderByAggregateInput _avg?: Prisma.OpportunityAvgOrderByAggregateInput _max?: Prisma.OpportunityMaxOrderByAggregateInput _min?: Prisma.OpportunityMinOrderByAggregateInput _sum?: Prisma.OpportunitySumOrderByAggregateInput } export type OpportunityScalarWhereWithAggregatesInput = { AND?: Prisma.OpportunityScalarWhereWithAggregatesInput | Prisma.OpportunityScalarWhereWithAggregatesInput[] OR?: Prisma.OpportunityScalarWhereWithAggregatesInput[] NOT?: Prisma.OpportunityScalarWhereWithAggregatesInput | Prisma.OpportunityScalarWhereWithAggregatesInput[] id?: Prisma.StringWithAggregatesFilter<"Opportunity"> | string cwOpportunityId?: Prisma.IntWithAggregatesFilter<"Opportunity"> | number name?: Prisma.StringWithAggregatesFilter<"Opportunity"> | string notes?: Prisma.StringNullableWithAggregatesFilter<"Opportunity"> | string | null typeName?: Prisma.StringNullableWithAggregatesFilter<"Opportunity"> | string | null typeCwId?: Prisma.IntNullableWithAggregatesFilter<"Opportunity"> | number | null stageName?: Prisma.StringNullableWithAggregatesFilter<"Opportunity"> | string | null stageCwId?: Prisma.IntNullableWithAggregatesFilter<"Opportunity"> | number | null statusName?: Prisma.StringNullableWithAggregatesFilter<"Opportunity"> | string | null statusCwId?: Prisma.IntNullableWithAggregatesFilter<"Opportunity"> | number | null priorityName?: Prisma.StringNullableWithAggregatesFilter<"Opportunity"> | string | null priorityCwId?: Prisma.IntNullableWithAggregatesFilter<"Opportunity"> | number | null ratingName?: Prisma.StringNullableWithAggregatesFilter<"Opportunity"> | string | null ratingCwId?: Prisma.IntNullableWithAggregatesFilter<"Opportunity"> | number | null source?: Prisma.StringNullableWithAggregatesFilter<"Opportunity"> | string | null campaignName?: Prisma.StringNullableWithAggregatesFilter<"Opportunity"> | string | null campaignCwId?: Prisma.IntNullableWithAggregatesFilter<"Opportunity"> | number | null primarySalesRepName?: Prisma.StringNullableWithAggregatesFilter<"Opportunity"> | string | null primarySalesRepIdentifier?: Prisma.StringNullableWithAggregatesFilter<"Opportunity"> | string | null primarySalesRepCwId?: Prisma.IntNullableWithAggregatesFilter<"Opportunity"> | number | null secondarySalesRepName?: Prisma.StringNullableWithAggregatesFilter<"Opportunity"> | string | null secondarySalesRepIdentifier?: Prisma.StringNullableWithAggregatesFilter<"Opportunity"> | string | null secondarySalesRepCwId?: Prisma.IntNullableWithAggregatesFilter<"Opportunity"> | number | null companyCwId?: Prisma.IntNullableWithAggregatesFilter<"Opportunity"> | number | null companyName?: Prisma.StringNullableWithAggregatesFilter<"Opportunity"> | string | null contactCwId?: Prisma.IntNullableWithAggregatesFilter<"Opportunity"> | number | null contactName?: Prisma.StringNullableWithAggregatesFilter<"Opportunity"> | string | null siteCwId?: Prisma.IntNullableWithAggregatesFilter<"Opportunity"> | number | null siteName?: Prisma.StringNullableWithAggregatesFilter<"Opportunity"> | string | null customerPO?: Prisma.StringNullableWithAggregatesFilter<"Opportunity"> | string | null totalSalesTax?: Prisma.FloatWithAggregatesFilter<"Opportunity"> | number probability?: Prisma.FloatWithAggregatesFilter<"Opportunity"> | number locationName?: Prisma.StringNullableWithAggregatesFilter<"Opportunity"> | string | null locationCwId?: Prisma.IntNullableWithAggregatesFilter<"Opportunity"> | number | null departmentName?: Prisma.StringNullableWithAggregatesFilter<"Opportunity"> | string | null departmentCwId?: Prisma.IntNullableWithAggregatesFilter<"Opportunity"> | number | null expectedCloseDate?: Prisma.DateTimeNullableWithAggregatesFilter<"Opportunity"> | Date | string | null pipelineChangeDate?: Prisma.DateTimeNullableWithAggregatesFilter<"Opportunity"> | Date | string | null dateBecameLead?: Prisma.DateTimeNullableWithAggregatesFilter<"Opportunity"> | Date | string | null closedDate?: Prisma.DateTimeNullableWithAggregatesFilter<"Opportunity"> | Date | string | null closedFlag?: Prisma.BoolWithAggregatesFilter<"Opportunity"> | boolean closedByName?: Prisma.StringNullableWithAggregatesFilter<"Opportunity"> | string | null closedByCwId?: Prisma.IntNullableWithAggregatesFilter<"Opportunity"> | number | null companyId?: Prisma.StringNullableWithAggregatesFilter<"Opportunity"> | string | null productSequence?: Prisma.IntNullableListFilter<"Opportunity"> cwLastUpdated?: Prisma.DateTimeNullableWithAggregatesFilter<"Opportunity"> | Date | string | null createdAt?: Prisma.DateTimeWithAggregatesFilter<"Opportunity"> | Date | string updatedAt?: Prisma.DateTimeWithAggregatesFilter<"Opportunity"> | Date | string } export type OpportunityCreateInput = { id?: string cwOpportunityId: number name: string notes?: string | null typeName?: string | null typeCwId?: number | null stageName?: string | null stageCwId?: number | null statusName?: string | null statusCwId?: number | null priorityName?: string | null priorityCwId?: number | null ratingName?: string | null ratingCwId?: number | null source?: string | null campaignName?: string | null campaignCwId?: number | null primarySalesRepName?: string | null primarySalesRepIdentifier?: string | null primarySalesRepCwId?: number | null secondarySalesRepName?: string | null secondarySalesRepIdentifier?: string | null secondarySalesRepCwId?: number | null companyCwId?: number | null companyName?: string | null contactCwId?: number | null contactName?: string | null siteCwId?: number | null siteName?: string | null customerPO?: string | null totalSalesTax?: number probability?: number locationName?: string | null locationCwId?: number | null departmentName?: string | null departmentCwId?: number | null expectedCloseDate?: Date | string | null pipelineChangeDate?: Date | string | null dateBecameLead?: Date | string | null closedDate?: Date | string | null closedFlag?: boolean closedByName?: string | null closedByCwId?: number | null productSequence?: Prisma.OpportunityCreateproductSequenceInput | number[] cwLastUpdated?: Date | string | null createdAt?: Date | string updatedAt?: Date | string generatedQuotes?: Prisma.GeneratedQuotesCreateNestedManyWithoutOpportunityInput company?: Prisma.CompanyCreateNestedOneWithoutOpportunitiesInput } export type OpportunityUncheckedCreateInput = { id?: string cwOpportunityId: number name: string notes?: string | null typeName?: string | null typeCwId?: number | null stageName?: string | null stageCwId?: number | null statusName?: string | null statusCwId?: number | null priorityName?: string | null priorityCwId?: number | null ratingName?: string | null ratingCwId?: number | null source?: string | null campaignName?: string | null campaignCwId?: number | null primarySalesRepName?: string | null primarySalesRepIdentifier?: string | null primarySalesRepCwId?: number | null secondarySalesRepName?: string | null secondarySalesRepIdentifier?: string | null secondarySalesRepCwId?: number | null companyCwId?: number | null companyName?: string | null contactCwId?: number | null contactName?: string | null siteCwId?: number | null siteName?: string | null customerPO?: string | null totalSalesTax?: number probability?: number locationName?: string | null locationCwId?: number | null departmentName?: string | null departmentCwId?: number | null expectedCloseDate?: Date | string | null pipelineChangeDate?: Date | string | null dateBecameLead?: Date | string | null closedDate?: Date | string | null closedFlag?: boolean closedByName?: string | null closedByCwId?: number | null companyId?: string | null productSequence?: Prisma.OpportunityCreateproductSequenceInput | number[] cwLastUpdated?: Date | string | null createdAt?: Date | string updatedAt?: Date | string generatedQuotes?: Prisma.GeneratedQuotesUncheckedCreateNestedManyWithoutOpportunityInput } export type OpportunityUpdateInput = { id?: Prisma.StringFieldUpdateOperationsInput | string cwOpportunityId?: Prisma.IntFieldUpdateOperationsInput | number name?: Prisma.StringFieldUpdateOperationsInput | string notes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null typeName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null typeCwId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null stageName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null stageCwId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null statusName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null statusCwId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null priorityName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null priorityCwId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null ratingName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null ratingCwId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null source?: Prisma.NullableStringFieldUpdateOperationsInput | string | null campaignName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null campaignCwId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null primarySalesRepName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null primarySalesRepIdentifier?: Prisma.NullableStringFieldUpdateOperationsInput | string | null primarySalesRepCwId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null secondarySalesRepName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null secondarySalesRepIdentifier?: Prisma.NullableStringFieldUpdateOperationsInput | string | null secondarySalesRepCwId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null companyCwId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null companyName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null contactCwId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null contactName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null siteCwId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null siteName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null customerPO?: Prisma.NullableStringFieldUpdateOperationsInput | string | null totalSalesTax?: Prisma.FloatFieldUpdateOperationsInput | number probability?: Prisma.FloatFieldUpdateOperationsInput | number locationName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null locationCwId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null departmentName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null departmentCwId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null expectedCloseDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null pipelineChangeDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null dateBecameLead?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null closedDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null closedFlag?: Prisma.BoolFieldUpdateOperationsInput | boolean closedByName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null closedByCwId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null productSequence?: Prisma.OpportunityUpdateproductSequenceInput | number[] cwLastUpdated?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string generatedQuotes?: Prisma.GeneratedQuotesUpdateManyWithoutOpportunityNestedInput company?: Prisma.CompanyUpdateOneWithoutOpportunitiesNestedInput } export type OpportunityUncheckedUpdateInput = { id?: Prisma.StringFieldUpdateOperationsInput | string cwOpportunityId?: Prisma.IntFieldUpdateOperationsInput | number name?: Prisma.StringFieldUpdateOperationsInput | string notes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null typeName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null typeCwId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null stageName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null stageCwId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null statusName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null statusCwId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null priorityName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null priorityCwId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null ratingName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null ratingCwId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null source?: Prisma.NullableStringFieldUpdateOperationsInput | string | null campaignName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null campaignCwId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null primarySalesRepName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null primarySalesRepIdentifier?: Prisma.NullableStringFieldUpdateOperationsInput | string | null primarySalesRepCwId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null secondarySalesRepName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null secondarySalesRepIdentifier?: Prisma.NullableStringFieldUpdateOperationsInput | string | null secondarySalesRepCwId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null companyCwId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null companyName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null contactCwId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null contactName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null siteCwId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null siteName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null customerPO?: Prisma.NullableStringFieldUpdateOperationsInput | string | null totalSalesTax?: Prisma.FloatFieldUpdateOperationsInput | number probability?: Prisma.FloatFieldUpdateOperationsInput | number locationName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null locationCwId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null departmentName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null departmentCwId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null expectedCloseDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null pipelineChangeDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null dateBecameLead?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null closedDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null closedFlag?: Prisma.BoolFieldUpdateOperationsInput | boolean closedByName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null closedByCwId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null companyId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null productSequence?: Prisma.OpportunityUpdateproductSequenceInput | number[] cwLastUpdated?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string generatedQuotes?: Prisma.GeneratedQuotesUncheckedUpdateManyWithoutOpportunityNestedInput } export type OpportunityCreateManyInput = { id?: string cwOpportunityId: number name: string notes?: string | null typeName?: string | null typeCwId?: number | null stageName?: string | null stageCwId?: number | null statusName?: string | null statusCwId?: number | null priorityName?: string | null priorityCwId?: number | null ratingName?: string | null ratingCwId?: number | null source?: string | null campaignName?: string | null campaignCwId?: number | null primarySalesRepName?: string | null primarySalesRepIdentifier?: string | null primarySalesRepCwId?: number | null secondarySalesRepName?: string | null secondarySalesRepIdentifier?: string | null secondarySalesRepCwId?: number | null companyCwId?: number | null companyName?: string | null contactCwId?: number | null contactName?: string | null siteCwId?: number | null siteName?: string | null customerPO?: string | null totalSalesTax?: number probability?: number locationName?: string | null locationCwId?: number | null departmentName?: string | null departmentCwId?: number | null expectedCloseDate?: Date | string | null pipelineChangeDate?: Date | string | null dateBecameLead?: Date | string | null closedDate?: Date | string | null closedFlag?: boolean closedByName?: string | null closedByCwId?: number | null companyId?: string | null productSequence?: Prisma.OpportunityCreateproductSequenceInput | number[] cwLastUpdated?: Date | string | null createdAt?: Date | string updatedAt?: Date | string } export type OpportunityUpdateManyMutationInput = { id?: Prisma.StringFieldUpdateOperationsInput | string cwOpportunityId?: Prisma.IntFieldUpdateOperationsInput | number name?: Prisma.StringFieldUpdateOperationsInput | string notes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null typeName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null typeCwId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null stageName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null stageCwId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null statusName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null statusCwId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null priorityName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null priorityCwId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null ratingName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null ratingCwId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null source?: Prisma.NullableStringFieldUpdateOperationsInput | string | null campaignName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null campaignCwId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null primarySalesRepName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null primarySalesRepIdentifier?: Prisma.NullableStringFieldUpdateOperationsInput | string | null primarySalesRepCwId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null secondarySalesRepName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null secondarySalesRepIdentifier?: Prisma.NullableStringFieldUpdateOperationsInput | string | null secondarySalesRepCwId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null companyCwId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null companyName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null contactCwId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null contactName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null siteCwId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null siteName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null customerPO?: Prisma.NullableStringFieldUpdateOperationsInput | string | null totalSalesTax?: Prisma.FloatFieldUpdateOperationsInput | number probability?: Prisma.FloatFieldUpdateOperationsInput | number locationName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null locationCwId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null departmentName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null departmentCwId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null expectedCloseDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null pipelineChangeDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null dateBecameLead?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null closedDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null closedFlag?: Prisma.BoolFieldUpdateOperationsInput | boolean closedByName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null closedByCwId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null productSequence?: Prisma.OpportunityUpdateproductSequenceInput | number[] cwLastUpdated?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string } export type OpportunityUncheckedUpdateManyInput = { id?: Prisma.StringFieldUpdateOperationsInput | string cwOpportunityId?: Prisma.IntFieldUpdateOperationsInput | number name?: Prisma.StringFieldUpdateOperationsInput | string notes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null typeName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null typeCwId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null stageName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null stageCwId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null statusName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null statusCwId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null priorityName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null priorityCwId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null ratingName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null ratingCwId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null source?: Prisma.NullableStringFieldUpdateOperationsInput | string | null campaignName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null campaignCwId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null primarySalesRepName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null primarySalesRepIdentifier?: Prisma.NullableStringFieldUpdateOperationsInput | string | null primarySalesRepCwId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null secondarySalesRepName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null secondarySalesRepIdentifier?: Prisma.NullableStringFieldUpdateOperationsInput | string | null secondarySalesRepCwId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null companyCwId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null companyName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null contactCwId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null contactName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null siteCwId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null siteName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null customerPO?: Prisma.NullableStringFieldUpdateOperationsInput | string | null totalSalesTax?: Prisma.FloatFieldUpdateOperationsInput | number probability?: Prisma.FloatFieldUpdateOperationsInput | number locationName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null locationCwId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null departmentName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null departmentCwId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null expectedCloseDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null pipelineChangeDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null dateBecameLead?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null closedDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null closedFlag?: Prisma.BoolFieldUpdateOperationsInput | boolean closedByName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null closedByCwId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null companyId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null productSequence?: Prisma.OpportunityUpdateproductSequenceInput | number[] cwLastUpdated?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string } export type OpportunityListRelationFilter = { every?: Prisma.OpportunityWhereInput some?: Prisma.OpportunityWhereInput none?: Prisma.OpportunityWhereInput } export type OpportunityOrderByRelationAggregateInput = { _count?: Prisma.SortOrder } export type IntNullableListFilter<$PrismaModel = never> = { equals?: number[] | Prisma.ListIntFieldRefInput<$PrismaModel> | null has?: number | Prisma.IntFieldRefInput<$PrismaModel> | null hasEvery?: number[] | Prisma.ListIntFieldRefInput<$PrismaModel> hasSome?: number[] | Prisma.ListIntFieldRefInput<$PrismaModel> isEmpty?: boolean } export type OpportunityCountOrderByAggregateInput = { id?: Prisma.SortOrder cwOpportunityId?: Prisma.SortOrder name?: Prisma.SortOrder notes?: Prisma.SortOrder typeName?: Prisma.SortOrder typeCwId?: Prisma.SortOrder stageName?: Prisma.SortOrder stageCwId?: Prisma.SortOrder statusName?: Prisma.SortOrder statusCwId?: Prisma.SortOrder priorityName?: Prisma.SortOrder priorityCwId?: Prisma.SortOrder ratingName?: Prisma.SortOrder ratingCwId?: Prisma.SortOrder source?: Prisma.SortOrder campaignName?: Prisma.SortOrder campaignCwId?: Prisma.SortOrder primarySalesRepName?: Prisma.SortOrder primarySalesRepIdentifier?: Prisma.SortOrder primarySalesRepCwId?: Prisma.SortOrder secondarySalesRepName?: Prisma.SortOrder secondarySalesRepIdentifier?: Prisma.SortOrder secondarySalesRepCwId?: Prisma.SortOrder companyCwId?: Prisma.SortOrder companyName?: Prisma.SortOrder contactCwId?: Prisma.SortOrder contactName?: Prisma.SortOrder siteCwId?: Prisma.SortOrder siteName?: Prisma.SortOrder customerPO?: Prisma.SortOrder totalSalesTax?: Prisma.SortOrder probability?: Prisma.SortOrder locationName?: Prisma.SortOrder locationCwId?: Prisma.SortOrder departmentName?: Prisma.SortOrder departmentCwId?: Prisma.SortOrder expectedCloseDate?: Prisma.SortOrder pipelineChangeDate?: Prisma.SortOrder dateBecameLead?: Prisma.SortOrder closedDate?: Prisma.SortOrder closedFlag?: Prisma.SortOrder closedByName?: Prisma.SortOrder closedByCwId?: Prisma.SortOrder companyId?: Prisma.SortOrder productSequence?: Prisma.SortOrder cwLastUpdated?: Prisma.SortOrder createdAt?: Prisma.SortOrder updatedAt?: Prisma.SortOrder } export type OpportunityAvgOrderByAggregateInput = { cwOpportunityId?: Prisma.SortOrder typeCwId?: Prisma.SortOrder stageCwId?: Prisma.SortOrder statusCwId?: Prisma.SortOrder priorityCwId?: Prisma.SortOrder ratingCwId?: Prisma.SortOrder campaignCwId?: Prisma.SortOrder primarySalesRepCwId?: Prisma.SortOrder secondarySalesRepCwId?: Prisma.SortOrder companyCwId?: Prisma.SortOrder contactCwId?: Prisma.SortOrder siteCwId?: Prisma.SortOrder totalSalesTax?: Prisma.SortOrder probability?: Prisma.SortOrder locationCwId?: Prisma.SortOrder departmentCwId?: Prisma.SortOrder closedByCwId?: Prisma.SortOrder productSequence?: Prisma.SortOrder } export type OpportunityMaxOrderByAggregateInput = { id?: Prisma.SortOrder cwOpportunityId?: Prisma.SortOrder name?: Prisma.SortOrder notes?: Prisma.SortOrder typeName?: Prisma.SortOrder typeCwId?: Prisma.SortOrder stageName?: Prisma.SortOrder stageCwId?: Prisma.SortOrder statusName?: Prisma.SortOrder statusCwId?: Prisma.SortOrder priorityName?: Prisma.SortOrder priorityCwId?: Prisma.SortOrder ratingName?: Prisma.SortOrder ratingCwId?: Prisma.SortOrder source?: Prisma.SortOrder campaignName?: Prisma.SortOrder campaignCwId?: Prisma.SortOrder primarySalesRepName?: Prisma.SortOrder primarySalesRepIdentifier?: Prisma.SortOrder primarySalesRepCwId?: Prisma.SortOrder secondarySalesRepName?: Prisma.SortOrder secondarySalesRepIdentifier?: Prisma.SortOrder secondarySalesRepCwId?: Prisma.SortOrder companyCwId?: Prisma.SortOrder companyName?: Prisma.SortOrder contactCwId?: Prisma.SortOrder contactName?: Prisma.SortOrder siteCwId?: Prisma.SortOrder siteName?: Prisma.SortOrder customerPO?: Prisma.SortOrder totalSalesTax?: Prisma.SortOrder probability?: Prisma.SortOrder locationName?: Prisma.SortOrder locationCwId?: Prisma.SortOrder departmentName?: Prisma.SortOrder departmentCwId?: Prisma.SortOrder expectedCloseDate?: Prisma.SortOrder pipelineChangeDate?: Prisma.SortOrder dateBecameLead?: Prisma.SortOrder closedDate?: Prisma.SortOrder closedFlag?: Prisma.SortOrder closedByName?: Prisma.SortOrder closedByCwId?: Prisma.SortOrder companyId?: Prisma.SortOrder cwLastUpdated?: Prisma.SortOrder createdAt?: Prisma.SortOrder updatedAt?: Prisma.SortOrder } export type OpportunityMinOrderByAggregateInput = { id?: Prisma.SortOrder cwOpportunityId?: Prisma.SortOrder name?: Prisma.SortOrder notes?: Prisma.SortOrder typeName?: Prisma.SortOrder typeCwId?: Prisma.SortOrder stageName?: Prisma.SortOrder stageCwId?: Prisma.SortOrder statusName?: Prisma.SortOrder statusCwId?: Prisma.SortOrder priorityName?: Prisma.SortOrder priorityCwId?: Prisma.SortOrder ratingName?: Prisma.SortOrder ratingCwId?: Prisma.SortOrder source?: Prisma.SortOrder campaignName?: Prisma.SortOrder campaignCwId?: Prisma.SortOrder primarySalesRepName?: Prisma.SortOrder primarySalesRepIdentifier?: Prisma.SortOrder primarySalesRepCwId?: Prisma.SortOrder secondarySalesRepName?: Prisma.SortOrder secondarySalesRepIdentifier?: Prisma.SortOrder secondarySalesRepCwId?: Prisma.SortOrder companyCwId?: Prisma.SortOrder companyName?: Prisma.SortOrder contactCwId?: Prisma.SortOrder contactName?: Prisma.SortOrder siteCwId?: Prisma.SortOrder siteName?: Prisma.SortOrder customerPO?: Prisma.SortOrder totalSalesTax?: Prisma.SortOrder probability?: Prisma.SortOrder locationName?: Prisma.SortOrder locationCwId?: Prisma.SortOrder departmentName?: Prisma.SortOrder departmentCwId?: Prisma.SortOrder expectedCloseDate?: Prisma.SortOrder pipelineChangeDate?: Prisma.SortOrder dateBecameLead?: Prisma.SortOrder closedDate?: Prisma.SortOrder closedFlag?: Prisma.SortOrder closedByName?: Prisma.SortOrder closedByCwId?: Prisma.SortOrder companyId?: Prisma.SortOrder cwLastUpdated?: Prisma.SortOrder createdAt?: Prisma.SortOrder updatedAt?: Prisma.SortOrder } export type OpportunitySumOrderByAggregateInput = { cwOpportunityId?: Prisma.SortOrder typeCwId?: Prisma.SortOrder stageCwId?: Prisma.SortOrder statusCwId?: Prisma.SortOrder priorityCwId?: Prisma.SortOrder ratingCwId?: Prisma.SortOrder campaignCwId?: Prisma.SortOrder primarySalesRepCwId?: Prisma.SortOrder secondarySalesRepCwId?: Prisma.SortOrder companyCwId?: Prisma.SortOrder contactCwId?: Prisma.SortOrder siteCwId?: Prisma.SortOrder totalSalesTax?: Prisma.SortOrder probability?: Prisma.SortOrder locationCwId?: Prisma.SortOrder departmentCwId?: Prisma.SortOrder closedByCwId?: Prisma.SortOrder productSequence?: Prisma.SortOrder } export type OpportunityScalarRelationFilter = { is?: Prisma.OpportunityWhereInput isNot?: Prisma.OpportunityWhereInput } export type OpportunityCreateNestedManyWithoutCompanyInput = { create?: Prisma.XOR | Prisma.OpportunityCreateWithoutCompanyInput[] | Prisma.OpportunityUncheckedCreateWithoutCompanyInput[] connectOrCreate?: Prisma.OpportunityCreateOrConnectWithoutCompanyInput | Prisma.OpportunityCreateOrConnectWithoutCompanyInput[] createMany?: Prisma.OpportunityCreateManyCompanyInputEnvelope connect?: Prisma.OpportunityWhereUniqueInput | Prisma.OpportunityWhereUniqueInput[] } export type OpportunityUncheckedCreateNestedManyWithoutCompanyInput = { create?: Prisma.XOR | 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[] 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[] connectOrCreate?: Prisma.OpportunityCreateOrConnectWithoutCompanyInput | Prisma.OpportunityCreateOrConnectWithoutCompanyInput[] upsert?: Prisma.OpportunityUpsertWithWhereUniqueWithoutCompanyInput | Prisma.OpportunityUpsertWithWhereUniqueWithoutCompanyInput[] createMany?: Prisma.OpportunityCreateManyCompanyInputEnvelope set?: Prisma.OpportunityWhereUniqueInput | Prisma.OpportunityWhereUniqueInput[] disconnect?: Prisma.OpportunityWhereUniqueInput | Prisma.OpportunityWhereUniqueInput[] delete?: Prisma.OpportunityWhereUniqueInput | Prisma.OpportunityWhereUniqueInput[] connect?: Prisma.OpportunityWhereUniqueInput | Prisma.OpportunityWhereUniqueInput[] update?: Prisma.OpportunityUpdateWithWhereUniqueWithoutCompanyInput | Prisma.OpportunityUpdateWithWhereUniqueWithoutCompanyInput[] updateMany?: Prisma.OpportunityUpdateManyWithWhereWithoutCompanyInput | Prisma.OpportunityUpdateManyWithWhereWithoutCompanyInput[] deleteMany?: Prisma.OpportunityScalarWhereInput | Prisma.OpportunityScalarWhereInput[] } export type OpportunityCreateproductSequenceInput = { set: number[] } export type OpportunityUpdateproductSequenceInput = { set?: number[] push?: number | number[] } export type OpportunityCreateNestedOneWithoutGeneratedQuotesInput = { create?: Prisma.XOR connectOrCreate?: Prisma.OpportunityCreateOrConnectWithoutGeneratedQuotesInput connect?: Prisma.OpportunityWhereUniqueInput } export type OpportunityUpdateOneRequiredWithoutGeneratedQuotesNestedInput = { create?: Prisma.XOR connectOrCreate?: Prisma.OpportunityCreateOrConnectWithoutGeneratedQuotesInput upsert?: Prisma.OpportunityUpsertWithoutGeneratedQuotesInput connect?: Prisma.OpportunityWhereUniqueInput update?: Prisma.XOR, Prisma.OpportunityUncheckedUpdateWithoutGeneratedQuotesInput> } export type OpportunityCreateWithoutCompanyInput = { id?: string cwOpportunityId: number name: string notes?: string | null typeName?: string | null typeCwId?: number | null stageName?: string | null stageCwId?: number | null statusName?: string | null statusCwId?: number | null priorityName?: string | null priorityCwId?: number | null ratingName?: string | null ratingCwId?: number | null source?: string | null campaignName?: string | null campaignCwId?: number | null primarySalesRepName?: string | null primarySalesRepIdentifier?: string | null primarySalesRepCwId?: number | null secondarySalesRepName?: string | null secondarySalesRepIdentifier?: string | null secondarySalesRepCwId?: number | null companyCwId?: number | null companyName?: string | null contactCwId?: number | null contactName?: string | null siteCwId?: number | null siteName?: string | null customerPO?: string | null totalSalesTax?: number probability?: number locationName?: string | null locationCwId?: number | null departmentName?: string | null departmentCwId?: number | null expectedCloseDate?: Date | string | null pipelineChangeDate?: Date | string | null dateBecameLead?: Date | string | null closedDate?: Date | string | null closedFlag?: boolean closedByName?: string | null closedByCwId?: number | null productSequence?: Prisma.OpportunityCreateproductSequenceInput | number[] cwLastUpdated?: Date | string | null createdAt?: Date | string updatedAt?: Date | string generatedQuotes?: Prisma.GeneratedQuotesCreateNestedManyWithoutOpportunityInput } export type OpportunityUncheckedCreateWithoutCompanyInput = { id?: string cwOpportunityId: number name: string notes?: string | null typeName?: string | null typeCwId?: number | null stageName?: string | null stageCwId?: number | null statusName?: string | null statusCwId?: number | null priorityName?: string | null priorityCwId?: number | null ratingName?: string | null ratingCwId?: number | null source?: string | null campaignName?: string | null campaignCwId?: number | null primarySalesRepName?: string | null primarySalesRepIdentifier?: string | null primarySalesRepCwId?: number | null secondarySalesRepName?: string | null secondarySalesRepIdentifier?: string | null secondarySalesRepCwId?: number | null companyCwId?: number | null companyName?: string | null contactCwId?: number | null contactName?: string | null siteCwId?: number | null siteName?: string | null customerPO?: string | null totalSalesTax?: number probability?: number locationName?: string | null locationCwId?: number | null departmentName?: string | null departmentCwId?: number | null expectedCloseDate?: Date | string | null pipelineChangeDate?: Date | string | null dateBecameLead?: Date | string | null closedDate?: Date | string | null closedFlag?: boolean closedByName?: string | null closedByCwId?: number | null productSequence?: Prisma.OpportunityCreateproductSequenceInput | number[] cwLastUpdated?: Date | string | null createdAt?: Date | string updatedAt?: Date | string generatedQuotes?: Prisma.GeneratedQuotesUncheckedCreateNestedManyWithoutOpportunityInput } export type OpportunityCreateOrConnectWithoutCompanyInput = { where: Prisma.OpportunityWhereUniqueInput create: Prisma.XOR } export type OpportunityCreateManyCompanyInputEnvelope = { data: Prisma.OpportunityCreateManyCompanyInput | Prisma.OpportunityCreateManyCompanyInput[] skipDuplicates?: boolean } export type OpportunityUpsertWithWhereUniqueWithoutCompanyInput = { where: Prisma.OpportunityWhereUniqueInput update: Prisma.XOR create: Prisma.XOR } export type OpportunityUpdateWithWhereUniqueWithoutCompanyInput = { where: Prisma.OpportunityWhereUniqueInput data: Prisma.XOR } export type OpportunityUpdateManyWithWhereWithoutCompanyInput = { where: Prisma.OpportunityScalarWhereInput data: Prisma.XOR } export type OpportunityScalarWhereInput = { AND?: Prisma.OpportunityScalarWhereInput | Prisma.OpportunityScalarWhereInput[] OR?: Prisma.OpportunityScalarWhereInput[] NOT?: Prisma.OpportunityScalarWhereInput | Prisma.OpportunityScalarWhereInput[] id?: Prisma.StringFilter<"Opportunity"> | string cwOpportunityId?: Prisma.IntFilter<"Opportunity"> | number name?: Prisma.StringFilter<"Opportunity"> | string notes?: Prisma.StringNullableFilter<"Opportunity"> | string | null typeName?: Prisma.StringNullableFilter<"Opportunity"> | string | null typeCwId?: Prisma.IntNullableFilter<"Opportunity"> | number | null stageName?: Prisma.StringNullableFilter<"Opportunity"> | string | null stageCwId?: Prisma.IntNullableFilter<"Opportunity"> | number | null statusName?: Prisma.StringNullableFilter<"Opportunity"> | string | null statusCwId?: Prisma.IntNullableFilter<"Opportunity"> | number | null priorityName?: Prisma.StringNullableFilter<"Opportunity"> | string | null priorityCwId?: Prisma.IntNullableFilter<"Opportunity"> | number | null ratingName?: Prisma.StringNullableFilter<"Opportunity"> | string | null ratingCwId?: Prisma.IntNullableFilter<"Opportunity"> | number | null source?: Prisma.StringNullableFilter<"Opportunity"> | string | null campaignName?: Prisma.StringNullableFilter<"Opportunity"> | string | null campaignCwId?: Prisma.IntNullableFilter<"Opportunity"> | number | null primarySalesRepName?: Prisma.StringNullableFilter<"Opportunity"> | string | null primarySalesRepIdentifier?: Prisma.StringNullableFilter<"Opportunity"> | string | null primarySalesRepCwId?: Prisma.IntNullableFilter<"Opportunity"> | number | null secondarySalesRepName?: Prisma.StringNullableFilter<"Opportunity"> | string | null secondarySalesRepIdentifier?: Prisma.StringNullableFilter<"Opportunity"> | string | null secondarySalesRepCwId?: Prisma.IntNullableFilter<"Opportunity"> | number | null companyCwId?: Prisma.IntNullableFilter<"Opportunity"> | number | null companyName?: Prisma.StringNullableFilter<"Opportunity"> | string | null contactCwId?: Prisma.IntNullableFilter<"Opportunity"> | number | null contactName?: Prisma.StringNullableFilter<"Opportunity"> | string | null siteCwId?: Prisma.IntNullableFilter<"Opportunity"> | number | null siteName?: Prisma.StringNullableFilter<"Opportunity"> | string | null customerPO?: Prisma.StringNullableFilter<"Opportunity"> | string | null totalSalesTax?: Prisma.FloatFilter<"Opportunity"> | number probability?: Prisma.FloatFilter<"Opportunity"> | number locationName?: Prisma.StringNullableFilter<"Opportunity"> | string | null locationCwId?: Prisma.IntNullableFilter<"Opportunity"> | number | null departmentName?: Prisma.StringNullableFilter<"Opportunity"> | string | null departmentCwId?: Prisma.IntNullableFilter<"Opportunity"> | number | null expectedCloseDate?: Prisma.DateTimeNullableFilter<"Opportunity"> | Date | string | null pipelineChangeDate?: Prisma.DateTimeNullableFilter<"Opportunity"> | Date | string | null dateBecameLead?: Prisma.DateTimeNullableFilter<"Opportunity"> | Date | string | null closedDate?: Prisma.DateTimeNullableFilter<"Opportunity"> | Date | string | null closedFlag?: Prisma.BoolFilter<"Opportunity"> | boolean closedByName?: Prisma.StringNullableFilter<"Opportunity"> | string | null closedByCwId?: Prisma.IntNullableFilter<"Opportunity"> | number | null companyId?: Prisma.StringNullableFilter<"Opportunity"> | string | null productSequence?: Prisma.IntNullableListFilter<"Opportunity"> cwLastUpdated?: Prisma.DateTimeNullableFilter<"Opportunity"> | Date | string | null createdAt?: Prisma.DateTimeFilter<"Opportunity"> | Date | string updatedAt?: Prisma.DateTimeFilter<"Opportunity"> | Date | string } export type OpportunityCreateWithoutGeneratedQuotesInput = { id?: string cwOpportunityId: number name: string notes?: string | null typeName?: string | null typeCwId?: number | null stageName?: string | null stageCwId?: number | null statusName?: string | null statusCwId?: number | null priorityName?: string | null priorityCwId?: number | null ratingName?: string | null ratingCwId?: number | null source?: string | null campaignName?: string | null campaignCwId?: number | null primarySalesRepName?: string | null primarySalesRepIdentifier?: string | null primarySalesRepCwId?: number | null secondarySalesRepName?: string | null secondarySalesRepIdentifier?: string | null secondarySalesRepCwId?: number | null companyCwId?: number | null companyName?: string | null contactCwId?: number | null contactName?: string | null siteCwId?: number | null siteName?: string | null customerPO?: string | null totalSalesTax?: number probability?: number locationName?: string | null locationCwId?: number | null departmentName?: string | null departmentCwId?: number | null expectedCloseDate?: Date | string | null pipelineChangeDate?: Date | string | null dateBecameLead?: Date | string | null closedDate?: Date | string | null closedFlag?: boolean closedByName?: string | null closedByCwId?: number | null productSequence?: Prisma.OpportunityCreateproductSequenceInput | number[] cwLastUpdated?: Date | string | null createdAt?: Date | string updatedAt?: Date | string company?: Prisma.CompanyCreateNestedOneWithoutOpportunitiesInput } export type OpportunityUncheckedCreateWithoutGeneratedQuotesInput = { id?: string cwOpportunityId: number name: string notes?: string | null typeName?: string | null typeCwId?: number | null stageName?: string | null stageCwId?: number | null statusName?: string | null statusCwId?: number | null priorityName?: string | null priorityCwId?: number | null ratingName?: string | null ratingCwId?: number | null source?: string | null campaignName?: string | null campaignCwId?: number | null primarySalesRepName?: string | null primarySalesRepIdentifier?: string | null primarySalesRepCwId?: number | null secondarySalesRepName?: string | null secondarySalesRepIdentifier?: string | null secondarySalesRepCwId?: number | null companyCwId?: number | null companyName?: string | null contactCwId?: number | null contactName?: string | null siteCwId?: number | null siteName?: string | null customerPO?: string | null totalSalesTax?: number probability?: number locationName?: string | null locationCwId?: number | null departmentName?: string | null departmentCwId?: number | null expectedCloseDate?: Date | string | null pipelineChangeDate?: Date | string | null dateBecameLead?: Date | string | null closedDate?: Date | string | null closedFlag?: boolean closedByName?: string | null closedByCwId?: number | null companyId?: string | null productSequence?: Prisma.OpportunityCreateproductSequenceInput | number[] cwLastUpdated?: Date | string | null createdAt?: Date | string updatedAt?: Date | string } export type OpportunityCreateOrConnectWithoutGeneratedQuotesInput = { where: Prisma.OpportunityWhereUniqueInput create: Prisma.XOR } export type OpportunityUpsertWithoutGeneratedQuotesInput = { update: Prisma.XOR create: Prisma.XOR where?: Prisma.OpportunityWhereInput } export type OpportunityUpdateToOneWithWhereWithoutGeneratedQuotesInput = { where?: Prisma.OpportunityWhereInput data: Prisma.XOR } export type OpportunityUpdateWithoutGeneratedQuotesInput = { id?: Prisma.StringFieldUpdateOperationsInput | string cwOpportunityId?: Prisma.IntFieldUpdateOperationsInput | number name?: Prisma.StringFieldUpdateOperationsInput | string notes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null typeName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null typeCwId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null stageName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null stageCwId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null statusName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null statusCwId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null priorityName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null priorityCwId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null ratingName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null ratingCwId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null source?: Prisma.NullableStringFieldUpdateOperationsInput | string | null campaignName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null campaignCwId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null primarySalesRepName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null primarySalesRepIdentifier?: Prisma.NullableStringFieldUpdateOperationsInput | string | null primarySalesRepCwId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null secondarySalesRepName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null secondarySalesRepIdentifier?: Prisma.NullableStringFieldUpdateOperationsInput | string | null secondarySalesRepCwId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null companyCwId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null companyName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null contactCwId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null contactName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null siteCwId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null siteName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null customerPO?: Prisma.NullableStringFieldUpdateOperationsInput | string | null totalSalesTax?: Prisma.FloatFieldUpdateOperationsInput | number probability?: Prisma.FloatFieldUpdateOperationsInput | number locationName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null locationCwId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null departmentName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null departmentCwId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null expectedCloseDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null pipelineChangeDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null dateBecameLead?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null closedDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null closedFlag?: Prisma.BoolFieldUpdateOperationsInput | boolean closedByName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null closedByCwId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null productSequence?: Prisma.OpportunityUpdateproductSequenceInput | number[] cwLastUpdated?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string company?: Prisma.CompanyUpdateOneWithoutOpportunitiesNestedInput } export type OpportunityUncheckedUpdateWithoutGeneratedQuotesInput = { id?: Prisma.StringFieldUpdateOperationsInput | string cwOpportunityId?: Prisma.IntFieldUpdateOperationsInput | number name?: Prisma.StringFieldUpdateOperationsInput | string notes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null typeName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null typeCwId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null stageName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null stageCwId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null statusName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null statusCwId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null priorityName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null priorityCwId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null ratingName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null ratingCwId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null source?: Prisma.NullableStringFieldUpdateOperationsInput | string | null campaignName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null campaignCwId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null primarySalesRepName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null primarySalesRepIdentifier?: Prisma.NullableStringFieldUpdateOperationsInput | string | null primarySalesRepCwId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null secondarySalesRepName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null secondarySalesRepIdentifier?: Prisma.NullableStringFieldUpdateOperationsInput | string | null secondarySalesRepCwId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null companyCwId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null companyName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null contactCwId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null contactName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null siteCwId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null siteName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null customerPO?: Prisma.NullableStringFieldUpdateOperationsInput | string | null totalSalesTax?: Prisma.FloatFieldUpdateOperationsInput | number probability?: Prisma.FloatFieldUpdateOperationsInput | number locationName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null locationCwId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null departmentName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null departmentCwId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null expectedCloseDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null pipelineChangeDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null dateBecameLead?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null closedDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null closedFlag?: Prisma.BoolFieldUpdateOperationsInput | boolean closedByName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null closedByCwId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null companyId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null productSequence?: Prisma.OpportunityUpdateproductSequenceInput | number[] cwLastUpdated?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string } export type OpportunityCreateManyCompanyInput = { id?: string cwOpportunityId: number name: string notes?: string | null typeName?: string | null typeCwId?: number | null stageName?: string | null stageCwId?: number | null statusName?: string | null statusCwId?: number | null priorityName?: string | null priorityCwId?: number | null ratingName?: string | null ratingCwId?: number | null source?: string | null campaignName?: string | null campaignCwId?: number | null primarySalesRepName?: string | null primarySalesRepIdentifier?: string | null primarySalesRepCwId?: number | null secondarySalesRepName?: string | null secondarySalesRepIdentifier?: string | null secondarySalesRepCwId?: number | null companyCwId?: number | null companyName?: string | null contactCwId?: number | null contactName?: string | null siteCwId?: number | null siteName?: string | null customerPO?: string | null totalSalesTax?: number probability?: number locationName?: string | null locationCwId?: number | null departmentName?: string | null departmentCwId?: number | null expectedCloseDate?: Date | string | null pipelineChangeDate?: Date | string | null dateBecameLead?: Date | string | null closedDate?: Date | string | null closedFlag?: boolean closedByName?: string | null closedByCwId?: number | null productSequence?: Prisma.OpportunityCreateproductSequenceInput | number[] cwLastUpdated?: Date | string | null createdAt?: Date | string updatedAt?: Date | string } export type OpportunityUpdateWithoutCompanyInput = { id?: Prisma.StringFieldUpdateOperationsInput | string cwOpportunityId?: Prisma.IntFieldUpdateOperationsInput | number name?: Prisma.StringFieldUpdateOperationsInput | string notes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null typeName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null typeCwId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null stageName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null stageCwId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null statusName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null statusCwId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null priorityName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null priorityCwId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null ratingName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null ratingCwId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null source?: Prisma.NullableStringFieldUpdateOperationsInput | string | null campaignName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null campaignCwId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null primarySalesRepName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null primarySalesRepIdentifier?: Prisma.NullableStringFieldUpdateOperationsInput | string | null primarySalesRepCwId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null secondarySalesRepName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null secondarySalesRepIdentifier?: Prisma.NullableStringFieldUpdateOperationsInput | string | null secondarySalesRepCwId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null companyCwId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null companyName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null contactCwId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null contactName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null siteCwId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null siteName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null customerPO?: Prisma.NullableStringFieldUpdateOperationsInput | string | null totalSalesTax?: Prisma.FloatFieldUpdateOperationsInput | number probability?: Prisma.FloatFieldUpdateOperationsInput | number locationName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null locationCwId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null departmentName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null departmentCwId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null expectedCloseDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null pipelineChangeDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null dateBecameLead?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null closedDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null closedFlag?: Prisma.BoolFieldUpdateOperationsInput | boolean closedByName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null closedByCwId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null productSequence?: Prisma.OpportunityUpdateproductSequenceInput | number[] cwLastUpdated?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string generatedQuotes?: Prisma.GeneratedQuotesUpdateManyWithoutOpportunityNestedInput } export type OpportunityUncheckedUpdateWithoutCompanyInput = { id?: Prisma.StringFieldUpdateOperationsInput | string cwOpportunityId?: Prisma.IntFieldUpdateOperationsInput | number name?: Prisma.StringFieldUpdateOperationsInput | string notes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null typeName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null typeCwId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null stageName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null stageCwId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null statusName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null statusCwId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null priorityName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null priorityCwId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null ratingName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null ratingCwId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null source?: Prisma.NullableStringFieldUpdateOperationsInput | string | null campaignName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null campaignCwId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null primarySalesRepName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null primarySalesRepIdentifier?: Prisma.NullableStringFieldUpdateOperationsInput | string | null primarySalesRepCwId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null secondarySalesRepName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null secondarySalesRepIdentifier?: Prisma.NullableStringFieldUpdateOperationsInput | string | null secondarySalesRepCwId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null companyCwId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null companyName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null contactCwId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null contactName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null siteCwId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null siteName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null customerPO?: Prisma.NullableStringFieldUpdateOperationsInput | string | null totalSalesTax?: Prisma.FloatFieldUpdateOperationsInput | number probability?: Prisma.FloatFieldUpdateOperationsInput | number locationName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null locationCwId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null departmentName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null departmentCwId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null expectedCloseDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null pipelineChangeDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null dateBecameLead?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null closedDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null closedFlag?: Prisma.BoolFieldUpdateOperationsInput | boolean closedByName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null closedByCwId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null productSequence?: Prisma.OpportunityUpdateproductSequenceInput | number[] cwLastUpdated?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string generatedQuotes?: Prisma.GeneratedQuotesUncheckedUpdateManyWithoutOpportunityNestedInput } export type OpportunityUncheckedUpdateManyWithoutCompanyInput = { id?: Prisma.StringFieldUpdateOperationsInput | string cwOpportunityId?: Prisma.IntFieldUpdateOperationsInput | number name?: Prisma.StringFieldUpdateOperationsInput | string notes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null typeName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null typeCwId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null stageName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null stageCwId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null statusName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null statusCwId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null priorityName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null priorityCwId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null ratingName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null ratingCwId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null source?: Prisma.NullableStringFieldUpdateOperationsInput | string | null campaignName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null campaignCwId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null primarySalesRepName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null primarySalesRepIdentifier?: Prisma.NullableStringFieldUpdateOperationsInput | string | null primarySalesRepCwId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null secondarySalesRepName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null secondarySalesRepIdentifier?: Prisma.NullableStringFieldUpdateOperationsInput | string | null secondarySalesRepCwId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null companyCwId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null companyName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null contactCwId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null contactName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null siteCwId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null siteName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null customerPO?: Prisma.NullableStringFieldUpdateOperationsInput | string | null totalSalesTax?: Prisma.FloatFieldUpdateOperationsInput | number probability?: Prisma.FloatFieldUpdateOperationsInput | number locationName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null locationCwId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null departmentName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null departmentCwId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null expectedCloseDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null pipelineChangeDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null dateBecameLead?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null closedDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null closedFlag?: Prisma.BoolFieldUpdateOperationsInput | boolean closedByName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null closedByCwId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null productSequence?: Prisma.OpportunityUpdateproductSequenceInput | number[] cwLastUpdated?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string } /** * Count Type OpportunityCountOutputType */ export type OpportunityCountOutputType = { generatedQuotes: number } export type OpportunityCountOutputTypeSelect = { generatedQuotes?: boolean | OpportunityCountOutputTypeCountGeneratedQuotesArgs } /** * OpportunityCountOutputType without action */ export type OpportunityCountOutputTypeDefaultArgs = { /** * Select specific fields to fetch from the OpportunityCountOutputType */ select?: Prisma.OpportunityCountOutputTypeSelect | null } /** * OpportunityCountOutputType without action */ export type OpportunityCountOutputTypeCountGeneratedQuotesArgs = { where?: Prisma.GeneratedQuotesWhereInput } export type OpportunitySelect = runtime.Types.Extensions.GetSelect<{ id?: boolean cwOpportunityId?: boolean name?: boolean notes?: boolean typeName?: boolean typeCwId?: boolean stageName?: boolean stageCwId?: boolean statusName?: boolean statusCwId?: boolean priorityName?: boolean priorityCwId?: boolean ratingName?: boolean ratingCwId?: boolean source?: boolean campaignName?: boolean campaignCwId?: boolean primarySalesRepName?: boolean primarySalesRepIdentifier?: boolean primarySalesRepCwId?: boolean secondarySalesRepName?: boolean secondarySalesRepIdentifier?: boolean secondarySalesRepCwId?: boolean companyCwId?: boolean companyName?: boolean contactCwId?: boolean contactName?: boolean siteCwId?: boolean siteName?: boolean customerPO?: boolean totalSalesTax?: boolean probability?: boolean locationName?: boolean locationCwId?: boolean departmentName?: boolean departmentCwId?: boolean expectedCloseDate?: boolean pipelineChangeDate?: boolean dateBecameLead?: boolean closedDate?: boolean closedFlag?: boolean closedByName?: boolean closedByCwId?: boolean companyId?: boolean productSequence?: boolean cwLastUpdated?: boolean createdAt?: boolean updatedAt?: boolean generatedQuotes?: boolean | Prisma.Opportunity$generatedQuotesArgs company?: boolean | Prisma.Opportunity$companyArgs _count?: boolean | Prisma.OpportunityCountOutputTypeDefaultArgs }, ExtArgs["result"]["opportunity"]> export type OpportunitySelectCreateManyAndReturn = runtime.Types.Extensions.GetSelect<{ id?: boolean cwOpportunityId?: boolean name?: boolean notes?: boolean typeName?: boolean typeCwId?: boolean stageName?: boolean stageCwId?: boolean statusName?: boolean statusCwId?: boolean priorityName?: boolean priorityCwId?: boolean ratingName?: boolean ratingCwId?: boolean source?: boolean campaignName?: boolean campaignCwId?: boolean primarySalesRepName?: boolean primarySalesRepIdentifier?: boolean primarySalesRepCwId?: boolean secondarySalesRepName?: boolean secondarySalesRepIdentifier?: boolean secondarySalesRepCwId?: boolean companyCwId?: boolean companyName?: boolean contactCwId?: boolean contactName?: boolean siteCwId?: boolean siteName?: boolean customerPO?: boolean totalSalesTax?: boolean probability?: boolean locationName?: boolean locationCwId?: boolean departmentName?: boolean departmentCwId?: boolean expectedCloseDate?: boolean pipelineChangeDate?: boolean dateBecameLead?: boolean closedDate?: boolean closedFlag?: boolean closedByName?: boolean closedByCwId?: boolean companyId?: boolean productSequence?: boolean cwLastUpdated?: boolean createdAt?: boolean updatedAt?: boolean company?: boolean | Prisma.Opportunity$companyArgs }, ExtArgs["result"]["opportunity"]> export type OpportunitySelectUpdateManyAndReturn = runtime.Types.Extensions.GetSelect<{ id?: boolean cwOpportunityId?: boolean name?: boolean notes?: boolean typeName?: boolean typeCwId?: boolean stageName?: boolean stageCwId?: boolean statusName?: boolean statusCwId?: boolean priorityName?: boolean priorityCwId?: boolean ratingName?: boolean ratingCwId?: boolean source?: boolean campaignName?: boolean campaignCwId?: boolean primarySalesRepName?: boolean primarySalesRepIdentifier?: boolean primarySalesRepCwId?: boolean secondarySalesRepName?: boolean secondarySalesRepIdentifier?: boolean secondarySalesRepCwId?: boolean companyCwId?: boolean companyName?: boolean contactCwId?: boolean contactName?: boolean siteCwId?: boolean siteName?: boolean customerPO?: boolean totalSalesTax?: boolean probability?: boolean locationName?: boolean locationCwId?: boolean departmentName?: boolean departmentCwId?: boolean expectedCloseDate?: boolean pipelineChangeDate?: boolean dateBecameLead?: boolean closedDate?: boolean closedFlag?: boolean closedByName?: boolean closedByCwId?: boolean companyId?: boolean productSequence?: boolean cwLastUpdated?: boolean createdAt?: boolean updatedAt?: boolean company?: boolean | Prisma.Opportunity$companyArgs }, ExtArgs["result"]["opportunity"]> export type OpportunitySelectScalar = { id?: boolean cwOpportunityId?: boolean name?: boolean notes?: boolean typeName?: boolean typeCwId?: boolean stageName?: boolean stageCwId?: boolean statusName?: boolean statusCwId?: boolean priorityName?: boolean priorityCwId?: boolean ratingName?: boolean ratingCwId?: boolean source?: boolean campaignName?: boolean campaignCwId?: boolean primarySalesRepName?: boolean primarySalesRepIdentifier?: boolean primarySalesRepCwId?: boolean secondarySalesRepName?: boolean secondarySalesRepIdentifier?: boolean secondarySalesRepCwId?: boolean companyCwId?: boolean companyName?: boolean contactCwId?: boolean contactName?: boolean siteCwId?: boolean siteName?: boolean customerPO?: boolean totalSalesTax?: boolean probability?: boolean locationName?: boolean locationCwId?: boolean departmentName?: boolean departmentCwId?: boolean expectedCloseDate?: boolean pipelineChangeDate?: boolean dateBecameLead?: boolean closedDate?: boolean closedFlag?: boolean closedByName?: boolean closedByCwId?: boolean companyId?: boolean productSequence?: boolean cwLastUpdated?: boolean createdAt?: boolean updatedAt?: boolean } export type OpportunityOmit = runtime.Types.Extensions.GetOmit<"id" | "cwOpportunityId" | "name" | "notes" | "typeName" | "typeCwId" | "stageName" | "stageCwId" | "statusName" | "statusCwId" | "priorityName" | "priorityCwId" | "ratingName" | "ratingCwId" | "source" | "campaignName" | "campaignCwId" | "primarySalesRepName" | "primarySalesRepIdentifier" | "primarySalesRepCwId" | "secondarySalesRepName" | "secondarySalesRepIdentifier" | "secondarySalesRepCwId" | "companyCwId" | "companyName" | "contactCwId" | "contactName" | "siteCwId" | "siteName" | "customerPO" | "totalSalesTax" | "probability" | "locationName" | "locationCwId" | "departmentName" | "departmentCwId" | "expectedCloseDate" | "pipelineChangeDate" | "dateBecameLead" | "closedDate" | "closedFlag" | "closedByName" | "closedByCwId" | "companyId" | "productSequence" | "cwLastUpdated" | "createdAt" | "updatedAt", ExtArgs["result"]["opportunity"]> export type OpportunityInclude = { generatedQuotes?: boolean | Prisma.Opportunity$generatedQuotesArgs company?: boolean | Prisma.Opportunity$companyArgs _count?: boolean | Prisma.OpportunityCountOutputTypeDefaultArgs } export type OpportunityIncludeCreateManyAndReturn = { company?: boolean | Prisma.Opportunity$companyArgs } export type OpportunityIncludeUpdateManyAndReturn = { company?: boolean | Prisma.Opportunity$companyArgs } export type $OpportunityPayload = { name: "Opportunity" objects: { generatedQuotes: Prisma.$GeneratedQuotesPayload[] company: Prisma.$CompanyPayload | null } scalars: runtime.Types.Extensions.GetPayloadResult<{ id: string cwOpportunityId: number name: string notes: string | null typeName: string | null typeCwId: number | null stageName: string | null stageCwId: number | null statusName: string | null statusCwId: number | null priorityName: string | null priorityCwId: number | null ratingName: string | null ratingCwId: number | null source: string | null campaignName: string | null campaignCwId: number | null primarySalesRepName: string | null primarySalesRepIdentifier: string | null primarySalesRepCwId: number | null secondarySalesRepName: string | null secondarySalesRepIdentifier: string | null secondarySalesRepCwId: number | null companyCwId: number | null companyName: string | null contactCwId: number | null contactName: string | null siteCwId: number | null siteName: string | null customerPO: string | null totalSalesTax: number probability: number locationName: string | null locationCwId: number | null departmentName: string | null departmentCwId: number | null expectedCloseDate: Date | null pipelineChangeDate: Date | null dateBecameLead: Date | null closedDate: Date | null closedFlag: boolean closedByName: string | null closedByCwId: number | null companyId: string | null productSequence: number[] cwLastUpdated: Date | null createdAt: Date updatedAt: Date }, ExtArgs["result"]["opportunity"]> composites: {} } export type OpportunityGetPayload = runtime.Types.Result.GetResult export type OpportunityCountArgs = Omit & { select?: OpportunityCountAggregateInputType | true } export interface OpportunityDelegate { [K: symbol]: { types: Prisma.TypeMap['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(args: Prisma.SelectSubset>): Prisma.Prisma__OpportunityClient, 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(args: Prisma.SelectSubset>): Prisma.Prisma__OpportunityClient, 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(args?: Prisma.SelectSubset>): Prisma.Prisma__OpportunityClient, 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(args?: Prisma.SelectSubset>): Prisma.Prisma__OpportunityClient, 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(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, 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(args: Prisma.SelectSubset>): Prisma.Prisma__OpportunityClient, 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(args?: Prisma.SelectSubset>): Prisma.PrismaPromise /** * 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(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, 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(args: Prisma.SelectSubset>): Prisma.Prisma__OpportunityClient, 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(args: Prisma.SelectSubset>): Prisma.Prisma__OpportunityClient, 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(args?: Prisma.SelectSubset>): Prisma.PrismaPromise /** * 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(args: Prisma.SelectSubset>): Prisma.PrismaPromise /** * 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(args: Prisma.SelectSubset>): Prisma.PrismaPromise, 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(args: Prisma.SelectSubset>): Prisma.Prisma__OpportunityClient, 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( args?: Prisma.Subset, ): Prisma.PrismaPromise< T extends runtime.Types.Utils.Record<'select', any> ? T['select'] extends true ? number : Prisma.GetScalarType : number > /** * Allows you to perform aggregations operations on a 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(args: Prisma.Subset): Prisma.PrismaPromise> /** * 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>, Prisma.Extends<'take', Prisma.Keys> >, OrderByArg extends Prisma.True extends HasSelectOrTake ? { orderBy: OpportunityGroupByArgs['orderBy'] } : { orderBy?: OpportunityGroupByArgs['orderBy'] }, OrderFields extends Prisma.ExcludeUnderscoreKeys>>, ByFields extends Prisma.MaybeTupleToUnion, ByValid extends Prisma.Has, HavingFields extends Prisma.GetHavingFields, HavingValid extends Prisma.Has, ByEmpty extends T['by'] extends never[] ? Prisma.True : Prisma.False, InputErrors extends ByEmpty extends Prisma.True ? `Error: "by" must not be empty.` : HavingValid extends Prisma.False ? { [P in HavingFields]: P extends ByFields ? never : P extends string ? `Error: Field "${P}" used in "having" needs to be provided in "by".` : [ Error, 'Field ', P, ` in "having" needs to be provided in "by"`, ] }[HavingFields] : 'take' extends Prisma.Keys ? 'orderBy' extends Prisma.Keys ? ByValid extends Prisma.True ? {} : { [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` }[OrderFields] : 'Error: If you provide "take", you also need to provide "orderBy"' : 'skip' extends Prisma.Keys ? 'orderBy' extends Prisma.Keys ? ByValid extends Prisma.True ? {} : { [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` }[OrderFields] : 'Error: If you provide "skip", you also need to provide "orderBy"' : ByValid extends Prisma.True ? {} : { [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` }[OrderFields] >(args: Prisma.SubsetIntersection & InputErrors): {} extends InputErrors ? GetOpportunityGroupByPayload : Prisma.PrismaPromise /** * 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 extends Prisma.PrismaPromise { readonly [Symbol.toStringTag]: "PrismaPromise" generatedQuotes = {}>(args?: Prisma.Subset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions> | Null> company = {}>(args?: Prisma.Subset>): Prisma.Prisma__CompanyClient, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Attaches callbacks for the resolution and/or rejection of the Promise. * @param onfulfilled The callback to execute when the Promise is resolved. * @param onrejected The callback to execute when the Promise is rejected. * @returns A Promise for the completion of which ever callback is executed. */ then(onfulfilled?: ((value: T) => TResult1 | PromiseLike) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike) | undefined | null): runtime.Types.Utils.JsPromise /** * Attaches a callback for only the rejection of the Promise. * @param onrejected The callback to execute when the Promise is rejected. * @returns A Promise for the completion of the callback. */ catch(onrejected?: ((reason: any) => TResult | PromiseLike) | undefined | null): runtime.Types.Utils.JsPromise /** * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The * resolved value cannot be modified from the callback. * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected). * @returns A Promise for the completion of the callback. */ finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise } /** * Fields of the Opportunity model */ export interface OpportunityFieldRefs { readonly id: Prisma.FieldRef<"Opportunity", 'String'> readonly cwOpportunityId: Prisma.FieldRef<"Opportunity", 'Int'> readonly name: Prisma.FieldRef<"Opportunity", 'String'> readonly notes: Prisma.FieldRef<"Opportunity", 'String'> readonly typeName: Prisma.FieldRef<"Opportunity", 'String'> readonly typeCwId: Prisma.FieldRef<"Opportunity", 'Int'> readonly stageName: Prisma.FieldRef<"Opportunity", 'String'> readonly stageCwId: Prisma.FieldRef<"Opportunity", 'Int'> readonly statusName: Prisma.FieldRef<"Opportunity", 'String'> readonly statusCwId: Prisma.FieldRef<"Opportunity", 'Int'> readonly priorityName: Prisma.FieldRef<"Opportunity", 'String'> readonly priorityCwId: Prisma.FieldRef<"Opportunity", 'Int'> readonly ratingName: Prisma.FieldRef<"Opportunity", 'String'> readonly ratingCwId: Prisma.FieldRef<"Opportunity", 'Int'> readonly source: Prisma.FieldRef<"Opportunity", 'String'> readonly campaignName: Prisma.FieldRef<"Opportunity", 'String'> readonly campaignCwId: Prisma.FieldRef<"Opportunity", 'Int'> readonly primarySalesRepName: Prisma.FieldRef<"Opportunity", 'String'> readonly primarySalesRepIdentifier: Prisma.FieldRef<"Opportunity", 'String'> readonly primarySalesRepCwId: Prisma.FieldRef<"Opportunity", 'Int'> readonly secondarySalesRepName: Prisma.FieldRef<"Opportunity", 'String'> readonly secondarySalesRepIdentifier: Prisma.FieldRef<"Opportunity", 'String'> readonly secondarySalesRepCwId: Prisma.FieldRef<"Opportunity", 'Int'> readonly companyCwId: Prisma.FieldRef<"Opportunity", 'Int'> readonly companyName: Prisma.FieldRef<"Opportunity", 'String'> readonly contactCwId: Prisma.FieldRef<"Opportunity", 'Int'> readonly contactName: Prisma.FieldRef<"Opportunity", 'String'> readonly siteCwId: Prisma.FieldRef<"Opportunity", 'Int'> readonly siteName: Prisma.FieldRef<"Opportunity", 'String'> readonly customerPO: Prisma.FieldRef<"Opportunity", 'String'> readonly totalSalesTax: Prisma.FieldRef<"Opportunity", 'Float'> readonly probability: Prisma.FieldRef<"Opportunity", 'Float'> readonly locationName: Prisma.FieldRef<"Opportunity", 'String'> readonly locationCwId: Prisma.FieldRef<"Opportunity", 'Int'> readonly departmentName: Prisma.FieldRef<"Opportunity", 'String'> readonly departmentCwId: Prisma.FieldRef<"Opportunity", 'Int'> readonly expectedCloseDate: Prisma.FieldRef<"Opportunity", 'DateTime'> readonly pipelineChangeDate: Prisma.FieldRef<"Opportunity", 'DateTime'> readonly dateBecameLead: Prisma.FieldRef<"Opportunity", 'DateTime'> readonly closedDate: Prisma.FieldRef<"Opportunity", 'DateTime'> readonly closedFlag: Prisma.FieldRef<"Opportunity", 'Boolean'> readonly closedByName: Prisma.FieldRef<"Opportunity", 'String'> readonly closedByCwId: Prisma.FieldRef<"Opportunity", 'Int'> readonly companyId: Prisma.FieldRef<"Opportunity", 'String'> readonly productSequence: Prisma.FieldRef<"Opportunity", 'Int[]'> readonly cwLastUpdated: Prisma.FieldRef<"Opportunity", 'DateTime'> readonly createdAt: Prisma.FieldRef<"Opportunity", 'DateTime'> readonly updatedAt: Prisma.FieldRef<"Opportunity", 'DateTime'> } // Custom InputTypes /** * Opportunity findUnique */ export type OpportunityFindUniqueArgs = { /** * Select specific fields to fetch from the Opportunity */ select?: Prisma.OpportunitySelect | null /** * Omit specific fields from the Opportunity */ omit?: Prisma.OpportunityOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.OpportunityInclude | null /** * Filter, which Opportunity to fetch. */ where: Prisma.OpportunityWhereUniqueInput } /** * Opportunity findUniqueOrThrow */ export type OpportunityFindUniqueOrThrowArgs = { /** * Select specific fields to fetch from the Opportunity */ select?: Prisma.OpportunitySelect | null /** * Omit specific fields from the Opportunity */ omit?: Prisma.OpportunityOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.OpportunityInclude | null /** * Filter, which Opportunity to fetch. */ where: Prisma.OpportunityWhereUniqueInput } /** * Opportunity findFirst */ export type OpportunityFindFirstArgs = { /** * Select specific fields to fetch from the Opportunity */ select?: Prisma.OpportunitySelect | null /** * Omit specific fields from the Opportunity */ omit?: Prisma.OpportunityOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.OpportunityInclude | 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 = { /** * Select specific fields to fetch from the Opportunity */ select?: Prisma.OpportunitySelect | null /** * Omit specific fields from the Opportunity */ omit?: Prisma.OpportunityOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.OpportunityInclude | 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 = { /** * Select specific fields to fetch from the Opportunity */ select?: Prisma.OpportunitySelect | null /** * Omit specific fields from the Opportunity */ omit?: Prisma.OpportunityOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.OpportunityInclude | null /** * Filter, which Opportunities to fetch. */ where?: Prisma.OpportunityWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Opportunities to fetch. */ orderBy?: Prisma.OpportunityOrderByWithRelationInput | Prisma.OpportunityOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for listing Opportunities. */ cursor?: Prisma.OpportunityWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Opportunities from the position of the cursor. */ take?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Skip the first `n` Opportunities. */ skip?: number distinct?: Prisma.OpportunityScalarFieldEnum | Prisma.OpportunityScalarFieldEnum[] } /** * Opportunity create */ export type OpportunityCreateArgs = { /** * Select specific fields to fetch from the Opportunity */ select?: Prisma.OpportunitySelect | null /** * Omit specific fields from the Opportunity */ omit?: Prisma.OpportunityOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.OpportunityInclude | null /** * The data needed to create a Opportunity. */ data: Prisma.XOR } /** * Opportunity createMany */ export type OpportunityCreateManyArgs = { /** * The data used to create many Opportunities. */ data: Prisma.OpportunityCreateManyInput | Prisma.OpportunityCreateManyInput[] skipDuplicates?: boolean } /** * Opportunity createManyAndReturn */ export type OpportunityCreateManyAndReturnArgs = { /** * Select specific fields to fetch from the Opportunity */ select?: Prisma.OpportunitySelectCreateManyAndReturn | null /** * Omit specific fields from the Opportunity */ omit?: Prisma.OpportunityOmit | 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 | null } /** * Opportunity update */ export type OpportunityUpdateArgs = { /** * Select specific fields to fetch from the Opportunity */ select?: Prisma.OpportunitySelect | null /** * Omit specific fields from the Opportunity */ omit?: Prisma.OpportunityOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.OpportunityInclude | null /** * The data needed to update a Opportunity. */ data: Prisma.XOR /** * Choose, which Opportunity to update. */ where: Prisma.OpportunityWhereUniqueInput } /** * Opportunity updateMany */ export type OpportunityUpdateManyArgs = { /** * The data used to update Opportunities. */ data: Prisma.XOR /** * Filter which Opportunities to update */ where?: Prisma.OpportunityWhereInput /** * Limit how many Opportunities to update. */ limit?: number } /** * Opportunity updateManyAndReturn */ export type OpportunityUpdateManyAndReturnArgs = { /** * Select specific fields to fetch from the Opportunity */ select?: Prisma.OpportunitySelectUpdateManyAndReturn | null /** * Omit specific fields from the Opportunity */ omit?: Prisma.OpportunityOmit | null /** * The data used to update Opportunities. */ data: Prisma.XOR /** * 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 | null } /** * Opportunity upsert */ export type OpportunityUpsertArgs = { /** * Select specific fields to fetch from the Opportunity */ select?: Prisma.OpportunitySelect | null /** * Omit specific fields from the Opportunity */ omit?: Prisma.OpportunityOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.OpportunityInclude | 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 /** * In case the Opportunity was found with the provided `where` argument, update it with this data. */ update: Prisma.XOR } /** * Opportunity delete */ export type OpportunityDeleteArgs = { /** * Select specific fields to fetch from the Opportunity */ select?: Prisma.OpportunitySelect | null /** * Omit specific fields from the Opportunity */ omit?: Prisma.OpportunityOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.OpportunityInclude | null /** * Filter which Opportunity to delete. */ where: Prisma.OpportunityWhereUniqueInput } /** * Opportunity deleteMany */ export type OpportunityDeleteManyArgs = { /** * Filter which Opportunities to delete */ where?: Prisma.OpportunityWhereInput /** * Limit how many Opportunities to delete. */ limit?: number } /** * Opportunity.generatedQuotes */ export type Opportunity$generatedQuotesArgs = { /** * Select specific fields to fetch from the GeneratedQuotes */ select?: Prisma.GeneratedQuotesSelect | null /** * Omit specific fields from the GeneratedQuotes */ omit?: Prisma.GeneratedQuotesOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.GeneratedQuotesInclude | null where?: Prisma.GeneratedQuotesWhereInput orderBy?: Prisma.GeneratedQuotesOrderByWithRelationInput | Prisma.GeneratedQuotesOrderByWithRelationInput[] cursor?: Prisma.GeneratedQuotesWhereUniqueInput take?: number skip?: number distinct?: Prisma.GeneratedQuotesScalarFieldEnum | Prisma.GeneratedQuotesScalarFieldEnum[] } /** * Opportunity.company */ export type Opportunity$companyArgs = { /** * Select specific fields to fetch from the Company */ select?: Prisma.CompanySelect | null /** * Omit specific fields from the Company */ omit?: Prisma.CompanyOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.CompanyInclude | null where?: Prisma.CompanyWhereInput } /** * Opportunity without action */ export type OpportunityDefaultArgs = { /** * Select specific fields to fetch from the Opportunity */ select?: Prisma.OpportunitySelect | null /** * Omit specific fields from the Opportunity */ omit?: Prisma.OpportunityOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.OpportunityInclude | null }