feat: add DTOs and services for tax switch integration
- 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.
This commit is contained in:
@@ -0,0 +1,80 @@
|
|||||||
|
/*
|
||||||
|
Warnings:
|
||||||
|
|
||||||
|
- You are about to drop the column `account_id` on the `sales_invoices` table. All the data in the column will be lost.
|
||||||
|
- A unique constraint covering the columns `[invoice_number,pos_id]` on the table `sales_invoices` will be added. If there are existing duplicate values, this will fail.
|
||||||
|
- Added the required column `fiscal_id` to the `business_activities` table without a default value. This is not possible if the table is not empty.
|
||||||
|
- Added the required column `partner_token` to the `business_activities` table without a default value. This is not possible if the table is not empty.
|
||||||
|
- Added the required column `consumer_account_id` to the `sales_invoices` table without a default value. This is not possible if the table is not empty.
|
||||||
|
- Added the required column `invoice_number` to the `sales_invoices` table without a default value. This is not possible if the table is not empty.
|
||||||
|
- Made the column `invoice_date` on table `sales_invoices` required. This step will fail if there are existing NULL values in that column.
|
||||||
|
|
||||||
|
*/
|
||||||
|
-- DropForeignKey
|
||||||
|
ALTER TABLE `sales_invoices` DROP FOREIGN KEY `sales_invoices_account_id_fkey`;
|
||||||
|
|
||||||
|
-- DropIndex
|
||||||
|
DROP INDEX `sales_invoices_account_id_fkey` ON `sales_invoices`;
|
||||||
|
|
||||||
|
-- AlterTable
|
||||||
|
ALTER TABLE `business_activities` ADD COLUMN `fiscal_id` VARCHAR(191) NOT NULL DEFAULT '',
|
||||||
|
ADD COLUMN `partner_token` VARCHAR(191) NOT NULL DEFAULT '';
|
||||||
|
|
||||||
|
-- AlterTable
|
||||||
|
ALTER TABLE `sales_invoice_items` ADD COLUMN `good_snapshot` JSON NULL;
|
||||||
|
|
||||||
|
-- AlterTable
|
||||||
|
ALTER TABLE `sales_invoice_payments` MODIFY `paid_at` TIMESTAMP(0) NOT NULL,
|
||||||
|
MODIFY `created_at` TIMESTAMP(0) NOT NULL DEFAULT CURRENT_TIMESTAMP(0);
|
||||||
|
|
||||||
|
-- AlterTable
|
||||||
|
ALTER TABLE `sales_invoices` DROP COLUMN `account_id`,
|
||||||
|
ADD COLUMN `consumer_account_id` VARCHAR(191) NOT NULL,
|
||||||
|
ADD COLUMN `invoice_number` INTEGER NOT NULL,
|
||||||
|
MODIFY `invoice_date` TIMESTAMP(0) NOT NULL DEFAULT CURRENT_TIMESTAMP(0);
|
||||||
|
|
||||||
|
-- CreateTable
|
||||||
|
CREATE TABLE `sale_invoice_fiscals` (
|
||||||
|
`id` VARCHAR(191) NOT NULL,
|
||||||
|
`retry_count` INTEGER NOT NULL DEFAULT 0,
|
||||||
|
`last_attempt_at` TIMESTAMP(0) NULL,
|
||||||
|
`created_at` TIMESTAMP(0) NOT NULL DEFAULT CURRENT_TIMESTAMP(0),
|
||||||
|
`updated_at` TIMESTAMP(0) NOT NULL,
|
||||||
|
`invoice_id` VARCHAR(191) NOT NULL,
|
||||||
|
|
||||||
|
UNIQUE INDEX `sale_invoice_fiscals_invoice_id_key`(`invoice_id`),
|
||||||
|
PRIMARY KEY (`id`)
|
||||||
|
) DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
|
||||||
|
|
||||||
|
-- CreateTable
|
||||||
|
CREATE TABLE `sale_invoice_fiscal_attempts` (
|
||||||
|
`id` VARCHAR(191) NOT NULL,
|
||||||
|
`attempt_no` INTEGER NOT NULL,
|
||||||
|
`status` VARCHAR(50) NOT NULL,
|
||||||
|
`tax_id` VARCHAR(191) NULL,
|
||||||
|
`request_payload` JSON NULL,
|
||||||
|
`response_payload` JSON NULL,
|
||||||
|
`error_message` TEXT NULL,
|
||||||
|
`sent_at` TIMESTAMP(0) NULL,
|
||||||
|
`received_at` TIMESTAMP(0) NULL,
|
||||||
|
`created_at` TIMESTAMP(0) NOT NULL DEFAULT CURRENT_TIMESTAMP(0),
|
||||||
|
`fiscal_id` VARCHAR(191) NOT NULL,
|
||||||
|
|
||||||
|
UNIQUE INDEX `sale_invoice_fiscal_attempts_tax_id_key`(`tax_id`),
|
||||||
|
INDEX `sale_invoice_fiscal_attempts_status_idx`(`status`),
|
||||||
|
INDEX `sale_invoice_fiscal_attempts_tax_id_idx`(`tax_id`),
|
||||||
|
UNIQUE INDEX `sale_invoice_fiscal_attempts_fiscal_id_attempt_no_key`(`fiscal_id`, `attempt_no`),
|
||||||
|
PRIMARY KEY (`id`)
|
||||||
|
) DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
|
||||||
|
|
||||||
|
-- CreateIndex
|
||||||
|
CREATE UNIQUE INDEX `sales_invoices_invoice_number_pos_id_key` ON `sales_invoices`(`invoice_number`, `pos_id`);
|
||||||
|
|
||||||
|
-- AddForeignKey
|
||||||
|
ALTER TABLE `sales_invoices` ADD CONSTRAINT `sales_invoices_consumer_account_id_fkey` FOREIGN KEY (`consumer_account_id`) REFERENCES `consumer_accounts`(`id`) ON DELETE RESTRICT ON UPDATE CASCADE;
|
||||||
|
|
||||||
|
-- AddForeignKey
|
||||||
|
ALTER TABLE `sale_invoice_fiscals` ADD CONSTRAINT `sale_invoice_fiscals_invoice_id_fkey` FOREIGN KEY (`invoice_id`) REFERENCES `sales_invoices`(`id`) ON DELETE CASCADE ON UPDATE CASCADE;
|
||||||
|
|
||||||
|
-- AddForeignKey
|
||||||
|
ALTER TABLE `sale_invoice_fiscal_attempts` ADD CONSTRAINT `sale_invoice_fiscal_attempts_fiscal_id_fkey` FOREIGN KEY (`fiscal_id`) REFERENCES `sale_invoice_fiscals`(`id`) ON DELETE CASCADE ON UPDATE CASCADE;
|
||||||
@@ -0,0 +1,3 @@
|
|||||||
|
-- AlterTable
|
||||||
|
ALTER TABLE `business_activities` ALTER COLUMN `fiscal_id` DROP DEFAULT,
|
||||||
|
ALTER COLUMN `partner_token` DROP DEFAULT;
|
||||||
@@ -77,6 +77,8 @@ model BusinessActivity {
|
|||||||
id String @id @default(ulid())
|
id String @id @default(ulid())
|
||||||
economic_code String
|
economic_code String
|
||||||
name String
|
name String
|
||||||
|
fiscal_id String
|
||||||
|
partner_token String
|
||||||
|
|
||||||
created_at DateTime @default(now()) @db.Timestamp(0)
|
created_at DateTime @default(now()) @db.Timestamp(0)
|
||||||
updated_at DateTime @updatedAt() @db.Timestamp(0)
|
updated_at DateTime @updatedAt() @db.Timestamp(0)
|
||||||
@@ -87,9 +89,9 @@ model BusinessActivity {
|
|||||||
consumer_id String
|
consumer_id String
|
||||||
consumer Consumer @relation(fields: [consumer_id], references: [id])
|
consumer Consumer @relation(fields: [consumer_id], references: [id])
|
||||||
|
|
||||||
|
license_activation LicenseActivation?
|
||||||
complexes Complex[]
|
complexes Complex[]
|
||||||
permission_businesses PermissionBusiness[]
|
permission_businesses PermissionBusiness[]
|
||||||
license_activation LicenseActivation?
|
|
||||||
goods Good[]
|
goods Good[]
|
||||||
customer_individuals CustomerIndividual[]
|
customer_individuals CustomerIndividual[]
|
||||||
customer_legals CustomerLegal[]
|
customer_legals CustomerLegal[]
|
||||||
@@ -1,10 +1,12 @@
|
|||||||
model SalesInvoice {
|
model SalesInvoice {
|
||||||
id String @id @default(ulid())
|
id String @id @default(uuid())
|
||||||
code String @unique @db.VarChar(100)
|
code String @unique @db.VarChar(100)
|
||||||
total_amount Decimal @db.Decimal(15, 2)
|
total_amount Decimal @db.Decimal(15, 2)
|
||||||
|
invoice_number Int @db.Int()
|
||||||
|
invoice_date DateTime @default(now()) @db.Timestamp(0)
|
||||||
|
|
||||||
notes String? @db.Text
|
notes String? @db.Text
|
||||||
unknown_customer Json? @db.Json
|
unknown_customer Json? @db.Json
|
||||||
invoice_date DateTime? @default(now()) @db.Timestamp(0)
|
|
||||||
|
|
||||||
created_at DateTime @default(now()) @db.Timestamp(0)
|
created_at DateTime @default(now()) @db.Timestamp(0)
|
||||||
updated_at DateTime @updatedAt @db.Timestamp(0)
|
updated_at DateTime @updatedAt @db.Timestamp(0)
|
||||||
@@ -12,15 +14,18 @@ model SalesInvoice {
|
|||||||
customer_id String?
|
customer_id String?
|
||||||
customer Customer? @relation(fields: [customer_id], references: [id])
|
customer Customer? @relation(fields: [customer_id], references: [id])
|
||||||
|
|
||||||
account_id String
|
consumer_account_id String
|
||||||
consumer_account ConsumerAccount @relation(fields: [account_id], references: [id])
|
consumer_account ConsumerAccount @relation(fields: [consumer_account_id], references: [id])
|
||||||
|
|
||||||
pos_id String
|
pos_id String
|
||||||
pos Pos @relation(fields: [pos_id], references: [id])
|
pos Pos @relation(fields: [pos_id], references: [id])
|
||||||
|
|
||||||
|
fiscal SaleInvoiceFiscals?
|
||||||
|
|
||||||
items SalesInvoiceItem[]
|
items SalesInvoiceItem[]
|
||||||
payments SalesInvoicePayment[]
|
payments SalesInvoicePayment[]
|
||||||
|
|
||||||
|
@@unique([invoice_number, pos_id])
|
||||||
@@map("sales_invoices")
|
@@map("sales_invoices")
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -34,28 +39,72 @@ model SalesInvoiceItem {
|
|||||||
discount Decimal @default(0.00) @db.Decimal(15, 2)
|
discount Decimal @default(0.00) @db.Decimal(15, 2)
|
||||||
notes String? @db.Text
|
notes String? @db.Text
|
||||||
|
|
||||||
invoice_id String
|
|
||||||
good_id String?
|
|
||||||
service_id String?
|
|
||||||
|
|
||||||
payload Json?
|
payload Json?
|
||||||
|
good_snapshot Json?
|
||||||
|
|
||||||
|
invoice_id String
|
||||||
invoice SalesInvoice @relation(fields: [invoice_id], references: [id])
|
invoice SalesInvoice @relation(fields: [invoice_id], references: [id])
|
||||||
|
|
||||||
|
good_id String?
|
||||||
good Good? @relation(fields: [good_id], references: [id])
|
good Good? @relation(fields: [good_id], references: [id])
|
||||||
|
|
||||||
|
service_id String?
|
||||||
service Service? @relation(fields: [service_id], references: [id])
|
service Service? @relation(fields: [service_id], references: [id])
|
||||||
|
|
||||||
@@index([invoice_id, good_id])
|
@@index([invoice_id, good_id])
|
||||||
@@map("sales_invoice_items")
|
@@map("sales_invoice_items")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
model SaleInvoiceFiscals {
|
||||||
|
id String @id @default(ulid())
|
||||||
|
|
||||||
|
retry_count Int @default(0)
|
||||||
|
last_attempt_at DateTime? @db.Timestamp(0)
|
||||||
|
|
||||||
|
created_at DateTime @default(now()) @db.Timestamp(0)
|
||||||
|
updated_at DateTime @updatedAt() @db.Timestamp(0)
|
||||||
|
|
||||||
|
invoice_id String @unique
|
||||||
|
invoice SalesInvoice @relation(fields: [invoice_id], references: [id], onDelete: Cascade)
|
||||||
|
|
||||||
|
attempts SaleInvoiceFiscalAttempts[]
|
||||||
|
|
||||||
|
@@map("sale_invoice_fiscals")
|
||||||
|
}
|
||||||
|
|
||||||
|
model SaleInvoiceFiscalAttempts {
|
||||||
|
id String @id @default(ulid())
|
||||||
|
|
||||||
|
attempt_no Int
|
||||||
|
status String @db.VarChar(50)
|
||||||
|
tax_id String? @unique @db.VarChar(191)
|
||||||
|
|
||||||
|
request_payload Json?
|
||||||
|
response_payload Json?
|
||||||
|
error_message String? @db.Text
|
||||||
|
|
||||||
|
sent_at DateTime? @db.Timestamp(0)
|
||||||
|
received_at DateTime? @db.Timestamp(0)
|
||||||
|
created_at DateTime @default(now()) @db.Timestamp(0)
|
||||||
|
|
||||||
|
fiscal_id String
|
||||||
|
fiscal SaleInvoiceFiscals @relation(fields: [fiscal_id], references: [id], onDelete: Cascade)
|
||||||
|
|
||||||
|
@@unique([fiscal_id, attempt_no])
|
||||||
|
@@index([status])
|
||||||
|
@@index([tax_id])
|
||||||
|
@@map("sale_invoice_fiscal_attempts")
|
||||||
|
}
|
||||||
|
|
||||||
model SalesInvoicePayment {
|
model SalesInvoicePayment {
|
||||||
id String @id @default(ulid())
|
id String @id @default(ulid())
|
||||||
invoice_id String
|
|
||||||
amount Decimal @db.Decimal(15, 2)
|
amount Decimal @db.Decimal(15, 2)
|
||||||
payment_method PaymentMethodType
|
payment_method PaymentMethodType
|
||||||
paid_at DateTime
|
paid_at DateTime @db.Timestamp(0)
|
||||||
created_at DateTime @default(now())
|
|
||||||
|
|
||||||
|
created_at DateTime @default(now()) @db.Timestamp(0)
|
||||||
|
|
||||||
|
invoice_id String
|
||||||
invoice SalesInvoice @relation(fields: [invoice_id], references: [id])
|
invoice SalesInvoice @relation(fields: [invoice_id], references: [id])
|
||||||
|
|
||||||
@@index([invoice_id])
|
@@index([invoice_id])
|
||||||
|
|||||||
@@ -330,6 +330,8 @@ async function main() {
|
|||||||
data: {
|
data: {
|
||||||
name: 'طلا فروشی',
|
name: 'طلا فروشی',
|
||||||
economic_code: '0111111111',
|
economic_code: '0111111111',
|
||||||
|
fiscal_id: '0111111111',
|
||||||
|
partner_token: 'TIS-BA-001',
|
||||||
license_activation: {
|
license_activation: {
|
||||||
create: {
|
create: {
|
||||||
expires_at: startOfToday,
|
expires_at: startOfToday,
|
||||||
|
|||||||
@@ -3,6 +3,7 @@ import { ITokenPayload } from '@/modules/auth/auth.utils'
|
|||||||
import { PrismaService } from '@/prisma/prisma.service'
|
import { PrismaService } from '@/prisma/prisma.service'
|
||||||
import { ExecutionContext, ForbiddenException, Injectable } from '@nestjs/common'
|
import { ExecutionContext, ForbiddenException, Injectable } from '@nestjs/common'
|
||||||
import { Request as ExpressRequest } from 'express'
|
import { Request as ExpressRequest } from 'express'
|
||||||
|
import { QUERY_CONSTANTS } from '../queryConstants'
|
||||||
|
|
||||||
@Injectable()
|
@Injectable()
|
||||||
export class PosGuard {
|
export class PosGuard {
|
||||||
@@ -18,7 +19,6 @@ 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
|
||||||
|
|
||||||
@@ -40,22 +40,7 @@ export class PosGuard {
|
|||||||
},
|
},
|
||||||
],
|
],
|
||||||
license_activation: {
|
license_activation: {
|
||||||
OR: [
|
...QUERY_CONSTANTS.LICENSE_ACTIVATION.activeOnDate(),
|
||||||
{
|
|
||||||
expires_at: {
|
|
||||||
gte: now,
|
|
||||||
},
|
|
||||||
},
|
|
||||||
{
|
|
||||||
license_renews: {
|
|
||||||
some: {
|
|
||||||
expires_at: {
|
|
||||||
gte: now,
|
|
||||||
},
|
|
||||||
},
|
|
||||||
},
|
|
||||||
},
|
|
||||||
],
|
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
|||||||
@@ -85,7 +85,6 @@ export class ResponseMappingInterceptor implements NestInterceptor {
|
|||||||
break
|
break
|
||||||
case 'paginate': {
|
case 'paginate': {
|
||||||
const { items: a, ...rest } = wrapped
|
const { items: a, ...rest } = wrapped
|
||||||
console.log(rest)
|
|
||||||
|
|
||||||
const items = Array.isArray(wrapped.items) ? wrapped.items : []
|
const items = Array.isArray(wrapped.items) ? wrapped.items : []
|
||||||
const total =
|
const total =
|
||||||
|
|||||||
@@ -1,4 +1,6 @@
|
|||||||
import { ConsumerSelect } from '@/generated/prisma/models'
|
import { ConsumerSelect, ConsumerWhereInput } from '@/generated/prisma/models'
|
||||||
|
|
||||||
|
const now = new Date()
|
||||||
|
|
||||||
export const infoSelect: ConsumerSelect = {
|
export const infoSelect: ConsumerSelect = {
|
||||||
legal: {
|
legal: {
|
||||||
@@ -29,3 +31,51 @@ export const infoSelect: ConsumerSelect = {
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export const activeBusinessCount: ConsumerSelect = {
|
||||||
|
_count: {
|
||||||
|
select: {
|
||||||
|
business_activities: {
|
||||||
|
where: {
|
||||||
|
license_activation: {
|
||||||
|
OR: [
|
||||||
|
{
|
||||||
|
expires_at: {
|
||||||
|
gt: now,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
{
|
||||||
|
license_renews: {
|
||||||
|
some: {
|
||||||
|
expires_at: {
|
||||||
|
gt: now,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
],
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
}
|
||||||
|
|
||||||
|
export const consumerRelatedPartner = (partner_id: string): ConsumerWhereInput => ({
|
||||||
|
OR: [
|
||||||
|
{
|
||||||
|
legal: {
|
||||||
|
is: {
|
||||||
|
partner_id,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
{
|
||||||
|
individual: {
|
||||||
|
is: {
|
||||||
|
partner_id,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
],
|
||||||
|
})
|
||||||
|
|||||||
@@ -1,7 +1,9 @@
|
|||||||
import * as CONSUMER from './consumer'
|
import * as CONSUMER from './consumer'
|
||||||
|
import * as LICENSE_ACTIVATION from './licenseActivation'
|
||||||
import * as POS from './pos'
|
import * as POS from './pos'
|
||||||
|
|
||||||
export const QUERY_CONSTANTS = {
|
export const QUERY_CONSTANTS = {
|
||||||
POS,
|
POS,
|
||||||
CONSUMER,
|
CONSUMER,
|
||||||
|
LICENSE_ACTIVATION,
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -0,0 +1,18 @@
|
|||||||
|
export const activeOnDate = (expires_at: Date = new Date()) => ({
|
||||||
|
OR: [
|
||||||
|
{
|
||||||
|
expires_at: {
|
||||||
|
gte: expires_at,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
{
|
||||||
|
license_renews: {
|
||||||
|
some: {
|
||||||
|
expires_at: {
|
||||||
|
gte: expires_at,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
],
|
||||||
|
})
|
||||||
@@ -1,6 +1,7 @@
|
|||||||
export default (consumer: any) => {
|
export default (consumer: any) => {
|
||||||
const { legal, individual, activation, ...rest } = consumer
|
const { legal, individual, activation, _count, ...rest } = consumer
|
||||||
|
|
||||||
|
const { business_activities: business_counts } = _count || { business_activities: 0 }
|
||||||
const partner = legal?.partner || individual?.partner
|
const partner = legal?.partner || individual?.partner
|
||||||
delete legal?.partner
|
delete legal?.partner
|
||||||
delete individual?.partner
|
delete individual?.partner
|
||||||
@@ -13,6 +14,7 @@ export default (consumer: any) => {
|
|||||||
? { ...individual, fullname: `${rest?.first_name} ${rest?.last_name}` }
|
? { ...individual, fullname: `${rest?.first_name} ${rest?.last_name}` }
|
||||||
: null,
|
: null,
|
||||||
name: legal ? legal.name : `${individual?.first_name} ${individual?.last_name}`,
|
name: legal ? legal.name : `${individual?.first_name} ${individual?.last_name}`,
|
||||||
|
business_counts,
|
||||||
// license_info: prepareLicenseInfo(activation),
|
// license_info: prepareLicenseInfo(activation),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -32,41 +32,6 @@ export type Admin = Prisma.AdminModel
|
|||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
export type Account = Prisma.AccountModel
|
export type Account = Prisma.AccountModel
|
||||||
/**
|
|
||||||
* 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 DeviceBrand
|
* Model DeviceBrand
|
||||||
*
|
*
|
||||||
@@ -167,6 +132,41 @@ export type ConsumerDevices = Prisma.ConsumerDevicesModel
|
|||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
export type ApplicationReleasedInfo = Prisma.ApplicationReleasedInfoModel
|
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
|
* Model TriggerLog
|
||||||
*
|
*
|
||||||
@@ -212,6 +212,16 @@ export type SalesInvoice = Prisma.SalesInvoiceModel
|
|||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
export type SalesInvoiceItem = Prisma.SalesInvoiceItemModel
|
export type SalesInvoiceItem = Prisma.SalesInvoiceItemModel
|
||||||
|
/**
|
||||||
|
* Model SaleInvoiceFiscals
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
export type SaleInvoiceFiscals = Prisma.SaleInvoiceFiscalsModel
|
||||||
|
/**
|
||||||
|
* Model SaleInvoiceFiscalAttempts
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
export type SaleInvoiceFiscalAttempts = Prisma.SaleInvoiceFiscalAttemptsModel
|
||||||
/**
|
/**
|
||||||
* Model SalesInvoicePayment
|
* Model SalesInvoicePayment
|
||||||
*
|
*
|
||||||
|
|||||||
@@ -54,41 +54,6 @@ export type Admin = Prisma.AdminModel
|
|||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
export type Account = Prisma.AccountModel
|
export type Account = Prisma.AccountModel
|
||||||
/**
|
|
||||||
* 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 DeviceBrand
|
* Model DeviceBrand
|
||||||
*
|
*
|
||||||
@@ -189,6 +154,41 @@ export type ConsumerDevices = Prisma.ConsumerDevicesModel
|
|||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
export type ApplicationReleasedInfo = Prisma.ApplicationReleasedInfoModel
|
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
|
* Model TriggerLog
|
||||||
*
|
*
|
||||||
@@ -234,6 +234,16 @@ export type SalesInvoice = Prisma.SalesInvoiceModel
|
|||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
export type SalesInvoiceItem = Prisma.SalesInvoiceItemModel
|
export type SalesInvoiceItem = Prisma.SalesInvoiceItemModel
|
||||||
|
/**
|
||||||
|
* Model SaleInvoiceFiscals
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
export type SaleInvoiceFiscals = Prisma.SaleInvoiceFiscalsModel
|
||||||
|
/**
|
||||||
|
* Model SaleInvoiceFiscalAttempts
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
export type SaleInvoiceFiscalAttempts = Prisma.SaleInvoiceFiscalAttemptsModel
|
||||||
/**
|
/**
|
||||||
* Model SalesInvoicePayment
|
* Model SalesInvoicePayment
|
||||||
*
|
*
|
||||||
|
|||||||
@@ -144,91 +144,6 @@ export type EnumAccountTypeWithAggregatesFilter<$PrismaModel = never> = {
|
|||||||
_max?: Prisma.NestedEnumAccountTypeFilter<$PrismaModel>
|
_max?: Prisma.NestedEnumAccountTypeFilter<$PrismaModel>
|
||||||
}
|
}
|
||||||
|
|
||||||
export type EnumConsumerRoleFilter<$PrismaModel = never> = {
|
|
||||||
equals?: $Enums.ConsumerRole | Prisma.EnumConsumerRoleFieldRefInput<$PrismaModel>
|
|
||||||
in?: $Enums.ConsumerRole[]
|
|
||||||
notIn?: $Enums.ConsumerRole[]
|
|
||||||
not?: Prisma.NestedEnumConsumerRoleFilter<$PrismaModel> | $Enums.ConsumerRole
|
|
||||||
}
|
|
||||||
|
|
||||||
export type EnumConsumerRoleWithAggregatesFilter<$PrismaModel = never> = {
|
|
||||||
equals?: $Enums.ConsumerRole | Prisma.EnumConsumerRoleFieldRefInput<$PrismaModel>
|
|
||||||
in?: $Enums.ConsumerRole[]
|
|
||||||
notIn?: $Enums.ConsumerRole[]
|
|
||||||
not?: Prisma.NestedEnumConsumerRoleWithAggregatesFilter<$PrismaModel> | $Enums.ConsumerRole
|
|
||||||
_count?: Prisma.NestedIntFilter<$PrismaModel>
|
|
||||||
_min?: Prisma.NestedEnumConsumerRoleFilter<$PrismaModel>
|
|
||||||
_max?: Prisma.NestedEnumConsumerRoleFilter<$PrismaModel>
|
|
||||||
}
|
|
||||||
|
|
||||||
export type EnumConsumerTypeFilter<$PrismaModel = never> = {
|
|
||||||
equals?: $Enums.ConsumerType | Prisma.EnumConsumerTypeFieldRefInput<$PrismaModel>
|
|
||||||
in?: $Enums.ConsumerType[]
|
|
||||||
notIn?: $Enums.ConsumerType[]
|
|
||||||
not?: Prisma.NestedEnumConsumerTypeFilter<$PrismaModel> | $Enums.ConsumerType
|
|
||||||
}
|
|
||||||
|
|
||||||
export type EnumConsumerStatusFilter<$PrismaModel = never> = {
|
|
||||||
equals?: $Enums.ConsumerStatus | Prisma.EnumConsumerStatusFieldRefInput<$PrismaModel>
|
|
||||||
in?: $Enums.ConsumerStatus[]
|
|
||||||
notIn?: $Enums.ConsumerStatus[]
|
|
||||||
not?: Prisma.NestedEnumConsumerStatusFilter<$PrismaModel> | $Enums.ConsumerStatus
|
|
||||||
}
|
|
||||||
|
|
||||||
export type EnumConsumerTypeWithAggregatesFilter<$PrismaModel = never> = {
|
|
||||||
equals?: $Enums.ConsumerType | Prisma.EnumConsumerTypeFieldRefInput<$PrismaModel>
|
|
||||||
in?: $Enums.ConsumerType[]
|
|
||||||
notIn?: $Enums.ConsumerType[]
|
|
||||||
not?: Prisma.NestedEnumConsumerTypeWithAggregatesFilter<$PrismaModel> | $Enums.ConsumerType
|
|
||||||
_count?: Prisma.NestedIntFilter<$PrismaModel>
|
|
||||||
_min?: Prisma.NestedEnumConsumerTypeFilter<$PrismaModel>
|
|
||||||
_max?: Prisma.NestedEnumConsumerTypeFilter<$PrismaModel>
|
|
||||||
}
|
|
||||||
|
|
||||||
export type EnumConsumerStatusWithAggregatesFilter<$PrismaModel = never> = {
|
|
||||||
equals?: $Enums.ConsumerStatus | Prisma.EnumConsumerStatusFieldRefInput<$PrismaModel>
|
|
||||||
in?: $Enums.ConsumerStatus[]
|
|
||||||
notIn?: $Enums.ConsumerStatus[]
|
|
||||||
not?: Prisma.NestedEnumConsumerStatusWithAggregatesFilter<$PrismaModel> | $Enums.ConsumerStatus
|
|
||||||
_count?: Prisma.NestedIntFilter<$PrismaModel>
|
|
||||||
_min?: Prisma.NestedEnumConsumerStatusFilter<$PrismaModel>
|
|
||||||
_max?: Prisma.NestedEnumConsumerStatusFilter<$PrismaModel>
|
|
||||||
}
|
|
||||||
|
|
||||||
export type EnumPOSStatusFilter<$PrismaModel = never> = {
|
|
||||||
equals?: $Enums.POSStatus | Prisma.EnumPOSStatusFieldRefInput<$PrismaModel>
|
|
||||||
in?: $Enums.POSStatus[]
|
|
||||||
notIn?: $Enums.POSStatus[]
|
|
||||||
not?: Prisma.NestedEnumPOSStatusFilter<$PrismaModel> | $Enums.POSStatus
|
|
||||||
}
|
|
||||||
|
|
||||||
export type EnumPOSTypeFilter<$PrismaModel = never> = {
|
|
||||||
equals?: $Enums.POSType | Prisma.EnumPOSTypeFieldRefInput<$PrismaModel>
|
|
||||||
in?: $Enums.POSType[]
|
|
||||||
notIn?: $Enums.POSType[]
|
|
||||||
not?: Prisma.NestedEnumPOSTypeFilter<$PrismaModel> | $Enums.POSType
|
|
||||||
}
|
|
||||||
|
|
||||||
export type EnumPOSStatusWithAggregatesFilter<$PrismaModel = never> = {
|
|
||||||
equals?: $Enums.POSStatus | Prisma.EnumPOSStatusFieldRefInput<$PrismaModel>
|
|
||||||
in?: $Enums.POSStatus[]
|
|
||||||
notIn?: $Enums.POSStatus[]
|
|
||||||
not?: Prisma.NestedEnumPOSStatusWithAggregatesFilter<$PrismaModel> | $Enums.POSStatus
|
|
||||||
_count?: Prisma.NestedIntFilter<$PrismaModel>
|
|
||||||
_min?: Prisma.NestedEnumPOSStatusFilter<$PrismaModel>
|
|
||||||
_max?: Prisma.NestedEnumPOSStatusFilter<$PrismaModel>
|
|
||||||
}
|
|
||||||
|
|
||||||
export type EnumPOSTypeWithAggregatesFilter<$PrismaModel = never> = {
|
|
||||||
equals?: $Enums.POSType | Prisma.EnumPOSTypeFieldRefInput<$PrismaModel>
|
|
||||||
in?: $Enums.POSType[]
|
|
||||||
notIn?: $Enums.POSType[]
|
|
||||||
not?: Prisma.NestedEnumPOSTypeWithAggregatesFilter<$PrismaModel> | $Enums.POSType
|
|
||||||
_count?: Prisma.NestedIntFilter<$PrismaModel>
|
|
||||||
_min?: Prisma.NestedEnumPOSTypeFilter<$PrismaModel>
|
|
||||||
_max?: Prisma.NestedEnumPOSTypeFilter<$PrismaModel>
|
|
||||||
}
|
|
||||||
|
|
||||||
export type IntFilter<$PrismaModel = never> = {
|
export type IntFilter<$PrismaModel = never> = {
|
||||||
equals?: number | Prisma.IntFieldRefInput<$PrismaModel>
|
equals?: number | Prisma.IntFieldRefInput<$PrismaModel>
|
||||||
in?: number[]
|
in?: number[]
|
||||||
@@ -473,6 +388,91 @@ export type JsonNullableWithAggregatesFilterBase<$PrismaModel = never> = {
|
|||||||
_max?: Prisma.NestedJsonNullableFilter<$PrismaModel>
|
_max?: Prisma.NestedJsonNullableFilter<$PrismaModel>
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export type EnumConsumerRoleFilter<$PrismaModel = never> = {
|
||||||
|
equals?: $Enums.ConsumerRole | Prisma.EnumConsumerRoleFieldRefInput<$PrismaModel>
|
||||||
|
in?: $Enums.ConsumerRole[]
|
||||||
|
notIn?: $Enums.ConsumerRole[]
|
||||||
|
not?: Prisma.NestedEnumConsumerRoleFilter<$PrismaModel> | $Enums.ConsumerRole
|
||||||
|
}
|
||||||
|
|
||||||
|
export type EnumConsumerRoleWithAggregatesFilter<$PrismaModel = never> = {
|
||||||
|
equals?: $Enums.ConsumerRole | Prisma.EnumConsumerRoleFieldRefInput<$PrismaModel>
|
||||||
|
in?: $Enums.ConsumerRole[]
|
||||||
|
notIn?: $Enums.ConsumerRole[]
|
||||||
|
not?: Prisma.NestedEnumConsumerRoleWithAggregatesFilter<$PrismaModel> | $Enums.ConsumerRole
|
||||||
|
_count?: Prisma.NestedIntFilter<$PrismaModel>
|
||||||
|
_min?: Prisma.NestedEnumConsumerRoleFilter<$PrismaModel>
|
||||||
|
_max?: Prisma.NestedEnumConsumerRoleFilter<$PrismaModel>
|
||||||
|
}
|
||||||
|
|
||||||
|
export type EnumConsumerTypeFilter<$PrismaModel = never> = {
|
||||||
|
equals?: $Enums.ConsumerType | Prisma.EnumConsumerTypeFieldRefInput<$PrismaModel>
|
||||||
|
in?: $Enums.ConsumerType[]
|
||||||
|
notIn?: $Enums.ConsumerType[]
|
||||||
|
not?: Prisma.NestedEnumConsumerTypeFilter<$PrismaModel> | $Enums.ConsumerType
|
||||||
|
}
|
||||||
|
|
||||||
|
export type EnumConsumerStatusFilter<$PrismaModel = never> = {
|
||||||
|
equals?: $Enums.ConsumerStatus | Prisma.EnumConsumerStatusFieldRefInput<$PrismaModel>
|
||||||
|
in?: $Enums.ConsumerStatus[]
|
||||||
|
notIn?: $Enums.ConsumerStatus[]
|
||||||
|
not?: Prisma.NestedEnumConsumerStatusFilter<$PrismaModel> | $Enums.ConsumerStatus
|
||||||
|
}
|
||||||
|
|
||||||
|
export type EnumConsumerTypeWithAggregatesFilter<$PrismaModel = never> = {
|
||||||
|
equals?: $Enums.ConsumerType | Prisma.EnumConsumerTypeFieldRefInput<$PrismaModel>
|
||||||
|
in?: $Enums.ConsumerType[]
|
||||||
|
notIn?: $Enums.ConsumerType[]
|
||||||
|
not?: Prisma.NestedEnumConsumerTypeWithAggregatesFilter<$PrismaModel> | $Enums.ConsumerType
|
||||||
|
_count?: Prisma.NestedIntFilter<$PrismaModel>
|
||||||
|
_min?: Prisma.NestedEnumConsumerTypeFilter<$PrismaModel>
|
||||||
|
_max?: Prisma.NestedEnumConsumerTypeFilter<$PrismaModel>
|
||||||
|
}
|
||||||
|
|
||||||
|
export type EnumConsumerStatusWithAggregatesFilter<$PrismaModel = never> = {
|
||||||
|
equals?: $Enums.ConsumerStatus | Prisma.EnumConsumerStatusFieldRefInput<$PrismaModel>
|
||||||
|
in?: $Enums.ConsumerStatus[]
|
||||||
|
notIn?: $Enums.ConsumerStatus[]
|
||||||
|
not?: Prisma.NestedEnumConsumerStatusWithAggregatesFilter<$PrismaModel> | $Enums.ConsumerStatus
|
||||||
|
_count?: Prisma.NestedIntFilter<$PrismaModel>
|
||||||
|
_min?: Prisma.NestedEnumConsumerStatusFilter<$PrismaModel>
|
||||||
|
_max?: Prisma.NestedEnumConsumerStatusFilter<$PrismaModel>
|
||||||
|
}
|
||||||
|
|
||||||
|
export type EnumPOSStatusFilter<$PrismaModel = never> = {
|
||||||
|
equals?: $Enums.POSStatus | Prisma.EnumPOSStatusFieldRefInput<$PrismaModel>
|
||||||
|
in?: $Enums.POSStatus[]
|
||||||
|
notIn?: $Enums.POSStatus[]
|
||||||
|
not?: Prisma.NestedEnumPOSStatusFilter<$PrismaModel> | $Enums.POSStatus
|
||||||
|
}
|
||||||
|
|
||||||
|
export type EnumPOSTypeFilter<$PrismaModel = never> = {
|
||||||
|
equals?: $Enums.POSType | Prisma.EnumPOSTypeFieldRefInput<$PrismaModel>
|
||||||
|
in?: $Enums.POSType[]
|
||||||
|
notIn?: $Enums.POSType[]
|
||||||
|
not?: Prisma.NestedEnumPOSTypeFilter<$PrismaModel> | $Enums.POSType
|
||||||
|
}
|
||||||
|
|
||||||
|
export type EnumPOSStatusWithAggregatesFilter<$PrismaModel = never> = {
|
||||||
|
equals?: $Enums.POSStatus | Prisma.EnumPOSStatusFieldRefInput<$PrismaModel>
|
||||||
|
in?: $Enums.POSStatus[]
|
||||||
|
notIn?: $Enums.POSStatus[]
|
||||||
|
not?: Prisma.NestedEnumPOSStatusWithAggregatesFilter<$PrismaModel> | $Enums.POSStatus
|
||||||
|
_count?: Prisma.NestedIntFilter<$PrismaModel>
|
||||||
|
_min?: Prisma.NestedEnumPOSStatusFilter<$PrismaModel>
|
||||||
|
_max?: Prisma.NestedEnumPOSStatusFilter<$PrismaModel>
|
||||||
|
}
|
||||||
|
|
||||||
|
export type EnumPOSTypeWithAggregatesFilter<$PrismaModel = never> = {
|
||||||
|
equals?: $Enums.POSType | Prisma.EnumPOSTypeFieldRefInput<$PrismaModel>
|
||||||
|
in?: $Enums.POSType[]
|
||||||
|
notIn?: $Enums.POSType[]
|
||||||
|
not?: Prisma.NestedEnumPOSTypeWithAggregatesFilter<$PrismaModel> | $Enums.POSType
|
||||||
|
_count?: Prisma.NestedIntFilter<$PrismaModel>
|
||||||
|
_min?: Prisma.NestedEnumPOSTypeFilter<$PrismaModel>
|
||||||
|
_max?: Prisma.NestedEnumPOSTypeFilter<$PrismaModel>
|
||||||
|
}
|
||||||
|
|
||||||
export type BoolNullableFilter<$PrismaModel = never> = {
|
export type BoolNullableFilter<$PrismaModel = never> = {
|
||||||
equals?: boolean | Prisma.BooleanFieldRefInput<$PrismaModel> | null
|
equals?: boolean | Prisma.BooleanFieldRefInput<$PrismaModel> | null
|
||||||
not?: Prisma.NestedBoolNullableFilter<$PrismaModel> | boolean | null
|
not?: Prisma.NestedBoolNullableFilter<$PrismaModel> | boolean | null
|
||||||
@@ -780,91 +780,6 @@ export type NestedEnumAccountTypeWithAggregatesFilter<$PrismaModel = never> = {
|
|||||||
_max?: Prisma.NestedEnumAccountTypeFilter<$PrismaModel>
|
_max?: Prisma.NestedEnumAccountTypeFilter<$PrismaModel>
|
||||||
}
|
}
|
||||||
|
|
||||||
export type NestedEnumConsumerRoleFilter<$PrismaModel = never> = {
|
|
||||||
equals?: $Enums.ConsumerRole | Prisma.EnumConsumerRoleFieldRefInput<$PrismaModel>
|
|
||||||
in?: $Enums.ConsumerRole[]
|
|
||||||
notIn?: $Enums.ConsumerRole[]
|
|
||||||
not?: Prisma.NestedEnumConsumerRoleFilter<$PrismaModel> | $Enums.ConsumerRole
|
|
||||||
}
|
|
||||||
|
|
||||||
export type NestedEnumConsumerRoleWithAggregatesFilter<$PrismaModel = never> = {
|
|
||||||
equals?: $Enums.ConsumerRole | Prisma.EnumConsumerRoleFieldRefInput<$PrismaModel>
|
|
||||||
in?: $Enums.ConsumerRole[]
|
|
||||||
notIn?: $Enums.ConsumerRole[]
|
|
||||||
not?: Prisma.NestedEnumConsumerRoleWithAggregatesFilter<$PrismaModel> | $Enums.ConsumerRole
|
|
||||||
_count?: Prisma.NestedIntFilter<$PrismaModel>
|
|
||||||
_min?: Prisma.NestedEnumConsumerRoleFilter<$PrismaModel>
|
|
||||||
_max?: Prisma.NestedEnumConsumerRoleFilter<$PrismaModel>
|
|
||||||
}
|
|
||||||
|
|
||||||
export type NestedEnumConsumerTypeFilter<$PrismaModel = never> = {
|
|
||||||
equals?: $Enums.ConsumerType | Prisma.EnumConsumerTypeFieldRefInput<$PrismaModel>
|
|
||||||
in?: $Enums.ConsumerType[]
|
|
||||||
notIn?: $Enums.ConsumerType[]
|
|
||||||
not?: Prisma.NestedEnumConsumerTypeFilter<$PrismaModel> | $Enums.ConsumerType
|
|
||||||
}
|
|
||||||
|
|
||||||
export type NestedEnumConsumerStatusFilter<$PrismaModel = never> = {
|
|
||||||
equals?: $Enums.ConsumerStatus | Prisma.EnumConsumerStatusFieldRefInput<$PrismaModel>
|
|
||||||
in?: $Enums.ConsumerStatus[]
|
|
||||||
notIn?: $Enums.ConsumerStatus[]
|
|
||||||
not?: Prisma.NestedEnumConsumerStatusFilter<$PrismaModel> | $Enums.ConsumerStatus
|
|
||||||
}
|
|
||||||
|
|
||||||
export type NestedEnumConsumerTypeWithAggregatesFilter<$PrismaModel = never> = {
|
|
||||||
equals?: $Enums.ConsumerType | Prisma.EnumConsumerTypeFieldRefInput<$PrismaModel>
|
|
||||||
in?: $Enums.ConsumerType[]
|
|
||||||
notIn?: $Enums.ConsumerType[]
|
|
||||||
not?: Prisma.NestedEnumConsumerTypeWithAggregatesFilter<$PrismaModel> | $Enums.ConsumerType
|
|
||||||
_count?: Prisma.NestedIntFilter<$PrismaModel>
|
|
||||||
_min?: Prisma.NestedEnumConsumerTypeFilter<$PrismaModel>
|
|
||||||
_max?: Prisma.NestedEnumConsumerTypeFilter<$PrismaModel>
|
|
||||||
}
|
|
||||||
|
|
||||||
export type NestedEnumConsumerStatusWithAggregatesFilter<$PrismaModel = never> = {
|
|
||||||
equals?: $Enums.ConsumerStatus | Prisma.EnumConsumerStatusFieldRefInput<$PrismaModel>
|
|
||||||
in?: $Enums.ConsumerStatus[]
|
|
||||||
notIn?: $Enums.ConsumerStatus[]
|
|
||||||
not?: Prisma.NestedEnumConsumerStatusWithAggregatesFilter<$PrismaModel> | $Enums.ConsumerStatus
|
|
||||||
_count?: Prisma.NestedIntFilter<$PrismaModel>
|
|
||||||
_min?: Prisma.NestedEnumConsumerStatusFilter<$PrismaModel>
|
|
||||||
_max?: Prisma.NestedEnumConsumerStatusFilter<$PrismaModel>
|
|
||||||
}
|
|
||||||
|
|
||||||
export type NestedEnumPOSStatusFilter<$PrismaModel = never> = {
|
|
||||||
equals?: $Enums.POSStatus | Prisma.EnumPOSStatusFieldRefInput<$PrismaModel>
|
|
||||||
in?: $Enums.POSStatus[]
|
|
||||||
notIn?: $Enums.POSStatus[]
|
|
||||||
not?: Prisma.NestedEnumPOSStatusFilter<$PrismaModel> | $Enums.POSStatus
|
|
||||||
}
|
|
||||||
|
|
||||||
export type NestedEnumPOSTypeFilter<$PrismaModel = never> = {
|
|
||||||
equals?: $Enums.POSType | Prisma.EnumPOSTypeFieldRefInput<$PrismaModel>
|
|
||||||
in?: $Enums.POSType[]
|
|
||||||
notIn?: $Enums.POSType[]
|
|
||||||
not?: Prisma.NestedEnumPOSTypeFilter<$PrismaModel> | $Enums.POSType
|
|
||||||
}
|
|
||||||
|
|
||||||
export type NestedEnumPOSStatusWithAggregatesFilter<$PrismaModel = never> = {
|
|
||||||
equals?: $Enums.POSStatus | Prisma.EnumPOSStatusFieldRefInput<$PrismaModel>
|
|
||||||
in?: $Enums.POSStatus[]
|
|
||||||
notIn?: $Enums.POSStatus[]
|
|
||||||
not?: Prisma.NestedEnumPOSStatusWithAggregatesFilter<$PrismaModel> | $Enums.POSStatus
|
|
||||||
_count?: Prisma.NestedIntFilter<$PrismaModel>
|
|
||||||
_min?: Prisma.NestedEnumPOSStatusFilter<$PrismaModel>
|
|
||||||
_max?: Prisma.NestedEnumPOSStatusFilter<$PrismaModel>
|
|
||||||
}
|
|
||||||
|
|
||||||
export type NestedEnumPOSTypeWithAggregatesFilter<$PrismaModel = never> = {
|
|
||||||
equals?: $Enums.POSType | Prisma.EnumPOSTypeFieldRefInput<$PrismaModel>
|
|
||||||
in?: $Enums.POSType[]
|
|
||||||
notIn?: $Enums.POSType[]
|
|
||||||
not?: Prisma.NestedEnumPOSTypeWithAggregatesFilter<$PrismaModel> | $Enums.POSType
|
|
||||||
_count?: Prisma.NestedIntFilter<$PrismaModel>
|
|
||||||
_min?: Prisma.NestedEnumPOSTypeFilter<$PrismaModel>
|
|
||||||
_max?: Prisma.NestedEnumPOSTypeFilter<$PrismaModel>
|
|
||||||
}
|
|
||||||
|
|
||||||
export type NestedIntWithAggregatesFilter<$PrismaModel = never> = {
|
export type NestedIntWithAggregatesFilter<$PrismaModel = never> = {
|
||||||
equals?: number | Prisma.IntFieldRefInput<$PrismaModel>
|
equals?: number | Prisma.IntFieldRefInput<$PrismaModel>
|
||||||
in?: number[]
|
in?: number[]
|
||||||
@@ -1082,6 +997,91 @@ export type NestedJsonNullableFilterBase<$PrismaModel = never> = {
|
|||||||
not?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> | Prisma.JsonNullValueFilter
|
not?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> | Prisma.JsonNullValueFilter
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export type NestedEnumConsumerRoleFilter<$PrismaModel = never> = {
|
||||||
|
equals?: $Enums.ConsumerRole | Prisma.EnumConsumerRoleFieldRefInput<$PrismaModel>
|
||||||
|
in?: $Enums.ConsumerRole[]
|
||||||
|
notIn?: $Enums.ConsumerRole[]
|
||||||
|
not?: Prisma.NestedEnumConsumerRoleFilter<$PrismaModel> | $Enums.ConsumerRole
|
||||||
|
}
|
||||||
|
|
||||||
|
export type NestedEnumConsumerRoleWithAggregatesFilter<$PrismaModel = never> = {
|
||||||
|
equals?: $Enums.ConsumerRole | Prisma.EnumConsumerRoleFieldRefInput<$PrismaModel>
|
||||||
|
in?: $Enums.ConsumerRole[]
|
||||||
|
notIn?: $Enums.ConsumerRole[]
|
||||||
|
not?: Prisma.NestedEnumConsumerRoleWithAggregatesFilter<$PrismaModel> | $Enums.ConsumerRole
|
||||||
|
_count?: Prisma.NestedIntFilter<$PrismaModel>
|
||||||
|
_min?: Prisma.NestedEnumConsumerRoleFilter<$PrismaModel>
|
||||||
|
_max?: Prisma.NestedEnumConsumerRoleFilter<$PrismaModel>
|
||||||
|
}
|
||||||
|
|
||||||
|
export type NestedEnumConsumerTypeFilter<$PrismaModel = never> = {
|
||||||
|
equals?: $Enums.ConsumerType | Prisma.EnumConsumerTypeFieldRefInput<$PrismaModel>
|
||||||
|
in?: $Enums.ConsumerType[]
|
||||||
|
notIn?: $Enums.ConsumerType[]
|
||||||
|
not?: Prisma.NestedEnumConsumerTypeFilter<$PrismaModel> | $Enums.ConsumerType
|
||||||
|
}
|
||||||
|
|
||||||
|
export type NestedEnumConsumerStatusFilter<$PrismaModel = never> = {
|
||||||
|
equals?: $Enums.ConsumerStatus | Prisma.EnumConsumerStatusFieldRefInput<$PrismaModel>
|
||||||
|
in?: $Enums.ConsumerStatus[]
|
||||||
|
notIn?: $Enums.ConsumerStatus[]
|
||||||
|
not?: Prisma.NestedEnumConsumerStatusFilter<$PrismaModel> | $Enums.ConsumerStatus
|
||||||
|
}
|
||||||
|
|
||||||
|
export type NestedEnumConsumerTypeWithAggregatesFilter<$PrismaModel = never> = {
|
||||||
|
equals?: $Enums.ConsumerType | Prisma.EnumConsumerTypeFieldRefInput<$PrismaModel>
|
||||||
|
in?: $Enums.ConsumerType[]
|
||||||
|
notIn?: $Enums.ConsumerType[]
|
||||||
|
not?: Prisma.NestedEnumConsumerTypeWithAggregatesFilter<$PrismaModel> | $Enums.ConsumerType
|
||||||
|
_count?: Prisma.NestedIntFilter<$PrismaModel>
|
||||||
|
_min?: Prisma.NestedEnumConsumerTypeFilter<$PrismaModel>
|
||||||
|
_max?: Prisma.NestedEnumConsumerTypeFilter<$PrismaModel>
|
||||||
|
}
|
||||||
|
|
||||||
|
export type NestedEnumConsumerStatusWithAggregatesFilter<$PrismaModel = never> = {
|
||||||
|
equals?: $Enums.ConsumerStatus | Prisma.EnumConsumerStatusFieldRefInput<$PrismaModel>
|
||||||
|
in?: $Enums.ConsumerStatus[]
|
||||||
|
notIn?: $Enums.ConsumerStatus[]
|
||||||
|
not?: Prisma.NestedEnumConsumerStatusWithAggregatesFilter<$PrismaModel> | $Enums.ConsumerStatus
|
||||||
|
_count?: Prisma.NestedIntFilter<$PrismaModel>
|
||||||
|
_min?: Prisma.NestedEnumConsumerStatusFilter<$PrismaModel>
|
||||||
|
_max?: Prisma.NestedEnumConsumerStatusFilter<$PrismaModel>
|
||||||
|
}
|
||||||
|
|
||||||
|
export type NestedEnumPOSStatusFilter<$PrismaModel = never> = {
|
||||||
|
equals?: $Enums.POSStatus | Prisma.EnumPOSStatusFieldRefInput<$PrismaModel>
|
||||||
|
in?: $Enums.POSStatus[]
|
||||||
|
notIn?: $Enums.POSStatus[]
|
||||||
|
not?: Prisma.NestedEnumPOSStatusFilter<$PrismaModel> | $Enums.POSStatus
|
||||||
|
}
|
||||||
|
|
||||||
|
export type NestedEnumPOSTypeFilter<$PrismaModel = never> = {
|
||||||
|
equals?: $Enums.POSType | Prisma.EnumPOSTypeFieldRefInput<$PrismaModel>
|
||||||
|
in?: $Enums.POSType[]
|
||||||
|
notIn?: $Enums.POSType[]
|
||||||
|
not?: Prisma.NestedEnumPOSTypeFilter<$PrismaModel> | $Enums.POSType
|
||||||
|
}
|
||||||
|
|
||||||
|
export type NestedEnumPOSStatusWithAggregatesFilter<$PrismaModel = never> = {
|
||||||
|
equals?: $Enums.POSStatus | Prisma.EnumPOSStatusFieldRefInput<$PrismaModel>
|
||||||
|
in?: $Enums.POSStatus[]
|
||||||
|
notIn?: $Enums.POSStatus[]
|
||||||
|
not?: Prisma.NestedEnumPOSStatusWithAggregatesFilter<$PrismaModel> | $Enums.POSStatus
|
||||||
|
_count?: Prisma.NestedIntFilter<$PrismaModel>
|
||||||
|
_min?: Prisma.NestedEnumPOSStatusFilter<$PrismaModel>
|
||||||
|
_max?: Prisma.NestedEnumPOSStatusFilter<$PrismaModel>
|
||||||
|
}
|
||||||
|
|
||||||
|
export type NestedEnumPOSTypeWithAggregatesFilter<$PrismaModel = never> = {
|
||||||
|
equals?: $Enums.POSType | Prisma.EnumPOSTypeFieldRefInput<$PrismaModel>
|
||||||
|
in?: $Enums.POSType[]
|
||||||
|
notIn?: $Enums.POSType[]
|
||||||
|
not?: Prisma.NestedEnumPOSTypeWithAggregatesFilter<$PrismaModel> | $Enums.POSType
|
||||||
|
_count?: Prisma.NestedIntFilter<$PrismaModel>
|
||||||
|
_min?: Prisma.NestedEnumPOSTypeFilter<$PrismaModel>
|
||||||
|
_max?: Prisma.NestedEnumPOSTypeFilter<$PrismaModel>
|
||||||
|
}
|
||||||
|
|
||||||
export type NestedBoolNullableFilter<$PrismaModel = never> = {
|
export type NestedBoolNullableFilter<$PrismaModel = never> = {
|
||||||
equals?: boolean | Prisma.BooleanFieldRefInput<$PrismaModel> | null
|
equals?: boolean | Prisma.BooleanFieldRefInput<$PrismaModel> | null
|
||||||
not?: Prisma.NestedBoolNullableFilter<$PrismaModel> | boolean | null
|
not?: Prisma.NestedBoolNullableFilter<$PrismaModel> | boolean | null
|
||||||
|
|||||||
File diff suppressed because one or more lines are too long
File diff suppressed because it is too large
Load Diff
@@ -54,13 +54,6 @@ export const ModelName = {
|
|||||||
AdminAccount: 'AdminAccount',
|
AdminAccount: 'AdminAccount',
|
||||||
Admin: 'Admin',
|
Admin: 'Admin',
|
||||||
Account: 'Account',
|
Account: 'Account',
|
||||||
ConsumerAccount: 'ConsumerAccount',
|
|
||||||
Consumer: 'Consumer',
|
|
||||||
ConsumerIndividual: 'ConsumerIndividual',
|
|
||||||
ConsumerLegal: 'ConsumerLegal',
|
|
||||||
BusinessActivity: 'BusinessActivity',
|
|
||||||
Complex: 'Complex',
|
|
||||||
Pos: 'Pos',
|
|
||||||
DeviceBrand: 'DeviceBrand',
|
DeviceBrand: 'DeviceBrand',
|
||||||
Device: 'Device',
|
Device: 'Device',
|
||||||
LicenseChargeTransaction: 'LicenseChargeTransaction',
|
LicenseChargeTransaction: 'LicenseChargeTransaction',
|
||||||
@@ -81,6 +74,13 @@ export const ModelName = {
|
|||||||
Provider: 'Provider',
|
Provider: 'Provider',
|
||||||
ConsumerDevices: 'ConsumerDevices',
|
ConsumerDevices: 'ConsumerDevices',
|
||||||
ApplicationReleasedInfo: 'ApplicationReleasedInfo',
|
ApplicationReleasedInfo: 'ApplicationReleasedInfo',
|
||||||
|
ConsumerAccount: 'ConsumerAccount',
|
||||||
|
Consumer: 'Consumer',
|
||||||
|
ConsumerIndividual: 'ConsumerIndividual',
|
||||||
|
ConsumerLegal: 'ConsumerLegal',
|
||||||
|
BusinessActivity: 'BusinessActivity',
|
||||||
|
Complex: 'Complex',
|
||||||
|
Pos: 'Pos',
|
||||||
TriggerLog: 'TriggerLog',
|
TriggerLog: 'TriggerLog',
|
||||||
Customer: 'Customer',
|
Customer: 'Customer',
|
||||||
CustomerIndividual: 'CustomerIndividual',
|
CustomerIndividual: 'CustomerIndividual',
|
||||||
@@ -90,6 +90,8 @@ export const ModelName = {
|
|||||||
Guild: 'Guild',
|
Guild: 'Guild',
|
||||||
SalesInvoice: 'SalesInvoice',
|
SalesInvoice: 'SalesInvoice',
|
||||||
SalesInvoiceItem: 'SalesInvoiceItem',
|
SalesInvoiceItem: 'SalesInvoiceItem',
|
||||||
|
SaleInvoiceFiscals: 'SaleInvoiceFiscals',
|
||||||
|
SaleInvoiceFiscalAttempts: 'SaleInvoiceFiscalAttempts',
|
||||||
SalesInvoicePayment: 'SalesInvoicePayment',
|
SalesInvoicePayment: 'SalesInvoicePayment',
|
||||||
Service: 'Service',
|
Service: 'Service',
|
||||||
ServiceCategory: 'ServiceCategory'
|
ServiceCategory: 'ServiceCategory'
|
||||||
@@ -146,99 +148,6 @@ export const AccountScalarFieldEnum = {
|
|||||||
export type AccountScalarFieldEnum = (typeof AccountScalarFieldEnum)[keyof typeof AccountScalarFieldEnum]
|
export type AccountScalarFieldEnum = (typeof AccountScalarFieldEnum)[keyof typeof AccountScalarFieldEnum]
|
||||||
|
|
||||||
|
|
||||||
export const ConsumerAccountScalarFieldEnum = {
|
|
||||||
id: 'id',
|
|
||||||
role: 'role',
|
|
||||||
created_at: 'created_at',
|
|
||||||
updated_at: 'updated_at',
|
|
||||||
consumer_id: 'consumer_id',
|
|
||||||
account_id: 'account_id'
|
|
||||||
} as const
|
|
||||||
|
|
||||||
export type ConsumerAccountScalarFieldEnum = (typeof ConsumerAccountScalarFieldEnum)[keyof typeof ConsumerAccountScalarFieldEnum]
|
|
||||||
|
|
||||||
|
|
||||||
export const ConsumerScalarFieldEnum = {
|
|
||||||
id: 'id',
|
|
||||||
type: 'type',
|
|
||||||
status: 'status',
|
|
||||||
created_at: 'created_at',
|
|
||||||
updated_at: 'updated_at'
|
|
||||||
} as const
|
|
||||||
|
|
||||||
export type ConsumerScalarFieldEnum = (typeof ConsumerScalarFieldEnum)[keyof typeof ConsumerScalarFieldEnum]
|
|
||||||
|
|
||||||
|
|
||||||
export const ConsumerIndividualScalarFieldEnum = {
|
|
||||||
first_name: 'first_name',
|
|
||||||
last_name: 'last_name',
|
|
||||||
mobile_number: 'mobile_number',
|
|
||||||
national_code: 'national_code',
|
|
||||||
created_at: 'created_at',
|
|
||||||
updated_at: 'updated_at',
|
|
||||||
partner_id: 'partner_id',
|
|
||||||
consumer_id: 'consumer_id'
|
|
||||||
} as const
|
|
||||||
|
|
||||||
export type ConsumerIndividualScalarFieldEnum = (typeof ConsumerIndividualScalarFieldEnum)[keyof typeof ConsumerIndividualScalarFieldEnum]
|
|
||||||
|
|
||||||
|
|
||||||
export const ConsumerLegalScalarFieldEnum = {
|
|
||||||
name: 'name',
|
|
||||||
registration_code: 'registration_code',
|
|
||||||
created_at: 'created_at',
|
|
||||||
updated_at: 'updated_at',
|
|
||||||
partner_id: 'partner_id',
|
|
||||||
consumer_id: 'consumer_id'
|
|
||||||
} as const
|
|
||||||
|
|
||||||
export type ConsumerLegalScalarFieldEnum = (typeof ConsumerLegalScalarFieldEnum)[keyof typeof ConsumerLegalScalarFieldEnum]
|
|
||||||
|
|
||||||
|
|
||||||
export const BusinessActivityScalarFieldEnum = {
|
|
||||||
id: 'id',
|
|
||||||
economic_code: 'economic_code',
|
|
||||||
name: 'name',
|
|
||||||
created_at: 'created_at',
|
|
||||||
updated_at: 'updated_at',
|
|
||||||
guild_id: 'guild_id',
|
|
||||||
consumer_id: 'consumer_id'
|
|
||||||
} as const
|
|
||||||
|
|
||||||
export type BusinessActivityScalarFieldEnum = (typeof BusinessActivityScalarFieldEnum)[keyof typeof BusinessActivityScalarFieldEnum]
|
|
||||||
|
|
||||||
|
|
||||||
export const ComplexScalarFieldEnum = {
|
|
||||||
id: 'id',
|
|
||||||
name: 'name',
|
|
||||||
branch_code: 'branch_code',
|
|
||||||
address: 'address',
|
|
||||||
created_at: 'created_at',
|
|
||||||
updated_at: 'updated_at',
|
|
||||||
business_activity_id: 'business_activity_id'
|
|
||||||
} as const
|
|
||||||
|
|
||||||
export type ComplexScalarFieldEnum = (typeof ComplexScalarFieldEnum)[keyof typeof ComplexScalarFieldEnum]
|
|
||||||
|
|
||||||
|
|
||||||
export const PosScalarFieldEnum = {
|
|
||||||
id: 'id',
|
|
||||||
name: 'name',
|
|
||||||
model: 'model',
|
|
||||||
serial_number: 'serial_number',
|
|
||||||
status: 'status',
|
|
||||||
pos_type: 'pos_type',
|
|
||||||
created_at: 'created_at',
|
|
||||||
updated_at: 'updated_at',
|
|
||||||
complex_id: 'complex_id',
|
|
||||||
device_id: 'device_id',
|
|
||||||
provider_id: 'provider_id',
|
|
||||||
account_id: 'account_id'
|
|
||||||
} as const
|
|
||||||
|
|
||||||
export type PosScalarFieldEnum = (typeof PosScalarFieldEnum)[keyof typeof PosScalarFieldEnum]
|
|
||||||
|
|
||||||
|
|
||||||
export const DeviceBrandScalarFieldEnum = {
|
export const DeviceBrandScalarFieldEnum = {
|
||||||
id: 'id',
|
id: 'id',
|
||||||
name: 'name',
|
name: 'name',
|
||||||
@@ -484,6 +393,101 @@ export const ApplicationReleasedInfoScalarFieldEnum = {
|
|||||||
export type ApplicationReleasedInfoScalarFieldEnum = (typeof ApplicationReleasedInfoScalarFieldEnum)[keyof typeof ApplicationReleasedInfoScalarFieldEnum]
|
export type ApplicationReleasedInfoScalarFieldEnum = (typeof ApplicationReleasedInfoScalarFieldEnum)[keyof typeof ApplicationReleasedInfoScalarFieldEnum]
|
||||||
|
|
||||||
|
|
||||||
|
export const ConsumerAccountScalarFieldEnum = {
|
||||||
|
id: 'id',
|
||||||
|
role: 'role',
|
||||||
|
created_at: 'created_at',
|
||||||
|
updated_at: 'updated_at',
|
||||||
|
consumer_id: 'consumer_id',
|
||||||
|
account_id: 'account_id'
|
||||||
|
} as const
|
||||||
|
|
||||||
|
export type ConsumerAccountScalarFieldEnum = (typeof ConsumerAccountScalarFieldEnum)[keyof typeof ConsumerAccountScalarFieldEnum]
|
||||||
|
|
||||||
|
|
||||||
|
export const ConsumerScalarFieldEnum = {
|
||||||
|
id: 'id',
|
||||||
|
type: 'type',
|
||||||
|
status: 'status',
|
||||||
|
created_at: 'created_at',
|
||||||
|
updated_at: 'updated_at'
|
||||||
|
} as const
|
||||||
|
|
||||||
|
export type ConsumerScalarFieldEnum = (typeof ConsumerScalarFieldEnum)[keyof typeof ConsumerScalarFieldEnum]
|
||||||
|
|
||||||
|
|
||||||
|
export const ConsumerIndividualScalarFieldEnum = {
|
||||||
|
first_name: 'first_name',
|
||||||
|
last_name: 'last_name',
|
||||||
|
mobile_number: 'mobile_number',
|
||||||
|
national_code: 'national_code',
|
||||||
|
created_at: 'created_at',
|
||||||
|
updated_at: 'updated_at',
|
||||||
|
partner_id: 'partner_id',
|
||||||
|
consumer_id: 'consumer_id'
|
||||||
|
} as const
|
||||||
|
|
||||||
|
export type ConsumerIndividualScalarFieldEnum = (typeof ConsumerIndividualScalarFieldEnum)[keyof typeof ConsumerIndividualScalarFieldEnum]
|
||||||
|
|
||||||
|
|
||||||
|
export const ConsumerLegalScalarFieldEnum = {
|
||||||
|
name: 'name',
|
||||||
|
registration_code: 'registration_code',
|
||||||
|
created_at: 'created_at',
|
||||||
|
updated_at: 'updated_at',
|
||||||
|
partner_id: 'partner_id',
|
||||||
|
consumer_id: 'consumer_id'
|
||||||
|
} as const
|
||||||
|
|
||||||
|
export type ConsumerLegalScalarFieldEnum = (typeof ConsumerLegalScalarFieldEnum)[keyof typeof ConsumerLegalScalarFieldEnum]
|
||||||
|
|
||||||
|
|
||||||
|
export const BusinessActivityScalarFieldEnum = {
|
||||||
|
id: 'id',
|
||||||
|
economic_code: 'economic_code',
|
||||||
|
name: 'name',
|
||||||
|
fiscal_id: 'fiscal_id',
|
||||||
|
partner_token: 'partner_token',
|
||||||
|
created_at: 'created_at',
|
||||||
|
updated_at: 'updated_at',
|
||||||
|
guild_id: 'guild_id',
|
||||||
|
consumer_id: 'consumer_id'
|
||||||
|
} as const
|
||||||
|
|
||||||
|
export type BusinessActivityScalarFieldEnum = (typeof BusinessActivityScalarFieldEnum)[keyof typeof BusinessActivityScalarFieldEnum]
|
||||||
|
|
||||||
|
|
||||||
|
export const ComplexScalarFieldEnum = {
|
||||||
|
id: 'id',
|
||||||
|
name: 'name',
|
||||||
|
branch_code: 'branch_code',
|
||||||
|
address: 'address',
|
||||||
|
created_at: 'created_at',
|
||||||
|
updated_at: 'updated_at',
|
||||||
|
business_activity_id: 'business_activity_id'
|
||||||
|
} as const
|
||||||
|
|
||||||
|
export type ComplexScalarFieldEnum = (typeof ComplexScalarFieldEnum)[keyof typeof ComplexScalarFieldEnum]
|
||||||
|
|
||||||
|
|
||||||
|
export const PosScalarFieldEnum = {
|
||||||
|
id: 'id',
|
||||||
|
name: 'name',
|
||||||
|
model: 'model',
|
||||||
|
serial_number: 'serial_number',
|
||||||
|
status: 'status',
|
||||||
|
pos_type: 'pos_type',
|
||||||
|
created_at: 'created_at',
|
||||||
|
updated_at: 'updated_at',
|
||||||
|
complex_id: 'complex_id',
|
||||||
|
device_id: 'device_id',
|
||||||
|
provider_id: 'provider_id',
|
||||||
|
account_id: 'account_id'
|
||||||
|
} as const
|
||||||
|
|
||||||
|
export type PosScalarFieldEnum = (typeof PosScalarFieldEnum)[keyof typeof PosScalarFieldEnum]
|
||||||
|
|
||||||
|
|
||||||
export const TriggerLogScalarFieldEnum = {
|
export const TriggerLogScalarFieldEnum = {
|
||||||
id: 'id',
|
id: 'id',
|
||||||
message: 'message',
|
message: 'message',
|
||||||
@@ -585,13 +589,14 @@ export const SalesInvoiceScalarFieldEnum = {
|
|||||||
id: 'id',
|
id: 'id',
|
||||||
code: 'code',
|
code: 'code',
|
||||||
total_amount: 'total_amount',
|
total_amount: 'total_amount',
|
||||||
|
invoice_number: 'invoice_number',
|
||||||
|
invoice_date: 'invoice_date',
|
||||||
notes: 'notes',
|
notes: 'notes',
|
||||||
unknown_customer: 'unknown_customer',
|
unknown_customer: 'unknown_customer',
|
||||||
invoice_date: 'invoice_date',
|
|
||||||
created_at: 'created_at',
|
created_at: 'created_at',
|
||||||
updated_at: 'updated_at',
|
updated_at: 'updated_at',
|
||||||
customer_id: 'customer_id',
|
customer_id: 'customer_id',
|
||||||
account_id: 'account_id',
|
consumer_account_id: 'consumer_account_id',
|
||||||
pos_id: 'pos_id'
|
pos_id: 'pos_id'
|
||||||
} as const
|
} as const
|
||||||
|
|
||||||
@@ -607,22 +612,52 @@ export const SalesInvoiceItemScalarFieldEnum = {
|
|||||||
created_at: 'created_at',
|
created_at: 'created_at',
|
||||||
discount: 'discount',
|
discount: 'discount',
|
||||||
notes: 'notes',
|
notes: 'notes',
|
||||||
|
payload: 'payload',
|
||||||
|
good_snapshot: 'good_snapshot',
|
||||||
invoice_id: 'invoice_id',
|
invoice_id: 'invoice_id',
|
||||||
good_id: 'good_id',
|
good_id: 'good_id',
|
||||||
service_id: 'service_id',
|
service_id: 'service_id'
|
||||||
payload: 'payload'
|
|
||||||
} as const
|
} as const
|
||||||
|
|
||||||
export type SalesInvoiceItemScalarFieldEnum = (typeof SalesInvoiceItemScalarFieldEnum)[keyof typeof SalesInvoiceItemScalarFieldEnum]
|
export type SalesInvoiceItemScalarFieldEnum = (typeof SalesInvoiceItemScalarFieldEnum)[keyof typeof SalesInvoiceItemScalarFieldEnum]
|
||||||
|
|
||||||
|
|
||||||
|
export const SaleInvoiceFiscalsScalarFieldEnum = {
|
||||||
|
id: 'id',
|
||||||
|
retry_count: 'retry_count',
|
||||||
|
last_attempt_at: 'last_attempt_at',
|
||||||
|
created_at: 'created_at',
|
||||||
|
updated_at: 'updated_at',
|
||||||
|
invoice_id: 'invoice_id'
|
||||||
|
} as const
|
||||||
|
|
||||||
|
export type SaleInvoiceFiscalsScalarFieldEnum = (typeof SaleInvoiceFiscalsScalarFieldEnum)[keyof typeof SaleInvoiceFiscalsScalarFieldEnum]
|
||||||
|
|
||||||
|
|
||||||
|
export const SaleInvoiceFiscalAttemptsScalarFieldEnum = {
|
||||||
|
id: 'id',
|
||||||
|
attempt_no: 'attempt_no',
|
||||||
|
status: 'status',
|
||||||
|
tax_id: 'tax_id',
|
||||||
|
request_payload: 'request_payload',
|
||||||
|
response_payload: 'response_payload',
|
||||||
|
error_message: 'error_message',
|
||||||
|
sent_at: 'sent_at',
|
||||||
|
received_at: 'received_at',
|
||||||
|
created_at: 'created_at',
|
||||||
|
fiscal_id: 'fiscal_id'
|
||||||
|
} as const
|
||||||
|
|
||||||
|
export type SaleInvoiceFiscalAttemptsScalarFieldEnum = (typeof SaleInvoiceFiscalAttemptsScalarFieldEnum)[keyof typeof SaleInvoiceFiscalAttemptsScalarFieldEnum]
|
||||||
|
|
||||||
|
|
||||||
export const SalesInvoicePaymentScalarFieldEnum = {
|
export const SalesInvoicePaymentScalarFieldEnum = {
|
||||||
id: 'id',
|
id: 'id',
|
||||||
invoice_id: 'invoice_id',
|
|
||||||
amount: 'amount',
|
amount: 'amount',
|
||||||
payment_method: 'payment_method',
|
payment_method: 'payment_method',
|
||||||
paid_at: 'paid_at',
|
paid_at: 'paid_at',
|
||||||
created_at: 'created_at'
|
created_at: 'created_at',
|
||||||
|
invoice_id: 'invoice_id'
|
||||||
} as const
|
} as const
|
||||||
|
|
||||||
export type SalesInvoicePaymentScalarFieldEnum = (typeof SalesInvoicePaymentScalarFieldEnum)[keyof typeof SalesInvoicePaymentScalarFieldEnum]
|
export type SalesInvoicePaymentScalarFieldEnum = (typeof SalesInvoicePaymentScalarFieldEnum)[keyof typeof SalesInvoicePaymentScalarFieldEnum]
|
||||||
@@ -715,80 +750,6 @@ export const AccountOrderByRelevanceFieldEnum = {
|
|||||||
export type AccountOrderByRelevanceFieldEnum = (typeof AccountOrderByRelevanceFieldEnum)[keyof typeof AccountOrderByRelevanceFieldEnum]
|
export type AccountOrderByRelevanceFieldEnum = (typeof AccountOrderByRelevanceFieldEnum)[keyof typeof AccountOrderByRelevanceFieldEnum]
|
||||||
|
|
||||||
|
|
||||||
export const ConsumerAccountOrderByRelevanceFieldEnum = {
|
|
||||||
id: 'id',
|
|
||||||
consumer_id: 'consumer_id',
|
|
||||||
account_id: 'account_id'
|
|
||||||
} as const
|
|
||||||
|
|
||||||
export type ConsumerAccountOrderByRelevanceFieldEnum = (typeof ConsumerAccountOrderByRelevanceFieldEnum)[keyof typeof ConsumerAccountOrderByRelevanceFieldEnum]
|
|
||||||
|
|
||||||
|
|
||||||
export const ConsumerOrderByRelevanceFieldEnum = {
|
|
||||||
id: 'id'
|
|
||||||
} as const
|
|
||||||
|
|
||||||
export type ConsumerOrderByRelevanceFieldEnum = (typeof ConsumerOrderByRelevanceFieldEnum)[keyof typeof ConsumerOrderByRelevanceFieldEnum]
|
|
||||||
|
|
||||||
|
|
||||||
export const ConsumerIndividualOrderByRelevanceFieldEnum = {
|
|
||||||
first_name: 'first_name',
|
|
||||||
last_name: 'last_name',
|
|
||||||
mobile_number: 'mobile_number',
|
|
||||||
national_code: 'national_code',
|
|
||||||
partner_id: 'partner_id',
|
|
||||||
consumer_id: 'consumer_id'
|
|
||||||
} as const
|
|
||||||
|
|
||||||
export type ConsumerIndividualOrderByRelevanceFieldEnum = (typeof ConsumerIndividualOrderByRelevanceFieldEnum)[keyof typeof ConsumerIndividualOrderByRelevanceFieldEnum]
|
|
||||||
|
|
||||||
|
|
||||||
export const ConsumerLegalOrderByRelevanceFieldEnum = {
|
|
||||||
name: 'name',
|
|
||||||
registration_code: 'registration_code',
|
|
||||||
partner_id: 'partner_id',
|
|
||||||
consumer_id: 'consumer_id'
|
|
||||||
} as const
|
|
||||||
|
|
||||||
export type ConsumerLegalOrderByRelevanceFieldEnum = (typeof ConsumerLegalOrderByRelevanceFieldEnum)[keyof typeof ConsumerLegalOrderByRelevanceFieldEnum]
|
|
||||||
|
|
||||||
|
|
||||||
export const BusinessActivityOrderByRelevanceFieldEnum = {
|
|
||||||
id: 'id',
|
|
||||||
economic_code: 'economic_code',
|
|
||||||
name: 'name',
|
|
||||||
guild_id: 'guild_id',
|
|
||||||
consumer_id: 'consumer_id'
|
|
||||||
} as const
|
|
||||||
|
|
||||||
export type BusinessActivityOrderByRelevanceFieldEnum = (typeof BusinessActivityOrderByRelevanceFieldEnum)[keyof typeof BusinessActivityOrderByRelevanceFieldEnum]
|
|
||||||
|
|
||||||
|
|
||||||
export const ComplexOrderByRelevanceFieldEnum = {
|
|
||||||
id: 'id',
|
|
||||||
name: 'name',
|
|
||||||
branch_code: 'branch_code',
|
|
||||||
address: 'address',
|
|
||||||
business_activity_id: 'business_activity_id'
|
|
||||||
} as const
|
|
||||||
|
|
||||||
export type ComplexOrderByRelevanceFieldEnum = (typeof ComplexOrderByRelevanceFieldEnum)[keyof typeof ComplexOrderByRelevanceFieldEnum]
|
|
||||||
|
|
||||||
|
|
||||||
export const PosOrderByRelevanceFieldEnum = {
|
|
||||||
id: 'id',
|
|
||||||
name: 'name',
|
|
||||||
model: 'model',
|
|
||||||
serial_number: 'serial_number',
|
|
||||||
complex_id: 'complex_id',
|
|
||||||
device_id: 'device_id',
|
|
||||||
provider_id: 'provider_id',
|
|
||||||
account_id: 'account_id'
|
|
||||||
} as const
|
|
||||||
|
|
||||||
export type PosOrderByRelevanceFieldEnum = (typeof PosOrderByRelevanceFieldEnum)[keyof typeof PosOrderByRelevanceFieldEnum]
|
|
||||||
|
|
||||||
|
|
||||||
export const DeviceBrandOrderByRelevanceFieldEnum = {
|
export const DeviceBrandOrderByRelevanceFieldEnum = {
|
||||||
id: 'id',
|
id: 'id',
|
||||||
name: 'name'
|
name: 'name'
|
||||||
@@ -996,6 +957,82 @@ export const ApplicationReleasedInfoOrderByRelevanceFieldEnum = {
|
|||||||
export type ApplicationReleasedInfoOrderByRelevanceFieldEnum = (typeof ApplicationReleasedInfoOrderByRelevanceFieldEnum)[keyof typeof ApplicationReleasedInfoOrderByRelevanceFieldEnum]
|
export type ApplicationReleasedInfoOrderByRelevanceFieldEnum = (typeof ApplicationReleasedInfoOrderByRelevanceFieldEnum)[keyof typeof ApplicationReleasedInfoOrderByRelevanceFieldEnum]
|
||||||
|
|
||||||
|
|
||||||
|
export const ConsumerAccountOrderByRelevanceFieldEnum = {
|
||||||
|
id: 'id',
|
||||||
|
consumer_id: 'consumer_id',
|
||||||
|
account_id: 'account_id'
|
||||||
|
} as const
|
||||||
|
|
||||||
|
export type ConsumerAccountOrderByRelevanceFieldEnum = (typeof ConsumerAccountOrderByRelevanceFieldEnum)[keyof typeof ConsumerAccountOrderByRelevanceFieldEnum]
|
||||||
|
|
||||||
|
|
||||||
|
export const ConsumerOrderByRelevanceFieldEnum = {
|
||||||
|
id: 'id'
|
||||||
|
} as const
|
||||||
|
|
||||||
|
export type ConsumerOrderByRelevanceFieldEnum = (typeof ConsumerOrderByRelevanceFieldEnum)[keyof typeof ConsumerOrderByRelevanceFieldEnum]
|
||||||
|
|
||||||
|
|
||||||
|
export const ConsumerIndividualOrderByRelevanceFieldEnum = {
|
||||||
|
first_name: 'first_name',
|
||||||
|
last_name: 'last_name',
|
||||||
|
mobile_number: 'mobile_number',
|
||||||
|
national_code: 'national_code',
|
||||||
|
partner_id: 'partner_id',
|
||||||
|
consumer_id: 'consumer_id'
|
||||||
|
} as const
|
||||||
|
|
||||||
|
export type ConsumerIndividualOrderByRelevanceFieldEnum = (typeof ConsumerIndividualOrderByRelevanceFieldEnum)[keyof typeof ConsumerIndividualOrderByRelevanceFieldEnum]
|
||||||
|
|
||||||
|
|
||||||
|
export const ConsumerLegalOrderByRelevanceFieldEnum = {
|
||||||
|
name: 'name',
|
||||||
|
registration_code: 'registration_code',
|
||||||
|
partner_id: 'partner_id',
|
||||||
|
consumer_id: 'consumer_id'
|
||||||
|
} as const
|
||||||
|
|
||||||
|
export type ConsumerLegalOrderByRelevanceFieldEnum = (typeof ConsumerLegalOrderByRelevanceFieldEnum)[keyof typeof ConsumerLegalOrderByRelevanceFieldEnum]
|
||||||
|
|
||||||
|
|
||||||
|
export const BusinessActivityOrderByRelevanceFieldEnum = {
|
||||||
|
id: 'id',
|
||||||
|
economic_code: 'economic_code',
|
||||||
|
name: 'name',
|
||||||
|
fiscal_id: 'fiscal_id',
|
||||||
|
partner_token: 'partner_token',
|
||||||
|
guild_id: 'guild_id',
|
||||||
|
consumer_id: 'consumer_id'
|
||||||
|
} as const
|
||||||
|
|
||||||
|
export type BusinessActivityOrderByRelevanceFieldEnum = (typeof BusinessActivityOrderByRelevanceFieldEnum)[keyof typeof BusinessActivityOrderByRelevanceFieldEnum]
|
||||||
|
|
||||||
|
|
||||||
|
export const ComplexOrderByRelevanceFieldEnum = {
|
||||||
|
id: 'id',
|
||||||
|
name: 'name',
|
||||||
|
branch_code: 'branch_code',
|
||||||
|
address: 'address',
|
||||||
|
business_activity_id: 'business_activity_id'
|
||||||
|
} as const
|
||||||
|
|
||||||
|
export type ComplexOrderByRelevanceFieldEnum = (typeof ComplexOrderByRelevanceFieldEnum)[keyof typeof ComplexOrderByRelevanceFieldEnum]
|
||||||
|
|
||||||
|
|
||||||
|
export const PosOrderByRelevanceFieldEnum = {
|
||||||
|
id: 'id',
|
||||||
|
name: 'name',
|
||||||
|
model: 'model',
|
||||||
|
serial_number: 'serial_number',
|
||||||
|
complex_id: 'complex_id',
|
||||||
|
device_id: 'device_id',
|
||||||
|
provider_id: 'provider_id',
|
||||||
|
account_id: 'account_id'
|
||||||
|
} as const
|
||||||
|
|
||||||
|
export type PosOrderByRelevanceFieldEnum = (typeof PosOrderByRelevanceFieldEnum)[keyof typeof PosOrderByRelevanceFieldEnum]
|
||||||
|
|
||||||
|
|
||||||
export const TriggerLogOrderByRelevanceFieldEnum = {
|
export const TriggerLogOrderByRelevanceFieldEnum = {
|
||||||
message: 'message',
|
message: 'message',
|
||||||
name: 'name'
|
name: 'name'
|
||||||
@@ -1078,7 +1115,7 @@ export const SalesInvoiceOrderByRelevanceFieldEnum = {
|
|||||||
code: 'code',
|
code: 'code',
|
||||||
notes: 'notes',
|
notes: 'notes',
|
||||||
customer_id: 'customer_id',
|
customer_id: 'customer_id',
|
||||||
account_id: 'account_id',
|
consumer_account_id: 'consumer_account_id',
|
||||||
pos_id: 'pos_id'
|
pos_id: 'pos_id'
|
||||||
} as const
|
} as const
|
||||||
|
|
||||||
@@ -1096,6 +1133,25 @@ export const SalesInvoiceItemOrderByRelevanceFieldEnum = {
|
|||||||
export type SalesInvoiceItemOrderByRelevanceFieldEnum = (typeof SalesInvoiceItemOrderByRelevanceFieldEnum)[keyof typeof SalesInvoiceItemOrderByRelevanceFieldEnum]
|
export type SalesInvoiceItemOrderByRelevanceFieldEnum = (typeof SalesInvoiceItemOrderByRelevanceFieldEnum)[keyof typeof SalesInvoiceItemOrderByRelevanceFieldEnum]
|
||||||
|
|
||||||
|
|
||||||
|
export const SaleInvoiceFiscalsOrderByRelevanceFieldEnum = {
|
||||||
|
id: 'id',
|
||||||
|
invoice_id: 'invoice_id'
|
||||||
|
} as const
|
||||||
|
|
||||||
|
export type SaleInvoiceFiscalsOrderByRelevanceFieldEnum = (typeof SaleInvoiceFiscalsOrderByRelevanceFieldEnum)[keyof typeof SaleInvoiceFiscalsOrderByRelevanceFieldEnum]
|
||||||
|
|
||||||
|
|
||||||
|
export const SaleInvoiceFiscalAttemptsOrderByRelevanceFieldEnum = {
|
||||||
|
id: 'id',
|
||||||
|
status: 'status',
|
||||||
|
tax_id: 'tax_id',
|
||||||
|
error_message: 'error_message',
|
||||||
|
fiscal_id: 'fiscal_id'
|
||||||
|
} as const
|
||||||
|
|
||||||
|
export type SaleInvoiceFiscalAttemptsOrderByRelevanceFieldEnum = (typeof SaleInvoiceFiscalAttemptsOrderByRelevanceFieldEnum)[keyof typeof SaleInvoiceFiscalAttemptsOrderByRelevanceFieldEnum]
|
||||||
|
|
||||||
|
|
||||||
export const SalesInvoicePaymentOrderByRelevanceFieldEnum = {
|
export const SalesInvoicePaymentOrderByRelevanceFieldEnum = {
|
||||||
id: 'id',
|
id: 'id',
|
||||||
invoice_id: 'invoice_id'
|
invoice_id: 'invoice_id'
|
||||||
|
|||||||
@@ -11,13 +11,6 @@
|
|||||||
export type * from './models/AdminAccount.js'
|
export type * from './models/AdminAccount.js'
|
||||||
export type * from './models/Admin.js'
|
export type * from './models/Admin.js'
|
||||||
export type * from './models/Account.js'
|
export type * from './models/Account.js'
|
||||||
export type * from './models/ConsumerAccount.js'
|
|
||||||
export type * from './models/Consumer.js'
|
|
||||||
export type * from './models/ConsumerIndividual.js'
|
|
||||||
export type * from './models/ConsumerLegal.js'
|
|
||||||
export type * from './models/BusinessActivity.js'
|
|
||||||
export type * from './models/Complex.js'
|
|
||||||
export type * from './models/Pos.js'
|
|
||||||
export type * from './models/DeviceBrand.js'
|
export type * from './models/DeviceBrand.js'
|
||||||
export type * from './models/Device.js'
|
export type * from './models/Device.js'
|
||||||
export type * from './models/LicenseChargeTransaction.js'
|
export type * from './models/LicenseChargeTransaction.js'
|
||||||
@@ -38,6 +31,13 @@ export type * from './models/ProviderAccount.js'
|
|||||||
export type * from './models/Provider.js'
|
export type * from './models/Provider.js'
|
||||||
export type * from './models/ConsumerDevices.js'
|
export type * from './models/ConsumerDevices.js'
|
||||||
export type * from './models/ApplicationReleasedInfo.js'
|
export type * from './models/ApplicationReleasedInfo.js'
|
||||||
|
export type * from './models/ConsumerAccount.js'
|
||||||
|
export type * from './models/Consumer.js'
|
||||||
|
export type * from './models/ConsumerIndividual.js'
|
||||||
|
export type * from './models/ConsumerLegal.js'
|
||||||
|
export type * from './models/BusinessActivity.js'
|
||||||
|
export type * from './models/Complex.js'
|
||||||
|
export type * from './models/Pos.js'
|
||||||
export type * from './models/TriggerLog.js'
|
export type * from './models/TriggerLog.js'
|
||||||
export type * from './models/Customer.js'
|
export type * from './models/Customer.js'
|
||||||
export type * from './models/CustomerIndividual.js'
|
export type * from './models/CustomerIndividual.js'
|
||||||
@@ -47,6 +47,8 @@ export type * from './models/GoodCategory.js'
|
|||||||
export type * from './models/Guild.js'
|
export type * from './models/Guild.js'
|
||||||
export type * from './models/SalesInvoice.js'
|
export type * from './models/SalesInvoice.js'
|
||||||
export type * from './models/SalesInvoiceItem.js'
|
export type * from './models/SalesInvoiceItem.js'
|
||||||
|
export type * from './models/SaleInvoiceFiscals.js'
|
||||||
|
export type * from './models/SaleInvoiceFiscalAttempts.js'
|
||||||
export type * from './models/SalesInvoicePayment.js'
|
export type * from './models/SalesInvoicePayment.js'
|
||||||
export type * from './models/Service.js'
|
export type * from './models/Service.js'
|
||||||
export type * from './models/ServiceCategory.js'
|
export type * from './models/ServiceCategory.js'
|
||||||
|
|||||||
@@ -367,20 +367,6 @@ export type EnumAccountTypeFieldUpdateOperationsInput = {
|
|||||||
set?: $Enums.AccountType
|
set?: $Enums.AccountType
|
||||||
}
|
}
|
||||||
|
|
||||||
export type AccountCreateNestedOneWithoutConsumer_accountInput = {
|
|
||||||
create?: Prisma.XOR<Prisma.AccountCreateWithoutConsumer_accountInput, Prisma.AccountUncheckedCreateWithoutConsumer_accountInput>
|
|
||||||
connectOrCreate?: Prisma.AccountCreateOrConnectWithoutConsumer_accountInput
|
|
||||||
connect?: Prisma.AccountWhereUniqueInput
|
|
||||||
}
|
|
||||||
|
|
||||||
export type AccountUpdateOneRequiredWithoutConsumer_accountNestedInput = {
|
|
||||||
create?: Prisma.XOR<Prisma.AccountCreateWithoutConsumer_accountInput, Prisma.AccountUncheckedCreateWithoutConsumer_accountInput>
|
|
||||||
connectOrCreate?: Prisma.AccountCreateOrConnectWithoutConsumer_accountInput
|
|
||||||
upsert?: Prisma.AccountUpsertWithoutConsumer_accountInput
|
|
||||||
connect?: Prisma.AccountWhereUniqueInput
|
|
||||||
update?: Prisma.XOR<Prisma.XOR<Prisma.AccountUpdateToOneWithWhereWithoutConsumer_accountInput, Prisma.AccountUpdateWithoutConsumer_accountInput>, Prisma.AccountUncheckedUpdateWithoutConsumer_accountInput>
|
|
||||||
}
|
|
||||||
|
|
||||||
export type AccountCreateNestedOneWithoutPartner_accountInput = {
|
export type AccountCreateNestedOneWithoutPartner_accountInput = {
|
||||||
create?: Prisma.XOR<Prisma.AccountCreateWithoutPartner_accountInput, Prisma.AccountUncheckedCreateWithoutPartner_accountInput>
|
create?: Prisma.XOR<Prisma.AccountCreateWithoutPartner_accountInput, Prisma.AccountUncheckedCreateWithoutPartner_accountInput>
|
||||||
connectOrCreate?: Prisma.AccountCreateOrConnectWithoutPartner_accountInput
|
connectOrCreate?: Prisma.AccountCreateOrConnectWithoutPartner_accountInput
|
||||||
@@ -409,6 +395,20 @@ export type AccountUpdateOneRequiredWithoutProvider_accountNestedInput = {
|
|||||||
update?: Prisma.XOR<Prisma.XOR<Prisma.AccountUpdateToOneWithWhereWithoutProvider_accountInput, Prisma.AccountUpdateWithoutProvider_accountInput>, Prisma.AccountUncheckedUpdateWithoutProvider_accountInput>
|
update?: Prisma.XOR<Prisma.XOR<Prisma.AccountUpdateToOneWithWhereWithoutProvider_accountInput, Prisma.AccountUpdateWithoutProvider_accountInput>, Prisma.AccountUncheckedUpdateWithoutProvider_accountInput>
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export type AccountCreateNestedOneWithoutConsumer_accountInput = {
|
||||||
|
create?: Prisma.XOR<Prisma.AccountCreateWithoutConsumer_accountInput, Prisma.AccountUncheckedCreateWithoutConsumer_accountInput>
|
||||||
|
connectOrCreate?: Prisma.AccountCreateOrConnectWithoutConsumer_accountInput
|
||||||
|
connect?: Prisma.AccountWhereUniqueInput
|
||||||
|
}
|
||||||
|
|
||||||
|
export type AccountUpdateOneRequiredWithoutConsumer_accountNestedInput = {
|
||||||
|
create?: Prisma.XOR<Prisma.AccountCreateWithoutConsumer_accountInput, Prisma.AccountUncheckedCreateWithoutConsumer_accountInput>
|
||||||
|
connectOrCreate?: Prisma.AccountCreateOrConnectWithoutConsumer_accountInput
|
||||||
|
upsert?: Prisma.AccountUpsertWithoutConsumer_accountInput
|
||||||
|
connect?: Prisma.AccountWhereUniqueInput
|
||||||
|
update?: Prisma.XOR<Prisma.XOR<Prisma.AccountUpdateToOneWithWhereWithoutConsumer_accountInput, Prisma.AccountUpdateWithoutConsumer_accountInput>, Prisma.AccountUncheckedUpdateWithoutConsumer_accountInput>
|
||||||
|
}
|
||||||
|
|
||||||
export type AccountCreateWithoutAdmin_accountInput = {
|
export type AccountCreateWithoutAdmin_accountInput = {
|
||||||
id?: string
|
id?: string
|
||||||
username: string
|
username: string
|
||||||
@@ -469,66 +469,6 @@ export type AccountUncheckedUpdateWithoutAdmin_accountInput = {
|
|||||||
consumer_account?: Prisma.ConsumerAccountUncheckedUpdateOneWithoutAccountNestedInput
|
consumer_account?: Prisma.ConsumerAccountUncheckedUpdateOneWithoutAccountNestedInput
|
||||||
}
|
}
|
||||||
|
|
||||||
export type AccountCreateWithoutConsumer_accountInput = {
|
|
||||||
id?: string
|
|
||||||
username: string
|
|
||||||
password: string
|
|
||||||
status: $Enums.AccountStatus
|
|
||||||
type: $Enums.AccountType
|
|
||||||
admin_account?: Prisma.AdminAccountCreateNestedOneWithoutAccountInput
|
|
||||||
provider_account?: Prisma.ProviderAccountCreateNestedOneWithoutAccountInput
|
|
||||||
partner_account?: Prisma.PartnerAccountCreateNestedOneWithoutAccountInput
|
|
||||||
}
|
|
||||||
|
|
||||||
export type AccountUncheckedCreateWithoutConsumer_accountInput = {
|
|
||||||
id?: string
|
|
||||||
username: string
|
|
||||||
password: string
|
|
||||||
status: $Enums.AccountStatus
|
|
||||||
type: $Enums.AccountType
|
|
||||||
admin_account?: Prisma.AdminAccountUncheckedCreateNestedOneWithoutAccountInput
|
|
||||||
provider_account?: Prisma.ProviderAccountUncheckedCreateNestedOneWithoutAccountInput
|
|
||||||
partner_account?: Prisma.PartnerAccountUncheckedCreateNestedOneWithoutAccountInput
|
|
||||||
}
|
|
||||||
|
|
||||||
export type AccountCreateOrConnectWithoutConsumer_accountInput = {
|
|
||||||
where: Prisma.AccountWhereUniqueInput
|
|
||||||
create: Prisma.XOR<Prisma.AccountCreateWithoutConsumer_accountInput, Prisma.AccountUncheckedCreateWithoutConsumer_accountInput>
|
|
||||||
}
|
|
||||||
|
|
||||||
export type AccountUpsertWithoutConsumer_accountInput = {
|
|
||||||
update: Prisma.XOR<Prisma.AccountUpdateWithoutConsumer_accountInput, Prisma.AccountUncheckedUpdateWithoutConsumer_accountInput>
|
|
||||||
create: Prisma.XOR<Prisma.AccountCreateWithoutConsumer_accountInput, Prisma.AccountUncheckedCreateWithoutConsumer_accountInput>
|
|
||||||
where?: Prisma.AccountWhereInput
|
|
||||||
}
|
|
||||||
|
|
||||||
export type AccountUpdateToOneWithWhereWithoutConsumer_accountInput = {
|
|
||||||
where?: Prisma.AccountWhereInput
|
|
||||||
data: Prisma.XOR<Prisma.AccountUpdateWithoutConsumer_accountInput, Prisma.AccountUncheckedUpdateWithoutConsumer_accountInput>
|
|
||||||
}
|
|
||||||
|
|
||||||
export type AccountUpdateWithoutConsumer_accountInput = {
|
|
||||||
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
||||||
username?: Prisma.StringFieldUpdateOperationsInput | string
|
|
||||||
password?: Prisma.StringFieldUpdateOperationsInput | string
|
|
||||||
status?: Prisma.EnumAccountStatusFieldUpdateOperationsInput | $Enums.AccountStatus
|
|
||||||
type?: Prisma.EnumAccountTypeFieldUpdateOperationsInput | $Enums.AccountType
|
|
||||||
admin_account?: Prisma.AdminAccountUpdateOneWithoutAccountNestedInput
|
|
||||||
provider_account?: Prisma.ProviderAccountUpdateOneWithoutAccountNestedInput
|
|
||||||
partner_account?: Prisma.PartnerAccountUpdateOneWithoutAccountNestedInput
|
|
||||||
}
|
|
||||||
|
|
||||||
export type AccountUncheckedUpdateWithoutConsumer_accountInput = {
|
|
||||||
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
||||||
username?: Prisma.StringFieldUpdateOperationsInput | string
|
|
||||||
password?: Prisma.StringFieldUpdateOperationsInput | string
|
|
||||||
status?: Prisma.EnumAccountStatusFieldUpdateOperationsInput | $Enums.AccountStatus
|
|
||||||
type?: Prisma.EnumAccountTypeFieldUpdateOperationsInput | $Enums.AccountType
|
|
||||||
admin_account?: Prisma.AdminAccountUncheckedUpdateOneWithoutAccountNestedInput
|
|
||||||
provider_account?: Prisma.ProviderAccountUncheckedUpdateOneWithoutAccountNestedInput
|
|
||||||
partner_account?: Prisma.PartnerAccountUncheckedUpdateOneWithoutAccountNestedInput
|
|
||||||
}
|
|
||||||
|
|
||||||
export type AccountCreateWithoutPartner_accountInput = {
|
export type AccountCreateWithoutPartner_accountInput = {
|
||||||
id?: string
|
id?: string
|
||||||
username: string
|
username: string
|
||||||
@@ -649,6 +589,66 @@ export type AccountUncheckedUpdateWithoutProvider_accountInput = {
|
|||||||
consumer_account?: Prisma.ConsumerAccountUncheckedUpdateOneWithoutAccountNestedInput
|
consumer_account?: Prisma.ConsumerAccountUncheckedUpdateOneWithoutAccountNestedInput
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export type AccountCreateWithoutConsumer_accountInput = {
|
||||||
|
id?: string
|
||||||
|
username: string
|
||||||
|
password: string
|
||||||
|
status: $Enums.AccountStatus
|
||||||
|
type: $Enums.AccountType
|
||||||
|
admin_account?: Prisma.AdminAccountCreateNestedOneWithoutAccountInput
|
||||||
|
provider_account?: Prisma.ProviderAccountCreateNestedOneWithoutAccountInput
|
||||||
|
partner_account?: Prisma.PartnerAccountCreateNestedOneWithoutAccountInput
|
||||||
|
}
|
||||||
|
|
||||||
|
export type AccountUncheckedCreateWithoutConsumer_accountInput = {
|
||||||
|
id?: string
|
||||||
|
username: string
|
||||||
|
password: string
|
||||||
|
status: $Enums.AccountStatus
|
||||||
|
type: $Enums.AccountType
|
||||||
|
admin_account?: Prisma.AdminAccountUncheckedCreateNestedOneWithoutAccountInput
|
||||||
|
provider_account?: Prisma.ProviderAccountUncheckedCreateNestedOneWithoutAccountInput
|
||||||
|
partner_account?: Prisma.PartnerAccountUncheckedCreateNestedOneWithoutAccountInput
|
||||||
|
}
|
||||||
|
|
||||||
|
export type AccountCreateOrConnectWithoutConsumer_accountInput = {
|
||||||
|
where: Prisma.AccountWhereUniqueInput
|
||||||
|
create: Prisma.XOR<Prisma.AccountCreateWithoutConsumer_accountInput, Prisma.AccountUncheckedCreateWithoutConsumer_accountInput>
|
||||||
|
}
|
||||||
|
|
||||||
|
export type AccountUpsertWithoutConsumer_accountInput = {
|
||||||
|
update: Prisma.XOR<Prisma.AccountUpdateWithoutConsumer_accountInput, Prisma.AccountUncheckedUpdateWithoutConsumer_accountInput>
|
||||||
|
create: Prisma.XOR<Prisma.AccountCreateWithoutConsumer_accountInput, Prisma.AccountUncheckedCreateWithoutConsumer_accountInput>
|
||||||
|
where?: Prisma.AccountWhereInput
|
||||||
|
}
|
||||||
|
|
||||||
|
export type AccountUpdateToOneWithWhereWithoutConsumer_accountInput = {
|
||||||
|
where?: Prisma.AccountWhereInput
|
||||||
|
data: Prisma.XOR<Prisma.AccountUpdateWithoutConsumer_accountInput, Prisma.AccountUncheckedUpdateWithoutConsumer_accountInput>
|
||||||
|
}
|
||||||
|
|
||||||
|
export type AccountUpdateWithoutConsumer_accountInput = {
|
||||||
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||||
|
username?: Prisma.StringFieldUpdateOperationsInput | string
|
||||||
|
password?: Prisma.StringFieldUpdateOperationsInput | string
|
||||||
|
status?: Prisma.EnumAccountStatusFieldUpdateOperationsInput | $Enums.AccountStatus
|
||||||
|
type?: Prisma.EnumAccountTypeFieldUpdateOperationsInput | $Enums.AccountType
|
||||||
|
admin_account?: Prisma.AdminAccountUpdateOneWithoutAccountNestedInput
|
||||||
|
provider_account?: Prisma.ProviderAccountUpdateOneWithoutAccountNestedInput
|
||||||
|
partner_account?: Prisma.PartnerAccountUpdateOneWithoutAccountNestedInput
|
||||||
|
}
|
||||||
|
|
||||||
|
export type AccountUncheckedUpdateWithoutConsumer_accountInput = {
|
||||||
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||||
|
username?: Prisma.StringFieldUpdateOperationsInput | string
|
||||||
|
password?: Prisma.StringFieldUpdateOperationsInput | string
|
||||||
|
status?: Prisma.EnumAccountStatusFieldUpdateOperationsInput | $Enums.AccountStatus
|
||||||
|
type?: Prisma.EnumAccountTypeFieldUpdateOperationsInput | $Enums.AccountType
|
||||||
|
admin_account?: Prisma.AdminAccountUncheckedUpdateOneWithoutAccountNestedInput
|
||||||
|
provider_account?: Prisma.ProviderAccountUncheckedUpdateOneWithoutAccountNestedInput
|
||||||
|
partner_account?: Prisma.PartnerAccountUncheckedUpdateOneWithoutAccountNestedInput
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
export type AccountSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
export type AccountSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
||||||
|
|||||||
File diff suppressed because it is too large
Load Diff
@@ -343,6 +343,11 @@ export type ComplexUncheckedUpdateManyInput = {
|
|||||||
business_activity_id?: Prisma.StringFieldUpdateOperationsInput | string
|
business_activity_id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export type ComplexScalarRelationFilter = {
|
||||||
|
is?: Prisma.ComplexWhereInput
|
||||||
|
isNot?: Prisma.ComplexWhereInput
|
||||||
|
}
|
||||||
|
|
||||||
export type ComplexListRelationFilter = {
|
export type ComplexListRelationFilter = {
|
||||||
every?: Prisma.ComplexWhereInput
|
every?: Prisma.ComplexWhereInput
|
||||||
some?: Prisma.ComplexWhereInput
|
some?: Prisma.ComplexWhereInput
|
||||||
@@ -389,16 +394,25 @@ export type ComplexMinOrderByAggregateInput = {
|
|||||||
business_activity_id?: Prisma.SortOrder
|
business_activity_id?: Prisma.SortOrder
|
||||||
}
|
}
|
||||||
|
|
||||||
export type ComplexScalarRelationFilter = {
|
|
||||||
is?: Prisma.ComplexWhereInput
|
|
||||||
isNot?: Prisma.ComplexWhereInput
|
|
||||||
}
|
|
||||||
|
|
||||||
export type ComplexNullableScalarRelationFilter = {
|
export type ComplexNullableScalarRelationFilter = {
|
||||||
is?: Prisma.ComplexWhereInput | null
|
is?: Prisma.ComplexWhereInput | null
|
||||||
isNot?: Prisma.ComplexWhereInput | null
|
isNot?: Prisma.ComplexWhereInput | null
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export type ComplexCreateNestedOneWithoutPermission_complexesInput = {
|
||||||
|
create?: Prisma.XOR<Prisma.ComplexCreateWithoutPermission_complexesInput, Prisma.ComplexUncheckedCreateWithoutPermission_complexesInput>
|
||||||
|
connectOrCreate?: Prisma.ComplexCreateOrConnectWithoutPermission_complexesInput
|
||||||
|
connect?: Prisma.ComplexWhereUniqueInput
|
||||||
|
}
|
||||||
|
|
||||||
|
export type ComplexUpdateOneRequiredWithoutPermission_complexesNestedInput = {
|
||||||
|
create?: Prisma.XOR<Prisma.ComplexCreateWithoutPermission_complexesInput, Prisma.ComplexUncheckedCreateWithoutPermission_complexesInput>
|
||||||
|
connectOrCreate?: Prisma.ComplexCreateOrConnectWithoutPermission_complexesInput
|
||||||
|
upsert?: Prisma.ComplexUpsertWithoutPermission_complexesInput
|
||||||
|
connect?: Prisma.ComplexWhereUniqueInput
|
||||||
|
update?: Prisma.XOR<Prisma.XOR<Prisma.ComplexUpdateToOneWithWhereWithoutPermission_complexesInput, Prisma.ComplexUpdateWithoutPermission_complexesInput>, Prisma.ComplexUncheckedUpdateWithoutPermission_complexesInput>
|
||||||
|
}
|
||||||
|
|
||||||
export type ComplexCreateNestedManyWithoutBusiness_activityInput = {
|
export type ComplexCreateNestedManyWithoutBusiness_activityInput = {
|
||||||
create?: Prisma.XOR<Prisma.ComplexCreateWithoutBusiness_activityInput, Prisma.ComplexUncheckedCreateWithoutBusiness_activityInput> | Prisma.ComplexCreateWithoutBusiness_activityInput[] | Prisma.ComplexUncheckedCreateWithoutBusiness_activityInput[]
|
create?: Prisma.XOR<Prisma.ComplexCreateWithoutBusiness_activityInput, Prisma.ComplexUncheckedCreateWithoutBusiness_activityInput> | Prisma.ComplexCreateWithoutBusiness_activityInput[] | Prisma.ComplexUncheckedCreateWithoutBusiness_activityInput[]
|
||||||
connectOrCreate?: Prisma.ComplexCreateOrConnectWithoutBusiness_activityInput | Prisma.ComplexCreateOrConnectWithoutBusiness_activityInput[]
|
connectOrCreate?: Prisma.ComplexCreateOrConnectWithoutBusiness_activityInput | Prisma.ComplexCreateOrConnectWithoutBusiness_activityInput[]
|
||||||
@@ -455,20 +469,6 @@ export type ComplexUpdateOneRequiredWithoutPos_listNestedInput = {
|
|||||||
update?: Prisma.XOR<Prisma.XOR<Prisma.ComplexUpdateToOneWithWhereWithoutPos_listInput, Prisma.ComplexUpdateWithoutPos_listInput>, Prisma.ComplexUncheckedUpdateWithoutPos_listInput>
|
update?: Prisma.XOR<Prisma.XOR<Prisma.ComplexUpdateToOneWithWhereWithoutPos_listInput, Prisma.ComplexUpdateWithoutPos_listInput>, Prisma.ComplexUncheckedUpdateWithoutPos_listInput>
|
||||||
}
|
}
|
||||||
|
|
||||||
export type ComplexCreateNestedOneWithoutPermission_complexesInput = {
|
|
||||||
create?: Prisma.XOR<Prisma.ComplexCreateWithoutPermission_complexesInput, Prisma.ComplexUncheckedCreateWithoutPermission_complexesInput>
|
|
||||||
connectOrCreate?: Prisma.ComplexCreateOrConnectWithoutPermission_complexesInput
|
|
||||||
connect?: Prisma.ComplexWhereUniqueInput
|
|
||||||
}
|
|
||||||
|
|
||||||
export type ComplexUpdateOneRequiredWithoutPermission_complexesNestedInput = {
|
|
||||||
create?: Prisma.XOR<Prisma.ComplexCreateWithoutPermission_complexesInput, Prisma.ComplexUncheckedCreateWithoutPermission_complexesInput>
|
|
||||||
connectOrCreate?: Prisma.ComplexCreateOrConnectWithoutPermission_complexesInput
|
|
||||||
upsert?: Prisma.ComplexUpsertWithoutPermission_complexesInput
|
|
||||||
connect?: Prisma.ComplexWhereUniqueInput
|
|
||||||
update?: Prisma.XOR<Prisma.XOR<Prisma.ComplexUpdateToOneWithWhereWithoutPermission_complexesInput, Prisma.ComplexUpdateWithoutPermission_complexesInput>, Prisma.ComplexUncheckedUpdateWithoutPermission_complexesInput>
|
|
||||||
}
|
|
||||||
|
|
||||||
export type ComplexCreateNestedOneWithoutGood_categoriesInput = {
|
export type ComplexCreateNestedOneWithoutGood_categoriesInput = {
|
||||||
create?: Prisma.XOR<Prisma.ComplexCreateWithoutGood_categoriesInput, Prisma.ComplexUncheckedCreateWithoutGood_categoriesInput>
|
create?: Prisma.XOR<Prisma.ComplexCreateWithoutGood_categoriesInput, Prisma.ComplexUncheckedCreateWithoutGood_categoriesInput>
|
||||||
connectOrCreate?: Prisma.ComplexCreateOrConnectWithoutGood_categoriesInput
|
connectOrCreate?: Prisma.ComplexCreateOrConnectWithoutGood_categoriesInput
|
||||||
@@ -485,6 +485,70 @@ export type ComplexUpdateOneWithoutGood_categoriesNestedInput = {
|
|||||||
update?: Prisma.XOR<Prisma.XOR<Prisma.ComplexUpdateToOneWithWhereWithoutGood_categoriesInput, Prisma.ComplexUpdateWithoutGood_categoriesInput>, Prisma.ComplexUncheckedUpdateWithoutGood_categoriesInput>
|
update?: Prisma.XOR<Prisma.XOR<Prisma.ComplexUpdateToOneWithWhereWithoutGood_categoriesInput, Prisma.ComplexUpdateWithoutGood_categoriesInput>, Prisma.ComplexUncheckedUpdateWithoutGood_categoriesInput>
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export type ComplexCreateWithoutPermission_complexesInput = {
|
||||||
|
id?: string
|
||||||
|
name: string
|
||||||
|
branch_code: string
|
||||||
|
address?: string | null
|
||||||
|
created_at?: Date | string
|
||||||
|
updated_at?: Date | string
|
||||||
|
business_activity: Prisma.BusinessActivityCreateNestedOneWithoutComplexesInput
|
||||||
|
pos_list?: Prisma.PosCreateNestedManyWithoutComplexInput
|
||||||
|
good_categories?: Prisma.GoodCategoryCreateNestedManyWithoutComplexInput
|
||||||
|
}
|
||||||
|
|
||||||
|
export type ComplexUncheckedCreateWithoutPermission_complexesInput = {
|
||||||
|
id?: string
|
||||||
|
name: string
|
||||||
|
branch_code: string
|
||||||
|
address?: string | null
|
||||||
|
created_at?: Date | string
|
||||||
|
updated_at?: Date | string
|
||||||
|
business_activity_id: string
|
||||||
|
pos_list?: Prisma.PosUncheckedCreateNestedManyWithoutComplexInput
|
||||||
|
good_categories?: Prisma.GoodCategoryUncheckedCreateNestedManyWithoutComplexInput
|
||||||
|
}
|
||||||
|
|
||||||
|
export type ComplexCreateOrConnectWithoutPermission_complexesInput = {
|
||||||
|
where: Prisma.ComplexWhereUniqueInput
|
||||||
|
create: Prisma.XOR<Prisma.ComplexCreateWithoutPermission_complexesInput, Prisma.ComplexUncheckedCreateWithoutPermission_complexesInput>
|
||||||
|
}
|
||||||
|
|
||||||
|
export type ComplexUpsertWithoutPermission_complexesInput = {
|
||||||
|
update: Prisma.XOR<Prisma.ComplexUpdateWithoutPermission_complexesInput, Prisma.ComplexUncheckedUpdateWithoutPermission_complexesInput>
|
||||||
|
create: Prisma.XOR<Prisma.ComplexCreateWithoutPermission_complexesInput, Prisma.ComplexUncheckedCreateWithoutPermission_complexesInput>
|
||||||
|
where?: Prisma.ComplexWhereInput
|
||||||
|
}
|
||||||
|
|
||||||
|
export type ComplexUpdateToOneWithWhereWithoutPermission_complexesInput = {
|
||||||
|
where?: Prisma.ComplexWhereInput
|
||||||
|
data: Prisma.XOR<Prisma.ComplexUpdateWithoutPermission_complexesInput, Prisma.ComplexUncheckedUpdateWithoutPermission_complexesInput>
|
||||||
|
}
|
||||||
|
|
||||||
|
export type ComplexUpdateWithoutPermission_complexesInput = {
|
||||||
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||||
|
name?: Prisma.StringFieldUpdateOperationsInput | string
|
||||||
|
branch_code?: Prisma.StringFieldUpdateOperationsInput | string
|
||||||
|
address?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||||
|
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||||
|
updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||||
|
business_activity?: Prisma.BusinessActivityUpdateOneRequiredWithoutComplexesNestedInput
|
||||||
|
pos_list?: Prisma.PosUpdateManyWithoutComplexNestedInput
|
||||||
|
good_categories?: Prisma.GoodCategoryUpdateManyWithoutComplexNestedInput
|
||||||
|
}
|
||||||
|
|
||||||
|
export type ComplexUncheckedUpdateWithoutPermission_complexesInput = {
|
||||||
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||||
|
name?: Prisma.StringFieldUpdateOperationsInput | string
|
||||||
|
branch_code?: Prisma.StringFieldUpdateOperationsInput | string
|
||||||
|
address?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||||
|
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||||
|
updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||||
|
business_activity_id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||||
|
pos_list?: Prisma.PosUncheckedUpdateManyWithoutComplexNestedInput
|
||||||
|
good_categories?: Prisma.GoodCategoryUncheckedUpdateManyWithoutComplexNestedInput
|
||||||
|
}
|
||||||
|
|
||||||
export type ComplexCreateWithoutBusiness_activityInput = {
|
export type ComplexCreateWithoutBusiness_activityInput = {
|
||||||
id?: string
|
id?: string
|
||||||
name: string
|
name: string
|
||||||
@@ -612,70 +676,6 @@ export type ComplexUncheckedUpdateWithoutPos_listInput = {
|
|||||||
permission_complexes?: Prisma.PermissionComplexUncheckedUpdateManyWithoutComplexNestedInput
|
permission_complexes?: Prisma.PermissionComplexUncheckedUpdateManyWithoutComplexNestedInput
|
||||||
}
|
}
|
||||||
|
|
||||||
export type ComplexCreateWithoutPermission_complexesInput = {
|
|
||||||
id?: string
|
|
||||||
name: string
|
|
||||||
branch_code: string
|
|
||||||
address?: string | null
|
|
||||||
created_at?: Date | string
|
|
||||||
updated_at?: Date | string
|
|
||||||
business_activity: Prisma.BusinessActivityCreateNestedOneWithoutComplexesInput
|
|
||||||
pos_list?: Prisma.PosCreateNestedManyWithoutComplexInput
|
|
||||||
good_categories?: Prisma.GoodCategoryCreateNestedManyWithoutComplexInput
|
|
||||||
}
|
|
||||||
|
|
||||||
export type ComplexUncheckedCreateWithoutPermission_complexesInput = {
|
|
||||||
id?: string
|
|
||||||
name: string
|
|
||||||
branch_code: string
|
|
||||||
address?: string | null
|
|
||||||
created_at?: Date | string
|
|
||||||
updated_at?: Date | string
|
|
||||||
business_activity_id: string
|
|
||||||
pos_list?: Prisma.PosUncheckedCreateNestedManyWithoutComplexInput
|
|
||||||
good_categories?: Prisma.GoodCategoryUncheckedCreateNestedManyWithoutComplexInput
|
|
||||||
}
|
|
||||||
|
|
||||||
export type ComplexCreateOrConnectWithoutPermission_complexesInput = {
|
|
||||||
where: Prisma.ComplexWhereUniqueInput
|
|
||||||
create: Prisma.XOR<Prisma.ComplexCreateWithoutPermission_complexesInput, Prisma.ComplexUncheckedCreateWithoutPermission_complexesInput>
|
|
||||||
}
|
|
||||||
|
|
||||||
export type ComplexUpsertWithoutPermission_complexesInput = {
|
|
||||||
update: Prisma.XOR<Prisma.ComplexUpdateWithoutPermission_complexesInput, Prisma.ComplexUncheckedUpdateWithoutPermission_complexesInput>
|
|
||||||
create: Prisma.XOR<Prisma.ComplexCreateWithoutPermission_complexesInput, Prisma.ComplexUncheckedCreateWithoutPermission_complexesInput>
|
|
||||||
where?: Prisma.ComplexWhereInput
|
|
||||||
}
|
|
||||||
|
|
||||||
export type ComplexUpdateToOneWithWhereWithoutPermission_complexesInput = {
|
|
||||||
where?: Prisma.ComplexWhereInput
|
|
||||||
data: Prisma.XOR<Prisma.ComplexUpdateWithoutPermission_complexesInput, Prisma.ComplexUncheckedUpdateWithoutPermission_complexesInput>
|
|
||||||
}
|
|
||||||
|
|
||||||
export type ComplexUpdateWithoutPermission_complexesInput = {
|
|
||||||
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
||||||
name?: Prisma.StringFieldUpdateOperationsInput | string
|
|
||||||
branch_code?: Prisma.StringFieldUpdateOperationsInput | string
|
|
||||||
address?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
||||||
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
||||||
updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
||||||
business_activity?: Prisma.BusinessActivityUpdateOneRequiredWithoutComplexesNestedInput
|
|
||||||
pos_list?: Prisma.PosUpdateManyWithoutComplexNestedInput
|
|
||||||
good_categories?: Prisma.GoodCategoryUpdateManyWithoutComplexNestedInput
|
|
||||||
}
|
|
||||||
|
|
||||||
export type ComplexUncheckedUpdateWithoutPermission_complexesInput = {
|
|
||||||
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
||||||
name?: Prisma.StringFieldUpdateOperationsInput | string
|
|
||||||
branch_code?: Prisma.StringFieldUpdateOperationsInput | string
|
|
||||||
address?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
||||||
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
||||||
updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
||||||
business_activity_id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
||||||
pos_list?: Prisma.PosUncheckedUpdateManyWithoutComplexNestedInput
|
|
||||||
good_categories?: Prisma.GoodCategoryUncheckedUpdateManyWithoutComplexNestedInput
|
|
||||||
}
|
|
||||||
|
|
||||||
export type ComplexCreateWithoutGood_categoriesInput = {
|
export type ComplexCreateWithoutGood_categoriesInput = {
|
||||||
id?: string
|
id?: string
|
||||||
name: string
|
name: string
|
||||||
|
|||||||
@@ -352,6 +352,20 @@ export type ConsumerMinOrderByAggregateInput = {
|
|||||||
updated_at?: Prisma.SortOrder
|
updated_at?: Prisma.SortOrder
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export type ConsumerCreateNestedOneWithoutDevicesInput = {
|
||||||
|
create?: Prisma.XOR<Prisma.ConsumerCreateWithoutDevicesInput, Prisma.ConsumerUncheckedCreateWithoutDevicesInput>
|
||||||
|
connectOrCreate?: Prisma.ConsumerCreateOrConnectWithoutDevicesInput
|
||||||
|
connect?: Prisma.ConsumerWhereUniqueInput
|
||||||
|
}
|
||||||
|
|
||||||
|
export type ConsumerUpdateOneRequiredWithoutDevicesNestedInput = {
|
||||||
|
create?: Prisma.XOR<Prisma.ConsumerCreateWithoutDevicesInput, Prisma.ConsumerUncheckedCreateWithoutDevicesInput>
|
||||||
|
connectOrCreate?: Prisma.ConsumerCreateOrConnectWithoutDevicesInput
|
||||||
|
upsert?: Prisma.ConsumerUpsertWithoutDevicesInput
|
||||||
|
connect?: Prisma.ConsumerWhereUniqueInput
|
||||||
|
update?: Prisma.XOR<Prisma.XOR<Prisma.ConsumerUpdateToOneWithWhereWithoutDevicesInput, Prisma.ConsumerUpdateWithoutDevicesInput>, Prisma.ConsumerUncheckedUpdateWithoutDevicesInput>
|
||||||
|
}
|
||||||
|
|
||||||
export type ConsumerCreateNestedOneWithoutAccountsInput = {
|
export type ConsumerCreateNestedOneWithoutAccountsInput = {
|
||||||
create?: Prisma.XOR<Prisma.ConsumerCreateWithoutAccountsInput, Prisma.ConsumerUncheckedCreateWithoutAccountsInput>
|
create?: Prisma.XOR<Prisma.ConsumerCreateWithoutAccountsInput, Prisma.ConsumerUncheckedCreateWithoutAccountsInput>
|
||||||
connectOrCreate?: Prisma.ConsumerCreateOrConnectWithoutAccountsInput
|
connectOrCreate?: Prisma.ConsumerCreateOrConnectWithoutAccountsInput
|
||||||
@@ -416,18 +430,68 @@ export type ConsumerUpdateOneRequiredWithoutBusiness_activitiesNestedInput = {
|
|||||||
update?: Prisma.XOR<Prisma.XOR<Prisma.ConsumerUpdateToOneWithWhereWithoutBusiness_activitiesInput, Prisma.ConsumerUpdateWithoutBusiness_activitiesInput>, Prisma.ConsumerUncheckedUpdateWithoutBusiness_activitiesInput>
|
update?: Prisma.XOR<Prisma.XOR<Prisma.ConsumerUpdateToOneWithWhereWithoutBusiness_activitiesInput, Prisma.ConsumerUpdateWithoutBusiness_activitiesInput>, Prisma.ConsumerUncheckedUpdateWithoutBusiness_activitiesInput>
|
||||||
}
|
}
|
||||||
|
|
||||||
export type ConsumerCreateNestedOneWithoutDevicesInput = {
|
export type ConsumerCreateWithoutDevicesInput = {
|
||||||
create?: Prisma.XOR<Prisma.ConsumerCreateWithoutDevicesInput, Prisma.ConsumerUncheckedCreateWithoutDevicesInput>
|
id?: string
|
||||||
connectOrCreate?: Prisma.ConsumerCreateOrConnectWithoutDevicesInput
|
type: $Enums.ConsumerType
|
||||||
connect?: Prisma.ConsumerWhereUniqueInput
|
status?: $Enums.ConsumerStatus
|
||||||
|
created_at?: Date | string
|
||||||
|
updated_at?: Date | string
|
||||||
|
accounts?: Prisma.ConsumerAccountCreateNestedManyWithoutConsumerInput
|
||||||
|
business_activities?: Prisma.BusinessActivityCreateNestedManyWithoutConsumerInput
|
||||||
|
individual?: Prisma.ConsumerIndividualCreateNestedOneWithoutConsumerInput
|
||||||
|
legal?: Prisma.ConsumerLegalCreateNestedOneWithoutConsumerInput
|
||||||
}
|
}
|
||||||
|
|
||||||
export type ConsumerUpdateOneRequiredWithoutDevicesNestedInput = {
|
export type ConsumerUncheckedCreateWithoutDevicesInput = {
|
||||||
create?: Prisma.XOR<Prisma.ConsumerCreateWithoutDevicesInput, Prisma.ConsumerUncheckedCreateWithoutDevicesInput>
|
id?: string
|
||||||
connectOrCreate?: Prisma.ConsumerCreateOrConnectWithoutDevicesInput
|
type: $Enums.ConsumerType
|
||||||
upsert?: Prisma.ConsumerUpsertWithoutDevicesInput
|
status?: $Enums.ConsumerStatus
|
||||||
connect?: Prisma.ConsumerWhereUniqueInput
|
created_at?: Date | string
|
||||||
update?: Prisma.XOR<Prisma.XOR<Prisma.ConsumerUpdateToOneWithWhereWithoutDevicesInput, Prisma.ConsumerUpdateWithoutDevicesInput>, Prisma.ConsumerUncheckedUpdateWithoutDevicesInput>
|
updated_at?: Date | string
|
||||||
|
accounts?: Prisma.ConsumerAccountUncheckedCreateNestedManyWithoutConsumerInput
|
||||||
|
business_activities?: Prisma.BusinessActivityUncheckedCreateNestedManyWithoutConsumerInput
|
||||||
|
individual?: Prisma.ConsumerIndividualUncheckedCreateNestedOneWithoutConsumerInput
|
||||||
|
legal?: Prisma.ConsumerLegalUncheckedCreateNestedOneWithoutConsumerInput
|
||||||
|
}
|
||||||
|
|
||||||
|
export type ConsumerCreateOrConnectWithoutDevicesInput = {
|
||||||
|
where: Prisma.ConsumerWhereUniqueInput
|
||||||
|
create: Prisma.XOR<Prisma.ConsumerCreateWithoutDevicesInput, Prisma.ConsumerUncheckedCreateWithoutDevicesInput>
|
||||||
|
}
|
||||||
|
|
||||||
|
export type ConsumerUpsertWithoutDevicesInput = {
|
||||||
|
update: Prisma.XOR<Prisma.ConsumerUpdateWithoutDevicesInput, Prisma.ConsumerUncheckedUpdateWithoutDevicesInput>
|
||||||
|
create: Prisma.XOR<Prisma.ConsumerCreateWithoutDevicesInput, Prisma.ConsumerUncheckedCreateWithoutDevicesInput>
|
||||||
|
where?: Prisma.ConsumerWhereInput
|
||||||
|
}
|
||||||
|
|
||||||
|
export type ConsumerUpdateToOneWithWhereWithoutDevicesInput = {
|
||||||
|
where?: Prisma.ConsumerWhereInput
|
||||||
|
data: Prisma.XOR<Prisma.ConsumerUpdateWithoutDevicesInput, Prisma.ConsumerUncheckedUpdateWithoutDevicesInput>
|
||||||
|
}
|
||||||
|
|
||||||
|
export type ConsumerUpdateWithoutDevicesInput = {
|
||||||
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||||
|
type?: Prisma.EnumConsumerTypeFieldUpdateOperationsInput | $Enums.ConsumerType
|
||||||
|
status?: Prisma.EnumConsumerStatusFieldUpdateOperationsInput | $Enums.ConsumerStatus
|
||||||
|
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||||
|
updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||||
|
accounts?: Prisma.ConsumerAccountUpdateManyWithoutConsumerNestedInput
|
||||||
|
business_activities?: Prisma.BusinessActivityUpdateManyWithoutConsumerNestedInput
|
||||||
|
individual?: Prisma.ConsumerIndividualUpdateOneWithoutConsumerNestedInput
|
||||||
|
legal?: Prisma.ConsumerLegalUpdateOneWithoutConsumerNestedInput
|
||||||
|
}
|
||||||
|
|
||||||
|
export type ConsumerUncheckedUpdateWithoutDevicesInput = {
|
||||||
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||||
|
type?: Prisma.EnumConsumerTypeFieldUpdateOperationsInput | $Enums.ConsumerType
|
||||||
|
status?: Prisma.EnumConsumerStatusFieldUpdateOperationsInput | $Enums.ConsumerStatus
|
||||||
|
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||||
|
updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||||
|
accounts?: Prisma.ConsumerAccountUncheckedUpdateManyWithoutConsumerNestedInput
|
||||||
|
business_activities?: Prisma.BusinessActivityUncheckedUpdateManyWithoutConsumerNestedInput
|
||||||
|
individual?: Prisma.ConsumerIndividualUncheckedUpdateOneWithoutConsumerNestedInput
|
||||||
|
legal?: Prisma.ConsumerLegalUncheckedUpdateOneWithoutConsumerNestedInput
|
||||||
}
|
}
|
||||||
|
|
||||||
export type ConsumerCreateWithoutAccountsInput = {
|
export type ConsumerCreateWithoutAccountsInput = {
|
||||||
@@ -686,70 +750,6 @@ export type ConsumerUncheckedUpdateWithoutBusiness_activitiesInput = {
|
|||||||
legal?: Prisma.ConsumerLegalUncheckedUpdateOneWithoutConsumerNestedInput
|
legal?: Prisma.ConsumerLegalUncheckedUpdateOneWithoutConsumerNestedInput
|
||||||
}
|
}
|
||||||
|
|
||||||
export type ConsumerCreateWithoutDevicesInput = {
|
|
||||||
id?: string
|
|
||||||
type: $Enums.ConsumerType
|
|
||||||
status?: $Enums.ConsumerStatus
|
|
||||||
created_at?: Date | string
|
|
||||||
updated_at?: Date | string
|
|
||||||
accounts?: Prisma.ConsumerAccountCreateNestedManyWithoutConsumerInput
|
|
||||||
business_activities?: Prisma.BusinessActivityCreateNestedManyWithoutConsumerInput
|
|
||||||
individual?: Prisma.ConsumerIndividualCreateNestedOneWithoutConsumerInput
|
|
||||||
legal?: Prisma.ConsumerLegalCreateNestedOneWithoutConsumerInput
|
|
||||||
}
|
|
||||||
|
|
||||||
export type ConsumerUncheckedCreateWithoutDevicesInput = {
|
|
||||||
id?: string
|
|
||||||
type: $Enums.ConsumerType
|
|
||||||
status?: $Enums.ConsumerStatus
|
|
||||||
created_at?: Date | string
|
|
||||||
updated_at?: Date | string
|
|
||||||
accounts?: Prisma.ConsumerAccountUncheckedCreateNestedManyWithoutConsumerInput
|
|
||||||
business_activities?: Prisma.BusinessActivityUncheckedCreateNestedManyWithoutConsumerInput
|
|
||||||
individual?: Prisma.ConsumerIndividualUncheckedCreateNestedOneWithoutConsumerInput
|
|
||||||
legal?: Prisma.ConsumerLegalUncheckedCreateNestedOneWithoutConsumerInput
|
|
||||||
}
|
|
||||||
|
|
||||||
export type ConsumerCreateOrConnectWithoutDevicesInput = {
|
|
||||||
where: Prisma.ConsumerWhereUniqueInput
|
|
||||||
create: Prisma.XOR<Prisma.ConsumerCreateWithoutDevicesInput, Prisma.ConsumerUncheckedCreateWithoutDevicesInput>
|
|
||||||
}
|
|
||||||
|
|
||||||
export type ConsumerUpsertWithoutDevicesInput = {
|
|
||||||
update: Prisma.XOR<Prisma.ConsumerUpdateWithoutDevicesInput, Prisma.ConsumerUncheckedUpdateWithoutDevicesInput>
|
|
||||||
create: Prisma.XOR<Prisma.ConsumerCreateWithoutDevicesInput, Prisma.ConsumerUncheckedCreateWithoutDevicesInput>
|
|
||||||
where?: Prisma.ConsumerWhereInput
|
|
||||||
}
|
|
||||||
|
|
||||||
export type ConsumerUpdateToOneWithWhereWithoutDevicesInput = {
|
|
||||||
where?: Prisma.ConsumerWhereInput
|
|
||||||
data: Prisma.XOR<Prisma.ConsumerUpdateWithoutDevicesInput, Prisma.ConsumerUncheckedUpdateWithoutDevicesInput>
|
|
||||||
}
|
|
||||||
|
|
||||||
export type ConsumerUpdateWithoutDevicesInput = {
|
|
||||||
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
||||||
type?: Prisma.EnumConsumerTypeFieldUpdateOperationsInput | $Enums.ConsumerType
|
|
||||||
status?: Prisma.EnumConsumerStatusFieldUpdateOperationsInput | $Enums.ConsumerStatus
|
|
||||||
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
||||||
updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
||||||
accounts?: Prisma.ConsumerAccountUpdateManyWithoutConsumerNestedInput
|
|
||||||
business_activities?: Prisma.BusinessActivityUpdateManyWithoutConsumerNestedInput
|
|
||||||
individual?: Prisma.ConsumerIndividualUpdateOneWithoutConsumerNestedInput
|
|
||||||
legal?: Prisma.ConsumerLegalUpdateOneWithoutConsumerNestedInput
|
|
||||||
}
|
|
||||||
|
|
||||||
export type ConsumerUncheckedUpdateWithoutDevicesInput = {
|
|
||||||
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
||||||
type?: Prisma.EnumConsumerTypeFieldUpdateOperationsInput | $Enums.ConsumerType
|
|
||||||
status?: Prisma.EnumConsumerStatusFieldUpdateOperationsInput | $Enums.ConsumerStatus
|
|
||||||
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
||||||
updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
||||||
accounts?: Prisma.ConsumerAccountUncheckedUpdateManyWithoutConsumerNestedInput
|
|
||||||
business_activities?: Prisma.BusinessActivityUncheckedUpdateManyWithoutConsumerNestedInput
|
|
||||||
individual?: Prisma.ConsumerIndividualUncheckedUpdateOneWithoutConsumerNestedInput
|
|
||||||
legal?: Prisma.ConsumerLegalUncheckedUpdateOneWithoutConsumerNestedInput
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Count Type ConsumerCountOutputType
|
* Count Type ConsumerCountOutputType
|
||||||
|
|||||||
@@ -338,6 +338,11 @@ export type ConsumerAccountNullableScalarRelationFilter = {
|
|||||||
isNot?: Prisma.ConsumerAccountWhereInput | null
|
isNot?: Prisma.ConsumerAccountWhereInput | null
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export type ConsumerAccountScalarRelationFilter = {
|
||||||
|
is?: Prisma.ConsumerAccountWhereInput
|
||||||
|
isNot?: Prisma.ConsumerAccountWhereInput
|
||||||
|
}
|
||||||
|
|
||||||
export type ConsumerAccountOrderByRelevanceInput = {
|
export type ConsumerAccountOrderByRelevanceInput = {
|
||||||
fields: Prisma.ConsumerAccountOrderByRelevanceFieldEnum | Prisma.ConsumerAccountOrderByRelevanceFieldEnum[]
|
fields: Prisma.ConsumerAccountOrderByRelevanceFieldEnum | Prisma.ConsumerAccountOrderByRelevanceFieldEnum[]
|
||||||
sort: Prisma.SortOrder
|
sort: Prisma.SortOrder
|
||||||
@@ -381,11 +386,6 @@ export type ConsumerAccountOrderByRelationAggregateInput = {
|
|||||||
_count?: Prisma.SortOrder
|
_count?: Prisma.SortOrder
|
||||||
}
|
}
|
||||||
|
|
||||||
export type ConsumerAccountScalarRelationFilter = {
|
|
||||||
is?: Prisma.ConsumerAccountWhereInput
|
|
||||||
isNot?: Prisma.ConsumerAccountWhereInput
|
|
||||||
}
|
|
||||||
|
|
||||||
export type ConsumerAccountCreateNestedOneWithoutAccountInput = {
|
export type ConsumerAccountCreateNestedOneWithoutAccountInput = {
|
||||||
create?: Prisma.XOR<Prisma.ConsumerAccountCreateWithoutAccountInput, Prisma.ConsumerAccountUncheckedCreateWithoutAccountInput>
|
create?: Prisma.XOR<Prisma.ConsumerAccountCreateWithoutAccountInput, Prisma.ConsumerAccountUncheckedCreateWithoutAccountInput>
|
||||||
connectOrCreate?: Prisma.ConsumerAccountCreateOrConnectWithoutAccountInput
|
connectOrCreate?: Prisma.ConsumerAccountCreateOrConnectWithoutAccountInput
|
||||||
@@ -418,6 +418,36 @@ export type ConsumerAccountUncheckedUpdateOneWithoutAccountNestedInput = {
|
|||||||
update?: Prisma.XOR<Prisma.XOR<Prisma.ConsumerAccountUpdateToOneWithWhereWithoutAccountInput, Prisma.ConsumerAccountUpdateWithoutAccountInput>, Prisma.ConsumerAccountUncheckedUpdateWithoutAccountInput>
|
update?: Prisma.XOR<Prisma.XOR<Prisma.ConsumerAccountUpdateToOneWithWhereWithoutAccountInput, Prisma.ConsumerAccountUpdateWithoutAccountInput>, Prisma.ConsumerAccountUncheckedUpdateWithoutAccountInput>
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export type ConsumerAccountCreateNestedOneWithoutAccount_allocationInput = {
|
||||||
|
create?: Prisma.XOR<Prisma.ConsumerAccountCreateWithoutAccount_allocationInput, Prisma.ConsumerAccountUncheckedCreateWithoutAccount_allocationInput>
|
||||||
|
connectOrCreate?: Prisma.ConsumerAccountCreateOrConnectWithoutAccount_allocationInput
|
||||||
|
connect?: Prisma.ConsumerAccountWhereUniqueInput
|
||||||
|
}
|
||||||
|
|
||||||
|
export type ConsumerAccountUpdateOneWithoutAccount_allocationNestedInput = {
|
||||||
|
create?: Prisma.XOR<Prisma.ConsumerAccountCreateWithoutAccount_allocationInput, Prisma.ConsumerAccountUncheckedCreateWithoutAccount_allocationInput>
|
||||||
|
connectOrCreate?: Prisma.ConsumerAccountCreateOrConnectWithoutAccount_allocationInput
|
||||||
|
upsert?: Prisma.ConsumerAccountUpsertWithoutAccount_allocationInput
|
||||||
|
disconnect?: Prisma.ConsumerAccountWhereInput | boolean
|
||||||
|
delete?: Prisma.ConsumerAccountWhereInput | boolean
|
||||||
|
connect?: Prisma.ConsumerAccountWhereUniqueInput
|
||||||
|
update?: Prisma.XOR<Prisma.XOR<Prisma.ConsumerAccountUpdateToOneWithWhereWithoutAccount_allocationInput, Prisma.ConsumerAccountUpdateWithoutAccount_allocationInput>, Prisma.ConsumerAccountUncheckedUpdateWithoutAccount_allocationInput>
|
||||||
|
}
|
||||||
|
|
||||||
|
export type ConsumerAccountCreateNestedOneWithoutPermissionInput = {
|
||||||
|
create?: Prisma.XOR<Prisma.ConsumerAccountCreateWithoutPermissionInput, Prisma.ConsumerAccountUncheckedCreateWithoutPermissionInput>
|
||||||
|
connectOrCreate?: Prisma.ConsumerAccountCreateOrConnectWithoutPermissionInput
|
||||||
|
connect?: Prisma.ConsumerAccountWhereUniqueInput
|
||||||
|
}
|
||||||
|
|
||||||
|
export type ConsumerAccountUpdateOneRequiredWithoutPermissionNestedInput = {
|
||||||
|
create?: Prisma.XOR<Prisma.ConsumerAccountCreateWithoutPermissionInput, Prisma.ConsumerAccountUncheckedCreateWithoutPermissionInput>
|
||||||
|
connectOrCreate?: Prisma.ConsumerAccountCreateOrConnectWithoutPermissionInput
|
||||||
|
upsert?: Prisma.ConsumerAccountUpsertWithoutPermissionInput
|
||||||
|
connect?: Prisma.ConsumerAccountWhereUniqueInput
|
||||||
|
update?: Prisma.XOR<Prisma.XOR<Prisma.ConsumerAccountUpdateToOneWithWhereWithoutPermissionInput, Prisma.ConsumerAccountUpdateWithoutPermissionInput>, Prisma.ConsumerAccountUncheckedUpdateWithoutPermissionInput>
|
||||||
|
}
|
||||||
|
|
||||||
export type EnumConsumerRoleFieldUpdateOperationsInput = {
|
export type EnumConsumerRoleFieldUpdateOperationsInput = {
|
||||||
set?: $Enums.ConsumerRole
|
set?: $Enums.ConsumerRole
|
||||||
}
|
}
|
||||||
@@ -478,36 +508,6 @@ export type ConsumerAccountUpdateOneRequiredWithoutPosNestedInput = {
|
|||||||
update?: Prisma.XOR<Prisma.XOR<Prisma.ConsumerAccountUpdateToOneWithWhereWithoutPosInput, Prisma.ConsumerAccountUpdateWithoutPosInput>, Prisma.ConsumerAccountUncheckedUpdateWithoutPosInput>
|
update?: Prisma.XOR<Prisma.XOR<Prisma.ConsumerAccountUpdateToOneWithWhereWithoutPosInput, Prisma.ConsumerAccountUpdateWithoutPosInput>, Prisma.ConsumerAccountUncheckedUpdateWithoutPosInput>
|
||||||
}
|
}
|
||||||
|
|
||||||
export type ConsumerAccountCreateNestedOneWithoutAccount_allocationInput = {
|
|
||||||
create?: Prisma.XOR<Prisma.ConsumerAccountCreateWithoutAccount_allocationInput, Prisma.ConsumerAccountUncheckedCreateWithoutAccount_allocationInput>
|
|
||||||
connectOrCreate?: Prisma.ConsumerAccountCreateOrConnectWithoutAccount_allocationInput
|
|
||||||
connect?: Prisma.ConsumerAccountWhereUniqueInput
|
|
||||||
}
|
|
||||||
|
|
||||||
export type ConsumerAccountUpdateOneWithoutAccount_allocationNestedInput = {
|
|
||||||
create?: Prisma.XOR<Prisma.ConsumerAccountCreateWithoutAccount_allocationInput, Prisma.ConsumerAccountUncheckedCreateWithoutAccount_allocationInput>
|
|
||||||
connectOrCreate?: Prisma.ConsumerAccountCreateOrConnectWithoutAccount_allocationInput
|
|
||||||
upsert?: Prisma.ConsumerAccountUpsertWithoutAccount_allocationInput
|
|
||||||
disconnect?: Prisma.ConsumerAccountWhereInput | boolean
|
|
||||||
delete?: Prisma.ConsumerAccountWhereInput | boolean
|
|
||||||
connect?: Prisma.ConsumerAccountWhereUniqueInput
|
|
||||||
update?: Prisma.XOR<Prisma.XOR<Prisma.ConsumerAccountUpdateToOneWithWhereWithoutAccount_allocationInput, Prisma.ConsumerAccountUpdateWithoutAccount_allocationInput>, Prisma.ConsumerAccountUncheckedUpdateWithoutAccount_allocationInput>
|
|
||||||
}
|
|
||||||
|
|
||||||
export type ConsumerAccountCreateNestedOneWithoutPermissionInput = {
|
|
||||||
create?: Prisma.XOR<Prisma.ConsumerAccountCreateWithoutPermissionInput, Prisma.ConsumerAccountUncheckedCreateWithoutPermissionInput>
|
|
||||||
connectOrCreate?: Prisma.ConsumerAccountCreateOrConnectWithoutPermissionInput
|
|
||||||
connect?: Prisma.ConsumerAccountWhereUniqueInput
|
|
||||||
}
|
|
||||||
|
|
||||||
export type ConsumerAccountUpdateOneRequiredWithoutPermissionNestedInput = {
|
|
||||||
create?: Prisma.XOR<Prisma.ConsumerAccountCreateWithoutPermissionInput, Prisma.ConsumerAccountUncheckedCreateWithoutPermissionInput>
|
|
||||||
connectOrCreate?: Prisma.ConsumerAccountCreateOrConnectWithoutPermissionInput
|
|
||||||
upsert?: Prisma.ConsumerAccountUpsertWithoutPermissionInput
|
|
||||||
connect?: Prisma.ConsumerAccountWhereUniqueInput
|
|
||||||
update?: Prisma.XOR<Prisma.XOR<Prisma.ConsumerAccountUpdateToOneWithWhereWithoutPermissionInput, Prisma.ConsumerAccountUpdateWithoutPermissionInput>, Prisma.ConsumerAccountUncheckedUpdateWithoutPermissionInput>
|
|
||||||
}
|
|
||||||
|
|
||||||
export type ConsumerAccountCreateNestedOneWithoutSales_invoicesInput = {
|
export type ConsumerAccountCreateNestedOneWithoutSales_invoicesInput = {
|
||||||
create?: Prisma.XOR<Prisma.ConsumerAccountCreateWithoutSales_invoicesInput, Prisma.ConsumerAccountUncheckedCreateWithoutSales_invoicesInput>
|
create?: Prisma.XOR<Prisma.ConsumerAccountCreateWithoutSales_invoicesInput, Prisma.ConsumerAccountUncheckedCreateWithoutSales_invoicesInput>
|
||||||
connectOrCreate?: Prisma.ConsumerAccountCreateOrConnectWithoutSales_invoicesInput
|
connectOrCreate?: Prisma.ConsumerAccountCreateOrConnectWithoutSales_invoicesInput
|
||||||
@@ -586,132 +586,6 @@ export type ConsumerAccountUncheckedUpdateWithoutAccountInput = {
|
|||||||
sales_invoices?: Prisma.SalesInvoiceUncheckedUpdateManyWithoutConsumer_accountNestedInput
|
sales_invoices?: Prisma.SalesInvoiceUncheckedUpdateManyWithoutConsumer_accountNestedInput
|
||||||
}
|
}
|
||||||
|
|
||||||
export type ConsumerAccountCreateWithoutConsumerInput = {
|
|
||||||
id?: string
|
|
||||||
role: $Enums.ConsumerRole
|
|
||||||
created_at?: Date | string
|
|
||||||
updated_at?: Date | string
|
|
||||||
account: Prisma.AccountCreateNestedOneWithoutConsumer_accountInput
|
|
||||||
pos?: Prisma.PosCreateNestedOneWithoutAccountInput
|
|
||||||
permission?: Prisma.PermissionConsumerCreateNestedOneWithoutConsumer_accountInput
|
|
||||||
account_allocation?: Prisma.LicenseAccountAllocationCreateNestedOneWithoutAccountInput
|
|
||||||
sales_invoices?: Prisma.SalesInvoiceCreateNestedManyWithoutConsumer_accountInput
|
|
||||||
}
|
|
||||||
|
|
||||||
export type ConsumerAccountUncheckedCreateWithoutConsumerInput = {
|
|
||||||
id?: string
|
|
||||||
role: $Enums.ConsumerRole
|
|
||||||
created_at?: Date | string
|
|
||||||
updated_at?: Date | string
|
|
||||||
account_id: string
|
|
||||||
pos?: Prisma.PosUncheckedCreateNestedOneWithoutAccountInput
|
|
||||||
permission?: Prisma.PermissionConsumerUncheckedCreateNestedOneWithoutConsumer_accountInput
|
|
||||||
account_allocation?: Prisma.LicenseAccountAllocationUncheckedCreateNestedOneWithoutAccountInput
|
|
||||||
sales_invoices?: Prisma.SalesInvoiceUncheckedCreateNestedManyWithoutConsumer_accountInput
|
|
||||||
}
|
|
||||||
|
|
||||||
export type ConsumerAccountCreateOrConnectWithoutConsumerInput = {
|
|
||||||
where: Prisma.ConsumerAccountWhereUniqueInput
|
|
||||||
create: Prisma.XOR<Prisma.ConsumerAccountCreateWithoutConsumerInput, Prisma.ConsumerAccountUncheckedCreateWithoutConsumerInput>
|
|
||||||
}
|
|
||||||
|
|
||||||
export type ConsumerAccountCreateManyConsumerInputEnvelope = {
|
|
||||||
data: Prisma.ConsumerAccountCreateManyConsumerInput | Prisma.ConsumerAccountCreateManyConsumerInput[]
|
|
||||||
skipDuplicates?: boolean
|
|
||||||
}
|
|
||||||
|
|
||||||
export type ConsumerAccountUpsertWithWhereUniqueWithoutConsumerInput = {
|
|
||||||
where: Prisma.ConsumerAccountWhereUniqueInput
|
|
||||||
update: Prisma.XOR<Prisma.ConsumerAccountUpdateWithoutConsumerInput, Prisma.ConsumerAccountUncheckedUpdateWithoutConsumerInput>
|
|
||||||
create: Prisma.XOR<Prisma.ConsumerAccountCreateWithoutConsumerInput, Prisma.ConsumerAccountUncheckedCreateWithoutConsumerInput>
|
|
||||||
}
|
|
||||||
|
|
||||||
export type ConsumerAccountUpdateWithWhereUniqueWithoutConsumerInput = {
|
|
||||||
where: Prisma.ConsumerAccountWhereUniqueInput
|
|
||||||
data: Prisma.XOR<Prisma.ConsumerAccountUpdateWithoutConsumerInput, Prisma.ConsumerAccountUncheckedUpdateWithoutConsumerInput>
|
|
||||||
}
|
|
||||||
|
|
||||||
export type ConsumerAccountUpdateManyWithWhereWithoutConsumerInput = {
|
|
||||||
where: Prisma.ConsumerAccountScalarWhereInput
|
|
||||||
data: Prisma.XOR<Prisma.ConsumerAccountUpdateManyMutationInput, Prisma.ConsumerAccountUncheckedUpdateManyWithoutConsumerInput>
|
|
||||||
}
|
|
||||||
|
|
||||||
export type ConsumerAccountScalarWhereInput = {
|
|
||||||
AND?: Prisma.ConsumerAccountScalarWhereInput | Prisma.ConsumerAccountScalarWhereInput[]
|
|
||||||
OR?: Prisma.ConsumerAccountScalarWhereInput[]
|
|
||||||
NOT?: Prisma.ConsumerAccountScalarWhereInput | Prisma.ConsumerAccountScalarWhereInput[]
|
|
||||||
id?: Prisma.StringFilter<"ConsumerAccount"> | string
|
|
||||||
role?: Prisma.EnumConsumerRoleFilter<"ConsumerAccount"> | $Enums.ConsumerRole
|
|
||||||
created_at?: Prisma.DateTimeFilter<"ConsumerAccount"> | Date | string
|
|
||||||
updated_at?: Prisma.DateTimeFilter<"ConsumerAccount"> | Date | string
|
|
||||||
consumer_id?: Prisma.StringFilter<"ConsumerAccount"> | string
|
|
||||||
account_id?: Prisma.StringFilter<"ConsumerAccount"> | string
|
|
||||||
}
|
|
||||||
|
|
||||||
export type ConsumerAccountCreateWithoutPosInput = {
|
|
||||||
id?: string
|
|
||||||
role: $Enums.ConsumerRole
|
|
||||||
created_at?: Date | string
|
|
||||||
updated_at?: Date | string
|
|
||||||
consumer: Prisma.ConsumerCreateNestedOneWithoutAccountsInput
|
|
||||||
account: Prisma.AccountCreateNestedOneWithoutConsumer_accountInput
|
|
||||||
permission?: Prisma.PermissionConsumerCreateNestedOneWithoutConsumer_accountInput
|
|
||||||
account_allocation?: Prisma.LicenseAccountAllocationCreateNestedOneWithoutAccountInput
|
|
||||||
sales_invoices?: Prisma.SalesInvoiceCreateNestedManyWithoutConsumer_accountInput
|
|
||||||
}
|
|
||||||
|
|
||||||
export type ConsumerAccountUncheckedCreateWithoutPosInput = {
|
|
||||||
id?: string
|
|
||||||
role: $Enums.ConsumerRole
|
|
||||||
created_at?: Date | string
|
|
||||||
updated_at?: Date | string
|
|
||||||
consumer_id: string
|
|
||||||
account_id: string
|
|
||||||
permission?: Prisma.PermissionConsumerUncheckedCreateNestedOneWithoutConsumer_accountInput
|
|
||||||
account_allocation?: Prisma.LicenseAccountAllocationUncheckedCreateNestedOneWithoutAccountInput
|
|
||||||
sales_invoices?: Prisma.SalesInvoiceUncheckedCreateNestedManyWithoutConsumer_accountInput
|
|
||||||
}
|
|
||||||
|
|
||||||
export type ConsumerAccountCreateOrConnectWithoutPosInput = {
|
|
||||||
where: Prisma.ConsumerAccountWhereUniqueInput
|
|
||||||
create: Prisma.XOR<Prisma.ConsumerAccountCreateWithoutPosInput, Prisma.ConsumerAccountUncheckedCreateWithoutPosInput>
|
|
||||||
}
|
|
||||||
|
|
||||||
export type ConsumerAccountUpsertWithoutPosInput = {
|
|
||||||
update: Prisma.XOR<Prisma.ConsumerAccountUpdateWithoutPosInput, Prisma.ConsumerAccountUncheckedUpdateWithoutPosInput>
|
|
||||||
create: Prisma.XOR<Prisma.ConsumerAccountCreateWithoutPosInput, Prisma.ConsumerAccountUncheckedCreateWithoutPosInput>
|
|
||||||
where?: Prisma.ConsumerAccountWhereInput
|
|
||||||
}
|
|
||||||
|
|
||||||
export type ConsumerAccountUpdateToOneWithWhereWithoutPosInput = {
|
|
||||||
where?: Prisma.ConsumerAccountWhereInput
|
|
||||||
data: Prisma.XOR<Prisma.ConsumerAccountUpdateWithoutPosInput, Prisma.ConsumerAccountUncheckedUpdateWithoutPosInput>
|
|
||||||
}
|
|
||||||
|
|
||||||
export type ConsumerAccountUpdateWithoutPosInput = {
|
|
||||||
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
||||||
role?: Prisma.EnumConsumerRoleFieldUpdateOperationsInput | $Enums.ConsumerRole
|
|
||||||
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
||||||
updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
||||||
consumer?: Prisma.ConsumerUpdateOneRequiredWithoutAccountsNestedInput
|
|
||||||
account?: Prisma.AccountUpdateOneRequiredWithoutConsumer_accountNestedInput
|
|
||||||
permission?: Prisma.PermissionConsumerUpdateOneWithoutConsumer_accountNestedInput
|
|
||||||
account_allocation?: Prisma.LicenseAccountAllocationUpdateOneWithoutAccountNestedInput
|
|
||||||
sales_invoices?: Prisma.SalesInvoiceUpdateManyWithoutConsumer_accountNestedInput
|
|
||||||
}
|
|
||||||
|
|
||||||
export type ConsumerAccountUncheckedUpdateWithoutPosInput = {
|
|
||||||
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
||||||
role?: Prisma.EnumConsumerRoleFieldUpdateOperationsInput | $Enums.ConsumerRole
|
|
||||||
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
||||||
updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
||||||
consumer_id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
||||||
account_id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
||||||
permission?: Prisma.PermissionConsumerUncheckedUpdateOneWithoutConsumer_accountNestedInput
|
|
||||||
account_allocation?: Prisma.LicenseAccountAllocationUncheckedUpdateOneWithoutAccountNestedInput
|
|
||||||
sales_invoices?: Prisma.SalesInvoiceUncheckedUpdateManyWithoutConsumer_accountNestedInput
|
|
||||||
}
|
|
||||||
|
|
||||||
export type ConsumerAccountCreateWithoutAccount_allocationInput = {
|
export type ConsumerAccountCreateWithoutAccount_allocationInput = {
|
||||||
id?: string
|
id?: string
|
||||||
role: $Enums.ConsumerRole
|
role: $Enums.ConsumerRole
|
||||||
@@ -840,6 +714,132 @@ export type ConsumerAccountUncheckedUpdateWithoutPermissionInput = {
|
|||||||
sales_invoices?: Prisma.SalesInvoiceUncheckedUpdateManyWithoutConsumer_accountNestedInput
|
sales_invoices?: Prisma.SalesInvoiceUncheckedUpdateManyWithoutConsumer_accountNestedInput
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export type ConsumerAccountCreateWithoutConsumerInput = {
|
||||||
|
id?: string
|
||||||
|
role: $Enums.ConsumerRole
|
||||||
|
created_at?: Date | string
|
||||||
|
updated_at?: Date | string
|
||||||
|
account: Prisma.AccountCreateNestedOneWithoutConsumer_accountInput
|
||||||
|
pos?: Prisma.PosCreateNestedOneWithoutAccountInput
|
||||||
|
permission?: Prisma.PermissionConsumerCreateNestedOneWithoutConsumer_accountInput
|
||||||
|
account_allocation?: Prisma.LicenseAccountAllocationCreateNestedOneWithoutAccountInput
|
||||||
|
sales_invoices?: Prisma.SalesInvoiceCreateNestedManyWithoutConsumer_accountInput
|
||||||
|
}
|
||||||
|
|
||||||
|
export type ConsumerAccountUncheckedCreateWithoutConsumerInput = {
|
||||||
|
id?: string
|
||||||
|
role: $Enums.ConsumerRole
|
||||||
|
created_at?: Date | string
|
||||||
|
updated_at?: Date | string
|
||||||
|
account_id: string
|
||||||
|
pos?: Prisma.PosUncheckedCreateNestedOneWithoutAccountInput
|
||||||
|
permission?: Prisma.PermissionConsumerUncheckedCreateNestedOneWithoutConsumer_accountInput
|
||||||
|
account_allocation?: Prisma.LicenseAccountAllocationUncheckedCreateNestedOneWithoutAccountInput
|
||||||
|
sales_invoices?: Prisma.SalesInvoiceUncheckedCreateNestedManyWithoutConsumer_accountInput
|
||||||
|
}
|
||||||
|
|
||||||
|
export type ConsumerAccountCreateOrConnectWithoutConsumerInput = {
|
||||||
|
where: Prisma.ConsumerAccountWhereUniqueInput
|
||||||
|
create: Prisma.XOR<Prisma.ConsumerAccountCreateWithoutConsumerInput, Prisma.ConsumerAccountUncheckedCreateWithoutConsumerInput>
|
||||||
|
}
|
||||||
|
|
||||||
|
export type ConsumerAccountCreateManyConsumerInputEnvelope = {
|
||||||
|
data: Prisma.ConsumerAccountCreateManyConsumerInput | Prisma.ConsumerAccountCreateManyConsumerInput[]
|
||||||
|
skipDuplicates?: boolean
|
||||||
|
}
|
||||||
|
|
||||||
|
export type ConsumerAccountUpsertWithWhereUniqueWithoutConsumerInput = {
|
||||||
|
where: Prisma.ConsumerAccountWhereUniqueInput
|
||||||
|
update: Prisma.XOR<Prisma.ConsumerAccountUpdateWithoutConsumerInput, Prisma.ConsumerAccountUncheckedUpdateWithoutConsumerInput>
|
||||||
|
create: Prisma.XOR<Prisma.ConsumerAccountCreateWithoutConsumerInput, Prisma.ConsumerAccountUncheckedCreateWithoutConsumerInput>
|
||||||
|
}
|
||||||
|
|
||||||
|
export type ConsumerAccountUpdateWithWhereUniqueWithoutConsumerInput = {
|
||||||
|
where: Prisma.ConsumerAccountWhereUniqueInput
|
||||||
|
data: Prisma.XOR<Prisma.ConsumerAccountUpdateWithoutConsumerInput, Prisma.ConsumerAccountUncheckedUpdateWithoutConsumerInput>
|
||||||
|
}
|
||||||
|
|
||||||
|
export type ConsumerAccountUpdateManyWithWhereWithoutConsumerInput = {
|
||||||
|
where: Prisma.ConsumerAccountScalarWhereInput
|
||||||
|
data: Prisma.XOR<Prisma.ConsumerAccountUpdateManyMutationInput, Prisma.ConsumerAccountUncheckedUpdateManyWithoutConsumerInput>
|
||||||
|
}
|
||||||
|
|
||||||
|
export type ConsumerAccountScalarWhereInput = {
|
||||||
|
AND?: Prisma.ConsumerAccountScalarWhereInput | Prisma.ConsumerAccountScalarWhereInput[]
|
||||||
|
OR?: Prisma.ConsumerAccountScalarWhereInput[]
|
||||||
|
NOT?: Prisma.ConsumerAccountScalarWhereInput | Prisma.ConsumerAccountScalarWhereInput[]
|
||||||
|
id?: Prisma.StringFilter<"ConsumerAccount"> | string
|
||||||
|
role?: Prisma.EnumConsumerRoleFilter<"ConsumerAccount"> | $Enums.ConsumerRole
|
||||||
|
created_at?: Prisma.DateTimeFilter<"ConsumerAccount"> | Date | string
|
||||||
|
updated_at?: Prisma.DateTimeFilter<"ConsumerAccount"> | Date | string
|
||||||
|
consumer_id?: Prisma.StringFilter<"ConsumerAccount"> | string
|
||||||
|
account_id?: Prisma.StringFilter<"ConsumerAccount"> | string
|
||||||
|
}
|
||||||
|
|
||||||
|
export type ConsumerAccountCreateWithoutPosInput = {
|
||||||
|
id?: string
|
||||||
|
role: $Enums.ConsumerRole
|
||||||
|
created_at?: Date | string
|
||||||
|
updated_at?: Date | string
|
||||||
|
consumer: Prisma.ConsumerCreateNestedOneWithoutAccountsInput
|
||||||
|
account: Prisma.AccountCreateNestedOneWithoutConsumer_accountInput
|
||||||
|
permission?: Prisma.PermissionConsumerCreateNestedOneWithoutConsumer_accountInput
|
||||||
|
account_allocation?: Prisma.LicenseAccountAllocationCreateNestedOneWithoutAccountInput
|
||||||
|
sales_invoices?: Prisma.SalesInvoiceCreateNestedManyWithoutConsumer_accountInput
|
||||||
|
}
|
||||||
|
|
||||||
|
export type ConsumerAccountUncheckedCreateWithoutPosInput = {
|
||||||
|
id?: string
|
||||||
|
role: $Enums.ConsumerRole
|
||||||
|
created_at?: Date | string
|
||||||
|
updated_at?: Date | string
|
||||||
|
consumer_id: string
|
||||||
|
account_id: string
|
||||||
|
permission?: Prisma.PermissionConsumerUncheckedCreateNestedOneWithoutConsumer_accountInput
|
||||||
|
account_allocation?: Prisma.LicenseAccountAllocationUncheckedCreateNestedOneWithoutAccountInput
|
||||||
|
sales_invoices?: Prisma.SalesInvoiceUncheckedCreateNestedManyWithoutConsumer_accountInput
|
||||||
|
}
|
||||||
|
|
||||||
|
export type ConsumerAccountCreateOrConnectWithoutPosInput = {
|
||||||
|
where: Prisma.ConsumerAccountWhereUniqueInput
|
||||||
|
create: Prisma.XOR<Prisma.ConsumerAccountCreateWithoutPosInput, Prisma.ConsumerAccountUncheckedCreateWithoutPosInput>
|
||||||
|
}
|
||||||
|
|
||||||
|
export type ConsumerAccountUpsertWithoutPosInput = {
|
||||||
|
update: Prisma.XOR<Prisma.ConsumerAccountUpdateWithoutPosInput, Prisma.ConsumerAccountUncheckedUpdateWithoutPosInput>
|
||||||
|
create: Prisma.XOR<Prisma.ConsumerAccountCreateWithoutPosInput, Prisma.ConsumerAccountUncheckedCreateWithoutPosInput>
|
||||||
|
where?: Prisma.ConsumerAccountWhereInput
|
||||||
|
}
|
||||||
|
|
||||||
|
export type ConsumerAccountUpdateToOneWithWhereWithoutPosInput = {
|
||||||
|
where?: Prisma.ConsumerAccountWhereInput
|
||||||
|
data: Prisma.XOR<Prisma.ConsumerAccountUpdateWithoutPosInput, Prisma.ConsumerAccountUncheckedUpdateWithoutPosInput>
|
||||||
|
}
|
||||||
|
|
||||||
|
export type ConsumerAccountUpdateWithoutPosInput = {
|
||||||
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||||
|
role?: Prisma.EnumConsumerRoleFieldUpdateOperationsInput | $Enums.ConsumerRole
|
||||||
|
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||||
|
updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||||
|
consumer?: Prisma.ConsumerUpdateOneRequiredWithoutAccountsNestedInput
|
||||||
|
account?: Prisma.AccountUpdateOneRequiredWithoutConsumer_accountNestedInput
|
||||||
|
permission?: Prisma.PermissionConsumerUpdateOneWithoutConsumer_accountNestedInput
|
||||||
|
account_allocation?: Prisma.LicenseAccountAllocationUpdateOneWithoutAccountNestedInput
|
||||||
|
sales_invoices?: Prisma.SalesInvoiceUpdateManyWithoutConsumer_accountNestedInput
|
||||||
|
}
|
||||||
|
|
||||||
|
export type ConsumerAccountUncheckedUpdateWithoutPosInput = {
|
||||||
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||||
|
role?: Prisma.EnumConsumerRoleFieldUpdateOperationsInput | $Enums.ConsumerRole
|
||||||
|
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||||
|
updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||||
|
consumer_id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||||
|
account_id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||||
|
permission?: Prisma.PermissionConsumerUncheckedUpdateOneWithoutConsumer_accountNestedInput
|
||||||
|
account_allocation?: Prisma.LicenseAccountAllocationUncheckedUpdateOneWithoutAccountNestedInput
|
||||||
|
sales_invoices?: Prisma.SalesInvoiceUncheckedUpdateManyWithoutConsumer_accountNestedInput
|
||||||
|
}
|
||||||
|
|
||||||
export type ConsumerAccountCreateWithoutSales_invoicesInput = {
|
export type ConsumerAccountCreateWithoutSales_invoicesInput = {
|
||||||
id?: string
|
id?: string
|
||||||
role: $Enums.ConsumerRole
|
role: $Enums.ConsumerRole
|
||||||
|
|||||||
@@ -512,16 +512,6 @@ export type ConsumerDevicesUncheckedUpdateManyInput = {
|
|||||||
consumer_id?: Prisma.StringFieldUpdateOperationsInput | string
|
consumer_id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||||
}
|
}
|
||||||
|
|
||||||
export type ConsumerDevicesListRelationFilter = {
|
|
||||||
every?: Prisma.ConsumerDevicesWhereInput
|
|
||||||
some?: Prisma.ConsumerDevicesWhereInput
|
|
||||||
none?: Prisma.ConsumerDevicesWhereInput
|
|
||||||
}
|
|
||||||
|
|
||||||
export type ConsumerDevicesOrderByRelationAggregateInput = {
|
|
||||||
_count?: Prisma.SortOrder
|
|
||||||
}
|
|
||||||
|
|
||||||
export type ConsumerDevicesOrderByRelevanceInput = {
|
export type ConsumerDevicesOrderByRelevanceInput = {
|
||||||
fields: Prisma.ConsumerDevicesOrderByRelevanceFieldEnum | Prisma.ConsumerDevicesOrderByRelevanceFieldEnum[]
|
fields: Prisma.ConsumerDevicesOrderByRelevanceFieldEnum | Prisma.ConsumerDevicesOrderByRelevanceFieldEnum[]
|
||||||
sort: Prisma.SortOrder
|
sort: Prisma.SortOrder
|
||||||
@@ -588,6 +578,20 @@ export type ConsumerDevicesMinOrderByAggregateInput = {
|
|||||||
consumer_id?: Prisma.SortOrder
|
consumer_id?: Prisma.SortOrder
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export type ConsumerDevicesListRelationFilter = {
|
||||||
|
every?: Prisma.ConsumerDevicesWhereInput
|
||||||
|
some?: Prisma.ConsumerDevicesWhereInput
|
||||||
|
none?: Prisma.ConsumerDevicesWhereInput
|
||||||
|
}
|
||||||
|
|
||||||
|
export type ConsumerDevicesOrderByRelationAggregateInput = {
|
||||||
|
_count?: Prisma.SortOrder
|
||||||
|
}
|
||||||
|
|
||||||
|
export type EnumApplicationPublisherFieldUpdateOperationsInput = {
|
||||||
|
set?: $Enums.ApplicationPublisher
|
||||||
|
}
|
||||||
|
|
||||||
export type ConsumerDevicesCreateNestedManyWithoutConsumerInput = {
|
export type ConsumerDevicesCreateNestedManyWithoutConsumerInput = {
|
||||||
create?: Prisma.XOR<Prisma.ConsumerDevicesCreateWithoutConsumerInput, Prisma.ConsumerDevicesUncheckedCreateWithoutConsumerInput> | Prisma.ConsumerDevicesCreateWithoutConsumerInput[] | Prisma.ConsumerDevicesUncheckedCreateWithoutConsumerInput[]
|
create?: Prisma.XOR<Prisma.ConsumerDevicesCreateWithoutConsumerInput, Prisma.ConsumerDevicesUncheckedCreateWithoutConsumerInput> | Prisma.ConsumerDevicesCreateWithoutConsumerInput[] | Prisma.ConsumerDevicesUncheckedCreateWithoutConsumerInput[]
|
||||||
connectOrCreate?: Prisma.ConsumerDevicesCreateOrConnectWithoutConsumerInput | Prisma.ConsumerDevicesCreateOrConnectWithoutConsumerInput[]
|
connectOrCreate?: Prisma.ConsumerDevicesCreateOrConnectWithoutConsumerInput | Prisma.ConsumerDevicesCreateOrConnectWithoutConsumerInput[]
|
||||||
@@ -630,10 +634,6 @@ export type ConsumerDevicesUncheckedUpdateManyWithoutConsumerNestedInput = {
|
|||||||
deleteMany?: Prisma.ConsumerDevicesScalarWhereInput | Prisma.ConsumerDevicesScalarWhereInput[]
|
deleteMany?: Prisma.ConsumerDevicesScalarWhereInput | Prisma.ConsumerDevicesScalarWhereInput[]
|
||||||
}
|
}
|
||||||
|
|
||||||
export type EnumApplicationPublisherFieldUpdateOperationsInput = {
|
|
||||||
set?: $Enums.ApplicationPublisher
|
|
||||||
}
|
|
||||||
|
|
||||||
export type ConsumerDevicesCreateWithoutConsumerInput = {
|
export type ConsumerDevicesCreateWithoutConsumerInput = {
|
||||||
uuid: string
|
uuid: string
|
||||||
app_version: string
|
app_version: string
|
||||||
|
|||||||
@@ -345,6 +345,16 @@ export type ConsumerIndividualUncheckedUpdateManyInput = {
|
|||||||
consumer_id?: Prisma.StringFieldUpdateOperationsInput | string
|
consumer_id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export type ConsumerIndividualListRelationFilter = {
|
||||||
|
every?: Prisma.ConsumerIndividualWhereInput
|
||||||
|
some?: Prisma.ConsumerIndividualWhereInput
|
||||||
|
none?: Prisma.ConsumerIndividualWhereInput
|
||||||
|
}
|
||||||
|
|
||||||
|
export type ConsumerIndividualOrderByRelationAggregateInput = {
|
||||||
|
_count?: Prisma.SortOrder
|
||||||
|
}
|
||||||
|
|
||||||
export type ConsumerIndividualNullableScalarRelationFilter = {
|
export type ConsumerIndividualNullableScalarRelationFilter = {
|
||||||
is?: Prisma.ConsumerIndividualWhereInput | null
|
is?: Prisma.ConsumerIndividualWhereInput | null
|
||||||
isNot?: Prisma.ConsumerIndividualWhereInput | null
|
isNot?: Prisma.ConsumerIndividualWhereInput | null
|
||||||
@@ -399,48 +409,6 @@ export type ConsumerIndividualMinOrderByAggregateInput = {
|
|||||||
consumer_id?: Prisma.SortOrder
|
consumer_id?: Prisma.SortOrder
|
||||||
}
|
}
|
||||||
|
|
||||||
export type ConsumerIndividualListRelationFilter = {
|
|
||||||
every?: Prisma.ConsumerIndividualWhereInput
|
|
||||||
some?: Prisma.ConsumerIndividualWhereInput
|
|
||||||
none?: Prisma.ConsumerIndividualWhereInput
|
|
||||||
}
|
|
||||||
|
|
||||||
export type ConsumerIndividualOrderByRelationAggregateInput = {
|
|
||||||
_count?: Prisma.SortOrder
|
|
||||||
}
|
|
||||||
|
|
||||||
export type ConsumerIndividualCreateNestedOneWithoutConsumerInput = {
|
|
||||||
create?: Prisma.XOR<Prisma.ConsumerIndividualCreateWithoutConsumerInput, Prisma.ConsumerIndividualUncheckedCreateWithoutConsumerInput>
|
|
||||||
connectOrCreate?: Prisma.ConsumerIndividualCreateOrConnectWithoutConsumerInput
|
|
||||||
connect?: Prisma.ConsumerIndividualWhereUniqueInput
|
|
||||||
}
|
|
||||||
|
|
||||||
export type ConsumerIndividualUncheckedCreateNestedOneWithoutConsumerInput = {
|
|
||||||
create?: Prisma.XOR<Prisma.ConsumerIndividualCreateWithoutConsumerInput, Prisma.ConsumerIndividualUncheckedCreateWithoutConsumerInput>
|
|
||||||
connectOrCreate?: Prisma.ConsumerIndividualCreateOrConnectWithoutConsumerInput
|
|
||||||
connect?: Prisma.ConsumerIndividualWhereUniqueInput
|
|
||||||
}
|
|
||||||
|
|
||||||
export type ConsumerIndividualUpdateOneWithoutConsumerNestedInput = {
|
|
||||||
create?: Prisma.XOR<Prisma.ConsumerIndividualCreateWithoutConsumerInput, Prisma.ConsumerIndividualUncheckedCreateWithoutConsumerInput>
|
|
||||||
connectOrCreate?: Prisma.ConsumerIndividualCreateOrConnectWithoutConsumerInput
|
|
||||||
upsert?: Prisma.ConsumerIndividualUpsertWithoutConsumerInput
|
|
||||||
disconnect?: Prisma.ConsumerIndividualWhereInput | boolean
|
|
||||||
delete?: Prisma.ConsumerIndividualWhereInput | boolean
|
|
||||||
connect?: Prisma.ConsumerIndividualWhereUniqueInput
|
|
||||||
update?: Prisma.XOR<Prisma.XOR<Prisma.ConsumerIndividualUpdateToOneWithWhereWithoutConsumerInput, Prisma.ConsumerIndividualUpdateWithoutConsumerInput>, Prisma.ConsumerIndividualUncheckedUpdateWithoutConsumerInput>
|
|
||||||
}
|
|
||||||
|
|
||||||
export type ConsumerIndividualUncheckedUpdateOneWithoutConsumerNestedInput = {
|
|
||||||
create?: Prisma.XOR<Prisma.ConsumerIndividualCreateWithoutConsumerInput, Prisma.ConsumerIndividualUncheckedCreateWithoutConsumerInput>
|
|
||||||
connectOrCreate?: Prisma.ConsumerIndividualCreateOrConnectWithoutConsumerInput
|
|
||||||
upsert?: Prisma.ConsumerIndividualUpsertWithoutConsumerInput
|
|
||||||
disconnect?: Prisma.ConsumerIndividualWhereInput | boolean
|
|
||||||
delete?: Prisma.ConsumerIndividualWhereInput | boolean
|
|
||||||
connect?: Prisma.ConsumerIndividualWhereUniqueInput
|
|
||||||
update?: Prisma.XOR<Prisma.XOR<Prisma.ConsumerIndividualUpdateToOneWithWhereWithoutConsumerInput, Prisma.ConsumerIndividualUpdateWithoutConsumerInput>, Prisma.ConsumerIndividualUncheckedUpdateWithoutConsumerInput>
|
|
||||||
}
|
|
||||||
|
|
||||||
export type ConsumerIndividualCreateNestedManyWithoutPartnerInput = {
|
export type ConsumerIndividualCreateNestedManyWithoutPartnerInput = {
|
||||||
create?: Prisma.XOR<Prisma.ConsumerIndividualCreateWithoutPartnerInput, Prisma.ConsumerIndividualUncheckedCreateWithoutPartnerInput> | Prisma.ConsumerIndividualCreateWithoutPartnerInput[] | Prisma.ConsumerIndividualUncheckedCreateWithoutPartnerInput[]
|
create?: Prisma.XOR<Prisma.ConsumerIndividualCreateWithoutPartnerInput, Prisma.ConsumerIndividualUncheckedCreateWithoutPartnerInput> | Prisma.ConsumerIndividualCreateWithoutPartnerInput[] | Prisma.ConsumerIndividualUncheckedCreateWithoutPartnerInput[]
|
||||||
connectOrCreate?: Prisma.ConsumerIndividualCreateOrConnectWithoutPartnerInput | Prisma.ConsumerIndividualCreateOrConnectWithoutPartnerInput[]
|
connectOrCreate?: Prisma.ConsumerIndividualCreateOrConnectWithoutPartnerInput | Prisma.ConsumerIndividualCreateOrConnectWithoutPartnerInput[]
|
||||||
@@ -483,60 +451,36 @@ export type ConsumerIndividualUncheckedUpdateManyWithoutPartnerNestedInput = {
|
|||||||
deleteMany?: Prisma.ConsumerIndividualScalarWhereInput | Prisma.ConsumerIndividualScalarWhereInput[]
|
deleteMany?: Prisma.ConsumerIndividualScalarWhereInput | Prisma.ConsumerIndividualScalarWhereInput[]
|
||||||
}
|
}
|
||||||
|
|
||||||
export type ConsumerIndividualCreateWithoutConsumerInput = {
|
export type ConsumerIndividualCreateNestedOneWithoutConsumerInput = {
|
||||||
first_name: string
|
create?: Prisma.XOR<Prisma.ConsumerIndividualCreateWithoutConsumerInput, Prisma.ConsumerIndividualUncheckedCreateWithoutConsumerInput>
|
||||||
last_name: string
|
connectOrCreate?: Prisma.ConsumerIndividualCreateOrConnectWithoutConsumerInput
|
||||||
mobile_number: string
|
connect?: Prisma.ConsumerIndividualWhereUniqueInput
|
||||||
national_code: string
|
|
||||||
created_at?: Date | string
|
|
||||||
updated_at?: Date | string
|
|
||||||
partner: Prisma.PartnerCreateNestedOneWithoutConsumers_individualInput
|
|
||||||
}
|
}
|
||||||
|
|
||||||
export type ConsumerIndividualUncheckedCreateWithoutConsumerInput = {
|
export type ConsumerIndividualUncheckedCreateNestedOneWithoutConsumerInput = {
|
||||||
first_name: string
|
create?: Prisma.XOR<Prisma.ConsumerIndividualCreateWithoutConsumerInput, Prisma.ConsumerIndividualUncheckedCreateWithoutConsumerInput>
|
||||||
last_name: string
|
connectOrCreate?: Prisma.ConsumerIndividualCreateOrConnectWithoutConsumerInput
|
||||||
mobile_number: string
|
connect?: Prisma.ConsumerIndividualWhereUniqueInput
|
||||||
national_code: string
|
|
||||||
created_at?: Date | string
|
|
||||||
updated_at?: Date | string
|
|
||||||
partner_id: string
|
|
||||||
}
|
}
|
||||||
|
|
||||||
export type ConsumerIndividualCreateOrConnectWithoutConsumerInput = {
|
export type ConsumerIndividualUpdateOneWithoutConsumerNestedInput = {
|
||||||
where: Prisma.ConsumerIndividualWhereUniqueInput
|
create?: Prisma.XOR<Prisma.ConsumerIndividualCreateWithoutConsumerInput, Prisma.ConsumerIndividualUncheckedCreateWithoutConsumerInput>
|
||||||
create: Prisma.XOR<Prisma.ConsumerIndividualCreateWithoutConsumerInput, Prisma.ConsumerIndividualUncheckedCreateWithoutConsumerInput>
|
connectOrCreate?: Prisma.ConsumerIndividualCreateOrConnectWithoutConsumerInput
|
||||||
|
upsert?: Prisma.ConsumerIndividualUpsertWithoutConsumerInput
|
||||||
|
disconnect?: Prisma.ConsumerIndividualWhereInput | boolean
|
||||||
|
delete?: Prisma.ConsumerIndividualWhereInput | boolean
|
||||||
|
connect?: Prisma.ConsumerIndividualWhereUniqueInput
|
||||||
|
update?: Prisma.XOR<Prisma.XOR<Prisma.ConsumerIndividualUpdateToOneWithWhereWithoutConsumerInput, Prisma.ConsumerIndividualUpdateWithoutConsumerInput>, Prisma.ConsumerIndividualUncheckedUpdateWithoutConsumerInput>
|
||||||
}
|
}
|
||||||
|
|
||||||
export type ConsumerIndividualUpsertWithoutConsumerInput = {
|
export type ConsumerIndividualUncheckedUpdateOneWithoutConsumerNestedInput = {
|
||||||
update: Prisma.XOR<Prisma.ConsumerIndividualUpdateWithoutConsumerInput, Prisma.ConsumerIndividualUncheckedUpdateWithoutConsumerInput>
|
create?: Prisma.XOR<Prisma.ConsumerIndividualCreateWithoutConsumerInput, Prisma.ConsumerIndividualUncheckedCreateWithoutConsumerInput>
|
||||||
create: Prisma.XOR<Prisma.ConsumerIndividualCreateWithoutConsumerInput, Prisma.ConsumerIndividualUncheckedCreateWithoutConsumerInput>
|
connectOrCreate?: Prisma.ConsumerIndividualCreateOrConnectWithoutConsumerInput
|
||||||
where?: Prisma.ConsumerIndividualWhereInput
|
upsert?: Prisma.ConsumerIndividualUpsertWithoutConsumerInput
|
||||||
}
|
disconnect?: Prisma.ConsumerIndividualWhereInput | boolean
|
||||||
|
delete?: Prisma.ConsumerIndividualWhereInput | boolean
|
||||||
export type ConsumerIndividualUpdateToOneWithWhereWithoutConsumerInput = {
|
connect?: Prisma.ConsumerIndividualWhereUniqueInput
|
||||||
where?: Prisma.ConsumerIndividualWhereInput
|
update?: Prisma.XOR<Prisma.XOR<Prisma.ConsumerIndividualUpdateToOneWithWhereWithoutConsumerInput, Prisma.ConsumerIndividualUpdateWithoutConsumerInput>, Prisma.ConsumerIndividualUncheckedUpdateWithoutConsumerInput>
|
||||||
data: Prisma.XOR<Prisma.ConsumerIndividualUpdateWithoutConsumerInput, Prisma.ConsumerIndividualUncheckedUpdateWithoutConsumerInput>
|
|
||||||
}
|
|
||||||
|
|
||||||
export type ConsumerIndividualUpdateWithoutConsumerInput = {
|
|
||||||
first_name?: Prisma.StringFieldUpdateOperationsInput | string
|
|
||||||
last_name?: Prisma.StringFieldUpdateOperationsInput | string
|
|
||||||
mobile_number?: Prisma.StringFieldUpdateOperationsInput | string
|
|
||||||
national_code?: Prisma.StringFieldUpdateOperationsInput | string
|
|
||||||
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
||||||
updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
||||||
partner?: Prisma.PartnerUpdateOneRequiredWithoutConsumers_individualNestedInput
|
|
||||||
}
|
|
||||||
|
|
||||||
export type ConsumerIndividualUncheckedUpdateWithoutConsumerInput = {
|
|
||||||
first_name?: Prisma.StringFieldUpdateOperationsInput | string
|
|
||||||
last_name?: Prisma.StringFieldUpdateOperationsInput | string
|
|
||||||
mobile_number?: Prisma.StringFieldUpdateOperationsInput | string
|
|
||||||
national_code?: Prisma.StringFieldUpdateOperationsInput | string
|
|
||||||
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
||||||
updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
||||||
partner_id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
||||||
}
|
}
|
||||||
|
|
||||||
export type ConsumerIndividualCreateWithoutPartnerInput = {
|
export type ConsumerIndividualCreateWithoutPartnerInput = {
|
||||||
@@ -599,6 +543,62 @@ export type ConsumerIndividualScalarWhereInput = {
|
|||||||
consumer_id?: Prisma.StringFilter<"ConsumerIndividual"> | string
|
consumer_id?: Prisma.StringFilter<"ConsumerIndividual"> | string
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export type ConsumerIndividualCreateWithoutConsumerInput = {
|
||||||
|
first_name: string
|
||||||
|
last_name: string
|
||||||
|
mobile_number: string
|
||||||
|
national_code: string
|
||||||
|
created_at?: Date | string
|
||||||
|
updated_at?: Date | string
|
||||||
|
partner: Prisma.PartnerCreateNestedOneWithoutConsumers_individualInput
|
||||||
|
}
|
||||||
|
|
||||||
|
export type ConsumerIndividualUncheckedCreateWithoutConsumerInput = {
|
||||||
|
first_name: string
|
||||||
|
last_name: string
|
||||||
|
mobile_number: string
|
||||||
|
national_code: string
|
||||||
|
created_at?: Date | string
|
||||||
|
updated_at?: Date | string
|
||||||
|
partner_id: string
|
||||||
|
}
|
||||||
|
|
||||||
|
export type ConsumerIndividualCreateOrConnectWithoutConsumerInput = {
|
||||||
|
where: Prisma.ConsumerIndividualWhereUniqueInput
|
||||||
|
create: Prisma.XOR<Prisma.ConsumerIndividualCreateWithoutConsumerInput, Prisma.ConsumerIndividualUncheckedCreateWithoutConsumerInput>
|
||||||
|
}
|
||||||
|
|
||||||
|
export type ConsumerIndividualUpsertWithoutConsumerInput = {
|
||||||
|
update: Prisma.XOR<Prisma.ConsumerIndividualUpdateWithoutConsumerInput, Prisma.ConsumerIndividualUncheckedUpdateWithoutConsumerInput>
|
||||||
|
create: Prisma.XOR<Prisma.ConsumerIndividualCreateWithoutConsumerInput, Prisma.ConsumerIndividualUncheckedCreateWithoutConsumerInput>
|
||||||
|
where?: Prisma.ConsumerIndividualWhereInput
|
||||||
|
}
|
||||||
|
|
||||||
|
export type ConsumerIndividualUpdateToOneWithWhereWithoutConsumerInput = {
|
||||||
|
where?: Prisma.ConsumerIndividualWhereInput
|
||||||
|
data: Prisma.XOR<Prisma.ConsumerIndividualUpdateWithoutConsumerInput, Prisma.ConsumerIndividualUncheckedUpdateWithoutConsumerInput>
|
||||||
|
}
|
||||||
|
|
||||||
|
export type ConsumerIndividualUpdateWithoutConsumerInput = {
|
||||||
|
first_name?: Prisma.StringFieldUpdateOperationsInput | string
|
||||||
|
last_name?: Prisma.StringFieldUpdateOperationsInput | string
|
||||||
|
mobile_number?: Prisma.StringFieldUpdateOperationsInput | string
|
||||||
|
national_code?: Prisma.StringFieldUpdateOperationsInput | string
|
||||||
|
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||||
|
updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||||
|
partner?: Prisma.PartnerUpdateOneRequiredWithoutConsumers_individualNestedInput
|
||||||
|
}
|
||||||
|
|
||||||
|
export type ConsumerIndividualUncheckedUpdateWithoutConsumerInput = {
|
||||||
|
first_name?: Prisma.StringFieldUpdateOperationsInput | string
|
||||||
|
last_name?: Prisma.StringFieldUpdateOperationsInput | string
|
||||||
|
mobile_number?: Prisma.StringFieldUpdateOperationsInput | string
|
||||||
|
national_code?: Prisma.StringFieldUpdateOperationsInput | string
|
||||||
|
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||||
|
updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||||
|
partner_id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||||
|
}
|
||||||
|
|
||||||
export type ConsumerIndividualCreateManyPartnerInput = {
|
export type ConsumerIndividualCreateManyPartnerInput = {
|
||||||
first_name: string
|
first_name: string
|
||||||
last_name: string
|
last_name: string
|
||||||
|
|||||||
@@ -306,6 +306,16 @@ export type ConsumerLegalUncheckedUpdateManyInput = {
|
|||||||
consumer_id?: Prisma.StringFieldUpdateOperationsInput | string
|
consumer_id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export type ConsumerLegalListRelationFilter = {
|
||||||
|
every?: Prisma.ConsumerLegalWhereInput
|
||||||
|
some?: Prisma.ConsumerLegalWhereInput
|
||||||
|
none?: Prisma.ConsumerLegalWhereInput
|
||||||
|
}
|
||||||
|
|
||||||
|
export type ConsumerLegalOrderByRelationAggregateInput = {
|
||||||
|
_count?: Prisma.SortOrder
|
||||||
|
}
|
||||||
|
|
||||||
export type ConsumerLegalNullableScalarRelationFilter = {
|
export type ConsumerLegalNullableScalarRelationFilter = {
|
||||||
is?: Prisma.ConsumerLegalWhereInput | null
|
is?: Prisma.ConsumerLegalWhereInput | null
|
||||||
isNot?: Prisma.ConsumerLegalWhereInput | null
|
isNot?: Prisma.ConsumerLegalWhereInput | null
|
||||||
@@ -349,48 +359,6 @@ export type ConsumerLegalMinOrderByAggregateInput = {
|
|||||||
consumer_id?: Prisma.SortOrder
|
consumer_id?: Prisma.SortOrder
|
||||||
}
|
}
|
||||||
|
|
||||||
export type ConsumerLegalListRelationFilter = {
|
|
||||||
every?: Prisma.ConsumerLegalWhereInput
|
|
||||||
some?: Prisma.ConsumerLegalWhereInput
|
|
||||||
none?: Prisma.ConsumerLegalWhereInput
|
|
||||||
}
|
|
||||||
|
|
||||||
export type ConsumerLegalOrderByRelationAggregateInput = {
|
|
||||||
_count?: Prisma.SortOrder
|
|
||||||
}
|
|
||||||
|
|
||||||
export type ConsumerLegalCreateNestedOneWithoutConsumerInput = {
|
|
||||||
create?: Prisma.XOR<Prisma.ConsumerLegalCreateWithoutConsumerInput, Prisma.ConsumerLegalUncheckedCreateWithoutConsumerInput>
|
|
||||||
connectOrCreate?: Prisma.ConsumerLegalCreateOrConnectWithoutConsumerInput
|
|
||||||
connect?: Prisma.ConsumerLegalWhereUniqueInput
|
|
||||||
}
|
|
||||||
|
|
||||||
export type ConsumerLegalUncheckedCreateNestedOneWithoutConsumerInput = {
|
|
||||||
create?: Prisma.XOR<Prisma.ConsumerLegalCreateWithoutConsumerInput, Prisma.ConsumerLegalUncheckedCreateWithoutConsumerInput>
|
|
||||||
connectOrCreate?: Prisma.ConsumerLegalCreateOrConnectWithoutConsumerInput
|
|
||||||
connect?: Prisma.ConsumerLegalWhereUniqueInput
|
|
||||||
}
|
|
||||||
|
|
||||||
export type ConsumerLegalUpdateOneWithoutConsumerNestedInput = {
|
|
||||||
create?: Prisma.XOR<Prisma.ConsumerLegalCreateWithoutConsumerInput, Prisma.ConsumerLegalUncheckedCreateWithoutConsumerInput>
|
|
||||||
connectOrCreate?: Prisma.ConsumerLegalCreateOrConnectWithoutConsumerInput
|
|
||||||
upsert?: Prisma.ConsumerLegalUpsertWithoutConsumerInput
|
|
||||||
disconnect?: Prisma.ConsumerLegalWhereInput | boolean
|
|
||||||
delete?: Prisma.ConsumerLegalWhereInput | boolean
|
|
||||||
connect?: Prisma.ConsumerLegalWhereUniqueInput
|
|
||||||
update?: Prisma.XOR<Prisma.XOR<Prisma.ConsumerLegalUpdateToOneWithWhereWithoutConsumerInput, Prisma.ConsumerLegalUpdateWithoutConsumerInput>, Prisma.ConsumerLegalUncheckedUpdateWithoutConsumerInput>
|
|
||||||
}
|
|
||||||
|
|
||||||
export type ConsumerLegalUncheckedUpdateOneWithoutConsumerNestedInput = {
|
|
||||||
create?: Prisma.XOR<Prisma.ConsumerLegalCreateWithoutConsumerInput, Prisma.ConsumerLegalUncheckedCreateWithoutConsumerInput>
|
|
||||||
connectOrCreate?: Prisma.ConsumerLegalCreateOrConnectWithoutConsumerInput
|
|
||||||
upsert?: Prisma.ConsumerLegalUpsertWithoutConsumerInput
|
|
||||||
disconnect?: Prisma.ConsumerLegalWhereInput | boolean
|
|
||||||
delete?: Prisma.ConsumerLegalWhereInput | boolean
|
|
||||||
connect?: Prisma.ConsumerLegalWhereUniqueInput
|
|
||||||
update?: Prisma.XOR<Prisma.XOR<Prisma.ConsumerLegalUpdateToOneWithWhereWithoutConsumerInput, Prisma.ConsumerLegalUpdateWithoutConsumerInput>, Prisma.ConsumerLegalUncheckedUpdateWithoutConsumerInput>
|
|
||||||
}
|
|
||||||
|
|
||||||
export type ConsumerLegalCreateNestedManyWithoutPartnerInput = {
|
export type ConsumerLegalCreateNestedManyWithoutPartnerInput = {
|
||||||
create?: Prisma.XOR<Prisma.ConsumerLegalCreateWithoutPartnerInput, Prisma.ConsumerLegalUncheckedCreateWithoutPartnerInput> | Prisma.ConsumerLegalCreateWithoutPartnerInput[] | Prisma.ConsumerLegalUncheckedCreateWithoutPartnerInput[]
|
create?: Prisma.XOR<Prisma.ConsumerLegalCreateWithoutPartnerInput, Prisma.ConsumerLegalUncheckedCreateWithoutPartnerInput> | Prisma.ConsumerLegalCreateWithoutPartnerInput[] | Prisma.ConsumerLegalUncheckedCreateWithoutPartnerInput[]
|
||||||
connectOrCreate?: Prisma.ConsumerLegalCreateOrConnectWithoutPartnerInput | Prisma.ConsumerLegalCreateOrConnectWithoutPartnerInput[]
|
connectOrCreate?: Prisma.ConsumerLegalCreateOrConnectWithoutPartnerInput | Prisma.ConsumerLegalCreateOrConnectWithoutPartnerInput[]
|
||||||
@@ -433,52 +401,36 @@ export type ConsumerLegalUncheckedUpdateManyWithoutPartnerNestedInput = {
|
|||||||
deleteMany?: Prisma.ConsumerLegalScalarWhereInput | Prisma.ConsumerLegalScalarWhereInput[]
|
deleteMany?: Prisma.ConsumerLegalScalarWhereInput | Prisma.ConsumerLegalScalarWhereInput[]
|
||||||
}
|
}
|
||||||
|
|
||||||
export type ConsumerLegalCreateWithoutConsumerInput = {
|
export type ConsumerLegalCreateNestedOneWithoutConsumerInput = {
|
||||||
name: string
|
create?: Prisma.XOR<Prisma.ConsumerLegalCreateWithoutConsumerInput, Prisma.ConsumerLegalUncheckedCreateWithoutConsumerInput>
|
||||||
registration_code: string
|
connectOrCreate?: Prisma.ConsumerLegalCreateOrConnectWithoutConsumerInput
|
||||||
created_at?: Date | string
|
connect?: Prisma.ConsumerLegalWhereUniqueInput
|
||||||
updated_at?: Date | string
|
|
||||||
partner: Prisma.PartnerCreateNestedOneWithoutConsumers_legalInput
|
|
||||||
}
|
}
|
||||||
|
|
||||||
export type ConsumerLegalUncheckedCreateWithoutConsumerInput = {
|
export type ConsumerLegalUncheckedCreateNestedOneWithoutConsumerInput = {
|
||||||
name: string
|
create?: Prisma.XOR<Prisma.ConsumerLegalCreateWithoutConsumerInput, Prisma.ConsumerLegalUncheckedCreateWithoutConsumerInput>
|
||||||
registration_code: string
|
connectOrCreate?: Prisma.ConsumerLegalCreateOrConnectWithoutConsumerInput
|
||||||
created_at?: Date | string
|
connect?: Prisma.ConsumerLegalWhereUniqueInput
|
||||||
updated_at?: Date | string
|
|
||||||
partner_id: string
|
|
||||||
}
|
}
|
||||||
|
|
||||||
export type ConsumerLegalCreateOrConnectWithoutConsumerInput = {
|
export type ConsumerLegalUpdateOneWithoutConsumerNestedInput = {
|
||||||
where: Prisma.ConsumerLegalWhereUniqueInput
|
create?: Prisma.XOR<Prisma.ConsumerLegalCreateWithoutConsumerInput, Prisma.ConsumerLegalUncheckedCreateWithoutConsumerInput>
|
||||||
create: Prisma.XOR<Prisma.ConsumerLegalCreateWithoutConsumerInput, Prisma.ConsumerLegalUncheckedCreateWithoutConsumerInput>
|
connectOrCreate?: Prisma.ConsumerLegalCreateOrConnectWithoutConsumerInput
|
||||||
|
upsert?: Prisma.ConsumerLegalUpsertWithoutConsumerInput
|
||||||
|
disconnect?: Prisma.ConsumerLegalWhereInput | boolean
|
||||||
|
delete?: Prisma.ConsumerLegalWhereInput | boolean
|
||||||
|
connect?: Prisma.ConsumerLegalWhereUniqueInput
|
||||||
|
update?: Prisma.XOR<Prisma.XOR<Prisma.ConsumerLegalUpdateToOneWithWhereWithoutConsumerInput, Prisma.ConsumerLegalUpdateWithoutConsumerInput>, Prisma.ConsumerLegalUncheckedUpdateWithoutConsumerInput>
|
||||||
}
|
}
|
||||||
|
|
||||||
export type ConsumerLegalUpsertWithoutConsumerInput = {
|
export type ConsumerLegalUncheckedUpdateOneWithoutConsumerNestedInput = {
|
||||||
update: Prisma.XOR<Prisma.ConsumerLegalUpdateWithoutConsumerInput, Prisma.ConsumerLegalUncheckedUpdateWithoutConsumerInput>
|
create?: Prisma.XOR<Prisma.ConsumerLegalCreateWithoutConsumerInput, Prisma.ConsumerLegalUncheckedCreateWithoutConsumerInput>
|
||||||
create: Prisma.XOR<Prisma.ConsumerLegalCreateWithoutConsumerInput, Prisma.ConsumerLegalUncheckedCreateWithoutConsumerInput>
|
connectOrCreate?: Prisma.ConsumerLegalCreateOrConnectWithoutConsumerInput
|
||||||
where?: Prisma.ConsumerLegalWhereInput
|
upsert?: Prisma.ConsumerLegalUpsertWithoutConsumerInput
|
||||||
}
|
disconnect?: Prisma.ConsumerLegalWhereInput | boolean
|
||||||
|
delete?: Prisma.ConsumerLegalWhereInput | boolean
|
||||||
export type ConsumerLegalUpdateToOneWithWhereWithoutConsumerInput = {
|
connect?: Prisma.ConsumerLegalWhereUniqueInput
|
||||||
where?: Prisma.ConsumerLegalWhereInput
|
update?: Prisma.XOR<Prisma.XOR<Prisma.ConsumerLegalUpdateToOneWithWhereWithoutConsumerInput, Prisma.ConsumerLegalUpdateWithoutConsumerInput>, Prisma.ConsumerLegalUncheckedUpdateWithoutConsumerInput>
|
||||||
data: Prisma.XOR<Prisma.ConsumerLegalUpdateWithoutConsumerInput, Prisma.ConsumerLegalUncheckedUpdateWithoutConsumerInput>
|
|
||||||
}
|
|
||||||
|
|
||||||
export type ConsumerLegalUpdateWithoutConsumerInput = {
|
|
||||||
name?: Prisma.StringFieldUpdateOperationsInput | string
|
|
||||||
registration_code?: Prisma.StringFieldUpdateOperationsInput | string
|
|
||||||
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
||||||
updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
||||||
partner?: Prisma.PartnerUpdateOneRequiredWithoutConsumers_legalNestedInput
|
|
||||||
}
|
|
||||||
|
|
||||||
export type ConsumerLegalUncheckedUpdateWithoutConsumerInput = {
|
|
||||||
name?: Prisma.StringFieldUpdateOperationsInput | string
|
|
||||||
registration_code?: Prisma.StringFieldUpdateOperationsInput | string
|
|
||||||
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
||||||
updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
||||||
partner_id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
||||||
}
|
}
|
||||||
|
|
||||||
export type ConsumerLegalCreateWithoutPartnerInput = {
|
export type ConsumerLegalCreateWithoutPartnerInput = {
|
||||||
@@ -535,6 +487,54 @@ export type ConsumerLegalScalarWhereInput = {
|
|||||||
consumer_id?: Prisma.StringFilter<"ConsumerLegal"> | string
|
consumer_id?: Prisma.StringFilter<"ConsumerLegal"> | string
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export type ConsumerLegalCreateWithoutConsumerInput = {
|
||||||
|
name: string
|
||||||
|
registration_code: string
|
||||||
|
created_at?: Date | string
|
||||||
|
updated_at?: Date | string
|
||||||
|
partner: Prisma.PartnerCreateNestedOneWithoutConsumers_legalInput
|
||||||
|
}
|
||||||
|
|
||||||
|
export type ConsumerLegalUncheckedCreateWithoutConsumerInput = {
|
||||||
|
name: string
|
||||||
|
registration_code: string
|
||||||
|
created_at?: Date | string
|
||||||
|
updated_at?: Date | string
|
||||||
|
partner_id: string
|
||||||
|
}
|
||||||
|
|
||||||
|
export type ConsumerLegalCreateOrConnectWithoutConsumerInput = {
|
||||||
|
where: Prisma.ConsumerLegalWhereUniqueInput
|
||||||
|
create: Prisma.XOR<Prisma.ConsumerLegalCreateWithoutConsumerInput, Prisma.ConsumerLegalUncheckedCreateWithoutConsumerInput>
|
||||||
|
}
|
||||||
|
|
||||||
|
export type ConsumerLegalUpsertWithoutConsumerInput = {
|
||||||
|
update: Prisma.XOR<Prisma.ConsumerLegalUpdateWithoutConsumerInput, Prisma.ConsumerLegalUncheckedUpdateWithoutConsumerInput>
|
||||||
|
create: Prisma.XOR<Prisma.ConsumerLegalCreateWithoutConsumerInput, Prisma.ConsumerLegalUncheckedCreateWithoutConsumerInput>
|
||||||
|
where?: Prisma.ConsumerLegalWhereInput
|
||||||
|
}
|
||||||
|
|
||||||
|
export type ConsumerLegalUpdateToOneWithWhereWithoutConsumerInput = {
|
||||||
|
where?: Prisma.ConsumerLegalWhereInput
|
||||||
|
data: Prisma.XOR<Prisma.ConsumerLegalUpdateWithoutConsumerInput, Prisma.ConsumerLegalUncheckedUpdateWithoutConsumerInput>
|
||||||
|
}
|
||||||
|
|
||||||
|
export type ConsumerLegalUpdateWithoutConsumerInput = {
|
||||||
|
name?: Prisma.StringFieldUpdateOperationsInput | string
|
||||||
|
registration_code?: Prisma.StringFieldUpdateOperationsInput | string
|
||||||
|
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||||
|
updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||||
|
partner?: Prisma.PartnerUpdateOneRequiredWithoutConsumers_legalNestedInput
|
||||||
|
}
|
||||||
|
|
||||||
|
export type ConsumerLegalUncheckedUpdateWithoutConsumerInput = {
|
||||||
|
name?: Prisma.StringFieldUpdateOperationsInput | string
|
||||||
|
registration_code?: Prisma.StringFieldUpdateOperationsInput | string
|
||||||
|
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||||
|
updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||||
|
partner_id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||||
|
}
|
||||||
|
|
||||||
export type ConsumerLegalCreateManyPartnerInput = {
|
export type ConsumerLegalCreateManyPartnerInput = {
|
||||||
name: string
|
name: string
|
||||||
registration_code: string
|
registration_code: string
|
||||||
|
|||||||
@@ -310,11 +310,6 @@ export type DeviceUncheckedUpdateManyInput = {
|
|||||||
brand_id?: Prisma.StringFieldUpdateOperationsInput | string
|
brand_id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||||
}
|
}
|
||||||
|
|
||||||
export type DeviceNullableScalarRelationFilter = {
|
|
||||||
is?: Prisma.DeviceWhereInput | null
|
|
||||||
isNot?: Prisma.DeviceWhereInput | null
|
|
||||||
}
|
|
||||||
|
|
||||||
export type DeviceListRelationFilter = {
|
export type DeviceListRelationFilter = {
|
||||||
every?: Prisma.DeviceWhereInput
|
every?: Prisma.DeviceWhereInput
|
||||||
some?: Prisma.DeviceWhereInput
|
some?: Prisma.DeviceWhereInput
|
||||||
@@ -358,20 +353,9 @@ export type DeviceMinOrderByAggregateInput = {
|
|||||||
brand_id?: Prisma.SortOrder
|
brand_id?: Prisma.SortOrder
|
||||||
}
|
}
|
||||||
|
|
||||||
export type DeviceCreateNestedOneWithoutPosesInput = {
|
export type DeviceNullableScalarRelationFilter = {
|
||||||
create?: Prisma.XOR<Prisma.DeviceCreateWithoutPosesInput, Prisma.DeviceUncheckedCreateWithoutPosesInput>
|
is?: Prisma.DeviceWhereInput | null
|
||||||
connectOrCreate?: Prisma.DeviceCreateOrConnectWithoutPosesInput
|
isNot?: Prisma.DeviceWhereInput | null
|
||||||
connect?: Prisma.DeviceWhereUniqueInput
|
|
||||||
}
|
|
||||||
|
|
||||||
export type DeviceUpdateOneWithoutPosesNestedInput = {
|
|
||||||
create?: Prisma.XOR<Prisma.DeviceCreateWithoutPosesInput, Prisma.DeviceUncheckedCreateWithoutPosesInput>
|
|
||||||
connectOrCreate?: Prisma.DeviceCreateOrConnectWithoutPosesInput
|
|
||||||
upsert?: Prisma.DeviceUpsertWithoutPosesInput
|
|
||||||
disconnect?: Prisma.DeviceWhereInput | boolean
|
|
||||||
delete?: Prisma.DeviceWhereInput | boolean
|
|
||||||
connect?: Prisma.DeviceWhereUniqueInput
|
|
||||||
update?: Prisma.XOR<Prisma.XOR<Prisma.DeviceUpdateToOneWithWhereWithoutPosesInput, Prisma.DeviceUpdateWithoutPosesInput>, Prisma.DeviceUncheckedUpdateWithoutPosesInput>
|
|
||||||
}
|
}
|
||||||
|
|
||||||
export type DeviceCreateNestedManyWithoutBrandInput = {
|
export type DeviceCreateNestedManyWithoutBrandInput = {
|
||||||
@@ -416,56 +400,20 @@ export type DeviceUncheckedUpdateManyWithoutBrandNestedInput = {
|
|||||||
deleteMany?: Prisma.DeviceScalarWhereInput | Prisma.DeviceScalarWhereInput[]
|
deleteMany?: Prisma.DeviceScalarWhereInput | Prisma.DeviceScalarWhereInput[]
|
||||||
}
|
}
|
||||||
|
|
||||||
export type DeviceCreateWithoutPosesInput = {
|
export type DeviceCreateNestedOneWithoutPosesInput = {
|
||||||
id?: string
|
create?: Prisma.XOR<Prisma.DeviceCreateWithoutPosesInput, Prisma.DeviceUncheckedCreateWithoutPosesInput>
|
||||||
name: string
|
connectOrCreate?: Prisma.DeviceCreateOrConnectWithoutPosesInput
|
||||||
os_version?: string | null
|
connect?: Prisma.DeviceWhereUniqueInput
|
||||||
created_at?: Date | string
|
|
||||||
updated_at?: Date | string
|
|
||||||
brand: Prisma.DeviceBrandCreateNestedOneWithoutDevicesInput
|
|
||||||
}
|
}
|
||||||
|
|
||||||
export type DeviceUncheckedCreateWithoutPosesInput = {
|
export type DeviceUpdateOneWithoutPosesNestedInput = {
|
||||||
id?: string
|
create?: Prisma.XOR<Prisma.DeviceCreateWithoutPosesInput, Prisma.DeviceUncheckedCreateWithoutPosesInput>
|
||||||
name: string
|
connectOrCreate?: Prisma.DeviceCreateOrConnectWithoutPosesInput
|
||||||
os_version?: string | null
|
upsert?: Prisma.DeviceUpsertWithoutPosesInput
|
||||||
created_at?: Date | string
|
disconnect?: Prisma.DeviceWhereInput | boolean
|
||||||
updated_at?: Date | string
|
delete?: Prisma.DeviceWhereInput | boolean
|
||||||
brand_id: string
|
connect?: Prisma.DeviceWhereUniqueInput
|
||||||
}
|
update?: Prisma.XOR<Prisma.XOR<Prisma.DeviceUpdateToOneWithWhereWithoutPosesInput, Prisma.DeviceUpdateWithoutPosesInput>, Prisma.DeviceUncheckedUpdateWithoutPosesInput>
|
||||||
|
|
||||||
export type DeviceCreateOrConnectWithoutPosesInput = {
|
|
||||||
where: Prisma.DeviceWhereUniqueInput
|
|
||||||
create: Prisma.XOR<Prisma.DeviceCreateWithoutPosesInput, Prisma.DeviceUncheckedCreateWithoutPosesInput>
|
|
||||||
}
|
|
||||||
|
|
||||||
export type DeviceUpsertWithoutPosesInput = {
|
|
||||||
update: Prisma.XOR<Prisma.DeviceUpdateWithoutPosesInput, Prisma.DeviceUncheckedUpdateWithoutPosesInput>
|
|
||||||
create: Prisma.XOR<Prisma.DeviceCreateWithoutPosesInput, Prisma.DeviceUncheckedCreateWithoutPosesInput>
|
|
||||||
where?: Prisma.DeviceWhereInput
|
|
||||||
}
|
|
||||||
|
|
||||||
export type DeviceUpdateToOneWithWhereWithoutPosesInput = {
|
|
||||||
where?: Prisma.DeviceWhereInput
|
|
||||||
data: Prisma.XOR<Prisma.DeviceUpdateWithoutPosesInput, Prisma.DeviceUncheckedUpdateWithoutPosesInput>
|
|
||||||
}
|
|
||||||
|
|
||||||
export type DeviceUpdateWithoutPosesInput = {
|
|
||||||
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
||||||
name?: Prisma.StringFieldUpdateOperationsInput | string
|
|
||||||
os_version?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
||||||
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
||||||
updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
||||||
brand?: Prisma.DeviceBrandUpdateOneRequiredWithoutDevicesNestedInput
|
|
||||||
}
|
|
||||||
|
|
||||||
export type DeviceUncheckedUpdateWithoutPosesInput = {
|
|
||||||
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
||||||
name?: Prisma.StringFieldUpdateOperationsInput | string
|
|
||||||
os_version?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
||||||
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
||||||
updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
||||||
brand_id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
||||||
}
|
}
|
||||||
|
|
||||||
export type DeviceCreateWithoutBrandInput = {
|
export type DeviceCreateWithoutBrandInput = {
|
||||||
@@ -524,6 +472,58 @@ export type DeviceScalarWhereInput = {
|
|||||||
brand_id?: Prisma.StringFilter<"Device"> | string
|
brand_id?: Prisma.StringFilter<"Device"> | string
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export type DeviceCreateWithoutPosesInput = {
|
||||||
|
id?: string
|
||||||
|
name: string
|
||||||
|
os_version?: string | null
|
||||||
|
created_at?: Date | string
|
||||||
|
updated_at?: Date | string
|
||||||
|
brand: Prisma.DeviceBrandCreateNestedOneWithoutDevicesInput
|
||||||
|
}
|
||||||
|
|
||||||
|
export type DeviceUncheckedCreateWithoutPosesInput = {
|
||||||
|
id?: string
|
||||||
|
name: string
|
||||||
|
os_version?: string | null
|
||||||
|
created_at?: Date | string
|
||||||
|
updated_at?: Date | string
|
||||||
|
brand_id: string
|
||||||
|
}
|
||||||
|
|
||||||
|
export type DeviceCreateOrConnectWithoutPosesInput = {
|
||||||
|
where: Prisma.DeviceWhereUniqueInput
|
||||||
|
create: Prisma.XOR<Prisma.DeviceCreateWithoutPosesInput, Prisma.DeviceUncheckedCreateWithoutPosesInput>
|
||||||
|
}
|
||||||
|
|
||||||
|
export type DeviceUpsertWithoutPosesInput = {
|
||||||
|
update: Prisma.XOR<Prisma.DeviceUpdateWithoutPosesInput, Prisma.DeviceUncheckedUpdateWithoutPosesInput>
|
||||||
|
create: Prisma.XOR<Prisma.DeviceCreateWithoutPosesInput, Prisma.DeviceUncheckedCreateWithoutPosesInput>
|
||||||
|
where?: Prisma.DeviceWhereInput
|
||||||
|
}
|
||||||
|
|
||||||
|
export type DeviceUpdateToOneWithWhereWithoutPosesInput = {
|
||||||
|
where?: Prisma.DeviceWhereInput
|
||||||
|
data: Prisma.XOR<Prisma.DeviceUpdateWithoutPosesInput, Prisma.DeviceUncheckedUpdateWithoutPosesInput>
|
||||||
|
}
|
||||||
|
|
||||||
|
export type DeviceUpdateWithoutPosesInput = {
|
||||||
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||||
|
name?: Prisma.StringFieldUpdateOperationsInput | string
|
||||||
|
os_version?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||||
|
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||||
|
updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||||
|
brand?: Prisma.DeviceBrandUpdateOneRequiredWithoutDevicesNestedInput
|
||||||
|
}
|
||||||
|
|
||||||
|
export type DeviceUncheckedUpdateWithoutPosesInput = {
|
||||||
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||||
|
name?: Prisma.StringFieldUpdateOperationsInput | string
|
||||||
|
os_version?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||||
|
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||||
|
updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||||
|
brand_id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||||
|
}
|
||||||
|
|
||||||
export type DeviceCreateManyBrandInput = {
|
export type DeviceCreateManyBrandInput = {
|
||||||
id?: string
|
id?: string
|
||||||
name: string
|
name: string
|
||||||
|
|||||||
@@ -307,11 +307,6 @@ export type LicenseAccountAllocationUncheckedUpdateManyInput = {
|
|||||||
credit_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
credit_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||||
}
|
}
|
||||||
|
|
||||||
export type LicenseAccountAllocationNullableScalarRelationFilter = {
|
|
||||||
is?: Prisma.LicenseAccountAllocationWhereInput | null
|
|
||||||
isNot?: Prisma.LicenseAccountAllocationWhereInput | null
|
|
||||||
}
|
|
||||||
|
|
||||||
export type LicenseAccountAllocationListRelationFilter = {
|
export type LicenseAccountAllocationListRelationFilter = {
|
||||||
every?: Prisma.LicenseAccountAllocationWhereInput
|
every?: Prisma.LicenseAccountAllocationWhereInput
|
||||||
some?: Prisma.LicenseAccountAllocationWhereInput
|
some?: Prisma.LicenseAccountAllocationWhereInput
|
||||||
@@ -322,6 +317,11 @@ export type LicenseAccountAllocationOrderByRelationAggregateInput = {
|
|||||||
_count?: Prisma.SortOrder
|
_count?: Prisma.SortOrder
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export type LicenseAccountAllocationNullableScalarRelationFilter = {
|
||||||
|
is?: Prisma.LicenseAccountAllocationWhereInput | null
|
||||||
|
isNot?: Prisma.LicenseAccountAllocationWhereInput | null
|
||||||
|
}
|
||||||
|
|
||||||
export type LicenseAccountAllocationOrderByRelevanceInput = {
|
export type LicenseAccountAllocationOrderByRelevanceInput = {
|
||||||
fields: Prisma.LicenseAccountAllocationOrderByRelevanceFieldEnum | Prisma.LicenseAccountAllocationOrderByRelevanceFieldEnum[]
|
fields: Prisma.LicenseAccountAllocationOrderByRelevanceFieldEnum | Prisma.LicenseAccountAllocationOrderByRelevanceFieldEnum[]
|
||||||
sort: Prisma.SortOrder
|
sort: Prisma.SortOrder
|
||||||
@@ -355,38 +355,6 @@ export type LicenseAccountAllocationMinOrderByAggregateInput = {
|
|||||||
credit_id?: Prisma.SortOrder
|
credit_id?: Prisma.SortOrder
|
||||||
}
|
}
|
||||||
|
|
||||||
export type LicenseAccountAllocationCreateNestedOneWithoutAccountInput = {
|
|
||||||
create?: Prisma.XOR<Prisma.LicenseAccountAllocationCreateWithoutAccountInput, Prisma.LicenseAccountAllocationUncheckedCreateWithoutAccountInput>
|
|
||||||
connectOrCreate?: Prisma.LicenseAccountAllocationCreateOrConnectWithoutAccountInput
|
|
||||||
connect?: Prisma.LicenseAccountAllocationWhereUniqueInput
|
|
||||||
}
|
|
||||||
|
|
||||||
export type LicenseAccountAllocationUncheckedCreateNestedOneWithoutAccountInput = {
|
|
||||||
create?: Prisma.XOR<Prisma.LicenseAccountAllocationCreateWithoutAccountInput, Prisma.LicenseAccountAllocationUncheckedCreateWithoutAccountInput>
|
|
||||||
connectOrCreate?: Prisma.LicenseAccountAllocationCreateOrConnectWithoutAccountInput
|
|
||||||
connect?: Prisma.LicenseAccountAllocationWhereUniqueInput
|
|
||||||
}
|
|
||||||
|
|
||||||
export type LicenseAccountAllocationUpdateOneWithoutAccountNestedInput = {
|
|
||||||
create?: Prisma.XOR<Prisma.LicenseAccountAllocationCreateWithoutAccountInput, Prisma.LicenseAccountAllocationUncheckedCreateWithoutAccountInput>
|
|
||||||
connectOrCreate?: Prisma.LicenseAccountAllocationCreateOrConnectWithoutAccountInput
|
|
||||||
upsert?: Prisma.LicenseAccountAllocationUpsertWithoutAccountInput
|
|
||||||
disconnect?: Prisma.LicenseAccountAllocationWhereInput | boolean
|
|
||||||
delete?: Prisma.LicenseAccountAllocationWhereInput | boolean
|
|
||||||
connect?: Prisma.LicenseAccountAllocationWhereUniqueInput
|
|
||||||
update?: Prisma.XOR<Prisma.XOR<Prisma.LicenseAccountAllocationUpdateToOneWithWhereWithoutAccountInput, Prisma.LicenseAccountAllocationUpdateWithoutAccountInput>, Prisma.LicenseAccountAllocationUncheckedUpdateWithoutAccountInput>
|
|
||||||
}
|
|
||||||
|
|
||||||
export type LicenseAccountAllocationUncheckedUpdateOneWithoutAccountNestedInput = {
|
|
||||||
create?: Prisma.XOR<Prisma.LicenseAccountAllocationCreateWithoutAccountInput, Prisma.LicenseAccountAllocationUncheckedCreateWithoutAccountInput>
|
|
||||||
connectOrCreate?: Prisma.LicenseAccountAllocationCreateOrConnectWithoutAccountInput
|
|
||||||
upsert?: Prisma.LicenseAccountAllocationUpsertWithoutAccountInput
|
|
||||||
disconnect?: Prisma.LicenseAccountAllocationWhereInput | boolean
|
|
||||||
delete?: Prisma.LicenseAccountAllocationWhereInput | boolean
|
|
||||||
connect?: Prisma.LicenseAccountAllocationWhereUniqueInput
|
|
||||||
update?: Prisma.XOR<Prisma.XOR<Prisma.LicenseAccountAllocationUpdateToOneWithWhereWithoutAccountInput, Prisma.LicenseAccountAllocationUpdateWithoutAccountInput>, Prisma.LicenseAccountAllocationUncheckedUpdateWithoutAccountInput>
|
|
||||||
}
|
|
||||||
|
|
||||||
export type LicenseAccountAllocationCreateNestedManyWithoutLicense_activationInput = {
|
export type LicenseAccountAllocationCreateNestedManyWithoutLicense_activationInput = {
|
||||||
create?: Prisma.XOR<Prisma.LicenseAccountAllocationCreateWithoutLicense_activationInput, Prisma.LicenseAccountAllocationUncheckedCreateWithoutLicense_activationInput> | Prisma.LicenseAccountAllocationCreateWithoutLicense_activationInput[] | Prisma.LicenseAccountAllocationUncheckedCreateWithoutLicense_activationInput[]
|
create?: Prisma.XOR<Prisma.LicenseAccountAllocationCreateWithoutLicense_activationInput, Prisma.LicenseAccountAllocationUncheckedCreateWithoutLicense_activationInput> | Prisma.LicenseAccountAllocationCreateWithoutLicense_activationInput[] | Prisma.LicenseAccountAllocationUncheckedCreateWithoutLicense_activationInput[]
|
||||||
connectOrCreate?: Prisma.LicenseAccountAllocationCreateOrConnectWithoutLicense_activationInput | Prisma.LicenseAccountAllocationCreateOrConnectWithoutLicense_activationInput[]
|
connectOrCreate?: Prisma.LicenseAccountAllocationCreateOrConnectWithoutLicense_activationInput | Prisma.LicenseAccountAllocationCreateOrConnectWithoutLicense_activationInput[]
|
||||||
@@ -461,52 +429,36 @@ export type LicenseAccountAllocationUncheckedUpdateOneWithoutCreditNestedInput =
|
|||||||
update?: Prisma.XOR<Prisma.XOR<Prisma.LicenseAccountAllocationUpdateToOneWithWhereWithoutCreditInput, Prisma.LicenseAccountAllocationUpdateWithoutCreditInput>, Prisma.LicenseAccountAllocationUncheckedUpdateWithoutCreditInput>
|
update?: Prisma.XOR<Prisma.XOR<Prisma.LicenseAccountAllocationUpdateToOneWithWhereWithoutCreditInput, Prisma.LicenseAccountAllocationUpdateWithoutCreditInput>, Prisma.LicenseAccountAllocationUncheckedUpdateWithoutCreditInput>
|
||||||
}
|
}
|
||||||
|
|
||||||
export type LicenseAccountAllocationCreateWithoutAccountInput = {
|
export type LicenseAccountAllocationCreateNestedOneWithoutAccountInput = {
|
||||||
id?: string
|
create?: Prisma.XOR<Prisma.LicenseAccountAllocationCreateWithoutAccountInput, Prisma.LicenseAccountAllocationUncheckedCreateWithoutAccountInput>
|
||||||
created_at?: Date | string
|
connectOrCreate?: Prisma.LicenseAccountAllocationCreateOrConnectWithoutAccountInput
|
||||||
updated_at?: Date | string
|
connect?: Prisma.LicenseAccountAllocationWhereUniqueInput
|
||||||
license_activation?: Prisma.LicenseActivationCreateNestedOneWithoutAccount_allocationsInput
|
|
||||||
credit?: Prisma.PartnerAccountQuotaCreditCreateNestedOneWithoutAllocationInput
|
|
||||||
}
|
}
|
||||||
|
|
||||||
export type LicenseAccountAllocationUncheckedCreateWithoutAccountInput = {
|
export type LicenseAccountAllocationUncheckedCreateNestedOneWithoutAccountInput = {
|
||||||
id?: string
|
create?: Prisma.XOR<Prisma.LicenseAccountAllocationCreateWithoutAccountInput, Prisma.LicenseAccountAllocationUncheckedCreateWithoutAccountInput>
|
||||||
created_at?: Date | string
|
connectOrCreate?: Prisma.LicenseAccountAllocationCreateOrConnectWithoutAccountInput
|
||||||
updated_at?: Date | string
|
connect?: Prisma.LicenseAccountAllocationWhereUniqueInput
|
||||||
license_activation_id?: string | null
|
|
||||||
credit_id?: string | null
|
|
||||||
}
|
}
|
||||||
|
|
||||||
export type LicenseAccountAllocationCreateOrConnectWithoutAccountInput = {
|
export type LicenseAccountAllocationUpdateOneWithoutAccountNestedInput = {
|
||||||
where: Prisma.LicenseAccountAllocationWhereUniqueInput
|
create?: Prisma.XOR<Prisma.LicenseAccountAllocationCreateWithoutAccountInput, Prisma.LicenseAccountAllocationUncheckedCreateWithoutAccountInput>
|
||||||
create: Prisma.XOR<Prisma.LicenseAccountAllocationCreateWithoutAccountInput, Prisma.LicenseAccountAllocationUncheckedCreateWithoutAccountInput>
|
connectOrCreate?: Prisma.LicenseAccountAllocationCreateOrConnectWithoutAccountInput
|
||||||
|
upsert?: Prisma.LicenseAccountAllocationUpsertWithoutAccountInput
|
||||||
|
disconnect?: Prisma.LicenseAccountAllocationWhereInput | boolean
|
||||||
|
delete?: Prisma.LicenseAccountAllocationWhereInput | boolean
|
||||||
|
connect?: Prisma.LicenseAccountAllocationWhereUniqueInput
|
||||||
|
update?: Prisma.XOR<Prisma.XOR<Prisma.LicenseAccountAllocationUpdateToOneWithWhereWithoutAccountInput, Prisma.LicenseAccountAllocationUpdateWithoutAccountInput>, Prisma.LicenseAccountAllocationUncheckedUpdateWithoutAccountInput>
|
||||||
}
|
}
|
||||||
|
|
||||||
export type LicenseAccountAllocationUpsertWithoutAccountInput = {
|
export type LicenseAccountAllocationUncheckedUpdateOneWithoutAccountNestedInput = {
|
||||||
update: Prisma.XOR<Prisma.LicenseAccountAllocationUpdateWithoutAccountInput, Prisma.LicenseAccountAllocationUncheckedUpdateWithoutAccountInput>
|
create?: Prisma.XOR<Prisma.LicenseAccountAllocationCreateWithoutAccountInput, Prisma.LicenseAccountAllocationUncheckedCreateWithoutAccountInput>
|
||||||
create: Prisma.XOR<Prisma.LicenseAccountAllocationCreateWithoutAccountInput, Prisma.LicenseAccountAllocationUncheckedCreateWithoutAccountInput>
|
connectOrCreate?: Prisma.LicenseAccountAllocationCreateOrConnectWithoutAccountInput
|
||||||
where?: Prisma.LicenseAccountAllocationWhereInput
|
upsert?: Prisma.LicenseAccountAllocationUpsertWithoutAccountInput
|
||||||
}
|
disconnect?: Prisma.LicenseAccountAllocationWhereInput | boolean
|
||||||
|
delete?: Prisma.LicenseAccountAllocationWhereInput | boolean
|
||||||
export type LicenseAccountAllocationUpdateToOneWithWhereWithoutAccountInput = {
|
connect?: Prisma.LicenseAccountAllocationWhereUniqueInput
|
||||||
where?: Prisma.LicenseAccountAllocationWhereInput
|
update?: Prisma.XOR<Prisma.XOR<Prisma.LicenseAccountAllocationUpdateToOneWithWhereWithoutAccountInput, Prisma.LicenseAccountAllocationUpdateWithoutAccountInput>, Prisma.LicenseAccountAllocationUncheckedUpdateWithoutAccountInput>
|
||||||
data: Prisma.XOR<Prisma.LicenseAccountAllocationUpdateWithoutAccountInput, Prisma.LicenseAccountAllocationUncheckedUpdateWithoutAccountInput>
|
|
||||||
}
|
|
||||||
|
|
||||||
export type LicenseAccountAllocationUpdateWithoutAccountInput = {
|
|
||||||
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
||||||
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
||||||
updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
||||||
license_activation?: Prisma.LicenseActivationUpdateOneWithoutAccount_allocationsNestedInput
|
|
||||||
credit?: Prisma.PartnerAccountQuotaCreditUpdateOneWithoutAllocationNestedInput
|
|
||||||
}
|
|
||||||
|
|
||||||
export type LicenseAccountAllocationUncheckedUpdateWithoutAccountInput = {
|
|
||||||
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
||||||
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
||||||
updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
||||||
license_activation_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
||||||
credit_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
||||||
}
|
}
|
||||||
|
|
||||||
export type LicenseAccountAllocationCreateWithoutLicense_activationInput = {
|
export type LicenseAccountAllocationCreateWithoutLicense_activationInput = {
|
||||||
@@ -611,6 +563,54 @@ export type LicenseAccountAllocationUncheckedUpdateWithoutCreditInput = {
|
|||||||
account_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
account_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export type LicenseAccountAllocationCreateWithoutAccountInput = {
|
||||||
|
id?: string
|
||||||
|
created_at?: Date | string
|
||||||
|
updated_at?: Date | string
|
||||||
|
license_activation?: Prisma.LicenseActivationCreateNestedOneWithoutAccount_allocationsInput
|
||||||
|
credit?: Prisma.PartnerAccountQuotaCreditCreateNestedOneWithoutAllocationInput
|
||||||
|
}
|
||||||
|
|
||||||
|
export type LicenseAccountAllocationUncheckedCreateWithoutAccountInput = {
|
||||||
|
id?: string
|
||||||
|
created_at?: Date | string
|
||||||
|
updated_at?: Date | string
|
||||||
|
license_activation_id?: string | null
|
||||||
|
credit_id?: string | null
|
||||||
|
}
|
||||||
|
|
||||||
|
export type LicenseAccountAllocationCreateOrConnectWithoutAccountInput = {
|
||||||
|
where: Prisma.LicenseAccountAllocationWhereUniqueInput
|
||||||
|
create: Prisma.XOR<Prisma.LicenseAccountAllocationCreateWithoutAccountInput, Prisma.LicenseAccountAllocationUncheckedCreateWithoutAccountInput>
|
||||||
|
}
|
||||||
|
|
||||||
|
export type LicenseAccountAllocationUpsertWithoutAccountInput = {
|
||||||
|
update: Prisma.XOR<Prisma.LicenseAccountAllocationUpdateWithoutAccountInput, Prisma.LicenseAccountAllocationUncheckedUpdateWithoutAccountInput>
|
||||||
|
create: Prisma.XOR<Prisma.LicenseAccountAllocationCreateWithoutAccountInput, Prisma.LicenseAccountAllocationUncheckedCreateWithoutAccountInput>
|
||||||
|
where?: Prisma.LicenseAccountAllocationWhereInput
|
||||||
|
}
|
||||||
|
|
||||||
|
export type LicenseAccountAllocationUpdateToOneWithWhereWithoutAccountInput = {
|
||||||
|
where?: Prisma.LicenseAccountAllocationWhereInput
|
||||||
|
data: Prisma.XOR<Prisma.LicenseAccountAllocationUpdateWithoutAccountInput, Prisma.LicenseAccountAllocationUncheckedUpdateWithoutAccountInput>
|
||||||
|
}
|
||||||
|
|
||||||
|
export type LicenseAccountAllocationUpdateWithoutAccountInput = {
|
||||||
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||||
|
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||||
|
updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||||
|
license_activation?: Prisma.LicenseActivationUpdateOneWithoutAccount_allocationsNestedInput
|
||||||
|
credit?: Prisma.PartnerAccountQuotaCreditUpdateOneWithoutAllocationNestedInput
|
||||||
|
}
|
||||||
|
|
||||||
|
export type LicenseAccountAllocationUncheckedUpdateWithoutAccountInput = {
|
||||||
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||||
|
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||||
|
updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||||
|
license_activation_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||||
|
credit_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||||
|
}
|
||||||
|
|
||||||
export type LicenseAccountAllocationCreateManyLicense_activationInput = {
|
export type LicenseAccountAllocationCreateManyLicense_activationInput = {
|
||||||
id?: string
|
id?: string
|
||||||
created_at?: Date | string
|
created_at?: Date | string
|
||||||
|
|||||||
@@ -379,38 +379,6 @@ export type LicenseActivationMinOrderByAggregateInput = {
|
|||||||
business_activity_id?: Prisma.SortOrder
|
business_activity_id?: Prisma.SortOrder
|
||||||
}
|
}
|
||||||
|
|
||||||
export type LicenseActivationCreateNestedOneWithoutBusiness_activityInput = {
|
|
||||||
create?: Prisma.XOR<Prisma.LicenseActivationCreateWithoutBusiness_activityInput, Prisma.LicenseActivationUncheckedCreateWithoutBusiness_activityInput>
|
|
||||||
connectOrCreate?: Prisma.LicenseActivationCreateOrConnectWithoutBusiness_activityInput
|
|
||||||
connect?: Prisma.LicenseActivationWhereUniqueInput
|
|
||||||
}
|
|
||||||
|
|
||||||
export type LicenseActivationUncheckedCreateNestedOneWithoutBusiness_activityInput = {
|
|
||||||
create?: Prisma.XOR<Prisma.LicenseActivationCreateWithoutBusiness_activityInput, Prisma.LicenseActivationUncheckedCreateWithoutBusiness_activityInput>
|
|
||||||
connectOrCreate?: Prisma.LicenseActivationCreateOrConnectWithoutBusiness_activityInput
|
|
||||||
connect?: Prisma.LicenseActivationWhereUniqueInput
|
|
||||||
}
|
|
||||||
|
|
||||||
export type LicenseActivationUpdateOneWithoutBusiness_activityNestedInput = {
|
|
||||||
create?: Prisma.XOR<Prisma.LicenseActivationCreateWithoutBusiness_activityInput, Prisma.LicenseActivationUncheckedCreateWithoutBusiness_activityInput>
|
|
||||||
connectOrCreate?: Prisma.LicenseActivationCreateOrConnectWithoutBusiness_activityInput
|
|
||||||
upsert?: Prisma.LicenseActivationUpsertWithoutBusiness_activityInput
|
|
||||||
disconnect?: Prisma.LicenseActivationWhereInput | boolean
|
|
||||||
delete?: Prisma.LicenseActivationWhereInput | boolean
|
|
||||||
connect?: Prisma.LicenseActivationWhereUniqueInput
|
|
||||||
update?: Prisma.XOR<Prisma.XOR<Prisma.LicenseActivationUpdateToOneWithWhereWithoutBusiness_activityInput, Prisma.LicenseActivationUpdateWithoutBusiness_activityInput>, Prisma.LicenseActivationUncheckedUpdateWithoutBusiness_activityInput>
|
|
||||||
}
|
|
||||||
|
|
||||||
export type LicenseActivationUncheckedUpdateOneWithoutBusiness_activityNestedInput = {
|
|
||||||
create?: Prisma.XOR<Prisma.LicenseActivationCreateWithoutBusiness_activityInput, Prisma.LicenseActivationUncheckedCreateWithoutBusiness_activityInput>
|
|
||||||
connectOrCreate?: Prisma.LicenseActivationCreateOrConnectWithoutBusiness_activityInput
|
|
||||||
upsert?: Prisma.LicenseActivationUpsertWithoutBusiness_activityInput
|
|
||||||
disconnect?: Prisma.LicenseActivationWhereInput | boolean
|
|
||||||
delete?: Prisma.LicenseActivationWhereInput | boolean
|
|
||||||
connect?: Prisma.LicenseActivationWhereUniqueInput
|
|
||||||
update?: Prisma.XOR<Prisma.XOR<Prisma.LicenseActivationUpdateToOneWithWhereWithoutBusiness_activityInput, Prisma.LicenseActivationUpdateWithoutBusiness_activityInput>, Prisma.LicenseActivationUncheckedUpdateWithoutBusiness_activityInput>
|
|
||||||
}
|
|
||||||
|
|
||||||
export type LicenseActivationCreateNestedOneWithoutLicenseInput = {
|
export type LicenseActivationCreateNestedOneWithoutLicenseInput = {
|
||||||
create?: Prisma.XOR<Prisma.LicenseActivationCreateWithoutLicenseInput, Prisma.LicenseActivationUncheckedCreateWithoutLicenseInput>
|
create?: Prisma.XOR<Prisma.LicenseActivationCreateWithoutLicenseInput, Prisma.LicenseActivationUncheckedCreateWithoutLicenseInput>
|
||||||
connectOrCreate?: Prisma.LicenseActivationCreateOrConnectWithoutLicenseInput
|
connectOrCreate?: Prisma.LicenseActivationCreateOrConnectWithoutLicenseInput
|
||||||
@@ -475,64 +443,36 @@ export type LicenseActivationUpdateOneWithoutAccount_allocationsNestedInput = {
|
|||||||
update?: Prisma.XOR<Prisma.XOR<Prisma.LicenseActivationUpdateToOneWithWhereWithoutAccount_allocationsInput, Prisma.LicenseActivationUpdateWithoutAccount_allocationsInput>, Prisma.LicenseActivationUncheckedUpdateWithoutAccount_allocationsInput>
|
update?: Prisma.XOR<Prisma.XOR<Prisma.LicenseActivationUpdateToOneWithWhereWithoutAccount_allocationsInput, Prisma.LicenseActivationUpdateWithoutAccount_allocationsInput>, Prisma.LicenseActivationUncheckedUpdateWithoutAccount_allocationsInput>
|
||||||
}
|
}
|
||||||
|
|
||||||
export type LicenseActivationCreateWithoutBusiness_activityInput = {
|
export type LicenseActivationCreateNestedOneWithoutBusiness_activityInput = {
|
||||||
id?: string
|
create?: Prisma.XOR<Prisma.LicenseActivationCreateWithoutBusiness_activityInput, Prisma.LicenseActivationUncheckedCreateWithoutBusiness_activityInput>
|
||||||
starts_at: Date | string
|
connectOrCreate?: Prisma.LicenseActivationCreateOrConnectWithoutBusiness_activityInput
|
||||||
expires_at: Date | string
|
connect?: Prisma.LicenseActivationWhereUniqueInput
|
||||||
created_at?: Date | string
|
|
||||||
updated_at?: Date | string
|
|
||||||
license: Prisma.LicenseCreateNestedOneWithoutActivationInput
|
|
||||||
license_renews?: Prisma.LicenseRenewCreateNestedManyWithoutActivationInput
|
|
||||||
account_allocations?: Prisma.LicenseAccountAllocationCreateNestedManyWithoutLicense_activationInput
|
|
||||||
}
|
}
|
||||||
|
|
||||||
export type LicenseActivationUncheckedCreateWithoutBusiness_activityInput = {
|
export type LicenseActivationUncheckedCreateNestedOneWithoutBusiness_activityInput = {
|
||||||
id?: string
|
create?: Prisma.XOR<Prisma.LicenseActivationCreateWithoutBusiness_activityInput, Prisma.LicenseActivationUncheckedCreateWithoutBusiness_activityInput>
|
||||||
starts_at: Date | string
|
connectOrCreate?: Prisma.LicenseActivationCreateOrConnectWithoutBusiness_activityInput
|
||||||
expires_at: Date | string
|
connect?: Prisma.LicenseActivationWhereUniqueInput
|
||||||
created_at?: Date | string
|
|
||||||
updated_at?: Date | string
|
|
||||||
license_id: string
|
|
||||||
license_renews?: Prisma.LicenseRenewUncheckedCreateNestedManyWithoutActivationInput
|
|
||||||
account_allocations?: Prisma.LicenseAccountAllocationUncheckedCreateNestedManyWithoutLicense_activationInput
|
|
||||||
}
|
}
|
||||||
|
|
||||||
export type LicenseActivationCreateOrConnectWithoutBusiness_activityInput = {
|
export type LicenseActivationUpdateOneWithoutBusiness_activityNestedInput = {
|
||||||
where: Prisma.LicenseActivationWhereUniqueInput
|
create?: Prisma.XOR<Prisma.LicenseActivationCreateWithoutBusiness_activityInput, Prisma.LicenseActivationUncheckedCreateWithoutBusiness_activityInput>
|
||||||
create: Prisma.XOR<Prisma.LicenseActivationCreateWithoutBusiness_activityInput, Prisma.LicenseActivationUncheckedCreateWithoutBusiness_activityInput>
|
connectOrCreate?: Prisma.LicenseActivationCreateOrConnectWithoutBusiness_activityInput
|
||||||
|
upsert?: Prisma.LicenseActivationUpsertWithoutBusiness_activityInput
|
||||||
|
disconnect?: Prisma.LicenseActivationWhereInput | boolean
|
||||||
|
delete?: Prisma.LicenseActivationWhereInput | boolean
|
||||||
|
connect?: Prisma.LicenseActivationWhereUniqueInput
|
||||||
|
update?: Prisma.XOR<Prisma.XOR<Prisma.LicenseActivationUpdateToOneWithWhereWithoutBusiness_activityInput, Prisma.LicenseActivationUpdateWithoutBusiness_activityInput>, Prisma.LicenseActivationUncheckedUpdateWithoutBusiness_activityInput>
|
||||||
}
|
}
|
||||||
|
|
||||||
export type LicenseActivationUpsertWithoutBusiness_activityInput = {
|
export type LicenseActivationUncheckedUpdateOneWithoutBusiness_activityNestedInput = {
|
||||||
update: Prisma.XOR<Prisma.LicenseActivationUpdateWithoutBusiness_activityInput, Prisma.LicenseActivationUncheckedUpdateWithoutBusiness_activityInput>
|
create?: Prisma.XOR<Prisma.LicenseActivationCreateWithoutBusiness_activityInput, Prisma.LicenseActivationUncheckedCreateWithoutBusiness_activityInput>
|
||||||
create: Prisma.XOR<Prisma.LicenseActivationCreateWithoutBusiness_activityInput, Prisma.LicenseActivationUncheckedCreateWithoutBusiness_activityInput>
|
connectOrCreate?: Prisma.LicenseActivationCreateOrConnectWithoutBusiness_activityInput
|
||||||
where?: Prisma.LicenseActivationWhereInput
|
upsert?: Prisma.LicenseActivationUpsertWithoutBusiness_activityInput
|
||||||
}
|
disconnect?: Prisma.LicenseActivationWhereInput | boolean
|
||||||
|
delete?: Prisma.LicenseActivationWhereInput | boolean
|
||||||
export type LicenseActivationUpdateToOneWithWhereWithoutBusiness_activityInput = {
|
connect?: Prisma.LicenseActivationWhereUniqueInput
|
||||||
where?: Prisma.LicenseActivationWhereInput
|
update?: Prisma.XOR<Prisma.XOR<Prisma.LicenseActivationUpdateToOneWithWhereWithoutBusiness_activityInput, Prisma.LicenseActivationUpdateWithoutBusiness_activityInput>, Prisma.LicenseActivationUncheckedUpdateWithoutBusiness_activityInput>
|
||||||
data: Prisma.XOR<Prisma.LicenseActivationUpdateWithoutBusiness_activityInput, Prisma.LicenseActivationUncheckedUpdateWithoutBusiness_activityInput>
|
|
||||||
}
|
|
||||||
|
|
||||||
export type LicenseActivationUpdateWithoutBusiness_activityInput = {
|
|
||||||
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
||||||
starts_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
||||||
expires_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
||||||
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
||||||
updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
||||||
license?: Prisma.LicenseUpdateOneRequiredWithoutActivationNestedInput
|
|
||||||
license_renews?: Prisma.LicenseRenewUpdateManyWithoutActivationNestedInput
|
|
||||||
account_allocations?: Prisma.LicenseAccountAllocationUpdateManyWithoutLicense_activationNestedInput
|
|
||||||
}
|
|
||||||
|
|
||||||
export type LicenseActivationUncheckedUpdateWithoutBusiness_activityInput = {
|
|
||||||
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
||||||
starts_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
||||||
expires_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
||||||
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
||||||
updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
||||||
license_id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
||||||
license_renews?: Prisma.LicenseRenewUncheckedUpdateManyWithoutActivationNestedInput
|
|
||||||
account_allocations?: Prisma.LicenseAccountAllocationUncheckedUpdateManyWithoutLicense_activationNestedInput
|
|
||||||
}
|
}
|
||||||
|
|
||||||
export type LicenseActivationCreateWithoutLicenseInput = {
|
export type LicenseActivationCreateWithoutLicenseInput = {
|
||||||
@@ -715,6 +655,66 @@ export type LicenseActivationUncheckedUpdateWithoutAccount_allocationsInput = {
|
|||||||
license_renews?: Prisma.LicenseRenewUncheckedUpdateManyWithoutActivationNestedInput
|
license_renews?: Prisma.LicenseRenewUncheckedUpdateManyWithoutActivationNestedInput
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export type LicenseActivationCreateWithoutBusiness_activityInput = {
|
||||||
|
id?: string
|
||||||
|
starts_at: Date | string
|
||||||
|
expires_at: Date | string
|
||||||
|
created_at?: Date | string
|
||||||
|
updated_at?: Date | string
|
||||||
|
license: Prisma.LicenseCreateNestedOneWithoutActivationInput
|
||||||
|
license_renews?: Prisma.LicenseRenewCreateNestedManyWithoutActivationInput
|
||||||
|
account_allocations?: Prisma.LicenseAccountAllocationCreateNestedManyWithoutLicense_activationInput
|
||||||
|
}
|
||||||
|
|
||||||
|
export type LicenseActivationUncheckedCreateWithoutBusiness_activityInput = {
|
||||||
|
id?: string
|
||||||
|
starts_at: Date | string
|
||||||
|
expires_at: Date | string
|
||||||
|
created_at?: Date | string
|
||||||
|
updated_at?: Date | string
|
||||||
|
license_id: string
|
||||||
|
license_renews?: Prisma.LicenseRenewUncheckedCreateNestedManyWithoutActivationInput
|
||||||
|
account_allocations?: Prisma.LicenseAccountAllocationUncheckedCreateNestedManyWithoutLicense_activationInput
|
||||||
|
}
|
||||||
|
|
||||||
|
export type LicenseActivationCreateOrConnectWithoutBusiness_activityInput = {
|
||||||
|
where: Prisma.LicenseActivationWhereUniqueInput
|
||||||
|
create: Prisma.XOR<Prisma.LicenseActivationCreateWithoutBusiness_activityInput, Prisma.LicenseActivationUncheckedCreateWithoutBusiness_activityInput>
|
||||||
|
}
|
||||||
|
|
||||||
|
export type LicenseActivationUpsertWithoutBusiness_activityInput = {
|
||||||
|
update: Prisma.XOR<Prisma.LicenseActivationUpdateWithoutBusiness_activityInput, Prisma.LicenseActivationUncheckedUpdateWithoutBusiness_activityInput>
|
||||||
|
create: Prisma.XOR<Prisma.LicenseActivationCreateWithoutBusiness_activityInput, Prisma.LicenseActivationUncheckedCreateWithoutBusiness_activityInput>
|
||||||
|
where?: Prisma.LicenseActivationWhereInput
|
||||||
|
}
|
||||||
|
|
||||||
|
export type LicenseActivationUpdateToOneWithWhereWithoutBusiness_activityInput = {
|
||||||
|
where?: Prisma.LicenseActivationWhereInput
|
||||||
|
data: Prisma.XOR<Prisma.LicenseActivationUpdateWithoutBusiness_activityInput, Prisma.LicenseActivationUncheckedUpdateWithoutBusiness_activityInput>
|
||||||
|
}
|
||||||
|
|
||||||
|
export type LicenseActivationUpdateWithoutBusiness_activityInput = {
|
||||||
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||||
|
starts_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||||
|
expires_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||||
|
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||||
|
updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||||
|
license?: Prisma.LicenseUpdateOneRequiredWithoutActivationNestedInput
|
||||||
|
license_renews?: Prisma.LicenseRenewUpdateManyWithoutActivationNestedInput
|
||||||
|
account_allocations?: Prisma.LicenseAccountAllocationUpdateManyWithoutLicense_activationNestedInput
|
||||||
|
}
|
||||||
|
|
||||||
|
export type LicenseActivationUncheckedUpdateWithoutBusiness_activityInput = {
|
||||||
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||||
|
starts_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||||
|
expires_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||||
|
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||||
|
updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||||
|
license_id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||||
|
license_renews?: Prisma.LicenseRenewUncheckedUpdateManyWithoutActivationNestedInput
|
||||||
|
account_allocations?: Prisma.LicenseAccountAllocationUncheckedUpdateManyWithoutLicense_activationNestedInput
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Count Type LicenseActivationCountOutputType
|
* Count Type LicenseActivationCountOutputType
|
||||||
|
|||||||
@@ -403,34 +403,6 @@ export type PartnerMinOrderByAggregateInput = {
|
|||||||
updated_at?: Prisma.SortOrder
|
updated_at?: Prisma.SortOrder
|
||||||
}
|
}
|
||||||
|
|
||||||
export type PartnerCreateNestedOneWithoutConsumers_individualInput = {
|
|
||||||
create?: Prisma.XOR<Prisma.PartnerCreateWithoutConsumers_individualInput, Prisma.PartnerUncheckedCreateWithoutConsumers_individualInput>
|
|
||||||
connectOrCreate?: Prisma.PartnerCreateOrConnectWithoutConsumers_individualInput
|
|
||||||
connect?: Prisma.PartnerWhereUniqueInput
|
|
||||||
}
|
|
||||||
|
|
||||||
export type PartnerUpdateOneRequiredWithoutConsumers_individualNestedInput = {
|
|
||||||
create?: Prisma.XOR<Prisma.PartnerCreateWithoutConsumers_individualInput, Prisma.PartnerUncheckedCreateWithoutConsumers_individualInput>
|
|
||||||
connectOrCreate?: Prisma.PartnerCreateOrConnectWithoutConsumers_individualInput
|
|
||||||
upsert?: Prisma.PartnerUpsertWithoutConsumers_individualInput
|
|
||||||
connect?: Prisma.PartnerWhereUniqueInput
|
|
||||||
update?: Prisma.XOR<Prisma.XOR<Prisma.PartnerUpdateToOneWithWhereWithoutConsumers_individualInput, Prisma.PartnerUpdateWithoutConsumers_individualInput>, Prisma.PartnerUncheckedUpdateWithoutConsumers_individualInput>
|
|
||||||
}
|
|
||||||
|
|
||||||
export type PartnerCreateNestedOneWithoutConsumers_legalInput = {
|
|
||||||
create?: Prisma.XOR<Prisma.PartnerCreateWithoutConsumers_legalInput, Prisma.PartnerUncheckedCreateWithoutConsumers_legalInput>
|
|
||||||
connectOrCreate?: Prisma.PartnerCreateOrConnectWithoutConsumers_legalInput
|
|
||||||
connect?: Prisma.PartnerWhereUniqueInput
|
|
||||||
}
|
|
||||||
|
|
||||||
export type PartnerUpdateOneRequiredWithoutConsumers_legalNestedInput = {
|
|
||||||
create?: Prisma.XOR<Prisma.PartnerCreateWithoutConsumers_legalInput, Prisma.PartnerUncheckedCreateWithoutConsumers_legalInput>
|
|
||||||
connectOrCreate?: Prisma.PartnerCreateOrConnectWithoutConsumers_legalInput
|
|
||||||
upsert?: Prisma.PartnerUpsertWithoutConsumers_legalInput
|
|
||||||
connect?: Prisma.PartnerWhereUniqueInput
|
|
||||||
update?: Prisma.XOR<Prisma.XOR<Prisma.PartnerUpdateToOneWithWhereWithoutConsumers_legalInput, Prisma.PartnerUpdateWithoutConsumers_legalInput>, Prisma.PartnerUncheckedUpdateWithoutConsumers_legalInput>
|
|
||||||
}
|
|
||||||
|
|
||||||
export type PartnerCreateNestedOneWithoutLicense_charge_transactionsInput = {
|
export type PartnerCreateNestedOneWithoutLicense_charge_transactionsInput = {
|
||||||
create?: Prisma.XOR<Prisma.PartnerCreateWithoutLicense_charge_transactionsInput, Prisma.PartnerUncheckedCreateWithoutLicense_charge_transactionsInput>
|
create?: Prisma.XOR<Prisma.PartnerCreateWithoutLicense_charge_transactionsInput, Prisma.PartnerUncheckedCreateWithoutLicense_charge_transactionsInput>
|
||||||
connectOrCreate?: Prisma.PartnerCreateOrConnectWithoutLicense_charge_transactionsInput
|
connectOrCreate?: Prisma.PartnerCreateOrConnectWithoutLicense_charge_transactionsInput
|
||||||
@@ -491,156 +463,32 @@ export type EnumPartnerStatusFieldUpdateOperationsInput = {
|
|||||||
set?: $Enums.PartnerStatus
|
set?: $Enums.PartnerStatus
|
||||||
}
|
}
|
||||||
|
|
||||||
export type PartnerCreateWithoutConsumers_individualInput = {
|
export type PartnerCreateNestedOneWithoutConsumers_individualInput = {
|
||||||
id?: string
|
create?: Prisma.XOR<Prisma.PartnerCreateWithoutConsumers_individualInput, Prisma.PartnerUncheckedCreateWithoutConsumers_individualInput>
|
||||||
name: string
|
connectOrCreate?: Prisma.PartnerCreateOrConnectWithoutConsumers_individualInput
|
||||||
code: string
|
connect?: Prisma.PartnerWhereUniqueInput
|
||||||
status?: $Enums.PartnerStatus
|
|
||||||
logo_url?: string | null
|
|
||||||
created_at?: Date | string
|
|
||||||
updated_at?: Date | string
|
|
||||||
accounts?: Prisma.PartnerAccountCreateNestedManyWithoutPartnerInput
|
|
||||||
consumers_legal?: Prisma.ConsumerLegalCreateNestedManyWithoutPartnerInput
|
|
||||||
license_charge_transactions?: Prisma.LicenseChargeTransactionCreateNestedManyWithoutPartnerInput
|
|
||||||
account_quota_charge_transactions?: Prisma.PartnerAccountQuotaChargeTransactionCreateNestedManyWithoutPartnerInput
|
|
||||||
license_renew_charge_transactions?: Prisma.LicenseRenewChargeTransactionCreateNestedManyWithoutPartnerInput
|
|
||||||
}
|
}
|
||||||
|
|
||||||
export type PartnerUncheckedCreateWithoutConsumers_individualInput = {
|
export type PartnerUpdateOneRequiredWithoutConsumers_individualNestedInput = {
|
||||||
id?: string
|
create?: Prisma.XOR<Prisma.PartnerCreateWithoutConsumers_individualInput, Prisma.PartnerUncheckedCreateWithoutConsumers_individualInput>
|
||||||
name: string
|
connectOrCreate?: Prisma.PartnerCreateOrConnectWithoutConsumers_individualInput
|
||||||
code: string
|
upsert?: Prisma.PartnerUpsertWithoutConsumers_individualInput
|
||||||
status?: $Enums.PartnerStatus
|
connect?: Prisma.PartnerWhereUniqueInput
|
||||||
logo_url?: string | null
|
update?: Prisma.XOR<Prisma.XOR<Prisma.PartnerUpdateToOneWithWhereWithoutConsumers_individualInput, Prisma.PartnerUpdateWithoutConsumers_individualInput>, Prisma.PartnerUncheckedUpdateWithoutConsumers_individualInput>
|
||||||
created_at?: Date | string
|
|
||||||
updated_at?: Date | string
|
|
||||||
accounts?: Prisma.PartnerAccountUncheckedCreateNestedManyWithoutPartnerInput
|
|
||||||
consumers_legal?: Prisma.ConsumerLegalUncheckedCreateNestedManyWithoutPartnerInput
|
|
||||||
license_charge_transactions?: Prisma.LicenseChargeTransactionUncheckedCreateNestedManyWithoutPartnerInput
|
|
||||||
account_quota_charge_transactions?: Prisma.PartnerAccountQuotaChargeTransactionUncheckedCreateNestedManyWithoutPartnerInput
|
|
||||||
license_renew_charge_transactions?: Prisma.LicenseRenewChargeTransactionUncheckedCreateNestedManyWithoutPartnerInput
|
|
||||||
}
|
}
|
||||||
|
|
||||||
export type PartnerCreateOrConnectWithoutConsumers_individualInput = {
|
export type PartnerCreateNestedOneWithoutConsumers_legalInput = {
|
||||||
where: Prisma.PartnerWhereUniqueInput
|
create?: Prisma.XOR<Prisma.PartnerCreateWithoutConsumers_legalInput, Prisma.PartnerUncheckedCreateWithoutConsumers_legalInput>
|
||||||
create: Prisma.XOR<Prisma.PartnerCreateWithoutConsumers_individualInput, Prisma.PartnerUncheckedCreateWithoutConsumers_individualInput>
|
connectOrCreate?: Prisma.PartnerCreateOrConnectWithoutConsumers_legalInput
|
||||||
|
connect?: Prisma.PartnerWhereUniqueInput
|
||||||
}
|
}
|
||||||
|
|
||||||
export type PartnerUpsertWithoutConsumers_individualInput = {
|
export type PartnerUpdateOneRequiredWithoutConsumers_legalNestedInput = {
|
||||||
update: Prisma.XOR<Prisma.PartnerUpdateWithoutConsumers_individualInput, Prisma.PartnerUncheckedUpdateWithoutConsumers_individualInput>
|
create?: Prisma.XOR<Prisma.PartnerCreateWithoutConsumers_legalInput, Prisma.PartnerUncheckedCreateWithoutConsumers_legalInput>
|
||||||
create: Prisma.XOR<Prisma.PartnerCreateWithoutConsumers_individualInput, Prisma.PartnerUncheckedCreateWithoutConsumers_individualInput>
|
connectOrCreate?: Prisma.PartnerCreateOrConnectWithoutConsumers_legalInput
|
||||||
where?: Prisma.PartnerWhereInput
|
upsert?: Prisma.PartnerUpsertWithoutConsumers_legalInput
|
||||||
}
|
connect?: Prisma.PartnerWhereUniqueInput
|
||||||
|
update?: Prisma.XOR<Prisma.XOR<Prisma.PartnerUpdateToOneWithWhereWithoutConsumers_legalInput, Prisma.PartnerUpdateWithoutConsumers_legalInput>, Prisma.PartnerUncheckedUpdateWithoutConsumers_legalInput>
|
||||||
export type PartnerUpdateToOneWithWhereWithoutConsumers_individualInput = {
|
|
||||||
where?: Prisma.PartnerWhereInput
|
|
||||||
data: Prisma.XOR<Prisma.PartnerUpdateWithoutConsumers_individualInput, Prisma.PartnerUncheckedUpdateWithoutConsumers_individualInput>
|
|
||||||
}
|
|
||||||
|
|
||||||
export type PartnerUpdateWithoutConsumers_individualInput = {
|
|
||||||
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
||||||
name?: Prisma.StringFieldUpdateOperationsInput | string
|
|
||||||
code?: Prisma.StringFieldUpdateOperationsInput | string
|
|
||||||
status?: Prisma.EnumPartnerStatusFieldUpdateOperationsInput | $Enums.PartnerStatus
|
|
||||||
logo_url?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
||||||
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
||||||
updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
||||||
accounts?: Prisma.PartnerAccountUpdateManyWithoutPartnerNestedInput
|
|
||||||
consumers_legal?: Prisma.ConsumerLegalUpdateManyWithoutPartnerNestedInput
|
|
||||||
license_charge_transactions?: Prisma.LicenseChargeTransactionUpdateManyWithoutPartnerNestedInput
|
|
||||||
account_quota_charge_transactions?: Prisma.PartnerAccountQuotaChargeTransactionUpdateManyWithoutPartnerNestedInput
|
|
||||||
license_renew_charge_transactions?: Prisma.LicenseRenewChargeTransactionUpdateManyWithoutPartnerNestedInput
|
|
||||||
}
|
|
||||||
|
|
||||||
export type PartnerUncheckedUpdateWithoutConsumers_individualInput = {
|
|
||||||
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
||||||
name?: Prisma.StringFieldUpdateOperationsInput | string
|
|
||||||
code?: Prisma.StringFieldUpdateOperationsInput | string
|
|
||||||
status?: Prisma.EnumPartnerStatusFieldUpdateOperationsInput | $Enums.PartnerStatus
|
|
||||||
logo_url?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
||||||
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
||||||
updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
||||||
accounts?: Prisma.PartnerAccountUncheckedUpdateManyWithoutPartnerNestedInput
|
|
||||||
consumers_legal?: Prisma.ConsumerLegalUncheckedUpdateManyWithoutPartnerNestedInput
|
|
||||||
license_charge_transactions?: Prisma.LicenseChargeTransactionUncheckedUpdateManyWithoutPartnerNestedInput
|
|
||||||
account_quota_charge_transactions?: Prisma.PartnerAccountQuotaChargeTransactionUncheckedUpdateManyWithoutPartnerNestedInput
|
|
||||||
license_renew_charge_transactions?: Prisma.LicenseRenewChargeTransactionUncheckedUpdateManyWithoutPartnerNestedInput
|
|
||||||
}
|
|
||||||
|
|
||||||
export type PartnerCreateWithoutConsumers_legalInput = {
|
|
||||||
id?: string
|
|
||||||
name: string
|
|
||||||
code: string
|
|
||||||
status?: $Enums.PartnerStatus
|
|
||||||
logo_url?: string | null
|
|
||||||
created_at?: Date | string
|
|
||||||
updated_at?: Date | string
|
|
||||||
accounts?: Prisma.PartnerAccountCreateNestedManyWithoutPartnerInput
|
|
||||||
consumers_individual?: Prisma.ConsumerIndividualCreateNestedManyWithoutPartnerInput
|
|
||||||
license_charge_transactions?: Prisma.LicenseChargeTransactionCreateNestedManyWithoutPartnerInput
|
|
||||||
account_quota_charge_transactions?: Prisma.PartnerAccountQuotaChargeTransactionCreateNestedManyWithoutPartnerInput
|
|
||||||
license_renew_charge_transactions?: Prisma.LicenseRenewChargeTransactionCreateNestedManyWithoutPartnerInput
|
|
||||||
}
|
|
||||||
|
|
||||||
export type PartnerUncheckedCreateWithoutConsumers_legalInput = {
|
|
||||||
id?: string
|
|
||||||
name: string
|
|
||||||
code: string
|
|
||||||
status?: $Enums.PartnerStatus
|
|
||||||
logo_url?: string | null
|
|
||||||
created_at?: Date | string
|
|
||||||
updated_at?: Date | string
|
|
||||||
accounts?: Prisma.PartnerAccountUncheckedCreateNestedManyWithoutPartnerInput
|
|
||||||
consumers_individual?: Prisma.ConsumerIndividualUncheckedCreateNestedManyWithoutPartnerInput
|
|
||||||
license_charge_transactions?: Prisma.LicenseChargeTransactionUncheckedCreateNestedManyWithoutPartnerInput
|
|
||||||
account_quota_charge_transactions?: Prisma.PartnerAccountQuotaChargeTransactionUncheckedCreateNestedManyWithoutPartnerInput
|
|
||||||
license_renew_charge_transactions?: Prisma.LicenseRenewChargeTransactionUncheckedCreateNestedManyWithoutPartnerInput
|
|
||||||
}
|
|
||||||
|
|
||||||
export type PartnerCreateOrConnectWithoutConsumers_legalInput = {
|
|
||||||
where: Prisma.PartnerWhereUniqueInput
|
|
||||||
create: Prisma.XOR<Prisma.PartnerCreateWithoutConsumers_legalInput, Prisma.PartnerUncheckedCreateWithoutConsumers_legalInput>
|
|
||||||
}
|
|
||||||
|
|
||||||
export type PartnerUpsertWithoutConsumers_legalInput = {
|
|
||||||
update: Prisma.XOR<Prisma.PartnerUpdateWithoutConsumers_legalInput, Prisma.PartnerUncheckedUpdateWithoutConsumers_legalInput>
|
|
||||||
create: Prisma.XOR<Prisma.PartnerCreateWithoutConsumers_legalInput, Prisma.PartnerUncheckedCreateWithoutConsumers_legalInput>
|
|
||||||
where?: Prisma.PartnerWhereInput
|
|
||||||
}
|
|
||||||
|
|
||||||
export type PartnerUpdateToOneWithWhereWithoutConsumers_legalInput = {
|
|
||||||
where?: Prisma.PartnerWhereInput
|
|
||||||
data: Prisma.XOR<Prisma.PartnerUpdateWithoutConsumers_legalInput, Prisma.PartnerUncheckedUpdateWithoutConsumers_legalInput>
|
|
||||||
}
|
|
||||||
|
|
||||||
export type PartnerUpdateWithoutConsumers_legalInput = {
|
|
||||||
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
||||||
name?: Prisma.StringFieldUpdateOperationsInput | string
|
|
||||||
code?: Prisma.StringFieldUpdateOperationsInput | string
|
|
||||||
status?: Prisma.EnumPartnerStatusFieldUpdateOperationsInput | $Enums.PartnerStatus
|
|
||||||
logo_url?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
||||||
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
||||||
updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
||||||
accounts?: Prisma.PartnerAccountUpdateManyWithoutPartnerNestedInput
|
|
||||||
consumers_individual?: Prisma.ConsumerIndividualUpdateManyWithoutPartnerNestedInput
|
|
||||||
license_charge_transactions?: Prisma.LicenseChargeTransactionUpdateManyWithoutPartnerNestedInput
|
|
||||||
account_quota_charge_transactions?: Prisma.PartnerAccountQuotaChargeTransactionUpdateManyWithoutPartnerNestedInput
|
|
||||||
license_renew_charge_transactions?: Prisma.LicenseRenewChargeTransactionUpdateManyWithoutPartnerNestedInput
|
|
||||||
}
|
|
||||||
|
|
||||||
export type PartnerUncheckedUpdateWithoutConsumers_legalInput = {
|
|
||||||
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
||||||
name?: Prisma.StringFieldUpdateOperationsInput | string
|
|
||||||
code?: Prisma.StringFieldUpdateOperationsInput | string
|
|
||||||
status?: Prisma.EnumPartnerStatusFieldUpdateOperationsInput | $Enums.PartnerStatus
|
|
||||||
logo_url?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
||||||
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
||||||
updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
||||||
accounts?: Prisma.PartnerAccountUncheckedUpdateManyWithoutPartnerNestedInput
|
|
||||||
consumers_individual?: Prisma.ConsumerIndividualUncheckedUpdateManyWithoutPartnerNestedInput
|
|
||||||
license_charge_transactions?: Prisma.LicenseChargeTransactionUncheckedUpdateManyWithoutPartnerNestedInput
|
|
||||||
account_quota_charge_transactions?: Prisma.PartnerAccountQuotaChargeTransactionUncheckedUpdateManyWithoutPartnerNestedInput
|
|
||||||
license_renew_charge_transactions?: Prisma.LicenseRenewChargeTransactionUncheckedUpdateManyWithoutPartnerNestedInput
|
|
||||||
}
|
}
|
||||||
|
|
||||||
export type PartnerCreateWithoutLicense_charge_transactionsInput = {
|
export type PartnerCreateWithoutLicense_charge_transactionsInput = {
|
||||||
@@ -947,6 +795,158 @@ export type PartnerUncheckedUpdateWithoutAccountsInput = {
|
|||||||
license_renew_charge_transactions?: Prisma.LicenseRenewChargeTransactionUncheckedUpdateManyWithoutPartnerNestedInput
|
license_renew_charge_transactions?: Prisma.LicenseRenewChargeTransactionUncheckedUpdateManyWithoutPartnerNestedInput
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export type PartnerCreateWithoutConsumers_individualInput = {
|
||||||
|
id?: string
|
||||||
|
name: string
|
||||||
|
code: string
|
||||||
|
status?: $Enums.PartnerStatus
|
||||||
|
logo_url?: string | null
|
||||||
|
created_at?: Date | string
|
||||||
|
updated_at?: Date | string
|
||||||
|
accounts?: Prisma.PartnerAccountCreateNestedManyWithoutPartnerInput
|
||||||
|
consumers_legal?: Prisma.ConsumerLegalCreateNestedManyWithoutPartnerInput
|
||||||
|
license_charge_transactions?: Prisma.LicenseChargeTransactionCreateNestedManyWithoutPartnerInput
|
||||||
|
account_quota_charge_transactions?: Prisma.PartnerAccountQuotaChargeTransactionCreateNestedManyWithoutPartnerInput
|
||||||
|
license_renew_charge_transactions?: Prisma.LicenseRenewChargeTransactionCreateNestedManyWithoutPartnerInput
|
||||||
|
}
|
||||||
|
|
||||||
|
export type PartnerUncheckedCreateWithoutConsumers_individualInput = {
|
||||||
|
id?: string
|
||||||
|
name: string
|
||||||
|
code: string
|
||||||
|
status?: $Enums.PartnerStatus
|
||||||
|
logo_url?: string | null
|
||||||
|
created_at?: Date | string
|
||||||
|
updated_at?: Date | string
|
||||||
|
accounts?: Prisma.PartnerAccountUncheckedCreateNestedManyWithoutPartnerInput
|
||||||
|
consumers_legal?: Prisma.ConsumerLegalUncheckedCreateNestedManyWithoutPartnerInput
|
||||||
|
license_charge_transactions?: Prisma.LicenseChargeTransactionUncheckedCreateNestedManyWithoutPartnerInput
|
||||||
|
account_quota_charge_transactions?: Prisma.PartnerAccountQuotaChargeTransactionUncheckedCreateNestedManyWithoutPartnerInput
|
||||||
|
license_renew_charge_transactions?: Prisma.LicenseRenewChargeTransactionUncheckedCreateNestedManyWithoutPartnerInput
|
||||||
|
}
|
||||||
|
|
||||||
|
export type PartnerCreateOrConnectWithoutConsumers_individualInput = {
|
||||||
|
where: Prisma.PartnerWhereUniqueInput
|
||||||
|
create: Prisma.XOR<Prisma.PartnerCreateWithoutConsumers_individualInput, Prisma.PartnerUncheckedCreateWithoutConsumers_individualInput>
|
||||||
|
}
|
||||||
|
|
||||||
|
export type PartnerUpsertWithoutConsumers_individualInput = {
|
||||||
|
update: Prisma.XOR<Prisma.PartnerUpdateWithoutConsumers_individualInput, Prisma.PartnerUncheckedUpdateWithoutConsumers_individualInput>
|
||||||
|
create: Prisma.XOR<Prisma.PartnerCreateWithoutConsumers_individualInput, Prisma.PartnerUncheckedCreateWithoutConsumers_individualInput>
|
||||||
|
where?: Prisma.PartnerWhereInput
|
||||||
|
}
|
||||||
|
|
||||||
|
export type PartnerUpdateToOneWithWhereWithoutConsumers_individualInput = {
|
||||||
|
where?: Prisma.PartnerWhereInput
|
||||||
|
data: Prisma.XOR<Prisma.PartnerUpdateWithoutConsumers_individualInput, Prisma.PartnerUncheckedUpdateWithoutConsumers_individualInput>
|
||||||
|
}
|
||||||
|
|
||||||
|
export type PartnerUpdateWithoutConsumers_individualInput = {
|
||||||
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||||
|
name?: Prisma.StringFieldUpdateOperationsInput | string
|
||||||
|
code?: Prisma.StringFieldUpdateOperationsInput | string
|
||||||
|
status?: Prisma.EnumPartnerStatusFieldUpdateOperationsInput | $Enums.PartnerStatus
|
||||||
|
logo_url?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||||
|
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||||
|
updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||||
|
accounts?: Prisma.PartnerAccountUpdateManyWithoutPartnerNestedInput
|
||||||
|
consumers_legal?: Prisma.ConsumerLegalUpdateManyWithoutPartnerNestedInput
|
||||||
|
license_charge_transactions?: Prisma.LicenseChargeTransactionUpdateManyWithoutPartnerNestedInput
|
||||||
|
account_quota_charge_transactions?: Prisma.PartnerAccountQuotaChargeTransactionUpdateManyWithoutPartnerNestedInput
|
||||||
|
license_renew_charge_transactions?: Prisma.LicenseRenewChargeTransactionUpdateManyWithoutPartnerNestedInput
|
||||||
|
}
|
||||||
|
|
||||||
|
export type PartnerUncheckedUpdateWithoutConsumers_individualInput = {
|
||||||
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||||
|
name?: Prisma.StringFieldUpdateOperationsInput | string
|
||||||
|
code?: Prisma.StringFieldUpdateOperationsInput | string
|
||||||
|
status?: Prisma.EnumPartnerStatusFieldUpdateOperationsInput | $Enums.PartnerStatus
|
||||||
|
logo_url?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||||
|
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||||
|
updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||||
|
accounts?: Prisma.PartnerAccountUncheckedUpdateManyWithoutPartnerNestedInput
|
||||||
|
consumers_legal?: Prisma.ConsumerLegalUncheckedUpdateManyWithoutPartnerNestedInput
|
||||||
|
license_charge_transactions?: Prisma.LicenseChargeTransactionUncheckedUpdateManyWithoutPartnerNestedInput
|
||||||
|
account_quota_charge_transactions?: Prisma.PartnerAccountQuotaChargeTransactionUncheckedUpdateManyWithoutPartnerNestedInput
|
||||||
|
license_renew_charge_transactions?: Prisma.LicenseRenewChargeTransactionUncheckedUpdateManyWithoutPartnerNestedInput
|
||||||
|
}
|
||||||
|
|
||||||
|
export type PartnerCreateWithoutConsumers_legalInput = {
|
||||||
|
id?: string
|
||||||
|
name: string
|
||||||
|
code: string
|
||||||
|
status?: $Enums.PartnerStatus
|
||||||
|
logo_url?: string | null
|
||||||
|
created_at?: Date | string
|
||||||
|
updated_at?: Date | string
|
||||||
|
accounts?: Prisma.PartnerAccountCreateNestedManyWithoutPartnerInput
|
||||||
|
consumers_individual?: Prisma.ConsumerIndividualCreateNestedManyWithoutPartnerInput
|
||||||
|
license_charge_transactions?: Prisma.LicenseChargeTransactionCreateNestedManyWithoutPartnerInput
|
||||||
|
account_quota_charge_transactions?: Prisma.PartnerAccountQuotaChargeTransactionCreateNestedManyWithoutPartnerInput
|
||||||
|
license_renew_charge_transactions?: Prisma.LicenseRenewChargeTransactionCreateNestedManyWithoutPartnerInput
|
||||||
|
}
|
||||||
|
|
||||||
|
export type PartnerUncheckedCreateWithoutConsumers_legalInput = {
|
||||||
|
id?: string
|
||||||
|
name: string
|
||||||
|
code: string
|
||||||
|
status?: $Enums.PartnerStatus
|
||||||
|
logo_url?: string | null
|
||||||
|
created_at?: Date | string
|
||||||
|
updated_at?: Date | string
|
||||||
|
accounts?: Prisma.PartnerAccountUncheckedCreateNestedManyWithoutPartnerInput
|
||||||
|
consumers_individual?: Prisma.ConsumerIndividualUncheckedCreateNestedManyWithoutPartnerInput
|
||||||
|
license_charge_transactions?: Prisma.LicenseChargeTransactionUncheckedCreateNestedManyWithoutPartnerInput
|
||||||
|
account_quota_charge_transactions?: Prisma.PartnerAccountQuotaChargeTransactionUncheckedCreateNestedManyWithoutPartnerInput
|
||||||
|
license_renew_charge_transactions?: Prisma.LicenseRenewChargeTransactionUncheckedCreateNestedManyWithoutPartnerInput
|
||||||
|
}
|
||||||
|
|
||||||
|
export type PartnerCreateOrConnectWithoutConsumers_legalInput = {
|
||||||
|
where: Prisma.PartnerWhereUniqueInput
|
||||||
|
create: Prisma.XOR<Prisma.PartnerCreateWithoutConsumers_legalInput, Prisma.PartnerUncheckedCreateWithoutConsumers_legalInput>
|
||||||
|
}
|
||||||
|
|
||||||
|
export type PartnerUpsertWithoutConsumers_legalInput = {
|
||||||
|
update: Prisma.XOR<Prisma.PartnerUpdateWithoutConsumers_legalInput, Prisma.PartnerUncheckedUpdateWithoutConsumers_legalInput>
|
||||||
|
create: Prisma.XOR<Prisma.PartnerCreateWithoutConsumers_legalInput, Prisma.PartnerUncheckedCreateWithoutConsumers_legalInput>
|
||||||
|
where?: Prisma.PartnerWhereInput
|
||||||
|
}
|
||||||
|
|
||||||
|
export type PartnerUpdateToOneWithWhereWithoutConsumers_legalInput = {
|
||||||
|
where?: Prisma.PartnerWhereInput
|
||||||
|
data: Prisma.XOR<Prisma.PartnerUpdateWithoutConsumers_legalInput, Prisma.PartnerUncheckedUpdateWithoutConsumers_legalInput>
|
||||||
|
}
|
||||||
|
|
||||||
|
export type PartnerUpdateWithoutConsumers_legalInput = {
|
||||||
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||||
|
name?: Prisma.StringFieldUpdateOperationsInput | string
|
||||||
|
code?: Prisma.StringFieldUpdateOperationsInput | string
|
||||||
|
status?: Prisma.EnumPartnerStatusFieldUpdateOperationsInput | $Enums.PartnerStatus
|
||||||
|
logo_url?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||||
|
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||||
|
updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||||
|
accounts?: Prisma.PartnerAccountUpdateManyWithoutPartnerNestedInput
|
||||||
|
consumers_individual?: Prisma.ConsumerIndividualUpdateManyWithoutPartnerNestedInput
|
||||||
|
license_charge_transactions?: Prisma.LicenseChargeTransactionUpdateManyWithoutPartnerNestedInput
|
||||||
|
account_quota_charge_transactions?: Prisma.PartnerAccountQuotaChargeTransactionUpdateManyWithoutPartnerNestedInput
|
||||||
|
license_renew_charge_transactions?: Prisma.LicenseRenewChargeTransactionUpdateManyWithoutPartnerNestedInput
|
||||||
|
}
|
||||||
|
|
||||||
|
export type PartnerUncheckedUpdateWithoutConsumers_legalInput = {
|
||||||
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||||
|
name?: Prisma.StringFieldUpdateOperationsInput | string
|
||||||
|
code?: Prisma.StringFieldUpdateOperationsInput | string
|
||||||
|
status?: Prisma.EnumPartnerStatusFieldUpdateOperationsInput | $Enums.PartnerStatus
|
||||||
|
logo_url?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||||
|
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||||
|
updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||||
|
accounts?: Prisma.PartnerAccountUncheckedUpdateManyWithoutPartnerNestedInput
|
||||||
|
consumers_individual?: Prisma.ConsumerIndividualUncheckedUpdateManyWithoutPartnerNestedInput
|
||||||
|
license_charge_transactions?: Prisma.LicenseChargeTransactionUncheckedUpdateManyWithoutPartnerNestedInput
|
||||||
|
account_quota_charge_transactions?: Prisma.PartnerAccountQuotaChargeTransactionUncheckedUpdateManyWithoutPartnerNestedInput
|
||||||
|
license_renew_charge_transactions?: Prisma.LicenseRenewChargeTransactionUncheckedUpdateManyWithoutPartnerNestedInput
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Count Type PartnerCountOutputType
|
* Count Type PartnerCountOutputType
|
||||||
|
|||||||
@@ -310,48 +310,6 @@ export type PermissionBusinessMinOrderByAggregateInput = {
|
|||||||
permission_id?: Prisma.SortOrder
|
permission_id?: Prisma.SortOrder
|
||||||
}
|
}
|
||||||
|
|
||||||
export type PermissionBusinessCreateNestedManyWithoutBusinessInput = {
|
|
||||||
create?: Prisma.XOR<Prisma.PermissionBusinessCreateWithoutBusinessInput, Prisma.PermissionBusinessUncheckedCreateWithoutBusinessInput> | Prisma.PermissionBusinessCreateWithoutBusinessInput[] | Prisma.PermissionBusinessUncheckedCreateWithoutBusinessInput[]
|
|
||||||
connectOrCreate?: Prisma.PermissionBusinessCreateOrConnectWithoutBusinessInput | Prisma.PermissionBusinessCreateOrConnectWithoutBusinessInput[]
|
|
||||||
createMany?: Prisma.PermissionBusinessCreateManyBusinessInputEnvelope
|
|
||||||
connect?: Prisma.PermissionBusinessWhereUniqueInput | Prisma.PermissionBusinessWhereUniqueInput[]
|
|
||||||
}
|
|
||||||
|
|
||||||
export type PermissionBusinessUncheckedCreateNestedManyWithoutBusinessInput = {
|
|
||||||
create?: Prisma.XOR<Prisma.PermissionBusinessCreateWithoutBusinessInput, Prisma.PermissionBusinessUncheckedCreateWithoutBusinessInput> | Prisma.PermissionBusinessCreateWithoutBusinessInput[] | Prisma.PermissionBusinessUncheckedCreateWithoutBusinessInput[]
|
|
||||||
connectOrCreate?: Prisma.PermissionBusinessCreateOrConnectWithoutBusinessInput | Prisma.PermissionBusinessCreateOrConnectWithoutBusinessInput[]
|
|
||||||
createMany?: Prisma.PermissionBusinessCreateManyBusinessInputEnvelope
|
|
||||||
connect?: Prisma.PermissionBusinessWhereUniqueInput | Prisma.PermissionBusinessWhereUniqueInput[]
|
|
||||||
}
|
|
||||||
|
|
||||||
export type PermissionBusinessUpdateManyWithoutBusinessNestedInput = {
|
|
||||||
create?: Prisma.XOR<Prisma.PermissionBusinessCreateWithoutBusinessInput, Prisma.PermissionBusinessUncheckedCreateWithoutBusinessInput> | Prisma.PermissionBusinessCreateWithoutBusinessInput[] | Prisma.PermissionBusinessUncheckedCreateWithoutBusinessInput[]
|
|
||||||
connectOrCreate?: Prisma.PermissionBusinessCreateOrConnectWithoutBusinessInput | Prisma.PermissionBusinessCreateOrConnectWithoutBusinessInput[]
|
|
||||||
upsert?: Prisma.PermissionBusinessUpsertWithWhereUniqueWithoutBusinessInput | Prisma.PermissionBusinessUpsertWithWhereUniqueWithoutBusinessInput[]
|
|
||||||
createMany?: Prisma.PermissionBusinessCreateManyBusinessInputEnvelope
|
|
||||||
set?: Prisma.PermissionBusinessWhereUniqueInput | Prisma.PermissionBusinessWhereUniqueInput[]
|
|
||||||
disconnect?: Prisma.PermissionBusinessWhereUniqueInput | Prisma.PermissionBusinessWhereUniqueInput[]
|
|
||||||
delete?: Prisma.PermissionBusinessWhereUniqueInput | Prisma.PermissionBusinessWhereUniqueInput[]
|
|
||||||
connect?: Prisma.PermissionBusinessWhereUniqueInput | Prisma.PermissionBusinessWhereUniqueInput[]
|
|
||||||
update?: Prisma.PermissionBusinessUpdateWithWhereUniqueWithoutBusinessInput | Prisma.PermissionBusinessUpdateWithWhereUniqueWithoutBusinessInput[]
|
|
||||||
updateMany?: Prisma.PermissionBusinessUpdateManyWithWhereWithoutBusinessInput | Prisma.PermissionBusinessUpdateManyWithWhereWithoutBusinessInput[]
|
|
||||||
deleteMany?: Prisma.PermissionBusinessScalarWhereInput | Prisma.PermissionBusinessScalarWhereInput[]
|
|
||||||
}
|
|
||||||
|
|
||||||
export type PermissionBusinessUncheckedUpdateManyWithoutBusinessNestedInput = {
|
|
||||||
create?: Prisma.XOR<Prisma.PermissionBusinessCreateWithoutBusinessInput, Prisma.PermissionBusinessUncheckedCreateWithoutBusinessInput> | Prisma.PermissionBusinessCreateWithoutBusinessInput[] | Prisma.PermissionBusinessUncheckedCreateWithoutBusinessInput[]
|
|
||||||
connectOrCreate?: Prisma.PermissionBusinessCreateOrConnectWithoutBusinessInput | Prisma.PermissionBusinessCreateOrConnectWithoutBusinessInput[]
|
|
||||||
upsert?: Prisma.PermissionBusinessUpsertWithWhereUniqueWithoutBusinessInput | Prisma.PermissionBusinessUpsertWithWhereUniqueWithoutBusinessInput[]
|
|
||||||
createMany?: Prisma.PermissionBusinessCreateManyBusinessInputEnvelope
|
|
||||||
set?: Prisma.PermissionBusinessWhereUniqueInput | Prisma.PermissionBusinessWhereUniqueInput[]
|
|
||||||
disconnect?: Prisma.PermissionBusinessWhereUniqueInput | Prisma.PermissionBusinessWhereUniqueInput[]
|
|
||||||
delete?: Prisma.PermissionBusinessWhereUniqueInput | Prisma.PermissionBusinessWhereUniqueInput[]
|
|
||||||
connect?: Prisma.PermissionBusinessWhereUniqueInput | Prisma.PermissionBusinessWhereUniqueInput[]
|
|
||||||
update?: Prisma.PermissionBusinessUpdateWithWhereUniqueWithoutBusinessInput | Prisma.PermissionBusinessUpdateWithWhereUniqueWithoutBusinessInput[]
|
|
||||||
updateMany?: Prisma.PermissionBusinessUpdateManyWithWhereWithoutBusinessInput | Prisma.PermissionBusinessUpdateManyWithWhereWithoutBusinessInput[]
|
|
||||||
deleteMany?: Prisma.PermissionBusinessScalarWhereInput | Prisma.PermissionBusinessScalarWhereInput[]
|
|
||||||
}
|
|
||||||
|
|
||||||
export type PermissionBusinessCreateNestedManyWithoutPermissionInput = {
|
export type PermissionBusinessCreateNestedManyWithoutPermissionInput = {
|
||||||
create?: Prisma.XOR<Prisma.PermissionBusinessCreateWithoutPermissionInput, Prisma.PermissionBusinessUncheckedCreateWithoutPermissionInput> | Prisma.PermissionBusinessCreateWithoutPermissionInput[] | Prisma.PermissionBusinessUncheckedCreateWithoutPermissionInput[]
|
create?: Prisma.XOR<Prisma.PermissionBusinessCreateWithoutPermissionInput, Prisma.PermissionBusinessUncheckedCreateWithoutPermissionInput> | Prisma.PermissionBusinessCreateWithoutPermissionInput[] | Prisma.PermissionBusinessUncheckedCreateWithoutPermissionInput[]
|
||||||
connectOrCreate?: Prisma.PermissionBusinessCreateOrConnectWithoutPermissionInput | Prisma.PermissionBusinessCreateOrConnectWithoutPermissionInput[]
|
connectOrCreate?: Prisma.PermissionBusinessCreateOrConnectWithoutPermissionInput | Prisma.PermissionBusinessCreateOrConnectWithoutPermissionInput[]
|
||||||
@@ -398,52 +356,46 @@ export type EnumBusinessRoleFieldUpdateOperationsInput = {
|
|||||||
set?: $Enums.BusinessRole
|
set?: $Enums.BusinessRole
|
||||||
}
|
}
|
||||||
|
|
||||||
export type PermissionBusinessCreateWithoutBusinessInput = {
|
export type PermissionBusinessCreateNestedManyWithoutBusinessInput = {
|
||||||
id?: string
|
create?: Prisma.XOR<Prisma.PermissionBusinessCreateWithoutBusinessInput, Prisma.PermissionBusinessUncheckedCreateWithoutBusinessInput> | Prisma.PermissionBusinessCreateWithoutBusinessInput[] | Prisma.PermissionBusinessUncheckedCreateWithoutBusinessInput[]
|
||||||
role: $Enums.BusinessRole
|
connectOrCreate?: Prisma.PermissionBusinessCreateOrConnectWithoutBusinessInput | Prisma.PermissionBusinessCreateOrConnectWithoutBusinessInput[]
|
||||||
permission: Prisma.PermissionConsumerCreateNestedOneWithoutBusiness_permissionsInput
|
createMany?: Prisma.PermissionBusinessCreateManyBusinessInputEnvelope
|
||||||
|
connect?: Prisma.PermissionBusinessWhereUniqueInput | Prisma.PermissionBusinessWhereUniqueInput[]
|
||||||
}
|
}
|
||||||
|
|
||||||
export type PermissionBusinessUncheckedCreateWithoutBusinessInput = {
|
export type PermissionBusinessUncheckedCreateNestedManyWithoutBusinessInput = {
|
||||||
id?: string
|
create?: Prisma.XOR<Prisma.PermissionBusinessCreateWithoutBusinessInput, Prisma.PermissionBusinessUncheckedCreateWithoutBusinessInput> | Prisma.PermissionBusinessCreateWithoutBusinessInput[] | Prisma.PermissionBusinessUncheckedCreateWithoutBusinessInput[]
|
||||||
role: $Enums.BusinessRole
|
connectOrCreate?: Prisma.PermissionBusinessCreateOrConnectWithoutBusinessInput | Prisma.PermissionBusinessCreateOrConnectWithoutBusinessInput[]
|
||||||
permission_id: string
|
createMany?: Prisma.PermissionBusinessCreateManyBusinessInputEnvelope
|
||||||
|
connect?: Prisma.PermissionBusinessWhereUniqueInput | Prisma.PermissionBusinessWhereUniqueInput[]
|
||||||
}
|
}
|
||||||
|
|
||||||
export type PermissionBusinessCreateOrConnectWithoutBusinessInput = {
|
export type PermissionBusinessUpdateManyWithoutBusinessNestedInput = {
|
||||||
where: Prisma.PermissionBusinessWhereUniqueInput
|
create?: Prisma.XOR<Prisma.PermissionBusinessCreateWithoutBusinessInput, Prisma.PermissionBusinessUncheckedCreateWithoutBusinessInput> | Prisma.PermissionBusinessCreateWithoutBusinessInput[] | Prisma.PermissionBusinessUncheckedCreateWithoutBusinessInput[]
|
||||||
create: Prisma.XOR<Prisma.PermissionBusinessCreateWithoutBusinessInput, Prisma.PermissionBusinessUncheckedCreateWithoutBusinessInput>
|
connectOrCreate?: Prisma.PermissionBusinessCreateOrConnectWithoutBusinessInput | Prisma.PermissionBusinessCreateOrConnectWithoutBusinessInput[]
|
||||||
|
upsert?: Prisma.PermissionBusinessUpsertWithWhereUniqueWithoutBusinessInput | Prisma.PermissionBusinessUpsertWithWhereUniqueWithoutBusinessInput[]
|
||||||
|
createMany?: Prisma.PermissionBusinessCreateManyBusinessInputEnvelope
|
||||||
|
set?: Prisma.PermissionBusinessWhereUniqueInput | Prisma.PermissionBusinessWhereUniqueInput[]
|
||||||
|
disconnect?: Prisma.PermissionBusinessWhereUniqueInput | Prisma.PermissionBusinessWhereUniqueInput[]
|
||||||
|
delete?: Prisma.PermissionBusinessWhereUniqueInput | Prisma.PermissionBusinessWhereUniqueInput[]
|
||||||
|
connect?: Prisma.PermissionBusinessWhereUniqueInput | Prisma.PermissionBusinessWhereUniqueInput[]
|
||||||
|
update?: Prisma.PermissionBusinessUpdateWithWhereUniqueWithoutBusinessInput | Prisma.PermissionBusinessUpdateWithWhereUniqueWithoutBusinessInput[]
|
||||||
|
updateMany?: Prisma.PermissionBusinessUpdateManyWithWhereWithoutBusinessInput | Prisma.PermissionBusinessUpdateManyWithWhereWithoutBusinessInput[]
|
||||||
|
deleteMany?: Prisma.PermissionBusinessScalarWhereInput | Prisma.PermissionBusinessScalarWhereInput[]
|
||||||
}
|
}
|
||||||
|
|
||||||
export type PermissionBusinessCreateManyBusinessInputEnvelope = {
|
export type PermissionBusinessUncheckedUpdateManyWithoutBusinessNestedInput = {
|
||||||
data: Prisma.PermissionBusinessCreateManyBusinessInput | Prisma.PermissionBusinessCreateManyBusinessInput[]
|
create?: Prisma.XOR<Prisma.PermissionBusinessCreateWithoutBusinessInput, Prisma.PermissionBusinessUncheckedCreateWithoutBusinessInput> | Prisma.PermissionBusinessCreateWithoutBusinessInput[] | Prisma.PermissionBusinessUncheckedCreateWithoutBusinessInput[]
|
||||||
skipDuplicates?: boolean
|
connectOrCreate?: Prisma.PermissionBusinessCreateOrConnectWithoutBusinessInput | Prisma.PermissionBusinessCreateOrConnectWithoutBusinessInput[]
|
||||||
}
|
upsert?: Prisma.PermissionBusinessUpsertWithWhereUniqueWithoutBusinessInput | Prisma.PermissionBusinessUpsertWithWhereUniqueWithoutBusinessInput[]
|
||||||
|
createMany?: Prisma.PermissionBusinessCreateManyBusinessInputEnvelope
|
||||||
export type PermissionBusinessUpsertWithWhereUniqueWithoutBusinessInput = {
|
set?: Prisma.PermissionBusinessWhereUniqueInput | Prisma.PermissionBusinessWhereUniqueInput[]
|
||||||
where: Prisma.PermissionBusinessWhereUniqueInput
|
disconnect?: Prisma.PermissionBusinessWhereUniqueInput | Prisma.PermissionBusinessWhereUniqueInput[]
|
||||||
update: Prisma.XOR<Prisma.PermissionBusinessUpdateWithoutBusinessInput, Prisma.PermissionBusinessUncheckedUpdateWithoutBusinessInput>
|
delete?: Prisma.PermissionBusinessWhereUniqueInput | Prisma.PermissionBusinessWhereUniqueInput[]
|
||||||
create: Prisma.XOR<Prisma.PermissionBusinessCreateWithoutBusinessInput, Prisma.PermissionBusinessUncheckedCreateWithoutBusinessInput>
|
connect?: Prisma.PermissionBusinessWhereUniqueInput | Prisma.PermissionBusinessWhereUniqueInput[]
|
||||||
}
|
update?: Prisma.PermissionBusinessUpdateWithWhereUniqueWithoutBusinessInput | Prisma.PermissionBusinessUpdateWithWhereUniqueWithoutBusinessInput[]
|
||||||
|
updateMany?: Prisma.PermissionBusinessUpdateManyWithWhereWithoutBusinessInput | Prisma.PermissionBusinessUpdateManyWithWhereWithoutBusinessInput[]
|
||||||
export type PermissionBusinessUpdateWithWhereUniqueWithoutBusinessInput = {
|
deleteMany?: Prisma.PermissionBusinessScalarWhereInput | Prisma.PermissionBusinessScalarWhereInput[]
|
||||||
where: Prisma.PermissionBusinessWhereUniqueInput
|
|
||||||
data: Prisma.XOR<Prisma.PermissionBusinessUpdateWithoutBusinessInput, Prisma.PermissionBusinessUncheckedUpdateWithoutBusinessInput>
|
|
||||||
}
|
|
||||||
|
|
||||||
export type PermissionBusinessUpdateManyWithWhereWithoutBusinessInput = {
|
|
||||||
where: Prisma.PermissionBusinessScalarWhereInput
|
|
||||||
data: Prisma.XOR<Prisma.PermissionBusinessUpdateManyMutationInput, Prisma.PermissionBusinessUncheckedUpdateManyWithoutBusinessInput>
|
|
||||||
}
|
|
||||||
|
|
||||||
export type PermissionBusinessScalarWhereInput = {
|
|
||||||
AND?: Prisma.PermissionBusinessScalarWhereInput | Prisma.PermissionBusinessScalarWhereInput[]
|
|
||||||
OR?: Prisma.PermissionBusinessScalarWhereInput[]
|
|
||||||
NOT?: Prisma.PermissionBusinessScalarWhereInput | Prisma.PermissionBusinessScalarWhereInput[]
|
|
||||||
id?: Prisma.StringFilter<"PermissionBusiness"> | string
|
|
||||||
role?: Prisma.EnumBusinessRoleFilter<"PermissionBusiness"> | $Enums.BusinessRole
|
|
||||||
business_id?: Prisma.StringFilter<"PermissionBusiness"> | string
|
|
||||||
permission_id?: Prisma.StringFilter<"PermissionBusiness"> | string
|
|
||||||
}
|
}
|
||||||
|
|
||||||
export type PermissionBusinessCreateWithoutPermissionInput = {
|
export type PermissionBusinessCreateWithoutPermissionInput = {
|
||||||
@@ -484,28 +436,52 @@ export type PermissionBusinessUpdateManyWithWhereWithoutPermissionInput = {
|
|||||||
data: Prisma.XOR<Prisma.PermissionBusinessUpdateManyMutationInput, Prisma.PermissionBusinessUncheckedUpdateManyWithoutPermissionInput>
|
data: Prisma.XOR<Prisma.PermissionBusinessUpdateManyMutationInput, Prisma.PermissionBusinessUncheckedUpdateManyWithoutPermissionInput>
|
||||||
}
|
}
|
||||||
|
|
||||||
export type PermissionBusinessCreateManyBusinessInput = {
|
export type PermissionBusinessScalarWhereInput = {
|
||||||
|
AND?: Prisma.PermissionBusinessScalarWhereInput | Prisma.PermissionBusinessScalarWhereInput[]
|
||||||
|
OR?: Prisma.PermissionBusinessScalarWhereInput[]
|
||||||
|
NOT?: Prisma.PermissionBusinessScalarWhereInput | Prisma.PermissionBusinessScalarWhereInput[]
|
||||||
|
id?: Prisma.StringFilter<"PermissionBusiness"> | string
|
||||||
|
role?: Prisma.EnumBusinessRoleFilter<"PermissionBusiness"> | $Enums.BusinessRole
|
||||||
|
business_id?: Prisma.StringFilter<"PermissionBusiness"> | string
|
||||||
|
permission_id?: Prisma.StringFilter<"PermissionBusiness"> | string
|
||||||
|
}
|
||||||
|
|
||||||
|
export type PermissionBusinessCreateWithoutBusinessInput = {
|
||||||
|
id?: string
|
||||||
|
role: $Enums.BusinessRole
|
||||||
|
permission: Prisma.PermissionConsumerCreateNestedOneWithoutBusiness_permissionsInput
|
||||||
|
}
|
||||||
|
|
||||||
|
export type PermissionBusinessUncheckedCreateWithoutBusinessInput = {
|
||||||
id?: string
|
id?: string
|
||||||
role: $Enums.BusinessRole
|
role: $Enums.BusinessRole
|
||||||
permission_id: string
|
permission_id: string
|
||||||
}
|
}
|
||||||
|
|
||||||
export type PermissionBusinessUpdateWithoutBusinessInput = {
|
export type PermissionBusinessCreateOrConnectWithoutBusinessInput = {
|
||||||
id?: Prisma.StringFieldUpdateOperationsInput | string
|
where: Prisma.PermissionBusinessWhereUniqueInput
|
||||||
role?: Prisma.EnumBusinessRoleFieldUpdateOperationsInput | $Enums.BusinessRole
|
create: Prisma.XOR<Prisma.PermissionBusinessCreateWithoutBusinessInput, Prisma.PermissionBusinessUncheckedCreateWithoutBusinessInput>
|
||||||
permission?: Prisma.PermissionConsumerUpdateOneRequiredWithoutBusiness_permissionsNestedInput
|
|
||||||
}
|
}
|
||||||
|
|
||||||
export type PermissionBusinessUncheckedUpdateWithoutBusinessInput = {
|
export type PermissionBusinessCreateManyBusinessInputEnvelope = {
|
||||||
id?: Prisma.StringFieldUpdateOperationsInput | string
|
data: Prisma.PermissionBusinessCreateManyBusinessInput | Prisma.PermissionBusinessCreateManyBusinessInput[]
|
||||||
role?: Prisma.EnumBusinessRoleFieldUpdateOperationsInput | $Enums.BusinessRole
|
skipDuplicates?: boolean
|
||||||
permission_id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
||||||
}
|
}
|
||||||
|
|
||||||
export type PermissionBusinessUncheckedUpdateManyWithoutBusinessInput = {
|
export type PermissionBusinessUpsertWithWhereUniqueWithoutBusinessInput = {
|
||||||
id?: Prisma.StringFieldUpdateOperationsInput | string
|
where: Prisma.PermissionBusinessWhereUniqueInput
|
||||||
role?: Prisma.EnumBusinessRoleFieldUpdateOperationsInput | $Enums.BusinessRole
|
update: Prisma.XOR<Prisma.PermissionBusinessUpdateWithoutBusinessInput, Prisma.PermissionBusinessUncheckedUpdateWithoutBusinessInput>
|
||||||
permission_id?: Prisma.StringFieldUpdateOperationsInput | string
|
create: Prisma.XOR<Prisma.PermissionBusinessCreateWithoutBusinessInput, Prisma.PermissionBusinessUncheckedCreateWithoutBusinessInput>
|
||||||
|
}
|
||||||
|
|
||||||
|
export type PermissionBusinessUpdateWithWhereUniqueWithoutBusinessInput = {
|
||||||
|
where: Prisma.PermissionBusinessWhereUniqueInput
|
||||||
|
data: Prisma.XOR<Prisma.PermissionBusinessUpdateWithoutBusinessInput, Prisma.PermissionBusinessUncheckedUpdateWithoutBusinessInput>
|
||||||
|
}
|
||||||
|
|
||||||
|
export type PermissionBusinessUpdateManyWithWhereWithoutBusinessInput = {
|
||||||
|
where: Prisma.PermissionBusinessScalarWhereInput
|
||||||
|
data: Prisma.XOR<Prisma.PermissionBusinessUpdateManyMutationInput, Prisma.PermissionBusinessUncheckedUpdateManyWithoutBusinessInput>
|
||||||
}
|
}
|
||||||
|
|
||||||
export type PermissionBusinessCreateManyPermissionInput = {
|
export type PermissionBusinessCreateManyPermissionInput = {
|
||||||
@@ -532,6 +508,30 @@ export type PermissionBusinessUncheckedUpdateManyWithoutPermissionInput = {
|
|||||||
business_id?: Prisma.StringFieldUpdateOperationsInput | string
|
business_id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export type PermissionBusinessCreateManyBusinessInput = {
|
||||||
|
id?: string
|
||||||
|
role: $Enums.BusinessRole
|
||||||
|
permission_id: string
|
||||||
|
}
|
||||||
|
|
||||||
|
export type PermissionBusinessUpdateWithoutBusinessInput = {
|
||||||
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||||
|
role?: Prisma.EnumBusinessRoleFieldUpdateOperationsInput | $Enums.BusinessRole
|
||||||
|
permission?: Prisma.PermissionConsumerUpdateOneRequiredWithoutBusiness_permissionsNestedInput
|
||||||
|
}
|
||||||
|
|
||||||
|
export type PermissionBusinessUncheckedUpdateWithoutBusinessInput = {
|
||||||
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||||
|
role?: Prisma.EnumBusinessRoleFieldUpdateOperationsInput | $Enums.BusinessRole
|
||||||
|
permission_id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||||
|
}
|
||||||
|
|
||||||
|
export type PermissionBusinessUncheckedUpdateManyWithoutBusinessInput = {
|
||||||
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||||
|
role?: Prisma.EnumBusinessRoleFieldUpdateOperationsInput | $Enums.BusinessRole
|
||||||
|
permission_id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
export type PermissionBusinessSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
export type PermissionBusinessSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
||||||
|
|||||||
@@ -310,48 +310,6 @@ export type PermissionComplexMinOrderByAggregateInput = {
|
|||||||
permission_id?: Prisma.SortOrder
|
permission_id?: Prisma.SortOrder
|
||||||
}
|
}
|
||||||
|
|
||||||
export type PermissionComplexCreateNestedManyWithoutComplexInput = {
|
|
||||||
create?: Prisma.XOR<Prisma.PermissionComplexCreateWithoutComplexInput, Prisma.PermissionComplexUncheckedCreateWithoutComplexInput> | Prisma.PermissionComplexCreateWithoutComplexInput[] | Prisma.PermissionComplexUncheckedCreateWithoutComplexInput[]
|
|
||||||
connectOrCreate?: Prisma.PermissionComplexCreateOrConnectWithoutComplexInput | Prisma.PermissionComplexCreateOrConnectWithoutComplexInput[]
|
|
||||||
createMany?: Prisma.PermissionComplexCreateManyComplexInputEnvelope
|
|
||||||
connect?: Prisma.PermissionComplexWhereUniqueInput | Prisma.PermissionComplexWhereUniqueInput[]
|
|
||||||
}
|
|
||||||
|
|
||||||
export type PermissionComplexUncheckedCreateNestedManyWithoutComplexInput = {
|
|
||||||
create?: Prisma.XOR<Prisma.PermissionComplexCreateWithoutComplexInput, Prisma.PermissionComplexUncheckedCreateWithoutComplexInput> | Prisma.PermissionComplexCreateWithoutComplexInput[] | Prisma.PermissionComplexUncheckedCreateWithoutComplexInput[]
|
|
||||||
connectOrCreate?: Prisma.PermissionComplexCreateOrConnectWithoutComplexInput | Prisma.PermissionComplexCreateOrConnectWithoutComplexInput[]
|
|
||||||
createMany?: Prisma.PermissionComplexCreateManyComplexInputEnvelope
|
|
||||||
connect?: Prisma.PermissionComplexWhereUniqueInput | Prisma.PermissionComplexWhereUniqueInput[]
|
|
||||||
}
|
|
||||||
|
|
||||||
export type PermissionComplexUpdateManyWithoutComplexNestedInput = {
|
|
||||||
create?: Prisma.XOR<Prisma.PermissionComplexCreateWithoutComplexInput, Prisma.PermissionComplexUncheckedCreateWithoutComplexInput> | Prisma.PermissionComplexCreateWithoutComplexInput[] | Prisma.PermissionComplexUncheckedCreateWithoutComplexInput[]
|
|
||||||
connectOrCreate?: Prisma.PermissionComplexCreateOrConnectWithoutComplexInput | Prisma.PermissionComplexCreateOrConnectWithoutComplexInput[]
|
|
||||||
upsert?: Prisma.PermissionComplexUpsertWithWhereUniqueWithoutComplexInput | Prisma.PermissionComplexUpsertWithWhereUniqueWithoutComplexInput[]
|
|
||||||
createMany?: Prisma.PermissionComplexCreateManyComplexInputEnvelope
|
|
||||||
set?: Prisma.PermissionComplexWhereUniqueInput | Prisma.PermissionComplexWhereUniqueInput[]
|
|
||||||
disconnect?: Prisma.PermissionComplexWhereUniqueInput | Prisma.PermissionComplexWhereUniqueInput[]
|
|
||||||
delete?: Prisma.PermissionComplexWhereUniqueInput | Prisma.PermissionComplexWhereUniqueInput[]
|
|
||||||
connect?: Prisma.PermissionComplexWhereUniqueInput | Prisma.PermissionComplexWhereUniqueInput[]
|
|
||||||
update?: Prisma.PermissionComplexUpdateWithWhereUniqueWithoutComplexInput | Prisma.PermissionComplexUpdateWithWhereUniqueWithoutComplexInput[]
|
|
||||||
updateMany?: Prisma.PermissionComplexUpdateManyWithWhereWithoutComplexInput | Prisma.PermissionComplexUpdateManyWithWhereWithoutComplexInput[]
|
|
||||||
deleteMany?: Prisma.PermissionComplexScalarWhereInput | Prisma.PermissionComplexScalarWhereInput[]
|
|
||||||
}
|
|
||||||
|
|
||||||
export type PermissionComplexUncheckedUpdateManyWithoutComplexNestedInput = {
|
|
||||||
create?: Prisma.XOR<Prisma.PermissionComplexCreateWithoutComplexInput, Prisma.PermissionComplexUncheckedCreateWithoutComplexInput> | Prisma.PermissionComplexCreateWithoutComplexInput[] | Prisma.PermissionComplexUncheckedCreateWithoutComplexInput[]
|
|
||||||
connectOrCreate?: Prisma.PermissionComplexCreateOrConnectWithoutComplexInput | Prisma.PermissionComplexCreateOrConnectWithoutComplexInput[]
|
|
||||||
upsert?: Prisma.PermissionComplexUpsertWithWhereUniqueWithoutComplexInput | Prisma.PermissionComplexUpsertWithWhereUniqueWithoutComplexInput[]
|
|
||||||
createMany?: Prisma.PermissionComplexCreateManyComplexInputEnvelope
|
|
||||||
set?: Prisma.PermissionComplexWhereUniqueInput | Prisma.PermissionComplexWhereUniqueInput[]
|
|
||||||
disconnect?: Prisma.PermissionComplexWhereUniqueInput | Prisma.PermissionComplexWhereUniqueInput[]
|
|
||||||
delete?: Prisma.PermissionComplexWhereUniqueInput | Prisma.PermissionComplexWhereUniqueInput[]
|
|
||||||
connect?: Prisma.PermissionComplexWhereUniqueInput | Prisma.PermissionComplexWhereUniqueInput[]
|
|
||||||
update?: Prisma.PermissionComplexUpdateWithWhereUniqueWithoutComplexInput | Prisma.PermissionComplexUpdateWithWhereUniqueWithoutComplexInput[]
|
|
||||||
updateMany?: Prisma.PermissionComplexUpdateManyWithWhereWithoutComplexInput | Prisma.PermissionComplexUpdateManyWithWhereWithoutComplexInput[]
|
|
||||||
deleteMany?: Prisma.PermissionComplexScalarWhereInput | Prisma.PermissionComplexScalarWhereInput[]
|
|
||||||
}
|
|
||||||
|
|
||||||
export type PermissionComplexCreateNestedManyWithoutPermissionInput = {
|
export type PermissionComplexCreateNestedManyWithoutPermissionInput = {
|
||||||
create?: Prisma.XOR<Prisma.PermissionComplexCreateWithoutPermissionInput, Prisma.PermissionComplexUncheckedCreateWithoutPermissionInput> | Prisma.PermissionComplexCreateWithoutPermissionInput[] | Prisma.PermissionComplexUncheckedCreateWithoutPermissionInput[]
|
create?: Prisma.XOR<Prisma.PermissionComplexCreateWithoutPermissionInput, Prisma.PermissionComplexUncheckedCreateWithoutPermissionInput> | Prisma.PermissionComplexCreateWithoutPermissionInput[] | Prisma.PermissionComplexUncheckedCreateWithoutPermissionInput[]
|
||||||
connectOrCreate?: Prisma.PermissionComplexCreateOrConnectWithoutPermissionInput | Prisma.PermissionComplexCreateOrConnectWithoutPermissionInput[]
|
connectOrCreate?: Prisma.PermissionComplexCreateOrConnectWithoutPermissionInput | Prisma.PermissionComplexCreateOrConnectWithoutPermissionInput[]
|
||||||
@@ -398,52 +356,46 @@ export type EnumComplexRoleFieldUpdateOperationsInput = {
|
|||||||
set?: $Enums.ComplexRole
|
set?: $Enums.ComplexRole
|
||||||
}
|
}
|
||||||
|
|
||||||
export type PermissionComplexCreateWithoutComplexInput = {
|
export type PermissionComplexCreateNestedManyWithoutComplexInput = {
|
||||||
id?: string
|
create?: Prisma.XOR<Prisma.PermissionComplexCreateWithoutComplexInput, Prisma.PermissionComplexUncheckedCreateWithoutComplexInput> | Prisma.PermissionComplexCreateWithoutComplexInput[] | Prisma.PermissionComplexUncheckedCreateWithoutComplexInput[]
|
||||||
role: $Enums.ComplexRole
|
connectOrCreate?: Prisma.PermissionComplexCreateOrConnectWithoutComplexInput | Prisma.PermissionComplexCreateOrConnectWithoutComplexInput[]
|
||||||
permission: Prisma.PermissionConsumerCreateNestedOneWithoutComplex_permissionsInput
|
createMany?: Prisma.PermissionComplexCreateManyComplexInputEnvelope
|
||||||
|
connect?: Prisma.PermissionComplexWhereUniqueInput | Prisma.PermissionComplexWhereUniqueInput[]
|
||||||
}
|
}
|
||||||
|
|
||||||
export type PermissionComplexUncheckedCreateWithoutComplexInput = {
|
export type PermissionComplexUncheckedCreateNestedManyWithoutComplexInput = {
|
||||||
id?: string
|
create?: Prisma.XOR<Prisma.PermissionComplexCreateWithoutComplexInput, Prisma.PermissionComplexUncheckedCreateWithoutComplexInput> | Prisma.PermissionComplexCreateWithoutComplexInput[] | Prisma.PermissionComplexUncheckedCreateWithoutComplexInput[]
|
||||||
role: $Enums.ComplexRole
|
connectOrCreate?: Prisma.PermissionComplexCreateOrConnectWithoutComplexInput | Prisma.PermissionComplexCreateOrConnectWithoutComplexInput[]
|
||||||
permission_id: string
|
createMany?: Prisma.PermissionComplexCreateManyComplexInputEnvelope
|
||||||
|
connect?: Prisma.PermissionComplexWhereUniqueInput | Prisma.PermissionComplexWhereUniqueInput[]
|
||||||
}
|
}
|
||||||
|
|
||||||
export type PermissionComplexCreateOrConnectWithoutComplexInput = {
|
export type PermissionComplexUpdateManyWithoutComplexNestedInput = {
|
||||||
where: Prisma.PermissionComplexWhereUniqueInput
|
create?: Prisma.XOR<Prisma.PermissionComplexCreateWithoutComplexInput, Prisma.PermissionComplexUncheckedCreateWithoutComplexInput> | Prisma.PermissionComplexCreateWithoutComplexInput[] | Prisma.PermissionComplexUncheckedCreateWithoutComplexInput[]
|
||||||
create: Prisma.XOR<Prisma.PermissionComplexCreateWithoutComplexInput, Prisma.PermissionComplexUncheckedCreateWithoutComplexInput>
|
connectOrCreate?: Prisma.PermissionComplexCreateOrConnectWithoutComplexInput | Prisma.PermissionComplexCreateOrConnectWithoutComplexInput[]
|
||||||
|
upsert?: Prisma.PermissionComplexUpsertWithWhereUniqueWithoutComplexInput | Prisma.PermissionComplexUpsertWithWhereUniqueWithoutComplexInput[]
|
||||||
|
createMany?: Prisma.PermissionComplexCreateManyComplexInputEnvelope
|
||||||
|
set?: Prisma.PermissionComplexWhereUniqueInput | Prisma.PermissionComplexWhereUniqueInput[]
|
||||||
|
disconnect?: Prisma.PermissionComplexWhereUniqueInput | Prisma.PermissionComplexWhereUniqueInput[]
|
||||||
|
delete?: Prisma.PermissionComplexWhereUniqueInput | Prisma.PermissionComplexWhereUniqueInput[]
|
||||||
|
connect?: Prisma.PermissionComplexWhereUniqueInput | Prisma.PermissionComplexWhereUniqueInput[]
|
||||||
|
update?: Prisma.PermissionComplexUpdateWithWhereUniqueWithoutComplexInput | Prisma.PermissionComplexUpdateWithWhereUniqueWithoutComplexInput[]
|
||||||
|
updateMany?: Prisma.PermissionComplexUpdateManyWithWhereWithoutComplexInput | Prisma.PermissionComplexUpdateManyWithWhereWithoutComplexInput[]
|
||||||
|
deleteMany?: Prisma.PermissionComplexScalarWhereInput | Prisma.PermissionComplexScalarWhereInput[]
|
||||||
}
|
}
|
||||||
|
|
||||||
export type PermissionComplexCreateManyComplexInputEnvelope = {
|
export type PermissionComplexUncheckedUpdateManyWithoutComplexNestedInput = {
|
||||||
data: Prisma.PermissionComplexCreateManyComplexInput | Prisma.PermissionComplexCreateManyComplexInput[]
|
create?: Prisma.XOR<Prisma.PermissionComplexCreateWithoutComplexInput, Prisma.PermissionComplexUncheckedCreateWithoutComplexInput> | Prisma.PermissionComplexCreateWithoutComplexInput[] | Prisma.PermissionComplexUncheckedCreateWithoutComplexInput[]
|
||||||
skipDuplicates?: boolean
|
connectOrCreate?: Prisma.PermissionComplexCreateOrConnectWithoutComplexInput | Prisma.PermissionComplexCreateOrConnectWithoutComplexInput[]
|
||||||
}
|
upsert?: Prisma.PermissionComplexUpsertWithWhereUniqueWithoutComplexInput | Prisma.PermissionComplexUpsertWithWhereUniqueWithoutComplexInput[]
|
||||||
|
createMany?: Prisma.PermissionComplexCreateManyComplexInputEnvelope
|
||||||
export type PermissionComplexUpsertWithWhereUniqueWithoutComplexInput = {
|
set?: Prisma.PermissionComplexWhereUniqueInput | Prisma.PermissionComplexWhereUniqueInput[]
|
||||||
where: Prisma.PermissionComplexWhereUniqueInput
|
disconnect?: Prisma.PermissionComplexWhereUniqueInput | Prisma.PermissionComplexWhereUniqueInput[]
|
||||||
update: Prisma.XOR<Prisma.PermissionComplexUpdateWithoutComplexInput, Prisma.PermissionComplexUncheckedUpdateWithoutComplexInput>
|
delete?: Prisma.PermissionComplexWhereUniqueInput | Prisma.PermissionComplexWhereUniqueInput[]
|
||||||
create: Prisma.XOR<Prisma.PermissionComplexCreateWithoutComplexInput, Prisma.PermissionComplexUncheckedCreateWithoutComplexInput>
|
connect?: Prisma.PermissionComplexWhereUniqueInput | Prisma.PermissionComplexWhereUniqueInput[]
|
||||||
}
|
update?: Prisma.PermissionComplexUpdateWithWhereUniqueWithoutComplexInput | Prisma.PermissionComplexUpdateWithWhereUniqueWithoutComplexInput[]
|
||||||
|
updateMany?: Prisma.PermissionComplexUpdateManyWithWhereWithoutComplexInput | Prisma.PermissionComplexUpdateManyWithWhereWithoutComplexInput[]
|
||||||
export type PermissionComplexUpdateWithWhereUniqueWithoutComplexInput = {
|
deleteMany?: Prisma.PermissionComplexScalarWhereInput | Prisma.PermissionComplexScalarWhereInput[]
|
||||||
where: Prisma.PermissionComplexWhereUniqueInput
|
|
||||||
data: Prisma.XOR<Prisma.PermissionComplexUpdateWithoutComplexInput, Prisma.PermissionComplexUncheckedUpdateWithoutComplexInput>
|
|
||||||
}
|
|
||||||
|
|
||||||
export type PermissionComplexUpdateManyWithWhereWithoutComplexInput = {
|
|
||||||
where: Prisma.PermissionComplexScalarWhereInput
|
|
||||||
data: Prisma.XOR<Prisma.PermissionComplexUpdateManyMutationInput, Prisma.PermissionComplexUncheckedUpdateManyWithoutComplexInput>
|
|
||||||
}
|
|
||||||
|
|
||||||
export type PermissionComplexScalarWhereInput = {
|
|
||||||
AND?: Prisma.PermissionComplexScalarWhereInput | Prisma.PermissionComplexScalarWhereInput[]
|
|
||||||
OR?: Prisma.PermissionComplexScalarWhereInput[]
|
|
||||||
NOT?: Prisma.PermissionComplexScalarWhereInput | Prisma.PermissionComplexScalarWhereInput[]
|
|
||||||
id?: Prisma.StringFilter<"PermissionComplex"> | string
|
|
||||||
role?: Prisma.EnumComplexRoleFilter<"PermissionComplex"> | $Enums.ComplexRole
|
|
||||||
complex_id?: Prisma.StringFilter<"PermissionComplex"> | string
|
|
||||||
permission_id?: Prisma.StringFilter<"PermissionComplex"> | string
|
|
||||||
}
|
}
|
||||||
|
|
||||||
export type PermissionComplexCreateWithoutPermissionInput = {
|
export type PermissionComplexCreateWithoutPermissionInput = {
|
||||||
@@ -484,28 +436,52 @@ export type PermissionComplexUpdateManyWithWhereWithoutPermissionInput = {
|
|||||||
data: Prisma.XOR<Prisma.PermissionComplexUpdateManyMutationInput, Prisma.PermissionComplexUncheckedUpdateManyWithoutPermissionInput>
|
data: Prisma.XOR<Prisma.PermissionComplexUpdateManyMutationInput, Prisma.PermissionComplexUncheckedUpdateManyWithoutPermissionInput>
|
||||||
}
|
}
|
||||||
|
|
||||||
export type PermissionComplexCreateManyComplexInput = {
|
export type PermissionComplexScalarWhereInput = {
|
||||||
|
AND?: Prisma.PermissionComplexScalarWhereInput | Prisma.PermissionComplexScalarWhereInput[]
|
||||||
|
OR?: Prisma.PermissionComplexScalarWhereInput[]
|
||||||
|
NOT?: Prisma.PermissionComplexScalarWhereInput | Prisma.PermissionComplexScalarWhereInput[]
|
||||||
|
id?: Prisma.StringFilter<"PermissionComplex"> | string
|
||||||
|
role?: Prisma.EnumComplexRoleFilter<"PermissionComplex"> | $Enums.ComplexRole
|
||||||
|
complex_id?: Prisma.StringFilter<"PermissionComplex"> | string
|
||||||
|
permission_id?: Prisma.StringFilter<"PermissionComplex"> | string
|
||||||
|
}
|
||||||
|
|
||||||
|
export type PermissionComplexCreateWithoutComplexInput = {
|
||||||
|
id?: string
|
||||||
|
role: $Enums.ComplexRole
|
||||||
|
permission: Prisma.PermissionConsumerCreateNestedOneWithoutComplex_permissionsInput
|
||||||
|
}
|
||||||
|
|
||||||
|
export type PermissionComplexUncheckedCreateWithoutComplexInput = {
|
||||||
id?: string
|
id?: string
|
||||||
role: $Enums.ComplexRole
|
role: $Enums.ComplexRole
|
||||||
permission_id: string
|
permission_id: string
|
||||||
}
|
}
|
||||||
|
|
||||||
export type PermissionComplexUpdateWithoutComplexInput = {
|
export type PermissionComplexCreateOrConnectWithoutComplexInput = {
|
||||||
id?: Prisma.StringFieldUpdateOperationsInput | string
|
where: Prisma.PermissionComplexWhereUniqueInput
|
||||||
role?: Prisma.EnumComplexRoleFieldUpdateOperationsInput | $Enums.ComplexRole
|
create: Prisma.XOR<Prisma.PermissionComplexCreateWithoutComplexInput, Prisma.PermissionComplexUncheckedCreateWithoutComplexInput>
|
||||||
permission?: Prisma.PermissionConsumerUpdateOneRequiredWithoutComplex_permissionsNestedInput
|
|
||||||
}
|
}
|
||||||
|
|
||||||
export type PermissionComplexUncheckedUpdateWithoutComplexInput = {
|
export type PermissionComplexCreateManyComplexInputEnvelope = {
|
||||||
id?: Prisma.StringFieldUpdateOperationsInput | string
|
data: Prisma.PermissionComplexCreateManyComplexInput | Prisma.PermissionComplexCreateManyComplexInput[]
|
||||||
role?: Prisma.EnumComplexRoleFieldUpdateOperationsInput | $Enums.ComplexRole
|
skipDuplicates?: boolean
|
||||||
permission_id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
||||||
}
|
}
|
||||||
|
|
||||||
export type PermissionComplexUncheckedUpdateManyWithoutComplexInput = {
|
export type PermissionComplexUpsertWithWhereUniqueWithoutComplexInput = {
|
||||||
id?: Prisma.StringFieldUpdateOperationsInput | string
|
where: Prisma.PermissionComplexWhereUniqueInput
|
||||||
role?: Prisma.EnumComplexRoleFieldUpdateOperationsInput | $Enums.ComplexRole
|
update: Prisma.XOR<Prisma.PermissionComplexUpdateWithoutComplexInput, Prisma.PermissionComplexUncheckedUpdateWithoutComplexInput>
|
||||||
permission_id?: Prisma.StringFieldUpdateOperationsInput | string
|
create: Prisma.XOR<Prisma.PermissionComplexCreateWithoutComplexInput, Prisma.PermissionComplexUncheckedCreateWithoutComplexInput>
|
||||||
|
}
|
||||||
|
|
||||||
|
export type PermissionComplexUpdateWithWhereUniqueWithoutComplexInput = {
|
||||||
|
where: Prisma.PermissionComplexWhereUniqueInput
|
||||||
|
data: Prisma.XOR<Prisma.PermissionComplexUpdateWithoutComplexInput, Prisma.PermissionComplexUncheckedUpdateWithoutComplexInput>
|
||||||
|
}
|
||||||
|
|
||||||
|
export type PermissionComplexUpdateManyWithWhereWithoutComplexInput = {
|
||||||
|
where: Prisma.PermissionComplexScalarWhereInput
|
||||||
|
data: Prisma.XOR<Prisma.PermissionComplexUpdateManyMutationInput, Prisma.PermissionComplexUncheckedUpdateManyWithoutComplexInput>
|
||||||
}
|
}
|
||||||
|
|
||||||
export type PermissionComplexCreateManyPermissionInput = {
|
export type PermissionComplexCreateManyPermissionInput = {
|
||||||
@@ -532,6 +508,30 @@ export type PermissionComplexUncheckedUpdateManyWithoutPermissionInput = {
|
|||||||
complex_id?: Prisma.StringFieldUpdateOperationsInput | string
|
complex_id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export type PermissionComplexCreateManyComplexInput = {
|
||||||
|
id?: string
|
||||||
|
role: $Enums.ComplexRole
|
||||||
|
permission_id: string
|
||||||
|
}
|
||||||
|
|
||||||
|
export type PermissionComplexUpdateWithoutComplexInput = {
|
||||||
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||||
|
role?: Prisma.EnumComplexRoleFieldUpdateOperationsInput | $Enums.ComplexRole
|
||||||
|
permission?: Prisma.PermissionConsumerUpdateOneRequiredWithoutComplex_permissionsNestedInput
|
||||||
|
}
|
||||||
|
|
||||||
|
export type PermissionComplexUncheckedUpdateWithoutComplexInput = {
|
||||||
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||||
|
role?: Prisma.EnumComplexRoleFieldUpdateOperationsInput | $Enums.ComplexRole
|
||||||
|
permission_id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||||
|
}
|
||||||
|
|
||||||
|
export type PermissionComplexUncheckedUpdateManyWithoutComplexInput = {
|
||||||
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||||
|
role?: Prisma.EnumComplexRoleFieldUpdateOperationsInput | $Enums.ComplexRole
|
||||||
|
permission_id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
export type PermissionComplexSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
export type PermissionComplexSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
||||||
|
|||||||
@@ -248,11 +248,6 @@ export type PermissionConsumerUncheckedUpdateManyInput = {
|
|||||||
consumer_account_id?: Prisma.StringFieldUpdateOperationsInput | string
|
consumer_account_id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||||
}
|
}
|
||||||
|
|
||||||
export type PermissionConsumerNullableScalarRelationFilter = {
|
|
||||||
is?: Prisma.PermissionConsumerWhereInput | null
|
|
||||||
isNot?: Prisma.PermissionConsumerWhereInput | null
|
|
||||||
}
|
|
||||||
|
|
||||||
export type PermissionConsumerOrderByRelevanceInput = {
|
export type PermissionConsumerOrderByRelevanceInput = {
|
||||||
fields: Prisma.PermissionConsumerOrderByRelevanceFieldEnum | Prisma.PermissionConsumerOrderByRelevanceFieldEnum[]
|
fields: Prisma.PermissionConsumerOrderByRelevanceFieldEnum | Prisma.PermissionConsumerOrderByRelevanceFieldEnum[]
|
||||||
sort: Prisma.SortOrder
|
sort: Prisma.SortOrder
|
||||||
@@ -279,36 +274,9 @@ export type PermissionConsumerScalarRelationFilter = {
|
|||||||
isNot?: Prisma.PermissionConsumerWhereInput
|
isNot?: Prisma.PermissionConsumerWhereInput
|
||||||
}
|
}
|
||||||
|
|
||||||
export type PermissionConsumerCreateNestedOneWithoutConsumer_accountInput = {
|
export type PermissionConsumerNullableScalarRelationFilter = {
|
||||||
create?: Prisma.XOR<Prisma.PermissionConsumerCreateWithoutConsumer_accountInput, Prisma.PermissionConsumerUncheckedCreateWithoutConsumer_accountInput>
|
is?: Prisma.PermissionConsumerWhereInput | null
|
||||||
connectOrCreate?: Prisma.PermissionConsumerCreateOrConnectWithoutConsumer_accountInput
|
isNot?: Prisma.PermissionConsumerWhereInput | null
|
||||||
connect?: Prisma.PermissionConsumerWhereUniqueInput
|
|
||||||
}
|
|
||||||
|
|
||||||
export type PermissionConsumerUncheckedCreateNestedOneWithoutConsumer_accountInput = {
|
|
||||||
create?: Prisma.XOR<Prisma.PermissionConsumerCreateWithoutConsumer_accountInput, Prisma.PermissionConsumerUncheckedCreateWithoutConsumer_accountInput>
|
|
||||||
connectOrCreate?: Prisma.PermissionConsumerCreateOrConnectWithoutConsumer_accountInput
|
|
||||||
connect?: Prisma.PermissionConsumerWhereUniqueInput
|
|
||||||
}
|
|
||||||
|
|
||||||
export type PermissionConsumerUpdateOneWithoutConsumer_accountNestedInput = {
|
|
||||||
create?: Prisma.XOR<Prisma.PermissionConsumerCreateWithoutConsumer_accountInput, Prisma.PermissionConsumerUncheckedCreateWithoutConsumer_accountInput>
|
|
||||||
connectOrCreate?: Prisma.PermissionConsumerCreateOrConnectWithoutConsumer_accountInput
|
|
||||||
upsert?: Prisma.PermissionConsumerUpsertWithoutConsumer_accountInput
|
|
||||||
disconnect?: Prisma.PermissionConsumerWhereInput | boolean
|
|
||||||
delete?: Prisma.PermissionConsumerWhereInput | boolean
|
|
||||||
connect?: Prisma.PermissionConsumerWhereUniqueInput
|
|
||||||
update?: Prisma.XOR<Prisma.XOR<Prisma.PermissionConsumerUpdateToOneWithWhereWithoutConsumer_accountInput, Prisma.PermissionConsumerUpdateWithoutConsumer_accountInput>, Prisma.PermissionConsumerUncheckedUpdateWithoutConsumer_accountInput>
|
|
||||||
}
|
|
||||||
|
|
||||||
export type PermissionConsumerUncheckedUpdateOneWithoutConsumer_accountNestedInput = {
|
|
||||||
create?: Prisma.XOR<Prisma.PermissionConsumerCreateWithoutConsumer_accountInput, Prisma.PermissionConsumerUncheckedCreateWithoutConsumer_accountInput>
|
|
||||||
connectOrCreate?: Prisma.PermissionConsumerCreateOrConnectWithoutConsumer_accountInput
|
|
||||||
upsert?: Prisma.PermissionConsumerUpsertWithoutConsumer_accountInput
|
|
||||||
disconnect?: Prisma.PermissionConsumerWhereInput | boolean
|
|
||||||
delete?: Prisma.PermissionConsumerWhereInput | boolean
|
|
||||||
connect?: Prisma.PermissionConsumerWhereUniqueInput
|
|
||||||
update?: Prisma.XOR<Prisma.XOR<Prisma.PermissionConsumerUpdateToOneWithWhereWithoutConsumer_accountInput, Prisma.PermissionConsumerUpdateWithoutConsumer_accountInput>, Prisma.PermissionConsumerUncheckedUpdateWithoutConsumer_accountInput>
|
|
||||||
}
|
}
|
||||||
|
|
||||||
export type PermissionConsumerCreateNestedOneWithoutPos_permissionsInput = {
|
export type PermissionConsumerCreateNestedOneWithoutPos_permissionsInput = {
|
||||||
@@ -353,48 +321,36 @@ export type PermissionConsumerUpdateOneRequiredWithoutBusiness_permissionsNested
|
|||||||
update?: Prisma.XOR<Prisma.XOR<Prisma.PermissionConsumerUpdateToOneWithWhereWithoutBusiness_permissionsInput, Prisma.PermissionConsumerUpdateWithoutBusiness_permissionsInput>, Prisma.PermissionConsumerUncheckedUpdateWithoutBusiness_permissionsInput>
|
update?: Prisma.XOR<Prisma.XOR<Prisma.PermissionConsumerUpdateToOneWithWhereWithoutBusiness_permissionsInput, Prisma.PermissionConsumerUpdateWithoutBusiness_permissionsInput>, Prisma.PermissionConsumerUncheckedUpdateWithoutBusiness_permissionsInput>
|
||||||
}
|
}
|
||||||
|
|
||||||
export type PermissionConsumerCreateWithoutConsumer_accountInput = {
|
export type PermissionConsumerCreateNestedOneWithoutConsumer_accountInput = {
|
||||||
id?: string
|
create?: Prisma.XOR<Prisma.PermissionConsumerCreateWithoutConsumer_accountInput, Prisma.PermissionConsumerUncheckedCreateWithoutConsumer_accountInput>
|
||||||
pos_permissions?: Prisma.PermissionPosCreateNestedManyWithoutPermissionInput
|
connectOrCreate?: Prisma.PermissionConsumerCreateOrConnectWithoutConsumer_accountInput
|
||||||
complex_permissions?: Prisma.PermissionComplexCreateNestedManyWithoutPermissionInput
|
connect?: Prisma.PermissionConsumerWhereUniqueInput
|
||||||
business_permissions?: Prisma.PermissionBusinessCreateNestedManyWithoutPermissionInput
|
|
||||||
}
|
}
|
||||||
|
|
||||||
export type PermissionConsumerUncheckedCreateWithoutConsumer_accountInput = {
|
export type PermissionConsumerUncheckedCreateNestedOneWithoutConsumer_accountInput = {
|
||||||
id?: string
|
create?: Prisma.XOR<Prisma.PermissionConsumerCreateWithoutConsumer_accountInput, Prisma.PermissionConsumerUncheckedCreateWithoutConsumer_accountInput>
|
||||||
pos_permissions?: Prisma.PermissionPosUncheckedCreateNestedManyWithoutPermissionInput
|
connectOrCreate?: Prisma.PermissionConsumerCreateOrConnectWithoutConsumer_accountInput
|
||||||
complex_permissions?: Prisma.PermissionComplexUncheckedCreateNestedManyWithoutPermissionInput
|
connect?: Prisma.PermissionConsumerWhereUniqueInput
|
||||||
business_permissions?: Prisma.PermissionBusinessUncheckedCreateNestedManyWithoutPermissionInput
|
|
||||||
}
|
}
|
||||||
|
|
||||||
export type PermissionConsumerCreateOrConnectWithoutConsumer_accountInput = {
|
export type PermissionConsumerUpdateOneWithoutConsumer_accountNestedInput = {
|
||||||
where: Prisma.PermissionConsumerWhereUniqueInput
|
create?: Prisma.XOR<Prisma.PermissionConsumerCreateWithoutConsumer_accountInput, Prisma.PermissionConsumerUncheckedCreateWithoutConsumer_accountInput>
|
||||||
create: Prisma.XOR<Prisma.PermissionConsumerCreateWithoutConsumer_accountInput, Prisma.PermissionConsumerUncheckedCreateWithoutConsumer_accountInput>
|
connectOrCreate?: Prisma.PermissionConsumerCreateOrConnectWithoutConsumer_accountInput
|
||||||
|
upsert?: Prisma.PermissionConsumerUpsertWithoutConsumer_accountInput
|
||||||
|
disconnect?: Prisma.PermissionConsumerWhereInput | boolean
|
||||||
|
delete?: Prisma.PermissionConsumerWhereInput | boolean
|
||||||
|
connect?: Prisma.PermissionConsumerWhereUniqueInput
|
||||||
|
update?: Prisma.XOR<Prisma.XOR<Prisma.PermissionConsumerUpdateToOneWithWhereWithoutConsumer_accountInput, Prisma.PermissionConsumerUpdateWithoutConsumer_accountInput>, Prisma.PermissionConsumerUncheckedUpdateWithoutConsumer_accountInput>
|
||||||
}
|
}
|
||||||
|
|
||||||
export type PermissionConsumerUpsertWithoutConsumer_accountInput = {
|
export type PermissionConsumerUncheckedUpdateOneWithoutConsumer_accountNestedInput = {
|
||||||
update: Prisma.XOR<Prisma.PermissionConsumerUpdateWithoutConsumer_accountInput, Prisma.PermissionConsumerUncheckedUpdateWithoutConsumer_accountInput>
|
create?: Prisma.XOR<Prisma.PermissionConsumerCreateWithoutConsumer_accountInput, Prisma.PermissionConsumerUncheckedCreateWithoutConsumer_accountInput>
|
||||||
create: Prisma.XOR<Prisma.PermissionConsumerCreateWithoutConsumer_accountInput, Prisma.PermissionConsumerUncheckedCreateWithoutConsumer_accountInput>
|
connectOrCreate?: Prisma.PermissionConsumerCreateOrConnectWithoutConsumer_accountInput
|
||||||
where?: Prisma.PermissionConsumerWhereInput
|
upsert?: Prisma.PermissionConsumerUpsertWithoutConsumer_accountInput
|
||||||
}
|
disconnect?: Prisma.PermissionConsumerWhereInput | boolean
|
||||||
|
delete?: Prisma.PermissionConsumerWhereInput | boolean
|
||||||
export type PermissionConsumerUpdateToOneWithWhereWithoutConsumer_accountInput = {
|
connect?: Prisma.PermissionConsumerWhereUniqueInput
|
||||||
where?: Prisma.PermissionConsumerWhereInput
|
update?: Prisma.XOR<Prisma.XOR<Prisma.PermissionConsumerUpdateToOneWithWhereWithoutConsumer_accountInput, Prisma.PermissionConsumerUpdateWithoutConsumer_accountInput>, Prisma.PermissionConsumerUncheckedUpdateWithoutConsumer_accountInput>
|
||||||
data: Prisma.XOR<Prisma.PermissionConsumerUpdateWithoutConsumer_accountInput, Prisma.PermissionConsumerUncheckedUpdateWithoutConsumer_accountInput>
|
|
||||||
}
|
|
||||||
|
|
||||||
export type PermissionConsumerUpdateWithoutConsumer_accountInput = {
|
|
||||||
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
||||||
pos_permissions?: Prisma.PermissionPosUpdateManyWithoutPermissionNestedInput
|
|
||||||
complex_permissions?: Prisma.PermissionComplexUpdateManyWithoutPermissionNestedInput
|
|
||||||
business_permissions?: Prisma.PermissionBusinessUpdateManyWithoutPermissionNestedInput
|
|
||||||
}
|
|
||||||
|
|
||||||
export type PermissionConsumerUncheckedUpdateWithoutConsumer_accountInput = {
|
|
||||||
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
||||||
pos_permissions?: Prisma.PermissionPosUncheckedUpdateManyWithoutPermissionNestedInput
|
|
||||||
complex_permissions?: Prisma.PermissionComplexUncheckedUpdateManyWithoutPermissionNestedInput
|
|
||||||
business_permissions?: Prisma.PermissionBusinessUncheckedUpdateManyWithoutPermissionNestedInput
|
|
||||||
}
|
}
|
||||||
|
|
||||||
export type PermissionConsumerCreateWithoutPos_permissionsInput = {
|
export type PermissionConsumerCreateWithoutPos_permissionsInput = {
|
||||||
@@ -529,6 +485,50 @@ export type PermissionConsumerUncheckedUpdateWithoutBusiness_permissionsInput =
|
|||||||
complex_permissions?: Prisma.PermissionComplexUncheckedUpdateManyWithoutPermissionNestedInput
|
complex_permissions?: Prisma.PermissionComplexUncheckedUpdateManyWithoutPermissionNestedInput
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export type PermissionConsumerCreateWithoutConsumer_accountInput = {
|
||||||
|
id?: string
|
||||||
|
pos_permissions?: Prisma.PermissionPosCreateNestedManyWithoutPermissionInput
|
||||||
|
complex_permissions?: Prisma.PermissionComplexCreateNestedManyWithoutPermissionInput
|
||||||
|
business_permissions?: Prisma.PermissionBusinessCreateNestedManyWithoutPermissionInput
|
||||||
|
}
|
||||||
|
|
||||||
|
export type PermissionConsumerUncheckedCreateWithoutConsumer_accountInput = {
|
||||||
|
id?: string
|
||||||
|
pos_permissions?: Prisma.PermissionPosUncheckedCreateNestedManyWithoutPermissionInput
|
||||||
|
complex_permissions?: Prisma.PermissionComplexUncheckedCreateNestedManyWithoutPermissionInput
|
||||||
|
business_permissions?: Prisma.PermissionBusinessUncheckedCreateNestedManyWithoutPermissionInput
|
||||||
|
}
|
||||||
|
|
||||||
|
export type PermissionConsumerCreateOrConnectWithoutConsumer_accountInput = {
|
||||||
|
where: Prisma.PermissionConsumerWhereUniqueInput
|
||||||
|
create: Prisma.XOR<Prisma.PermissionConsumerCreateWithoutConsumer_accountInput, Prisma.PermissionConsumerUncheckedCreateWithoutConsumer_accountInput>
|
||||||
|
}
|
||||||
|
|
||||||
|
export type PermissionConsumerUpsertWithoutConsumer_accountInput = {
|
||||||
|
update: Prisma.XOR<Prisma.PermissionConsumerUpdateWithoutConsumer_accountInput, Prisma.PermissionConsumerUncheckedUpdateWithoutConsumer_accountInput>
|
||||||
|
create: Prisma.XOR<Prisma.PermissionConsumerCreateWithoutConsumer_accountInput, Prisma.PermissionConsumerUncheckedCreateWithoutConsumer_accountInput>
|
||||||
|
where?: Prisma.PermissionConsumerWhereInput
|
||||||
|
}
|
||||||
|
|
||||||
|
export type PermissionConsumerUpdateToOneWithWhereWithoutConsumer_accountInput = {
|
||||||
|
where?: Prisma.PermissionConsumerWhereInput
|
||||||
|
data: Prisma.XOR<Prisma.PermissionConsumerUpdateWithoutConsumer_accountInput, Prisma.PermissionConsumerUncheckedUpdateWithoutConsumer_accountInput>
|
||||||
|
}
|
||||||
|
|
||||||
|
export type PermissionConsumerUpdateWithoutConsumer_accountInput = {
|
||||||
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||||
|
pos_permissions?: Prisma.PermissionPosUpdateManyWithoutPermissionNestedInput
|
||||||
|
complex_permissions?: Prisma.PermissionComplexUpdateManyWithoutPermissionNestedInput
|
||||||
|
business_permissions?: Prisma.PermissionBusinessUpdateManyWithoutPermissionNestedInput
|
||||||
|
}
|
||||||
|
|
||||||
|
export type PermissionConsumerUncheckedUpdateWithoutConsumer_accountInput = {
|
||||||
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||||
|
pos_permissions?: Prisma.PermissionPosUncheckedUpdateManyWithoutPermissionNestedInput
|
||||||
|
complex_permissions?: Prisma.PermissionComplexUncheckedUpdateManyWithoutPermissionNestedInput
|
||||||
|
business_permissions?: Prisma.PermissionBusinessUncheckedUpdateManyWithoutPermissionNestedInput
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Count Type PermissionConsumerCountOutputType
|
* Count Type PermissionConsumerCountOutputType
|
||||||
|
|||||||
@@ -310,48 +310,6 @@ export type PermissionPosMinOrderByAggregateInput = {
|
|||||||
permission_id?: Prisma.SortOrder
|
permission_id?: Prisma.SortOrder
|
||||||
}
|
}
|
||||||
|
|
||||||
export type PermissionPosCreateNestedManyWithoutPosInput = {
|
|
||||||
create?: Prisma.XOR<Prisma.PermissionPosCreateWithoutPosInput, Prisma.PermissionPosUncheckedCreateWithoutPosInput> | Prisma.PermissionPosCreateWithoutPosInput[] | Prisma.PermissionPosUncheckedCreateWithoutPosInput[]
|
|
||||||
connectOrCreate?: Prisma.PermissionPosCreateOrConnectWithoutPosInput | Prisma.PermissionPosCreateOrConnectWithoutPosInput[]
|
|
||||||
createMany?: Prisma.PermissionPosCreateManyPosInputEnvelope
|
|
||||||
connect?: Prisma.PermissionPosWhereUniqueInput | Prisma.PermissionPosWhereUniqueInput[]
|
|
||||||
}
|
|
||||||
|
|
||||||
export type PermissionPosUncheckedCreateNestedManyWithoutPosInput = {
|
|
||||||
create?: Prisma.XOR<Prisma.PermissionPosCreateWithoutPosInput, Prisma.PermissionPosUncheckedCreateWithoutPosInput> | Prisma.PermissionPosCreateWithoutPosInput[] | Prisma.PermissionPosUncheckedCreateWithoutPosInput[]
|
|
||||||
connectOrCreate?: Prisma.PermissionPosCreateOrConnectWithoutPosInput | Prisma.PermissionPosCreateOrConnectWithoutPosInput[]
|
|
||||||
createMany?: Prisma.PermissionPosCreateManyPosInputEnvelope
|
|
||||||
connect?: Prisma.PermissionPosWhereUniqueInput | Prisma.PermissionPosWhereUniqueInput[]
|
|
||||||
}
|
|
||||||
|
|
||||||
export type PermissionPosUpdateManyWithoutPosNestedInput = {
|
|
||||||
create?: Prisma.XOR<Prisma.PermissionPosCreateWithoutPosInput, Prisma.PermissionPosUncheckedCreateWithoutPosInput> | Prisma.PermissionPosCreateWithoutPosInput[] | Prisma.PermissionPosUncheckedCreateWithoutPosInput[]
|
|
||||||
connectOrCreate?: Prisma.PermissionPosCreateOrConnectWithoutPosInput | Prisma.PermissionPosCreateOrConnectWithoutPosInput[]
|
|
||||||
upsert?: Prisma.PermissionPosUpsertWithWhereUniqueWithoutPosInput | Prisma.PermissionPosUpsertWithWhereUniqueWithoutPosInput[]
|
|
||||||
createMany?: Prisma.PermissionPosCreateManyPosInputEnvelope
|
|
||||||
set?: Prisma.PermissionPosWhereUniqueInput | Prisma.PermissionPosWhereUniqueInput[]
|
|
||||||
disconnect?: Prisma.PermissionPosWhereUniqueInput | Prisma.PermissionPosWhereUniqueInput[]
|
|
||||||
delete?: Prisma.PermissionPosWhereUniqueInput | Prisma.PermissionPosWhereUniqueInput[]
|
|
||||||
connect?: Prisma.PermissionPosWhereUniqueInput | Prisma.PermissionPosWhereUniqueInput[]
|
|
||||||
update?: Prisma.PermissionPosUpdateWithWhereUniqueWithoutPosInput | Prisma.PermissionPosUpdateWithWhereUniqueWithoutPosInput[]
|
|
||||||
updateMany?: Prisma.PermissionPosUpdateManyWithWhereWithoutPosInput | Prisma.PermissionPosUpdateManyWithWhereWithoutPosInput[]
|
|
||||||
deleteMany?: Prisma.PermissionPosScalarWhereInput | Prisma.PermissionPosScalarWhereInput[]
|
|
||||||
}
|
|
||||||
|
|
||||||
export type PermissionPosUncheckedUpdateManyWithoutPosNestedInput = {
|
|
||||||
create?: Prisma.XOR<Prisma.PermissionPosCreateWithoutPosInput, Prisma.PermissionPosUncheckedCreateWithoutPosInput> | Prisma.PermissionPosCreateWithoutPosInput[] | Prisma.PermissionPosUncheckedCreateWithoutPosInput[]
|
|
||||||
connectOrCreate?: Prisma.PermissionPosCreateOrConnectWithoutPosInput | Prisma.PermissionPosCreateOrConnectWithoutPosInput[]
|
|
||||||
upsert?: Prisma.PermissionPosUpsertWithWhereUniqueWithoutPosInput | Prisma.PermissionPosUpsertWithWhereUniqueWithoutPosInput[]
|
|
||||||
createMany?: Prisma.PermissionPosCreateManyPosInputEnvelope
|
|
||||||
set?: Prisma.PermissionPosWhereUniqueInput | Prisma.PermissionPosWhereUniqueInput[]
|
|
||||||
disconnect?: Prisma.PermissionPosWhereUniqueInput | Prisma.PermissionPosWhereUniqueInput[]
|
|
||||||
delete?: Prisma.PermissionPosWhereUniqueInput | Prisma.PermissionPosWhereUniqueInput[]
|
|
||||||
connect?: Prisma.PermissionPosWhereUniqueInput | Prisma.PermissionPosWhereUniqueInput[]
|
|
||||||
update?: Prisma.PermissionPosUpdateWithWhereUniqueWithoutPosInput | Prisma.PermissionPosUpdateWithWhereUniqueWithoutPosInput[]
|
|
||||||
updateMany?: Prisma.PermissionPosUpdateManyWithWhereWithoutPosInput | Prisma.PermissionPosUpdateManyWithWhereWithoutPosInput[]
|
|
||||||
deleteMany?: Prisma.PermissionPosScalarWhereInput | Prisma.PermissionPosScalarWhereInput[]
|
|
||||||
}
|
|
||||||
|
|
||||||
export type PermissionPosCreateNestedManyWithoutPermissionInput = {
|
export type PermissionPosCreateNestedManyWithoutPermissionInput = {
|
||||||
create?: Prisma.XOR<Prisma.PermissionPosCreateWithoutPermissionInput, Prisma.PermissionPosUncheckedCreateWithoutPermissionInput> | Prisma.PermissionPosCreateWithoutPermissionInput[] | Prisma.PermissionPosUncheckedCreateWithoutPermissionInput[]
|
create?: Prisma.XOR<Prisma.PermissionPosCreateWithoutPermissionInput, Prisma.PermissionPosUncheckedCreateWithoutPermissionInput> | Prisma.PermissionPosCreateWithoutPermissionInput[] | Prisma.PermissionPosUncheckedCreateWithoutPermissionInput[]
|
||||||
connectOrCreate?: Prisma.PermissionPosCreateOrConnectWithoutPermissionInput | Prisma.PermissionPosCreateOrConnectWithoutPermissionInput[]
|
connectOrCreate?: Prisma.PermissionPosCreateOrConnectWithoutPermissionInput | Prisma.PermissionPosCreateOrConnectWithoutPermissionInput[]
|
||||||
@@ -398,52 +356,46 @@ export type EnumPOSRoleFieldUpdateOperationsInput = {
|
|||||||
set?: $Enums.POSRole
|
set?: $Enums.POSRole
|
||||||
}
|
}
|
||||||
|
|
||||||
export type PermissionPosCreateWithoutPosInput = {
|
export type PermissionPosCreateNestedManyWithoutPosInput = {
|
||||||
id?: string
|
create?: Prisma.XOR<Prisma.PermissionPosCreateWithoutPosInput, Prisma.PermissionPosUncheckedCreateWithoutPosInput> | Prisma.PermissionPosCreateWithoutPosInput[] | Prisma.PermissionPosUncheckedCreateWithoutPosInput[]
|
||||||
role: $Enums.POSRole
|
connectOrCreate?: Prisma.PermissionPosCreateOrConnectWithoutPosInput | Prisma.PermissionPosCreateOrConnectWithoutPosInput[]
|
||||||
permission: Prisma.PermissionConsumerCreateNestedOneWithoutPos_permissionsInput
|
createMany?: Prisma.PermissionPosCreateManyPosInputEnvelope
|
||||||
|
connect?: Prisma.PermissionPosWhereUniqueInput | Prisma.PermissionPosWhereUniqueInput[]
|
||||||
}
|
}
|
||||||
|
|
||||||
export type PermissionPosUncheckedCreateWithoutPosInput = {
|
export type PermissionPosUncheckedCreateNestedManyWithoutPosInput = {
|
||||||
id?: string
|
create?: Prisma.XOR<Prisma.PermissionPosCreateWithoutPosInput, Prisma.PermissionPosUncheckedCreateWithoutPosInput> | Prisma.PermissionPosCreateWithoutPosInput[] | Prisma.PermissionPosUncheckedCreateWithoutPosInput[]
|
||||||
role: $Enums.POSRole
|
connectOrCreate?: Prisma.PermissionPosCreateOrConnectWithoutPosInput | Prisma.PermissionPosCreateOrConnectWithoutPosInput[]
|
||||||
permission_id: string
|
createMany?: Prisma.PermissionPosCreateManyPosInputEnvelope
|
||||||
|
connect?: Prisma.PermissionPosWhereUniqueInput | Prisma.PermissionPosWhereUniqueInput[]
|
||||||
}
|
}
|
||||||
|
|
||||||
export type PermissionPosCreateOrConnectWithoutPosInput = {
|
export type PermissionPosUpdateManyWithoutPosNestedInput = {
|
||||||
where: Prisma.PermissionPosWhereUniqueInput
|
create?: Prisma.XOR<Prisma.PermissionPosCreateWithoutPosInput, Prisma.PermissionPosUncheckedCreateWithoutPosInput> | Prisma.PermissionPosCreateWithoutPosInput[] | Prisma.PermissionPosUncheckedCreateWithoutPosInput[]
|
||||||
create: Prisma.XOR<Prisma.PermissionPosCreateWithoutPosInput, Prisma.PermissionPosUncheckedCreateWithoutPosInput>
|
connectOrCreate?: Prisma.PermissionPosCreateOrConnectWithoutPosInput | Prisma.PermissionPosCreateOrConnectWithoutPosInput[]
|
||||||
|
upsert?: Prisma.PermissionPosUpsertWithWhereUniqueWithoutPosInput | Prisma.PermissionPosUpsertWithWhereUniqueWithoutPosInput[]
|
||||||
|
createMany?: Prisma.PermissionPosCreateManyPosInputEnvelope
|
||||||
|
set?: Prisma.PermissionPosWhereUniqueInput | Prisma.PermissionPosWhereUniqueInput[]
|
||||||
|
disconnect?: Prisma.PermissionPosWhereUniqueInput | Prisma.PermissionPosWhereUniqueInput[]
|
||||||
|
delete?: Prisma.PermissionPosWhereUniqueInput | Prisma.PermissionPosWhereUniqueInput[]
|
||||||
|
connect?: Prisma.PermissionPosWhereUniqueInput | Prisma.PermissionPosWhereUniqueInput[]
|
||||||
|
update?: Prisma.PermissionPosUpdateWithWhereUniqueWithoutPosInput | Prisma.PermissionPosUpdateWithWhereUniqueWithoutPosInput[]
|
||||||
|
updateMany?: Prisma.PermissionPosUpdateManyWithWhereWithoutPosInput | Prisma.PermissionPosUpdateManyWithWhereWithoutPosInput[]
|
||||||
|
deleteMany?: Prisma.PermissionPosScalarWhereInput | Prisma.PermissionPosScalarWhereInput[]
|
||||||
}
|
}
|
||||||
|
|
||||||
export type PermissionPosCreateManyPosInputEnvelope = {
|
export type PermissionPosUncheckedUpdateManyWithoutPosNestedInput = {
|
||||||
data: Prisma.PermissionPosCreateManyPosInput | Prisma.PermissionPosCreateManyPosInput[]
|
create?: Prisma.XOR<Prisma.PermissionPosCreateWithoutPosInput, Prisma.PermissionPosUncheckedCreateWithoutPosInput> | Prisma.PermissionPosCreateWithoutPosInput[] | Prisma.PermissionPosUncheckedCreateWithoutPosInput[]
|
||||||
skipDuplicates?: boolean
|
connectOrCreate?: Prisma.PermissionPosCreateOrConnectWithoutPosInput | Prisma.PermissionPosCreateOrConnectWithoutPosInput[]
|
||||||
}
|
upsert?: Prisma.PermissionPosUpsertWithWhereUniqueWithoutPosInput | Prisma.PermissionPosUpsertWithWhereUniqueWithoutPosInput[]
|
||||||
|
createMany?: Prisma.PermissionPosCreateManyPosInputEnvelope
|
||||||
export type PermissionPosUpsertWithWhereUniqueWithoutPosInput = {
|
set?: Prisma.PermissionPosWhereUniqueInput | Prisma.PermissionPosWhereUniqueInput[]
|
||||||
where: Prisma.PermissionPosWhereUniqueInput
|
disconnect?: Prisma.PermissionPosWhereUniqueInput | Prisma.PermissionPosWhereUniqueInput[]
|
||||||
update: Prisma.XOR<Prisma.PermissionPosUpdateWithoutPosInput, Prisma.PermissionPosUncheckedUpdateWithoutPosInput>
|
delete?: Prisma.PermissionPosWhereUniqueInput | Prisma.PermissionPosWhereUniqueInput[]
|
||||||
create: Prisma.XOR<Prisma.PermissionPosCreateWithoutPosInput, Prisma.PermissionPosUncheckedCreateWithoutPosInput>
|
connect?: Prisma.PermissionPosWhereUniqueInput | Prisma.PermissionPosWhereUniqueInput[]
|
||||||
}
|
update?: Prisma.PermissionPosUpdateWithWhereUniqueWithoutPosInput | Prisma.PermissionPosUpdateWithWhereUniqueWithoutPosInput[]
|
||||||
|
updateMany?: Prisma.PermissionPosUpdateManyWithWhereWithoutPosInput | Prisma.PermissionPosUpdateManyWithWhereWithoutPosInput[]
|
||||||
export type PermissionPosUpdateWithWhereUniqueWithoutPosInput = {
|
deleteMany?: Prisma.PermissionPosScalarWhereInput | Prisma.PermissionPosScalarWhereInput[]
|
||||||
where: Prisma.PermissionPosWhereUniqueInput
|
|
||||||
data: Prisma.XOR<Prisma.PermissionPosUpdateWithoutPosInput, Prisma.PermissionPosUncheckedUpdateWithoutPosInput>
|
|
||||||
}
|
|
||||||
|
|
||||||
export type PermissionPosUpdateManyWithWhereWithoutPosInput = {
|
|
||||||
where: Prisma.PermissionPosScalarWhereInput
|
|
||||||
data: Prisma.XOR<Prisma.PermissionPosUpdateManyMutationInput, Prisma.PermissionPosUncheckedUpdateManyWithoutPosInput>
|
|
||||||
}
|
|
||||||
|
|
||||||
export type PermissionPosScalarWhereInput = {
|
|
||||||
AND?: Prisma.PermissionPosScalarWhereInput | Prisma.PermissionPosScalarWhereInput[]
|
|
||||||
OR?: Prisma.PermissionPosScalarWhereInput[]
|
|
||||||
NOT?: Prisma.PermissionPosScalarWhereInput | Prisma.PermissionPosScalarWhereInput[]
|
|
||||||
id?: Prisma.StringFilter<"PermissionPos"> | string
|
|
||||||
role?: Prisma.EnumPOSRoleFilter<"PermissionPos"> | $Enums.POSRole
|
|
||||||
pos_id?: Prisma.StringFilter<"PermissionPos"> | string
|
|
||||||
permission_id?: Prisma.StringFilter<"PermissionPos"> | string
|
|
||||||
}
|
}
|
||||||
|
|
||||||
export type PermissionPosCreateWithoutPermissionInput = {
|
export type PermissionPosCreateWithoutPermissionInput = {
|
||||||
@@ -484,28 +436,52 @@ export type PermissionPosUpdateManyWithWhereWithoutPermissionInput = {
|
|||||||
data: Prisma.XOR<Prisma.PermissionPosUpdateManyMutationInput, Prisma.PermissionPosUncheckedUpdateManyWithoutPermissionInput>
|
data: Prisma.XOR<Prisma.PermissionPosUpdateManyMutationInput, Prisma.PermissionPosUncheckedUpdateManyWithoutPermissionInput>
|
||||||
}
|
}
|
||||||
|
|
||||||
export type PermissionPosCreateManyPosInput = {
|
export type PermissionPosScalarWhereInput = {
|
||||||
|
AND?: Prisma.PermissionPosScalarWhereInput | Prisma.PermissionPosScalarWhereInput[]
|
||||||
|
OR?: Prisma.PermissionPosScalarWhereInput[]
|
||||||
|
NOT?: Prisma.PermissionPosScalarWhereInput | Prisma.PermissionPosScalarWhereInput[]
|
||||||
|
id?: Prisma.StringFilter<"PermissionPos"> | string
|
||||||
|
role?: Prisma.EnumPOSRoleFilter<"PermissionPos"> | $Enums.POSRole
|
||||||
|
pos_id?: Prisma.StringFilter<"PermissionPos"> | string
|
||||||
|
permission_id?: Prisma.StringFilter<"PermissionPos"> | string
|
||||||
|
}
|
||||||
|
|
||||||
|
export type PermissionPosCreateWithoutPosInput = {
|
||||||
|
id?: string
|
||||||
|
role: $Enums.POSRole
|
||||||
|
permission: Prisma.PermissionConsumerCreateNestedOneWithoutPos_permissionsInput
|
||||||
|
}
|
||||||
|
|
||||||
|
export type PermissionPosUncheckedCreateWithoutPosInput = {
|
||||||
id?: string
|
id?: string
|
||||||
role: $Enums.POSRole
|
role: $Enums.POSRole
|
||||||
permission_id: string
|
permission_id: string
|
||||||
}
|
}
|
||||||
|
|
||||||
export type PermissionPosUpdateWithoutPosInput = {
|
export type PermissionPosCreateOrConnectWithoutPosInput = {
|
||||||
id?: Prisma.StringFieldUpdateOperationsInput | string
|
where: Prisma.PermissionPosWhereUniqueInput
|
||||||
role?: Prisma.EnumPOSRoleFieldUpdateOperationsInput | $Enums.POSRole
|
create: Prisma.XOR<Prisma.PermissionPosCreateWithoutPosInput, Prisma.PermissionPosUncheckedCreateWithoutPosInput>
|
||||||
permission?: Prisma.PermissionConsumerUpdateOneRequiredWithoutPos_permissionsNestedInput
|
|
||||||
}
|
}
|
||||||
|
|
||||||
export type PermissionPosUncheckedUpdateWithoutPosInput = {
|
export type PermissionPosCreateManyPosInputEnvelope = {
|
||||||
id?: Prisma.StringFieldUpdateOperationsInput | string
|
data: Prisma.PermissionPosCreateManyPosInput | Prisma.PermissionPosCreateManyPosInput[]
|
||||||
role?: Prisma.EnumPOSRoleFieldUpdateOperationsInput | $Enums.POSRole
|
skipDuplicates?: boolean
|
||||||
permission_id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
||||||
}
|
}
|
||||||
|
|
||||||
export type PermissionPosUncheckedUpdateManyWithoutPosInput = {
|
export type PermissionPosUpsertWithWhereUniqueWithoutPosInput = {
|
||||||
id?: Prisma.StringFieldUpdateOperationsInput | string
|
where: Prisma.PermissionPosWhereUniqueInput
|
||||||
role?: Prisma.EnumPOSRoleFieldUpdateOperationsInput | $Enums.POSRole
|
update: Prisma.XOR<Prisma.PermissionPosUpdateWithoutPosInput, Prisma.PermissionPosUncheckedUpdateWithoutPosInput>
|
||||||
permission_id?: Prisma.StringFieldUpdateOperationsInput | string
|
create: Prisma.XOR<Prisma.PermissionPosCreateWithoutPosInput, Prisma.PermissionPosUncheckedCreateWithoutPosInput>
|
||||||
|
}
|
||||||
|
|
||||||
|
export type PermissionPosUpdateWithWhereUniqueWithoutPosInput = {
|
||||||
|
where: Prisma.PermissionPosWhereUniqueInput
|
||||||
|
data: Prisma.XOR<Prisma.PermissionPosUpdateWithoutPosInput, Prisma.PermissionPosUncheckedUpdateWithoutPosInput>
|
||||||
|
}
|
||||||
|
|
||||||
|
export type PermissionPosUpdateManyWithWhereWithoutPosInput = {
|
||||||
|
where: Prisma.PermissionPosScalarWhereInput
|
||||||
|
data: Prisma.XOR<Prisma.PermissionPosUpdateManyMutationInput, Prisma.PermissionPosUncheckedUpdateManyWithoutPosInput>
|
||||||
}
|
}
|
||||||
|
|
||||||
export type PermissionPosCreateManyPermissionInput = {
|
export type PermissionPosCreateManyPermissionInput = {
|
||||||
@@ -532,6 +508,30 @@ export type PermissionPosUncheckedUpdateManyWithoutPermissionInput = {
|
|||||||
pos_id?: Prisma.StringFieldUpdateOperationsInput | string
|
pos_id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export type PermissionPosCreateManyPosInput = {
|
||||||
|
id?: string
|
||||||
|
role: $Enums.POSRole
|
||||||
|
permission_id: string
|
||||||
|
}
|
||||||
|
|
||||||
|
export type PermissionPosUpdateWithoutPosInput = {
|
||||||
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||||
|
role?: Prisma.EnumPOSRoleFieldUpdateOperationsInput | $Enums.POSRole
|
||||||
|
permission?: Prisma.PermissionConsumerUpdateOneRequiredWithoutPos_permissionsNestedInput
|
||||||
|
}
|
||||||
|
|
||||||
|
export type PermissionPosUncheckedUpdateWithoutPosInput = {
|
||||||
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||||
|
role?: Prisma.EnumPOSRoleFieldUpdateOperationsInput | $Enums.POSRole
|
||||||
|
permission_id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||||
|
}
|
||||||
|
|
||||||
|
export type PermissionPosUncheckedUpdateManyWithoutPosInput = {
|
||||||
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||||
|
role?: Prisma.EnumPOSRoleFieldUpdateOperationsInput | $Enums.POSRole
|
||||||
|
permission_id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
export type PermissionPosSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
export type PermissionPosSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
||||||
|
|||||||
+308
-308
@@ -437,11 +437,6 @@ export type PosUncheckedUpdateManyInput = {
|
|||||||
account_id?: Prisma.StringFieldUpdateOperationsInput | string
|
account_id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||||
}
|
}
|
||||||
|
|
||||||
export type PosNullableScalarRelationFilter = {
|
|
||||||
is?: Prisma.PosWhereInput | null
|
|
||||||
isNot?: Prisma.PosWhereInput | null
|
|
||||||
}
|
|
||||||
|
|
||||||
export type PosListRelationFilter = {
|
export type PosListRelationFilter = {
|
||||||
every?: Prisma.PosWhereInput
|
every?: Prisma.PosWhereInput
|
||||||
some?: Prisma.PosWhereInput
|
some?: Prisma.PosWhereInput
|
||||||
@@ -452,6 +447,16 @@ export type PosOrderByRelationAggregateInput = {
|
|||||||
_count?: Prisma.SortOrder
|
_count?: Prisma.SortOrder
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export type PosScalarRelationFilter = {
|
||||||
|
is?: Prisma.PosWhereInput
|
||||||
|
isNot?: Prisma.PosWhereInput
|
||||||
|
}
|
||||||
|
|
||||||
|
export type PosNullableScalarRelationFilter = {
|
||||||
|
is?: Prisma.PosWhereInput | null
|
||||||
|
isNot?: Prisma.PosWhereInput | null
|
||||||
|
}
|
||||||
|
|
||||||
export type PosOrderByRelevanceInput = {
|
export type PosOrderByRelevanceInput = {
|
||||||
fields: Prisma.PosOrderByRelevanceFieldEnum | Prisma.PosOrderByRelevanceFieldEnum[]
|
fields: Prisma.PosOrderByRelevanceFieldEnum | Prisma.PosOrderByRelevanceFieldEnum[]
|
||||||
sort: Prisma.SortOrder
|
sort: Prisma.SortOrder
|
||||||
@@ -503,93 +508,6 @@ export type PosMinOrderByAggregateInput = {
|
|||||||
account_id?: Prisma.SortOrder
|
account_id?: Prisma.SortOrder
|
||||||
}
|
}
|
||||||
|
|
||||||
export type PosScalarRelationFilter = {
|
|
||||||
is?: Prisma.PosWhereInput
|
|
||||||
isNot?: Prisma.PosWhereInput
|
|
||||||
}
|
|
||||||
|
|
||||||
export type PosCreateNestedOneWithoutAccountInput = {
|
|
||||||
create?: Prisma.XOR<Prisma.PosCreateWithoutAccountInput, Prisma.PosUncheckedCreateWithoutAccountInput>
|
|
||||||
connectOrCreate?: Prisma.PosCreateOrConnectWithoutAccountInput
|
|
||||||
connect?: Prisma.PosWhereUniqueInput
|
|
||||||
}
|
|
||||||
|
|
||||||
export type PosUncheckedCreateNestedOneWithoutAccountInput = {
|
|
||||||
create?: Prisma.XOR<Prisma.PosCreateWithoutAccountInput, Prisma.PosUncheckedCreateWithoutAccountInput>
|
|
||||||
connectOrCreate?: Prisma.PosCreateOrConnectWithoutAccountInput
|
|
||||||
connect?: Prisma.PosWhereUniqueInput
|
|
||||||
}
|
|
||||||
|
|
||||||
export type PosUpdateOneWithoutAccountNestedInput = {
|
|
||||||
create?: Prisma.XOR<Prisma.PosCreateWithoutAccountInput, Prisma.PosUncheckedCreateWithoutAccountInput>
|
|
||||||
connectOrCreate?: Prisma.PosCreateOrConnectWithoutAccountInput
|
|
||||||
upsert?: Prisma.PosUpsertWithoutAccountInput
|
|
||||||
disconnect?: Prisma.PosWhereInput | boolean
|
|
||||||
delete?: Prisma.PosWhereInput | boolean
|
|
||||||
connect?: Prisma.PosWhereUniqueInput
|
|
||||||
update?: Prisma.XOR<Prisma.XOR<Prisma.PosUpdateToOneWithWhereWithoutAccountInput, Prisma.PosUpdateWithoutAccountInput>, Prisma.PosUncheckedUpdateWithoutAccountInput>
|
|
||||||
}
|
|
||||||
|
|
||||||
export type PosUncheckedUpdateOneWithoutAccountNestedInput = {
|
|
||||||
create?: Prisma.XOR<Prisma.PosCreateWithoutAccountInput, Prisma.PosUncheckedCreateWithoutAccountInput>
|
|
||||||
connectOrCreate?: Prisma.PosCreateOrConnectWithoutAccountInput
|
|
||||||
upsert?: Prisma.PosUpsertWithoutAccountInput
|
|
||||||
disconnect?: Prisma.PosWhereInput | boolean
|
|
||||||
delete?: Prisma.PosWhereInput | boolean
|
|
||||||
connect?: Prisma.PosWhereUniqueInput
|
|
||||||
update?: Prisma.XOR<Prisma.XOR<Prisma.PosUpdateToOneWithWhereWithoutAccountInput, Prisma.PosUpdateWithoutAccountInput>, Prisma.PosUncheckedUpdateWithoutAccountInput>
|
|
||||||
}
|
|
||||||
|
|
||||||
export type PosCreateNestedManyWithoutComplexInput = {
|
|
||||||
create?: Prisma.XOR<Prisma.PosCreateWithoutComplexInput, Prisma.PosUncheckedCreateWithoutComplexInput> | Prisma.PosCreateWithoutComplexInput[] | Prisma.PosUncheckedCreateWithoutComplexInput[]
|
|
||||||
connectOrCreate?: Prisma.PosCreateOrConnectWithoutComplexInput | Prisma.PosCreateOrConnectWithoutComplexInput[]
|
|
||||||
createMany?: Prisma.PosCreateManyComplexInputEnvelope
|
|
||||||
connect?: Prisma.PosWhereUniqueInput | Prisma.PosWhereUniqueInput[]
|
|
||||||
}
|
|
||||||
|
|
||||||
export type PosUncheckedCreateNestedManyWithoutComplexInput = {
|
|
||||||
create?: Prisma.XOR<Prisma.PosCreateWithoutComplexInput, Prisma.PosUncheckedCreateWithoutComplexInput> | Prisma.PosCreateWithoutComplexInput[] | Prisma.PosUncheckedCreateWithoutComplexInput[]
|
|
||||||
connectOrCreate?: Prisma.PosCreateOrConnectWithoutComplexInput | Prisma.PosCreateOrConnectWithoutComplexInput[]
|
|
||||||
createMany?: Prisma.PosCreateManyComplexInputEnvelope
|
|
||||||
connect?: Prisma.PosWhereUniqueInput | Prisma.PosWhereUniqueInput[]
|
|
||||||
}
|
|
||||||
|
|
||||||
export type PosUpdateManyWithoutComplexNestedInput = {
|
|
||||||
create?: Prisma.XOR<Prisma.PosCreateWithoutComplexInput, Prisma.PosUncheckedCreateWithoutComplexInput> | Prisma.PosCreateWithoutComplexInput[] | Prisma.PosUncheckedCreateWithoutComplexInput[]
|
|
||||||
connectOrCreate?: Prisma.PosCreateOrConnectWithoutComplexInput | Prisma.PosCreateOrConnectWithoutComplexInput[]
|
|
||||||
upsert?: Prisma.PosUpsertWithWhereUniqueWithoutComplexInput | Prisma.PosUpsertWithWhereUniqueWithoutComplexInput[]
|
|
||||||
createMany?: Prisma.PosCreateManyComplexInputEnvelope
|
|
||||||
set?: Prisma.PosWhereUniqueInput | Prisma.PosWhereUniqueInput[]
|
|
||||||
disconnect?: Prisma.PosWhereUniqueInput | Prisma.PosWhereUniqueInput[]
|
|
||||||
delete?: Prisma.PosWhereUniqueInput | Prisma.PosWhereUniqueInput[]
|
|
||||||
connect?: Prisma.PosWhereUniqueInput | Prisma.PosWhereUniqueInput[]
|
|
||||||
update?: Prisma.PosUpdateWithWhereUniqueWithoutComplexInput | Prisma.PosUpdateWithWhereUniqueWithoutComplexInput[]
|
|
||||||
updateMany?: Prisma.PosUpdateManyWithWhereWithoutComplexInput | Prisma.PosUpdateManyWithWhereWithoutComplexInput[]
|
|
||||||
deleteMany?: Prisma.PosScalarWhereInput | Prisma.PosScalarWhereInput[]
|
|
||||||
}
|
|
||||||
|
|
||||||
export type PosUncheckedUpdateManyWithoutComplexNestedInput = {
|
|
||||||
create?: Prisma.XOR<Prisma.PosCreateWithoutComplexInput, Prisma.PosUncheckedCreateWithoutComplexInput> | Prisma.PosCreateWithoutComplexInput[] | Prisma.PosUncheckedCreateWithoutComplexInput[]
|
|
||||||
connectOrCreate?: Prisma.PosCreateOrConnectWithoutComplexInput | Prisma.PosCreateOrConnectWithoutComplexInput[]
|
|
||||||
upsert?: Prisma.PosUpsertWithWhereUniqueWithoutComplexInput | Prisma.PosUpsertWithWhereUniqueWithoutComplexInput[]
|
|
||||||
createMany?: Prisma.PosCreateManyComplexInputEnvelope
|
|
||||||
set?: Prisma.PosWhereUniqueInput | Prisma.PosWhereUniqueInput[]
|
|
||||||
disconnect?: Prisma.PosWhereUniqueInput | Prisma.PosWhereUniqueInput[]
|
|
||||||
delete?: Prisma.PosWhereUniqueInput | Prisma.PosWhereUniqueInput[]
|
|
||||||
connect?: Prisma.PosWhereUniqueInput | Prisma.PosWhereUniqueInput[]
|
|
||||||
update?: Prisma.PosUpdateWithWhereUniqueWithoutComplexInput | Prisma.PosUpdateWithWhereUniqueWithoutComplexInput[]
|
|
||||||
updateMany?: Prisma.PosUpdateManyWithWhereWithoutComplexInput | Prisma.PosUpdateManyWithWhereWithoutComplexInput[]
|
|
||||||
deleteMany?: Prisma.PosScalarWhereInput | Prisma.PosScalarWhereInput[]
|
|
||||||
}
|
|
||||||
|
|
||||||
export type EnumPOSStatusFieldUpdateOperationsInput = {
|
|
||||||
set?: $Enums.POSStatus
|
|
||||||
}
|
|
||||||
|
|
||||||
export type EnumPOSTypeFieldUpdateOperationsInput = {
|
|
||||||
set?: $Enums.POSType
|
|
||||||
}
|
|
||||||
|
|
||||||
export type PosCreateNestedManyWithoutDeviceInput = {
|
export type PosCreateNestedManyWithoutDeviceInput = {
|
||||||
create?: Prisma.XOR<Prisma.PosCreateWithoutDeviceInput, Prisma.PosUncheckedCreateWithoutDeviceInput> | Prisma.PosCreateWithoutDeviceInput[] | Prisma.PosUncheckedCreateWithoutDeviceInput[]
|
create?: Prisma.XOR<Prisma.PosCreateWithoutDeviceInput, Prisma.PosUncheckedCreateWithoutDeviceInput> | Prisma.PosCreateWithoutDeviceInput[] | Prisma.PosUncheckedCreateWithoutDeviceInput[]
|
||||||
connectOrCreate?: Prisma.PosCreateOrConnectWithoutDeviceInput | Prisma.PosCreateOrConnectWithoutDeviceInput[]
|
connectOrCreate?: Prisma.PosCreateOrConnectWithoutDeviceInput | Prisma.PosCreateOrConnectWithoutDeviceInput[]
|
||||||
@@ -688,6 +606,88 @@ export type PosUncheckedUpdateManyWithoutProviderNestedInput = {
|
|||||||
deleteMany?: Prisma.PosScalarWhereInput | Prisma.PosScalarWhereInput[]
|
deleteMany?: Prisma.PosScalarWhereInput | Prisma.PosScalarWhereInput[]
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export type PosCreateNestedOneWithoutAccountInput = {
|
||||||
|
create?: Prisma.XOR<Prisma.PosCreateWithoutAccountInput, Prisma.PosUncheckedCreateWithoutAccountInput>
|
||||||
|
connectOrCreate?: Prisma.PosCreateOrConnectWithoutAccountInput
|
||||||
|
connect?: Prisma.PosWhereUniqueInput
|
||||||
|
}
|
||||||
|
|
||||||
|
export type PosUncheckedCreateNestedOneWithoutAccountInput = {
|
||||||
|
create?: Prisma.XOR<Prisma.PosCreateWithoutAccountInput, Prisma.PosUncheckedCreateWithoutAccountInput>
|
||||||
|
connectOrCreate?: Prisma.PosCreateOrConnectWithoutAccountInput
|
||||||
|
connect?: Prisma.PosWhereUniqueInput
|
||||||
|
}
|
||||||
|
|
||||||
|
export type PosUpdateOneWithoutAccountNestedInput = {
|
||||||
|
create?: Prisma.XOR<Prisma.PosCreateWithoutAccountInput, Prisma.PosUncheckedCreateWithoutAccountInput>
|
||||||
|
connectOrCreate?: Prisma.PosCreateOrConnectWithoutAccountInput
|
||||||
|
upsert?: Prisma.PosUpsertWithoutAccountInput
|
||||||
|
disconnect?: Prisma.PosWhereInput | boolean
|
||||||
|
delete?: Prisma.PosWhereInput | boolean
|
||||||
|
connect?: Prisma.PosWhereUniqueInput
|
||||||
|
update?: Prisma.XOR<Prisma.XOR<Prisma.PosUpdateToOneWithWhereWithoutAccountInput, Prisma.PosUpdateWithoutAccountInput>, Prisma.PosUncheckedUpdateWithoutAccountInput>
|
||||||
|
}
|
||||||
|
|
||||||
|
export type PosUncheckedUpdateOneWithoutAccountNestedInput = {
|
||||||
|
create?: Prisma.XOR<Prisma.PosCreateWithoutAccountInput, Prisma.PosUncheckedCreateWithoutAccountInput>
|
||||||
|
connectOrCreate?: Prisma.PosCreateOrConnectWithoutAccountInput
|
||||||
|
upsert?: Prisma.PosUpsertWithoutAccountInput
|
||||||
|
disconnect?: Prisma.PosWhereInput | boolean
|
||||||
|
delete?: Prisma.PosWhereInput | boolean
|
||||||
|
connect?: Prisma.PosWhereUniqueInput
|
||||||
|
update?: Prisma.XOR<Prisma.XOR<Prisma.PosUpdateToOneWithWhereWithoutAccountInput, Prisma.PosUpdateWithoutAccountInput>, Prisma.PosUncheckedUpdateWithoutAccountInput>
|
||||||
|
}
|
||||||
|
|
||||||
|
export type PosCreateNestedManyWithoutComplexInput = {
|
||||||
|
create?: Prisma.XOR<Prisma.PosCreateWithoutComplexInput, Prisma.PosUncheckedCreateWithoutComplexInput> | Prisma.PosCreateWithoutComplexInput[] | Prisma.PosUncheckedCreateWithoutComplexInput[]
|
||||||
|
connectOrCreate?: Prisma.PosCreateOrConnectWithoutComplexInput | Prisma.PosCreateOrConnectWithoutComplexInput[]
|
||||||
|
createMany?: Prisma.PosCreateManyComplexInputEnvelope
|
||||||
|
connect?: Prisma.PosWhereUniqueInput | Prisma.PosWhereUniqueInput[]
|
||||||
|
}
|
||||||
|
|
||||||
|
export type PosUncheckedCreateNestedManyWithoutComplexInput = {
|
||||||
|
create?: Prisma.XOR<Prisma.PosCreateWithoutComplexInput, Prisma.PosUncheckedCreateWithoutComplexInput> | Prisma.PosCreateWithoutComplexInput[] | Prisma.PosUncheckedCreateWithoutComplexInput[]
|
||||||
|
connectOrCreate?: Prisma.PosCreateOrConnectWithoutComplexInput | Prisma.PosCreateOrConnectWithoutComplexInput[]
|
||||||
|
createMany?: Prisma.PosCreateManyComplexInputEnvelope
|
||||||
|
connect?: Prisma.PosWhereUniqueInput | Prisma.PosWhereUniqueInput[]
|
||||||
|
}
|
||||||
|
|
||||||
|
export type PosUpdateManyWithoutComplexNestedInput = {
|
||||||
|
create?: Prisma.XOR<Prisma.PosCreateWithoutComplexInput, Prisma.PosUncheckedCreateWithoutComplexInput> | Prisma.PosCreateWithoutComplexInput[] | Prisma.PosUncheckedCreateWithoutComplexInput[]
|
||||||
|
connectOrCreate?: Prisma.PosCreateOrConnectWithoutComplexInput | Prisma.PosCreateOrConnectWithoutComplexInput[]
|
||||||
|
upsert?: Prisma.PosUpsertWithWhereUniqueWithoutComplexInput | Prisma.PosUpsertWithWhereUniqueWithoutComplexInput[]
|
||||||
|
createMany?: Prisma.PosCreateManyComplexInputEnvelope
|
||||||
|
set?: Prisma.PosWhereUniqueInput | Prisma.PosWhereUniqueInput[]
|
||||||
|
disconnect?: Prisma.PosWhereUniqueInput | Prisma.PosWhereUniqueInput[]
|
||||||
|
delete?: Prisma.PosWhereUniqueInput | Prisma.PosWhereUniqueInput[]
|
||||||
|
connect?: Prisma.PosWhereUniqueInput | Prisma.PosWhereUniqueInput[]
|
||||||
|
update?: Prisma.PosUpdateWithWhereUniqueWithoutComplexInput | Prisma.PosUpdateWithWhereUniqueWithoutComplexInput[]
|
||||||
|
updateMany?: Prisma.PosUpdateManyWithWhereWithoutComplexInput | Prisma.PosUpdateManyWithWhereWithoutComplexInput[]
|
||||||
|
deleteMany?: Prisma.PosScalarWhereInput | Prisma.PosScalarWhereInput[]
|
||||||
|
}
|
||||||
|
|
||||||
|
export type PosUncheckedUpdateManyWithoutComplexNestedInput = {
|
||||||
|
create?: Prisma.XOR<Prisma.PosCreateWithoutComplexInput, Prisma.PosUncheckedCreateWithoutComplexInput> | Prisma.PosCreateWithoutComplexInput[] | Prisma.PosUncheckedCreateWithoutComplexInput[]
|
||||||
|
connectOrCreate?: Prisma.PosCreateOrConnectWithoutComplexInput | Prisma.PosCreateOrConnectWithoutComplexInput[]
|
||||||
|
upsert?: Prisma.PosUpsertWithWhereUniqueWithoutComplexInput | Prisma.PosUpsertWithWhereUniqueWithoutComplexInput[]
|
||||||
|
createMany?: Prisma.PosCreateManyComplexInputEnvelope
|
||||||
|
set?: Prisma.PosWhereUniqueInput | Prisma.PosWhereUniqueInput[]
|
||||||
|
disconnect?: Prisma.PosWhereUniqueInput | Prisma.PosWhereUniqueInput[]
|
||||||
|
delete?: Prisma.PosWhereUniqueInput | Prisma.PosWhereUniqueInput[]
|
||||||
|
connect?: Prisma.PosWhereUniqueInput | Prisma.PosWhereUniqueInput[]
|
||||||
|
update?: Prisma.PosUpdateWithWhereUniqueWithoutComplexInput | Prisma.PosUpdateWithWhereUniqueWithoutComplexInput[]
|
||||||
|
updateMany?: Prisma.PosUpdateManyWithWhereWithoutComplexInput | Prisma.PosUpdateManyWithWhereWithoutComplexInput[]
|
||||||
|
deleteMany?: Prisma.PosScalarWhereInput | Prisma.PosScalarWhereInput[]
|
||||||
|
}
|
||||||
|
|
||||||
|
export type EnumPOSStatusFieldUpdateOperationsInput = {
|
||||||
|
set?: $Enums.POSStatus
|
||||||
|
}
|
||||||
|
|
||||||
|
export type EnumPOSTypeFieldUpdateOperationsInput = {
|
||||||
|
set?: $Enums.POSType
|
||||||
|
}
|
||||||
|
|
||||||
export type PosCreateNestedOneWithoutSales_invoicesInput = {
|
export type PosCreateNestedOneWithoutSales_invoicesInput = {
|
||||||
create?: Prisma.XOR<Prisma.PosCreateWithoutSales_invoicesInput, Prisma.PosUncheckedCreateWithoutSales_invoicesInput>
|
create?: Prisma.XOR<Prisma.PosCreateWithoutSales_invoicesInput, Prisma.PosUncheckedCreateWithoutSales_invoicesInput>
|
||||||
connectOrCreate?: Prisma.PosCreateOrConnectWithoutSales_invoicesInput
|
connectOrCreate?: Prisma.PosCreateOrConnectWithoutSales_invoicesInput
|
||||||
@@ -702,162 +702,6 @@ export type PosUpdateOneRequiredWithoutSales_invoicesNestedInput = {
|
|||||||
update?: Prisma.XOR<Prisma.XOR<Prisma.PosUpdateToOneWithWhereWithoutSales_invoicesInput, Prisma.PosUpdateWithoutSales_invoicesInput>, Prisma.PosUncheckedUpdateWithoutSales_invoicesInput>
|
update?: Prisma.XOR<Prisma.XOR<Prisma.PosUpdateToOneWithWhereWithoutSales_invoicesInput, Prisma.PosUpdateWithoutSales_invoicesInput>, Prisma.PosUncheckedUpdateWithoutSales_invoicesInput>
|
||||||
}
|
}
|
||||||
|
|
||||||
export type PosCreateWithoutAccountInput = {
|
|
||||||
id?: string
|
|
||||||
name: string
|
|
||||||
model?: string | null
|
|
||||||
serial_number?: string | null
|
|
||||||
status?: $Enums.POSStatus
|
|
||||||
pos_type: $Enums.POSType
|
|
||||||
created_at?: Date | string
|
|
||||||
updated_at?: Date | string
|
|
||||||
complex: Prisma.ComplexCreateNestedOneWithoutPos_listInput
|
|
||||||
device?: Prisma.DeviceCreateNestedOneWithoutPosesInput
|
|
||||||
provider?: Prisma.ProviderCreateNestedOneWithoutPos_listInput
|
|
||||||
permission_pos?: Prisma.PermissionPosCreateNestedManyWithoutPosInput
|
|
||||||
sales_invoices?: Prisma.SalesInvoiceCreateNestedManyWithoutPosInput
|
|
||||||
}
|
|
||||||
|
|
||||||
export type PosUncheckedCreateWithoutAccountInput = {
|
|
||||||
id?: string
|
|
||||||
name: string
|
|
||||||
model?: string | null
|
|
||||||
serial_number?: string | null
|
|
||||||
status?: $Enums.POSStatus
|
|
||||||
pos_type: $Enums.POSType
|
|
||||||
created_at?: Date | string
|
|
||||||
updated_at?: Date | string
|
|
||||||
complex_id: string
|
|
||||||
device_id?: string | null
|
|
||||||
provider_id?: string | null
|
|
||||||
permission_pos?: Prisma.PermissionPosUncheckedCreateNestedManyWithoutPosInput
|
|
||||||
sales_invoices?: Prisma.SalesInvoiceUncheckedCreateNestedManyWithoutPosInput
|
|
||||||
}
|
|
||||||
|
|
||||||
export type PosCreateOrConnectWithoutAccountInput = {
|
|
||||||
where: Prisma.PosWhereUniqueInput
|
|
||||||
create: Prisma.XOR<Prisma.PosCreateWithoutAccountInput, Prisma.PosUncheckedCreateWithoutAccountInput>
|
|
||||||
}
|
|
||||||
|
|
||||||
export type PosUpsertWithoutAccountInput = {
|
|
||||||
update: Prisma.XOR<Prisma.PosUpdateWithoutAccountInput, Prisma.PosUncheckedUpdateWithoutAccountInput>
|
|
||||||
create: Prisma.XOR<Prisma.PosCreateWithoutAccountInput, Prisma.PosUncheckedCreateWithoutAccountInput>
|
|
||||||
where?: Prisma.PosWhereInput
|
|
||||||
}
|
|
||||||
|
|
||||||
export type PosUpdateToOneWithWhereWithoutAccountInput = {
|
|
||||||
where?: Prisma.PosWhereInput
|
|
||||||
data: Prisma.XOR<Prisma.PosUpdateWithoutAccountInput, Prisma.PosUncheckedUpdateWithoutAccountInput>
|
|
||||||
}
|
|
||||||
|
|
||||||
export type PosUpdateWithoutAccountInput = {
|
|
||||||
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
||||||
name?: Prisma.StringFieldUpdateOperationsInput | string
|
|
||||||
model?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
||||||
serial_number?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
||||||
status?: Prisma.EnumPOSStatusFieldUpdateOperationsInput | $Enums.POSStatus
|
|
||||||
pos_type?: Prisma.EnumPOSTypeFieldUpdateOperationsInput | $Enums.POSType
|
|
||||||
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
||||||
updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
||||||
complex?: Prisma.ComplexUpdateOneRequiredWithoutPos_listNestedInput
|
|
||||||
device?: Prisma.DeviceUpdateOneWithoutPosesNestedInput
|
|
||||||
provider?: Prisma.ProviderUpdateOneWithoutPos_listNestedInput
|
|
||||||
permission_pos?: Prisma.PermissionPosUpdateManyWithoutPosNestedInput
|
|
||||||
sales_invoices?: Prisma.SalesInvoiceUpdateManyWithoutPosNestedInput
|
|
||||||
}
|
|
||||||
|
|
||||||
export type PosUncheckedUpdateWithoutAccountInput = {
|
|
||||||
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
||||||
name?: Prisma.StringFieldUpdateOperationsInput | string
|
|
||||||
model?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
||||||
serial_number?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
||||||
status?: Prisma.EnumPOSStatusFieldUpdateOperationsInput | $Enums.POSStatus
|
|
||||||
pos_type?: Prisma.EnumPOSTypeFieldUpdateOperationsInput | $Enums.POSType
|
|
||||||
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
||||||
updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
||||||
complex_id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
||||||
device_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
||||||
provider_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
||||||
permission_pos?: Prisma.PermissionPosUncheckedUpdateManyWithoutPosNestedInput
|
|
||||||
sales_invoices?: Prisma.SalesInvoiceUncheckedUpdateManyWithoutPosNestedInput
|
|
||||||
}
|
|
||||||
|
|
||||||
export type PosCreateWithoutComplexInput = {
|
|
||||||
id?: string
|
|
||||||
name: string
|
|
||||||
model?: string | null
|
|
||||||
serial_number?: string | null
|
|
||||||
status?: $Enums.POSStatus
|
|
||||||
pos_type: $Enums.POSType
|
|
||||||
created_at?: Date | string
|
|
||||||
updated_at?: Date | string
|
|
||||||
device?: Prisma.DeviceCreateNestedOneWithoutPosesInput
|
|
||||||
provider?: Prisma.ProviderCreateNestedOneWithoutPos_listInput
|
|
||||||
account: Prisma.ConsumerAccountCreateNestedOneWithoutPosInput
|
|
||||||
permission_pos?: Prisma.PermissionPosCreateNestedManyWithoutPosInput
|
|
||||||
sales_invoices?: Prisma.SalesInvoiceCreateNestedManyWithoutPosInput
|
|
||||||
}
|
|
||||||
|
|
||||||
export type PosUncheckedCreateWithoutComplexInput = {
|
|
||||||
id?: string
|
|
||||||
name: string
|
|
||||||
model?: string | null
|
|
||||||
serial_number?: string | null
|
|
||||||
status?: $Enums.POSStatus
|
|
||||||
pos_type: $Enums.POSType
|
|
||||||
created_at?: Date | string
|
|
||||||
updated_at?: Date | string
|
|
||||||
device_id?: string | null
|
|
||||||
provider_id?: string | null
|
|
||||||
account_id: string
|
|
||||||
permission_pos?: Prisma.PermissionPosUncheckedCreateNestedManyWithoutPosInput
|
|
||||||
sales_invoices?: Prisma.SalesInvoiceUncheckedCreateNestedManyWithoutPosInput
|
|
||||||
}
|
|
||||||
|
|
||||||
export type PosCreateOrConnectWithoutComplexInput = {
|
|
||||||
where: Prisma.PosWhereUniqueInput
|
|
||||||
create: Prisma.XOR<Prisma.PosCreateWithoutComplexInput, Prisma.PosUncheckedCreateWithoutComplexInput>
|
|
||||||
}
|
|
||||||
|
|
||||||
export type PosCreateManyComplexInputEnvelope = {
|
|
||||||
data: Prisma.PosCreateManyComplexInput | Prisma.PosCreateManyComplexInput[]
|
|
||||||
skipDuplicates?: boolean
|
|
||||||
}
|
|
||||||
|
|
||||||
export type PosUpsertWithWhereUniqueWithoutComplexInput = {
|
|
||||||
where: Prisma.PosWhereUniqueInput
|
|
||||||
update: Prisma.XOR<Prisma.PosUpdateWithoutComplexInput, Prisma.PosUncheckedUpdateWithoutComplexInput>
|
|
||||||
create: Prisma.XOR<Prisma.PosCreateWithoutComplexInput, Prisma.PosUncheckedCreateWithoutComplexInput>
|
|
||||||
}
|
|
||||||
|
|
||||||
export type PosUpdateWithWhereUniqueWithoutComplexInput = {
|
|
||||||
where: Prisma.PosWhereUniqueInput
|
|
||||||
data: Prisma.XOR<Prisma.PosUpdateWithoutComplexInput, Prisma.PosUncheckedUpdateWithoutComplexInput>
|
|
||||||
}
|
|
||||||
|
|
||||||
export type PosUpdateManyWithWhereWithoutComplexInput = {
|
|
||||||
where: Prisma.PosScalarWhereInput
|
|
||||||
data: Prisma.XOR<Prisma.PosUpdateManyMutationInput, Prisma.PosUncheckedUpdateManyWithoutComplexInput>
|
|
||||||
}
|
|
||||||
|
|
||||||
export type PosScalarWhereInput = {
|
|
||||||
AND?: Prisma.PosScalarWhereInput | Prisma.PosScalarWhereInput[]
|
|
||||||
OR?: Prisma.PosScalarWhereInput[]
|
|
||||||
NOT?: Prisma.PosScalarWhereInput | Prisma.PosScalarWhereInput[]
|
|
||||||
id?: Prisma.StringFilter<"Pos"> | string
|
|
||||||
name?: Prisma.StringFilter<"Pos"> | string
|
|
||||||
model?: Prisma.StringNullableFilter<"Pos"> | string | null
|
|
||||||
serial_number?: Prisma.StringNullableFilter<"Pos"> | string | null
|
|
||||||
status?: Prisma.EnumPOSStatusFilter<"Pos"> | $Enums.POSStatus
|
|
||||||
pos_type?: Prisma.EnumPOSTypeFilter<"Pos"> | $Enums.POSType
|
|
||||||
created_at?: Prisma.DateTimeFilter<"Pos"> | Date | string
|
|
||||||
updated_at?: Prisma.DateTimeFilter<"Pos"> | Date | string
|
|
||||||
complex_id?: Prisma.StringFilter<"Pos"> | string
|
|
||||||
device_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 = {
|
||||||
id?: string
|
id?: string
|
||||||
name: string
|
name: string
|
||||||
@@ -916,6 +760,24 @@ export type PosUpdateManyWithWhereWithoutDeviceInput = {
|
|||||||
data: Prisma.XOR<Prisma.PosUpdateManyMutationInput, Prisma.PosUncheckedUpdateManyWithoutDeviceInput>
|
data: Prisma.XOR<Prisma.PosUpdateManyMutationInput, Prisma.PosUncheckedUpdateManyWithoutDeviceInput>
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export type PosScalarWhereInput = {
|
||||||
|
AND?: Prisma.PosScalarWhereInput | Prisma.PosScalarWhereInput[]
|
||||||
|
OR?: Prisma.PosScalarWhereInput[]
|
||||||
|
NOT?: Prisma.PosScalarWhereInput | Prisma.PosScalarWhereInput[]
|
||||||
|
id?: Prisma.StringFilter<"Pos"> | string
|
||||||
|
name?: Prisma.StringFilter<"Pos"> | string
|
||||||
|
model?: Prisma.StringNullableFilter<"Pos"> | string | null
|
||||||
|
serial_number?: Prisma.StringNullableFilter<"Pos"> | string | null
|
||||||
|
status?: Prisma.EnumPOSStatusFilter<"Pos"> | $Enums.POSStatus
|
||||||
|
pos_type?: Prisma.EnumPOSTypeFilter<"Pos"> | $Enums.POSType
|
||||||
|
created_at?: Prisma.DateTimeFilter<"Pos"> | Date | string
|
||||||
|
updated_at?: Prisma.DateTimeFilter<"Pos"> | Date | string
|
||||||
|
complex_id?: Prisma.StringFilter<"Pos"> | string
|
||||||
|
device_id?: Prisma.StringNullableFilter<"Pos"> | string | null
|
||||||
|
provider_id?: Prisma.StringNullableFilter<"Pos"> | string | null
|
||||||
|
account_id?: Prisma.StringFilter<"Pos"> | string
|
||||||
|
}
|
||||||
|
|
||||||
export type PosCreateWithoutPermission_posInput = {
|
export type PosCreateWithoutPermission_posInput = {
|
||||||
id?: string
|
id?: string
|
||||||
name: string
|
name: string
|
||||||
@@ -1054,6 +916,144 @@ export type PosUpdateManyWithWhereWithoutProviderInput = {
|
|||||||
data: Prisma.XOR<Prisma.PosUpdateManyMutationInput, Prisma.PosUncheckedUpdateManyWithoutProviderInput>
|
data: Prisma.XOR<Prisma.PosUpdateManyMutationInput, Prisma.PosUncheckedUpdateManyWithoutProviderInput>
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export type PosCreateWithoutAccountInput = {
|
||||||
|
id?: string
|
||||||
|
name: string
|
||||||
|
model?: string | null
|
||||||
|
serial_number?: string | null
|
||||||
|
status?: $Enums.POSStatus
|
||||||
|
pos_type: $Enums.POSType
|
||||||
|
created_at?: Date | string
|
||||||
|
updated_at?: Date | string
|
||||||
|
complex: Prisma.ComplexCreateNestedOneWithoutPos_listInput
|
||||||
|
device?: Prisma.DeviceCreateNestedOneWithoutPosesInput
|
||||||
|
provider?: Prisma.ProviderCreateNestedOneWithoutPos_listInput
|
||||||
|
permission_pos?: Prisma.PermissionPosCreateNestedManyWithoutPosInput
|
||||||
|
sales_invoices?: Prisma.SalesInvoiceCreateNestedManyWithoutPosInput
|
||||||
|
}
|
||||||
|
|
||||||
|
export type PosUncheckedCreateWithoutAccountInput = {
|
||||||
|
id?: string
|
||||||
|
name: string
|
||||||
|
model?: string | null
|
||||||
|
serial_number?: string | null
|
||||||
|
status?: $Enums.POSStatus
|
||||||
|
pos_type: $Enums.POSType
|
||||||
|
created_at?: Date | string
|
||||||
|
updated_at?: Date | string
|
||||||
|
complex_id: string
|
||||||
|
device_id?: string | null
|
||||||
|
provider_id?: string | null
|
||||||
|
permission_pos?: Prisma.PermissionPosUncheckedCreateNestedManyWithoutPosInput
|
||||||
|
sales_invoices?: Prisma.SalesInvoiceUncheckedCreateNestedManyWithoutPosInput
|
||||||
|
}
|
||||||
|
|
||||||
|
export type PosCreateOrConnectWithoutAccountInput = {
|
||||||
|
where: Prisma.PosWhereUniqueInput
|
||||||
|
create: Prisma.XOR<Prisma.PosCreateWithoutAccountInput, Prisma.PosUncheckedCreateWithoutAccountInput>
|
||||||
|
}
|
||||||
|
|
||||||
|
export type PosUpsertWithoutAccountInput = {
|
||||||
|
update: Prisma.XOR<Prisma.PosUpdateWithoutAccountInput, Prisma.PosUncheckedUpdateWithoutAccountInput>
|
||||||
|
create: Prisma.XOR<Prisma.PosCreateWithoutAccountInput, Prisma.PosUncheckedCreateWithoutAccountInput>
|
||||||
|
where?: Prisma.PosWhereInput
|
||||||
|
}
|
||||||
|
|
||||||
|
export type PosUpdateToOneWithWhereWithoutAccountInput = {
|
||||||
|
where?: Prisma.PosWhereInput
|
||||||
|
data: Prisma.XOR<Prisma.PosUpdateWithoutAccountInput, Prisma.PosUncheckedUpdateWithoutAccountInput>
|
||||||
|
}
|
||||||
|
|
||||||
|
export type PosUpdateWithoutAccountInput = {
|
||||||
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||||
|
name?: Prisma.StringFieldUpdateOperationsInput | string
|
||||||
|
model?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||||
|
serial_number?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||||
|
status?: Prisma.EnumPOSStatusFieldUpdateOperationsInput | $Enums.POSStatus
|
||||||
|
pos_type?: Prisma.EnumPOSTypeFieldUpdateOperationsInput | $Enums.POSType
|
||||||
|
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||||
|
updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||||
|
complex?: Prisma.ComplexUpdateOneRequiredWithoutPos_listNestedInput
|
||||||
|
device?: Prisma.DeviceUpdateOneWithoutPosesNestedInput
|
||||||
|
provider?: Prisma.ProviderUpdateOneWithoutPos_listNestedInput
|
||||||
|
permission_pos?: Prisma.PermissionPosUpdateManyWithoutPosNestedInput
|
||||||
|
sales_invoices?: Prisma.SalesInvoiceUpdateManyWithoutPosNestedInput
|
||||||
|
}
|
||||||
|
|
||||||
|
export type PosUncheckedUpdateWithoutAccountInput = {
|
||||||
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||||
|
name?: Prisma.StringFieldUpdateOperationsInput | string
|
||||||
|
model?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||||
|
serial_number?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||||
|
status?: Prisma.EnumPOSStatusFieldUpdateOperationsInput | $Enums.POSStatus
|
||||||
|
pos_type?: Prisma.EnumPOSTypeFieldUpdateOperationsInput | $Enums.POSType
|
||||||
|
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||||
|
updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||||
|
complex_id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||||
|
device_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||||
|
provider_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||||
|
permission_pos?: Prisma.PermissionPosUncheckedUpdateManyWithoutPosNestedInput
|
||||||
|
sales_invoices?: Prisma.SalesInvoiceUncheckedUpdateManyWithoutPosNestedInput
|
||||||
|
}
|
||||||
|
|
||||||
|
export type PosCreateWithoutComplexInput = {
|
||||||
|
id?: string
|
||||||
|
name: string
|
||||||
|
model?: string | null
|
||||||
|
serial_number?: string | null
|
||||||
|
status?: $Enums.POSStatus
|
||||||
|
pos_type: $Enums.POSType
|
||||||
|
created_at?: Date | string
|
||||||
|
updated_at?: Date | string
|
||||||
|
device?: Prisma.DeviceCreateNestedOneWithoutPosesInput
|
||||||
|
provider?: Prisma.ProviderCreateNestedOneWithoutPos_listInput
|
||||||
|
account: Prisma.ConsumerAccountCreateNestedOneWithoutPosInput
|
||||||
|
permission_pos?: Prisma.PermissionPosCreateNestedManyWithoutPosInput
|
||||||
|
sales_invoices?: Prisma.SalesInvoiceCreateNestedManyWithoutPosInput
|
||||||
|
}
|
||||||
|
|
||||||
|
export type PosUncheckedCreateWithoutComplexInput = {
|
||||||
|
id?: string
|
||||||
|
name: string
|
||||||
|
model?: string | null
|
||||||
|
serial_number?: string | null
|
||||||
|
status?: $Enums.POSStatus
|
||||||
|
pos_type: $Enums.POSType
|
||||||
|
created_at?: Date | string
|
||||||
|
updated_at?: Date | string
|
||||||
|
device_id?: string | null
|
||||||
|
provider_id?: string | null
|
||||||
|
account_id: string
|
||||||
|
permission_pos?: Prisma.PermissionPosUncheckedCreateNestedManyWithoutPosInput
|
||||||
|
sales_invoices?: Prisma.SalesInvoiceUncheckedCreateNestedManyWithoutPosInput
|
||||||
|
}
|
||||||
|
|
||||||
|
export type PosCreateOrConnectWithoutComplexInput = {
|
||||||
|
where: Prisma.PosWhereUniqueInput
|
||||||
|
create: Prisma.XOR<Prisma.PosCreateWithoutComplexInput, Prisma.PosUncheckedCreateWithoutComplexInput>
|
||||||
|
}
|
||||||
|
|
||||||
|
export type PosCreateManyComplexInputEnvelope = {
|
||||||
|
data: Prisma.PosCreateManyComplexInput | Prisma.PosCreateManyComplexInput[]
|
||||||
|
skipDuplicates?: boolean
|
||||||
|
}
|
||||||
|
|
||||||
|
export type PosUpsertWithWhereUniqueWithoutComplexInput = {
|
||||||
|
where: Prisma.PosWhereUniqueInput
|
||||||
|
update: Prisma.XOR<Prisma.PosUpdateWithoutComplexInput, Prisma.PosUncheckedUpdateWithoutComplexInput>
|
||||||
|
create: Prisma.XOR<Prisma.PosCreateWithoutComplexInput, Prisma.PosUncheckedCreateWithoutComplexInput>
|
||||||
|
}
|
||||||
|
|
||||||
|
export type PosUpdateWithWhereUniqueWithoutComplexInput = {
|
||||||
|
where: Prisma.PosWhereUniqueInput
|
||||||
|
data: Prisma.XOR<Prisma.PosUpdateWithoutComplexInput, Prisma.PosUncheckedUpdateWithoutComplexInput>
|
||||||
|
}
|
||||||
|
|
||||||
|
export type PosUpdateManyWithWhereWithoutComplexInput = {
|
||||||
|
where: Prisma.PosScalarWhereInput
|
||||||
|
data: Prisma.XOR<Prisma.PosUpdateManyMutationInput, Prisma.PosUncheckedUpdateManyWithoutComplexInput>
|
||||||
|
}
|
||||||
|
|
||||||
export type PosCreateWithoutSales_invoicesInput = {
|
export type PosCreateWithoutSales_invoicesInput = {
|
||||||
id?: string
|
id?: string
|
||||||
name: string
|
name: string
|
||||||
@@ -1134,66 +1134,6 @@ export type PosUncheckedUpdateWithoutSales_invoicesInput = {
|
|||||||
permission_pos?: Prisma.PermissionPosUncheckedUpdateManyWithoutPosNestedInput
|
permission_pos?: Prisma.PermissionPosUncheckedUpdateManyWithoutPosNestedInput
|
||||||
}
|
}
|
||||||
|
|
||||||
export type PosCreateManyComplexInput = {
|
|
||||||
id?: string
|
|
||||||
name: string
|
|
||||||
model?: string | null
|
|
||||||
serial_number?: string | null
|
|
||||||
status?: $Enums.POSStatus
|
|
||||||
pos_type: $Enums.POSType
|
|
||||||
created_at?: Date | string
|
|
||||||
updated_at?: Date | string
|
|
||||||
device_id?: string | null
|
|
||||||
provider_id?: string | null
|
|
||||||
account_id: string
|
|
||||||
}
|
|
||||||
|
|
||||||
export type PosUpdateWithoutComplexInput = {
|
|
||||||
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
||||||
name?: Prisma.StringFieldUpdateOperationsInput | string
|
|
||||||
model?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
||||||
serial_number?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
||||||
status?: Prisma.EnumPOSStatusFieldUpdateOperationsInput | $Enums.POSStatus
|
|
||||||
pos_type?: Prisma.EnumPOSTypeFieldUpdateOperationsInput | $Enums.POSType
|
|
||||||
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
||||||
updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
||||||
device?: Prisma.DeviceUpdateOneWithoutPosesNestedInput
|
|
||||||
provider?: Prisma.ProviderUpdateOneWithoutPos_listNestedInput
|
|
||||||
account?: Prisma.ConsumerAccountUpdateOneRequiredWithoutPosNestedInput
|
|
||||||
permission_pos?: Prisma.PermissionPosUpdateManyWithoutPosNestedInput
|
|
||||||
sales_invoices?: Prisma.SalesInvoiceUpdateManyWithoutPosNestedInput
|
|
||||||
}
|
|
||||||
|
|
||||||
export type PosUncheckedUpdateWithoutComplexInput = {
|
|
||||||
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
||||||
name?: Prisma.StringFieldUpdateOperationsInput | string
|
|
||||||
model?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
||||||
serial_number?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
||||||
status?: Prisma.EnumPOSStatusFieldUpdateOperationsInput | $Enums.POSStatus
|
|
||||||
pos_type?: Prisma.EnumPOSTypeFieldUpdateOperationsInput | $Enums.POSType
|
|
||||||
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
||||||
updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
||||||
device_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
||||||
provider_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
||||||
account_id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
||||||
permission_pos?: Prisma.PermissionPosUncheckedUpdateManyWithoutPosNestedInput
|
|
||||||
sales_invoices?: Prisma.SalesInvoiceUncheckedUpdateManyWithoutPosNestedInput
|
|
||||||
}
|
|
||||||
|
|
||||||
export type PosUncheckedUpdateManyWithoutComplexInput = {
|
|
||||||
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
||||||
name?: Prisma.StringFieldUpdateOperationsInput | string
|
|
||||||
model?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
||||||
serial_number?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
||||||
status?: Prisma.EnumPOSStatusFieldUpdateOperationsInput | $Enums.POSStatus
|
|
||||||
pos_type?: Prisma.EnumPOSTypeFieldUpdateOperationsInput | $Enums.POSType
|
|
||||||
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
||||||
updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
||||||
device_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
||||||
provider_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
||||||
account_id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
||||||
}
|
|
||||||
|
|
||||||
export type PosCreateManyDeviceInput = {
|
export type PosCreateManyDeviceInput = {
|
||||||
id?: string
|
id?: string
|
||||||
name: string
|
name: string
|
||||||
@@ -1314,6 +1254,66 @@ export type PosUncheckedUpdateManyWithoutProviderInput = {
|
|||||||
account_id?: Prisma.StringFieldUpdateOperationsInput | string
|
account_id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export type PosCreateManyComplexInput = {
|
||||||
|
id?: string
|
||||||
|
name: string
|
||||||
|
model?: string | null
|
||||||
|
serial_number?: string | null
|
||||||
|
status?: $Enums.POSStatus
|
||||||
|
pos_type: $Enums.POSType
|
||||||
|
created_at?: Date | string
|
||||||
|
updated_at?: Date | string
|
||||||
|
device_id?: string | null
|
||||||
|
provider_id?: string | null
|
||||||
|
account_id: string
|
||||||
|
}
|
||||||
|
|
||||||
|
export type PosUpdateWithoutComplexInput = {
|
||||||
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||||
|
name?: Prisma.StringFieldUpdateOperationsInput | string
|
||||||
|
model?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||||
|
serial_number?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||||
|
status?: Prisma.EnumPOSStatusFieldUpdateOperationsInput | $Enums.POSStatus
|
||||||
|
pos_type?: Prisma.EnumPOSTypeFieldUpdateOperationsInput | $Enums.POSType
|
||||||
|
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||||
|
updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||||
|
device?: Prisma.DeviceUpdateOneWithoutPosesNestedInput
|
||||||
|
provider?: Prisma.ProviderUpdateOneWithoutPos_listNestedInput
|
||||||
|
account?: Prisma.ConsumerAccountUpdateOneRequiredWithoutPosNestedInput
|
||||||
|
permission_pos?: Prisma.PermissionPosUpdateManyWithoutPosNestedInput
|
||||||
|
sales_invoices?: Prisma.SalesInvoiceUpdateManyWithoutPosNestedInput
|
||||||
|
}
|
||||||
|
|
||||||
|
export type PosUncheckedUpdateWithoutComplexInput = {
|
||||||
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||||
|
name?: Prisma.StringFieldUpdateOperationsInput | string
|
||||||
|
model?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||||
|
serial_number?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||||
|
status?: Prisma.EnumPOSStatusFieldUpdateOperationsInput | $Enums.POSStatus
|
||||||
|
pos_type?: Prisma.EnumPOSTypeFieldUpdateOperationsInput | $Enums.POSType
|
||||||
|
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||||
|
updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||||
|
device_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||||
|
provider_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||||
|
account_id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||||
|
permission_pos?: Prisma.PermissionPosUncheckedUpdateManyWithoutPosNestedInput
|
||||||
|
sales_invoices?: Prisma.SalesInvoiceUncheckedUpdateManyWithoutPosNestedInput
|
||||||
|
}
|
||||||
|
|
||||||
|
export type PosUncheckedUpdateManyWithoutComplexInput = {
|
||||||
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||||
|
name?: Prisma.StringFieldUpdateOperationsInput | string
|
||||||
|
model?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||||
|
serial_number?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||||
|
status?: Prisma.EnumPOSStatusFieldUpdateOperationsInput | $Enums.POSStatus
|
||||||
|
pos_type?: Prisma.EnumPOSTypeFieldUpdateOperationsInput | $Enums.POSType
|
||||||
|
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||||
|
updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||||
|
device_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||||
|
provider_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||||
|
account_id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Count Type PosCountOutputType
|
* Count Type PosCountOutputType
|
||||||
|
|||||||
@@ -315,11 +315,6 @@ export type ProviderUncheckedUpdateManyInput = {
|
|||||||
updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||||
}
|
}
|
||||||
|
|
||||||
export type ProviderNullableScalarRelationFilter = {
|
|
||||||
is?: Prisma.ProviderWhereInput | null
|
|
||||||
isNot?: Prisma.ProviderWhereInput | null
|
|
||||||
}
|
|
||||||
|
|
||||||
export type ProviderScalarRelationFilter = {
|
export type ProviderScalarRelationFilter = {
|
||||||
is?: Prisma.ProviderWhereInput
|
is?: Prisma.ProviderWhereInput
|
||||||
isNot?: Prisma.ProviderWhereInput
|
isNot?: Prisma.ProviderWhereInput
|
||||||
@@ -358,20 +353,9 @@ export type ProviderMinOrderByAggregateInput = {
|
|||||||
updated_at?: Prisma.SortOrder
|
updated_at?: Prisma.SortOrder
|
||||||
}
|
}
|
||||||
|
|
||||||
export type ProviderCreateNestedOneWithoutPos_listInput = {
|
export type ProviderNullableScalarRelationFilter = {
|
||||||
create?: Prisma.XOR<Prisma.ProviderCreateWithoutPos_listInput, Prisma.ProviderUncheckedCreateWithoutPos_listInput>
|
is?: Prisma.ProviderWhereInput | null
|
||||||
connectOrCreate?: Prisma.ProviderCreateOrConnectWithoutPos_listInput
|
isNot?: Prisma.ProviderWhereInput | null
|
||||||
connect?: Prisma.ProviderWhereUniqueInput
|
|
||||||
}
|
|
||||||
|
|
||||||
export type ProviderUpdateOneWithoutPos_listNestedInput = {
|
|
||||||
create?: Prisma.XOR<Prisma.ProviderCreateWithoutPos_listInput, Prisma.ProviderUncheckedCreateWithoutPos_listInput>
|
|
||||||
connectOrCreate?: Prisma.ProviderCreateOrConnectWithoutPos_listInput
|
|
||||||
upsert?: Prisma.ProviderUpsertWithoutPos_listInput
|
|
||||||
disconnect?: Prisma.ProviderWhereInput | boolean
|
|
||||||
delete?: Prisma.ProviderWhereInput | boolean
|
|
||||||
connect?: Prisma.ProviderWhereUniqueInput
|
|
||||||
update?: Prisma.XOR<Prisma.XOR<Prisma.ProviderUpdateToOneWithWhereWithoutPos_listInput, Prisma.ProviderUpdateWithoutPos_listInput>, Prisma.ProviderUncheckedUpdateWithoutPos_listInput>
|
|
||||||
}
|
}
|
||||||
|
|
||||||
export type ProviderCreateNestedOneWithoutAccountsInput = {
|
export type ProviderCreateNestedOneWithoutAccountsInput = {
|
||||||
@@ -388,60 +372,20 @@ export type ProviderUpdateOneRequiredWithoutAccountsNestedInput = {
|
|||||||
update?: Prisma.XOR<Prisma.XOR<Prisma.ProviderUpdateToOneWithWhereWithoutAccountsInput, Prisma.ProviderUpdateWithoutAccountsInput>, Prisma.ProviderUncheckedUpdateWithoutAccountsInput>
|
update?: Prisma.XOR<Prisma.XOR<Prisma.ProviderUpdateToOneWithWhereWithoutAccountsInput, Prisma.ProviderUpdateWithoutAccountsInput>, Prisma.ProviderUncheckedUpdateWithoutAccountsInput>
|
||||||
}
|
}
|
||||||
|
|
||||||
export type ProviderCreateWithoutPos_listInput = {
|
export type ProviderCreateNestedOneWithoutPos_listInput = {
|
||||||
id?: string
|
create?: Prisma.XOR<Prisma.ProviderCreateWithoutPos_listInput, Prisma.ProviderUncheckedCreateWithoutPos_listInput>
|
||||||
code: string
|
connectOrCreate?: Prisma.ProviderCreateOrConnectWithoutPos_listInput
|
||||||
status?: $Enums.PartnerStatus
|
connect?: Prisma.ProviderWhereUniqueInput
|
||||||
name: string
|
|
||||||
created_at?: Date | string
|
|
||||||
updated_at?: Date | string
|
|
||||||
accounts?: Prisma.ProviderAccountCreateNestedManyWithoutProviderInput
|
|
||||||
}
|
}
|
||||||
|
|
||||||
export type ProviderUncheckedCreateWithoutPos_listInput = {
|
export type ProviderUpdateOneWithoutPos_listNestedInput = {
|
||||||
id?: string
|
create?: Prisma.XOR<Prisma.ProviderCreateWithoutPos_listInput, Prisma.ProviderUncheckedCreateWithoutPos_listInput>
|
||||||
code: string
|
connectOrCreate?: Prisma.ProviderCreateOrConnectWithoutPos_listInput
|
||||||
status?: $Enums.PartnerStatus
|
upsert?: Prisma.ProviderUpsertWithoutPos_listInput
|
||||||
name: string
|
disconnect?: Prisma.ProviderWhereInput | boolean
|
||||||
created_at?: Date | string
|
delete?: Prisma.ProviderWhereInput | boolean
|
||||||
updated_at?: Date | string
|
connect?: Prisma.ProviderWhereUniqueInput
|
||||||
accounts?: Prisma.ProviderAccountUncheckedCreateNestedManyWithoutProviderInput
|
update?: Prisma.XOR<Prisma.XOR<Prisma.ProviderUpdateToOneWithWhereWithoutPos_listInput, Prisma.ProviderUpdateWithoutPos_listInput>, Prisma.ProviderUncheckedUpdateWithoutPos_listInput>
|
||||||
}
|
|
||||||
|
|
||||||
export type ProviderCreateOrConnectWithoutPos_listInput = {
|
|
||||||
where: Prisma.ProviderWhereUniqueInput
|
|
||||||
create: Prisma.XOR<Prisma.ProviderCreateWithoutPos_listInput, Prisma.ProviderUncheckedCreateWithoutPos_listInput>
|
|
||||||
}
|
|
||||||
|
|
||||||
export type ProviderUpsertWithoutPos_listInput = {
|
|
||||||
update: Prisma.XOR<Prisma.ProviderUpdateWithoutPos_listInput, Prisma.ProviderUncheckedUpdateWithoutPos_listInput>
|
|
||||||
create: Prisma.XOR<Prisma.ProviderCreateWithoutPos_listInput, Prisma.ProviderUncheckedCreateWithoutPos_listInput>
|
|
||||||
where?: Prisma.ProviderWhereInput
|
|
||||||
}
|
|
||||||
|
|
||||||
export type ProviderUpdateToOneWithWhereWithoutPos_listInput = {
|
|
||||||
where?: Prisma.ProviderWhereInput
|
|
||||||
data: Prisma.XOR<Prisma.ProviderUpdateWithoutPos_listInput, Prisma.ProviderUncheckedUpdateWithoutPos_listInput>
|
|
||||||
}
|
|
||||||
|
|
||||||
export type ProviderUpdateWithoutPos_listInput = {
|
|
||||||
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
||||||
code?: Prisma.StringFieldUpdateOperationsInput | string
|
|
||||||
status?: Prisma.EnumPartnerStatusFieldUpdateOperationsInput | $Enums.PartnerStatus
|
|
||||||
name?: Prisma.StringFieldUpdateOperationsInput | string
|
|
||||||
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
||||||
updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
||||||
accounts?: Prisma.ProviderAccountUpdateManyWithoutProviderNestedInput
|
|
||||||
}
|
|
||||||
|
|
||||||
export type ProviderUncheckedUpdateWithoutPos_listInput = {
|
|
||||||
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
||||||
code?: Prisma.StringFieldUpdateOperationsInput | string
|
|
||||||
status?: Prisma.EnumPartnerStatusFieldUpdateOperationsInput | $Enums.PartnerStatus
|
|
||||||
name?: Prisma.StringFieldUpdateOperationsInput | string
|
|
||||||
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
||||||
updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
||||||
accounts?: Prisma.ProviderAccountUncheckedUpdateManyWithoutProviderNestedInput
|
|
||||||
}
|
}
|
||||||
|
|
||||||
export type ProviderCreateWithoutAccountsInput = {
|
export type ProviderCreateWithoutAccountsInput = {
|
||||||
@@ -500,6 +444,62 @@ export type ProviderUncheckedUpdateWithoutAccountsInput = {
|
|||||||
pos_list?: Prisma.PosUncheckedUpdateManyWithoutProviderNestedInput
|
pos_list?: Prisma.PosUncheckedUpdateManyWithoutProviderNestedInput
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export type ProviderCreateWithoutPos_listInput = {
|
||||||
|
id?: string
|
||||||
|
code: string
|
||||||
|
status?: $Enums.PartnerStatus
|
||||||
|
name: string
|
||||||
|
created_at?: Date | string
|
||||||
|
updated_at?: Date | string
|
||||||
|
accounts?: Prisma.ProviderAccountCreateNestedManyWithoutProviderInput
|
||||||
|
}
|
||||||
|
|
||||||
|
export type ProviderUncheckedCreateWithoutPos_listInput = {
|
||||||
|
id?: string
|
||||||
|
code: string
|
||||||
|
status?: $Enums.PartnerStatus
|
||||||
|
name: string
|
||||||
|
created_at?: Date | string
|
||||||
|
updated_at?: Date | string
|
||||||
|
accounts?: Prisma.ProviderAccountUncheckedCreateNestedManyWithoutProviderInput
|
||||||
|
}
|
||||||
|
|
||||||
|
export type ProviderCreateOrConnectWithoutPos_listInput = {
|
||||||
|
where: Prisma.ProviderWhereUniqueInput
|
||||||
|
create: Prisma.XOR<Prisma.ProviderCreateWithoutPos_listInput, Prisma.ProviderUncheckedCreateWithoutPos_listInput>
|
||||||
|
}
|
||||||
|
|
||||||
|
export type ProviderUpsertWithoutPos_listInput = {
|
||||||
|
update: Prisma.XOR<Prisma.ProviderUpdateWithoutPos_listInput, Prisma.ProviderUncheckedUpdateWithoutPos_listInput>
|
||||||
|
create: Prisma.XOR<Prisma.ProviderCreateWithoutPos_listInput, Prisma.ProviderUncheckedCreateWithoutPos_listInput>
|
||||||
|
where?: Prisma.ProviderWhereInput
|
||||||
|
}
|
||||||
|
|
||||||
|
export type ProviderUpdateToOneWithWhereWithoutPos_listInput = {
|
||||||
|
where?: Prisma.ProviderWhereInput
|
||||||
|
data: Prisma.XOR<Prisma.ProviderUpdateWithoutPos_listInput, Prisma.ProviderUncheckedUpdateWithoutPos_listInput>
|
||||||
|
}
|
||||||
|
|
||||||
|
export type ProviderUpdateWithoutPos_listInput = {
|
||||||
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||||
|
code?: Prisma.StringFieldUpdateOperationsInput | string
|
||||||
|
status?: Prisma.EnumPartnerStatusFieldUpdateOperationsInput | $Enums.PartnerStatus
|
||||||
|
name?: Prisma.StringFieldUpdateOperationsInput | string
|
||||||
|
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||||
|
updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||||
|
accounts?: Prisma.ProviderAccountUpdateManyWithoutProviderNestedInput
|
||||||
|
}
|
||||||
|
|
||||||
|
export type ProviderUncheckedUpdateWithoutPos_listInput = {
|
||||||
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||||
|
code?: Prisma.StringFieldUpdateOperationsInput | string
|
||||||
|
status?: Prisma.EnumPartnerStatusFieldUpdateOperationsInput | $Enums.PartnerStatus
|
||||||
|
name?: Prisma.StringFieldUpdateOperationsInput | string
|
||||||
|
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||||
|
updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||||
|
accounts?: Prisma.ProviderAccountUncheckedUpdateManyWithoutProviderNestedInput
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Count Type ProviderCountOutputType
|
* Count Type ProviderCountOutputType
|
||||||
|
|||||||
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@@ -77,10 +77,11 @@ export type SalesInvoiceItemCountAggregateOutputType = {
|
|||||||
created_at: number
|
created_at: number
|
||||||
discount: number
|
discount: number
|
||||||
notes: number
|
notes: number
|
||||||
|
payload: number
|
||||||
|
good_snapshot: number
|
||||||
invoice_id: number
|
invoice_id: number
|
||||||
good_id: number
|
good_id: number
|
||||||
service_id: number
|
service_id: number
|
||||||
payload: number
|
|
||||||
_all: number
|
_all: number
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -136,10 +137,11 @@ export type SalesInvoiceItemCountAggregateInputType = {
|
|||||||
created_at?: true
|
created_at?: true
|
||||||
discount?: true
|
discount?: true
|
||||||
notes?: true
|
notes?: true
|
||||||
|
payload?: true
|
||||||
|
good_snapshot?: true
|
||||||
invoice_id?: true
|
invoice_id?: true
|
||||||
good_id?: true
|
good_id?: true
|
||||||
service_id?: true
|
service_id?: true
|
||||||
payload?: true
|
|
||||||
_all?: true
|
_all?: true
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -238,10 +240,11 @@ export type SalesInvoiceItemGroupByOutputType = {
|
|||||||
created_at: Date
|
created_at: Date
|
||||||
discount: runtime.Decimal
|
discount: runtime.Decimal
|
||||||
notes: string | null
|
notes: string | null
|
||||||
|
payload: runtime.JsonValue | null
|
||||||
|
good_snapshot: runtime.JsonValue | null
|
||||||
invoice_id: string
|
invoice_id: string
|
||||||
good_id: string | null
|
good_id: string | null
|
||||||
service_id: string | null
|
service_id: string | null
|
||||||
payload: runtime.JsonValue | null
|
|
||||||
_count: SalesInvoiceItemCountAggregateOutputType | null
|
_count: SalesInvoiceItemCountAggregateOutputType | null
|
||||||
_avg: SalesInvoiceItemAvgAggregateOutputType | null
|
_avg: SalesInvoiceItemAvgAggregateOutputType | null
|
||||||
_sum: SalesInvoiceItemSumAggregateOutputType | null
|
_sum: SalesInvoiceItemSumAggregateOutputType | null
|
||||||
@@ -276,10 +279,11 @@ export type SalesInvoiceItemWhereInput = {
|
|||||||
created_at?: Prisma.DateTimeFilter<"SalesInvoiceItem"> | Date | string
|
created_at?: Prisma.DateTimeFilter<"SalesInvoiceItem"> | Date | string
|
||||||
discount?: Prisma.DecimalFilter<"SalesInvoiceItem"> | runtime.Decimal | runtime.DecimalJsLike | number | string
|
discount?: Prisma.DecimalFilter<"SalesInvoiceItem"> | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||||
notes?: Prisma.StringNullableFilter<"SalesInvoiceItem"> | string | null
|
notes?: Prisma.StringNullableFilter<"SalesInvoiceItem"> | string | null
|
||||||
|
payload?: Prisma.JsonNullableFilter<"SalesInvoiceItem">
|
||||||
|
good_snapshot?: Prisma.JsonNullableFilter<"SalesInvoiceItem">
|
||||||
invoice_id?: Prisma.StringFilter<"SalesInvoiceItem"> | string
|
invoice_id?: Prisma.StringFilter<"SalesInvoiceItem"> | string
|
||||||
good_id?: Prisma.StringNullableFilter<"SalesInvoiceItem"> | string | null
|
good_id?: Prisma.StringNullableFilter<"SalesInvoiceItem"> | string | null
|
||||||
service_id?: Prisma.StringNullableFilter<"SalesInvoiceItem"> | string | null
|
service_id?: Prisma.StringNullableFilter<"SalesInvoiceItem"> | string | null
|
||||||
payload?: Prisma.JsonNullableFilter<"SalesInvoiceItem">
|
|
||||||
invoice?: Prisma.XOR<Prisma.SalesInvoiceScalarRelationFilter, Prisma.SalesInvoiceWhereInput>
|
invoice?: Prisma.XOR<Prisma.SalesInvoiceScalarRelationFilter, Prisma.SalesInvoiceWhereInput>
|
||||||
good?: Prisma.XOR<Prisma.GoodNullableScalarRelationFilter, Prisma.GoodWhereInput> | null
|
good?: Prisma.XOR<Prisma.GoodNullableScalarRelationFilter, Prisma.GoodWhereInput> | null
|
||||||
service?: Prisma.XOR<Prisma.ServiceNullableScalarRelationFilter, Prisma.ServiceWhereInput> | null
|
service?: Prisma.XOR<Prisma.ServiceNullableScalarRelationFilter, Prisma.ServiceWhereInput> | null
|
||||||
@@ -294,10 +298,11 @@ export type SalesInvoiceItemOrderByWithRelationInput = {
|
|||||||
created_at?: Prisma.SortOrder
|
created_at?: Prisma.SortOrder
|
||||||
discount?: Prisma.SortOrder
|
discount?: Prisma.SortOrder
|
||||||
notes?: Prisma.SortOrderInput | Prisma.SortOrder
|
notes?: Prisma.SortOrderInput | Prisma.SortOrder
|
||||||
|
payload?: Prisma.SortOrderInput | Prisma.SortOrder
|
||||||
|
good_snapshot?: Prisma.SortOrderInput | Prisma.SortOrder
|
||||||
invoice_id?: Prisma.SortOrder
|
invoice_id?: Prisma.SortOrder
|
||||||
good_id?: Prisma.SortOrderInput | Prisma.SortOrder
|
good_id?: Prisma.SortOrderInput | Prisma.SortOrder
|
||||||
service_id?: Prisma.SortOrderInput | Prisma.SortOrder
|
service_id?: Prisma.SortOrderInput | Prisma.SortOrder
|
||||||
payload?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
||||||
invoice?: Prisma.SalesInvoiceOrderByWithRelationInput
|
invoice?: Prisma.SalesInvoiceOrderByWithRelationInput
|
||||||
good?: Prisma.GoodOrderByWithRelationInput
|
good?: Prisma.GoodOrderByWithRelationInput
|
||||||
service?: Prisma.ServiceOrderByWithRelationInput
|
service?: Prisma.ServiceOrderByWithRelationInput
|
||||||
@@ -316,10 +321,11 @@ export type SalesInvoiceItemWhereUniqueInput = Prisma.AtLeast<{
|
|||||||
created_at?: Prisma.DateTimeFilter<"SalesInvoiceItem"> | Date | string
|
created_at?: Prisma.DateTimeFilter<"SalesInvoiceItem"> | Date | string
|
||||||
discount?: Prisma.DecimalFilter<"SalesInvoiceItem"> | runtime.Decimal | runtime.DecimalJsLike | number | string
|
discount?: Prisma.DecimalFilter<"SalesInvoiceItem"> | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||||
notes?: Prisma.StringNullableFilter<"SalesInvoiceItem"> | string | null
|
notes?: Prisma.StringNullableFilter<"SalesInvoiceItem"> | string | null
|
||||||
|
payload?: Prisma.JsonNullableFilter<"SalesInvoiceItem">
|
||||||
|
good_snapshot?: Prisma.JsonNullableFilter<"SalesInvoiceItem">
|
||||||
invoice_id?: Prisma.StringFilter<"SalesInvoiceItem"> | string
|
invoice_id?: Prisma.StringFilter<"SalesInvoiceItem"> | string
|
||||||
good_id?: Prisma.StringNullableFilter<"SalesInvoiceItem"> | string | null
|
good_id?: Prisma.StringNullableFilter<"SalesInvoiceItem"> | string | null
|
||||||
service_id?: Prisma.StringNullableFilter<"SalesInvoiceItem"> | string | null
|
service_id?: Prisma.StringNullableFilter<"SalesInvoiceItem"> | string | null
|
||||||
payload?: Prisma.JsonNullableFilter<"SalesInvoiceItem">
|
|
||||||
invoice?: Prisma.XOR<Prisma.SalesInvoiceScalarRelationFilter, Prisma.SalesInvoiceWhereInput>
|
invoice?: Prisma.XOR<Prisma.SalesInvoiceScalarRelationFilter, Prisma.SalesInvoiceWhereInput>
|
||||||
good?: Prisma.XOR<Prisma.GoodNullableScalarRelationFilter, Prisma.GoodWhereInput> | null
|
good?: Prisma.XOR<Prisma.GoodNullableScalarRelationFilter, Prisma.GoodWhereInput> | null
|
||||||
service?: Prisma.XOR<Prisma.ServiceNullableScalarRelationFilter, Prisma.ServiceWhereInput> | null
|
service?: Prisma.XOR<Prisma.ServiceNullableScalarRelationFilter, Prisma.ServiceWhereInput> | null
|
||||||
@@ -334,10 +340,11 @@ export type SalesInvoiceItemOrderByWithAggregationInput = {
|
|||||||
created_at?: Prisma.SortOrder
|
created_at?: Prisma.SortOrder
|
||||||
discount?: Prisma.SortOrder
|
discount?: Prisma.SortOrder
|
||||||
notes?: Prisma.SortOrderInput | Prisma.SortOrder
|
notes?: Prisma.SortOrderInput | Prisma.SortOrder
|
||||||
|
payload?: Prisma.SortOrderInput | Prisma.SortOrder
|
||||||
|
good_snapshot?: Prisma.SortOrderInput | Prisma.SortOrder
|
||||||
invoice_id?: Prisma.SortOrder
|
invoice_id?: Prisma.SortOrder
|
||||||
good_id?: Prisma.SortOrderInput | Prisma.SortOrder
|
good_id?: Prisma.SortOrderInput | Prisma.SortOrder
|
||||||
service_id?: Prisma.SortOrderInput | Prisma.SortOrder
|
service_id?: Prisma.SortOrderInput | Prisma.SortOrder
|
||||||
payload?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
||||||
_count?: Prisma.SalesInvoiceItemCountOrderByAggregateInput
|
_count?: Prisma.SalesInvoiceItemCountOrderByAggregateInput
|
||||||
_avg?: Prisma.SalesInvoiceItemAvgOrderByAggregateInput
|
_avg?: Prisma.SalesInvoiceItemAvgOrderByAggregateInput
|
||||||
_max?: Prisma.SalesInvoiceItemMaxOrderByAggregateInput
|
_max?: Prisma.SalesInvoiceItemMaxOrderByAggregateInput
|
||||||
@@ -357,10 +364,11 @@ export type SalesInvoiceItemScalarWhereWithAggregatesInput = {
|
|||||||
created_at?: Prisma.DateTimeWithAggregatesFilter<"SalesInvoiceItem"> | Date | string
|
created_at?: Prisma.DateTimeWithAggregatesFilter<"SalesInvoiceItem"> | Date | string
|
||||||
discount?: Prisma.DecimalWithAggregatesFilter<"SalesInvoiceItem"> | runtime.Decimal | runtime.DecimalJsLike | number | string
|
discount?: Prisma.DecimalWithAggregatesFilter<"SalesInvoiceItem"> | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||||
notes?: Prisma.StringNullableWithAggregatesFilter<"SalesInvoiceItem"> | string | null
|
notes?: Prisma.StringNullableWithAggregatesFilter<"SalesInvoiceItem"> | string | null
|
||||||
|
payload?: Prisma.JsonNullableWithAggregatesFilter<"SalesInvoiceItem">
|
||||||
|
good_snapshot?: Prisma.JsonNullableWithAggregatesFilter<"SalesInvoiceItem">
|
||||||
invoice_id?: Prisma.StringWithAggregatesFilter<"SalesInvoiceItem"> | string
|
invoice_id?: Prisma.StringWithAggregatesFilter<"SalesInvoiceItem"> | string
|
||||||
good_id?: Prisma.StringNullableWithAggregatesFilter<"SalesInvoiceItem"> | string | null
|
good_id?: Prisma.StringNullableWithAggregatesFilter<"SalesInvoiceItem"> | string | null
|
||||||
service_id?: Prisma.StringNullableWithAggregatesFilter<"SalesInvoiceItem"> | string | null
|
service_id?: Prisma.StringNullableWithAggregatesFilter<"SalesInvoiceItem"> | string | null
|
||||||
payload?: Prisma.JsonNullableWithAggregatesFilter<"SalesInvoiceItem">
|
|
||||||
}
|
}
|
||||||
|
|
||||||
export type SalesInvoiceItemCreateInput = {
|
export type SalesInvoiceItemCreateInput = {
|
||||||
@@ -373,6 +381,7 @@ export type SalesInvoiceItemCreateInput = {
|
|||||||
discount?: runtime.Decimal | runtime.DecimalJsLike | number | string
|
discount?: runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||||
notes?: string | null
|
notes?: string | null
|
||||||
payload?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
payload?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
||||||
|
good_snapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
||||||
invoice: Prisma.SalesInvoiceCreateNestedOneWithoutItemsInput
|
invoice: Prisma.SalesInvoiceCreateNestedOneWithoutItemsInput
|
||||||
good?: Prisma.GoodCreateNestedOneWithoutSales_invoice_itemsInput
|
good?: Prisma.GoodCreateNestedOneWithoutSales_invoice_itemsInput
|
||||||
service?: Prisma.ServiceCreateNestedOneWithoutSales_invoice_itemsInput
|
service?: Prisma.ServiceCreateNestedOneWithoutSales_invoice_itemsInput
|
||||||
@@ -387,10 +396,11 @@ export type SalesInvoiceItemUncheckedCreateInput = {
|
|||||||
created_at?: Date | string
|
created_at?: Date | string
|
||||||
discount?: runtime.Decimal | runtime.DecimalJsLike | number | string
|
discount?: runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||||
notes?: string | null
|
notes?: string | null
|
||||||
|
payload?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
||||||
|
good_snapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
||||||
invoice_id: string
|
invoice_id: string
|
||||||
good_id?: string | null
|
good_id?: string | null
|
||||||
service_id?: string | null
|
service_id?: string | null
|
||||||
payload?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
|
||||||
}
|
}
|
||||||
|
|
||||||
export type SalesInvoiceItemUpdateInput = {
|
export type SalesInvoiceItemUpdateInput = {
|
||||||
@@ -403,6 +413,7 @@ export type SalesInvoiceItemUpdateInput = {
|
|||||||
discount?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
discount?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||||
notes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
notes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||||
payload?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
payload?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
||||||
|
good_snapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
||||||
invoice?: Prisma.SalesInvoiceUpdateOneRequiredWithoutItemsNestedInput
|
invoice?: Prisma.SalesInvoiceUpdateOneRequiredWithoutItemsNestedInput
|
||||||
good?: Prisma.GoodUpdateOneWithoutSales_invoice_itemsNestedInput
|
good?: Prisma.GoodUpdateOneWithoutSales_invoice_itemsNestedInput
|
||||||
service?: Prisma.ServiceUpdateOneWithoutSales_invoice_itemsNestedInput
|
service?: Prisma.ServiceUpdateOneWithoutSales_invoice_itemsNestedInput
|
||||||
@@ -417,10 +428,11 @@ export type SalesInvoiceItemUncheckedUpdateInput = {
|
|||||||
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||||
discount?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
discount?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||||
notes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
notes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||||
|
payload?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
||||||
|
good_snapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
||||||
invoice_id?: Prisma.StringFieldUpdateOperationsInput | string
|
invoice_id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||||
good_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
good_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||||
service_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
service_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||||
payload?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
|
||||||
}
|
}
|
||||||
|
|
||||||
export type SalesInvoiceItemCreateManyInput = {
|
export type SalesInvoiceItemCreateManyInput = {
|
||||||
@@ -432,10 +444,11 @@ export type SalesInvoiceItemCreateManyInput = {
|
|||||||
created_at?: Date | string
|
created_at?: Date | string
|
||||||
discount?: runtime.Decimal | runtime.DecimalJsLike | number | string
|
discount?: runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||||
notes?: string | null
|
notes?: string | null
|
||||||
|
payload?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
||||||
|
good_snapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
||||||
invoice_id: string
|
invoice_id: string
|
||||||
good_id?: string | null
|
good_id?: string | null
|
||||||
service_id?: string | null
|
service_id?: string | null
|
||||||
payload?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
|
||||||
}
|
}
|
||||||
|
|
||||||
export type SalesInvoiceItemUpdateManyMutationInput = {
|
export type SalesInvoiceItemUpdateManyMutationInput = {
|
||||||
@@ -448,6 +461,7 @@ export type SalesInvoiceItemUpdateManyMutationInput = {
|
|||||||
discount?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
discount?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||||
notes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
notes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||||
payload?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
payload?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
||||||
|
good_snapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
||||||
}
|
}
|
||||||
|
|
||||||
export type SalesInvoiceItemUncheckedUpdateManyInput = {
|
export type SalesInvoiceItemUncheckedUpdateManyInput = {
|
||||||
@@ -459,10 +473,11 @@ export type SalesInvoiceItemUncheckedUpdateManyInput = {
|
|||||||
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||||
discount?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
discount?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||||
notes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
notes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||||
|
payload?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
||||||
|
good_snapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
||||||
invoice_id?: Prisma.StringFieldUpdateOperationsInput | string
|
invoice_id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||||
good_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
good_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||||
service_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
service_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||||
payload?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
|
||||||
}
|
}
|
||||||
|
|
||||||
export type SalesInvoiceItemListRelationFilter = {
|
export type SalesInvoiceItemListRelationFilter = {
|
||||||
@@ -490,10 +505,11 @@ export type SalesInvoiceItemCountOrderByAggregateInput = {
|
|||||||
created_at?: Prisma.SortOrder
|
created_at?: Prisma.SortOrder
|
||||||
discount?: Prisma.SortOrder
|
discount?: Prisma.SortOrder
|
||||||
notes?: Prisma.SortOrder
|
notes?: Prisma.SortOrder
|
||||||
|
payload?: Prisma.SortOrder
|
||||||
|
good_snapshot?: Prisma.SortOrder
|
||||||
invoice_id?: Prisma.SortOrder
|
invoice_id?: Prisma.SortOrder
|
||||||
good_id?: Prisma.SortOrder
|
good_id?: Prisma.SortOrder
|
||||||
service_id?: Prisma.SortOrder
|
service_id?: Prisma.SortOrder
|
||||||
payload?: Prisma.SortOrder
|
|
||||||
}
|
}
|
||||||
|
|
||||||
export type SalesInvoiceItemAvgOrderByAggregateInput = {
|
export type SalesInvoiceItemAvgOrderByAggregateInput = {
|
||||||
@@ -674,6 +690,7 @@ export type SalesInvoiceItemCreateWithoutGoodInput = {
|
|||||||
discount?: runtime.Decimal | runtime.DecimalJsLike | number | string
|
discount?: runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||||
notes?: string | null
|
notes?: string | null
|
||||||
payload?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
payload?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
||||||
|
good_snapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
||||||
invoice: Prisma.SalesInvoiceCreateNestedOneWithoutItemsInput
|
invoice: Prisma.SalesInvoiceCreateNestedOneWithoutItemsInput
|
||||||
service?: Prisma.ServiceCreateNestedOneWithoutSales_invoice_itemsInput
|
service?: Prisma.ServiceCreateNestedOneWithoutSales_invoice_itemsInput
|
||||||
}
|
}
|
||||||
@@ -687,9 +704,10 @@ export type SalesInvoiceItemUncheckedCreateWithoutGoodInput = {
|
|||||||
created_at?: Date | string
|
created_at?: Date | string
|
||||||
discount?: runtime.Decimal | runtime.DecimalJsLike | number | string
|
discount?: runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||||
notes?: string | null
|
notes?: string | null
|
||||||
|
payload?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
||||||
|
good_snapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
||||||
invoice_id: string
|
invoice_id: string
|
||||||
service_id?: string | null
|
service_id?: string | null
|
||||||
payload?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
|
||||||
}
|
}
|
||||||
|
|
||||||
export type SalesInvoiceItemCreateOrConnectWithoutGoodInput = {
|
export type SalesInvoiceItemCreateOrConnectWithoutGoodInput = {
|
||||||
@@ -730,10 +748,11 @@ export type SalesInvoiceItemScalarWhereInput = {
|
|||||||
created_at?: Prisma.DateTimeFilter<"SalesInvoiceItem"> | Date | string
|
created_at?: Prisma.DateTimeFilter<"SalesInvoiceItem"> | Date | string
|
||||||
discount?: Prisma.DecimalFilter<"SalesInvoiceItem"> | runtime.Decimal | runtime.DecimalJsLike | number | string
|
discount?: Prisma.DecimalFilter<"SalesInvoiceItem"> | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||||
notes?: Prisma.StringNullableFilter<"SalesInvoiceItem"> | string | null
|
notes?: Prisma.StringNullableFilter<"SalesInvoiceItem"> | string | null
|
||||||
|
payload?: Prisma.JsonNullableFilter<"SalesInvoiceItem">
|
||||||
|
good_snapshot?: Prisma.JsonNullableFilter<"SalesInvoiceItem">
|
||||||
invoice_id?: Prisma.StringFilter<"SalesInvoiceItem"> | string
|
invoice_id?: Prisma.StringFilter<"SalesInvoiceItem"> | string
|
||||||
good_id?: Prisma.StringNullableFilter<"SalesInvoiceItem"> | string | null
|
good_id?: Prisma.StringNullableFilter<"SalesInvoiceItem"> | string | null
|
||||||
service_id?: Prisma.StringNullableFilter<"SalesInvoiceItem"> | string | null
|
service_id?: Prisma.StringNullableFilter<"SalesInvoiceItem"> | string | null
|
||||||
payload?: Prisma.JsonNullableFilter<"SalesInvoiceItem">
|
|
||||||
}
|
}
|
||||||
|
|
||||||
export type SalesInvoiceItemCreateWithoutInvoiceInput = {
|
export type SalesInvoiceItemCreateWithoutInvoiceInput = {
|
||||||
@@ -746,6 +765,7 @@ export type SalesInvoiceItemCreateWithoutInvoiceInput = {
|
|||||||
discount?: runtime.Decimal | runtime.DecimalJsLike | number | string
|
discount?: runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||||
notes?: string | null
|
notes?: string | null
|
||||||
payload?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
payload?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
||||||
|
good_snapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
||||||
good?: Prisma.GoodCreateNestedOneWithoutSales_invoice_itemsInput
|
good?: Prisma.GoodCreateNestedOneWithoutSales_invoice_itemsInput
|
||||||
service?: Prisma.ServiceCreateNestedOneWithoutSales_invoice_itemsInput
|
service?: Prisma.ServiceCreateNestedOneWithoutSales_invoice_itemsInput
|
||||||
}
|
}
|
||||||
@@ -759,9 +779,10 @@ export type SalesInvoiceItemUncheckedCreateWithoutInvoiceInput = {
|
|||||||
created_at?: Date | string
|
created_at?: Date | string
|
||||||
discount?: runtime.Decimal | runtime.DecimalJsLike | number | string
|
discount?: runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||||
notes?: string | null
|
notes?: string | null
|
||||||
|
payload?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
||||||
|
good_snapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
||||||
good_id?: string | null
|
good_id?: string | null
|
||||||
service_id?: string | null
|
service_id?: string | null
|
||||||
payload?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
|
||||||
}
|
}
|
||||||
|
|
||||||
export type SalesInvoiceItemCreateOrConnectWithoutInvoiceInput = {
|
export type SalesInvoiceItemCreateOrConnectWithoutInvoiceInput = {
|
||||||
@@ -800,6 +821,7 @@ export type SalesInvoiceItemCreateWithoutServiceInput = {
|
|||||||
discount?: runtime.Decimal | runtime.DecimalJsLike | number | string
|
discount?: runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||||
notes?: string | null
|
notes?: string | null
|
||||||
payload?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
payload?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
||||||
|
good_snapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
||||||
invoice: Prisma.SalesInvoiceCreateNestedOneWithoutItemsInput
|
invoice: Prisma.SalesInvoiceCreateNestedOneWithoutItemsInput
|
||||||
good?: Prisma.GoodCreateNestedOneWithoutSales_invoice_itemsInput
|
good?: Prisma.GoodCreateNestedOneWithoutSales_invoice_itemsInput
|
||||||
}
|
}
|
||||||
@@ -813,9 +835,10 @@ export type SalesInvoiceItemUncheckedCreateWithoutServiceInput = {
|
|||||||
created_at?: Date | string
|
created_at?: Date | string
|
||||||
discount?: runtime.Decimal | runtime.DecimalJsLike | number | string
|
discount?: runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||||
notes?: string | null
|
notes?: string | null
|
||||||
|
payload?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
||||||
|
good_snapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
||||||
invoice_id: string
|
invoice_id: string
|
||||||
good_id?: string | null
|
good_id?: string | null
|
||||||
payload?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
|
||||||
}
|
}
|
||||||
|
|
||||||
export type SalesInvoiceItemCreateOrConnectWithoutServiceInput = {
|
export type SalesInvoiceItemCreateOrConnectWithoutServiceInput = {
|
||||||
@@ -853,9 +876,10 @@ export type SalesInvoiceItemCreateManyGoodInput = {
|
|||||||
created_at?: Date | string
|
created_at?: Date | string
|
||||||
discount?: runtime.Decimal | runtime.DecimalJsLike | number | string
|
discount?: runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||||
notes?: string | null
|
notes?: string | null
|
||||||
|
payload?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
||||||
|
good_snapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
||||||
invoice_id: string
|
invoice_id: string
|
||||||
service_id?: string | null
|
service_id?: string | null
|
||||||
payload?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
|
||||||
}
|
}
|
||||||
|
|
||||||
export type SalesInvoiceItemUpdateWithoutGoodInput = {
|
export type SalesInvoiceItemUpdateWithoutGoodInput = {
|
||||||
@@ -868,6 +892,7 @@ export type SalesInvoiceItemUpdateWithoutGoodInput = {
|
|||||||
discount?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
discount?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||||
notes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
notes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||||
payload?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
payload?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
||||||
|
good_snapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
||||||
invoice?: Prisma.SalesInvoiceUpdateOneRequiredWithoutItemsNestedInput
|
invoice?: Prisma.SalesInvoiceUpdateOneRequiredWithoutItemsNestedInput
|
||||||
service?: Prisma.ServiceUpdateOneWithoutSales_invoice_itemsNestedInput
|
service?: Prisma.ServiceUpdateOneWithoutSales_invoice_itemsNestedInput
|
||||||
}
|
}
|
||||||
@@ -881,9 +906,10 @@ export type SalesInvoiceItemUncheckedUpdateWithoutGoodInput = {
|
|||||||
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||||
discount?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
discount?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||||
notes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
notes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||||
|
payload?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
||||||
|
good_snapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
||||||
invoice_id?: Prisma.StringFieldUpdateOperationsInput | string
|
invoice_id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||||
service_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
service_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||||
payload?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
|
||||||
}
|
}
|
||||||
|
|
||||||
export type SalesInvoiceItemUncheckedUpdateManyWithoutGoodInput = {
|
export type SalesInvoiceItemUncheckedUpdateManyWithoutGoodInput = {
|
||||||
@@ -895,9 +921,10 @@ export type SalesInvoiceItemUncheckedUpdateManyWithoutGoodInput = {
|
|||||||
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||||
discount?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
discount?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||||
notes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
notes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||||
|
payload?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
||||||
|
good_snapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
||||||
invoice_id?: Prisma.StringFieldUpdateOperationsInput | string
|
invoice_id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||||
service_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
service_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||||
payload?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
|
||||||
}
|
}
|
||||||
|
|
||||||
export type SalesInvoiceItemCreateManyInvoiceInput = {
|
export type SalesInvoiceItemCreateManyInvoiceInput = {
|
||||||
@@ -909,9 +936,10 @@ export type SalesInvoiceItemCreateManyInvoiceInput = {
|
|||||||
created_at?: Date | string
|
created_at?: Date | string
|
||||||
discount?: runtime.Decimal | runtime.DecimalJsLike | number | string
|
discount?: runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||||
notes?: string | null
|
notes?: string | null
|
||||||
|
payload?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
||||||
|
good_snapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
||||||
good_id?: string | null
|
good_id?: string | null
|
||||||
service_id?: string | null
|
service_id?: string | null
|
||||||
payload?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
|
||||||
}
|
}
|
||||||
|
|
||||||
export type SalesInvoiceItemUpdateWithoutInvoiceInput = {
|
export type SalesInvoiceItemUpdateWithoutInvoiceInput = {
|
||||||
@@ -924,6 +952,7 @@ export type SalesInvoiceItemUpdateWithoutInvoiceInput = {
|
|||||||
discount?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
discount?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||||
notes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
notes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||||
payload?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
payload?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
||||||
|
good_snapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
||||||
good?: Prisma.GoodUpdateOneWithoutSales_invoice_itemsNestedInput
|
good?: Prisma.GoodUpdateOneWithoutSales_invoice_itemsNestedInput
|
||||||
service?: Prisma.ServiceUpdateOneWithoutSales_invoice_itemsNestedInput
|
service?: Prisma.ServiceUpdateOneWithoutSales_invoice_itemsNestedInput
|
||||||
}
|
}
|
||||||
@@ -937,9 +966,10 @@ export type SalesInvoiceItemUncheckedUpdateWithoutInvoiceInput = {
|
|||||||
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||||
discount?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
discount?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||||
notes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
notes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||||
|
payload?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
||||||
|
good_snapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
||||||
good_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
good_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||||
service_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
service_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||||
payload?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
|
||||||
}
|
}
|
||||||
|
|
||||||
export type SalesInvoiceItemUncheckedUpdateManyWithoutInvoiceInput = {
|
export type SalesInvoiceItemUncheckedUpdateManyWithoutInvoiceInput = {
|
||||||
@@ -951,9 +981,10 @@ export type SalesInvoiceItemUncheckedUpdateManyWithoutInvoiceInput = {
|
|||||||
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||||
discount?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
discount?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||||
notes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
notes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||||
|
payload?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
||||||
|
good_snapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
||||||
good_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
good_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||||
service_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
service_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||||
payload?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
|
||||||
}
|
}
|
||||||
|
|
||||||
export type SalesInvoiceItemCreateManyServiceInput = {
|
export type SalesInvoiceItemCreateManyServiceInput = {
|
||||||
@@ -965,9 +996,10 @@ export type SalesInvoiceItemCreateManyServiceInput = {
|
|||||||
created_at?: Date | string
|
created_at?: Date | string
|
||||||
discount?: runtime.Decimal | runtime.DecimalJsLike | number | string
|
discount?: runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||||
notes?: string | null
|
notes?: string | null
|
||||||
|
payload?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
||||||
|
good_snapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
||||||
invoice_id: string
|
invoice_id: string
|
||||||
good_id?: string | null
|
good_id?: string | null
|
||||||
payload?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
|
||||||
}
|
}
|
||||||
|
|
||||||
export type SalesInvoiceItemUpdateWithoutServiceInput = {
|
export type SalesInvoiceItemUpdateWithoutServiceInput = {
|
||||||
@@ -980,6 +1012,7 @@ export type SalesInvoiceItemUpdateWithoutServiceInput = {
|
|||||||
discount?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
discount?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||||
notes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
notes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||||
payload?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
payload?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
||||||
|
good_snapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
||||||
invoice?: Prisma.SalesInvoiceUpdateOneRequiredWithoutItemsNestedInput
|
invoice?: Prisma.SalesInvoiceUpdateOneRequiredWithoutItemsNestedInput
|
||||||
good?: Prisma.GoodUpdateOneWithoutSales_invoice_itemsNestedInput
|
good?: Prisma.GoodUpdateOneWithoutSales_invoice_itemsNestedInput
|
||||||
}
|
}
|
||||||
@@ -993,9 +1026,10 @@ export type SalesInvoiceItemUncheckedUpdateWithoutServiceInput = {
|
|||||||
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||||
discount?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
discount?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||||
notes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
notes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||||
|
payload?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
||||||
|
good_snapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
||||||
invoice_id?: Prisma.StringFieldUpdateOperationsInput | string
|
invoice_id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||||
good_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
good_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||||
payload?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
|
||||||
}
|
}
|
||||||
|
|
||||||
export type SalesInvoiceItemUncheckedUpdateManyWithoutServiceInput = {
|
export type SalesInvoiceItemUncheckedUpdateManyWithoutServiceInput = {
|
||||||
@@ -1007,9 +1041,10 @@ export type SalesInvoiceItemUncheckedUpdateManyWithoutServiceInput = {
|
|||||||
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||||
discount?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
discount?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||||
notes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
notes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||||
|
payload?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
||||||
|
good_snapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
||||||
invoice_id?: Prisma.StringFieldUpdateOperationsInput | string
|
invoice_id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||||
good_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
good_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||||
payload?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@@ -1023,10 +1058,11 @@ export type SalesInvoiceItemSelect<ExtArgs extends runtime.Types.Extensions.Inte
|
|||||||
created_at?: boolean
|
created_at?: boolean
|
||||||
discount?: boolean
|
discount?: boolean
|
||||||
notes?: boolean
|
notes?: boolean
|
||||||
|
payload?: boolean
|
||||||
|
good_snapshot?: boolean
|
||||||
invoice_id?: boolean
|
invoice_id?: boolean
|
||||||
good_id?: boolean
|
good_id?: boolean
|
||||||
service_id?: boolean
|
service_id?: boolean
|
||||||
payload?: boolean
|
|
||||||
invoice?: boolean | Prisma.SalesInvoiceDefaultArgs<ExtArgs>
|
invoice?: boolean | Prisma.SalesInvoiceDefaultArgs<ExtArgs>
|
||||||
good?: boolean | Prisma.SalesInvoiceItem$goodArgs<ExtArgs>
|
good?: boolean | Prisma.SalesInvoiceItem$goodArgs<ExtArgs>
|
||||||
service?: boolean | Prisma.SalesInvoiceItem$serviceArgs<ExtArgs>
|
service?: boolean | Prisma.SalesInvoiceItem$serviceArgs<ExtArgs>
|
||||||
@@ -1043,13 +1079,14 @@ export type SalesInvoiceItemSelectScalar = {
|
|||||||
created_at?: boolean
|
created_at?: boolean
|
||||||
discount?: boolean
|
discount?: boolean
|
||||||
notes?: boolean
|
notes?: boolean
|
||||||
|
payload?: boolean
|
||||||
|
good_snapshot?: boolean
|
||||||
invoice_id?: boolean
|
invoice_id?: boolean
|
||||||
good_id?: boolean
|
good_id?: boolean
|
||||||
service_id?: boolean
|
service_id?: boolean
|
||||||
payload?: boolean
|
|
||||||
}
|
}
|
||||||
|
|
||||||
export type SalesInvoiceItemOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "quantity" | "unit_type" | "unit_price" | "total_amount" | "created_at" | "discount" | "notes" | "invoice_id" | "good_id" | "service_id" | "payload", ExtArgs["result"]["salesInvoiceItem"]>
|
export type SalesInvoiceItemOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "quantity" | "unit_type" | "unit_price" | "total_amount" | "created_at" | "discount" | "notes" | "payload" | "good_snapshot" | "invoice_id" | "good_id" | "service_id", ExtArgs["result"]["salesInvoiceItem"]>
|
||||||
export type SalesInvoiceItemInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
export type SalesInvoiceItemInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
||||||
invoice?: boolean | Prisma.SalesInvoiceDefaultArgs<ExtArgs>
|
invoice?: boolean | Prisma.SalesInvoiceDefaultArgs<ExtArgs>
|
||||||
good?: boolean | Prisma.SalesInvoiceItem$goodArgs<ExtArgs>
|
good?: boolean | Prisma.SalesInvoiceItem$goodArgs<ExtArgs>
|
||||||
@@ -1072,10 +1109,11 @@ export type $SalesInvoiceItemPayload<ExtArgs extends runtime.Types.Extensions.In
|
|||||||
created_at: Date
|
created_at: Date
|
||||||
discount: runtime.Decimal
|
discount: runtime.Decimal
|
||||||
notes: string | null
|
notes: string | null
|
||||||
|
payload: runtime.JsonValue | null
|
||||||
|
good_snapshot: runtime.JsonValue | null
|
||||||
invoice_id: string
|
invoice_id: string
|
||||||
good_id: string | null
|
good_id: string | null
|
||||||
service_id: string | null
|
service_id: string | null
|
||||||
payload: runtime.JsonValue | null
|
|
||||||
}, ExtArgs["result"]["salesInvoiceItem"]>
|
}, ExtArgs["result"]["salesInvoiceItem"]>
|
||||||
composites: {}
|
composites: {}
|
||||||
}
|
}
|
||||||
@@ -1456,10 +1494,11 @@ export interface SalesInvoiceItemFieldRefs {
|
|||||||
readonly created_at: Prisma.FieldRef<"SalesInvoiceItem", 'DateTime'>
|
readonly created_at: Prisma.FieldRef<"SalesInvoiceItem", 'DateTime'>
|
||||||
readonly discount: Prisma.FieldRef<"SalesInvoiceItem", 'Decimal'>
|
readonly discount: Prisma.FieldRef<"SalesInvoiceItem", 'Decimal'>
|
||||||
readonly notes: Prisma.FieldRef<"SalesInvoiceItem", 'String'>
|
readonly notes: Prisma.FieldRef<"SalesInvoiceItem", 'String'>
|
||||||
|
readonly payload: Prisma.FieldRef<"SalesInvoiceItem", 'Json'>
|
||||||
|
readonly good_snapshot: Prisma.FieldRef<"SalesInvoiceItem", 'Json'>
|
||||||
readonly invoice_id: Prisma.FieldRef<"SalesInvoiceItem", 'String'>
|
readonly invoice_id: Prisma.FieldRef<"SalesInvoiceItem", 'String'>
|
||||||
readonly good_id: Prisma.FieldRef<"SalesInvoiceItem", 'String'>
|
readonly good_id: Prisma.FieldRef<"SalesInvoiceItem", 'String'>
|
||||||
readonly service_id: Prisma.FieldRef<"SalesInvoiceItem", 'String'>
|
readonly service_id: Prisma.FieldRef<"SalesInvoiceItem", 'String'>
|
||||||
readonly payload: Prisma.FieldRef<"SalesInvoiceItem", 'Json'>
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -36,29 +36,29 @@ export type SalesInvoicePaymentSumAggregateOutputType = {
|
|||||||
|
|
||||||
export type SalesInvoicePaymentMinAggregateOutputType = {
|
export type SalesInvoicePaymentMinAggregateOutputType = {
|
||||||
id: string | null
|
id: string | null
|
||||||
invoice_id: string | null
|
|
||||||
amount: runtime.Decimal | null
|
amount: runtime.Decimal | null
|
||||||
payment_method: $Enums.PaymentMethodType | null
|
payment_method: $Enums.PaymentMethodType | null
|
||||||
paid_at: Date | null
|
paid_at: Date | null
|
||||||
created_at: Date | null
|
created_at: Date | null
|
||||||
|
invoice_id: string | null
|
||||||
}
|
}
|
||||||
|
|
||||||
export type SalesInvoicePaymentMaxAggregateOutputType = {
|
export type SalesInvoicePaymentMaxAggregateOutputType = {
|
||||||
id: string | null
|
id: string | null
|
||||||
invoice_id: string | null
|
|
||||||
amount: runtime.Decimal | null
|
amount: runtime.Decimal | null
|
||||||
payment_method: $Enums.PaymentMethodType | null
|
payment_method: $Enums.PaymentMethodType | null
|
||||||
paid_at: Date | null
|
paid_at: Date | null
|
||||||
created_at: Date | null
|
created_at: Date | null
|
||||||
|
invoice_id: string | null
|
||||||
}
|
}
|
||||||
|
|
||||||
export type SalesInvoicePaymentCountAggregateOutputType = {
|
export type SalesInvoicePaymentCountAggregateOutputType = {
|
||||||
id: number
|
id: number
|
||||||
invoice_id: number
|
|
||||||
amount: number
|
amount: number
|
||||||
payment_method: number
|
payment_method: number
|
||||||
paid_at: number
|
paid_at: number
|
||||||
created_at: number
|
created_at: number
|
||||||
|
invoice_id: number
|
||||||
_all: number
|
_all: number
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -73,29 +73,29 @@ export type SalesInvoicePaymentSumAggregateInputType = {
|
|||||||
|
|
||||||
export type SalesInvoicePaymentMinAggregateInputType = {
|
export type SalesInvoicePaymentMinAggregateInputType = {
|
||||||
id?: true
|
id?: true
|
||||||
invoice_id?: true
|
|
||||||
amount?: true
|
amount?: true
|
||||||
payment_method?: true
|
payment_method?: true
|
||||||
paid_at?: true
|
paid_at?: true
|
||||||
created_at?: true
|
created_at?: true
|
||||||
|
invoice_id?: true
|
||||||
}
|
}
|
||||||
|
|
||||||
export type SalesInvoicePaymentMaxAggregateInputType = {
|
export type SalesInvoicePaymentMaxAggregateInputType = {
|
||||||
id?: true
|
id?: true
|
||||||
invoice_id?: true
|
|
||||||
amount?: true
|
amount?: true
|
||||||
payment_method?: true
|
payment_method?: true
|
||||||
paid_at?: true
|
paid_at?: true
|
||||||
created_at?: true
|
created_at?: true
|
||||||
|
invoice_id?: true
|
||||||
}
|
}
|
||||||
|
|
||||||
export type SalesInvoicePaymentCountAggregateInputType = {
|
export type SalesInvoicePaymentCountAggregateInputType = {
|
||||||
id?: true
|
id?: true
|
||||||
invoice_id?: true
|
|
||||||
amount?: true
|
amount?: true
|
||||||
payment_method?: true
|
payment_method?: true
|
||||||
paid_at?: true
|
paid_at?: true
|
||||||
created_at?: true
|
created_at?: true
|
||||||
|
invoice_id?: true
|
||||||
_all?: true
|
_all?: true
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -187,11 +187,11 @@ export type SalesInvoicePaymentGroupByArgs<ExtArgs extends runtime.Types.Extensi
|
|||||||
|
|
||||||
export type SalesInvoicePaymentGroupByOutputType = {
|
export type SalesInvoicePaymentGroupByOutputType = {
|
||||||
id: string
|
id: string
|
||||||
invoice_id: string
|
|
||||||
amount: runtime.Decimal
|
amount: runtime.Decimal
|
||||||
payment_method: $Enums.PaymentMethodType
|
payment_method: $Enums.PaymentMethodType
|
||||||
paid_at: Date
|
paid_at: Date
|
||||||
created_at: Date
|
created_at: Date
|
||||||
|
invoice_id: string
|
||||||
_count: SalesInvoicePaymentCountAggregateOutputType | null
|
_count: SalesInvoicePaymentCountAggregateOutputType | null
|
||||||
_avg: SalesInvoicePaymentAvgAggregateOutputType | null
|
_avg: SalesInvoicePaymentAvgAggregateOutputType | null
|
||||||
_sum: SalesInvoicePaymentSumAggregateOutputType | null
|
_sum: SalesInvoicePaymentSumAggregateOutputType | null
|
||||||
@@ -219,21 +219,21 @@ export type SalesInvoicePaymentWhereInput = {
|
|||||||
OR?: Prisma.SalesInvoicePaymentWhereInput[]
|
OR?: Prisma.SalesInvoicePaymentWhereInput[]
|
||||||
NOT?: Prisma.SalesInvoicePaymentWhereInput | Prisma.SalesInvoicePaymentWhereInput[]
|
NOT?: Prisma.SalesInvoicePaymentWhereInput | Prisma.SalesInvoicePaymentWhereInput[]
|
||||||
id?: Prisma.StringFilter<"SalesInvoicePayment"> | string
|
id?: Prisma.StringFilter<"SalesInvoicePayment"> | string
|
||||||
invoice_id?: Prisma.StringFilter<"SalesInvoicePayment"> | string
|
|
||||||
amount?: Prisma.DecimalFilter<"SalesInvoicePayment"> | runtime.Decimal | runtime.DecimalJsLike | number | string
|
amount?: Prisma.DecimalFilter<"SalesInvoicePayment"> | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||||
payment_method?: Prisma.EnumPaymentMethodTypeFilter<"SalesInvoicePayment"> | $Enums.PaymentMethodType
|
payment_method?: Prisma.EnumPaymentMethodTypeFilter<"SalesInvoicePayment"> | $Enums.PaymentMethodType
|
||||||
paid_at?: Prisma.DateTimeFilter<"SalesInvoicePayment"> | Date | string
|
paid_at?: Prisma.DateTimeFilter<"SalesInvoicePayment"> | Date | string
|
||||||
created_at?: Prisma.DateTimeFilter<"SalesInvoicePayment"> | Date | string
|
created_at?: Prisma.DateTimeFilter<"SalesInvoicePayment"> | Date | string
|
||||||
|
invoice_id?: Prisma.StringFilter<"SalesInvoicePayment"> | string
|
||||||
invoice?: Prisma.XOR<Prisma.SalesInvoiceScalarRelationFilter, Prisma.SalesInvoiceWhereInput>
|
invoice?: Prisma.XOR<Prisma.SalesInvoiceScalarRelationFilter, Prisma.SalesInvoiceWhereInput>
|
||||||
}
|
}
|
||||||
|
|
||||||
export type SalesInvoicePaymentOrderByWithRelationInput = {
|
export type SalesInvoicePaymentOrderByWithRelationInput = {
|
||||||
id?: Prisma.SortOrder
|
id?: Prisma.SortOrder
|
||||||
invoice_id?: Prisma.SortOrder
|
|
||||||
amount?: Prisma.SortOrder
|
amount?: Prisma.SortOrder
|
||||||
payment_method?: Prisma.SortOrder
|
payment_method?: Prisma.SortOrder
|
||||||
paid_at?: Prisma.SortOrder
|
paid_at?: Prisma.SortOrder
|
||||||
created_at?: Prisma.SortOrder
|
created_at?: Prisma.SortOrder
|
||||||
|
invoice_id?: Prisma.SortOrder
|
||||||
invoice?: Prisma.SalesInvoiceOrderByWithRelationInput
|
invoice?: Prisma.SalesInvoiceOrderByWithRelationInput
|
||||||
_relevance?: Prisma.SalesInvoicePaymentOrderByRelevanceInput
|
_relevance?: Prisma.SalesInvoicePaymentOrderByRelevanceInput
|
||||||
}
|
}
|
||||||
@@ -243,21 +243,21 @@ export type SalesInvoicePaymentWhereUniqueInput = Prisma.AtLeast<{
|
|||||||
AND?: Prisma.SalesInvoicePaymentWhereInput | Prisma.SalesInvoicePaymentWhereInput[]
|
AND?: Prisma.SalesInvoicePaymentWhereInput | Prisma.SalesInvoicePaymentWhereInput[]
|
||||||
OR?: Prisma.SalesInvoicePaymentWhereInput[]
|
OR?: Prisma.SalesInvoicePaymentWhereInput[]
|
||||||
NOT?: Prisma.SalesInvoicePaymentWhereInput | Prisma.SalesInvoicePaymentWhereInput[]
|
NOT?: Prisma.SalesInvoicePaymentWhereInput | Prisma.SalesInvoicePaymentWhereInput[]
|
||||||
invoice_id?: Prisma.StringFilter<"SalesInvoicePayment"> | string
|
|
||||||
amount?: Prisma.DecimalFilter<"SalesInvoicePayment"> | runtime.Decimal | runtime.DecimalJsLike | number | string
|
amount?: Prisma.DecimalFilter<"SalesInvoicePayment"> | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||||
payment_method?: Prisma.EnumPaymentMethodTypeFilter<"SalesInvoicePayment"> | $Enums.PaymentMethodType
|
payment_method?: Prisma.EnumPaymentMethodTypeFilter<"SalesInvoicePayment"> | $Enums.PaymentMethodType
|
||||||
paid_at?: Prisma.DateTimeFilter<"SalesInvoicePayment"> | Date | string
|
paid_at?: Prisma.DateTimeFilter<"SalesInvoicePayment"> | Date | string
|
||||||
created_at?: Prisma.DateTimeFilter<"SalesInvoicePayment"> | Date | string
|
created_at?: Prisma.DateTimeFilter<"SalesInvoicePayment"> | Date | string
|
||||||
|
invoice_id?: Prisma.StringFilter<"SalesInvoicePayment"> | string
|
||||||
invoice?: Prisma.XOR<Prisma.SalesInvoiceScalarRelationFilter, Prisma.SalesInvoiceWhereInput>
|
invoice?: Prisma.XOR<Prisma.SalesInvoiceScalarRelationFilter, Prisma.SalesInvoiceWhereInput>
|
||||||
}, "id">
|
}, "id">
|
||||||
|
|
||||||
export type SalesInvoicePaymentOrderByWithAggregationInput = {
|
export type SalesInvoicePaymentOrderByWithAggregationInput = {
|
||||||
id?: Prisma.SortOrder
|
id?: Prisma.SortOrder
|
||||||
invoice_id?: Prisma.SortOrder
|
|
||||||
amount?: Prisma.SortOrder
|
amount?: Prisma.SortOrder
|
||||||
payment_method?: Prisma.SortOrder
|
payment_method?: Prisma.SortOrder
|
||||||
paid_at?: Prisma.SortOrder
|
paid_at?: Prisma.SortOrder
|
||||||
created_at?: Prisma.SortOrder
|
created_at?: Prisma.SortOrder
|
||||||
|
invoice_id?: Prisma.SortOrder
|
||||||
_count?: Prisma.SalesInvoicePaymentCountOrderByAggregateInput
|
_count?: Prisma.SalesInvoicePaymentCountOrderByAggregateInput
|
||||||
_avg?: Prisma.SalesInvoicePaymentAvgOrderByAggregateInput
|
_avg?: Prisma.SalesInvoicePaymentAvgOrderByAggregateInput
|
||||||
_max?: Prisma.SalesInvoicePaymentMaxOrderByAggregateInput
|
_max?: Prisma.SalesInvoicePaymentMaxOrderByAggregateInput
|
||||||
@@ -270,11 +270,11 @@ export type SalesInvoicePaymentScalarWhereWithAggregatesInput = {
|
|||||||
OR?: Prisma.SalesInvoicePaymentScalarWhereWithAggregatesInput[]
|
OR?: Prisma.SalesInvoicePaymentScalarWhereWithAggregatesInput[]
|
||||||
NOT?: Prisma.SalesInvoicePaymentScalarWhereWithAggregatesInput | Prisma.SalesInvoicePaymentScalarWhereWithAggregatesInput[]
|
NOT?: Prisma.SalesInvoicePaymentScalarWhereWithAggregatesInput | Prisma.SalesInvoicePaymentScalarWhereWithAggregatesInput[]
|
||||||
id?: Prisma.StringWithAggregatesFilter<"SalesInvoicePayment"> | string
|
id?: Prisma.StringWithAggregatesFilter<"SalesInvoicePayment"> | string
|
||||||
invoice_id?: Prisma.StringWithAggregatesFilter<"SalesInvoicePayment"> | string
|
|
||||||
amount?: Prisma.DecimalWithAggregatesFilter<"SalesInvoicePayment"> | runtime.Decimal | runtime.DecimalJsLike | number | string
|
amount?: Prisma.DecimalWithAggregatesFilter<"SalesInvoicePayment"> | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||||
payment_method?: Prisma.EnumPaymentMethodTypeWithAggregatesFilter<"SalesInvoicePayment"> | $Enums.PaymentMethodType
|
payment_method?: Prisma.EnumPaymentMethodTypeWithAggregatesFilter<"SalesInvoicePayment"> | $Enums.PaymentMethodType
|
||||||
paid_at?: Prisma.DateTimeWithAggregatesFilter<"SalesInvoicePayment"> | Date | string
|
paid_at?: Prisma.DateTimeWithAggregatesFilter<"SalesInvoicePayment"> | Date | string
|
||||||
created_at?: Prisma.DateTimeWithAggregatesFilter<"SalesInvoicePayment"> | Date | string
|
created_at?: Prisma.DateTimeWithAggregatesFilter<"SalesInvoicePayment"> | Date | string
|
||||||
|
invoice_id?: Prisma.StringWithAggregatesFilter<"SalesInvoicePayment"> | string
|
||||||
}
|
}
|
||||||
|
|
||||||
export type SalesInvoicePaymentCreateInput = {
|
export type SalesInvoicePaymentCreateInput = {
|
||||||
@@ -288,11 +288,11 @@ export type SalesInvoicePaymentCreateInput = {
|
|||||||
|
|
||||||
export type SalesInvoicePaymentUncheckedCreateInput = {
|
export type SalesInvoicePaymentUncheckedCreateInput = {
|
||||||
id?: string
|
id?: string
|
||||||
invoice_id: string
|
|
||||||
amount: runtime.Decimal | runtime.DecimalJsLike | number | string
|
amount: runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||||
payment_method: $Enums.PaymentMethodType
|
payment_method: $Enums.PaymentMethodType
|
||||||
paid_at: Date | string
|
paid_at: Date | string
|
||||||
created_at?: Date | string
|
created_at?: Date | string
|
||||||
|
invoice_id: string
|
||||||
}
|
}
|
||||||
|
|
||||||
export type SalesInvoicePaymentUpdateInput = {
|
export type SalesInvoicePaymentUpdateInput = {
|
||||||
@@ -306,20 +306,20 @@ export type SalesInvoicePaymentUpdateInput = {
|
|||||||
|
|
||||||
export type SalesInvoicePaymentUncheckedUpdateInput = {
|
export type SalesInvoicePaymentUncheckedUpdateInput = {
|
||||||
id?: Prisma.StringFieldUpdateOperationsInput | string
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||||
invoice_id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
||||||
amount?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
amount?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||||
payment_method?: Prisma.EnumPaymentMethodTypeFieldUpdateOperationsInput | $Enums.PaymentMethodType
|
payment_method?: Prisma.EnumPaymentMethodTypeFieldUpdateOperationsInput | $Enums.PaymentMethodType
|
||||||
paid_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
paid_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||||
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||||
|
invoice_id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||||
}
|
}
|
||||||
|
|
||||||
export type SalesInvoicePaymentCreateManyInput = {
|
export type SalesInvoicePaymentCreateManyInput = {
|
||||||
id?: string
|
id?: string
|
||||||
invoice_id: string
|
|
||||||
amount: runtime.Decimal | runtime.DecimalJsLike | number | string
|
amount: runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||||
payment_method: $Enums.PaymentMethodType
|
payment_method: $Enums.PaymentMethodType
|
||||||
paid_at: Date | string
|
paid_at: Date | string
|
||||||
created_at?: Date | string
|
created_at?: Date | string
|
||||||
|
invoice_id: string
|
||||||
}
|
}
|
||||||
|
|
||||||
export type SalesInvoicePaymentUpdateManyMutationInput = {
|
export type SalesInvoicePaymentUpdateManyMutationInput = {
|
||||||
@@ -332,11 +332,11 @@ export type SalesInvoicePaymentUpdateManyMutationInput = {
|
|||||||
|
|
||||||
export type SalesInvoicePaymentUncheckedUpdateManyInput = {
|
export type SalesInvoicePaymentUncheckedUpdateManyInput = {
|
||||||
id?: Prisma.StringFieldUpdateOperationsInput | string
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||||
invoice_id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
||||||
amount?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
amount?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||||
payment_method?: Prisma.EnumPaymentMethodTypeFieldUpdateOperationsInput | $Enums.PaymentMethodType
|
payment_method?: Prisma.EnumPaymentMethodTypeFieldUpdateOperationsInput | $Enums.PaymentMethodType
|
||||||
paid_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
paid_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||||
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||||
|
invoice_id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||||
}
|
}
|
||||||
|
|
||||||
export type SalesInvoicePaymentListRelationFilter = {
|
export type SalesInvoicePaymentListRelationFilter = {
|
||||||
@@ -357,11 +357,11 @@ export type SalesInvoicePaymentOrderByRelevanceInput = {
|
|||||||
|
|
||||||
export type SalesInvoicePaymentCountOrderByAggregateInput = {
|
export type SalesInvoicePaymentCountOrderByAggregateInput = {
|
||||||
id?: Prisma.SortOrder
|
id?: Prisma.SortOrder
|
||||||
invoice_id?: Prisma.SortOrder
|
|
||||||
amount?: Prisma.SortOrder
|
amount?: Prisma.SortOrder
|
||||||
payment_method?: Prisma.SortOrder
|
payment_method?: Prisma.SortOrder
|
||||||
paid_at?: Prisma.SortOrder
|
paid_at?: Prisma.SortOrder
|
||||||
created_at?: Prisma.SortOrder
|
created_at?: Prisma.SortOrder
|
||||||
|
invoice_id?: Prisma.SortOrder
|
||||||
}
|
}
|
||||||
|
|
||||||
export type SalesInvoicePaymentAvgOrderByAggregateInput = {
|
export type SalesInvoicePaymentAvgOrderByAggregateInput = {
|
||||||
@@ -370,20 +370,20 @@ export type SalesInvoicePaymentAvgOrderByAggregateInput = {
|
|||||||
|
|
||||||
export type SalesInvoicePaymentMaxOrderByAggregateInput = {
|
export type SalesInvoicePaymentMaxOrderByAggregateInput = {
|
||||||
id?: Prisma.SortOrder
|
id?: Prisma.SortOrder
|
||||||
invoice_id?: Prisma.SortOrder
|
|
||||||
amount?: Prisma.SortOrder
|
amount?: Prisma.SortOrder
|
||||||
payment_method?: Prisma.SortOrder
|
payment_method?: Prisma.SortOrder
|
||||||
paid_at?: Prisma.SortOrder
|
paid_at?: Prisma.SortOrder
|
||||||
created_at?: Prisma.SortOrder
|
created_at?: Prisma.SortOrder
|
||||||
|
invoice_id?: Prisma.SortOrder
|
||||||
}
|
}
|
||||||
|
|
||||||
export type SalesInvoicePaymentMinOrderByAggregateInput = {
|
export type SalesInvoicePaymentMinOrderByAggregateInput = {
|
||||||
id?: Prisma.SortOrder
|
id?: Prisma.SortOrder
|
||||||
invoice_id?: Prisma.SortOrder
|
|
||||||
amount?: Prisma.SortOrder
|
amount?: Prisma.SortOrder
|
||||||
payment_method?: Prisma.SortOrder
|
payment_method?: Prisma.SortOrder
|
||||||
paid_at?: Prisma.SortOrder
|
paid_at?: Prisma.SortOrder
|
||||||
created_at?: Prisma.SortOrder
|
created_at?: Prisma.SortOrder
|
||||||
|
invoice_id?: Prisma.SortOrder
|
||||||
}
|
}
|
||||||
|
|
||||||
export type SalesInvoicePaymentSumOrderByAggregateInput = {
|
export type SalesInvoicePaymentSumOrderByAggregateInput = {
|
||||||
@@ -483,11 +483,11 @@ export type SalesInvoicePaymentScalarWhereInput = {
|
|||||||
OR?: Prisma.SalesInvoicePaymentScalarWhereInput[]
|
OR?: Prisma.SalesInvoicePaymentScalarWhereInput[]
|
||||||
NOT?: Prisma.SalesInvoicePaymentScalarWhereInput | Prisma.SalesInvoicePaymentScalarWhereInput[]
|
NOT?: Prisma.SalesInvoicePaymentScalarWhereInput | Prisma.SalesInvoicePaymentScalarWhereInput[]
|
||||||
id?: Prisma.StringFilter<"SalesInvoicePayment"> | string
|
id?: Prisma.StringFilter<"SalesInvoicePayment"> | string
|
||||||
invoice_id?: Prisma.StringFilter<"SalesInvoicePayment"> | string
|
|
||||||
amount?: Prisma.DecimalFilter<"SalesInvoicePayment"> | runtime.Decimal | runtime.DecimalJsLike | number | string
|
amount?: Prisma.DecimalFilter<"SalesInvoicePayment"> | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||||
payment_method?: Prisma.EnumPaymentMethodTypeFilter<"SalesInvoicePayment"> | $Enums.PaymentMethodType
|
payment_method?: Prisma.EnumPaymentMethodTypeFilter<"SalesInvoicePayment"> | $Enums.PaymentMethodType
|
||||||
paid_at?: Prisma.DateTimeFilter<"SalesInvoicePayment"> | Date | string
|
paid_at?: Prisma.DateTimeFilter<"SalesInvoicePayment"> | Date | string
|
||||||
created_at?: Prisma.DateTimeFilter<"SalesInvoicePayment"> | Date | string
|
created_at?: Prisma.DateTimeFilter<"SalesInvoicePayment"> | Date | string
|
||||||
|
invoice_id?: Prisma.StringFilter<"SalesInvoicePayment"> | string
|
||||||
}
|
}
|
||||||
|
|
||||||
export type SalesInvoicePaymentCreateManyInvoiceInput = {
|
export type SalesInvoicePaymentCreateManyInvoiceInput = {
|
||||||
@@ -526,11 +526,11 @@ export type SalesInvoicePaymentUncheckedUpdateManyWithoutInvoiceInput = {
|
|||||||
|
|
||||||
export type SalesInvoicePaymentSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
export type SalesInvoicePaymentSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
||||||
id?: boolean
|
id?: boolean
|
||||||
invoice_id?: boolean
|
|
||||||
amount?: boolean
|
amount?: boolean
|
||||||
payment_method?: boolean
|
payment_method?: boolean
|
||||||
paid_at?: boolean
|
paid_at?: boolean
|
||||||
created_at?: boolean
|
created_at?: boolean
|
||||||
|
invoice_id?: boolean
|
||||||
invoice?: boolean | Prisma.SalesInvoiceDefaultArgs<ExtArgs>
|
invoice?: boolean | Prisma.SalesInvoiceDefaultArgs<ExtArgs>
|
||||||
}, ExtArgs["result"]["salesInvoicePayment"]>
|
}, ExtArgs["result"]["salesInvoicePayment"]>
|
||||||
|
|
||||||
@@ -538,14 +538,14 @@ export type SalesInvoicePaymentSelect<ExtArgs extends runtime.Types.Extensions.I
|
|||||||
|
|
||||||
export type SalesInvoicePaymentSelectScalar = {
|
export type SalesInvoicePaymentSelectScalar = {
|
||||||
id?: boolean
|
id?: boolean
|
||||||
invoice_id?: boolean
|
|
||||||
amount?: boolean
|
amount?: boolean
|
||||||
payment_method?: boolean
|
payment_method?: boolean
|
||||||
paid_at?: boolean
|
paid_at?: boolean
|
||||||
created_at?: boolean
|
created_at?: boolean
|
||||||
|
invoice_id?: boolean
|
||||||
}
|
}
|
||||||
|
|
||||||
export type SalesInvoicePaymentOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "invoice_id" | "amount" | "payment_method" | "paid_at" | "created_at", ExtArgs["result"]["salesInvoicePayment"]>
|
export type SalesInvoicePaymentOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "amount" | "payment_method" | "paid_at" | "created_at" | "invoice_id", ExtArgs["result"]["salesInvoicePayment"]>
|
||||||
export type SalesInvoicePaymentInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
export type SalesInvoicePaymentInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
||||||
invoice?: boolean | Prisma.SalesInvoiceDefaultArgs<ExtArgs>
|
invoice?: boolean | Prisma.SalesInvoiceDefaultArgs<ExtArgs>
|
||||||
}
|
}
|
||||||
@@ -557,11 +557,11 @@ export type $SalesInvoicePaymentPayload<ExtArgs extends runtime.Types.Extensions
|
|||||||
}
|
}
|
||||||
scalars: runtime.Types.Extensions.GetPayloadResult<{
|
scalars: runtime.Types.Extensions.GetPayloadResult<{
|
||||||
id: string
|
id: string
|
||||||
invoice_id: string
|
|
||||||
amount: runtime.Decimal
|
amount: runtime.Decimal
|
||||||
payment_method: $Enums.PaymentMethodType
|
payment_method: $Enums.PaymentMethodType
|
||||||
paid_at: Date
|
paid_at: Date
|
||||||
created_at: Date
|
created_at: Date
|
||||||
|
invoice_id: string
|
||||||
}, ExtArgs["result"]["salesInvoicePayment"]>
|
}, ExtArgs["result"]["salesInvoicePayment"]>
|
||||||
composites: {}
|
composites: {}
|
||||||
}
|
}
|
||||||
@@ -933,11 +933,11 @@ export interface Prisma__SalesInvoicePaymentClient<T, Null = never, ExtArgs exte
|
|||||||
*/
|
*/
|
||||||
export interface SalesInvoicePaymentFieldRefs {
|
export interface SalesInvoicePaymentFieldRefs {
|
||||||
readonly id: Prisma.FieldRef<"SalesInvoicePayment", 'String'>
|
readonly id: Prisma.FieldRef<"SalesInvoicePayment", 'String'>
|
||||||
readonly invoice_id: Prisma.FieldRef<"SalesInvoicePayment", 'String'>
|
|
||||||
readonly amount: Prisma.FieldRef<"SalesInvoicePayment", 'Decimal'>
|
readonly amount: Prisma.FieldRef<"SalesInvoicePayment", 'Decimal'>
|
||||||
readonly payment_method: Prisma.FieldRef<"SalesInvoicePayment", 'PaymentMethodType'>
|
readonly payment_method: Prisma.FieldRef<"SalesInvoicePayment", 'PaymentMethodType'>
|
||||||
readonly paid_at: Prisma.FieldRef<"SalesInvoicePayment", 'DateTime'>
|
readonly paid_at: Prisma.FieldRef<"SalesInvoicePayment", 'DateTime'>
|
||||||
readonly created_at: Prisma.FieldRef<"SalesInvoicePayment", 'DateTime'>
|
readonly created_at: Prisma.FieldRef<"SalesInvoicePayment", 'DateTime'>
|
||||||
|
readonly invoice_id: Prisma.FieldRef<"SalesInvoicePayment", 'String'>
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -9,41 +9,13 @@ import { ResponseMapper } from 'common/response/response-mapper'
|
|||||||
export class AdminConsumersService {
|
export class AdminConsumersService {
|
||||||
constructor(private readonly prisma: PrismaService) {}
|
constructor(private readonly prisma: PrismaService) {}
|
||||||
|
|
||||||
private readonly now = new Date()
|
|
||||||
|
|
||||||
private readonly defaultSelect: ConsumerSelect = {
|
private readonly defaultSelect: ConsumerSelect = {
|
||||||
id: true,
|
id: true,
|
||||||
type: true,
|
type: true,
|
||||||
...QUERY_CONSTANTS.CONSUMER.infoSelect,
|
...QUERY_CONSTANTS.CONSUMER.infoSelect,
|
||||||
|
...QUERY_CONSTANTS.CONSUMER.activeBusinessCount,
|
||||||
status: true,
|
status: true,
|
||||||
|
|
||||||
created_at: true,
|
created_at: true,
|
||||||
_count: {
|
|
||||||
select: {
|
|
||||||
business_activities: {
|
|
||||||
where: {
|
|
||||||
license_activation: {
|
|
||||||
OR: [
|
|
||||||
{
|
|
||||||
expires_at: {
|
|
||||||
gt: this.now,
|
|
||||||
},
|
|
||||||
},
|
|
||||||
{
|
|
||||||
license_renews: {
|
|
||||||
some: {
|
|
||||||
expires_at: {
|
|
||||||
gt: this.now,
|
|
||||||
},
|
|
||||||
},
|
|
||||||
},
|
|
||||||
},
|
|
||||||
],
|
|
||||||
},
|
|
||||||
},
|
|
||||||
},
|
|
||||||
},
|
|
||||||
},
|
|
||||||
}
|
}
|
||||||
|
|
||||||
async findAll() {
|
async findAll() {
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
import { QUERY_CONSTANTS } from '@/common/queryConstants'
|
||||||
import { ComplexSelect } from '@/generated/prisma/models'
|
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'
|
||||||
@@ -53,8 +54,6 @@ export class BusinessActivityComplexesService {
|
|||||||
data: CreateConsumerComplexDto,
|
data: CreateConsumerComplexDto,
|
||||||
) {
|
) {
|
||||||
const complex = await this.prisma.$transaction(async tx => {
|
const complex = await this.prisma.$transaction(async tx => {
|
||||||
const now = new Date()
|
|
||||||
|
|
||||||
const relatedLicense = await tx.licenseAccountAllocation.findFirst({
|
const relatedLicense = await tx.licenseAccountAllocation.findFirst({
|
||||||
where: {
|
where: {
|
||||||
license_activation: {
|
license_activation: {
|
||||||
@@ -62,22 +61,7 @@ export class BusinessActivityComplexesService {
|
|||||||
id: business_activity_id,
|
id: business_activity_id,
|
||||||
consumer_id,
|
consumer_id,
|
||||||
},
|
},
|
||||||
OR: [
|
...QUERY_CONSTANTS.LICENSE_ACTIVATION.activeOnDate(),
|
||||||
{
|
|
||||||
expires_at: {
|
|
||||||
gte: now,
|
|
||||||
},
|
|
||||||
},
|
|
||||||
{
|
|
||||||
license_renews: {
|
|
||||||
some: {
|
|
||||||
expires_at: {
|
|
||||||
gte: now,
|
|
||||||
},
|
|
||||||
},
|
|
||||||
},
|
|
||||||
},
|
|
||||||
],
|
|
||||||
},
|
},
|
||||||
account_id: null,
|
account_id: null,
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
import { QUERY_CONSTANTS } from '@/common/queryConstants'
|
||||||
import { PasswordUtil } from '@/common/utils/password.util'
|
import { PasswordUtil } from '@/common/utils/password.util'
|
||||||
import {
|
import {
|
||||||
AccountStatus,
|
AccountStatus,
|
||||||
@@ -189,22 +190,7 @@ export class ComplexPosesService {
|
|||||||
business_activity: {
|
business_activity: {
|
||||||
consumer_id,
|
consumer_id,
|
||||||
},
|
},
|
||||||
OR: [
|
...QUERY_CONSTANTS.LICENSE_ACTIVATION.activeOnDate(),
|
||||||
{
|
|
||||||
expires_at: {
|
|
||||||
gte: now,
|
|
||||||
},
|
|
||||||
},
|
|
||||||
{
|
|
||||||
license_renews: {
|
|
||||||
some: {
|
|
||||||
expires_at: {
|
|
||||||
gte: now,
|
|
||||||
},
|
|
||||||
},
|
|
||||||
},
|
|
||||||
},
|
|
||||||
],
|
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
select: {
|
select: {
|
||||||
|
|||||||
@@ -0,0 +1,10 @@
|
|||||||
|
import { ApiProperty } from '@nestjs/swagger'
|
||||||
|
import { ArrayMinSize, IsArray, IsString } from 'class-validator'
|
||||||
|
|
||||||
|
export class SendBulkSaleInvoicesDto {
|
||||||
|
@ApiProperty({ type: [String], minItems: 1 })
|
||||||
|
@IsArray()
|
||||||
|
@ArrayMinSize(1)
|
||||||
|
@IsString({ each: true })
|
||||||
|
invoice_ids: string[]
|
||||||
|
}
|
||||||
@@ -1,8 +1,12 @@
|
|||||||
import { TokenAccount } from '@/common/decorators/tokenInfo.decorator'
|
import { TokenAccount } from '@/common/decorators/tokenInfo.decorator'
|
||||||
import { Controller, Get, Param } from '@nestjs/common'
|
import { Body, Controller, Get, Param, Post } from '@nestjs/common'
|
||||||
import { ApiTags } from '@nestjs/swagger'
|
import { ApiTags } from '@nestjs/swagger'
|
||||||
|
import type {
|
||||||
|
SaleInvoicesServiceFindAllResponseDto,
|
||||||
|
SaleInvoicesServiceFindOneResponseDto,
|
||||||
|
} from './dto/saleInvoices-response.dto'
|
||||||
|
import { SendBulkSaleInvoicesDto } from './dto/send-saleInvoices.dto'
|
||||||
import { SaleInvoicesService } from './saleInvoices.service'
|
import { SaleInvoicesService } from './saleInvoices.service'
|
||||||
import type { SaleInvoicesServiceFindAllResponseDto, SaleInvoicesServiceFindOneResponseDto } from './dto/saleInvoices-response.dto'
|
|
||||||
|
|
||||||
@ApiTags('ConsumerSaleInvoices')
|
@ApiTags('ConsumerSaleInvoices')
|
||||||
@Controller('consumer/sale-invoices')
|
@Controller('consumer/sale-invoices')
|
||||||
@@ -10,12 +14,30 @@ export class StatisticsController {
|
|||||||
constructor(private readonly service: SaleInvoicesService) {}
|
constructor(private readonly service: SaleInvoicesService) {}
|
||||||
|
|
||||||
@Get('')
|
@Get('')
|
||||||
async findAll(@TokenAccount('userId') consumerId: string): Promise<SaleInvoicesServiceFindAllResponseDto> {
|
async findAll(
|
||||||
|
@TokenAccount('userId') consumerId: string,
|
||||||
|
): Promise<SaleInvoicesServiceFindAllResponseDto> {
|
||||||
return this.service.findAll(consumerId)
|
return this.service.findAll(consumerId)
|
||||||
}
|
}
|
||||||
|
|
||||||
@Get(':id')
|
@Get(':id')
|
||||||
async findOne(@TokenAccount('userId') consumerId: string, @Param('id') id: string): Promise<SaleInvoicesServiceFindOneResponseDto> {
|
async findOne(
|
||||||
|
@TokenAccount('userId') consumerId: string,
|
||||||
|
@Param('id') id: string,
|
||||||
|
): Promise<SaleInvoicesServiceFindOneResponseDto> {
|
||||||
return this.service.findOne(consumerId, id)
|
return this.service.findOne(consumerId, id)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Post(':id/send_tax')
|
||||||
|
async send(@TokenAccount('userId') consumerId: string, @Param('id') id: string) {
|
||||||
|
return this.service.send(consumerId, id)
|
||||||
|
}
|
||||||
|
|
||||||
|
@Post('send_tax_bulk')
|
||||||
|
async sendBulk(
|
||||||
|
@TokenAccount('userId') consumerId: string,
|
||||||
|
@Body() data: SendBulkSaleInvoicesDto,
|
||||||
|
) {
|
||||||
|
return this.service.sendBulk(consumerId, data.invoice_ids)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -2,11 +2,19 @@ import { PrismaModule } from '@/prisma/prisma.module'
|
|||||||
import { Module } from '@nestjs/common'
|
import { Module } from '@nestjs/common'
|
||||||
import { StatisticsController } from './saleInvoices.controller'
|
import { StatisticsController } from './saleInvoices.controller'
|
||||||
import { SaleInvoicesService } from './saleInvoices.service'
|
import { SaleInvoicesService } from './saleInvoices.service'
|
||||||
|
import { SalesInvoiceTaxSwitchService } from './tax/sales-invoice-tax-switch.service'
|
||||||
|
import { SalesInvoiceTaxService } from './tax/sales-invoice-tax.service'
|
||||||
|
import { NamaTaxSwitchAdapter } from './tax/switch/nama-tax-switch.adapter'
|
||||||
|
|
||||||
@Module({
|
@Module({
|
||||||
imports: [PrismaModule],
|
imports: [PrismaModule],
|
||||||
controllers: [StatisticsController],
|
controllers: [StatisticsController],
|
||||||
providers: [SaleInvoicesService],
|
providers: [
|
||||||
|
SaleInvoicesService,
|
||||||
|
SalesInvoiceTaxService,
|
||||||
|
SalesInvoiceTaxSwitchService,
|
||||||
|
NamaTaxSwitchAdapter,
|
||||||
|
],
|
||||||
exports: [SaleInvoicesService],
|
exports: [SaleInvoicesService],
|
||||||
})
|
})
|
||||||
export class ConsumerSaleInvoicesModule {}
|
export class ConsumerSaleInvoicesModule {}
|
||||||
|
|||||||
@@ -4,12 +4,16 @@ import {
|
|||||||
SalesInvoiceWhereUniqueInput,
|
SalesInvoiceWhereUniqueInput,
|
||||||
} from '@/generated/prisma/models'
|
} 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 { SalesInvoiceTaxService } from './tax/sales-invoice-tax.service'
|
||||||
|
|
||||||
@Injectable()
|
@Injectable()
|
||||||
export class SaleInvoicesService {
|
export class SaleInvoicesService {
|
||||||
constructor(private readonly prisma: PrismaService) {}
|
constructor(
|
||||||
|
private readonly prisma: PrismaService,
|
||||||
|
private salesInvoiceTaxService: SalesInvoiceTaxService,
|
||||||
|
) {}
|
||||||
|
|
||||||
private readonly defaultSelect: SalesInvoiceSelect = {
|
private readonly defaultSelect: SalesInvoiceSelect = {
|
||||||
id: true,
|
id: true,
|
||||||
@@ -45,6 +49,21 @@ export class SaleInvoicesService {
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
fiscal: {
|
||||||
|
select: {
|
||||||
|
id: true,
|
||||||
|
attempts: {
|
||||||
|
orderBy: {
|
||||||
|
created_at: 'asc',
|
||||||
|
},
|
||||||
|
take: 1,
|
||||||
|
select: {
|
||||||
|
id: true,
|
||||||
|
status: true,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
async findAll(consumer_id: string, page = 1, perPage = 10) {
|
async findAll(consumer_id: string, page = 1, perPage = 10) {
|
||||||
@@ -139,4 +158,26 @@ export class SaleInvoicesService {
|
|||||||
})
|
})
|
||||||
return ResponseMapper.single(invoice)
|
return ResponseMapper.single(invoice)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
async send(consumer_id: string, invoice_id: string) {
|
||||||
|
await this.salesInvoiceTaxService.send(consumer_id, invoice_id)
|
||||||
|
|
||||||
|
return ResponseMapper.single({
|
||||||
|
invoice_id,
|
||||||
|
sent_to_tax: true,
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
async sendBulk(consumer_id: string, invoiceIds: string[]) {
|
||||||
|
if (!invoiceIds.length) {
|
||||||
|
throw new BadRequestException('لیست شناسه فاکتورها نمیتواند خالی باشد.')
|
||||||
|
}
|
||||||
|
|
||||||
|
await this.salesInvoiceTaxService.sendBulk(consumer_id, invoiceIds)
|
||||||
|
|
||||||
|
return ResponseMapper.single({
|
||||||
|
invoice_ids: invoiceIds,
|
||||||
|
sent_to_tax: true,
|
||||||
|
})
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -0,0 +1,169 @@
|
|||||||
|
import { ApiProperty } from '@nestjs/swagger'
|
||||||
|
import { Type } from 'class-transformer'
|
||||||
|
import {
|
||||||
|
IsArray,
|
||||||
|
IsDateString,
|
||||||
|
IsEnum,
|
||||||
|
IsNumber,
|
||||||
|
IsObject,
|
||||||
|
IsOptional,
|
||||||
|
IsString,
|
||||||
|
ValidateNested,
|
||||||
|
} from 'class-validator'
|
||||||
|
|
||||||
|
export enum TaxSendStatus {
|
||||||
|
SENT = 'SENT',
|
||||||
|
FAILED = 'FAILED',
|
||||||
|
PENDING = 'PENDING',
|
||||||
|
}
|
||||||
|
|
||||||
|
export class TaxSwitchSendItemPayloadDto {
|
||||||
|
@ApiProperty()
|
||||||
|
@IsString()
|
||||||
|
invoice_item_id: string
|
||||||
|
|
||||||
|
@ApiProperty()
|
||||||
|
@IsNumber()
|
||||||
|
quantity: number
|
||||||
|
|
||||||
|
@ApiProperty()
|
||||||
|
@IsNumber()
|
||||||
|
unit_price: number
|
||||||
|
|
||||||
|
@ApiProperty()
|
||||||
|
@IsNumber()
|
||||||
|
total_amount: number
|
||||||
|
|
||||||
|
@ApiProperty()
|
||||||
|
@IsString()
|
||||||
|
unit_type: string
|
||||||
|
|
||||||
|
@ApiProperty({ required: false, nullable: true })
|
||||||
|
@IsOptional()
|
||||||
|
@IsString()
|
||||||
|
good_id?: string | null
|
||||||
|
|
||||||
|
@ApiProperty({ required: false, nullable: true })
|
||||||
|
@IsOptional()
|
||||||
|
@IsString()
|
||||||
|
service_id?: string | null
|
||||||
|
|
||||||
|
@ApiProperty({ required: false, nullable: true, type: Object })
|
||||||
|
@IsOptional()
|
||||||
|
@IsObject()
|
||||||
|
payload?: unknown
|
||||||
|
|
||||||
|
@ApiProperty({ required: false, nullable: true, type: Object })
|
||||||
|
@IsOptional()
|
||||||
|
@IsObject()
|
||||||
|
good_snapshot?: unknown
|
||||||
|
}
|
||||||
|
|
||||||
|
export class TaxSwitchSendPayloadDto {
|
||||||
|
@ApiProperty()
|
||||||
|
@IsString()
|
||||||
|
invoice_id: string
|
||||||
|
|
||||||
|
@ApiProperty()
|
||||||
|
@IsString()
|
||||||
|
invoice_code: string
|
||||||
|
|
||||||
|
@ApiProperty({ required: false, nullable: true })
|
||||||
|
@IsOptional()
|
||||||
|
@IsDateString()
|
||||||
|
invoice_date: string | null
|
||||||
|
|
||||||
|
@ApiProperty()
|
||||||
|
@IsNumber()
|
||||||
|
total_amount: number
|
||||||
|
|
||||||
|
@ApiProperty({ required: false, nullable: true })
|
||||||
|
@IsOptional()
|
||||||
|
@IsString()
|
||||||
|
provider_code?: string | null
|
||||||
|
|
||||||
|
@ApiProperty({ type: [TaxSwitchSendItemPayloadDto] })
|
||||||
|
@IsArray()
|
||||||
|
@ValidateNested({ each: true })
|
||||||
|
@Type(() => TaxSwitchSendItemPayloadDto)
|
||||||
|
items: TaxSwitchSendItemPayloadDto[]
|
||||||
|
}
|
||||||
|
|
||||||
|
export class TaxSwitchSendItemResultDto {
|
||||||
|
@ApiProperty()
|
||||||
|
@IsString()
|
||||||
|
invoice_item_id: string
|
||||||
|
|
||||||
|
@ApiProperty({ enum: TaxSendStatus })
|
||||||
|
@IsEnum(TaxSendStatus)
|
||||||
|
status: TaxSendStatus
|
||||||
|
|
||||||
|
@ApiProperty({ required: false, nullable: true })
|
||||||
|
@IsOptional()
|
||||||
|
@IsString()
|
||||||
|
tax_id?: string | null
|
||||||
|
|
||||||
|
@ApiProperty({ required: false, nullable: true, type: Object })
|
||||||
|
@IsOptional()
|
||||||
|
@IsObject()
|
||||||
|
request_payload?: unknown
|
||||||
|
|
||||||
|
@ApiProperty({ required: false, nullable: true, type: Object })
|
||||||
|
@IsOptional()
|
||||||
|
@IsObject()
|
||||||
|
response_payload?: unknown
|
||||||
|
|
||||||
|
@ApiProperty({ required: false, nullable: true })
|
||||||
|
@IsOptional()
|
||||||
|
@IsString()
|
||||||
|
error_message?: string | null
|
||||||
|
|
||||||
|
@ApiProperty({ required: false, nullable: true })
|
||||||
|
@IsOptional()
|
||||||
|
@IsDateString()
|
||||||
|
sent_at?: string | null
|
||||||
|
|
||||||
|
@ApiProperty({ required: false, nullable: true })
|
||||||
|
@IsOptional()
|
||||||
|
@IsDateString()
|
||||||
|
received_at?: string | null
|
||||||
|
}
|
||||||
|
|
||||||
|
export class TaxSwitchBulkSendResultDto {
|
||||||
|
@ApiProperty()
|
||||||
|
@IsString()
|
||||||
|
invoice_id: string
|
||||||
|
|
||||||
|
@ApiProperty({ type: [TaxSwitchSendItemResultDto] })
|
||||||
|
@IsArray()
|
||||||
|
@ValidateNested({ each: true })
|
||||||
|
@Type(() => TaxSwitchSendItemResultDto)
|
||||||
|
items: TaxSwitchSendItemResultDto[]
|
||||||
|
}
|
||||||
|
|
||||||
|
export class TaxSwitchGetResultDto {
|
||||||
|
@ApiProperty()
|
||||||
|
@IsString()
|
||||||
|
tax_id: string
|
||||||
|
|
||||||
|
@ApiProperty({ enum: TaxSendStatus })
|
||||||
|
@IsEnum(TaxSendStatus)
|
||||||
|
status: TaxSendStatus
|
||||||
|
|
||||||
|
@ApiProperty({ required: false, nullable: true, type: Object })
|
||||||
|
@IsOptional()
|
||||||
|
@IsObject()
|
||||||
|
response_payload?: unknown
|
||||||
|
|
||||||
|
@ApiProperty({ required: false, nullable: true })
|
||||||
|
@IsOptional()
|
||||||
|
@IsDateString()
|
||||||
|
received_at?: string | null
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface ITaxSwitchAdapter {
|
||||||
|
readonly code: string
|
||||||
|
send(payload: TaxSwitchSendPayloadDto): Promise<TaxSwitchSendItemResultDto[]>
|
||||||
|
sendBulk(payloads: TaxSwitchSendPayloadDto[]): Promise<TaxSwitchBulkSendResultDto[]>
|
||||||
|
get(taxId: string): Promise<TaxSwitchGetResultDto>
|
||||||
|
}
|
||||||
@@ -0,0 +1,58 @@
|
|||||||
|
import { Injectable } from '@nestjs/common'
|
||||||
|
import {
|
||||||
|
TaxSwitchBulkSendResultDto,
|
||||||
|
TaxSwitchGetResultDto,
|
||||||
|
TaxSwitchSendItemResultDto,
|
||||||
|
TaxSwitchSendPayloadDto,
|
||||||
|
} from './dto/tax-switch.dto'
|
||||||
|
import { NamaTaxSwitchAdapter } from './switch/nama-tax-switch.adapter'
|
||||||
|
|
||||||
|
@Injectable()
|
||||||
|
export class SalesInvoiceTaxSwitchService {
|
||||||
|
constructor(private readonly namaAdapter: NamaTaxSwitchAdapter) {}
|
||||||
|
|
||||||
|
private resolveSwitch(providerCode?: string | null) {
|
||||||
|
const normalizedCode = providerCode?.trim().toUpperCase() || ''
|
||||||
|
|
||||||
|
switch (normalizedCode) {
|
||||||
|
case 'NAMA':
|
||||||
|
default:
|
||||||
|
return this.namaAdapter
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
async send(payload: TaxSwitchSendPayloadDto): Promise<TaxSwitchSendItemResultDto[]> {
|
||||||
|
const adapter = this.resolveSwitch(payload.provider_code)
|
||||||
|
return adapter.send(payload)
|
||||||
|
}
|
||||||
|
|
||||||
|
async sendBulk(
|
||||||
|
payloads: TaxSwitchSendPayloadDto[],
|
||||||
|
): Promise<TaxSwitchBulkSendResultDto[]> {
|
||||||
|
const groupedByProvider = new Map<string, TaxSwitchSendPayloadDto[]>()
|
||||||
|
|
||||||
|
for (const payload of payloads) {
|
||||||
|
const key = payload.provider_code?.trim().toUpperCase() || 'NAMA'
|
||||||
|
const currentGroup = groupedByProvider.get(key) || []
|
||||||
|
currentGroup.push(payload)
|
||||||
|
groupedByProvider.set(key, currentGroup)
|
||||||
|
}
|
||||||
|
|
||||||
|
const result: TaxSwitchBulkSendResultDto[] = []
|
||||||
|
for (const [providerCode, groupedPayloads] of groupedByProvider.entries()) {
|
||||||
|
const adapter = this.resolveSwitch(providerCode)
|
||||||
|
const providerResult = await adapter.sendBulk(groupedPayloads)
|
||||||
|
result.push(...providerResult)
|
||||||
|
}
|
||||||
|
|
||||||
|
return result
|
||||||
|
}
|
||||||
|
|
||||||
|
async get(
|
||||||
|
providerCode: string | null | undefined,
|
||||||
|
taxId: string,
|
||||||
|
): Promise<TaxSwitchGetResultDto> {
|
||||||
|
const adapter = this.resolveSwitch(providerCode)
|
||||||
|
return adapter.get(taxId)
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,301 @@
|
|||||||
|
import { PrismaService } from '@/prisma/prisma.service'
|
||||||
|
import { Injectable, NotFoundException } from '@nestjs/common'
|
||||||
|
import { Prisma } from 'generated/prisma/client'
|
||||||
|
import {
|
||||||
|
TaxSendStatus,
|
||||||
|
TaxSwitchGetResultDto,
|
||||||
|
TaxSwitchSendItemResultDto,
|
||||||
|
TaxSwitchSendPayloadDto,
|
||||||
|
} from './dto/tax-switch.dto'
|
||||||
|
import { SalesInvoiceTaxSwitchService } from './sales-invoice-tax-switch.service'
|
||||||
|
|
||||||
|
type TaxRow = {
|
||||||
|
id: string
|
||||||
|
retry_count: number
|
||||||
|
}
|
||||||
|
|
||||||
|
type ItemTaxProviderRow = {
|
||||||
|
provider_code: string | null
|
||||||
|
tax_id: string | null
|
||||||
|
}
|
||||||
|
|
||||||
|
@Injectable()
|
||||||
|
export class SalesInvoiceTaxService {
|
||||||
|
constructor(
|
||||||
|
private readonly prisma: PrismaService,
|
||||||
|
private readonly taxSwitchService: SalesInvoiceTaxSwitchService,
|
||||||
|
) {}
|
||||||
|
|
||||||
|
async send(consumer_id: string, invoice_id: string): Promise<void> {
|
||||||
|
const posId = await this.getPosId(consumer_id, invoice_id)
|
||||||
|
const payload = await this.buildPayload(invoice_id, posId)
|
||||||
|
|
||||||
|
const itemResults = await this.trySend(payload)
|
||||||
|
await this.persistAttemptResults(itemResults)
|
||||||
|
}
|
||||||
|
|
||||||
|
async sendBulk(consumer_id: string, invoice_ids: string[]): Promise<void> {
|
||||||
|
if (!invoice_ids.length) return
|
||||||
|
|
||||||
|
const payloads: TaxSwitchSendPayloadDto[] = []
|
||||||
|
for (const invoiceId of invoice_ids) {
|
||||||
|
const posId = await this.getPosId(consumer_id, invoiceId)
|
||||||
|
payloads.push(await this.buildPayload(invoiceId, posId))
|
||||||
|
}
|
||||||
|
|
||||||
|
const bulkResult = await this.taxSwitchService.sendBulk(payloads)
|
||||||
|
const allItemResults = bulkResult.flatMap(result => result.items)
|
||||||
|
await this.persistAttemptResults(allItemResults)
|
||||||
|
}
|
||||||
|
|
||||||
|
async get(invoiceItemId: string, posId: string): Promise<TaxSwitchGetResultDto> {
|
||||||
|
const rows = await this.prisma.$queryRaw<ItemTaxProviderRow[]>(Prisma.sql`
|
||||||
|
SELECT p.code AS provider_code, t.tax_id AS tax_id
|
||||||
|
FROM sales_invoice_item_taxes t
|
||||||
|
INNER JOIN sales_invoice_items si ON si.id = t.invoice_item_id
|
||||||
|
INNER JOIN sales_invoices s ON s.id = si.invoice_id
|
||||||
|
INNER JOIN poses pz ON pz.id = s.pos_id
|
||||||
|
LEFT JOIN providers p ON p.id = pz.provider_id
|
||||||
|
WHERE t.invoice_item_id = ${invoiceItemId} AND s.pos_id = ${posId}
|
||||||
|
LIMIT 1
|
||||||
|
`)
|
||||||
|
|
||||||
|
if (!rows.length || !rows[0].tax_id) {
|
||||||
|
throw new NotFoundException('Tax id for this invoice item was not found.')
|
||||||
|
}
|
||||||
|
|
||||||
|
return this.taxSwitchService.get(rows[0].provider_code, rows[0].tax_id)
|
||||||
|
}
|
||||||
|
|
||||||
|
private async getPosId(consumer_id: string, invoice_id: string): Promise<string> {
|
||||||
|
const now = new Date()
|
||||||
|
const saleInvoice = await this.prisma.salesInvoice.findUnique({
|
||||||
|
where: {
|
||||||
|
id: invoice_id,
|
||||||
|
pos: {
|
||||||
|
complex: {
|
||||||
|
business_activity: {
|
||||||
|
consumer_id,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
select: {
|
||||||
|
pos: {
|
||||||
|
select: {
|
||||||
|
id: true,
|
||||||
|
complex: {
|
||||||
|
select: {
|
||||||
|
business_activity: {
|
||||||
|
select: {
|
||||||
|
name: true,
|
||||||
|
license_activation: {
|
||||||
|
select: {
|
||||||
|
expires_at: true,
|
||||||
|
license_renews: {
|
||||||
|
select: {
|
||||||
|
expires_at: true,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
})
|
||||||
|
|
||||||
|
if (!saleInvoice) {
|
||||||
|
throw new NotFoundException('متاسفانه فاکتور مورد نظر یافت نشد.')
|
||||||
|
}
|
||||||
|
|
||||||
|
const { license_activation, name: businessName } =
|
||||||
|
saleInvoice.pos.complex.business_activity
|
||||||
|
let expired = !license_activation || false
|
||||||
|
if (license_activation) {
|
||||||
|
const { expires_at, license_renews } = license_activation
|
||||||
|
if (expires_at < now) {
|
||||||
|
for (const renew of license_renews) {
|
||||||
|
if (renew.expires_at > now) {
|
||||||
|
expired = false
|
||||||
|
break
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if (expired) {
|
||||||
|
throw new NotFoundException(`متاسفانه مجوز ${businessName} منقضی شده است.`)
|
||||||
|
}
|
||||||
|
|
||||||
|
return saleInvoice.pos.id
|
||||||
|
}
|
||||||
|
|
||||||
|
private async buildPayload(
|
||||||
|
invoiceId: string,
|
||||||
|
posId: string,
|
||||||
|
): Promise<TaxSwitchSendPayloadDto> {
|
||||||
|
const invoice = await this.prisma.salesInvoice.findFirst({
|
||||||
|
where: {
|
||||||
|
id: invoiceId,
|
||||||
|
pos_id: posId,
|
||||||
|
},
|
||||||
|
select: {
|
||||||
|
id: true,
|
||||||
|
code: true,
|
||||||
|
total_amount: true,
|
||||||
|
invoice_date: true,
|
||||||
|
items: {
|
||||||
|
select: {
|
||||||
|
id: true,
|
||||||
|
quantity: true,
|
||||||
|
unit_price: true,
|
||||||
|
total_amount: true,
|
||||||
|
unit_type: true,
|
||||||
|
good_id: true,
|
||||||
|
service_id: true,
|
||||||
|
payload: true,
|
||||||
|
good_snapshot: true,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
pos: {
|
||||||
|
select: {
|
||||||
|
provider: {
|
||||||
|
select: {
|
||||||
|
code: true,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
})
|
||||||
|
|
||||||
|
if (!invoice) {
|
||||||
|
throw new NotFoundException('Sales invoice was not found.')
|
||||||
|
}
|
||||||
|
|
||||||
|
return {
|
||||||
|
invoice_id: invoice.id,
|
||||||
|
invoice_code: invoice.code,
|
||||||
|
invoice_date: invoice.invoice_date ? invoice.invoice_date.toISOString() : null,
|
||||||
|
total_amount: Number(invoice.total_amount),
|
||||||
|
provider_code: invoice.pos.provider?.code || null,
|
||||||
|
items: invoice.items.map(item => ({
|
||||||
|
invoice_item_id: item.id,
|
||||||
|
quantity: Number(item.quantity),
|
||||||
|
unit_price: Number(item.unit_price),
|
||||||
|
total_amount: Number(item.total_amount),
|
||||||
|
unit_type: item.unit_type,
|
||||||
|
good_id: item.good_id,
|
||||||
|
service_id: item.service_id,
|
||||||
|
payload: item.payload,
|
||||||
|
good_snapshot: item.good_snapshot,
|
||||||
|
})),
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
private async trySend(
|
||||||
|
payload: TaxSwitchSendPayloadDto,
|
||||||
|
): Promise<TaxSwitchSendItemResultDto[]> {
|
||||||
|
try {
|
||||||
|
return await this.taxSwitchService.send(payload)
|
||||||
|
} catch (error: any) {
|
||||||
|
const message = error?.message || 'Unexpected tax switch error.'
|
||||||
|
const now = new Date()
|
||||||
|
return payload.items.map(item => ({
|
||||||
|
invoice_item_id: item.invoice_item_id,
|
||||||
|
status: TaxSendStatus.FAILED,
|
||||||
|
error_message: message,
|
||||||
|
sent_at: now.toISOString(),
|
||||||
|
received_at: now.toISOString(),
|
||||||
|
}))
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
private async persistAttemptResults(
|
||||||
|
itemResults: TaxSwitchSendItemResultDto[],
|
||||||
|
): Promise<void> {
|
||||||
|
if (!itemResults.length) return
|
||||||
|
|
||||||
|
await this.prisma.$transaction(async $tx => {
|
||||||
|
for (const itemResult of itemResults) {
|
||||||
|
await $tx.$executeRaw(Prisma.sql`
|
||||||
|
INSERT INTO sales_invoice_item_taxes (
|
||||||
|
id,
|
||||||
|
tax_id,
|
||||||
|
status,
|
||||||
|
retry_count,
|
||||||
|
last_attempt_at,
|
||||||
|
created_at,
|
||||||
|
updated_at,
|
||||||
|
invoice_item_id
|
||||||
|
) VALUES (
|
||||||
|
UUID(),
|
||||||
|
${itemResult.tax_id || null},
|
||||||
|
${itemResult.status},
|
||||||
|
0,
|
||||||
|
${itemResult.sent_at || new Date()},
|
||||||
|
NOW(),
|
||||||
|
NOW(),
|
||||||
|
${itemResult.invoice_item_id}
|
||||||
|
)
|
||||||
|
ON DUPLICATE KEY UPDATE
|
||||||
|
updated_at = NOW()
|
||||||
|
`)
|
||||||
|
|
||||||
|
const rows = await $tx.$queryRaw<TaxRow[]>(Prisma.sql`
|
||||||
|
SELECT id, retry_count
|
||||||
|
FROM sales_invoice_item_taxes
|
||||||
|
WHERE invoice_item_id = ${itemResult.invoice_item_id}
|
||||||
|
LIMIT 1
|
||||||
|
`)
|
||||||
|
|
||||||
|
if (!rows.length) continue
|
||||||
|
|
||||||
|
const itemTaxRow = rows[0]
|
||||||
|
const attemptNo = Number(itemTaxRow.retry_count || 0) + 1
|
||||||
|
|
||||||
|
await $tx.$executeRaw(Prisma.sql`
|
||||||
|
INSERT INTO sales_invoice_item_tax_attempts (
|
||||||
|
id,
|
||||||
|
attempt_no,
|
||||||
|
status,
|
||||||
|
tax_id,
|
||||||
|
request_payload,
|
||||||
|
response_payload,
|
||||||
|
error_message,
|
||||||
|
sent_at,
|
||||||
|
received_at,
|
||||||
|
created_at,
|
||||||
|
item_tax_id
|
||||||
|
) VALUES (
|
||||||
|
UUID(),
|
||||||
|
${attemptNo},
|
||||||
|
${itemResult.status},
|
||||||
|
${itemResult.tax_id || null},
|
||||||
|
${JSON.stringify(itemResult.request_payload ?? null)},
|
||||||
|
${JSON.stringify(itemResult.response_payload ?? null)},
|
||||||
|
${itemResult.error_message || null},
|
||||||
|
${itemResult.sent_at ? new Date(itemResult.sent_at) : new Date()},
|
||||||
|
${itemResult.received_at ? new Date(itemResult.received_at) : new Date()},
|
||||||
|
NOW(),
|
||||||
|
${itemTaxRow.id}
|
||||||
|
)
|
||||||
|
`)
|
||||||
|
|
||||||
|
await $tx.$executeRaw(Prisma.sql`
|
||||||
|
UPDATE sales_invoice_item_taxes
|
||||||
|
SET
|
||||||
|
tax_id = COALESCE(${itemResult.tax_id || null}, tax_id),
|
||||||
|
status = ${itemResult.status},
|
||||||
|
retry_count = ${attemptNo},
|
||||||
|
last_attempt_at = ${itemResult.sent_at ? new Date(itemResult.sent_at) : new Date()},
|
||||||
|
updated_at = NOW()
|
||||||
|
WHERE id = ${itemTaxRow.id}
|
||||||
|
`)
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,69 @@
|
|||||||
|
import { Injectable } from '@nestjs/common'
|
||||||
|
import {
|
||||||
|
ITaxSwitchAdapter,
|
||||||
|
TaxSendStatus,
|
||||||
|
TaxSwitchBulkSendResultDto,
|
||||||
|
TaxSwitchGetResultDto,
|
||||||
|
TaxSwitchSendItemResultDto,
|
||||||
|
TaxSwitchSendPayloadDto,
|
||||||
|
} from '../dto/tax-switch.dto'
|
||||||
|
|
||||||
|
@Injectable()
|
||||||
|
export class NamaTaxSwitchAdapter implements ITaxSwitchAdapter {
|
||||||
|
readonly code = 'NAMA'
|
||||||
|
|
||||||
|
async send(payload: TaxSwitchSendPayloadDto): Promise<TaxSwitchSendItemResultDto[]> {
|
||||||
|
return payload.items.map((item, index) => {
|
||||||
|
const sentAt = new Date()
|
||||||
|
const receivedAt = new Date(sentAt.getTime() + 50)
|
||||||
|
const externalRequest = {
|
||||||
|
invoiceCode: payload.invoice_code,
|
||||||
|
itemId: item.invoice_item_id,
|
||||||
|
quantity: item.quantity,
|
||||||
|
unitPrice: item.unit_price,
|
||||||
|
totalAmount: item.total_amount,
|
||||||
|
}
|
||||||
|
|
||||||
|
const externalResponse = {
|
||||||
|
status: 'ACCEPTED',
|
||||||
|
trackingCode: `TAX-${payload.invoice_code}-${index + 1}`,
|
||||||
|
}
|
||||||
|
|
||||||
|
return {
|
||||||
|
invoice_item_id: item.invoice_item_id,
|
||||||
|
status: TaxSendStatus.SENT,
|
||||||
|
tax_id: externalResponse.trackingCode,
|
||||||
|
request_payload: externalRequest,
|
||||||
|
response_payload: externalResponse,
|
||||||
|
sent_at: sentAt.toISOString(),
|
||||||
|
received_at: receivedAt.toISOString(),
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
async sendBulk(
|
||||||
|
payloads: TaxSwitchSendPayloadDto[],
|
||||||
|
): Promise<TaxSwitchBulkSendResultDto[]> {
|
||||||
|
const result: TaxSwitchBulkSendResultDto[] = []
|
||||||
|
for (const payload of payloads) {
|
||||||
|
const itemResults = await this.send(payload)
|
||||||
|
result.push({
|
||||||
|
invoice_id: payload.invoice_id,
|
||||||
|
items: itemResults,
|
||||||
|
})
|
||||||
|
}
|
||||||
|
return result
|
||||||
|
}
|
||||||
|
|
||||||
|
async get(taxId: string): Promise<TaxSwitchGetResultDto> {
|
||||||
|
return {
|
||||||
|
tax_id: taxId,
|
||||||
|
status: TaxSendStatus.SENT,
|
||||||
|
response_payload: {
|
||||||
|
status: 'CONFIRMED',
|
||||||
|
trackingCode: taxId,
|
||||||
|
},
|
||||||
|
received_at: new Date().toISOString(),
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -1,3 +1,4 @@
|
|||||||
|
import { QUERY_CONSTANTS } from '@/common/queryConstants'
|
||||||
import { BadRequestException } from '@nestjs/common'
|
import { BadRequestException } from '@nestjs/common'
|
||||||
|
|
||||||
type BusinessActivityAccountQuotaClient = {
|
type BusinessActivityAccountQuotaClient = {
|
||||||
@@ -27,31 +28,13 @@ export const getBusinessActivityRemainingAccounts = async (
|
|||||||
): Promise<BusinessActivityRemainingAccounts> => {
|
): Promise<BusinessActivityRemainingAccounts> => {
|
||||||
const { consumer_id, business_activity_id, referenceDate = new Date() } = params
|
const { consumer_id, business_activity_id, referenceDate = new Date() } = params
|
||||||
|
|
||||||
const startOfDay = new Date(referenceDate)
|
|
||||||
startOfDay.setHours(0, 0, 0, 0)
|
|
||||||
|
|
||||||
const relatedLicense = await prisma.licenseActivation.findFirst({
|
const relatedLicense = await prisma.licenseActivation.findFirst({
|
||||||
where: {
|
where: {
|
||||||
business_activity_id,
|
business_activity_id,
|
||||||
business_activity: {
|
business_activity: {
|
||||||
consumer_id,
|
consumer_id,
|
||||||
},
|
},
|
||||||
OR: [
|
...QUERY_CONSTANTS.LICENSE_ACTIVATION.activeOnDate(),
|
||||||
{
|
|
||||||
expires_at: {
|
|
||||||
gte: startOfDay,
|
|
||||||
},
|
|
||||||
},
|
|
||||||
{
|
|
||||||
license_renews: {
|
|
||||||
some: {
|
|
||||||
expires_at: {
|
|
||||||
gte: startOfDay,
|
|
||||||
},
|
|
||||||
},
|
|
||||||
},
|
|
||||||
},
|
|
||||||
],
|
|
||||||
},
|
},
|
||||||
select: {
|
select: {
|
||||||
license: {
|
license: {
|
||||||
|
|||||||
+2
-16
@@ -1,3 +1,4 @@
|
|||||||
|
import { QUERY_CONSTANTS } from '@/common/queryConstants'
|
||||||
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'
|
||||||
@@ -40,22 +41,7 @@ export class PartnerBusinessActivityAccountsChargeService {
|
|||||||
],
|
],
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
OR: [
|
...QUERY_CONSTANTS.LICENSE_ACTIVATION.activeOnDate(),
|
||||||
{
|
|
||||||
expires_at: {
|
|
||||||
gte: startOfDay,
|
|
||||||
},
|
|
||||||
},
|
|
||||||
{
|
|
||||||
license_renews: {
|
|
||||||
some: {
|
|
||||||
expires_at: {
|
|
||||||
gte: startOfDay,
|
|
||||||
},
|
|
||||||
},
|
|
||||||
},
|
|
||||||
},
|
|
||||||
],
|
|
||||||
},
|
},
|
||||||
select: {
|
select: {
|
||||||
id: true,
|
id: true,
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
import { QUERY_CONSTANTS } from '@/common/queryConstants'
|
||||||
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 { BadRequestException, Injectable } from '@nestjs/common'
|
import { BadRequestException, Injectable } from '@nestjs/common'
|
||||||
@@ -44,9 +45,24 @@ export class BusinessActivityComplexesService {
|
|||||||
async findAll(partner_id: string, consumer_id: string, business_activity_id: string) {
|
async findAll(partner_id: string, consumer_id: string, business_activity_id: string) {
|
||||||
const complexes = await this.prisma.complex.findMany({
|
const complexes = await this.prisma.complex.findMany({
|
||||||
where: this.defaultWhere(partner_id, consumer_id, business_activity_id),
|
where: this.defaultWhere(partner_id, consumer_id, business_activity_id),
|
||||||
select: this.defaultSelect,
|
select: {
|
||||||
|
...this.defaultSelect,
|
||||||
|
_count: {
|
||||||
|
select: {
|
||||||
|
pos_list: true,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
})
|
})
|
||||||
return ResponseMapper.list(complexes)
|
|
||||||
|
const mappedComplexes = complexes.map(complex => {
|
||||||
|
const { _count, ...rest } = complex
|
||||||
|
return {
|
||||||
|
...rest,
|
||||||
|
pos_count: _count.pos_list,
|
||||||
|
}
|
||||||
|
})
|
||||||
|
return ResponseMapper.list(mappedComplexes)
|
||||||
}
|
}
|
||||||
|
|
||||||
async findOne(
|
async findOne(
|
||||||
@@ -67,8 +83,6 @@ 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 = this.prisma.$transaction(async tx => {
|
const complex = this.prisma.$transaction(async tx => {
|
||||||
const now = new Date()
|
|
||||||
|
|
||||||
const relatedLicense = await tx.licenseAccountAllocation.findFirst({
|
const relatedLicense = await tx.licenseAccountAllocation.findFirst({
|
||||||
where: {
|
where: {
|
||||||
license_activation: {
|
license_activation: {
|
||||||
@@ -80,22 +94,7 @@ export class BusinessActivityComplexesService {
|
|||||||
business_activity: {
|
business_activity: {
|
||||||
id: business_id,
|
id: business_id,
|
||||||
},
|
},
|
||||||
OR: [
|
...QUERY_CONSTANTS.LICENSE_ACTIVATION.activeOnDate(),
|
||||||
{
|
|
||||||
expires_at: {
|
|
||||||
gte: now,
|
|
||||||
},
|
|
||||||
},
|
|
||||||
{
|
|
||||||
license_renews: {
|
|
||||||
some: {
|
|
||||||
expires_at: {
|
|
||||||
gte: now,
|
|
||||||
},
|
|
||||||
},
|
|
||||||
},
|
|
||||||
},
|
|
||||||
],
|
|
||||||
},
|
},
|
||||||
account_id: null,
|
account_id: null,
|
||||||
},
|
},
|
||||||
|
|||||||
+7
-20
@@ -1,3 +1,5 @@
|
|||||||
|
import { QUERY_CONSTANTS } from '@/common/queryConstants'
|
||||||
|
import { consumerRelatedPartner } from '@/common/queryConstants/consumer'
|
||||||
import { PasswordUtil } from '@/common/utils/password.util'
|
import { PasswordUtil } from '@/common/utils/password.util'
|
||||||
import {
|
import {
|
||||||
AccountStatus,
|
AccountStatus,
|
||||||
@@ -77,7 +79,7 @@ export class ComplexPosesService {
|
|||||||
business_activity: {
|
business_activity: {
|
||||||
id: business_activity_id,
|
id: business_activity_id,
|
||||||
consumer: {
|
consumer: {
|
||||||
partner_id,
|
...consumerRelatedPartner(partner_id),
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
@@ -97,7 +99,9 @@ export class ComplexPosesService {
|
|||||||
|
|
||||||
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),
|
||||||
|
},
|
||||||
select: this.defaultSelect,
|
select: this.defaultSelect,
|
||||||
})
|
})
|
||||||
|
|
||||||
@@ -126,29 +130,12 @@ export class ComplexPosesService {
|
|||||||
data: CreatePosDto,
|
data: CreatePosDto,
|
||||||
) {
|
) {
|
||||||
const pos = this.prisma.$transaction(async tx => {
|
const pos = this.prisma.$transaction(async tx => {
|
||||||
const now = new Date()
|
|
||||||
|
|
||||||
const activeAccountAllocation = await tx.licenseAccountAllocation.findFirst({
|
const activeAccountAllocation = await tx.licenseAccountAllocation.findFirst({
|
||||||
where: {
|
where: {
|
||||||
account_id: null,
|
account_id: null,
|
||||||
license_activation: {
|
license_activation: {
|
||||||
business_activity_id,
|
business_activity_id,
|
||||||
OR: [
|
...QUERY_CONSTANTS.LICENSE_ACTIVATION.activeOnDate(),
|
||||||
{
|
|
||||||
expires_at: {
|
|
||||||
gte: now,
|
|
||||||
},
|
|
||||||
},
|
|
||||||
{
|
|
||||||
license_renews: {
|
|
||||||
some: {
|
|
||||||
expires_at: {
|
|
||||||
gte: now,
|
|
||||||
},
|
|
||||||
},
|
|
||||||
},
|
|
||||||
},
|
|
||||||
],
|
|
||||||
license: {
|
license: {
|
||||||
charge_transaction: {
|
charge_transaction: {
|
||||||
partner_id,
|
partner_id,
|
||||||
|
|||||||
+8
@@ -10,6 +10,14 @@ export class CreateBusinessActivitiesDto {
|
|||||||
@ApiProperty({ required: true })
|
@ApiProperty({ required: true })
|
||||||
economic_code: string
|
economic_code: string
|
||||||
|
|
||||||
|
@IsString()
|
||||||
|
@ApiProperty({ required: true })
|
||||||
|
fiscal_id: string
|
||||||
|
|
||||||
|
@IsString()
|
||||||
|
@ApiProperty({ required: true })
|
||||||
|
partner_token: string
|
||||||
|
|
||||||
@IsString()
|
@IsString()
|
||||||
@ApiProperty({ required: true })
|
@ApiProperty({ required: true })
|
||||||
guild_id: string
|
guild_id: string
|
||||||
|
|||||||
@@ -31,9 +31,10 @@ export class PartnerConsumersService {
|
|||||||
|
|
||||||
defaultSelect: ConsumerSelect = {
|
defaultSelect: ConsumerSelect = {
|
||||||
id: true,
|
id: true,
|
||||||
...QUERY_CONSTANTS.CONSUMER.infoSelect,
|
|
||||||
status: true,
|
status: true,
|
||||||
created_at: true,
|
created_at: true,
|
||||||
|
...QUERY_CONSTANTS.CONSUMER.infoSelect,
|
||||||
|
...QUERY_CONSTANTS.CONSUMER.activeBusinessCount,
|
||||||
}
|
}
|
||||||
|
|
||||||
private defaultWhere = (partner_id: string): ConsumerWhereInput => ({
|
private defaultWhere = (partner_id: string): ConsumerWhereInput => ({
|
||||||
@@ -119,8 +120,7 @@ export class PartnerConsumersService {
|
|||||||
throw new BadRequestException(`تعداد لایسنسهای فعلی شما به پایان رسیده است.`)
|
throw new BadRequestException(`تعداد لایسنسهای فعلی شما به پایان رسیده است.`)
|
||||||
}
|
}
|
||||||
|
|
||||||
const { username, password, customer, ...rest } = data
|
const { username, password, individual, legal, ...rest } = data
|
||||||
const { individual, legal } = customer
|
|
||||||
|
|
||||||
const createConsumerData: ConsumerCreateInput = {
|
const createConsumerData: ConsumerCreateInput = {
|
||||||
...rest,
|
...rest,
|
||||||
@@ -228,7 +228,15 @@ export class PartnerConsumersService {
|
|||||||
...(this.defaultWhere(partner_id) as any),
|
...(this.defaultWhere(partner_id) as any),
|
||||||
id,
|
id,
|
||||||
},
|
},
|
||||||
data,
|
data: {
|
||||||
|
status: data.status,
|
||||||
|
legal: {
|
||||||
|
update: data.legal,
|
||||||
|
},
|
||||||
|
individual: {
|
||||||
|
update: data.individual,
|
||||||
|
},
|
||||||
|
},
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -16,13 +16,14 @@ export class CreateConsumerDto {
|
|||||||
@ApiProperty({ required: true })
|
@ApiProperty({ required: true })
|
||||||
password: string
|
password: string
|
||||||
|
|
||||||
@ApiProperty({ required: true })
|
@ApiProperty({ required: false })
|
||||||
@IsObject()
|
@IsObject()
|
||||||
customer: {
|
|
||||||
individual?: Omit<ConsumerIndividual, 'partner_id' | 'consumer_id'>
|
individual?: Omit<ConsumerIndividual, 'partner_id' | 'consumer_id'>
|
||||||
|
|
||||||
|
@ApiProperty({ required: false })
|
||||||
|
@IsObject()
|
||||||
legal?: Omit<ConsumerLegal, 'partner_id' | 'consumer_id'>
|
legal?: Omit<ConsumerLegal, 'partner_id' | 'consumer_id'>
|
||||||
}
|
}
|
||||||
}
|
|
||||||
export class UpdateConsumerDto extends OmitType(PartialType(CreateConsumerDto), [
|
export class UpdateConsumerDto extends OmitType(PartialType(CreateConsumerDto), [
|
||||||
'password',
|
'password',
|
||||||
'username',
|
'username',
|
||||||
|
|||||||
@@ -26,8 +26,6 @@ export interface PartnerLicenseActivationChargeTransactionResponseDto {
|
|||||||
|
|
||||||
export interface PartnerLicenseActivationLicenseResponseDto {
|
export interface PartnerLicenseActivationLicenseResponseDto {
|
||||||
id: string
|
id: string
|
||||||
accounts_limit: number
|
|
||||||
charge_transaction: PartnerLicenseActivationChargeTransactionResponseDto
|
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface PartnerLicenseActivationCountResponseDto {
|
export interface PartnerLicenseActivationCountResponseDto {
|
||||||
@@ -42,7 +40,7 @@ export interface PartnerLicenseActivationResponseDto {
|
|||||||
updated_at: Date
|
updated_at: Date
|
||||||
business_activity: PartnerLicenseActivationBusinessActivityResponseDto
|
business_activity: PartnerLicenseActivationBusinessActivityResponseDto
|
||||||
license: PartnerLicenseActivationLicenseResponseDto
|
license: PartnerLicenseActivationLicenseResponseDto
|
||||||
_count: PartnerLicenseActivationCountResponseDto
|
account_allocation_count: Number
|
||||||
}
|
}
|
||||||
|
|
||||||
export type PartnerLicensesServiceFindAllResponseDto = Awaited<
|
export type PartnerLicensesServiceFindAllResponseDto = Awaited<
|
||||||
|
|||||||
@@ -1,6 +1,5 @@
|
|||||||
import {
|
import {
|
||||||
PartnerLicenseActivationBusinessActivityResponseDto,
|
PartnerLicenseActivationBusinessActivityResponseDto,
|
||||||
PartnerLicenseActivationChargeTransactionResponseDto,
|
|
||||||
PartnerLicenseActivationConsumerResponseDto,
|
PartnerLicenseActivationConsumerResponseDto,
|
||||||
PartnerLicenseActivationCountResponseDto,
|
PartnerLicenseActivationCountResponseDto,
|
||||||
PartnerLicenseActivationLicenseResponseDto,
|
PartnerLicenseActivationLicenseResponseDto,
|
||||||
@@ -35,8 +34,6 @@ type PartnerLicenseActivationChargeTransactionQueryResult = {
|
|||||||
|
|
||||||
type PartnerLicenseActivationLicenseQueryResult = {
|
type PartnerLicenseActivationLicenseQueryResult = {
|
||||||
id: string
|
id: string
|
||||||
accounts_limit: number
|
|
||||||
charge_transaction: PartnerLicenseActivationChargeTransactionQueryResult
|
|
||||||
}
|
}
|
||||||
|
|
||||||
type PartnerLicenseActivationQueryResult = {
|
type PartnerLicenseActivationQueryResult = {
|
||||||
@@ -62,7 +59,9 @@ export const mapPartnerLicenseActivationConsumer = (
|
|||||||
first_name: individual?.first_name ?? null,
|
first_name: individual?.first_name ?? null,
|
||||||
last_name: individual?.last_name ?? null,
|
last_name: individual?.last_name ?? null,
|
||||||
mobile_number: individual?.mobile_number ?? null,
|
mobile_number: individual?.mobile_number ?? null,
|
||||||
name: legal?.name ?? null,
|
name: individual
|
||||||
|
? `${individual?.first_name} ${individual?.last_name}`
|
||||||
|
: (legal?.name ?? null),
|
||||||
registration_code: legal?.registration_code ?? null,
|
registration_code: legal?.registration_code ?? null,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -78,17 +77,8 @@ export const mapPartnerLicenseActivation = (
|
|||||||
),
|
),
|
||||||
}
|
}
|
||||||
|
|
||||||
const chargeTransaction: PartnerLicenseActivationChargeTransactionResponseDto = {
|
|
||||||
id: licenseActivation.license.charge_transaction.id,
|
|
||||||
tracking_code: licenseActivation.license.charge_transaction.tracking_code,
|
|
||||||
activation_expires_at:
|
|
||||||
licenseActivation.license.charge_transaction.activation_expires_at,
|
|
||||||
}
|
|
||||||
|
|
||||||
const license: PartnerLicenseActivationLicenseResponseDto = {
|
const license: PartnerLicenseActivationLicenseResponseDto = {
|
||||||
id: licenseActivation.license.id,
|
id: licenseActivation.license.id,
|
||||||
accounts_limit: licenseActivation.license.accounts_limit,
|
|
||||||
charge_transaction: chargeTransaction,
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return {
|
return {
|
||||||
@@ -99,6 +89,6 @@ export const mapPartnerLicenseActivation = (
|
|||||||
updated_at: licenseActivation.updated_at,
|
updated_at: licenseActivation.updated_at,
|
||||||
business_activity: businessActivity,
|
business_activity: businessActivity,
|
||||||
license,
|
license,
|
||||||
_count: licenseActivation._count,
|
account_allocation_count: licenseActivation._count.account_allocations,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -11,10 +11,7 @@ export class PartnerLicensesService {
|
|||||||
|
|
||||||
constructor(private readonly prisma: PrismaService) {}
|
constructor(private readonly prisma: PrismaService) {}
|
||||||
|
|
||||||
async findAll(
|
async findAll(partner_id: string, params: PartnerLicensesFilterDto = {}) {
|
||||||
partner_id: string,
|
|
||||||
params: PartnerLicensesFilterDto = {},
|
|
||||||
) {
|
|
||||||
const { perPage, page, consumer_name, consumer_mobile, expires_from, expires_to } =
|
const { perPage, page, consumer_name, consumer_mobile, expires_from, expires_to } =
|
||||||
params
|
params
|
||||||
|
|
||||||
@@ -137,14 +134,6 @@ export class PartnerLicensesService {
|
|||||||
license: {
|
license: {
|
||||||
select: {
|
select: {
|
||||||
id: true,
|
id: true,
|
||||||
accounts_limit: true,
|
|
||||||
charge_transaction: {
|
|
||||||
select: {
|
|
||||||
id: true,
|
|
||||||
tracking_code: true,
|
|
||||||
activation_expires_at: true,
|
|
||||||
},
|
|
||||||
},
|
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
_count: {
|
_count: {
|
||||||
|
|||||||
@@ -1,3 +1,5 @@
|
|||||||
|
import { QUERY_CONSTANTS } from '@/common/queryConstants'
|
||||||
|
import { consumerRelatedPartner } from '@/common/queryConstants/consumer'
|
||||||
import { BadRequestException } from '@nestjs/common'
|
import { BadRequestException } from '@nestjs/common'
|
||||||
|
|
||||||
type PartnerBusinessActivityAllocationClient = {
|
type PartnerBusinessActivityAllocationClient = {
|
||||||
@@ -36,26 +38,9 @@ const getPartnerBusinessActivityActiveActivation = async (
|
|||||||
where: {
|
where: {
|
||||||
business_activity_id,
|
business_activity_id,
|
||||||
business_activity: {
|
business_activity: {
|
||||||
consumer: {
|
...consumerRelatedPartner(partner_id),
|
||||||
partner_id,
|
|
||||||
},
|
},
|
||||||
},
|
...QUERY_CONSTANTS.LICENSE_ACTIVATION.activeOnDate(startOfDay),
|
||||||
OR: [
|
|
||||||
{
|
|
||||||
expires_at: {
|
|
||||||
gte: startOfDay,
|
|
||||||
},
|
|
||||||
},
|
|
||||||
{
|
|
||||||
license_renews: {
|
|
||||||
some: {
|
|
||||||
expires_at: {
|
|
||||||
gte: startOfDay,
|
|
||||||
},
|
|
||||||
},
|
|
||||||
},
|
|
||||||
},
|
|
||||||
],
|
|
||||||
},
|
},
|
||||||
select: includeAccountAllocations
|
select: includeAccountAllocations
|
||||||
? {
|
? {
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
import { ApiProperty, PartialType } from '@nestjs/swagger'
|
import { ApiProperty, PartialType } from '@nestjs/swagger'
|
||||||
import {
|
import {
|
||||||
ArrayMinSize,
|
ArrayMinSize,
|
||||||
|
IsBoolean,
|
||||||
IsDateString,
|
IsDateString,
|
||||||
IsEnum,
|
IsEnum,
|
||||||
IsNumber,
|
IsNumber,
|
||||||
@@ -42,6 +43,11 @@ export class CreateSalesInvoiceDto {
|
|||||||
@IsString()
|
@IsString()
|
||||||
notes?: string
|
notes?: string
|
||||||
|
|
||||||
|
@ApiProperty({ required: false, default: false })
|
||||||
|
@IsOptional()
|
||||||
|
@IsBoolean()
|
||||||
|
send_to_tax?: boolean
|
||||||
|
|
||||||
@ApiProperty({ required: true, default: CustomerType.UNKNOWN })
|
@ApiProperty({ required: true, default: CustomerType.UNKNOWN })
|
||||||
@IsEnum(CustomerType)
|
@IsEnum(CustomerType)
|
||||||
customer_type: CustomerType
|
customer_type: CustomerType
|
||||||
|
|||||||
@@ -0,0 +1,10 @@
|
|||||||
|
import { ApiProperty } from '@nestjs/swagger'
|
||||||
|
import { ArrayMinSize, IsArray, IsString } from 'class-validator'
|
||||||
|
|
||||||
|
export class SendBulkSalesInvoicesDto {
|
||||||
|
@ApiProperty({ type: [String], minItems: 1 })
|
||||||
|
@IsArray()
|
||||||
|
@ArrayMinSize(1)
|
||||||
|
@IsString({ each: true })
|
||||||
|
invoice_ids: string[]
|
||||||
|
}
|
||||||
@@ -1,9 +1,9 @@
|
|||||||
import { Body, Controller, Get, Param, Post } from '@nestjs/common'
|
import { Body, Controller, Get, Param, Post } from '@nestjs/common'
|
||||||
|
|
||||||
import { PosInfo } from '@/common/decorators/posInfo.decorator'
|
import { PosInfo } from '@/common/decorators/posInfo.decorator'
|
||||||
|
import type { IPosPayload } from '@/common/models/posPayload.model'
|
||||||
import { CreateSalesInvoiceDto } from './dto/create-sales-invoice.dto'
|
import { CreateSalesInvoiceDto } from './dto/create-sales-invoice.dto'
|
||||||
import { SalesInvoicesService } from './sales-invoices.service'
|
import { SalesInvoicesService } from './sales-invoices.service'
|
||||||
import type { IPosPayload } from '@/common/models/posPayload.model'
|
|
||||||
|
|
||||||
@Controller('pos/sales_invoices')
|
@Controller('pos/sales_invoices')
|
||||||
export class SalesInvoicesController {
|
export class SalesInvoicesController {
|
||||||
@@ -23,4 +23,14 @@ export class SalesInvoicesController {
|
|||||||
create(@Body() data: CreateSalesInvoiceDto, @PosInfo() posInfo: IPosPayload) {
|
create(@Body() data: CreateSalesInvoiceDto, @PosInfo() posInfo: IPosPayload) {
|
||||||
return this.salesInvoicesService.create(data, posInfo)
|
return this.salesInvoicesService.create(data, posInfo)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// @Post(':id/send')
|
||||||
|
// send(@Param('id') id: string, @PosInfo() posInfo: IPosPayload) {
|
||||||
|
// return this.salesInvoicesService.send(id, posInfo)
|
||||||
|
// }
|
||||||
|
|
||||||
|
// @Post('send/bulk')
|
||||||
|
// sendBulk(@Body() data: SendBulkSalesInvoicesDto, @PosInfo() posInfo: IPosPayload) {
|
||||||
|
// return this.salesInvoicesService.sendBulk(data.invoice_ids, posInfo)
|
||||||
|
// }
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,9 +1,17 @@
|
|||||||
import { Module } from '@nestjs/common'
|
import { Module } from '@nestjs/common'
|
||||||
|
import { SalesInvoiceTaxSwitchService } from '../../consumer/saleInvoices/tax/sales-invoice-tax-switch.service'
|
||||||
|
import { SalesInvoiceTaxService } from '../../consumer/saleInvoices/tax/sales-invoice-tax.service'
|
||||||
|
import { NamaTaxSwitchAdapter } from '../../consumer/saleInvoices/tax/switch/nama-tax-switch.adapter'
|
||||||
import { SalesInvoicesController } from './sales-invoices.controller'
|
import { SalesInvoicesController } from './sales-invoices.controller'
|
||||||
import { SalesInvoicesService } from './sales-invoices.service'
|
import { SalesInvoicesService } from './sales-invoices.service'
|
||||||
|
|
||||||
@Module({
|
@Module({
|
||||||
controllers: [SalesInvoicesController],
|
controllers: [SalesInvoicesController],
|
||||||
providers: [SalesInvoicesService],
|
providers: [
|
||||||
|
SalesInvoicesService,
|
||||||
|
SalesInvoiceTaxService,
|
||||||
|
SalesInvoiceTaxSwitchService,
|
||||||
|
NamaTaxSwitchAdapter,
|
||||||
|
],
|
||||||
})
|
})
|
||||||
export class PosSalesInvoicesModule {}
|
export class PosSalesInvoicesModule {}
|
||||||
|
|||||||
@@ -1,10 +1,10 @@
|
|||||||
import { IPosPayload } from '@/common/models/posPayload.model'
|
import { IPosPayload } from '@/common/models/posPayload.model'
|
||||||
import { SalesInvoiceCreateInput } 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 type { CustomerIndividual, CustomerLegal } from 'generated/prisma/client'
|
import type { CustomerIndividual, CustomerLegal } from 'generated/prisma/client'
|
||||||
import { CustomerType, PaymentMethodType } from 'generated/prisma/enums'
|
import { CustomerType, PaymentMethodType } from 'generated/prisma/enums'
|
||||||
|
import { SalesInvoiceTaxService } from '../../consumer/saleInvoices/tax/sales-invoice-tax.service'
|
||||||
import { CreateSalesInvoiceDto } from './dto/create-sales-invoice.dto'
|
import { CreateSalesInvoiceDto } from './dto/create-sales-invoice.dto'
|
||||||
|
|
||||||
// Define type guard for CustomerIndividual
|
// Define type guard for CustomerIndividual
|
||||||
@@ -27,7 +27,10 @@ function isCustomerLegal(customer: any): customer is CustomerLegal {
|
|||||||
|
|
||||||
@Injectable()
|
@Injectable()
|
||||||
export class SalesInvoicesService {
|
export class SalesInvoicesService {
|
||||||
constructor(private prisma: PrismaService) {}
|
constructor(
|
||||||
|
private prisma: PrismaService,
|
||||||
|
private salesInvoiceTaxService: SalesInvoiceTaxService,
|
||||||
|
) {}
|
||||||
|
|
||||||
findAll() {
|
findAll() {
|
||||||
// TODO: Implement fetching all sales invoices
|
// TODO: Implement fetching all sales invoices
|
||||||
@@ -39,6 +42,28 @@ export class SalesInvoicesService {
|
|||||||
return {}
|
return {}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// async send(invoiceId: string, posInfo: IPosPayload) {
|
||||||
|
// await this.salesInvoiceTaxService.send(invoiceId, posInfo.pos_id)
|
||||||
|
|
||||||
|
// return ResponseMapper.single({
|
||||||
|
// invoice_id: invoiceId,
|
||||||
|
// sent_to_tax: true,
|
||||||
|
// })
|
||||||
|
// }
|
||||||
|
|
||||||
|
// async sendBulk(invoiceIds: string[], posInfo: IPosPayload) {
|
||||||
|
// if (!invoiceIds.length) {
|
||||||
|
// throw new BadRequestException('invoice_ids is required and cannot be empty.')
|
||||||
|
// }
|
||||||
|
|
||||||
|
// await this.salesInvoiceTaxService.sendBulk(invoiceIds, posInfo.pos_id)
|
||||||
|
|
||||||
|
// return ResponseMapper.single({
|
||||||
|
// invoice_ids: invoiceIds,
|
||||||
|
// sent_to_tax: true,
|
||||||
|
// })
|
||||||
|
// }
|
||||||
|
|
||||||
async create(data: CreateSalesInvoiceDto, posInfo: IPosPayload) {
|
async create(data: CreateSalesInvoiceDto, posInfo: IPosPayload) {
|
||||||
data.invoice_date = new Date(data.invoice_date).toISOString() as any
|
data.invoice_date = new Date(data.invoice_date).toISOString() as any
|
||||||
|
|
||||||
@@ -135,7 +160,40 @@ export class SalesInvoicesService {
|
|||||||
} else if (data.customer_type === CustomerType.UNKNOWN) {
|
} else if (data.customer_type === CustomerType.UNKNOWN) {
|
||||||
}
|
}
|
||||||
|
|
||||||
const salesInvoiceData: SalesInvoiceCreateInput = {
|
const itemGoodIds = data.items
|
||||||
|
.map(item => item.good_id)
|
||||||
|
.filter((goodId): goodId is string => Boolean(goodId))
|
||||||
|
|
||||||
|
const goods = itemGoodIds.length
|
||||||
|
? await $tx.good.findMany({
|
||||||
|
where: {
|
||||||
|
id: {
|
||||||
|
in: itemGoodIds,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
select: {
|
||||||
|
id: true,
|
||||||
|
name: true,
|
||||||
|
sku: true,
|
||||||
|
local_sku: true,
|
||||||
|
barcode: true,
|
||||||
|
pricing_model: true,
|
||||||
|
unit_type: true,
|
||||||
|
base_sale_price: true,
|
||||||
|
image_url: true,
|
||||||
|
category: {
|
||||||
|
select: {
|
||||||
|
id: true,
|
||||||
|
name: true,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
})
|
||||||
|
: []
|
||||||
|
|
||||||
|
const goodsById = new Map(goods.map(good => [good.id, good]))
|
||||||
|
|
||||||
|
const salesInvoiceData: any = {
|
||||||
...invoiceData,
|
...invoiceData,
|
||||||
total_amount: data.total_amount,
|
total_amount: data.total_amount,
|
||||||
code: 'INV-' + Date.now(),
|
code: 'INV-' + Date.now(),
|
||||||
@@ -150,6 +208,13 @@ export class SalesInvoicesService {
|
|||||||
payload: item.payload
|
payload: item.payload
|
||||||
? JSON.parse(JSON.stringify(item.payload))
|
? JSON.parse(JSON.stringify(item.payload))
|
||||||
: undefined,
|
: undefined,
|
||||||
|
good_snapshot: item.good_id
|
||||||
|
? JSON.parse(
|
||||||
|
JSON.stringify({
|
||||||
|
good: goodsById.get(item.good_id) || null,
|
||||||
|
}),
|
||||||
|
)
|
||||||
|
: undefined,
|
||||||
unit_type: item.unit_type,
|
unit_type: item.unit_type,
|
||||||
// pricing_model: item.pricingModel,
|
// pricing_model: item.pricingModel,
|
||||||
})),
|
})),
|
||||||
@@ -192,6 +257,10 @@ export class SalesInvoicesService {
|
|||||||
|
|
||||||
return salesInvoice
|
return salesInvoice
|
||||||
})
|
})
|
||||||
|
if (data.send_to_tax) {
|
||||||
|
await this.salesInvoiceTaxService.send(salesInvoice.id, pos_id)
|
||||||
|
}
|
||||||
|
|
||||||
return ResponseMapper.create(salesInvoice)
|
return ResponseMapper.create(salesInvoice)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user