feat: restructure sales, add PDF quote generation and WebSocket support
This commit is contained in:
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'
|
||||
|
||||
Reference in New Issue
Block a user