12506de863
- Implemented `getPartnerBusinessActivityAllocationLimits` to retrieve allocation limits for a partner's business activity. - Added `ensurePartnerBusinessActivityHasRemainingAllocation` to validate remaining allocation credits. - Created `getPartnerRemainingLicenses` to count remaining licenses for a partner. - Developed `getPartnerFirstRemainingLicense` to fetch the first unused license for a partner. - Introduced `ensurePartnerHasRemainingLicense` to ensure a partner has at least one unused license.
220 lines
4.2 KiB
TypeScript
220 lines
4.2 KiB
TypeScript
|
|
/* !!! This is code generated by Prisma. Do not edit directly. !!! */
|
|
/* eslint-disable */
|
|
// biome-ignore-all lint: generated file
|
|
// @ts-nocheck
|
|
/*
|
|
* This file should be your main import to use Prisma-related types and utilities in a browser.
|
|
* Use it to get access to models, enums, and input types.
|
|
*
|
|
* This file does not contain a `PrismaClient` class, nor several other helpers that are intended as server-side only.
|
|
* See `client.ts` for the standard, server-side entry point.
|
|
*
|
|
* 🟢 You can import this file directly.
|
|
*/
|
|
|
|
import * as Prisma from './internal/prismaNamespaceBrowser.js'
|
|
export { Prisma }
|
|
export * as $Enums from './enums.js'
|
|
export * from './enums.js';
|
|
/**
|
|
* Model AdminAccount
|
|
*
|
|
*/
|
|
export type AdminAccount = Prisma.AdminAccountModel
|
|
/**
|
|
* Model Admin
|
|
*
|
|
*/
|
|
export type Admin = Prisma.AdminModel
|
|
/**
|
|
* Model Account
|
|
*
|
|
*/
|
|
export type Account = Prisma.AccountModel
|
|
/**
|
|
* Model ConsumerAccount
|
|
*
|
|
*/
|
|
export type ConsumerAccount = Prisma.ConsumerAccountModel
|
|
/**
|
|
* Model Consumer
|
|
*
|
|
*/
|
|
export type Consumer = Prisma.ConsumerModel
|
|
/**
|
|
* Model BusinessActivity
|
|
*
|
|
*/
|
|
export type BusinessActivity = Prisma.BusinessActivityModel
|
|
/**
|
|
* Model Complex
|
|
*
|
|
*/
|
|
export type Complex = Prisma.ComplexModel
|
|
/**
|
|
* Model Pos
|
|
*
|
|
*/
|
|
export type Pos = Prisma.PosModel
|
|
/**
|
|
* Model DeviceBrand
|
|
*
|
|
*/
|
|
export type DeviceBrand = Prisma.DeviceBrandModel
|
|
/**
|
|
* Model Device
|
|
*
|
|
*/
|
|
export type Device = Prisma.DeviceModel
|
|
/**
|
|
* Model LicenseChargeTransaction
|
|
*
|
|
*/
|
|
export type LicenseChargeTransaction = Prisma.LicenseChargeTransactionModel
|
|
/**
|
|
* Model License
|
|
*
|
|
*/
|
|
export type License = Prisma.LicenseModel
|
|
/**
|
|
* Model LicenseActivation
|
|
*
|
|
*/
|
|
export type LicenseActivation = Prisma.LicenseActivationModel
|
|
/**
|
|
* Model LicenseRenewChargeTransaction
|
|
*
|
|
*/
|
|
export type LicenseRenewChargeTransaction = Prisma.LicenseRenewChargeTransactionModel
|
|
/**
|
|
* Model LicenseRenew
|
|
*
|
|
*/
|
|
export type LicenseRenew = Prisma.LicenseRenewModel
|
|
/**
|
|
* Model PartnerAccountQuotaChargeTransaction
|
|
*
|
|
*/
|
|
export type PartnerAccountQuotaChargeTransaction = Prisma.PartnerAccountQuotaChargeTransactionModel
|
|
/**
|
|
* Model PartnerAccountQuotaCredit
|
|
*
|
|
*/
|
|
export type PartnerAccountQuotaCredit = Prisma.PartnerAccountQuotaCreditModel
|
|
/**
|
|
* Model LicenseAccountAllocation
|
|
*
|
|
*/
|
|
export type LicenseAccountAllocation = Prisma.LicenseAccountAllocationModel
|
|
/**
|
|
* Model PartnerAccount
|
|
*
|
|
*/
|
|
export type PartnerAccount = Prisma.PartnerAccountModel
|
|
/**
|
|
* Model Partner
|
|
*
|
|
*/
|
|
export type Partner = Prisma.PartnerModel
|
|
/**
|
|
* Model PermissionConsumer
|
|
*
|
|
*/
|
|
export type PermissionConsumer = Prisma.PermissionConsumerModel
|
|
/**
|
|
* Model PermissionPos
|
|
*
|
|
*/
|
|
export type PermissionPos = Prisma.PermissionPosModel
|
|
/**
|
|
* Model PermissionComplex
|
|
*
|
|
*/
|
|
export type PermissionComplex = Prisma.PermissionComplexModel
|
|
/**
|
|
* Model PermissionBusiness
|
|
*
|
|
*/
|
|
export type PermissionBusiness = Prisma.PermissionBusinessModel
|
|
/**
|
|
* Model ProviderAccount
|
|
*
|
|
*/
|
|
export type ProviderAccount = Prisma.ProviderAccountModel
|
|
/**
|
|
* Model Provider
|
|
*
|
|
*/
|
|
export type Provider = Prisma.ProviderModel
|
|
/**
|
|
* Model ConsumerDevices
|
|
*
|
|
*/
|
|
export type ConsumerDevices = Prisma.ConsumerDevicesModel
|
|
/**
|
|
* Model ApplicationReleasedInfo
|
|
*
|
|
*/
|
|
export type ApplicationReleasedInfo = Prisma.ApplicationReleasedInfoModel
|
|
/**
|
|
* Model TriggerLog
|
|
*
|
|
*/
|
|
export type TriggerLog = Prisma.TriggerLogModel
|
|
/**
|
|
* Model Customer
|
|
*
|
|
*/
|
|
export type Customer = Prisma.CustomerModel
|
|
/**
|
|
* Model CustomerIndividual
|
|
*
|
|
*/
|
|
export type CustomerIndividual = Prisma.CustomerIndividualModel
|
|
/**
|
|
* Model CustomerLegal
|
|
*
|
|
*/
|
|
export type CustomerLegal = Prisma.CustomerLegalModel
|
|
/**
|
|
* Model Good
|
|
*
|
|
*/
|
|
export type Good = Prisma.GoodModel
|
|
/**
|
|
* Model GoodCategory
|
|
*
|
|
*/
|
|
export type GoodCategory = Prisma.GoodCategoryModel
|
|
/**
|
|
* Model Guild
|
|
*
|
|
*/
|
|
export type Guild = Prisma.GuildModel
|
|
/**
|
|
* Model SalesInvoice
|
|
*
|
|
*/
|
|
export type SalesInvoice = Prisma.SalesInvoiceModel
|
|
/**
|
|
* Model SalesInvoiceItem
|
|
*
|
|
*/
|
|
export type SalesInvoiceItem = Prisma.SalesInvoiceItemModel
|
|
/**
|
|
* Model SalesInvoicePayment
|
|
*
|
|
*/
|
|
export type SalesInvoicePayment = Prisma.SalesInvoicePaymentModel
|
|
/**
|
|
* Model Service
|
|
*
|
|
*/
|
|
export type Service = Prisma.ServiceModel
|
|
/**
|
|
* Model ServiceCategory
|
|
*
|
|
*/
|
|
export type ServiceCategory = Prisma.ServiceCategoryModel
|