feat: refactor ComplexPosesService to remove unused defaultInsert method and improve findAll logic
fix: update PartnersService to use 'isNot' instead of 'not' for allocation checks refactor: enhance BusinessActivityComplexesService to validate license activation before creating a complex fix: adjust ComplexPosesService to ensure account allocation checks are accurate and handle errors properly refactor: modify ConsumerMiddleware to set consumerData instead of partnerData for better clarity feat: expand SaleInvoicesService to include additional fields in the invoice selection chore: update business-activities module to include accounts-charge module for better organization fix: ensure ComplexPosesService correctly handles account allocation during POS creation feat: implement PartnerBusinessActivityAccountsCharge module with create functionality for account charges refactor: streamline getPartnerBusinessActivityAllocationLimits utility for better clarity and functionality chore: add migration script to update database schema with necessary constraints and foreign keys feat: create DTO for accounts charge to validate incoming data
This commit is contained in:
@@ -0,0 +1,53 @@
|
|||||||
|
/*
|
||||||
|
Warnings:
|
||||||
|
|
||||||
|
- You are about to drop the column `allocation_id` on the `partner_account_quota_credit` table. All the data in the column will be lost.
|
||||||
|
- A unique constraint covering the columns `[economic_code,consumer_id]` on the table `business_activities` will be added. If there are existing duplicate values, this will fail.
|
||||||
|
- A unique constraint covering the columns `[credit_id]` on the table `license_account_allocation` will be added. If there are existing duplicate values, this will fail.
|
||||||
|
- Made the column `account_id` on table `poses` required. This step will fail if there are existing NULL values in that column.
|
||||||
|
|
||||||
|
*/
|
||||||
|
-- DropForeignKey
|
||||||
|
ALTER TABLE `license_renew` DROP FOREIGN KEY `license_renew_activation_id_fkey`;
|
||||||
|
|
||||||
|
-- DropForeignKey
|
||||||
|
ALTER TABLE `partner_account_quota_credit` DROP FOREIGN KEY `partner_account_quota_credit_allocation_id_fkey`;
|
||||||
|
|
||||||
|
-- DropForeignKey
|
||||||
|
ALTER TABLE `poses` DROP FOREIGN KEY `poses_account_id_fkey`;
|
||||||
|
|
||||||
|
-- DropIndex
|
||||||
|
DROP INDEX `business_activities_economic_code_key` ON `business_activities`;
|
||||||
|
|
||||||
|
-- DropIndex
|
||||||
|
DROP INDEX `license_renew_activation_id_fkey` ON `license_renew`;
|
||||||
|
|
||||||
|
-- DropIndex
|
||||||
|
DROP INDEX `partner_account_quota_credit_allocation_id_key` ON `partner_account_quota_credit`;
|
||||||
|
|
||||||
|
-- AlterTable
|
||||||
|
ALTER TABLE `license_account_allocation` ADD COLUMN `credit_id` VARCHAR(191) NULL;
|
||||||
|
|
||||||
|
-- AlterTable
|
||||||
|
ALTER TABLE `license_renew` MODIFY `activation_id` VARCHAR(191) NULL;
|
||||||
|
|
||||||
|
-- AlterTable
|
||||||
|
ALTER TABLE `partner_account_quota_credit` DROP COLUMN `allocation_id`;
|
||||||
|
|
||||||
|
-- AlterTable
|
||||||
|
ALTER TABLE `poses` MODIFY `account_id` VARCHAR(191) NOT NULL;
|
||||||
|
|
||||||
|
-- CreateIndex
|
||||||
|
CREATE UNIQUE INDEX `business_activities_economic_code_consumer_id_key` ON `business_activities`(`economic_code`, `consumer_id`);
|
||||||
|
|
||||||
|
-- CreateIndex
|
||||||
|
CREATE UNIQUE INDEX `license_account_allocation_credit_id_key` ON `license_account_allocation`(`credit_id`);
|
||||||
|
|
||||||
|
-- AddForeignKey
|
||||||
|
ALTER TABLE `poses` ADD CONSTRAINT `poses_account_id_fkey` FOREIGN KEY (`account_id`) REFERENCES `consumer_accounts`(`id`) ON DELETE RESTRICT ON UPDATE CASCADE;
|
||||||
|
|
||||||
|
-- AddForeignKey
|
||||||
|
ALTER TABLE `license_renew` ADD CONSTRAINT `license_renew_activation_id_fkey` FOREIGN KEY (`activation_id`) REFERENCES `licenses_activated`(`id`) ON DELETE SET NULL ON UPDATE CASCADE;
|
||||||
|
|
||||||
|
-- AddForeignKey
|
||||||
|
ALTER TABLE `license_account_allocation` ADD CONSTRAINT `license_account_allocation_credit_id_fkey` FOREIGN KEY (`credit_id`) REFERENCES `partner_account_quota_credit`(`id`) ON DELETE SET NULL ON UPDATE CASCADE;
|
||||||
@@ -44,7 +44,7 @@ model Consumer {
|
|||||||
|
|
||||||
model BusinessActivity {
|
model BusinessActivity {
|
||||||
id String @id @default(ulid())
|
id String @id @default(ulid())
|
||||||
economic_code String @unique()
|
economic_code String
|
||||||
name String
|
name String
|
||||||
|
|
||||||
created_at DateTime @default(now()) @db.Timestamp(0)
|
created_at DateTime @default(now()) @db.Timestamp(0)
|
||||||
@@ -60,6 +60,7 @@ model BusinessActivity {
|
|||||||
permission_businesses PermissionBusiness[]
|
permission_businesses PermissionBusiness[]
|
||||||
license_activation LicenseActivation?
|
license_activation LicenseActivation?
|
||||||
|
|
||||||
|
@@unique([economic_code, consumer_id])
|
||||||
@@map("business_activities")
|
@@map("business_activities")
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -103,12 +104,12 @@ model Pos {
|
|||||||
device_id String?
|
device_id String?
|
||||||
device Device? @relation(fields: [device_id], references: [id])
|
device Device? @relation(fields: [device_id], references: [id])
|
||||||
|
|
||||||
account_id String? @unique
|
|
||||||
account ConsumerAccount? @relation(fields: [account_id], references: [id])
|
|
||||||
|
|
||||||
provider_id String?
|
provider_id String?
|
||||||
provider Provider? @relation(fields: [provider_id], references: [id])
|
provider Provider? @relation(fields: [provider_id], references: [id])
|
||||||
|
|
||||||
|
account_id String @unique
|
||||||
|
account ConsumerAccount @relation(fields: [account_id], references: [id])
|
||||||
|
|
||||||
permission_pos PermissionPos[]
|
permission_pos PermissionPos[]
|
||||||
sales_invoices SalesInvoice[]
|
sales_invoices SalesInvoice[]
|
||||||
|
|
||||||
|
|||||||
@@ -77,8 +77,8 @@ model LicenseRenew {
|
|||||||
charge_transaction_id String
|
charge_transaction_id String
|
||||||
charge_transaction LicenseRenewChargeTransaction @relation(fields: [charge_transaction_id], references: [id])
|
charge_transaction LicenseRenewChargeTransaction @relation(fields: [charge_transaction_id], references: [id])
|
||||||
|
|
||||||
activation_id String
|
activation_id String?
|
||||||
activation LicenseActivation @relation(fields: [activation_id], references: [id])
|
activation LicenseActivation? @relation(fields: [activation_id], references: [id])
|
||||||
|
|
||||||
@@map("license_renew")
|
@@map("license_renew")
|
||||||
}
|
}
|
||||||
@@ -109,8 +109,7 @@ model PartnerAccountQuotaCredit {
|
|||||||
charge_transaction_id String?
|
charge_transaction_id String?
|
||||||
charge_transaction PartnerAccountQuotaChargeTransaction? @relation(fields: [charge_transaction_id], references: [id])
|
charge_transaction PartnerAccountQuotaChargeTransaction? @relation(fields: [charge_transaction_id], references: [id])
|
||||||
|
|
||||||
allocation_id String? @unique
|
allocation LicenseAccountAllocation?
|
||||||
allocation LicenseAccountAllocation? @relation(fields: [allocation_id], references: [id])
|
|
||||||
|
|
||||||
@@map("partner_account_quota_credit")
|
@@map("partner_account_quota_credit")
|
||||||
}
|
}
|
||||||
@@ -127,7 +126,8 @@ model LicenseAccountAllocation {
|
|||||||
account_id String? @unique
|
account_id String? @unique
|
||||||
account ConsumerAccount? @relation(fields: [account_id], references: [id])
|
account ConsumerAccount? @relation(fields: [account_id], references: [id])
|
||||||
|
|
||||||
partner_account_quota_credit PartnerAccountQuotaCredit?
|
credit_id String? @unique
|
||||||
|
credit PartnerAccountQuotaCredit? @relation(fields: [credit_id], references: [id])
|
||||||
|
|
||||||
@@map("license_account_allocation")
|
@@map("license_account_allocation")
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ model PartnerAccount {
|
|||||||
created_at DateTime @default(now()) @db.Timestamp(0)
|
created_at DateTime @default(now()) @db.Timestamp(0)
|
||||||
updated_at DateTime @default(now()) @updatedAt @db.Timestamp(0)
|
updated_at DateTime @default(now()) @updatedAt @db.Timestamp(0)
|
||||||
|
|
||||||
partner_id String @unique
|
partner_id String
|
||||||
partner Partner @relation(fields: [partner_id], references: [id])
|
partner Partner @relation(fields: [partner_id], references: [id])
|
||||||
|
|
||||||
account_id String @unique
|
account_id String @unique
|
||||||
|
|||||||
+25
-8
@@ -1,6 +1,6 @@
|
|||||||
import { PasswordUtil } from '@/common/utils/password.util'
|
import { PasswordUtil } from '@/common/utils/password.util'
|
||||||
import { generateTrackingCode } from '@/common/utils/tracking-code-generator.util'
|
import { generateTrackingCode } from '@/common/utils/tracking-code-generator.util'
|
||||||
import { GoodPricingModel, POSType, UnitType } from '@/generated/prisma/enums'
|
import { GoodPricingModel, UnitType } from '@/generated/prisma/enums'
|
||||||
import { GoodCreateInput, GoodCreateManyInput } from '@/generated/prisma/models'
|
import { GoodCreateInput, GoodCreateManyInput } from '@/generated/prisma/models'
|
||||||
import { prisma } from '../src/lib/prisma'
|
import { prisma } from '../src/lib/prisma'
|
||||||
|
|
||||||
@@ -377,13 +377,30 @@ async function main() {
|
|||||||
name: 'فروشگاه طلای مرکزی',
|
name: 'فروشگاه طلای مرکزی',
|
||||||
address: 'تهران، خیابان جمهوری',
|
address: 'تهران، خیابان جمهوری',
|
||||||
branch_code: '12332',
|
branch_code: '12332',
|
||||||
pos_list: {
|
|
||||||
create: {
|
// pos_list: {
|
||||||
name: 'لاین ۱',
|
// create: {
|
||||||
pos_type: POSType.WEB,
|
// name: 'لاین ۱',
|
||||||
status: 'ACTIVE',
|
// pos_type: POSType.WEB,
|
||||||
},
|
// status: 'ACTIVE',
|
||||||
},
|
// account: {
|
||||||
|
// create: {
|
||||||
|
// role: 'OPERATOR',
|
||||||
|
// account_allocation: {
|
||||||
|
|
||||||
|
// },
|
||||||
|
// account: {
|
||||||
|
// create: {
|
||||||
|
// username: 'line1',
|
||||||
|
// password: await PasswordUtil.hash('123456'),
|
||||||
|
// status: 'ACTIVE',
|
||||||
|
// type: 'CONSUMER',
|
||||||
|
// },
|
||||||
|
// },
|
||||||
|
// }
|
||||||
|
// }
|
||||||
|
// },
|
||||||
|
// },
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -11,7 +11,7 @@ declare global {
|
|||||||
namespace Express {
|
namespace Express {
|
||||||
interface Request {
|
interface Request {
|
||||||
decodedToken?: AccessTokenPayload
|
decodedToken?: AccessTokenPayload
|
||||||
partnerData?: IConsumerPayload
|
consumerData?: IConsumerPayload
|
||||||
partnerData?: IPartnerPayload
|
partnerData?: IPartnerPayload
|
||||||
posData?: IPosPayload
|
posData?: IPosPayload
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -11,7 +11,7 @@ export const ConsumerInfo = createParamDecorator(
|
|||||||
(data: keyof IConsumerPayload | undefined, ctx: ExecutionContext) => {
|
(data: keyof IConsumerPayload | undefined, ctx: ExecutionContext) => {
|
||||||
try {
|
try {
|
||||||
const request = ctx.switchToHttp().getRequest<Request>()
|
const request = ctx.switchToHttp().getRequest<Request>()
|
||||||
const info = request.partnerData
|
const info = request.consumerData
|
||||||
|
|
||||||
if (!info) {
|
if (!info) {
|
||||||
throw new ForbiddenException('شما به این بخش دسترسی ندارید')
|
throw new ForbiddenException('شما به این بخش دسترسی ندارید')
|
||||||
|
|||||||
@@ -18,104 +18,124 @@ export class PosGuard {
|
|||||||
throw new ForbiddenException('شما دسترسی لازم را ندارید.')
|
throw new ForbiddenException('شما دسترسی لازم را ندارید.')
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const now = new Date()
|
||||||
const cookie = req.cookies
|
const cookie = req.cookies
|
||||||
const { posId } = cookie
|
const { posId } = cookie
|
||||||
|
|
||||||
if (!posId) {
|
if (!posId) {
|
||||||
return false
|
throw new ForbiddenException('شما دسترسی لازم را ندارید.')
|
||||||
}
|
}
|
||||||
|
|
||||||
const pos = await this.prisma.pos.findUnique({
|
const checkLicenseActivation = await this.prisma.licenseAccountAllocation.findFirst({
|
||||||
where: {
|
where: {
|
||||||
id: posId,
|
account_id: tokenPayload.account_id,
|
||||||
complex: {
|
|
||||||
business_activity: {
|
|
||||||
consumer: {
|
|
||||||
consumer_accounts: {
|
|
||||||
some: {
|
|
||||||
id: tokenPayload.account_id,
|
|
||||||
},
|
|
||||||
},
|
|
||||||
},
|
|
||||||
},
|
|
||||||
},
|
|
||||||
},
|
|
||||||
select: {
|
|
||||||
complex: {
|
|
||||||
select: {
|
|
||||||
id: true,
|
|
||||||
business_activity: {
|
|
||||||
select: {
|
|
||||||
id: true,
|
|
||||||
license_activation: {
|
license_activation: {
|
||||||
select: {
|
OR: [
|
||||||
expires_at: true,
|
{
|
||||||
},
|
expires_at: {
|
||||||
|
gte: now,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
{
|
||||||
|
license_renews: {
|
||||||
|
some: {
|
||||||
|
expires_at: {
|
||||||
|
gte: now,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
],
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
|
||||||
if (!pos) {
|
if (!checkLicenseActivation) {
|
||||||
throw new ForbiddenException('شما دسترسی لازم را ندارید.')
|
throw new ForbiddenException(
|
||||||
}
|
'متاسفانه لایسنس شما منقضی شده است. لطفا برای تمدید لایسنس با پشتیبانی تماس بگیرید.',
|
||||||
|
|
||||||
if (req.method !== 'GET') {
|
|
||||||
if (!pos.complex.business_activity.license_activation) {
|
|
||||||
throw new ForbiddenException('برای کاربر شما لایسنس ایجاد نشده است.')
|
|
||||||
}
|
|
||||||
if (
|
|
||||||
pos.complex.business_activity.license_activation.expires_at &&
|
|
||||||
new Date().getTime() >
|
|
||||||
new Date(pos.complex.business_activity.license_activation.expires_at).getTime()
|
|
||||||
) {
|
|
||||||
throw new ForbiddenException('لایسنس شما منقضی شده است.')
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
const foundedAccount = await this.prisma.consumerAccount.findUnique({
|
|
||||||
where: {
|
|
||||||
id: tokenPayload.account_id,
|
|
||||||
},
|
|
||||||
select: {
|
|
||||||
role: true,
|
|
||||||
},
|
|
||||||
})
|
|
||||||
|
|
||||||
if (foundedAccount?.role === 'OWNER') {
|
|
||||||
return true
|
|
||||||
}
|
|
||||||
|
|
||||||
const accountPermissions = await this.prisma.permissionConsumer.findUnique({
|
|
||||||
where: {
|
|
||||||
consumer_account_id: tokenPayload.account_id,
|
|
||||||
},
|
|
||||||
select: {
|
|
||||||
pos_permissions: true,
|
|
||||||
business_permissions: true,
|
|
||||||
complex_permissions: true,
|
|
||||||
},
|
|
||||||
})
|
|
||||||
|
|
||||||
if (accountPermissions?.pos_permissions.some(p => p.pos_id === posId)) {
|
|
||||||
return true
|
|
||||||
}
|
|
||||||
if (
|
|
||||||
accountPermissions?.complex_permissions.some(p => p.complex_id === pos.complex.id)
|
|
||||||
) {
|
|
||||||
return true
|
|
||||||
}
|
|
||||||
if (
|
|
||||||
accountPermissions?.business_permissions.some(
|
|
||||||
p => p.business_id === pos.complex.business_activity.id,
|
|
||||||
)
|
)
|
||||||
) {
|
|
||||||
return true
|
|
||||||
}
|
}
|
||||||
|
|
||||||
throw new ForbiddenException('شما دسترسی لازم را ندارید.')
|
return true
|
||||||
|
// const pos = await this.prisma.pos.findUnique({
|
||||||
|
// where: {
|
||||||
|
// id: posId,
|
||||||
|
// account_id: tokenPayload.account_id,
|
||||||
|
// },
|
||||||
|
// select: {
|
||||||
|
// complex: {
|
||||||
|
// select: {
|
||||||
|
// id: true,
|
||||||
|
// business_activity: {
|
||||||
|
// select: {
|
||||||
|
// id: true,
|
||||||
|
// license_activation: {
|
||||||
|
// select: {
|
||||||
|
// expires_at: true,
|
||||||
|
// },
|
||||||
|
// },
|
||||||
|
// },
|
||||||
|
// },
|
||||||
|
// },
|
||||||
|
// },
|
||||||
|
// },
|
||||||
|
// })
|
||||||
|
|
||||||
|
// if (!pos) {
|
||||||
|
// throw new ForbiddenException('شما دسترسی لازم را ندارید.')
|
||||||
|
// }
|
||||||
|
|
||||||
|
// if (req.method !== 'GET') {
|
||||||
|
// if (!pos.complex.business_activity.license_activation) {
|
||||||
|
// throw new ForbiddenException('برای کاربر شما لایسنس ایجاد نشده است.')
|
||||||
|
// }
|
||||||
|
// if (
|
||||||
|
// pos.complex.business_activity.license_activation.expires_at &&
|
||||||
|
// new Date().getTime() >
|
||||||
|
// new Date(pos.complex.business_activity.license_activation.expires_at).getTime()
|
||||||
|
// ) {
|
||||||
|
// throw new ForbiddenException('لایسنس شما منقضی شده است.')
|
||||||
|
// }
|
||||||
|
// }
|
||||||
|
|
||||||
|
// const foundedAccount = await this.prisma.consumerAccount.findUnique({
|
||||||
|
// where: {
|
||||||
|
// id: tokenPayload.account_id,
|
||||||
|
// },
|
||||||
|
// select: {
|
||||||
|
// role: true,
|
||||||
|
// },
|
||||||
|
// })
|
||||||
|
|
||||||
|
// if (foundedAccount?.role === 'OWNER') {
|
||||||
|
// return true
|
||||||
|
// }
|
||||||
|
|
||||||
|
// const accountPermissions = await this.prisma.permissionConsumer.findUnique({
|
||||||
|
// where: {
|
||||||
|
// consumer_account_id: tokenPayload.account_id,
|
||||||
|
// },
|
||||||
|
// select: {
|
||||||
|
// pos_permissions: true,
|
||||||
|
// business_permissions: true,
|
||||||
|
// complex_permissions: true,
|
||||||
|
// },
|
||||||
|
// })
|
||||||
|
|
||||||
|
// if (accountPermissions?.pos_permissions.some(p => p.pos_id === posId)) {
|
||||||
|
// return true
|
||||||
|
// }
|
||||||
|
// if (
|
||||||
|
// accountPermissions?.complex_permissions.some(p => p.complex_id === pos.complex.id)
|
||||||
|
// ) {
|
||||||
|
// return true
|
||||||
|
// }
|
||||||
|
// if (
|
||||||
|
// accountPermissions?.business_permissions.some(
|
||||||
|
// p => p.business_id === pos.complex.business_activity.id,
|
||||||
|
// )
|
||||||
|
// ) {
|
||||||
|
// return true
|
||||||
|
// }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
File diff suppressed because one or more lines are too long
@@ -3221,8 +3221,8 @@ export const PosScalarFieldEnum = {
|
|||||||
updated_at: 'updated_at',
|
updated_at: 'updated_at',
|
||||||
complex_id: 'complex_id',
|
complex_id: 'complex_id',
|
||||||
device_id: 'device_id',
|
device_id: 'device_id',
|
||||||
account_id: 'account_id',
|
provider_id: 'provider_id',
|
||||||
provider_id: 'provider_id'
|
account_id: 'account_id'
|
||||||
} as const
|
} as const
|
||||||
|
|
||||||
export type PosScalarFieldEnum = (typeof PosScalarFieldEnum)[keyof typeof PosScalarFieldEnum]
|
export type PosScalarFieldEnum = (typeof PosScalarFieldEnum)[keyof typeof PosScalarFieldEnum]
|
||||||
@@ -3329,8 +3329,7 @@ export const PartnerAccountQuotaCreditScalarFieldEnum = {
|
|||||||
id: 'id',
|
id: 'id',
|
||||||
created_at: 'created_at',
|
created_at: 'created_at',
|
||||||
updated_at: 'updated_at',
|
updated_at: 'updated_at',
|
||||||
charge_transaction_id: 'charge_transaction_id',
|
charge_transaction_id: 'charge_transaction_id'
|
||||||
allocation_id: 'allocation_id'
|
|
||||||
} as const
|
} as const
|
||||||
|
|
||||||
export type PartnerAccountQuotaCreditScalarFieldEnum = (typeof PartnerAccountQuotaCreditScalarFieldEnum)[keyof typeof PartnerAccountQuotaCreditScalarFieldEnum]
|
export type PartnerAccountQuotaCreditScalarFieldEnum = (typeof PartnerAccountQuotaCreditScalarFieldEnum)[keyof typeof PartnerAccountQuotaCreditScalarFieldEnum]
|
||||||
@@ -3341,7 +3340,8 @@ export const LicenseAccountAllocationScalarFieldEnum = {
|
|||||||
created_at: 'created_at',
|
created_at: 'created_at',
|
||||||
updated_at: 'updated_at',
|
updated_at: 'updated_at',
|
||||||
license_activation_id: 'license_activation_id',
|
license_activation_id: 'license_activation_id',
|
||||||
account_id: 'account_id'
|
account_id: 'account_id',
|
||||||
|
credit_id: 'credit_id'
|
||||||
} as const
|
} as const
|
||||||
|
|
||||||
export type LicenseAccountAllocationScalarFieldEnum = (typeof LicenseAccountAllocationScalarFieldEnum)[keyof typeof LicenseAccountAllocationScalarFieldEnum]
|
export type LicenseAccountAllocationScalarFieldEnum = (typeof LicenseAccountAllocationScalarFieldEnum)[keyof typeof LicenseAccountAllocationScalarFieldEnum]
|
||||||
@@ -3754,8 +3754,8 @@ export const PosOrderByRelevanceFieldEnum = {
|
|||||||
serial_number: 'serial_number',
|
serial_number: 'serial_number',
|
||||||
complex_id: 'complex_id',
|
complex_id: 'complex_id',
|
||||||
device_id: 'device_id',
|
device_id: 'device_id',
|
||||||
account_id: 'account_id',
|
provider_id: 'provider_id',
|
||||||
provider_id: 'provider_id'
|
account_id: 'account_id'
|
||||||
} as const
|
} as const
|
||||||
|
|
||||||
export type PosOrderByRelevanceFieldEnum = (typeof PosOrderByRelevanceFieldEnum)[keyof typeof PosOrderByRelevanceFieldEnum]
|
export type PosOrderByRelevanceFieldEnum = (typeof PosOrderByRelevanceFieldEnum)[keyof typeof PosOrderByRelevanceFieldEnum]
|
||||||
@@ -3834,8 +3834,7 @@ export type PartnerAccountQuotaChargeTransactionOrderByRelevanceFieldEnum = (typ
|
|||||||
|
|
||||||
export const PartnerAccountQuotaCreditOrderByRelevanceFieldEnum = {
|
export const PartnerAccountQuotaCreditOrderByRelevanceFieldEnum = {
|
||||||
id: 'id',
|
id: 'id',
|
||||||
charge_transaction_id: 'charge_transaction_id',
|
charge_transaction_id: 'charge_transaction_id'
|
||||||
allocation_id: 'allocation_id'
|
|
||||||
} as const
|
} as const
|
||||||
|
|
||||||
export type PartnerAccountQuotaCreditOrderByRelevanceFieldEnum = (typeof PartnerAccountQuotaCreditOrderByRelevanceFieldEnum)[keyof typeof PartnerAccountQuotaCreditOrderByRelevanceFieldEnum]
|
export type PartnerAccountQuotaCreditOrderByRelevanceFieldEnum = (typeof PartnerAccountQuotaCreditOrderByRelevanceFieldEnum)[keyof typeof PartnerAccountQuotaCreditOrderByRelevanceFieldEnum]
|
||||||
@@ -3844,7 +3843,8 @@ export type PartnerAccountQuotaCreditOrderByRelevanceFieldEnum = (typeof Partner
|
|||||||
export const LicenseAccountAllocationOrderByRelevanceFieldEnum = {
|
export const LicenseAccountAllocationOrderByRelevanceFieldEnum = {
|
||||||
id: 'id',
|
id: 'id',
|
||||||
license_activation_id: 'license_activation_id',
|
license_activation_id: 'license_activation_id',
|
||||||
account_id: 'account_id'
|
account_id: 'account_id',
|
||||||
|
credit_id: 'credit_id'
|
||||||
} as const
|
} as const
|
||||||
|
|
||||||
export type LicenseAccountAllocationOrderByRelevanceFieldEnum = (typeof LicenseAccountAllocationOrderByRelevanceFieldEnum)[keyof typeof LicenseAccountAllocationOrderByRelevanceFieldEnum]
|
export type LicenseAccountAllocationOrderByRelevanceFieldEnum = (typeof LicenseAccountAllocationOrderByRelevanceFieldEnum)[keyof typeof LicenseAccountAllocationOrderByRelevanceFieldEnum]
|
||||||
|
|||||||
@@ -208,8 +208,8 @@ export const PosScalarFieldEnum = {
|
|||||||
updated_at: 'updated_at',
|
updated_at: 'updated_at',
|
||||||
complex_id: 'complex_id',
|
complex_id: 'complex_id',
|
||||||
device_id: 'device_id',
|
device_id: 'device_id',
|
||||||
account_id: 'account_id',
|
provider_id: 'provider_id',
|
||||||
provider_id: 'provider_id'
|
account_id: 'account_id'
|
||||||
} as const
|
} as const
|
||||||
|
|
||||||
export type PosScalarFieldEnum = (typeof PosScalarFieldEnum)[keyof typeof PosScalarFieldEnum]
|
export type PosScalarFieldEnum = (typeof PosScalarFieldEnum)[keyof typeof PosScalarFieldEnum]
|
||||||
@@ -316,8 +316,7 @@ export const PartnerAccountQuotaCreditScalarFieldEnum = {
|
|||||||
id: 'id',
|
id: 'id',
|
||||||
created_at: 'created_at',
|
created_at: 'created_at',
|
||||||
updated_at: 'updated_at',
|
updated_at: 'updated_at',
|
||||||
charge_transaction_id: 'charge_transaction_id',
|
charge_transaction_id: 'charge_transaction_id'
|
||||||
allocation_id: 'allocation_id'
|
|
||||||
} as const
|
} as const
|
||||||
|
|
||||||
export type PartnerAccountQuotaCreditScalarFieldEnum = (typeof PartnerAccountQuotaCreditScalarFieldEnum)[keyof typeof PartnerAccountQuotaCreditScalarFieldEnum]
|
export type PartnerAccountQuotaCreditScalarFieldEnum = (typeof PartnerAccountQuotaCreditScalarFieldEnum)[keyof typeof PartnerAccountQuotaCreditScalarFieldEnum]
|
||||||
@@ -328,7 +327,8 @@ export const LicenseAccountAllocationScalarFieldEnum = {
|
|||||||
created_at: 'created_at',
|
created_at: 'created_at',
|
||||||
updated_at: 'updated_at',
|
updated_at: 'updated_at',
|
||||||
license_activation_id: 'license_activation_id',
|
license_activation_id: 'license_activation_id',
|
||||||
account_id: 'account_id'
|
account_id: 'account_id',
|
||||||
|
credit_id: 'credit_id'
|
||||||
} as const
|
} as const
|
||||||
|
|
||||||
export type LicenseAccountAllocationScalarFieldEnum = (typeof LicenseAccountAllocationScalarFieldEnum)[keyof typeof LicenseAccountAllocationScalarFieldEnum]
|
export type LicenseAccountAllocationScalarFieldEnum = (typeof LicenseAccountAllocationScalarFieldEnum)[keyof typeof LicenseAccountAllocationScalarFieldEnum]
|
||||||
@@ -741,8 +741,8 @@ export const PosOrderByRelevanceFieldEnum = {
|
|||||||
serial_number: 'serial_number',
|
serial_number: 'serial_number',
|
||||||
complex_id: 'complex_id',
|
complex_id: 'complex_id',
|
||||||
device_id: 'device_id',
|
device_id: 'device_id',
|
||||||
account_id: 'account_id',
|
provider_id: 'provider_id',
|
||||||
provider_id: 'provider_id'
|
account_id: 'account_id'
|
||||||
} as const
|
} as const
|
||||||
|
|
||||||
export type PosOrderByRelevanceFieldEnum = (typeof PosOrderByRelevanceFieldEnum)[keyof typeof PosOrderByRelevanceFieldEnum]
|
export type PosOrderByRelevanceFieldEnum = (typeof PosOrderByRelevanceFieldEnum)[keyof typeof PosOrderByRelevanceFieldEnum]
|
||||||
@@ -821,8 +821,7 @@ export type PartnerAccountQuotaChargeTransactionOrderByRelevanceFieldEnum = (typ
|
|||||||
|
|
||||||
export const PartnerAccountQuotaCreditOrderByRelevanceFieldEnum = {
|
export const PartnerAccountQuotaCreditOrderByRelevanceFieldEnum = {
|
||||||
id: 'id',
|
id: 'id',
|
||||||
charge_transaction_id: 'charge_transaction_id',
|
charge_transaction_id: 'charge_transaction_id'
|
||||||
allocation_id: 'allocation_id'
|
|
||||||
} as const
|
} as const
|
||||||
|
|
||||||
export type PartnerAccountQuotaCreditOrderByRelevanceFieldEnum = (typeof PartnerAccountQuotaCreditOrderByRelevanceFieldEnum)[keyof typeof PartnerAccountQuotaCreditOrderByRelevanceFieldEnum]
|
export type PartnerAccountQuotaCreditOrderByRelevanceFieldEnum = (typeof PartnerAccountQuotaCreditOrderByRelevanceFieldEnum)[keyof typeof PartnerAccountQuotaCreditOrderByRelevanceFieldEnum]
|
||||||
@@ -831,7 +830,8 @@ export type PartnerAccountQuotaCreditOrderByRelevanceFieldEnum = (typeof Partner
|
|||||||
export const LicenseAccountAllocationOrderByRelevanceFieldEnum = {
|
export const LicenseAccountAllocationOrderByRelevanceFieldEnum = {
|
||||||
id: 'id',
|
id: 'id',
|
||||||
license_activation_id: 'license_activation_id',
|
license_activation_id: 'license_activation_id',
|
||||||
account_id: 'account_id'
|
account_id: 'account_id',
|
||||||
|
credit_id: 'credit_id'
|
||||||
} as const
|
} as const
|
||||||
|
|
||||||
export type LicenseAccountAllocationOrderByRelevanceFieldEnum = (typeof LicenseAccountAllocationOrderByRelevanceFieldEnum)[keyof typeof LicenseAccountAllocationOrderByRelevanceFieldEnum]
|
export type LicenseAccountAllocationOrderByRelevanceFieldEnum = (typeof LicenseAccountAllocationOrderByRelevanceFieldEnum)[keyof typeof LicenseAccountAllocationOrderByRelevanceFieldEnum]
|
||||||
|
|||||||
@@ -223,10 +223,11 @@ export type BusinessActivityOrderByWithRelationInput = {
|
|||||||
|
|
||||||
export type BusinessActivityWhereUniqueInput = Prisma.AtLeast<{
|
export type BusinessActivityWhereUniqueInput = Prisma.AtLeast<{
|
||||||
id?: string
|
id?: string
|
||||||
economic_code?: string
|
economic_code_consumer_id?: Prisma.BusinessActivityEconomic_codeConsumer_idCompoundUniqueInput
|
||||||
AND?: Prisma.BusinessActivityWhereInput | Prisma.BusinessActivityWhereInput[]
|
AND?: Prisma.BusinessActivityWhereInput | Prisma.BusinessActivityWhereInput[]
|
||||||
OR?: Prisma.BusinessActivityWhereInput[]
|
OR?: Prisma.BusinessActivityWhereInput[]
|
||||||
NOT?: Prisma.BusinessActivityWhereInput | Prisma.BusinessActivityWhereInput[]
|
NOT?: Prisma.BusinessActivityWhereInput | Prisma.BusinessActivityWhereInput[]
|
||||||
|
economic_code?: Prisma.StringFilter<"BusinessActivity"> | string
|
||||||
name?: Prisma.StringFilter<"BusinessActivity"> | string
|
name?: Prisma.StringFilter<"BusinessActivity"> | string
|
||||||
created_at?: Prisma.DateTimeFilter<"BusinessActivity"> | Date | string
|
created_at?: Prisma.DateTimeFilter<"BusinessActivity"> | Date | string
|
||||||
updated_at?: Prisma.DateTimeFilter<"BusinessActivity"> | Date | string
|
updated_at?: Prisma.DateTimeFilter<"BusinessActivity"> | Date | string
|
||||||
@@ -237,7 +238,7 @@ export type BusinessActivityWhereUniqueInput = Prisma.AtLeast<{
|
|||||||
complexes?: Prisma.ComplexListRelationFilter
|
complexes?: Prisma.ComplexListRelationFilter
|
||||||
permission_businesses?: Prisma.PermissionBusinessListRelationFilter
|
permission_businesses?: Prisma.PermissionBusinessListRelationFilter
|
||||||
license_activation?: Prisma.XOR<Prisma.LicenseActivationNullableScalarRelationFilter, Prisma.LicenseActivationWhereInput> | null
|
license_activation?: Prisma.XOR<Prisma.LicenseActivationNullableScalarRelationFilter, Prisma.LicenseActivationWhereInput> | null
|
||||||
}, "id" | "economic_code">
|
}, "id" | "economic_code_consumer_id">
|
||||||
|
|
||||||
export type BusinessActivityOrderByWithAggregationInput = {
|
export type BusinessActivityOrderByWithAggregationInput = {
|
||||||
id?: Prisma.SortOrder
|
id?: Prisma.SortOrder
|
||||||
@@ -361,6 +362,11 @@ export type BusinessActivityOrderByRelevanceInput = {
|
|||||||
search: string
|
search: string
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export type BusinessActivityEconomic_codeConsumer_idCompoundUniqueInput = {
|
||||||
|
economic_code: string
|
||||||
|
consumer_id: string
|
||||||
|
}
|
||||||
|
|
||||||
export type BusinessActivityCountOrderByAggregateInput = {
|
export type BusinessActivityCountOrderByAggregateInput = {
|
||||||
id?: Prisma.SortOrder
|
id?: Prisma.SortOrder
|
||||||
economic_code?: Prisma.SortOrder
|
economic_code?: Prisma.SortOrder
|
||||||
|
|||||||
@@ -470,12 +470,10 @@ export type ConsumerAccountCreateNestedOneWithoutPosInput = {
|
|||||||
connect?: Prisma.ConsumerAccountWhereUniqueInput
|
connect?: Prisma.ConsumerAccountWhereUniqueInput
|
||||||
}
|
}
|
||||||
|
|
||||||
export type ConsumerAccountUpdateOneWithoutPosNestedInput = {
|
export type ConsumerAccountUpdateOneRequiredWithoutPosNestedInput = {
|
||||||
create?: Prisma.XOR<Prisma.ConsumerAccountCreateWithoutPosInput, Prisma.ConsumerAccountUncheckedCreateWithoutPosInput>
|
create?: Prisma.XOR<Prisma.ConsumerAccountCreateWithoutPosInput, Prisma.ConsumerAccountUncheckedCreateWithoutPosInput>
|
||||||
connectOrCreate?: Prisma.ConsumerAccountCreateOrConnectWithoutPosInput
|
connectOrCreate?: Prisma.ConsumerAccountCreateOrConnectWithoutPosInput
|
||||||
upsert?: Prisma.ConsumerAccountUpsertWithoutPosInput
|
upsert?: Prisma.ConsumerAccountUpsertWithoutPosInput
|
||||||
disconnect?: Prisma.ConsumerAccountWhereInput | boolean
|
|
||||||
delete?: Prisma.ConsumerAccountWhereInput | boolean
|
|
||||||
connect?: Prisma.ConsumerAccountWhereUniqueInput
|
connect?: Prisma.ConsumerAccountWhereUniqueInput
|
||||||
update?: Prisma.XOR<Prisma.XOR<Prisma.ConsumerAccountUpdateToOneWithWhereWithoutPosInput, Prisma.ConsumerAccountUpdateWithoutPosInput>, Prisma.ConsumerAccountUncheckedUpdateWithoutPosInput>
|
update?: Prisma.XOR<Prisma.XOR<Prisma.ConsumerAccountUpdateToOneWithWhereWithoutPosInput, Prisma.ConsumerAccountUpdateWithoutPosInput>, Prisma.ConsumerAccountUncheckedUpdateWithoutPosInput>
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -30,6 +30,7 @@ export type LicenseAccountAllocationMinAggregateOutputType = {
|
|||||||
updated_at: Date | null
|
updated_at: Date | null
|
||||||
license_activation_id: string | null
|
license_activation_id: string | null
|
||||||
account_id: string | null
|
account_id: string | null
|
||||||
|
credit_id: string | null
|
||||||
}
|
}
|
||||||
|
|
||||||
export type LicenseAccountAllocationMaxAggregateOutputType = {
|
export type LicenseAccountAllocationMaxAggregateOutputType = {
|
||||||
@@ -38,6 +39,7 @@ export type LicenseAccountAllocationMaxAggregateOutputType = {
|
|||||||
updated_at: Date | null
|
updated_at: Date | null
|
||||||
license_activation_id: string | null
|
license_activation_id: string | null
|
||||||
account_id: string | null
|
account_id: string | null
|
||||||
|
credit_id: string | null
|
||||||
}
|
}
|
||||||
|
|
||||||
export type LicenseAccountAllocationCountAggregateOutputType = {
|
export type LicenseAccountAllocationCountAggregateOutputType = {
|
||||||
@@ -46,6 +48,7 @@ export type LicenseAccountAllocationCountAggregateOutputType = {
|
|||||||
updated_at: number
|
updated_at: number
|
||||||
license_activation_id: number
|
license_activation_id: number
|
||||||
account_id: number
|
account_id: number
|
||||||
|
credit_id: number
|
||||||
_all: number
|
_all: number
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -56,6 +59,7 @@ export type LicenseAccountAllocationMinAggregateInputType = {
|
|||||||
updated_at?: true
|
updated_at?: true
|
||||||
license_activation_id?: true
|
license_activation_id?: true
|
||||||
account_id?: true
|
account_id?: true
|
||||||
|
credit_id?: true
|
||||||
}
|
}
|
||||||
|
|
||||||
export type LicenseAccountAllocationMaxAggregateInputType = {
|
export type LicenseAccountAllocationMaxAggregateInputType = {
|
||||||
@@ -64,6 +68,7 @@ export type LicenseAccountAllocationMaxAggregateInputType = {
|
|||||||
updated_at?: true
|
updated_at?: true
|
||||||
license_activation_id?: true
|
license_activation_id?: true
|
||||||
account_id?: true
|
account_id?: true
|
||||||
|
credit_id?: true
|
||||||
}
|
}
|
||||||
|
|
||||||
export type LicenseAccountAllocationCountAggregateInputType = {
|
export type LicenseAccountAllocationCountAggregateInputType = {
|
||||||
@@ -72,6 +77,7 @@ export type LicenseAccountAllocationCountAggregateInputType = {
|
|||||||
updated_at?: true
|
updated_at?: true
|
||||||
license_activation_id?: true
|
license_activation_id?: true
|
||||||
account_id?: true
|
account_id?: true
|
||||||
|
credit_id?: true
|
||||||
_all?: true
|
_all?: true
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -153,6 +159,7 @@ export type LicenseAccountAllocationGroupByOutputType = {
|
|||||||
updated_at: Date
|
updated_at: Date
|
||||||
license_activation_id: string | null
|
license_activation_id: string | null
|
||||||
account_id: string | null
|
account_id: string | null
|
||||||
|
credit_id: string | null
|
||||||
_count: LicenseAccountAllocationCountAggregateOutputType | null
|
_count: LicenseAccountAllocationCountAggregateOutputType | null
|
||||||
_min: LicenseAccountAllocationMinAggregateOutputType | null
|
_min: LicenseAccountAllocationMinAggregateOutputType | null
|
||||||
_max: LicenseAccountAllocationMaxAggregateOutputType | null
|
_max: LicenseAccountAllocationMaxAggregateOutputType | null
|
||||||
@@ -182,9 +189,10 @@ export type LicenseAccountAllocationWhereInput = {
|
|||||||
updated_at?: Prisma.DateTimeFilter<"LicenseAccountAllocation"> | Date | string
|
updated_at?: Prisma.DateTimeFilter<"LicenseAccountAllocation"> | Date | string
|
||||||
license_activation_id?: Prisma.StringNullableFilter<"LicenseAccountAllocation"> | string | null
|
license_activation_id?: Prisma.StringNullableFilter<"LicenseAccountAllocation"> | string | null
|
||||||
account_id?: Prisma.StringNullableFilter<"LicenseAccountAllocation"> | string | null
|
account_id?: Prisma.StringNullableFilter<"LicenseAccountAllocation"> | string | null
|
||||||
|
credit_id?: Prisma.StringNullableFilter<"LicenseAccountAllocation"> | string | null
|
||||||
license_activation?: Prisma.XOR<Prisma.LicenseActivationNullableScalarRelationFilter, Prisma.LicenseActivationWhereInput> | null
|
license_activation?: Prisma.XOR<Prisma.LicenseActivationNullableScalarRelationFilter, Prisma.LicenseActivationWhereInput> | null
|
||||||
account?: Prisma.XOR<Prisma.ConsumerAccountNullableScalarRelationFilter, Prisma.ConsumerAccountWhereInput> | null
|
account?: Prisma.XOR<Prisma.ConsumerAccountNullableScalarRelationFilter, Prisma.ConsumerAccountWhereInput> | null
|
||||||
partner_account_quota_credit?: Prisma.XOR<Prisma.PartnerAccountQuotaCreditNullableScalarRelationFilter, Prisma.PartnerAccountQuotaCreditWhereInput> | null
|
credit?: Prisma.XOR<Prisma.PartnerAccountQuotaCreditNullableScalarRelationFilter, Prisma.PartnerAccountQuotaCreditWhereInput> | null
|
||||||
}
|
}
|
||||||
|
|
||||||
export type LicenseAccountAllocationOrderByWithRelationInput = {
|
export type LicenseAccountAllocationOrderByWithRelationInput = {
|
||||||
@@ -193,15 +201,17 @@ export type LicenseAccountAllocationOrderByWithRelationInput = {
|
|||||||
updated_at?: Prisma.SortOrder
|
updated_at?: Prisma.SortOrder
|
||||||
license_activation_id?: Prisma.SortOrderInput | Prisma.SortOrder
|
license_activation_id?: Prisma.SortOrderInput | Prisma.SortOrder
|
||||||
account_id?: Prisma.SortOrderInput | Prisma.SortOrder
|
account_id?: Prisma.SortOrderInput | Prisma.SortOrder
|
||||||
|
credit_id?: Prisma.SortOrderInput | Prisma.SortOrder
|
||||||
license_activation?: Prisma.LicenseActivationOrderByWithRelationInput
|
license_activation?: Prisma.LicenseActivationOrderByWithRelationInput
|
||||||
account?: Prisma.ConsumerAccountOrderByWithRelationInput
|
account?: Prisma.ConsumerAccountOrderByWithRelationInput
|
||||||
partner_account_quota_credit?: Prisma.PartnerAccountQuotaCreditOrderByWithRelationInput
|
credit?: Prisma.PartnerAccountQuotaCreditOrderByWithRelationInput
|
||||||
_relevance?: Prisma.LicenseAccountAllocationOrderByRelevanceInput
|
_relevance?: Prisma.LicenseAccountAllocationOrderByRelevanceInput
|
||||||
}
|
}
|
||||||
|
|
||||||
export type LicenseAccountAllocationWhereUniqueInput = Prisma.AtLeast<{
|
export type LicenseAccountAllocationWhereUniqueInput = Prisma.AtLeast<{
|
||||||
id?: string
|
id?: string
|
||||||
account_id?: string
|
account_id?: string
|
||||||
|
credit_id?: string
|
||||||
AND?: Prisma.LicenseAccountAllocationWhereInput | Prisma.LicenseAccountAllocationWhereInput[]
|
AND?: Prisma.LicenseAccountAllocationWhereInput | Prisma.LicenseAccountAllocationWhereInput[]
|
||||||
OR?: Prisma.LicenseAccountAllocationWhereInput[]
|
OR?: Prisma.LicenseAccountAllocationWhereInput[]
|
||||||
NOT?: Prisma.LicenseAccountAllocationWhereInput | Prisma.LicenseAccountAllocationWhereInput[]
|
NOT?: Prisma.LicenseAccountAllocationWhereInput | Prisma.LicenseAccountAllocationWhereInput[]
|
||||||
@@ -210,8 +220,8 @@ export type LicenseAccountAllocationWhereUniqueInput = Prisma.AtLeast<{
|
|||||||
license_activation_id?: Prisma.StringNullableFilter<"LicenseAccountAllocation"> | string | null
|
license_activation_id?: Prisma.StringNullableFilter<"LicenseAccountAllocation"> | string | null
|
||||||
license_activation?: Prisma.XOR<Prisma.LicenseActivationNullableScalarRelationFilter, Prisma.LicenseActivationWhereInput> | null
|
license_activation?: Prisma.XOR<Prisma.LicenseActivationNullableScalarRelationFilter, Prisma.LicenseActivationWhereInput> | null
|
||||||
account?: Prisma.XOR<Prisma.ConsumerAccountNullableScalarRelationFilter, Prisma.ConsumerAccountWhereInput> | null
|
account?: Prisma.XOR<Prisma.ConsumerAccountNullableScalarRelationFilter, Prisma.ConsumerAccountWhereInput> | null
|
||||||
partner_account_quota_credit?: Prisma.XOR<Prisma.PartnerAccountQuotaCreditNullableScalarRelationFilter, Prisma.PartnerAccountQuotaCreditWhereInput> | null
|
credit?: Prisma.XOR<Prisma.PartnerAccountQuotaCreditNullableScalarRelationFilter, Prisma.PartnerAccountQuotaCreditWhereInput> | null
|
||||||
}, "id" | "account_id">
|
}, "id" | "account_id" | "credit_id">
|
||||||
|
|
||||||
export type LicenseAccountAllocationOrderByWithAggregationInput = {
|
export type LicenseAccountAllocationOrderByWithAggregationInput = {
|
||||||
id?: Prisma.SortOrder
|
id?: Prisma.SortOrder
|
||||||
@@ -219,6 +229,7 @@ export type LicenseAccountAllocationOrderByWithAggregationInput = {
|
|||||||
updated_at?: Prisma.SortOrder
|
updated_at?: Prisma.SortOrder
|
||||||
license_activation_id?: Prisma.SortOrderInput | Prisma.SortOrder
|
license_activation_id?: Prisma.SortOrderInput | Prisma.SortOrder
|
||||||
account_id?: Prisma.SortOrderInput | Prisma.SortOrder
|
account_id?: Prisma.SortOrderInput | Prisma.SortOrder
|
||||||
|
credit_id?: Prisma.SortOrderInput | Prisma.SortOrder
|
||||||
_count?: Prisma.LicenseAccountAllocationCountOrderByAggregateInput
|
_count?: Prisma.LicenseAccountAllocationCountOrderByAggregateInput
|
||||||
_max?: Prisma.LicenseAccountAllocationMaxOrderByAggregateInput
|
_max?: Prisma.LicenseAccountAllocationMaxOrderByAggregateInput
|
||||||
_min?: Prisma.LicenseAccountAllocationMinOrderByAggregateInput
|
_min?: Prisma.LicenseAccountAllocationMinOrderByAggregateInput
|
||||||
@@ -233,6 +244,7 @@ export type LicenseAccountAllocationScalarWhereWithAggregatesInput = {
|
|||||||
updated_at?: Prisma.DateTimeWithAggregatesFilter<"LicenseAccountAllocation"> | Date | string
|
updated_at?: Prisma.DateTimeWithAggregatesFilter<"LicenseAccountAllocation"> | Date | string
|
||||||
license_activation_id?: Prisma.StringNullableWithAggregatesFilter<"LicenseAccountAllocation"> | string | null
|
license_activation_id?: Prisma.StringNullableWithAggregatesFilter<"LicenseAccountAllocation"> | string | null
|
||||||
account_id?: Prisma.StringNullableWithAggregatesFilter<"LicenseAccountAllocation"> | string | null
|
account_id?: Prisma.StringNullableWithAggregatesFilter<"LicenseAccountAllocation"> | string | null
|
||||||
|
credit_id?: Prisma.StringNullableWithAggregatesFilter<"LicenseAccountAllocation"> | string | null
|
||||||
}
|
}
|
||||||
|
|
||||||
export type LicenseAccountAllocationCreateInput = {
|
export type LicenseAccountAllocationCreateInput = {
|
||||||
@@ -241,7 +253,7 @@ export type LicenseAccountAllocationCreateInput = {
|
|||||||
updated_at?: Date | string
|
updated_at?: Date | string
|
||||||
license_activation?: Prisma.LicenseActivationCreateNestedOneWithoutAccount_allocationsInput
|
license_activation?: Prisma.LicenseActivationCreateNestedOneWithoutAccount_allocationsInput
|
||||||
account?: Prisma.ConsumerAccountCreateNestedOneWithoutAccount_allocationInput
|
account?: Prisma.ConsumerAccountCreateNestedOneWithoutAccount_allocationInput
|
||||||
partner_account_quota_credit?: Prisma.PartnerAccountQuotaCreditCreateNestedOneWithoutAllocationInput
|
credit?: Prisma.PartnerAccountQuotaCreditCreateNestedOneWithoutAllocationInput
|
||||||
}
|
}
|
||||||
|
|
||||||
export type LicenseAccountAllocationUncheckedCreateInput = {
|
export type LicenseAccountAllocationUncheckedCreateInput = {
|
||||||
@@ -250,7 +262,7 @@ export type LicenseAccountAllocationUncheckedCreateInput = {
|
|||||||
updated_at?: Date | string
|
updated_at?: Date | string
|
||||||
license_activation_id?: string | null
|
license_activation_id?: string | null
|
||||||
account_id?: string | null
|
account_id?: string | null
|
||||||
partner_account_quota_credit?: Prisma.PartnerAccountQuotaCreditUncheckedCreateNestedOneWithoutAllocationInput
|
credit_id?: string | null
|
||||||
}
|
}
|
||||||
|
|
||||||
export type LicenseAccountAllocationUpdateInput = {
|
export type LicenseAccountAllocationUpdateInput = {
|
||||||
@@ -259,7 +271,7 @@ export type LicenseAccountAllocationUpdateInput = {
|
|||||||
updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||||
license_activation?: Prisma.LicenseActivationUpdateOneWithoutAccount_allocationsNestedInput
|
license_activation?: Prisma.LicenseActivationUpdateOneWithoutAccount_allocationsNestedInput
|
||||||
account?: Prisma.ConsumerAccountUpdateOneWithoutAccount_allocationNestedInput
|
account?: Prisma.ConsumerAccountUpdateOneWithoutAccount_allocationNestedInput
|
||||||
partner_account_quota_credit?: Prisma.PartnerAccountQuotaCreditUpdateOneWithoutAllocationNestedInput
|
credit?: Prisma.PartnerAccountQuotaCreditUpdateOneWithoutAllocationNestedInput
|
||||||
}
|
}
|
||||||
|
|
||||||
export type LicenseAccountAllocationUncheckedUpdateInput = {
|
export type LicenseAccountAllocationUncheckedUpdateInput = {
|
||||||
@@ -268,7 +280,7 @@ export type LicenseAccountAllocationUncheckedUpdateInput = {
|
|||||||
updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||||
license_activation_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
license_activation_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||||
account_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
account_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||||
partner_account_quota_credit?: Prisma.PartnerAccountQuotaCreditUncheckedUpdateOneWithoutAllocationNestedInput
|
credit_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||||
}
|
}
|
||||||
|
|
||||||
export type LicenseAccountAllocationCreateManyInput = {
|
export type LicenseAccountAllocationCreateManyInput = {
|
||||||
@@ -277,6 +289,7 @@ export type LicenseAccountAllocationCreateManyInput = {
|
|||||||
updated_at?: Date | string
|
updated_at?: Date | string
|
||||||
license_activation_id?: string | null
|
license_activation_id?: string | null
|
||||||
account_id?: string | null
|
account_id?: string | null
|
||||||
|
credit_id?: string | null
|
||||||
}
|
}
|
||||||
|
|
||||||
export type LicenseAccountAllocationUpdateManyMutationInput = {
|
export type LicenseAccountAllocationUpdateManyMutationInput = {
|
||||||
@@ -291,6 +304,7 @@ export type LicenseAccountAllocationUncheckedUpdateManyInput = {
|
|||||||
updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||||
license_activation_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
license_activation_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||||
account_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
account_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||||
|
credit_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||||
}
|
}
|
||||||
|
|
||||||
export type LicenseAccountAllocationNullableScalarRelationFilter = {
|
export type LicenseAccountAllocationNullableScalarRelationFilter = {
|
||||||
@@ -320,6 +334,7 @@ export type LicenseAccountAllocationCountOrderByAggregateInput = {
|
|||||||
updated_at?: Prisma.SortOrder
|
updated_at?: Prisma.SortOrder
|
||||||
license_activation_id?: Prisma.SortOrder
|
license_activation_id?: Prisma.SortOrder
|
||||||
account_id?: Prisma.SortOrder
|
account_id?: Prisma.SortOrder
|
||||||
|
credit_id?: Prisma.SortOrder
|
||||||
}
|
}
|
||||||
|
|
||||||
export type LicenseAccountAllocationMaxOrderByAggregateInput = {
|
export type LicenseAccountAllocationMaxOrderByAggregateInput = {
|
||||||
@@ -328,6 +343,7 @@ export type LicenseAccountAllocationMaxOrderByAggregateInput = {
|
|||||||
updated_at?: Prisma.SortOrder
|
updated_at?: Prisma.SortOrder
|
||||||
license_activation_id?: Prisma.SortOrder
|
license_activation_id?: Prisma.SortOrder
|
||||||
account_id?: Prisma.SortOrder
|
account_id?: Prisma.SortOrder
|
||||||
|
credit_id?: Prisma.SortOrder
|
||||||
}
|
}
|
||||||
|
|
||||||
export type LicenseAccountAllocationMinOrderByAggregateInput = {
|
export type LicenseAccountAllocationMinOrderByAggregateInput = {
|
||||||
@@ -336,6 +352,7 @@ export type LicenseAccountAllocationMinOrderByAggregateInput = {
|
|||||||
updated_at?: Prisma.SortOrder
|
updated_at?: Prisma.SortOrder
|
||||||
license_activation_id?: Prisma.SortOrder
|
license_activation_id?: Prisma.SortOrder
|
||||||
account_id?: Prisma.SortOrder
|
account_id?: Prisma.SortOrder
|
||||||
|
credit_id?: Prisma.SortOrder
|
||||||
}
|
}
|
||||||
|
|
||||||
export type LicenseAccountAllocationCreateNestedOneWithoutAccountInput = {
|
export type LicenseAccountAllocationCreateNestedOneWithoutAccountInput = {
|
||||||
@@ -412,20 +429,36 @@ export type LicenseAccountAllocationUncheckedUpdateManyWithoutLicense_activation
|
|||||||
deleteMany?: Prisma.LicenseAccountAllocationScalarWhereInput | Prisma.LicenseAccountAllocationScalarWhereInput[]
|
deleteMany?: Prisma.LicenseAccountAllocationScalarWhereInput | Prisma.LicenseAccountAllocationScalarWhereInput[]
|
||||||
}
|
}
|
||||||
|
|
||||||
export type LicenseAccountAllocationCreateNestedOneWithoutPartner_account_quota_creditInput = {
|
export type LicenseAccountAllocationCreateNestedOneWithoutCreditInput = {
|
||||||
create?: Prisma.XOR<Prisma.LicenseAccountAllocationCreateWithoutPartner_account_quota_creditInput, Prisma.LicenseAccountAllocationUncheckedCreateWithoutPartner_account_quota_creditInput>
|
create?: Prisma.XOR<Prisma.LicenseAccountAllocationCreateWithoutCreditInput, Prisma.LicenseAccountAllocationUncheckedCreateWithoutCreditInput>
|
||||||
connectOrCreate?: Prisma.LicenseAccountAllocationCreateOrConnectWithoutPartner_account_quota_creditInput
|
connectOrCreate?: Prisma.LicenseAccountAllocationCreateOrConnectWithoutCreditInput
|
||||||
connect?: Prisma.LicenseAccountAllocationWhereUniqueInput
|
connect?: Prisma.LicenseAccountAllocationWhereUniqueInput
|
||||||
}
|
}
|
||||||
|
|
||||||
export type LicenseAccountAllocationUpdateOneWithoutPartner_account_quota_creditNestedInput = {
|
export type LicenseAccountAllocationUncheckedCreateNestedOneWithoutCreditInput = {
|
||||||
create?: Prisma.XOR<Prisma.LicenseAccountAllocationCreateWithoutPartner_account_quota_creditInput, Prisma.LicenseAccountAllocationUncheckedCreateWithoutPartner_account_quota_creditInput>
|
create?: Prisma.XOR<Prisma.LicenseAccountAllocationCreateWithoutCreditInput, Prisma.LicenseAccountAllocationUncheckedCreateWithoutCreditInput>
|
||||||
connectOrCreate?: Prisma.LicenseAccountAllocationCreateOrConnectWithoutPartner_account_quota_creditInput
|
connectOrCreate?: Prisma.LicenseAccountAllocationCreateOrConnectWithoutCreditInput
|
||||||
upsert?: Prisma.LicenseAccountAllocationUpsertWithoutPartner_account_quota_creditInput
|
connect?: Prisma.LicenseAccountAllocationWhereUniqueInput
|
||||||
|
}
|
||||||
|
|
||||||
|
export type LicenseAccountAllocationUpdateOneWithoutCreditNestedInput = {
|
||||||
|
create?: Prisma.XOR<Prisma.LicenseAccountAllocationCreateWithoutCreditInput, Prisma.LicenseAccountAllocationUncheckedCreateWithoutCreditInput>
|
||||||
|
connectOrCreate?: Prisma.LicenseAccountAllocationCreateOrConnectWithoutCreditInput
|
||||||
|
upsert?: Prisma.LicenseAccountAllocationUpsertWithoutCreditInput
|
||||||
disconnect?: Prisma.LicenseAccountAllocationWhereInput | boolean
|
disconnect?: Prisma.LicenseAccountAllocationWhereInput | boolean
|
||||||
delete?: Prisma.LicenseAccountAllocationWhereInput | boolean
|
delete?: Prisma.LicenseAccountAllocationWhereInput | boolean
|
||||||
connect?: Prisma.LicenseAccountAllocationWhereUniqueInput
|
connect?: Prisma.LicenseAccountAllocationWhereUniqueInput
|
||||||
update?: Prisma.XOR<Prisma.XOR<Prisma.LicenseAccountAllocationUpdateToOneWithWhereWithoutPartner_account_quota_creditInput, Prisma.LicenseAccountAllocationUpdateWithoutPartner_account_quota_creditInput>, Prisma.LicenseAccountAllocationUncheckedUpdateWithoutPartner_account_quota_creditInput>
|
update?: Prisma.XOR<Prisma.XOR<Prisma.LicenseAccountAllocationUpdateToOneWithWhereWithoutCreditInput, Prisma.LicenseAccountAllocationUpdateWithoutCreditInput>, Prisma.LicenseAccountAllocationUncheckedUpdateWithoutCreditInput>
|
||||||
|
}
|
||||||
|
|
||||||
|
export type LicenseAccountAllocationUncheckedUpdateOneWithoutCreditNestedInput = {
|
||||||
|
create?: Prisma.XOR<Prisma.LicenseAccountAllocationCreateWithoutCreditInput, Prisma.LicenseAccountAllocationUncheckedCreateWithoutCreditInput>
|
||||||
|
connectOrCreate?: Prisma.LicenseAccountAllocationCreateOrConnectWithoutCreditInput
|
||||||
|
upsert?: Prisma.LicenseAccountAllocationUpsertWithoutCreditInput
|
||||||
|
disconnect?: Prisma.LicenseAccountAllocationWhereInput | boolean
|
||||||
|
delete?: Prisma.LicenseAccountAllocationWhereInput | boolean
|
||||||
|
connect?: Prisma.LicenseAccountAllocationWhereUniqueInput
|
||||||
|
update?: Prisma.XOR<Prisma.XOR<Prisma.LicenseAccountAllocationUpdateToOneWithWhereWithoutCreditInput, Prisma.LicenseAccountAllocationUpdateWithoutCreditInput>, Prisma.LicenseAccountAllocationUncheckedUpdateWithoutCreditInput>
|
||||||
}
|
}
|
||||||
|
|
||||||
export type LicenseAccountAllocationCreateWithoutAccountInput = {
|
export type LicenseAccountAllocationCreateWithoutAccountInput = {
|
||||||
@@ -433,7 +466,7 @@ export type LicenseAccountAllocationCreateWithoutAccountInput = {
|
|||||||
created_at?: Date | string
|
created_at?: Date | string
|
||||||
updated_at?: Date | string
|
updated_at?: Date | string
|
||||||
license_activation?: Prisma.LicenseActivationCreateNestedOneWithoutAccount_allocationsInput
|
license_activation?: Prisma.LicenseActivationCreateNestedOneWithoutAccount_allocationsInput
|
||||||
partner_account_quota_credit?: Prisma.PartnerAccountQuotaCreditCreateNestedOneWithoutAllocationInput
|
credit?: Prisma.PartnerAccountQuotaCreditCreateNestedOneWithoutAllocationInput
|
||||||
}
|
}
|
||||||
|
|
||||||
export type LicenseAccountAllocationUncheckedCreateWithoutAccountInput = {
|
export type LicenseAccountAllocationUncheckedCreateWithoutAccountInput = {
|
||||||
@@ -441,7 +474,7 @@ export type LicenseAccountAllocationUncheckedCreateWithoutAccountInput = {
|
|||||||
created_at?: Date | string
|
created_at?: Date | string
|
||||||
updated_at?: Date | string
|
updated_at?: Date | string
|
||||||
license_activation_id?: string | null
|
license_activation_id?: string | null
|
||||||
partner_account_quota_credit?: Prisma.PartnerAccountQuotaCreditUncheckedCreateNestedOneWithoutAllocationInput
|
credit_id?: string | null
|
||||||
}
|
}
|
||||||
|
|
||||||
export type LicenseAccountAllocationCreateOrConnectWithoutAccountInput = {
|
export type LicenseAccountAllocationCreateOrConnectWithoutAccountInput = {
|
||||||
@@ -465,7 +498,7 @@ export type LicenseAccountAllocationUpdateWithoutAccountInput = {
|
|||||||
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||||
updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||||
license_activation?: Prisma.LicenseActivationUpdateOneWithoutAccount_allocationsNestedInput
|
license_activation?: Prisma.LicenseActivationUpdateOneWithoutAccount_allocationsNestedInput
|
||||||
partner_account_quota_credit?: Prisma.PartnerAccountQuotaCreditUpdateOneWithoutAllocationNestedInput
|
credit?: Prisma.PartnerAccountQuotaCreditUpdateOneWithoutAllocationNestedInput
|
||||||
}
|
}
|
||||||
|
|
||||||
export type LicenseAccountAllocationUncheckedUpdateWithoutAccountInput = {
|
export type LicenseAccountAllocationUncheckedUpdateWithoutAccountInput = {
|
||||||
@@ -473,7 +506,7 @@ export type LicenseAccountAllocationUncheckedUpdateWithoutAccountInput = {
|
|||||||
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||||
updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||||
license_activation_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
license_activation_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||||
partner_account_quota_credit?: Prisma.PartnerAccountQuotaCreditUncheckedUpdateOneWithoutAllocationNestedInput
|
credit_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||||
}
|
}
|
||||||
|
|
||||||
export type LicenseAccountAllocationCreateWithoutLicense_activationInput = {
|
export type LicenseAccountAllocationCreateWithoutLicense_activationInput = {
|
||||||
@@ -481,7 +514,7 @@ export type LicenseAccountAllocationCreateWithoutLicense_activationInput = {
|
|||||||
created_at?: Date | string
|
created_at?: Date | string
|
||||||
updated_at?: Date | string
|
updated_at?: Date | string
|
||||||
account?: Prisma.ConsumerAccountCreateNestedOneWithoutAccount_allocationInput
|
account?: Prisma.ConsumerAccountCreateNestedOneWithoutAccount_allocationInput
|
||||||
partner_account_quota_credit?: Prisma.PartnerAccountQuotaCreditCreateNestedOneWithoutAllocationInput
|
credit?: Prisma.PartnerAccountQuotaCreditCreateNestedOneWithoutAllocationInput
|
||||||
}
|
}
|
||||||
|
|
||||||
export type LicenseAccountAllocationUncheckedCreateWithoutLicense_activationInput = {
|
export type LicenseAccountAllocationUncheckedCreateWithoutLicense_activationInput = {
|
||||||
@@ -489,7 +522,7 @@ export type LicenseAccountAllocationUncheckedCreateWithoutLicense_activationInpu
|
|||||||
created_at?: Date | string
|
created_at?: Date | string
|
||||||
updated_at?: Date | string
|
updated_at?: Date | string
|
||||||
account_id?: string | null
|
account_id?: string | null
|
||||||
partner_account_quota_credit?: Prisma.PartnerAccountQuotaCreditUncheckedCreateNestedOneWithoutAllocationInput
|
credit_id?: string | null
|
||||||
}
|
}
|
||||||
|
|
||||||
export type LicenseAccountAllocationCreateOrConnectWithoutLicense_activationInput = {
|
export type LicenseAccountAllocationCreateOrConnectWithoutLicense_activationInput = {
|
||||||
@@ -527,9 +560,10 @@ export type LicenseAccountAllocationScalarWhereInput = {
|
|||||||
updated_at?: Prisma.DateTimeFilter<"LicenseAccountAllocation"> | Date | string
|
updated_at?: Prisma.DateTimeFilter<"LicenseAccountAllocation"> | Date | string
|
||||||
license_activation_id?: Prisma.StringNullableFilter<"LicenseAccountAllocation"> | string | null
|
license_activation_id?: Prisma.StringNullableFilter<"LicenseAccountAllocation"> | string | null
|
||||||
account_id?: Prisma.StringNullableFilter<"LicenseAccountAllocation"> | string | null
|
account_id?: Prisma.StringNullableFilter<"LicenseAccountAllocation"> | string | null
|
||||||
|
credit_id?: Prisma.StringNullableFilter<"LicenseAccountAllocation"> | string | null
|
||||||
}
|
}
|
||||||
|
|
||||||
export type LicenseAccountAllocationCreateWithoutPartner_account_quota_creditInput = {
|
export type LicenseAccountAllocationCreateWithoutCreditInput = {
|
||||||
id?: string
|
id?: string
|
||||||
created_at?: Date | string
|
created_at?: Date | string
|
||||||
updated_at?: Date | string
|
updated_at?: Date | string
|
||||||
@@ -537,7 +571,7 @@ export type LicenseAccountAllocationCreateWithoutPartner_account_quota_creditInp
|
|||||||
account?: Prisma.ConsumerAccountCreateNestedOneWithoutAccount_allocationInput
|
account?: Prisma.ConsumerAccountCreateNestedOneWithoutAccount_allocationInput
|
||||||
}
|
}
|
||||||
|
|
||||||
export type LicenseAccountAllocationUncheckedCreateWithoutPartner_account_quota_creditInput = {
|
export type LicenseAccountAllocationUncheckedCreateWithoutCreditInput = {
|
||||||
id?: string
|
id?: string
|
||||||
created_at?: Date | string
|
created_at?: Date | string
|
||||||
updated_at?: Date | string
|
updated_at?: Date | string
|
||||||
@@ -545,23 +579,23 @@ export type LicenseAccountAllocationUncheckedCreateWithoutPartner_account_quota_
|
|||||||
account_id?: string | null
|
account_id?: string | null
|
||||||
}
|
}
|
||||||
|
|
||||||
export type LicenseAccountAllocationCreateOrConnectWithoutPartner_account_quota_creditInput = {
|
export type LicenseAccountAllocationCreateOrConnectWithoutCreditInput = {
|
||||||
where: Prisma.LicenseAccountAllocationWhereUniqueInput
|
where: Prisma.LicenseAccountAllocationWhereUniqueInput
|
||||||
create: Prisma.XOR<Prisma.LicenseAccountAllocationCreateWithoutPartner_account_quota_creditInput, Prisma.LicenseAccountAllocationUncheckedCreateWithoutPartner_account_quota_creditInput>
|
create: Prisma.XOR<Prisma.LicenseAccountAllocationCreateWithoutCreditInput, Prisma.LicenseAccountAllocationUncheckedCreateWithoutCreditInput>
|
||||||
}
|
}
|
||||||
|
|
||||||
export type LicenseAccountAllocationUpsertWithoutPartner_account_quota_creditInput = {
|
export type LicenseAccountAllocationUpsertWithoutCreditInput = {
|
||||||
update: Prisma.XOR<Prisma.LicenseAccountAllocationUpdateWithoutPartner_account_quota_creditInput, Prisma.LicenseAccountAllocationUncheckedUpdateWithoutPartner_account_quota_creditInput>
|
update: Prisma.XOR<Prisma.LicenseAccountAllocationUpdateWithoutCreditInput, Prisma.LicenseAccountAllocationUncheckedUpdateWithoutCreditInput>
|
||||||
create: Prisma.XOR<Prisma.LicenseAccountAllocationCreateWithoutPartner_account_quota_creditInput, Prisma.LicenseAccountAllocationUncheckedCreateWithoutPartner_account_quota_creditInput>
|
create: Prisma.XOR<Prisma.LicenseAccountAllocationCreateWithoutCreditInput, Prisma.LicenseAccountAllocationUncheckedCreateWithoutCreditInput>
|
||||||
where?: Prisma.LicenseAccountAllocationWhereInput
|
where?: Prisma.LicenseAccountAllocationWhereInput
|
||||||
}
|
}
|
||||||
|
|
||||||
export type LicenseAccountAllocationUpdateToOneWithWhereWithoutPartner_account_quota_creditInput = {
|
export type LicenseAccountAllocationUpdateToOneWithWhereWithoutCreditInput = {
|
||||||
where?: Prisma.LicenseAccountAllocationWhereInput
|
where?: Prisma.LicenseAccountAllocationWhereInput
|
||||||
data: Prisma.XOR<Prisma.LicenseAccountAllocationUpdateWithoutPartner_account_quota_creditInput, Prisma.LicenseAccountAllocationUncheckedUpdateWithoutPartner_account_quota_creditInput>
|
data: Prisma.XOR<Prisma.LicenseAccountAllocationUpdateWithoutCreditInput, Prisma.LicenseAccountAllocationUncheckedUpdateWithoutCreditInput>
|
||||||
}
|
}
|
||||||
|
|
||||||
export type LicenseAccountAllocationUpdateWithoutPartner_account_quota_creditInput = {
|
export type LicenseAccountAllocationUpdateWithoutCreditInput = {
|
||||||
id?: Prisma.StringFieldUpdateOperationsInput | string
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||||
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||||
updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||||
@@ -569,7 +603,7 @@ export type LicenseAccountAllocationUpdateWithoutPartner_account_quota_creditInp
|
|||||||
account?: Prisma.ConsumerAccountUpdateOneWithoutAccount_allocationNestedInput
|
account?: Prisma.ConsumerAccountUpdateOneWithoutAccount_allocationNestedInput
|
||||||
}
|
}
|
||||||
|
|
||||||
export type LicenseAccountAllocationUncheckedUpdateWithoutPartner_account_quota_creditInput = {
|
export type LicenseAccountAllocationUncheckedUpdateWithoutCreditInput = {
|
||||||
id?: Prisma.StringFieldUpdateOperationsInput | string
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||||
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||||
updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||||
@@ -582,6 +616,7 @@ export type LicenseAccountAllocationCreateManyLicense_activationInput = {
|
|||||||
created_at?: Date | string
|
created_at?: Date | string
|
||||||
updated_at?: Date | string
|
updated_at?: Date | string
|
||||||
account_id?: string | null
|
account_id?: string | null
|
||||||
|
credit_id?: string | null
|
||||||
}
|
}
|
||||||
|
|
||||||
export type LicenseAccountAllocationUpdateWithoutLicense_activationInput = {
|
export type LicenseAccountAllocationUpdateWithoutLicense_activationInput = {
|
||||||
@@ -589,7 +624,7 @@ export type LicenseAccountAllocationUpdateWithoutLicense_activationInput = {
|
|||||||
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||||
updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||||
account?: Prisma.ConsumerAccountUpdateOneWithoutAccount_allocationNestedInput
|
account?: Prisma.ConsumerAccountUpdateOneWithoutAccount_allocationNestedInput
|
||||||
partner_account_quota_credit?: Prisma.PartnerAccountQuotaCreditUpdateOneWithoutAllocationNestedInput
|
credit?: Prisma.PartnerAccountQuotaCreditUpdateOneWithoutAllocationNestedInput
|
||||||
}
|
}
|
||||||
|
|
||||||
export type LicenseAccountAllocationUncheckedUpdateWithoutLicense_activationInput = {
|
export type LicenseAccountAllocationUncheckedUpdateWithoutLicense_activationInput = {
|
||||||
@@ -597,7 +632,7 @@ export type LicenseAccountAllocationUncheckedUpdateWithoutLicense_activationInpu
|
|||||||
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||||
updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||||
account_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
account_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||||
partner_account_quota_credit?: Prisma.PartnerAccountQuotaCreditUncheckedUpdateOneWithoutAllocationNestedInput
|
credit_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||||
}
|
}
|
||||||
|
|
||||||
export type LicenseAccountAllocationUncheckedUpdateManyWithoutLicense_activationInput = {
|
export type LicenseAccountAllocationUncheckedUpdateManyWithoutLicense_activationInput = {
|
||||||
@@ -605,6 +640,7 @@ export type LicenseAccountAllocationUncheckedUpdateManyWithoutLicense_activation
|
|||||||
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||||
updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||||
account_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
account_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||||
|
credit_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@@ -615,9 +651,10 @@ export type LicenseAccountAllocationSelect<ExtArgs extends runtime.Types.Extensi
|
|||||||
updated_at?: boolean
|
updated_at?: boolean
|
||||||
license_activation_id?: boolean
|
license_activation_id?: boolean
|
||||||
account_id?: boolean
|
account_id?: boolean
|
||||||
|
credit_id?: boolean
|
||||||
license_activation?: boolean | Prisma.LicenseAccountAllocation$license_activationArgs<ExtArgs>
|
license_activation?: boolean | Prisma.LicenseAccountAllocation$license_activationArgs<ExtArgs>
|
||||||
account?: boolean | Prisma.LicenseAccountAllocation$accountArgs<ExtArgs>
|
account?: boolean | Prisma.LicenseAccountAllocation$accountArgs<ExtArgs>
|
||||||
partner_account_quota_credit?: boolean | Prisma.LicenseAccountAllocation$partner_account_quota_creditArgs<ExtArgs>
|
credit?: boolean | Prisma.LicenseAccountAllocation$creditArgs<ExtArgs>
|
||||||
}, ExtArgs["result"]["licenseAccountAllocation"]>
|
}, ExtArgs["result"]["licenseAccountAllocation"]>
|
||||||
|
|
||||||
|
|
||||||
@@ -628,13 +665,14 @@ export type LicenseAccountAllocationSelectScalar = {
|
|||||||
updated_at?: boolean
|
updated_at?: boolean
|
||||||
license_activation_id?: boolean
|
license_activation_id?: boolean
|
||||||
account_id?: boolean
|
account_id?: boolean
|
||||||
|
credit_id?: boolean
|
||||||
}
|
}
|
||||||
|
|
||||||
export type LicenseAccountAllocationOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "created_at" | "updated_at" | "license_activation_id" | "account_id", ExtArgs["result"]["licenseAccountAllocation"]>
|
export type LicenseAccountAllocationOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "created_at" | "updated_at" | "license_activation_id" | "account_id" | "credit_id", ExtArgs["result"]["licenseAccountAllocation"]>
|
||||||
export type LicenseAccountAllocationInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
export type LicenseAccountAllocationInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
||||||
license_activation?: boolean | Prisma.LicenseAccountAllocation$license_activationArgs<ExtArgs>
|
license_activation?: boolean | Prisma.LicenseAccountAllocation$license_activationArgs<ExtArgs>
|
||||||
account?: boolean | Prisma.LicenseAccountAllocation$accountArgs<ExtArgs>
|
account?: boolean | Prisma.LicenseAccountAllocation$accountArgs<ExtArgs>
|
||||||
partner_account_quota_credit?: boolean | Prisma.LicenseAccountAllocation$partner_account_quota_creditArgs<ExtArgs>
|
credit?: boolean | Prisma.LicenseAccountAllocation$creditArgs<ExtArgs>
|
||||||
}
|
}
|
||||||
|
|
||||||
export type $LicenseAccountAllocationPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
export type $LicenseAccountAllocationPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
||||||
@@ -642,7 +680,7 @@ export type $LicenseAccountAllocationPayload<ExtArgs extends runtime.Types.Exten
|
|||||||
objects: {
|
objects: {
|
||||||
license_activation: Prisma.$LicenseActivationPayload<ExtArgs> | null
|
license_activation: Prisma.$LicenseActivationPayload<ExtArgs> | null
|
||||||
account: Prisma.$ConsumerAccountPayload<ExtArgs> | null
|
account: Prisma.$ConsumerAccountPayload<ExtArgs> | null
|
||||||
partner_account_quota_credit: Prisma.$PartnerAccountQuotaCreditPayload<ExtArgs> | null
|
credit: Prisma.$PartnerAccountQuotaCreditPayload<ExtArgs> | null
|
||||||
}
|
}
|
||||||
scalars: runtime.Types.Extensions.GetPayloadResult<{
|
scalars: runtime.Types.Extensions.GetPayloadResult<{
|
||||||
id: string
|
id: string
|
||||||
@@ -650,6 +688,7 @@ export type $LicenseAccountAllocationPayload<ExtArgs extends runtime.Types.Exten
|
|||||||
updated_at: Date
|
updated_at: Date
|
||||||
license_activation_id: string | null
|
license_activation_id: string | null
|
||||||
account_id: string | null
|
account_id: string | null
|
||||||
|
credit_id: string | null
|
||||||
}, ExtArgs["result"]["licenseAccountAllocation"]>
|
}, ExtArgs["result"]["licenseAccountAllocation"]>
|
||||||
composites: {}
|
composites: {}
|
||||||
}
|
}
|
||||||
@@ -992,7 +1031,7 @@ export interface Prisma__LicenseAccountAllocationClient<T, Null = never, ExtArgs
|
|||||||
readonly [Symbol.toStringTag]: "PrismaPromise"
|
readonly [Symbol.toStringTag]: "PrismaPromise"
|
||||||
license_activation<T extends Prisma.LicenseAccountAllocation$license_activationArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.LicenseAccountAllocation$license_activationArgs<ExtArgs>>): Prisma.Prisma__LicenseActivationClient<runtime.Types.Result.GetResult<Prisma.$LicenseActivationPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
|
license_activation<T extends Prisma.LicenseAccountAllocation$license_activationArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.LicenseAccountAllocation$license_activationArgs<ExtArgs>>): Prisma.Prisma__LicenseActivationClient<runtime.Types.Result.GetResult<Prisma.$LicenseActivationPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
|
||||||
account<T extends Prisma.LicenseAccountAllocation$accountArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.LicenseAccountAllocation$accountArgs<ExtArgs>>): Prisma.Prisma__ConsumerAccountClient<runtime.Types.Result.GetResult<Prisma.$ConsumerAccountPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
|
account<T extends Prisma.LicenseAccountAllocation$accountArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.LicenseAccountAllocation$accountArgs<ExtArgs>>): Prisma.Prisma__ConsumerAccountClient<runtime.Types.Result.GetResult<Prisma.$ConsumerAccountPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
|
||||||
partner_account_quota_credit<T extends Prisma.LicenseAccountAllocation$partner_account_quota_creditArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.LicenseAccountAllocation$partner_account_quota_creditArgs<ExtArgs>>): Prisma.Prisma__PartnerAccountQuotaCreditClient<runtime.Types.Result.GetResult<Prisma.$PartnerAccountQuotaCreditPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
|
credit<T extends Prisma.LicenseAccountAllocation$creditArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.LicenseAccountAllocation$creditArgs<ExtArgs>>): Prisma.Prisma__PartnerAccountQuotaCreditClient<runtime.Types.Result.GetResult<Prisma.$PartnerAccountQuotaCreditPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
|
||||||
/**
|
/**
|
||||||
* Attaches callbacks for the resolution and/or rejection of the Promise.
|
* Attaches callbacks for the resolution and/or rejection of the Promise.
|
||||||
* @param onfulfilled The callback to execute when the Promise is resolved.
|
* @param onfulfilled The callback to execute when the Promise is resolved.
|
||||||
@@ -1027,6 +1066,7 @@ export interface LicenseAccountAllocationFieldRefs {
|
|||||||
readonly updated_at: Prisma.FieldRef<"LicenseAccountAllocation", 'DateTime'>
|
readonly updated_at: Prisma.FieldRef<"LicenseAccountAllocation", 'DateTime'>
|
||||||
readonly license_activation_id: Prisma.FieldRef<"LicenseAccountAllocation", 'String'>
|
readonly license_activation_id: Prisma.FieldRef<"LicenseAccountAllocation", 'String'>
|
||||||
readonly account_id: Prisma.FieldRef<"LicenseAccountAllocation", 'String'>
|
readonly account_id: Prisma.FieldRef<"LicenseAccountAllocation", 'String'>
|
||||||
|
readonly credit_id: Prisma.FieldRef<"LicenseAccountAllocation", 'String'>
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@@ -1413,9 +1453,9 @@ export type LicenseAccountAllocation$accountArgs<ExtArgs extends runtime.Types.E
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* LicenseAccountAllocation.partner_account_quota_credit
|
* LicenseAccountAllocation.credit
|
||||||
*/
|
*/
|
||||||
export type LicenseAccountAllocation$partner_account_quota_creditArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
export type LicenseAccountAllocation$creditArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
||||||
/**
|
/**
|
||||||
* Select specific fields to fetch from the PartnerAccountQuotaCredit
|
* Select specific fields to fetch from the PartnerAccountQuotaCredit
|
||||||
*/
|
*/
|
||||||
|
|||||||
@@ -379,11 +379,6 @@ export type LicenseActivationMinOrderByAggregateInput = {
|
|||||||
business_activity_id?: Prisma.SortOrder
|
business_activity_id?: Prisma.SortOrder
|
||||||
}
|
}
|
||||||
|
|
||||||
export type LicenseActivationScalarRelationFilter = {
|
|
||||||
is?: Prisma.LicenseActivationWhereInput
|
|
||||||
isNot?: Prisma.LicenseActivationWhereInput
|
|
||||||
}
|
|
||||||
|
|
||||||
export type LicenseActivationCreateNestedOneWithoutBusiness_activityInput = {
|
export type LicenseActivationCreateNestedOneWithoutBusiness_activityInput = {
|
||||||
create?: Prisma.XOR<Prisma.LicenseActivationCreateWithoutBusiness_activityInput, Prisma.LicenseActivationUncheckedCreateWithoutBusiness_activityInput>
|
create?: Prisma.XOR<Prisma.LicenseActivationCreateWithoutBusiness_activityInput, Prisma.LicenseActivationUncheckedCreateWithoutBusiness_activityInput>
|
||||||
connectOrCreate?: Prisma.LicenseActivationCreateOrConnectWithoutBusiness_activityInput
|
connectOrCreate?: Prisma.LicenseActivationCreateOrConnectWithoutBusiness_activityInput
|
||||||
@@ -454,10 +449,12 @@ export type LicenseActivationCreateNestedOneWithoutLicense_renewsInput = {
|
|||||||
connect?: Prisma.LicenseActivationWhereUniqueInput
|
connect?: Prisma.LicenseActivationWhereUniqueInput
|
||||||
}
|
}
|
||||||
|
|
||||||
export type LicenseActivationUpdateOneRequiredWithoutLicense_renewsNestedInput = {
|
export type LicenseActivationUpdateOneWithoutLicense_renewsNestedInput = {
|
||||||
create?: Prisma.XOR<Prisma.LicenseActivationCreateWithoutLicense_renewsInput, Prisma.LicenseActivationUncheckedCreateWithoutLicense_renewsInput>
|
create?: Prisma.XOR<Prisma.LicenseActivationCreateWithoutLicense_renewsInput, Prisma.LicenseActivationUncheckedCreateWithoutLicense_renewsInput>
|
||||||
connectOrCreate?: Prisma.LicenseActivationCreateOrConnectWithoutLicense_renewsInput
|
connectOrCreate?: Prisma.LicenseActivationCreateOrConnectWithoutLicense_renewsInput
|
||||||
upsert?: Prisma.LicenseActivationUpsertWithoutLicense_renewsInput
|
upsert?: Prisma.LicenseActivationUpsertWithoutLicense_renewsInput
|
||||||
|
disconnect?: Prisma.LicenseActivationWhereInput | boolean
|
||||||
|
delete?: Prisma.LicenseActivationWhereInput | boolean
|
||||||
connect?: Prisma.LicenseActivationWhereUniqueInput
|
connect?: Prisma.LicenseActivationWhereUniqueInput
|
||||||
update?: Prisma.XOR<Prisma.XOR<Prisma.LicenseActivationUpdateToOneWithWhereWithoutLicense_renewsInput, Prisma.LicenseActivationUpdateWithoutLicense_renewsInput>, Prisma.LicenseActivationUncheckedUpdateWithoutLicense_renewsInput>
|
update?: Prisma.XOR<Prisma.XOR<Prisma.LicenseActivationUpdateToOneWithWhereWithoutLicense_renewsInput, Prisma.LicenseActivationUpdateWithoutLicense_renewsInput>, Prisma.LicenseActivationUncheckedUpdateWithoutLicense_renewsInput>
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -159,7 +159,7 @@ export type LicenseRenewGroupByOutputType = {
|
|||||||
created_at: Date
|
created_at: Date
|
||||||
updated_at: Date
|
updated_at: Date
|
||||||
charge_transaction_id: string
|
charge_transaction_id: string
|
||||||
activation_id: string
|
activation_id: string | null
|
||||||
_count: LicenseRenewCountAggregateOutputType | null
|
_count: LicenseRenewCountAggregateOutputType | null
|
||||||
_min: LicenseRenewMinAggregateOutputType | null
|
_min: LicenseRenewMinAggregateOutputType | null
|
||||||
_max: LicenseRenewMaxAggregateOutputType | null
|
_max: LicenseRenewMaxAggregateOutputType | null
|
||||||
@@ -189,9 +189,9 @@ export type LicenseRenewWhereInput = {
|
|||||||
created_at?: Prisma.DateTimeFilter<"LicenseRenew"> | Date | string
|
created_at?: Prisma.DateTimeFilter<"LicenseRenew"> | Date | string
|
||||||
updated_at?: Prisma.DateTimeFilter<"LicenseRenew"> | Date | string
|
updated_at?: Prisma.DateTimeFilter<"LicenseRenew"> | Date | string
|
||||||
charge_transaction_id?: Prisma.StringFilter<"LicenseRenew"> | string
|
charge_transaction_id?: Prisma.StringFilter<"LicenseRenew"> | string
|
||||||
activation_id?: Prisma.StringFilter<"LicenseRenew"> | string
|
activation_id?: Prisma.StringNullableFilter<"LicenseRenew"> | string | null
|
||||||
charge_transaction?: Prisma.XOR<Prisma.LicenseRenewChargeTransactionScalarRelationFilter, Prisma.LicenseRenewChargeTransactionWhereInput>
|
charge_transaction?: Prisma.XOR<Prisma.LicenseRenewChargeTransactionScalarRelationFilter, Prisma.LicenseRenewChargeTransactionWhereInput>
|
||||||
activation?: Prisma.XOR<Prisma.LicenseActivationScalarRelationFilter, Prisma.LicenseActivationWhereInput>
|
activation?: Prisma.XOR<Prisma.LicenseActivationNullableScalarRelationFilter, Prisma.LicenseActivationWhereInput> | null
|
||||||
}
|
}
|
||||||
|
|
||||||
export type LicenseRenewOrderByWithRelationInput = {
|
export type LicenseRenewOrderByWithRelationInput = {
|
||||||
@@ -200,7 +200,7 @@ export type LicenseRenewOrderByWithRelationInput = {
|
|||||||
created_at?: Prisma.SortOrder
|
created_at?: Prisma.SortOrder
|
||||||
updated_at?: Prisma.SortOrder
|
updated_at?: Prisma.SortOrder
|
||||||
charge_transaction_id?: Prisma.SortOrder
|
charge_transaction_id?: Prisma.SortOrder
|
||||||
activation_id?: Prisma.SortOrder
|
activation_id?: Prisma.SortOrderInput | Prisma.SortOrder
|
||||||
charge_transaction?: Prisma.LicenseRenewChargeTransactionOrderByWithRelationInput
|
charge_transaction?: Prisma.LicenseRenewChargeTransactionOrderByWithRelationInput
|
||||||
activation?: Prisma.LicenseActivationOrderByWithRelationInput
|
activation?: Prisma.LicenseActivationOrderByWithRelationInput
|
||||||
_relevance?: Prisma.LicenseRenewOrderByRelevanceInput
|
_relevance?: Prisma.LicenseRenewOrderByRelevanceInput
|
||||||
@@ -215,9 +215,9 @@ export type LicenseRenewWhereUniqueInput = Prisma.AtLeast<{
|
|||||||
created_at?: Prisma.DateTimeFilter<"LicenseRenew"> | Date | string
|
created_at?: Prisma.DateTimeFilter<"LicenseRenew"> | Date | string
|
||||||
updated_at?: Prisma.DateTimeFilter<"LicenseRenew"> | Date | string
|
updated_at?: Prisma.DateTimeFilter<"LicenseRenew"> | Date | string
|
||||||
charge_transaction_id?: Prisma.StringFilter<"LicenseRenew"> | string
|
charge_transaction_id?: Prisma.StringFilter<"LicenseRenew"> | string
|
||||||
activation_id?: Prisma.StringFilter<"LicenseRenew"> | string
|
activation_id?: Prisma.StringNullableFilter<"LicenseRenew"> | string | null
|
||||||
charge_transaction?: Prisma.XOR<Prisma.LicenseRenewChargeTransactionScalarRelationFilter, Prisma.LicenseRenewChargeTransactionWhereInput>
|
charge_transaction?: Prisma.XOR<Prisma.LicenseRenewChargeTransactionScalarRelationFilter, Prisma.LicenseRenewChargeTransactionWhereInput>
|
||||||
activation?: Prisma.XOR<Prisma.LicenseActivationScalarRelationFilter, Prisma.LicenseActivationWhereInput>
|
activation?: Prisma.XOR<Prisma.LicenseActivationNullableScalarRelationFilter, Prisma.LicenseActivationWhereInput> | null
|
||||||
}, "id">
|
}, "id">
|
||||||
|
|
||||||
export type LicenseRenewOrderByWithAggregationInput = {
|
export type LicenseRenewOrderByWithAggregationInput = {
|
||||||
@@ -226,7 +226,7 @@ export type LicenseRenewOrderByWithAggregationInput = {
|
|||||||
created_at?: Prisma.SortOrder
|
created_at?: Prisma.SortOrder
|
||||||
updated_at?: Prisma.SortOrder
|
updated_at?: Prisma.SortOrder
|
||||||
charge_transaction_id?: Prisma.SortOrder
|
charge_transaction_id?: Prisma.SortOrder
|
||||||
activation_id?: Prisma.SortOrder
|
activation_id?: Prisma.SortOrderInput | Prisma.SortOrder
|
||||||
_count?: Prisma.LicenseRenewCountOrderByAggregateInput
|
_count?: Prisma.LicenseRenewCountOrderByAggregateInput
|
||||||
_max?: Prisma.LicenseRenewMaxOrderByAggregateInput
|
_max?: Prisma.LicenseRenewMaxOrderByAggregateInput
|
||||||
_min?: Prisma.LicenseRenewMinOrderByAggregateInput
|
_min?: Prisma.LicenseRenewMinOrderByAggregateInput
|
||||||
@@ -241,7 +241,7 @@ export type LicenseRenewScalarWhereWithAggregatesInput = {
|
|||||||
created_at?: Prisma.DateTimeWithAggregatesFilter<"LicenseRenew"> | Date | string
|
created_at?: Prisma.DateTimeWithAggregatesFilter<"LicenseRenew"> | Date | string
|
||||||
updated_at?: Prisma.DateTimeWithAggregatesFilter<"LicenseRenew"> | Date | string
|
updated_at?: Prisma.DateTimeWithAggregatesFilter<"LicenseRenew"> | Date | string
|
||||||
charge_transaction_id?: Prisma.StringWithAggregatesFilter<"LicenseRenew"> | string
|
charge_transaction_id?: Prisma.StringWithAggregatesFilter<"LicenseRenew"> | string
|
||||||
activation_id?: Prisma.StringWithAggregatesFilter<"LicenseRenew"> | string
|
activation_id?: Prisma.StringNullableWithAggregatesFilter<"LicenseRenew"> | string | null
|
||||||
}
|
}
|
||||||
|
|
||||||
export type LicenseRenewCreateInput = {
|
export type LicenseRenewCreateInput = {
|
||||||
@@ -250,7 +250,7 @@ export type LicenseRenewCreateInput = {
|
|||||||
created_at?: Date | string
|
created_at?: Date | string
|
||||||
updated_at?: Date | string
|
updated_at?: Date | string
|
||||||
charge_transaction: Prisma.LicenseRenewChargeTransactionCreateNestedOneWithoutLicense_renewsInput
|
charge_transaction: Prisma.LicenseRenewChargeTransactionCreateNestedOneWithoutLicense_renewsInput
|
||||||
activation: Prisma.LicenseActivationCreateNestedOneWithoutLicense_renewsInput
|
activation?: Prisma.LicenseActivationCreateNestedOneWithoutLicense_renewsInput
|
||||||
}
|
}
|
||||||
|
|
||||||
export type LicenseRenewUncheckedCreateInput = {
|
export type LicenseRenewUncheckedCreateInput = {
|
||||||
@@ -259,7 +259,7 @@ export type LicenseRenewUncheckedCreateInput = {
|
|||||||
created_at?: Date | string
|
created_at?: Date | string
|
||||||
updated_at?: Date | string
|
updated_at?: Date | string
|
||||||
charge_transaction_id: string
|
charge_transaction_id: string
|
||||||
activation_id: string
|
activation_id?: string | null
|
||||||
}
|
}
|
||||||
|
|
||||||
export type LicenseRenewUpdateInput = {
|
export type LicenseRenewUpdateInput = {
|
||||||
@@ -268,7 +268,7 @@ export type LicenseRenewUpdateInput = {
|
|||||||
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||||
updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||||
charge_transaction?: Prisma.LicenseRenewChargeTransactionUpdateOneRequiredWithoutLicense_renewsNestedInput
|
charge_transaction?: Prisma.LicenseRenewChargeTransactionUpdateOneRequiredWithoutLicense_renewsNestedInput
|
||||||
activation?: Prisma.LicenseActivationUpdateOneRequiredWithoutLicense_renewsNestedInput
|
activation?: Prisma.LicenseActivationUpdateOneWithoutLicense_renewsNestedInput
|
||||||
}
|
}
|
||||||
|
|
||||||
export type LicenseRenewUncheckedUpdateInput = {
|
export type LicenseRenewUncheckedUpdateInput = {
|
||||||
@@ -277,7 +277,7 @@ export type LicenseRenewUncheckedUpdateInput = {
|
|||||||
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||||
updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||||
charge_transaction_id?: Prisma.StringFieldUpdateOperationsInput | string
|
charge_transaction_id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||||
activation_id?: Prisma.StringFieldUpdateOperationsInput | string
|
activation_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||||
}
|
}
|
||||||
|
|
||||||
export type LicenseRenewCreateManyInput = {
|
export type LicenseRenewCreateManyInput = {
|
||||||
@@ -286,7 +286,7 @@ export type LicenseRenewCreateManyInput = {
|
|||||||
created_at?: Date | string
|
created_at?: Date | string
|
||||||
updated_at?: Date | string
|
updated_at?: Date | string
|
||||||
charge_transaction_id: string
|
charge_transaction_id: string
|
||||||
activation_id: string
|
activation_id?: string | null
|
||||||
}
|
}
|
||||||
|
|
||||||
export type LicenseRenewUpdateManyMutationInput = {
|
export type LicenseRenewUpdateManyMutationInput = {
|
||||||
@@ -302,7 +302,7 @@ export type LicenseRenewUncheckedUpdateManyInput = {
|
|||||||
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||||
updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||||
charge_transaction_id?: Prisma.StringFieldUpdateOperationsInput | string
|
charge_transaction_id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||||
activation_id?: Prisma.StringFieldUpdateOperationsInput | string
|
activation_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||||
}
|
}
|
||||||
|
|
||||||
export type LicenseRenewListRelationFilter = {
|
export type LicenseRenewListRelationFilter = {
|
||||||
@@ -483,7 +483,7 @@ export type LicenseRenewScalarWhereInput = {
|
|||||||
created_at?: Prisma.DateTimeFilter<"LicenseRenew"> | Date | string
|
created_at?: Prisma.DateTimeFilter<"LicenseRenew"> | Date | string
|
||||||
updated_at?: Prisma.DateTimeFilter<"LicenseRenew"> | Date | string
|
updated_at?: Prisma.DateTimeFilter<"LicenseRenew"> | Date | string
|
||||||
charge_transaction_id?: Prisma.StringFilter<"LicenseRenew"> | string
|
charge_transaction_id?: Prisma.StringFilter<"LicenseRenew"> | string
|
||||||
activation_id?: Prisma.StringFilter<"LicenseRenew"> | string
|
activation_id?: Prisma.StringNullableFilter<"LicenseRenew"> | string | null
|
||||||
}
|
}
|
||||||
|
|
||||||
export type LicenseRenewCreateWithoutCharge_transactionInput = {
|
export type LicenseRenewCreateWithoutCharge_transactionInput = {
|
||||||
@@ -491,7 +491,7 @@ export type LicenseRenewCreateWithoutCharge_transactionInput = {
|
|||||||
expires_at: Date | string
|
expires_at: Date | string
|
||||||
created_at?: Date | string
|
created_at?: Date | string
|
||||||
updated_at?: Date | string
|
updated_at?: Date | string
|
||||||
activation: Prisma.LicenseActivationCreateNestedOneWithoutLicense_renewsInput
|
activation?: Prisma.LicenseActivationCreateNestedOneWithoutLicense_renewsInput
|
||||||
}
|
}
|
||||||
|
|
||||||
export type LicenseRenewUncheckedCreateWithoutCharge_transactionInput = {
|
export type LicenseRenewUncheckedCreateWithoutCharge_transactionInput = {
|
||||||
@@ -499,7 +499,7 @@ export type LicenseRenewUncheckedCreateWithoutCharge_transactionInput = {
|
|||||||
expires_at: Date | string
|
expires_at: Date | string
|
||||||
created_at?: Date | string
|
created_at?: Date | string
|
||||||
updated_at?: Date | string
|
updated_at?: Date | string
|
||||||
activation_id: string
|
activation_id?: string | null
|
||||||
}
|
}
|
||||||
|
|
||||||
export type LicenseRenewCreateOrConnectWithoutCharge_transactionInput = {
|
export type LicenseRenewCreateOrConnectWithoutCharge_transactionInput = {
|
||||||
@@ -565,7 +565,7 @@ export type LicenseRenewCreateManyCharge_transactionInput = {
|
|||||||
expires_at: Date | string
|
expires_at: Date | string
|
||||||
created_at?: Date | string
|
created_at?: Date | string
|
||||||
updated_at?: Date | string
|
updated_at?: Date | string
|
||||||
activation_id: string
|
activation_id?: string | null
|
||||||
}
|
}
|
||||||
|
|
||||||
export type LicenseRenewUpdateWithoutCharge_transactionInput = {
|
export type LicenseRenewUpdateWithoutCharge_transactionInput = {
|
||||||
@@ -573,7 +573,7 @@ export type LicenseRenewUpdateWithoutCharge_transactionInput = {
|
|||||||
expires_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
expires_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||||
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||||
updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||||
activation?: Prisma.LicenseActivationUpdateOneRequiredWithoutLicense_renewsNestedInput
|
activation?: Prisma.LicenseActivationUpdateOneWithoutLicense_renewsNestedInput
|
||||||
}
|
}
|
||||||
|
|
||||||
export type LicenseRenewUncheckedUpdateWithoutCharge_transactionInput = {
|
export type LicenseRenewUncheckedUpdateWithoutCharge_transactionInput = {
|
||||||
@@ -581,7 +581,7 @@ export type LicenseRenewUncheckedUpdateWithoutCharge_transactionInput = {
|
|||||||
expires_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
expires_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||||
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||||
updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||||
activation_id?: Prisma.StringFieldUpdateOperationsInput | string
|
activation_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||||
}
|
}
|
||||||
|
|
||||||
export type LicenseRenewUncheckedUpdateManyWithoutCharge_transactionInput = {
|
export type LicenseRenewUncheckedUpdateManyWithoutCharge_transactionInput = {
|
||||||
@@ -589,7 +589,7 @@ export type LicenseRenewUncheckedUpdateManyWithoutCharge_transactionInput = {
|
|||||||
expires_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
expires_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||||
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||||
updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||||
activation_id?: Prisma.StringFieldUpdateOperationsInput | string
|
activation_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@@ -602,7 +602,7 @@ export type LicenseRenewSelect<ExtArgs extends runtime.Types.Extensions.Internal
|
|||||||
charge_transaction_id?: boolean
|
charge_transaction_id?: boolean
|
||||||
activation_id?: boolean
|
activation_id?: boolean
|
||||||
charge_transaction?: boolean | Prisma.LicenseRenewChargeTransactionDefaultArgs<ExtArgs>
|
charge_transaction?: boolean | Prisma.LicenseRenewChargeTransactionDefaultArgs<ExtArgs>
|
||||||
activation?: boolean | Prisma.LicenseActivationDefaultArgs<ExtArgs>
|
activation?: boolean | Prisma.LicenseRenew$activationArgs<ExtArgs>
|
||||||
}, ExtArgs["result"]["licenseRenew"]>
|
}, ExtArgs["result"]["licenseRenew"]>
|
||||||
|
|
||||||
|
|
||||||
@@ -619,14 +619,14 @@ export type LicenseRenewSelectScalar = {
|
|||||||
export type LicenseRenewOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "expires_at" | "created_at" | "updated_at" | "charge_transaction_id" | "activation_id", ExtArgs["result"]["licenseRenew"]>
|
export type LicenseRenewOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "expires_at" | "created_at" | "updated_at" | "charge_transaction_id" | "activation_id", ExtArgs["result"]["licenseRenew"]>
|
||||||
export type LicenseRenewInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
export type LicenseRenewInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
||||||
charge_transaction?: boolean | Prisma.LicenseRenewChargeTransactionDefaultArgs<ExtArgs>
|
charge_transaction?: boolean | Prisma.LicenseRenewChargeTransactionDefaultArgs<ExtArgs>
|
||||||
activation?: boolean | Prisma.LicenseActivationDefaultArgs<ExtArgs>
|
activation?: boolean | Prisma.LicenseRenew$activationArgs<ExtArgs>
|
||||||
}
|
}
|
||||||
|
|
||||||
export type $LicenseRenewPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
export type $LicenseRenewPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
||||||
name: "LicenseRenew"
|
name: "LicenseRenew"
|
||||||
objects: {
|
objects: {
|
||||||
charge_transaction: Prisma.$LicenseRenewChargeTransactionPayload<ExtArgs>
|
charge_transaction: Prisma.$LicenseRenewChargeTransactionPayload<ExtArgs>
|
||||||
activation: Prisma.$LicenseActivationPayload<ExtArgs>
|
activation: Prisma.$LicenseActivationPayload<ExtArgs> | null
|
||||||
}
|
}
|
||||||
scalars: runtime.Types.Extensions.GetPayloadResult<{
|
scalars: runtime.Types.Extensions.GetPayloadResult<{
|
||||||
id: string
|
id: string
|
||||||
@@ -634,7 +634,7 @@ export type $LicenseRenewPayload<ExtArgs extends runtime.Types.Extensions.Intern
|
|||||||
created_at: Date
|
created_at: Date
|
||||||
updated_at: Date
|
updated_at: Date
|
||||||
charge_transaction_id: string
|
charge_transaction_id: string
|
||||||
activation_id: string
|
activation_id: string | null
|
||||||
}, ExtArgs["result"]["licenseRenew"]>
|
}, ExtArgs["result"]["licenseRenew"]>
|
||||||
composites: {}
|
composites: {}
|
||||||
}
|
}
|
||||||
@@ -976,7 +976,7 @@ readonly fields: LicenseRenewFieldRefs;
|
|||||||
export interface Prisma__LicenseRenewClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
|
export interface Prisma__LicenseRenewClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
|
||||||
readonly [Symbol.toStringTag]: "PrismaPromise"
|
readonly [Symbol.toStringTag]: "PrismaPromise"
|
||||||
charge_transaction<T extends Prisma.LicenseRenewChargeTransactionDefaultArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.LicenseRenewChargeTransactionDefaultArgs<ExtArgs>>): Prisma.Prisma__LicenseRenewChargeTransactionClient<runtime.Types.Result.GetResult<Prisma.$LicenseRenewChargeTransactionPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>
|
charge_transaction<T extends Prisma.LicenseRenewChargeTransactionDefaultArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.LicenseRenewChargeTransactionDefaultArgs<ExtArgs>>): Prisma.Prisma__LicenseRenewChargeTransactionClient<runtime.Types.Result.GetResult<Prisma.$LicenseRenewChargeTransactionPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>
|
||||||
activation<T extends Prisma.LicenseActivationDefaultArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.LicenseActivationDefaultArgs<ExtArgs>>): Prisma.Prisma__LicenseActivationClient<runtime.Types.Result.GetResult<Prisma.$LicenseActivationPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>
|
activation<T extends Prisma.LicenseRenew$activationArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.LicenseRenew$activationArgs<ExtArgs>>): Prisma.Prisma__LicenseActivationClient<runtime.Types.Result.GetResult<Prisma.$LicenseActivationPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
|
||||||
/**
|
/**
|
||||||
* Attaches callbacks for the resolution and/or rejection of the Promise.
|
* Attaches callbacks for the resolution and/or rejection of the Promise.
|
||||||
* @param onfulfilled The callback to execute when the Promise is resolved.
|
* @param onfulfilled The callback to execute when the Promise is resolved.
|
||||||
@@ -1359,6 +1359,25 @@ export type LicenseRenewDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.
|
|||||||
limit?: number
|
limit?: number
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* LicenseRenew.activation
|
||||||
|
*/
|
||||||
|
export type LicenseRenew$activationArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
||||||
|
/**
|
||||||
|
* Select specific fields to fetch from the LicenseActivation
|
||||||
|
*/
|
||||||
|
select?: Prisma.LicenseActivationSelect<ExtArgs> | null
|
||||||
|
/**
|
||||||
|
* Omit specific fields from the LicenseActivation
|
||||||
|
*/
|
||||||
|
omit?: Prisma.LicenseActivationOmit<ExtArgs> | null
|
||||||
|
/**
|
||||||
|
* Choose, which related nodes to fetch as well
|
||||||
|
*/
|
||||||
|
include?: Prisma.LicenseActivationInclude<ExtArgs> | null
|
||||||
|
where?: Prisma.LicenseActivationWhereInput
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* LicenseRenew without action
|
* LicenseRenew without action
|
||||||
*/
|
*/
|
||||||
|
|||||||
@@ -208,7 +208,6 @@ export type PartnerAccountOrderByWithRelationInput = {
|
|||||||
|
|
||||||
export type PartnerAccountWhereUniqueInput = Prisma.AtLeast<{
|
export type PartnerAccountWhereUniqueInput = Prisma.AtLeast<{
|
||||||
id?: string
|
id?: string
|
||||||
partner_id?: string
|
|
||||||
account_id?: string
|
account_id?: string
|
||||||
AND?: Prisma.PartnerAccountWhereInput | Prisma.PartnerAccountWhereInput[]
|
AND?: Prisma.PartnerAccountWhereInput | Prisma.PartnerAccountWhereInput[]
|
||||||
OR?: Prisma.PartnerAccountWhereInput[]
|
OR?: Prisma.PartnerAccountWhereInput[]
|
||||||
@@ -216,9 +215,10 @@ export type PartnerAccountWhereUniqueInput = Prisma.AtLeast<{
|
|||||||
role?: Prisma.EnumPartnerRoleFilter<"PartnerAccount"> | $Enums.PartnerRole
|
role?: Prisma.EnumPartnerRoleFilter<"PartnerAccount"> | $Enums.PartnerRole
|
||||||
created_at?: Prisma.DateTimeFilter<"PartnerAccount"> | Date | string
|
created_at?: Prisma.DateTimeFilter<"PartnerAccount"> | Date | string
|
||||||
updated_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>
|
partner?: Prisma.XOR<Prisma.PartnerScalarRelationFilter, Prisma.PartnerWhereInput>
|
||||||
account?: Prisma.XOR<Prisma.AccountScalarRelationFilter, Prisma.AccountWhereInput>
|
account?: Prisma.XOR<Prisma.AccountScalarRelationFilter, Prisma.AccountWhereInput>
|
||||||
}, "id" | "partner_id" | "account_id">
|
}, "id" | "account_id">
|
||||||
|
|
||||||
export type PartnerAccountOrderByWithAggregationInput = {
|
export type PartnerAccountOrderByWithAggregationInput = {
|
||||||
id?: Prisma.SortOrder
|
id?: Prisma.SortOrder
|
||||||
|
|||||||
@@ -29,7 +29,6 @@ export type PartnerAccountQuotaCreditMinAggregateOutputType = {
|
|||||||
created_at: Date | null
|
created_at: Date | null
|
||||||
updated_at: Date | null
|
updated_at: Date | null
|
||||||
charge_transaction_id: string | null
|
charge_transaction_id: string | null
|
||||||
allocation_id: string | null
|
|
||||||
}
|
}
|
||||||
|
|
||||||
export type PartnerAccountQuotaCreditMaxAggregateOutputType = {
|
export type PartnerAccountQuotaCreditMaxAggregateOutputType = {
|
||||||
@@ -37,7 +36,6 @@ export type PartnerAccountQuotaCreditMaxAggregateOutputType = {
|
|||||||
created_at: Date | null
|
created_at: Date | null
|
||||||
updated_at: Date | null
|
updated_at: Date | null
|
||||||
charge_transaction_id: string | null
|
charge_transaction_id: string | null
|
||||||
allocation_id: string | null
|
|
||||||
}
|
}
|
||||||
|
|
||||||
export type PartnerAccountQuotaCreditCountAggregateOutputType = {
|
export type PartnerAccountQuotaCreditCountAggregateOutputType = {
|
||||||
@@ -45,7 +43,6 @@ export type PartnerAccountQuotaCreditCountAggregateOutputType = {
|
|||||||
created_at: number
|
created_at: number
|
||||||
updated_at: number
|
updated_at: number
|
||||||
charge_transaction_id: number
|
charge_transaction_id: number
|
||||||
allocation_id: number
|
|
||||||
_all: number
|
_all: number
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -55,7 +52,6 @@ export type PartnerAccountQuotaCreditMinAggregateInputType = {
|
|||||||
created_at?: true
|
created_at?: true
|
||||||
updated_at?: true
|
updated_at?: true
|
||||||
charge_transaction_id?: true
|
charge_transaction_id?: true
|
||||||
allocation_id?: true
|
|
||||||
}
|
}
|
||||||
|
|
||||||
export type PartnerAccountQuotaCreditMaxAggregateInputType = {
|
export type PartnerAccountQuotaCreditMaxAggregateInputType = {
|
||||||
@@ -63,7 +59,6 @@ export type PartnerAccountQuotaCreditMaxAggregateInputType = {
|
|||||||
created_at?: true
|
created_at?: true
|
||||||
updated_at?: true
|
updated_at?: true
|
||||||
charge_transaction_id?: true
|
charge_transaction_id?: true
|
||||||
allocation_id?: true
|
|
||||||
}
|
}
|
||||||
|
|
||||||
export type PartnerAccountQuotaCreditCountAggregateInputType = {
|
export type PartnerAccountQuotaCreditCountAggregateInputType = {
|
||||||
@@ -71,7 +66,6 @@ export type PartnerAccountQuotaCreditCountAggregateInputType = {
|
|||||||
created_at?: true
|
created_at?: true
|
||||||
updated_at?: true
|
updated_at?: true
|
||||||
charge_transaction_id?: true
|
charge_transaction_id?: true
|
||||||
allocation_id?: true
|
|
||||||
_all?: true
|
_all?: true
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -152,7 +146,6 @@ export type PartnerAccountQuotaCreditGroupByOutputType = {
|
|||||||
created_at: Date
|
created_at: Date
|
||||||
updated_at: Date
|
updated_at: Date
|
||||||
charge_transaction_id: string | null
|
charge_transaction_id: string | null
|
||||||
allocation_id: string | null
|
|
||||||
_count: PartnerAccountQuotaCreditCountAggregateOutputType | null
|
_count: PartnerAccountQuotaCreditCountAggregateOutputType | null
|
||||||
_min: PartnerAccountQuotaCreditMinAggregateOutputType | null
|
_min: PartnerAccountQuotaCreditMinAggregateOutputType | null
|
||||||
_max: PartnerAccountQuotaCreditMaxAggregateOutputType | null
|
_max: PartnerAccountQuotaCreditMaxAggregateOutputType | null
|
||||||
@@ -181,7 +174,6 @@ export type PartnerAccountQuotaCreditWhereInput = {
|
|||||||
created_at?: Prisma.DateTimeFilter<"PartnerAccountQuotaCredit"> | Date | string
|
created_at?: Prisma.DateTimeFilter<"PartnerAccountQuotaCredit"> | Date | string
|
||||||
updated_at?: Prisma.DateTimeFilter<"PartnerAccountQuotaCredit"> | Date | string
|
updated_at?: Prisma.DateTimeFilter<"PartnerAccountQuotaCredit"> | Date | string
|
||||||
charge_transaction_id?: Prisma.StringNullableFilter<"PartnerAccountQuotaCredit"> | string | null
|
charge_transaction_id?: Prisma.StringNullableFilter<"PartnerAccountQuotaCredit"> | string | null
|
||||||
allocation_id?: Prisma.StringNullableFilter<"PartnerAccountQuotaCredit"> | string | null
|
|
||||||
charge_transaction?: Prisma.XOR<Prisma.PartnerAccountQuotaChargeTransactionNullableScalarRelationFilter, Prisma.PartnerAccountQuotaChargeTransactionWhereInput> | null
|
charge_transaction?: Prisma.XOR<Prisma.PartnerAccountQuotaChargeTransactionNullableScalarRelationFilter, Prisma.PartnerAccountQuotaChargeTransactionWhereInput> | null
|
||||||
allocation?: Prisma.XOR<Prisma.LicenseAccountAllocationNullableScalarRelationFilter, Prisma.LicenseAccountAllocationWhereInput> | null
|
allocation?: Prisma.XOR<Prisma.LicenseAccountAllocationNullableScalarRelationFilter, Prisma.LicenseAccountAllocationWhereInput> | null
|
||||||
}
|
}
|
||||||
@@ -191,7 +183,6 @@ export type PartnerAccountQuotaCreditOrderByWithRelationInput = {
|
|||||||
created_at?: Prisma.SortOrder
|
created_at?: Prisma.SortOrder
|
||||||
updated_at?: Prisma.SortOrder
|
updated_at?: Prisma.SortOrder
|
||||||
charge_transaction_id?: Prisma.SortOrderInput | Prisma.SortOrder
|
charge_transaction_id?: Prisma.SortOrderInput | Prisma.SortOrder
|
||||||
allocation_id?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
||||||
charge_transaction?: Prisma.PartnerAccountQuotaChargeTransactionOrderByWithRelationInput
|
charge_transaction?: Prisma.PartnerAccountQuotaChargeTransactionOrderByWithRelationInput
|
||||||
allocation?: Prisma.LicenseAccountAllocationOrderByWithRelationInput
|
allocation?: Prisma.LicenseAccountAllocationOrderByWithRelationInput
|
||||||
_relevance?: Prisma.PartnerAccountQuotaCreditOrderByRelevanceInput
|
_relevance?: Prisma.PartnerAccountQuotaCreditOrderByRelevanceInput
|
||||||
@@ -199,7 +190,6 @@ export type PartnerAccountQuotaCreditOrderByWithRelationInput = {
|
|||||||
|
|
||||||
export type PartnerAccountQuotaCreditWhereUniqueInput = Prisma.AtLeast<{
|
export type PartnerAccountQuotaCreditWhereUniqueInput = Prisma.AtLeast<{
|
||||||
id?: string
|
id?: string
|
||||||
allocation_id?: string
|
|
||||||
AND?: Prisma.PartnerAccountQuotaCreditWhereInput | Prisma.PartnerAccountQuotaCreditWhereInput[]
|
AND?: Prisma.PartnerAccountQuotaCreditWhereInput | Prisma.PartnerAccountQuotaCreditWhereInput[]
|
||||||
OR?: Prisma.PartnerAccountQuotaCreditWhereInput[]
|
OR?: Prisma.PartnerAccountQuotaCreditWhereInput[]
|
||||||
NOT?: Prisma.PartnerAccountQuotaCreditWhereInput | Prisma.PartnerAccountQuotaCreditWhereInput[]
|
NOT?: Prisma.PartnerAccountQuotaCreditWhereInput | Prisma.PartnerAccountQuotaCreditWhereInput[]
|
||||||
@@ -208,14 +198,13 @@ export type PartnerAccountQuotaCreditWhereUniqueInput = Prisma.AtLeast<{
|
|||||||
charge_transaction_id?: Prisma.StringNullableFilter<"PartnerAccountQuotaCredit"> | string | null
|
charge_transaction_id?: Prisma.StringNullableFilter<"PartnerAccountQuotaCredit"> | string | null
|
||||||
charge_transaction?: Prisma.XOR<Prisma.PartnerAccountQuotaChargeTransactionNullableScalarRelationFilter, Prisma.PartnerAccountQuotaChargeTransactionWhereInput> | null
|
charge_transaction?: Prisma.XOR<Prisma.PartnerAccountQuotaChargeTransactionNullableScalarRelationFilter, Prisma.PartnerAccountQuotaChargeTransactionWhereInput> | null
|
||||||
allocation?: Prisma.XOR<Prisma.LicenseAccountAllocationNullableScalarRelationFilter, Prisma.LicenseAccountAllocationWhereInput> | null
|
allocation?: Prisma.XOR<Prisma.LicenseAccountAllocationNullableScalarRelationFilter, Prisma.LicenseAccountAllocationWhereInput> | null
|
||||||
}, "id" | "allocation_id">
|
}, "id">
|
||||||
|
|
||||||
export type PartnerAccountQuotaCreditOrderByWithAggregationInput = {
|
export type PartnerAccountQuotaCreditOrderByWithAggregationInput = {
|
||||||
id?: Prisma.SortOrder
|
id?: Prisma.SortOrder
|
||||||
created_at?: Prisma.SortOrder
|
created_at?: Prisma.SortOrder
|
||||||
updated_at?: Prisma.SortOrder
|
updated_at?: Prisma.SortOrder
|
||||||
charge_transaction_id?: Prisma.SortOrderInput | Prisma.SortOrder
|
charge_transaction_id?: Prisma.SortOrderInput | Prisma.SortOrder
|
||||||
allocation_id?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
||||||
_count?: Prisma.PartnerAccountQuotaCreditCountOrderByAggregateInput
|
_count?: Prisma.PartnerAccountQuotaCreditCountOrderByAggregateInput
|
||||||
_max?: Prisma.PartnerAccountQuotaCreditMaxOrderByAggregateInput
|
_max?: Prisma.PartnerAccountQuotaCreditMaxOrderByAggregateInput
|
||||||
_min?: Prisma.PartnerAccountQuotaCreditMinOrderByAggregateInput
|
_min?: Prisma.PartnerAccountQuotaCreditMinOrderByAggregateInput
|
||||||
@@ -229,7 +218,6 @@ export type PartnerAccountQuotaCreditScalarWhereWithAggregatesInput = {
|
|||||||
created_at?: Prisma.DateTimeWithAggregatesFilter<"PartnerAccountQuotaCredit"> | Date | string
|
created_at?: Prisma.DateTimeWithAggregatesFilter<"PartnerAccountQuotaCredit"> | Date | string
|
||||||
updated_at?: Prisma.DateTimeWithAggregatesFilter<"PartnerAccountQuotaCredit"> | Date | string
|
updated_at?: Prisma.DateTimeWithAggregatesFilter<"PartnerAccountQuotaCredit"> | Date | string
|
||||||
charge_transaction_id?: Prisma.StringNullableWithAggregatesFilter<"PartnerAccountQuotaCredit"> | string | null
|
charge_transaction_id?: Prisma.StringNullableWithAggregatesFilter<"PartnerAccountQuotaCredit"> | string | null
|
||||||
allocation_id?: Prisma.StringNullableWithAggregatesFilter<"PartnerAccountQuotaCredit"> | string | null
|
|
||||||
}
|
}
|
||||||
|
|
||||||
export type PartnerAccountQuotaCreditCreateInput = {
|
export type PartnerAccountQuotaCreditCreateInput = {
|
||||||
@@ -237,7 +225,7 @@ export type PartnerAccountQuotaCreditCreateInput = {
|
|||||||
created_at?: Date | string
|
created_at?: Date | string
|
||||||
updated_at?: Date | string
|
updated_at?: Date | string
|
||||||
charge_transaction?: Prisma.PartnerAccountQuotaChargeTransactionCreateNestedOneWithoutCreditsInput
|
charge_transaction?: Prisma.PartnerAccountQuotaChargeTransactionCreateNestedOneWithoutCreditsInput
|
||||||
allocation?: Prisma.LicenseAccountAllocationCreateNestedOneWithoutPartner_account_quota_creditInput
|
allocation?: Prisma.LicenseAccountAllocationCreateNestedOneWithoutCreditInput
|
||||||
}
|
}
|
||||||
|
|
||||||
export type PartnerAccountQuotaCreditUncheckedCreateInput = {
|
export type PartnerAccountQuotaCreditUncheckedCreateInput = {
|
||||||
@@ -245,7 +233,7 @@ export type PartnerAccountQuotaCreditUncheckedCreateInput = {
|
|||||||
created_at?: Date | string
|
created_at?: Date | string
|
||||||
updated_at?: Date | string
|
updated_at?: Date | string
|
||||||
charge_transaction_id?: string | null
|
charge_transaction_id?: string | null
|
||||||
allocation_id?: string | null
|
allocation?: Prisma.LicenseAccountAllocationUncheckedCreateNestedOneWithoutCreditInput
|
||||||
}
|
}
|
||||||
|
|
||||||
export type PartnerAccountQuotaCreditUpdateInput = {
|
export type PartnerAccountQuotaCreditUpdateInput = {
|
||||||
@@ -253,7 +241,7 @@ export type PartnerAccountQuotaCreditUpdateInput = {
|
|||||||
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||||
updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||||
charge_transaction?: Prisma.PartnerAccountQuotaChargeTransactionUpdateOneWithoutCreditsNestedInput
|
charge_transaction?: Prisma.PartnerAccountQuotaChargeTransactionUpdateOneWithoutCreditsNestedInput
|
||||||
allocation?: Prisma.LicenseAccountAllocationUpdateOneWithoutPartner_account_quota_creditNestedInput
|
allocation?: Prisma.LicenseAccountAllocationUpdateOneWithoutCreditNestedInput
|
||||||
}
|
}
|
||||||
|
|
||||||
export type PartnerAccountQuotaCreditUncheckedUpdateInput = {
|
export type PartnerAccountQuotaCreditUncheckedUpdateInput = {
|
||||||
@@ -261,7 +249,7 @@ export type PartnerAccountQuotaCreditUncheckedUpdateInput = {
|
|||||||
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||||
updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||||
charge_transaction_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
charge_transaction_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||||
allocation_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
allocation?: Prisma.LicenseAccountAllocationUncheckedUpdateOneWithoutCreditNestedInput
|
||||||
}
|
}
|
||||||
|
|
||||||
export type PartnerAccountQuotaCreditCreateManyInput = {
|
export type PartnerAccountQuotaCreditCreateManyInput = {
|
||||||
@@ -269,7 +257,6 @@ export type PartnerAccountQuotaCreditCreateManyInput = {
|
|||||||
created_at?: Date | string
|
created_at?: Date | string
|
||||||
updated_at?: Date | string
|
updated_at?: Date | string
|
||||||
charge_transaction_id?: string | null
|
charge_transaction_id?: string | null
|
||||||
allocation_id?: string | null
|
|
||||||
}
|
}
|
||||||
|
|
||||||
export type PartnerAccountQuotaCreditUpdateManyMutationInput = {
|
export type PartnerAccountQuotaCreditUpdateManyMutationInput = {
|
||||||
@@ -283,7 +270,6 @@ export type PartnerAccountQuotaCreditUncheckedUpdateManyInput = {
|
|||||||
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||||
updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||||
charge_transaction_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
charge_transaction_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||||
allocation_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
||||||
}
|
}
|
||||||
|
|
||||||
export type PartnerAccountQuotaCreditListRelationFilter = {
|
export type PartnerAccountQuotaCreditListRelationFilter = {
|
||||||
@@ -307,7 +293,6 @@ export type PartnerAccountQuotaCreditCountOrderByAggregateInput = {
|
|||||||
created_at?: Prisma.SortOrder
|
created_at?: Prisma.SortOrder
|
||||||
updated_at?: Prisma.SortOrder
|
updated_at?: Prisma.SortOrder
|
||||||
charge_transaction_id?: Prisma.SortOrder
|
charge_transaction_id?: Prisma.SortOrder
|
||||||
allocation_id?: Prisma.SortOrder
|
|
||||||
}
|
}
|
||||||
|
|
||||||
export type PartnerAccountQuotaCreditMaxOrderByAggregateInput = {
|
export type PartnerAccountQuotaCreditMaxOrderByAggregateInput = {
|
||||||
@@ -315,7 +300,6 @@ export type PartnerAccountQuotaCreditMaxOrderByAggregateInput = {
|
|||||||
created_at?: Prisma.SortOrder
|
created_at?: Prisma.SortOrder
|
||||||
updated_at?: Prisma.SortOrder
|
updated_at?: Prisma.SortOrder
|
||||||
charge_transaction_id?: Prisma.SortOrder
|
charge_transaction_id?: Prisma.SortOrder
|
||||||
allocation_id?: Prisma.SortOrder
|
|
||||||
}
|
}
|
||||||
|
|
||||||
export type PartnerAccountQuotaCreditMinOrderByAggregateInput = {
|
export type PartnerAccountQuotaCreditMinOrderByAggregateInput = {
|
||||||
@@ -323,7 +307,6 @@ export type PartnerAccountQuotaCreditMinOrderByAggregateInput = {
|
|||||||
created_at?: Prisma.SortOrder
|
created_at?: Prisma.SortOrder
|
||||||
updated_at?: Prisma.SortOrder
|
updated_at?: Prisma.SortOrder
|
||||||
charge_transaction_id?: Prisma.SortOrder
|
charge_transaction_id?: Prisma.SortOrder
|
||||||
allocation_id?: Prisma.SortOrder
|
|
||||||
}
|
}
|
||||||
|
|
||||||
export type PartnerAccountQuotaCreditNullableScalarRelationFilter = {
|
export type PartnerAccountQuotaCreditNullableScalarRelationFilter = {
|
||||||
@@ -379,12 +362,6 @@ export type PartnerAccountQuotaCreditCreateNestedOneWithoutAllocationInput = {
|
|||||||
connect?: Prisma.PartnerAccountQuotaCreditWhereUniqueInput
|
connect?: Prisma.PartnerAccountQuotaCreditWhereUniqueInput
|
||||||
}
|
}
|
||||||
|
|
||||||
export type PartnerAccountQuotaCreditUncheckedCreateNestedOneWithoutAllocationInput = {
|
|
||||||
create?: Prisma.XOR<Prisma.PartnerAccountQuotaCreditCreateWithoutAllocationInput, Prisma.PartnerAccountQuotaCreditUncheckedCreateWithoutAllocationInput>
|
|
||||||
connectOrCreate?: Prisma.PartnerAccountQuotaCreditCreateOrConnectWithoutAllocationInput
|
|
||||||
connect?: Prisma.PartnerAccountQuotaCreditWhereUniqueInput
|
|
||||||
}
|
|
||||||
|
|
||||||
export type PartnerAccountQuotaCreditUpdateOneWithoutAllocationNestedInput = {
|
export type PartnerAccountQuotaCreditUpdateOneWithoutAllocationNestedInput = {
|
||||||
create?: Prisma.XOR<Prisma.PartnerAccountQuotaCreditCreateWithoutAllocationInput, Prisma.PartnerAccountQuotaCreditUncheckedCreateWithoutAllocationInput>
|
create?: Prisma.XOR<Prisma.PartnerAccountQuotaCreditCreateWithoutAllocationInput, Prisma.PartnerAccountQuotaCreditUncheckedCreateWithoutAllocationInput>
|
||||||
connectOrCreate?: Prisma.PartnerAccountQuotaCreditCreateOrConnectWithoutAllocationInput
|
connectOrCreate?: Prisma.PartnerAccountQuotaCreditCreateOrConnectWithoutAllocationInput
|
||||||
@@ -395,28 +372,18 @@ export type PartnerAccountQuotaCreditUpdateOneWithoutAllocationNestedInput = {
|
|||||||
update?: Prisma.XOR<Prisma.XOR<Prisma.PartnerAccountQuotaCreditUpdateToOneWithWhereWithoutAllocationInput, Prisma.PartnerAccountQuotaCreditUpdateWithoutAllocationInput>, Prisma.PartnerAccountQuotaCreditUncheckedUpdateWithoutAllocationInput>
|
update?: Prisma.XOR<Prisma.XOR<Prisma.PartnerAccountQuotaCreditUpdateToOneWithWhereWithoutAllocationInput, Prisma.PartnerAccountQuotaCreditUpdateWithoutAllocationInput>, Prisma.PartnerAccountQuotaCreditUncheckedUpdateWithoutAllocationInput>
|
||||||
}
|
}
|
||||||
|
|
||||||
export type PartnerAccountQuotaCreditUncheckedUpdateOneWithoutAllocationNestedInput = {
|
|
||||||
create?: Prisma.XOR<Prisma.PartnerAccountQuotaCreditCreateWithoutAllocationInput, Prisma.PartnerAccountQuotaCreditUncheckedCreateWithoutAllocationInput>
|
|
||||||
connectOrCreate?: Prisma.PartnerAccountQuotaCreditCreateOrConnectWithoutAllocationInput
|
|
||||||
upsert?: Prisma.PartnerAccountQuotaCreditUpsertWithoutAllocationInput
|
|
||||||
disconnect?: Prisma.PartnerAccountQuotaCreditWhereInput | boolean
|
|
||||||
delete?: Prisma.PartnerAccountQuotaCreditWhereInput | boolean
|
|
||||||
connect?: Prisma.PartnerAccountQuotaCreditWhereUniqueInput
|
|
||||||
update?: Prisma.XOR<Prisma.XOR<Prisma.PartnerAccountQuotaCreditUpdateToOneWithWhereWithoutAllocationInput, Prisma.PartnerAccountQuotaCreditUpdateWithoutAllocationInput>, Prisma.PartnerAccountQuotaCreditUncheckedUpdateWithoutAllocationInput>
|
|
||||||
}
|
|
||||||
|
|
||||||
export type PartnerAccountQuotaCreditCreateWithoutCharge_transactionInput = {
|
export type PartnerAccountQuotaCreditCreateWithoutCharge_transactionInput = {
|
||||||
id?: string
|
id?: string
|
||||||
created_at?: Date | string
|
created_at?: Date | string
|
||||||
updated_at?: Date | string
|
updated_at?: Date | string
|
||||||
allocation?: Prisma.LicenseAccountAllocationCreateNestedOneWithoutPartner_account_quota_creditInput
|
allocation?: Prisma.LicenseAccountAllocationCreateNestedOneWithoutCreditInput
|
||||||
}
|
}
|
||||||
|
|
||||||
export type PartnerAccountQuotaCreditUncheckedCreateWithoutCharge_transactionInput = {
|
export type PartnerAccountQuotaCreditUncheckedCreateWithoutCharge_transactionInput = {
|
||||||
id?: string
|
id?: string
|
||||||
created_at?: Date | string
|
created_at?: Date | string
|
||||||
updated_at?: Date | string
|
updated_at?: Date | string
|
||||||
allocation_id?: string | null
|
allocation?: Prisma.LicenseAccountAllocationUncheckedCreateNestedOneWithoutCreditInput
|
||||||
}
|
}
|
||||||
|
|
||||||
export type PartnerAccountQuotaCreditCreateOrConnectWithoutCharge_transactionInput = {
|
export type PartnerAccountQuotaCreditCreateOrConnectWithoutCharge_transactionInput = {
|
||||||
@@ -453,7 +420,6 @@ export type PartnerAccountQuotaCreditScalarWhereInput = {
|
|||||||
created_at?: Prisma.DateTimeFilter<"PartnerAccountQuotaCredit"> | Date | string
|
created_at?: Prisma.DateTimeFilter<"PartnerAccountQuotaCredit"> | Date | string
|
||||||
updated_at?: Prisma.DateTimeFilter<"PartnerAccountQuotaCredit"> | Date | string
|
updated_at?: Prisma.DateTimeFilter<"PartnerAccountQuotaCredit"> | Date | string
|
||||||
charge_transaction_id?: Prisma.StringNullableFilter<"PartnerAccountQuotaCredit"> | string | null
|
charge_transaction_id?: Prisma.StringNullableFilter<"PartnerAccountQuotaCredit"> | string | null
|
||||||
allocation_id?: Prisma.StringNullableFilter<"PartnerAccountQuotaCredit"> | string | null
|
|
||||||
}
|
}
|
||||||
|
|
||||||
export type PartnerAccountQuotaCreditCreateWithoutAllocationInput = {
|
export type PartnerAccountQuotaCreditCreateWithoutAllocationInput = {
|
||||||
@@ -504,28 +470,26 @@ export type PartnerAccountQuotaCreditCreateManyCharge_transactionInput = {
|
|||||||
id?: string
|
id?: string
|
||||||
created_at?: Date | string
|
created_at?: Date | string
|
||||||
updated_at?: Date | string
|
updated_at?: Date | string
|
||||||
allocation_id?: string | null
|
|
||||||
}
|
}
|
||||||
|
|
||||||
export type PartnerAccountQuotaCreditUpdateWithoutCharge_transactionInput = {
|
export type PartnerAccountQuotaCreditUpdateWithoutCharge_transactionInput = {
|
||||||
id?: Prisma.StringFieldUpdateOperationsInput | string
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||||
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||||
updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||||
allocation?: Prisma.LicenseAccountAllocationUpdateOneWithoutPartner_account_quota_creditNestedInput
|
allocation?: Prisma.LicenseAccountAllocationUpdateOneWithoutCreditNestedInput
|
||||||
}
|
}
|
||||||
|
|
||||||
export type PartnerAccountQuotaCreditUncheckedUpdateWithoutCharge_transactionInput = {
|
export type PartnerAccountQuotaCreditUncheckedUpdateWithoutCharge_transactionInput = {
|
||||||
id?: Prisma.StringFieldUpdateOperationsInput | string
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||||
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||||
updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||||
allocation_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
allocation?: Prisma.LicenseAccountAllocationUncheckedUpdateOneWithoutCreditNestedInput
|
||||||
}
|
}
|
||||||
|
|
||||||
export type PartnerAccountQuotaCreditUncheckedUpdateManyWithoutCharge_transactionInput = {
|
export type PartnerAccountQuotaCreditUncheckedUpdateManyWithoutCharge_transactionInput = {
|
||||||
id?: Prisma.StringFieldUpdateOperationsInput | string
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||||
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||||
updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||||
allocation_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@@ -535,7 +499,6 @@ export type PartnerAccountQuotaCreditSelect<ExtArgs extends runtime.Types.Extens
|
|||||||
created_at?: boolean
|
created_at?: boolean
|
||||||
updated_at?: boolean
|
updated_at?: boolean
|
||||||
charge_transaction_id?: boolean
|
charge_transaction_id?: boolean
|
||||||
allocation_id?: boolean
|
|
||||||
charge_transaction?: boolean | Prisma.PartnerAccountQuotaCredit$charge_transactionArgs<ExtArgs>
|
charge_transaction?: boolean | Prisma.PartnerAccountQuotaCredit$charge_transactionArgs<ExtArgs>
|
||||||
allocation?: boolean | Prisma.PartnerAccountQuotaCredit$allocationArgs<ExtArgs>
|
allocation?: boolean | Prisma.PartnerAccountQuotaCredit$allocationArgs<ExtArgs>
|
||||||
}, ExtArgs["result"]["partnerAccountQuotaCredit"]>
|
}, ExtArgs["result"]["partnerAccountQuotaCredit"]>
|
||||||
@@ -547,10 +510,9 @@ export type PartnerAccountQuotaCreditSelectScalar = {
|
|||||||
created_at?: boolean
|
created_at?: boolean
|
||||||
updated_at?: boolean
|
updated_at?: boolean
|
||||||
charge_transaction_id?: boolean
|
charge_transaction_id?: boolean
|
||||||
allocation_id?: boolean
|
|
||||||
}
|
}
|
||||||
|
|
||||||
export type PartnerAccountQuotaCreditOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "created_at" | "updated_at" | "charge_transaction_id" | "allocation_id", ExtArgs["result"]["partnerAccountQuotaCredit"]>
|
export type PartnerAccountQuotaCreditOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "created_at" | "updated_at" | "charge_transaction_id", ExtArgs["result"]["partnerAccountQuotaCredit"]>
|
||||||
export type PartnerAccountQuotaCreditInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
export type PartnerAccountQuotaCreditInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
||||||
charge_transaction?: boolean | Prisma.PartnerAccountQuotaCredit$charge_transactionArgs<ExtArgs>
|
charge_transaction?: boolean | Prisma.PartnerAccountQuotaCredit$charge_transactionArgs<ExtArgs>
|
||||||
allocation?: boolean | Prisma.PartnerAccountQuotaCredit$allocationArgs<ExtArgs>
|
allocation?: boolean | Prisma.PartnerAccountQuotaCredit$allocationArgs<ExtArgs>
|
||||||
@@ -567,7 +529,6 @@ export type $PartnerAccountQuotaCreditPayload<ExtArgs extends runtime.Types.Exte
|
|||||||
created_at: Date
|
created_at: Date
|
||||||
updated_at: Date
|
updated_at: Date
|
||||||
charge_transaction_id: string | null
|
charge_transaction_id: string | null
|
||||||
allocation_id: string | null
|
|
||||||
}, ExtArgs["result"]["partnerAccountQuotaCredit"]>
|
}, ExtArgs["result"]["partnerAccountQuotaCredit"]>
|
||||||
composites: {}
|
composites: {}
|
||||||
}
|
}
|
||||||
@@ -943,7 +904,6 @@ export interface PartnerAccountQuotaCreditFieldRefs {
|
|||||||
readonly created_at: Prisma.FieldRef<"PartnerAccountQuotaCredit", 'DateTime'>
|
readonly created_at: Prisma.FieldRef<"PartnerAccountQuotaCredit", 'DateTime'>
|
||||||
readonly updated_at: Prisma.FieldRef<"PartnerAccountQuotaCredit", 'DateTime'>
|
readonly updated_at: Prisma.FieldRef<"PartnerAccountQuotaCredit", 'DateTime'>
|
||||||
readonly charge_transaction_id: Prisma.FieldRef<"PartnerAccountQuotaCredit", 'String'>
|
readonly charge_transaction_id: Prisma.FieldRef<"PartnerAccountQuotaCredit", 'String'>
|
||||||
readonly allocation_id: Prisma.FieldRef<"PartnerAccountQuotaCredit", 'String'>
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -35,8 +35,8 @@ export type PosMinAggregateOutputType = {
|
|||||||
updated_at: Date | null
|
updated_at: Date | null
|
||||||
complex_id: string | null
|
complex_id: string | null
|
||||||
device_id: string | null
|
device_id: string | null
|
||||||
account_id: string | null
|
|
||||||
provider_id: string | null
|
provider_id: string | null
|
||||||
|
account_id: string | null
|
||||||
}
|
}
|
||||||
|
|
||||||
export type PosMaxAggregateOutputType = {
|
export type PosMaxAggregateOutputType = {
|
||||||
@@ -50,8 +50,8 @@ export type PosMaxAggregateOutputType = {
|
|||||||
updated_at: Date | null
|
updated_at: Date | null
|
||||||
complex_id: string | null
|
complex_id: string | null
|
||||||
device_id: string | null
|
device_id: string | null
|
||||||
account_id: string | null
|
|
||||||
provider_id: string | null
|
provider_id: string | null
|
||||||
|
account_id: string | null
|
||||||
}
|
}
|
||||||
|
|
||||||
export type PosCountAggregateOutputType = {
|
export type PosCountAggregateOutputType = {
|
||||||
@@ -65,8 +65,8 @@ export type PosCountAggregateOutputType = {
|
|||||||
updated_at: number
|
updated_at: number
|
||||||
complex_id: number
|
complex_id: number
|
||||||
device_id: number
|
device_id: number
|
||||||
account_id: number
|
|
||||||
provider_id: number
|
provider_id: number
|
||||||
|
account_id: number
|
||||||
_all: number
|
_all: number
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -82,8 +82,8 @@ export type PosMinAggregateInputType = {
|
|||||||
updated_at?: true
|
updated_at?: true
|
||||||
complex_id?: true
|
complex_id?: true
|
||||||
device_id?: true
|
device_id?: true
|
||||||
account_id?: true
|
|
||||||
provider_id?: true
|
provider_id?: true
|
||||||
|
account_id?: true
|
||||||
}
|
}
|
||||||
|
|
||||||
export type PosMaxAggregateInputType = {
|
export type PosMaxAggregateInputType = {
|
||||||
@@ -97,8 +97,8 @@ export type PosMaxAggregateInputType = {
|
|||||||
updated_at?: true
|
updated_at?: true
|
||||||
complex_id?: true
|
complex_id?: true
|
||||||
device_id?: true
|
device_id?: true
|
||||||
account_id?: true
|
|
||||||
provider_id?: true
|
provider_id?: true
|
||||||
|
account_id?: true
|
||||||
}
|
}
|
||||||
|
|
||||||
export type PosCountAggregateInputType = {
|
export type PosCountAggregateInputType = {
|
||||||
@@ -112,8 +112,8 @@ export type PosCountAggregateInputType = {
|
|||||||
updated_at?: true
|
updated_at?: true
|
||||||
complex_id?: true
|
complex_id?: true
|
||||||
device_id?: true
|
device_id?: true
|
||||||
account_id?: true
|
|
||||||
provider_id?: true
|
provider_id?: true
|
||||||
|
account_id?: true
|
||||||
_all?: true
|
_all?: true
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -200,8 +200,8 @@ export type PosGroupByOutputType = {
|
|||||||
updated_at: Date
|
updated_at: Date
|
||||||
complex_id: string
|
complex_id: string
|
||||||
device_id: string | null
|
device_id: string | null
|
||||||
account_id: string | null
|
|
||||||
provider_id: string | null
|
provider_id: string | null
|
||||||
|
account_id: string
|
||||||
_count: PosCountAggregateOutputType | null
|
_count: PosCountAggregateOutputType | null
|
||||||
_min: PosMinAggregateOutputType | null
|
_min: PosMinAggregateOutputType | null
|
||||||
_max: PosMaxAggregateOutputType | null
|
_max: PosMaxAggregateOutputType | null
|
||||||
@@ -236,12 +236,12 @@ export type PosWhereInput = {
|
|||||||
updated_at?: Prisma.DateTimeFilter<"Pos"> | Date | string
|
updated_at?: Prisma.DateTimeFilter<"Pos"> | Date | string
|
||||||
complex_id?: Prisma.StringFilter<"Pos"> | string
|
complex_id?: Prisma.StringFilter<"Pos"> | string
|
||||||
device_id?: Prisma.StringNullableFilter<"Pos"> | string | null
|
device_id?: Prisma.StringNullableFilter<"Pos"> | string | null
|
||||||
account_id?: Prisma.StringNullableFilter<"Pos"> | string | null
|
|
||||||
provider_id?: Prisma.StringNullableFilter<"Pos"> | string | null
|
provider_id?: Prisma.StringNullableFilter<"Pos"> | string | null
|
||||||
|
account_id?: Prisma.StringFilter<"Pos"> | string
|
||||||
complex?: Prisma.XOR<Prisma.ComplexScalarRelationFilter, Prisma.ComplexWhereInput>
|
complex?: Prisma.XOR<Prisma.ComplexScalarRelationFilter, Prisma.ComplexWhereInput>
|
||||||
device?: Prisma.XOR<Prisma.DeviceNullableScalarRelationFilter, Prisma.DeviceWhereInput> | null
|
device?: Prisma.XOR<Prisma.DeviceNullableScalarRelationFilter, Prisma.DeviceWhereInput> | null
|
||||||
account?: Prisma.XOR<Prisma.ConsumerAccountNullableScalarRelationFilter, Prisma.ConsumerAccountWhereInput> | null
|
|
||||||
provider?: Prisma.XOR<Prisma.ProviderNullableScalarRelationFilter, Prisma.ProviderWhereInput> | null
|
provider?: Prisma.XOR<Prisma.ProviderNullableScalarRelationFilter, Prisma.ProviderWhereInput> | null
|
||||||
|
account?: Prisma.XOR<Prisma.ConsumerAccountScalarRelationFilter, Prisma.ConsumerAccountWhereInput>
|
||||||
permission_pos?: Prisma.PermissionPosListRelationFilter
|
permission_pos?: Prisma.PermissionPosListRelationFilter
|
||||||
sales_invoices?: Prisma.SalesInvoiceListRelationFilter
|
sales_invoices?: Prisma.SalesInvoiceListRelationFilter
|
||||||
}
|
}
|
||||||
@@ -257,12 +257,12 @@ export type PosOrderByWithRelationInput = {
|
|||||||
updated_at?: Prisma.SortOrder
|
updated_at?: Prisma.SortOrder
|
||||||
complex_id?: Prisma.SortOrder
|
complex_id?: Prisma.SortOrder
|
||||||
device_id?: Prisma.SortOrderInput | Prisma.SortOrder
|
device_id?: Prisma.SortOrderInput | Prisma.SortOrder
|
||||||
account_id?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
||||||
provider_id?: Prisma.SortOrderInput | Prisma.SortOrder
|
provider_id?: Prisma.SortOrderInput | Prisma.SortOrder
|
||||||
|
account_id?: Prisma.SortOrder
|
||||||
complex?: Prisma.ComplexOrderByWithRelationInput
|
complex?: Prisma.ComplexOrderByWithRelationInput
|
||||||
device?: Prisma.DeviceOrderByWithRelationInput
|
device?: Prisma.DeviceOrderByWithRelationInput
|
||||||
account?: Prisma.ConsumerAccountOrderByWithRelationInput
|
|
||||||
provider?: Prisma.ProviderOrderByWithRelationInput
|
provider?: Prisma.ProviderOrderByWithRelationInput
|
||||||
|
account?: Prisma.ConsumerAccountOrderByWithRelationInput
|
||||||
permission_pos?: Prisma.PermissionPosOrderByRelationAggregateInput
|
permission_pos?: Prisma.PermissionPosOrderByRelationAggregateInput
|
||||||
sales_invoices?: Prisma.SalesInvoiceOrderByRelationAggregateInput
|
sales_invoices?: Prisma.SalesInvoiceOrderByRelationAggregateInput
|
||||||
_relevance?: Prisma.PosOrderByRelevanceInput
|
_relevance?: Prisma.PosOrderByRelevanceInput
|
||||||
@@ -286,8 +286,8 @@ export type PosWhereUniqueInput = Prisma.AtLeast<{
|
|||||||
provider_id?: Prisma.StringNullableFilter<"Pos"> | string | null
|
provider_id?: Prisma.StringNullableFilter<"Pos"> | string | null
|
||||||
complex?: Prisma.XOR<Prisma.ComplexScalarRelationFilter, Prisma.ComplexWhereInput>
|
complex?: Prisma.XOR<Prisma.ComplexScalarRelationFilter, Prisma.ComplexWhereInput>
|
||||||
device?: Prisma.XOR<Prisma.DeviceNullableScalarRelationFilter, Prisma.DeviceWhereInput> | null
|
device?: Prisma.XOR<Prisma.DeviceNullableScalarRelationFilter, Prisma.DeviceWhereInput> | null
|
||||||
account?: Prisma.XOR<Prisma.ConsumerAccountNullableScalarRelationFilter, Prisma.ConsumerAccountWhereInput> | null
|
|
||||||
provider?: Prisma.XOR<Prisma.ProviderNullableScalarRelationFilter, Prisma.ProviderWhereInput> | null
|
provider?: Prisma.XOR<Prisma.ProviderNullableScalarRelationFilter, Prisma.ProviderWhereInput> | null
|
||||||
|
account?: Prisma.XOR<Prisma.ConsumerAccountScalarRelationFilter, Prisma.ConsumerAccountWhereInput>
|
||||||
permission_pos?: Prisma.PermissionPosListRelationFilter
|
permission_pos?: Prisma.PermissionPosListRelationFilter
|
||||||
sales_invoices?: Prisma.SalesInvoiceListRelationFilter
|
sales_invoices?: Prisma.SalesInvoiceListRelationFilter
|
||||||
}, "id" | "serial_number" | "account_id">
|
}, "id" | "serial_number" | "account_id">
|
||||||
@@ -303,8 +303,8 @@ export type PosOrderByWithAggregationInput = {
|
|||||||
updated_at?: Prisma.SortOrder
|
updated_at?: Prisma.SortOrder
|
||||||
complex_id?: Prisma.SortOrder
|
complex_id?: Prisma.SortOrder
|
||||||
device_id?: Prisma.SortOrderInput | Prisma.SortOrder
|
device_id?: Prisma.SortOrderInput | Prisma.SortOrder
|
||||||
account_id?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
||||||
provider_id?: Prisma.SortOrderInput | Prisma.SortOrder
|
provider_id?: Prisma.SortOrderInput | Prisma.SortOrder
|
||||||
|
account_id?: Prisma.SortOrder
|
||||||
_count?: Prisma.PosCountOrderByAggregateInput
|
_count?: Prisma.PosCountOrderByAggregateInput
|
||||||
_max?: Prisma.PosMaxOrderByAggregateInput
|
_max?: Prisma.PosMaxOrderByAggregateInput
|
||||||
_min?: Prisma.PosMinOrderByAggregateInput
|
_min?: Prisma.PosMinOrderByAggregateInput
|
||||||
@@ -324,8 +324,8 @@ export type PosScalarWhereWithAggregatesInput = {
|
|||||||
updated_at?: Prisma.DateTimeWithAggregatesFilter<"Pos"> | Date | string
|
updated_at?: Prisma.DateTimeWithAggregatesFilter<"Pos"> | Date | string
|
||||||
complex_id?: Prisma.StringWithAggregatesFilter<"Pos"> | string
|
complex_id?: Prisma.StringWithAggregatesFilter<"Pos"> | string
|
||||||
device_id?: Prisma.StringNullableWithAggregatesFilter<"Pos"> | string | null
|
device_id?: Prisma.StringNullableWithAggregatesFilter<"Pos"> | string | null
|
||||||
account_id?: Prisma.StringNullableWithAggregatesFilter<"Pos"> | string | null
|
|
||||||
provider_id?: Prisma.StringNullableWithAggregatesFilter<"Pos"> | string | null
|
provider_id?: Prisma.StringNullableWithAggregatesFilter<"Pos"> | string | null
|
||||||
|
account_id?: Prisma.StringWithAggregatesFilter<"Pos"> | string
|
||||||
}
|
}
|
||||||
|
|
||||||
export type PosCreateInput = {
|
export type PosCreateInput = {
|
||||||
@@ -339,8 +339,8 @@ export type PosCreateInput = {
|
|||||||
updated_at?: Date | string
|
updated_at?: Date | string
|
||||||
complex: Prisma.ComplexCreateNestedOneWithoutPos_listInput
|
complex: Prisma.ComplexCreateNestedOneWithoutPos_listInput
|
||||||
device?: Prisma.DeviceCreateNestedOneWithoutPosesInput
|
device?: Prisma.DeviceCreateNestedOneWithoutPosesInput
|
||||||
account?: Prisma.ConsumerAccountCreateNestedOneWithoutPosInput
|
|
||||||
provider?: Prisma.ProviderCreateNestedOneWithoutPos_listInput
|
provider?: Prisma.ProviderCreateNestedOneWithoutPos_listInput
|
||||||
|
account: Prisma.ConsumerAccountCreateNestedOneWithoutPosInput
|
||||||
permission_pos?: Prisma.PermissionPosCreateNestedManyWithoutPosInput
|
permission_pos?: Prisma.PermissionPosCreateNestedManyWithoutPosInput
|
||||||
sales_invoices?: Prisma.SalesInvoiceCreateNestedManyWithoutPosInput
|
sales_invoices?: Prisma.SalesInvoiceCreateNestedManyWithoutPosInput
|
||||||
}
|
}
|
||||||
@@ -356,8 +356,8 @@ export type PosUncheckedCreateInput = {
|
|||||||
updated_at?: Date | string
|
updated_at?: Date | string
|
||||||
complex_id: string
|
complex_id: string
|
||||||
device_id?: string | null
|
device_id?: string | null
|
||||||
account_id?: string | null
|
|
||||||
provider_id?: string | null
|
provider_id?: string | null
|
||||||
|
account_id: string
|
||||||
permission_pos?: Prisma.PermissionPosUncheckedCreateNestedManyWithoutPosInput
|
permission_pos?: Prisma.PermissionPosUncheckedCreateNestedManyWithoutPosInput
|
||||||
sales_invoices?: Prisma.SalesInvoiceUncheckedCreateNestedManyWithoutPosInput
|
sales_invoices?: Prisma.SalesInvoiceUncheckedCreateNestedManyWithoutPosInput
|
||||||
}
|
}
|
||||||
@@ -373,8 +373,8 @@ export type PosUpdateInput = {
|
|||||||
updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||||
complex?: Prisma.ComplexUpdateOneRequiredWithoutPos_listNestedInput
|
complex?: Prisma.ComplexUpdateOneRequiredWithoutPos_listNestedInput
|
||||||
device?: Prisma.DeviceUpdateOneWithoutPosesNestedInput
|
device?: Prisma.DeviceUpdateOneWithoutPosesNestedInput
|
||||||
account?: Prisma.ConsumerAccountUpdateOneWithoutPosNestedInput
|
|
||||||
provider?: Prisma.ProviderUpdateOneWithoutPos_listNestedInput
|
provider?: Prisma.ProviderUpdateOneWithoutPos_listNestedInput
|
||||||
|
account?: Prisma.ConsumerAccountUpdateOneRequiredWithoutPosNestedInput
|
||||||
permission_pos?: Prisma.PermissionPosUpdateManyWithoutPosNestedInput
|
permission_pos?: Prisma.PermissionPosUpdateManyWithoutPosNestedInput
|
||||||
sales_invoices?: Prisma.SalesInvoiceUpdateManyWithoutPosNestedInput
|
sales_invoices?: Prisma.SalesInvoiceUpdateManyWithoutPosNestedInput
|
||||||
}
|
}
|
||||||
@@ -390,8 +390,8 @@ export type PosUncheckedUpdateInput = {
|
|||||||
updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||||
complex_id?: Prisma.StringFieldUpdateOperationsInput | string
|
complex_id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||||
device_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
device_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||||
account_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
||||||
provider_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
provider_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||||
|
account_id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||||
permission_pos?: Prisma.PermissionPosUncheckedUpdateManyWithoutPosNestedInput
|
permission_pos?: Prisma.PermissionPosUncheckedUpdateManyWithoutPosNestedInput
|
||||||
sales_invoices?: Prisma.SalesInvoiceUncheckedUpdateManyWithoutPosNestedInput
|
sales_invoices?: Prisma.SalesInvoiceUncheckedUpdateManyWithoutPosNestedInput
|
||||||
}
|
}
|
||||||
@@ -407,8 +407,8 @@ export type PosCreateManyInput = {
|
|||||||
updated_at?: Date | string
|
updated_at?: Date | string
|
||||||
complex_id: string
|
complex_id: string
|
||||||
device_id?: string | null
|
device_id?: string | null
|
||||||
account_id?: string | null
|
|
||||||
provider_id?: string | null
|
provider_id?: string | null
|
||||||
|
account_id: string
|
||||||
}
|
}
|
||||||
|
|
||||||
export type PosUpdateManyMutationInput = {
|
export type PosUpdateManyMutationInput = {
|
||||||
@@ -433,8 +433,8 @@ export type PosUncheckedUpdateManyInput = {
|
|||||||
updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||||
complex_id?: Prisma.StringFieldUpdateOperationsInput | string
|
complex_id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||||
device_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
device_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||||
account_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
||||||
provider_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
provider_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||||
|
account_id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||||
}
|
}
|
||||||
|
|
||||||
export type PosNullableScalarRelationFilter = {
|
export type PosNullableScalarRelationFilter = {
|
||||||
@@ -469,8 +469,8 @@ export type PosCountOrderByAggregateInput = {
|
|||||||
updated_at?: Prisma.SortOrder
|
updated_at?: Prisma.SortOrder
|
||||||
complex_id?: Prisma.SortOrder
|
complex_id?: Prisma.SortOrder
|
||||||
device_id?: Prisma.SortOrder
|
device_id?: Prisma.SortOrder
|
||||||
account_id?: Prisma.SortOrder
|
|
||||||
provider_id?: Prisma.SortOrder
|
provider_id?: Prisma.SortOrder
|
||||||
|
account_id?: Prisma.SortOrder
|
||||||
}
|
}
|
||||||
|
|
||||||
export type PosMaxOrderByAggregateInput = {
|
export type PosMaxOrderByAggregateInput = {
|
||||||
@@ -484,8 +484,8 @@ export type PosMaxOrderByAggregateInput = {
|
|||||||
updated_at?: Prisma.SortOrder
|
updated_at?: Prisma.SortOrder
|
||||||
complex_id?: Prisma.SortOrder
|
complex_id?: Prisma.SortOrder
|
||||||
device_id?: Prisma.SortOrder
|
device_id?: Prisma.SortOrder
|
||||||
account_id?: Prisma.SortOrder
|
|
||||||
provider_id?: Prisma.SortOrder
|
provider_id?: Prisma.SortOrder
|
||||||
|
account_id?: Prisma.SortOrder
|
||||||
}
|
}
|
||||||
|
|
||||||
export type PosMinOrderByAggregateInput = {
|
export type PosMinOrderByAggregateInput = {
|
||||||
@@ -499,8 +499,8 @@ export type PosMinOrderByAggregateInput = {
|
|||||||
updated_at?: Prisma.SortOrder
|
updated_at?: Prisma.SortOrder
|
||||||
complex_id?: Prisma.SortOrder
|
complex_id?: Prisma.SortOrder
|
||||||
device_id?: Prisma.SortOrder
|
device_id?: Prisma.SortOrder
|
||||||
account_id?: Prisma.SortOrder
|
|
||||||
provider_id?: Prisma.SortOrder
|
provider_id?: Prisma.SortOrder
|
||||||
|
account_id?: Prisma.SortOrder
|
||||||
}
|
}
|
||||||
|
|
||||||
export type PosScalarRelationFilter = {
|
export type PosScalarRelationFilter = {
|
||||||
@@ -792,8 +792,8 @@ export type PosCreateWithoutComplexInput = {
|
|||||||
created_at?: Date | string
|
created_at?: Date | string
|
||||||
updated_at?: Date | string
|
updated_at?: Date | string
|
||||||
device?: Prisma.DeviceCreateNestedOneWithoutPosesInput
|
device?: Prisma.DeviceCreateNestedOneWithoutPosesInput
|
||||||
account?: Prisma.ConsumerAccountCreateNestedOneWithoutPosInput
|
|
||||||
provider?: Prisma.ProviderCreateNestedOneWithoutPos_listInput
|
provider?: Prisma.ProviderCreateNestedOneWithoutPos_listInput
|
||||||
|
account: Prisma.ConsumerAccountCreateNestedOneWithoutPosInput
|
||||||
permission_pos?: Prisma.PermissionPosCreateNestedManyWithoutPosInput
|
permission_pos?: Prisma.PermissionPosCreateNestedManyWithoutPosInput
|
||||||
sales_invoices?: Prisma.SalesInvoiceCreateNestedManyWithoutPosInput
|
sales_invoices?: Prisma.SalesInvoiceCreateNestedManyWithoutPosInput
|
||||||
}
|
}
|
||||||
@@ -808,8 +808,8 @@ export type PosUncheckedCreateWithoutComplexInput = {
|
|||||||
created_at?: Date | string
|
created_at?: Date | string
|
||||||
updated_at?: Date | string
|
updated_at?: Date | string
|
||||||
device_id?: string | null
|
device_id?: string | null
|
||||||
account_id?: string | null
|
|
||||||
provider_id?: string | null
|
provider_id?: string | null
|
||||||
|
account_id: string
|
||||||
permission_pos?: Prisma.PermissionPosUncheckedCreateNestedManyWithoutPosInput
|
permission_pos?: Prisma.PermissionPosUncheckedCreateNestedManyWithoutPosInput
|
||||||
sales_invoices?: Prisma.SalesInvoiceUncheckedCreateNestedManyWithoutPosInput
|
sales_invoices?: Prisma.SalesInvoiceUncheckedCreateNestedManyWithoutPosInput
|
||||||
}
|
}
|
||||||
@@ -854,8 +854,8 @@ export type PosScalarWhereInput = {
|
|||||||
updated_at?: Prisma.DateTimeFilter<"Pos"> | Date | string
|
updated_at?: Prisma.DateTimeFilter<"Pos"> | Date | string
|
||||||
complex_id?: Prisma.StringFilter<"Pos"> | string
|
complex_id?: Prisma.StringFilter<"Pos"> | string
|
||||||
device_id?: Prisma.StringNullableFilter<"Pos"> | string | null
|
device_id?: Prisma.StringNullableFilter<"Pos"> | string | null
|
||||||
account_id?: Prisma.StringNullableFilter<"Pos"> | string | null
|
|
||||||
provider_id?: Prisma.StringNullableFilter<"Pos"> | string | null
|
provider_id?: Prisma.StringNullableFilter<"Pos"> | string | null
|
||||||
|
account_id?: Prisma.StringFilter<"Pos"> | string
|
||||||
}
|
}
|
||||||
|
|
||||||
export type PosCreateWithoutDeviceInput = {
|
export type PosCreateWithoutDeviceInput = {
|
||||||
@@ -868,8 +868,8 @@ export type PosCreateWithoutDeviceInput = {
|
|||||||
created_at?: Date | string
|
created_at?: Date | string
|
||||||
updated_at?: Date | string
|
updated_at?: Date | string
|
||||||
complex: Prisma.ComplexCreateNestedOneWithoutPos_listInput
|
complex: Prisma.ComplexCreateNestedOneWithoutPos_listInput
|
||||||
account?: Prisma.ConsumerAccountCreateNestedOneWithoutPosInput
|
|
||||||
provider?: Prisma.ProviderCreateNestedOneWithoutPos_listInput
|
provider?: Prisma.ProviderCreateNestedOneWithoutPos_listInput
|
||||||
|
account: Prisma.ConsumerAccountCreateNestedOneWithoutPosInput
|
||||||
permission_pos?: Prisma.PermissionPosCreateNestedManyWithoutPosInput
|
permission_pos?: Prisma.PermissionPosCreateNestedManyWithoutPosInput
|
||||||
sales_invoices?: Prisma.SalesInvoiceCreateNestedManyWithoutPosInput
|
sales_invoices?: Prisma.SalesInvoiceCreateNestedManyWithoutPosInput
|
||||||
}
|
}
|
||||||
@@ -884,8 +884,8 @@ export type PosUncheckedCreateWithoutDeviceInput = {
|
|||||||
created_at?: Date | string
|
created_at?: Date | string
|
||||||
updated_at?: Date | string
|
updated_at?: Date | string
|
||||||
complex_id: string
|
complex_id: string
|
||||||
account_id?: string | null
|
|
||||||
provider_id?: string | null
|
provider_id?: string | null
|
||||||
|
account_id: string
|
||||||
permission_pos?: Prisma.PermissionPosUncheckedCreateNestedManyWithoutPosInput
|
permission_pos?: Prisma.PermissionPosUncheckedCreateNestedManyWithoutPosInput
|
||||||
sales_invoices?: Prisma.SalesInvoiceUncheckedCreateNestedManyWithoutPosInput
|
sales_invoices?: Prisma.SalesInvoiceUncheckedCreateNestedManyWithoutPosInput
|
||||||
}
|
}
|
||||||
@@ -927,8 +927,8 @@ export type PosCreateWithoutPermission_posInput = {
|
|||||||
updated_at?: Date | string
|
updated_at?: Date | string
|
||||||
complex: Prisma.ComplexCreateNestedOneWithoutPos_listInput
|
complex: Prisma.ComplexCreateNestedOneWithoutPos_listInput
|
||||||
device?: Prisma.DeviceCreateNestedOneWithoutPosesInput
|
device?: Prisma.DeviceCreateNestedOneWithoutPosesInput
|
||||||
account?: Prisma.ConsumerAccountCreateNestedOneWithoutPosInput
|
|
||||||
provider?: Prisma.ProviderCreateNestedOneWithoutPos_listInput
|
provider?: Prisma.ProviderCreateNestedOneWithoutPos_listInput
|
||||||
|
account: Prisma.ConsumerAccountCreateNestedOneWithoutPosInput
|
||||||
sales_invoices?: Prisma.SalesInvoiceCreateNestedManyWithoutPosInput
|
sales_invoices?: Prisma.SalesInvoiceCreateNestedManyWithoutPosInput
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -943,8 +943,8 @@ export type PosUncheckedCreateWithoutPermission_posInput = {
|
|||||||
updated_at?: Date | string
|
updated_at?: Date | string
|
||||||
complex_id: string
|
complex_id: string
|
||||||
device_id?: string | null
|
device_id?: string | null
|
||||||
account_id?: string | null
|
|
||||||
provider_id?: string | null
|
provider_id?: string | null
|
||||||
|
account_id: string
|
||||||
sales_invoices?: Prisma.SalesInvoiceUncheckedCreateNestedManyWithoutPosInput
|
sales_invoices?: Prisma.SalesInvoiceUncheckedCreateNestedManyWithoutPosInput
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -975,8 +975,8 @@ export type PosUpdateWithoutPermission_posInput = {
|
|||||||
updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||||
complex?: Prisma.ComplexUpdateOneRequiredWithoutPos_listNestedInput
|
complex?: Prisma.ComplexUpdateOneRequiredWithoutPos_listNestedInput
|
||||||
device?: Prisma.DeviceUpdateOneWithoutPosesNestedInput
|
device?: Prisma.DeviceUpdateOneWithoutPosesNestedInput
|
||||||
account?: Prisma.ConsumerAccountUpdateOneWithoutPosNestedInput
|
|
||||||
provider?: Prisma.ProviderUpdateOneWithoutPos_listNestedInput
|
provider?: Prisma.ProviderUpdateOneWithoutPos_listNestedInput
|
||||||
|
account?: Prisma.ConsumerAccountUpdateOneRequiredWithoutPosNestedInput
|
||||||
sales_invoices?: Prisma.SalesInvoiceUpdateManyWithoutPosNestedInput
|
sales_invoices?: Prisma.SalesInvoiceUpdateManyWithoutPosNestedInput
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -991,8 +991,8 @@ export type PosUncheckedUpdateWithoutPermission_posInput = {
|
|||||||
updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||||
complex_id?: Prisma.StringFieldUpdateOperationsInput | string
|
complex_id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||||
device_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
device_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||||
account_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
||||||
provider_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
provider_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||||
|
account_id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||||
sales_invoices?: Prisma.SalesInvoiceUncheckedUpdateManyWithoutPosNestedInput
|
sales_invoices?: Prisma.SalesInvoiceUncheckedUpdateManyWithoutPosNestedInput
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -1007,7 +1007,7 @@ export type PosCreateWithoutProviderInput = {
|
|||||||
updated_at?: Date | string
|
updated_at?: Date | string
|
||||||
complex: Prisma.ComplexCreateNestedOneWithoutPos_listInput
|
complex: Prisma.ComplexCreateNestedOneWithoutPos_listInput
|
||||||
device?: Prisma.DeviceCreateNestedOneWithoutPosesInput
|
device?: Prisma.DeviceCreateNestedOneWithoutPosesInput
|
||||||
account?: Prisma.ConsumerAccountCreateNestedOneWithoutPosInput
|
account: Prisma.ConsumerAccountCreateNestedOneWithoutPosInput
|
||||||
permission_pos?: Prisma.PermissionPosCreateNestedManyWithoutPosInput
|
permission_pos?: Prisma.PermissionPosCreateNestedManyWithoutPosInput
|
||||||
sales_invoices?: Prisma.SalesInvoiceCreateNestedManyWithoutPosInput
|
sales_invoices?: Prisma.SalesInvoiceCreateNestedManyWithoutPosInput
|
||||||
}
|
}
|
||||||
@@ -1023,7 +1023,7 @@ export type PosUncheckedCreateWithoutProviderInput = {
|
|||||||
updated_at?: Date | string
|
updated_at?: Date | string
|
||||||
complex_id: string
|
complex_id: string
|
||||||
device_id?: string | null
|
device_id?: string | null
|
||||||
account_id?: string | null
|
account_id: string
|
||||||
permission_pos?: Prisma.PermissionPosUncheckedCreateNestedManyWithoutPosInput
|
permission_pos?: Prisma.PermissionPosUncheckedCreateNestedManyWithoutPosInput
|
||||||
sales_invoices?: Prisma.SalesInvoiceUncheckedCreateNestedManyWithoutPosInput
|
sales_invoices?: Prisma.SalesInvoiceUncheckedCreateNestedManyWithoutPosInput
|
||||||
}
|
}
|
||||||
@@ -1065,8 +1065,8 @@ export type PosCreateWithoutSales_invoicesInput = {
|
|||||||
updated_at?: Date | string
|
updated_at?: Date | string
|
||||||
complex: Prisma.ComplexCreateNestedOneWithoutPos_listInput
|
complex: Prisma.ComplexCreateNestedOneWithoutPos_listInput
|
||||||
device?: Prisma.DeviceCreateNestedOneWithoutPosesInput
|
device?: Prisma.DeviceCreateNestedOneWithoutPosesInput
|
||||||
account?: Prisma.ConsumerAccountCreateNestedOneWithoutPosInput
|
|
||||||
provider?: Prisma.ProviderCreateNestedOneWithoutPos_listInput
|
provider?: Prisma.ProviderCreateNestedOneWithoutPos_listInput
|
||||||
|
account: Prisma.ConsumerAccountCreateNestedOneWithoutPosInput
|
||||||
permission_pos?: Prisma.PermissionPosCreateNestedManyWithoutPosInput
|
permission_pos?: Prisma.PermissionPosCreateNestedManyWithoutPosInput
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -1081,8 +1081,8 @@ export type PosUncheckedCreateWithoutSales_invoicesInput = {
|
|||||||
updated_at?: Date | string
|
updated_at?: Date | string
|
||||||
complex_id: string
|
complex_id: string
|
||||||
device_id?: string | null
|
device_id?: string | null
|
||||||
account_id?: string | null
|
|
||||||
provider_id?: string | null
|
provider_id?: string | null
|
||||||
|
account_id: string
|
||||||
permission_pos?: Prisma.PermissionPosUncheckedCreateNestedManyWithoutPosInput
|
permission_pos?: Prisma.PermissionPosUncheckedCreateNestedManyWithoutPosInput
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -1113,8 +1113,8 @@ export type PosUpdateWithoutSales_invoicesInput = {
|
|||||||
updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||||
complex?: Prisma.ComplexUpdateOneRequiredWithoutPos_listNestedInput
|
complex?: Prisma.ComplexUpdateOneRequiredWithoutPos_listNestedInput
|
||||||
device?: Prisma.DeviceUpdateOneWithoutPosesNestedInput
|
device?: Prisma.DeviceUpdateOneWithoutPosesNestedInput
|
||||||
account?: Prisma.ConsumerAccountUpdateOneWithoutPosNestedInput
|
|
||||||
provider?: Prisma.ProviderUpdateOneWithoutPos_listNestedInput
|
provider?: Prisma.ProviderUpdateOneWithoutPos_listNestedInput
|
||||||
|
account?: Prisma.ConsumerAccountUpdateOneRequiredWithoutPosNestedInput
|
||||||
permission_pos?: Prisma.PermissionPosUpdateManyWithoutPosNestedInput
|
permission_pos?: Prisma.PermissionPosUpdateManyWithoutPosNestedInput
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -1129,8 +1129,8 @@ export type PosUncheckedUpdateWithoutSales_invoicesInput = {
|
|||||||
updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||||
complex_id?: Prisma.StringFieldUpdateOperationsInput | string
|
complex_id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||||
device_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
device_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||||
account_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
||||||
provider_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
provider_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||||
|
account_id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||||
permission_pos?: Prisma.PermissionPosUncheckedUpdateManyWithoutPosNestedInput
|
permission_pos?: Prisma.PermissionPosUncheckedUpdateManyWithoutPosNestedInput
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -1144,8 +1144,8 @@ export type PosCreateManyComplexInput = {
|
|||||||
created_at?: Date | string
|
created_at?: Date | string
|
||||||
updated_at?: Date | string
|
updated_at?: Date | string
|
||||||
device_id?: string | null
|
device_id?: string | null
|
||||||
account_id?: string | null
|
|
||||||
provider_id?: string | null
|
provider_id?: string | null
|
||||||
|
account_id: string
|
||||||
}
|
}
|
||||||
|
|
||||||
export type PosUpdateWithoutComplexInput = {
|
export type PosUpdateWithoutComplexInput = {
|
||||||
@@ -1158,8 +1158,8 @@ export type PosUpdateWithoutComplexInput = {
|
|||||||
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||||
updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||||
device?: Prisma.DeviceUpdateOneWithoutPosesNestedInput
|
device?: Prisma.DeviceUpdateOneWithoutPosesNestedInput
|
||||||
account?: Prisma.ConsumerAccountUpdateOneWithoutPosNestedInput
|
|
||||||
provider?: Prisma.ProviderUpdateOneWithoutPos_listNestedInput
|
provider?: Prisma.ProviderUpdateOneWithoutPos_listNestedInput
|
||||||
|
account?: Prisma.ConsumerAccountUpdateOneRequiredWithoutPosNestedInput
|
||||||
permission_pos?: Prisma.PermissionPosUpdateManyWithoutPosNestedInput
|
permission_pos?: Prisma.PermissionPosUpdateManyWithoutPosNestedInput
|
||||||
sales_invoices?: Prisma.SalesInvoiceUpdateManyWithoutPosNestedInput
|
sales_invoices?: Prisma.SalesInvoiceUpdateManyWithoutPosNestedInput
|
||||||
}
|
}
|
||||||
@@ -1174,8 +1174,8 @@ export type PosUncheckedUpdateWithoutComplexInput = {
|
|||||||
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||||
updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||||
device_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
device_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||||
account_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
||||||
provider_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
provider_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||||
|
account_id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||||
permission_pos?: Prisma.PermissionPosUncheckedUpdateManyWithoutPosNestedInput
|
permission_pos?: Prisma.PermissionPosUncheckedUpdateManyWithoutPosNestedInput
|
||||||
sales_invoices?: Prisma.SalesInvoiceUncheckedUpdateManyWithoutPosNestedInput
|
sales_invoices?: Prisma.SalesInvoiceUncheckedUpdateManyWithoutPosNestedInput
|
||||||
}
|
}
|
||||||
@@ -1190,8 +1190,8 @@ export type PosUncheckedUpdateManyWithoutComplexInput = {
|
|||||||
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||||
updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||||
device_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
device_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||||
account_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
||||||
provider_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
provider_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||||
|
account_id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||||
}
|
}
|
||||||
|
|
||||||
export type PosCreateManyDeviceInput = {
|
export type PosCreateManyDeviceInput = {
|
||||||
@@ -1204,8 +1204,8 @@ export type PosCreateManyDeviceInput = {
|
|||||||
created_at?: Date | string
|
created_at?: Date | string
|
||||||
updated_at?: Date | string
|
updated_at?: Date | string
|
||||||
complex_id: string
|
complex_id: string
|
||||||
account_id?: string | null
|
|
||||||
provider_id?: string | null
|
provider_id?: string | null
|
||||||
|
account_id: string
|
||||||
}
|
}
|
||||||
|
|
||||||
export type PosUpdateWithoutDeviceInput = {
|
export type PosUpdateWithoutDeviceInput = {
|
||||||
@@ -1218,8 +1218,8 @@ export type PosUpdateWithoutDeviceInput = {
|
|||||||
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||||
updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||||
complex?: Prisma.ComplexUpdateOneRequiredWithoutPos_listNestedInput
|
complex?: Prisma.ComplexUpdateOneRequiredWithoutPos_listNestedInput
|
||||||
account?: Prisma.ConsumerAccountUpdateOneWithoutPosNestedInput
|
|
||||||
provider?: Prisma.ProviderUpdateOneWithoutPos_listNestedInput
|
provider?: Prisma.ProviderUpdateOneWithoutPos_listNestedInput
|
||||||
|
account?: Prisma.ConsumerAccountUpdateOneRequiredWithoutPosNestedInput
|
||||||
permission_pos?: Prisma.PermissionPosUpdateManyWithoutPosNestedInput
|
permission_pos?: Prisma.PermissionPosUpdateManyWithoutPosNestedInput
|
||||||
sales_invoices?: Prisma.SalesInvoiceUpdateManyWithoutPosNestedInput
|
sales_invoices?: Prisma.SalesInvoiceUpdateManyWithoutPosNestedInput
|
||||||
}
|
}
|
||||||
@@ -1234,8 +1234,8 @@ export type PosUncheckedUpdateWithoutDeviceInput = {
|
|||||||
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||||
updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||||
complex_id?: Prisma.StringFieldUpdateOperationsInput | string
|
complex_id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||||
account_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
||||||
provider_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
provider_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||||
|
account_id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||||
permission_pos?: Prisma.PermissionPosUncheckedUpdateManyWithoutPosNestedInput
|
permission_pos?: Prisma.PermissionPosUncheckedUpdateManyWithoutPosNestedInput
|
||||||
sales_invoices?: Prisma.SalesInvoiceUncheckedUpdateManyWithoutPosNestedInput
|
sales_invoices?: Prisma.SalesInvoiceUncheckedUpdateManyWithoutPosNestedInput
|
||||||
}
|
}
|
||||||
@@ -1250,8 +1250,8 @@ export type PosUncheckedUpdateManyWithoutDeviceInput = {
|
|||||||
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||||
updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||||
complex_id?: Prisma.StringFieldUpdateOperationsInput | string
|
complex_id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||||
account_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
||||||
provider_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
provider_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||||
|
account_id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||||
}
|
}
|
||||||
|
|
||||||
export type PosCreateManyProviderInput = {
|
export type PosCreateManyProviderInput = {
|
||||||
@@ -1265,7 +1265,7 @@ export type PosCreateManyProviderInput = {
|
|||||||
updated_at?: Date | string
|
updated_at?: Date | string
|
||||||
complex_id: string
|
complex_id: string
|
||||||
device_id?: string | null
|
device_id?: string | null
|
||||||
account_id?: string | null
|
account_id: string
|
||||||
}
|
}
|
||||||
|
|
||||||
export type PosUpdateWithoutProviderInput = {
|
export type PosUpdateWithoutProviderInput = {
|
||||||
@@ -1279,7 +1279,7 @@ export type PosUpdateWithoutProviderInput = {
|
|||||||
updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||||
complex?: Prisma.ComplexUpdateOneRequiredWithoutPos_listNestedInput
|
complex?: Prisma.ComplexUpdateOneRequiredWithoutPos_listNestedInput
|
||||||
device?: Prisma.DeviceUpdateOneWithoutPosesNestedInput
|
device?: Prisma.DeviceUpdateOneWithoutPosesNestedInput
|
||||||
account?: Prisma.ConsumerAccountUpdateOneWithoutPosNestedInput
|
account?: Prisma.ConsumerAccountUpdateOneRequiredWithoutPosNestedInput
|
||||||
permission_pos?: Prisma.PermissionPosUpdateManyWithoutPosNestedInput
|
permission_pos?: Prisma.PermissionPosUpdateManyWithoutPosNestedInput
|
||||||
sales_invoices?: Prisma.SalesInvoiceUpdateManyWithoutPosNestedInput
|
sales_invoices?: Prisma.SalesInvoiceUpdateManyWithoutPosNestedInput
|
||||||
}
|
}
|
||||||
@@ -1295,7 +1295,7 @@ export type PosUncheckedUpdateWithoutProviderInput = {
|
|||||||
updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||||
complex_id?: Prisma.StringFieldUpdateOperationsInput | string
|
complex_id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||||
device_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
device_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||||
account_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
account_id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||||
permission_pos?: Prisma.PermissionPosUncheckedUpdateManyWithoutPosNestedInput
|
permission_pos?: Prisma.PermissionPosUncheckedUpdateManyWithoutPosNestedInput
|
||||||
sales_invoices?: Prisma.SalesInvoiceUncheckedUpdateManyWithoutPosNestedInput
|
sales_invoices?: Prisma.SalesInvoiceUncheckedUpdateManyWithoutPosNestedInput
|
||||||
}
|
}
|
||||||
@@ -1311,7 +1311,7 @@ export type PosUncheckedUpdateManyWithoutProviderInput = {
|
|||||||
updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||||
complex_id?: Prisma.StringFieldUpdateOperationsInput | string
|
complex_id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||||
device_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
device_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||||
account_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
account_id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@@ -1365,12 +1365,12 @@ export type PosSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = ru
|
|||||||
updated_at?: boolean
|
updated_at?: boolean
|
||||||
complex_id?: boolean
|
complex_id?: boolean
|
||||||
device_id?: boolean
|
device_id?: boolean
|
||||||
account_id?: boolean
|
|
||||||
provider_id?: boolean
|
provider_id?: boolean
|
||||||
|
account_id?: boolean
|
||||||
complex?: boolean | Prisma.ComplexDefaultArgs<ExtArgs>
|
complex?: boolean | Prisma.ComplexDefaultArgs<ExtArgs>
|
||||||
device?: boolean | Prisma.Pos$deviceArgs<ExtArgs>
|
device?: boolean | Prisma.Pos$deviceArgs<ExtArgs>
|
||||||
account?: boolean | Prisma.Pos$accountArgs<ExtArgs>
|
|
||||||
provider?: boolean | Prisma.Pos$providerArgs<ExtArgs>
|
provider?: boolean | Prisma.Pos$providerArgs<ExtArgs>
|
||||||
|
account?: boolean | Prisma.ConsumerAccountDefaultArgs<ExtArgs>
|
||||||
permission_pos?: boolean | Prisma.Pos$permission_posArgs<ExtArgs>
|
permission_pos?: boolean | Prisma.Pos$permission_posArgs<ExtArgs>
|
||||||
sales_invoices?: boolean | Prisma.Pos$sales_invoicesArgs<ExtArgs>
|
sales_invoices?: boolean | Prisma.Pos$sales_invoicesArgs<ExtArgs>
|
||||||
_count?: boolean | Prisma.PosCountOutputTypeDefaultArgs<ExtArgs>
|
_count?: boolean | Prisma.PosCountOutputTypeDefaultArgs<ExtArgs>
|
||||||
@@ -1389,16 +1389,16 @@ export type PosSelectScalar = {
|
|||||||
updated_at?: boolean
|
updated_at?: boolean
|
||||||
complex_id?: boolean
|
complex_id?: boolean
|
||||||
device_id?: boolean
|
device_id?: boolean
|
||||||
account_id?: boolean
|
|
||||||
provider_id?: boolean
|
provider_id?: boolean
|
||||||
|
account_id?: boolean
|
||||||
}
|
}
|
||||||
|
|
||||||
export type PosOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "name" | "model" | "serial_number" | "status" | "pos_type" | "created_at" | "updated_at" | "complex_id" | "device_id" | "account_id" | "provider_id", ExtArgs["result"]["pos"]>
|
export type PosOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "name" | "model" | "serial_number" | "status" | "pos_type" | "created_at" | "updated_at" | "complex_id" | "device_id" | "provider_id" | "account_id", ExtArgs["result"]["pos"]>
|
||||||
export type PosInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
export type PosInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
||||||
complex?: boolean | Prisma.ComplexDefaultArgs<ExtArgs>
|
complex?: boolean | Prisma.ComplexDefaultArgs<ExtArgs>
|
||||||
device?: boolean | Prisma.Pos$deviceArgs<ExtArgs>
|
device?: boolean | Prisma.Pos$deviceArgs<ExtArgs>
|
||||||
account?: boolean | Prisma.Pos$accountArgs<ExtArgs>
|
|
||||||
provider?: boolean | Prisma.Pos$providerArgs<ExtArgs>
|
provider?: boolean | Prisma.Pos$providerArgs<ExtArgs>
|
||||||
|
account?: boolean | Prisma.ConsumerAccountDefaultArgs<ExtArgs>
|
||||||
permission_pos?: boolean | Prisma.Pos$permission_posArgs<ExtArgs>
|
permission_pos?: boolean | Prisma.Pos$permission_posArgs<ExtArgs>
|
||||||
sales_invoices?: boolean | Prisma.Pos$sales_invoicesArgs<ExtArgs>
|
sales_invoices?: boolean | Prisma.Pos$sales_invoicesArgs<ExtArgs>
|
||||||
_count?: boolean | Prisma.PosCountOutputTypeDefaultArgs<ExtArgs>
|
_count?: boolean | Prisma.PosCountOutputTypeDefaultArgs<ExtArgs>
|
||||||
@@ -1409,8 +1409,8 @@ export type $PosPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs =
|
|||||||
objects: {
|
objects: {
|
||||||
complex: Prisma.$ComplexPayload<ExtArgs>
|
complex: Prisma.$ComplexPayload<ExtArgs>
|
||||||
device: Prisma.$DevicePayload<ExtArgs> | null
|
device: Prisma.$DevicePayload<ExtArgs> | null
|
||||||
account: Prisma.$ConsumerAccountPayload<ExtArgs> | null
|
|
||||||
provider: Prisma.$ProviderPayload<ExtArgs> | null
|
provider: Prisma.$ProviderPayload<ExtArgs> | null
|
||||||
|
account: Prisma.$ConsumerAccountPayload<ExtArgs>
|
||||||
permission_pos: Prisma.$PermissionPosPayload<ExtArgs>[]
|
permission_pos: Prisma.$PermissionPosPayload<ExtArgs>[]
|
||||||
sales_invoices: Prisma.$SalesInvoicePayload<ExtArgs>[]
|
sales_invoices: Prisma.$SalesInvoicePayload<ExtArgs>[]
|
||||||
}
|
}
|
||||||
@@ -1425,8 +1425,8 @@ export type $PosPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs =
|
|||||||
updated_at: Date
|
updated_at: Date
|
||||||
complex_id: string
|
complex_id: string
|
||||||
device_id: string | null
|
device_id: string | null
|
||||||
account_id: string | null
|
|
||||||
provider_id: string | null
|
provider_id: string | null
|
||||||
|
account_id: string
|
||||||
}, ExtArgs["result"]["pos"]>
|
}, ExtArgs["result"]["pos"]>
|
||||||
composites: {}
|
composites: {}
|
||||||
}
|
}
|
||||||
@@ -1769,8 +1769,8 @@ export interface Prisma__PosClient<T, Null = never, ExtArgs extends runtime.Type
|
|||||||
readonly [Symbol.toStringTag]: "PrismaPromise"
|
readonly [Symbol.toStringTag]: "PrismaPromise"
|
||||||
complex<T extends Prisma.ComplexDefaultArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.ComplexDefaultArgs<ExtArgs>>): Prisma.Prisma__ComplexClient<runtime.Types.Result.GetResult<Prisma.$ComplexPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>
|
complex<T extends Prisma.ComplexDefaultArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.ComplexDefaultArgs<ExtArgs>>): Prisma.Prisma__ComplexClient<runtime.Types.Result.GetResult<Prisma.$ComplexPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>
|
||||||
device<T extends Prisma.Pos$deviceArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Pos$deviceArgs<ExtArgs>>): Prisma.Prisma__DeviceClient<runtime.Types.Result.GetResult<Prisma.$DevicePayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
|
device<T extends Prisma.Pos$deviceArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Pos$deviceArgs<ExtArgs>>): Prisma.Prisma__DeviceClient<runtime.Types.Result.GetResult<Prisma.$DevicePayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
|
||||||
account<T extends Prisma.Pos$accountArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Pos$accountArgs<ExtArgs>>): Prisma.Prisma__ConsumerAccountClient<runtime.Types.Result.GetResult<Prisma.$ConsumerAccountPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
|
|
||||||
provider<T extends Prisma.Pos$providerArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Pos$providerArgs<ExtArgs>>): Prisma.Prisma__ProviderClient<runtime.Types.Result.GetResult<Prisma.$ProviderPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
|
provider<T extends Prisma.Pos$providerArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Pos$providerArgs<ExtArgs>>): Prisma.Prisma__ProviderClient<runtime.Types.Result.GetResult<Prisma.$ProviderPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
|
||||||
|
account<T extends Prisma.ConsumerAccountDefaultArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.ConsumerAccountDefaultArgs<ExtArgs>>): Prisma.Prisma__ConsumerAccountClient<runtime.Types.Result.GetResult<Prisma.$ConsumerAccountPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>
|
||||||
permission_pos<T extends Prisma.Pos$permission_posArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Pos$permission_posArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$PermissionPosPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
|
permission_pos<T extends Prisma.Pos$permission_posArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Pos$permission_posArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$PermissionPosPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
|
||||||
sales_invoices<T extends Prisma.Pos$sales_invoicesArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Pos$sales_invoicesArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$SalesInvoicePayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
|
sales_invoices<T extends Prisma.Pos$sales_invoicesArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Pos$sales_invoicesArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$SalesInvoicePayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
|
||||||
/**
|
/**
|
||||||
@@ -1812,8 +1812,8 @@ export interface PosFieldRefs {
|
|||||||
readonly updated_at: Prisma.FieldRef<"Pos", 'DateTime'>
|
readonly updated_at: Prisma.FieldRef<"Pos", 'DateTime'>
|
||||||
readonly complex_id: Prisma.FieldRef<"Pos", 'String'>
|
readonly complex_id: Prisma.FieldRef<"Pos", 'String'>
|
||||||
readonly device_id: Prisma.FieldRef<"Pos", 'String'>
|
readonly device_id: Prisma.FieldRef<"Pos", 'String'>
|
||||||
readonly account_id: Prisma.FieldRef<"Pos", 'String'>
|
|
||||||
readonly provider_id: Prisma.FieldRef<"Pos", 'String'>
|
readonly provider_id: Prisma.FieldRef<"Pos", 'String'>
|
||||||
|
readonly account_id: Prisma.FieldRef<"Pos", 'String'>
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@@ -2180,25 +2180,6 @@ export type Pos$deviceArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs
|
|||||||
where?: Prisma.DeviceWhereInput
|
where?: Prisma.DeviceWhereInput
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Pos.account
|
|
||||||
*/
|
|
||||||
export type Pos$accountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
||||||
/**
|
|
||||||
* Select specific fields to fetch from the ConsumerAccount
|
|
||||||
*/
|
|
||||||
select?: Prisma.ConsumerAccountSelect<ExtArgs> | null
|
|
||||||
/**
|
|
||||||
* Omit specific fields from the ConsumerAccount
|
|
||||||
*/
|
|
||||||
omit?: Prisma.ConsumerAccountOmit<ExtArgs> | null
|
|
||||||
/**
|
|
||||||
* Choose, which related nodes to fetch as well
|
|
||||||
*/
|
|
||||||
include?: Prisma.ConsumerAccountInclude<ExtArgs> | null
|
|
||||||
where?: Prisma.ConsumerAccountWhereInput
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Pos.provider
|
* Pos.provider
|
||||||
*/
|
*/
|
||||||
|
|||||||
@@ -1,8 +1,7 @@
|
|||||||
import { PosCreateInput, PosSelect } from '@/generated/prisma/models'
|
import { PosSelect } from '@/generated/prisma/models'
|
||||||
import { PrismaService } from '@/prisma/prisma.service'
|
import { PrismaService } from '@/prisma/prisma.service'
|
||||||
import { Injectable } from '@nestjs/common'
|
import { Injectable } from '@nestjs/common'
|
||||||
import { ResponseMapper } from 'common/response/response-mapper'
|
import { ResponseMapper } from 'common/response/response-mapper'
|
||||||
import { CreatePosDto } from './dto/pos.dto'
|
|
||||||
|
|
||||||
@Injectable()
|
@Injectable()
|
||||||
export class ComplexPosesService {
|
export class ComplexPosesService {
|
||||||
@@ -49,32 +48,32 @@ export class ComplexPosesService {
|
|||||||
},
|
},
|
||||||
} as PosSelect
|
} as PosSelect
|
||||||
|
|
||||||
defaultInsert = (data: CreatePosDto, complex_id: string) => {
|
// defaultInsert = (data: CreatePosDto, complex_id: string) => {
|
||||||
const { device_id, provider_id, ...rest } = data
|
// const { device_id, provider_id, ...rest } = data
|
||||||
|
|
||||||
return {
|
// return {
|
||||||
...rest,
|
// ...rest,
|
||||||
complex: {
|
// complex: {
|
||||||
connect: {
|
// connect: {
|
||||||
id: complex_id,
|
// id: complex_id,
|
||||||
},
|
// },
|
||||||
},
|
// },
|
||||||
provider: provider_id
|
// provider: provider_id
|
||||||
? {
|
// ? {
|
||||||
connect: {
|
// connect: {
|
||||||
id: provider_id,
|
// id: provider_id,
|
||||||
},
|
// },
|
||||||
}
|
// }
|
||||||
: undefined,
|
// : undefined,
|
||||||
device: device_id
|
// device: device_id
|
||||||
? {
|
// ? {
|
||||||
connect: {
|
// connect: {
|
||||||
id: device_id,
|
// id: device_id,
|
||||||
},
|
// },
|
||||||
}
|
// }
|
||||||
: undefined,
|
// : undefined,
|
||||||
} as PosCreateInput
|
// } as PosCreateInput
|
||||||
}
|
// }
|
||||||
|
|
||||||
async findAll(business_activity_id: string, complex_id: string) {
|
async findAll(business_activity_id: string, complex_id: string) {
|
||||||
const accounts = await this.prisma.pos.findMany({
|
const accounts = await this.prisma.pos.findMany({
|
||||||
|
|||||||
@@ -64,8 +64,8 @@ export class PartnersService {
|
|||||||
select: {
|
select: {
|
||||||
credits: {
|
credits: {
|
||||||
where: {
|
where: {
|
||||||
allocation_id: {
|
allocation: {
|
||||||
not: null,
|
isNot: null,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -2,7 +2,6 @@ import { ComplexSelect } from '@/generated/prisma/models'
|
|||||||
import { PrismaService } from '@/prisma/prisma.service'
|
import { PrismaService } from '@/prisma/prisma.service'
|
||||||
import { BadRequestException, Injectable } from '@nestjs/common'
|
import { BadRequestException, Injectable } from '@nestjs/common'
|
||||||
import { ResponseMapper } from 'common/response/response-mapper'
|
import { ResponseMapper } from 'common/response/response-mapper'
|
||||||
import { getBusinessActivityRemainingAccounts } from '../../utils/getBusinessActivityRemainingAccounts.util'
|
|
||||||
import { CreateConsumerComplexDto, UpdateConsumerComplexDto } from './dto/complex.dto'
|
import { CreateConsumerComplexDto, UpdateConsumerComplexDto } from './dto/complex.dto'
|
||||||
|
|
||||||
@Injectable()
|
@Injectable()
|
||||||
@@ -54,12 +53,40 @@ export class BusinessActivityComplexesService {
|
|||||||
data: CreateConsumerComplexDto,
|
data: CreateConsumerComplexDto,
|
||||||
) {
|
) {
|
||||||
const complex = await this.prisma.$transaction(async tx => {
|
const complex = await this.prisma.$transaction(async tx => {
|
||||||
const quota = await getBusinessActivityRemainingAccounts(tx, {
|
const now = new Date()
|
||||||
|
|
||||||
|
const relatedLicense = await tx.licenseAccountAllocation.findFirst({
|
||||||
|
where: {
|
||||||
|
license_activation: {
|
||||||
|
business_activity: {
|
||||||
|
id: business_activity_id,
|
||||||
consumer_id,
|
consumer_id,
|
||||||
business_activity_id,
|
},
|
||||||
|
OR: [
|
||||||
|
{
|
||||||
|
expires_at: {
|
||||||
|
gte: now,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
{
|
||||||
|
license_renews: {
|
||||||
|
some: {
|
||||||
|
expires_at: {
|
||||||
|
gte: now,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
],
|
||||||
|
},
|
||||||
|
account_id: null,
|
||||||
|
},
|
||||||
|
select: {
|
||||||
|
id: true,
|
||||||
|
},
|
||||||
})
|
})
|
||||||
|
|
||||||
if (quota.remaining_accounts <= 0) {
|
if (!relatedLicense) {
|
||||||
throw new BadRequestException(
|
throw new BadRequestException(
|
||||||
`متاسفانه به دلیل به پایان رسیدن محدودیت تعریف کاربران برای این فعالیت اقتصادی،امکان ایجاد شعبهی جدید وجود ندارد.`,
|
`متاسفانه به دلیل به پایان رسیدن محدودیت تعریف کاربران برای این فعالیت اقتصادی،امکان ایجاد شعبهی جدید وجود ندارد.`,
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -94,6 +94,7 @@ export class ComplexPosesService {
|
|||||||
id: complex_id,
|
id: complex_id,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
||||||
account: {
|
account: {
|
||||||
create: {
|
create: {
|
||||||
role: ConsumerRole.OPERATOR,
|
role: ConsumerRole.OPERATOR,
|
||||||
|
|||||||
@@ -44,7 +44,7 @@ export class ConsumerMiddleware implements NestMiddleware {
|
|||||||
return doForbidden()
|
return doForbidden()
|
||||||
}
|
}
|
||||||
|
|
||||||
req.partnerData = {
|
req.consumerData = {
|
||||||
account_id: consumerAccount.id,
|
account_id: consumerAccount.id,
|
||||||
id: consumerAccount.consumer_id,
|
id: consumerAccount.consumer_id,
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
import {
|
import {
|
||||||
|
SalesInvoiceSelect,
|
||||||
SalesInvoiceWhereInput,
|
SalesInvoiceWhereInput,
|
||||||
SalesInvoiceWhereUniqueInput,
|
SalesInvoiceWhereUniqueInput,
|
||||||
} from '@/generated/prisma/models'
|
} from '@/generated/prisma/models'
|
||||||
@@ -10,12 +11,12 @@ import { ResponseMapper } from 'common/response/response-mapper'
|
|||||||
export class SaleInvoicesService {
|
export class SaleInvoicesService {
|
||||||
constructor(private readonly prisma: PrismaService) {}
|
constructor(private readonly prisma: PrismaService) {}
|
||||||
|
|
||||||
private readonly defaultSelect = {
|
private readonly defaultSelect: SalesInvoiceSelect = {
|
||||||
id: true,
|
id: true,
|
||||||
code: true,
|
code: true,
|
||||||
total_amount: true,
|
total_amount: true,
|
||||||
unknown_customer: true,
|
|
||||||
invoice_date: true,
|
invoice_date: true,
|
||||||
|
created_at: true,
|
||||||
consumer_account: {
|
consumer_account: {
|
||||||
select: {
|
select: {
|
||||||
role: true,
|
role: true,
|
||||||
@@ -44,24 +45,6 @@ export class SaleInvoicesService {
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
||||||
customer: {
|
|
||||||
select: {
|
|
||||||
id: true,
|
|
||||||
type: true,
|
|
||||||
customer_legal: {
|
|
||||||
select: {
|
|
||||||
company_name: true,
|
|
||||||
},
|
|
||||||
},
|
|
||||||
customer_individual: {
|
|
||||||
select: {
|
|
||||||
first_name: true,
|
|
||||||
last_name: true,
|
|
||||||
},
|
|
||||||
},
|
|
||||||
},
|
|
||||||
},
|
|
||||||
}
|
}
|
||||||
|
|
||||||
async findAll(consumer_id: string, page = 1, pageSize = 10) {
|
async findAll(consumer_id: string, page = 1, pageSize = 10) {
|
||||||
@@ -104,15 +87,55 @@ export class SaleInvoicesService {
|
|||||||
items: {
|
items: {
|
||||||
select: {
|
select: {
|
||||||
id: true,
|
id: true,
|
||||||
|
notes: true,
|
||||||
|
unit_price: true,
|
||||||
|
discount: true,
|
||||||
|
quantity: true,
|
||||||
|
total_amount: true,
|
||||||
|
payload: true,
|
||||||
good: {
|
good: {
|
||||||
select: {
|
select: {
|
||||||
id: true,
|
id: true,
|
||||||
name: true,
|
name: true,
|
||||||
|
pricing_model: true,
|
||||||
|
unit_type: true,
|
||||||
|
|
||||||
|
category: {
|
||||||
|
select: {
|
||||||
|
id: true,
|
||||||
|
name: true,
|
||||||
|
image_url: true,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
},
|
||||||
|
customer: {
|
||||||
|
select: {
|
||||||
|
id: true,
|
||||||
|
type: true,
|
||||||
|
customer_legal: {
|
||||||
|
select: {
|
||||||
|
company_name: true,
|
||||||
|
economic_code: true,
|
||||||
|
registration_number: true,
|
||||||
|
postal_code: true,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
customer_individual: {
|
||||||
|
select: {
|
||||||
|
first_name: true,
|
||||||
|
last_name: true,
|
||||||
|
economic_code: true,
|
||||||
|
national_id: true,
|
||||||
|
postal_code: true,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
unknown_customer: true,
|
||||||
|
},
|
||||||
})
|
})
|
||||||
return ResponseMapper.single(invoice)
|
return ResponseMapper.single(invoice)
|
||||||
}
|
}
|
||||||
|
|||||||
+23
@@ -0,0 +1,23 @@
|
|||||||
|
import { PartnerInfo } from '@/common/decorators/partnerInfo.decorator'
|
||||||
|
import { Body, Controller, Param, Post } from '@nestjs/common'
|
||||||
|
import { ApiTags } from '@nestjs/swagger'
|
||||||
|
import { PartnerBusinessActivityAccountsChargeService } from './accounts-charge.service'
|
||||||
|
import { CreateBusinessActivityAccountsChargeDto } from './dto/accounts-charge.dto'
|
||||||
|
|
||||||
|
@ApiTags('PartnerConsumerBAAccountsCharge')
|
||||||
|
@Controller(
|
||||||
|
'partner/consumers/:consumerId/business-activities/:businessActivityId/accounts-charge',
|
||||||
|
)
|
||||||
|
export class PartnerBusinessActivityAccountsChargeController {
|
||||||
|
constructor(private readonly service: PartnerBusinessActivityAccountsChargeService) {}
|
||||||
|
|
||||||
|
@Post()
|
||||||
|
async create(
|
||||||
|
@PartnerInfo('id') partnerId: string,
|
||||||
|
@Param('consumerId') consumerId: string,
|
||||||
|
@Param('businessActivityId') businessActivityId: string,
|
||||||
|
@Body() data: CreateBusinessActivityAccountsChargeDto,
|
||||||
|
) {
|
||||||
|
return this.service.create(partnerId, consumerId, businessActivityId, data)
|
||||||
|
}
|
||||||
|
}
|
||||||
+11
@@ -0,0 +1,11 @@
|
|||||||
|
import { PrismaModule } from '@/prisma/prisma.module'
|
||||||
|
import { Module } from '@nestjs/common'
|
||||||
|
import { PartnerBusinessActivityAccountsChargeController } from './accounts-charge.controller'
|
||||||
|
import { PartnerBusinessActivityAccountsChargeService } from './accounts-charge.service'
|
||||||
|
|
||||||
|
@Module({
|
||||||
|
imports: [PrismaModule],
|
||||||
|
controllers: [PartnerBusinessActivityAccountsChargeController],
|
||||||
|
providers: [PartnerBusinessActivityAccountsChargeService],
|
||||||
|
})
|
||||||
|
export class PartnerBusinessActivityAccountsChargeModule {}
|
||||||
+127
@@ -0,0 +1,127 @@
|
|||||||
|
import { PrismaService } from '@/prisma/prisma.service'
|
||||||
|
import { BadRequestException, Injectable } from '@nestjs/common'
|
||||||
|
import { ResponseMapper } from 'common/response/response-mapper'
|
||||||
|
import { CreateBusinessActivityAccountsChargeDto } from './dto/accounts-charge.dto'
|
||||||
|
|
||||||
|
@Injectable()
|
||||||
|
export class PartnerBusinessActivityAccountsChargeService {
|
||||||
|
constructor(private readonly prisma: PrismaService) {}
|
||||||
|
|
||||||
|
async create(
|
||||||
|
partner_id: string,
|
||||||
|
consumer_id: string,
|
||||||
|
business_activity_id: string,
|
||||||
|
data: CreateBusinessActivityAccountsChargeDto,
|
||||||
|
) {
|
||||||
|
const { quantity } = data
|
||||||
|
|
||||||
|
const startOfDay = new Date()
|
||||||
|
startOfDay.setHours(0, 0, 0, 0)
|
||||||
|
|
||||||
|
const result = await this.prisma.$transaction(async tx => {
|
||||||
|
const activation = await tx.licenseActivation.findFirst({
|
||||||
|
where: {
|
||||||
|
business_activity_id,
|
||||||
|
business_activity: {
|
||||||
|
id: business_activity_id,
|
||||||
|
consumer: {
|
||||||
|
id: consumer_id,
|
||||||
|
partner_id,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
OR: [
|
||||||
|
{
|
||||||
|
expires_at: {
|
||||||
|
gte: startOfDay,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
{
|
||||||
|
license_renews: {
|
||||||
|
some: {
|
||||||
|
expires_at: {
|
||||||
|
gte: startOfDay,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
],
|
||||||
|
},
|
||||||
|
select: {
|
||||||
|
id: true,
|
||||||
|
},
|
||||||
|
})
|
||||||
|
|
||||||
|
if (!activation) {
|
||||||
|
throw new BadRequestException('لایسنس فعال برای این فعالیت تجاری یافت نشد.')
|
||||||
|
}
|
||||||
|
|
||||||
|
const credits = await tx.partnerAccountQuotaCredit.findMany({
|
||||||
|
where: {
|
||||||
|
allocation: null,
|
||||||
|
charge_transaction: {
|
||||||
|
partner_id,
|
||||||
|
activation_expires_at: {
|
||||||
|
gte: startOfDay,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
orderBy: [
|
||||||
|
{
|
||||||
|
charge_transaction: {
|
||||||
|
activation_expires_at: 'asc',
|
||||||
|
},
|
||||||
|
},
|
||||||
|
{
|
||||||
|
created_at: 'asc',
|
||||||
|
},
|
||||||
|
],
|
||||||
|
take: quantity,
|
||||||
|
select: {
|
||||||
|
id: true,
|
||||||
|
charge_transaction: {
|
||||||
|
select: {
|
||||||
|
activation_expires_at: true,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
})
|
||||||
|
|
||||||
|
if (credits.length < quantity) {
|
||||||
|
throw new BadRequestException('اعتبار کافی برای تخصیص حساب وجود ندارد.')
|
||||||
|
}
|
||||||
|
|
||||||
|
const allocations = await Promise.all(
|
||||||
|
credits.map(credit =>
|
||||||
|
tx.licenseAccountAllocation.create({
|
||||||
|
data: {
|
||||||
|
license_activation: {
|
||||||
|
connect: {
|
||||||
|
id: activation.id,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
credit: {
|
||||||
|
connect: {
|
||||||
|
id: credit.id,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
select: {
|
||||||
|
id: true,
|
||||||
|
credit_id: true,
|
||||||
|
license_activation_id: true,
|
||||||
|
created_at: true,
|
||||||
|
},
|
||||||
|
}),
|
||||||
|
),
|
||||||
|
)
|
||||||
|
|
||||||
|
return {
|
||||||
|
quantity,
|
||||||
|
activation_id: activation.id,
|
||||||
|
allocations,
|
||||||
|
}
|
||||||
|
})
|
||||||
|
|
||||||
|
return ResponseMapper.create(result.allocations)
|
||||||
|
}
|
||||||
|
}
|
||||||
+9
@@ -0,0 +1,9 @@
|
|||||||
|
import { ApiProperty } from '@nestjs/swagger'
|
||||||
|
import { IsInt, Min } from 'class-validator'
|
||||||
|
|
||||||
|
export class CreateBusinessActivityAccountsChargeDto {
|
||||||
|
@ApiProperty({ minimum: 1, example: 1 })
|
||||||
|
@IsInt()
|
||||||
|
@Min(1)
|
||||||
|
quantity: number
|
||||||
|
}
|
||||||
@@ -1,11 +1,16 @@
|
|||||||
import { PrismaModule } from '@/prisma/prisma.module'
|
import { PrismaModule } from '@/prisma/prisma.module'
|
||||||
import { Module } from '@nestjs/common'
|
import { Module } from '@nestjs/common'
|
||||||
|
import { PartnerBusinessActivityAccountsChargeModule } from './accounts-charge/accounts-charge.module'
|
||||||
import { BusinessActivitiesController } from './business-activities.controller'
|
import { BusinessActivitiesController } from './business-activities.controller'
|
||||||
import { BusinessActivitiesService } from './business-activities.service'
|
import { BusinessActivitiesService } from './business-activities.service'
|
||||||
import { AdminBusinessActivityComplexesModule } from './complexes/complexes.module'
|
import { AdminBusinessActivityComplexesModule } from './complexes/complexes.module'
|
||||||
|
|
||||||
@Module({
|
@Module({
|
||||||
imports: [PrismaModule, AdminBusinessActivityComplexesModule],
|
imports: [
|
||||||
|
PrismaModule,
|
||||||
|
AdminBusinessActivityComplexesModule,
|
||||||
|
PartnerBusinessActivityAccountsChargeModule,
|
||||||
|
],
|
||||||
controllers: [BusinessActivitiesController],
|
controllers: [BusinessActivitiesController],
|
||||||
providers: [BusinessActivitiesService],
|
providers: [BusinessActivitiesService],
|
||||||
})
|
})
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
import { ComplexSelect, ComplexWhereInput } from '@/generated/prisma/models'
|
import { ComplexSelect, ComplexWhereInput } from '@/generated/prisma/models'
|
||||||
import { PrismaService } from '@/prisma/prisma.service'
|
import { PrismaService } from '@/prisma/prisma.service'
|
||||||
import { Injectable } from '@nestjs/common'
|
import { BadRequestException, Injectable } from '@nestjs/common'
|
||||||
import { ResponseMapper } from 'common/response/response-mapper'
|
import { ResponseMapper } from 'common/response/response-mapper'
|
||||||
import { CreateComplexDto, UpdateComplexDto } from './dto/complex.dto'
|
import { CreateComplexDto, UpdateComplexDto } from './dto/complex.dto'
|
||||||
|
|
||||||
@@ -55,7 +55,51 @@ export class BusinessActivityComplexesService {
|
|||||||
}
|
}
|
||||||
|
|
||||||
async create(partner_id: string, business_id: string, data: CreateComplexDto) {
|
async create(partner_id: string, business_id: string, data: CreateComplexDto) {
|
||||||
const complex = await this.prisma.complex.create({
|
const complex = this.prisma.$transaction(async tx => {
|
||||||
|
const now = new Date()
|
||||||
|
|
||||||
|
const relatedLicense = await tx.licenseAccountAllocation.findFirst({
|
||||||
|
where: {
|
||||||
|
license_activation: {
|
||||||
|
license: {
|
||||||
|
charge_transaction: {
|
||||||
|
partner_id,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
business_activity: {
|
||||||
|
id: business_id,
|
||||||
|
},
|
||||||
|
OR: [
|
||||||
|
{
|
||||||
|
expires_at: {
|
||||||
|
gte: now,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
{
|
||||||
|
license_renews: {
|
||||||
|
some: {
|
||||||
|
expires_at: {
|
||||||
|
gte: now,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
],
|
||||||
|
},
|
||||||
|
account_id: null,
|
||||||
|
},
|
||||||
|
select: {
|
||||||
|
id: true,
|
||||||
|
},
|
||||||
|
})
|
||||||
|
|
||||||
|
if (!relatedLicense) {
|
||||||
|
throw new BadRequestException(
|
||||||
|
`متاسفانه به دلیل به پایان رسیدن محدودیت تعریف کاربران برای این فعالیت اقتصادی،امکان ایجاد شعبهی جدید وجود ندارد.`,
|
||||||
|
)
|
||||||
|
}
|
||||||
|
|
||||||
|
return await this.prisma.complex.create({
|
||||||
data: {
|
data: {
|
||||||
...data,
|
...data,
|
||||||
business_activity: {
|
business_activity: {
|
||||||
@@ -65,6 +109,8 @@ export class BusinessActivityComplexesService {
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
})
|
||||||
|
|
||||||
return ResponseMapper.create(complex)
|
return ResponseMapper.create(complex)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
+39
-49
@@ -5,7 +5,7 @@ import {
|
|||||||
ConsumerRole,
|
ConsumerRole,
|
||||||
POSStatus,
|
POSStatus,
|
||||||
} from '@/generated/prisma/enums'
|
} from '@/generated/prisma/enums'
|
||||||
import { PosCreateInput, PosSelect } from '@/generated/prisma/models'
|
import { PosSelect } from '@/generated/prisma/models'
|
||||||
import { PrismaService } from '@/prisma/prisma.service'
|
import { PrismaService } from '@/prisma/prisma.service'
|
||||||
import { BadRequestException, Injectable } from '@nestjs/common'
|
import { BadRequestException, Injectable } from '@nestjs/common'
|
||||||
import { ResponseMapper } from 'common/response/response-mapper'
|
import { ResponseMapper } from 'common/response/response-mapper'
|
||||||
@@ -95,35 +95,6 @@ export class ComplexPosesService {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private readonly defaultInsert = (data: CreatePosDto, complex_id: string) => {
|
|
||||||
const { device_id, provider_id, ...rest } = data
|
|
||||||
|
|
||||||
const dataToCreate: PosCreateInput = {
|
|
||||||
...rest,
|
|
||||||
complex: {
|
|
||||||
connect: {
|
|
||||||
id: complex_id,
|
|
||||||
},
|
|
||||||
},
|
|
||||||
provider: provider_id
|
|
||||||
? {
|
|
||||||
connect: {
|
|
||||||
id: provider_id,
|
|
||||||
},
|
|
||||||
}
|
|
||||||
: undefined,
|
|
||||||
device: device_id
|
|
||||||
? {
|
|
||||||
connect: {
|
|
||||||
id: device_id,
|
|
||||||
},
|
|
||||||
}
|
|
||||||
: undefined,
|
|
||||||
}
|
|
||||||
|
|
||||||
return dataToCreate
|
|
||||||
}
|
|
||||||
|
|
||||||
async findAll(partner_id: string, business_activity_id: string, complex_id: string) {
|
async findAll(partner_id: string, business_activity_id: string, complex_id: string) {
|
||||||
const poses = await this.prisma.pos.findMany({
|
const poses = await this.prisma.pos.findMany({
|
||||||
where: this.defaultWhere(partner_id, complex_id, business_activity_id),
|
where: this.defaultWhere(partner_id, complex_id, business_activity_id),
|
||||||
@@ -155,26 +126,43 @@ export class ComplexPosesService {
|
|||||||
data: CreatePosDto,
|
data: CreatePosDto,
|
||||||
) {
|
) {
|
||||||
const pos = this.prisma.$transaction(async tx => {
|
const pos = this.prisma.$transaction(async tx => {
|
||||||
const ba = await tx.businessActivity.findUniqueOrThrow({
|
const now = new Date()
|
||||||
|
|
||||||
|
const activeAccountAllocation = await tx.licenseAccountAllocation.findFirst({
|
||||||
where: {
|
where: {
|
||||||
id: business_activity_id,
|
account_id: null,
|
||||||
consumer: {
|
license_activation: {
|
||||||
|
business_activity_id,
|
||||||
|
OR: [
|
||||||
|
{
|
||||||
|
expires_at: {
|
||||||
|
gte: now,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
{
|
||||||
|
license_renews: {
|
||||||
|
some: {
|
||||||
|
expires_at: {
|
||||||
|
gte: now,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
],
|
||||||
|
license: {
|
||||||
|
charge_transaction: {
|
||||||
partner_id,
|
partner_id,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
select: {
|
select: {
|
||||||
consumer_id: true,
|
id: true,
|
||||||
license_activation: {
|
license_activation: {
|
||||||
select: {
|
select: {
|
||||||
_count: {
|
business_activity: {
|
||||||
select: {
|
select: {
|
||||||
account_allocations: {
|
consumer_id: true,
|
||||||
where: {
|
|
||||||
account_id: {
|
|
||||||
not: undefined,
|
|
||||||
},
|
|
||||||
},
|
|
||||||
},
|
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
@@ -182,7 +170,7 @@ export class ComplexPosesService {
|
|||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
|
||||||
if (!ba.license_activation?._count.account_allocations) {
|
if (!activeAccountAllocation) {
|
||||||
throw new BadRequestException(
|
throw new BadRequestException(
|
||||||
`محدودیت تعریف تعداد کاربران این فعالیت تجاری به پایان رسیده است.`,
|
`محدودیت تعریف تعداد کاربران این فعالیت تجاری به پایان رسیده است.`,
|
||||||
)
|
)
|
||||||
@@ -198,9 +186,16 @@ export class ComplexPosesService {
|
|||||||
account: {
|
account: {
|
||||||
create: {
|
create: {
|
||||||
role: ConsumerRole.OPERATOR,
|
role: ConsumerRole.OPERATOR,
|
||||||
|
|
||||||
consumer: {
|
consumer: {
|
||||||
connect: {
|
connect: {
|
||||||
id: ba.consumer_id,
|
id: activeAccountAllocation.license_activation!.business_activity
|
||||||
|
.consumer_id,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
account_allocation: {
|
||||||
|
connect: {
|
||||||
|
id: activeAccountAllocation.id,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
account: {
|
account: {
|
||||||
@@ -274,9 +269,4 @@ export class ComplexPosesService {
|
|||||||
})
|
})
|
||||||
return ResponseMapper.update(pos)
|
return ResponseMapper.update(pos)
|
||||||
}
|
}
|
||||||
|
|
||||||
// async delete(id: string) {
|
|
||||||
// await this.prisma.complex.delete({ where: { id } })
|
|
||||||
// return ResponseMapper.delete()
|
|
||||||
// }
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
import { PartnerInfo } from '@/common/decorators/partnerInfo.decorator'
|
import { PartnerInfo } from '@/common/decorators/partnerInfo.decorator'
|
||||||
|
import type { IPartnerPayload } from '@/common/models/partnerPayload.model'
|
||||||
import { Controller, Get, Patch } from '@nestjs/common'
|
import { Controller, Get, Patch } from '@nestjs/common'
|
||||||
import { ApiTags } from '@nestjs/swagger'
|
import { ApiTags } from '@nestjs/swagger'
|
||||||
import { UpdatePartnerProfileDto } from './dto/partner.dto'
|
import { UpdatePartnerProfileDto } from './dto/partner.dto'
|
||||||
@@ -10,8 +11,8 @@ export class PartnerController {
|
|||||||
constructor(private service: PartnerService) {}
|
constructor(private service: PartnerService) {}
|
||||||
|
|
||||||
@Get('')
|
@Get('')
|
||||||
async me(@PartnerInfo('id') partnerId: string) {
|
async me(@PartnerInfo() { id, account_id }: IPartnerPayload) {
|
||||||
return this.service.me(partnerId)
|
return this.service.me(id, account_id)
|
||||||
}
|
}
|
||||||
|
|
||||||
@Get('info')
|
@Get('info')
|
||||||
|
|||||||
@@ -10,9 +10,10 @@ export class PartnerService {
|
|||||||
|
|
||||||
private readonly defaultSelect: PartnerAccountSelect = {}
|
private readonly defaultSelect: PartnerAccountSelect = {}
|
||||||
|
|
||||||
async me(partner_id: string) {
|
async me(partner_id: string, account_id: string) {
|
||||||
const partner = await this.prisma.partnerAccount.findUniqueOrThrow({
|
const partner = await this.prisma.partnerAccount.findUniqueOrThrow({
|
||||||
where: {
|
where: {
|
||||||
|
id: account_id,
|
||||||
partner_id,
|
partner_id,
|
||||||
},
|
},
|
||||||
select: {
|
select: {
|
||||||
|
|||||||
@@ -19,16 +19,20 @@ export type PartnerBusinessActivityAllocationLimits = {
|
|||||||
remaining_credits: number
|
remaining_credits: number
|
||||||
}
|
}
|
||||||
|
|
||||||
export const getPartnerBusinessActivityAllocationLimits = async (
|
const getPartnerBusinessActivityActiveActivation = async (
|
||||||
prisma: PartnerBusinessActivityAllocationClient,
|
prisma: PartnerBusinessActivityAllocationClient,
|
||||||
params: GetPartnerBusinessActivityAllocationLimitsParams,
|
params: GetPartnerBusinessActivityAllocationLimitsParams,
|
||||||
): Promise<PartnerBusinessActivityAllocationLimits> => {
|
options?: {
|
||||||
|
includeAccountAllocations?: boolean
|
||||||
|
},
|
||||||
|
) => {
|
||||||
const { partner_id, business_activity_id, referenceDate = new Date() } = params
|
const { partner_id, business_activity_id, referenceDate = new Date() } = params
|
||||||
|
const { includeAccountAllocations = true } = options ?? {}
|
||||||
|
|
||||||
const startOfDay = new Date(referenceDate)
|
const startOfDay = new Date(referenceDate)
|
||||||
startOfDay.setHours(0, 0, 0, 0)
|
startOfDay.setHours(0, 0, 0, 0)
|
||||||
|
|
||||||
const activation = await prisma.licenseActivation.findFirst({
|
return prisma.licenseActivation.findFirst({
|
||||||
where: {
|
where: {
|
||||||
business_activity_id,
|
business_activity_id,
|
||||||
business_activity: {
|
business_activity: {
|
||||||
@@ -53,7 +57,8 @@ export const getPartnerBusinessActivityAllocationLimits = async (
|
|||||||
},
|
},
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
select: {
|
select: includeAccountAllocations
|
||||||
|
? {
|
||||||
id: true,
|
id: true,
|
||||||
account_allocations: {
|
account_allocations: {
|
||||||
select: {
|
select: {
|
||||||
@@ -61,8 +66,50 @@ export const getPartnerBusinessActivityAllocationLimits = async (
|
|||||||
account_id: true,
|
account_id: true,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
}
|
||||||
|
: {
|
||||||
|
id: true,
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
export const hasPartnerBusinessActivityEmptyAccountAllocation = async (
|
||||||
|
prisma: PartnerBusinessActivityAllocationClient,
|
||||||
|
params: GetPartnerBusinessActivityAllocationLimitsParams,
|
||||||
|
) => {
|
||||||
|
const activation = await getPartnerBusinessActivityActiveActivation(prisma, params)
|
||||||
|
|
||||||
|
if (!activation) {
|
||||||
|
throw new BadRequestException('لایسنس فعال برای این فعالیت تجاری یافت نشد.')
|
||||||
|
}
|
||||||
|
|
||||||
|
return activation.account_allocations.some(
|
||||||
|
account_allocation => !account_allocation.account_id,
|
||||||
|
)
|
||||||
|
}
|
||||||
|
|
||||||
|
export const getPartnerBusinessActivityEmptyAccountAllocation = async (
|
||||||
|
prisma: PartnerBusinessActivityAllocationClient,
|
||||||
|
params: GetPartnerBusinessActivityAllocationLimitsParams,
|
||||||
|
) => {
|
||||||
|
const activation = await getPartnerBusinessActivityActiveActivation(prisma, params)
|
||||||
|
|
||||||
|
if (!activation) {
|
||||||
|
throw new BadRequestException('لایسنس فعال برای این فعالیت تجاری یافت نشد.')
|
||||||
|
}
|
||||||
|
|
||||||
|
return (
|
||||||
|
activation.account_allocations.find(
|
||||||
|
account_allocation => !account_allocation.account_id,
|
||||||
|
) ?? null
|
||||||
|
)
|
||||||
|
}
|
||||||
|
|
||||||
|
export const getPartnerBusinessActivityAllocationLimits = async (
|
||||||
|
prisma: PartnerBusinessActivityAllocationClient,
|
||||||
|
params: GetPartnerBusinessActivityAllocationLimitsParams,
|
||||||
|
): Promise<PartnerBusinessActivityAllocationLimits> => {
|
||||||
|
const activation = await getPartnerBusinessActivityActiveActivation(prisma, params)
|
||||||
|
|
||||||
if (!activation) {
|
if (!activation) {
|
||||||
throw new BadRequestException('لایسنس فعال برای این فعالیت تجاری یافت نشد.')
|
throw new BadRequestException('لایسنس فعال برای این فعالیت تجاری یافت نشد.')
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
import { checkAndDecodeJwtToken } from '@/common/utils/jwt-user.util'
|
import { checkAndDecodeJwtToken } from '@/common/utils/jwt-user.util'
|
||||||
import { ConsumerRole } from '@/generated/prisma/enums'
|
import { POSStatus } from '@/generated/prisma/enums'
|
||||||
|
import { PosSelect } from '@/generated/prisma/models'
|
||||||
import { PrismaService } from '@/prisma/prisma.service'
|
import { PrismaService } from '@/prisma/prisma.service'
|
||||||
import {
|
import {
|
||||||
ForbiddenException,
|
ForbiddenException,
|
||||||
@@ -21,60 +22,11 @@ export class PosMiddleware implements NestMiddleware {
|
|||||||
const doForbidden = () => {
|
const doForbidden = () => {
|
||||||
throw new ForbiddenException('شما دسترسی لازم را ندارید')
|
throw new ForbiddenException('شما دسترسی لازم را ندارید')
|
||||||
}
|
}
|
||||||
|
return this.prisma.$transaction(async tx => {
|
||||||
try {
|
try {
|
||||||
const tokenAccount = checkAndDecodeJwtToken(req, this.jwtService)
|
const tokenAccount = checkAndDecodeJwtToken(req, this.jwtService)
|
||||||
|
|
||||||
const { type, role, account_id } = tokenAccount!
|
const { type, role, account_id } = tokenAccount!
|
||||||
|
const posSelect: PosSelect = {
|
||||||
let posId = req.cookies['posId']
|
|
||||||
|
|
||||||
if (type !== 'CONSUMER') {
|
|
||||||
return doForbidden()
|
|
||||||
}
|
|
||||||
|
|
||||||
if (req.url.startsWith('/api/v1/pos/accessible')) {
|
|
||||||
req.decodedToken = tokenAccount!
|
|
||||||
return next()
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!posId || typeof posId !== 'string') {
|
|
||||||
const pos = await this.prisma.pos.findMany({
|
|
||||||
where: {
|
|
||||||
complex: {
|
|
||||||
business_activity: {
|
|
||||||
consumer: {
|
|
||||||
consumer_accounts: {
|
|
||||||
some: {
|
|
||||||
id: account_id,
|
|
||||||
},
|
|
||||||
},
|
|
||||||
},
|
|
||||||
},
|
|
||||||
},
|
|
||||||
permission_pos: {
|
|
||||||
some: {
|
|
||||||
permission: {
|
|
||||||
consumer_account_id: account_id,
|
|
||||||
},
|
|
||||||
},
|
|
||||||
},
|
|
||||||
},
|
|
||||||
})
|
|
||||||
|
|
||||||
if (!pos?.length) {
|
|
||||||
throw new ForbiddenException('پایانهی فروشی برای شما یافت نشد')
|
|
||||||
}
|
|
||||||
if (pos.length === 1) {
|
|
||||||
posId = pos[0].id
|
|
||||||
} else
|
|
||||||
throw new PreconditionFailedException('پایانهی مورد نظر خود را انتخاب کنید.')
|
|
||||||
}
|
|
||||||
|
|
||||||
const pos = await this.prisma.pos.findUnique({
|
|
||||||
where: {
|
|
||||||
id: posId,
|
|
||||||
},
|
|
||||||
select: {
|
|
||||||
id: true,
|
id: true,
|
||||||
complex: {
|
complex: {
|
||||||
select: {
|
select: {
|
||||||
@@ -87,49 +39,101 @@ export class PosMiddleware implements NestMiddleware {
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
}
|
||||||
|
|
||||||
|
let posId = req.cookies['posId']
|
||||||
|
|
||||||
|
if (type !== 'CONSUMER') {
|
||||||
|
return doForbidden()
|
||||||
|
}
|
||||||
|
|
||||||
|
if (req.url.startsWith('/api/v1/pos/accessible')) {
|
||||||
|
req.decodedToken = tokenAccount!
|
||||||
|
return next()
|
||||||
|
}
|
||||||
|
|
||||||
|
let pos!: any
|
||||||
|
|
||||||
|
if (!posId || typeof posId !== 'string') {
|
||||||
|
const poses = await tx.pos.findMany({
|
||||||
|
where: {
|
||||||
|
complex: {
|
||||||
|
business_activity: {
|
||||||
|
consumer: {
|
||||||
|
consumer_accounts: {
|
||||||
|
some: {
|
||||||
|
id: account_id,
|
||||||
},
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
account_id,
|
||||||
|
},
|
||||||
|
select: posSelect,
|
||||||
})
|
})
|
||||||
|
|
||||||
|
if (!poses?.length) {
|
||||||
|
throw new ForbiddenException('پایانهی فروشی برای شما یافت نشد')
|
||||||
|
}
|
||||||
|
if (poses.length === 1) {
|
||||||
|
pos = poses[0]
|
||||||
|
posId = poses[0].id
|
||||||
|
} else
|
||||||
|
throw new PreconditionFailedException('پایانهی مورد نظر خود را انتخاب کنید.')
|
||||||
|
}
|
||||||
|
|
||||||
|
if (!pos) {
|
||||||
|
pos = await tx.pos.findUnique({
|
||||||
|
where: {
|
||||||
|
id: posId,
|
||||||
|
status: POSStatus.ACTIVE,
|
||||||
|
},
|
||||||
|
select: posSelect,
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
if (!pos) {
|
if (!pos) {
|
||||||
return doForbidden()
|
return doForbidden()
|
||||||
}
|
}
|
||||||
|
|
||||||
if (role !== ConsumerRole.OWNER) {
|
// if (role !== ConsumerRole.OWNER) {
|
||||||
const accountPermissions = await this.prisma.permissionConsumer.findUnique({
|
// const accountPermissions = await tx.permissionConsumer.findUnique({
|
||||||
where: {
|
// where: {
|
||||||
consumer_account_id: account_id,
|
// consumer_account_id: account_id,
|
||||||
},
|
// },
|
||||||
select: {
|
// select: {
|
||||||
pos_permissions: {
|
// pos_permissions: {
|
||||||
select: {
|
// select: {
|
||||||
pos_id: true,
|
// pos_id: true,
|
||||||
},
|
// },
|
||||||
},
|
// },
|
||||||
business_permissions: {
|
// business_permissions: {
|
||||||
select: {
|
// select: {
|
||||||
business_id: true,
|
// business_id: true,
|
||||||
},
|
// },
|
||||||
},
|
// },
|
||||||
complex_permissions: {
|
// complex_permissions: {
|
||||||
select: {
|
// select: {
|
||||||
complex_id: true,
|
// complex_id: true,
|
||||||
},
|
// },
|
||||||
},
|
// },
|
||||||
},
|
// },
|
||||||
})
|
// })
|
||||||
|
|
||||||
|
// if (
|
||||||
|
// !// accountPermissions?.business_permissions.some(
|
||||||
|
// // permission => permission.id,
|
||||||
|
// // ) ||
|
||||||
|
// // accountPermissions?.complex_permissions.some(
|
||||||
|
// // permission => permission.complex_id,
|
||||||
|
// // ) ||
|
||||||
|
// accountPermissions?.pos_permissions.some(permission => permission.pos_id)
|
||||||
|
// ) {
|
||||||
|
// return doForbidden()
|
||||||
|
// }
|
||||||
|
// }
|
||||||
|
|
||||||
if (
|
|
||||||
!// accountPermissions?.business_permissions.some(
|
|
||||||
// permission => permission.id,
|
|
||||||
// ) ||
|
|
||||||
// accountPermissions?.complex_permissions.some(
|
|
||||||
// permission => permission.complex_id,
|
|
||||||
// ) ||
|
|
||||||
accountPermissions?.pos_permissions.some(permission => permission.pos_id)
|
|
||||||
) {
|
|
||||||
return doForbidden()
|
|
||||||
}
|
|
||||||
}
|
|
||||||
req.posData = {
|
req.posData = {
|
||||||
pos_id: posId,
|
pos_id: posId,
|
||||||
complex_id: pos.complex.id,
|
complex_id: pos.complex.id,
|
||||||
@@ -147,5 +151,6 @@ export class PosMiddleware implements NestMiddleware {
|
|||||||
|
|
||||||
return doForbidden()
|
return doForbidden()
|
||||||
}
|
}
|
||||||
|
})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user