Fix UserController permission serialization and include current updates
This commit is contained in:
File diff suppressed because one or more lines are too long
@@ -390,6 +390,7 @@ export const ModelName = {
|
||||
UnifiSite: 'UnifiSite',
|
||||
Company: 'Company',
|
||||
CatalogItem: 'CatalogItem',
|
||||
Opportunity: 'Opportunity',
|
||||
CredentialType: 'CredentialType',
|
||||
SecureValue: 'SecureValue',
|
||||
Credential: 'Credential'
|
||||
@@ -408,7 +409,7 @@ export type TypeMap<ExtArgs extends runtime.Types.Extensions.InternalArgs = runt
|
||||
omit: GlobalOmitOptions
|
||||
}
|
||||
meta: {
|
||||
modelProps: "session" | "user" | "role" | "unifiSite" | "company" | "catalogItem" | "credentialType" | "secureValue" | "credential"
|
||||
modelProps: "session" | "user" | "role" | "unifiSite" | "company" | "catalogItem" | "opportunity" | "credentialType" | "secureValue" | "credential"
|
||||
txIsolationLevel: TransactionIsolationLevel
|
||||
}
|
||||
model: {
|
||||
@@ -856,6 +857,80 @@ export type TypeMap<ExtArgs extends runtime.Types.Extensions.InternalArgs = runt
|
||||
}
|
||||
}
|
||||
}
|
||||
Opportunity: {
|
||||
payload: Prisma.$OpportunityPayload<ExtArgs>
|
||||
fields: Prisma.OpportunityFieldRefs
|
||||
operations: {
|
||||
findUnique: {
|
||||
args: Prisma.OpportunityFindUniqueArgs<ExtArgs>
|
||||
result: runtime.Types.Utils.PayloadToResult<Prisma.$OpportunityPayload> | null
|
||||
}
|
||||
findUniqueOrThrow: {
|
||||
args: Prisma.OpportunityFindUniqueOrThrowArgs<ExtArgs>
|
||||
result: runtime.Types.Utils.PayloadToResult<Prisma.$OpportunityPayload>
|
||||
}
|
||||
findFirst: {
|
||||
args: Prisma.OpportunityFindFirstArgs<ExtArgs>
|
||||
result: runtime.Types.Utils.PayloadToResult<Prisma.$OpportunityPayload> | null
|
||||
}
|
||||
findFirstOrThrow: {
|
||||
args: Prisma.OpportunityFindFirstOrThrowArgs<ExtArgs>
|
||||
result: runtime.Types.Utils.PayloadToResult<Prisma.$OpportunityPayload>
|
||||
}
|
||||
findMany: {
|
||||
args: Prisma.OpportunityFindManyArgs<ExtArgs>
|
||||
result: runtime.Types.Utils.PayloadToResult<Prisma.$OpportunityPayload>[]
|
||||
}
|
||||
create: {
|
||||
args: Prisma.OpportunityCreateArgs<ExtArgs>
|
||||
result: runtime.Types.Utils.PayloadToResult<Prisma.$OpportunityPayload>
|
||||
}
|
||||
createMany: {
|
||||
args: Prisma.OpportunityCreateManyArgs<ExtArgs>
|
||||
result: BatchPayload
|
||||
}
|
||||
createManyAndReturn: {
|
||||
args: Prisma.OpportunityCreateManyAndReturnArgs<ExtArgs>
|
||||
result: runtime.Types.Utils.PayloadToResult<Prisma.$OpportunityPayload>[]
|
||||
}
|
||||
delete: {
|
||||
args: Prisma.OpportunityDeleteArgs<ExtArgs>
|
||||
result: runtime.Types.Utils.PayloadToResult<Prisma.$OpportunityPayload>
|
||||
}
|
||||
update: {
|
||||
args: Prisma.OpportunityUpdateArgs<ExtArgs>
|
||||
result: runtime.Types.Utils.PayloadToResult<Prisma.$OpportunityPayload>
|
||||
}
|
||||
deleteMany: {
|
||||
args: Prisma.OpportunityDeleteManyArgs<ExtArgs>
|
||||
result: BatchPayload
|
||||
}
|
||||
updateMany: {
|
||||
args: Prisma.OpportunityUpdateManyArgs<ExtArgs>
|
||||
result: BatchPayload
|
||||
}
|
||||
updateManyAndReturn: {
|
||||
args: Prisma.OpportunityUpdateManyAndReturnArgs<ExtArgs>
|
||||
result: runtime.Types.Utils.PayloadToResult<Prisma.$OpportunityPayload>[]
|
||||
}
|
||||
upsert: {
|
||||
args: Prisma.OpportunityUpsertArgs<ExtArgs>
|
||||
result: runtime.Types.Utils.PayloadToResult<Prisma.$OpportunityPayload>
|
||||
}
|
||||
aggregate: {
|
||||
args: Prisma.OpportunityAggregateArgs<ExtArgs>
|
||||
result: runtime.Types.Utils.Optional<Prisma.AggregateOpportunity>
|
||||
}
|
||||
groupBy: {
|
||||
args: Prisma.OpportunityGroupByArgs<ExtArgs>
|
||||
result: runtime.Types.Utils.Optional<Prisma.OpportunityGroupByOutputType>[]
|
||||
}
|
||||
count: {
|
||||
args: Prisma.OpportunityCountArgs<ExtArgs>
|
||||
result: runtime.Types.Utils.Optional<Prisma.OpportunityCountAggregateOutputType> | number
|
||||
}
|
||||
}
|
||||
}
|
||||
CredentialType: {
|
||||
payload: Prisma.$CredentialTypePayload<ExtArgs>
|
||||
fields: Prisma.CredentialTypeFieldRefs
|
||||
@@ -1186,6 +1261,7 @@ export type CompanyScalarFieldEnum = (typeof CompanyScalarFieldEnum)[keyof typeo
|
||||
export const CatalogItemScalarFieldEnum = {
|
||||
id: 'id',
|
||||
cwCatalogId: 'cwCatalogId',
|
||||
identifier: 'identifier',
|
||||
name: 'name',
|
||||
description: 'description',
|
||||
customerDescription: 'customerDescription',
|
||||
@@ -1209,6 +1285,58 @@ export const CatalogItemScalarFieldEnum = {
|
||||
export type CatalogItemScalarFieldEnum = (typeof CatalogItemScalarFieldEnum)[keyof typeof CatalogItemScalarFieldEnum]
|
||||
|
||||
|
||||
export const OpportunityScalarFieldEnum = {
|
||||
id: 'id',
|
||||
cwOpportunityId: 'cwOpportunityId',
|
||||
name: 'name',
|
||||
notes: 'notes',
|
||||
typeName: 'typeName',
|
||||
typeCwId: 'typeCwId',
|
||||
stageName: 'stageName',
|
||||
stageCwId: 'stageCwId',
|
||||
statusName: 'statusName',
|
||||
statusCwId: 'statusCwId',
|
||||
priorityName: 'priorityName',
|
||||
priorityCwId: 'priorityCwId',
|
||||
ratingName: 'ratingName',
|
||||
ratingCwId: 'ratingCwId',
|
||||
source: 'source',
|
||||
campaignName: 'campaignName',
|
||||
campaignCwId: 'campaignCwId',
|
||||
primarySalesRepName: 'primarySalesRepName',
|
||||
primarySalesRepIdentifier: 'primarySalesRepIdentifier',
|
||||
primarySalesRepCwId: 'primarySalesRepCwId',
|
||||
secondarySalesRepName: 'secondarySalesRepName',
|
||||
secondarySalesRepIdentifier: 'secondarySalesRepIdentifier',
|
||||
secondarySalesRepCwId: 'secondarySalesRepCwId',
|
||||
companyCwId: 'companyCwId',
|
||||
companyName: 'companyName',
|
||||
contactCwId: 'contactCwId',
|
||||
contactName: 'contactName',
|
||||
siteCwId: 'siteCwId',
|
||||
siteName: 'siteName',
|
||||
customerPO: 'customerPO',
|
||||
totalSalesTax: 'totalSalesTax',
|
||||
locationName: 'locationName',
|
||||
locationCwId: 'locationCwId',
|
||||
departmentName: 'departmentName',
|
||||
departmentCwId: 'departmentCwId',
|
||||
expectedCloseDate: 'expectedCloseDate',
|
||||
pipelineChangeDate: 'pipelineChangeDate',
|
||||
dateBecameLead: 'dateBecameLead',
|
||||
closedDate: 'closedDate',
|
||||
closedFlag: 'closedFlag',
|
||||
closedByName: 'closedByName',
|
||||
closedByCwId: 'closedByCwId',
|
||||
companyId: 'companyId',
|
||||
cwLastUpdated: 'cwLastUpdated',
|
||||
createdAt: 'createdAt',
|
||||
updatedAt: 'updatedAt'
|
||||
} as const
|
||||
|
||||
export type OpportunityScalarFieldEnum = (typeof OpportunityScalarFieldEnum)[keyof typeof OpportunityScalarFieldEnum]
|
||||
|
||||
|
||||
export const CredentialTypeScalarFieldEnum = {
|
||||
id: 'id',
|
||||
name: 'name',
|
||||
@@ -1473,6 +1601,7 @@ export type GlobalOmitConfig = {
|
||||
unifiSite?: Prisma.UnifiSiteOmit
|
||||
company?: Prisma.CompanyOmit
|
||||
catalogItem?: Prisma.CatalogItemOmit
|
||||
opportunity?: Prisma.OpportunityOmit
|
||||
credentialType?: Prisma.CredentialTypeOmit
|
||||
secureValue?: Prisma.SecureValueOmit
|
||||
credential?: Prisma.CredentialOmit
|
||||
|
||||
@@ -57,6 +57,7 @@ export const ModelName = {
|
||||
UnifiSite: 'UnifiSite',
|
||||
Company: 'Company',
|
||||
CatalogItem: 'CatalogItem',
|
||||
Opportunity: 'Opportunity',
|
||||
CredentialType: 'CredentialType',
|
||||
SecureValue: 'SecureValue',
|
||||
Credential: 'Credential'
|
||||
@@ -147,6 +148,7 @@ export type CompanyScalarFieldEnum = (typeof CompanyScalarFieldEnum)[keyof typeo
|
||||
export const CatalogItemScalarFieldEnum = {
|
||||
id: 'id',
|
||||
cwCatalogId: 'cwCatalogId',
|
||||
identifier: 'identifier',
|
||||
name: 'name',
|
||||
description: 'description',
|
||||
customerDescription: 'customerDescription',
|
||||
@@ -170,6 +172,58 @@ export const CatalogItemScalarFieldEnum = {
|
||||
export type CatalogItemScalarFieldEnum = (typeof CatalogItemScalarFieldEnum)[keyof typeof CatalogItemScalarFieldEnum]
|
||||
|
||||
|
||||
export const OpportunityScalarFieldEnum = {
|
||||
id: 'id',
|
||||
cwOpportunityId: 'cwOpportunityId',
|
||||
name: 'name',
|
||||
notes: 'notes',
|
||||
typeName: 'typeName',
|
||||
typeCwId: 'typeCwId',
|
||||
stageName: 'stageName',
|
||||
stageCwId: 'stageCwId',
|
||||
statusName: 'statusName',
|
||||
statusCwId: 'statusCwId',
|
||||
priorityName: 'priorityName',
|
||||
priorityCwId: 'priorityCwId',
|
||||
ratingName: 'ratingName',
|
||||
ratingCwId: 'ratingCwId',
|
||||
source: 'source',
|
||||
campaignName: 'campaignName',
|
||||
campaignCwId: 'campaignCwId',
|
||||
primarySalesRepName: 'primarySalesRepName',
|
||||
primarySalesRepIdentifier: 'primarySalesRepIdentifier',
|
||||
primarySalesRepCwId: 'primarySalesRepCwId',
|
||||
secondarySalesRepName: 'secondarySalesRepName',
|
||||
secondarySalesRepIdentifier: 'secondarySalesRepIdentifier',
|
||||
secondarySalesRepCwId: 'secondarySalesRepCwId',
|
||||
companyCwId: 'companyCwId',
|
||||
companyName: 'companyName',
|
||||
contactCwId: 'contactCwId',
|
||||
contactName: 'contactName',
|
||||
siteCwId: 'siteCwId',
|
||||
siteName: 'siteName',
|
||||
customerPO: 'customerPO',
|
||||
totalSalesTax: 'totalSalesTax',
|
||||
locationName: 'locationName',
|
||||
locationCwId: 'locationCwId',
|
||||
departmentName: 'departmentName',
|
||||
departmentCwId: 'departmentCwId',
|
||||
expectedCloseDate: 'expectedCloseDate',
|
||||
pipelineChangeDate: 'pipelineChangeDate',
|
||||
dateBecameLead: 'dateBecameLead',
|
||||
closedDate: 'closedDate',
|
||||
closedFlag: 'closedFlag',
|
||||
closedByName: 'closedByName',
|
||||
closedByCwId: 'closedByCwId',
|
||||
companyId: 'companyId',
|
||||
cwLastUpdated: 'cwLastUpdated',
|
||||
createdAt: 'createdAt',
|
||||
updatedAt: 'updatedAt'
|
||||
} as const
|
||||
|
||||
export type OpportunityScalarFieldEnum = (typeof OpportunityScalarFieldEnum)[keyof typeof OpportunityScalarFieldEnum]
|
||||
|
||||
|
||||
export const CredentialTypeScalarFieldEnum = {
|
||||
id: 'id',
|
||||
name: 'name',
|
||||
|
||||
Reference in New Issue
Block a user