feat: restructure sales, add PDF quote generation and WebSocket support
This commit is contained in:
@@ -67,3 +67,8 @@ export type SecureValue = Prisma.SecureValueModel
|
||||
*
|
||||
*/
|
||||
export type Credential = Prisma.CredentialModel
|
||||
/**
|
||||
* Model GeneratedQuotes
|
||||
*
|
||||
*/
|
||||
export type GeneratedQuotes = Prisma.GeneratedQuotesModel
|
||||
|
||||
@@ -89,3 +89,8 @@ export type SecureValue = Prisma.SecureValueModel
|
||||
*
|
||||
*/
|
||||
export type Credential = Prisma.CredentialModel
|
||||
/**
|
||||
* Model GeneratedQuotes
|
||||
*
|
||||
*/
|
||||
export type GeneratedQuotes = Prisma.GeneratedQuotesModel
|
||||
|
||||
@@ -280,6 +280,23 @@ export type JsonWithAggregatesFilterBase<$PrismaModel = never> = {
|
||||
_max?: Prisma.NestedJsonFilter<$PrismaModel>
|
||||
}
|
||||
|
||||
export type BytesFilter<$PrismaModel = never> = {
|
||||
equals?: runtime.Bytes | Prisma.BytesFieldRefInput<$PrismaModel>
|
||||
in?: runtime.Bytes[] | Prisma.ListBytesFieldRefInput<$PrismaModel>
|
||||
notIn?: runtime.Bytes[] | Prisma.ListBytesFieldRefInput<$PrismaModel>
|
||||
not?: Prisma.NestedBytesFilter<$PrismaModel> | runtime.Bytes
|
||||
}
|
||||
|
||||
export type BytesWithAggregatesFilter<$PrismaModel = never> = {
|
||||
equals?: runtime.Bytes | Prisma.BytesFieldRefInput<$PrismaModel>
|
||||
in?: runtime.Bytes[] | Prisma.ListBytesFieldRefInput<$PrismaModel>
|
||||
notIn?: runtime.Bytes[] | Prisma.ListBytesFieldRefInput<$PrismaModel>
|
||||
not?: Prisma.NestedBytesWithAggregatesFilter<$PrismaModel> | runtime.Bytes
|
||||
_count?: Prisma.NestedIntFilter<$PrismaModel>
|
||||
_min?: Prisma.NestedBytesFilter<$PrismaModel>
|
||||
_max?: Prisma.NestedBytesFilter<$PrismaModel>
|
||||
}
|
||||
|
||||
export type NestedStringFilter<$PrismaModel = never> = {
|
||||
equals?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
||||
in?: string[] | Prisma.ListStringFieldRefInput<$PrismaModel>
|
||||
@@ -521,4 +538,21 @@ export type NestedJsonFilterBase<$PrismaModel = never> = {
|
||||
not?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> | Prisma.JsonNullValueFilter
|
||||
}
|
||||
|
||||
export type NestedBytesFilter<$PrismaModel = never> = {
|
||||
equals?: runtime.Bytes | Prisma.BytesFieldRefInput<$PrismaModel>
|
||||
in?: runtime.Bytes[] | Prisma.ListBytesFieldRefInput<$PrismaModel>
|
||||
notIn?: runtime.Bytes[] | Prisma.ListBytesFieldRefInput<$PrismaModel>
|
||||
not?: Prisma.NestedBytesFilter<$PrismaModel> | runtime.Bytes
|
||||
}
|
||||
|
||||
export type NestedBytesWithAggregatesFilter<$PrismaModel = never> = {
|
||||
equals?: runtime.Bytes | Prisma.BytesFieldRefInput<$PrismaModel>
|
||||
in?: runtime.Bytes[] | Prisma.ListBytesFieldRefInput<$PrismaModel>
|
||||
notIn?: runtime.Bytes[] | Prisma.ListBytesFieldRefInput<$PrismaModel>
|
||||
not?: Prisma.NestedBytesWithAggregatesFilter<$PrismaModel> | runtime.Bytes
|
||||
_count?: Prisma.NestedIntFilter<$PrismaModel>
|
||||
_min?: Prisma.NestedBytesFilter<$PrismaModel>
|
||||
_max?: Prisma.NestedBytesFilter<$PrismaModel>
|
||||
}
|
||||
|
||||
|
||||
|
||||
File diff suppressed because one or more lines are too long
@@ -393,7 +393,8 @@ export const ModelName = {
|
||||
Opportunity: 'Opportunity',
|
||||
CredentialType: 'CredentialType',
|
||||
SecureValue: 'SecureValue',
|
||||
Credential: 'Credential'
|
||||
Credential: 'Credential',
|
||||
GeneratedQuotes: 'GeneratedQuotes'
|
||||
} as const
|
||||
|
||||
export type ModelName = (typeof ModelName)[keyof typeof ModelName]
|
||||
@@ -409,7 +410,7 @@ export type TypeMap<ExtArgs extends runtime.Types.Extensions.InternalArgs = runt
|
||||
omit: GlobalOmitOptions
|
||||
}
|
||||
meta: {
|
||||
modelProps: "session" | "user" | "role" | "unifiSite" | "company" | "catalogItem" | "opportunity" | "credentialType" | "secureValue" | "credential"
|
||||
modelProps: "session" | "user" | "role" | "unifiSite" | "company" | "catalogItem" | "opportunity" | "credentialType" | "secureValue" | "credential" | "generatedQuotes"
|
||||
txIsolationLevel: TransactionIsolationLevel
|
||||
}
|
||||
model: {
|
||||
@@ -1153,6 +1154,80 @@ export type TypeMap<ExtArgs extends runtime.Types.Extensions.InternalArgs = runt
|
||||
}
|
||||
}
|
||||
}
|
||||
GeneratedQuotes: {
|
||||
payload: Prisma.$GeneratedQuotesPayload<ExtArgs>
|
||||
fields: Prisma.GeneratedQuotesFieldRefs
|
||||
operations: {
|
||||
findUnique: {
|
||||
args: Prisma.GeneratedQuotesFindUniqueArgs<ExtArgs>
|
||||
result: runtime.Types.Utils.PayloadToResult<Prisma.$GeneratedQuotesPayload> | null
|
||||
}
|
||||
findUniqueOrThrow: {
|
||||
args: Prisma.GeneratedQuotesFindUniqueOrThrowArgs<ExtArgs>
|
||||
result: runtime.Types.Utils.PayloadToResult<Prisma.$GeneratedQuotesPayload>
|
||||
}
|
||||
findFirst: {
|
||||
args: Prisma.GeneratedQuotesFindFirstArgs<ExtArgs>
|
||||
result: runtime.Types.Utils.PayloadToResult<Prisma.$GeneratedQuotesPayload> | null
|
||||
}
|
||||
findFirstOrThrow: {
|
||||
args: Prisma.GeneratedQuotesFindFirstOrThrowArgs<ExtArgs>
|
||||
result: runtime.Types.Utils.PayloadToResult<Prisma.$GeneratedQuotesPayload>
|
||||
}
|
||||
findMany: {
|
||||
args: Prisma.GeneratedQuotesFindManyArgs<ExtArgs>
|
||||
result: runtime.Types.Utils.PayloadToResult<Prisma.$GeneratedQuotesPayload>[]
|
||||
}
|
||||
create: {
|
||||
args: Prisma.GeneratedQuotesCreateArgs<ExtArgs>
|
||||
result: runtime.Types.Utils.PayloadToResult<Prisma.$GeneratedQuotesPayload>
|
||||
}
|
||||
createMany: {
|
||||
args: Prisma.GeneratedQuotesCreateManyArgs<ExtArgs>
|
||||
result: BatchPayload
|
||||
}
|
||||
createManyAndReturn: {
|
||||
args: Prisma.GeneratedQuotesCreateManyAndReturnArgs<ExtArgs>
|
||||
result: runtime.Types.Utils.PayloadToResult<Prisma.$GeneratedQuotesPayload>[]
|
||||
}
|
||||
delete: {
|
||||
args: Prisma.GeneratedQuotesDeleteArgs<ExtArgs>
|
||||
result: runtime.Types.Utils.PayloadToResult<Prisma.$GeneratedQuotesPayload>
|
||||
}
|
||||
update: {
|
||||
args: Prisma.GeneratedQuotesUpdateArgs<ExtArgs>
|
||||
result: runtime.Types.Utils.PayloadToResult<Prisma.$GeneratedQuotesPayload>
|
||||
}
|
||||
deleteMany: {
|
||||
args: Prisma.GeneratedQuotesDeleteManyArgs<ExtArgs>
|
||||
result: BatchPayload
|
||||
}
|
||||
updateMany: {
|
||||
args: Prisma.GeneratedQuotesUpdateManyArgs<ExtArgs>
|
||||
result: BatchPayload
|
||||
}
|
||||
updateManyAndReturn: {
|
||||
args: Prisma.GeneratedQuotesUpdateManyAndReturnArgs<ExtArgs>
|
||||
result: runtime.Types.Utils.PayloadToResult<Prisma.$GeneratedQuotesPayload>[]
|
||||
}
|
||||
upsert: {
|
||||
args: Prisma.GeneratedQuotesUpsertArgs<ExtArgs>
|
||||
result: runtime.Types.Utils.PayloadToResult<Prisma.$GeneratedQuotesPayload>
|
||||
}
|
||||
aggregate: {
|
||||
args: Prisma.GeneratedQuotesAggregateArgs<ExtArgs>
|
||||
result: runtime.Types.Utils.Optional<Prisma.AggregateGeneratedQuotes>
|
||||
}
|
||||
groupBy: {
|
||||
args: Prisma.GeneratedQuotesGroupByArgs<ExtArgs>
|
||||
result: runtime.Types.Utils.Optional<Prisma.GeneratedQuotesGroupByOutputType>[]
|
||||
}
|
||||
count: {
|
||||
args: Prisma.GeneratedQuotesCountArgs<ExtArgs>
|
||||
result: runtime.Types.Utils.Optional<Prisma.GeneratedQuotesCountAggregateOutputType> | number
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
} & {
|
||||
other: {
|
||||
@@ -1322,6 +1397,7 @@ export const OpportunityScalarFieldEnum = {
|
||||
siteName: 'siteName',
|
||||
customerPO: 'customerPO',
|
||||
totalSalesTax: 'totalSalesTax',
|
||||
probability: 'probability',
|
||||
locationName: 'locationName',
|
||||
locationCwId: 'locationCwId',
|
||||
departmentName: 'departmentName',
|
||||
@@ -1384,6 +1460,23 @@ export const CredentialScalarFieldEnum = {
|
||||
export type CredentialScalarFieldEnum = (typeof CredentialScalarFieldEnum)[keyof typeof CredentialScalarFieldEnum]
|
||||
|
||||
|
||||
export const GeneratedQuotesScalarFieldEnum = {
|
||||
id: 'id',
|
||||
quoteRegenData: 'quoteRegenData',
|
||||
quoteRegenParams: 'quoteRegenParams',
|
||||
quoteRegenHash: 'quoteRegenHash',
|
||||
downloads: 'downloads',
|
||||
quoteFile: 'quoteFile',
|
||||
quoteFileName: 'quoteFileName',
|
||||
opportunityId: 'opportunityId',
|
||||
createdById: 'createdById',
|
||||
createdAt: 'createdAt',
|
||||
updatedAt: 'updatedAt'
|
||||
} as const
|
||||
|
||||
export type GeneratedQuotesScalarFieldEnum = (typeof GeneratedQuotesScalarFieldEnum)[keyof typeof GeneratedQuotesScalarFieldEnum]
|
||||
|
||||
|
||||
export const SortOrder = {
|
||||
asc: 'asc',
|
||||
desc: 'desc'
|
||||
@@ -1506,6 +1599,20 @@ export type JsonFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'J
|
||||
export type EnumQueryModeFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'QueryMode'>
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Reference to a field of type 'Bytes'
|
||||
*/
|
||||
export type BytesFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'Bytes'>
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Reference to a field of type 'Bytes[]'
|
||||
*/
|
||||
export type ListBytesFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'Bytes[]'>
|
||||
|
||||
|
||||
/**
|
||||
* Batch Payload for updateMany & deleteMany & createMany
|
||||
*/
|
||||
@@ -1611,6 +1718,7 @@ export type GlobalOmitConfig = {
|
||||
credentialType?: Prisma.CredentialTypeOmit
|
||||
secureValue?: Prisma.SecureValueOmit
|
||||
credential?: Prisma.CredentialOmit
|
||||
generatedQuotes?: Prisma.GeneratedQuotesOmit
|
||||
}
|
||||
|
||||
/* Types for Logging */
|
||||
|
||||
@@ -60,7 +60,8 @@ export const ModelName = {
|
||||
Opportunity: 'Opportunity',
|
||||
CredentialType: 'CredentialType',
|
||||
SecureValue: 'SecureValue',
|
||||
Credential: 'Credential'
|
||||
Credential: 'Credential',
|
||||
GeneratedQuotes: 'GeneratedQuotes'
|
||||
} as const
|
||||
|
||||
export type ModelName = (typeof ModelName)[keyof typeof ModelName]
|
||||
@@ -209,6 +210,7 @@ export const OpportunityScalarFieldEnum = {
|
||||
siteName: 'siteName',
|
||||
customerPO: 'customerPO',
|
||||
totalSalesTax: 'totalSalesTax',
|
||||
probability: 'probability',
|
||||
locationName: 'locationName',
|
||||
locationCwId: 'locationCwId',
|
||||
departmentName: 'departmentName',
|
||||
@@ -271,6 +273,23 @@ export const CredentialScalarFieldEnum = {
|
||||
export type CredentialScalarFieldEnum = (typeof CredentialScalarFieldEnum)[keyof typeof CredentialScalarFieldEnum]
|
||||
|
||||
|
||||
export const GeneratedQuotesScalarFieldEnum = {
|
||||
id: 'id',
|
||||
quoteRegenData: 'quoteRegenData',
|
||||
quoteRegenParams: 'quoteRegenParams',
|
||||
quoteRegenHash: 'quoteRegenHash',
|
||||
downloads: 'downloads',
|
||||
quoteFile: 'quoteFile',
|
||||
quoteFileName: 'quoteFileName',
|
||||
opportunityId: 'opportunityId',
|
||||
createdById: 'createdById',
|
||||
createdAt: 'createdAt',
|
||||
updatedAt: 'updatedAt'
|
||||
} as const
|
||||
|
||||
export type GeneratedQuotesScalarFieldEnum = (typeof GeneratedQuotesScalarFieldEnum)[keyof typeof GeneratedQuotesScalarFieldEnum]
|
||||
|
||||
|
||||
export const SortOrder = {
|
||||
asc: 'asc',
|
||||
desc: 'desc'
|
||||
|
||||
@@ -18,4 +18,5 @@ export type * from './models/Opportunity.ts'
|
||||
export type * from './models/CredentialType.ts'
|
||||
export type * from './models/SecureValue.ts'
|
||||
export type * from './models/Credential.ts'
|
||||
export type * from './models/GeneratedQuotes.ts'
|
||||
export type * from './commonInputTypes.ts'
|
||||
File diff suppressed because it is too large
Load Diff
@@ -40,6 +40,7 @@ export type OpportunityAvgAggregateOutputType = {
|
||||
contactCwId: number | null
|
||||
siteCwId: number | null
|
||||
totalSalesTax: number | null
|
||||
probability: number | null
|
||||
locationCwId: number | null
|
||||
departmentCwId: number | null
|
||||
closedByCwId: number | null
|
||||
@@ -60,6 +61,7 @@ export type OpportunitySumAggregateOutputType = {
|
||||
contactCwId: number | null
|
||||
siteCwId: number | null
|
||||
totalSalesTax: number | null
|
||||
probability: number | null
|
||||
locationCwId: number | null
|
||||
departmentCwId: number | null
|
||||
closedByCwId: number | null
|
||||
@@ -98,6 +100,7 @@ export type OpportunityMinAggregateOutputType = {
|
||||
siteName: string | null
|
||||
customerPO: string | null
|
||||
totalSalesTax: number | null
|
||||
probability: number | null
|
||||
locationName: string | null
|
||||
locationCwId: number | null
|
||||
departmentName: string | null
|
||||
@@ -147,6 +150,7 @@ export type OpportunityMaxAggregateOutputType = {
|
||||
siteName: string | null
|
||||
customerPO: string | null
|
||||
totalSalesTax: number | null
|
||||
probability: number | null
|
||||
locationName: string | null
|
||||
locationCwId: number | null
|
||||
departmentName: string | null
|
||||
@@ -196,6 +200,7 @@ export type OpportunityCountAggregateOutputType = {
|
||||
siteName: number
|
||||
customerPO: number
|
||||
totalSalesTax: number
|
||||
probability: number
|
||||
locationName: number
|
||||
locationCwId: number
|
||||
departmentName: number
|
||||
@@ -230,6 +235,7 @@ export type OpportunityAvgAggregateInputType = {
|
||||
contactCwId?: true
|
||||
siteCwId?: true
|
||||
totalSalesTax?: true
|
||||
probability?: true
|
||||
locationCwId?: true
|
||||
departmentCwId?: true
|
||||
closedByCwId?: true
|
||||
@@ -250,6 +256,7 @@ export type OpportunitySumAggregateInputType = {
|
||||
contactCwId?: true
|
||||
siteCwId?: true
|
||||
totalSalesTax?: true
|
||||
probability?: true
|
||||
locationCwId?: true
|
||||
departmentCwId?: true
|
||||
closedByCwId?: true
|
||||
@@ -288,6 +295,7 @@ export type OpportunityMinAggregateInputType = {
|
||||
siteName?: true
|
||||
customerPO?: true
|
||||
totalSalesTax?: true
|
||||
probability?: true
|
||||
locationName?: true
|
||||
locationCwId?: true
|
||||
departmentName?: true
|
||||
@@ -337,6 +345,7 @@ export type OpportunityMaxAggregateInputType = {
|
||||
siteName?: true
|
||||
customerPO?: true
|
||||
totalSalesTax?: true
|
||||
probability?: true
|
||||
locationName?: true
|
||||
locationCwId?: true
|
||||
departmentName?: true
|
||||
@@ -386,6 +395,7 @@ export type OpportunityCountAggregateInputType = {
|
||||
siteName?: true
|
||||
customerPO?: true
|
||||
totalSalesTax?: true
|
||||
probability?: true
|
||||
locationName?: true
|
||||
locationCwId?: true
|
||||
departmentName?: true
|
||||
@@ -523,6 +533,7 @@ export type OpportunityGroupByOutputType = {
|
||||
siteName: string | null
|
||||
customerPO: string | null
|
||||
totalSalesTax: number
|
||||
probability: number
|
||||
locationName: string | null
|
||||
locationCwId: number | null
|
||||
departmentName: string | null
|
||||
@@ -596,6 +607,7 @@ export type OpportunityWhereInput = {
|
||||
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
|
||||
@@ -612,6 +624,7 @@ export type OpportunityWhereInput = {
|
||||
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<Prisma.CompanyNullableScalarRelationFilter, Prisma.CompanyWhereInput> | null
|
||||
}
|
||||
|
||||
@@ -647,6 +660,7 @@ export type OpportunityOrderByWithRelationInput = {
|
||||
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
|
||||
@@ -663,6 +677,7 @@ export type OpportunityOrderByWithRelationInput = {
|
||||
cwLastUpdated?: Prisma.SortOrderInput | Prisma.SortOrder
|
||||
createdAt?: Prisma.SortOrder
|
||||
updatedAt?: Prisma.SortOrder
|
||||
generatedQuotes?: Prisma.GeneratedQuotesOrderByRelationAggregateInput
|
||||
company?: Prisma.CompanyOrderByWithRelationInput
|
||||
}
|
||||
|
||||
@@ -701,6 +716,7 @@ export type OpportunityWhereUniqueInput = Prisma.AtLeast<{
|
||||
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
|
||||
@@ -717,6 +733,7 @@ export type OpportunityWhereUniqueInput = Prisma.AtLeast<{
|
||||
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<Prisma.CompanyNullableScalarRelationFilter, Prisma.CompanyWhereInput> | null
|
||||
}, "id" | "cwOpportunityId">
|
||||
|
||||
@@ -752,6 +769,7 @@ export type OpportunityOrderByWithAggregationInput = {
|
||||
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
|
||||
@@ -810,6 +828,7 @@ export type OpportunityScalarWhereWithAggregatesInput = {
|
||||
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
|
||||
@@ -860,6 +879,7 @@ export type OpportunityCreateInput = {
|
||||
siteName?: string | null
|
||||
customerPO?: string | null
|
||||
totalSalesTax?: number
|
||||
probability?: number
|
||||
locationName?: string | null
|
||||
locationCwId?: number | null
|
||||
departmentName?: string | null
|
||||
@@ -875,6 +895,7 @@ export type OpportunityCreateInput = {
|
||||
cwLastUpdated?: Date | string | null
|
||||
createdAt?: Date | string
|
||||
updatedAt?: Date | string
|
||||
generatedQuotes?: Prisma.GeneratedQuotesCreateNestedManyWithoutOpportunityInput
|
||||
company?: Prisma.CompanyCreateNestedOneWithoutOpportunitiesInput
|
||||
}
|
||||
|
||||
@@ -910,6 +931,7 @@ export type OpportunityUncheckedCreateInput = {
|
||||
siteName?: string | null
|
||||
customerPO?: string | null
|
||||
totalSalesTax?: number
|
||||
probability?: number
|
||||
locationName?: string | null
|
||||
locationCwId?: number | null
|
||||
departmentName?: string | null
|
||||
@@ -926,6 +948,7 @@ export type OpportunityUncheckedCreateInput = {
|
||||
cwLastUpdated?: Date | string | null
|
||||
createdAt?: Date | string
|
||||
updatedAt?: Date | string
|
||||
generatedQuotes?: Prisma.GeneratedQuotesUncheckedCreateNestedManyWithoutOpportunityInput
|
||||
}
|
||||
|
||||
export type OpportunityUpdateInput = {
|
||||
@@ -960,6 +983,7 @@ export type OpportunityUpdateInput = {
|
||||
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
|
||||
@@ -975,6 +999,7 @@ export type OpportunityUpdateInput = {
|
||||
cwLastUpdated?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
||||
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
generatedQuotes?: Prisma.GeneratedQuotesUpdateManyWithoutOpportunityNestedInput
|
||||
company?: Prisma.CompanyUpdateOneWithoutOpportunitiesNestedInput
|
||||
}
|
||||
|
||||
@@ -1010,6 +1035,7 @@ export type OpportunityUncheckedUpdateInput = {
|
||||
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
|
||||
@@ -1026,6 +1052,7 @@ export type OpportunityUncheckedUpdateInput = {
|
||||
cwLastUpdated?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
||||
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
generatedQuotes?: Prisma.GeneratedQuotesUncheckedUpdateManyWithoutOpportunityNestedInput
|
||||
}
|
||||
|
||||
export type OpportunityCreateManyInput = {
|
||||
@@ -1060,6 +1087,7 @@ export type OpportunityCreateManyInput = {
|
||||
siteName?: string | null
|
||||
customerPO?: string | null
|
||||
totalSalesTax?: number
|
||||
probability?: number
|
||||
locationName?: string | null
|
||||
locationCwId?: number | null
|
||||
departmentName?: string | null
|
||||
@@ -1110,6 +1138,7 @@ export type OpportunityUpdateManyMutationInput = {
|
||||
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
|
||||
@@ -1159,6 +1188,7 @@ export type OpportunityUncheckedUpdateManyInput = {
|
||||
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
|
||||
@@ -1227,6 +1257,7 @@ export type OpportunityCountOrderByAggregateInput = {
|
||||
siteName?: Prisma.SortOrder
|
||||
customerPO?: Prisma.SortOrder
|
||||
totalSalesTax?: Prisma.SortOrder
|
||||
probability?: Prisma.SortOrder
|
||||
locationName?: Prisma.SortOrder
|
||||
locationCwId?: Prisma.SortOrder
|
||||
departmentName?: Prisma.SortOrder
|
||||
@@ -1259,6 +1290,7 @@ export type OpportunityAvgOrderByAggregateInput = {
|
||||
contactCwId?: Prisma.SortOrder
|
||||
siteCwId?: Prisma.SortOrder
|
||||
totalSalesTax?: Prisma.SortOrder
|
||||
probability?: Prisma.SortOrder
|
||||
locationCwId?: Prisma.SortOrder
|
||||
departmentCwId?: Prisma.SortOrder
|
||||
closedByCwId?: Prisma.SortOrder
|
||||
@@ -1297,6 +1329,7 @@ export type OpportunityMaxOrderByAggregateInput = {
|
||||
siteName?: Prisma.SortOrder
|
||||
customerPO?: Prisma.SortOrder
|
||||
totalSalesTax?: Prisma.SortOrder
|
||||
probability?: Prisma.SortOrder
|
||||
locationName?: Prisma.SortOrder
|
||||
locationCwId?: Prisma.SortOrder
|
||||
departmentName?: Prisma.SortOrder
|
||||
@@ -1346,6 +1379,7 @@ export type OpportunityMinOrderByAggregateInput = {
|
||||
siteName?: Prisma.SortOrder
|
||||
customerPO?: Prisma.SortOrder
|
||||
totalSalesTax?: Prisma.SortOrder
|
||||
probability?: Prisma.SortOrder
|
||||
locationName?: Prisma.SortOrder
|
||||
locationCwId?: Prisma.SortOrder
|
||||
departmentName?: Prisma.SortOrder
|
||||
@@ -1377,12 +1411,18 @@ export type OpportunitySumOrderByAggregateInput = {
|
||||
contactCwId?: Prisma.SortOrder
|
||||
siteCwId?: Prisma.SortOrder
|
||||
totalSalesTax?: Prisma.SortOrder
|
||||
probability?: Prisma.SortOrder
|
||||
locationCwId?: Prisma.SortOrder
|
||||
departmentCwId?: Prisma.SortOrder
|
||||
closedByCwId?: Prisma.SortOrder
|
||||
productSequence?: Prisma.SortOrder
|
||||
}
|
||||
|
||||
export type OpportunityScalarRelationFilter = {
|
||||
is?: Prisma.OpportunityWhereInput
|
||||
isNot?: Prisma.OpportunityWhereInput
|
||||
}
|
||||
|
||||
export type OpportunityCreateNestedManyWithoutCompanyInput = {
|
||||
create?: Prisma.XOR<Prisma.OpportunityCreateWithoutCompanyInput, Prisma.OpportunityUncheckedCreateWithoutCompanyInput> | Prisma.OpportunityCreateWithoutCompanyInput[] | Prisma.OpportunityUncheckedCreateWithoutCompanyInput[]
|
||||
connectOrCreate?: Prisma.OpportunityCreateOrConnectWithoutCompanyInput | Prisma.OpportunityCreateOrConnectWithoutCompanyInput[]
|
||||
@@ -1434,6 +1474,20 @@ export type OpportunityUpdateproductSequenceInput = {
|
||||
push?: number | number[]
|
||||
}
|
||||
|
||||
export type OpportunityCreateNestedOneWithoutGeneratedQuotesInput = {
|
||||
create?: Prisma.XOR<Prisma.OpportunityCreateWithoutGeneratedQuotesInput, Prisma.OpportunityUncheckedCreateWithoutGeneratedQuotesInput>
|
||||
connectOrCreate?: Prisma.OpportunityCreateOrConnectWithoutGeneratedQuotesInput
|
||||
connect?: Prisma.OpportunityWhereUniqueInput
|
||||
}
|
||||
|
||||
export type OpportunityUpdateOneRequiredWithoutGeneratedQuotesNestedInput = {
|
||||
create?: Prisma.XOR<Prisma.OpportunityCreateWithoutGeneratedQuotesInput, Prisma.OpportunityUncheckedCreateWithoutGeneratedQuotesInput>
|
||||
connectOrCreate?: Prisma.OpportunityCreateOrConnectWithoutGeneratedQuotesInput
|
||||
upsert?: Prisma.OpportunityUpsertWithoutGeneratedQuotesInput
|
||||
connect?: Prisma.OpportunityWhereUniqueInput
|
||||
update?: Prisma.XOR<Prisma.XOR<Prisma.OpportunityUpdateToOneWithWhereWithoutGeneratedQuotesInput, Prisma.OpportunityUpdateWithoutGeneratedQuotesInput>, Prisma.OpportunityUncheckedUpdateWithoutGeneratedQuotesInput>
|
||||
}
|
||||
|
||||
export type OpportunityCreateWithoutCompanyInput = {
|
||||
id?: string
|
||||
cwOpportunityId: number
|
||||
@@ -1466,6 +1520,7 @@ export type OpportunityCreateWithoutCompanyInput = {
|
||||
siteName?: string | null
|
||||
customerPO?: string | null
|
||||
totalSalesTax?: number
|
||||
probability?: number
|
||||
locationName?: string | null
|
||||
locationCwId?: number | null
|
||||
departmentName?: string | null
|
||||
@@ -1481,6 +1536,7 @@ export type OpportunityCreateWithoutCompanyInput = {
|
||||
cwLastUpdated?: Date | string | null
|
||||
createdAt?: Date | string
|
||||
updatedAt?: Date | string
|
||||
generatedQuotes?: Prisma.GeneratedQuotesCreateNestedManyWithoutOpportunityInput
|
||||
}
|
||||
|
||||
export type OpportunityUncheckedCreateWithoutCompanyInput = {
|
||||
@@ -1515,6 +1571,7 @@ export type OpportunityUncheckedCreateWithoutCompanyInput = {
|
||||
siteName?: string | null
|
||||
customerPO?: string | null
|
||||
totalSalesTax?: number
|
||||
probability?: number
|
||||
locationName?: string | null
|
||||
locationCwId?: number | null
|
||||
departmentName?: string | null
|
||||
@@ -1530,6 +1587,7 @@ export type OpportunityUncheckedCreateWithoutCompanyInput = {
|
||||
cwLastUpdated?: Date | string | null
|
||||
createdAt?: Date | string
|
||||
updatedAt?: Date | string
|
||||
generatedQuotes?: Prisma.GeneratedQuotesUncheckedCreateNestedManyWithoutOpportunityInput
|
||||
}
|
||||
|
||||
export type OpportunityCreateOrConnectWithoutCompanyInput = {
|
||||
@@ -1593,6 +1651,7 @@ export type OpportunityScalarWhereInput = {
|
||||
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
|
||||
@@ -1611,6 +1670,226 @@ export type OpportunityScalarWhereInput = {
|
||||
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<Prisma.OpportunityCreateWithoutGeneratedQuotesInput, Prisma.OpportunityUncheckedCreateWithoutGeneratedQuotesInput>
|
||||
}
|
||||
|
||||
export type OpportunityUpsertWithoutGeneratedQuotesInput = {
|
||||
update: Prisma.XOR<Prisma.OpportunityUpdateWithoutGeneratedQuotesInput, Prisma.OpportunityUncheckedUpdateWithoutGeneratedQuotesInput>
|
||||
create: Prisma.XOR<Prisma.OpportunityCreateWithoutGeneratedQuotesInput, Prisma.OpportunityUncheckedCreateWithoutGeneratedQuotesInput>
|
||||
where?: Prisma.OpportunityWhereInput
|
||||
}
|
||||
|
||||
export type OpportunityUpdateToOneWithWhereWithoutGeneratedQuotesInput = {
|
||||
where?: Prisma.OpportunityWhereInput
|
||||
data: Prisma.XOR<Prisma.OpportunityUpdateWithoutGeneratedQuotesInput, Prisma.OpportunityUncheckedUpdateWithoutGeneratedQuotesInput>
|
||||
}
|
||||
|
||||
export type OpportunityUpdateWithoutGeneratedQuotesInput = {
|
||||
id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
cwOpportunityId?: Prisma.IntFieldUpdateOperationsInput | number
|
||||
name?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
notes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
typeName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
typeCwId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
|
||||
stageName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
stageCwId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
|
||||
statusName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
statusCwId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
|
||||
priorityName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
priorityCwId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
|
||||
ratingName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
ratingCwId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
|
||||
source?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
campaignName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
campaignCwId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
|
||||
primarySalesRepName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
primarySalesRepIdentifier?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
primarySalesRepCwId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
|
||||
secondarySalesRepName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
secondarySalesRepIdentifier?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
secondarySalesRepCwId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
|
||||
companyCwId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
|
||||
companyName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
contactCwId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
|
||||
contactName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
siteCwId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
|
||||
siteName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
customerPO?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
totalSalesTax?: Prisma.FloatFieldUpdateOperationsInput | number
|
||||
probability?: Prisma.FloatFieldUpdateOperationsInput | number
|
||||
locationName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
locationCwId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
|
||||
departmentName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
departmentCwId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
|
||||
expectedCloseDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
||||
pipelineChangeDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
||||
dateBecameLead?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
||||
closedDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
||||
closedFlag?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
||||
closedByName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
closedByCwId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
|
||||
productSequence?: Prisma.OpportunityUpdateproductSequenceInput | number[]
|
||||
cwLastUpdated?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
||||
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
|
||||
@@ -1643,6 +1922,7 @@ export type OpportunityCreateManyCompanyInput = {
|
||||
siteName?: string | null
|
||||
customerPO?: string | null
|
||||
totalSalesTax?: number
|
||||
probability?: number
|
||||
locationName?: string | null
|
||||
locationCwId?: number | null
|
||||
departmentName?: string | null
|
||||
@@ -1692,6 +1972,7 @@ export type OpportunityUpdateWithoutCompanyInput = {
|
||||
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
|
||||
@@ -1707,6 +1988,7 @@ export type OpportunityUpdateWithoutCompanyInput = {
|
||||
cwLastUpdated?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
||||
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
generatedQuotes?: Prisma.GeneratedQuotesUpdateManyWithoutOpportunityNestedInput
|
||||
}
|
||||
|
||||
export type OpportunityUncheckedUpdateWithoutCompanyInput = {
|
||||
@@ -1741,6 +2023,7 @@ export type OpportunityUncheckedUpdateWithoutCompanyInput = {
|
||||
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
|
||||
@@ -1756,6 +2039,7 @@ export type OpportunityUncheckedUpdateWithoutCompanyInput = {
|
||||
cwLastUpdated?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
||||
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
generatedQuotes?: Prisma.GeneratedQuotesUncheckedUpdateManyWithoutOpportunityNestedInput
|
||||
}
|
||||
|
||||
export type OpportunityUncheckedUpdateManyWithoutCompanyInput = {
|
||||
@@ -1790,6 +2074,7 @@ export type OpportunityUncheckedUpdateManyWithoutCompanyInput = {
|
||||
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
|
||||
@@ -1808,6 +2093,35 @@ export type OpportunityUncheckedUpdateManyWithoutCompanyInput = {
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Count Type OpportunityCountOutputType
|
||||
*/
|
||||
|
||||
export type OpportunityCountOutputType = {
|
||||
generatedQuotes: number
|
||||
}
|
||||
|
||||
export type OpportunityCountOutputTypeSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
||||
generatedQuotes?: boolean | OpportunityCountOutputTypeCountGeneratedQuotesArgs
|
||||
}
|
||||
|
||||
/**
|
||||
* OpportunityCountOutputType without action
|
||||
*/
|
||||
export type OpportunityCountOutputTypeDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
||||
/**
|
||||
* Select specific fields to fetch from the OpportunityCountOutputType
|
||||
*/
|
||||
select?: Prisma.OpportunityCountOutputTypeSelect<ExtArgs> | null
|
||||
}
|
||||
|
||||
/**
|
||||
* OpportunityCountOutputType without action
|
||||
*/
|
||||
export type OpportunityCountOutputTypeCountGeneratedQuotesArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
||||
where?: Prisma.GeneratedQuotesWhereInput
|
||||
}
|
||||
|
||||
|
||||
export type OpportunitySelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
||||
id?: boolean
|
||||
@@ -1841,6 +2155,7 @@ export type OpportunitySelect<ExtArgs extends runtime.Types.Extensions.InternalA
|
||||
siteName?: boolean
|
||||
customerPO?: boolean
|
||||
totalSalesTax?: boolean
|
||||
probability?: boolean
|
||||
locationName?: boolean
|
||||
locationCwId?: boolean
|
||||
departmentName?: boolean
|
||||
@@ -1857,7 +2172,9 @@ export type OpportunitySelect<ExtArgs extends runtime.Types.Extensions.InternalA
|
||||
cwLastUpdated?: boolean
|
||||
createdAt?: boolean
|
||||
updatedAt?: boolean
|
||||
generatedQuotes?: boolean | Prisma.Opportunity$generatedQuotesArgs<ExtArgs>
|
||||
company?: boolean | Prisma.Opportunity$companyArgs<ExtArgs>
|
||||
_count?: boolean | Prisma.OpportunityCountOutputTypeDefaultArgs<ExtArgs>
|
||||
}, ExtArgs["result"]["opportunity"]>
|
||||
|
||||
export type OpportunitySelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
||||
@@ -1892,6 +2209,7 @@ export type OpportunitySelectCreateManyAndReturn<ExtArgs extends runtime.Types.E
|
||||
siteName?: boolean
|
||||
customerPO?: boolean
|
||||
totalSalesTax?: boolean
|
||||
probability?: boolean
|
||||
locationName?: boolean
|
||||
locationCwId?: boolean
|
||||
departmentName?: boolean
|
||||
@@ -1943,6 +2261,7 @@ export type OpportunitySelectUpdateManyAndReturn<ExtArgs extends runtime.Types.E
|
||||
siteName?: boolean
|
||||
customerPO?: boolean
|
||||
totalSalesTax?: boolean
|
||||
probability?: boolean
|
||||
locationName?: boolean
|
||||
locationCwId?: boolean
|
||||
departmentName?: boolean
|
||||
@@ -1994,6 +2313,7 @@ export type OpportunitySelectScalar = {
|
||||
siteName?: boolean
|
||||
customerPO?: boolean
|
||||
totalSalesTax?: boolean
|
||||
probability?: boolean
|
||||
locationName?: boolean
|
||||
locationCwId?: boolean
|
||||
departmentName?: boolean
|
||||
@@ -2012,9 +2332,11 @@ export type OpportunitySelectScalar = {
|
||||
updatedAt?: boolean
|
||||
}
|
||||
|
||||
export type OpportunityOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "cwOpportunityId" | "name" | "notes" | "typeName" | "typeCwId" | "stageName" | "stageCwId" | "statusName" | "statusCwId" | "priorityName" | "priorityCwId" | "ratingName" | "ratingCwId" | "source" | "campaignName" | "campaignCwId" | "primarySalesRepName" | "primarySalesRepIdentifier" | "primarySalesRepCwId" | "secondarySalesRepName" | "secondarySalesRepIdentifier" | "secondarySalesRepCwId" | "companyCwId" | "companyName" | "contactCwId" | "contactName" | "siteCwId" | "siteName" | "customerPO" | "totalSalesTax" | "locationName" | "locationCwId" | "departmentName" | "departmentCwId" | "expectedCloseDate" | "pipelineChangeDate" | "dateBecameLead" | "closedDate" | "closedFlag" | "closedByName" | "closedByCwId" | "companyId" | "productSequence" | "cwLastUpdated" | "createdAt" | "updatedAt", ExtArgs["result"]["opportunity"]>
|
||||
export type OpportunityOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "cwOpportunityId" | "name" | "notes" | "typeName" | "typeCwId" | "stageName" | "stageCwId" | "statusName" | "statusCwId" | "priorityName" | "priorityCwId" | "ratingName" | "ratingCwId" | "source" | "campaignName" | "campaignCwId" | "primarySalesRepName" | "primarySalesRepIdentifier" | "primarySalesRepCwId" | "secondarySalesRepName" | "secondarySalesRepIdentifier" | "secondarySalesRepCwId" | "companyCwId" | "companyName" | "contactCwId" | "contactName" | "siteCwId" | "siteName" | "customerPO" | "totalSalesTax" | "probability" | "locationName" | "locationCwId" | "departmentName" | "departmentCwId" | "expectedCloseDate" | "pipelineChangeDate" | "dateBecameLead" | "closedDate" | "closedFlag" | "closedByName" | "closedByCwId" | "companyId" | "productSequence" | "cwLastUpdated" | "createdAt" | "updatedAt", ExtArgs["result"]["opportunity"]>
|
||||
export type OpportunityInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
||||
generatedQuotes?: boolean | Prisma.Opportunity$generatedQuotesArgs<ExtArgs>
|
||||
company?: boolean | Prisma.Opportunity$companyArgs<ExtArgs>
|
||||
_count?: boolean | Prisma.OpportunityCountOutputTypeDefaultArgs<ExtArgs>
|
||||
}
|
||||
export type OpportunityIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
||||
company?: boolean | Prisma.Opportunity$companyArgs<ExtArgs>
|
||||
@@ -2026,6 +2348,7 @@ export type OpportunityIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.
|
||||
export type $OpportunityPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
||||
name: "Opportunity"
|
||||
objects: {
|
||||
generatedQuotes: Prisma.$GeneratedQuotesPayload<ExtArgs>[]
|
||||
company: Prisma.$CompanyPayload<ExtArgs> | null
|
||||
}
|
||||
scalars: runtime.Types.Extensions.GetPayloadResult<{
|
||||
@@ -2060,6 +2383,7 @@ export type $OpportunityPayload<ExtArgs extends runtime.Types.Extensions.Interna
|
||||
siteName: string | null
|
||||
customerPO: string | null
|
||||
totalSalesTax: number
|
||||
probability: number
|
||||
locationName: string | null
|
||||
locationCwId: number | null
|
||||
departmentName: string | null
|
||||
@@ -2470,6 +2794,7 @@ readonly fields: OpportunityFieldRefs;
|
||||
*/
|
||||
export interface Prisma__OpportunityClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
|
||||
readonly [Symbol.toStringTag]: "PrismaPromise"
|
||||
generatedQuotes<T extends Prisma.Opportunity$generatedQuotesArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Opportunity$generatedQuotesArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$GeneratedQuotesPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
|
||||
company<T extends Prisma.Opportunity$companyArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Opportunity$companyArgs<ExtArgs>>): Prisma.Prisma__CompanyClient<runtime.Types.Result.GetResult<Prisma.$CompanyPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
|
||||
/**
|
||||
* Attaches callbacks for the resolution and/or rejection of the Promise.
|
||||
@@ -2531,6 +2856,7 @@ export interface OpportunityFieldRefs {
|
||||
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'>
|
||||
@@ -2942,6 +3268,30 @@ export type OpportunityDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.I
|
||||
limit?: number
|
||||
}
|
||||
|
||||
/**
|
||||
* Opportunity.generatedQuotes
|
||||
*/
|
||||
export type Opportunity$generatedQuotesArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
||||
/**
|
||||
* Select specific fields to fetch from the GeneratedQuotes
|
||||
*/
|
||||
select?: Prisma.GeneratedQuotesSelect<ExtArgs> | null
|
||||
/**
|
||||
* Omit specific fields from the GeneratedQuotes
|
||||
*/
|
||||
omit?: Prisma.GeneratedQuotesOmit<ExtArgs> | null
|
||||
/**
|
||||
* Choose, which related nodes to fetch as well
|
||||
*/
|
||||
include?: Prisma.GeneratedQuotesInclude<ExtArgs> | null
|
||||
where?: Prisma.GeneratedQuotesWhereInput
|
||||
orderBy?: Prisma.GeneratedQuotesOrderByWithRelationInput | Prisma.GeneratedQuotesOrderByWithRelationInput[]
|
||||
cursor?: Prisma.GeneratedQuotesWhereUniqueInput
|
||||
take?: number
|
||||
skip?: number
|
||||
distinct?: Prisma.GeneratedQuotesScalarFieldEnum | Prisma.GeneratedQuotesScalarFieldEnum[]
|
||||
}
|
||||
|
||||
/**
|
||||
* Opportunity.company
|
||||
*/
|
||||
|
||||
@@ -240,6 +240,7 @@ export type UserWhereInput = {
|
||||
updatedAt?: Prisma.DateTimeFilter<"User"> | Date | string
|
||||
roles?: Prisma.RoleListRelationFilter
|
||||
sessions?: Prisma.SessionListRelationFilter
|
||||
generatedQuotes?: Prisma.GeneratedQuotesListRelationFilter
|
||||
}
|
||||
|
||||
export type UserOrderByWithRelationInput = {
|
||||
@@ -257,6 +258,7 @@ export type UserOrderByWithRelationInput = {
|
||||
updatedAt?: Prisma.SortOrder
|
||||
roles?: Prisma.RoleOrderByRelationAggregateInput
|
||||
sessions?: Prisma.SessionOrderByRelationAggregateInput
|
||||
generatedQuotes?: Prisma.GeneratedQuotesOrderByRelationAggregateInput
|
||||
}
|
||||
|
||||
export type UserWhereUniqueInput = Prisma.AtLeast<{
|
||||
@@ -277,6 +279,7 @@ export type UserWhereUniqueInput = Prisma.AtLeast<{
|
||||
updatedAt?: Prisma.DateTimeFilter<"User"> | Date | string
|
||||
roles?: Prisma.RoleListRelationFilter
|
||||
sessions?: Prisma.SessionListRelationFilter
|
||||
generatedQuotes?: Prisma.GeneratedQuotesListRelationFilter
|
||||
}, "id" | "login" | "email" | "userId">
|
||||
|
||||
export type UserOrderByWithAggregationInput = {
|
||||
@@ -330,6 +333,7 @@ export type UserCreateInput = {
|
||||
updatedAt?: Date | string
|
||||
roles?: Prisma.RoleCreateNestedManyWithoutUsersInput
|
||||
sessions?: Prisma.SessionCreateNestedManyWithoutUserInput
|
||||
generatedQuotes?: Prisma.GeneratedQuotesCreateNestedManyWithoutCreatedByInput
|
||||
}
|
||||
|
||||
export type UserUncheckedCreateInput = {
|
||||
@@ -347,6 +351,7 @@ export type UserUncheckedCreateInput = {
|
||||
updatedAt?: Date | string
|
||||
roles?: Prisma.RoleUncheckedCreateNestedManyWithoutUsersInput
|
||||
sessions?: Prisma.SessionUncheckedCreateNestedManyWithoutUserInput
|
||||
generatedQuotes?: Prisma.GeneratedQuotesUncheckedCreateNestedManyWithoutCreatedByInput
|
||||
}
|
||||
|
||||
export type UserUpdateInput = {
|
||||
@@ -364,6 +369,7 @@ export type UserUpdateInput = {
|
||||
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
roles?: Prisma.RoleUpdateManyWithoutUsersNestedInput
|
||||
sessions?: Prisma.SessionUpdateManyWithoutUserNestedInput
|
||||
generatedQuotes?: Prisma.GeneratedQuotesUpdateManyWithoutCreatedByNestedInput
|
||||
}
|
||||
|
||||
export type UserUncheckedUpdateInput = {
|
||||
@@ -381,6 +387,7 @@ export type UserUncheckedUpdateInput = {
|
||||
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
roles?: Prisma.RoleUncheckedUpdateManyWithoutUsersNestedInput
|
||||
sessions?: Prisma.SessionUncheckedUpdateManyWithoutUserNestedInput
|
||||
generatedQuotes?: Prisma.GeneratedQuotesUncheckedUpdateManyWithoutCreatedByNestedInput
|
||||
}
|
||||
|
||||
export type UserCreateManyInput = {
|
||||
@@ -488,6 +495,11 @@ export type UserOrderByRelationAggregateInput = {
|
||||
_count?: Prisma.SortOrder
|
||||
}
|
||||
|
||||
export type UserNullableScalarRelationFilter = {
|
||||
is?: Prisma.UserWhereInput | null
|
||||
isNot?: Prisma.UserWhereInput | null
|
||||
}
|
||||
|
||||
export type UserCreateNestedOneWithoutSessionsInput = {
|
||||
create?: Prisma.XOR<Prisma.UserCreateWithoutSessionsInput, Prisma.UserUncheckedCreateWithoutSessionsInput>
|
||||
connectOrCreate?: Prisma.UserCreateOrConnectWithoutSessionsInput
|
||||
@@ -544,6 +556,22 @@ export type UserUncheckedUpdateManyWithoutRolesNestedInput = {
|
||||
deleteMany?: Prisma.UserScalarWhereInput | Prisma.UserScalarWhereInput[]
|
||||
}
|
||||
|
||||
export type UserCreateNestedOneWithoutGeneratedQuotesInput = {
|
||||
create?: Prisma.XOR<Prisma.UserCreateWithoutGeneratedQuotesInput, Prisma.UserUncheckedCreateWithoutGeneratedQuotesInput>
|
||||
connectOrCreate?: Prisma.UserCreateOrConnectWithoutGeneratedQuotesInput
|
||||
connect?: Prisma.UserWhereUniqueInput
|
||||
}
|
||||
|
||||
export type UserUpdateOneWithoutGeneratedQuotesNestedInput = {
|
||||
create?: Prisma.XOR<Prisma.UserCreateWithoutGeneratedQuotesInput, Prisma.UserUncheckedCreateWithoutGeneratedQuotesInput>
|
||||
connectOrCreate?: Prisma.UserCreateOrConnectWithoutGeneratedQuotesInput
|
||||
upsert?: Prisma.UserUpsertWithoutGeneratedQuotesInput
|
||||
disconnect?: Prisma.UserWhereInput | boolean
|
||||
delete?: Prisma.UserWhereInput | boolean
|
||||
connect?: Prisma.UserWhereUniqueInput
|
||||
update?: Prisma.XOR<Prisma.XOR<Prisma.UserUpdateToOneWithWhereWithoutGeneratedQuotesInput, Prisma.UserUpdateWithoutGeneratedQuotesInput>, Prisma.UserUncheckedUpdateWithoutGeneratedQuotesInput>
|
||||
}
|
||||
|
||||
export type UserCreateWithoutSessionsInput = {
|
||||
id?: string
|
||||
permissions?: string | null
|
||||
@@ -558,6 +586,7 @@ export type UserCreateWithoutSessionsInput = {
|
||||
createdAt?: Date | string
|
||||
updatedAt?: Date | string
|
||||
roles?: Prisma.RoleCreateNestedManyWithoutUsersInput
|
||||
generatedQuotes?: Prisma.GeneratedQuotesCreateNestedManyWithoutCreatedByInput
|
||||
}
|
||||
|
||||
export type UserUncheckedCreateWithoutSessionsInput = {
|
||||
@@ -574,6 +603,7 @@ export type UserUncheckedCreateWithoutSessionsInput = {
|
||||
createdAt?: Date | string
|
||||
updatedAt?: Date | string
|
||||
roles?: Prisma.RoleUncheckedCreateNestedManyWithoutUsersInput
|
||||
generatedQuotes?: Prisma.GeneratedQuotesUncheckedCreateNestedManyWithoutCreatedByInput
|
||||
}
|
||||
|
||||
export type UserCreateOrConnectWithoutSessionsInput = {
|
||||
@@ -606,6 +636,7 @@ export type UserUpdateWithoutSessionsInput = {
|
||||
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
roles?: Prisma.RoleUpdateManyWithoutUsersNestedInput
|
||||
generatedQuotes?: Prisma.GeneratedQuotesUpdateManyWithoutCreatedByNestedInput
|
||||
}
|
||||
|
||||
export type UserUncheckedUpdateWithoutSessionsInput = {
|
||||
@@ -622,6 +653,7 @@ export type UserUncheckedUpdateWithoutSessionsInput = {
|
||||
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
roles?: Prisma.RoleUncheckedUpdateManyWithoutUsersNestedInput
|
||||
generatedQuotes?: Prisma.GeneratedQuotesUncheckedUpdateManyWithoutCreatedByNestedInput
|
||||
}
|
||||
|
||||
export type UserCreateWithoutRolesInput = {
|
||||
@@ -638,6 +670,7 @@ export type UserCreateWithoutRolesInput = {
|
||||
createdAt?: Date | string
|
||||
updatedAt?: Date | string
|
||||
sessions?: Prisma.SessionCreateNestedManyWithoutUserInput
|
||||
generatedQuotes?: Prisma.GeneratedQuotesCreateNestedManyWithoutCreatedByInput
|
||||
}
|
||||
|
||||
export type UserUncheckedCreateWithoutRolesInput = {
|
||||
@@ -654,6 +687,7 @@ export type UserUncheckedCreateWithoutRolesInput = {
|
||||
createdAt?: Date | string
|
||||
updatedAt?: Date | string
|
||||
sessions?: Prisma.SessionUncheckedCreateNestedManyWithoutUserInput
|
||||
generatedQuotes?: Prisma.GeneratedQuotesUncheckedCreateNestedManyWithoutCreatedByInput
|
||||
}
|
||||
|
||||
export type UserCreateOrConnectWithoutRolesInput = {
|
||||
@@ -695,6 +729,90 @@ export type UserScalarWhereInput = {
|
||||
updatedAt?: Prisma.DateTimeFilter<"User"> | Date | string
|
||||
}
|
||||
|
||||
export type UserCreateWithoutGeneratedQuotesInput = {
|
||||
id?: string
|
||||
permissions?: string | null
|
||||
login: string
|
||||
name?: string | null
|
||||
email: string
|
||||
emailVerified?: Date | string | null
|
||||
image?: string | null
|
||||
cwIdentifier?: string | null
|
||||
userId: string
|
||||
token?: string | null
|
||||
createdAt?: Date | string
|
||||
updatedAt?: Date | string
|
||||
roles?: Prisma.RoleCreateNestedManyWithoutUsersInput
|
||||
sessions?: Prisma.SessionCreateNestedManyWithoutUserInput
|
||||
}
|
||||
|
||||
export type UserUncheckedCreateWithoutGeneratedQuotesInput = {
|
||||
id?: string
|
||||
permissions?: string | null
|
||||
login: string
|
||||
name?: string | null
|
||||
email: string
|
||||
emailVerified?: Date | string | null
|
||||
image?: string | null
|
||||
cwIdentifier?: string | null
|
||||
userId: string
|
||||
token?: string | null
|
||||
createdAt?: Date | string
|
||||
updatedAt?: Date | string
|
||||
roles?: Prisma.RoleUncheckedCreateNestedManyWithoutUsersInput
|
||||
sessions?: Prisma.SessionUncheckedCreateNestedManyWithoutUserInput
|
||||
}
|
||||
|
||||
export type UserCreateOrConnectWithoutGeneratedQuotesInput = {
|
||||
where: Prisma.UserWhereUniqueInput
|
||||
create: Prisma.XOR<Prisma.UserCreateWithoutGeneratedQuotesInput, Prisma.UserUncheckedCreateWithoutGeneratedQuotesInput>
|
||||
}
|
||||
|
||||
export type UserUpsertWithoutGeneratedQuotesInput = {
|
||||
update: Prisma.XOR<Prisma.UserUpdateWithoutGeneratedQuotesInput, Prisma.UserUncheckedUpdateWithoutGeneratedQuotesInput>
|
||||
create: Prisma.XOR<Prisma.UserCreateWithoutGeneratedQuotesInput, Prisma.UserUncheckedCreateWithoutGeneratedQuotesInput>
|
||||
where?: Prisma.UserWhereInput
|
||||
}
|
||||
|
||||
export type UserUpdateToOneWithWhereWithoutGeneratedQuotesInput = {
|
||||
where?: Prisma.UserWhereInput
|
||||
data: Prisma.XOR<Prisma.UserUpdateWithoutGeneratedQuotesInput, Prisma.UserUncheckedUpdateWithoutGeneratedQuotesInput>
|
||||
}
|
||||
|
||||
export type UserUpdateWithoutGeneratedQuotesInput = {
|
||||
id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
permissions?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
login?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
email?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
emailVerified?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
||||
image?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
cwIdentifier?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
userId?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
token?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
roles?: Prisma.RoleUpdateManyWithoutUsersNestedInput
|
||||
sessions?: Prisma.SessionUpdateManyWithoutUserNestedInput
|
||||
}
|
||||
|
||||
export type UserUncheckedUpdateWithoutGeneratedQuotesInput = {
|
||||
id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
permissions?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
login?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
email?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
emailVerified?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
||||
image?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
cwIdentifier?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
userId?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
token?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
roles?: Prisma.RoleUncheckedUpdateManyWithoutUsersNestedInput
|
||||
sessions?: Prisma.SessionUncheckedUpdateManyWithoutUserNestedInput
|
||||
}
|
||||
|
||||
export type UserUpdateWithoutRolesInput = {
|
||||
id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
permissions?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
@@ -709,6 +827,7 @@ export type UserUpdateWithoutRolesInput = {
|
||||
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
sessions?: Prisma.SessionUpdateManyWithoutUserNestedInput
|
||||
generatedQuotes?: Prisma.GeneratedQuotesUpdateManyWithoutCreatedByNestedInput
|
||||
}
|
||||
|
||||
export type UserUncheckedUpdateWithoutRolesInput = {
|
||||
@@ -725,6 +844,7 @@ export type UserUncheckedUpdateWithoutRolesInput = {
|
||||
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
sessions?: Prisma.SessionUncheckedUpdateManyWithoutUserNestedInput
|
||||
generatedQuotes?: Prisma.GeneratedQuotesUncheckedUpdateManyWithoutCreatedByNestedInput
|
||||
}
|
||||
|
||||
export type UserUncheckedUpdateManyWithoutRolesInput = {
|
||||
@@ -750,11 +870,13 @@ export type UserUncheckedUpdateManyWithoutRolesInput = {
|
||||
export type UserCountOutputType = {
|
||||
roles: number
|
||||
sessions: number
|
||||
generatedQuotes: number
|
||||
}
|
||||
|
||||
export type UserCountOutputTypeSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
||||
roles?: boolean | UserCountOutputTypeCountRolesArgs
|
||||
sessions?: boolean | UserCountOutputTypeCountSessionsArgs
|
||||
generatedQuotes?: boolean | UserCountOutputTypeCountGeneratedQuotesArgs
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -781,6 +903,13 @@ export type UserCountOutputTypeCountSessionsArgs<ExtArgs extends runtime.Types.E
|
||||
where?: Prisma.SessionWhereInput
|
||||
}
|
||||
|
||||
/**
|
||||
* UserCountOutputType without action
|
||||
*/
|
||||
export type UserCountOutputTypeCountGeneratedQuotesArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
||||
where?: Prisma.GeneratedQuotesWhereInput
|
||||
}
|
||||
|
||||
|
||||
export type UserSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
||||
id?: boolean
|
||||
@@ -797,6 +926,7 @@ export type UserSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = r
|
||||
updatedAt?: boolean
|
||||
roles?: boolean | Prisma.User$rolesArgs<ExtArgs>
|
||||
sessions?: boolean | Prisma.User$sessionsArgs<ExtArgs>
|
||||
generatedQuotes?: boolean | Prisma.User$generatedQuotesArgs<ExtArgs>
|
||||
_count?: boolean | Prisma.UserCountOutputTypeDefaultArgs<ExtArgs>
|
||||
}, ExtArgs["result"]["user"]>
|
||||
|
||||
@@ -849,6 +979,7 @@ export type UserOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = run
|
||||
export type UserInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
||||
roles?: boolean | Prisma.User$rolesArgs<ExtArgs>
|
||||
sessions?: boolean | Prisma.User$sessionsArgs<ExtArgs>
|
||||
generatedQuotes?: boolean | Prisma.User$generatedQuotesArgs<ExtArgs>
|
||||
_count?: boolean | Prisma.UserCountOutputTypeDefaultArgs<ExtArgs>
|
||||
}
|
||||
export type UserIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {}
|
||||
@@ -859,6 +990,7 @@ export type $UserPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs =
|
||||
objects: {
|
||||
roles: Prisma.$RolePayload<ExtArgs>[]
|
||||
sessions: Prisma.$SessionPayload<ExtArgs>[]
|
||||
generatedQuotes: Prisma.$GeneratedQuotesPayload<ExtArgs>[]
|
||||
}
|
||||
scalars: runtime.Types.Extensions.GetPayloadResult<{
|
||||
id: string
|
||||
@@ -1269,6 +1401,7 @@ export interface Prisma__UserClient<T, Null = never, ExtArgs extends runtime.Typ
|
||||
readonly [Symbol.toStringTag]: "PrismaPromise"
|
||||
roles<T extends Prisma.User$rolesArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.User$rolesArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$RolePayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
|
||||
sessions<T extends Prisma.User$sessionsArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.User$sessionsArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$SessionPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
|
||||
generatedQuotes<T extends Prisma.User$generatedQuotesArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.User$generatedQuotesArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$GeneratedQuotesPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
|
||||
/**
|
||||
* Attaches callbacks for the resolution and/or rejection of the Promise.
|
||||
* @param onfulfilled The callback to execute when the Promise is resolved.
|
||||
@@ -1745,6 +1878,30 @@ export type User$sessionsArgs<ExtArgs extends runtime.Types.Extensions.InternalA
|
||||
distinct?: Prisma.SessionScalarFieldEnum | Prisma.SessionScalarFieldEnum[]
|
||||
}
|
||||
|
||||
/**
|
||||
* User.generatedQuotes
|
||||
*/
|
||||
export type User$generatedQuotesArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
||||
/**
|
||||
* Select specific fields to fetch from the GeneratedQuotes
|
||||
*/
|
||||
select?: Prisma.GeneratedQuotesSelect<ExtArgs> | null
|
||||
/**
|
||||
* Omit specific fields from the GeneratedQuotes
|
||||
*/
|
||||
omit?: Prisma.GeneratedQuotesOmit<ExtArgs> | null
|
||||
/**
|
||||
* Choose, which related nodes to fetch as well
|
||||
*/
|
||||
include?: Prisma.GeneratedQuotesInclude<ExtArgs> | null
|
||||
where?: Prisma.GeneratedQuotesWhereInput
|
||||
orderBy?: Prisma.GeneratedQuotesOrderByWithRelationInput | Prisma.GeneratedQuotesOrderByWithRelationInput[]
|
||||
cursor?: Prisma.GeneratedQuotesWhereUniqueInput
|
||||
take?: number
|
||||
skip?: number
|
||||
distinct?: Prisma.GeneratedQuotesScalarFieldEnum | Prisma.GeneratedQuotesScalarFieldEnum[]
|
||||
}
|
||||
|
||||
/**
|
||||
* User without action
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user