feat(partners): add utility functions for partner business activity allocation limits and remaining licenses
- Implemented `getPartnerBusinessActivityAllocationLimits` to retrieve allocation limits for a partner's business activity. - Added `ensurePartnerBusinessActivityHasRemainingAllocation` to validate remaining allocation credits. - Created `getPartnerRemainingLicenses` to count remaining licenses for a partner. - Developed `getPartnerFirstRemainingLicense` to fetch the first unused license for a partner. - Introduced `ensurePartnerHasRemainingLicense` to ensure a partner has at least one unused license.
This commit is contained in:
@@ -394,13 +394,14 @@ export const ModelName = {
|
||||
Pos: 'Pos',
|
||||
DeviceBrand: 'DeviceBrand',
|
||||
Device: 'Device',
|
||||
LicenseChargeTransaction: 'LicenseChargeTransaction',
|
||||
License: 'License',
|
||||
LicenseActivation: 'LicenseActivation',
|
||||
LicenseChargeTransaction: 'LicenseChargeTransaction',
|
||||
LicenseRenew: 'LicenseRenew',
|
||||
LicenseRenewChargeTransaction: 'LicenseRenewChargeTransaction',
|
||||
LicenseRenew: 'LicenseRenew',
|
||||
PartnerAccountQuotaChargeTransaction: 'PartnerAccountQuotaChargeTransaction',
|
||||
PartnerAccountQuotaAllocation: 'PartnerAccountQuotaAllocation',
|
||||
PartnerAccountQuotaCredit: 'PartnerAccountQuotaCredit',
|
||||
LicenseAccountAllocation: 'LicenseAccountAllocation',
|
||||
PartnerAccount: 'PartnerAccount',
|
||||
Partner: 'Partner',
|
||||
PermissionConsumer: 'PermissionConsumer',
|
||||
@@ -438,7 +439,7 @@ export type TypeMap<ExtArgs extends runtime.Types.Extensions.InternalArgs = runt
|
||||
omit: GlobalOmitOptions
|
||||
}
|
||||
meta: {
|
||||
modelProps: "adminAccount" | "admin" | "account" | "consumerAccount" | "consumer" | "businessActivity" | "complex" | "pos" | "deviceBrand" | "device" | "license" | "licenseActivation" | "licenseChargeTransaction" | "licenseRenew" | "licenseRenewChargeTransaction" | "partnerAccountQuotaChargeTransaction" | "partnerAccountQuotaAllocation" | "partnerAccount" | "partner" | "permissionConsumer" | "permissionPos" | "permissionComplex" | "permissionBusiness" | "providerAccount" | "provider" | "consumerDevices" | "applicationReleasedInfo" | "triggerLog" | "customer" | "customerIndividual" | "customerLegal" | "good" | "goodCategory" | "guild" | "salesInvoice" | "salesInvoiceItem" | "salesInvoicePayment" | "service" | "serviceCategory"
|
||||
modelProps: "adminAccount" | "admin" | "account" | "consumerAccount" | "consumer" | "businessActivity" | "complex" | "pos" | "deviceBrand" | "device" | "licenseChargeTransaction" | "license" | "licenseActivation" | "licenseRenewChargeTransaction" | "licenseRenew" | "partnerAccountQuotaChargeTransaction" | "partnerAccountQuotaCredit" | "licenseAccountAllocation" | "partnerAccount" | "partner" | "permissionConsumer" | "permissionPos" | "permissionComplex" | "permissionBusiness" | "providerAccount" | "provider" | "consumerDevices" | "applicationReleasedInfo" | "triggerLog" | "customer" | "customerIndividual" | "customerLegal" | "good" | "goodCategory" | "guild" | "salesInvoice" | "salesInvoiceItem" | "salesInvoicePayment" | "service" | "serviceCategory"
|
||||
txIsolationLevel: TransactionIsolationLevel
|
||||
}
|
||||
model: {
|
||||
@@ -1102,6 +1103,72 @@ export type TypeMap<ExtArgs extends runtime.Types.Extensions.InternalArgs = runt
|
||||
}
|
||||
}
|
||||
}
|
||||
LicenseChargeTransaction: {
|
||||
payload: Prisma.$LicenseChargeTransactionPayload<ExtArgs>
|
||||
fields: Prisma.LicenseChargeTransactionFieldRefs
|
||||
operations: {
|
||||
findUnique: {
|
||||
args: Prisma.LicenseChargeTransactionFindUniqueArgs<ExtArgs>
|
||||
result: runtime.Types.Utils.PayloadToResult<Prisma.$LicenseChargeTransactionPayload> | null
|
||||
}
|
||||
findUniqueOrThrow: {
|
||||
args: Prisma.LicenseChargeTransactionFindUniqueOrThrowArgs<ExtArgs>
|
||||
result: runtime.Types.Utils.PayloadToResult<Prisma.$LicenseChargeTransactionPayload>
|
||||
}
|
||||
findFirst: {
|
||||
args: Prisma.LicenseChargeTransactionFindFirstArgs<ExtArgs>
|
||||
result: runtime.Types.Utils.PayloadToResult<Prisma.$LicenseChargeTransactionPayload> | null
|
||||
}
|
||||
findFirstOrThrow: {
|
||||
args: Prisma.LicenseChargeTransactionFindFirstOrThrowArgs<ExtArgs>
|
||||
result: runtime.Types.Utils.PayloadToResult<Prisma.$LicenseChargeTransactionPayload>
|
||||
}
|
||||
findMany: {
|
||||
args: Prisma.LicenseChargeTransactionFindManyArgs<ExtArgs>
|
||||
result: runtime.Types.Utils.PayloadToResult<Prisma.$LicenseChargeTransactionPayload>[]
|
||||
}
|
||||
create: {
|
||||
args: Prisma.LicenseChargeTransactionCreateArgs<ExtArgs>
|
||||
result: runtime.Types.Utils.PayloadToResult<Prisma.$LicenseChargeTransactionPayload>
|
||||
}
|
||||
createMany: {
|
||||
args: Prisma.LicenseChargeTransactionCreateManyArgs<ExtArgs>
|
||||
result: BatchPayload
|
||||
}
|
||||
delete: {
|
||||
args: Prisma.LicenseChargeTransactionDeleteArgs<ExtArgs>
|
||||
result: runtime.Types.Utils.PayloadToResult<Prisma.$LicenseChargeTransactionPayload>
|
||||
}
|
||||
update: {
|
||||
args: Prisma.LicenseChargeTransactionUpdateArgs<ExtArgs>
|
||||
result: runtime.Types.Utils.PayloadToResult<Prisma.$LicenseChargeTransactionPayload>
|
||||
}
|
||||
deleteMany: {
|
||||
args: Prisma.LicenseChargeTransactionDeleteManyArgs<ExtArgs>
|
||||
result: BatchPayload
|
||||
}
|
||||
updateMany: {
|
||||
args: Prisma.LicenseChargeTransactionUpdateManyArgs<ExtArgs>
|
||||
result: BatchPayload
|
||||
}
|
||||
upsert: {
|
||||
args: Prisma.LicenseChargeTransactionUpsertArgs<ExtArgs>
|
||||
result: runtime.Types.Utils.PayloadToResult<Prisma.$LicenseChargeTransactionPayload>
|
||||
}
|
||||
aggregate: {
|
||||
args: Prisma.LicenseChargeTransactionAggregateArgs<ExtArgs>
|
||||
result: runtime.Types.Utils.Optional<Prisma.AggregateLicenseChargeTransaction>
|
||||
}
|
||||
groupBy: {
|
||||
args: Prisma.LicenseChargeTransactionGroupByArgs<ExtArgs>
|
||||
result: runtime.Types.Utils.Optional<Prisma.LicenseChargeTransactionGroupByOutputType>[]
|
||||
}
|
||||
count: {
|
||||
args: Prisma.LicenseChargeTransactionCountArgs<ExtArgs>
|
||||
result: runtime.Types.Utils.Optional<Prisma.LicenseChargeTransactionCountAggregateOutputType> | number
|
||||
}
|
||||
}
|
||||
}
|
||||
License: {
|
||||
payload: Prisma.$LicensePayload<ExtArgs>
|
||||
fields: Prisma.LicenseFieldRefs
|
||||
@@ -1234,69 +1301,69 @@ export type TypeMap<ExtArgs extends runtime.Types.Extensions.InternalArgs = runt
|
||||
}
|
||||
}
|
||||
}
|
||||
LicenseChargeTransaction: {
|
||||
payload: Prisma.$LicenseChargeTransactionPayload<ExtArgs>
|
||||
fields: Prisma.LicenseChargeTransactionFieldRefs
|
||||
LicenseRenewChargeTransaction: {
|
||||
payload: Prisma.$LicenseRenewChargeTransactionPayload<ExtArgs>
|
||||
fields: Prisma.LicenseRenewChargeTransactionFieldRefs
|
||||
operations: {
|
||||
findUnique: {
|
||||
args: Prisma.LicenseChargeTransactionFindUniqueArgs<ExtArgs>
|
||||
result: runtime.Types.Utils.PayloadToResult<Prisma.$LicenseChargeTransactionPayload> | null
|
||||
args: Prisma.LicenseRenewChargeTransactionFindUniqueArgs<ExtArgs>
|
||||
result: runtime.Types.Utils.PayloadToResult<Prisma.$LicenseRenewChargeTransactionPayload> | null
|
||||
}
|
||||
findUniqueOrThrow: {
|
||||
args: Prisma.LicenseChargeTransactionFindUniqueOrThrowArgs<ExtArgs>
|
||||
result: runtime.Types.Utils.PayloadToResult<Prisma.$LicenseChargeTransactionPayload>
|
||||
args: Prisma.LicenseRenewChargeTransactionFindUniqueOrThrowArgs<ExtArgs>
|
||||
result: runtime.Types.Utils.PayloadToResult<Prisma.$LicenseRenewChargeTransactionPayload>
|
||||
}
|
||||
findFirst: {
|
||||
args: Prisma.LicenseChargeTransactionFindFirstArgs<ExtArgs>
|
||||
result: runtime.Types.Utils.PayloadToResult<Prisma.$LicenseChargeTransactionPayload> | null
|
||||
args: Prisma.LicenseRenewChargeTransactionFindFirstArgs<ExtArgs>
|
||||
result: runtime.Types.Utils.PayloadToResult<Prisma.$LicenseRenewChargeTransactionPayload> | null
|
||||
}
|
||||
findFirstOrThrow: {
|
||||
args: Prisma.LicenseChargeTransactionFindFirstOrThrowArgs<ExtArgs>
|
||||
result: runtime.Types.Utils.PayloadToResult<Prisma.$LicenseChargeTransactionPayload>
|
||||
args: Prisma.LicenseRenewChargeTransactionFindFirstOrThrowArgs<ExtArgs>
|
||||
result: runtime.Types.Utils.PayloadToResult<Prisma.$LicenseRenewChargeTransactionPayload>
|
||||
}
|
||||
findMany: {
|
||||
args: Prisma.LicenseChargeTransactionFindManyArgs<ExtArgs>
|
||||
result: runtime.Types.Utils.PayloadToResult<Prisma.$LicenseChargeTransactionPayload>[]
|
||||
args: Prisma.LicenseRenewChargeTransactionFindManyArgs<ExtArgs>
|
||||
result: runtime.Types.Utils.PayloadToResult<Prisma.$LicenseRenewChargeTransactionPayload>[]
|
||||
}
|
||||
create: {
|
||||
args: Prisma.LicenseChargeTransactionCreateArgs<ExtArgs>
|
||||
result: runtime.Types.Utils.PayloadToResult<Prisma.$LicenseChargeTransactionPayload>
|
||||
args: Prisma.LicenseRenewChargeTransactionCreateArgs<ExtArgs>
|
||||
result: runtime.Types.Utils.PayloadToResult<Prisma.$LicenseRenewChargeTransactionPayload>
|
||||
}
|
||||
createMany: {
|
||||
args: Prisma.LicenseChargeTransactionCreateManyArgs<ExtArgs>
|
||||
args: Prisma.LicenseRenewChargeTransactionCreateManyArgs<ExtArgs>
|
||||
result: BatchPayload
|
||||
}
|
||||
delete: {
|
||||
args: Prisma.LicenseChargeTransactionDeleteArgs<ExtArgs>
|
||||
result: runtime.Types.Utils.PayloadToResult<Prisma.$LicenseChargeTransactionPayload>
|
||||
args: Prisma.LicenseRenewChargeTransactionDeleteArgs<ExtArgs>
|
||||
result: runtime.Types.Utils.PayloadToResult<Prisma.$LicenseRenewChargeTransactionPayload>
|
||||
}
|
||||
update: {
|
||||
args: Prisma.LicenseChargeTransactionUpdateArgs<ExtArgs>
|
||||
result: runtime.Types.Utils.PayloadToResult<Prisma.$LicenseChargeTransactionPayload>
|
||||
args: Prisma.LicenseRenewChargeTransactionUpdateArgs<ExtArgs>
|
||||
result: runtime.Types.Utils.PayloadToResult<Prisma.$LicenseRenewChargeTransactionPayload>
|
||||
}
|
||||
deleteMany: {
|
||||
args: Prisma.LicenseChargeTransactionDeleteManyArgs<ExtArgs>
|
||||
args: Prisma.LicenseRenewChargeTransactionDeleteManyArgs<ExtArgs>
|
||||
result: BatchPayload
|
||||
}
|
||||
updateMany: {
|
||||
args: Prisma.LicenseChargeTransactionUpdateManyArgs<ExtArgs>
|
||||
args: Prisma.LicenseRenewChargeTransactionUpdateManyArgs<ExtArgs>
|
||||
result: BatchPayload
|
||||
}
|
||||
upsert: {
|
||||
args: Prisma.LicenseChargeTransactionUpsertArgs<ExtArgs>
|
||||
result: runtime.Types.Utils.PayloadToResult<Prisma.$LicenseChargeTransactionPayload>
|
||||
args: Prisma.LicenseRenewChargeTransactionUpsertArgs<ExtArgs>
|
||||
result: runtime.Types.Utils.PayloadToResult<Prisma.$LicenseRenewChargeTransactionPayload>
|
||||
}
|
||||
aggregate: {
|
||||
args: Prisma.LicenseChargeTransactionAggregateArgs<ExtArgs>
|
||||
result: runtime.Types.Utils.Optional<Prisma.AggregateLicenseChargeTransaction>
|
||||
args: Prisma.LicenseRenewChargeTransactionAggregateArgs<ExtArgs>
|
||||
result: runtime.Types.Utils.Optional<Prisma.AggregateLicenseRenewChargeTransaction>
|
||||
}
|
||||
groupBy: {
|
||||
args: Prisma.LicenseChargeTransactionGroupByArgs<ExtArgs>
|
||||
result: runtime.Types.Utils.Optional<Prisma.LicenseChargeTransactionGroupByOutputType>[]
|
||||
args: Prisma.LicenseRenewChargeTransactionGroupByArgs<ExtArgs>
|
||||
result: runtime.Types.Utils.Optional<Prisma.LicenseRenewChargeTransactionGroupByOutputType>[]
|
||||
}
|
||||
count: {
|
||||
args: Prisma.LicenseChargeTransactionCountArgs<ExtArgs>
|
||||
result: runtime.Types.Utils.Optional<Prisma.LicenseChargeTransactionCountAggregateOutputType> | number
|
||||
args: Prisma.LicenseRenewChargeTransactionCountArgs<ExtArgs>
|
||||
result: runtime.Types.Utils.Optional<Prisma.LicenseRenewChargeTransactionCountAggregateOutputType> | number
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1366,72 +1433,6 @@ export type TypeMap<ExtArgs extends runtime.Types.Extensions.InternalArgs = runt
|
||||
}
|
||||
}
|
||||
}
|
||||
LicenseRenewChargeTransaction: {
|
||||
payload: Prisma.$LicenseRenewChargeTransactionPayload<ExtArgs>
|
||||
fields: Prisma.LicenseRenewChargeTransactionFieldRefs
|
||||
operations: {
|
||||
findUnique: {
|
||||
args: Prisma.LicenseRenewChargeTransactionFindUniqueArgs<ExtArgs>
|
||||
result: runtime.Types.Utils.PayloadToResult<Prisma.$LicenseRenewChargeTransactionPayload> | null
|
||||
}
|
||||
findUniqueOrThrow: {
|
||||
args: Prisma.LicenseRenewChargeTransactionFindUniqueOrThrowArgs<ExtArgs>
|
||||
result: runtime.Types.Utils.PayloadToResult<Prisma.$LicenseRenewChargeTransactionPayload>
|
||||
}
|
||||
findFirst: {
|
||||
args: Prisma.LicenseRenewChargeTransactionFindFirstArgs<ExtArgs>
|
||||
result: runtime.Types.Utils.PayloadToResult<Prisma.$LicenseRenewChargeTransactionPayload> | null
|
||||
}
|
||||
findFirstOrThrow: {
|
||||
args: Prisma.LicenseRenewChargeTransactionFindFirstOrThrowArgs<ExtArgs>
|
||||
result: runtime.Types.Utils.PayloadToResult<Prisma.$LicenseRenewChargeTransactionPayload>
|
||||
}
|
||||
findMany: {
|
||||
args: Prisma.LicenseRenewChargeTransactionFindManyArgs<ExtArgs>
|
||||
result: runtime.Types.Utils.PayloadToResult<Prisma.$LicenseRenewChargeTransactionPayload>[]
|
||||
}
|
||||
create: {
|
||||
args: Prisma.LicenseRenewChargeTransactionCreateArgs<ExtArgs>
|
||||
result: runtime.Types.Utils.PayloadToResult<Prisma.$LicenseRenewChargeTransactionPayload>
|
||||
}
|
||||
createMany: {
|
||||
args: Prisma.LicenseRenewChargeTransactionCreateManyArgs<ExtArgs>
|
||||
result: BatchPayload
|
||||
}
|
||||
delete: {
|
||||
args: Prisma.LicenseRenewChargeTransactionDeleteArgs<ExtArgs>
|
||||
result: runtime.Types.Utils.PayloadToResult<Prisma.$LicenseRenewChargeTransactionPayload>
|
||||
}
|
||||
update: {
|
||||
args: Prisma.LicenseRenewChargeTransactionUpdateArgs<ExtArgs>
|
||||
result: runtime.Types.Utils.PayloadToResult<Prisma.$LicenseRenewChargeTransactionPayload>
|
||||
}
|
||||
deleteMany: {
|
||||
args: Prisma.LicenseRenewChargeTransactionDeleteManyArgs<ExtArgs>
|
||||
result: BatchPayload
|
||||
}
|
||||
updateMany: {
|
||||
args: Prisma.LicenseRenewChargeTransactionUpdateManyArgs<ExtArgs>
|
||||
result: BatchPayload
|
||||
}
|
||||
upsert: {
|
||||
args: Prisma.LicenseRenewChargeTransactionUpsertArgs<ExtArgs>
|
||||
result: runtime.Types.Utils.PayloadToResult<Prisma.$LicenseRenewChargeTransactionPayload>
|
||||
}
|
||||
aggregate: {
|
||||
args: Prisma.LicenseRenewChargeTransactionAggregateArgs<ExtArgs>
|
||||
result: runtime.Types.Utils.Optional<Prisma.AggregateLicenseRenewChargeTransaction>
|
||||
}
|
||||
groupBy: {
|
||||
args: Prisma.LicenseRenewChargeTransactionGroupByArgs<ExtArgs>
|
||||
result: runtime.Types.Utils.Optional<Prisma.LicenseRenewChargeTransactionGroupByOutputType>[]
|
||||
}
|
||||
count: {
|
||||
args: Prisma.LicenseRenewChargeTransactionCountArgs<ExtArgs>
|
||||
result: runtime.Types.Utils.Optional<Prisma.LicenseRenewChargeTransactionCountAggregateOutputType> | number
|
||||
}
|
||||
}
|
||||
}
|
||||
PartnerAccountQuotaChargeTransaction: {
|
||||
payload: Prisma.$PartnerAccountQuotaChargeTransactionPayload<ExtArgs>
|
||||
fields: Prisma.PartnerAccountQuotaChargeTransactionFieldRefs
|
||||
@@ -1498,69 +1499,135 @@ export type TypeMap<ExtArgs extends runtime.Types.Extensions.InternalArgs = runt
|
||||
}
|
||||
}
|
||||
}
|
||||
PartnerAccountQuotaAllocation: {
|
||||
payload: Prisma.$PartnerAccountQuotaAllocationPayload<ExtArgs>
|
||||
fields: Prisma.PartnerAccountQuotaAllocationFieldRefs
|
||||
PartnerAccountQuotaCredit: {
|
||||
payload: Prisma.$PartnerAccountQuotaCreditPayload<ExtArgs>
|
||||
fields: Prisma.PartnerAccountQuotaCreditFieldRefs
|
||||
operations: {
|
||||
findUnique: {
|
||||
args: Prisma.PartnerAccountQuotaAllocationFindUniqueArgs<ExtArgs>
|
||||
result: runtime.Types.Utils.PayloadToResult<Prisma.$PartnerAccountQuotaAllocationPayload> | null
|
||||
args: Prisma.PartnerAccountQuotaCreditFindUniqueArgs<ExtArgs>
|
||||
result: runtime.Types.Utils.PayloadToResult<Prisma.$PartnerAccountQuotaCreditPayload> | null
|
||||
}
|
||||
findUniqueOrThrow: {
|
||||
args: Prisma.PartnerAccountQuotaAllocationFindUniqueOrThrowArgs<ExtArgs>
|
||||
result: runtime.Types.Utils.PayloadToResult<Prisma.$PartnerAccountQuotaAllocationPayload>
|
||||
args: Prisma.PartnerAccountQuotaCreditFindUniqueOrThrowArgs<ExtArgs>
|
||||
result: runtime.Types.Utils.PayloadToResult<Prisma.$PartnerAccountQuotaCreditPayload>
|
||||
}
|
||||
findFirst: {
|
||||
args: Prisma.PartnerAccountQuotaAllocationFindFirstArgs<ExtArgs>
|
||||
result: runtime.Types.Utils.PayloadToResult<Prisma.$PartnerAccountQuotaAllocationPayload> | null
|
||||
args: Prisma.PartnerAccountQuotaCreditFindFirstArgs<ExtArgs>
|
||||
result: runtime.Types.Utils.PayloadToResult<Prisma.$PartnerAccountQuotaCreditPayload> | null
|
||||
}
|
||||
findFirstOrThrow: {
|
||||
args: Prisma.PartnerAccountQuotaAllocationFindFirstOrThrowArgs<ExtArgs>
|
||||
result: runtime.Types.Utils.PayloadToResult<Prisma.$PartnerAccountQuotaAllocationPayload>
|
||||
args: Prisma.PartnerAccountQuotaCreditFindFirstOrThrowArgs<ExtArgs>
|
||||
result: runtime.Types.Utils.PayloadToResult<Prisma.$PartnerAccountQuotaCreditPayload>
|
||||
}
|
||||
findMany: {
|
||||
args: Prisma.PartnerAccountQuotaAllocationFindManyArgs<ExtArgs>
|
||||
result: runtime.Types.Utils.PayloadToResult<Prisma.$PartnerAccountQuotaAllocationPayload>[]
|
||||
args: Prisma.PartnerAccountQuotaCreditFindManyArgs<ExtArgs>
|
||||
result: runtime.Types.Utils.PayloadToResult<Prisma.$PartnerAccountQuotaCreditPayload>[]
|
||||
}
|
||||
create: {
|
||||
args: Prisma.PartnerAccountQuotaAllocationCreateArgs<ExtArgs>
|
||||
result: runtime.Types.Utils.PayloadToResult<Prisma.$PartnerAccountQuotaAllocationPayload>
|
||||
args: Prisma.PartnerAccountQuotaCreditCreateArgs<ExtArgs>
|
||||
result: runtime.Types.Utils.PayloadToResult<Prisma.$PartnerAccountQuotaCreditPayload>
|
||||
}
|
||||
createMany: {
|
||||
args: Prisma.PartnerAccountQuotaAllocationCreateManyArgs<ExtArgs>
|
||||
args: Prisma.PartnerAccountQuotaCreditCreateManyArgs<ExtArgs>
|
||||
result: BatchPayload
|
||||
}
|
||||
delete: {
|
||||
args: Prisma.PartnerAccountQuotaAllocationDeleteArgs<ExtArgs>
|
||||
result: runtime.Types.Utils.PayloadToResult<Prisma.$PartnerAccountQuotaAllocationPayload>
|
||||
args: Prisma.PartnerAccountQuotaCreditDeleteArgs<ExtArgs>
|
||||
result: runtime.Types.Utils.PayloadToResult<Prisma.$PartnerAccountQuotaCreditPayload>
|
||||
}
|
||||
update: {
|
||||
args: Prisma.PartnerAccountQuotaAllocationUpdateArgs<ExtArgs>
|
||||
result: runtime.Types.Utils.PayloadToResult<Prisma.$PartnerAccountQuotaAllocationPayload>
|
||||
args: Prisma.PartnerAccountQuotaCreditUpdateArgs<ExtArgs>
|
||||
result: runtime.Types.Utils.PayloadToResult<Prisma.$PartnerAccountQuotaCreditPayload>
|
||||
}
|
||||
deleteMany: {
|
||||
args: Prisma.PartnerAccountQuotaAllocationDeleteManyArgs<ExtArgs>
|
||||
args: Prisma.PartnerAccountQuotaCreditDeleteManyArgs<ExtArgs>
|
||||
result: BatchPayload
|
||||
}
|
||||
updateMany: {
|
||||
args: Prisma.PartnerAccountQuotaAllocationUpdateManyArgs<ExtArgs>
|
||||
args: Prisma.PartnerAccountQuotaCreditUpdateManyArgs<ExtArgs>
|
||||
result: BatchPayload
|
||||
}
|
||||
upsert: {
|
||||
args: Prisma.PartnerAccountQuotaAllocationUpsertArgs<ExtArgs>
|
||||
result: runtime.Types.Utils.PayloadToResult<Prisma.$PartnerAccountQuotaAllocationPayload>
|
||||
args: Prisma.PartnerAccountQuotaCreditUpsertArgs<ExtArgs>
|
||||
result: runtime.Types.Utils.PayloadToResult<Prisma.$PartnerAccountQuotaCreditPayload>
|
||||
}
|
||||
aggregate: {
|
||||
args: Prisma.PartnerAccountQuotaAllocationAggregateArgs<ExtArgs>
|
||||
result: runtime.Types.Utils.Optional<Prisma.AggregatePartnerAccountQuotaAllocation>
|
||||
args: Prisma.PartnerAccountQuotaCreditAggregateArgs<ExtArgs>
|
||||
result: runtime.Types.Utils.Optional<Prisma.AggregatePartnerAccountQuotaCredit>
|
||||
}
|
||||
groupBy: {
|
||||
args: Prisma.PartnerAccountQuotaAllocationGroupByArgs<ExtArgs>
|
||||
result: runtime.Types.Utils.Optional<Prisma.PartnerAccountQuotaAllocationGroupByOutputType>[]
|
||||
args: Prisma.PartnerAccountQuotaCreditGroupByArgs<ExtArgs>
|
||||
result: runtime.Types.Utils.Optional<Prisma.PartnerAccountQuotaCreditGroupByOutputType>[]
|
||||
}
|
||||
count: {
|
||||
args: Prisma.PartnerAccountQuotaAllocationCountArgs<ExtArgs>
|
||||
result: runtime.Types.Utils.Optional<Prisma.PartnerAccountQuotaAllocationCountAggregateOutputType> | number
|
||||
args: Prisma.PartnerAccountQuotaCreditCountArgs<ExtArgs>
|
||||
result: runtime.Types.Utils.Optional<Prisma.PartnerAccountQuotaCreditCountAggregateOutputType> | number
|
||||
}
|
||||
}
|
||||
}
|
||||
LicenseAccountAllocation: {
|
||||
payload: Prisma.$LicenseAccountAllocationPayload<ExtArgs>
|
||||
fields: Prisma.LicenseAccountAllocationFieldRefs
|
||||
operations: {
|
||||
findUnique: {
|
||||
args: Prisma.LicenseAccountAllocationFindUniqueArgs<ExtArgs>
|
||||
result: runtime.Types.Utils.PayloadToResult<Prisma.$LicenseAccountAllocationPayload> | null
|
||||
}
|
||||
findUniqueOrThrow: {
|
||||
args: Prisma.LicenseAccountAllocationFindUniqueOrThrowArgs<ExtArgs>
|
||||
result: runtime.Types.Utils.PayloadToResult<Prisma.$LicenseAccountAllocationPayload>
|
||||
}
|
||||
findFirst: {
|
||||
args: Prisma.LicenseAccountAllocationFindFirstArgs<ExtArgs>
|
||||
result: runtime.Types.Utils.PayloadToResult<Prisma.$LicenseAccountAllocationPayload> | null
|
||||
}
|
||||
findFirstOrThrow: {
|
||||
args: Prisma.LicenseAccountAllocationFindFirstOrThrowArgs<ExtArgs>
|
||||
result: runtime.Types.Utils.PayloadToResult<Prisma.$LicenseAccountAllocationPayload>
|
||||
}
|
||||
findMany: {
|
||||
args: Prisma.LicenseAccountAllocationFindManyArgs<ExtArgs>
|
||||
result: runtime.Types.Utils.PayloadToResult<Prisma.$LicenseAccountAllocationPayload>[]
|
||||
}
|
||||
create: {
|
||||
args: Prisma.LicenseAccountAllocationCreateArgs<ExtArgs>
|
||||
result: runtime.Types.Utils.PayloadToResult<Prisma.$LicenseAccountAllocationPayload>
|
||||
}
|
||||
createMany: {
|
||||
args: Prisma.LicenseAccountAllocationCreateManyArgs<ExtArgs>
|
||||
result: BatchPayload
|
||||
}
|
||||
delete: {
|
||||
args: Prisma.LicenseAccountAllocationDeleteArgs<ExtArgs>
|
||||
result: runtime.Types.Utils.PayloadToResult<Prisma.$LicenseAccountAllocationPayload>
|
||||
}
|
||||
update: {
|
||||
args: Prisma.LicenseAccountAllocationUpdateArgs<ExtArgs>
|
||||
result: runtime.Types.Utils.PayloadToResult<Prisma.$LicenseAccountAllocationPayload>
|
||||
}
|
||||
deleteMany: {
|
||||
args: Prisma.LicenseAccountAllocationDeleteManyArgs<ExtArgs>
|
||||
result: BatchPayload
|
||||
}
|
||||
updateMany: {
|
||||
args: Prisma.LicenseAccountAllocationUpdateManyArgs<ExtArgs>
|
||||
result: BatchPayload
|
||||
}
|
||||
upsert: {
|
||||
args: Prisma.LicenseAccountAllocationUpsertArgs<ExtArgs>
|
||||
result: runtime.Types.Utils.PayloadToResult<Prisma.$LicenseAccountAllocationPayload>
|
||||
}
|
||||
aggregate: {
|
||||
args: Prisma.LicenseAccountAllocationAggregateArgs<ExtArgs>
|
||||
result: runtime.Types.Utils.Optional<Prisma.AggregateLicenseAccountAllocation>
|
||||
}
|
||||
groupBy: {
|
||||
args: Prisma.LicenseAccountAllocationGroupByArgs<ExtArgs>
|
||||
result: runtime.Types.Utils.Optional<Prisma.LicenseAccountAllocationGroupByOutputType>[]
|
||||
}
|
||||
count: {
|
||||
args: Prisma.LicenseAccountAllocationCountArgs<ExtArgs>
|
||||
result: runtime.Types.Utils.Optional<Prisma.LicenseAccountAllocationCountAggregateOutputType> | number
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -3183,6 +3250,19 @@ export const DeviceScalarFieldEnum = {
|
||||
export type DeviceScalarFieldEnum = (typeof DeviceScalarFieldEnum)[keyof typeof DeviceScalarFieldEnum]
|
||||
|
||||
|
||||
export const LicenseChargeTransactionScalarFieldEnum = {
|
||||
id: 'id',
|
||||
activation_expires_at: 'activation_expires_at',
|
||||
tracking_code: 'tracking_code',
|
||||
purchased_count: 'purchased_count',
|
||||
created_at: 'created_at',
|
||||
updated_at: 'updated_at',
|
||||
partner_id: 'partner_id'
|
||||
} as const
|
||||
|
||||
export type LicenseChargeTransactionScalarFieldEnum = (typeof LicenseChargeTransactionScalarFieldEnum)[keyof typeof LicenseChargeTransactionScalarFieldEnum]
|
||||
|
||||
|
||||
export const LicenseScalarFieldEnum = {
|
||||
id: 'id',
|
||||
accounts_limit: 'accounts_limit',
|
||||
@@ -3207,7 +3287,7 @@ export const LicenseActivationScalarFieldEnum = {
|
||||
export type LicenseActivationScalarFieldEnum = (typeof LicenseActivationScalarFieldEnum)[keyof typeof LicenseActivationScalarFieldEnum]
|
||||
|
||||
|
||||
export const LicenseChargeTransactionScalarFieldEnum = {
|
||||
export const LicenseRenewChargeTransactionScalarFieldEnum = {
|
||||
id: 'id',
|
||||
activation_expires_at: 'activation_expires_at',
|
||||
tracking_code: 'tracking_code',
|
||||
@@ -3217,7 +3297,7 @@ export const LicenseChargeTransactionScalarFieldEnum = {
|
||||
partner_id: 'partner_id'
|
||||
} as const
|
||||
|
||||
export type LicenseChargeTransactionScalarFieldEnum = (typeof LicenseChargeTransactionScalarFieldEnum)[keyof typeof LicenseChargeTransactionScalarFieldEnum]
|
||||
export type LicenseRenewChargeTransactionScalarFieldEnum = (typeof LicenseRenewChargeTransactionScalarFieldEnum)[keyof typeof LicenseRenewChargeTransactionScalarFieldEnum]
|
||||
|
||||
|
||||
export const LicenseRenewScalarFieldEnum = {
|
||||
@@ -3232,19 +3312,6 @@ export const LicenseRenewScalarFieldEnum = {
|
||||
export type LicenseRenewScalarFieldEnum = (typeof LicenseRenewScalarFieldEnum)[keyof typeof LicenseRenewScalarFieldEnum]
|
||||
|
||||
|
||||
export const LicenseRenewChargeTransactionScalarFieldEnum = {
|
||||
id: 'id',
|
||||
activation_expires_at: 'activation_expires_at',
|
||||
tracking_code: 'tracking_code',
|
||||
purchased_count: 'purchased_count',
|
||||
created_at: 'created_at',
|
||||
updated_at: 'updated_at',
|
||||
partner_id: 'partner_id'
|
||||
} as const
|
||||
|
||||
export type LicenseRenewChargeTransactionScalarFieldEnum = (typeof LicenseRenewChargeTransactionScalarFieldEnum)[keyof typeof LicenseRenewChargeTransactionScalarFieldEnum]
|
||||
|
||||
|
||||
export const PartnerAccountQuotaChargeTransactionScalarFieldEnum = {
|
||||
id: 'id',
|
||||
activation_expires_at: 'activation_expires_at',
|
||||
@@ -3258,15 +3325,26 @@ export const PartnerAccountQuotaChargeTransactionScalarFieldEnum = {
|
||||
export type PartnerAccountQuotaChargeTransactionScalarFieldEnum = (typeof PartnerAccountQuotaChargeTransactionScalarFieldEnum)[keyof typeof PartnerAccountQuotaChargeTransactionScalarFieldEnum]
|
||||
|
||||
|
||||
export const PartnerAccountQuotaAllocationScalarFieldEnum = {
|
||||
export const PartnerAccountQuotaCreditScalarFieldEnum = {
|
||||
id: 'id',
|
||||
created_at: 'created_at',
|
||||
updated_at: 'updated_at',
|
||||
charge_transaction_id: 'charge_transaction_id',
|
||||
license_id: 'license_id'
|
||||
allocation_id: 'allocation_id'
|
||||
} as const
|
||||
|
||||
export type PartnerAccountQuotaAllocationScalarFieldEnum = (typeof PartnerAccountQuotaAllocationScalarFieldEnum)[keyof typeof PartnerAccountQuotaAllocationScalarFieldEnum]
|
||||
export type PartnerAccountQuotaCreditScalarFieldEnum = (typeof PartnerAccountQuotaCreditScalarFieldEnum)[keyof typeof PartnerAccountQuotaCreditScalarFieldEnum]
|
||||
|
||||
|
||||
export const LicenseAccountAllocationScalarFieldEnum = {
|
||||
id: 'id',
|
||||
created_at: 'created_at',
|
||||
updated_at: 'updated_at',
|
||||
license_activation_id: 'license_activation_id',
|
||||
account_id: 'account_id'
|
||||
} as const
|
||||
|
||||
export type LicenseAccountAllocationScalarFieldEnum = (typeof LicenseAccountAllocationScalarFieldEnum)[keyof typeof LicenseAccountAllocationScalarFieldEnum]
|
||||
|
||||
|
||||
export const PartnerAccountScalarFieldEnum = {
|
||||
@@ -3701,6 +3779,15 @@ export const DeviceOrderByRelevanceFieldEnum = {
|
||||
export type DeviceOrderByRelevanceFieldEnum = (typeof DeviceOrderByRelevanceFieldEnum)[keyof typeof DeviceOrderByRelevanceFieldEnum]
|
||||
|
||||
|
||||
export const LicenseChargeTransactionOrderByRelevanceFieldEnum = {
|
||||
id: 'id',
|
||||
tracking_code: 'tracking_code',
|
||||
partner_id: 'partner_id'
|
||||
} as const
|
||||
|
||||
export type LicenseChargeTransactionOrderByRelevanceFieldEnum = (typeof LicenseChargeTransactionOrderByRelevanceFieldEnum)[keyof typeof LicenseChargeTransactionOrderByRelevanceFieldEnum]
|
||||
|
||||
|
||||
export const LicenseOrderByRelevanceFieldEnum = {
|
||||
id: 'id',
|
||||
charge_transaction_id: 'charge_transaction_id'
|
||||
@@ -3718,13 +3805,13 @@ export const LicenseActivationOrderByRelevanceFieldEnum = {
|
||||
export type LicenseActivationOrderByRelevanceFieldEnum = (typeof LicenseActivationOrderByRelevanceFieldEnum)[keyof typeof LicenseActivationOrderByRelevanceFieldEnum]
|
||||
|
||||
|
||||
export const LicenseChargeTransactionOrderByRelevanceFieldEnum = {
|
||||
export const LicenseRenewChargeTransactionOrderByRelevanceFieldEnum = {
|
||||
id: 'id',
|
||||
tracking_code: 'tracking_code',
|
||||
partner_id: 'partner_id'
|
||||
} as const
|
||||
|
||||
export type LicenseChargeTransactionOrderByRelevanceFieldEnum = (typeof LicenseChargeTransactionOrderByRelevanceFieldEnum)[keyof typeof LicenseChargeTransactionOrderByRelevanceFieldEnum]
|
||||
export type LicenseRenewChargeTransactionOrderByRelevanceFieldEnum = (typeof LicenseRenewChargeTransactionOrderByRelevanceFieldEnum)[keyof typeof LicenseRenewChargeTransactionOrderByRelevanceFieldEnum]
|
||||
|
||||
|
||||
export const LicenseRenewOrderByRelevanceFieldEnum = {
|
||||
@@ -3736,15 +3823,6 @@ export const LicenseRenewOrderByRelevanceFieldEnum = {
|
||||
export type LicenseRenewOrderByRelevanceFieldEnum = (typeof LicenseRenewOrderByRelevanceFieldEnum)[keyof typeof LicenseRenewOrderByRelevanceFieldEnum]
|
||||
|
||||
|
||||
export const LicenseRenewChargeTransactionOrderByRelevanceFieldEnum = {
|
||||
id: 'id',
|
||||
tracking_code: 'tracking_code',
|
||||
partner_id: 'partner_id'
|
||||
} as const
|
||||
|
||||
export type LicenseRenewChargeTransactionOrderByRelevanceFieldEnum = (typeof LicenseRenewChargeTransactionOrderByRelevanceFieldEnum)[keyof typeof LicenseRenewChargeTransactionOrderByRelevanceFieldEnum]
|
||||
|
||||
|
||||
export const PartnerAccountQuotaChargeTransactionOrderByRelevanceFieldEnum = {
|
||||
id: 'id',
|
||||
tracking_code: 'tracking_code',
|
||||
@@ -3754,13 +3832,22 @@ export const PartnerAccountQuotaChargeTransactionOrderByRelevanceFieldEnum = {
|
||||
export type PartnerAccountQuotaChargeTransactionOrderByRelevanceFieldEnum = (typeof PartnerAccountQuotaChargeTransactionOrderByRelevanceFieldEnum)[keyof typeof PartnerAccountQuotaChargeTransactionOrderByRelevanceFieldEnum]
|
||||
|
||||
|
||||
export const PartnerAccountQuotaAllocationOrderByRelevanceFieldEnum = {
|
||||
export const PartnerAccountQuotaCreditOrderByRelevanceFieldEnum = {
|
||||
id: 'id',
|
||||
charge_transaction_id: 'charge_transaction_id',
|
||||
license_id: 'license_id'
|
||||
allocation_id: 'allocation_id'
|
||||
} as const
|
||||
|
||||
export type PartnerAccountQuotaAllocationOrderByRelevanceFieldEnum = (typeof PartnerAccountQuotaAllocationOrderByRelevanceFieldEnum)[keyof typeof PartnerAccountQuotaAllocationOrderByRelevanceFieldEnum]
|
||||
export type PartnerAccountQuotaCreditOrderByRelevanceFieldEnum = (typeof PartnerAccountQuotaCreditOrderByRelevanceFieldEnum)[keyof typeof PartnerAccountQuotaCreditOrderByRelevanceFieldEnum]
|
||||
|
||||
|
||||
export const LicenseAccountAllocationOrderByRelevanceFieldEnum = {
|
||||
id: 'id',
|
||||
license_activation_id: 'license_activation_id',
|
||||
account_id: 'account_id'
|
||||
} as const
|
||||
|
||||
export type LicenseAccountAllocationOrderByRelevanceFieldEnum = (typeof LicenseAccountAllocationOrderByRelevanceFieldEnum)[keyof typeof LicenseAccountAllocationOrderByRelevanceFieldEnum]
|
||||
|
||||
|
||||
export const PartnerAccountOrderByRelevanceFieldEnum = {
|
||||
@@ -4314,13 +4401,14 @@ export type GlobalOmitConfig = {
|
||||
pos?: Prisma.PosOmit
|
||||
deviceBrand?: Prisma.DeviceBrandOmit
|
||||
device?: Prisma.DeviceOmit
|
||||
licenseChargeTransaction?: Prisma.LicenseChargeTransactionOmit
|
||||
license?: Prisma.LicenseOmit
|
||||
licenseActivation?: Prisma.LicenseActivationOmit
|
||||
licenseChargeTransaction?: Prisma.LicenseChargeTransactionOmit
|
||||
licenseRenew?: Prisma.LicenseRenewOmit
|
||||
licenseRenewChargeTransaction?: Prisma.LicenseRenewChargeTransactionOmit
|
||||
licenseRenew?: Prisma.LicenseRenewOmit
|
||||
partnerAccountQuotaChargeTransaction?: Prisma.PartnerAccountQuotaChargeTransactionOmit
|
||||
partnerAccountQuotaAllocation?: Prisma.PartnerAccountQuotaAllocationOmit
|
||||
partnerAccountQuotaCredit?: Prisma.PartnerAccountQuotaCreditOmit
|
||||
licenseAccountAllocation?: Prisma.LicenseAccountAllocationOmit
|
||||
partnerAccount?: Prisma.PartnerAccountOmit
|
||||
partner?: Prisma.PartnerOmit
|
||||
permissionConsumer?: Prisma.PermissionConsumerOmit
|
||||
|
||||
Reference in New Issue
Block a user