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:
@@ -3,6 +3,7 @@ import { ITokenPayload } from '@/modules/auth/auth.utils'
|
||||
import { PrismaService } from '@/prisma/prisma.service'
|
||||
import { ExecutionContext, ForbiddenException, Injectable } from '@nestjs/common'
|
||||
import { Request as ExpressRequest } from 'express'
|
||||
import { QUERY_CONSTANTS } from '../queryConstants'
|
||||
|
||||
@Injectable()
|
||||
export class PosGuard {
|
||||
@@ -18,7 +19,6 @@ export class PosGuard {
|
||||
throw new ForbiddenException('شما دسترسی لازم را ندارید.')
|
||||
}
|
||||
|
||||
const now = new Date()
|
||||
const cookie = req.cookies
|
||||
const { posId } = cookie
|
||||
|
||||
@@ -40,22 +40,7 @@ export class PosGuard {
|
||||
},
|
||||
],
|
||||
license_activation: {
|
||||
OR: [
|
||||
{
|
||||
expires_at: {
|
||||
gte: now,
|
||||
},
|
||||
},
|
||||
{
|
||||
license_renews: {
|
||||
some: {
|
||||
expires_at: {
|
||||
gte: now,
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
],
|
||||
...QUERY_CONSTANTS.LICENSE_ACTIVATION.activeOnDate(),
|
||||
},
|
||||
},
|
||||
})
|
||||
|
||||
@@ -85,7 +85,6 @@ export class ResponseMappingInterceptor implements NestInterceptor {
|
||||
break
|
||||
case 'paginate': {
|
||||
const { items: a, ...rest } = wrapped
|
||||
console.log(rest)
|
||||
|
||||
const items = Array.isArray(wrapped.items) ? wrapped.items : []
|
||||
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 = {
|
||||
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 LICENSE_ACTIVATION from './licenseActivation'
|
||||
import * as POS from './pos'
|
||||
|
||||
export const QUERY_CONSTANTS = {
|
||||
POS,
|
||||
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) => {
|
||||
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
|
||||
delete legal?.partner
|
||||
delete individual?.partner
|
||||
@@ -13,6 +14,7 @@ export default (consumer: any) => {
|
||||
? { ...individual, fullname: `${rest?.first_name} ${rest?.last_name}` }
|
||||
: null,
|
||||
name: legal ? legal.name : `${individual?.first_name} ${individual?.last_name}`,
|
||||
business_counts,
|
||||
// license_info: prepareLicenseInfo(activation),
|
||||
}
|
||||
}
|
||||
|
||||
@@ -32,41 +32,6 @@ export type Admin = Prisma.AdminModel
|
||||
*
|
||||
*/
|
||||
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
|
||||
*
|
||||
@@ -167,6 +132,41 @@ export type ConsumerDevices = Prisma.ConsumerDevicesModel
|
||||
*
|
||||
*/
|
||||
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
|
||||
*
|
||||
@@ -212,6 +212,16 @@ export type SalesInvoice = Prisma.SalesInvoiceModel
|
||||
*
|
||||
*/
|
||||
export type SalesInvoiceItem = Prisma.SalesInvoiceItemModel
|
||||
/**
|
||||
* Model SaleInvoiceFiscals
|
||||
*
|
||||
*/
|
||||
export type SaleInvoiceFiscals = Prisma.SaleInvoiceFiscalsModel
|
||||
/**
|
||||
* Model SaleInvoiceFiscalAttempts
|
||||
*
|
||||
*/
|
||||
export type SaleInvoiceFiscalAttempts = Prisma.SaleInvoiceFiscalAttemptsModel
|
||||
/**
|
||||
* Model SalesInvoicePayment
|
||||
*
|
||||
|
||||
@@ -54,41 +54,6 @@ export type Admin = Prisma.AdminModel
|
||||
*
|
||||
*/
|
||||
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
|
||||
*
|
||||
@@ -189,6 +154,41 @@ export type ConsumerDevices = Prisma.ConsumerDevicesModel
|
||||
*
|
||||
*/
|
||||
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
|
||||
*
|
||||
@@ -234,6 +234,16 @@ export type SalesInvoice = Prisma.SalesInvoiceModel
|
||||
*
|
||||
*/
|
||||
export type SalesInvoiceItem = Prisma.SalesInvoiceItemModel
|
||||
/**
|
||||
* Model SaleInvoiceFiscals
|
||||
*
|
||||
*/
|
||||
export type SaleInvoiceFiscals = Prisma.SaleInvoiceFiscalsModel
|
||||
/**
|
||||
* Model SaleInvoiceFiscalAttempts
|
||||
*
|
||||
*/
|
||||
export type SaleInvoiceFiscalAttempts = Prisma.SaleInvoiceFiscalAttemptsModel
|
||||
/**
|
||||
* Model SalesInvoicePayment
|
||||
*
|
||||
|
||||
@@ -144,91 +144,6 @@ export type EnumAccountTypeWithAggregatesFilter<$PrismaModel = never> = {
|
||||
_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> = {
|
||||
equals?: number | Prisma.IntFieldRefInput<$PrismaModel>
|
||||
in?: number[]
|
||||
@@ -473,6 +388,91 @@ export type JsonNullableWithAggregatesFilterBase<$PrismaModel = never> = {
|
||||
_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> = {
|
||||
equals?: boolean | Prisma.BooleanFieldRefInput<$PrismaModel> | null
|
||||
not?: Prisma.NestedBoolNullableFilter<$PrismaModel> | boolean | null
|
||||
@@ -780,91 +780,6 @@ export type NestedEnumAccountTypeWithAggregatesFilter<$PrismaModel = never> = {
|
||||
_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> = {
|
||||
equals?: number | Prisma.IntFieldRefInput<$PrismaModel>
|
||||
in?: number[]
|
||||
@@ -1082,6 +997,91 @@ export type NestedJsonNullableFilterBase<$PrismaModel = never> = {
|
||||
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> = {
|
||||
equals?: boolean | Prisma.BooleanFieldRefInput<$PrismaModel> | 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',
|
||||
Admin: 'Admin',
|
||||
Account: 'Account',
|
||||
ConsumerAccount: 'ConsumerAccount',
|
||||
Consumer: 'Consumer',
|
||||
ConsumerIndividual: 'ConsumerIndividual',
|
||||
ConsumerLegal: 'ConsumerLegal',
|
||||
BusinessActivity: 'BusinessActivity',
|
||||
Complex: 'Complex',
|
||||
Pos: 'Pos',
|
||||
DeviceBrand: 'DeviceBrand',
|
||||
Device: 'Device',
|
||||
LicenseChargeTransaction: 'LicenseChargeTransaction',
|
||||
@@ -81,6 +74,13 @@ export const ModelName = {
|
||||
Provider: 'Provider',
|
||||
ConsumerDevices: 'ConsumerDevices',
|
||||
ApplicationReleasedInfo: 'ApplicationReleasedInfo',
|
||||
ConsumerAccount: 'ConsumerAccount',
|
||||
Consumer: 'Consumer',
|
||||
ConsumerIndividual: 'ConsumerIndividual',
|
||||
ConsumerLegal: 'ConsumerLegal',
|
||||
BusinessActivity: 'BusinessActivity',
|
||||
Complex: 'Complex',
|
||||
Pos: 'Pos',
|
||||
TriggerLog: 'TriggerLog',
|
||||
Customer: 'Customer',
|
||||
CustomerIndividual: 'CustomerIndividual',
|
||||
@@ -90,6 +90,8 @@ export const ModelName = {
|
||||
Guild: 'Guild',
|
||||
SalesInvoice: 'SalesInvoice',
|
||||
SalesInvoiceItem: 'SalesInvoiceItem',
|
||||
SaleInvoiceFiscals: 'SaleInvoiceFiscals',
|
||||
SaleInvoiceFiscalAttempts: 'SaleInvoiceFiscalAttempts',
|
||||
SalesInvoicePayment: 'SalesInvoicePayment',
|
||||
Service: 'Service',
|
||||
ServiceCategory: 'ServiceCategory'
|
||||
@@ -146,99 +148,6 @@ export const 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 = {
|
||||
id: 'id',
|
||||
name: 'name',
|
||||
@@ -484,6 +393,101 @@ export const 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 = {
|
||||
id: 'id',
|
||||
message: 'message',
|
||||
@@ -585,13 +589,14 @@ export const SalesInvoiceScalarFieldEnum = {
|
||||
id: 'id',
|
||||
code: 'code',
|
||||
total_amount: 'total_amount',
|
||||
invoice_number: 'invoice_number',
|
||||
invoice_date: 'invoice_date',
|
||||
notes: 'notes',
|
||||
unknown_customer: 'unknown_customer',
|
||||
invoice_date: 'invoice_date',
|
||||
created_at: 'created_at',
|
||||
updated_at: 'updated_at',
|
||||
customer_id: 'customer_id',
|
||||
account_id: 'account_id',
|
||||
consumer_account_id: 'consumer_account_id',
|
||||
pos_id: 'pos_id'
|
||||
} as const
|
||||
|
||||
@@ -607,22 +612,52 @@ export const SalesInvoiceItemScalarFieldEnum = {
|
||||
created_at: 'created_at',
|
||||
discount: 'discount',
|
||||
notes: 'notes',
|
||||
payload: 'payload',
|
||||
good_snapshot: 'good_snapshot',
|
||||
invoice_id: 'invoice_id',
|
||||
good_id: 'good_id',
|
||||
service_id: 'service_id',
|
||||
payload: 'payload'
|
||||
service_id: 'service_id'
|
||||
} as const
|
||||
|
||||
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 = {
|
||||
id: 'id',
|
||||
invoice_id: 'invoice_id',
|
||||
amount: 'amount',
|
||||
payment_method: 'payment_method',
|
||||
paid_at: 'paid_at',
|
||||
created_at: 'created_at'
|
||||
created_at: 'created_at',
|
||||
invoice_id: 'invoice_id'
|
||||
} as const
|
||||
|
||||
export type SalesInvoicePaymentScalarFieldEnum = (typeof SalesInvoicePaymentScalarFieldEnum)[keyof typeof SalesInvoicePaymentScalarFieldEnum]
|
||||
@@ -715,80 +750,6 @@ export const 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 = {
|
||||
id: 'id',
|
||||
name: 'name'
|
||||
@@ -996,6 +957,82 @@ export const 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 = {
|
||||
message: 'message',
|
||||
name: 'name'
|
||||
@@ -1078,7 +1115,7 @@ export const SalesInvoiceOrderByRelevanceFieldEnum = {
|
||||
code: 'code',
|
||||
notes: 'notes',
|
||||
customer_id: 'customer_id',
|
||||
account_id: 'account_id',
|
||||
consumer_account_id: 'consumer_account_id',
|
||||
pos_id: 'pos_id'
|
||||
} as const
|
||||
|
||||
@@ -1096,6 +1133,25 @@ export const 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 = {
|
||||
id: 'id',
|
||||
invoice_id: 'invoice_id'
|
||||
|
||||
@@ -11,13 +11,6 @@
|
||||
export type * from './models/AdminAccount.js'
|
||||
export type * from './models/Admin.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/Device.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/ConsumerDevices.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/Customer.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/SalesInvoice.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/Service.js'
|
||||
export type * from './models/ServiceCategory.js'
|
||||
|
||||
@@ -367,20 +367,6 @@ export type EnumAccountTypeFieldUpdateOperationsInput = {
|
||||
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 = {
|
||||
create?: Prisma.XOR<Prisma.AccountCreateWithoutPartner_accountInput, Prisma.AccountUncheckedCreateWithoutPartner_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>
|
||||
}
|
||||
|
||||
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 = {
|
||||
id?: string
|
||||
username: string
|
||||
@@ -469,66 +469,6 @@ export type AccountUncheckedUpdateWithoutAdmin_accountInput = {
|
||||
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 = {
|
||||
id?: string
|
||||
username: string
|
||||
@@ -649,6 +589,66 @@ export type AccountUncheckedUpdateWithoutProvider_accountInput = {
|
||||
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<{
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -343,6 +343,11 @@ export type ComplexUncheckedUpdateManyInput = {
|
||||
business_activity_id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
}
|
||||
|
||||
export type ComplexScalarRelationFilter = {
|
||||
is?: Prisma.ComplexWhereInput
|
||||
isNot?: Prisma.ComplexWhereInput
|
||||
}
|
||||
|
||||
export type ComplexListRelationFilter = {
|
||||
every?: Prisma.ComplexWhereInput
|
||||
some?: Prisma.ComplexWhereInput
|
||||
@@ -389,16 +394,25 @@ export type ComplexMinOrderByAggregateInput = {
|
||||
business_activity_id?: Prisma.SortOrder
|
||||
}
|
||||
|
||||
export type ComplexScalarRelationFilter = {
|
||||
is?: Prisma.ComplexWhereInput
|
||||
isNot?: Prisma.ComplexWhereInput
|
||||
}
|
||||
|
||||
export type ComplexNullableScalarRelationFilter = {
|
||||
is?: 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 = {
|
||||
create?: Prisma.XOR<Prisma.ComplexCreateWithoutBusiness_activityInput, Prisma.ComplexUncheckedCreateWithoutBusiness_activityInput> | Prisma.ComplexCreateWithoutBusiness_activityInput[] | Prisma.ComplexUncheckedCreateWithoutBusiness_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>
|
||||
}
|
||||
|
||||
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 = {
|
||||
create?: Prisma.XOR<Prisma.ComplexCreateWithoutGood_categoriesInput, Prisma.ComplexUncheckedCreateWithoutGood_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>
|
||||
}
|
||||
|
||||
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 = {
|
||||
id?: string
|
||||
name: string
|
||||
@@ -612,70 +676,6 @@ export type ComplexUncheckedUpdateWithoutPos_listInput = {
|
||||
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 = {
|
||||
id?: string
|
||||
name: string
|
||||
|
||||
@@ -352,6 +352,20 @@ export type ConsumerMinOrderByAggregateInput = {
|
||||
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 = {
|
||||
create?: Prisma.XOR<Prisma.ConsumerCreateWithoutAccountsInput, Prisma.ConsumerUncheckedCreateWithoutAccountsInput>
|
||||
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>
|
||||
}
|
||||
|
||||
export type ConsumerCreateNestedOneWithoutDevicesInput = {
|
||||
create?: Prisma.XOR<Prisma.ConsumerCreateWithoutDevicesInput, Prisma.ConsumerUncheckedCreateWithoutDevicesInput>
|
||||
connectOrCreate?: Prisma.ConsumerCreateOrConnectWithoutDevicesInput
|
||||
connect?: Prisma.ConsumerWhereUniqueInput
|
||||
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 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 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
|
||||
}
|
||||
|
||||
export type ConsumerCreateWithoutAccountsInput = {
|
||||
@@ -686,70 +750,6 @@ export type ConsumerUncheckedUpdateWithoutBusiness_activitiesInput = {
|
||||
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
|
||||
|
||||
@@ -338,6 +338,11 @@ export type ConsumerAccountNullableScalarRelationFilter = {
|
||||
isNot?: Prisma.ConsumerAccountWhereInput | null
|
||||
}
|
||||
|
||||
export type ConsumerAccountScalarRelationFilter = {
|
||||
is?: Prisma.ConsumerAccountWhereInput
|
||||
isNot?: Prisma.ConsumerAccountWhereInput
|
||||
}
|
||||
|
||||
export type ConsumerAccountOrderByRelevanceInput = {
|
||||
fields: Prisma.ConsumerAccountOrderByRelevanceFieldEnum | Prisma.ConsumerAccountOrderByRelevanceFieldEnum[]
|
||||
sort: Prisma.SortOrder
|
||||
@@ -381,11 +386,6 @@ export type ConsumerAccountOrderByRelationAggregateInput = {
|
||||
_count?: Prisma.SortOrder
|
||||
}
|
||||
|
||||
export type ConsumerAccountScalarRelationFilter = {
|
||||
is?: Prisma.ConsumerAccountWhereInput
|
||||
isNot?: Prisma.ConsumerAccountWhereInput
|
||||
}
|
||||
|
||||
export type ConsumerAccountCreateNestedOneWithoutAccountInput = {
|
||||
create?: Prisma.XOR<Prisma.ConsumerAccountCreateWithoutAccountInput, Prisma.ConsumerAccountUncheckedCreateWithoutAccountInput>
|
||||
connectOrCreate?: Prisma.ConsumerAccountCreateOrConnectWithoutAccountInput
|
||||
@@ -418,6 +418,36 @@ export type ConsumerAccountUncheckedUpdateOneWithoutAccountNestedInput = {
|
||||
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 = {
|
||||
set?: $Enums.ConsumerRole
|
||||
}
|
||||
@@ -478,36 +508,6 @@ export type ConsumerAccountUpdateOneRequiredWithoutPosNestedInput = {
|
||||
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 = {
|
||||
create?: Prisma.XOR<Prisma.ConsumerAccountCreateWithoutSales_invoicesInput, Prisma.ConsumerAccountUncheckedCreateWithoutSales_invoicesInput>
|
||||
connectOrCreate?: Prisma.ConsumerAccountCreateOrConnectWithoutSales_invoicesInput
|
||||
@@ -586,132 +586,6 @@ export type ConsumerAccountUncheckedUpdateWithoutAccountInput = {
|
||||
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 = {
|
||||
id?: string
|
||||
role: $Enums.ConsumerRole
|
||||
@@ -840,6 +714,132 @@ export type ConsumerAccountUncheckedUpdateWithoutPermissionInput = {
|
||||
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 = {
|
||||
id?: string
|
||||
role: $Enums.ConsumerRole
|
||||
|
||||
@@ -512,16 +512,6 @@ export type ConsumerDevicesUncheckedUpdateManyInput = {
|
||||
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 = {
|
||||
fields: Prisma.ConsumerDevicesOrderByRelevanceFieldEnum | Prisma.ConsumerDevicesOrderByRelevanceFieldEnum[]
|
||||
sort: Prisma.SortOrder
|
||||
@@ -588,6 +578,20 @@ export type ConsumerDevicesMinOrderByAggregateInput = {
|
||||
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 = {
|
||||
create?: Prisma.XOR<Prisma.ConsumerDevicesCreateWithoutConsumerInput, Prisma.ConsumerDevicesUncheckedCreateWithoutConsumerInput> | Prisma.ConsumerDevicesCreateWithoutConsumerInput[] | Prisma.ConsumerDevicesUncheckedCreateWithoutConsumerInput[]
|
||||
connectOrCreate?: Prisma.ConsumerDevicesCreateOrConnectWithoutConsumerInput | Prisma.ConsumerDevicesCreateOrConnectWithoutConsumerInput[]
|
||||
@@ -630,10 +634,6 @@ export type ConsumerDevicesUncheckedUpdateManyWithoutConsumerNestedInput = {
|
||||
deleteMany?: Prisma.ConsumerDevicesScalarWhereInput | Prisma.ConsumerDevicesScalarWhereInput[]
|
||||
}
|
||||
|
||||
export type EnumApplicationPublisherFieldUpdateOperationsInput = {
|
||||
set?: $Enums.ApplicationPublisher
|
||||
}
|
||||
|
||||
export type ConsumerDevicesCreateWithoutConsumerInput = {
|
||||
uuid: string
|
||||
app_version: string
|
||||
|
||||
@@ -345,6 +345,16 @@ export type ConsumerIndividualUncheckedUpdateManyInput = {
|
||||
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 = {
|
||||
is?: Prisma.ConsumerIndividualWhereInput | null
|
||||
isNot?: Prisma.ConsumerIndividualWhereInput | null
|
||||
@@ -399,48 +409,6 @@ export type ConsumerIndividualMinOrderByAggregateInput = {
|
||||
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 = {
|
||||
create?: Prisma.XOR<Prisma.ConsumerIndividualCreateWithoutPartnerInput, Prisma.ConsumerIndividualUncheckedCreateWithoutPartnerInput> | Prisma.ConsumerIndividualCreateWithoutPartnerInput[] | Prisma.ConsumerIndividualUncheckedCreateWithoutPartnerInput[]
|
||||
connectOrCreate?: Prisma.ConsumerIndividualCreateOrConnectWithoutPartnerInput | Prisma.ConsumerIndividualCreateOrConnectWithoutPartnerInput[]
|
||||
@@ -483,60 +451,36 @@ export type ConsumerIndividualUncheckedUpdateManyWithoutPartnerNestedInput = {
|
||||
deleteMany?: Prisma.ConsumerIndividualScalarWhereInput | Prisma.ConsumerIndividualScalarWhereInput[]
|
||||
}
|
||||
|
||||
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 ConsumerIndividualCreateNestedOneWithoutConsumerInput = {
|
||||
create?: Prisma.XOR<Prisma.ConsumerIndividualCreateWithoutConsumerInput, Prisma.ConsumerIndividualUncheckedCreateWithoutConsumerInput>
|
||||
connectOrCreate?: Prisma.ConsumerIndividualCreateOrConnectWithoutConsumerInput
|
||||
connect?: Prisma.ConsumerIndividualWhereUniqueInput
|
||||
}
|
||||
|
||||
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 ConsumerIndividualUncheckedCreateNestedOneWithoutConsumerInput = {
|
||||
create?: Prisma.XOR<Prisma.ConsumerIndividualCreateWithoutConsumerInput, Prisma.ConsumerIndividualUncheckedCreateWithoutConsumerInput>
|
||||
connectOrCreate?: Prisma.ConsumerIndividualCreateOrConnectWithoutConsumerInput
|
||||
connect?: Prisma.ConsumerIndividualWhereUniqueInput
|
||||
}
|
||||
|
||||
export type ConsumerIndividualCreateOrConnectWithoutConsumerInput = {
|
||||
where: Prisma.ConsumerIndividualWhereUniqueInput
|
||||
create: Prisma.XOR<Prisma.ConsumerIndividualCreateWithoutConsumerInput, Prisma.ConsumerIndividualUncheckedCreateWithoutConsumerInput>
|
||||
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 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 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 ConsumerIndividualCreateWithoutPartnerInput = {
|
||||
@@ -599,6 +543,62 @@ export type ConsumerIndividualScalarWhereInput = {
|
||||
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 = {
|
||||
first_name: string
|
||||
last_name: string
|
||||
|
||||
@@ -306,6 +306,16 @@ export type ConsumerLegalUncheckedUpdateManyInput = {
|
||||
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 = {
|
||||
is?: Prisma.ConsumerLegalWhereInput | null
|
||||
isNot?: Prisma.ConsumerLegalWhereInput | null
|
||||
@@ -349,48 +359,6 @@ export type ConsumerLegalMinOrderByAggregateInput = {
|
||||
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 = {
|
||||
create?: Prisma.XOR<Prisma.ConsumerLegalCreateWithoutPartnerInput, Prisma.ConsumerLegalUncheckedCreateWithoutPartnerInput> | Prisma.ConsumerLegalCreateWithoutPartnerInput[] | Prisma.ConsumerLegalUncheckedCreateWithoutPartnerInput[]
|
||||
connectOrCreate?: Prisma.ConsumerLegalCreateOrConnectWithoutPartnerInput | Prisma.ConsumerLegalCreateOrConnectWithoutPartnerInput[]
|
||||
@@ -433,52 +401,36 @@ export type ConsumerLegalUncheckedUpdateManyWithoutPartnerNestedInput = {
|
||||
deleteMany?: Prisma.ConsumerLegalScalarWhereInput | Prisma.ConsumerLegalScalarWhereInput[]
|
||||
}
|
||||
|
||||
export type ConsumerLegalCreateWithoutConsumerInput = {
|
||||
name: string
|
||||
registration_code: string
|
||||
created_at?: Date | string
|
||||
updated_at?: Date | string
|
||||
partner: Prisma.PartnerCreateNestedOneWithoutConsumers_legalInput
|
||||
export type ConsumerLegalCreateNestedOneWithoutConsumerInput = {
|
||||
create?: Prisma.XOR<Prisma.ConsumerLegalCreateWithoutConsumerInput, Prisma.ConsumerLegalUncheckedCreateWithoutConsumerInput>
|
||||
connectOrCreate?: Prisma.ConsumerLegalCreateOrConnectWithoutConsumerInput
|
||||
connect?: Prisma.ConsumerLegalWhereUniqueInput
|
||||
}
|
||||
|
||||
export type ConsumerLegalUncheckedCreateWithoutConsumerInput = {
|
||||
name: string
|
||||
registration_code: string
|
||||
created_at?: Date | string
|
||||
updated_at?: Date | string
|
||||
partner_id: string
|
||||
export type ConsumerLegalUncheckedCreateNestedOneWithoutConsumerInput = {
|
||||
create?: Prisma.XOR<Prisma.ConsumerLegalCreateWithoutConsumerInput, Prisma.ConsumerLegalUncheckedCreateWithoutConsumerInput>
|
||||
connectOrCreate?: Prisma.ConsumerLegalCreateOrConnectWithoutConsumerInput
|
||||
connect?: Prisma.ConsumerLegalWhereUniqueInput
|
||||
}
|
||||
|
||||
export type ConsumerLegalCreateOrConnectWithoutConsumerInput = {
|
||||
where: Prisma.ConsumerLegalWhereUniqueInput
|
||||
create: Prisma.XOR<Prisma.ConsumerLegalCreateWithoutConsumerInput, Prisma.ConsumerLegalUncheckedCreateWithoutConsumerInput>
|
||||
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 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 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 ConsumerLegalCreateWithoutPartnerInput = {
|
||||
@@ -535,6 +487,54 @@ export type ConsumerLegalScalarWhereInput = {
|
||||
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 = {
|
||||
name: string
|
||||
registration_code: string
|
||||
|
||||
@@ -310,11 +310,6 @@ export type DeviceUncheckedUpdateManyInput = {
|
||||
brand_id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
}
|
||||
|
||||
export type DeviceNullableScalarRelationFilter = {
|
||||
is?: Prisma.DeviceWhereInput | null
|
||||
isNot?: Prisma.DeviceWhereInput | null
|
||||
}
|
||||
|
||||
export type DeviceListRelationFilter = {
|
||||
every?: Prisma.DeviceWhereInput
|
||||
some?: Prisma.DeviceWhereInput
|
||||
@@ -358,20 +353,9 @@ export type DeviceMinOrderByAggregateInput = {
|
||||
brand_id?: Prisma.SortOrder
|
||||
}
|
||||
|
||||
export type DeviceCreateNestedOneWithoutPosesInput = {
|
||||
create?: Prisma.XOR<Prisma.DeviceCreateWithoutPosesInput, Prisma.DeviceUncheckedCreateWithoutPosesInput>
|
||||
connectOrCreate?: Prisma.DeviceCreateOrConnectWithoutPosesInput
|
||||
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 DeviceNullableScalarRelationFilter = {
|
||||
is?: Prisma.DeviceWhereInput | null
|
||||
isNot?: Prisma.DeviceWhereInput | null
|
||||
}
|
||||
|
||||
export type DeviceCreateNestedManyWithoutBrandInput = {
|
||||
@@ -416,56 +400,20 @@ export type DeviceUncheckedUpdateManyWithoutBrandNestedInput = {
|
||||
deleteMany?: Prisma.DeviceScalarWhereInput | Prisma.DeviceScalarWhereInput[]
|
||||
}
|
||||
|
||||
export type DeviceCreateWithoutPosesInput = {
|
||||
id?: string
|
||||
name: string
|
||||
os_version?: string | null
|
||||
created_at?: Date | string
|
||||
updated_at?: Date | string
|
||||
brand: Prisma.DeviceBrandCreateNestedOneWithoutDevicesInput
|
||||
export type DeviceCreateNestedOneWithoutPosesInput = {
|
||||
create?: Prisma.XOR<Prisma.DeviceCreateWithoutPosesInput, Prisma.DeviceUncheckedCreateWithoutPosesInput>
|
||||
connectOrCreate?: Prisma.DeviceCreateOrConnectWithoutPosesInput
|
||||
connect?: Prisma.DeviceWhereUniqueInput
|
||||
}
|
||||
|
||||
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 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 DeviceCreateWithoutBrandInput = {
|
||||
@@ -524,6 +472,58 @@ export type DeviceScalarWhereInput = {
|
||||
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 = {
|
||||
id?: string
|
||||
name: string
|
||||
|
||||
@@ -307,11 +307,6 @@ export type LicenseAccountAllocationUncheckedUpdateManyInput = {
|
||||
credit_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
}
|
||||
|
||||
export type LicenseAccountAllocationNullableScalarRelationFilter = {
|
||||
is?: Prisma.LicenseAccountAllocationWhereInput | null
|
||||
isNot?: Prisma.LicenseAccountAllocationWhereInput | null
|
||||
}
|
||||
|
||||
export type LicenseAccountAllocationListRelationFilter = {
|
||||
every?: Prisma.LicenseAccountAllocationWhereInput
|
||||
some?: Prisma.LicenseAccountAllocationWhereInput
|
||||
@@ -322,6 +317,11 @@ export type LicenseAccountAllocationOrderByRelationAggregateInput = {
|
||||
_count?: Prisma.SortOrder
|
||||
}
|
||||
|
||||
export type LicenseAccountAllocationNullableScalarRelationFilter = {
|
||||
is?: Prisma.LicenseAccountAllocationWhereInput | null
|
||||
isNot?: Prisma.LicenseAccountAllocationWhereInput | null
|
||||
}
|
||||
|
||||
export type LicenseAccountAllocationOrderByRelevanceInput = {
|
||||
fields: Prisma.LicenseAccountAllocationOrderByRelevanceFieldEnum | Prisma.LicenseAccountAllocationOrderByRelevanceFieldEnum[]
|
||||
sort: Prisma.SortOrder
|
||||
@@ -355,38 +355,6 @@ export type LicenseAccountAllocationMinOrderByAggregateInput = {
|
||||
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 = {
|
||||
create?: Prisma.XOR<Prisma.LicenseAccountAllocationCreateWithoutLicense_activationInput, Prisma.LicenseAccountAllocationUncheckedCreateWithoutLicense_activationInput> | Prisma.LicenseAccountAllocationCreateWithoutLicense_activationInput[] | Prisma.LicenseAccountAllocationUncheckedCreateWithoutLicense_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>
|
||||
}
|
||||
|
||||
export type LicenseAccountAllocationCreateWithoutAccountInput = {
|
||||
id?: string
|
||||
created_at?: Date | string
|
||||
updated_at?: Date | string
|
||||
license_activation?: Prisma.LicenseActivationCreateNestedOneWithoutAccount_allocationsInput
|
||||
credit?: Prisma.PartnerAccountQuotaCreditCreateNestedOneWithoutAllocationInput
|
||||
export type LicenseAccountAllocationCreateNestedOneWithoutAccountInput = {
|
||||
create?: Prisma.XOR<Prisma.LicenseAccountAllocationCreateWithoutAccountInput, Prisma.LicenseAccountAllocationUncheckedCreateWithoutAccountInput>
|
||||
connectOrCreate?: Prisma.LicenseAccountAllocationCreateOrConnectWithoutAccountInput
|
||||
connect?: Prisma.LicenseAccountAllocationWhereUniqueInput
|
||||
}
|
||||
|
||||
export type LicenseAccountAllocationUncheckedCreateWithoutAccountInput = {
|
||||
id?: string
|
||||
created_at?: Date | string
|
||||
updated_at?: Date | string
|
||||
license_activation_id?: string | null
|
||||
credit_id?: string | null
|
||||
export type LicenseAccountAllocationUncheckedCreateNestedOneWithoutAccountInput = {
|
||||
create?: Prisma.XOR<Prisma.LicenseAccountAllocationCreateWithoutAccountInput, Prisma.LicenseAccountAllocationUncheckedCreateWithoutAccountInput>
|
||||
connectOrCreate?: Prisma.LicenseAccountAllocationCreateOrConnectWithoutAccountInput
|
||||
connect?: Prisma.LicenseAccountAllocationWhereUniqueInput
|
||||
}
|
||||
|
||||
export type LicenseAccountAllocationCreateOrConnectWithoutAccountInput = {
|
||||
where: Prisma.LicenseAccountAllocationWhereUniqueInput
|
||||
create: Prisma.XOR<Prisma.LicenseAccountAllocationCreateWithoutAccountInput, Prisma.LicenseAccountAllocationUncheckedCreateWithoutAccountInput>
|
||||
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 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 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 LicenseAccountAllocationCreateWithoutLicense_activationInput = {
|
||||
@@ -611,6 +563,54 @@ export type LicenseAccountAllocationUncheckedUpdateWithoutCreditInput = {
|
||||
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 = {
|
||||
id?: string
|
||||
created_at?: Date | string
|
||||
|
||||
@@ -379,38 +379,6 @@ export type LicenseActivationMinOrderByAggregateInput = {
|
||||
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 = {
|
||||
create?: Prisma.XOR<Prisma.LicenseActivationCreateWithoutLicenseInput, Prisma.LicenseActivationUncheckedCreateWithoutLicenseInput>
|
||||
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>
|
||||
}
|
||||
|
||||
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 LicenseActivationCreateNestedOneWithoutBusiness_activityInput = {
|
||||
create?: Prisma.XOR<Prisma.LicenseActivationCreateWithoutBusiness_activityInput, Prisma.LicenseActivationUncheckedCreateWithoutBusiness_activityInput>
|
||||
connectOrCreate?: Prisma.LicenseActivationCreateOrConnectWithoutBusiness_activityInput
|
||||
connect?: Prisma.LicenseActivationWhereUniqueInput
|
||||
}
|
||||
|
||||
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 LicenseActivationUncheckedCreateNestedOneWithoutBusiness_activityInput = {
|
||||
create?: Prisma.XOR<Prisma.LicenseActivationCreateWithoutBusiness_activityInput, Prisma.LicenseActivationUncheckedCreateWithoutBusiness_activityInput>
|
||||
connectOrCreate?: Prisma.LicenseActivationCreateOrConnectWithoutBusiness_activityInput
|
||||
connect?: Prisma.LicenseActivationWhereUniqueInput
|
||||
}
|
||||
|
||||
export type LicenseActivationCreateOrConnectWithoutBusiness_activityInput = {
|
||||
where: Prisma.LicenseActivationWhereUniqueInput
|
||||
create: Prisma.XOR<Prisma.LicenseActivationCreateWithoutBusiness_activityInput, Prisma.LicenseActivationUncheckedCreateWithoutBusiness_activityInput>
|
||||
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 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
|
||||
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 LicenseActivationCreateWithoutLicenseInput = {
|
||||
@@ -715,6 +655,66 @@ export type LicenseActivationUncheckedUpdateWithoutAccount_allocationsInput = {
|
||||
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
|
||||
|
||||
@@ -403,34 +403,6 @@ export type PartnerMinOrderByAggregateInput = {
|
||||
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 = {
|
||||
create?: Prisma.XOR<Prisma.PartnerCreateWithoutLicense_charge_transactionsInput, Prisma.PartnerUncheckedCreateWithoutLicense_charge_transactionsInput>
|
||||
connectOrCreate?: Prisma.PartnerCreateOrConnectWithoutLicense_charge_transactionsInput
|
||||
@@ -491,156 +463,32 @@ export type EnumPartnerStatusFieldUpdateOperationsInput = {
|
||||
set?: $Enums.PartnerStatus
|
||||
}
|
||||
|
||||
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 PartnerCreateNestedOneWithoutConsumers_individualInput = {
|
||||
create?: Prisma.XOR<Prisma.PartnerCreateWithoutConsumers_individualInput, Prisma.PartnerUncheckedCreateWithoutConsumers_individualInput>
|
||||
connectOrCreate?: Prisma.PartnerCreateOrConnectWithoutConsumers_individualInput
|
||||
connect?: Prisma.PartnerWhereUniqueInput
|
||||
}
|
||||
|
||||
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 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 PartnerCreateOrConnectWithoutConsumers_individualInput = {
|
||||
where: Prisma.PartnerWhereUniqueInput
|
||||
create: Prisma.XOR<Prisma.PartnerCreateWithoutConsumers_individualInput, Prisma.PartnerUncheckedCreateWithoutConsumers_individualInput>
|
||||
export type PartnerCreateNestedOneWithoutConsumers_legalInput = {
|
||||
create?: Prisma.XOR<Prisma.PartnerCreateWithoutConsumers_legalInput, Prisma.PartnerUncheckedCreateWithoutConsumers_legalInput>
|
||||
connectOrCreate?: Prisma.PartnerCreateOrConnectWithoutConsumers_legalInput
|
||||
connect?: Prisma.PartnerWhereUniqueInput
|
||||
}
|
||||
|
||||
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
|
||||
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 PartnerCreateWithoutLicense_charge_transactionsInput = {
|
||||
@@ -947,6 +795,158 @@ export type PartnerUncheckedUpdateWithoutAccountsInput = {
|
||||
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
|
||||
|
||||
@@ -310,48 +310,6 @@ export type PermissionBusinessMinOrderByAggregateInput = {
|
||||
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 = {
|
||||
create?: Prisma.XOR<Prisma.PermissionBusinessCreateWithoutPermissionInput, Prisma.PermissionBusinessUncheckedCreateWithoutPermissionInput> | Prisma.PermissionBusinessCreateWithoutPermissionInput[] | Prisma.PermissionBusinessUncheckedCreateWithoutPermissionInput[]
|
||||
connectOrCreate?: Prisma.PermissionBusinessCreateOrConnectWithoutPermissionInput | Prisma.PermissionBusinessCreateOrConnectWithoutPermissionInput[]
|
||||
@@ -398,52 +356,46 @@ export type EnumBusinessRoleFieldUpdateOperationsInput = {
|
||||
set?: $Enums.BusinessRole
|
||||
}
|
||||
|
||||
export type PermissionBusinessCreateWithoutBusinessInput = {
|
||||
id?: string
|
||||
role: $Enums.BusinessRole
|
||||
permission: Prisma.PermissionConsumerCreateNestedOneWithoutBusiness_permissionsInput
|
||||
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 PermissionBusinessUncheckedCreateWithoutBusinessInput = {
|
||||
id?: string
|
||||
role: $Enums.BusinessRole
|
||||
permission_id: string
|
||||
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 PermissionBusinessCreateOrConnectWithoutBusinessInput = {
|
||||
where: Prisma.PermissionBusinessWhereUniqueInput
|
||||
create: Prisma.XOR<Prisma.PermissionBusinessCreateWithoutBusinessInput, Prisma.PermissionBusinessUncheckedCreateWithoutBusinessInput>
|
||||
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 PermissionBusinessCreateManyBusinessInputEnvelope = {
|
||||
data: Prisma.PermissionBusinessCreateManyBusinessInput | Prisma.PermissionBusinessCreateManyBusinessInput[]
|
||||
skipDuplicates?: boolean
|
||||
}
|
||||
|
||||
export type PermissionBusinessUpsertWithWhereUniqueWithoutBusinessInput = {
|
||||
where: Prisma.PermissionBusinessWhereUniqueInput
|
||||
update: Prisma.XOR<Prisma.PermissionBusinessUpdateWithoutBusinessInput, Prisma.PermissionBusinessUncheckedUpdateWithoutBusinessInput>
|
||||
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 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 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 PermissionBusinessCreateWithoutPermissionInput = {
|
||||
@@ -484,28 +436,52 @@ export type PermissionBusinessUpdateManyWithWhereWithoutPermissionInput = {
|
||||
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
|
||||
role: $Enums.BusinessRole
|
||||
permission_id: string
|
||||
}
|
||||
|
||||
export type PermissionBusinessUpdateWithoutBusinessInput = {
|
||||
id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
role?: Prisma.EnumBusinessRoleFieldUpdateOperationsInput | $Enums.BusinessRole
|
||||
permission?: Prisma.PermissionConsumerUpdateOneRequiredWithoutBusiness_permissionsNestedInput
|
||||
export type PermissionBusinessCreateOrConnectWithoutBusinessInput = {
|
||||
where: Prisma.PermissionBusinessWhereUniqueInput
|
||||
create: Prisma.XOR<Prisma.PermissionBusinessCreateWithoutBusinessInput, Prisma.PermissionBusinessUncheckedCreateWithoutBusinessInput>
|
||||
}
|
||||
|
||||
export type PermissionBusinessUncheckedUpdateWithoutBusinessInput = {
|
||||
id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
role?: Prisma.EnumBusinessRoleFieldUpdateOperationsInput | $Enums.BusinessRole
|
||||
permission_id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
export type PermissionBusinessCreateManyBusinessInputEnvelope = {
|
||||
data: Prisma.PermissionBusinessCreateManyBusinessInput | Prisma.PermissionBusinessCreateManyBusinessInput[]
|
||||
skipDuplicates?: boolean
|
||||
}
|
||||
|
||||
export type PermissionBusinessUncheckedUpdateManyWithoutBusinessInput = {
|
||||
id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
role?: Prisma.EnumBusinessRoleFieldUpdateOperationsInput | $Enums.BusinessRole
|
||||
permission_id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
export type PermissionBusinessUpsertWithWhereUniqueWithoutBusinessInput = {
|
||||
where: Prisma.PermissionBusinessWhereUniqueInput
|
||||
update: Prisma.XOR<Prisma.PermissionBusinessUpdateWithoutBusinessInput, Prisma.PermissionBusinessUncheckedUpdateWithoutBusinessInput>
|
||||
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 = {
|
||||
@@ -532,6 +508,30 @@ export type PermissionBusinessUncheckedUpdateManyWithoutPermissionInput = {
|
||||
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<{
|
||||
|
||||
@@ -310,48 +310,6 @@ export type PermissionComplexMinOrderByAggregateInput = {
|
||||
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 = {
|
||||
create?: Prisma.XOR<Prisma.PermissionComplexCreateWithoutPermissionInput, Prisma.PermissionComplexUncheckedCreateWithoutPermissionInput> | Prisma.PermissionComplexCreateWithoutPermissionInput[] | Prisma.PermissionComplexUncheckedCreateWithoutPermissionInput[]
|
||||
connectOrCreate?: Prisma.PermissionComplexCreateOrConnectWithoutPermissionInput | Prisma.PermissionComplexCreateOrConnectWithoutPermissionInput[]
|
||||
@@ -398,52 +356,46 @@ export type EnumComplexRoleFieldUpdateOperationsInput = {
|
||||
set?: $Enums.ComplexRole
|
||||
}
|
||||
|
||||
export type PermissionComplexCreateWithoutComplexInput = {
|
||||
id?: string
|
||||
role: $Enums.ComplexRole
|
||||
permission: Prisma.PermissionConsumerCreateNestedOneWithoutComplex_permissionsInput
|
||||
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 PermissionComplexUncheckedCreateWithoutComplexInput = {
|
||||
id?: string
|
||||
role: $Enums.ComplexRole
|
||||
permission_id: string
|
||||
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 PermissionComplexCreateOrConnectWithoutComplexInput = {
|
||||
where: Prisma.PermissionComplexWhereUniqueInput
|
||||
create: Prisma.XOR<Prisma.PermissionComplexCreateWithoutComplexInput, Prisma.PermissionComplexUncheckedCreateWithoutComplexInput>
|
||||
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 PermissionComplexCreateManyComplexInputEnvelope = {
|
||||
data: Prisma.PermissionComplexCreateManyComplexInput | Prisma.PermissionComplexCreateManyComplexInput[]
|
||||
skipDuplicates?: boolean
|
||||
}
|
||||
|
||||
export type PermissionComplexUpsertWithWhereUniqueWithoutComplexInput = {
|
||||
where: Prisma.PermissionComplexWhereUniqueInput
|
||||
update: Prisma.XOR<Prisma.PermissionComplexUpdateWithoutComplexInput, Prisma.PermissionComplexUncheckedUpdateWithoutComplexInput>
|
||||
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 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 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 PermissionComplexCreateWithoutPermissionInput = {
|
||||
@@ -484,28 +436,52 @@ export type PermissionComplexUpdateManyWithWhereWithoutPermissionInput = {
|
||||
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
|
||||
role: $Enums.ComplexRole
|
||||
permission_id: string
|
||||
}
|
||||
|
||||
export type PermissionComplexUpdateWithoutComplexInput = {
|
||||
id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
role?: Prisma.EnumComplexRoleFieldUpdateOperationsInput | $Enums.ComplexRole
|
||||
permission?: Prisma.PermissionConsumerUpdateOneRequiredWithoutComplex_permissionsNestedInput
|
||||
export type PermissionComplexCreateOrConnectWithoutComplexInput = {
|
||||
where: Prisma.PermissionComplexWhereUniqueInput
|
||||
create: Prisma.XOR<Prisma.PermissionComplexCreateWithoutComplexInput, Prisma.PermissionComplexUncheckedCreateWithoutComplexInput>
|
||||
}
|
||||
|
||||
export type PermissionComplexUncheckedUpdateWithoutComplexInput = {
|
||||
id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
role?: Prisma.EnumComplexRoleFieldUpdateOperationsInput | $Enums.ComplexRole
|
||||
permission_id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
export type PermissionComplexCreateManyComplexInputEnvelope = {
|
||||
data: Prisma.PermissionComplexCreateManyComplexInput | Prisma.PermissionComplexCreateManyComplexInput[]
|
||||
skipDuplicates?: boolean
|
||||
}
|
||||
|
||||
export type PermissionComplexUncheckedUpdateManyWithoutComplexInput = {
|
||||
id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
role?: Prisma.EnumComplexRoleFieldUpdateOperationsInput | $Enums.ComplexRole
|
||||
permission_id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
export type PermissionComplexUpsertWithWhereUniqueWithoutComplexInput = {
|
||||
where: Prisma.PermissionComplexWhereUniqueInput
|
||||
update: Prisma.XOR<Prisma.PermissionComplexUpdateWithoutComplexInput, Prisma.PermissionComplexUncheckedUpdateWithoutComplexInput>
|
||||
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 = {
|
||||
@@ -532,6 +508,30 @@ export type PermissionComplexUncheckedUpdateManyWithoutPermissionInput = {
|
||||
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<{
|
||||
|
||||
@@ -248,11 +248,6 @@ export type PermissionConsumerUncheckedUpdateManyInput = {
|
||||
consumer_account_id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
}
|
||||
|
||||
export type PermissionConsumerNullableScalarRelationFilter = {
|
||||
is?: Prisma.PermissionConsumerWhereInput | null
|
||||
isNot?: Prisma.PermissionConsumerWhereInput | null
|
||||
}
|
||||
|
||||
export type PermissionConsumerOrderByRelevanceInput = {
|
||||
fields: Prisma.PermissionConsumerOrderByRelevanceFieldEnum | Prisma.PermissionConsumerOrderByRelevanceFieldEnum[]
|
||||
sort: Prisma.SortOrder
|
||||
@@ -279,36 +274,9 @@ export type PermissionConsumerScalarRelationFilter = {
|
||||
isNot?: Prisma.PermissionConsumerWhereInput
|
||||
}
|
||||
|
||||
export type PermissionConsumerCreateNestedOneWithoutConsumer_accountInput = {
|
||||
create?: Prisma.XOR<Prisma.PermissionConsumerCreateWithoutConsumer_accountInput, Prisma.PermissionConsumerUncheckedCreateWithoutConsumer_accountInput>
|
||||
connectOrCreate?: Prisma.PermissionConsumerCreateOrConnectWithoutConsumer_accountInput
|
||||
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 PermissionConsumerNullableScalarRelationFilter = {
|
||||
is?: Prisma.PermissionConsumerWhereInput | null
|
||||
isNot?: Prisma.PermissionConsumerWhereInput | null
|
||||
}
|
||||
|
||||
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>
|
||||
}
|
||||
|
||||
export type PermissionConsumerCreateWithoutConsumer_accountInput = {
|
||||
id?: string
|
||||
pos_permissions?: Prisma.PermissionPosCreateNestedManyWithoutPermissionInput
|
||||
complex_permissions?: Prisma.PermissionComplexCreateNestedManyWithoutPermissionInput
|
||||
business_permissions?: Prisma.PermissionBusinessCreateNestedManyWithoutPermissionInput
|
||||
export type PermissionConsumerCreateNestedOneWithoutConsumer_accountInput = {
|
||||
create?: Prisma.XOR<Prisma.PermissionConsumerCreateWithoutConsumer_accountInput, Prisma.PermissionConsumerUncheckedCreateWithoutConsumer_accountInput>
|
||||
connectOrCreate?: Prisma.PermissionConsumerCreateOrConnectWithoutConsumer_accountInput
|
||||
connect?: Prisma.PermissionConsumerWhereUniqueInput
|
||||
}
|
||||
|
||||
export type PermissionConsumerUncheckedCreateWithoutConsumer_accountInput = {
|
||||
id?: string
|
||||
pos_permissions?: Prisma.PermissionPosUncheckedCreateNestedManyWithoutPermissionInput
|
||||
complex_permissions?: Prisma.PermissionComplexUncheckedCreateNestedManyWithoutPermissionInput
|
||||
business_permissions?: Prisma.PermissionBusinessUncheckedCreateNestedManyWithoutPermissionInput
|
||||
export type PermissionConsumerUncheckedCreateNestedOneWithoutConsumer_accountInput = {
|
||||
create?: Prisma.XOR<Prisma.PermissionConsumerCreateWithoutConsumer_accountInput, Prisma.PermissionConsumerUncheckedCreateWithoutConsumer_accountInput>
|
||||
connectOrCreate?: Prisma.PermissionConsumerCreateOrConnectWithoutConsumer_accountInput
|
||||
connect?: Prisma.PermissionConsumerWhereUniqueInput
|
||||
}
|
||||
|
||||
export type PermissionConsumerCreateOrConnectWithoutConsumer_accountInput = {
|
||||
where: Prisma.PermissionConsumerWhereUniqueInput
|
||||
create: Prisma.XOR<Prisma.PermissionConsumerCreateWithoutConsumer_accountInput, Prisma.PermissionConsumerUncheckedCreateWithoutConsumer_accountInput>
|
||||
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 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
|
||||
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 PermissionConsumerCreateWithoutPos_permissionsInput = {
|
||||
@@ -529,6 +485,50 @@ export type PermissionConsumerUncheckedUpdateWithoutBusiness_permissionsInput =
|
||||
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
|
||||
|
||||
@@ -310,48 +310,6 @@ export type PermissionPosMinOrderByAggregateInput = {
|
||||
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 = {
|
||||
create?: Prisma.XOR<Prisma.PermissionPosCreateWithoutPermissionInput, Prisma.PermissionPosUncheckedCreateWithoutPermissionInput> | Prisma.PermissionPosCreateWithoutPermissionInput[] | Prisma.PermissionPosUncheckedCreateWithoutPermissionInput[]
|
||||
connectOrCreate?: Prisma.PermissionPosCreateOrConnectWithoutPermissionInput | Prisma.PermissionPosCreateOrConnectWithoutPermissionInput[]
|
||||
@@ -398,52 +356,46 @@ export type EnumPOSRoleFieldUpdateOperationsInput = {
|
||||
set?: $Enums.POSRole
|
||||
}
|
||||
|
||||
export type PermissionPosCreateWithoutPosInput = {
|
||||
id?: string
|
||||
role: $Enums.POSRole
|
||||
permission: Prisma.PermissionConsumerCreateNestedOneWithoutPos_permissionsInput
|
||||
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 PermissionPosUncheckedCreateWithoutPosInput = {
|
||||
id?: string
|
||||
role: $Enums.POSRole
|
||||
permission_id: string
|
||||
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 PermissionPosCreateOrConnectWithoutPosInput = {
|
||||
where: Prisma.PermissionPosWhereUniqueInput
|
||||
create: Prisma.XOR<Prisma.PermissionPosCreateWithoutPosInput, Prisma.PermissionPosUncheckedCreateWithoutPosInput>
|
||||
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 PermissionPosCreateManyPosInputEnvelope = {
|
||||
data: Prisma.PermissionPosCreateManyPosInput | Prisma.PermissionPosCreateManyPosInput[]
|
||||
skipDuplicates?: boolean
|
||||
}
|
||||
|
||||
export type PermissionPosUpsertWithWhereUniqueWithoutPosInput = {
|
||||
where: Prisma.PermissionPosWhereUniqueInput
|
||||
update: Prisma.XOR<Prisma.PermissionPosUpdateWithoutPosInput, Prisma.PermissionPosUncheckedUpdateWithoutPosInput>
|
||||
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 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 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 PermissionPosCreateWithoutPermissionInput = {
|
||||
@@ -484,28 +436,52 @@ export type PermissionPosUpdateManyWithWhereWithoutPermissionInput = {
|
||||
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
|
||||
role: $Enums.POSRole
|
||||
permission_id: string
|
||||
}
|
||||
|
||||
export type PermissionPosUpdateWithoutPosInput = {
|
||||
id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
role?: Prisma.EnumPOSRoleFieldUpdateOperationsInput | $Enums.POSRole
|
||||
permission?: Prisma.PermissionConsumerUpdateOneRequiredWithoutPos_permissionsNestedInput
|
||||
export type PermissionPosCreateOrConnectWithoutPosInput = {
|
||||
where: Prisma.PermissionPosWhereUniqueInput
|
||||
create: Prisma.XOR<Prisma.PermissionPosCreateWithoutPosInput, Prisma.PermissionPosUncheckedCreateWithoutPosInput>
|
||||
}
|
||||
|
||||
export type PermissionPosUncheckedUpdateWithoutPosInput = {
|
||||
id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
role?: Prisma.EnumPOSRoleFieldUpdateOperationsInput | $Enums.POSRole
|
||||
permission_id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
export type PermissionPosCreateManyPosInputEnvelope = {
|
||||
data: Prisma.PermissionPosCreateManyPosInput | Prisma.PermissionPosCreateManyPosInput[]
|
||||
skipDuplicates?: boolean
|
||||
}
|
||||
|
||||
export type PermissionPosUncheckedUpdateManyWithoutPosInput = {
|
||||
id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
role?: Prisma.EnumPOSRoleFieldUpdateOperationsInput | $Enums.POSRole
|
||||
permission_id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
export type PermissionPosUpsertWithWhereUniqueWithoutPosInput = {
|
||||
where: Prisma.PermissionPosWhereUniqueInput
|
||||
update: Prisma.XOR<Prisma.PermissionPosUpdateWithoutPosInput, Prisma.PermissionPosUncheckedUpdateWithoutPosInput>
|
||||
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 = {
|
||||
@@ -532,6 +508,30 @@ export type PermissionPosUncheckedUpdateManyWithoutPermissionInput = {
|
||||
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<{
|
||||
|
||||
+308
-308
@@ -437,11 +437,6 @@ export type PosUncheckedUpdateManyInput = {
|
||||
account_id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
}
|
||||
|
||||
export type PosNullableScalarRelationFilter = {
|
||||
is?: Prisma.PosWhereInput | null
|
||||
isNot?: Prisma.PosWhereInput | null
|
||||
}
|
||||
|
||||
export type PosListRelationFilter = {
|
||||
every?: Prisma.PosWhereInput
|
||||
some?: Prisma.PosWhereInput
|
||||
@@ -452,6 +447,16 @@ export type PosOrderByRelationAggregateInput = {
|
||||
_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 = {
|
||||
fields: Prisma.PosOrderByRelevanceFieldEnum | Prisma.PosOrderByRelevanceFieldEnum[]
|
||||
sort: Prisma.SortOrder
|
||||
@@ -503,93 +508,6 @@ export type PosMinOrderByAggregateInput = {
|
||||
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 = {
|
||||
create?: Prisma.XOR<Prisma.PosCreateWithoutDeviceInput, Prisma.PosUncheckedCreateWithoutDeviceInput> | Prisma.PosCreateWithoutDeviceInput[] | Prisma.PosUncheckedCreateWithoutDeviceInput[]
|
||||
connectOrCreate?: Prisma.PosCreateOrConnectWithoutDeviceInput | Prisma.PosCreateOrConnectWithoutDeviceInput[]
|
||||
@@ -688,6 +606,88 @@ export type PosUncheckedUpdateManyWithoutProviderNestedInput = {
|
||||
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 = {
|
||||
create?: Prisma.XOR<Prisma.PosCreateWithoutSales_invoicesInput, Prisma.PosUncheckedCreateWithoutSales_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>
|
||||
}
|
||||
|
||||
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 = {
|
||||
id?: string
|
||||
name: string
|
||||
@@ -916,6 +760,24 @@ export type PosUpdateManyWithWhereWithoutDeviceInput = {
|
||||
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 = {
|
||||
id?: string
|
||||
name: string
|
||||
@@ -1054,6 +916,144 @@ export type PosUpdateManyWithWhereWithoutProviderInput = {
|
||||
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 = {
|
||||
id?: string
|
||||
name: string
|
||||
@@ -1134,66 +1134,6 @@ export type PosUncheckedUpdateWithoutSales_invoicesInput = {
|
||||
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 = {
|
||||
id?: string
|
||||
name: string
|
||||
@@ -1314,6 +1254,66 @@ export type PosUncheckedUpdateManyWithoutProviderInput = {
|
||||
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
|
||||
|
||||
@@ -315,11 +315,6 @@ export type ProviderUncheckedUpdateManyInput = {
|
||||
updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
}
|
||||
|
||||
export type ProviderNullableScalarRelationFilter = {
|
||||
is?: Prisma.ProviderWhereInput | null
|
||||
isNot?: Prisma.ProviderWhereInput | null
|
||||
}
|
||||
|
||||
export type ProviderScalarRelationFilter = {
|
||||
is?: Prisma.ProviderWhereInput
|
||||
isNot?: Prisma.ProviderWhereInput
|
||||
@@ -358,20 +353,9 @@ export type ProviderMinOrderByAggregateInput = {
|
||||
updated_at?: Prisma.SortOrder
|
||||
}
|
||||
|
||||
export type ProviderCreateNestedOneWithoutPos_listInput = {
|
||||
create?: Prisma.XOR<Prisma.ProviderCreateWithoutPos_listInput, Prisma.ProviderUncheckedCreateWithoutPos_listInput>
|
||||
connectOrCreate?: Prisma.ProviderCreateOrConnectWithoutPos_listInput
|
||||
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 ProviderNullableScalarRelationFilter = {
|
||||
is?: Prisma.ProviderWhereInput | null
|
||||
isNot?: Prisma.ProviderWhereInput | null
|
||||
}
|
||||
|
||||
export type ProviderCreateNestedOneWithoutAccountsInput = {
|
||||
@@ -388,60 +372,20 @@ export type ProviderUpdateOneRequiredWithoutAccountsNestedInput = {
|
||||
update?: Prisma.XOR<Prisma.XOR<Prisma.ProviderUpdateToOneWithWhereWithoutAccountsInput, Prisma.ProviderUpdateWithoutAccountsInput>, Prisma.ProviderUncheckedUpdateWithoutAccountsInput>
|
||||
}
|
||||
|
||||
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 ProviderCreateNestedOneWithoutPos_listInput = {
|
||||
create?: Prisma.XOR<Prisma.ProviderCreateWithoutPos_listInput, Prisma.ProviderUncheckedCreateWithoutPos_listInput>
|
||||
connectOrCreate?: Prisma.ProviderCreateOrConnectWithoutPos_listInput
|
||||
connect?: Prisma.ProviderWhereUniqueInput
|
||||
}
|
||||
|
||||
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
|
||||
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 ProviderCreateWithoutAccountsInput = {
|
||||
@@ -500,6 +444,62 @@ export type ProviderUncheckedUpdateWithoutAccountsInput = {
|
||||
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
|
||||
|
||||
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
|
||||
discount: number
|
||||
notes: number
|
||||
payload: number
|
||||
good_snapshot: number
|
||||
invoice_id: number
|
||||
good_id: number
|
||||
service_id: number
|
||||
payload: number
|
||||
_all: number
|
||||
}
|
||||
|
||||
@@ -136,10 +137,11 @@ export type SalesInvoiceItemCountAggregateInputType = {
|
||||
created_at?: true
|
||||
discount?: true
|
||||
notes?: true
|
||||
payload?: true
|
||||
good_snapshot?: true
|
||||
invoice_id?: true
|
||||
good_id?: true
|
||||
service_id?: true
|
||||
payload?: true
|
||||
_all?: true
|
||||
}
|
||||
|
||||
@@ -238,10 +240,11 @@ export type SalesInvoiceItemGroupByOutputType = {
|
||||
created_at: Date
|
||||
discount: runtime.Decimal
|
||||
notes: string | null
|
||||
payload: runtime.JsonValue | null
|
||||
good_snapshot: runtime.JsonValue | null
|
||||
invoice_id: string
|
||||
good_id: string | null
|
||||
service_id: string | null
|
||||
payload: runtime.JsonValue | null
|
||||
_count: SalesInvoiceItemCountAggregateOutputType | null
|
||||
_avg: SalesInvoiceItemAvgAggregateOutputType | null
|
||||
_sum: SalesInvoiceItemSumAggregateOutputType | null
|
||||
@@ -276,10 +279,11 @@ export type SalesInvoiceItemWhereInput = {
|
||||
created_at?: Prisma.DateTimeFilter<"SalesInvoiceItem"> | Date | string
|
||||
discount?: Prisma.DecimalFilter<"SalesInvoiceItem"> | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
notes?: Prisma.StringNullableFilter<"SalesInvoiceItem"> | string | null
|
||||
payload?: Prisma.JsonNullableFilter<"SalesInvoiceItem">
|
||||
good_snapshot?: Prisma.JsonNullableFilter<"SalesInvoiceItem">
|
||||
invoice_id?: Prisma.StringFilter<"SalesInvoiceItem"> | string
|
||||
good_id?: Prisma.StringNullableFilter<"SalesInvoiceItem"> | string | null
|
||||
service_id?: Prisma.StringNullableFilter<"SalesInvoiceItem"> | string | null
|
||||
payload?: Prisma.JsonNullableFilter<"SalesInvoiceItem">
|
||||
invoice?: Prisma.XOR<Prisma.SalesInvoiceScalarRelationFilter, Prisma.SalesInvoiceWhereInput>
|
||||
good?: Prisma.XOR<Prisma.GoodNullableScalarRelationFilter, Prisma.GoodWhereInput> | null
|
||||
service?: Prisma.XOR<Prisma.ServiceNullableScalarRelationFilter, Prisma.ServiceWhereInput> | null
|
||||
@@ -294,10 +298,11 @@ export type SalesInvoiceItemOrderByWithRelationInput = {
|
||||
created_at?: Prisma.SortOrder
|
||||
discount?: Prisma.SortOrder
|
||||
notes?: Prisma.SortOrderInput | Prisma.SortOrder
|
||||
payload?: Prisma.SortOrderInput | Prisma.SortOrder
|
||||
good_snapshot?: Prisma.SortOrderInput | Prisma.SortOrder
|
||||
invoice_id?: Prisma.SortOrder
|
||||
good_id?: Prisma.SortOrderInput | Prisma.SortOrder
|
||||
service_id?: Prisma.SortOrderInput | Prisma.SortOrder
|
||||
payload?: Prisma.SortOrderInput | Prisma.SortOrder
|
||||
invoice?: Prisma.SalesInvoiceOrderByWithRelationInput
|
||||
good?: Prisma.GoodOrderByWithRelationInput
|
||||
service?: Prisma.ServiceOrderByWithRelationInput
|
||||
@@ -316,10 +321,11 @@ export type SalesInvoiceItemWhereUniqueInput = Prisma.AtLeast<{
|
||||
created_at?: Prisma.DateTimeFilter<"SalesInvoiceItem"> | Date | string
|
||||
discount?: Prisma.DecimalFilter<"SalesInvoiceItem"> | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
notes?: Prisma.StringNullableFilter<"SalesInvoiceItem"> | string | null
|
||||
payload?: Prisma.JsonNullableFilter<"SalesInvoiceItem">
|
||||
good_snapshot?: Prisma.JsonNullableFilter<"SalesInvoiceItem">
|
||||
invoice_id?: Prisma.StringFilter<"SalesInvoiceItem"> | string
|
||||
good_id?: Prisma.StringNullableFilter<"SalesInvoiceItem"> | string | null
|
||||
service_id?: Prisma.StringNullableFilter<"SalesInvoiceItem"> | string | null
|
||||
payload?: Prisma.JsonNullableFilter<"SalesInvoiceItem">
|
||||
invoice?: Prisma.XOR<Prisma.SalesInvoiceScalarRelationFilter, Prisma.SalesInvoiceWhereInput>
|
||||
good?: Prisma.XOR<Prisma.GoodNullableScalarRelationFilter, Prisma.GoodWhereInput> | null
|
||||
service?: Prisma.XOR<Prisma.ServiceNullableScalarRelationFilter, Prisma.ServiceWhereInput> | null
|
||||
@@ -334,10 +340,11 @@ export type SalesInvoiceItemOrderByWithAggregationInput = {
|
||||
created_at?: Prisma.SortOrder
|
||||
discount?: Prisma.SortOrder
|
||||
notes?: Prisma.SortOrderInput | Prisma.SortOrder
|
||||
payload?: Prisma.SortOrderInput | Prisma.SortOrder
|
||||
good_snapshot?: Prisma.SortOrderInput | Prisma.SortOrder
|
||||
invoice_id?: Prisma.SortOrder
|
||||
good_id?: Prisma.SortOrderInput | Prisma.SortOrder
|
||||
service_id?: Prisma.SortOrderInput | Prisma.SortOrder
|
||||
payload?: Prisma.SortOrderInput | Prisma.SortOrder
|
||||
_count?: Prisma.SalesInvoiceItemCountOrderByAggregateInput
|
||||
_avg?: Prisma.SalesInvoiceItemAvgOrderByAggregateInput
|
||||
_max?: Prisma.SalesInvoiceItemMaxOrderByAggregateInput
|
||||
@@ -357,10 +364,11 @@ export type SalesInvoiceItemScalarWhereWithAggregatesInput = {
|
||||
created_at?: Prisma.DateTimeWithAggregatesFilter<"SalesInvoiceItem"> | Date | string
|
||||
discount?: Prisma.DecimalWithAggregatesFilter<"SalesInvoiceItem"> | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
notes?: Prisma.StringNullableWithAggregatesFilter<"SalesInvoiceItem"> | string | null
|
||||
payload?: Prisma.JsonNullableWithAggregatesFilter<"SalesInvoiceItem">
|
||||
good_snapshot?: Prisma.JsonNullableWithAggregatesFilter<"SalesInvoiceItem">
|
||||
invoice_id?: Prisma.StringWithAggregatesFilter<"SalesInvoiceItem"> | string
|
||||
good_id?: Prisma.StringNullableWithAggregatesFilter<"SalesInvoiceItem"> | string | null
|
||||
service_id?: Prisma.StringNullableWithAggregatesFilter<"SalesInvoiceItem"> | string | null
|
||||
payload?: Prisma.JsonNullableWithAggregatesFilter<"SalesInvoiceItem">
|
||||
}
|
||||
|
||||
export type SalesInvoiceItemCreateInput = {
|
||||
@@ -373,6 +381,7 @@ export type SalesInvoiceItemCreateInput = {
|
||||
discount?: runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
notes?: string | null
|
||||
payload?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
||||
good_snapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
||||
invoice: Prisma.SalesInvoiceCreateNestedOneWithoutItemsInput
|
||||
good?: Prisma.GoodCreateNestedOneWithoutSales_invoice_itemsInput
|
||||
service?: Prisma.ServiceCreateNestedOneWithoutSales_invoice_itemsInput
|
||||
@@ -387,10 +396,11 @@ export type SalesInvoiceItemUncheckedCreateInput = {
|
||||
created_at?: Date | string
|
||||
discount?: runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
notes?: string | null
|
||||
payload?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
||||
good_snapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
||||
invoice_id: string
|
||||
good_id?: string | null
|
||||
service_id?: string | null
|
||||
payload?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
||||
}
|
||||
|
||||
export type SalesInvoiceItemUpdateInput = {
|
||||
@@ -403,6 +413,7 @@ export type SalesInvoiceItemUpdateInput = {
|
||||
discount?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
notes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
payload?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
||||
good_snapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
||||
invoice?: Prisma.SalesInvoiceUpdateOneRequiredWithoutItemsNestedInput
|
||||
good?: Prisma.GoodUpdateOneWithoutSales_invoice_itemsNestedInput
|
||||
service?: Prisma.ServiceUpdateOneWithoutSales_invoice_itemsNestedInput
|
||||
@@ -417,10 +428,11 @@ export type SalesInvoiceItemUncheckedUpdateInput = {
|
||||
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
discount?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
notes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
payload?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
||||
good_snapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
||||
invoice_id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
good_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
service_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
payload?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
||||
}
|
||||
|
||||
export type SalesInvoiceItemCreateManyInput = {
|
||||
@@ -432,10 +444,11 @@ export type SalesInvoiceItemCreateManyInput = {
|
||||
created_at?: Date | string
|
||||
discount?: runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
notes?: string | null
|
||||
payload?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
||||
good_snapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
||||
invoice_id: string
|
||||
good_id?: string | null
|
||||
service_id?: string | null
|
||||
payload?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
||||
}
|
||||
|
||||
export type SalesInvoiceItemUpdateManyMutationInput = {
|
||||
@@ -448,6 +461,7 @@ export type SalesInvoiceItemUpdateManyMutationInput = {
|
||||
discount?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
notes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
payload?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
||||
good_snapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
||||
}
|
||||
|
||||
export type SalesInvoiceItemUncheckedUpdateManyInput = {
|
||||
@@ -459,10 +473,11 @@ export type SalesInvoiceItemUncheckedUpdateManyInput = {
|
||||
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
discount?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
notes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
payload?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
||||
good_snapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
||||
invoice_id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
good_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
service_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
payload?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
||||
}
|
||||
|
||||
export type SalesInvoiceItemListRelationFilter = {
|
||||
@@ -490,10 +505,11 @@ export type SalesInvoiceItemCountOrderByAggregateInput = {
|
||||
created_at?: Prisma.SortOrder
|
||||
discount?: Prisma.SortOrder
|
||||
notes?: Prisma.SortOrder
|
||||
payload?: Prisma.SortOrder
|
||||
good_snapshot?: Prisma.SortOrder
|
||||
invoice_id?: Prisma.SortOrder
|
||||
good_id?: Prisma.SortOrder
|
||||
service_id?: Prisma.SortOrder
|
||||
payload?: Prisma.SortOrder
|
||||
}
|
||||
|
||||
export type SalesInvoiceItemAvgOrderByAggregateInput = {
|
||||
@@ -674,6 +690,7 @@ export type SalesInvoiceItemCreateWithoutGoodInput = {
|
||||
discount?: runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
notes?: string | null
|
||||
payload?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
||||
good_snapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
||||
invoice: Prisma.SalesInvoiceCreateNestedOneWithoutItemsInput
|
||||
service?: Prisma.ServiceCreateNestedOneWithoutSales_invoice_itemsInput
|
||||
}
|
||||
@@ -687,9 +704,10 @@ export type SalesInvoiceItemUncheckedCreateWithoutGoodInput = {
|
||||
created_at?: Date | string
|
||||
discount?: runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
notes?: string | null
|
||||
payload?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
||||
good_snapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
||||
invoice_id: string
|
||||
service_id?: string | null
|
||||
payload?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
||||
}
|
||||
|
||||
export type SalesInvoiceItemCreateOrConnectWithoutGoodInput = {
|
||||
@@ -730,10 +748,11 @@ export type SalesInvoiceItemScalarWhereInput = {
|
||||
created_at?: Prisma.DateTimeFilter<"SalesInvoiceItem"> | Date | string
|
||||
discount?: Prisma.DecimalFilter<"SalesInvoiceItem"> | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
notes?: Prisma.StringNullableFilter<"SalesInvoiceItem"> | string | null
|
||||
payload?: Prisma.JsonNullableFilter<"SalesInvoiceItem">
|
||||
good_snapshot?: Prisma.JsonNullableFilter<"SalesInvoiceItem">
|
||||
invoice_id?: Prisma.StringFilter<"SalesInvoiceItem"> | string
|
||||
good_id?: Prisma.StringNullableFilter<"SalesInvoiceItem"> | string | null
|
||||
service_id?: Prisma.StringNullableFilter<"SalesInvoiceItem"> | string | null
|
||||
payload?: Prisma.JsonNullableFilter<"SalesInvoiceItem">
|
||||
}
|
||||
|
||||
export type SalesInvoiceItemCreateWithoutInvoiceInput = {
|
||||
@@ -746,6 +765,7 @@ export type SalesInvoiceItemCreateWithoutInvoiceInput = {
|
||||
discount?: runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
notes?: string | null
|
||||
payload?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
||||
good_snapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
||||
good?: Prisma.GoodCreateNestedOneWithoutSales_invoice_itemsInput
|
||||
service?: Prisma.ServiceCreateNestedOneWithoutSales_invoice_itemsInput
|
||||
}
|
||||
@@ -759,9 +779,10 @@ export type SalesInvoiceItemUncheckedCreateWithoutInvoiceInput = {
|
||||
created_at?: Date | string
|
||||
discount?: runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
notes?: string | null
|
||||
payload?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
||||
good_snapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
||||
good_id?: string | null
|
||||
service_id?: string | null
|
||||
payload?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
||||
}
|
||||
|
||||
export type SalesInvoiceItemCreateOrConnectWithoutInvoiceInput = {
|
||||
@@ -800,6 +821,7 @@ export type SalesInvoiceItemCreateWithoutServiceInput = {
|
||||
discount?: runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
notes?: string | null
|
||||
payload?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
||||
good_snapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
||||
invoice: Prisma.SalesInvoiceCreateNestedOneWithoutItemsInput
|
||||
good?: Prisma.GoodCreateNestedOneWithoutSales_invoice_itemsInput
|
||||
}
|
||||
@@ -813,9 +835,10 @@ export type SalesInvoiceItemUncheckedCreateWithoutServiceInput = {
|
||||
created_at?: Date | string
|
||||
discount?: runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
notes?: string | null
|
||||
payload?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
||||
good_snapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
||||
invoice_id: string
|
||||
good_id?: string | null
|
||||
payload?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
||||
}
|
||||
|
||||
export type SalesInvoiceItemCreateOrConnectWithoutServiceInput = {
|
||||
@@ -853,9 +876,10 @@ export type SalesInvoiceItemCreateManyGoodInput = {
|
||||
created_at?: Date | string
|
||||
discount?: runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
notes?: string | null
|
||||
payload?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
||||
good_snapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
||||
invoice_id: string
|
||||
service_id?: string | null
|
||||
payload?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
||||
}
|
||||
|
||||
export type SalesInvoiceItemUpdateWithoutGoodInput = {
|
||||
@@ -868,6 +892,7 @@ export type SalesInvoiceItemUpdateWithoutGoodInput = {
|
||||
discount?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
notes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
payload?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
||||
good_snapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
||||
invoice?: Prisma.SalesInvoiceUpdateOneRequiredWithoutItemsNestedInput
|
||||
service?: Prisma.ServiceUpdateOneWithoutSales_invoice_itemsNestedInput
|
||||
}
|
||||
@@ -881,9 +906,10 @@ export type SalesInvoiceItemUncheckedUpdateWithoutGoodInput = {
|
||||
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
discount?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
notes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
payload?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
||||
good_snapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
||||
invoice_id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
service_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
payload?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
||||
}
|
||||
|
||||
export type SalesInvoiceItemUncheckedUpdateManyWithoutGoodInput = {
|
||||
@@ -895,9 +921,10 @@ export type SalesInvoiceItemUncheckedUpdateManyWithoutGoodInput = {
|
||||
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
discount?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
notes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
payload?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
||||
good_snapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
||||
invoice_id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
service_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
payload?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
||||
}
|
||||
|
||||
export type SalesInvoiceItemCreateManyInvoiceInput = {
|
||||
@@ -909,9 +936,10 @@ export type SalesInvoiceItemCreateManyInvoiceInput = {
|
||||
created_at?: Date | string
|
||||
discount?: runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
notes?: string | null
|
||||
payload?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
||||
good_snapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
||||
good_id?: string | null
|
||||
service_id?: string | null
|
||||
payload?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
||||
}
|
||||
|
||||
export type SalesInvoiceItemUpdateWithoutInvoiceInput = {
|
||||
@@ -924,6 +952,7 @@ export type SalesInvoiceItemUpdateWithoutInvoiceInput = {
|
||||
discount?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
notes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
payload?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
||||
good_snapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
||||
good?: Prisma.GoodUpdateOneWithoutSales_invoice_itemsNestedInput
|
||||
service?: Prisma.ServiceUpdateOneWithoutSales_invoice_itemsNestedInput
|
||||
}
|
||||
@@ -937,9 +966,10 @@ export type SalesInvoiceItemUncheckedUpdateWithoutInvoiceInput = {
|
||||
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
discount?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
notes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
payload?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
||||
good_snapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
||||
good_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
service_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
payload?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
||||
}
|
||||
|
||||
export type SalesInvoiceItemUncheckedUpdateManyWithoutInvoiceInput = {
|
||||
@@ -951,9 +981,10 @@ export type SalesInvoiceItemUncheckedUpdateManyWithoutInvoiceInput = {
|
||||
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
discount?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
notes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
payload?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
||||
good_snapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
||||
good_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
service_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
payload?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
||||
}
|
||||
|
||||
export type SalesInvoiceItemCreateManyServiceInput = {
|
||||
@@ -965,9 +996,10 @@ export type SalesInvoiceItemCreateManyServiceInput = {
|
||||
created_at?: Date | string
|
||||
discount?: runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
notes?: string | null
|
||||
payload?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
||||
good_snapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
||||
invoice_id: string
|
||||
good_id?: string | null
|
||||
payload?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
||||
}
|
||||
|
||||
export type SalesInvoiceItemUpdateWithoutServiceInput = {
|
||||
@@ -980,6 +1012,7 @@ export type SalesInvoiceItemUpdateWithoutServiceInput = {
|
||||
discount?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
notes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
payload?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
||||
good_snapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
||||
invoice?: Prisma.SalesInvoiceUpdateOneRequiredWithoutItemsNestedInput
|
||||
good?: Prisma.GoodUpdateOneWithoutSales_invoice_itemsNestedInput
|
||||
}
|
||||
@@ -993,9 +1026,10 @@ export type SalesInvoiceItemUncheckedUpdateWithoutServiceInput = {
|
||||
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
discount?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
notes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
payload?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
||||
good_snapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
||||
invoice_id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
good_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
payload?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
||||
}
|
||||
|
||||
export type SalesInvoiceItemUncheckedUpdateManyWithoutServiceInput = {
|
||||
@@ -1007,9 +1041,10 @@ export type SalesInvoiceItemUncheckedUpdateManyWithoutServiceInput = {
|
||||
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
discount?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
notes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
payload?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
||||
good_snapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
||||
invoice_id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
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
|
||||
discount?: boolean
|
||||
notes?: boolean
|
||||
payload?: boolean
|
||||
good_snapshot?: boolean
|
||||
invoice_id?: boolean
|
||||
good_id?: boolean
|
||||
service_id?: boolean
|
||||
payload?: boolean
|
||||
invoice?: boolean | Prisma.SalesInvoiceDefaultArgs<ExtArgs>
|
||||
good?: boolean | Prisma.SalesInvoiceItem$goodArgs<ExtArgs>
|
||||
service?: boolean | Prisma.SalesInvoiceItem$serviceArgs<ExtArgs>
|
||||
@@ -1043,13 +1079,14 @@ export type SalesInvoiceItemSelectScalar = {
|
||||
created_at?: boolean
|
||||
discount?: boolean
|
||||
notes?: boolean
|
||||
payload?: boolean
|
||||
good_snapshot?: boolean
|
||||
invoice_id?: boolean
|
||||
good_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> = {
|
||||
invoice?: boolean | Prisma.SalesInvoiceDefaultArgs<ExtArgs>
|
||||
good?: boolean | Prisma.SalesInvoiceItem$goodArgs<ExtArgs>
|
||||
@@ -1072,10 +1109,11 @@ export type $SalesInvoiceItemPayload<ExtArgs extends runtime.Types.Extensions.In
|
||||
created_at: Date
|
||||
discount: runtime.Decimal
|
||||
notes: string | null
|
||||
payload: runtime.JsonValue | null
|
||||
good_snapshot: runtime.JsonValue | null
|
||||
invoice_id: string
|
||||
good_id: string | null
|
||||
service_id: string | null
|
||||
payload: runtime.JsonValue | null
|
||||
}, ExtArgs["result"]["salesInvoiceItem"]>
|
||||
composites: {}
|
||||
}
|
||||
@@ -1456,10 +1494,11 @@ export interface SalesInvoiceItemFieldRefs {
|
||||
readonly created_at: Prisma.FieldRef<"SalesInvoiceItem", 'DateTime'>
|
||||
readonly discount: Prisma.FieldRef<"SalesInvoiceItem", 'Decimal'>
|
||||
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 good_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 = {
|
||||
id: string | null
|
||||
invoice_id: string | null
|
||||
amount: runtime.Decimal | null
|
||||
payment_method: $Enums.PaymentMethodType | null
|
||||
paid_at: Date | null
|
||||
created_at: Date | null
|
||||
invoice_id: string | null
|
||||
}
|
||||
|
||||
export type SalesInvoicePaymentMaxAggregateOutputType = {
|
||||
id: string | null
|
||||
invoice_id: string | null
|
||||
amount: runtime.Decimal | null
|
||||
payment_method: $Enums.PaymentMethodType | null
|
||||
paid_at: Date | null
|
||||
created_at: Date | null
|
||||
invoice_id: string | null
|
||||
}
|
||||
|
||||
export type SalesInvoicePaymentCountAggregateOutputType = {
|
||||
id: number
|
||||
invoice_id: number
|
||||
amount: number
|
||||
payment_method: number
|
||||
paid_at: number
|
||||
created_at: number
|
||||
invoice_id: number
|
||||
_all: number
|
||||
}
|
||||
|
||||
@@ -73,29 +73,29 @@ export type SalesInvoicePaymentSumAggregateInputType = {
|
||||
|
||||
export type SalesInvoicePaymentMinAggregateInputType = {
|
||||
id?: true
|
||||
invoice_id?: true
|
||||
amount?: true
|
||||
payment_method?: true
|
||||
paid_at?: true
|
||||
created_at?: true
|
||||
invoice_id?: true
|
||||
}
|
||||
|
||||
export type SalesInvoicePaymentMaxAggregateInputType = {
|
||||
id?: true
|
||||
invoice_id?: true
|
||||
amount?: true
|
||||
payment_method?: true
|
||||
paid_at?: true
|
||||
created_at?: true
|
||||
invoice_id?: true
|
||||
}
|
||||
|
||||
export type SalesInvoicePaymentCountAggregateInputType = {
|
||||
id?: true
|
||||
invoice_id?: true
|
||||
amount?: true
|
||||
payment_method?: true
|
||||
paid_at?: true
|
||||
created_at?: true
|
||||
invoice_id?: true
|
||||
_all?: true
|
||||
}
|
||||
|
||||
@@ -187,11 +187,11 @@ export type SalesInvoicePaymentGroupByArgs<ExtArgs extends runtime.Types.Extensi
|
||||
|
||||
export type SalesInvoicePaymentGroupByOutputType = {
|
||||
id: string
|
||||
invoice_id: string
|
||||
amount: runtime.Decimal
|
||||
payment_method: $Enums.PaymentMethodType
|
||||
paid_at: Date
|
||||
created_at: Date
|
||||
invoice_id: string
|
||||
_count: SalesInvoicePaymentCountAggregateOutputType | null
|
||||
_avg: SalesInvoicePaymentAvgAggregateOutputType | null
|
||||
_sum: SalesInvoicePaymentSumAggregateOutputType | null
|
||||
@@ -219,21 +219,21 @@ export type SalesInvoicePaymentWhereInput = {
|
||||
OR?: Prisma.SalesInvoicePaymentWhereInput[]
|
||||
NOT?: Prisma.SalesInvoicePaymentWhereInput | Prisma.SalesInvoicePaymentWhereInput[]
|
||||
id?: Prisma.StringFilter<"SalesInvoicePayment"> | string
|
||||
invoice_id?: Prisma.StringFilter<"SalesInvoicePayment"> | string
|
||||
amount?: Prisma.DecimalFilter<"SalesInvoicePayment"> | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
payment_method?: Prisma.EnumPaymentMethodTypeFilter<"SalesInvoicePayment"> | $Enums.PaymentMethodType
|
||||
paid_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>
|
||||
}
|
||||
|
||||
export type SalesInvoicePaymentOrderByWithRelationInput = {
|
||||
id?: Prisma.SortOrder
|
||||
invoice_id?: Prisma.SortOrder
|
||||
amount?: Prisma.SortOrder
|
||||
payment_method?: Prisma.SortOrder
|
||||
paid_at?: Prisma.SortOrder
|
||||
created_at?: Prisma.SortOrder
|
||||
invoice_id?: Prisma.SortOrder
|
||||
invoice?: Prisma.SalesInvoiceOrderByWithRelationInput
|
||||
_relevance?: Prisma.SalesInvoicePaymentOrderByRelevanceInput
|
||||
}
|
||||
@@ -243,21 +243,21 @@ export type SalesInvoicePaymentWhereUniqueInput = Prisma.AtLeast<{
|
||||
AND?: Prisma.SalesInvoicePaymentWhereInput | Prisma.SalesInvoicePaymentWhereInput[]
|
||||
OR?: Prisma.SalesInvoicePaymentWhereInput[]
|
||||
NOT?: Prisma.SalesInvoicePaymentWhereInput | Prisma.SalesInvoicePaymentWhereInput[]
|
||||
invoice_id?: Prisma.StringFilter<"SalesInvoicePayment"> | string
|
||||
amount?: Prisma.DecimalFilter<"SalesInvoicePayment"> | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
payment_method?: Prisma.EnumPaymentMethodTypeFilter<"SalesInvoicePayment"> | $Enums.PaymentMethodType
|
||||
paid_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>
|
||||
}, "id">
|
||||
|
||||
export type SalesInvoicePaymentOrderByWithAggregationInput = {
|
||||
id?: Prisma.SortOrder
|
||||
invoice_id?: Prisma.SortOrder
|
||||
amount?: Prisma.SortOrder
|
||||
payment_method?: Prisma.SortOrder
|
||||
paid_at?: Prisma.SortOrder
|
||||
created_at?: Prisma.SortOrder
|
||||
invoice_id?: Prisma.SortOrder
|
||||
_count?: Prisma.SalesInvoicePaymentCountOrderByAggregateInput
|
||||
_avg?: Prisma.SalesInvoicePaymentAvgOrderByAggregateInput
|
||||
_max?: Prisma.SalesInvoicePaymentMaxOrderByAggregateInput
|
||||
@@ -270,11 +270,11 @@ export type SalesInvoicePaymentScalarWhereWithAggregatesInput = {
|
||||
OR?: Prisma.SalesInvoicePaymentScalarWhereWithAggregatesInput[]
|
||||
NOT?: Prisma.SalesInvoicePaymentScalarWhereWithAggregatesInput | Prisma.SalesInvoicePaymentScalarWhereWithAggregatesInput[]
|
||||
id?: Prisma.StringWithAggregatesFilter<"SalesInvoicePayment"> | string
|
||||
invoice_id?: Prisma.StringWithAggregatesFilter<"SalesInvoicePayment"> | string
|
||||
amount?: Prisma.DecimalWithAggregatesFilter<"SalesInvoicePayment"> | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
payment_method?: Prisma.EnumPaymentMethodTypeWithAggregatesFilter<"SalesInvoicePayment"> | $Enums.PaymentMethodType
|
||||
paid_at?: Prisma.DateTimeWithAggregatesFilter<"SalesInvoicePayment"> | Date | string
|
||||
created_at?: Prisma.DateTimeWithAggregatesFilter<"SalesInvoicePayment"> | Date | string
|
||||
invoice_id?: Prisma.StringWithAggregatesFilter<"SalesInvoicePayment"> | string
|
||||
}
|
||||
|
||||
export type SalesInvoicePaymentCreateInput = {
|
||||
@@ -288,11 +288,11 @@ export type SalesInvoicePaymentCreateInput = {
|
||||
|
||||
export type SalesInvoicePaymentUncheckedCreateInput = {
|
||||
id?: string
|
||||
invoice_id: string
|
||||
amount: runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
payment_method: $Enums.PaymentMethodType
|
||||
paid_at: Date | string
|
||||
created_at?: Date | string
|
||||
invoice_id: string
|
||||
}
|
||||
|
||||
export type SalesInvoicePaymentUpdateInput = {
|
||||
@@ -306,20 +306,20 @@ export type SalesInvoicePaymentUpdateInput = {
|
||||
|
||||
export type SalesInvoicePaymentUncheckedUpdateInput = {
|
||||
id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
invoice_id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
amount?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
payment_method?: Prisma.EnumPaymentMethodTypeFieldUpdateOperationsInput | $Enums.PaymentMethodType
|
||||
paid_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
invoice_id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
}
|
||||
|
||||
export type SalesInvoicePaymentCreateManyInput = {
|
||||
id?: string
|
||||
invoice_id: string
|
||||
amount: runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
payment_method: $Enums.PaymentMethodType
|
||||
paid_at: Date | string
|
||||
created_at?: Date | string
|
||||
invoice_id: string
|
||||
}
|
||||
|
||||
export type SalesInvoicePaymentUpdateManyMutationInput = {
|
||||
@@ -332,11 +332,11 @@ export type SalesInvoicePaymentUpdateManyMutationInput = {
|
||||
|
||||
export type SalesInvoicePaymentUncheckedUpdateManyInput = {
|
||||
id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
invoice_id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
amount?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
payment_method?: Prisma.EnumPaymentMethodTypeFieldUpdateOperationsInput | $Enums.PaymentMethodType
|
||||
paid_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
invoice_id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
}
|
||||
|
||||
export type SalesInvoicePaymentListRelationFilter = {
|
||||
@@ -357,11 +357,11 @@ export type SalesInvoicePaymentOrderByRelevanceInput = {
|
||||
|
||||
export type SalesInvoicePaymentCountOrderByAggregateInput = {
|
||||
id?: Prisma.SortOrder
|
||||
invoice_id?: Prisma.SortOrder
|
||||
amount?: Prisma.SortOrder
|
||||
payment_method?: Prisma.SortOrder
|
||||
paid_at?: Prisma.SortOrder
|
||||
created_at?: Prisma.SortOrder
|
||||
invoice_id?: Prisma.SortOrder
|
||||
}
|
||||
|
||||
export type SalesInvoicePaymentAvgOrderByAggregateInput = {
|
||||
@@ -370,20 +370,20 @@ export type SalesInvoicePaymentAvgOrderByAggregateInput = {
|
||||
|
||||
export type SalesInvoicePaymentMaxOrderByAggregateInput = {
|
||||
id?: Prisma.SortOrder
|
||||
invoice_id?: Prisma.SortOrder
|
||||
amount?: Prisma.SortOrder
|
||||
payment_method?: Prisma.SortOrder
|
||||
paid_at?: Prisma.SortOrder
|
||||
created_at?: Prisma.SortOrder
|
||||
invoice_id?: Prisma.SortOrder
|
||||
}
|
||||
|
||||
export type SalesInvoicePaymentMinOrderByAggregateInput = {
|
||||
id?: Prisma.SortOrder
|
||||
invoice_id?: Prisma.SortOrder
|
||||
amount?: Prisma.SortOrder
|
||||
payment_method?: Prisma.SortOrder
|
||||
paid_at?: Prisma.SortOrder
|
||||
created_at?: Prisma.SortOrder
|
||||
invoice_id?: Prisma.SortOrder
|
||||
}
|
||||
|
||||
export type SalesInvoicePaymentSumOrderByAggregateInput = {
|
||||
@@ -483,11 +483,11 @@ export type SalesInvoicePaymentScalarWhereInput = {
|
||||
OR?: Prisma.SalesInvoicePaymentScalarWhereInput[]
|
||||
NOT?: Prisma.SalesInvoicePaymentScalarWhereInput | Prisma.SalesInvoicePaymentScalarWhereInput[]
|
||||
id?: Prisma.StringFilter<"SalesInvoicePayment"> | string
|
||||
invoice_id?: Prisma.StringFilter<"SalesInvoicePayment"> | string
|
||||
amount?: Prisma.DecimalFilter<"SalesInvoicePayment"> | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
payment_method?: Prisma.EnumPaymentMethodTypeFilter<"SalesInvoicePayment"> | $Enums.PaymentMethodType
|
||||
paid_at?: Prisma.DateTimeFilter<"SalesInvoicePayment"> | Date | string
|
||||
created_at?: Prisma.DateTimeFilter<"SalesInvoicePayment"> | Date | string
|
||||
invoice_id?: Prisma.StringFilter<"SalesInvoicePayment"> | string
|
||||
}
|
||||
|
||||
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<{
|
||||
id?: boolean
|
||||
invoice_id?: boolean
|
||||
amount?: boolean
|
||||
payment_method?: boolean
|
||||
paid_at?: boolean
|
||||
created_at?: boolean
|
||||
invoice_id?: boolean
|
||||
invoice?: boolean | Prisma.SalesInvoiceDefaultArgs<ExtArgs>
|
||||
}, ExtArgs["result"]["salesInvoicePayment"]>
|
||||
|
||||
@@ -538,14 +538,14 @@ export type SalesInvoicePaymentSelect<ExtArgs extends runtime.Types.Extensions.I
|
||||
|
||||
export type SalesInvoicePaymentSelectScalar = {
|
||||
id?: boolean
|
||||
invoice_id?: boolean
|
||||
amount?: boolean
|
||||
payment_method?: boolean
|
||||
paid_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> = {
|
||||
invoice?: boolean | Prisma.SalesInvoiceDefaultArgs<ExtArgs>
|
||||
}
|
||||
@@ -557,11 +557,11 @@ export type $SalesInvoicePaymentPayload<ExtArgs extends runtime.Types.Extensions
|
||||
}
|
||||
scalars: runtime.Types.Extensions.GetPayloadResult<{
|
||||
id: string
|
||||
invoice_id: string
|
||||
amount: runtime.Decimal
|
||||
payment_method: $Enums.PaymentMethodType
|
||||
paid_at: Date
|
||||
created_at: Date
|
||||
invoice_id: string
|
||||
}, ExtArgs["result"]["salesInvoicePayment"]>
|
||||
composites: {}
|
||||
}
|
||||
@@ -933,11 +933,11 @@ export interface Prisma__SalesInvoicePaymentClient<T, Null = never, ExtArgs exte
|
||||
*/
|
||||
export interface SalesInvoicePaymentFieldRefs {
|
||||
readonly id: Prisma.FieldRef<"SalesInvoicePayment", 'String'>
|
||||
readonly invoice_id: Prisma.FieldRef<"SalesInvoicePayment", 'String'>
|
||||
readonly amount: Prisma.FieldRef<"SalesInvoicePayment", 'Decimal'>
|
||||
readonly payment_method: Prisma.FieldRef<"SalesInvoicePayment", 'PaymentMethodType'>
|
||||
readonly paid_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 {
|
||||
constructor(private readonly prisma: PrismaService) {}
|
||||
|
||||
private readonly now = new Date()
|
||||
|
||||
private readonly defaultSelect: ConsumerSelect = {
|
||||
id: true,
|
||||
type: true,
|
||||
...QUERY_CONSTANTS.CONSUMER.infoSelect,
|
||||
...QUERY_CONSTANTS.CONSUMER.activeBusinessCount,
|
||||
status: 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() {
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
import { QUERY_CONSTANTS } from '@/common/queryConstants'
|
||||
import { ComplexSelect } from '@/generated/prisma/models'
|
||||
import { PrismaService } from '@/prisma/prisma.service'
|
||||
import { BadRequestException, Injectable } from '@nestjs/common'
|
||||
@@ -53,8 +54,6 @@ export class BusinessActivityComplexesService {
|
||||
data: CreateConsumerComplexDto,
|
||||
) {
|
||||
const complex = await this.prisma.$transaction(async tx => {
|
||||
const now = new Date()
|
||||
|
||||
const relatedLicense = await tx.licenseAccountAllocation.findFirst({
|
||||
where: {
|
||||
license_activation: {
|
||||
@@ -62,22 +61,7 @@ export class BusinessActivityComplexesService {
|
||||
id: business_activity_id,
|
||||
consumer_id,
|
||||
},
|
||||
OR: [
|
||||
{
|
||||
expires_at: {
|
||||
gte: now,
|
||||
},
|
||||
},
|
||||
{
|
||||
license_renews: {
|
||||
some: {
|
||||
expires_at: {
|
||||
gte: now,
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
],
|
||||
...QUERY_CONSTANTS.LICENSE_ACTIVATION.activeOnDate(),
|
||||
},
|
||||
account_id: null,
|
||||
},
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
import { QUERY_CONSTANTS } from '@/common/queryConstants'
|
||||
import { PasswordUtil } from '@/common/utils/password.util'
|
||||
import {
|
||||
AccountStatus,
|
||||
@@ -189,22 +190,7 @@ export class ComplexPosesService {
|
||||
business_activity: {
|
||||
consumer_id,
|
||||
},
|
||||
OR: [
|
||||
{
|
||||
expires_at: {
|
||||
gte: now,
|
||||
},
|
||||
},
|
||||
{
|
||||
license_renews: {
|
||||
some: {
|
||||
expires_at: {
|
||||
gte: now,
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
],
|
||||
...QUERY_CONSTANTS.LICENSE_ACTIVATION.activeOnDate(),
|
||||
},
|
||||
},
|
||||
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 { Controller, Get, Param } from '@nestjs/common'
|
||||
import { Body, Controller, Get, Param, Post } from '@nestjs/common'
|
||||
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 type { SaleInvoicesServiceFindAllResponseDto, SaleInvoicesServiceFindOneResponseDto } from './dto/saleInvoices-response.dto'
|
||||
|
||||
@ApiTags('ConsumerSaleInvoices')
|
||||
@Controller('consumer/sale-invoices')
|
||||
@@ -10,12 +14,30 @@ export class StatisticsController {
|
||||
constructor(private readonly service: SaleInvoicesService) {}
|
||||
|
||||
@Get('')
|
||||
async findAll(@TokenAccount('userId') consumerId: string): Promise<SaleInvoicesServiceFindAllResponseDto> {
|
||||
async findAll(
|
||||
@TokenAccount('userId') consumerId: string,
|
||||
): Promise<SaleInvoicesServiceFindAllResponseDto> {
|
||||
return this.service.findAll(consumerId)
|
||||
}
|
||||
|
||||
@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)
|
||||
}
|
||||
|
||||
@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 { StatisticsController } from './saleInvoices.controller'
|
||||
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({
|
||||
imports: [PrismaModule],
|
||||
controllers: [StatisticsController],
|
||||
providers: [SaleInvoicesService],
|
||||
providers: [
|
||||
SaleInvoicesService,
|
||||
SalesInvoiceTaxService,
|
||||
SalesInvoiceTaxSwitchService,
|
||||
NamaTaxSwitchAdapter,
|
||||
],
|
||||
exports: [SaleInvoicesService],
|
||||
})
|
||||
export class ConsumerSaleInvoicesModule {}
|
||||
|
||||
@@ -4,12 +4,16 @@ import {
|
||||
SalesInvoiceWhereUniqueInput,
|
||||
} from '@/generated/prisma/models'
|
||||
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 { SalesInvoiceTaxService } from './tax/sales-invoice-tax.service'
|
||||
|
||||
@Injectable()
|
||||
export class SaleInvoicesService {
|
||||
constructor(private readonly prisma: PrismaService) {}
|
||||
constructor(
|
||||
private readonly prisma: PrismaService,
|
||||
private salesInvoiceTaxService: SalesInvoiceTaxService,
|
||||
) {}
|
||||
|
||||
private readonly defaultSelect: SalesInvoiceSelect = {
|
||||
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) {
|
||||
@@ -139,4 +158,26 @@ export class SaleInvoicesService {
|
||||
})
|
||||
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'
|
||||
|
||||
type BusinessActivityAccountQuotaClient = {
|
||||
@@ -27,31 +28,13 @@ export const getBusinessActivityRemainingAccounts = async (
|
||||
): Promise<BusinessActivityRemainingAccounts> => {
|
||||
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({
|
||||
where: {
|
||||
business_activity_id,
|
||||
business_activity: {
|
||||
consumer_id,
|
||||
},
|
||||
OR: [
|
||||
{
|
||||
expires_at: {
|
||||
gte: startOfDay,
|
||||
},
|
||||
},
|
||||
{
|
||||
license_renews: {
|
||||
some: {
|
||||
expires_at: {
|
||||
gte: startOfDay,
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
],
|
||||
...QUERY_CONSTANTS.LICENSE_ACTIVATION.activeOnDate(),
|
||||
},
|
||||
select: {
|
||||
license: {
|
||||
|
||||
+2
-16
@@ -1,3 +1,4 @@
|
||||
import { QUERY_CONSTANTS } from '@/common/queryConstants'
|
||||
import { PrismaService } from '@/prisma/prisma.service'
|
||||
import { BadRequestException, Injectable } from '@nestjs/common'
|
||||
import { ResponseMapper } from 'common/response/response-mapper'
|
||||
@@ -40,22 +41,7 @@ export class PartnerBusinessActivityAccountsChargeService {
|
||||
],
|
||||
},
|
||||
},
|
||||
OR: [
|
||||
{
|
||||
expires_at: {
|
||||
gte: startOfDay,
|
||||
},
|
||||
},
|
||||
{
|
||||
license_renews: {
|
||||
some: {
|
||||
expires_at: {
|
||||
gte: startOfDay,
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
],
|
||||
...QUERY_CONSTANTS.LICENSE_ACTIVATION.activeOnDate(),
|
||||
},
|
||||
select: {
|
||||
id: true,
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
import { QUERY_CONSTANTS } from '@/common/queryConstants'
|
||||
import { ComplexSelect, ComplexWhereInput } from '@/generated/prisma/models'
|
||||
import { PrismaService } from '@/prisma/prisma.service'
|
||||
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) {
|
||||
const complexes = await this.prisma.complex.findMany({
|
||||
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(
|
||||
@@ -67,8 +83,6 @@ export class BusinessActivityComplexesService {
|
||||
|
||||
async create(partner_id: string, business_id: string, data: CreateComplexDto) {
|
||||
const complex = this.prisma.$transaction(async tx => {
|
||||
const now = new Date()
|
||||
|
||||
const relatedLicense = await tx.licenseAccountAllocation.findFirst({
|
||||
where: {
|
||||
license_activation: {
|
||||
@@ -80,22 +94,7 @@ export class BusinessActivityComplexesService {
|
||||
business_activity: {
|
||||
id: business_id,
|
||||
},
|
||||
OR: [
|
||||
{
|
||||
expires_at: {
|
||||
gte: now,
|
||||
},
|
||||
},
|
||||
{
|
||||
license_renews: {
|
||||
some: {
|
||||
expires_at: {
|
||||
gte: now,
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
],
|
||||
...QUERY_CONSTANTS.LICENSE_ACTIVATION.activeOnDate(),
|
||||
},
|
||||
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 {
|
||||
AccountStatus,
|
||||
@@ -77,7 +79,7 @@ export class ComplexPosesService {
|
||||
business_activity: {
|
||||
id: business_activity_id,
|
||||
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) {
|
||||
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,
|
||||
})
|
||||
|
||||
@@ -126,29 +130,12 @@ export class ComplexPosesService {
|
||||
data: CreatePosDto,
|
||||
) {
|
||||
const pos = this.prisma.$transaction(async tx => {
|
||||
const now = new Date()
|
||||
|
||||
const activeAccountAllocation = await tx.licenseAccountAllocation.findFirst({
|
||||
where: {
|
||||
account_id: null,
|
||||
license_activation: {
|
||||
business_activity_id,
|
||||
OR: [
|
||||
{
|
||||
expires_at: {
|
||||
gte: now,
|
||||
},
|
||||
},
|
||||
{
|
||||
license_renews: {
|
||||
some: {
|
||||
expires_at: {
|
||||
gte: now,
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
],
|
||||
...QUERY_CONSTANTS.LICENSE_ACTIVATION.activeOnDate(),
|
||||
license: {
|
||||
charge_transaction: {
|
||||
partner_id,
|
||||
|
||||
+8
@@ -10,6 +10,14 @@ export class CreateBusinessActivitiesDto {
|
||||
@ApiProperty({ required: true })
|
||||
economic_code: string
|
||||
|
||||
@IsString()
|
||||
@ApiProperty({ required: true })
|
||||
fiscal_id: string
|
||||
|
||||
@IsString()
|
||||
@ApiProperty({ required: true })
|
||||
partner_token: string
|
||||
|
||||
@IsString()
|
||||
@ApiProperty({ required: true })
|
||||
guild_id: string
|
||||
|
||||
@@ -31,9 +31,10 @@ export class PartnerConsumersService {
|
||||
|
||||
defaultSelect: ConsumerSelect = {
|
||||
id: true,
|
||||
...QUERY_CONSTANTS.CONSUMER.infoSelect,
|
||||
status: true,
|
||||
created_at: true,
|
||||
...QUERY_CONSTANTS.CONSUMER.infoSelect,
|
||||
...QUERY_CONSTANTS.CONSUMER.activeBusinessCount,
|
||||
}
|
||||
|
||||
private defaultWhere = (partner_id: string): ConsumerWhereInput => ({
|
||||
@@ -119,8 +120,7 @@ export class PartnerConsumersService {
|
||||
throw new BadRequestException(`تعداد لایسنسهای فعلی شما به پایان رسیده است.`)
|
||||
}
|
||||
|
||||
const { username, password, customer, ...rest } = data
|
||||
const { individual, legal } = customer
|
||||
const { username, password, individual, legal, ...rest } = data
|
||||
|
||||
const createConsumerData: ConsumerCreateInput = {
|
||||
...rest,
|
||||
@@ -228,7 +228,15 @@ export class PartnerConsumersService {
|
||||
...(this.defaultWhere(partner_id) as any),
|
||||
id,
|
||||
},
|
||||
data,
|
||||
data: {
|
||||
status: data.status,
|
||||
legal: {
|
||||
update: data.legal,
|
||||
},
|
||||
individual: {
|
||||
update: data.individual,
|
||||
},
|
||||
},
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
@@ -16,12 +16,13 @@ export class CreateConsumerDto {
|
||||
@ApiProperty({ required: true })
|
||||
password: string
|
||||
|
||||
@ApiProperty({ required: true })
|
||||
@ApiProperty({ required: false })
|
||||
@IsObject()
|
||||
customer: {
|
||||
individual?: Omit<ConsumerIndividual, 'partner_id' | 'consumer_id'>
|
||||
legal?: Omit<ConsumerLegal, 'partner_id' | 'consumer_id'>
|
||||
}
|
||||
individual?: Omit<ConsumerIndividual, 'partner_id' | 'consumer_id'>
|
||||
|
||||
@ApiProperty({ required: false })
|
||||
@IsObject()
|
||||
legal?: Omit<ConsumerLegal, 'partner_id' | 'consumer_id'>
|
||||
}
|
||||
export class UpdateConsumerDto extends OmitType(PartialType(CreateConsumerDto), [
|
||||
'password',
|
||||
|
||||
@@ -26,8 +26,6 @@ export interface PartnerLicenseActivationChargeTransactionResponseDto {
|
||||
|
||||
export interface PartnerLicenseActivationLicenseResponseDto {
|
||||
id: string
|
||||
accounts_limit: number
|
||||
charge_transaction: PartnerLicenseActivationChargeTransactionResponseDto
|
||||
}
|
||||
|
||||
export interface PartnerLicenseActivationCountResponseDto {
|
||||
@@ -42,7 +40,7 @@ export interface PartnerLicenseActivationResponseDto {
|
||||
updated_at: Date
|
||||
business_activity: PartnerLicenseActivationBusinessActivityResponseDto
|
||||
license: PartnerLicenseActivationLicenseResponseDto
|
||||
_count: PartnerLicenseActivationCountResponseDto
|
||||
account_allocation_count: Number
|
||||
}
|
||||
|
||||
export type PartnerLicensesServiceFindAllResponseDto = Awaited<
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
import {
|
||||
PartnerLicenseActivationBusinessActivityResponseDto,
|
||||
PartnerLicenseActivationChargeTransactionResponseDto,
|
||||
PartnerLicenseActivationConsumerResponseDto,
|
||||
PartnerLicenseActivationCountResponseDto,
|
||||
PartnerLicenseActivationLicenseResponseDto,
|
||||
@@ -35,8 +34,6 @@ type PartnerLicenseActivationChargeTransactionQueryResult = {
|
||||
|
||||
type PartnerLicenseActivationLicenseQueryResult = {
|
||||
id: string
|
||||
accounts_limit: number
|
||||
charge_transaction: PartnerLicenseActivationChargeTransactionQueryResult
|
||||
}
|
||||
|
||||
type PartnerLicenseActivationQueryResult = {
|
||||
@@ -62,7 +59,9 @@ export const mapPartnerLicenseActivationConsumer = (
|
||||
first_name: individual?.first_name ?? null,
|
||||
last_name: individual?.last_name ?? 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,
|
||||
}
|
||||
}
|
||||
@@ -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 = {
|
||||
id: licenseActivation.license.id,
|
||||
accounts_limit: licenseActivation.license.accounts_limit,
|
||||
charge_transaction: chargeTransaction,
|
||||
}
|
||||
|
||||
return {
|
||||
@@ -99,6 +89,6 @@ export const mapPartnerLicenseActivation = (
|
||||
updated_at: licenseActivation.updated_at,
|
||||
business_activity: businessActivity,
|
||||
license,
|
||||
_count: licenseActivation._count,
|
||||
account_allocation_count: licenseActivation._count.account_allocations,
|
||||
}
|
||||
}
|
||||
|
||||
@@ -11,10 +11,7 @@ export class PartnerLicensesService {
|
||||
|
||||
constructor(private readonly prisma: PrismaService) {}
|
||||
|
||||
async findAll(
|
||||
partner_id: string,
|
||||
params: PartnerLicensesFilterDto = {},
|
||||
) {
|
||||
async findAll(partner_id: string, params: PartnerLicensesFilterDto = {}) {
|
||||
const { perPage, page, consumer_name, consumer_mobile, expires_from, expires_to } =
|
||||
params
|
||||
|
||||
@@ -137,14 +134,6 @@ export class PartnerLicensesService {
|
||||
license: {
|
||||
select: {
|
||||
id: true,
|
||||
accounts_limit: true,
|
||||
charge_transaction: {
|
||||
select: {
|
||||
id: true,
|
||||
tracking_code: true,
|
||||
activation_expires_at: true,
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
_count: {
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
import { QUERY_CONSTANTS } from '@/common/queryConstants'
|
||||
import { consumerRelatedPartner } from '@/common/queryConstants/consumer'
|
||||
import { BadRequestException } from '@nestjs/common'
|
||||
|
||||
type PartnerBusinessActivityAllocationClient = {
|
||||
@@ -36,26 +38,9 @@ const getPartnerBusinessActivityActiveActivation = async (
|
||||
where: {
|
||||
business_activity_id,
|
||||
business_activity: {
|
||||
consumer: {
|
||||
partner_id,
|
||||
},
|
||||
...consumerRelatedPartner(partner_id),
|
||||
},
|
||||
OR: [
|
||||
{
|
||||
expires_at: {
|
||||
gte: startOfDay,
|
||||
},
|
||||
},
|
||||
{
|
||||
license_renews: {
|
||||
some: {
|
||||
expires_at: {
|
||||
gte: startOfDay,
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
],
|
||||
...QUERY_CONSTANTS.LICENSE_ACTIVATION.activeOnDate(startOfDay),
|
||||
},
|
||||
select: includeAccountAllocations
|
||||
? {
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
import { ApiProperty, PartialType } from '@nestjs/swagger'
|
||||
import {
|
||||
ArrayMinSize,
|
||||
IsBoolean,
|
||||
IsDateString,
|
||||
IsEnum,
|
||||
IsNumber,
|
||||
@@ -42,6 +43,11 @@ export class CreateSalesInvoiceDto {
|
||||
@IsString()
|
||||
notes?: string
|
||||
|
||||
@ApiProperty({ required: false, default: false })
|
||||
@IsOptional()
|
||||
@IsBoolean()
|
||||
send_to_tax?: boolean
|
||||
|
||||
@ApiProperty({ required: true, default: CustomerType.UNKNOWN })
|
||||
@IsEnum(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 { PosInfo } from '@/common/decorators/posInfo.decorator'
|
||||
import type { IPosPayload } from '@/common/models/posPayload.model'
|
||||
import { CreateSalesInvoiceDto } from './dto/create-sales-invoice.dto'
|
||||
import { SalesInvoicesService } from './sales-invoices.service'
|
||||
import type { IPosPayload } from '@/common/models/posPayload.model'
|
||||
|
||||
@Controller('pos/sales_invoices')
|
||||
export class SalesInvoicesController {
|
||||
@@ -23,4 +23,14 @@ export class SalesInvoicesController {
|
||||
create(@Body() data: CreateSalesInvoiceDto, @PosInfo() posInfo: IPosPayload) {
|
||||
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 { 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 { SalesInvoicesService } from './sales-invoices.service'
|
||||
|
||||
@Module({
|
||||
controllers: [SalesInvoicesController],
|
||||
providers: [SalesInvoicesService],
|
||||
providers: [
|
||||
SalesInvoicesService,
|
||||
SalesInvoiceTaxService,
|
||||
SalesInvoiceTaxSwitchService,
|
||||
NamaTaxSwitchAdapter,
|
||||
],
|
||||
})
|
||||
export class PosSalesInvoicesModule {}
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
import { IPosPayload } from '@/common/models/posPayload.model'
|
||||
import { SalesInvoiceCreateInput } from '@/generated/prisma/models'
|
||||
import { PrismaService } from '@/prisma/prisma.service'
|
||||
import { BadRequestException, Injectable } from '@nestjs/common'
|
||||
import { ResponseMapper } from 'common/response/response-mapper'
|
||||
import type { CustomerIndividual, CustomerLegal } from 'generated/prisma/client'
|
||||
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'
|
||||
|
||||
// Define type guard for CustomerIndividual
|
||||
@@ -27,7 +27,10 @@ function isCustomerLegal(customer: any): customer is CustomerLegal {
|
||||
|
||||
@Injectable()
|
||||
export class SalesInvoicesService {
|
||||
constructor(private prisma: PrismaService) {}
|
||||
constructor(
|
||||
private prisma: PrismaService,
|
||||
private salesInvoiceTaxService: SalesInvoiceTaxService,
|
||||
) {}
|
||||
|
||||
findAll() {
|
||||
// TODO: Implement fetching all sales invoices
|
||||
@@ -39,6 +42,28 @@ export class SalesInvoicesService {
|
||||
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) {
|
||||
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) {
|
||||
}
|
||||
|
||||
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,
|
||||
total_amount: data.total_amount,
|
||||
code: 'INV-' + Date.now(),
|
||||
@@ -150,6 +208,13 @@ export class SalesInvoicesService {
|
||||
payload: item.payload
|
||||
? JSON.parse(JSON.stringify(item.payload))
|
||||
: undefined,
|
||||
good_snapshot: item.good_id
|
||||
? JSON.parse(
|
||||
JSON.stringify({
|
||||
good: goodsById.get(item.good_id) || null,
|
||||
}),
|
||||
)
|
||||
: undefined,
|
||||
unit_type: item.unit_type,
|
||||
// pricing_model: item.pricingModel,
|
||||
})),
|
||||
@@ -192,6 +257,10 @@ export class SalesInvoicesService {
|
||||
|
||||
return salesInvoice
|
||||
})
|
||||
if (data.send_to_tax) {
|
||||
await this.salesInvoiceTaxService.send(salesInvoice.id, pos_id)
|
||||
}
|
||||
|
||||
return ResponseMapper.create(salesInvoice)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user