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:
@@ -67,6 +67,11 @@ export type DeviceBrand = Prisma.DeviceBrandModel
|
||||
*
|
||||
*/
|
||||
export type Device = Prisma.DeviceModel
|
||||
/**
|
||||
* Model LicenseChargeTransaction
|
||||
*
|
||||
*/
|
||||
export type LicenseChargeTransaction = Prisma.LicenseChargeTransactionModel
|
||||
/**
|
||||
* Model License
|
||||
*
|
||||
@@ -78,30 +83,30 @@ export type License = Prisma.LicenseModel
|
||||
*/
|
||||
export type LicenseActivation = Prisma.LicenseActivationModel
|
||||
/**
|
||||
* Model LicenseChargeTransaction
|
||||
* Model LicenseRenewChargeTransaction
|
||||
*
|
||||
*/
|
||||
export type LicenseChargeTransaction = Prisma.LicenseChargeTransactionModel
|
||||
export type LicenseRenewChargeTransaction = Prisma.LicenseRenewChargeTransactionModel
|
||||
/**
|
||||
* Model LicenseRenew
|
||||
*
|
||||
*/
|
||||
export type LicenseRenew = Prisma.LicenseRenewModel
|
||||
/**
|
||||
* Model LicenseRenewChargeTransaction
|
||||
*
|
||||
*/
|
||||
export type LicenseRenewChargeTransaction = Prisma.LicenseRenewChargeTransactionModel
|
||||
/**
|
||||
* Model PartnerAccountQuotaChargeTransaction
|
||||
*
|
||||
*/
|
||||
export type PartnerAccountQuotaChargeTransaction = Prisma.PartnerAccountQuotaChargeTransactionModel
|
||||
/**
|
||||
* Model PartnerAccountQuotaAllocation
|
||||
* Model PartnerAccountQuotaCredit
|
||||
*
|
||||
*/
|
||||
export type PartnerAccountQuotaAllocation = Prisma.PartnerAccountQuotaAllocationModel
|
||||
export type PartnerAccountQuotaCredit = Prisma.PartnerAccountQuotaCreditModel
|
||||
/**
|
||||
* Model LicenseAccountAllocation
|
||||
*
|
||||
*/
|
||||
export type LicenseAccountAllocation = Prisma.LicenseAccountAllocationModel
|
||||
/**
|
||||
* Model PartnerAccount
|
||||
*
|
||||
|
||||
@@ -89,6 +89,11 @@ export type DeviceBrand = Prisma.DeviceBrandModel
|
||||
*
|
||||
*/
|
||||
export type Device = Prisma.DeviceModel
|
||||
/**
|
||||
* Model LicenseChargeTransaction
|
||||
*
|
||||
*/
|
||||
export type LicenseChargeTransaction = Prisma.LicenseChargeTransactionModel
|
||||
/**
|
||||
* Model License
|
||||
*
|
||||
@@ -100,30 +105,30 @@ export type License = Prisma.LicenseModel
|
||||
*/
|
||||
export type LicenseActivation = Prisma.LicenseActivationModel
|
||||
/**
|
||||
* Model LicenseChargeTransaction
|
||||
* Model LicenseRenewChargeTransaction
|
||||
*
|
||||
*/
|
||||
export type LicenseChargeTransaction = Prisma.LicenseChargeTransactionModel
|
||||
export type LicenseRenewChargeTransaction = Prisma.LicenseRenewChargeTransactionModel
|
||||
/**
|
||||
* Model LicenseRenew
|
||||
*
|
||||
*/
|
||||
export type LicenseRenew = Prisma.LicenseRenewModel
|
||||
/**
|
||||
* Model LicenseRenewChargeTransaction
|
||||
*
|
||||
*/
|
||||
export type LicenseRenewChargeTransaction = Prisma.LicenseRenewChargeTransactionModel
|
||||
/**
|
||||
* Model PartnerAccountQuotaChargeTransaction
|
||||
*
|
||||
*/
|
||||
export type PartnerAccountQuotaChargeTransaction = Prisma.PartnerAccountQuotaChargeTransactionModel
|
||||
/**
|
||||
* Model PartnerAccountQuotaAllocation
|
||||
* Model PartnerAccountQuotaCredit
|
||||
*
|
||||
*/
|
||||
export type PartnerAccountQuotaAllocation = Prisma.PartnerAccountQuotaAllocationModel
|
||||
export type PartnerAccountQuotaCredit = Prisma.PartnerAccountQuotaCreditModel
|
||||
/**
|
||||
* Model LicenseAccountAllocation
|
||||
*
|
||||
*/
|
||||
export type LicenseAccountAllocation = Prisma.LicenseAccountAllocationModel
|
||||
/**
|
||||
* Model PartnerAccount
|
||||
*
|
||||
|
||||
File diff suppressed because one or more lines are too long
@@ -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
|
||||
|
||||
@@ -61,13 +61,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',
|
||||
@@ -236,6 +237,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',
|
||||
@@ -260,7 +274,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',
|
||||
@@ -270,7 +284,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 = {
|
||||
@@ -285,19 +299,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',
|
||||
@@ -311,15 +312,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 = {
|
||||
@@ -754,6 +766,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'
|
||||
@@ -771,13 +792,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 = {
|
||||
@@ -789,15 +810,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',
|
||||
@@ -807,13 +819,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 = {
|
||||
|
||||
@@ -18,13 +18,14 @@ export type * from './models/Complex.js'
|
||||
export type * from './models/Pos.js'
|
||||
export type * from './models/DeviceBrand.js'
|
||||
export type * from './models/Device.js'
|
||||
export type * from './models/LicenseChargeTransaction.js'
|
||||
export type * from './models/License.js'
|
||||
export type * from './models/LicenseActivation.js'
|
||||
export type * from './models/LicenseChargeTransaction.js'
|
||||
export type * from './models/LicenseRenew.js'
|
||||
export type * from './models/LicenseRenewChargeTransaction.js'
|
||||
export type * from './models/LicenseRenew.js'
|
||||
export type * from './models/PartnerAccountQuotaChargeTransaction.js'
|
||||
export type * from './models/PartnerAccountQuotaAllocation.js'
|
||||
export type * from './models/PartnerAccountQuotaCredit.js'
|
||||
export type * from './models/LicenseAccountAllocation.js'
|
||||
export type * from './models/PartnerAccount.js'
|
||||
export type * from './models/Partner.js'
|
||||
export type * from './models/PermissionConsumer.js'
|
||||
|
||||
@@ -194,6 +194,7 @@ export type ConsumerAccountWhereInput = {
|
||||
account?: Prisma.XOR<Prisma.AccountScalarRelationFilter, Prisma.AccountWhereInput>
|
||||
pos?: Prisma.XOR<Prisma.PosNullableScalarRelationFilter, Prisma.PosWhereInput> | null
|
||||
permission?: Prisma.XOR<Prisma.PermissionConsumerNullableScalarRelationFilter, Prisma.PermissionConsumerWhereInput> | null
|
||||
account_allocation?: Prisma.XOR<Prisma.LicenseAccountAllocationNullableScalarRelationFilter, Prisma.LicenseAccountAllocationWhereInput> | null
|
||||
sales_invoices?: Prisma.SalesInvoiceListRelationFilter
|
||||
}
|
||||
|
||||
@@ -208,6 +209,7 @@ export type ConsumerAccountOrderByWithRelationInput = {
|
||||
account?: Prisma.AccountOrderByWithRelationInput
|
||||
pos?: Prisma.PosOrderByWithRelationInput
|
||||
permission?: Prisma.PermissionConsumerOrderByWithRelationInput
|
||||
account_allocation?: Prisma.LicenseAccountAllocationOrderByWithRelationInput
|
||||
sales_invoices?: Prisma.SalesInvoiceOrderByRelationAggregateInput
|
||||
_relevance?: Prisma.ConsumerAccountOrderByRelevanceInput
|
||||
}
|
||||
@@ -226,6 +228,7 @@ export type ConsumerAccountWhereUniqueInput = Prisma.AtLeast<{
|
||||
account?: Prisma.XOR<Prisma.AccountScalarRelationFilter, Prisma.AccountWhereInput>
|
||||
pos?: Prisma.XOR<Prisma.PosNullableScalarRelationFilter, Prisma.PosWhereInput> | null
|
||||
permission?: Prisma.XOR<Prisma.PermissionConsumerNullableScalarRelationFilter, Prisma.PermissionConsumerWhereInput> | null
|
||||
account_allocation?: Prisma.XOR<Prisma.LicenseAccountAllocationNullableScalarRelationFilter, Prisma.LicenseAccountAllocationWhereInput> | null
|
||||
sales_invoices?: Prisma.SalesInvoiceListRelationFilter
|
||||
}, "id" | "account_id">
|
||||
|
||||
@@ -262,6 +265,7 @@ export type ConsumerAccountCreateInput = {
|
||||
account: Prisma.AccountCreateNestedOneWithoutConsumer_accountInput
|
||||
pos?: Prisma.PosCreateNestedOneWithoutAccountInput
|
||||
permission?: Prisma.PermissionConsumerCreateNestedOneWithoutConsumer_accountInput
|
||||
account_allocation?: Prisma.LicenseAccountAllocationCreateNestedOneWithoutAccountInput
|
||||
sales_invoices?: Prisma.SalesInvoiceCreateNestedManyWithoutConsumer_accountInput
|
||||
}
|
||||
|
||||
@@ -274,6 +278,7 @@ export type ConsumerAccountUncheckedCreateInput = {
|
||||
account_id: string
|
||||
pos?: Prisma.PosUncheckedCreateNestedOneWithoutAccountInput
|
||||
permission?: Prisma.PermissionConsumerUncheckedCreateNestedOneWithoutConsumer_accountInput
|
||||
account_allocation?: Prisma.LicenseAccountAllocationUncheckedCreateNestedOneWithoutAccountInput
|
||||
sales_invoices?: Prisma.SalesInvoiceUncheckedCreateNestedManyWithoutConsumer_accountInput
|
||||
}
|
||||
|
||||
@@ -286,6 +291,7 @@ export type ConsumerAccountUpdateInput = {
|
||||
account?: Prisma.AccountUpdateOneRequiredWithoutConsumer_accountNestedInput
|
||||
pos?: Prisma.PosUpdateOneWithoutAccountNestedInput
|
||||
permission?: Prisma.PermissionConsumerUpdateOneWithoutConsumer_accountNestedInput
|
||||
account_allocation?: Prisma.LicenseAccountAllocationUpdateOneWithoutAccountNestedInput
|
||||
sales_invoices?: Prisma.SalesInvoiceUpdateManyWithoutConsumer_accountNestedInput
|
||||
}
|
||||
|
||||
@@ -298,6 +304,7 @@ export type ConsumerAccountUncheckedUpdateInput = {
|
||||
account_id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
pos?: Prisma.PosUncheckedUpdateOneWithoutAccountNestedInput
|
||||
permission?: Prisma.PermissionConsumerUncheckedUpdateOneWithoutConsumer_accountNestedInput
|
||||
account_allocation?: Prisma.LicenseAccountAllocationUncheckedUpdateOneWithoutAccountNestedInput
|
||||
sales_invoices?: Prisma.SalesInvoiceUncheckedUpdateManyWithoutConsumer_accountNestedInput
|
||||
}
|
||||
|
||||
@@ -473,6 +480,22 @@ export type ConsumerAccountUpdateOneWithoutPosNestedInput = {
|
||||
update?: Prisma.XOR<Prisma.XOR<Prisma.ConsumerAccountUpdateToOneWithWhereWithoutPosInput, Prisma.ConsumerAccountUpdateWithoutPosInput>, Prisma.ConsumerAccountUncheckedUpdateWithoutPosInput>
|
||||
}
|
||||
|
||||
export type ConsumerAccountCreateNestedOneWithoutAccount_allocationInput = {
|
||||
create?: Prisma.XOR<Prisma.ConsumerAccountCreateWithoutAccount_allocationInput, Prisma.ConsumerAccountUncheckedCreateWithoutAccount_allocationInput>
|
||||
connectOrCreate?: Prisma.ConsumerAccountCreateOrConnectWithoutAccount_allocationInput
|
||||
connect?: Prisma.ConsumerAccountWhereUniqueInput
|
||||
}
|
||||
|
||||
export type ConsumerAccountUpdateOneWithoutAccount_allocationNestedInput = {
|
||||
create?: Prisma.XOR<Prisma.ConsumerAccountCreateWithoutAccount_allocationInput, Prisma.ConsumerAccountUncheckedCreateWithoutAccount_allocationInput>
|
||||
connectOrCreate?: Prisma.ConsumerAccountCreateOrConnectWithoutAccount_allocationInput
|
||||
upsert?: Prisma.ConsumerAccountUpsertWithoutAccount_allocationInput
|
||||
disconnect?: Prisma.ConsumerAccountWhereInput | boolean
|
||||
delete?: Prisma.ConsumerAccountWhereInput | boolean
|
||||
connect?: Prisma.ConsumerAccountWhereUniqueInput
|
||||
update?: Prisma.XOR<Prisma.XOR<Prisma.ConsumerAccountUpdateToOneWithWhereWithoutAccount_allocationInput, Prisma.ConsumerAccountUpdateWithoutAccount_allocationInput>, Prisma.ConsumerAccountUncheckedUpdateWithoutAccount_allocationInput>
|
||||
}
|
||||
|
||||
export type ConsumerAccountCreateNestedOneWithoutPermissionInput = {
|
||||
create?: Prisma.XOR<Prisma.ConsumerAccountCreateWithoutPermissionInput, Prisma.ConsumerAccountUncheckedCreateWithoutPermissionInput>
|
||||
connectOrCreate?: Prisma.ConsumerAccountCreateOrConnectWithoutPermissionInput
|
||||
@@ -509,6 +532,7 @@ export type ConsumerAccountCreateWithoutAccountInput = {
|
||||
consumer: Prisma.ConsumerCreateNestedOneWithoutConsumer_accountsInput
|
||||
pos?: Prisma.PosCreateNestedOneWithoutAccountInput
|
||||
permission?: Prisma.PermissionConsumerCreateNestedOneWithoutConsumer_accountInput
|
||||
account_allocation?: Prisma.LicenseAccountAllocationCreateNestedOneWithoutAccountInput
|
||||
sales_invoices?: Prisma.SalesInvoiceCreateNestedManyWithoutConsumer_accountInput
|
||||
}
|
||||
|
||||
@@ -520,6 +544,7 @@ export type ConsumerAccountUncheckedCreateWithoutAccountInput = {
|
||||
consumer_id: string
|
||||
pos?: Prisma.PosUncheckedCreateNestedOneWithoutAccountInput
|
||||
permission?: Prisma.PermissionConsumerUncheckedCreateNestedOneWithoutConsumer_accountInput
|
||||
account_allocation?: Prisma.LicenseAccountAllocationUncheckedCreateNestedOneWithoutAccountInput
|
||||
sales_invoices?: Prisma.SalesInvoiceUncheckedCreateNestedManyWithoutConsumer_accountInput
|
||||
}
|
||||
|
||||
@@ -547,6 +572,7 @@ export type ConsumerAccountUpdateWithoutAccountInput = {
|
||||
consumer?: Prisma.ConsumerUpdateOneRequiredWithoutConsumer_accountsNestedInput
|
||||
pos?: Prisma.PosUpdateOneWithoutAccountNestedInput
|
||||
permission?: Prisma.PermissionConsumerUpdateOneWithoutConsumer_accountNestedInput
|
||||
account_allocation?: Prisma.LicenseAccountAllocationUpdateOneWithoutAccountNestedInput
|
||||
sales_invoices?: Prisma.SalesInvoiceUpdateManyWithoutConsumer_accountNestedInput
|
||||
}
|
||||
|
||||
@@ -558,6 +584,7 @@ export type ConsumerAccountUncheckedUpdateWithoutAccountInput = {
|
||||
consumer_id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
pos?: Prisma.PosUncheckedUpdateOneWithoutAccountNestedInput
|
||||
permission?: Prisma.PermissionConsumerUncheckedUpdateOneWithoutConsumer_accountNestedInput
|
||||
account_allocation?: Prisma.LicenseAccountAllocationUncheckedUpdateOneWithoutAccountNestedInput
|
||||
sales_invoices?: Prisma.SalesInvoiceUncheckedUpdateManyWithoutConsumer_accountNestedInput
|
||||
}
|
||||
|
||||
@@ -569,6 +596,7 @@ export type ConsumerAccountCreateWithoutConsumerInput = {
|
||||
account: Prisma.AccountCreateNestedOneWithoutConsumer_accountInput
|
||||
pos?: Prisma.PosCreateNestedOneWithoutAccountInput
|
||||
permission?: Prisma.PermissionConsumerCreateNestedOneWithoutConsumer_accountInput
|
||||
account_allocation?: Prisma.LicenseAccountAllocationCreateNestedOneWithoutAccountInput
|
||||
sales_invoices?: Prisma.SalesInvoiceCreateNestedManyWithoutConsumer_accountInput
|
||||
}
|
||||
|
||||
@@ -580,6 +608,7 @@ export type ConsumerAccountUncheckedCreateWithoutConsumerInput = {
|
||||
account_id: string
|
||||
pos?: Prisma.PosUncheckedCreateNestedOneWithoutAccountInput
|
||||
permission?: Prisma.PermissionConsumerUncheckedCreateNestedOneWithoutConsumer_accountInput
|
||||
account_allocation?: Prisma.LicenseAccountAllocationUncheckedCreateNestedOneWithoutAccountInput
|
||||
sales_invoices?: Prisma.SalesInvoiceUncheckedCreateNestedManyWithoutConsumer_accountInput
|
||||
}
|
||||
|
||||
@@ -629,6 +658,7 @@ export type ConsumerAccountCreateWithoutPosInput = {
|
||||
consumer: Prisma.ConsumerCreateNestedOneWithoutConsumer_accountsInput
|
||||
account: Prisma.AccountCreateNestedOneWithoutConsumer_accountInput
|
||||
permission?: Prisma.PermissionConsumerCreateNestedOneWithoutConsumer_accountInput
|
||||
account_allocation?: Prisma.LicenseAccountAllocationCreateNestedOneWithoutAccountInput
|
||||
sales_invoices?: Prisma.SalesInvoiceCreateNestedManyWithoutConsumer_accountInput
|
||||
}
|
||||
|
||||
@@ -640,6 +670,7 @@ export type ConsumerAccountUncheckedCreateWithoutPosInput = {
|
||||
consumer_id: string
|
||||
account_id: string
|
||||
permission?: Prisma.PermissionConsumerUncheckedCreateNestedOneWithoutConsumer_accountInput
|
||||
account_allocation?: Prisma.LicenseAccountAllocationUncheckedCreateNestedOneWithoutAccountInput
|
||||
sales_invoices?: Prisma.SalesInvoiceUncheckedCreateNestedManyWithoutConsumer_accountInput
|
||||
}
|
||||
|
||||
@@ -667,6 +698,7 @@ export type ConsumerAccountUpdateWithoutPosInput = {
|
||||
consumer?: Prisma.ConsumerUpdateOneRequiredWithoutConsumer_accountsNestedInput
|
||||
account?: Prisma.AccountUpdateOneRequiredWithoutConsumer_accountNestedInput
|
||||
permission?: Prisma.PermissionConsumerUpdateOneWithoutConsumer_accountNestedInput
|
||||
account_allocation?: Prisma.LicenseAccountAllocationUpdateOneWithoutAccountNestedInput
|
||||
sales_invoices?: Prisma.SalesInvoiceUpdateManyWithoutConsumer_accountNestedInput
|
||||
}
|
||||
|
||||
@@ -678,6 +710,71 @@ export type ConsumerAccountUncheckedUpdateWithoutPosInput = {
|
||||
consumer_id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
account_id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
permission?: Prisma.PermissionConsumerUncheckedUpdateOneWithoutConsumer_accountNestedInput
|
||||
account_allocation?: Prisma.LicenseAccountAllocationUncheckedUpdateOneWithoutAccountNestedInput
|
||||
sales_invoices?: Prisma.SalesInvoiceUncheckedUpdateManyWithoutConsumer_accountNestedInput
|
||||
}
|
||||
|
||||
export type ConsumerAccountCreateWithoutAccount_allocationInput = {
|
||||
id?: string
|
||||
role: $Enums.ConsumerRole
|
||||
created_at?: Date | string
|
||||
updated_at?: Date | string
|
||||
consumer: Prisma.ConsumerCreateNestedOneWithoutConsumer_accountsInput
|
||||
account: Prisma.AccountCreateNestedOneWithoutConsumer_accountInput
|
||||
pos?: Prisma.PosCreateNestedOneWithoutAccountInput
|
||||
permission?: Prisma.PermissionConsumerCreateNestedOneWithoutConsumer_accountInput
|
||||
sales_invoices?: Prisma.SalesInvoiceCreateNestedManyWithoutConsumer_accountInput
|
||||
}
|
||||
|
||||
export type ConsumerAccountUncheckedCreateWithoutAccount_allocationInput = {
|
||||
id?: string
|
||||
role: $Enums.ConsumerRole
|
||||
created_at?: Date | string
|
||||
updated_at?: Date | string
|
||||
consumer_id: string
|
||||
account_id: string
|
||||
pos?: Prisma.PosUncheckedCreateNestedOneWithoutAccountInput
|
||||
permission?: Prisma.PermissionConsumerUncheckedCreateNestedOneWithoutConsumer_accountInput
|
||||
sales_invoices?: Prisma.SalesInvoiceUncheckedCreateNestedManyWithoutConsumer_accountInput
|
||||
}
|
||||
|
||||
export type ConsumerAccountCreateOrConnectWithoutAccount_allocationInput = {
|
||||
where: Prisma.ConsumerAccountWhereUniqueInput
|
||||
create: Prisma.XOR<Prisma.ConsumerAccountCreateWithoutAccount_allocationInput, Prisma.ConsumerAccountUncheckedCreateWithoutAccount_allocationInput>
|
||||
}
|
||||
|
||||
export type ConsumerAccountUpsertWithoutAccount_allocationInput = {
|
||||
update: Prisma.XOR<Prisma.ConsumerAccountUpdateWithoutAccount_allocationInput, Prisma.ConsumerAccountUncheckedUpdateWithoutAccount_allocationInput>
|
||||
create: Prisma.XOR<Prisma.ConsumerAccountCreateWithoutAccount_allocationInput, Prisma.ConsumerAccountUncheckedCreateWithoutAccount_allocationInput>
|
||||
where?: Prisma.ConsumerAccountWhereInput
|
||||
}
|
||||
|
||||
export type ConsumerAccountUpdateToOneWithWhereWithoutAccount_allocationInput = {
|
||||
where?: Prisma.ConsumerAccountWhereInput
|
||||
data: Prisma.XOR<Prisma.ConsumerAccountUpdateWithoutAccount_allocationInput, Prisma.ConsumerAccountUncheckedUpdateWithoutAccount_allocationInput>
|
||||
}
|
||||
|
||||
export type ConsumerAccountUpdateWithoutAccount_allocationInput = {
|
||||
id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
role?: Prisma.EnumConsumerRoleFieldUpdateOperationsInput | $Enums.ConsumerRole
|
||||
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
consumer?: Prisma.ConsumerUpdateOneRequiredWithoutConsumer_accountsNestedInput
|
||||
account?: Prisma.AccountUpdateOneRequiredWithoutConsumer_accountNestedInput
|
||||
pos?: Prisma.PosUpdateOneWithoutAccountNestedInput
|
||||
permission?: Prisma.PermissionConsumerUpdateOneWithoutConsumer_accountNestedInput
|
||||
sales_invoices?: Prisma.SalesInvoiceUpdateManyWithoutConsumer_accountNestedInput
|
||||
}
|
||||
|
||||
export type ConsumerAccountUncheckedUpdateWithoutAccount_allocationInput = {
|
||||
id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
role?: Prisma.EnumConsumerRoleFieldUpdateOperationsInput | $Enums.ConsumerRole
|
||||
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
consumer_id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
account_id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
pos?: Prisma.PosUncheckedUpdateOneWithoutAccountNestedInput
|
||||
permission?: Prisma.PermissionConsumerUncheckedUpdateOneWithoutConsumer_accountNestedInput
|
||||
sales_invoices?: Prisma.SalesInvoiceUncheckedUpdateManyWithoutConsumer_accountNestedInput
|
||||
}
|
||||
|
||||
@@ -689,6 +786,7 @@ export type ConsumerAccountCreateWithoutPermissionInput = {
|
||||
consumer: Prisma.ConsumerCreateNestedOneWithoutConsumer_accountsInput
|
||||
account: Prisma.AccountCreateNestedOneWithoutConsumer_accountInput
|
||||
pos?: Prisma.PosCreateNestedOneWithoutAccountInput
|
||||
account_allocation?: Prisma.LicenseAccountAllocationCreateNestedOneWithoutAccountInput
|
||||
sales_invoices?: Prisma.SalesInvoiceCreateNestedManyWithoutConsumer_accountInput
|
||||
}
|
||||
|
||||
@@ -700,6 +798,7 @@ export type ConsumerAccountUncheckedCreateWithoutPermissionInput = {
|
||||
consumer_id: string
|
||||
account_id: string
|
||||
pos?: Prisma.PosUncheckedCreateNestedOneWithoutAccountInput
|
||||
account_allocation?: Prisma.LicenseAccountAllocationUncheckedCreateNestedOneWithoutAccountInput
|
||||
sales_invoices?: Prisma.SalesInvoiceUncheckedCreateNestedManyWithoutConsumer_accountInput
|
||||
}
|
||||
|
||||
@@ -727,6 +826,7 @@ export type ConsumerAccountUpdateWithoutPermissionInput = {
|
||||
consumer?: Prisma.ConsumerUpdateOneRequiredWithoutConsumer_accountsNestedInput
|
||||
account?: Prisma.AccountUpdateOneRequiredWithoutConsumer_accountNestedInput
|
||||
pos?: Prisma.PosUpdateOneWithoutAccountNestedInput
|
||||
account_allocation?: Prisma.LicenseAccountAllocationUpdateOneWithoutAccountNestedInput
|
||||
sales_invoices?: Prisma.SalesInvoiceUpdateManyWithoutConsumer_accountNestedInput
|
||||
}
|
||||
|
||||
@@ -738,6 +838,7 @@ export type ConsumerAccountUncheckedUpdateWithoutPermissionInput = {
|
||||
consumer_id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
account_id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
pos?: Prisma.PosUncheckedUpdateOneWithoutAccountNestedInput
|
||||
account_allocation?: Prisma.LicenseAccountAllocationUncheckedUpdateOneWithoutAccountNestedInput
|
||||
sales_invoices?: Prisma.SalesInvoiceUncheckedUpdateManyWithoutConsumer_accountNestedInput
|
||||
}
|
||||
|
||||
@@ -750,6 +851,7 @@ export type ConsumerAccountCreateWithoutSales_invoicesInput = {
|
||||
account: Prisma.AccountCreateNestedOneWithoutConsumer_accountInput
|
||||
pos?: Prisma.PosCreateNestedOneWithoutAccountInput
|
||||
permission?: Prisma.PermissionConsumerCreateNestedOneWithoutConsumer_accountInput
|
||||
account_allocation?: Prisma.LicenseAccountAllocationCreateNestedOneWithoutAccountInput
|
||||
}
|
||||
|
||||
export type ConsumerAccountUncheckedCreateWithoutSales_invoicesInput = {
|
||||
@@ -761,6 +863,7 @@ export type ConsumerAccountUncheckedCreateWithoutSales_invoicesInput = {
|
||||
account_id: string
|
||||
pos?: Prisma.PosUncheckedCreateNestedOneWithoutAccountInput
|
||||
permission?: Prisma.PermissionConsumerUncheckedCreateNestedOneWithoutConsumer_accountInput
|
||||
account_allocation?: Prisma.LicenseAccountAllocationUncheckedCreateNestedOneWithoutAccountInput
|
||||
}
|
||||
|
||||
export type ConsumerAccountCreateOrConnectWithoutSales_invoicesInput = {
|
||||
@@ -788,6 +891,7 @@ export type ConsumerAccountUpdateWithoutSales_invoicesInput = {
|
||||
account?: Prisma.AccountUpdateOneRequiredWithoutConsumer_accountNestedInput
|
||||
pos?: Prisma.PosUpdateOneWithoutAccountNestedInput
|
||||
permission?: Prisma.PermissionConsumerUpdateOneWithoutConsumer_accountNestedInput
|
||||
account_allocation?: Prisma.LicenseAccountAllocationUpdateOneWithoutAccountNestedInput
|
||||
}
|
||||
|
||||
export type ConsumerAccountUncheckedUpdateWithoutSales_invoicesInput = {
|
||||
@@ -799,6 +903,7 @@ export type ConsumerAccountUncheckedUpdateWithoutSales_invoicesInput = {
|
||||
account_id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
pos?: Prisma.PosUncheckedUpdateOneWithoutAccountNestedInput
|
||||
permission?: Prisma.PermissionConsumerUncheckedUpdateOneWithoutConsumer_accountNestedInput
|
||||
account_allocation?: Prisma.LicenseAccountAllocationUncheckedUpdateOneWithoutAccountNestedInput
|
||||
}
|
||||
|
||||
export type ConsumerAccountCreateManyConsumerInput = {
|
||||
@@ -817,6 +922,7 @@ export type ConsumerAccountUpdateWithoutConsumerInput = {
|
||||
account?: Prisma.AccountUpdateOneRequiredWithoutConsumer_accountNestedInput
|
||||
pos?: Prisma.PosUpdateOneWithoutAccountNestedInput
|
||||
permission?: Prisma.PermissionConsumerUpdateOneWithoutConsumer_accountNestedInput
|
||||
account_allocation?: Prisma.LicenseAccountAllocationUpdateOneWithoutAccountNestedInput
|
||||
sales_invoices?: Prisma.SalesInvoiceUpdateManyWithoutConsumer_accountNestedInput
|
||||
}
|
||||
|
||||
@@ -828,6 +934,7 @@ export type ConsumerAccountUncheckedUpdateWithoutConsumerInput = {
|
||||
account_id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
pos?: Prisma.PosUncheckedUpdateOneWithoutAccountNestedInput
|
||||
permission?: Prisma.PermissionConsumerUncheckedUpdateOneWithoutConsumer_accountNestedInput
|
||||
account_allocation?: Prisma.LicenseAccountAllocationUncheckedUpdateOneWithoutAccountNestedInput
|
||||
sales_invoices?: Prisma.SalesInvoiceUncheckedUpdateManyWithoutConsumer_accountNestedInput
|
||||
}
|
||||
|
||||
@@ -881,6 +988,7 @@ export type ConsumerAccountSelect<ExtArgs extends runtime.Types.Extensions.Inter
|
||||
account?: boolean | Prisma.AccountDefaultArgs<ExtArgs>
|
||||
pos?: boolean | Prisma.ConsumerAccount$posArgs<ExtArgs>
|
||||
permission?: boolean | Prisma.ConsumerAccount$permissionArgs<ExtArgs>
|
||||
account_allocation?: boolean | Prisma.ConsumerAccount$account_allocationArgs<ExtArgs>
|
||||
sales_invoices?: boolean | Prisma.ConsumerAccount$sales_invoicesArgs<ExtArgs>
|
||||
_count?: boolean | Prisma.ConsumerAccountCountOutputTypeDefaultArgs<ExtArgs>
|
||||
}, ExtArgs["result"]["consumerAccount"]>
|
||||
@@ -902,6 +1010,7 @@ export type ConsumerAccountInclude<ExtArgs extends runtime.Types.Extensions.Inte
|
||||
account?: boolean | Prisma.AccountDefaultArgs<ExtArgs>
|
||||
pos?: boolean | Prisma.ConsumerAccount$posArgs<ExtArgs>
|
||||
permission?: boolean | Prisma.ConsumerAccount$permissionArgs<ExtArgs>
|
||||
account_allocation?: boolean | Prisma.ConsumerAccount$account_allocationArgs<ExtArgs>
|
||||
sales_invoices?: boolean | Prisma.ConsumerAccount$sales_invoicesArgs<ExtArgs>
|
||||
_count?: boolean | Prisma.ConsumerAccountCountOutputTypeDefaultArgs<ExtArgs>
|
||||
}
|
||||
@@ -913,6 +1022,7 @@ export type $ConsumerAccountPayload<ExtArgs extends runtime.Types.Extensions.Int
|
||||
account: Prisma.$AccountPayload<ExtArgs>
|
||||
pos: Prisma.$PosPayload<ExtArgs> | null
|
||||
permission: Prisma.$PermissionConsumerPayload<ExtArgs> | null
|
||||
account_allocation: Prisma.$LicenseAccountAllocationPayload<ExtArgs> | null
|
||||
sales_invoices: Prisma.$SalesInvoicePayload<ExtArgs>[]
|
||||
}
|
||||
scalars: runtime.Types.Extensions.GetPayloadResult<{
|
||||
@@ -1266,6 +1376,7 @@ export interface Prisma__ConsumerAccountClient<T, Null = never, ExtArgs extends
|
||||
account<T extends Prisma.AccountDefaultArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.AccountDefaultArgs<ExtArgs>>): Prisma.Prisma__AccountClient<runtime.Types.Result.GetResult<Prisma.$AccountPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>
|
||||
pos<T extends Prisma.ConsumerAccount$posArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.ConsumerAccount$posArgs<ExtArgs>>): Prisma.Prisma__PosClient<runtime.Types.Result.GetResult<Prisma.$PosPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
|
||||
permission<T extends Prisma.ConsumerAccount$permissionArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.ConsumerAccount$permissionArgs<ExtArgs>>): Prisma.Prisma__PermissionConsumerClient<runtime.Types.Result.GetResult<Prisma.$PermissionConsumerPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
|
||||
account_allocation<T extends Prisma.ConsumerAccount$account_allocationArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.ConsumerAccount$account_allocationArgs<ExtArgs>>): Prisma.Prisma__LicenseAccountAllocationClient<runtime.Types.Result.GetResult<Prisma.$LicenseAccountAllocationPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
|
||||
sales_invoices<T extends Prisma.ConsumerAccount$sales_invoicesArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.ConsumerAccount$sales_invoicesArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$SalesInvoicePayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
|
||||
/**
|
||||
* Attaches callbacks for the resolution and/or rejection of the Promise.
|
||||
@@ -1687,6 +1798,25 @@ export type ConsumerAccount$permissionArgs<ExtArgs extends runtime.Types.Extensi
|
||||
where?: Prisma.PermissionConsumerWhereInput
|
||||
}
|
||||
|
||||
/**
|
||||
* ConsumerAccount.account_allocation
|
||||
*/
|
||||
export type ConsumerAccount$account_allocationArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
||||
/**
|
||||
* Select specific fields to fetch from the LicenseAccountAllocation
|
||||
*/
|
||||
select?: Prisma.LicenseAccountAllocationSelect<ExtArgs> | null
|
||||
/**
|
||||
* Omit specific fields from the LicenseAccountAllocation
|
||||
*/
|
||||
omit?: Prisma.LicenseAccountAllocationOmit<ExtArgs> | null
|
||||
/**
|
||||
* Choose, which related nodes to fetch as well
|
||||
*/
|
||||
include?: Prisma.LicenseAccountAllocationInclude<ExtArgs> | null
|
||||
where?: Prisma.LicenseAccountAllocationWhereInput
|
||||
}
|
||||
|
||||
/**
|
||||
* ConsumerAccount.sales_invoices
|
||||
*/
|
||||
|
||||
@@ -218,7 +218,6 @@ export type LicenseWhereInput = {
|
||||
charge_transaction_id?: Prisma.StringFilter<"License"> | string
|
||||
charge_transaction?: Prisma.XOR<Prisma.LicenseChargeTransactionScalarRelationFilter, Prisma.LicenseChargeTransactionWhereInput>
|
||||
activation?: Prisma.XOR<Prisma.LicenseActivationNullableScalarRelationFilter, Prisma.LicenseActivationWhereInput> | null
|
||||
account_allocations?: Prisma.PartnerAccountQuotaAllocationListRelationFilter
|
||||
}
|
||||
|
||||
export type LicenseOrderByWithRelationInput = {
|
||||
@@ -229,7 +228,6 @@ export type LicenseOrderByWithRelationInput = {
|
||||
charge_transaction_id?: Prisma.SortOrder
|
||||
charge_transaction?: Prisma.LicenseChargeTransactionOrderByWithRelationInput
|
||||
activation?: Prisma.LicenseActivationOrderByWithRelationInput
|
||||
account_allocations?: Prisma.PartnerAccountQuotaAllocationOrderByRelationAggregateInput
|
||||
_relevance?: Prisma.LicenseOrderByRelevanceInput
|
||||
}
|
||||
|
||||
@@ -244,7 +242,6 @@ export type LicenseWhereUniqueInput = Prisma.AtLeast<{
|
||||
charge_transaction_id?: Prisma.StringFilter<"License"> | string
|
||||
charge_transaction?: Prisma.XOR<Prisma.LicenseChargeTransactionScalarRelationFilter, Prisma.LicenseChargeTransactionWhereInput>
|
||||
activation?: Prisma.XOR<Prisma.LicenseActivationNullableScalarRelationFilter, Prisma.LicenseActivationWhereInput> | null
|
||||
account_allocations?: Prisma.PartnerAccountQuotaAllocationListRelationFilter
|
||||
}, "id">
|
||||
|
||||
export type LicenseOrderByWithAggregationInput = {
|
||||
@@ -278,7 +275,6 @@ export type LicenseCreateInput = {
|
||||
updated_at?: Date | string
|
||||
charge_transaction: Prisma.LicenseChargeTransactionCreateNestedOneWithoutLicensesInput
|
||||
activation?: Prisma.LicenseActivationCreateNestedOneWithoutLicenseInput
|
||||
account_allocations?: Prisma.PartnerAccountQuotaAllocationCreateNestedManyWithoutLicenseInput
|
||||
}
|
||||
|
||||
export type LicenseUncheckedCreateInput = {
|
||||
@@ -288,7 +284,6 @@ export type LicenseUncheckedCreateInput = {
|
||||
updated_at?: Date | string
|
||||
charge_transaction_id: string
|
||||
activation?: Prisma.LicenseActivationUncheckedCreateNestedOneWithoutLicenseInput
|
||||
account_allocations?: Prisma.PartnerAccountQuotaAllocationUncheckedCreateNestedManyWithoutLicenseInput
|
||||
}
|
||||
|
||||
export type LicenseUpdateInput = {
|
||||
@@ -298,7 +293,6 @@ export type LicenseUpdateInput = {
|
||||
updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
charge_transaction?: Prisma.LicenseChargeTransactionUpdateOneRequiredWithoutLicensesNestedInput
|
||||
activation?: Prisma.LicenseActivationUpdateOneWithoutLicenseNestedInput
|
||||
account_allocations?: Prisma.PartnerAccountQuotaAllocationUpdateManyWithoutLicenseNestedInput
|
||||
}
|
||||
|
||||
export type LicenseUncheckedUpdateInput = {
|
||||
@@ -308,7 +302,6 @@ export type LicenseUncheckedUpdateInput = {
|
||||
updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
charge_transaction_id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
activation?: Prisma.LicenseActivationUncheckedUpdateOneWithoutLicenseNestedInput
|
||||
account_allocations?: Prisma.PartnerAccountQuotaAllocationUncheckedUpdateManyWithoutLicenseNestedInput
|
||||
}
|
||||
|
||||
export type LicenseCreateManyInput = {
|
||||
@@ -334,6 +327,16 @@ export type LicenseUncheckedUpdateManyInput = {
|
||||
charge_transaction_id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
}
|
||||
|
||||
export type LicenseListRelationFilter = {
|
||||
every?: Prisma.LicenseWhereInput
|
||||
some?: Prisma.LicenseWhereInput
|
||||
none?: Prisma.LicenseWhereInput
|
||||
}
|
||||
|
||||
export type LicenseOrderByRelationAggregateInput = {
|
||||
_count?: Prisma.SortOrder
|
||||
}
|
||||
|
||||
export type LicenseOrderByRelevanceInput = {
|
||||
fields: Prisma.LicenseOrderByRelevanceFieldEnum | Prisma.LicenseOrderByRelevanceFieldEnum[]
|
||||
sort: Prisma.SortOrder
|
||||
@@ -377,43 +380,6 @@ export type LicenseScalarRelationFilter = {
|
||||
isNot?: Prisma.LicenseWhereInput
|
||||
}
|
||||
|
||||
export type LicenseListRelationFilter = {
|
||||
every?: Prisma.LicenseWhereInput
|
||||
some?: Prisma.LicenseWhereInput
|
||||
none?: Prisma.LicenseWhereInput
|
||||
}
|
||||
|
||||
export type LicenseOrderByRelationAggregateInput = {
|
||||
_count?: Prisma.SortOrder
|
||||
}
|
||||
|
||||
export type LicenseNullableScalarRelationFilter = {
|
||||
is?: Prisma.LicenseWhereInput | null
|
||||
isNot?: Prisma.LicenseWhereInput | null
|
||||
}
|
||||
|
||||
export type IntFieldUpdateOperationsInput = {
|
||||
set?: number
|
||||
increment?: number
|
||||
decrement?: number
|
||||
multiply?: number
|
||||
divide?: number
|
||||
}
|
||||
|
||||
export type LicenseCreateNestedOneWithoutActivationInput = {
|
||||
create?: Prisma.XOR<Prisma.LicenseCreateWithoutActivationInput, Prisma.LicenseUncheckedCreateWithoutActivationInput>
|
||||
connectOrCreate?: Prisma.LicenseCreateOrConnectWithoutActivationInput
|
||||
connect?: Prisma.LicenseWhereUniqueInput
|
||||
}
|
||||
|
||||
export type LicenseUpdateOneRequiredWithoutActivationNestedInput = {
|
||||
create?: Prisma.XOR<Prisma.LicenseCreateWithoutActivationInput, Prisma.LicenseUncheckedCreateWithoutActivationInput>
|
||||
connectOrCreate?: Prisma.LicenseCreateOrConnectWithoutActivationInput
|
||||
upsert?: Prisma.LicenseUpsertWithoutActivationInput
|
||||
connect?: Prisma.LicenseWhereUniqueInput
|
||||
update?: Prisma.XOR<Prisma.XOR<Prisma.LicenseUpdateToOneWithWhereWithoutActivationInput, Prisma.LicenseUpdateWithoutActivationInput>, Prisma.LicenseUncheckedUpdateWithoutActivationInput>
|
||||
}
|
||||
|
||||
export type LicenseCreateNestedManyWithoutCharge_transactionInput = {
|
||||
create?: Prisma.XOR<Prisma.LicenseCreateWithoutCharge_transactionInput, Prisma.LicenseUncheckedCreateWithoutCharge_transactionInput> | Prisma.LicenseCreateWithoutCharge_transactionInput[] | Prisma.LicenseUncheckedCreateWithoutCharge_transactionInput[]
|
||||
connectOrCreate?: Prisma.LicenseCreateOrConnectWithoutCharge_transactionInput | Prisma.LicenseCreateOrConnectWithoutCharge_transactionInput[]
|
||||
@@ -456,72 +422,18 @@ export type LicenseUncheckedUpdateManyWithoutCharge_transactionNestedInput = {
|
||||
deleteMany?: Prisma.LicenseScalarWhereInput | Prisma.LicenseScalarWhereInput[]
|
||||
}
|
||||
|
||||
export type LicenseCreateNestedOneWithoutAccount_allocationsInput = {
|
||||
create?: Prisma.XOR<Prisma.LicenseCreateWithoutAccount_allocationsInput, Prisma.LicenseUncheckedCreateWithoutAccount_allocationsInput>
|
||||
connectOrCreate?: Prisma.LicenseCreateOrConnectWithoutAccount_allocationsInput
|
||||
export type LicenseCreateNestedOneWithoutActivationInput = {
|
||||
create?: Prisma.XOR<Prisma.LicenseCreateWithoutActivationInput, Prisma.LicenseUncheckedCreateWithoutActivationInput>
|
||||
connectOrCreate?: Prisma.LicenseCreateOrConnectWithoutActivationInput
|
||||
connect?: Prisma.LicenseWhereUniqueInput
|
||||
}
|
||||
|
||||
export type LicenseUpdateOneWithoutAccount_allocationsNestedInput = {
|
||||
create?: Prisma.XOR<Prisma.LicenseCreateWithoutAccount_allocationsInput, Prisma.LicenseUncheckedCreateWithoutAccount_allocationsInput>
|
||||
connectOrCreate?: Prisma.LicenseCreateOrConnectWithoutAccount_allocationsInput
|
||||
upsert?: Prisma.LicenseUpsertWithoutAccount_allocationsInput
|
||||
disconnect?: Prisma.LicenseWhereInput | boolean
|
||||
delete?: Prisma.LicenseWhereInput | boolean
|
||||
export type LicenseUpdateOneRequiredWithoutActivationNestedInput = {
|
||||
create?: Prisma.XOR<Prisma.LicenseCreateWithoutActivationInput, Prisma.LicenseUncheckedCreateWithoutActivationInput>
|
||||
connectOrCreate?: Prisma.LicenseCreateOrConnectWithoutActivationInput
|
||||
upsert?: Prisma.LicenseUpsertWithoutActivationInput
|
||||
connect?: Prisma.LicenseWhereUniqueInput
|
||||
update?: Prisma.XOR<Prisma.XOR<Prisma.LicenseUpdateToOneWithWhereWithoutAccount_allocationsInput, Prisma.LicenseUpdateWithoutAccount_allocationsInput>, Prisma.LicenseUncheckedUpdateWithoutAccount_allocationsInput>
|
||||
}
|
||||
|
||||
export type LicenseCreateWithoutActivationInput = {
|
||||
id?: string
|
||||
accounts_limit?: number
|
||||
created_at?: Date | string
|
||||
updated_at?: Date | string
|
||||
charge_transaction: Prisma.LicenseChargeTransactionCreateNestedOneWithoutLicensesInput
|
||||
account_allocations?: Prisma.PartnerAccountQuotaAllocationCreateNestedManyWithoutLicenseInput
|
||||
}
|
||||
|
||||
export type LicenseUncheckedCreateWithoutActivationInput = {
|
||||
id?: string
|
||||
accounts_limit?: number
|
||||
created_at?: Date | string
|
||||
updated_at?: Date | string
|
||||
charge_transaction_id: string
|
||||
account_allocations?: Prisma.PartnerAccountQuotaAllocationUncheckedCreateNestedManyWithoutLicenseInput
|
||||
}
|
||||
|
||||
export type LicenseCreateOrConnectWithoutActivationInput = {
|
||||
where: Prisma.LicenseWhereUniqueInput
|
||||
create: Prisma.XOR<Prisma.LicenseCreateWithoutActivationInput, Prisma.LicenseUncheckedCreateWithoutActivationInput>
|
||||
}
|
||||
|
||||
export type LicenseUpsertWithoutActivationInput = {
|
||||
update: Prisma.XOR<Prisma.LicenseUpdateWithoutActivationInput, Prisma.LicenseUncheckedUpdateWithoutActivationInput>
|
||||
create: Prisma.XOR<Prisma.LicenseCreateWithoutActivationInput, Prisma.LicenseUncheckedCreateWithoutActivationInput>
|
||||
where?: Prisma.LicenseWhereInput
|
||||
}
|
||||
|
||||
export type LicenseUpdateToOneWithWhereWithoutActivationInput = {
|
||||
where?: Prisma.LicenseWhereInput
|
||||
data: Prisma.XOR<Prisma.LicenseUpdateWithoutActivationInput, Prisma.LicenseUncheckedUpdateWithoutActivationInput>
|
||||
}
|
||||
|
||||
export type LicenseUpdateWithoutActivationInput = {
|
||||
id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
accounts_limit?: Prisma.IntFieldUpdateOperationsInput | number
|
||||
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
charge_transaction?: Prisma.LicenseChargeTransactionUpdateOneRequiredWithoutLicensesNestedInput
|
||||
account_allocations?: Prisma.PartnerAccountQuotaAllocationUpdateManyWithoutLicenseNestedInput
|
||||
}
|
||||
|
||||
export type LicenseUncheckedUpdateWithoutActivationInput = {
|
||||
id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
accounts_limit?: Prisma.IntFieldUpdateOperationsInput | number
|
||||
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
charge_transaction_id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
account_allocations?: Prisma.PartnerAccountQuotaAllocationUncheckedUpdateManyWithoutLicenseNestedInput
|
||||
update?: Prisma.XOR<Prisma.XOR<Prisma.LicenseUpdateToOneWithWhereWithoutActivationInput, Prisma.LicenseUpdateWithoutActivationInput>, Prisma.LicenseUncheckedUpdateWithoutActivationInput>
|
||||
}
|
||||
|
||||
export type LicenseCreateWithoutCharge_transactionInput = {
|
||||
@@ -530,7 +442,6 @@ export type LicenseCreateWithoutCharge_transactionInput = {
|
||||
created_at?: Date | string
|
||||
updated_at?: Date | string
|
||||
activation?: Prisma.LicenseActivationCreateNestedOneWithoutLicenseInput
|
||||
account_allocations?: Prisma.PartnerAccountQuotaAllocationCreateNestedManyWithoutLicenseInput
|
||||
}
|
||||
|
||||
export type LicenseUncheckedCreateWithoutCharge_transactionInput = {
|
||||
@@ -539,7 +450,6 @@ export type LicenseUncheckedCreateWithoutCharge_transactionInput = {
|
||||
created_at?: Date | string
|
||||
updated_at?: Date | string
|
||||
activation?: Prisma.LicenseActivationUncheckedCreateNestedOneWithoutLicenseInput
|
||||
account_allocations?: Prisma.PartnerAccountQuotaAllocationUncheckedCreateNestedManyWithoutLicenseInput
|
||||
}
|
||||
|
||||
export type LicenseCreateOrConnectWithoutCharge_transactionInput = {
|
||||
@@ -579,56 +489,52 @@ export type LicenseScalarWhereInput = {
|
||||
charge_transaction_id?: Prisma.StringFilter<"License"> | string
|
||||
}
|
||||
|
||||
export type LicenseCreateWithoutAccount_allocationsInput = {
|
||||
export type LicenseCreateWithoutActivationInput = {
|
||||
id?: string
|
||||
accounts_limit?: number
|
||||
created_at?: Date | string
|
||||
updated_at?: Date | string
|
||||
charge_transaction: Prisma.LicenseChargeTransactionCreateNestedOneWithoutLicensesInput
|
||||
activation?: Prisma.LicenseActivationCreateNestedOneWithoutLicenseInput
|
||||
}
|
||||
|
||||
export type LicenseUncheckedCreateWithoutAccount_allocationsInput = {
|
||||
export type LicenseUncheckedCreateWithoutActivationInput = {
|
||||
id?: string
|
||||
accounts_limit?: number
|
||||
created_at?: Date | string
|
||||
updated_at?: Date | string
|
||||
charge_transaction_id: string
|
||||
activation?: Prisma.LicenseActivationUncheckedCreateNestedOneWithoutLicenseInput
|
||||
}
|
||||
|
||||
export type LicenseCreateOrConnectWithoutAccount_allocationsInput = {
|
||||
export type LicenseCreateOrConnectWithoutActivationInput = {
|
||||
where: Prisma.LicenseWhereUniqueInput
|
||||
create: Prisma.XOR<Prisma.LicenseCreateWithoutAccount_allocationsInput, Prisma.LicenseUncheckedCreateWithoutAccount_allocationsInput>
|
||||
create: Prisma.XOR<Prisma.LicenseCreateWithoutActivationInput, Prisma.LicenseUncheckedCreateWithoutActivationInput>
|
||||
}
|
||||
|
||||
export type LicenseUpsertWithoutAccount_allocationsInput = {
|
||||
update: Prisma.XOR<Prisma.LicenseUpdateWithoutAccount_allocationsInput, Prisma.LicenseUncheckedUpdateWithoutAccount_allocationsInput>
|
||||
create: Prisma.XOR<Prisma.LicenseCreateWithoutAccount_allocationsInput, Prisma.LicenseUncheckedCreateWithoutAccount_allocationsInput>
|
||||
export type LicenseUpsertWithoutActivationInput = {
|
||||
update: Prisma.XOR<Prisma.LicenseUpdateWithoutActivationInput, Prisma.LicenseUncheckedUpdateWithoutActivationInput>
|
||||
create: Prisma.XOR<Prisma.LicenseCreateWithoutActivationInput, Prisma.LicenseUncheckedCreateWithoutActivationInput>
|
||||
where?: Prisma.LicenseWhereInput
|
||||
}
|
||||
|
||||
export type LicenseUpdateToOneWithWhereWithoutAccount_allocationsInput = {
|
||||
export type LicenseUpdateToOneWithWhereWithoutActivationInput = {
|
||||
where?: Prisma.LicenseWhereInput
|
||||
data: Prisma.XOR<Prisma.LicenseUpdateWithoutAccount_allocationsInput, Prisma.LicenseUncheckedUpdateWithoutAccount_allocationsInput>
|
||||
data: Prisma.XOR<Prisma.LicenseUpdateWithoutActivationInput, Prisma.LicenseUncheckedUpdateWithoutActivationInput>
|
||||
}
|
||||
|
||||
export type LicenseUpdateWithoutAccount_allocationsInput = {
|
||||
export type LicenseUpdateWithoutActivationInput = {
|
||||
id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
accounts_limit?: Prisma.IntFieldUpdateOperationsInput | number
|
||||
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
charge_transaction?: Prisma.LicenseChargeTransactionUpdateOneRequiredWithoutLicensesNestedInput
|
||||
activation?: Prisma.LicenseActivationUpdateOneWithoutLicenseNestedInput
|
||||
}
|
||||
|
||||
export type LicenseUncheckedUpdateWithoutAccount_allocationsInput = {
|
||||
export type LicenseUncheckedUpdateWithoutActivationInput = {
|
||||
id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
accounts_limit?: Prisma.IntFieldUpdateOperationsInput | number
|
||||
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
charge_transaction_id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
activation?: Prisma.LicenseActivationUncheckedUpdateOneWithoutLicenseNestedInput
|
||||
}
|
||||
|
||||
export type LicenseCreateManyCharge_transactionInput = {
|
||||
@@ -644,7 +550,6 @@ export type LicenseUpdateWithoutCharge_transactionInput = {
|
||||
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
activation?: Prisma.LicenseActivationUpdateOneWithoutLicenseNestedInput
|
||||
account_allocations?: Prisma.PartnerAccountQuotaAllocationUpdateManyWithoutLicenseNestedInput
|
||||
}
|
||||
|
||||
export type LicenseUncheckedUpdateWithoutCharge_transactionInput = {
|
||||
@@ -653,7 +558,6 @@ export type LicenseUncheckedUpdateWithoutCharge_transactionInput = {
|
||||
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
activation?: Prisma.LicenseActivationUncheckedUpdateOneWithoutLicenseNestedInput
|
||||
account_allocations?: Prisma.PartnerAccountQuotaAllocationUncheckedUpdateManyWithoutLicenseNestedInput
|
||||
}
|
||||
|
||||
export type LicenseUncheckedUpdateManyWithoutCharge_transactionInput = {
|
||||
@@ -664,35 +568,6 @@ export type LicenseUncheckedUpdateManyWithoutCharge_transactionInput = {
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Count Type LicenseCountOutputType
|
||||
*/
|
||||
|
||||
export type LicenseCountOutputType = {
|
||||
account_allocations: number
|
||||
}
|
||||
|
||||
export type LicenseCountOutputTypeSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
||||
account_allocations?: boolean | LicenseCountOutputTypeCountAccount_allocationsArgs
|
||||
}
|
||||
|
||||
/**
|
||||
* LicenseCountOutputType without action
|
||||
*/
|
||||
export type LicenseCountOutputTypeDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
||||
/**
|
||||
* Select specific fields to fetch from the LicenseCountOutputType
|
||||
*/
|
||||
select?: Prisma.LicenseCountOutputTypeSelect<ExtArgs> | null
|
||||
}
|
||||
|
||||
/**
|
||||
* LicenseCountOutputType without action
|
||||
*/
|
||||
export type LicenseCountOutputTypeCountAccount_allocationsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
||||
where?: Prisma.PartnerAccountQuotaAllocationWhereInput
|
||||
}
|
||||
|
||||
|
||||
export type LicenseSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
||||
id?: boolean
|
||||
@@ -702,8 +577,6 @@ export type LicenseSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs
|
||||
charge_transaction_id?: boolean
|
||||
charge_transaction?: boolean | Prisma.LicenseChargeTransactionDefaultArgs<ExtArgs>
|
||||
activation?: boolean | Prisma.License$activationArgs<ExtArgs>
|
||||
account_allocations?: boolean | Prisma.License$account_allocationsArgs<ExtArgs>
|
||||
_count?: boolean | Prisma.LicenseCountOutputTypeDefaultArgs<ExtArgs>
|
||||
}, ExtArgs["result"]["license"]>
|
||||
|
||||
|
||||
@@ -720,8 +593,6 @@ export type LicenseOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs =
|
||||
export type LicenseInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
||||
charge_transaction?: boolean | Prisma.LicenseChargeTransactionDefaultArgs<ExtArgs>
|
||||
activation?: boolean | Prisma.License$activationArgs<ExtArgs>
|
||||
account_allocations?: boolean | Prisma.License$account_allocationsArgs<ExtArgs>
|
||||
_count?: boolean | Prisma.LicenseCountOutputTypeDefaultArgs<ExtArgs>
|
||||
}
|
||||
|
||||
export type $LicensePayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
||||
@@ -729,7 +600,6 @@ export type $LicensePayload<ExtArgs extends runtime.Types.Extensions.InternalArg
|
||||
objects: {
|
||||
charge_transaction: Prisma.$LicenseChargeTransactionPayload<ExtArgs>
|
||||
activation: Prisma.$LicenseActivationPayload<ExtArgs> | null
|
||||
account_allocations: Prisma.$PartnerAccountQuotaAllocationPayload<ExtArgs>[]
|
||||
}
|
||||
scalars: runtime.Types.Extensions.GetPayloadResult<{
|
||||
id: string
|
||||
@@ -1079,7 +949,6 @@ export interface Prisma__LicenseClient<T, Null = never, ExtArgs extends runtime.
|
||||
readonly [Symbol.toStringTag]: "PrismaPromise"
|
||||
charge_transaction<T extends Prisma.LicenseChargeTransactionDefaultArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.LicenseChargeTransactionDefaultArgs<ExtArgs>>): Prisma.Prisma__LicenseChargeTransactionClient<runtime.Types.Result.GetResult<Prisma.$LicenseChargeTransactionPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>
|
||||
activation<T extends Prisma.License$activationArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.License$activationArgs<ExtArgs>>): Prisma.Prisma__LicenseActivationClient<runtime.Types.Result.GetResult<Prisma.$LicenseActivationPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
|
||||
account_allocations<T extends Prisma.License$account_allocationsArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.License$account_allocationsArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$PartnerAccountQuotaAllocationPayload<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.
|
||||
@@ -1480,30 +1349,6 @@ export type License$activationArgs<ExtArgs extends runtime.Types.Extensions.Inte
|
||||
where?: Prisma.LicenseActivationWhereInput
|
||||
}
|
||||
|
||||
/**
|
||||
* License.account_allocations
|
||||
*/
|
||||
export type License$account_allocationsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
||||
/**
|
||||
* Select specific fields to fetch from the PartnerAccountQuotaAllocation
|
||||
*/
|
||||
select?: Prisma.PartnerAccountQuotaAllocationSelect<ExtArgs> | null
|
||||
/**
|
||||
* Omit specific fields from the PartnerAccountQuotaAllocation
|
||||
*/
|
||||
omit?: Prisma.PartnerAccountQuotaAllocationOmit<ExtArgs> | null
|
||||
/**
|
||||
* Choose, which related nodes to fetch as well
|
||||
*/
|
||||
include?: Prisma.PartnerAccountQuotaAllocationInclude<ExtArgs> | null
|
||||
where?: Prisma.PartnerAccountQuotaAllocationWhereInput
|
||||
orderBy?: Prisma.PartnerAccountQuotaAllocationOrderByWithRelationInput | Prisma.PartnerAccountQuotaAllocationOrderByWithRelationInput[]
|
||||
cursor?: Prisma.PartnerAccountQuotaAllocationWhereUniqueInput
|
||||
take?: number
|
||||
skip?: number
|
||||
distinct?: Prisma.PartnerAccountQuotaAllocationScalarFieldEnum | Prisma.PartnerAccountQuotaAllocationScalarFieldEnum[]
|
||||
}
|
||||
|
||||
/**
|
||||
* License without action
|
||||
*/
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -201,6 +201,7 @@ export type LicenseActivationWhereInput = {
|
||||
license?: Prisma.XOR<Prisma.LicenseScalarRelationFilter, Prisma.LicenseWhereInput>
|
||||
business_activity?: Prisma.XOR<Prisma.BusinessActivityScalarRelationFilter, Prisma.BusinessActivityWhereInput>
|
||||
license_renews?: Prisma.LicenseRenewListRelationFilter
|
||||
account_allocations?: Prisma.LicenseAccountAllocationListRelationFilter
|
||||
}
|
||||
|
||||
export type LicenseActivationOrderByWithRelationInput = {
|
||||
@@ -214,6 +215,7 @@ export type LicenseActivationOrderByWithRelationInput = {
|
||||
license?: Prisma.LicenseOrderByWithRelationInput
|
||||
business_activity?: Prisma.BusinessActivityOrderByWithRelationInput
|
||||
license_renews?: Prisma.LicenseRenewOrderByRelationAggregateInput
|
||||
account_allocations?: Prisma.LicenseAccountAllocationOrderByRelationAggregateInput
|
||||
_relevance?: Prisma.LicenseActivationOrderByRelevanceInput
|
||||
}
|
||||
|
||||
@@ -231,6 +233,7 @@ export type LicenseActivationWhereUniqueInput = Prisma.AtLeast<{
|
||||
license?: Prisma.XOR<Prisma.LicenseScalarRelationFilter, Prisma.LicenseWhereInput>
|
||||
business_activity?: Prisma.XOR<Prisma.BusinessActivityScalarRelationFilter, Prisma.BusinessActivityWhereInput>
|
||||
license_renews?: Prisma.LicenseRenewListRelationFilter
|
||||
account_allocations?: Prisma.LicenseAccountAllocationListRelationFilter
|
||||
}, "id" | "id" | "license_id" | "business_activity_id">
|
||||
|
||||
export type LicenseActivationOrderByWithAggregationInput = {
|
||||
@@ -268,6 +271,7 @@ export type LicenseActivationCreateInput = {
|
||||
license: Prisma.LicenseCreateNestedOneWithoutActivationInput
|
||||
business_activity: Prisma.BusinessActivityCreateNestedOneWithoutLicense_activationInput
|
||||
license_renews?: Prisma.LicenseRenewCreateNestedManyWithoutActivationInput
|
||||
account_allocations?: Prisma.LicenseAccountAllocationCreateNestedManyWithoutLicense_activationInput
|
||||
}
|
||||
|
||||
export type LicenseActivationUncheckedCreateInput = {
|
||||
@@ -279,6 +283,7 @@ export type LicenseActivationUncheckedCreateInput = {
|
||||
license_id: string
|
||||
business_activity_id: string
|
||||
license_renews?: Prisma.LicenseRenewUncheckedCreateNestedManyWithoutActivationInput
|
||||
account_allocations?: Prisma.LicenseAccountAllocationUncheckedCreateNestedManyWithoutLicense_activationInput
|
||||
}
|
||||
|
||||
export type LicenseActivationUpdateInput = {
|
||||
@@ -290,6 +295,7 @@ export type LicenseActivationUpdateInput = {
|
||||
license?: Prisma.LicenseUpdateOneRequiredWithoutActivationNestedInput
|
||||
business_activity?: Prisma.BusinessActivityUpdateOneRequiredWithoutLicense_activationNestedInput
|
||||
license_renews?: Prisma.LicenseRenewUpdateManyWithoutActivationNestedInput
|
||||
account_allocations?: Prisma.LicenseAccountAllocationUpdateManyWithoutLicense_activationNestedInput
|
||||
}
|
||||
|
||||
export type LicenseActivationUncheckedUpdateInput = {
|
||||
@@ -301,6 +307,7 @@ export type LicenseActivationUncheckedUpdateInput = {
|
||||
license_id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
business_activity_id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
license_renews?: Prisma.LicenseRenewUncheckedUpdateManyWithoutActivationNestedInput
|
||||
account_allocations?: Prisma.LicenseAccountAllocationUncheckedUpdateManyWithoutLicense_activationNestedInput
|
||||
}
|
||||
|
||||
export type LicenseActivationCreateManyInput = {
|
||||
@@ -455,6 +462,22 @@ export type LicenseActivationUpdateOneRequiredWithoutLicense_renewsNestedInput =
|
||||
update?: Prisma.XOR<Prisma.XOR<Prisma.LicenseActivationUpdateToOneWithWhereWithoutLicense_renewsInput, Prisma.LicenseActivationUpdateWithoutLicense_renewsInput>, Prisma.LicenseActivationUncheckedUpdateWithoutLicense_renewsInput>
|
||||
}
|
||||
|
||||
export type LicenseActivationCreateNestedOneWithoutAccount_allocationsInput = {
|
||||
create?: Prisma.XOR<Prisma.LicenseActivationCreateWithoutAccount_allocationsInput, Prisma.LicenseActivationUncheckedCreateWithoutAccount_allocationsInput>
|
||||
connectOrCreate?: Prisma.LicenseActivationCreateOrConnectWithoutAccount_allocationsInput
|
||||
connect?: Prisma.LicenseActivationWhereUniqueInput
|
||||
}
|
||||
|
||||
export type LicenseActivationUpdateOneWithoutAccount_allocationsNestedInput = {
|
||||
create?: Prisma.XOR<Prisma.LicenseActivationCreateWithoutAccount_allocationsInput, Prisma.LicenseActivationUncheckedCreateWithoutAccount_allocationsInput>
|
||||
connectOrCreate?: Prisma.LicenseActivationCreateOrConnectWithoutAccount_allocationsInput
|
||||
upsert?: Prisma.LicenseActivationUpsertWithoutAccount_allocationsInput
|
||||
disconnect?: Prisma.LicenseActivationWhereInput | boolean
|
||||
delete?: Prisma.LicenseActivationWhereInput | boolean
|
||||
connect?: Prisma.LicenseActivationWhereUniqueInput
|
||||
update?: Prisma.XOR<Prisma.XOR<Prisma.LicenseActivationUpdateToOneWithWhereWithoutAccount_allocationsInput, Prisma.LicenseActivationUpdateWithoutAccount_allocationsInput>, Prisma.LicenseActivationUncheckedUpdateWithoutAccount_allocationsInput>
|
||||
}
|
||||
|
||||
export type LicenseActivationCreateWithoutBusiness_activityInput = {
|
||||
id?: string
|
||||
starts_at: Date | string
|
||||
@@ -463,6 +486,7 @@ export type LicenseActivationCreateWithoutBusiness_activityInput = {
|
||||
updated_at?: Date | string
|
||||
license: Prisma.LicenseCreateNestedOneWithoutActivationInput
|
||||
license_renews?: Prisma.LicenseRenewCreateNestedManyWithoutActivationInput
|
||||
account_allocations?: Prisma.LicenseAccountAllocationCreateNestedManyWithoutLicense_activationInput
|
||||
}
|
||||
|
||||
export type LicenseActivationUncheckedCreateWithoutBusiness_activityInput = {
|
||||
@@ -473,6 +497,7 @@ export type LicenseActivationUncheckedCreateWithoutBusiness_activityInput = {
|
||||
updated_at?: Date | string
|
||||
license_id: string
|
||||
license_renews?: Prisma.LicenseRenewUncheckedCreateNestedManyWithoutActivationInput
|
||||
account_allocations?: Prisma.LicenseAccountAllocationUncheckedCreateNestedManyWithoutLicense_activationInput
|
||||
}
|
||||
|
||||
export type LicenseActivationCreateOrConnectWithoutBusiness_activityInput = {
|
||||
@@ -499,6 +524,7 @@ export type LicenseActivationUpdateWithoutBusiness_activityInput = {
|
||||
updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
license?: Prisma.LicenseUpdateOneRequiredWithoutActivationNestedInput
|
||||
license_renews?: Prisma.LicenseRenewUpdateManyWithoutActivationNestedInput
|
||||
account_allocations?: Prisma.LicenseAccountAllocationUpdateManyWithoutLicense_activationNestedInput
|
||||
}
|
||||
|
||||
export type LicenseActivationUncheckedUpdateWithoutBusiness_activityInput = {
|
||||
@@ -509,6 +535,7 @@ export type LicenseActivationUncheckedUpdateWithoutBusiness_activityInput = {
|
||||
updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
license_id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
license_renews?: Prisma.LicenseRenewUncheckedUpdateManyWithoutActivationNestedInput
|
||||
account_allocations?: Prisma.LicenseAccountAllocationUncheckedUpdateManyWithoutLicense_activationNestedInput
|
||||
}
|
||||
|
||||
export type LicenseActivationCreateWithoutLicenseInput = {
|
||||
@@ -519,6 +546,7 @@ export type LicenseActivationCreateWithoutLicenseInput = {
|
||||
updated_at?: Date | string
|
||||
business_activity: Prisma.BusinessActivityCreateNestedOneWithoutLicense_activationInput
|
||||
license_renews?: Prisma.LicenseRenewCreateNestedManyWithoutActivationInput
|
||||
account_allocations?: Prisma.LicenseAccountAllocationCreateNestedManyWithoutLicense_activationInput
|
||||
}
|
||||
|
||||
export type LicenseActivationUncheckedCreateWithoutLicenseInput = {
|
||||
@@ -529,6 +557,7 @@ export type LicenseActivationUncheckedCreateWithoutLicenseInput = {
|
||||
updated_at?: Date | string
|
||||
business_activity_id: string
|
||||
license_renews?: Prisma.LicenseRenewUncheckedCreateNestedManyWithoutActivationInput
|
||||
account_allocations?: Prisma.LicenseAccountAllocationUncheckedCreateNestedManyWithoutLicense_activationInput
|
||||
}
|
||||
|
||||
export type LicenseActivationCreateOrConnectWithoutLicenseInput = {
|
||||
@@ -555,6 +584,7 @@ export type LicenseActivationUpdateWithoutLicenseInput = {
|
||||
updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
business_activity?: Prisma.BusinessActivityUpdateOneRequiredWithoutLicense_activationNestedInput
|
||||
license_renews?: Prisma.LicenseRenewUpdateManyWithoutActivationNestedInput
|
||||
account_allocations?: Prisma.LicenseAccountAllocationUpdateManyWithoutLicense_activationNestedInput
|
||||
}
|
||||
|
||||
export type LicenseActivationUncheckedUpdateWithoutLicenseInput = {
|
||||
@@ -565,6 +595,7 @@ export type LicenseActivationUncheckedUpdateWithoutLicenseInput = {
|
||||
updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
business_activity_id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
license_renews?: Prisma.LicenseRenewUncheckedUpdateManyWithoutActivationNestedInput
|
||||
account_allocations?: Prisma.LicenseAccountAllocationUncheckedUpdateManyWithoutLicense_activationNestedInput
|
||||
}
|
||||
|
||||
export type LicenseActivationCreateWithoutLicense_renewsInput = {
|
||||
@@ -575,6 +606,7 @@ export type LicenseActivationCreateWithoutLicense_renewsInput = {
|
||||
updated_at?: Date | string
|
||||
license: Prisma.LicenseCreateNestedOneWithoutActivationInput
|
||||
business_activity: Prisma.BusinessActivityCreateNestedOneWithoutLicense_activationInput
|
||||
account_allocations?: Prisma.LicenseAccountAllocationCreateNestedManyWithoutLicense_activationInput
|
||||
}
|
||||
|
||||
export type LicenseActivationUncheckedCreateWithoutLicense_renewsInput = {
|
||||
@@ -585,6 +617,7 @@ export type LicenseActivationUncheckedCreateWithoutLicense_renewsInput = {
|
||||
updated_at?: Date | string
|
||||
license_id: string
|
||||
business_activity_id: string
|
||||
account_allocations?: Prisma.LicenseAccountAllocationUncheckedCreateNestedManyWithoutLicense_activationInput
|
||||
}
|
||||
|
||||
export type LicenseActivationCreateOrConnectWithoutLicense_renewsInput = {
|
||||
@@ -611,6 +644,7 @@ export type LicenseActivationUpdateWithoutLicense_renewsInput = {
|
||||
updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
license?: Prisma.LicenseUpdateOneRequiredWithoutActivationNestedInput
|
||||
business_activity?: Prisma.BusinessActivityUpdateOneRequiredWithoutLicense_activationNestedInput
|
||||
account_allocations?: Prisma.LicenseAccountAllocationUpdateManyWithoutLicense_activationNestedInput
|
||||
}
|
||||
|
||||
export type LicenseActivationUncheckedUpdateWithoutLicense_renewsInput = {
|
||||
@@ -621,6 +655,67 @@ export type LicenseActivationUncheckedUpdateWithoutLicense_renewsInput = {
|
||||
updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
license_id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
business_activity_id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
account_allocations?: Prisma.LicenseAccountAllocationUncheckedUpdateManyWithoutLicense_activationNestedInput
|
||||
}
|
||||
|
||||
export type LicenseActivationCreateWithoutAccount_allocationsInput = {
|
||||
id?: string
|
||||
starts_at: Date | string
|
||||
expires_at: Date | string
|
||||
created_at?: Date | string
|
||||
updated_at?: Date | string
|
||||
license: Prisma.LicenseCreateNestedOneWithoutActivationInput
|
||||
business_activity: Prisma.BusinessActivityCreateNestedOneWithoutLicense_activationInput
|
||||
license_renews?: Prisma.LicenseRenewCreateNestedManyWithoutActivationInput
|
||||
}
|
||||
|
||||
export type LicenseActivationUncheckedCreateWithoutAccount_allocationsInput = {
|
||||
id?: string
|
||||
starts_at: Date | string
|
||||
expires_at: Date | string
|
||||
created_at?: Date | string
|
||||
updated_at?: Date | string
|
||||
license_id: string
|
||||
business_activity_id: string
|
||||
license_renews?: Prisma.LicenseRenewUncheckedCreateNestedManyWithoutActivationInput
|
||||
}
|
||||
|
||||
export type LicenseActivationCreateOrConnectWithoutAccount_allocationsInput = {
|
||||
where: Prisma.LicenseActivationWhereUniqueInput
|
||||
create: Prisma.XOR<Prisma.LicenseActivationCreateWithoutAccount_allocationsInput, Prisma.LicenseActivationUncheckedCreateWithoutAccount_allocationsInput>
|
||||
}
|
||||
|
||||
export type LicenseActivationUpsertWithoutAccount_allocationsInput = {
|
||||
update: Prisma.XOR<Prisma.LicenseActivationUpdateWithoutAccount_allocationsInput, Prisma.LicenseActivationUncheckedUpdateWithoutAccount_allocationsInput>
|
||||
create: Prisma.XOR<Prisma.LicenseActivationCreateWithoutAccount_allocationsInput, Prisma.LicenseActivationUncheckedCreateWithoutAccount_allocationsInput>
|
||||
where?: Prisma.LicenseActivationWhereInput
|
||||
}
|
||||
|
||||
export type LicenseActivationUpdateToOneWithWhereWithoutAccount_allocationsInput = {
|
||||
where?: Prisma.LicenseActivationWhereInput
|
||||
data: Prisma.XOR<Prisma.LicenseActivationUpdateWithoutAccount_allocationsInput, Prisma.LicenseActivationUncheckedUpdateWithoutAccount_allocationsInput>
|
||||
}
|
||||
|
||||
export type LicenseActivationUpdateWithoutAccount_allocationsInput = {
|
||||
id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
starts_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
expires_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
license?: Prisma.LicenseUpdateOneRequiredWithoutActivationNestedInput
|
||||
business_activity?: Prisma.BusinessActivityUpdateOneRequiredWithoutLicense_activationNestedInput
|
||||
license_renews?: Prisma.LicenseRenewUpdateManyWithoutActivationNestedInput
|
||||
}
|
||||
|
||||
export type LicenseActivationUncheckedUpdateWithoutAccount_allocationsInput = {
|
||||
id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
starts_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
expires_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
license_id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
business_activity_id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
license_renews?: Prisma.LicenseRenewUncheckedUpdateManyWithoutActivationNestedInput
|
||||
}
|
||||
|
||||
|
||||
@@ -630,10 +725,12 @@ export type LicenseActivationUncheckedUpdateWithoutLicense_renewsInput = {
|
||||
|
||||
export type LicenseActivationCountOutputType = {
|
||||
license_renews: number
|
||||
account_allocations: number
|
||||
}
|
||||
|
||||
export type LicenseActivationCountOutputTypeSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
||||
license_renews?: boolean | LicenseActivationCountOutputTypeCountLicense_renewsArgs
|
||||
account_allocations?: boolean | LicenseActivationCountOutputTypeCountAccount_allocationsArgs
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -653,6 +750,13 @@ export type LicenseActivationCountOutputTypeCountLicense_renewsArgs<ExtArgs exte
|
||||
where?: Prisma.LicenseRenewWhereInput
|
||||
}
|
||||
|
||||
/**
|
||||
* LicenseActivationCountOutputType without action
|
||||
*/
|
||||
export type LicenseActivationCountOutputTypeCountAccount_allocationsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
||||
where?: Prisma.LicenseAccountAllocationWhereInput
|
||||
}
|
||||
|
||||
|
||||
export type LicenseActivationSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
||||
id?: boolean
|
||||
@@ -665,6 +769,7 @@ export type LicenseActivationSelect<ExtArgs extends runtime.Types.Extensions.Int
|
||||
license?: boolean | Prisma.LicenseDefaultArgs<ExtArgs>
|
||||
business_activity?: boolean | Prisma.BusinessActivityDefaultArgs<ExtArgs>
|
||||
license_renews?: boolean | Prisma.LicenseActivation$license_renewsArgs<ExtArgs>
|
||||
account_allocations?: boolean | Prisma.LicenseActivation$account_allocationsArgs<ExtArgs>
|
||||
_count?: boolean | Prisma.LicenseActivationCountOutputTypeDefaultArgs<ExtArgs>
|
||||
}, ExtArgs["result"]["licenseActivation"]>
|
||||
|
||||
@@ -685,6 +790,7 @@ export type LicenseActivationInclude<ExtArgs extends runtime.Types.Extensions.In
|
||||
license?: boolean | Prisma.LicenseDefaultArgs<ExtArgs>
|
||||
business_activity?: boolean | Prisma.BusinessActivityDefaultArgs<ExtArgs>
|
||||
license_renews?: boolean | Prisma.LicenseActivation$license_renewsArgs<ExtArgs>
|
||||
account_allocations?: boolean | Prisma.LicenseActivation$account_allocationsArgs<ExtArgs>
|
||||
_count?: boolean | Prisma.LicenseActivationCountOutputTypeDefaultArgs<ExtArgs>
|
||||
}
|
||||
|
||||
@@ -694,6 +800,7 @@ export type $LicenseActivationPayload<ExtArgs extends runtime.Types.Extensions.I
|
||||
license: Prisma.$LicensePayload<ExtArgs>
|
||||
business_activity: Prisma.$BusinessActivityPayload<ExtArgs>
|
||||
license_renews: Prisma.$LicenseRenewPayload<ExtArgs>[]
|
||||
account_allocations: Prisma.$LicenseAccountAllocationPayload<ExtArgs>[]
|
||||
}
|
||||
scalars: runtime.Types.Extensions.GetPayloadResult<{
|
||||
id: string
|
||||
@@ -1046,6 +1153,7 @@ export interface Prisma__LicenseActivationClient<T, Null = never, ExtArgs extend
|
||||
license<T extends Prisma.LicenseDefaultArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.LicenseDefaultArgs<ExtArgs>>): Prisma.Prisma__LicenseClient<runtime.Types.Result.GetResult<Prisma.$LicensePayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>
|
||||
business_activity<T extends Prisma.BusinessActivityDefaultArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.BusinessActivityDefaultArgs<ExtArgs>>): Prisma.Prisma__BusinessActivityClient<runtime.Types.Result.GetResult<Prisma.$BusinessActivityPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>
|
||||
license_renews<T extends Prisma.LicenseActivation$license_renewsArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.LicenseActivation$license_renewsArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$LicenseRenewPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
|
||||
account_allocations<T extends Prisma.LicenseActivation$account_allocationsArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.LicenseActivation$account_allocationsArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$LicenseAccountAllocationPayload<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.
|
||||
@@ -1453,6 +1561,30 @@ export type LicenseActivation$license_renewsArgs<ExtArgs extends runtime.Types.E
|
||||
distinct?: Prisma.LicenseRenewScalarFieldEnum | Prisma.LicenseRenewScalarFieldEnum[]
|
||||
}
|
||||
|
||||
/**
|
||||
* LicenseActivation.account_allocations
|
||||
*/
|
||||
export type LicenseActivation$account_allocationsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
||||
/**
|
||||
* Select specific fields to fetch from the LicenseAccountAllocation
|
||||
*/
|
||||
select?: Prisma.LicenseAccountAllocationSelect<ExtArgs> | null
|
||||
/**
|
||||
* Omit specific fields from the LicenseAccountAllocation
|
||||
*/
|
||||
omit?: Prisma.LicenseAccountAllocationOmit<ExtArgs> | null
|
||||
/**
|
||||
* Choose, which related nodes to fetch as well
|
||||
*/
|
||||
include?: Prisma.LicenseAccountAllocationInclude<ExtArgs> | null
|
||||
where?: Prisma.LicenseAccountAllocationWhereInput
|
||||
orderBy?: Prisma.LicenseAccountAllocationOrderByWithRelationInput | Prisma.LicenseAccountAllocationOrderByWithRelationInput[]
|
||||
cursor?: Prisma.LicenseAccountAllocationWhereUniqueInput
|
||||
take?: number
|
||||
skip?: number
|
||||
distinct?: Prisma.LicenseAccountAllocationScalarFieldEnum | Prisma.LicenseAccountAllocationScalarFieldEnum[]
|
||||
}
|
||||
|
||||
/**
|
||||
* LicenseActivation without action
|
||||
*/
|
||||
|
||||
@@ -365,11 +365,6 @@ export type LicenseChargeTransactionUncheckedUpdateManyInput = {
|
||||
partner_id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
}
|
||||
|
||||
export type LicenseChargeTransactionScalarRelationFilter = {
|
||||
is?: Prisma.LicenseChargeTransactionWhereInput
|
||||
isNot?: Prisma.LicenseChargeTransactionWhereInput
|
||||
}
|
||||
|
||||
export type LicenseChargeTransactionOrderByRelevanceInput = {
|
||||
fields: Prisma.LicenseChargeTransactionOrderByRelevanceFieldEnum | Prisma.LicenseChargeTransactionOrderByRelevanceFieldEnum[]
|
||||
sort: Prisma.SortOrder
|
||||
@@ -414,6 +409,11 @@ export type LicenseChargeTransactionSumOrderByAggregateInput = {
|
||||
purchased_count?: Prisma.SortOrder
|
||||
}
|
||||
|
||||
export type LicenseChargeTransactionScalarRelationFilter = {
|
||||
is?: Prisma.LicenseChargeTransactionWhereInput
|
||||
isNot?: Prisma.LicenseChargeTransactionWhereInput
|
||||
}
|
||||
|
||||
export type LicenseChargeTransactionListRelationFilter = {
|
||||
every?: Prisma.LicenseChargeTransactionWhereInput
|
||||
some?: Prisma.LicenseChargeTransactionWhereInput
|
||||
@@ -424,6 +424,14 @@ export type LicenseChargeTransactionOrderByRelationAggregateInput = {
|
||||
_count?: Prisma.SortOrder
|
||||
}
|
||||
|
||||
export type IntFieldUpdateOperationsInput = {
|
||||
set?: number
|
||||
increment?: number
|
||||
decrement?: number
|
||||
multiply?: number
|
||||
divide?: number
|
||||
}
|
||||
|
||||
export type LicenseChargeTransactionCreateNestedOneWithoutLicensesInput = {
|
||||
create?: Prisma.XOR<Prisma.LicenseChargeTransactionCreateWithoutLicensesInput, Prisma.LicenseChargeTransactionUncheckedCreateWithoutLicensesInput>
|
||||
connectOrCreate?: Prisma.LicenseChargeTransactionCreateOrConnectWithoutLicensesInput
|
||||
|
||||
@@ -365,11 +365,6 @@ export type LicenseRenewChargeTransactionUncheckedUpdateManyInput = {
|
||||
partner_id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
}
|
||||
|
||||
export type LicenseRenewChargeTransactionScalarRelationFilter = {
|
||||
is?: Prisma.LicenseRenewChargeTransactionWhereInput
|
||||
isNot?: Prisma.LicenseRenewChargeTransactionWhereInput
|
||||
}
|
||||
|
||||
export type LicenseRenewChargeTransactionOrderByRelevanceInput = {
|
||||
fields: Prisma.LicenseRenewChargeTransactionOrderByRelevanceFieldEnum | Prisma.LicenseRenewChargeTransactionOrderByRelevanceFieldEnum[]
|
||||
sort: Prisma.SortOrder
|
||||
@@ -414,6 +409,11 @@ export type LicenseRenewChargeTransactionSumOrderByAggregateInput = {
|
||||
purchased_count?: Prisma.SortOrder
|
||||
}
|
||||
|
||||
export type LicenseRenewChargeTransactionScalarRelationFilter = {
|
||||
is?: Prisma.LicenseRenewChargeTransactionWhereInput
|
||||
isNot?: Prisma.LicenseRenewChargeTransactionWhereInput
|
||||
}
|
||||
|
||||
export type LicenseRenewChargeTransactionListRelationFilter = {
|
||||
every?: Prisma.LicenseRenewChargeTransactionWhereInput
|
||||
some?: Prisma.LicenseRenewChargeTransactionWhereInput
|
||||
|
||||
@@ -208,6 +208,7 @@ export type PartnerAccountOrderByWithRelationInput = {
|
||||
|
||||
export type PartnerAccountWhereUniqueInput = Prisma.AtLeast<{
|
||||
id?: string
|
||||
partner_id?: string
|
||||
account_id?: string
|
||||
AND?: Prisma.PartnerAccountWhereInput | Prisma.PartnerAccountWhereInput[]
|
||||
OR?: Prisma.PartnerAccountWhereInput[]
|
||||
@@ -215,10 +216,9 @@ export type PartnerAccountWhereUniqueInput = Prisma.AtLeast<{
|
||||
role?: Prisma.EnumPartnerRoleFilter<"PartnerAccount"> | $Enums.PartnerRole
|
||||
created_at?: Prisma.DateTimeFilter<"PartnerAccount"> | Date | string
|
||||
updated_at?: Prisma.DateTimeFilter<"PartnerAccount"> | Date | string
|
||||
partner_id?: Prisma.StringFilter<"PartnerAccount"> | string
|
||||
partner?: Prisma.XOR<Prisma.PartnerScalarRelationFilter, Prisma.PartnerWhereInput>
|
||||
account?: Prisma.XOR<Prisma.AccountScalarRelationFilter, Prisma.AccountWhereInput>
|
||||
}, "id" | "account_id">
|
||||
}, "id" | "partner_id" | "account_id">
|
||||
|
||||
export type PartnerAccountOrderByWithAggregationInput = {
|
||||
id?: Prisma.SortOrder
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -233,7 +233,7 @@ export type PartnerAccountQuotaChargeTransactionWhereInput = {
|
||||
updated_at?: Prisma.DateTimeFilter<"PartnerAccountQuotaChargeTransaction"> | Date | string
|
||||
partner_id?: Prisma.StringFilter<"PartnerAccountQuotaChargeTransaction"> | string
|
||||
partner?: Prisma.XOR<Prisma.PartnerScalarRelationFilter, Prisma.PartnerWhereInput>
|
||||
allocations?: Prisma.PartnerAccountQuotaAllocationListRelationFilter
|
||||
credits?: Prisma.PartnerAccountQuotaCreditListRelationFilter
|
||||
}
|
||||
|
||||
export type PartnerAccountQuotaChargeTransactionOrderByWithRelationInput = {
|
||||
@@ -245,7 +245,7 @@ export type PartnerAccountQuotaChargeTransactionOrderByWithRelationInput = {
|
||||
updated_at?: Prisma.SortOrder
|
||||
partner_id?: Prisma.SortOrder
|
||||
partner?: Prisma.PartnerOrderByWithRelationInput
|
||||
allocations?: Prisma.PartnerAccountQuotaAllocationOrderByRelationAggregateInput
|
||||
credits?: Prisma.PartnerAccountQuotaCreditOrderByRelationAggregateInput
|
||||
_relevance?: Prisma.PartnerAccountQuotaChargeTransactionOrderByRelevanceInput
|
||||
}
|
||||
|
||||
@@ -261,7 +261,7 @@ export type PartnerAccountQuotaChargeTransactionWhereUniqueInput = Prisma.AtLeas
|
||||
updated_at?: Prisma.DateTimeFilter<"PartnerAccountQuotaChargeTransaction"> | Date | string
|
||||
partner_id?: Prisma.StringFilter<"PartnerAccountQuotaChargeTransaction"> | string
|
||||
partner?: Prisma.XOR<Prisma.PartnerScalarRelationFilter, Prisma.PartnerWhereInput>
|
||||
allocations?: Prisma.PartnerAccountQuotaAllocationListRelationFilter
|
||||
credits?: Prisma.PartnerAccountQuotaCreditListRelationFilter
|
||||
}, "id" | "tracking_code">
|
||||
|
||||
export type PartnerAccountQuotaChargeTransactionOrderByWithAggregationInput = {
|
||||
@@ -300,7 +300,7 @@ export type PartnerAccountQuotaChargeTransactionCreateInput = {
|
||||
created_at?: Date | string
|
||||
updated_at?: Date | string
|
||||
partner: Prisma.PartnerCreateNestedOneWithoutAccount_quota_charge_transactionsInput
|
||||
allocations?: Prisma.PartnerAccountQuotaAllocationCreateNestedManyWithoutCharge_transactionInput
|
||||
credits?: Prisma.PartnerAccountQuotaCreditCreateNestedManyWithoutCharge_transactionInput
|
||||
}
|
||||
|
||||
export type PartnerAccountQuotaChargeTransactionUncheckedCreateInput = {
|
||||
@@ -311,7 +311,7 @@ export type PartnerAccountQuotaChargeTransactionUncheckedCreateInput = {
|
||||
created_at?: Date | string
|
||||
updated_at?: Date | string
|
||||
partner_id: string
|
||||
allocations?: Prisma.PartnerAccountQuotaAllocationUncheckedCreateNestedManyWithoutCharge_transactionInput
|
||||
credits?: Prisma.PartnerAccountQuotaCreditUncheckedCreateNestedManyWithoutCharge_transactionInput
|
||||
}
|
||||
|
||||
export type PartnerAccountQuotaChargeTransactionUpdateInput = {
|
||||
@@ -322,7 +322,7 @@ export type PartnerAccountQuotaChargeTransactionUpdateInput = {
|
||||
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
partner?: Prisma.PartnerUpdateOneRequiredWithoutAccount_quota_charge_transactionsNestedInput
|
||||
allocations?: Prisma.PartnerAccountQuotaAllocationUpdateManyWithoutCharge_transactionNestedInput
|
||||
credits?: Prisma.PartnerAccountQuotaCreditUpdateManyWithoutCharge_transactionNestedInput
|
||||
}
|
||||
|
||||
export type PartnerAccountQuotaChargeTransactionUncheckedUpdateInput = {
|
||||
@@ -333,7 +333,7 @@ export type PartnerAccountQuotaChargeTransactionUncheckedUpdateInput = {
|
||||
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
partner_id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
allocations?: Prisma.PartnerAccountQuotaAllocationUncheckedUpdateManyWithoutCharge_transactionNestedInput
|
||||
credits?: Prisma.PartnerAccountQuotaCreditUncheckedUpdateManyWithoutCharge_transactionNestedInput
|
||||
}
|
||||
|
||||
export type PartnerAccountQuotaChargeTransactionCreateManyInput = {
|
||||
@@ -409,9 +409,9 @@ export type PartnerAccountQuotaChargeTransactionSumOrderByAggregateInput = {
|
||||
purchased_count?: Prisma.SortOrder
|
||||
}
|
||||
|
||||
export type PartnerAccountQuotaChargeTransactionScalarRelationFilter = {
|
||||
is?: Prisma.PartnerAccountQuotaChargeTransactionWhereInput
|
||||
isNot?: Prisma.PartnerAccountQuotaChargeTransactionWhereInput
|
||||
export type PartnerAccountQuotaChargeTransactionNullableScalarRelationFilter = {
|
||||
is?: Prisma.PartnerAccountQuotaChargeTransactionWhereInput | null
|
||||
isNot?: Prisma.PartnerAccountQuotaChargeTransactionWhereInput | null
|
||||
}
|
||||
|
||||
export type PartnerAccountQuotaChargeTransactionListRelationFilter = {
|
||||
@@ -424,18 +424,20 @@ export type PartnerAccountQuotaChargeTransactionOrderByRelationAggregateInput =
|
||||
_count?: Prisma.SortOrder
|
||||
}
|
||||
|
||||
export type PartnerAccountQuotaChargeTransactionCreateNestedOneWithoutAllocationsInput = {
|
||||
create?: Prisma.XOR<Prisma.PartnerAccountQuotaChargeTransactionCreateWithoutAllocationsInput, Prisma.PartnerAccountQuotaChargeTransactionUncheckedCreateWithoutAllocationsInput>
|
||||
connectOrCreate?: Prisma.PartnerAccountQuotaChargeTransactionCreateOrConnectWithoutAllocationsInput
|
||||
export type PartnerAccountQuotaChargeTransactionCreateNestedOneWithoutCreditsInput = {
|
||||
create?: Prisma.XOR<Prisma.PartnerAccountQuotaChargeTransactionCreateWithoutCreditsInput, Prisma.PartnerAccountQuotaChargeTransactionUncheckedCreateWithoutCreditsInput>
|
||||
connectOrCreate?: Prisma.PartnerAccountQuotaChargeTransactionCreateOrConnectWithoutCreditsInput
|
||||
connect?: Prisma.PartnerAccountQuotaChargeTransactionWhereUniqueInput
|
||||
}
|
||||
|
||||
export type PartnerAccountQuotaChargeTransactionUpdateOneRequiredWithoutAllocationsNestedInput = {
|
||||
create?: Prisma.XOR<Prisma.PartnerAccountQuotaChargeTransactionCreateWithoutAllocationsInput, Prisma.PartnerAccountQuotaChargeTransactionUncheckedCreateWithoutAllocationsInput>
|
||||
connectOrCreate?: Prisma.PartnerAccountQuotaChargeTransactionCreateOrConnectWithoutAllocationsInput
|
||||
upsert?: Prisma.PartnerAccountQuotaChargeTransactionUpsertWithoutAllocationsInput
|
||||
export type PartnerAccountQuotaChargeTransactionUpdateOneWithoutCreditsNestedInput = {
|
||||
create?: Prisma.XOR<Prisma.PartnerAccountQuotaChargeTransactionCreateWithoutCreditsInput, Prisma.PartnerAccountQuotaChargeTransactionUncheckedCreateWithoutCreditsInput>
|
||||
connectOrCreate?: Prisma.PartnerAccountQuotaChargeTransactionCreateOrConnectWithoutCreditsInput
|
||||
upsert?: Prisma.PartnerAccountQuotaChargeTransactionUpsertWithoutCreditsInput
|
||||
disconnect?: Prisma.PartnerAccountQuotaChargeTransactionWhereInput | boolean
|
||||
delete?: Prisma.PartnerAccountQuotaChargeTransactionWhereInput | boolean
|
||||
connect?: Prisma.PartnerAccountQuotaChargeTransactionWhereUniqueInput
|
||||
update?: Prisma.XOR<Prisma.XOR<Prisma.PartnerAccountQuotaChargeTransactionUpdateToOneWithWhereWithoutAllocationsInput, Prisma.PartnerAccountQuotaChargeTransactionUpdateWithoutAllocationsInput>, Prisma.PartnerAccountQuotaChargeTransactionUncheckedUpdateWithoutAllocationsInput>
|
||||
update?: Prisma.XOR<Prisma.XOR<Prisma.PartnerAccountQuotaChargeTransactionUpdateToOneWithWhereWithoutCreditsInput, Prisma.PartnerAccountQuotaChargeTransactionUpdateWithoutCreditsInput>, Prisma.PartnerAccountQuotaChargeTransactionUncheckedUpdateWithoutCreditsInput>
|
||||
}
|
||||
|
||||
export type PartnerAccountQuotaChargeTransactionCreateNestedManyWithoutPartnerInput = {
|
||||
@@ -480,7 +482,7 @@ export type PartnerAccountQuotaChargeTransactionUncheckedUpdateManyWithoutPartne
|
||||
deleteMany?: Prisma.PartnerAccountQuotaChargeTransactionScalarWhereInput | Prisma.PartnerAccountQuotaChargeTransactionScalarWhereInput[]
|
||||
}
|
||||
|
||||
export type PartnerAccountQuotaChargeTransactionCreateWithoutAllocationsInput = {
|
||||
export type PartnerAccountQuotaChargeTransactionCreateWithoutCreditsInput = {
|
||||
id?: string
|
||||
activation_expires_at: Date | string
|
||||
tracking_code: string
|
||||
@@ -490,7 +492,7 @@ export type PartnerAccountQuotaChargeTransactionCreateWithoutAllocationsInput =
|
||||
partner: Prisma.PartnerCreateNestedOneWithoutAccount_quota_charge_transactionsInput
|
||||
}
|
||||
|
||||
export type PartnerAccountQuotaChargeTransactionUncheckedCreateWithoutAllocationsInput = {
|
||||
export type PartnerAccountQuotaChargeTransactionUncheckedCreateWithoutCreditsInput = {
|
||||
id?: string
|
||||
activation_expires_at: Date | string
|
||||
tracking_code: string
|
||||
@@ -500,23 +502,23 @@ export type PartnerAccountQuotaChargeTransactionUncheckedCreateWithoutAllocation
|
||||
partner_id: string
|
||||
}
|
||||
|
||||
export type PartnerAccountQuotaChargeTransactionCreateOrConnectWithoutAllocationsInput = {
|
||||
export type PartnerAccountQuotaChargeTransactionCreateOrConnectWithoutCreditsInput = {
|
||||
where: Prisma.PartnerAccountQuotaChargeTransactionWhereUniqueInput
|
||||
create: Prisma.XOR<Prisma.PartnerAccountQuotaChargeTransactionCreateWithoutAllocationsInput, Prisma.PartnerAccountQuotaChargeTransactionUncheckedCreateWithoutAllocationsInput>
|
||||
create: Prisma.XOR<Prisma.PartnerAccountQuotaChargeTransactionCreateWithoutCreditsInput, Prisma.PartnerAccountQuotaChargeTransactionUncheckedCreateWithoutCreditsInput>
|
||||
}
|
||||
|
||||
export type PartnerAccountQuotaChargeTransactionUpsertWithoutAllocationsInput = {
|
||||
update: Prisma.XOR<Prisma.PartnerAccountQuotaChargeTransactionUpdateWithoutAllocationsInput, Prisma.PartnerAccountQuotaChargeTransactionUncheckedUpdateWithoutAllocationsInput>
|
||||
create: Prisma.XOR<Prisma.PartnerAccountQuotaChargeTransactionCreateWithoutAllocationsInput, Prisma.PartnerAccountQuotaChargeTransactionUncheckedCreateWithoutAllocationsInput>
|
||||
export type PartnerAccountQuotaChargeTransactionUpsertWithoutCreditsInput = {
|
||||
update: Prisma.XOR<Prisma.PartnerAccountQuotaChargeTransactionUpdateWithoutCreditsInput, Prisma.PartnerAccountQuotaChargeTransactionUncheckedUpdateWithoutCreditsInput>
|
||||
create: Prisma.XOR<Prisma.PartnerAccountQuotaChargeTransactionCreateWithoutCreditsInput, Prisma.PartnerAccountQuotaChargeTransactionUncheckedCreateWithoutCreditsInput>
|
||||
where?: Prisma.PartnerAccountQuotaChargeTransactionWhereInput
|
||||
}
|
||||
|
||||
export type PartnerAccountQuotaChargeTransactionUpdateToOneWithWhereWithoutAllocationsInput = {
|
||||
export type PartnerAccountQuotaChargeTransactionUpdateToOneWithWhereWithoutCreditsInput = {
|
||||
where?: Prisma.PartnerAccountQuotaChargeTransactionWhereInput
|
||||
data: Prisma.XOR<Prisma.PartnerAccountQuotaChargeTransactionUpdateWithoutAllocationsInput, Prisma.PartnerAccountQuotaChargeTransactionUncheckedUpdateWithoutAllocationsInput>
|
||||
data: Prisma.XOR<Prisma.PartnerAccountQuotaChargeTransactionUpdateWithoutCreditsInput, Prisma.PartnerAccountQuotaChargeTransactionUncheckedUpdateWithoutCreditsInput>
|
||||
}
|
||||
|
||||
export type PartnerAccountQuotaChargeTransactionUpdateWithoutAllocationsInput = {
|
||||
export type PartnerAccountQuotaChargeTransactionUpdateWithoutCreditsInput = {
|
||||
id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
activation_expires_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
tracking_code?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
@@ -526,7 +528,7 @@ export type PartnerAccountQuotaChargeTransactionUpdateWithoutAllocationsInput =
|
||||
partner?: Prisma.PartnerUpdateOneRequiredWithoutAccount_quota_charge_transactionsNestedInput
|
||||
}
|
||||
|
||||
export type PartnerAccountQuotaChargeTransactionUncheckedUpdateWithoutAllocationsInput = {
|
||||
export type PartnerAccountQuotaChargeTransactionUncheckedUpdateWithoutCreditsInput = {
|
||||
id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
activation_expires_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
tracking_code?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
@@ -543,7 +545,7 @@ export type PartnerAccountQuotaChargeTransactionCreateWithoutPartnerInput = {
|
||||
purchased_count: number
|
||||
created_at?: Date | string
|
||||
updated_at?: Date | string
|
||||
allocations?: Prisma.PartnerAccountQuotaAllocationCreateNestedManyWithoutCharge_transactionInput
|
||||
credits?: Prisma.PartnerAccountQuotaCreditCreateNestedManyWithoutCharge_transactionInput
|
||||
}
|
||||
|
||||
export type PartnerAccountQuotaChargeTransactionUncheckedCreateWithoutPartnerInput = {
|
||||
@@ -553,7 +555,7 @@ export type PartnerAccountQuotaChargeTransactionUncheckedCreateWithoutPartnerInp
|
||||
purchased_count: number
|
||||
created_at?: Date | string
|
||||
updated_at?: Date | string
|
||||
allocations?: Prisma.PartnerAccountQuotaAllocationUncheckedCreateNestedManyWithoutCharge_transactionInput
|
||||
credits?: Prisma.PartnerAccountQuotaCreditUncheckedCreateNestedManyWithoutCharge_transactionInput
|
||||
}
|
||||
|
||||
export type PartnerAccountQuotaChargeTransactionCreateOrConnectWithoutPartnerInput = {
|
||||
@@ -611,7 +613,7 @@ export type PartnerAccountQuotaChargeTransactionUpdateWithoutPartnerInput = {
|
||||
purchased_count?: Prisma.IntFieldUpdateOperationsInput | number
|
||||
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
allocations?: Prisma.PartnerAccountQuotaAllocationUpdateManyWithoutCharge_transactionNestedInput
|
||||
credits?: Prisma.PartnerAccountQuotaCreditUpdateManyWithoutCharge_transactionNestedInput
|
||||
}
|
||||
|
||||
export type PartnerAccountQuotaChargeTransactionUncheckedUpdateWithoutPartnerInput = {
|
||||
@@ -621,7 +623,7 @@ export type PartnerAccountQuotaChargeTransactionUncheckedUpdateWithoutPartnerInp
|
||||
purchased_count?: Prisma.IntFieldUpdateOperationsInput | number
|
||||
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
allocations?: Prisma.PartnerAccountQuotaAllocationUncheckedUpdateManyWithoutCharge_transactionNestedInput
|
||||
credits?: Prisma.PartnerAccountQuotaCreditUncheckedUpdateManyWithoutCharge_transactionNestedInput
|
||||
}
|
||||
|
||||
export type PartnerAccountQuotaChargeTransactionUncheckedUpdateManyWithoutPartnerInput = {
|
||||
@@ -639,11 +641,11 @@ export type PartnerAccountQuotaChargeTransactionUncheckedUpdateManyWithoutPartne
|
||||
*/
|
||||
|
||||
export type PartnerAccountQuotaChargeTransactionCountOutputType = {
|
||||
allocations: number
|
||||
credits: number
|
||||
}
|
||||
|
||||
export type PartnerAccountQuotaChargeTransactionCountOutputTypeSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
||||
allocations?: boolean | PartnerAccountQuotaChargeTransactionCountOutputTypeCountAllocationsArgs
|
||||
credits?: boolean | PartnerAccountQuotaChargeTransactionCountOutputTypeCountCreditsArgs
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -659,8 +661,8 @@ export type PartnerAccountQuotaChargeTransactionCountOutputTypeDefaultArgs<ExtAr
|
||||
/**
|
||||
* PartnerAccountQuotaChargeTransactionCountOutputType without action
|
||||
*/
|
||||
export type PartnerAccountQuotaChargeTransactionCountOutputTypeCountAllocationsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
||||
where?: Prisma.PartnerAccountQuotaAllocationWhereInput
|
||||
export type PartnerAccountQuotaChargeTransactionCountOutputTypeCountCreditsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
||||
where?: Prisma.PartnerAccountQuotaCreditWhereInput
|
||||
}
|
||||
|
||||
|
||||
@@ -673,7 +675,7 @@ export type PartnerAccountQuotaChargeTransactionSelect<ExtArgs extends runtime.T
|
||||
updated_at?: boolean
|
||||
partner_id?: boolean
|
||||
partner?: boolean | Prisma.PartnerDefaultArgs<ExtArgs>
|
||||
allocations?: boolean | Prisma.PartnerAccountQuotaChargeTransaction$allocationsArgs<ExtArgs>
|
||||
credits?: boolean | Prisma.PartnerAccountQuotaChargeTransaction$creditsArgs<ExtArgs>
|
||||
_count?: boolean | Prisma.PartnerAccountQuotaChargeTransactionCountOutputTypeDefaultArgs<ExtArgs>
|
||||
}, ExtArgs["result"]["partnerAccountQuotaChargeTransaction"]>
|
||||
|
||||
@@ -692,7 +694,7 @@ export type PartnerAccountQuotaChargeTransactionSelectScalar = {
|
||||
export type PartnerAccountQuotaChargeTransactionOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "activation_expires_at" | "tracking_code" | "purchased_count" | "created_at" | "updated_at" | "partner_id", ExtArgs["result"]["partnerAccountQuotaChargeTransaction"]>
|
||||
export type PartnerAccountQuotaChargeTransactionInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
||||
partner?: boolean | Prisma.PartnerDefaultArgs<ExtArgs>
|
||||
allocations?: boolean | Prisma.PartnerAccountQuotaChargeTransaction$allocationsArgs<ExtArgs>
|
||||
credits?: boolean | Prisma.PartnerAccountQuotaChargeTransaction$creditsArgs<ExtArgs>
|
||||
_count?: boolean | Prisma.PartnerAccountQuotaChargeTransactionCountOutputTypeDefaultArgs<ExtArgs>
|
||||
}
|
||||
|
||||
@@ -700,7 +702,7 @@ export type $PartnerAccountQuotaChargeTransactionPayload<ExtArgs extends runtime
|
||||
name: "PartnerAccountQuotaChargeTransaction"
|
||||
objects: {
|
||||
partner: Prisma.$PartnerPayload<ExtArgs>
|
||||
allocations: Prisma.$PartnerAccountQuotaAllocationPayload<ExtArgs>[]
|
||||
credits: Prisma.$PartnerAccountQuotaCreditPayload<ExtArgs>[]
|
||||
}
|
||||
scalars: runtime.Types.Extensions.GetPayloadResult<{
|
||||
id: string
|
||||
@@ -1051,7 +1053,7 @@ readonly fields: PartnerAccountQuotaChargeTransactionFieldRefs;
|
||||
export interface Prisma__PartnerAccountQuotaChargeTransactionClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
|
||||
readonly [Symbol.toStringTag]: "PrismaPromise"
|
||||
partner<T extends Prisma.PartnerDefaultArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.PartnerDefaultArgs<ExtArgs>>): Prisma.Prisma__PartnerClient<runtime.Types.Result.GetResult<Prisma.$PartnerPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>
|
||||
allocations<T extends Prisma.PartnerAccountQuotaChargeTransaction$allocationsArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.PartnerAccountQuotaChargeTransaction$allocationsArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$PartnerAccountQuotaAllocationPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
|
||||
credits<T extends Prisma.PartnerAccountQuotaChargeTransaction$creditsArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.PartnerAccountQuotaChargeTransaction$creditsArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$PartnerAccountQuotaCreditPayload<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.
|
||||
@@ -1436,27 +1438,27 @@ export type PartnerAccountQuotaChargeTransactionDeleteManyArgs<ExtArgs extends r
|
||||
}
|
||||
|
||||
/**
|
||||
* PartnerAccountQuotaChargeTransaction.allocations
|
||||
* PartnerAccountQuotaChargeTransaction.credits
|
||||
*/
|
||||
export type PartnerAccountQuotaChargeTransaction$allocationsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
||||
export type PartnerAccountQuotaChargeTransaction$creditsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
||||
/**
|
||||
* Select specific fields to fetch from the PartnerAccountQuotaAllocation
|
||||
* Select specific fields to fetch from the PartnerAccountQuotaCredit
|
||||
*/
|
||||
select?: Prisma.PartnerAccountQuotaAllocationSelect<ExtArgs> | null
|
||||
select?: Prisma.PartnerAccountQuotaCreditSelect<ExtArgs> | null
|
||||
/**
|
||||
* Omit specific fields from the PartnerAccountQuotaAllocation
|
||||
* Omit specific fields from the PartnerAccountQuotaCredit
|
||||
*/
|
||||
omit?: Prisma.PartnerAccountQuotaAllocationOmit<ExtArgs> | null
|
||||
omit?: Prisma.PartnerAccountQuotaCreditOmit<ExtArgs> | null
|
||||
/**
|
||||
* Choose, which related nodes to fetch as well
|
||||
*/
|
||||
include?: Prisma.PartnerAccountQuotaAllocationInclude<ExtArgs> | null
|
||||
where?: Prisma.PartnerAccountQuotaAllocationWhereInput
|
||||
orderBy?: Prisma.PartnerAccountQuotaAllocationOrderByWithRelationInput | Prisma.PartnerAccountQuotaAllocationOrderByWithRelationInput[]
|
||||
cursor?: Prisma.PartnerAccountQuotaAllocationWhereUniqueInput
|
||||
include?: Prisma.PartnerAccountQuotaCreditInclude<ExtArgs> | null
|
||||
where?: Prisma.PartnerAccountQuotaCreditWhereInput
|
||||
orderBy?: Prisma.PartnerAccountQuotaCreditOrderByWithRelationInput | Prisma.PartnerAccountQuotaCreditOrderByWithRelationInput[]
|
||||
cursor?: Prisma.PartnerAccountQuotaCreditWhereUniqueInput
|
||||
take?: number
|
||||
skip?: number
|
||||
distinct?: Prisma.PartnerAccountQuotaAllocationScalarFieldEnum | Prisma.PartnerAccountQuotaAllocationScalarFieldEnum[]
|
||||
distinct?: Prisma.PartnerAccountQuotaCreditScalarFieldEnum | Prisma.PartnerAccountQuotaCreditScalarFieldEnum[]
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user