58a7c359d8
- Created SendBulkSaleInvoicesDto for handling bulk sale invoice requests. - Implemented TaxSwitchSendPayloadDto and related DTOs for tax switch item payloads and results. - Developed SalesInvoiceTaxSwitchService to manage tax switch operations, including sending and retrieving tax information. - Added SalesInvoiceTaxService for handling sales invoice tax logic, including bulk sending and persistence of results. - Introduced NamaTaxSwitchAdapter to interact with the tax switch service, simulating external API responses. - Created SendBulkSalesInvoicesDto for POS module to handle bulk sales invoice requests.
262 lines
5.5 KiB
TypeScript
262 lines
5.5 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. Through it you get access to all the models, enums, and input types.
|
|
* If you're looking for something you can import in the client-side of your application, please refer to the `browser.ts` file instead.
|
|
*
|
|
* 🟢 You can import this file directly.
|
|
*/
|
|
|
|
import * as process from 'node:process'
|
|
import * as path from 'node:path'
|
|
|
|
import * as runtime from "@prisma/client/runtime/client"
|
|
import * as $Enums from "./enums.js"
|
|
import * as $Class from "./internal/class.js"
|
|
import * as Prisma from "./internal/prismaNamespace.js"
|
|
|
|
export * as $Enums from './enums.js'
|
|
export * from "./enums.js"
|
|
/**
|
|
* ## Prisma Client
|
|
*
|
|
* Type-safe database client for TypeScript
|
|
* @example
|
|
* ```
|
|
* const prisma = new PrismaClient({
|
|
* adapter: new PrismaPg({ connectionString: process.env.DATABASE_URL })
|
|
* })
|
|
* // Fetch zero or more AdminAccounts
|
|
* const adminAccounts = await prisma.adminAccount.findMany()
|
|
* ```
|
|
*
|
|
* Read more in our [docs](https://pris.ly/d/client).
|
|
*/
|
|
export const PrismaClient = $Class.getPrismaClientClass()
|
|
export type PrismaClient<LogOpts extends Prisma.LogLevel = never, OmitOpts extends Prisma.PrismaClientOptions["omit"] = Prisma.PrismaClientOptions["omit"], ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = $Class.PrismaClient<LogOpts, OmitOpts, ExtArgs>
|
|
export { Prisma }
|
|
|
|
/**
|
|
* Model AdminAccount
|
|
*
|
|
*/
|
|
export type AdminAccount = Prisma.AdminAccountModel
|
|
/**
|
|
* Model Admin
|
|
*
|
|
*/
|
|
export type Admin = Prisma.AdminModel
|
|
/**
|
|
* Model Account
|
|
*
|
|
*/
|
|
export type Account = Prisma.AccountModel
|
|
/**
|
|
* 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 ConsumerAccount
|
|
*
|
|
*/
|
|
export type ConsumerAccount = Prisma.ConsumerAccountModel
|
|
/**
|
|
* Model Consumer
|
|
*
|
|
*/
|
|
export type Consumer = Prisma.ConsumerModel
|
|
/**
|
|
* Model ConsumerIndividual
|
|
*
|
|
*/
|
|
export type ConsumerIndividual = Prisma.ConsumerIndividualModel
|
|
/**
|
|
* Model ConsumerLegal
|
|
*
|
|
*/
|
|
export type ConsumerLegal = Prisma.ConsumerLegalModel
|
|
/**
|
|
* Model BusinessActivity
|
|
*
|
|
*/
|
|
export type BusinessActivity = Prisma.BusinessActivityModel
|
|
/**
|
|
* Model Complex
|
|
*
|
|
*/
|
|
export type Complex = Prisma.ComplexModel
|
|
/**
|
|
* Model Pos
|
|
*
|
|
*/
|
|
export type Pos = Prisma.PosModel
|
|
/**
|
|
* 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 SaleInvoiceFiscals
|
|
*
|
|
*/
|
|
export type SaleInvoiceFiscals = Prisma.SaleInvoiceFiscalsModel
|
|
/**
|
|
* Model SaleInvoiceFiscalAttempts
|
|
*
|
|
*/
|
|
export type SaleInvoiceFiscalAttempts = Prisma.SaleInvoiceFiscalAttemptsModel
|
|
/**
|
|
* Model SalesInvoicePayment
|
|
*
|
|
*/
|
|
export type SalesInvoicePayment = Prisma.SalesInvoicePaymentModel
|
|
/**
|
|
* Model Service
|
|
*
|
|
*/
|
|
export type Service = Prisma.ServiceModel
|
|
/**
|
|
* Model ServiceCategory
|
|
*
|
|
*/
|
|
export type ServiceCategory = Prisma.ServiceCategoryModel
|