59352 lines
2.3 MiB
59352 lines
2.3 MiB
|
|
/**
|
|
* Client
|
|
**/
|
|
|
|
import * as runtime from '@prisma/client/runtime/library.js';
|
|
import $Types = runtime.Types // general types
|
|
import $Public = runtime.Types.Public
|
|
import $Utils = runtime.Types.Utils
|
|
import $Extensions = runtime.Types.Extensions
|
|
import $Result = runtime.Types.Result
|
|
|
|
export type PrismaPromise<T> = $Public.PrismaPromise<T>
|
|
|
|
|
|
/**
|
|
* Model AppSetting
|
|
*
|
|
*/
|
|
export type AppSetting = $Result.DefaultSelection<Prisma.$AppSettingPayload>
|
|
/**
|
|
* Model User
|
|
*
|
|
*/
|
|
export type User = $Result.DefaultSelection<Prisma.$UserPayload>
|
|
/**
|
|
* Model Role
|
|
*
|
|
*/
|
|
export type Role = $Result.DefaultSelection<Prisma.$RolePayload>
|
|
/**
|
|
* Model Permission
|
|
*
|
|
*/
|
|
export type Permission = $Result.DefaultSelection<Prisma.$PermissionPayload>
|
|
/**
|
|
* Model RolePermission
|
|
*
|
|
*/
|
|
export type RolePermission = $Result.DefaultSelection<Prisma.$RolePermissionPayload>
|
|
/**
|
|
* Model UserRole
|
|
*
|
|
*/
|
|
export type UserRole = $Result.DefaultSelection<Prisma.$UserRolePayload>
|
|
/**
|
|
* Model Customer
|
|
*
|
|
*/
|
|
export type Customer = $Result.DefaultSelection<Prisma.$CustomerPayload>
|
|
/**
|
|
* Model CustomerRepresentative
|
|
*
|
|
*/
|
|
export type CustomerRepresentative = $Result.DefaultSelection<Prisma.$CustomerRepresentativePayload>
|
|
/**
|
|
* Model Address
|
|
*
|
|
*/
|
|
export type Address = $Result.DefaultSelection<Prisma.$AddressPayload>
|
|
/**
|
|
* Model BankCard
|
|
*
|
|
*/
|
|
export type BankCard = $Result.DefaultSelection<Prisma.$BankCardPayload>
|
|
/**
|
|
* Model IdentityDocument
|
|
*
|
|
*/
|
|
export type IdentityDocument = $Result.DefaultSelection<Prisma.$IdentityDocumentPayload>
|
|
/**
|
|
* Model EmailProviderConfig
|
|
*
|
|
*/
|
|
export type EmailProviderConfig = $Result.DefaultSelection<Prisma.$EmailProviderConfigPayload>
|
|
/**
|
|
* Model StressfreiEmail
|
|
*
|
|
*/
|
|
export type StressfreiEmail = $Result.DefaultSelection<Prisma.$StressfreiEmailPayload>
|
|
/**
|
|
* Model CachedEmail
|
|
*
|
|
*/
|
|
export type CachedEmail = $Result.DefaultSelection<Prisma.$CachedEmailPayload>
|
|
/**
|
|
* Model Meter
|
|
*
|
|
*/
|
|
export type Meter = $Result.DefaultSelection<Prisma.$MeterPayload>
|
|
/**
|
|
* Model MeterReading
|
|
*
|
|
*/
|
|
export type MeterReading = $Result.DefaultSelection<Prisma.$MeterReadingPayload>
|
|
/**
|
|
* Model SalesPlatform
|
|
*
|
|
*/
|
|
export type SalesPlatform = $Result.DefaultSelection<Prisma.$SalesPlatformPayload>
|
|
/**
|
|
* Model CancellationPeriod
|
|
*
|
|
*/
|
|
export type CancellationPeriod = $Result.DefaultSelection<Prisma.$CancellationPeriodPayload>
|
|
/**
|
|
* Model ContractDuration
|
|
*
|
|
*/
|
|
export type ContractDuration = $Result.DefaultSelection<Prisma.$ContractDurationPayload>
|
|
/**
|
|
* Model Provider
|
|
*
|
|
*/
|
|
export type Provider = $Result.DefaultSelection<Prisma.$ProviderPayload>
|
|
/**
|
|
* Model Tariff
|
|
*
|
|
*/
|
|
export type Tariff = $Result.DefaultSelection<Prisma.$TariffPayload>
|
|
/**
|
|
* Model ContractCategory
|
|
*
|
|
*/
|
|
export type ContractCategory = $Result.DefaultSelection<Prisma.$ContractCategoryPayload>
|
|
/**
|
|
* Model Contract
|
|
*
|
|
*/
|
|
export type Contract = $Result.DefaultSelection<Prisma.$ContractPayload>
|
|
/**
|
|
* Model ContractTask
|
|
*
|
|
*/
|
|
export type ContractTask = $Result.DefaultSelection<Prisma.$ContractTaskPayload>
|
|
/**
|
|
* Model ContractTaskSubtask
|
|
*
|
|
*/
|
|
export type ContractTaskSubtask = $Result.DefaultSelection<Prisma.$ContractTaskSubtaskPayload>
|
|
/**
|
|
* Model EnergyContractDetails
|
|
*
|
|
*/
|
|
export type EnergyContractDetails = $Result.DefaultSelection<Prisma.$EnergyContractDetailsPayload>
|
|
/**
|
|
* Model InternetContractDetails
|
|
*
|
|
*/
|
|
export type InternetContractDetails = $Result.DefaultSelection<Prisma.$InternetContractDetailsPayload>
|
|
/**
|
|
* Model PhoneNumber
|
|
*
|
|
*/
|
|
export type PhoneNumber = $Result.DefaultSelection<Prisma.$PhoneNumberPayload>
|
|
/**
|
|
* Model MobileContractDetails
|
|
*
|
|
*/
|
|
export type MobileContractDetails = $Result.DefaultSelection<Prisma.$MobileContractDetailsPayload>
|
|
/**
|
|
* Model SimCard
|
|
*
|
|
*/
|
|
export type SimCard = $Result.DefaultSelection<Prisma.$SimCardPayload>
|
|
/**
|
|
* Model TvContractDetails
|
|
*
|
|
*/
|
|
export type TvContractDetails = $Result.DefaultSelection<Prisma.$TvContractDetailsPayload>
|
|
/**
|
|
* Model CarInsuranceDetails
|
|
*
|
|
*/
|
|
export type CarInsuranceDetails = $Result.DefaultSelection<Prisma.$CarInsuranceDetailsPayload>
|
|
|
|
/**
|
|
* Enums
|
|
*/
|
|
export namespace $Enums {
|
|
export const CustomerType: {
|
|
PRIVATE: 'PRIVATE',
|
|
BUSINESS: 'BUSINESS'
|
|
};
|
|
|
|
export type CustomerType = (typeof CustomerType)[keyof typeof CustomerType]
|
|
|
|
|
|
export const AddressType: {
|
|
DELIVERY_RESIDENCE: 'DELIVERY_RESIDENCE',
|
|
BILLING: 'BILLING'
|
|
};
|
|
|
|
export type AddressType = (typeof AddressType)[keyof typeof AddressType]
|
|
|
|
|
|
export const DocumentType: {
|
|
ID_CARD: 'ID_CARD',
|
|
PASSPORT: 'PASSPORT',
|
|
DRIVERS_LICENSE: 'DRIVERS_LICENSE',
|
|
OTHER: 'OTHER'
|
|
};
|
|
|
|
export type DocumentType = (typeof DocumentType)[keyof typeof DocumentType]
|
|
|
|
|
|
export const EmailProviderType: {
|
|
PLESK: 'PLESK',
|
|
CPANEL: 'CPANEL',
|
|
DIRECTADMIN: 'DIRECTADMIN'
|
|
};
|
|
|
|
export type EmailProviderType = (typeof EmailProviderType)[keyof typeof EmailProviderType]
|
|
|
|
|
|
export const MailEncryption: {
|
|
SSL: 'SSL',
|
|
STARTTLS: 'STARTTLS',
|
|
NONE: 'NONE'
|
|
};
|
|
|
|
export type MailEncryption = (typeof MailEncryption)[keyof typeof MailEncryption]
|
|
|
|
|
|
export const EmailFolder: {
|
|
INBOX: 'INBOX',
|
|
SENT: 'SENT'
|
|
};
|
|
|
|
export type EmailFolder = (typeof EmailFolder)[keyof typeof EmailFolder]
|
|
|
|
|
|
export const MeterType: {
|
|
ELECTRICITY: 'ELECTRICITY',
|
|
GAS: 'GAS'
|
|
};
|
|
|
|
export type MeterType = (typeof MeterType)[keyof typeof MeterType]
|
|
|
|
|
|
export const ContractType: {
|
|
ELECTRICITY: 'ELECTRICITY',
|
|
GAS: 'GAS',
|
|
DSL: 'DSL',
|
|
CABLE: 'CABLE',
|
|
FIBER: 'FIBER',
|
|
MOBILE: 'MOBILE',
|
|
TV: 'TV',
|
|
CAR_INSURANCE: 'CAR_INSURANCE'
|
|
};
|
|
|
|
export type ContractType = (typeof ContractType)[keyof typeof ContractType]
|
|
|
|
|
|
export const ContractStatus: {
|
|
DRAFT: 'DRAFT',
|
|
PENDING: 'PENDING',
|
|
ACTIVE: 'ACTIVE',
|
|
CANCELLED: 'CANCELLED',
|
|
EXPIRED: 'EXPIRED',
|
|
DEACTIVATED: 'DEACTIVATED'
|
|
};
|
|
|
|
export type ContractStatus = (typeof ContractStatus)[keyof typeof ContractStatus]
|
|
|
|
|
|
export const ContractTaskStatus: {
|
|
OPEN: 'OPEN',
|
|
COMPLETED: 'COMPLETED'
|
|
};
|
|
|
|
export type ContractTaskStatus = (typeof ContractTaskStatus)[keyof typeof ContractTaskStatus]
|
|
|
|
|
|
export const InsuranceType: {
|
|
LIABILITY: 'LIABILITY',
|
|
PARTIAL: 'PARTIAL',
|
|
FULL: 'FULL'
|
|
};
|
|
|
|
export type InsuranceType = (typeof InsuranceType)[keyof typeof InsuranceType]
|
|
|
|
}
|
|
|
|
export type CustomerType = $Enums.CustomerType
|
|
|
|
export const CustomerType: typeof $Enums.CustomerType
|
|
|
|
export type AddressType = $Enums.AddressType
|
|
|
|
export const AddressType: typeof $Enums.AddressType
|
|
|
|
export type DocumentType = $Enums.DocumentType
|
|
|
|
export const DocumentType: typeof $Enums.DocumentType
|
|
|
|
export type EmailProviderType = $Enums.EmailProviderType
|
|
|
|
export const EmailProviderType: typeof $Enums.EmailProviderType
|
|
|
|
export type MailEncryption = $Enums.MailEncryption
|
|
|
|
export const MailEncryption: typeof $Enums.MailEncryption
|
|
|
|
export type EmailFolder = $Enums.EmailFolder
|
|
|
|
export const EmailFolder: typeof $Enums.EmailFolder
|
|
|
|
export type MeterType = $Enums.MeterType
|
|
|
|
export const MeterType: typeof $Enums.MeterType
|
|
|
|
export type ContractType = $Enums.ContractType
|
|
|
|
export const ContractType: typeof $Enums.ContractType
|
|
|
|
export type ContractStatus = $Enums.ContractStatus
|
|
|
|
export const ContractStatus: typeof $Enums.ContractStatus
|
|
|
|
export type ContractTaskStatus = $Enums.ContractTaskStatus
|
|
|
|
export const ContractTaskStatus: typeof $Enums.ContractTaskStatus
|
|
|
|
export type InsuranceType = $Enums.InsuranceType
|
|
|
|
export const InsuranceType: typeof $Enums.InsuranceType
|
|
|
|
/**
|
|
* ## Prisma Client ʲˢ
|
|
*
|
|
* Type-safe database client for TypeScript & Node.js
|
|
* @example
|
|
* ```
|
|
* const prisma = new PrismaClient()
|
|
* // Fetch zero or more AppSettings
|
|
* const appSettings = await prisma.appSetting.findMany()
|
|
* ```
|
|
*
|
|
*
|
|
* Read more in our [docs](https://www.prisma.io/docs/reference/tools-and-interfaces/prisma-client).
|
|
*/
|
|
export class PrismaClient<
|
|
ClientOptions extends Prisma.PrismaClientOptions = Prisma.PrismaClientOptions,
|
|
U = 'log' extends keyof ClientOptions ? ClientOptions['log'] extends Array<Prisma.LogLevel | Prisma.LogDefinition> ? Prisma.GetEvents<ClientOptions['log']> : never : never,
|
|
ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs
|
|
> {
|
|
[K: symbol]: { types: Prisma.TypeMap<ExtArgs>['other'] }
|
|
|
|
/**
|
|
* ## Prisma Client ʲˢ
|
|
*
|
|
* Type-safe database client for TypeScript & Node.js
|
|
* @example
|
|
* ```
|
|
* const prisma = new PrismaClient()
|
|
* // Fetch zero or more AppSettings
|
|
* const appSettings = await prisma.appSetting.findMany()
|
|
* ```
|
|
*
|
|
*
|
|
* Read more in our [docs](https://www.prisma.io/docs/reference/tools-and-interfaces/prisma-client).
|
|
*/
|
|
|
|
constructor(optionsArg ?: Prisma.Subset<ClientOptions, Prisma.PrismaClientOptions>);
|
|
$on<V extends U>(eventType: V, callback: (event: V extends 'query' ? Prisma.QueryEvent : Prisma.LogEvent) => void): void;
|
|
|
|
/**
|
|
* Connect with the database
|
|
*/
|
|
$connect(): $Utils.JsPromise<void>;
|
|
|
|
/**
|
|
* Disconnect from the database
|
|
*/
|
|
$disconnect(): $Utils.JsPromise<void>;
|
|
|
|
/**
|
|
* Add a middleware
|
|
* @deprecated since 4.16.0. For new code, prefer client extensions instead.
|
|
* @see https://pris.ly/d/extensions
|
|
*/
|
|
$use(cb: Prisma.Middleware): void
|
|
|
|
/**
|
|
* Executes a prepared raw query and returns the number of affected rows.
|
|
* @example
|
|
* ```
|
|
* const result = await prisma.$executeRaw`UPDATE User SET cool = ${true} WHERE email = ${'user@email.com'};`
|
|
* ```
|
|
*
|
|
* Read more in our [docs](https://www.prisma.io/docs/reference/tools-and-interfaces/prisma-client/raw-database-access).
|
|
*/
|
|
$executeRaw<T = unknown>(query: TemplateStringsArray | Prisma.Sql, ...values: any[]): Prisma.PrismaPromise<number>;
|
|
|
|
/**
|
|
* Executes a raw query and returns the number of affected rows.
|
|
* Susceptible to SQL injections, see documentation.
|
|
* @example
|
|
* ```
|
|
* const result = await prisma.$executeRawUnsafe('UPDATE User SET cool = $1 WHERE email = $2 ;', true, 'user@email.com')
|
|
* ```
|
|
*
|
|
* Read more in our [docs](https://www.prisma.io/docs/reference/tools-and-interfaces/prisma-client/raw-database-access).
|
|
*/
|
|
$executeRawUnsafe<T = unknown>(query: string, ...values: any[]): Prisma.PrismaPromise<number>;
|
|
|
|
/**
|
|
* Performs a prepared raw query and returns the `SELECT` data.
|
|
* @example
|
|
* ```
|
|
* const result = await prisma.$queryRaw`SELECT * FROM User WHERE id = ${1} OR email = ${'user@email.com'};`
|
|
* ```
|
|
*
|
|
* Read more in our [docs](https://www.prisma.io/docs/reference/tools-and-interfaces/prisma-client/raw-database-access).
|
|
*/
|
|
$queryRaw<T = unknown>(query: TemplateStringsArray | Prisma.Sql, ...values: any[]): Prisma.PrismaPromise<T>;
|
|
|
|
/**
|
|
* Performs a raw query and returns the `SELECT` data.
|
|
* Susceptible to SQL injections, see documentation.
|
|
* @example
|
|
* ```
|
|
* const result = await prisma.$queryRawUnsafe('SELECT * FROM User WHERE id = $1 OR email = $2;', 1, 'user@email.com')
|
|
* ```
|
|
*
|
|
* Read more in our [docs](https://www.prisma.io/docs/reference/tools-and-interfaces/prisma-client/raw-database-access).
|
|
*/
|
|
$queryRawUnsafe<T = unknown>(query: string, ...values: any[]): Prisma.PrismaPromise<T>;
|
|
|
|
|
|
/**
|
|
* Allows the running of a sequence of read/write operations that are guaranteed to either succeed or fail as a whole.
|
|
* @example
|
|
* ```
|
|
* const [george, bob, alice] = await prisma.$transaction([
|
|
* prisma.user.create({ data: { name: 'George' } }),
|
|
* prisma.user.create({ data: { name: 'Bob' } }),
|
|
* prisma.user.create({ data: { name: 'Alice' } }),
|
|
* ])
|
|
* ```
|
|
*
|
|
* Read more in our [docs](https://www.prisma.io/docs/concepts/components/prisma-client/transactions).
|
|
*/
|
|
$transaction<P extends Prisma.PrismaPromise<any>[]>(arg: [...P], options?: { isolationLevel?: Prisma.TransactionIsolationLevel }): $Utils.JsPromise<runtime.Types.Utils.UnwrapTuple<P>>
|
|
|
|
$transaction<R>(fn: (prisma: Omit<PrismaClient, runtime.ITXClientDenyList>) => $Utils.JsPromise<R>, options?: { maxWait?: number, timeout?: number, isolationLevel?: Prisma.TransactionIsolationLevel }): $Utils.JsPromise<R>
|
|
|
|
|
|
$extends: $Extensions.ExtendsHook<"extends", Prisma.TypeMapCb, ExtArgs>
|
|
|
|
/**
|
|
* `prisma.appSetting`: Exposes CRUD operations for the **AppSetting** model.
|
|
* Example usage:
|
|
* ```ts
|
|
* // Fetch zero or more AppSettings
|
|
* const appSettings = await prisma.appSetting.findMany()
|
|
* ```
|
|
*/
|
|
get appSetting(): Prisma.AppSettingDelegate<ExtArgs>;
|
|
|
|
/**
|
|
* `prisma.user`: Exposes CRUD operations for the **User** model.
|
|
* Example usage:
|
|
* ```ts
|
|
* // Fetch zero or more Users
|
|
* const users = await prisma.user.findMany()
|
|
* ```
|
|
*/
|
|
get user(): Prisma.UserDelegate<ExtArgs>;
|
|
|
|
/**
|
|
* `prisma.role`: Exposes CRUD operations for the **Role** model.
|
|
* Example usage:
|
|
* ```ts
|
|
* // Fetch zero or more Roles
|
|
* const roles = await prisma.role.findMany()
|
|
* ```
|
|
*/
|
|
get role(): Prisma.RoleDelegate<ExtArgs>;
|
|
|
|
/**
|
|
* `prisma.permission`: Exposes CRUD operations for the **Permission** model.
|
|
* Example usage:
|
|
* ```ts
|
|
* // Fetch zero or more Permissions
|
|
* const permissions = await prisma.permission.findMany()
|
|
* ```
|
|
*/
|
|
get permission(): Prisma.PermissionDelegate<ExtArgs>;
|
|
|
|
/**
|
|
* `prisma.rolePermission`: Exposes CRUD operations for the **RolePermission** model.
|
|
* Example usage:
|
|
* ```ts
|
|
* // Fetch zero or more RolePermissions
|
|
* const rolePermissions = await prisma.rolePermission.findMany()
|
|
* ```
|
|
*/
|
|
get rolePermission(): Prisma.RolePermissionDelegate<ExtArgs>;
|
|
|
|
/**
|
|
* `prisma.userRole`: Exposes CRUD operations for the **UserRole** model.
|
|
* Example usage:
|
|
* ```ts
|
|
* // Fetch zero or more UserRoles
|
|
* const userRoles = await prisma.userRole.findMany()
|
|
* ```
|
|
*/
|
|
get userRole(): Prisma.UserRoleDelegate<ExtArgs>;
|
|
|
|
/**
|
|
* `prisma.customer`: Exposes CRUD operations for the **Customer** model.
|
|
* Example usage:
|
|
* ```ts
|
|
* // Fetch zero or more Customers
|
|
* const customers = await prisma.customer.findMany()
|
|
* ```
|
|
*/
|
|
get customer(): Prisma.CustomerDelegate<ExtArgs>;
|
|
|
|
/**
|
|
* `prisma.customerRepresentative`: Exposes CRUD operations for the **CustomerRepresentative** model.
|
|
* Example usage:
|
|
* ```ts
|
|
* // Fetch zero or more CustomerRepresentatives
|
|
* const customerRepresentatives = await prisma.customerRepresentative.findMany()
|
|
* ```
|
|
*/
|
|
get customerRepresentative(): Prisma.CustomerRepresentativeDelegate<ExtArgs>;
|
|
|
|
/**
|
|
* `prisma.address`: Exposes CRUD operations for the **Address** model.
|
|
* Example usage:
|
|
* ```ts
|
|
* // Fetch zero or more Addresses
|
|
* const addresses = await prisma.address.findMany()
|
|
* ```
|
|
*/
|
|
get address(): Prisma.AddressDelegate<ExtArgs>;
|
|
|
|
/**
|
|
* `prisma.bankCard`: Exposes CRUD operations for the **BankCard** model.
|
|
* Example usage:
|
|
* ```ts
|
|
* // Fetch zero or more BankCards
|
|
* const bankCards = await prisma.bankCard.findMany()
|
|
* ```
|
|
*/
|
|
get bankCard(): Prisma.BankCardDelegate<ExtArgs>;
|
|
|
|
/**
|
|
* `prisma.identityDocument`: Exposes CRUD operations for the **IdentityDocument** model.
|
|
* Example usage:
|
|
* ```ts
|
|
* // Fetch zero or more IdentityDocuments
|
|
* const identityDocuments = await prisma.identityDocument.findMany()
|
|
* ```
|
|
*/
|
|
get identityDocument(): Prisma.IdentityDocumentDelegate<ExtArgs>;
|
|
|
|
/**
|
|
* `prisma.emailProviderConfig`: Exposes CRUD operations for the **EmailProviderConfig** model.
|
|
* Example usage:
|
|
* ```ts
|
|
* // Fetch zero or more EmailProviderConfigs
|
|
* const emailProviderConfigs = await prisma.emailProviderConfig.findMany()
|
|
* ```
|
|
*/
|
|
get emailProviderConfig(): Prisma.EmailProviderConfigDelegate<ExtArgs>;
|
|
|
|
/**
|
|
* `prisma.stressfreiEmail`: Exposes CRUD operations for the **StressfreiEmail** model.
|
|
* Example usage:
|
|
* ```ts
|
|
* // Fetch zero or more StressfreiEmails
|
|
* const stressfreiEmails = await prisma.stressfreiEmail.findMany()
|
|
* ```
|
|
*/
|
|
get stressfreiEmail(): Prisma.StressfreiEmailDelegate<ExtArgs>;
|
|
|
|
/**
|
|
* `prisma.cachedEmail`: Exposes CRUD operations for the **CachedEmail** model.
|
|
* Example usage:
|
|
* ```ts
|
|
* // Fetch zero or more CachedEmails
|
|
* const cachedEmails = await prisma.cachedEmail.findMany()
|
|
* ```
|
|
*/
|
|
get cachedEmail(): Prisma.CachedEmailDelegate<ExtArgs>;
|
|
|
|
/**
|
|
* `prisma.meter`: Exposes CRUD operations for the **Meter** model.
|
|
* Example usage:
|
|
* ```ts
|
|
* // Fetch zero or more Meters
|
|
* const meters = await prisma.meter.findMany()
|
|
* ```
|
|
*/
|
|
get meter(): Prisma.MeterDelegate<ExtArgs>;
|
|
|
|
/**
|
|
* `prisma.meterReading`: Exposes CRUD operations for the **MeterReading** model.
|
|
* Example usage:
|
|
* ```ts
|
|
* // Fetch zero or more MeterReadings
|
|
* const meterReadings = await prisma.meterReading.findMany()
|
|
* ```
|
|
*/
|
|
get meterReading(): Prisma.MeterReadingDelegate<ExtArgs>;
|
|
|
|
/**
|
|
* `prisma.salesPlatform`: Exposes CRUD operations for the **SalesPlatform** model.
|
|
* Example usage:
|
|
* ```ts
|
|
* // Fetch zero or more SalesPlatforms
|
|
* const salesPlatforms = await prisma.salesPlatform.findMany()
|
|
* ```
|
|
*/
|
|
get salesPlatform(): Prisma.SalesPlatformDelegate<ExtArgs>;
|
|
|
|
/**
|
|
* `prisma.cancellationPeriod`: Exposes CRUD operations for the **CancellationPeriod** model.
|
|
* Example usage:
|
|
* ```ts
|
|
* // Fetch zero or more CancellationPeriods
|
|
* const cancellationPeriods = await prisma.cancellationPeriod.findMany()
|
|
* ```
|
|
*/
|
|
get cancellationPeriod(): Prisma.CancellationPeriodDelegate<ExtArgs>;
|
|
|
|
/**
|
|
* `prisma.contractDuration`: Exposes CRUD operations for the **ContractDuration** model.
|
|
* Example usage:
|
|
* ```ts
|
|
* // Fetch zero or more ContractDurations
|
|
* const contractDurations = await prisma.contractDuration.findMany()
|
|
* ```
|
|
*/
|
|
get contractDuration(): Prisma.ContractDurationDelegate<ExtArgs>;
|
|
|
|
/**
|
|
* `prisma.provider`: Exposes CRUD operations for the **Provider** model.
|
|
* Example usage:
|
|
* ```ts
|
|
* // Fetch zero or more Providers
|
|
* const providers = await prisma.provider.findMany()
|
|
* ```
|
|
*/
|
|
get provider(): Prisma.ProviderDelegate<ExtArgs>;
|
|
|
|
/**
|
|
* `prisma.tariff`: Exposes CRUD operations for the **Tariff** model.
|
|
* Example usage:
|
|
* ```ts
|
|
* // Fetch zero or more Tariffs
|
|
* const tariffs = await prisma.tariff.findMany()
|
|
* ```
|
|
*/
|
|
get tariff(): Prisma.TariffDelegate<ExtArgs>;
|
|
|
|
/**
|
|
* `prisma.contractCategory`: Exposes CRUD operations for the **ContractCategory** model.
|
|
* Example usage:
|
|
* ```ts
|
|
* // Fetch zero or more ContractCategories
|
|
* const contractCategories = await prisma.contractCategory.findMany()
|
|
* ```
|
|
*/
|
|
get contractCategory(): Prisma.ContractCategoryDelegate<ExtArgs>;
|
|
|
|
/**
|
|
* `prisma.contract`: Exposes CRUD operations for the **Contract** model.
|
|
* Example usage:
|
|
* ```ts
|
|
* // Fetch zero or more Contracts
|
|
* const contracts = await prisma.contract.findMany()
|
|
* ```
|
|
*/
|
|
get contract(): Prisma.ContractDelegate<ExtArgs>;
|
|
|
|
/**
|
|
* `prisma.contractTask`: Exposes CRUD operations for the **ContractTask** model.
|
|
* Example usage:
|
|
* ```ts
|
|
* // Fetch zero or more ContractTasks
|
|
* const contractTasks = await prisma.contractTask.findMany()
|
|
* ```
|
|
*/
|
|
get contractTask(): Prisma.ContractTaskDelegate<ExtArgs>;
|
|
|
|
/**
|
|
* `prisma.contractTaskSubtask`: Exposes CRUD operations for the **ContractTaskSubtask** model.
|
|
* Example usage:
|
|
* ```ts
|
|
* // Fetch zero or more ContractTaskSubtasks
|
|
* const contractTaskSubtasks = await prisma.contractTaskSubtask.findMany()
|
|
* ```
|
|
*/
|
|
get contractTaskSubtask(): Prisma.ContractTaskSubtaskDelegate<ExtArgs>;
|
|
|
|
/**
|
|
* `prisma.energyContractDetails`: Exposes CRUD operations for the **EnergyContractDetails** model.
|
|
* Example usage:
|
|
* ```ts
|
|
* // Fetch zero or more EnergyContractDetails
|
|
* const energyContractDetails = await prisma.energyContractDetails.findMany()
|
|
* ```
|
|
*/
|
|
get energyContractDetails(): Prisma.EnergyContractDetailsDelegate<ExtArgs>;
|
|
|
|
/**
|
|
* `prisma.internetContractDetails`: Exposes CRUD operations for the **InternetContractDetails** model.
|
|
* Example usage:
|
|
* ```ts
|
|
* // Fetch zero or more InternetContractDetails
|
|
* const internetContractDetails = await prisma.internetContractDetails.findMany()
|
|
* ```
|
|
*/
|
|
get internetContractDetails(): Prisma.InternetContractDetailsDelegate<ExtArgs>;
|
|
|
|
/**
|
|
* `prisma.phoneNumber`: Exposes CRUD operations for the **PhoneNumber** model.
|
|
* Example usage:
|
|
* ```ts
|
|
* // Fetch zero or more PhoneNumbers
|
|
* const phoneNumbers = await prisma.phoneNumber.findMany()
|
|
* ```
|
|
*/
|
|
get phoneNumber(): Prisma.PhoneNumberDelegate<ExtArgs>;
|
|
|
|
/**
|
|
* `prisma.mobileContractDetails`: Exposes CRUD operations for the **MobileContractDetails** model.
|
|
* Example usage:
|
|
* ```ts
|
|
* // Fetch zero or more MobileContractDetails
|
|
* const mobileContractDetails = await prisma.mobileContractDetails.findMany()
|
|
* ```
|
|
*/
|
|
get mobileContractDetails(): Prisma.MobileContractDetailsDelegate<ExtArgs>;
|
|
|
|
/**
|
|
* `prisma.simCard`: Exposes CRUD operations for the **SimCard** model.
|
|
* Example usage:
|
|
* ```ts
|
|
* // Fetch zero or more SimCards
|
|
* const simCards = await prisma.simCard.findMany()
|
|
* ```
|
|
*/
|
|
get simCard(): Prisma.SimCardDelegate<ExtArgs>;
|
|
|
|
/**
|
|
* `prisma.tvContractDetails`: Exposes CRUD operations for the **TvContractDetails** model.
|
|
* Example usage:
|
|
* ```ts
|
|
* // Fetch zero or more TvContractDetails
|
|
* const tvContractDetails = await prisma.tvContractDetails.findMany()
|
|
* ```
|
|
*/
|
|
get tvContractDetails(): Prisma.TvContractDetailsDelegate<ExtArgs>;
|
|
|
|
/**
|
|
* `prisma.carInsuranceDetails`: Exposes CRUD operations for the **CarInsuranceDetails** model.
|
|
* Example usage:
|
|
* ```ts
|
|
* // Fetch zero or more CarInsuranceDetails
|
|
* const carInsuranceDetails = await prisma.carInsuranceDetails.findMany()
|
|
* ```
|
|
*/
|
|
get carInsuranceDetails(): Prisma.CarInsuranceDetailsDelegate<ExtArgs>;
|
|
}
|
|
|
|
export namespace Prisma {
|
|
export import DMMF = runtime.DMMF
|
|
|
|
export type PrismaPromise<T> = $Public.PrismaPromise<T>
|
|
|
|
/**
|
|
* Validator
|
|
*/
|
|
export import validator = runtime.Public.validator
|
|
|
|
/**
|
|
* Prisma Errors
|
|
*/
|
|
export import PrismaClientKnownRequestError = runtime.PrismaClientKnownRequestError
|
|
export import PrismaClientUnknownRequestError = runtime.PrismaClientUnknownRequestError
|
|
export import PrismaClientRustPanicError = runtime.PrismaClientRustPanicError
|
|
export import PrismaClientInitializationError = runtime.PrismaClientInitializationError
|
|
export import PrismaClientValidationError = runtime.PrismaClientValidationError
|
|
export import NotFoundError = runtime.NotFoundError
|
|
|
|
/**
|
|
* Re-export of sql-template-tag
|
|
*/
|
|
export import sql = runtime.sqltag
|
|
export import empty = runtime.empty
|
|
export import join = runtime.join
|
|
export import raw = runtime.raw
|
|
export import Sql = runtime.Sql
|
|
|
|
|
|
|
|
/**
|
|
* Decimal.js
|
|
*/
|
|
export import Decimal = runtime.Decimal
|
|
|
|
export type DecimalJsLike = runtime.DecimalJsLike
|
|
|
|
/**
|
|
* Metrics
|
|
*/
|
|
export type Metrics = runtime.Metrics
|
|
export type Metric<T> = runtime.Metric<T>
|
|
export type MetricHistogram = runtime.MetricHistogram
|
|
export type MetricHistogramBucket = runtime.MetricHistogramBucket
|
|
|
|
/**
|
|
* Extensions
|
|
*/
|
|
export import Extension = $Extensions.UserArgs
|
|
export import getExtensionContext = runtime.Extensions.getExtensionContext
|
|
export import Args = $Public.Args
|
|
export import Payload = $Public.Payload
|
|
export import Result = $Public.Result
|
|
export import Exact = $Public.Exact
|
|
|
|
/**
|
|
* Prisma Client JS version: 5.22.0
|
|
* Query Engine version: 605197351a3c8bdd595af2d2a9bc3025bca48ea2
|
|
*/
|
|
export type PrismaVersion = {
|
|
client: string
|
|
}
|
|
|
|
export const prismaVersion: PrismaVersion
|
|
|
|
/**
|
|
* Utility Types
|
|
*/
|
|
|
|
|
|
export import JsonObject = runtime.JsonObject
|
|
export import JsonArray = runtime.JsonArray
|
|
export import JsonValue = runtime.JsonValue
|
|
export import InputJsonObject = runtime.InputJsonObject
|
|
export import InputJsonArray = runtime.InputJsonArray
|
|
export import InputJsonValue = runtime.InputJsonValue
|
|
|
|
/**
|
|
* Types of the values used to represent different kinds of `null` values when working with JSON fields.
|
|
*
|
|
* @see https://www.prisma.io/docs/concepts/components/prisma-client/working-with-fields/working-with-json-fields#filtering-on-a-json-field
|
|
*/
|
|
namespace NullTypes {
|
|
/**
|
|
* Type of `Prisma.DbNull`.
|
|
*
|
|
* You cannot use other instances of this class. Please use the `Prisma.DbNull` value.
|
|
*
|
|
* @see https://www.prisma.io/docs/concepts/components/prisma-client/working-with-fields/working-with-json-fields#filtering-on-a-json-field
|
|
*/
|
|
class DbNull {
|
|
private DbNull: never
|
|
private constructor()
|
|
}
|
|
|
|
/**
|
|
* Type of `Prisma.JsonNull`.
|
|
*
|
|
* You cannot use other instances of this class. Please use the `Prisma.JsonNull` value.
|
|
*
|
|
* @see https://www.prisma.io/docs/concepts/components/prisma-client/working-with-fields/working-with-json-fields#filtering-on-a-json-field
|
|
*/
|
|
class JsonNull {
|
|
private JsonNull: never
|
|
private constructor()
|
|
}
|
|
|
|
/**
|
|
* Type of `Prisma.AnyNull`.
|
|
*
|
|
* You cannot use other instances of this class. Please use the `Prisma.AnyNull` value.
|
|
*
|
|
* @see https://www.prisma.io/docs/concepts/components/prisma-client/working-with-fields/working-with-json-fields#filtering-on-a-json-field
|
|
*/
|
|
class AnyNull {
|
|
private AnyNull: never
|
|
private constructor()
|
|
}
|
|
}
|
|
|
|
/**
|
|
* Helper for filtering JSON entries that have `null` on the database (empty on the db)
|
|
*
|
|
* @see https://www.prisma.io/docs/concepts/components/prisma-client/working-with-fields/working-with-json-fields#filtering-on-a-json-field
|
|
*/
|
|
export const DbNull: NullTypes.DbNull
|
|
|
|
/**
|
|
* Helper for filtering JSON entries that have JSON `null` values (not empty on the db)
|
|
*
|
|
* @see https://www.prisma.io/docs/concepts/components/prisma-client/working-with-fields/working-with-json-fields#filtering-on-a-json-field
|
|
*/
|
|
export const JsonNull: NullTypes.JsonNull
|
|
|
|
/**
|
|
* Helper for filtering JSON entries that are `Prisma.DbNull` or `Prisma.JsonNull`
|
|
*
|
|
* @see https://www.prisma.io/docs/concepts/components/prisma-client/working-with-fields/working-with-json-fields#filtering-on-a-json-field
|
|
*/
|
|
export const AnyNull: NullTypes.AnyNull
|
|
|
|
type SelectAndInclude = {
|
|
select: any
|
|
include: any
|
|
}
|
|
|
|
type SelectAndOmit = {
|
|
select: any
|
|
omit: any
|
|
}
|
|
|
|
/**
|
|
* Get the type of the value, that the Promise holds.
|
|
*/
|
|
export type PromiseType<T extends PromiseLike<any>> = T extends PromiseLike<infer U> ? U : T;
|
|
|
|
/**
|
|
* Get the return type of a function which returns a Promise.
|
|
*/
|
|
export type PromiseReturnType<T extends (...args: any) => $Utils.JsPromise<any>> = PromiseType<ReturnType<T>>
|
|
|
|
/**
|
|
* From T, pick a set of properties whose keys are in the union K
|
|
*/
|
|
type Prisma__Pick<T, K extends keyof T> = {
|
|
[P in K]: T[P];
|
|
};
|
|
|
|
|
|
export type Enumerable<T> = T | Array<T>;
|
|
|
|
export type RequiredKeys<T> = {
|
|
[K in keyof T]-?: {} extends Prisma__Pick<T, K> ? never : K
|
|
}[keyof T]
|
|
|
|
export type TruthyKeys<T> = keyof {
|
|
[K in keyof T as T[K] extends false | undefined | null ? never : K]: K
|
|
}
|
|
|
|
export type TrueKeys<T> = TruthyKeys<Prisma__Pick<T, RequiredKeys<T>>>
|
|
|
|
/**
|
|
* Subset
|
|
* @desc From `T` pick properties that exist in `U`. Simple version of Intersection
|
|
*/
|
|
export type Subset<T, U> = {
|
|
[key in keyof T]: key extends keyof U ? T[key] : never;
|
|
};
|
|
|
|
/**
|
|
* SelectSubset
|
|
* @desc From `T` pick properties that exist in `U`. Simple version of Intersection.
|
|
* Additionally, it validates, if both select and include are present. If the case, it errors.
|
|
*/
|
|
export type SelectSubset<T, U> = {
|
|
[key in keyof T]: key extends keyof U ? T[key] : never
|
|
} &
|
|
(T extends SelectAndInclude
|
|
? 'Please either choose `select` or `include`.'
|
|
: T extends SelectAndOmit
|
|
? 'Please either choose `select` or `omit`.'
|
|
: {})
|
|
|
|
/**
|
|
* Subset + Intersection
|
|
* @desc From `T` pick properties that exist in `U` and intersect `K`
|
|
*/
|
|
export type SubsetIntersection<T, U, K> = {
|
|
[key in keyof T]: key extends keyof U ? T[key] : never
|
|
} &
|
|
K
|
|
|
|
type Without<T, U> = { [P in Exclude<keyof T, keyof U>]?: never };
|
|
|
|
/**
|
|
* XOR is needed to have a real mutually exclusive union type
|
|
* https://stackoverflow.com/questions/42123407/does-typescript-support-mutually-exclusive-types
|
|
*/
|
|
type XOR<T, U> =
|
|
T extends object ?
|
|
U extends object ?
|
|
(Without<T, U> & U) | (Without<U, T> & T)
|
|
: U : T
|
|
|
|
|
|
/**
|
|
* Is T a Record?
|
|
*/
|
|
type IsObject<T extends any> = T extends Array<any>
|
|
? False
|
|
: T extends Date
|
|
? False
|
|
: T extends Uint8Array
|
|
? False
|
|
: T extends BigInt
|
|
? False
|
|
: T extends object
|
|
? True
|
|
: False
|
|
|
|
|
|
/**
|
|
* If it's T[], return T
|
|
*/
|
|
export type UnEnumerate<T extends unknown> = T extends Array<infer U> ? U : T
|
|
|
|
/**
|
|
* From ts-toolbelt
|
|
*/
|
|
|
|
type __Either<O extends object, K extends Key> = Omit<O, K> &
|
|
{
|
|
// Merge all but K
|
|
[P in K]: Prisma__Pick<O, P & keyof O> // With K possibilities
|
|
}[K]
|
|
|
|
type EitherStrict<O extends object, K extends Key> = Strict<__Either<O, K>>
|
|
|
|
type EitherLoose<O extends object, K extends Key> = ComputeRaw<__Either<O, K>>
|
|
|
|
type _Either<
|
|
O extends object,
|
|
K extends Key,
|
|
strict extends Boolean
|
|
> = {
|
|
1: EitherStrict<O, K>
|
|
0: EitherLoose<O, K>
|
|
}[strict]
|
|
|
|
type Either<
|
|
O extends object,
|
|
K extends Key,
|
|
strict extends Boolean = 1
|
|
> = O extends unknown ? _Either<O, K, strict> : never
|
|
|
|
export type Union = any
|
|
|
|
type PatchUndefined<O extends object, O1 extends object> = {
|
|
[K in keyof O]: O[K] extends undefined ? At<O1, K> : O[K]
|
|
} & {}
|
|
|
|
/** Helper Types for "Merge" **/
|
|
export type IntersectOf<U extends Union> = (
|
|
U extends unknown ? (k: U) => void : never
|
|
) extends (k: infer I) => void
|
|
? I
|
|
: never
|
|
|
|
export type Overwrite<O extends object, O1 extends object> = {
|
|
[K in keyof O]: K extends keyof O1 ? O1[K] : O[K];
|
|
} & {};
|
|
|
|
type _Merge<U extends object> = IntersectOf<Overwrite<U, {
|
|
[K in keyof U]-?: At<U, K>;
|
|
}>>;
|
|
|
|
type Key = string | number | symbol;
|
|
type AtBasic<O extends object, K extends Key> = K extends keyof O ? O[K] : never;
|
|
type AtStrict<O extends object, K extends Key> = O[K & keyof O];
|
|
type AtLoose<O extends object, K extends Key> = O extends unknown ? AtStrict<O, K> : never;
|
|
export type At<O extends object, K extends Key, strict extends Boolean = 1> = {
|
|
1: AtStrict<O, K>;
|
|
0: AtLoose<O, K>;
|
|
}[strict];
|
|
|
|
export type ComputeRaw<A extends any> = A extends Function ? A : {
|
|
[K in keyof A]: A[K];
|
|
} & {};
|
|
|
|
export type OptionalFlat<O> = {
|
|
[K in keyof O]?: O[K];
|
|
} & {};
|
|
|
|
type _Record<K extends keyof any, T> = {
|
|
[P in K]: T;
|
|
};
|
|
|
|
// cause typescript not to expand types and preserve names
|
|
type NoExpand<T> = T extends unknown ? T : never;
|
|
|
|
// this type assumes the passed object is entirely optional
|
|
type AtLeast<O extends object, K extends string> = NoExpand<
|
|
O extends unknown
|
|
? | (K extends keyof O ? { [P in K]: O[P] } & O : O)
|
|
| {[P in keyof O as P extends K ? K : never]-?: O[P]} & O
|
|
: never>;
|
|
|
|
type _Strict<U, _U = U> = U extends unknown ? U & OptionalFlat<_Record<Exclude<Keys<_U>, keyof U>, never>> : never;
|
|
|
|
export type Strict<U extends object> = ComputeRaw<_Strict<U>>;
|
|
/** End Helper Types for "Merge" **/
|
|
|
|
export type Merge<U extends object> = ComputeRaw<_Merge<Strict<U>>>;
|
|
|
|
/**
|
|
A [[Boolean]]
|
|
*/
|
|
export type Boolean = True | False
|
|
|
|
// /**
|
|
// 1
|
|
// */
|
|
export type True = 1
|
|
|
|
/**
|
|
0
|
|
*/
|
|
export type False = 0
|
|
|
|
export type Not<B extends Boolean> = {
|
|
0: 1
|
|
1: 0
|
|
}[B]
|
|
|
|
export type Extends<A1 extends any, A2 extends any> = [A1] extends [never]
|
|
? 0 // anything `never` is false
|
|
: A1 extends A2
|
|
? 1
|
|
: 0
|
|
|
|
export type Has<U extends Union, U1 extends Union> = Not<
|
|
Extends<Exclude<U1, U>, U1>
|
|
>
|
|
|
|
export type Or<B1 extends Boolean, B2 extends Boolean> = {
|
|
0: {
|
|
0: 0
|
|
1: 1
|
|
}
|
|
1: {
|
|
0: 1
|
|
1: 1
|
|
}
|
|
}[B1][B2]
|
|
|
|
export type Keys<U extends Union> = U extends unknown ? keyof U : never
|
|
|
|
type Cast<A, B> = A extends B ? A : B;
|
|
|
|
export const type: unique symbol;
|
|
|
|
|
|
|
|
/**
|
|
* Used by group by
|
|
*/
|
|
|
|
export type GetScalarType<T, O> = O extends object ? {
|
|
[P in keyof T]: P extends keyof O
|
|
? O[P]
|
|
: never
|
|
} : never
|
|
|
|
type FieldPaths<
|
|
T,
|
|
U = Omit<T, '_avg' | '_sum' | '_count' | '_min' | '_max'>
|
|
> = IsObject<T> extends True ? U : T
|
|
|
|
type GetHavingFields<T> = {
|
|
[K in keyof T]: Or<
|
|
Or<Extends<'OR', K>, Extends<'AND', K>>,
|
|
Extends<'NOT', K>
|
|
> extends True
|
|
? // infer is only needed to not hit TS limit
|
|
// based on the brilliant idea of Pierre-Antoine Mills
|
|
// https://github.com/microsoft/TypeScript/issues/30188#issuecomment-478938437
|
|
T[K] extends infer TK
|
|
? GetHavingFields<UnEnumerate<TK> extends object ? Merge<UnEnumerate<TK>> : never>
|
|
: never
|
|
: {} extends FieldPaths<T[K]>
|
|
? never
|
|
: K
|
|
}[keyof T]
|
|
|
|
/**
|
|
* Convert tuple to union
|
|
*/
|
|
type _TupleToUnion<T> = T extends (infer E)[] ? E : never
|
|
type TupleToUnion<K extends readonly any[]> = _TupleToUnion<K>
|
|
type MaybeTupleToUnion<T> = T extends any[] ? TupleToUnion<T> : T
|
|
|
|
/**
|
|
* Like `Pick`, but additionally can also accept an array of keys
|
|
*/
|
|
type PickEnumerable<T, K extends Enumerable<keyof T> | keyof T> = Prisma__Pick<T, MaybeTupleToUnion<K>>
|
|
|
|
/**
|
|
* Exclude all keys with underscores
|
|
*/
|
|
type ExcludeUnderscoreKeys<T extends string> = T extends `_${string}` ? never : T
|
|
|
|
|
|
export type FieldRef<Model, FieldType> = runtime.FieldRef<Model, FieldType>
|
|
|
|
type FieldRefInputType<Model, FieldType> = Model extends never ? never : FieldRef<Model, FieldType>
|
|
|
|
|
|
export const ModelName: {
|
|
AppSetting: 'AppSetting',
|
|
User: 'User',
|
|
Role: 'Role',
|
|
Permission: 'Permission',
|
|
RolePermission: 'RolePermission',
|
|
UserRole: 'UserRole',
|
|
Customer: 'Customer',
|
|
CustomerRepresentative: 'CustomerRepresentative',
|
|
Address: 'Address',
|
|
BankCard: 'BankCard',
|
|
IdentityDocument: 'IdentityDocument',
|
|
EmailProviderConfig: 'EmailProviderConfig',
|
|
StressfreiEmail: 'StressfreiEmail',
|
|
CachedEmail: 'CachedEmail',
|
|
Meter: 'Meter',
|
|
MeterReading: 'MeterReading',
|
|
SalesPlatform: 'SalesPlatform',
|
|
CancellationPeriod: 'CancellationPeriod',
|
|
ContractDuration: 'ContractDuration',
|
|
Provider: 'Provider',
|
|
Tariff: 'Tariff',
|
|
ContractCategory: 'ContractCategory',
|
|
Contract: 'Contract',
|
|
ContractTask: 'ContractTask',
|
|
ContractTaskSubtask: 'ContractTaskSubtask',
|
|
EnergyContractDetails: 'EnergyContractDetails',
|
|
InternetContractDetails: 'InternetContractDetails',
|
|
PhoneNumber: 'PhoneNumber',
|
|
MobileContractDetails: 'MobileContractDetails',
|
|
SimCard: 'SimCard',
|
|
TvContractDetails: 'TvContractDetails',
|
|
CarInsuranceDetails: 'CarInsuranceDetails'
|
|
};
|
|
|
|
export type ModelName = (typeof ModelName)[keyof typeof ModelName]
|
|
|
|
|
|
export type Datasources = {
|
|
db?: Datasource
|
|
}
|
|
|
|
interface TypeMapCb extends $Utils.Fn<{extArgs: $Extensions.InternalArgs, clientOptions: PrismaClientOptions }, $Utils.Record<string, any>> {
|
|
returns: Prisma.TypeMap<this['params']['extArgs'], this['params']['clientOptions']>
|
|
}
|
|
|
|
export type TypeMap<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs, ClientOptions = {}> = {
|
|
meta: {
|
|
modelProps: "appSetting" | "user" | "role" | "permission" | "rolePermission" | "userRole" | "customer" | "customerRepresentative" | "address" | "bankCard" | "identityDocument" | "emailProviderConfig" | "stressfreiEmail" | "cachedEmail" | "meter" | "meterReading" | "salesPlatform" | "cancellationPeriod" | "contractDuration" | "provider" | "tariff" | "contractCategory" | "contract" | "contractTask" | "contractTaskSubtask" | "energyContractDetails" | "internetContractDetails" | "phoneNumber" | "mobileContractDetails" | "simCard" | "tvContractDetails" | "carInsuranceDetails"
|
|
txIsolationLevel: Prisma.TransactionIsolationLevel
|
|
}
|
|
model: {
|
|
AppSetting: {
|
|
payload: Prisma.$AppSettingPayload<ExtArgs>
|
|
fields: Prisma.AppSettingFieldRefs
|
|
operations: {
|
|
findUnique: {
|
|
args: Prisma.AppSettingFindUniqueArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$AppSettingPayload> | null
|
|
}
|
|
findUniqueOrThrow: {
|
|
args: Prisma.AppSettingFindUniqueOrThrowArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$AppSettingPayload>
|
|
}
|
|
findFirst: {
|
|
args: Prisma.AppSettingFindFirstArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$AppSettingPayload> | null
|
|
}
|
|
findFirstOrThrow: {
|
|
args: Prisma.AppSettingFindFirstOrThrowArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$AppSettingPayload>
|
|
}
|
|
findMany: {
|
|
args: Prisma.AppSettingFindManyArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$AppSettingPayload>[]
|
|
}
|
|
create: {
|
|
args: Prisma.AppSettingCreateArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$AppSettingPayload>
|
|
}
|
|
createMany: {
|
|
args: Prisma.AppSettingCreateManyArgs<ExtArgs>
|
|
result: BatchPayload
|
|
}
|
|
delete: {
|
|
args: Prisma.AppSettingDeleteArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$AppSettingPayload>
|
|
}
|
|
update: {
|
|
args: Prisma.AppSettingUpdateArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$AppSettingPayload>
|
|
}
|
|
deleteMany: {
|
|
args: Prisma.AppSettingDeleteManyArgs<ExtArgs>
|
|
result: BatchPayload
|
|
}
|
|
updateMany: {
|
|
args: Prisma.AppSettingUpdateManyArgs<ExtArgs>
|
|
result: BatchPayload
|
|
}
|
|
upsert: {
|
|
args: Prisma.AppSettingUpsertArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$AppSettingPayload>
|
|
}
|
|
aggregate: {
|
|
args: Prisma.AppSettingAggregateArgs<ExtArgs>
|
|
result: $Utils.Optional<AggregateAppSetting>
|
|
}
|
|
groupBy: {
|
|
args: Prisma.AppSettingGroupByArgs<ExtArgs>
|
|
result: $Utils.Optional<AppSettingGroupByOutputType>[]
|
|
}
|
|
count: {
|
|
args: Prisma.AppSettingCountArgs<ExtArgs>
|
|
result: $Utils.Optional<AppSettingCountAggregateOutputType> | number
|
|
}
|
|
}
|
|
}
|
|
User: {
|
|
payload: Prisma.$UserPayload<ExtArgs>
|
|
fields: Prisma.UserFieldRefs
|
|
operations: {
|
|
findUnique: {
|
|
args: Prisma.UserFindUniqueArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$UserPayload> | null
|
|
}
|
|
findUniqueOrThrow: {
|
|
args: Prisma.UserFindUniqueOrThrowArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$UserPayload>
|
|
}
|
|
findFirst: {
|
|
args: Prisma.UserFindFirstArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$UserPayload> | null
|
|
}
|
|
findFirstOrThrow: {
|
|
args: Prisma.UserFindFirstOrThrowArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$UserPayload>
|
|
}
|
|
findMany: {
|
|
args: Prisma.UserFindManyArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$UserPayload>[]
|
|
}
|
|
create: {
|
|
args: Prisma.UserCreateArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$UserPayload>
|
|
}
|
|
createMany: {
|
|
args: Prisma.UserCreateManyArgs<ExtArgs>
|
|
result: BatchPayload
|
|
}
|
|
delete: {
|
|
args: Prisma.UserDeleteArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$UserPayload>
|
|
}
|
|
update: {
|
|
args: Prisma.UserUpdateArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$UserPayload>
|
|
}
|
|
deleteMany: {
|
|
args: Prisma.UserDeleteManyArgs<ExtArgs>
|
|
result: BatchPayload
|
|
}
|
|
updateMany: {
|
|
args: Prisma.UserUpdateManyArgs<ExtArgs>
|
|
result: BatchPayload
|
|
}
|
|
upsert: {
|
|
args: Prisma.UserUpsertArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$UserPayload>
|
|
}
|
|
aggregate: {
|
|
args: Prisma.UserAggregateArgs<ExtArgs>
|
|
result: $Utils.Optional<AggregateUser>
|
|
}
|
|
groupBy: {
|
|
args: Prisma.UserGroupByArgs<ExtArgs>
|
|
result: $Utils.Optional<UserGroupByOutputType>[]
|
|
}
|
|
count: {
|
|
args: Prisma.UserCountArgs<ExtArgs>
|
|
result: $Utils.Optional<UserCountAggregateOutputType> | number
|
|
}
|
|
}
|
|
}
|
|
Role: {
|
|
payload: Prisma.$RolePayload<ExtArgs>
|
|
fields: Prisma.RoleFieldRefs
|
|
operations: {
|
|
findUnique: {
|
|
args: Prisma.RoleFindUniqueArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$RolePayload> | null
|
|
}
|
|
findUniqueOrThrow: {
|
|
args: Prisma.RoleFindUniqueOrThrowArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$RolePayload>
|
|
}
|
|
findFirst: {
|
|
args: Prisma.RoleFindFirstArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$RolePayload> | null
|
|
}
|
|
findFirstOrThrow: {
|
|
args: Prisma.RoleFindFirstOrThrowArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$RolePayload>
|
|
}
|
|
findMany: {
|
|
args: Prisma.RoleFindManyArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$RolePayload>[]
|
|
}
|
|
create: {
|
|
args: Prisma.RoleCreateArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$RolePayload>
|
|
}
|
|
createMany: {
|
|
args: Prisma.RoleCreateManyArgs<ExtArgs>
|
|
result: BatchPayload
|
|
}
|
|
delete: {
|
|
args: Prisma.RoleDeleteArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$RolePayload>
|
|
}
|
|
update: {
|
|
args: Prisma.RoleUpdateArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$RolePayload>
|
|
}
|
|
deleteMany: {
|
|
args: Prisma.RoleDeleteManyArgs<ExtArgs>
|
|
result: BatchPayload
|
|
}
|
|
updateMany: {
|
|
args: Prisma.RoleUpdateManyArgs<ExtArgs>
|
|
result: BatchPayload
|
|
}
|
|
upsert: {
|
|
args: Prisma.RoleUpsertArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$RolePayload>
|
|
}
|
|
aggregate: {
|
|
args: Prisma.RoleAggregateArgs<ExtArgs>
|
|
result: $Utils.Optional<AggregateRole>
|
|
}
|
|
groupBy: {
|
|
args: Prisma.RoleGroupByArgs<ExtArgs>
|
|
result: $Utils.Optional<RoleGroupByOutputType>[]
|
|
}
|
|
count: {
|
|
args: Prisma.RoleCountArgs<ExtArgs>
|
|
result: $Utils.Optional<RoleCountAggregateOutputType> | number
|
|
}
|
|
}
|
|
}
|
|
Permission: {
|
|
payload: Prisma.$PermissionPayload<ExtArgs>
|
|
fields: Prisma.PermissionFieldRefs
|
|
operations: {
|
|
findUnique: {
|
|
args: Prisma.PermissionFindUniqueArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$PermissionPayload> | null
|
|
}
|
|
findUniqueOrThrow: {
|
|
args: Prisma.PermissionFindUniqueOrThrowArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$PermissionPayload>
|
|
}
|
|
findFirst: {
|
|
args: Prisma.PermissionFindFirstArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$PermissionPayload> | null
|
|
}
|
|
findFirstOrThrow: {
|
|
args: Prisma.PermissionFindFirstOrThrowArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$PermissionPayload>
|
|
}
|
|
findMany: {
|
|
args: Prisma.PermissionFindManyArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$PermissionPayload>[]
|
|
}
|
|
create: {
|
|
args: Prisma.PermissionCreateArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$PermissionPayload>
|
|
}
|
|
createMany: {
|
|
args: Prisma.PermissionCreateManyArgs<ExtArgs>
|
|
result: BatchPayload
|
|
}
|
|
delete: {
|
|
args: Prisma.PermissionDeleteArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$PermissionPayload>
|
|
}
|
|
update: {
|
|
args: Prisma.PermissionUpdateArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$PermissionPayload>
|
|
}
|
|
deleteMany: {
|
|
args: Prisma.PermissionDeleteManyArgs<ExtArgs>
|
|
result: BatchPayload
|
|
}
|
|
updateMany: {
|
|
args: Prisma.PermissionUpdateManyArgs<ExtArgs>
|
|
result: BatchPayload
|
|
}
|
|
upsert: {
|
|
args: Prisma.PermissionUpsertArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$PermissionPayload>
|
|
}
|
|
aggregate: {
|
|
args: Prisma.PermissionAggregateArgs<ExtArgs>
|
|
result: $Utils.Optional<AggregatePermission>
|
|
}
|
|
groupBy: {
|
|
args: Prisma.PermissionGroupByArgs<ExtArgs>
|
|
result: $Utils.Optional<PermissionGroupByOutputType>[]
|
|
}
|
|
count: {
|
|
args: Prisma.PermissionCountArgs<ExtArgs>
|
|
result: $Utils.Optional<PermissionCountAggregateOutputType> | number
|
|
}
|
|
}
|
|
}
|
|
RolePermission: {
|
|
payload: Prisma.$RolePermissionPayload<ExtArgs>
|
|
fields: Prisma.RolePermissionFieldRefs
|
|
operations: {
|
|
findUnique: {
|
|
args: Prisma.RolePermissionFindUniqueArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$RolePermissionPayload> | null
|
|
}
|
|
findUniqueOrThrow: {
|
|
args: Prisma.RolePermissionFindUniqueOrThrowArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$RolePermissionPayload>
|
|
}
|
|
findFirst: {
|
|
args: Prisma.RolePermissionFindFirstArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$RolePermissionPayload> | null
|
|
}
|
|
findFirstOrThrow: {
|
|
args: Prisma.RolePermissionFindFirstOrThrowArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$RolePermissionPayload>
|
|
}
|
|
findMany: {
|
|
args: Prisma.RolePermissionFindManyArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$RolePermissionPayload>[]
|
|
}
|
|
create: {
|
|
args: Prisma.RolePermissionCreateArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$RolePermissionPayload>
|
|
}
|
|
createMany: {
|
|
args: Prisma.RolePermissionCreateManyArgs<ExtArgs>
|
|
result: BatchPayload
|
|
}
|
|
delete: {
|
|
args: Prisma.RolePermissionDeleteArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$RolePermissionPayload>
|
|
}
|
|
update: {
|
|
args: Prisma.RolePermissionUpdateArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$RolePermissionPayload>
|
|
}
|
|
deleteMany: {
|
|
args: Prisma.RolePermissionDeleteManyArgs<ExtArgs>
|
|
result: BatchPayload
|
|
}
|
|
updateMany: {
|
|
args: Prisma.RolePermissionUpdateManyArgs<ExtArgs>
|
|
result: BatchPayload
|
|
}
|
|
upsert: {
|
|
args: Prisma.RolePermissionUpsertArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$RolePermissionPayload>
|
|
}
|
|
aggregate: {
|
|
args: Prisma.RolePermissionAggregateArgs<ExtArgs>
|
|
result: $Utils.Optional<AggregateRolePermission>
|
|
}
|
|
groupBy: {
|
|
args: Prisma.RolePermissionGroupByArgs<ExtArgs>
|
|
result: $Utils.Optional<RolePermissionGroupByOutputType>[]
|
|
}
|
|
count: {
|
|
args: Prisma.RolePermissionCountArgs<ExtArgs>
|
|
result: $Utils.Optional<RolePermissionCountAggregateOutputType> | number
|
|
}
|
|
}
|
|
}
|
|
UserRole: {
|
|
payload: Prisma.$UserRolePayload<ExtArgs>
|
|
fields: Prisma.UserRoleFieldRefs
|
|
operations: {
|
|
findUnique: {
|
|
args: Prisma.UserRoleFindUniqueArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$UserRolePayload> | null
|
|
}
|
|
findUniqueOrThrow: {
|
|
args: Prisma.UserRoleFindUniqueOrThrowArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$UserRolePayload>
|
|
}
|
|
findFirst: {
|
|
args: Prisma.UserRoleFindFirstArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$UserRolePayload> | null
|
|
}
|
|
findFirstOrThrow: {
|
|
args: Prisma.UserRoleFindFirstOrThrowArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$UserRolePayload>
|
|
}
|
|
findMany: {
|
|
args: Prisma.UserRoleFindManyArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$UserRolePayload>[]
|
|
}
|
|
create: {
|
|
args: Prisma.UserRoleCreateArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$UserRolePayload>
|
|
}
|
|
createMany: {
|
|
args: Prisma.UserRoleCreateManyArgs<ExtArgs>
|
|
result: BatchPayload
|
|
}
|
|
delete: {
|
|
args: Prisma.UserRoleDeleteArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$UserRolePayload>
|
|
}
|
|
update: {
|
|
args: Prisma.UserRoleUpdateArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$UserRolePayload>
|
|
}
|
|
deleteMany: {
|
|
args: Prisma.UserRoleDeleteManyArgs<ExtArgs>
|
|
result: BatchPayload
|
|
}
|
|
updateMany: {
|
|
args: Prisma.UserRoleUpdateManyArgs<ExtArgs>
|
|
result: BatchPayload
|
|
}
|
|
upsert: {
|
|
args: Prisma.UserRoleUpsertArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$UserRolePayload>
|
|
}
|
|
aggregate: {
|
|
args: Prisma.UserRoleAggregateArgs<ExtArgs>
|
|
result: $Utils.Optional<AggregateUserRole>
|
|
}
|
|
groupBy: {
|
|
args: Prisma.UserRoleGroupByArgs<ExtArgs>
|
|
result: $Utils.Optional<UserRoleGroupByOutputType>[]
|
|
}
|
|
count: {
|
|
args: Prisma.UserRoleCountArgs<ExtArgs>
|
|
result: $Utils.Optional<UserRoleCountAggregateOutputType> | number
|
|
}
|
|
}
|
|
}
|
|
Customer: {
|
|
payload: Prisma.$CustomerPayload<ExtArgs>
|
|
fields: Prisma.CustomerFieldRefs
|
|
operations: {
|
|
findUnique: {
|
|
args: Prisma.CustomerFindUniqueArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$CustomerPayload> | null
|
|
}
|
|
findUniqueOrThrow: {
|
|
args: Prisma.CustomerFindUniqueOrThrowArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$CustomerPayload>
|
|
}
|
|
findFirst: {
|
|
args: Prisma.CustomerFindFirstArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$CustomerPayload> | null
|
|
}
|
|
findFirstOrThrow: {
|
|
args: Prisma.CustomerFindFirstOrThrowArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$CustomerPayload>
|
|
}
|
|
findMany: {
|
|
args: Prisma.CustomerFindManyArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$CustomerPayload>[]
|
|
}
|
|
create: {
|
|
args: Prisma.CustomerCreateArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$CustomerPayload>
|
|
}
|
|
createMany: {
|
|
args: Prisma.CustomerCreateManyArgs<ExtArgs>
|
|
result: BatchPayload
|
|
}
|
|
delete: {
|
|
args: Prisma.CustomerDeleteArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$CustomerPayload>
|
|
}
|
|
update: {
|
|
args: Prisma.CustomerUpdateArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$CustomerPayload>
|
|
}
|
|
deleteMany: {
|
|
args: Prisma.CustomerDeleteManyArgs<ExtArgs>
|
|
result: BatchPayload
|
|
}
|
|
updateMany: {
|
|
args: Prisma.CustomerUpdateManyArgs<ExtArgs>
|
|
result: BatchPayload
|
|
}
|
|
upsert: {
|
|
args: Prisma.CustomerUpsertArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$CustomerPayload>
|
|
}
|
|
aggregate: {
|
|
args: Prisma.CustomerAggregateArgs<ExtArgs>
|
|
result: $Utils.Optional<AggregateCustomer>
|
|
}
|
|
groupBy: {
|
|
args: Prisma.CustomerGroupByArgs<ExtArgs>
|
|
result: $Utils.Optional<CustomerGroupByOutputType>[]
|
|
}
|
|
count: {
|
|
args: Prisma.CustomerCountArgs<ExtArgs>
|
|
result: $Utils.Optional<CustomerCountAggregateOutputType> | number
|
|
}
|
|
}
|
|
}
|
|
CustomerRepresentative: {
|
|
payload: Prisma.$CustomerRepresentativePayload<ExtArgs>
|
|
fields: Prisma.CustomerRepresentativeFieldRefs
|
|
operations: {
|
|
findUnique: {
|
|
args: Prisma.CustomerRepresentativeFindUniqueArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$CustomerRepresentativePayload> | null
|
|
}
|
|
findUniqueOrThrow: {
|
|
args: Prisma.CustomerRepresentativeFindUniqueOrThrowArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$CustomerRepresentativePayload>
|
|
}
|
|
findFirst: {
|
|
args: Prisma.CustomerRepresentativeFindFirstArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$CustomerRepresentativePayload> | null
|
|
}
|
|
findFirstOrThrow: {
|
|
args: Prisma.CustomerRepresentativeFindFirstOrThrowArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$CustomerRepresentativePayload>
|
|
}
|
|
findMany: {
|
|
args: Prisma.CustomerRepresentativeFindManyArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$CustomerRepresentativePayload>[]
|
|
}
|
|
create: {
|
|
args: Prisma.CustomerRepresentativeCreateArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$CustomerRepresentativePayload>
|
|
}
|
|
createMany: {
|
|
args: Prisma.CustomerRepresentativeCreateManyArgs<ExtArgs>
|
|
result: BatchPayload
|
|
}
|
|
delete: {
|
|
args: Prisma.CustomerRepresentativeDeleteArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$CustomerRepresentativePayload>
|
|
}
|
|
update: {
|
|
args: Prisma.CustomerRepresentativeUpdateArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$CustomerRepresentativePayload>
|
|
}
|
|
deleteMany: {
|
|
args: Prisma.CustomerRepresentativeDeleteManyArgs<ExtArgs>
|
|
result: BatchPayload
|
|
}
|
|
updateMany: {
|
|
args: Prisma.CustomerRepresentativeUpdateManyArgs<ExtArgs>
|
|
result: BatchPayload
|
|
}
|
|
upsert: {
|
|
args: Prisma.CustomerRepresentativeUpsertArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$CustomerRepresentativePayload>
|
|
}
|
|
aggregate: {
|
|
args: Prisma.CustomerRepresentativeAggregateArgs<ExtArgs>
|
|
result: $Utils.Optional<AggregateCustomerRepresentative>
|
|
}
|
|
groupBy: {
|
|
args: Prisma.CustomerRepresentativeGroupByArgs<ExtArgs>
|
|
result: $Utils.Optional<CustomerRepresentativeGroupByOutputType>[]
|
|
}
|
|
count: {
|
|
args: Prisma.CustomerRepresentativeCountArgs<ExtArgs>
|
|
result: $Utils.Optional<CustomerRepresentativeCountAggregateOutputType> | number
|
|
}
|
|
}
|
|
}
|
|
Address: {
|
|
payload: Prisma.$AddressPayload<ExtArgs>
|
|
fields: Prisma.AddressFieldRefs
|
|
operations: {
|
|
findUnique: {
|
|
args: Prisma.AddressFindUniqueArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$AddressPayload> | null
|
|
}
|
|
findUniqueOrThrow: {
|
|
args: Prisma.AddressFindUniqueOrThrowArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$AddressPayload>
|
|
}
|
|
findFirst: {
|
|
args: Prisma.AddressFindFirstArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$AddressPayload> | null
|
|
}
|
|
findFirstOrThrow: {
|
|
args: Prisma.AddressFindFirstOrThrowArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$AddressPayload>
|
|
}
|
|
findMany: {
|
|
args: Prisma.AddressFindManyArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$AddressPayload>[]
|
|
}
|
|
create: {
|
|
args: Prisma.AddressCreateArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$AddressPayload>
|
|
}
|
|
createMany: {
|
|
args: Prisma.AddressCreateManyArgs<ExtArgs>
|
|
result: BatchPayload
|
|
}
|
|
delete: {
|
|
args: Prisma.AddressDeleteArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$AddressPayload>
|
|
}
|
|
update: {
|
|
args: Prisma.AddressUpdateArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$AddressPayload>
|
|
}
|
|
deleteMany: {
|
|
args: Prisma.AddressDeleteManyArgs<ExtArgs>
|
|
result: BatchPayload
|
|
}
|
|
updateMany: {
|
|
args: Prisma.AddressUpdateManyArgs<ExtArgs>
|
|
result: BatchPayload
|
|
}
|
|
upsert: {
|
|
args: Prisma.AddressUpsertArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$AddressPayload>
|
|
}
|
|
aggregate: {
|
|
args: Prisma.AddressAggregateArgs<ExtArgs>
|
|
result: $Utils.Optional<AggregateAddress>
|
|
}
|
|
groupBy: {
|
|
args: Prisma.AddressGroupByArgs<ExtArgs>
|
|
result: $Utils.Optional<AddressGroupByOutputType>[]
|
|
}
|
|
count: {
|
|
args: Prisma.AddressCountArgs<ExtArgs>
|
|
result: $Utils.Optional<AddressCountAggregateOutputType> | number
|
|
}
|
|
}
|
|
}
|
|
BankCard: {
|
|
payload: Prisma.$BankCardPayload<ExtArgs>
|
|
fields: Prisma.BankCardFieldRefs
|
|
operations: {
|
|
findUnique: {
|
|
args: Prisma.BankCardFindUniqueArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$BankCardPayload> | null
|
|
}
|
|
findUniqueOrThrow: {
|
|
args: Prisma.BankCardFindUniqueOrThrowArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$BankCardPayload>
|
|
}
|
|
findFirst: {
|
|
args: Prisma.BankCardFindFirstArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$BankCardPayload> | null
|
|
}
|
|
findFirstOrThrow: {
|
|
args: Prisma.BankCardFindFirstOrThrowArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$BankCardPayload>
|
|
}
|
|
findMany: {
|
|
args: Prisma.BankCardFindManyArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$BankCardPayload>[]
|
|
}
|
|
create: {
|
|
args: Prisma.BankCardCreateArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$BankCardPayload>
|
|
}
|
|
createMany: {
|
|
args: Prisma.BankCardCreateManyArgs<ExtArgs>
|
|
result: BatchPayload
|
|
}
|
|
delete: {
|
|
args: Prisma.BankCardDeleteArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$BankCardPayload>
|
|
}
|
|
update: {
|
|
args: Prisma.BankCardUpdateArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$BankCardPayload>
|
|
}
|
|
deleteMany: {
|
|
args: Prisma.BankCardDeleteManyArgs<ExtArgs>
|
|
result: BatchPayload
|
|
}
|
|
updateMany: {
|
|
args: Prisma.BankCardUpdateManyArgs<ExtArgs>
|
|
result: BatchPayload
|
|
}
|
|
upsert: {
|
|
args: Prisma.BankCardUpsertArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$BankCardPayload>
|
|
}
|
|
aggregate: {
|
|
args: Prisma.BankCardAggregateArgs<ExtArgs>
|
|
result: $Utils.Optional<AggregateBankCard>
|
|
}
|
|
groupBy: {
|
|
args: Prisma.BankCardGroupByArgs<ExtArgs>
|
|
result: $Utils.Optional<BankCardGroupByOutputType>[]
|
|
}
|
|
count: {
|
|
args: Prisma.BankCardCountArgs<ExtArgs>
|
|
result: $Utils.Optional<BankCardCountAggregateOutputType> | number
|
|
}
|
|
}
|
|
}
|
|
IdentityDocument: {
|
|
payload: Prisma.$IdentityDocumentPayload<ExtArgs>
|
|
fields: Prisma.IdentityDocumentFieldRefs
|
|
operations: {
|
|
findUnique: {
|
|
args: Prisma.IdentityDocumentFindUniqueArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$IdentityDocumentPayload> | null
|
|
}
|
|
findUniqueOrThrow: {
|
|
args: Prisma.IdentityDocumentFindUniqueOrThrowArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$IdentityDocumentPayload>
|
|
}
|
|
findFirst: {
|
|
args: Prisma.IdentityDocumentFindFirstArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$IdentityDocumentPayload> | null
|
|
}
|
|
findFirstOrThrow: {
|
|
args: Prisma.IdentityDocumentFindFirstOrThrowArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$IdentityDocumentPayload>
|
|
}
|
|
findMany: {
|
|
args: Prisma.IdentityDocumentFindManyArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$IdentityDocumentPayload>[]
|
|
}
|
|
create: {
|
|
args: Prisma.IdentityDocumentCreateArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$IdentityDocumentPayload>
|
|
}
|
|
createMany: {
|
|
args: Prisma.IdentityDocumentCreateManyArgs<ExtArgs>
|
|
result: BatchPayload
|
|
}
|
|
delete: {
|
|
args: Prisma.IdentityDocumentDeleteArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$IdentityDocumentPayload>
|
|
}
|
|
update: {
|
|
args: Prisma.IdentityDocumentUpdateArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$IdentityDocumentPayload>
|
|
}
|
|
deleteMany: {
|
|
args: Prisma.IdentityDocumentDeleteManyArgs<ExtArgs>
|
|
result: BatchPayload
|
|
}
|
|
updateMany: {
|
|
args: Prisma.IdentityDocumentUpdateManyArgs<ExtArgs>
|
|
result: BatchPayload
|
|
}
|
|
upsert: {
|
|
args: Prisma.IdentityDocumentUpsertArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$IdentityDocumentPayload>
|
|
}
|
|
aggregate: {
|
|
args: Prisma.IdentityDocumentAggregateArgs<ExtArgs>
|
|
result: $Utils.Optional<AggregateIdentityDocument>
|
|
}
|
|
groupBy: {
|
|
args: Prisma.IdentityDocumentGroupByArgs<ExtArgs>
|
|
result: $Utils.Optional<IdentityDocumentGroupByOutputType>[]
|
|
}
|
|
count: {
|
|
args: Prisma.IdentityDocumentCountArgs<ExtArgs>
|
|
result: $Utils.Optional<IdentityDocumentCountAggregateOutputType> | number
|
|
}
|
|
}
|
|
}
|
|
EmailProviderConfig: {
|
|
payload: Prisma.$EmailProviderConfigPayload<ExtArgs>
|
|
fields: Prisma.EmailProviderConfigFieldRefs
|
|
operations: {
|
|
findUnique: {
|
|
args: Prisma.EmailProviderConfigFindUniqueArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$EmailProviderConfigPayload> | null
|
|
}
|
|
findUniqueOrThrow: {
|
|
args: Prisma.EmailProviderConfigFindUniqueOrThrowArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$EmailProviderConfigPayload>
|
|
}
|
|
findFirst: {
|
|
args: Prisma.EmailProviderConfigFindFirstArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$EmailProviderConfigPayload> | null
|
|
}
|
|
findFirstOrThrow: {
|
|
args: Prisma.EmailProviderConfigFindFirstOrThrowArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$EmailProviderConfigPayload>
|
|
}
|
|
findMany: {
|
|
args: Prisma.EmailProviderConfigFindManyArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$EmailProviderConfigPayload>[]
|
|
}
|
|
create: {
|
|
args: Prisma.EmailProviderConfigCreateArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$EmailProviderConfigPayload>
|
|
}
|
|
createMany: {
|
|
args: Prisma.EmailProviderConfigCreateManyArgs<ExtArgs>
|
|
result: BatchPayload
|
|
}
|
|
delete: {
|
|
args: Prisma.EmailProviderConfigDeleteArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$EmailProviderConfigPayload>
|
|
}
|
|
update: {
|
|
args: Prisma.EmailProviderConfigUpdateArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$EmailProviderConfigPayload>
|
|
}
|
|
deleteMany: {
|
|
args: Prisma.EmailProviderConfigDeleteManyArgs<ExtArgs>
|
|
result: BatchPayload
|
|
}
|
|
updateMany: {
|
|
args: Prisma.EmailProviderConfigUpdateManyArgs<ExtArgs>
|
|
result: BatchPayload
|
|
}
|
|
upsert: {
|
|
args: Prisma.EmailProviderConfigUpsertArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$EmailProviderConfigPayload>
|
|
}
|
|
aggregate: {
|
|
args: Prisma.EmailProviderConfigAggregateArgs<ExtArgs>
|
|
result: $Utils.Optional<AggregateEmailProviderConfig>
|
|
}
|
|
groupBy: {
|
|
args: Prisma.EmailProviderConfigGroupByArgs<ExtArgs>
|
|
result: $Utils.Optional<EmailProviderConfigGroupByOutputType>[]
|
|
}
|
|
count: {
|
|
args: Prisma.EmailProviderConfigCountArgs<ExtArgs>
|
|
result: $Utils.Optional<EmailProviderConfigCountAggregateOutputType> | number
|
|
}
|
|
}
|
|
}
|
|
StressfreiEmail: {
|
|
payload: Prisma.$StressfreiEmailPayload<ExtArgs>
|
|
fields: Prisma.StressfreiEmailFieldRefs
|
|
operations: {
|
|
findUnique: {
|
|
args: Prisma.StressfreiEmailFindUniqueArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$StressfreiEmailPayload> | null
|
|
}
|
|
findUniqueOrThrow: {
|
|
args: Prisma.StressfreiEmailFindUniqueOrThrowArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$StressfreiEmailPayload>
|
|
}
|
|
findFirst: {
|
|
args: Prisma.StressfreiEmailFindFirstArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$StressfreiEmailPayload> | null
|
|
}
|
|
findFirstOrThrow: {
|
|
args: Prisma.StressfreiEmailFindFirstOrThrowArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$StressfreiEmailPayload>
|
|
}
|
|
findMany: {
|
|
args: Prisma.StressfreiEmailFindManyArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$StressfreiEmailPayload>[]
|
|
}
|
|
create: {
|
|
args: Prisma.StressfreiEmailCreateArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$StressfreiEmailPayload>
|
|
}
|
|
createMany: {
|
|
args: Prisma.StressfreiEmailCreateManyArgs<ExtArgs>
|
|
result: BatchPayload
|
|
}
|
|
delete: {
|
|
args: Prisma.StressfreiEmailDeleteArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$StressfreiEmailPayload>
|
|
}
|
|
update: {
|
|
args: Prisma.StressfreiEmailUpdateArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$StressfreiEmailPayload>
|
|
}
|
|
deleteMany: {
|
|
args: Prisma.StressfreiEmailDeleteManyArgs<ExtArgs>
|
|
result: BatchPayload
|
|
}
|
|
updateMany: {
|
|
args: Prisma.StressfreiEmailUpdateManyArgs<ExtArgs>
|
|
result: BatchPayload
|
|
}
|
|
upsert: {
|
|
args: Prisma.StressfreiEmailUpsertArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$StressfreiEmailPayload>
|
|
}
|
|
aggregate: {
|
|
args: Prisma.StressfreiEmailAggregateArgs<ExtArgs>
|
|
result: $Utils.Optional<AggregateStressfreiEmail>
|
|
}
|
|
groupBy: {
|
|
args: Prisma.StressfreiEmailGroupByArgs<ExtArgs>
|
|
result: $Utils.Optional<StressfreiEmailGroupByOutputType>[]
|
|
}
|
|
count: {
|
|
args: Prisma.StressfreiEmailCountArgs<ExtArgs>
|
|
result: $Utils.Optional<StressfreiEmailCountAggregateOutputType> | number
|
|
}
|
|
}
|
|
}
|
|
CachedEmail: {
|
|
payload: Prisma.$CachedEmailPayload<ExtArgs>
|
|
fields: Prisma.CachedEmailFieldRefs
|
|
operations: {
|
|
findUnique: {
|
|
args: Prisma.CachedEmailFindUniqueArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$CachedEmailPayload> | null
|
|
}
|
|
findUniqueOrThrow: {
|
|
args: Prisma.CachedEmailFindUniqueOrThrowArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$CachedEmailPayload>
|
|
}
|
|
findFirst: {
|
|
args: Prisma.CachedEmailFindFirstArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$CachedEmailPayload> | null
|
|
}
|
|
findFirstOrThrow: {
|
|
args: Prisma.CachedEmailFindFirstOrThrowArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$CachedEmailPayload>
|
|
}
|
|
findMany: {
|
|
args: Prisma.CachedEmailFindManyArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$CachedEmailPayload>[]
|
|
}
|
|
create: {
|
|
args: Prisma.CachedEmailCreateArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$CachedEmailPayload>
|
|
}
|
|
createMany: {
|
|
args: Prisma.CachedEmailCreateManyArgs<ExtArgs>
|
|
result: BatchPayload
|
|
}
|
|
delete: {
|
|
args: Prisma.CachedEmailDeleteArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$CachedEmailPayload>
|
|
}
|
|
update: {
|
|
args: Prisma.CachedEmailUpdateArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$CachedEmailPayload>
|
|
}
|
|
deleteMany: {
|
|
args: Prisma.CachedEmailDeleteManyArgs<ExtArgs>
|
|
result: BatchPayload
|
|
}
|
|
updateMany: {
|
|
args: Prisma.CachedEmailUpdateManyArgs<ExtArgs>
|
|
result: BatchPayload
|
|
}
|
|
upsert: {
|
|
args: Prisma.CachedEmailUpsertArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$CachedEmailPayload>
|
|
}
|
|
aggregate: {
|
|
args: Prisma.CachedEmailAggregateArgs<ExtArgs>
|
|
result: $Utils.Optional<AggregateCachedEmail>
|
|
}
|
|
groupBy: {
|
|
args: Prisma.CachedEmailGroupByArgs<ExtArgs>
|
|
result: $Utils.Optional<CachedEmailGroupByOutputType>[]
|
|
}
|
|
count: {
|
|
args: Prisma.CachedEmailCountArgs<ExtArgs>
|
|
result: $Utils.Optional<CachedEmailCountAggregateOutputType> | number
|
|
}
|
|
}
|
|
}
|
|
Meter: {
|
|
payload: Prisma.$MeterPayload<ExtArgs>
|
|
fields: Prisma.MeterFieldRefs
|
|
operations: {
|
|
findUnique: {
|
|
args: Prisma.MeterFindUniqueArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$MeterPayload> | null
|
|
}
|
|
findUniqueOrThrow: {
|
|
args: Prisma.MeterFindUniqueOrThrowArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$MeterPayload>
|
|
}
|
|
findFirst: {
|
|
args: Prisma.MeterFindFirstArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$MeterPayload> | null
|
|
}
|
|
findFirstOrThrow: {
|
|
args: Prisma.MeterFindFirstOrThrowArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$MeterPayload>
|
|
}
|
|
findMany: {
|
|
args: Prisma.MeterFindManyArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$MeterPayload>[]
|
|
}
|
|
create: {
|
|
args: Prisma.MeterCreateArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$MeterPayload>
|
|
}
|
|
createMany: {
|
|
args: Prisma.MeterCreateManyArgs<ExtArgs>
|
|
result: BatchPayload
|
|
}
|
|
delete: {
|
|
args: Prisma.MeterDeleteArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$MeterPayload>
|
|
}
|
|
update: {
|
|
args: Prisma.MeterUpdateArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$MeterPayload>
|
|
}
|
|
deleteMany: {
|
|
args: Prisma.MeterDeleteManyArgs<ExtArgs>
|
|
result: BatchPayload
|
|
}
|
|
updateMany: {
|
|
args: Prisma.MeterUpdateManyArgs<ExtArgs>
|
|
result: BatchPayload
|
|
}
|
|
upsert: {
|
|
args: Prisma.MeterUpsertArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$MeterPayload>
|
|
}
|
|
aggregate: {
|
|
args: Prisma.MeterAggregateArgs<ExtArgs>
|
|
result: $Utils.Optional<AggregateMeter>
|
|
}
|
|
groupBy: {
|
|
args: Prisma.MeterGroupByArgs<ExtArgs>
|
|
result: $Utils.Optional<MeterGroupByOutputType>[]
|
|
}
|
|
count: {
|
|
args: Prisma.MeterCountArgs<ExtArgs>
|
|
result: $Utils.Optional<MeterCountAggregateOutputType> | number
|
|
}
|
|
}
|
|
}
|
|
MeterReading: {
|
|
payload: Prisma.$MeterReadingPayload<ExtArgs>
|
|
fields: Prisma.MeterReadingFieldRefs
|
|
operations: {
|
|
findUnique: {
|
|
args: Prisma.MeterReadingFindUniqueArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$MeterReadingPayload> | null
|
|
}
|
|
findUniqueOrThrow: {
|
|
args: Prisma.MeterReadingFindUniqueOrThrowArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$MeterReadingPayload>
|
|
}
|
|
findFirst: {
|
|
args: Prisma.MeterReadingFindFirstArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$MeterReadingPayload> | null
|
|
}
|
|
findFirstOrThrow: {
|
|
args: Prisma.MeterReadingFindFirstOrThrowArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$MeterReadingPayload>
|
|
}
|
|
findMany: {
|
|
args: Prisma.MeterReadingFindManyArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$MeterReadingPayload>[]
|
|
}
|
|
create: {
|
|
args: Prisma.MeterReadingCreateArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$MeterReadingPayload>
|
|
}
|
|
createMany: {
|
|
args: Prisma.MeterReadingCreateManyArgs<ExtArgs>
|
|
result: BatchPayload
|
|
}
|
|
delete: {
|
|
args: Prisma.MeterReadingDeleteArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$MeterReadingPayload>
|
|
}
|
|
update: {
|
|
args: Prisma.MeterReadingUpdateArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$MeterReadingPayload>
|
|
}
|
|
deleteMany: {
|
|
args: Prisma.MeterReadingDeleteManyArgs<ExtArgs>
|
|
result: BatchPayload
|
|
}
|
|
updateMany: {
|
|
args: Prisma.MeterReadingUpdateManyArgs<ExtArgs>
|
|
result: BatchPayload
|
|
}
|
|
upsert: {
|
|
args: Prisma.MeterReadingUpsertArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$MeterReadingPayload>
|
|
}
|
|
aggregate: {
|
|
args: Prisma.MeterReadingAggregateArgs<ExtArgs>
|
|
result: $Utils.Optional<AggregateMeterReading>
|
|
}
|
|
groupBy: {
|
|
args: Prisma.MeterReadingGroupByArgs<ExtArgs>
|
|
result: $Utils.Optional<MeterReadingGroupByOutputType>[]
|
|
}
|
|
count: {
|
|
args: Prisma.MeterReadingCountArgs<ExtArgs>
|
|
result: $Utils.Optional<MeterReadingCountAggregateOutputType> | number
|
|
}
|
|
}
|
|
}
|
|
SalesPlatform: {
|
|
payload: Prisma.$SalesPlatformPayload<ExtArgs>
|
|
fields: Prisma.SalesPlatformFieldRefs
|
|
operations: {
|
|
findUnique: {
|
|
args: Prisma.SalesPlatformFindUniqueArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$SalesPlatformPayload> | null
|
|
}
|
|
findUniqueOrThrow: {
|
|
args: Prisma.SalesPlatformFindUniqueOrThrowArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$SalesPlatformPayload>
|
|
}
|
|
findFirst: {
|
|
args: Prisma.SalesPlatformFindFirstArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$SalesPlatformPayload> | null
|
|
}
|
|
findFirstOrThrow: {
|
|
args: Prisma.SalesPlatformFindFirstOrThrowArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$SalesPlatformPayload>
|
|
}
|
|
findMany: {
|
|
args: Prisma.SalesPlatformFindManyArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$SalesPlatformPayload>[]
|
|
}
|
|
create: {
|
|
args: Prisma.SalesPlatformCreateArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$SalesPlatformPayload>
|
|
}
|
|
createMany: {
|
|
args: Prisma.SalesPlatformCreateManyArgs<ExtArgs>
|
|
result: BatchPayload
|
|
}
|
|
delete: {
|
|
args: Prisma.SalesPlatformDeleteArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$SalesPlatformPayload>
|
|
}
|
|
update: {
|
|
args: Prisma.SalesPlatformUpdateArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$SalesPlatformPayload>
|
|
}
|
|
deleteMany: {
|
|
args: Prisma.SalesPlatformDeleteManyArgs<ExtArgs>
|
|
result: BatchPayload
|
|
}
|
|
updateMany: {
|
|
args: Prisma.SalesPlatformUpdateManyArgs<ExtArgs>
|
|
result: BatchPayload
|
|
}
|
|
upsert: {
|
|
args: Prisma.SalesPlatformUpsertArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$SalesPlatformPayload>
|
|
}
|
|
aggregate: {
|
|
args: Prisma.SalesPlatformAggregateArgs<ExtArgs>
|
|
result: $Utils.Optional<AggregateSalesPlatform>
|
|
}
|
|
groupBy: {
|
|
args: Prisma.SalesPlatformGroupByArgs<ExtArgs>
|
|
result: $Utils.Optional<SalesPlatformGroupByOutputType>[]
|
|
}
|
|
count: {
|
|
args: Prisma.SalesPlatformCountArgs<ExtArgs>
|
|
result: $Utils.Optional<SalesPlatformCountAggregateOutputType> | number
|
|
}
|
|
}
|
|
}
|
|
CancellationPeriod: {
|
|
payload: Prisma.$CancellationPeriodPayload<ExtArgs>
|
|
fields: Prisma.CancellationPeriodFieldRefs
|
|
operations: {
|
|
findUnique: {
|
|
args: Prisma.CancellationPeriodFindUniqueArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$CancellationPeriodPayload> | null
|
|
}
|
|
findUniqueOrThrow: {
|
|
args: Prisma.CancellationPeriodFindUniqueOrThrowArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$CancellationPeriodPayload>
|
|
}
|
|
findFirst: {
|
|
args: Prisma.CancellationPeriodFindFirstArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$CancellationPeriodPayload> | null
|
|
}
|
|
findFirstOrThrow: {
|
|
args: Prisma.CancellationPeriodFindFirstOrThrowArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$CancellationPeriodPayload>
|
|
}
|
|
findMany: {
|
|
args: Prisma.CancellationPeriodFindManyArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$CancellationPeriodPayload>[]
|
|
}
|
|
create: {
|
|
args: Prisma.CancellationPeriodCreateArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$CancellationPeriodPayload>
|
|
}
|
|
createMany: {
|
|
args: Prisma.CancellationPeriodCreateManyArgs<ExtArgs>
|
|
result: BatchPayload
|
|
}
|
|
delete: {
|
|
args: Prisma.CancellationPeriodDeleteArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$CancellationPeriodPayload>
|
|
}
|
|
update: {
|
|
args: Prisma.CancellationPeriodUpdateArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$CancellationPeriodPayload>
|
|
}
|
|
deleteMany: {
|
|
args: Prisma.CancellationPeriodDeleteManyArgs<ExtArgs>
|
|
result: BatchPayload
|
|
}
|
|
updateMany: {
|
|
args: Prisma.CancellationPeriodUpdateManyArgs<ExtArgs>
|
|
result: BatchPayload
|
|
}
|
|
upsert: {
|
|
args: Prisma.CancellationPeriodUpsertArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$CancellationPeriodPayload>
|
|
}
|
|
aggregate: {
|
|
args: Prisma.CancellationPeriodAggregateArgs<ExtArgs>
|
|
result: $Utils.Optional<AggregateCancellationPeriod>
|
|
}
|
|
groupBy: {
|
|
args: Prisma.CancellationPeriodGroupByArgs<ExtArgs>
|
|
result: $Utils.Optional<CancellationPeriodGroupByOutputType>[]
|
|
}
|
|
count: {
|
|
args: Prisma.CancellationPeriodCountArgs<ExtArgs>
|
|
result: $Utils.Optional<CancellationPeriodCountAggregateOutputType> | number
|
|
}
|
|
}
|
|
}
|
|
ContractDuration: {
|
|
payload: Prisma.$ContractDurationPayload<ExtArgs>
|
|
fields: Prisma.ContractDurationFieldRefs
|
|
operations: {
|
|
findUnique: {
|
|
args: Prisma.ContractDurationFindUniqueArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$ContractDurationPayload> | null
|
|
}
|
|
findUniqueOrThrow: {
|
|
args: Prisma.ContractDurationFindUniqueOrThrowArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$ContractDurationPayload>
|
|
}
|
|
findFirst: {
|
|
args: Prisma.ContractDurationFindFirstArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$ContractDurationPayload> | null
|
|
}
|
|
findFirstOrThrow: {
|
|
args: Prisma.ContractDurationFindFirstOrThrowArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$ContractDurationPayload>
|
|
}
|
|
findMany: {
|
|
args: Prisma.ContractDurationFindManyArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$ContractDurationPayload>[]
|
|
}
|
|
create: {
|
|
args: Prisma.ContractDurationCreateArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$ContractDurationPayload>
|
|
}
|
|
createMany: {
|
|
args: Prisma.ContractDurationCreateManyArgs<ExtArgs>
|
|
result: BatchPayload
|
|
}
|
|
delete: {
|
|
args: Prisma.ContractDurationDeleteArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$ContractDurationPayload>
|
|
}
|
|
update: {
|
|
args: Prisma.ContractDurationUpdateArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$ContractDurationPayload>
|
|
}
|
|
deleteMany: {
|
|
args: Prisma.ContractDurationDeleteManyArgs<ExtArgs>
|
|
result: BatchPayload
|
|
}
|
|
updateMany: {
|
|
args: Prisma.ContractDurationUpdateManyArgs<ExtArgs>
|
|
result: BatchPayload
|
|
}
|
|
upsert: {
|
|
args: Prisma.ContractDurationUpsertArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$ContractDurationPayload>
|
|
}
|
|
aggregate: {
|
|
args: Prisma.ContractDurationAggregateArgs<ExtArgs>
|
|
result: $Utils.Optional<AggregateContractDuration>
|
|
}
|
|
groupBy: {
|
|
args: Prisma.ContractDurationGroupByArgs<ExtArgs>
|
|
result: $Utils.Optional<ContractDurationGroupByOutputType>[]
|
|
}
|
|
count: {
|
|
args: Prisma.ContractDurationCountArgs<ExtArgs>
|
|
result: $Utils.Optional<ContractDurationCountAggregateOutputType> | number
|
|
}
|
|
}
|
|
}
|
|
Provider: {
|
|
payload: Prisma.$ProviderPayload<ExtArgs>
|
|
fields: Prisma.ProviderFieldRefs
|
|
operations: {
|
|
findUnique: {
|
|
args: Prisma.ProviderFindUniqueArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$ProviderPayload> | null
|
|
}
|
|
findUniqueOrThrow: {
|
|
args: Prisma.ProviderFindUniqueOrThrowArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$ProviderPayload>
|
|
}
|
|
findFirst: {
|
|
args: Prisma.ProviderFindFirstArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$ProviderPayload> | null
|
|
}
|
|
findFirstOrThrow: {
|
|
args: Prisma.ProviderFindFirstOrThrowArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$ProviderPayload>
|
|
}
|
|
findMany: {
|
|
args: Prisma.ProviderFindManyArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$ProviderPayload>[]
|
|
}
|
|
create: {
|
|
args: Prisma.ProviderCreateArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$ProviderPayload>
|
|
}
|
|
createMany: {
|
|
args: Prisma.ProviderCreateManyArgs<ExtArgs>
|
|
result: BatchPayload
|
|
}
|
|
delete: {
|
|
args: Prisma.ProviderDeleteArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$ProviderPayload>
|
|
}
|
|
update: {
|
|
args: Prisma.ProviderUpdateArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$ProviderPayload>
|
|
}
|
|
deleteMany: {
|
|
args: Prisma.ProviderDeleteManyArgs<ExtArgs>
|
|
result: BatchPayload
|
|
}
|
|
updateMany: {
|
|
args: Prisma.ProviderUpdateManyArgs<ExtArgs>
|
|
result: BatchPayload
|
|
}
|
|
upsert: {
|
|
args: Prisma.ProviderUpsertArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$ProviderPayload>
|
|
}
|
|
aggregate: {
|
|
args: Prisma.ProviderAggregateArgs<ExtArgs>
|
|
result: $Utils.Optional<AggregateProvider>
|
|
}
|
|
groupBy: {
|
|
args: Prisma.ProviderGroupByArgs<ExtArgs>
|
|
result: $Utils.Optional<ProviderGroupByOutputType>[]
|
|
}
|
|
count: {
|
|
args: Prisma.ProviderCountArgs<ExtArgs>
|
|
result: $Utils.Optional<ProviderCountAggregateOutputType> | number
|
|
}
|
|
}
|
|
}
|
|
Tariff: {
|
|
payload: Prisma.$TariffPayload<ExtArgs>
|
|
fields: Prisma.TariffFieldRefs
|
|
operations: {
|
|
findUnique: {
|
|
args: Prisma.TariffFindUniqueArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$TariffPayload> | null
|
|
}
|
|
findUniqueOrThrow: {
|
|
args: Prisma.TariffFindUniqueOrThrowArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$TariffPayload>
|
|
}
|
|
findFirst: {
|
|
args: Prisma.TariffFindFirstArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$TariffPayload> | null
|
|
}
|
|
findFirstOrThrow: {
|
|
args: Prisma.TariffFindFirstOrThrowArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$TariffPayload>
|
|
}
|
|
findMany: {
|
|
args: Prisma.TariffFindManyArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$TariffPayload>[]
|
|
}
|
|
create: {
|
|
args: Prisma.TariffCreateArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$TariffPayload>
|
|
}
|
|
createMany: {
|
|
args: Prisma.TariffCreateManyArgs<ExtArgs>
|
|
result: BatchPayload
|
|
}
|
|
delete: {
|
|
args: Prisma.TariffDeleteArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$TariffPayload>
|
|
}
|
|
update: {
|
|
args: Prisma.TariffUpdateArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$TariffPayload>
|
|
}
|
|
deleteMany: {
|
|
args: Prisma.TariffDeleteManyArgs<ExtArgs>
|
|
result: BatchPayload
|
|
}
|
|
updateMany: {
|
|
args: Prisma.TariffUpdateManyArgs<ExtArgs>
|
|
result: BatchPayload
|
|
}
|
|
upsert: {
|
|
args: Prisma.TariffUpsertArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$TariffPayload>
|
|
}
|
|
aggregate: {
|
|
args: Prisma.TariffAggregateArgs<ExtArgs>
|
|
result: $Utils.Optional<AggregateTariff>
|
|
}
|
|
groupBy: {
|
|
args: Prisma.TariffGroupByArgs<ExtArgs>
|
|
result: $Utils.Optional<TariffGroupByOutputType>[]
|
|
}
|
|
count: {
|
|
args: Prisma.TariffCountArgs<ExtArgs>
|
|
result: $Utils.Optional<TariffCountAggregateOutputType> | number
|
|
}
|
|
}
|
|
}
|
|
ContractCategory: {
|
|
payload: Prisma.$ContractCategoryPayload<ExtArgs>
|
|
fields: Prisma.ContractCategoryFieldRefs
|
|
operations: {
|
|
findUnique: {
|
|
args: Prisma.ContractCategoryFindUniqueArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$ContractCategoryPayload> | null
|
|
}
|
|
findUniqueOrThrow: {
|
|
args: Prisma.ContractCategoryFindUniqueOrThrowArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$ContractCategoryPayload>
|
|
}
|
|
findFirst: {
|
|
args: Prisma.ContractCategoryFindFirstArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$ContractCategoryPayload> | null
|
|
}
|
|
findFirstOrThrow: {
|
|
args: Prisma.ContractCategoryFindFirstOrThrowArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$ContractCategoryPayload>
|
|
}
|
|
findMany: {
|
|
args: Prisma.ContractCategoryFindManyArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$ContractCategoryPayload>[]
|
|
}
|
|
create: {
|
|
args: Prisma.ContractCategoryCreateArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$ContractCategoryPayload>
|
|
}
|
|
createMany: {
|
|
args: Prisma.ContractCategoryCreateManyArgs<ExtArgs>
|
|
result: BatchPayload
|
|
}
|
|
delete: {
|
|
args: Prisma.ContractCategoryDeleteArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$ContractCategoryPayload>
|
|
}
|
|
update: {
|
|
args: Prisma.ContractCategoryUpdateArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$ContractCategoryPayload>
|
|
}
|
|
deleteMany: {
|
|
args: Prisma.ContractCategoryDeleteManyArgs<ExtArgs>
|
|
result: BatchPayload
|
|
}
|
|
updateMany: {
|
|
args: Prisma.ContractCategoryUpdateManyArgs<ExtArgs>
|
|
result: BatchPayload
|
|
}
|
|
upsert: {
|
|
args: Prisma.ContractCategoryUpsertArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$ContractCategoryPayload>
|
|
}
|
|
aggregate: {
|
|
args: Prisma.ContractCategoryAggregateArgs<ExtArgs>
|
|
result: $Utils.Optional<AggregateContractCategory>
|
|
}
|
|
groupBy: {
|
|
args: Prisma.ContractCategoryGroupByArgs<ExtArgs>
|
|
result: $Utils.Optional<ContractCategoryGroupByOutputType>[]
|
|
}
|
|
count: {
|
|
args: Prisma.ContractCategoryCountArgs<ExtArgs>
|
|
result: $Utils.Optional<ContractCategoryCountAggregateOutputType> | number
|
|
}
|
|
}
|
|
}
|
|
Contract: {
|
|
payload: Prisma.$ContractPayload<ExtArgs>
|
|
fields: Prisma.ContractFieldRefs
|
|
operations: {
|
|
findUnique: {
|
|
args: Prisma.ContractFindUniqueArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$ContractPayload> | null
|
|
}
|
|
findUniqueOrThrow: {
|
|
args: Prisma.ContractFindUniqueOrThrowArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$ContractPayload>
|
|
}
|
|
findFirst: {
|
|
args: Prisma.ContractFindFirstArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$ContractPayload> | null
|
|
}
|
|
findFirstOrThrow: {
|
|
args: Prisma.ContractFindFirstOrThrowArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$ContractPayload>
|
|
}
|
|
findMany: {
|
|
args: Prisma.ContractFindManyArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$ContractPayload>[]
|
|
}
|
|
create: {
|
|
args: Prisma.ContractCreateArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$ContractPayload>
|
|
}
|
|
createMany: {
|
|
args: Prisma.ContractCreateManyArgs<ExtArgs>
|
|
result: BatchPayload
|
|
}
|
|
delete: {
|
|
args: Prisma.ContractDeleteArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$ContractPayload>
|
|
}
|
|
update: {
|
|
args: Prisma.ContractUpdateArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$ContractPayload>
|
|
}
|
|
deleteMany: {
|
|
args: Prisma.ContractDeleteManyArgs<ExtArgs>
|
|
result: BatchPayload
|
|
}
|
|
updateMany: {
|
|
args: Prisma.ContractUpdateManyArgs<ExtArgs>
|
|
result: BatchPayload
|
|
}
|
|
upsert: {
|
|
args: Prisma.ContractUpsertArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$ContractPayload>
|
|
}
|
|
aggregate: {
|
|
args: Prisma.ContractAggregateArgs<ExtArgs>
|
|
result: $Utils.Optional<AggregateContract>
|
|
}
|
|
groupBy: {
|
|
args: Prisma.ContractGroupByArgs<ExtArgs>
|
|
result: $Utils.Optional<ContractGroupByOutputType>[]
|
|
}
|
|
count: {
|
|
args: Prisma.ContractCountArgs<ExtArgs>
|
|
result: $Utils.Optional<ContractCountAggregateOutputType> | number
|
|
}
|
|
}
|
|
}
|
|
ContractTask: {
|
|
payload: Prisma.$ContractTaskPayload<ExtArgs>
|
|
fields: Prisma.ContractTaskFieldRefs
|
|
operations: {
|
|
findUnique: {
|
|
args: Prisma.ContractTaskFindUniqueArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$ContractTaskPayload> | null
|
|
}
|
|
findUniqueOrThrow: {
|
|
args: Prisma.ContractTaskFindUniqueOrThrowArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$ContractTaskPayload>
|
|
}
|
|
findFirst: {
|
|
args: Prisma.ContractTaskFindFirstArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$ContractTaskPayload> | null
|
|
}
|
|
findFirstOrThrow: {
|
|
args: Prisma.ContractTaskFindFirstOrThrowArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$ContractTaskPayload>
|
|
}
|
|
findMany: {
|
|
args: Prisma.ContractTaskFindManyArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$ContractTaskPayload>[]
|
|
}
|
|
create: {
|
|
args: Prisma.ContractTaskCreateArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$ContractTaskPayload>
|
|
}
|
|
createMany: {
|
|
args: Prisma.ContractTaskCreateManyArgs<ExtArgs>
|
|
result: BatchPayload
|
|
}
|
|
delete: {
|
|
args: Prisma.ContractTaskDeleteArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$ContractTaskPayload>
|
|
}
|
|
update: {
|
|
args: Prisma.ContractTaskUpdateArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$ContractTaskPayload>
|
|
}
|
|
deleteMany: {
|
|
args: Prisma.ContractTaskDeleteManyArgs<ExtArgs>
|
|
result: BatchPayload
|
|
}
|
|
updateMany: {
|
|
args: Prisma.ContractTaskUpdateManyArgs<ExtArgs>
|
|
result: BatchPayload
|
|
}
|
|
upsert: {
|
|
args: Prisma.ContractTaskUpsertArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$ContractTaskPayload>
|
|
}
|
|
aggregate: {
|
|
args: Prisma.ContractTaskAggregateArgs<ExtArgs>
|
|
result: $Utils.Optional<AggregateContractTask>
|
|
}
|
|
groupBy: {
|
|
args: Prisma.ContractTaskGroupByArgs<ExtArgs>
|
|
result: $Utils.Optional<ContractTaskGroupByOutputType>[]
|
|
}
|
|
count: {
|
|
args: Prisma.ContractTaskCountArgs<ExtArgs>
|
|
result: $Utils.Optional<ContractTaskCountAggregateOutputType> | number
|
|
}
|
|
}
|
|
}
|
|
ContractTaskSubtask: {
|
|
payload: Prisma.$ContractTaskSubtaskPayload<ExtArgs>
|
|
fields: Prisma.ContractTaskSubtaskFieldRefs
|
|
operations: {
|
|
findUnique: {
|
|
args: Prisma.ContractTaskSubtaskFindUniqueArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$ContractTaskSubtaskPayload> | null
|
|
}
|
|
findUniqueOrThrow: {
|
|
args: Prisma.ContractTaskSubtaskFindUniqueOrThrowArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$ContractTaskSubtaskPayload>
|
|
}
|
|
findFirst: {
|
|
args: Prisma.ContractTaskSubtaskFindFirstArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$ContractTaskSubtaskPayload> | null
|
|
}
|
|
findFirstOrThrow: {
|
|
args: Prisma.ContractTaskSubtaskFindFirstOrThrowArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$ContractTaskSubtaskPayload>
|
|
}
|
|
findMany: {
|
|
args: Prisma.ContractTaskSubtaskFindManyArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$ContractTaskSubtaskPayload>[]
|
|
}
|
|
create: {
|
|
args: Prisma.ContractTaskSubtaskCreateArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$ContractTaskSubtaskPayload>
|
|
}
|
|
createMany: {
|
|
args: Prisma.ContractTaskSubtaskCreateManyArgs<ExtArgs>
|
|
result: BatchPayload
|
|
}
|
|
delete: {
|
|
args: Prisma.ContractTaskSubtaskDeleteArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$ContractTaskSubtaskPayload>
|
|
}
|
|
update: {
|
|
args: Prisma.ContractTaskSubtaskUpdateArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$ContractTaskSubtaskPayload>
|
|
}
|
|
deleteMany: {
|
|
args: Prisma.ContractTaskSubtaskDeleteManyArgs<ExtArgs>
|
|
result: BatchPayload
|
|
}
|
|
updateMany: {
|
|
args: Prisma.ContractTaskSubtaskUpdateManyArgs<ExtArgs>
|
|
result: BatchPayload
|
|
}
|
|
upsert: {
|
|
args: Prisma.ContractTaskSubtaskUpsertArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$ContractTaskSubtaskPayload>
|
|
}
|
|
aggregate: {
|
|
args: Prisma.ContractTaskSubtaskAggregateArgs<ExtArgs>
|
|
result: $Utils.Optional<AggregateContractTaskSubtask>
|
|
}
|
|
groupBy: {
|
|
args: Prisma.ContractTaskSubtaskGroupByArgs<ExtArgs>
|
|
result: $Utils.Optional<ContractTaskSubtaskGroupByOutputType>[]
|
|
}
|
|
count: {
|
|
args: Prisma.ContractTaskSubtaskCountArgs<ExtArgs>
|
|
result: $Utils.Optional<ContractTaskSubtaskCountAggregateOutputType> | number
|
|
}
|
|
}
|
|
}
|
|
EnergyContractDetails: {
|
|
payload: Prisma.$EnergyContractDetailsPayload<ExtArgs>
|
|
fields: Prisma.EnergyContractDetailsFieldRefs
|
|
operations: {
|
|
findUnique: {
|
|
args: Prisma.EnergyContractDetailsFindUniqueArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$EnergyContractDetailsPayload> | null
|
|
}
|
|
findUniqueOrThrow: {
|
|
args: Prisma.EnergyContractDetailsFindUniqueOrThrowArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$EnergyContractDetailsPayload>
|
|
}
|
|
findFirst: {
|
|
args: Prisma.EnergyContractDetailsFindFirstArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$EnergyContractDetailsPayload> | null
|
|
}
|
|
findFirstOrThrow: {
|
|
args: Prisma.EnergyContractDetailsFindFirstOrThrowArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$EnergyContractDetailsPayload>
|
|
}
|
|
findMany: {
|
|
args: Prisma.EnergyContractDetailsFindManyArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$EnergyContractDetailsPayload>[]
|
|
}
|
|
create: {
|
|
args: Prisma.EnergyContractDetailsCreateArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$EnergyContractDetailsPayload>
|
|
}
|
|
createMany: {
|
|
args: Prisma.EnergyContractDetailsCreateManyArgs<ExtArgs>
|
|
result: BatchPayload
|
|
}
|
|
delete: {
|
|
args: Prisma.EnergyContractDetailsDeleteArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$EnergyContractDetailsPayload>
|
|
}
|
|
update: {
|
|
args: Prisma.EnergyContractDetailsUpdateArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$EnergyContractDetailsPayload>
|
|
}
|
|
deleteMany: {
|
|
args: Prisma.EnergyContractDetailsDeleteManyArgs<ExtArgs>
|
|
result: BatchPayload
|
|
}
|
|
updateMany: {
|
|
args: Prisma.EnergyContractDetailsUpdateManyArgs<ExtArgs>
|
|
result: BatchPayload
|
|
}
|
|
upsert: {
|
|
args: Prisma.EnergyContractDetailsUpsertArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$EnergyContractDetailsPayload>
|
|
}
|
|
aggregate: {
|
|
args: Prisma.EnergyContractDetailsAggregateArgs<ExtArgs>
|
|
result: $Utils.Optional<AggregateEnergyContractDetails>
|
|
}
|
|
groupBy: {
|
|
args: Prisma.EnergyContractDetailsGroupByArgs<ExtArgs>
|
|
result: $Utils.Optional<EnergyContractDetailsGroupByOutputType>[]
|
|
}
|
|
count: {
|
|
args: Prisma.EnergyContractDetailsCountArgs<ExtArgs>
|
|
result: $Utils.Optional<EnergyContractDetailsCountAggregateOutputType> | number
|
|
}
|
|
}
|
|
}
|
|
InternetContractDetails: {
|
|
payload: Prisma.$InternetContractDetailsPayload<ExtArgs>
|
|
fields: Prisma.InternetContractDetailsFieldRefs
|
|
operations: {
|
|
findUnique: {
|
|
args: Prisma.InternetContractDetailsFindUniqueArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$InternetContractDetailsPayload> | null
|
|
}
|
|
findUniqueOrThrow: {
|
|
args: Prisma.InternetContractDetailsFindUniqueOrThrowArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$InternetContractDetailsPayload>
|
|
}
|
|
findFirst: {
|
|
args: Prisma.InternetContractDetailsFindFirstArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$InternetContractDetailsPayload> | null
|
|
}
|
|
findFirstOrThrow: {
|
|
args: Prisma.InternetContractDetailsFindFirstOrThrowArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$InternetContractDetailsPayload>
|
|
}
|
|
findMany: {
|
|
args: Prisma.InternetContractDetailsFindManyArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$InternetContractDetailsPayload>[]
|
|
}
|
|
create: {
|
|
args: Prisma.InternetContractDetailsCreateArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$InternetContractDetailsPayload>
|
|
}
|
|
createMany: {
|
|
args: Prisma.InternetContractDetailsCreateManyArgs<ExtArgs>
|
|
result: BatchPayload
|
|
}
|
|
delete: {
|
|
args: Prisma.InternetContractDetailsDeleteArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$InternetContractDetailsPayload>
|
|
}
|
|
update: {
|
|
args: Prisma.InternetContractDetailsUpdateArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$InternetContractDetailsPayload>
|
|
}
|
|
deleteMany: {
|
|
args: Prisma.InternetContractDetailsDeleteManyArgs<ExtArgs>
|
|
result: BatchPayload
|
|
}
|
|
updateMany: {
|
|
args: Prisma.InternetContractDetailsUpdateManyArgs<ExtArgs>
|
|
result: BatchPayload
|
|
}
|
|
upsert: {
|
|
args: Prisma.InternetContractDetailsUpsertArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$InternetContractDetailsPayload>
|
|
}
|
|
aggregate: {
|
|
args: Prisma.InternetContractDetailsAggregateArgs<ExtArgs>
|
|
result: $Utils.Optional<AggregateInternetContractDetails>
|
|
}
|
|
groupBy: {
|
|
args: Prisma.InternetContractDetailsGroupByArgs<ExtArgs>
|
|
result: $Utils.Optional<InternetContractDetailsGroupByOutputType>[]
|
|
}
|
|
count: {
|
|
args: Prisma.InternetContractDetailsCountArgs<ExtArgs>
|
|
result: $Utils.Optional<InternetContractDetailsCountAggregateOutputType> | number
|
|
}
|
|
}
|
|
}
|
|
PhoneNumber: {
|
|
payload: Prisma.$PhoneNumberPayload<ExtArgs>
|
|
fields: Prisma.PhoneNumberFieldRefs
|
|
operations: {
|
|
findUnique: {
|
|
args: Prisma.PhoneNumberFindUniqueArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$PhoneNumberPayload> | null
|
|
}
|
|
findUniqueOrThrow: {
|
|
args: Prisma.PhoneNumberFindUniqueOrThrowArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$PhoneNumberPayload>
|
|
}
|
|
findFirst: {
|
|
args: Prisma.PhoneNumberFindFirstArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$PhoneNumberPayload> | null
|
|
}
|
|
findFirstOrThrow: {
|
|
args: Prisma.PhoneNumberFindFirstOrThrowArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$PhoneNumberPayload>
|
|
}
|
|
findMany: {
|
|
args: Prisma.PhoneNumberFindManyArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$PhoneNumberPayload>[]
|
|
}
|
|
create: {
|
|
args: Prisma.PhoneNumberCreateArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$PhoneNumberPayload>
|
|
}
|
|
createMany: {
|
|
args: Prisma.PhoneNumberCreateManyArgs<ExtArgs>
|
|
result: BatchPayload
|
|
}
|
|
delete: {
|
|
args: Prisma.PhoneNumberDeleteArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$PhoneNumberPayload>
|
|
}
|
|
update: {
|
|
args: Prisma.PhoneNumberUpdateArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$PhoneNumberPayload>
|
|
}
|
|
deleteMany: {
|
|
args: Prisma.PhoneNumberDeleteManyArgs<ExtArgs>
|
|
result: BatchPayload
|
|
}
|
|
updateMany: {
|
|
args: Prisma.PhoneNumberUpdateManyArgs<ExtArgs>
|
|
result: BatchPayload
|
|
}
|
|
upsert: {
|
|
args: Prisma.PhoneNumberUpsertArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$PhoneNumberPayload>
|
|
}
|
|
aggregate: {
|
|
args: Prisma.PhoneNumberAggregateArgs<ExtArgs>
|
|
result: $Utils.Optional<AggregatePhoneNumber>
|
|
}
|
|
groupBy: {
|
|
args: Prisma.PhoneNumberGroupByArgs<ExtArgs>
|
|
result: $Utils.Optional<PhoneNumberGroupByOutputType>[]
|
|
}
|
|
count: {
|
|
args: Prisma.PhoneNumberCountArgs<ExtArgs>
|
|
result: $Utils.Optional<PhoneNumberCountAggregateOutputType> | number
|
|
}
|
|
}
|
|
}
|
|
MobileContractDetails: {
|
|
payload: Prisma.$MobileContractDetailsPayload<ExtArgs>
|
|
fields: Prisma.MobileContractDetailsFieldRefs
|
|
operations: {
|
|
findUnique: {
|
|
args: Prisma.MobileContractDetailsFindUniqueArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$MobileContractDetailsPayload> | null
|
|
}
|
|
findUniqueOrThrow: {
|
|
args: Prisma.MobileContractDetailsFindUniqueOrThrowArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$MobileContractDetailsPayload>
|
|
}
|
|
findFirst: {
|
|
args: Prisma.MobileContractDetailsFindFirstArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$MobileContractDetailsPayload> | null
|
|
}
|
|
findFirstOrThrow: {
|
|
args: Prisma.MobileContractDetailsFindFirstOrThrowArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$MobileContractDetailsPayload>
|
|
}
|
|
findMany: {
|
|
args: Prisma.MobileContractDetailsFindManyArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$MobileContractDetailsPayload>[]
|
|
}
|
|
create: {
|
|
args: Prisma.MobileContractDetailsCreateArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$MobileContractDetailsPayload>
|
|
}
|
|
createMany: {
|
|
args: Prisma.MobileContractDetailsCreateManyArgs<ExtArgs>
|
|
result: BatchPayload
|
|
}
|
|
delete: {
|
|
args: Prisma.MobileContractDetailsDeleteArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$MobileContractDetailsPayload>
|
|
}
|
|
update: {
|
|
args: Prisma.MobileContractDetailsUpdateArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$MobileContractDetailsPayload>
|
|
}
|
|
deleteMany: {
|
|
args: Prisma.MobileContractDetailsDeleteManyArgs<ExtArgs>
|
|
result: BatchPayload
|
|
}
|
|
updateMany: {
|
|
args: Prisma.MobileContractDetailsUpdateManyArgs<ExtArgs>
|
|
result: BatchPayload
|
|
}
|
|
upsert: {
|
|
args: Prisma.MobileContractDetailsUpsertArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$MobileContractDetailsPayload>
|
|
}
|
|
aggregate: {
|
|
args: Prisma.MobileContractDetailsAggregateArgs<ExtArgs>
|
|
result: $Utils.Optional<AggregateMobileContractDetails>
|
|
}
|
|
groupBy: {
|
|
args: Prisma.MobileContractDetailsGroupByArgs<ExtArgs>
|
|
result: $Utils.Optional<MobileContractDetailsGroupByOutputType>[]
|
|
}
|
|
count: {
|
|
args: Prisma.MobileContractDetailsCountArgs<ExtArgs>
|
|
result: $Utils.Optional<MobileContractDetailsCountAggregateOutputType> | number
|
|
}
|
|
}
|
|
}
|
|
SimCard: {
|
|
payload: Prisma.$SimCardPayload<ExtArgs>
|
|
fields: Prisma.SimCardFieldRefs
|
|
operations: {
|
|
findUnique: {
|
|
args: Prisma.SimCardFindUniqueArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$SimCardPayload> | null
|
|
}
|
|
findUniqueOrThrow: {
|
|
args: Prisma.SimCardFindUniqueOrThrowArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$SimCardPayload>
|
|
}
|
|
findFirst: {
|
|
args: Prisma.SimCardFindFirstArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$SimCardPayload> | null
|
|
}
|
|
findFirstOrThrow: {
|
|
args: Prisma.SimCardFindFirstOrThrowArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$SimCardPayload>
|
|
}
|
|
findMany: {
|
|
args: Prisma.SimCardFindManyArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$SimCardPayload>[]
|
|
}
|
|
create: {
|
|
args: Prisma.SimCardCreateArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$SimCardPayload>
|
|
}
|
|
createMany: {
|
|
args: Prisma.SimCardCreateManyArgs<ExtArgs>
|
|
result: BatchPayload
|
|
}
|
|
delete: {
|
|
args: Prisma.SimCardDeleteArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$SimCardPayload>
|
|
}
|
|
update: {
|
|
args: Prisma.SimCardUpdateArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$SimCardPayload>
|
|
}
|
|
deleteMany: {
|
|
args: Prisma.SimCardDeleteManyArgs<ExtArgs>
|
|
result: BatchPayload
|
|
}
|
|
updateMany: {
|
|
args: Prisma.SimCardUpdateManyArgs<ExtArgs>
|
|
result: BatchPayload
|
|
}
|
|
upsert: {
|
|
args: Prisma.SimCardUpsertArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$SimCardPayload>
|
|
}
|
|
aggregate: {
|
|
args: Prisma.SimCardAggregateArgs<ExtArgs>
|
|
result: $Utils.Optional<AggregateSimCard>
|
|
}
|
|
groupBy: {
|
|
args: Prisma.SimCardGroupByArgs<ExtArgs>
|
|
result: $Utils.Optional<SimCardGroupByOutputType>[]
|
|
}
|
|
count: {
|
|
args: Prisma.SimCardCountArgs<ExtArgs>
|
|
result: $Utils.Optional<SimCardCountAggregateOutputType> | number
|
|
}
|
|
}
|
|
}
|
|
TvContractDetails: {
|
|
payload: Prisma.$TvContractDetailsPayload<ExtArgs>
|
|
fields: Prisma.TvContractDetailsFieldRefs
|
|
operations: {
|
|
findUnique: {
|
|
args: Prisma.TvContractDetailsFindUniqueArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$TvContractDetailsPayload> | null
|
|
}
|
|
findUniqueOrThrow: {
|
|
args: Prisma.TvContractDetailsFindUniqueOrThrowArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$TvContractDetailsPayload>
|
|
}
|
|
findFirst: {
|
|
args: Prisma.TvContractDetailsFindFirstArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$TvContractDetailsPayload> | null
|
|
}
|
|
findFirstOrThrow: {
|
|
args: Prisma.TvContractDetailsFindFirstOrThrowArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$TvContractDetailsPayload>
|
|
}
|
|
findMany: {
|
|
args: Prisma.TvContractDetailsFindManyArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$TvContractDetailsPayload>[]
|
|
}
|
|
create: {
|
|
args: Prisma.TvContractDetailsCreateArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$TvContractDetailsPayload>
|
|
}
|
|
createMany: {
|
|
args: Prisma.TvContractDetailsCreateManyArgs<ExtArgs>
|
|
result: BatchPayload
|
|
}
|
|
delete: {
|
|
args: Prisma.TvContractDetailsDeleteArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$TvContractDetailsPayload>
|
|
}
|
|
update: {
|
|
args: Prisma.TvContractDetailsUpdateArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$TvContractDetailsPayload>
|
|
}
|
|
deleteMany: {
|
|
args: Prisma.TvContractDetailsDeleteManyArgs<ExtArgs>
|
|
result: BatchPayload
|
|
}
|
|
updateMany: {
|
|
args: Prisma.TvContractDetailsUpdateManyArgs<ExtArgs>
|
|
result: BatchPayload
|
|
}
|
|
upsert: {
|
|
args: Prisma.TvContractDetailsUpsertArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$TvContractDetailsPayload>
|
|
}
|
|
aggregate: {
|
|
args: Prisma.TvContractDetailsAggregateArgs<ExtArgs>
|
|
result: $Utils.Optional<AggregateTvContractDetails>
|
|
}
|
|
groupBy: {
|
|
args: Prisma.TvContractDetailsGroupByArgs<ExtArgs>
|
|
result: $Utils.Optional<TvContractDetailsGroupByOutputType>[]
|
|
}
|
|
count: {
|
|
args: Prisma.TvContractDetailsCountArgs<ExtArgs>
|
|
result: $Utils.Optional<TvContractDetailsCountAggregateOutputType> | number
|
|
}
|
|
}
|
|
}
|
|
CarInsuranceDetails: {
|
|
payload: Prisma.$CarInsuranceDetailsPayload<ExtArgs>
|
|
fields: Prisma.CarInsuranceDetailsFieldRefs
|
|
operations: {
|
|
findUnique: {
|
|
args: Prisma.CarInsuranceDetailsFindUniqueArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$CarInsuranceDetailsPayload> | null
|
|
}
|
|
findUniqueOrThrow: {
|
|
args: Prisma.CarInsuranceDetailsFindUniqueOrThrowArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$CarInsuranceDetailsPayload>
|
|
}
|
|
findFirst: {
|
|
args: Prisma.CarInsuranceDetailsFindFirstArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$CarInsuranceDetailsPayload> | null
|
|
}
|
|
findFirstOrThrow: {
|
|
args: Prisma.CarInsuranceDetailsFindFirstOrThrowArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$CarInsuranceDetailsPayload>
|
|
}
|
|
findMany: {
|
|
args: Prisma.CarInsuranceDetailsFindManyArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$CarInsuranceDetailsPayload>[]
|
|
}
|
|
create: {
|
|
args: Prisma.CarInsuranceDetailsCreateArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$CarInsuranceDetailsPayload>
|
|
}
|
|
createMany: {
|
|
args: Prisma.CarInsuranceDetailsCreateManyArgs<ExtArgs>
|
|
result: BatchPayload
|
|
}
|
|
delete: {
|
|
args: Prisma.CarInsuranceDetailsDeleteArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$CarInsuranceDetailsPayload>
|
|
}
|
|
update: {
|
|
args: Prisma.CarInsuranceDetailsUpdateArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$CarInsuranceDetailsPayload>
|
|
}
|
|
deleteMany: {
|
|
args: Prisma.CarInsuranceDetailsDeleteManyArgs<ExtArgs>
|
|
result: BatchPayload
|
|
}
|
|
updateMany: {
|
|
args: Prisma.CarInsuranceDetailsUpdateManyArgs<ExtArgs>
|
|
result: BatchPayload
|
|
}
|
|
upsert: {
|
|
args: Prisma.CarInsuranceDetailsUpsertArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$CarInsuranceDetailsPayload>
|
|
}
|
|
aggregate: {
|
|
args: Prisma.CarInsuranceDetailsAggregateArgs<ExtArgs>
|
|
result: $Utils.Optional<AggregateCarInsuranceDetails>
|
|
}
|
|
groupBy: {
|
|
args: Prisma.CarInsuranceDetailsGroupByArgs<ExtArgs>
|
|
result: $Utils.Optional<CarInsuranceDetailsGroupByOutputType>[]
|
|
}
|
|
count: {
|
|
args: Prisma.CarInsuranceDetailsCountArgs<ExtArgs>
|
|
result: $Utils.Optional<CarInsuranceDetailsCountAggregateOutputType> | number
|
|
}
|
|
}
|
|
}
|
|
}
|
|
} & {
|
|
other: {
|
|
payload: any
|
|
operations: {
|
|
$executeRaw: {
|
|
args: [query: TemplateStringsArray | Prisma.Sql, ...values: any[]],
|
|
result: any
|
|
}
|
|
$executeRawUnsafe: {
|
|
args: [query: string, ...values: any[]],
|
|
result: any
|
|
}
|
|
$queryRaw: {
|
|
args: [query: TemplateStringsArray | Prisma.Sql, ...values: any[]],
|
|
result: any
|
|
}
|
|
$queryRawUnsafe: {
|
|
args: [query: string, ...values: any[]],
|
|
result: any
|
|
}
|
|
}
|
|
}
|
|
}
|
|
export const defineExtension: $Extensions.ExtendsHook<"define", Prisma.TypeMapCb, $Extensions.DefaultArgs>
|
|
export type DefaultPrismaClient = PrismaClient
|
|
export type ErrorFormat = 'pretty' | 'colorless' | 'minimal'
|
|
export interface PrismaClientOptions {
|
|
/**
|
|
* Overwrites the datasource url from your schema.prisma file
|
|
*/
|
|
datasources?: Datasources
|
|
/**
|
|
* Overwrites the datasource url from your schema.prisma file
|
|
*/
|
|
datasourceUrl?: string
|
|
/**
|
|
* @default "colorless"
|
|
*/
|
|
errorFormat?: ErrorFormat
|
|
/**
|
|
* @example
|
|
* ```
|
|
* // Defaults to stdout
|
|
* log: ['query', 'info', 'warn', 'error']
|
|
*
|
|
* // Emit as events
|
|
* log: [
|
|
* { emit: 'stdout', level: 'query' },
|
|
* { emit: 'stdout', level: 'info' },
|
|
* { emit: 'stdout', level: 'warn' }
|
|
* { emit: 'stdout', level: 'error' }
|
|
* ]
|
|
* ```
|
|
* Read more in our [docs](https://www.prisma.io/docs/reference/tools-and-interfaces/prisma-client/logging#the-log-option).
|
|
*/
|
|
log?: (LogLevel | LogDefinition)[]
|
|
/**
|
|
* The default values for transactionOptions
|
|
* maxWait ?= 2000
|
|
* timeout ?= 5000
|
|
*/
|
|
transactionOptions?: {
|
|
maxWait?: number
|
|
timeout?: number
|
|
isolationLevel?: Prisma.TransactionIsolationLevel
|
|
}
|
|
}
|
|
|
|
|
|
/* Types for Logging */
|
|
export type LogLevel = 'info' | 'query' | 'warn' | 'error'
|
|
export type LogDefinition = {
|
|
level: LogLevel
|
|
emit: 'stdout' | 'event'
|
|
}
|
|
|
|
export type GetLogType<T extends LogLevel | LogDefinition> = T extends LogDefinition ? T['emit'] extends 'event' ? T['level'] : never : never
|
|
export type GetEvents<T extends any> = T extends Array<LogLevel | LogDefinition> ?
|
|
GetLogType<T[0]> | GetLogType<T[1]> | GetLogType<T[2]> | GetLogType<T[3]>
|
|
: never
|
|
|
|
export type QueryEvent = {
|
|
timestamp: Date
|
|
query: string
|
|
params: string
|
|
duration: number
|
|
target: string
|
|
}
|
|
|
|
export type LogEvent = {
|
|
timestamp: Date
|
|
message: string
|
|
target: string
|
|
}
|
|
/* End Types for Logging */
|
|
|
|
|
|
export type PrismaAction =
|
|
| 'findUnique'
|
|
| 'findUniqueOrThrow'
|
|
| 'findMany'
|
|
| 'findFirst'
|
|
| 'findFirstOrThrow'
|
|
| 'create'
|
|
| 'createMany'
|
|
| 'createManyAndReturn'
|
|
| 'update'
|
|
| 'updateMany'
|
|
| 'upsert'
|
|
| 'delete'
|
|
| 'deleteMany'
|
|
| 'executeRaw'
|
|
| 'queryRaw'
|
|
| 'aggregate'
|
|
| 'count'
|
|
| 'runCommandRaw'
|
|
| 'findRaw'
|
|
| 'groupBy'
|
|
|
|
/**
|
|
* These options are being passed into the middleware as "params"
|
|
*/
|
|
export type MiddlewareParams = {
|
|
model?: ModelName
|
|
action: PrismaAction
|
|
args: any
|
|
dataPath: string[]
|
|
runInTransaction: boolean
|
|
}
|
|
|
|
/**
|
|
* The `T` type makes sure, that the `return proceed` is not forgotten in the middleware implementation
|
|
*/
|
|
export type Middleware<T = any> = (
|
|
params: MiddlewareParams,
|
|
next: (params: MiddlewareParams) => $Utils.JsPromise<T>,
|
|
) => $Utils.JsPromise<T>
|
|
|
|
// tested in getLogLevel.test.ts
|
|
export function getLogLevel(log: Array<LogLevel | LogDefinition>): LogLevel | undefined;
|
|
|
|
/**
|
|
* `PrismaClient` proxy available in interactive transactions.
|
|
*/
|
|
export type TransactionClient = Omit<Prisma.DefaultPrismaClient, runtime.ITXClientDenyList>
|
|
|
|
export type Datasource = {
|
|
url?: string
|
|
}
|
|
|
|
/**
|
|
* Count Types
|
|
*/
|
|
|
|
|
|
/**
|
|
* Count Type UserCountOutputType
|
|
*/
|
|
|
|
export type UserCountOutputType = {
|
|
roles: number
|
|
}
|
|
|
|
export type UserCountOutputTypeSelect<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
roles?: boolean | UserCountOutputTypeCountRolesArgs
|
|
}
|
|
|
|
// Custom InputTypes
|
|
/**
|
|
* UserCountOutputType without action
|
|
*/
|
|
export type UserCountOutputTypeDefaultArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the UserCountOutputType
|
|
*/
|
|
select?: UserCountOutputTypeSelect<ExtArgs> | null
|
|
}
|
|
|
|
/**
|
|
* UserCountOutputType without action
|
|
*/
|
|
export type UserCountOutputTypeCountRolesArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
where?: UserRoleWhereInput
|
|
}
|
|
|
|
|
|
/**
|
|
* Count Type RoleCountOutputType
|
|
*/
|
|
|
|
export type RoleCountOutputType = {
|
|
permissions: number
|
|
users: number
|
|
}
|
|
|
|
export type RoleCountOutputTypeSelect<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
permissions?: boolean | RoleCountOutputTypeCountPermissionsArgs
|
|
users?: boolean | RoleCountOutputTypeCountUsersArgs
|
|
}
|
|
|
|
// Custom InputTypes
|
|
/**
|
|
* RoleCountOutputType without action
|
|
*/
|
|
export type RoleCountOutputTypeDefaultArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the RoleCountOutputType
|
|
*/
|
|
select?: RoleCountOutputTypeSelect<ExtArgs> | null
|
|
}
|
|
|
|
/**
|
|
* RoleCountOutputType without action
|
|
*/
|
|
export type RoleCountOutputTypeCountPermissionsArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
where?: RolePermissionWhereInput
|
|
}
|
|
|
|
/**
|
|
* RoleCountOutputType without action
|
|
*/
|
|
export type RoleCountOutputTypeCountUsersArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
where?: UserRoleWhereInput
|
|
}
|
|
|
|
|
|
/**
|
|
* Count Type PermissionCountOutputType
|
|
*/
|
|
|
|
export type PermissionCountOutputType = {
|
|
roles: number
|
|
}
|
|
|
|
export type PermissionCountOutputTypeSelect<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
roles?: boolean | PermissionCountOutputTypeCountRolesArgs
|
|
}
|
|
|
|
// Custom InputTypes
|
|
/**
|
|
* PermissionCountOutputType without action
|
|
*/
|
|
export type PermissionCountOutputTypeDefaultArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the PermissionCountOutputType
|
|
*/
|
|
select?: PermissionCountOutputTypeSelect<ExtArgs> | null
|
|
}
|
|
|
|
/**
|
|
* PermissionCountOutputType without action
|
|
*/
|
|
export type PermissionCountOutputTypeCountRolesArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
where?: RolePermissionWhereInput
|
|
}
|
|
|
|
|
|
/**
|
|
* Count Type CustomerCountOutputType
|
|
*/
|
|
|
|
export type CustomerCountOutputType = {
|
|
addresses: number
|
|
bankCards: number
|
|
identityDocuments: number
|
|
meters: number
|
|
stressfreiEmails: number
|
|
contracts: number
|
|
representingFor: number
|
|
representedBy: number
|
|
}
|
|
|
|
export type CustomerCountOutputTypeSelect<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
addresses?: boolean | CustomerCountOutputTypeCountAddressesArgs
|
|
bankCards?: boolean | CustomerCountOutputTypeCountBankCardsArgs
|
|
identityDocuments?: boolean | CustomerCountOutputTypeCountIdentityDocumentsArgs
|
|
meters?: boolean | CustomerCountOutputTypeCountMetersArgs
|
|
stressfreiEmails?: boolean | CustomerCountOutputTypeCountStressfreiEmailsArgs
|
|
contracts?: boolean | CustomerCountOutputTypeCountContractsArgs
|
|
representingFor?: boolean | CustomerCountOutputTypeCountRepresentingForArgs
|
|
representedBy?: boolean | CustomerCountOutputTypeCountRepresentedByArgs
|
|
}
|
|
|
|
// Custom InputTypes
|
|
/**
|
|
* CustomerCountOutputType without action
|
|
*/
|
|
export type CustomerCountOutputTypeDefaultArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the CustomerCountOutputType
|
|
*/
|
|
select?: CustomerCountOutputTypeSelect<ExtArgs> | null
|
|
}
|
|
|
|
/**
|
|
* CustomerCountOutputType without action
|
|
*/
|
|
export type CustomerCountOutputTypeCountAddressesArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
where?: AddressWhereInput
|
|
}
|
|
|
|
/**
|
|
* CustomerCountOutputType without action
|
|
*/
|
|
export type CustomerCountOutputTypeCountBankCardsArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
where?: BankCardWhereInput
|
|
}
|
|
|
|
/**
|
|
* CustomerCountOutputType without action
|
|
*/
|
|
export type CustomerCountOutputTypeCountIdentityDocumentsArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
where?: IdentityDocumentWhereInput
|
|
}
|
|
|
|
/**
|
|
* CustomerCountOutputType without action
|
|
*/
|
|
export type CustomerCountOutputTypeCountMetersArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
where?: MeterWhereInput
|
|
}
|
|
|
|
/**
|
|
* CustomerCountOutputType without action
|
|
*/
|
|
export type CustomerCountOutputTypeCountStressfreiEmailsArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
where?: StressfreiEmailWhereInput
|
|
}
|
|
|
|
/**
|
|
* CustomerCountOutputType without action
|
|
*/
|
|
export type CustomerCountOutputTypeCountContractsArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
where?: ContractWhereInput
|
|
}
|
|
|
|
/**
|
|
* CustomerCountOutputType without action
|
|
*/
|
|
export type CustomerCountOutputTypeCountRepresentingForArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
where?: CustomerRepresentativeWhereInput
|
|
}
|
|
|
|
/**
|
|
* CustomerCountOutputType without action
|
|
*/
|
|
export type CustomerCountOutputTypeCountRepresentedByArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
where?: CustomerRepresentativeWhereInput
|
|
}
|
|
|
|
|
|
/**
|
|
* Count Type AddressCountOutputType
|
|
*/
|
|
|
|
export type AddressCountOutputType = {
|
|
contractsAsDelivery: number
|
|
contractsAsBilling: number
|
|
}
|
|
|
|
export type AddressCountOutputTypeSelect<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
contractsAsDelivery?: boolean | AddressCountOutputTypeCountContractsAsDeliveryArgs
|
|
contractsAsBilling?: boolean | AddressCountOutputTypeCountContractsAsBillingArgs
|
|
}
|
|
|
|
// Custom InputTypes
|
|
/**
|
|
* AddressCountOutputType without action
|
|
*/
|
|
export type AddressCountOutputTypeDefaultArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the AddressCountOutputType
|
|
*/
|
|
select?: AddressCountOutputTypeSelect<ExtArgs> | null
|
|
}
|
|
|
|
/**
|
|
* AddressCountOutputType without action
|
|
*/
|
|
export type AddressCountOutputTypeCountContractsAsDeliveryArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
where?: ContractWhereInput
|
|
}
|
|
|
|
/**
|
|
* AddressCountOutputType without action
|
|
*/
|
|
export type AddressCountOutputTypeCountContractsAsBillingArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
where?: ContractWhereInput
|
|
}
|
|
|
|
|
|
/**
|
|
* Count Type BankCardCountOutputType
|
|
*/
|
|
|
|
export type BankCardCountOutputType = {
|
|
contracts: number
|
|
}
|
|
|
|
export type BankCardCountOutputTypeSelect<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
contracts?: boolean | BankCardCountOutputTypeCountContractsArgs
|
|
}
|
|
|
|
// Custom InputTypes
|
|
/**
|
|
* BankCardCountOutputType without action
|
|
*/
|
|
export type BankCardCountOutputTypeDefaultArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the BankCardCountOutputType
|
|
*/
|
|
select?: BankCardCountOutputTypeSelect<ExtArgs> | null
|
|
}
|
|
|
|
/**
|
|
* BankCardCountOutputType without action
|
|
*/
|
|
export type BankCardCountOutputTypeCountContractsArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
where?: ContractWhereInput
|
|
}
|
|
|
|
|
|
/**
|
|
* Count Type IdentityDocumentCountOutputType
|
|
*/
|
|
|
|
export type IdentityDocumentCountOutputType = {
|
|
contracts: number
|
|
}
|
|
|
|
export type IdentityDocumentCountOutputTypeSelect<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
contracts?: boolean | IdentityDocumentCountOutputTypeCountContractsArgs
|
|
}
|
|
|
|
// Custom InputTypes
|
|
/**
|
|
* IdentityDocumentCountOutputType without action
|
|
*/
|
|
export type IdentityDocumentCountOutputTypeDefaultArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the IdentityDocumentCountOutputType
|
|
*/
|
|
select?: IdentityDocumentCountOutputTypeSelect<ExtArgs> | null
|
|
}
|
|
|
|
/**
|
|
* IdentityDocumentCountOutputType without action
|
|
*/
|
|
export type IdentityDocumentCountOutputTypeCountContractsArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
where?: ContractWhereInput
|
|
}
|
|
|
|
|
|
/**
|
|
* Count Type StressfreiEmailCountOutputType
|
|
*/
|
|
|
|
export type StressfreiEmailCountOutputType = {
|
|
contracts: number
|
|
cachedEmails: number
|
|
}
|
|
|
|
export type StressfreiEmailCountOutputTypeSelect<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
contracts?: boolean | StressfreiEmailCountOutputTypeCountContractsArgs
|
|
cachedEmails?: boolean | StressfreiEmailCountOutputTypeCountCachedEmailsArgs
|
|
}
|
|
|
|
// Custom InputTypes
|
|
/**
|
|
* StressfreiEmailCountOutputType without action
|
|
*/
|
|
export type StressfreiEmailCountOutputTypeDefaultArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the StressfreiEmailCountOutputType
|
|
*/
|
|
select?: StressfreiEmailCountOutputTypeSelect<ExtArgs> | null
|
|
}
|
|
|
|
/**
|
|
* StressfreiEmailCountOutputType without action
|
|
*/
|
|
export type StressfreiEmailCountOutputTypeCountContractsArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
where?: ContractWhereInput
|
|
}
|
|
|
|
/**
|
|
* StressfreiEmailCountOutputType without action
|
|
*/
|
|
export type StressfreiEmailCountOutputTypeCountCachedEmailsArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
where?: CachedEmailWhereInput
|
|
}
|
|
|
|
|
|
/**
|
|
* Count Type MeterCountOutputType
|
|
*/
|
|
|
|
export type MeterCountOutputType = {
|
|
readings: number
|
|
energyDetails: number
|
|
}
|
|
|
|
export type MeterCountOutputTypeSelect<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
readings?: boolean | MeterCountOutputTypeCountReadingsArgs
|
|
energyDetails?: boolean | MeterCountOutputTypeCountEnergyDetailsArgs
|
|
}
|
|
|
|
// Custom InputTypes
|
|
/**
|
|
* MeterCountOutputType without action
|
|
*/
|
|
export type MeterCountOutputTypeDefaultArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the MeterCountOutputType
|
|
*/
|
|
select?: MeterCountOutputTypeSelect<ExtArgs> | null
|
|
}
|
|
|
|
/**
|
|
* MeterCountOutputType without action
|
|
*/
|
|
export type MeterCountOutputTypeCountReadingsArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
where?: MeterReadingWhereInput
|
|
}
|
|
|
|
/**
|
|
* MeterCountOutputType without action
|
|
*/
|
|
export type MeterCountOutputTypeCountEnergyDetailsArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
where?: EnergyContractDetailsWhereInput
|
|
}
|
|
|
|
|
|
/**
|
|
* Count Type SalesPlatformCountOutputType
|
|
*/
|
|
|
|
export type SalesPlatformCountOutputType = {
|
|
contracts: number
|
|
}
|
|
|
|
export type SalesPlatformCountOutputTypeSelect<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
contracts?: boolean | SalesPlatformCountOutputTypeCountContractsArgs
|
|
}
|
|
|
|
// Custom InputTypes
|
|
/**
|
|
* SalesPlatformCountOutputType without action
|
|
*/
|
|
export type SalesPlatformCountOutputTypeDefaultArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the SalesPlatformCountOutputType
|
|
*/
|
|
select?: SalesPlatformCountOutputTypeSelect<ExtArgs> | null
|
|
}
|
|
|
|
/**
|
|
* SalesPlatformCountOutputType without action
|
|
*/
|
|
export type SalesPlatformCountOutputTypeCountContractsArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
where?: ContractWhereInput
|
|
}
|
|
|
|
|
|
/**
|
|
* Count Type CancellationPeriodCountOutputType
|
|
*/
|
|
|
|
export type CancellationPeriodCountOutputType = {
|
|
contracts: number
|
|
}
|
|
|
|
export type CancellationPeriodCountOutputTypeSelect<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
contracts?: boolean | CancellationPeriodCountOutputTypeCountContractsArgs
|
|
}
|
|
|
|
// Custom InputTypes
|
|
/**
|
|
* CancellationPeriodCountOutputType without action
|
|
*/
|
|
export type CancellationPeriodCountOutputTypeDefaultArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the CancellationPeriodCountOutputType
|
|
*/
|
|
select?: CancellationPeriodCountOutputTypeSelect<ExtArgs> | null
|
|
}
|
|
|
|
/**
|
|
* CancellationPeriodCountOutputType without action
|
|
*/
|
|
export type CancellationPeriodCountOutputTypeCountContractsArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
where?: ContractWhereInput
|
|
}
|
|
|
|
|
|
/**
|
|
* Count Type ContractDurationCountOutputType
|
|
*/
|
|
|
|
export type ContractDurationCountOutputType = {
|
|
contracts: number
|
|
}
|
|
|
|
export type ContractDurationCountOutputTypeSelect<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
contracts?: boolean | ContractDurationCountOutputTypeCountContractsArgs
|
|
}
|
|
|
|
// Custom InputTypes
|
|
/**
|
|
* ContractDurationCountOutputType without action
|
|
*/
|
|
export type ContractDurationCountOutputTypeDefaultArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the ContractDurationCountOutputType
|
|
*/
|
|
select?: ContractDurationCountOutputTypeSelect<ExtArgs> | null
|
|
}
|
|
|
|
/**
|
|
* ContractDurationCountOutputType without action
|
|
*/
|
|
export type ContractDurationCountOutputTypeCountContractsArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
where?: ContractWhereInput
|
|
}
|
|
|
|
|
|
/**
|
|
* Count Type ProviderCountOutputType
|
|
*/
|
|
|
|
export type ProviderCountOutputType = {
|
|
tariffs: number
|
|
contracts: number
|
|
}
|
|
|
|
export type ProviderCountOutputTypeSelect<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
tariffs?: boolean | ProviderCountOutputTypeCountTariffsArgs
|
|
contracts?: boolean | ProviderCountOutputTypeCountContractsArgs
|
|
}
|
|
|
|
// Custom InputTypes
|
|
/**
|
|
* ProviderCountOutputType without action
|
|
*/
|
|
export type ProviderCountOutputTypeDefaultArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the ProviderCountOutputType
|
|
*/
|
|
select?: ProviderCountOutputTypeSelect<ExtArgs> | null
|
|
}
|
|
|
|
/**
|
|
* ProviderCountOutputType without action
|
|
*/
|
|
export type ProviderCountOutputTypeCountTariffsArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
where?: TariffWhereInput
|
|
}
|
|
|
|
/**
|
|
* ProviderCountOutputType without action
|
|
*/
|
|
export type ProviderCountOutputTypeCountContractsArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
where?: ContractWhereInput
|
|
}
|
|
|
|
|
|
/**
|
|
* Count Type TariffCountOutputType
|
|
*/
|
|
|
|
export type TariffCountOutputType = {
|
|
contracts: number
|
|
}
|
|
|
|
export type TariffCountOutputTypeSelect<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
contracts?: boolean | TariffCountOutputTypeCountContractsArgs
|
|
}
|
|
|
|
// Custom InputTypes
|
|
/**
|
|
* TariffCountOutputType without action
|
|
*/
|
|
export type TariffCountOutputTypeDefaultArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the TariffCountOutputType
|
|
*/
|
|
select?: TariffCountOutputTypeSelect<ExtArgs> | null
|
|
}
|
|
|
|
/**
|
|
* TariffCountOutputType without action
|
|
*/
|
|
export type TariffCountOutputTypeCountContractsArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
where?: ContractWhereInput
|
|
}
|
|
|
|
|
|
/**
|
|
* Count Type ContractCategoryCountOutputType
|
|
*/
|
|
|
|
export type ContractCategoryCountOutputType = {
|
|
contracts: number
|
|
}
|
|
|
|
export type ContractCategoryCountOutputTypeSelect<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
contracts?: boolean | ContractCategoryCountOutputTypeCountContractsArgs
|
|
}
|
|
|
|
// Custom InputTypes
|
|
/**
|
|
* ContractCategoryCountOutputType without action
|
|
*/
|
|
export type ContractCategoryCountOutputTypeDefaultArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the ContractCategoryCountOutputType
|
|
*/
|
|
select?: ContractCategoryCountOutputTypeSelect<ExtArgs> | null
|
|
}
|
|
|
|
/**
|
|
* ContractCategoryCountOutputType without action
|
|
*/
|
|
export type ContractCategoryCountOutputTypeCountContractsArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
where?: ContractWhereInput
|
|
}
|
|
|
|
|
|
/**
|
|
* Count Type ContractCountOutputType
|
|
*/
|
|
|
|
export type ContractCountOutputType = {
|
|
tasks: number
|
|
assignedEmails: number
|
|
}
|
|
|
|
export type ContractCountOutputTypeSelect<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
tasks?: boolean | ContractCountOutputTypeCountTasksArgs
|
|
assignedEmails?: boolean | ContractCountOutputTypeCountAssignedEmailsArgs
|
|
}
|
|
|
|
// Custom InputTypes
|
|
/**
|
|
* ContractCountOutputType without action
|
|
*/
|
|
export type ContractCountOutputTypeDefaultArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the ContractCountOutputType
|
|
*/
|
|
select?: ContractCountOutputTypeSelect<ExtArgs> | null
|
|
}
|
|
|
|
/**
|
|
* ContractCountOutputType without action
|
|
*/
|
|
export type ContractCountOutputTypeCountTasksArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
where?: ContractTaskWhereInput
|
|
}
|
|
|
|
/**
|
|
* ContractCountOutputType without action
|
|
*/
|
|
export type ContractCountOutputTypeCountAssignedEmailsArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
where?: CachedEmailWhereInput
|
|
}
|
|
|
|
|
|
/**
|
|
* Count Type ContractTaskCountOutputType
|
|
*/
|
|
|
|
export type ContractTaskCountOutputType = {
|
|
subtasks: number
|
|
}
|
|
|
|
export type ContractTaskCountOutputTypeSelect<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
subtasks?: boolean | ContractTaskCountOutputTypeCountSubtasksArgs
|
|
}
|
|
|
|
// Custom InputTypes
|
|
/**
|
|
* ContractTaskCountOutputType without action
|
|
*/
|
|
export type ContractTaskCountOutputTypeDefaultArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the ContractTaskCountOutputType
|
|
*/
|
|
select?: ContractTaskCountOutputTypeSelect<ExtArgs> | null
|
|
}
|
|
|
|
/**
|
|
* ContractTaskCountOutputType without action
|
|
*/
|
|
export type ContractTaskCountOutputTypeCountSubtasksArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
where?: ContractTaskSubtaskWhereInput
|
|
}
|
|
|
|
|
|
/**
|
|
* Count Type InternetContractDetailsCountOutputType
|
|
*/
|
|
|
|
export type InternetContractDetailsCountOutputType = {
|
|
phoneNumbers: number
|
|
}
|
|
|
|
export type InternetContractDetailsCountOutputTypeSelect<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
phoneNumbers?: boolean | InternetContractDetailsCountOutputTypeCountPhoneNumbersArgs
|
|
}
|
|
|
|
// Custom InputTypes
|
|
/**
|
|
* InternetContractDetailsCountOutputType without action
|
|
*/
|
|
export type InternetContractDetailsCountOutputTypeDefaultArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the InternetContractDetailsCountOutputType
|
|
*/
|
|
select?: InternetContractDetailsCountOutputTypeSelect<ExtArgs> | null
|
|
}
|
|
|
|
/**
|
|
* InternetContractDetailsCountOutputType without action
|
|
*/
|
|
export type InternetContractDetailsCountOutputTypeCountPhoneNumbersArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
where?: PhoneNumberWhereInput
|
|
}
|
|
|
|
|
|
/**
|
|
* Count Type MobileContractDetailsCountOutputType
|
|
*/
|
|
|
|
export type MobileContractDetailsCountOutputType = {
|
|
simCards: number
|
|
}
|
|
|
|
export type MobileContractDetailsCountOutputTypeSelect<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
simCards?: boolean | MobileContractDetailsCountOutputTypeCountSimCardsArgs
|
|
}
|
|
|
|
// Custom InputTypes
|
|
/**
|
|
* MobileContractDetailsCountOutputType without action
|
|
*/
|
|
export type MobileContractDetailsCountOutputTypeDefaultArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the MobileContractDetailsCountOutputType
|
|
*/
|
|
select?: MobileContractDetailsCountOutputTypeSelect<ExtArgs> | null
|
|
}
|
|
|
|
/**
|
|
* MobileContractDetailsCountOutputType without action
|
|
*/
|
|
export type MobileContractDetailsCountOutputTypeCountSimCardsArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
where?: SimCardWhereInput
|
|
}
|
|
|
|
|
|
/**
|
|
* Models
|
|
*/
|
|
|
|
/**
|
|
* Model AppSetting
|
|
*/
|
|
|
|
export type AggregateAppSetting = {
|
|
_count: AppSettingCountAggregateOutputType | null
|
|
_avg: AppSettingAvgAggregateOutputType | null
|
|
_sum: AppSettingSumAggregateOutputType | null
|
|
_min: AppSettingMinAggregateOutputType | null
|
|
_max: AppSettingMaxAggregateOutputType | null
|
|
}
|
|
|
|
export type AppSettingAvgAggregateOutputType = {
|
|
id: number | null
|
|
}
|
|
|
|
export type AppSettingSumAggregateOutputType = {
|
|
id: number | null
|
|
}
|
|
|
|
export type AppSettingMinAggregateOutputType = {
|
|
id: number | null
|
|
key: string | null
|
|
value: string | null
|
|
createdAt: Date | null
|
|
updatedAt: Date | null
|
|
}
|
|
|
|
export type AppSettingMaxAggregateOutputType = {
|
|
id: number | null
|
|
key: string | null
|
|
value: string | null
|
|
createdAt: Date | null
|
|
updatedAt: Date | null
|
|
}
|
|
|
|
export type AppSettingCountAggregateOutputType = {
|
|
id: number
|
|
key: number
|
|
value: number
|
|
createdAt: number
|
|
updatedAt: number
|
|
_all: number
|
|
}
|
|
|
|
|
|
export type AppSettingAvgAggregateInputType = {
|
|
id?: true
|
|
}
|
|
|
|
export type AppSettingSumAggregateInputType = {
|
|
id?: true
|
|
}
|
|
|
|
export type AppSettingMinAggregateInputType = {
|
|
id?: true
|
|
key?: true
|
|
value?: true
|
|
createdAt?: true
|
|
updatedAt?: true
|
|
}
|
|
|
|
export type AppSettingMaxAggregateInputType = {
|
|
id?: true
|
|
key?: true
|
|
value?: true
|
|
createdAt?: true
|
|
updatedAt?: true
|
|
}
|
|
|
|
export type AppSettingCountAggregateInputType = {
|
|
id?: true
|
|
key?: true
|
|
value?: true
|
|
createdAt?: true
|
|
updatedAt?: true
|
|
_all?: true
|
|
}
|
|
|
|
export type AppSettingAggregateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Filter which AppSetting to aggregate.
|
|
*/
|
|
where?: AppSettingWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of AppSettings to fetch.
|
|
*/
|
|
orderBy?: AppSettingOrderByWithRelationInput | AppSettingOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the start position
|
|
*/
|
|
cursor?: AppSettingWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` AppSettings from the position of the cursor.
|
|
*/
|
|
take?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Skip the first `n` AppSettings.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Count returned AppSettings
|
|
**/
|
|
_count?: true | AppSettingCountAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to average
|
|
**/
|
|
_avg?: AppSettingAvgAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to sum
|
|
**/
|
|
_sum?: AppSettingSumAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to find the minimum value
|
|
**/
|
|
_min?: AppSettingMinAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to find the maximum value
|
|
**/
|
|
_max?: AppSettingMaxAggregateInputType
|
|
}
|
|
|
|
export type GetAppSettingAggregateType<T extends AppSettingAggregateArgs> = {
|
|
[P in keyof T & keyof AggregateAppSetting]: P extends '_count' | 'count'
|
|
? T[P] extends true
|
|
? number
|
|
: GetScalarType<T[P], AggregateAppSetting[P]>
|
|
: GetScalarType<T[P], AggregateAppSetting[P]>
|
|
}
|
|
|
|
|
|
|
|
|
|
export type AppSettingGroupByArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
where?: AppSettingWhereInput
|
|
orderBy?: AppSettingOrderByWithAggregationInput | AppSettingOrderByWithAggregationInput[]
|
|
by: AppSettingScalarFieldEnum[] | AppSettingScalarFieldEnum
|
|
having?: AppSettingScalarWhereWithAggregatesInput
|
|
take?: number
|
|
skip?: number
|
|
_count?: AppSettingCountAggregateInputType | true
|
|
_avg?: AppSettingAvgAggregateInputType
|
|
_sum?: AppSettingSumAggregateInputType
|
|
_min?: AppSettingMinAggregateInputType
|
|
_max?: AppSettingMaxAggregateInputType
|
|
}
|
|
|
|
export type AppSettingGroupByOutputType = {
|
|
id: number
|
|
key: string
|
|
value: string
|
|
createdAt: Date
|
|
updatedAt: Date
|
|
_count: AppSettingCountAggregateOutputType | null
|
|
_avg: AppSettingAvgAggregateOutputType | null
|
|
_sum: AppSettingSumAggregateOutputType | null
|
|
_min: AppSettingMinAggregateOutputType | null
|
|
_max: AppSettingMaxAggregateOutputType | null
|
|
}
|
|
|
|
type GetAppSettingGroupByPayload<T extends AppSettingGroupByArgs> = Prisma.PrismaPromise<
|
|
Array<
|
|
PickEnumerable<AppSettingGroupByOutputType, T['by']> &
|
|
{
|
|
[P in ((keyof T) & (keyof AppSettingGroupByOutputType))]: P extends '_count'
|
|
? T[P] extends boolean
|
|
? number
|
|
: GetScalarType<T[P], AppSettingGroupByOutputType[P]>
|
|
: GetScalarType<T[P], AppSettingGroupByOutputType[P]>
|
|
}
|
|
>
|
|
>
|
|
|
|
|
|
export type AppSettingSelect<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
|
|
id?: boolean
|
|
key?: boolean
|
|
value?: boolean
|
|
createdAt?: boolean
|
|
updatedAt?: boolean
|
|
}, ExtArgs["result"]["appSetting"]>
|
|
|
|
|
|
export type AppSettingSelectScalar = {
|
|
id?: boolean
|
|
key?: boolean
|
|
value?: boolean
|
|
createdAt?: boolean
|
|
updatedAt?: boolean
|
|
}
|
|
|
|
|
|
export type $AppSettingPayload<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
name: "AppSetting"
|
|
objects: {}
|
|
scalars: $Extensions.GetPayloadResult<{
|
|
id: number
|
|
key: string
|
|
value: string
|
|
createdAt: Date
|
|
updatedAt: Date
|
|
}, ExtArgs["result"]["appSetting"]>
|
|
composites: {}
|
|
}
|
|
|
|
type AppSettingGetPayload<S extends boolean | null | undefined | AppSettingDefaultArgs> = $Result.GetResult<Prisma.$AppSettingPayload, S>
|
|
|
|
type AppSettingCountArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> =
|
|
Omit<AppSettingFindManyArgs, 'select' | 'include' | 'distinct'> & {
|
|
select?: AppSettingCountAggregateInputType | true
|
|
}
|
|
|
|
export interface AppSettingDelegate<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> {
|
|
[K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['AppSetting'], meta: { name: 'AppSetting' } }
|
|
/**
|
|
* Find zero or one AppSetting that matches the filter.
|
|
* @param {AppSettingFindUniqueArgs} args - Arguments to find a AppSetting
|
|
* @example
|
|
* // Get one AppSetting
|
|
* const appSetting = await prisma.appSetting.findUnique({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findUnique<T extends AppSettingFindUniqueArgs>(args: SelectSubset<T, AppSettingFindUniqueArgs<ExtArgs>>): Prisma__AppSettingClient<$Result.GetResult<Prisma.$AppSettingPayload<ExtArgs>, T, "findUnique"> | null, null, ExtArgs>
|
|
|
|
/**
|
|
* Find one AppSetting that matches the filter or throw an error with `error.code='P2025'`
|
|
* if no matches were found.
|
|
* @param {AppSettingFindUniqueOrThrowArgs} args - Arguments to find a AppSetting
|
|
* @example
|
|
* // Get one AppSetting
|
|
* const appSetting = await prisma.appSetting.findUniqueOrThrow({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findUniqueOrThrow<T extends AppSettingFindUniqueOrThrowArgs>(args: SelectSubset<T, AppSettingFindUniqueOrThrowArgs<ExtArgs>>): Prisma__AppSettingClient<$Result.GetResult<Prisma.$AppSettingPayload<ExtArgs>, T, "findUniqueOrThrow">, never, ExtArgs>
|
|
|
|
/**
|
|
* Find the first AppSetting that matches the filter.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {AppSettingFindFirstArgs} args - Arguments to find a AppSetting
|
|
* @example
|
|
* // Get one AppSetting
|
|
* const appSetting = await prisma.appSetting.findFirst({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findFirst<T extends AppSettingFindFirstArgs>(args?: SelectSubset<T, AppSettingFindFirstArgs<ExtArgs>>): Prisma__AppSettingClient<$Result.GetResult<Prisma.$AppSettingPayload<ExtArgs>, T, "findFirst"> | null, null, ExtArgs>
|
|
|
|
/**
|
|
* Find the first AppSetting that matches the filter or
|
|
* throw `PrismaKnownClientError` with `P2025` code if no matches were found.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {AppSettingFindFirstOrThrowArgs} args - Arguments to find a AppSetting
|
|
* @example
|
|
* // Get one AppSetting
|
|
* const appSetting = await prisma.appSetting.findFirstOrThrow({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findFirstOrThrow<T extends AppSettingFindFirstOrThrowArgs>(args?: SelectSubset<T, AppSettingFindFirstOrThrowArgs<ExtArgs>>): Prisma__AppSettingClient<$Result.GetResult<Prisma.$AppSettingPayload<ExtArgs>, T, "findFirstOrThrow">, never, ExtArgs>
|
|
|
|
/**
|
|
* Find zero or more AppSettings that matches the filter.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {AppSettingFindManyArgs} args - Arguments to filter and select certain fields only.
|
|
* @example
|
|
* // Get all AppSettings
|
|
* const appSettings = await prisma.appSetting.findMany()
|
|
*
|
|
* // Get first 10 AppSettings
|
|
* const appSettings = await prisma.appSetting.findMany({ take: 10 })
|
|
*
|
|
* // Only select the `id`
|
|
* const appSettingWithIdOnly = await prisma.appSetting.findMany({ select: { id: true } })
|
|
*
|
|
*/
|
|
findMany<T extends AppSettingFindManyArgs>(args?: SelectSubset<T, AppSettingFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$AppSettingPayload<ExtArgs>, T, "findMany">>
|
|
|
|
/**
|
|
* Create a AppSetting.
|
|
* @param {AppSettingCreateArgs} args - Arguments to create a AppSetting.
|
|
* @example
|
|
* // Create one AppSetting
|
|
* const AppSetting = await prisma.appSetting.create({
|
|
* data: {
|
|
* // ... data to create a AppSetting
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
create<T extends AppSettingCreateArgs>(args: SelectSubset<T, AppSettingCreateArgs<ExtArgs>>): Prisma__AppSettingClient<$Result.GetResult<Prisma.$AppSettingPayload<ExtArgs>, T, "create">, never, ExtArgs>
|
|
|
|
/**
|
|
* Create many AppSettings.
|
|
* @param {AppSettingCreateManyArgs} args - Arguments to create many AppSettings.
|
|
* @example
|
|
* // Create many AppSettings
|
|
* const appSetting = await prisma.appSetting.createMany({
|
|
* data: [
|
|
* // ... provide data here
|
|
* ]
|
|
* })
|
|
*
|
|
*/
|
|
createMany<T extends AppSettingCreateManyArgs>(args?: SelectSubset<T, AppSettingCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
|
|
|
|
/**
|
|
* Delete a AppSetting.
|
|
* @param {AppSettingDeleteArgs} args - Arguments to delete one AppSetting.
|
|
* @example
|
|
* // Delete one AppSetting
|
|
* const AppSetting = await prisma.appSetting.delete({
|
|
* where: {
|
|
* // ... filter to delete one AppSetting
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
delete<T extends AppSettingDeleteArgs>(args: SelectSubset<T, AppSettingDeleteArgs<ExtArgs>>): Prisma__AppSettingClient<$Result.GetResult<Prisma.$AppSettingPayload<ExtArgs>, T, "delete">, never, ExtArgs>
|
|
|
|
/**
|
|
* Update one AppSetting.
|
|
* @param {AppSettingUpdateArgs} args - Arguments to update one AppSetting.
|
|
* @example
|
|
* // Update one AppSetting
|
|
* const appSetting = await prisma.appSetting.update({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* },
|
|
* data: {
|
|
* // ... provide data here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
update<T extends AppSettingUpdateArgs>(args: SelectSubset<T, AppSettingUpdateArgs<ExtArgs>>): Prisma__AppSettingClient<$Result.GetResult<Prisma.$AppSettingPayload<ExtArgs>, T, "update">, never, ExtArgs>
|
|
|
|
/**
|
|
* Delete zero or more AppSettings.
|
|
* @param {AppSettingDeleteManyArgs} args - Arguments to filter AppSettings to delete.
|
|
* @example
|
|
* // Delete a few AppSettings
|
|
* const { count } = await prisma.appSetting.deleteMany({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
deleteMany<T extends AppSettingDeleteManyArgs>(args?: SelectSubset<T, AppSettingDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
|
|
|
|
/**
|
|
* Update zero or more AppSettings.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {AppSettingUpdateManyArgs} args - Arguments to update one or more rows.
|
|
* @example
|
|
* // Update many AppSettings
|
|
* const appSetting = await prisma.appSetting.updateMany({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* },
|
|
* data: {
|
|
* // ... provide data here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
updateMany<T extends AppSettingUpdateManyArgs>(args: SelectSubset<T, AppSettingUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
|
|
|
|
/**
|
|
* Create or update one AppSetting.
|
|
* @param {AppSettingUpsertArgs} args - Arguments to update or create a AppSetting.
|
|
* @example
|
|
* // Update or create a AppSetting
|
|
* const appSetting = await prisma.appSetting.upsert({
|
|
* create: {
|
|
* // ... data to create a AppSetting
|
|
* },
|
|
* update: {
|
|
* // ... in case it already exists, update
|
|
* },
|
|
* where: {
|
|
* // ... the filter for the AppSetting we want to update
|
|
* }
|
|
* })
|
|
*/
|
|
upsert<T extends AppSettingUpsertArgs>(args: SelectSubset<T, AppSettingUpsertArgs<ExtArgs>>): Prisma__AppSettingClient<$Result.GetResult<Prisma.$AppSettingPayload<ExtArgs>, T, "upsert">, never, ExtArgs>
|
|
|
|
|
|
/**
|
|
* Count the number of AppSettings.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {AppSettingCountArgs} args - Arguments to filter AppSettings to count.
|
|
* @example
|
|
* // Count the number of AppSettings
|
|
* const count = await prisma.appSetting.count({
|
|
* where: {
|
|
* // ... the filter for the AppSettings we want to count
|
|
* }
|
|
* })
|
|
**/
|
|
count<T extends AppSettingCountArgs>(
|
|
args?: Subset<T, AppSettingCountArgs>,
|
|
): Prisma.PrismaPromise<
|
|
T extends $Utils.Record<'select', any>
|
|
? T['select'] extends true
|
|
? number
|
|
: GetScalarType<T['select'], AppSettingCountAggregateOutputType>
|
|
: number
|
|
>
|
|
|
|
/**
|
|
* Allows you to perform aggregations operations on a AppSetting.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {AppSettingAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
|
|
* @example
|
|
* // Ordered by age ascending
|
|
* // Where email contains prisma.io
|
|
* // Limited to the 10 users
|
|
* const aggregations = await prisma.user.aggregate({
|
|
* _avg: {
|
|
* age: true,
|
|
* },
|
|
* where: {
|
|
* email: {
|
|
* contains: "prisma.io",
|
|
* },
|
|
* },
|
|
* orderBy: {
|
|
* age: "asc",
|
|
* },
|
|
* take: 10,
|
|
* })
|
|
**/
|
|
aggregate<T extends AppSettingAggregateArgs>(args: Subset<T, AppSettingAggregateArgs>): Prisma.PrismaPromise<GetAppSettingAggregateType<T>>
|
|
|
|
/**
|
|
* Group by AppSetting.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {AppSettingGroupByArgs} args - Group by arguments.
|
|
* @example
|
|
* // Group by city, order by createdAt, get count
|
|
* const result = await prisma.user.groupBy({
|
|
* by: ['city', 'createdAt'],
|
|
* orderBy: {
|
|
* createdAt: true
|
|
* },
|
|
* _count: {
|
|
* _all: true
|
|
* },
|
|
* })
|
|
*
|
|
**/
|
|
groupBy<
|
|
T extends AppSettingGroupByArgs,
|
|
HasSelectOrTake extends Or<
|
|
Extends<'skip', Keys<T>>,
|
|
Extends<'take', Keys<T>>
|
|
>,
|
|
OrderByArg extends True extends HasSelectOrTake
|
|
? { orderBy: AppSettingGroupByArgs['orderBy'] }
|
|
: { orderBy?: AppSettingGroupByArgs['orderBy'] },
|
|
OrderFields extends ExcludeUnderscoreKeys<Keys<MaybeTupleToUnion<T['orderBy']>>>,
|
|
ByFields extends MaybeTupleToUnion<T['by']>,
|
|
ByValid extends Has<ByFields, OrderFields>,
|
|
HavingFields extends GetHavingFields<T['having']>,
|
|
HavingValid extends Has<ByFields, HavingFields>,
|
|
ByEmpty extends T['by'] extends never[] ? True : False,
|
|
InputErrors extends ByEmpty extends True
|
|
? `Error: "by" must not be empty.`
|
|
: HavingValid extends False
|
|
? {
|
|
[P in HavingFields]: P extends ByFields
|
|
? never
|
|
: P extends string
|
|
? `Error: Field "${P}" used in "having" needs to be provided in "by".`
|
|
: [
|
|
Error,
|
|
'Field ',
|
|
P,
|
|
` in "having" needs to be provided in "by"`,
|
|
]
|
|
}[HavingFields]
|
|
: 'take' extends Keys<T>
|
|
? 'orderBy' extends Keys<T>
|
|
? ByValid extends True
|
|
? {}
|
|
: {
|
|
[P in OrderFields]: P extends ByFields
|
|
? never
|
|
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
|
|
}[OrderFields]
|
|
: 'Error: If you provide "take", you also need to provide "orderBy"'
|
|
: 'skip' extends Keys<T>
|
|
? 'orderBy' extends Keys<T>
|
|
? ByValid extends True
|
|
? {}
|
|
: {
|
|
[P in OrderFields]: P extends ByFields
|
|
? never
|
|
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
|
|
}[OrderFields]
|
|
: 'Error: If you provide "skip", you also need to provide "orderBy"'
|
|
: ByValid extends True
|
|
? {}
|
|
: {
|
|
[P in OrderFields]: P extends ByFields
|
|
? never
|
|
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
|
|
}[OrderFields]
|
|
>(args: SubsetIntersection<T, AppSettingGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetAppSettingGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
|
|
/**
|
|
* Fields of the AppSetting model
|
|
*/
|
|
readonly fields: AppSettingFieldRefs;
|
|
}
|
|
|
|
/**
|
|
* The delegate class that acts as a "Promise-like" for AppSetting.
|
|
* Why is this prefixed with `Prisma__`?
|
|
* Because we want to prevent naming conflicts as mentioned in
|
|
* https://github.com/prisma/prisma-client-js/issues/707
|
|
*/
|
|
export interface Prisma__AppSettingClient<T, Null = never, ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> extends Prisma.PrismaPromise<T> {
|
|
readonly [Symbol.toStringTag]: "PrismaPromise"
|
|
/**
|
|
* Attaches callbacks for the resolution and/or rejection of the Promise.
|
|
* @param onfulfilled The callback to execute when the Promise is resolved.
|
|
* @param onrejected The callback to execute when the Promise is rejected.
|
|
* @returns A Promise for the completion of which ever callback is executed.
|
|
*/
|
|
then<TResult1 = T, TResult2 = never>(onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined | null): $Utils.JsPromise<TResult1 | TResult2>
|
|
/**
|
|
* Attaches a callback for only the rejection of the Promise.
|
|
* @param onrejected The callback to execute when the Promise is rejected.
|
|
* @returns A Promise for the completion of the callback.
|
|
*/
|
|
catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): $Utils.JsPromise<T | TResult>
|
|
/**
|
|
* Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
|
|
* resolved value cannot be modified from the callback.
|
|
* @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
|
|
* @returns A Promise for the completion of the callback.
|
|
*/
|
|
finally(onfinally?: (() => void) | undefined | null): $Utils.JsPromise<T>
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
* Fields of the AppSetting model
|
|
*/
|
|
interface AppSettingFieldRefs {
|
|
readonly id: FieldRef<"AppSetting", 'Int'>
|
|
readonly key: FieldRef<"AppSetting", 'String'>
|
|
readonly value: FieldRef<"AppSetting", 'String'>
|
|
readonly createdAt: FieldRef<"AppSetting", 'DateTime'>
|
|
readonly updatedAt: FieldRef<"AppSetting", 'DateTime'>
|
|
}
|
|
|
|
|
|
// Custom InputTypes
|
|
/**
|
|
* AppSetting findUnique
|
|
*/
|
|
export type AppSettingFindUniqueArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the AppSetting
|
|
*/
|
|
select?: AppSettingSelect<ExtArgs> | null
|
|
/**
|
|
* Filter, which AppSetting to fetch.
|
|
*/
|
|
where: AppSettingWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* AppSetting findUniqueOrThrow
|
|
*/
|
|
export type AppSettingFindUniqueOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the AppSetting
|
|
*/
|
|
select?: AppSettingSelect<ExtArgs> | null
|
|
/**
|
|
* Filter, which AppSetting to fetch.
|
|
*/
|
|
where: AppSettingWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* AppSetting findFirst
|
|
*/
|
|
export type AppSettingFindFirstArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the AppSetting
|
|
*/
|
|
select?: AppSettingSelect<ExtArgs> | null
|
|
/**
|
|
* Filter, which AppSetting to fetch.
|
|
*/
|
|
where?: AppSettingWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of AppSettings to fetch.
|
|
*/
|
|
orderBy?: AppSettingOrderByWithRelationInput | AppSettingOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for searching for AppSettings.
|
|
*/
|
|
cursor?: AppSettingWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` AppSettings from the position of the cursor.
|
|
*/
|
|
take?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Skip the first `n` AppSettings.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
*
|
|
* Filter by unique combinations of AppSettings.
|
|
*/
|
|
distinct?: AppSettingScalarFieldEnum | AppSettingScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* AppSetting findFirstOrThrow
|
|
*/
|
|
export type AppSettingFindFirstOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the AppSetting
|
|
*/
|
|
select?: AppSettingSelect<ExtArgs> | null
|
|
/**
|
|
* Filter, which AppSetting to fetch.
|
|
*/
|
|
where?: AppSettingWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of AppSettings to fetch.
|
|
*/
|
|
orderBy?: AppSettingOrderByWithRelationInput | AppSettingOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for searching for AppSettings.
|
|
*/
|
|
cursor?: AppSettingWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` AppSettings from the position of the cursor.
|
|
*/
|
|
take?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Skip the first `n` AppSettings.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
*
|
|
* Filter by unique combinations of AppSettings.
|
|
*/
|
|
distinct?: AppSettingScalarFieldEnum | AppSettingScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* AppSetting findMany
|
|
*/
|
|
export type AppSettingFindManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the AppSetting
|
|
*/
|
|
select?: AppSettingSelect<ExtArgs> | null
|
|
/**
|
|
* Filter, which AppSettings to fetch.
|
|
*/
|
|
where?: AppSettingWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of AppSettings to fetch.
|
|
*/
|
|
orderBy?: AppSettingOrderByWithRelationInput | AppSettingOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for listing AppSettings.
|
|
*/
|
|
cursor?: AppSettingWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` AppSettings from the position of the cursor.
|
|
*/
|
|
take?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Skip the first `n` AppSettings.
|
|
*/
|
|
skip?: number
|
|
distinct?: AppSettingScalarFieldEnum | AppSettingScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* AppSetting create
|
|
*/
|
|
export type AppSettingCreateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the AppSetting
|
|
*/
|
|
select?: AppSettingSelect<ExtArgs> | null
|
|
/**
|
|
* The data needed to create a AppSetting.
|
|
*/
|
|
data: XOR<AppSettingCreateInput, AppSettingUncheckedCreateInput>
|
|
}
|
|
|
|
/**
|
|
* AppSetting createMany
|
|
*/
|
|
export type AppSettingCreateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* The data used to create many AppSettings.
|
|
*/
|
|
data: AppSettingCreateManyInput | AppSettingCreateManyInput[]
|
|
skipDuplicates?: boolean
|
|
}
|
|
|
|
/**
|
|
* AppSetting update
|
|
*/
|
|
export type AppSettingUpdateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the AppSetting
|
|
*/
|
|
select?: AppSettingSelect<ExtArgs> | null
|
|
/**
|
|
* The data needed to update a AppSetting.
|
|
*/
|
|
data: XOR<AppSettingUpdateInput, AppSettingUncheckedUpdateInput>
|
|
/**
|
|
* Choose, which AppSetting to update.
|
|
*/
|
|
where: AppSettingWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* AppSetting updateMany
|
|
*/
|
|
export type AppSettingUpdateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* The data used to update AppSettings.
|
|
*/
|
|
data: XOR<AppSettingUpdateManyMutationInput, AppSettingUncheckedUpdateManyInput>
|
|
/**
|
|
* Filter which AppSettings to update
|
|
*/
|
|
where?: AppSettingWhereInput
|
|
}
|
|
|
|
/**
|
|
* AppSetting upsert
|
|
*/
|
|
export type AppSettingUpsertArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the AppSetting
|
|
*/
|
|
select?: AppSettingSelect<ExtArgs> | null
|
|
/**
|
|
* The filter to search for the AppSetting to update in case it exists.
|
|
*/
|
|
where: AppSettingWhereUniqueInput
|
|
/**
|
|
* In case the AppSetting found by the `where` argument doesn't exist, create a new AppSetting with this data.
|
|
*/
|
|
create: XOR<AppSettingCreateInput, AppSettingUncheckedCreateInput>
|
|
/**
|
|
* In case the AppSetting was found with the provided `where` argument, update it with this data.
|
|
*/
|
|
update: XOR<AppSettingUpdateInput, AppSettingUncheckedUpdateInput>
|
|
}
|
|
|
|
/**
|
|
* AppSetting delete
|
|
*/
|
|
export type AppSettingDeleteArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the AppSetting
|
|
*/
|
|
select?: AppSettingSelect<ExtArgs> | null
|
|
/**
|
|
* Filter which AppSetting to delete.
|
|
*/
|
|
where: AppSettingWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* AppSetting deleteMany
|
|
*/
|
|
export type AppSettingDeleteManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Filter which AppSettings to delete
|
|
*/
|
|
where?: AppSettingWhereInput
|
|
}
|
|
|
|
/**
|
|
* AppSetting without action
|
|
*/
|
|
export type AppSettingDefaultArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the AppSetting
|
|
*/
|
|
select?: AppSettingSelect<ExtArgs> | null
|
|
}
|
|
|
|
|
|
/**
|
|
* Model User
|
|
*/
|
|
|
|
export type AggregateUser = {
|
|
_count: UserCountAggregateOutputType | null
|
|
_avg: UserAvgAggregateOutputType | null
|
|
_sum: UserSumAggregateOutputType | null
|
|
_min: UserMinAggregateOutputType | null
|
|
_max: UserMaxAggregateOutputType | null
|
|
}
|
|
|
|
export type UserAvgAggregateOutputType = {
|
|
id: number | null
|
|
customerId: number | null
|
|
}
|
|
|
|
export type UserSumAggregateOutputType = {
|
|
id: number | null
|
|
customerId: number | null
|
|
}
|
|
|
|
export type UserMinAggregateOutputType = {
|
|
id: number | null
|
|
email: string | null
|
|
password: string | null
|
|
firstName: string | null
|
|
lastName: string | null
|
|
isActive: boolean | null
|
|
tokenInvalidatedAt: Date | null
|
|
customerId: number | null
|
|
createdAt: Date | null
|
|
updatedAt: Date | null
|
|
}
|
|
|
|
export type UserMaxAggregateOutputType = {
|
|
id: number | null
|
|
email: string | null
|
|
password: string | null
|
|
firstName: string | null
|
|
lastName: string | null
|
|
isActive: boolean | null
|
|
tokenInvalidatedAt: Date | null
|
|
customerId: number | null
|
|
createdAt: Date | null
|
|
updatedAt: Date | null
|
|
}
|
|
|
|
export type UserCountAggregateOutputType = {
|
|
id: number
|
|
email: number
|
|
password: number
|
|
firstName: number
|
|
lastName: number
|
|
isActive: number
|
|
tokenInvalidatedAt: number
|
|
customerId: number
|
|
createdAt: number
|
|
updatedAt: number
|
|
_all: number
|
|
}
|
|
|
|
|
|
export type UserAvgAggregateInputType = {
|
|
id?: true
|
|
customerId?: true
|
|
}
|
|
|
|
export type UserSumAggregateInputType = {
|
|
id?: true
|
|
customerId?: true
|
|
}
|
|
|
|
export type UserMinAggregateInputType = {
|
|
id?: true
|
|
email?: true
|
|
password?: true
|
|
firstName?: true
|
|
lastName?: true
|
|
isActive?: true
|
|
tokenInvalidatedAt?: true
|
|
customerId?: true
|
|
createdAt?: true
|
|
updatedAt?: true
|
|
}
|
|
|
|
export type UserMaxAggregateInputType = {
|
|
id?: true
|
|
email?: true
|
|
password?: true
|
|
firstName?: true
|
|
lastName?: true
|
|
isActive?: true
|
|
tokenInvalidatedAt?: true
|
|
customerId?: true
|
|
createdAt?: true
|
|
updatedAt?: true
|
|
}
|
|
|
|
export type UserCountAggregateInputType = {
|
|
id?: true
|
|
email?: true
|
|
password?: true
|
|
firstName?: true
|
|
lastName?: true
|
|
isActive?: true
|
|
tokenInvalidatedAt?: true
|
|
customerId?: true
|
|
createdAt?: true
|
|
updatedAt?: true
|
|
_all?: true
|
|
}
|
|
|
|
export type UserAggregateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Filter which User to aggregate.
|
|
*/
|
|
where?: UserWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of Users to fetch.
|
|
*/
|
|
orderBy?: UserOrderByWithRelationInput | UserOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the start position
|
|
*/
|
|
cursor?: UserWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` Users from the position of the cursor.
|
|
*/
|
|
take?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Skip the first `n` Users.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Count returned Users
|
|
**/
|
|
_count?: true | UserCountAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to average
|
|
**/
|
|
_avg?: UserAvgAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to sum
|
|
**/
|
|
_sum?: UserSumAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to find the minimum value
|
|
**/
|
|
_min?: UserMinAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to find the maximum value
|
|
**/
|
|
_max?: UserMaxAggregateInputType
|
|
}
|
|
|
|
export type GetUserAggregateType<T extends UserAggregateArgs> = {
|
|
[P in keyof T & keyof AggregateUser]: P extends '_count' | 'count'
|
|
? T[P] extends true
|
|
? number
|
|
: GetScalarType<T[P], AggregateUser[P]>
|
|
: GetScalarType<T[P], AggregateUser[P]>
|
|
}
|
|
|
|
|
|
|
|
|
|
export type UserGroupByArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
where?: UserWhereInput
|
|
orderBy?: UserOrderByWithAggregationInput | UserOrderByWithAggregationInput[]
|
|
by: UserScalarFieldEnum[] | UserScalarFieldEnum
|
|
having?: UserScalarWhereWithAggregatesInput
|
|
take?: number
|
|
skip?: number
|
|
_count?: UserCountAggregateInputType | true
|
|
_avg?: UserAvgAggregateInputType
|
|
_sum?: UserSumAggregateInputType
|
|
_min?: UserMinAggregateInputType
|
|
_max?: UserMaxAggregateInputType
|
|
}
|
|
|
|
export type UserGroupByOutputType = {
|
|
id: number
|
|
email: string
|
|
password: string
|
|
firstName: string
|
|
lastName: string
|
|
isActive: boolean
|
|
tokenInvalidatedAt: Date | null
|
|
customerId: number | null
|
|
createdAt: Date
|
|
updatedAt: Date
|
|
_count: UserCountAggregateOutputType | null
|
|
_avg: UserAvgAggregateOutputType | null
|
|
_sum: UserSumAggregateOutputType | null
|
|
_min: UserMinAggregateOutputType | null
|
|
_max: UserMaxAggregateOutputType | null
|
|
}
|
|
|
|
type GetUserGroupByPayload<T extends UserGroupByArgs> = Prisma.PrismaPromise<
|
|
Array<
|
|
PickEnumerable<UserGroupByOutputType, T['by']> &
|
|
{
|
|
[P in ((keyof T) & (keyof UserGroupByOutputType))]: P extends '_count'
|
|
? T[P] extends boolean
|
|
? number
|
|
: GetScalarType<T[P], UserGroupByOutputType[P]>
|
|
: GetScalarType<T[P], UserGroupByOutputType[P]>
|
|
}
|
|
>
|
|
>
|
|
|
|
|
|
export type UserSelect<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
|
|
id?: boolean
|
|
email?: boolean
|
|
password?: boolean
|
|
firstName?: boolean
|
|
lastName?: boolean
|
|
isActive?: boolean
|
|
tokenInvalidatedAt?: boolean
|
|
customerId?: boolean
|
|
createdAt?: boolean
|
|
updatedAt?: boolean
|
|
customer?: boolean | User$customerArgs<ExtArgs>
|
|
roles?: boolean | User$rolesArgs<ExtArgs>
|
|
_count?: boolean | UserCountOutputTypeDefaultArgs<ExtArgs>
|
|
}, ExtArgs["result"]["user"]>
|
|
|
|
|
|
export type UserSelectScalar = {
|
|
id?: boolean
|
|
email?: boolean
|
|
password?: boolean
|
|
firstName?: boolean
|
|
lastName?: boolean
|
|
isActive?: boolean
|
|
tokenInvalidatedAt?: boolean
|
|
customerId?: boolean
|
|
createdAt?: boolean
|
|
updatedAt?: boolean
|
|
}
|
|
|
|
export type UserInclude<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
customer?: boolean | User$customerArgs<ExtArgs>
|
|
roles?: boolean | User$rolesArgs<ExtArgs>
|
|
_count?: boolean | UserCountOutputTypeDefaultArgs<ExtArgs>
|
|
}
|
|
|
|
export type $UserPayload<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
name: "User"
|
|
objects: {
|
|
customer: Prisma.$CustomerPayload<ExtArgs> | null
|
|
roles: Prisma.$UserRolePayload<ExtArgs>[]
|
|
}
|
|
scalars: $Extensions.GetPayloadResult<{
|
|
id: number
|
|
email: string
|
|
password: string
|
|
firstName: string
|
|
lastName: string
|
|
isActive: boolean
|
|
tokenInvalidatedAt: Date | null
|
|
customerId: number | null
|
|
createdAt: Date
|
|
updatedAt: Date
|
|
}, ExtArgs["result"]["user"]>
|
|
composites: {}
|
|
}
|
|
|
|
type UserGetPayload<S extends boolean | null | undefined | UserDefaultArgs> = $Result.GetResult<Prisma.$UserPayload, S>
|
|
|
|
type UserCountArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> =
|
|
Omit<UserFindManyArgs, 'select' | 'include' | 'distinct'> & {
|
|
select?: UserCountAggregateInputType | true
|
|
}
|
|
|
|
export interface UserDelegate<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> {
|
|
[K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['User'], meta: { name: 'User' } }
|
|
/**
|
|
* Find zero or one User that matches the filter.
|
|
* @param {UserFindUniqueArgs} args - Arguments to find a User
|
|
* @example
|
|
* // Get one User
|
|
* const user = await prisma.user.findUnique({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findUnique<T extends UserFindUniqueArgs>(args: SelectSubset<T, UserFindUniqueArgs<ExtArgs>>): Prisma__UserClient<$Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "findUnique"> | null, null, ExtArgs>
|
|
|
|
/**
|
|
* Find one User that matches the filter or throw an error with `error.code='P2025'`
|
|
* if no matches were found.
|
|
* @param {UserFindUniqueOrThrowArgs} args - Arguments to find a User
|
|
* @example
|
|
* // Get one User
|
|
* const user = await prisma.user.findUniqueOrThrow({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findUniqueOrThrow<T extends UserFindUniqueOrThrowArgs>(args: SelectSubset<T, UserFindUniqueOrThrowArgs<ExtArgs>>): Prisma__UserClient<$Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "findUniqueOrThrow">, never, ExtArgs>
|
|
|
|
/**
|
|
* Find the first User that matches the filter.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {UserFindFirstArgs} args - Arguments to find a User
|
|
* @example
|
|
* // Get one User
|
|
* const user = await prisma.user.findFirst({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findFirst<T extends UserFindFirstArgs>(args?: SelectSubset<T, UserFindFirstArgs<ExtArgs>>): Prisma__UserClient<$Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "findFirst"> | null, null, ExtArgs>
|
|
|
|
/**
|
|
* Find the first User that matches the filter or
|
|
* throw `PrismaKnownClientError` with `P2025` code if no matches were found.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {UserFindFirstOrThrowArgs} args - Arguments to find a User
|
|
* @example
|
|
* // Get one User
|
|
* const user = await prisma.user.findFirstOrThrow({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findFirstOrThrow<T extends UserFindFirstOrThrowArgs>(args?: SelectSubset<T, UserFindFirstOrThrowArgs<ExtArgs>>): Prisma__UserClient<$Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "findFirstOrThrow">, never, ExtArgs>
|
|
|
|
/**
|
|
* Find zero or more Users that matches the filter.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {UserFindManyArgs} args - Arguments to filter and select certain fields only.
|
|
* @example
|
|
* // Get all Users
|
|
* const users = await prisma.user.findMany()
|
|
*
|
|
* // Get first 10 Users
|
|
* const users = await prisma.user.findMany({ take: 10 })
|
|
*
|
|
* // Only select the `id`
|
|
* const userWithIdOnly = await prisma.user.findMany({ select: { id: true } })
|
|
*
|
|
*/
|
|
findMany<T extends UserFindManyArgs>(args?: SelectSubset<T, UserFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "findMany">>
|
|
|
|
/**
|
|
* Create a User.
|
|
* @param {UserCreateArgs} args - Arguments to create a User.
|
|
* @example
|
|
* // Create one User
|
|
* const User = await prisma.user.create({
|
|
* data: {
|
|
* // ... data to create a User
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
create<T extends UserCreateArgs>(args: SelectSubset<T, UserCreateArgs<ExtArgs>>): Prisma__UserClient<$Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "create">, never, ExtArgs>
|
|
|
|
/**
|
|
* Create many Users.
|
|
* @param {UserCreateManyArgs} args - Arguments to create many Users.
|
|
* @example
|
|
* // Create many Users
|
|
* const user = await prisma.user.createMany({
|
|
* data: [
|
|
* // ... provide data here
|
|
* ]
|
|
* })
|
|
*
|
|
*/
|
|
createMany<T extends UserCreateManyArgs>(args?: SelectSubset<T, UserCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
|
|
|
|
/**
|
|
* Delete a User.
|
|
* @param {UserDeleteArgs} args - Arguments to delete one User.
|
|
* @example
|
|
* // Delete one User
|
|
* const User = await prisma.user.delete({
|
|
* where: {
|
|
* // ... filter to delete one User
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
delete<T extends UserDeleteArgs>(args: SelectSubset<T, UserDeleteArgs<ExtArgs>>): Prisma__UserClient<$Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "delete">, never, ExtArgs>
|
|
|
|
/**
|
|
* Update one User.
|
|
* @param {UserUpdateArgs} args - Arguments to update one User.
|
|
* @example
|
|
* // Update one User
|
|
* const user = await prisma.user.update({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* },
|
|
* data: {
|
|
* // ... provide data here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
update<T extends UserUpdateArgs>(args: SelectSubset<T, UserUpdateArgs<ExtArgs>>): Prisma__UserClient<$Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "update">, never, ExtArgs>
|
|
|
|
/**
|
|
* Delete zero or more Users.
|
|
* @param {UserDeleteManyArgs} args - Arguments to filter Users to delete.
|
|
* @example
|
|
* // Delete a few Users
|
|
* const { count } = await prisma.user.deleteMany({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
deleteMany<T extends UserDeleteManyArgs>(args?: SelectSubset<T, UserDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
|
|
|
|
/**
|
|
* Update zero or more Users.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {UserUpdateManyArgs} args - Arguments to update one or more rows.
|
|
* @example
|
|
* // Update many Users
|
|
* const user = await prisma.user.updateMany({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* },
|
|
* data: {
|
|
* // ... provide data here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
updateMany<T extends UserUpdateManyArgs>(args: SelectSubset<T, UserUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
|
|
|
|
/**
|
|
* Create or update one User.
|
|
* @param {UserUpsertArgs} args - Arguments to update or create a User.
|
|
* @example
|
|
* // Update or create a User
|
|
* const user = await prisma.user.upsert({
|
|
* create: {
|
|
* // ... data to create a User
|
|
* },
|
|
* update: {
|
|
* // ... in case it already exists, update
|
|
* },
|
|
* where: {
|
|
* // ... the filter for the User we want to update
|
|
* }
|
|
* })
|
|
*/
|
|
upsert<T extends UserUpsertArgs>(args: SelectSubset<T, UserUpsertArgs<ExtArgs>>): Prisma__UserClient<$Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "upsert">, never, ExtArgs>
|
|
|
|
|
|
/**
|
|
* Count the number of Users.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {UserCountArgs} args - Arguments to filter Users to count.
|
|
* @example
|
|
* // Count the number of Users
|
|
* const count = await prisma.user.count({
|
|
* where: {
|
|
* // ... the filter for the Users we want to count
|
|
* }
|
|
* })
|
|
**/
|
|
count<T extends UserCountArgs>(
|
|
args?: Subset<T, UserCountArgs>,
|
|
): Prisma.PrismaPromise<
|
|
T extends $Utils.Record<'select', any>
|
|
? T['select'] extends true
|
|
? number
|
|
: GetScalarType<T['select'], UserCountAggregateOutputType>
|
|
: number
|
|
>
|
|
|
|
/**
|
|
* Allows you to perform aggregations operations on a User.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {UserAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
|
|
* @example
|
|
* // Ordered by age ascending
|
|
* // Where email contains prisma.io
|
|
* // Limited to the 10 users
|
|
* const aggregations = await prisma.user.aggregate({
|
|
* _avg: {
|
|
* age: true,
|
|
* },
|
|
* where: {
|
|
* email: {
|
|
* contains: "prisma.io",
|
|
* },
|
|
* },
|
|
* orderBy: {
|
|
* age: "asc",
|
|
* },
|
|
* take: 10,
|
|
* })
|
|
**/
|
|
aggregate<T extends UserAggregateArgs>(args: Subset<T, UserAggregateArgs>): Prisma.PrismaPromise<GetUserAggregateType<T>>
|
|
|
|
/**
|
|
* Group by User.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {UserGroupByArgs} args - Group by arguments.
|
|
* @example
|
|
* // Group by city, order by createdAt, get count
|
|
* const result = await prisma.user.groupBy({
|
|
* by: ['city', 'createdAt'],
|
|
* orderBy: {
|
|
* createdAt: true
|
|
* },
|
|
* _count: {
|
|
* _all: true
|
|
* },
|
|
* })
|
|
*
|
|
**/
|
|
groupBy<
|
|
T extends UserGroupByArgs,
|
|
HasSelectOrTake extends Or<
|
|
Extends<'skip', Keys<T>>,
|
|
Extends<'take', Keys<T>>
|
|
>,
|
|
OrderByArg extends True extends HasSelectOrTake
|
|
? { orderBy: UserGroupByArgs['orderBy'] }
|
|
: { orderBy?: UserGroupByArgs['orderBy'] },
|
|
OrderFields extends ExcludeUnderscoreKeys<Keys<MaybeTupleToUnion<T['orderBy']>>>,
|
|
ByFields extends MaybeTupleToUnion<T['by']>,
|
|
ByValid extends Has<ByFields, OrderFields>,
|
|
HavingFields extends GetHavingFields<T['having']>,
|
|
HavingValid extends Has<ByFields, HavingFields>,
|
|
ByEmpty extends T['by'] extends never[] ? True : False,
|
|
InputErrors extends ByEmpty extends True
|
|
? `Error: "by" must not be empty.`
|
|
: HavingValid extends False
|
|
? {
|
|
[P in HavingFields]: P extends ByFields
|
|
? never
|
|
: P extends string
|
|
? `Error: Field "${P}" used in "having" needs to be provided in "by".`
|
|
: [
|
|
Error,
|
|
'Field ',
|
|
P,
|
|
` in "having" needs to be provided in "by"`,
|
|
]
|
|
}[HavingFields]
|
|
: 'take' extends Keys<T>
|
|
? 'orderBy' extends Keys<T>
|
|
? ByValid extends True
|
|
? {}
|
|
: {
|
|
[P in OrderFields]: P extends ByFields
|
|
? never
|
|
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
|
|
}[OrderFields]
|
|
: 'Error: If you provide "take", you also need to provide "orderBy"'
|
|
: 'skip' extends Keys<T>
|
|
? 'orderBy' extends Keys<T>
|
|
? ByValid extends True
|
|
? {}
|
|
: {
|
|
[P in OrderFields]: P extends ByFields
|
|
? never
|
|
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
|
|
}[OrderFields]
|
|
: 'Error: If you provide "skip", you also need to provide "orderBy"'
|
|
: ByValid extends True
|
|
? {}
|
|
: {
|
|
[P in OrderFields]: P extends ByFields
|
|
? never
|
|
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
|
|
}[OrderFields]
|
|
>(args: SubsetIntersection<T, UserGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetUserGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
|
|
/**
|
|
* Fields of the User model
|
|
*/
|
|
readonly fields: UserFieldRefs;
|
|
}
|
|
|
|
/**
|
|
* The delegate class that acts as a "Promise-like" for User.
|
|
* Why is this prefixed with `Prisma__`?
|
|
* Because we want to prevent naming conflicts as mentioned in
|
|
* https://github.com/prisma/prisma-client-js/issues/707
|
|
*/
|
|
export interface Prisma__UserClient<T, Null = never, ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> extends Prisma.PrismaPromise<T> {
|
|
readonly [Symbol.toStringTag]: "PrismaPromise"
|
|
customer<T extends User$customerArgs<ExtArgs> = {}>(args?: Subset<T, User$customerArgs<ExtArgs>>): Prisma__CustomerClient<$Result.GetResult<Prisma.$CustomerPayload<ExtArgs>, T, "findUniqueOrThrow"> | null, null, ExtArgs>
|
|
roles<T extends User$rolesArgs<ExtArgs> = {}>(args?: Subset<T, User$rolesArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$UserRolePayload<ExtArgs>, T, "findMany"> | Null>
|
|
/**
|
|
* Attaches callbacks for the resolution and/or rejection of the Promise.
|
|
* @param onfulfilled The callback to execute when the Promise is resolved.
|
|
* @param onrejected The callback to execute when the Promise is rejected.
|
|
* @returns A Promise for the completion of which ever callback is executed.
|
|
*/
|
|
then<TResult1 = T, TResult2 = never>(onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined | null): $Utils.JsPromise<TResult1 | TResult2>
|
|
/**
|
|
* Attaches a callback for only the rejection of the Promise.
|
|
* @param onrejected The callback to execute when the Promise is rejected.
|
|
* @returns A Promise for the completion of the callback.
|
|
*/
|
|
catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): $Utils.JsPromise<T | TResult>
|
|
/**
|
|
* Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
|
|
* resolved value cannot be modified from the callback.
|
|
* @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
|
|
* @returns A Promise for the completion of the callback.
|
|
*/
|
|
finally(onfinally?: (() => void) | undefined | null): $Utils.JsPromise<T>
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
* Fields of the User model
|
|
*/
|
|
interface UserFieldRefs {
|
|
readonly id: FieldRef<"User", 'Int'>
|
|
readonly email: FieldRef<"User", 'String'>
|
|
readonly password: FieldRef<"User", 'String'>
|
|
readonly firstName: FieldRef<"User", 'String'>
|
|
readonly lastName: FieldRef<"User", 'String'>
|
|
readonly isActive: FieldRef<"User", 'Boolean'>
|
|
readonly tokenInvalidatedAt: FieldRef<"User", 'DateTime'>
|
|
readonly customerId: FieldRef<"User", 'Int'>
|
|
readonly createdAt: FieldRef<"User", 'DateTime'>
|
|
readonly updatedAt: FieldRef<"User", 'DateTime'>
|
|
}
|
|
|
|
|
|
// Custom InputTypes
|
|
/**
|
|
* User findUnique
|
|
*/
|
|
export type UserFindUniqueArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the User
|
|
*/
|
|
select?: UserSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: UserInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which User to fetch.
|
|
*/
|
|
where: UserWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* User findUniqueOrThrow
|
|
*/
|
|
export type UserFindUniqueOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the User
|
|
*/
|
|
select?: UserSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: UserInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which User to fetch.
|
|
*/
|
|
where: UserWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* User findFirst
|
|
*/
|
|
export type UserFindFirstArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the User
|
|
*/
|
|
select?: UserSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: UserInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which User to fetch.
|
|
*/
|
|
where?: UserWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of Users to fetch.
|
|
*/
|
|
orderBy?: UserOrderByWithRelationInput | UserOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for searching for Users.
|
|
*/
|
|
cursor?: UserWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` Users from the position of the cursor.
|
|
*/
|
|
take?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Skip the first `n` Users.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
*
|
|
* Filter by unique combinations of Users.
|
|
*/
|
|
distinct?: UserScalarFieldEnum | UserScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* User findFirstOrThrow
|
|
*/
|
|
export type UserFindFirstOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the User
|
|
*/
|
|
select?: UserSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: UserInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which User to fetch.
|
|
*/
|
|
where?: UserWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of Users to fetch.
|
|
*/
|
|
orderBy?: UserOrderByWithRelationInput | UserOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for searching for Users.
|
|
*/
|
|
cursor?: UserWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` Users from the position of the cursor.
|
|
*/
|
|
take?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Skip the first `n` Users.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
*
|
|
* Filter by unique combinations of Users.
|
|
*/
|
|
distinct?: UserScalarFieldEnum | UserScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* User findMany
|
|
*/
|
|
export type UserFindManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the User
|
|
*/
|
|
select?: UserSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: UserInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which Users to fetch.
|
|
*/
|
|
where?: UserWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of Users to fetch.
|
|
*/
|
|
orderBy?: UserOrderByWithRelationInput | UserOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for listing Users.
|
|
*/
|
|
cursor?: UserWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` Users from the position of the cursor.
|
|
*/
|
|
take?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Skip the first `n` Users.
|
|
*/
|
|
skip?: number
|
|
distinct?: UserScalarFieldEnum | UserScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* User create
|
|
*/
|
|
export type UserCreateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the User
|
|
*/
|
|
select?: UserSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: UserInclude<ExtArgs> | null
|
|
/**
|
|
* The data needed to create a User.
|
|
*/
|
|
data: XOR<UserCreateInput, UserUncheckedCreateInput>
|
|
}
|
|
|
|
/**
|
|
* User createMany
|
|
*/
|
|
export type UserCreateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* The data used to create many Users.
|
|
*/
|
|
data: UserCreateManyInput | UserCreateManyInput[]
|
|
skipDuplicates?: boolean
|
|
}
|
|
|
|
/**
|
|
* User update
|
|
*/
|
|
export type UserUpdateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the User
|
|
*/
|
|
select?: UserSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: UserInclude<ExtArgs> | null
|
|
/**
|
|
* The data needed to update a User.
|
|
*/
|
|
data: XOR<UserUpdateInput, UserUncheckedUpdateInput>
|
|
/**
|
|
* Choose, which User to update.
|
|
*/
|
|
where: UserWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* User updateMany
|
|
*/
|
|
export type UserUpdateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* The data used to update Users.
|
|
*/
|
|
data: XOR<UserUpdateManyMutationInput, UserUncheckedUpdateManyInput>
|
|
/**
|
|
* Filter which Users to update
|
|
*/
|
|
where?: UserWhereInput
|
|
}
|
|
|
|
/**
|
|
* User upsert
|
|
*/
|
|
export type UserUpsertArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the User
|
|
*/
|
|
select?: UserSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: UserInclude<ExtArgs> | null
|
|
/**
|
|
* The filter to search for the User to update in case it exists.
|
|
*/
|
|
where: UserWhereUniqueInput
|
|
/**
|
|
* In case the User found by the `where` argument doesn't exist, create a new User with this data.
|
|
*/
|
|
create: XOR<UserCreateInput, UserUncheckedCreateInput>
|
|
/**
|
|
* In case the User was found with the provided `where` argument, update it with this data.
|
|
*/
|
|
update: XOR<UserUpdateInput, UserUncheckedUpdateInput>
|
|
}
|
|
|
|
/**
|
|
* User delete
|
|
*/
|
|
export type UserDeleteArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the User
|
|
*/
|
|
select?: UserSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: UserInclude<ExtArgs> | null
|
|
/**
|
|
* Filter which User to delete.
|
|
*/
|
|
where: UserWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* User deleteMany
|
|
*/
|
|
export type UserDeleteManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Filter which Users to delete
|
|
*/
|
|
where?: UserWhereInput
|
|
}
|
|
|
|
/**
|
|
* User.customer
|
|
*/
|
|
export type User$customerArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the Customer
|
|
*/
|
|
select?: CustomerSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: CustomerInclude<ExtArgs> | null
|
|
where?: CustomerWhereInput
|
|
}
|
|
|
|
/**
|
|
* User.roles
|
|
*/
|
|
export type User$rolesArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the UserRole
|
|
*/
|
|
select?: UserRoleSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: UserRoleInclude<ExtArgs> | null
|
|
where?: UserRoleWhereInput
|
|
orderBy?: UserRoleOrderByWithRelationInput | UserRoleOrderByWithRelationInput[]
|
|
cursor?: UserRoleWhereUniqueInput
|
|
take?: number
|
|
skip?: number
|
|
distinct?: UserRoleScalarFieldEnum | UserRoleScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* User without action
|
|
*/
|
|
export type UserDefaultArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the User
|
|
*/
|
|
select?: UserSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: UserInclude<ExtArgs> | null
|
|
}
|
|
|
|
|
|
/**
|
|
* Model Role
|
|
*/
|
|
|
|
export type AggregateRole = {
|
|
_count: RoleCountAggregateOutputType | null
|
|
_avg: RoleAvgAggregateOutputType | null
|
|
_sum: RoleSumAggregateOutputType | null
|
|
_min: RoleMinAggregateOutputType | null
|
|
_max: RoleMaxAggregateOutputType | null
|
|
}
|
|
|
|
export type RoleAvgAggregateOutputType = {
|
|
id: number | null
|
|
}
|
|
|
|
export type RoleSumAggregateOutputType = {
|
|
id: number | null
|
|
}
|
|
|
|
export type RoleMinAggregateOutputType = {
|
|
id: number | null
|
|
name: string | null
|
|
description: string | null
|
|
createdAt: Date | null
|
|
updatedAt: Date | null
|
|
}
|
|
|
|
export type RoleMaxAggregateOutputType = {
|
|
id: number | null
|
|
name: string | null
|
|
description: string | null
|
|
createdAt: Date | null
|
|
updatedAt: Date | null
|
|
}
|
|
|
|
export type RoleCountAggregateOutputType = {
|
|
id: number
|
|
name: number
|
|
description: number
|
|
createdAt: number
|
|
updatedAt: number
|
|
_all: number
|
|
}
|
|
|
|
|
|
export type RoleAvgAggregateInputType = {
|
|
id?: true
|
|
}
|
|
|
|
export type RoleSumAggregateInputType = {
|
|
id?: true
|
|
}
|
|
|
|
export type RoleMinAggregateInputType = {
|
|
id?: true
|
|
name?: true
|
|
description?: true
|
|
createdAt?: true
|
|
updatedAt?: true
|
|
}
|
|
|
|
export type RoleMaxAggregateInputType = {
|
|
id?: true
|
|
name?: true
|
|
description?: true
|
|
createdAt?: true
|
|
updatedAt?: true
|
|
}
|
|
|
|
export type RoleCountAggregateInputType = {
|
|
id?: true
|
|
name?: true
|
|
description?: true
|
|
createdAt?: true
|
|
updatedAt?: true
|
|
_all?: true
|
|
}
|
|
|
|
export type RoleAggregateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Filter which Role to aggregate.
|
|
*/
|
|
where?: RoleWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of Roles to fetch.
|
|
*/
|
|
orderBy?: RoleOrderByWithRelationInput | RoleOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the start position
|
|
*/
|
|
cursor?: RoleWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` Roles from the position of the cursor.
|
|
*/
|
|
take?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Skip the first `n` Roles.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Count returned Roles
|
|
**/
|
|
_count?: true | RoleCountAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to average
|
|
**/
|
|
_avg?: RoleAvgAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to sum
|
|
**/
|
|
_sum?: RoleSumAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to find the minimum value
|
|
**/
|
|
_min?: RoleMinAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to find the maximum value
|
|
**/
|
|
_max?: RoleMaxAggregateInputType
|
|
}
|
|
|
|
export type GetRoleAggregateType<T extends RoleAggregateArgs> = {
|
|
[P in keyof T & keyof AggregateRole]: P extends '_count' | 'count'
|
|
? T[P] extends true
|
|
? number
|
|
: GetScalarType<T[P], AggregateRole[P]>
|
|
: GetScalarType<T[P], AggregateRole[P]>
|
|
}
|
|
|
|
|
|
|
|
|
|
export type RoleGroupByArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
where?: RoleWhereInput
|
|
orderBy?: RoleOrderByWithAggregationInput | RoleOrderByWithAggregationInput[]
|
|
by: RoleScalarFieldEnum[] | RoleScalarFieldEnum
|
|
having?: RoleScalarWhereWithAggregatesInput
|
|
take?: number
|
|
skip?: number
|
|
_count?: RoleCountAggregateInputType | true
|
|
_avg?: RoleAvgAggregateInputType
|
|
_sum?: RoleSumAggregateInputType
|
|
_min?: RoleMinAggregateInputType
|
|
_max?: RoleMaxAggregateInputType
|
|
}
|
|
|
|
export type RoleGroupByOutputType = {
|
|
id: number
|
|
name: string
|
|
description: string | null
|
|
createdAt: Date
|
|
updatedAt: Date
|
|
_count: RoleCountAggregateOutputType | null
|
|
_avg: RoleAvgAggregateOutputType | null
|
|
_sum: RoleSumAggregateOutputType | null
|
|
_min: RoleMinAggregateOutputType | null
|
|
_max: RoleMaxAggregateOutputType | null
|
|
}
|
|
|
|
type GetRoleGroupByPayload<T extends RoleGroupByArgs> = Prisma.PrismaPromise<
|
|
Array<
|
|
PickEnumerable<RoleGroupByOutputType, T['by']> &
|
|
{
|
|
[P in ((keyof T) & (keyof RoleGroupByOutputType))]: P extends '_count'
|
|
? T[P] extends boolean
|
|
? number
|
|
: GetScalarType<T[P], RoleGroupByOutputType[P]>
|
|
: GetScalarType<T[P], RoleGroupByOutputType[P]>
|
|
}
|
|
>
|
|
>
|
|
|
|
|
|
export type RoleSelect<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
|
|
id?: boolean
|
|
name?: boolean
|
|
description?: boolean
|
|
createdAt?: boolean
|
|
updatedAt?: boolean
|
|
permissions?: boolean | Role$permissionsArgs<ExtArgs>
|
|
users?: boolean | Role$usersArgs<ExtArgs>
|
|
_count?: boolean | RoleCountOutputTypeDefaultArgs<ExtArgs>
|
|
}, ExtArgs["result"]["role"]>
|
|
|
|
|
|
export type RoleSelectScalar = {
|
|
id?: boolean
|
|
name?: boolean
|
|
description?: boolean
|
|
createdAt?: boolean
|
|
updatedAt?: boolean
|
|
}
|
|
|
|
export type RoleInclude<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
permissions?: boolean | Role$permissionsArgs<ExtArgs>
|
|
users?: boolean | Role$usersArgs<ExtArgs>
|
|
_count?: boolean | RoleCountOutputTypeDefaultArgs<ExtArgs>
|
|
}
|
|
|
|
export type $RolePayload<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
name: "Role"
|
|
objects: {
|
|
permissions: Prisma.$RolePermissionPayload<ExtArgs>[]
|
|
users: Prisma.$UserRolePayload<ExtArgs>[]
|
|
}
|
|
scalars: $Extensions.GetPayloadResult<{
|
|
id: number
|
|
name: string
|
|
description: string | null
|
|
createdAt: Date
|
|
updatedAt: Date
|
|
}, ExtArgs["result"]["role"]>
|
|
composites: {}
|
|
}
|
|
|
|
type RoleGetPayload<S extends boolean | null | undefined | RoleDefaultArgs> = $Result.GetResult<Prisma.$RolePayload, S>
|
|
|
|
type RoleCountArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> =
|
|
Omit<RoleFindManyArgs, 'select' | 'include' | 'distinct'> & {
|
|
select?: RoleCountAggregateInputType | true
|
|
}
|
|
|
|
export interface RoleDelegate<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> {
|
|
[K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['Role'], meta: { name: 'Role' } }
|
|
/**
|
|
* Find zero or one Role that matches the filter.
|
|
* @param {RoleFindUniqueArgs} args - Arguments to find a Role
|
|
* @example
|
|
* // Get one Role
|
|
* const role = await prisma.role.findUnique({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findUnique<T extends RoleFindUniqueArgs>(args: SelectSubset<T, RoleFindUniqueArgs<ExtArgs>>): Prisma__RoleClient<$Result.GetResult<Prisma.$RolePayload<ExtArgs>, T, "findUnique"> | null, null, ExtArgs>
|
|
|
|
/**
|
|
* Find one Role that matches the filter or throw an error with `error.code='P2025'`
|
|
* if no matches were found.
|
|
* @param {RoleFindUniqueOrThrowArgs} args - Arguments to find a Role
|
|
* @example
|
|
* // Get one Role
|
|
* const role = await prisma.role.findUniqueOrThrow({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findUniqueOrThrow<T extends RoleFindUniqueOrThrowArgs>(args: SelectSubset<T, RoleFindUniqueOrThrowArgs<ExtArgs>>): Prisma__RoleClient<$Result.GetResult<Prisma.$RolePayload<ExtArgs>, T, "findUniqueOrThrow">, never, ExtArgs>
|
|
|
|
/**
|
|
* Find the first Role that matches the filter.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {RoleFindFirstArgs} args - Arguments to find a Role
|
|
* @example
|
|
* // Get one Role
|
|
* const role = await prisma.role.findFirst({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findFirst<T extends RoleFindFirstArgs>(args?: SelectSubset<T, RoleFindFirstArgs<ExtArgs>>): Prisma__RoleClient<$Result.GetResult<Prisma.$RolePayload<ExtArgs>, T, "findFirst"> | null, null, ExtArgs>
|
|
|
|
/**
|
|
* Find the first Role that matches the filter or
|
|
* throw `PrismaKnownClientError` with `P2025` code if no matches were found.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {RoleFindFirstOrThrowArgs} args - Arguments to find a Role
|
|
* @example
|
|
* // Get one Role
|
|
* const role = await prisma.role.findFirstOrThrow({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findFirstOrThrow<T extends RoleFindFirstOrThrowArgs>(args?: SelectSubset<T, RoleFindFirstOrThrowArgs<ExtArgs>>): Prisma__RoleClient<$Result.GetResult<Prisma.$RolePayload<ExtArgs>, T, "findFirstOrThrow">, never, ExtArgs>
|
|
|
|
/**
|
|
* Find zero or more Roles that matches the filter.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {RoleFindManyArgs} args - Arguments to filter and select certain fields only.
|
|
* @example
|
|
* // Get all Roles
|
|
* const roles = await prisma.role.findMany()
|
|
*
|
|
* // Get first 10 Roles
|
|
* const roles = await prisma.role.findMany({ take: 10 })
|
|
*
|
|
* // Only select the `id`
|
|
* const roleWithIdOnly = await prisma.role.findMany({ select: { id: true } })
|
|
*
|
|
*/
|
|
findMany<T extends RoleFindManyArgs>(args?: SelectSubset<T, RoleFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$RolePayload<ExtArgs>, T, "findMany">>
|
|
|
|
/**
|
|
* Create a Role.
|
|
* @param {RoleCreateArgs} args - Arguments to create a Role.
|
|
* @example
|
|
* // Create one Role
|
|
* const Role = await prisma.role.create({
|
|
* data: {
|
|
* // ... data to create a Role
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
create<T extends RoleCreateArgs>(args: SelectSubset<T, RoleCreateArgs<ExtArgs>>): Prisma__RoleClient<$Result.GetResult<Prisma.$RolePayload<ExtArgs>, T, "create">, never, ExtArgs>
|
|
|
|
/**
|
|
* Create many Roles.
|
|
* @param {RoleCreateManyArgs} args - Arguments to create many Roles.
|
|
* @example
|
|
* // Create many Roles
|
|
* const role = await prisma.role.createMany({
|
|
* data: [
|
|
* // ... provide data here
|
|
* ]
|
|
* })
|
|
*
|
|
*/
|
|
createMany<T extends RoleCreateManyArgs>(args?: SelectSubset<T, RoleCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
|
|
|
|
/**
|
|
* Delete a Role.
|
|
* @param {RoleDeleteArgs} args - Arguments to delete one Role.
|
|
* @example
|
|
* // Delete one Role
|
|
* const Role = await prisma.role.delete({
|
|
* where: {
|
|
* // ... filter to delete one Role
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
delete<T extends RoleDeleteArgs>(args: SelectSubset<T, RoleDeleteArgs<ExtArgs>>): Prisma__RoleClient<$Result.GetResult<Prisma.$RolePayload<ExtArgs>, T, "delete">, never, ExtArgs>
|
|
|
|
/**
|
|
* Update one Role.
|
|
* @param {RoleUpdateArgs} args - Arguments to update one Role.
|
|
* @example
|
|
* // Update one Role
|
|
* const role = await prisma.role.update({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* },
|
|
* data: {
|
|
* // ... provide data here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
update<T extends RoleUpdateArgs>(args: SelectSubset<T, RoleUpdateArgs<ExtArgs>>): Prisma__RoleClient<$Result.GetResult<Prisma.$RolePayload<ExtArgs>, T, "update">, never, ExtArgs>
|
|
|
|
/**
|
|
* Delete zero or more Roles.
|
|
* @param {RoleDeleteManyArgs} args - Arguments to filter Roles to delete.
|
|
* @example
|
|
* // Delete a few Roles
|
|
* const { count } = await prisma.role.deleteMany({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
deleteMany<T extends RoleDeleteManyArgs>(args?: SelectSubset<T, RoleDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
|
|
|
|
/**
|
|
* Update zero or more Roles.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {RoleUpdateManyArgs} args - Arguments to update one or more rows.
|
|
* @example
|
|
* // Update many Roles
|
|
* const role = await prisma.role.updateMany({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* },
|
|
* data: {
|
|
* // ... provide data here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
updateMany<T extends RoleUpdateManyArgs>(args: SelectSubset<T, RoleUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
|
|
|
|
/**
|
|
* Create or update one Role.
|
|
* @param {RoleUpsertArgs} args - Arguments to update or create a Role.
|
|
* @example
|
|
* // Update or create a Role
|
|
* const role = await prisma.role.upsert({
|
|
* create: {
|
|
* // ... data to create a Role
|
|
* },
|
|
* update: {
|
|
* // ... in case it already exists, update
|
|
* },
|
|
* where: {
|
|
* // ... the filter for the Role we want to update
|
|
* }
|
|
* })
|
|
*/
|
|
upsert<T extends RoleUpsertArgs>(args: SelectSubset<T, RoleUpsertArgs<ExtArgs>>): Prisma__RoleClient<$Result.GetResult<Prisma.$RolePayload<ExtArgs>, T, "upsert">, never, ExtArgs>
|
|
|
|
|
|
/**
|
|
* Count the number of Roles.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {RoleCountArgs} args - Arguments to filter Roles to count.
|
|
* @example
|
|
* // Count the number of Roles
|
|
* const count = await prisma.role.count({
|
|
* where: {
|
|
* // ... the filter for the Roles we want to count
|
|
* }
|
|
* })
|
|
**/
|
|
count<T extends RoleCountArgs>(
|
|
args?: Subset<T, RoleCountArgs>,
|
|
): Prisma.PrismaPromise<
|
|
T extends $Utils.Record<'select', any>
|
|
? T['select'] extends true
|
|
? number
|
|
: GetScalarType<T['select'], RoleCountAggregateOutputType>
|
|
: number
|
|
>
|
|
|
|
/**
|
|
* Allows you to perform aggregations operations on a Role.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {RoleAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
|
|
* @example
|
|
* // Ordered by age ascending
|
|
* // Where email contains prisma.io
|
|
* // Limited to the 10 users
|
|
* const aggregations = await prisma.user.aggregate({
|
|
* _avg: {
|
|
* age: true,
|
|
* },
|
|
* where: {
|
|
* email: {
|
|
* contains: "prisma.io",
|
|
* },
|
|
* },
|
|
* orderBy: {
|
|
* age: "asc",
|
|
* },
|
|
* take: 10,
|
|
* })
|
|
**/
|
|
aggregate<T extends RoleAggregateArgs>(args: Subset<T, RoleAggregateArgs>): Prisma.PrismaPromise<GetRoleAggregateType<T>>
|
|
|
|
/**
|
|
* Group by Role.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {RoleGroupByArgs} args - Group by arguments.
|
|
* @example
|
|
* // Group by city, order by createdAt, get count
|
|
* const result = await prisma.user.groupBy({
|
|
* by: ['city', 'createdAt'],
|
|
* orderBy: {
|
|
* createdAt: true
|
|
* },
|
|
* _count: {
|
|
* _all: true
|
|
* },
|
|
* })
|
|
*
|
|
**/
|
|
groupBy<
|
|
T extends RoleGroupByArgs,
|
|
HasSelectOrTake extends Or<
|
|
Extends<'skip', Keys<T>>,
|
|
Extends<'take', Keys<T>>
|
|
>,
|
|
OrderByArg extends True extends HasSelectOrTake
|
|
? { orderBy: RoleGroupByArgs['orderBy'] }
|
|
: { orderBy?: RoleGroupByArgs['orderBy'] },
|
|
OrderFields extends ExcludeUnderscoreKeys<Keys<MaybeTupleToUnion<T['orderBy']>>>,
|
|
ByFields extends MaybeTupleToUnion<T['by']>,
|
|
ByValid extends Has<ByFields, OrderFields>,
|
|
HavingFields extends GetHavingFields<T['having']>,
|
|
HavingValid extends Has<ByFields, HavingFields>,
|
|
ByEmpty extends T['by'] extends never[] ? True : False,
|
|
InputErrors extends ByEmpty extends True
|
|
? `Error: "by" must not be empty.`
|
|
: HavingValid extends False
|
|
? {
|
|
[P in HavingFields]: P extends ByFields
|
|
? never
|
|
: P extends string
|
|
? `Error: Field "${P}" used in "having" needs to be provided in "by".`
|
|
: [
|
|
Error,
|
|
'Field ',
|
|
P,
|
|
` in "having" needs to be provided in "by"`,
|
|
]
|
|
}[HavingFields]
|
|
: 'take' extends Keys<T>
|
|
? 'orderBy' extends Keys<T>
|
|
? ByValid extends True
|
|
? {}
|
|
: {
|
|
[P in OrderFields]: P extends ByFields
|
|
? never
|
|
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
|
|
}[OrderFields]
|
|
: 'Error: If you provide "take", you also need to provide "orderBy"'
|
|
: 'skip' extends Keys<T>
|
|
? 'orderBy' extends Keys<T>
|
|
? ByValid extends True
|
|
? {}
|
|
: {
|
|
[P in OrderFields]: P extends ByFields
|
|
? never
|
|
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
|
|
}[OrderFields]
|
|
: 'Error: If you provide "skip", you also need to provide "orderBy"'
|
|
: ByValid extends True
|
|
? {}
|
|
: {
|
|
[P in OrderFields]: P extends ByFields
|
|
? never
|
|
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
|
|
}[OrderFields]
|
|
>(args: SubsetIntersection<T, RoleGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetRoleGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
|
|
/**
|
|
* Fields of the Role model
|
|
*/
|
|
readonly fields: RoleFieldRefs;
|
|
}
|
|
|
|
/**
|
|
* The delegate class that acts as a "Promise-like" for Role.
|
|
* Why is this prefixed with `Prisma__`?
|
|
* Because we want to prevent naming conflicts as mentioned in
|
|
* https://github.com/prisma/prisma-client-js/issues/707
|
|
*/
|
|
export interface Prisma__RoleClient<T, Null = never, ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> extends Prisma.PrismaPromise<T> {
|
|
readonly [Symbol.toStringTag]: "PrismaPromise"
|
|
permissions<T extends Role$permissionsArgs<ExtArgs> = {}>(args?: Subset<T, Role$permissionsArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$RolePermissionPayload<ExtArgs>, T, "findMany"> | Null>
|
|
users<T extends Role$usersArgs<ExtArgs> = {}>(args?: Subset<T, Role$usersArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$UserRolePayload<ExtArgs>, T, "findMany"> | Null>
|
|
/**
|
|
* Attaches callbacks for the resolution and/or rejection of the Promise.
|
|
* @param onfulfilled The callback to execute when the Promise is resolved.
|
|
* @param onrejected The callback to execute when the Promise is rejected.
|
|
* @returns A Promise for the completion of which ever callback is executed.
|
|
*/
|
|
then<TResult1 = T, TResult2 = never>(onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined | null): $Utils.JsPromise<TResult1 | TResult2>
|
|
/**
|
|
* Attaches a callback for only the rejection of the Promise.
|
|
* @param onrejected The callback to execute when the Promise is rejected.
|
|
* @returns A Promise for the completion of the callback.
|
|
*/
|
|
catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): $Utils.JsPromise<T | TResult>
|
|
/**
|
|
* Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
|
|
* resolved value cannot be modified from the callback.
|
|
* @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
|
|
* @returns A Promise for the completion of the callback.
|
|
*/
|
|
finally(onfinally?: (() => void) | undefined | null): $Utils.JsPromise<T>
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
* Fields of the Role model
|
|
*/
|
|
interface RoleFieldRefs {
|
|
readonly id: FieldRef<"Role", 'Int'>
|
|
readonly name: FieldRef<"Role", 'String'>
|
|
readonly description: FieldRef<"Role", 'String'>
|
|
readonly createdAt: FieldRef<"Role", 'DateTime'>
|
|
readonly updatedAt: FieldRef<"Role", 'DateTime'>
|
|
}
|
|
|
|
|
|
// Custom InputTypes
|
|
/**
|
|
* Role findUnique
|
|
*/
|
|
export type RoleFindUniqueArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the Role
|
|
*/
|
|
select?: RoleSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: RoleInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which Role to fetch.
|
|
*/
|
|
where: RoleWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* Role findUniqueOrThrow
|
|
*/
|
|
export type RoleFindUniqueOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the Role
|
|
*/
|
|
select?: RoleSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: RoleInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which Role to fetch.
|
|
*/
|
|
where: RoleWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* Role findFirst
|
|
*/
|
|
export type RoleFindFirstArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the Role
|
|
*/
|
|
select?: RoleSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: RoleInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which Role to fetch.
|
|
*/
|
|
where?: RoleWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of Roles to fetch.
|
|
*/
|
|
orderBy?: RoleOrderByWithRelationInput | RoleOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for searching for Roles.
|
|
*/
|
|
cursor?: RoleWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` Roles from the position of the cursor.
|
|
*/
|
|
take?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Skip the first `n` Roles.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
*
|
|
* Filter by unique combinations of Roles.
|
|
*/
|
|
distinct?: RoleScalarFieldEnum | RoleScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* Role findFirstOrThrow
|
|
*/
|
|
export type RoleFindFirstOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the Role
|
|
*/
|
|
select?: RoleSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: RoleInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which Role to fetch.
|
|
*/
|
|
where?: RoleWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of Roles to fetch.
|
|
*/
|
|
orderBy?: RoleOrderByWithRelationInput | RoleOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for searching for Roles.
|
|
*/
|
|
cursor?: RoleWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` Roles from the position of the cursor.
|
|
*/
|
|
take?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Skip the first `n` Roles.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
*
|
|
* Filter by unique combinations of Roles.
|
|
*/
|
|
distinct?: RoleScalarFieldEnum | RoleScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* Role findMany
|
|
*/
|
|
export type RoleFindManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the Role
|
|
*/
|
|
select?: RoleSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: RoleInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which Roles to fetch.
|
|
*/
|
|
where?: RoleWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of Roles to fetch.
|
|
*/
|
|
orderBy?: RoleOrderByWithRelationInput | RoleOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for listing Roles.
|
|
*/
|
|
cursor?: RoleWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` Roles from the position of the cursor.
|
|
*/
|
|
take?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Skip the first `n` Roles.
|
|
*/
|
|
skip?: number
|
|
distinct?: RoleScalarFieldEnum | RoleScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* Role create
|
|
*/
|
|
export type RoleCreateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the Role
|
|
*/
|
|
select?: RoleSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: RoleInclude<ExtArgs> | null
|
|
/**
|
|
* The data needed to create a Role.
|
|
*/
|
|
data: XOR<RoleCreateInput, RoleUncheckedCreateInput>
|
|
}
|
|
|
|
/**
|
|
* Role createMany
|
|
*/
|
|
export type RoleCreateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* The data used to create many Roles.
|
|
*/
|
|
data: RoleCreateManyInput | RoleCreateManyInput[]
|
|
skipDuplicates?: boolean
|
|
}
|
|
|
|
/**
|
|
* Role update
|
|
*/
|
|
export type RoleUpdateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the Role
|
|
*/
|
|
select?: RoleSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: RoleInclude<ExtArgs> | null
|
|
/**
|
|
* The data needed to update a Role.
|
|
*/
|
|
data: XOR<RoleUpdateInput, RoleUncheckedUpdateInput>
|
|
/**
|
|
* Choose, which Role to update.
|
|
*/
|
|
where: RoleWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* Role updateMany
|
|
*/
|
|
export type RoleUpdateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* The data used to update Roles.
|
|
*/
|
|
data: XOR<RoleUpdateManyMutationInput, RoleUncheckedUpdateManyInput>
|
|
/**
|
|
* Filter which Roles to update
|
|
*/
|
|
where?: RoleWhereInput
|
|
}
|
|
|
|
/**
|
|
* Role upsert
|
|
*/
|
|
export type RoleUpsertArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the Role
|
|
*/
|
|
select?: RoleSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: RoleInclude<ExtArgs> | null
|
|
/**
|
|
* The filter to search for the Role to update in case it exists.
|
|
*/
|
|
where: RoleWhereUniqueInput
|
|
/**
|
|
* In case the Role found by the `where` argument doesn't exist, create a new Role with this data.
|
|
*/
|
|
create: XOR<RoleCreateInput, RoleUncheckedCreateInput>
|
|
/**
|
|
* In case the Role was found with the provided `where` argument, update it with this data.
|
|
*/
|
|
update: XOR<RoleUpdateInput, RoleUncheckedUpdateInput>
|
|
}
|
|
|
|
/**
|
|
* Role delete
|
|
*/
|
|
export type RoleDeleteArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the Role
|
|
*/
|
|
select?: RoleSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: RoleInclude<ExtArgs> | null
|
|
/**
|
|
* Filter which Role to delete.
|
|
*/
|
|
where: RoleWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* Role deleteMany
|
|
*/
|
|
export type RoleDeleteManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Filter which Roles to delete
|
|
*/
|
|
where?: RoleWhereInput
|
|
}
|
|
|
|
/**
|
|
* Role.permissions
|
|
*/
|
|
export type Role$permissionsArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the RolePermission
|
|
*/
|
|
select?: RolePermissionSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: RolePermissionInclude<ExtArgs> | null
|
|
where?: RolePermissionWhereInput
|
|
orderBy?: RolePermissionOrderByWithRelationInput | RolePermissionOrderByWithRelationInput[]
|
|
cursor?: RolePermissionWhereUniqueInput
|
|
take?: number
|
|
skip?: number
|
|
distinct?: RolePermissionScalarFieldEnum | RolePermissionScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* Role.users
|
|
*/
|
|
export type Role$usersArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the UserRole
|
|
*/
|
|
select?: UserRoleSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: UserRoleInclude<ExtArgs> | null
|
|
where?: UserRoleWhereInput
|
|
orderBy?: UserRoleOrderByWithRelationInput | UserRoleOrderByWithRelationInput[]
|
|
cursor?: UserRoleWhereUniqueInput
|
|
take?: number
|
|
skip?: number
|
|
distinct?: UserRoleScalarFieldEnum | UserRoleScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* Role without action
|
|
*/
|
|
export type RoleDefaultArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the Role
|
|
*/
|
|
select?: RoleSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: RoleInclude<ExtArgs> | null
|
|
}
|
|
|
|
|
|
/**
|
|
* Model Permission
|
|
*/
|
|
|
|
export type AggregatePermission = {
|
|
_count: PermissionCountAggregateOutputType | null
|
|
_avg: PermissionAvgAggregateOutputType | null
|
|
_sum: PermissionSumAggregateOutputType | null
|
|
_min: PermissionMinAggregateOutputType | null
|
|
_max: PermissionMaxAggregateOutputType | null
|
|
}
|
|
|
|
export type PermissionAvgAggregateOutputType = {
|
|
id: number | null
|
|
}
|
|
|
|
export type PermissionSumAggregateOutputType = {
|
|
id: number | null
|
|
}
|
|
|
|
export type PermissionMinAggregateOutputType = {
|
|
id: number | null
|
|
resource: string | null
|
|
action: string | null
|
|
}
|
|
|
|
export type PermissionMaxAggregateOutputType = {
|
|
id: number | null
|
|
resource: string | null
|
|
action: string | null
|
|
}
|
|
|
|
export type PermissionCountAggregateOutputType = {
|
|
id: number
|
|
resource: number
|
|
action: number
|
|
_all: number
|
|
}
|
|
|
|
|
|
export type PermissionAvgAggregateInputType = {
|
|
id?: true
|
|
}
|
|
|
|
export type PermissionSumAggregateInputType = {
|
|
id?: true
|
|
}
|
|
|
|
export type PermissionMinAggregateInputType = {
|
|
id?: true
|
|
resource?: true
|
|
action?: true
|
|
}
|
|
|
|
export type PermissionMaxAggregateInputType = {
|
|
id?: true
|
|
resource?: true
|
|
action?: true
|
|
}
|
|
|
|
export type PermissionCountAggregateInputType = {
|
|
id?: true
|
|
resource?: true
|
|
action?: true
|
|
_all?: true
|
|
}
|
|
|
|
export type PermissionAggregateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Filter which Permission to aggregate.
|
|
*/
|
|
where?: PermissionWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of Permissions to fetch.
|
|
*/
|
|
orderBy?: PermissionOrderByWithRelationInput | PermissionOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the start position
|
|
*/
|
|
cursor?: PermissionWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` Permissions from the position of the cursor.
|
|
*/
|
|
take?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Skip the first `n` Permissions.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Count returned Permissions
|
|
**/
|
|
_count?: true | PermissionCountAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to average
|
|
**/
|
|
_avg?: PermissionAvgAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to sum
|
|
**/
|
|
_sum?: PermissionSumAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to find the minimum value
|
|
**/
|
|
_min?: PermissionMinAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to find the maximum value
|
|
**/
|
|
_max?: PermissionMaxAggregateInputType
|
|
}
|
|
|
|
export type GetPermissionAggregateType<T extends PermissionAggregateArgs> = {
|
|
[P in keyof T & keyof AggregatePermission]: P extends '_count' | 'count'
|
|
? T[P] extends true
|
|
? number
|
|
: GetScalarType<T[P], AggregatePermission[P]>
|
|
: GetScalarType<T[P], AggregatePermission[P]>
|
|
}
|
|
|
|
|
|
|
|
|
|
export type PermissionGroupByArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
where?: PermissionWhereInput
|
|
orderBy?: PermissionOrderByWithAggregationInput | PermissionOrderByWithAggregationInput[]
|
|
by: PermissionScalarFieldEnum[] | PermissionScalarFieldEnum
|
|
having?: PermissionScalarWhereWithAggregatesInput
|
|
take?: number
|
|
skip?: number
|
|
_count?: PermissionCountAggregateInputType | true
|
|
_avg?: PermissionAvgAggregateInputType
|
|
_sum?: PermissionSumAggregateInputType
|
|
_min?: PermissionMinAggregateInputType
|
|
_max?: PermissionMaxAggregateInputType
|
|
}
|
|
|
|
export type PermissionGroupByOutputType = {
|
|
id: number
|
|
resource: string
|
|
action: string
|
|
_count: PermissionCountAggregateOutputType | null
|
|
_avg: PermissionAvgAggregateOutputType | null
|
|
_sum: PermissionSumAggregateOutputType | null
|
|
_min: PermissionMinAggregateOutputType | null
|
|
_max: PermissionMaxAggregateOutputType | null
|
|
}
|
|
|
|
type GetPermissionGroupByPayload<T extends PermissionGroupByArgs> = Prisma.PrismaPromise<
|
|
Array<
|
|
PickEnumerable<PermissionGroupByOutputType, T['by']> &
|
|
{
|
|
[P in ((keyof T) & (keyof PermissionGroupByOutputType))]: P extends '_count'
|
|
? T[P] extends boolean
|
|
? number
|
|
: GetScalarType<T[P], PermissionGroupByOutputType[P]>
|
|
: GetScalarType<T[P], PermissionGroupByOutputType[P]>
|
|
}
|
|
>
|
|
>
|
|
|
|
|
|
export type PermissionSelect<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
|
|
id?: boolean
|
|
resource?: boolean
|
|
action?: boolean
|
|
roles?: boolean | Permission$rolesArgs<ExtArgs>
|
|
_count?: boolean | PermissionCountOutputTypeDefaultArgs<ExtArgs>
|
|
}, ExtArgs["result"]["permission"]>
|
|
|
|
|
|
export type PermissionSelectScalar = {
|
|
id?: boolean
|
|
resource?: boolean
|
|
action?: boolean
|
|
}
|
|
|
|
export type PermissionInclude<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
roles?: boolean | Permission$rolesArgs<ExtArgs>
|
|
_count?: boolean | PermissionCountOutputTypeDefaultArgs<ExtArgs>
|
|
}
|
|
|
|
export type $PermissionPayload<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
name: "Permission"
|
|
objects: {
|
|
roles: Prisma.$RolePermissionPayload<ExtArgs>[]
|
|
}
|
|
scalars: $Extensions.GetPayloadResult<{
|
|
id: number
|
|
resource: string
|
|
action: string
|
|
}, ExtArgs["result"]["permission"]>
|
|
composites: {}
|
|
}
|
|
|
|
type PermissionGetPayload<S extends boolean | null | undefined | PermissionDefaultArgs> = $Result.GetResult<Prisma.$PermissionPayload, S>
|
|
|
|
type PermissionCountArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> =
|
|
Omit<PermissionFindManyArgs, 'select' | 'include' | 'distinct'> & {
|
|
select?: PermissionCountAggregateInputType | true
|
|
}
|
|
|
|
export interface PermissionDelegate<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> {
|
|
[K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['Permission'], meta: { name: 'Permission' } }
|
|
/**
|
|
* Find zero or one Permission that matches the filter.
|
|
* @param {PermissionFindUniqueArgs} args - Arguments to find a Permission
|
|
* @example
|
|
* // Get one Permission
|
|
* const permission = await prisma.permission.findUnique({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findUnique<T extends PermissionFindUniqueArgs>(args: SelectSubset<T, PermissionFindUniqueArgs<ExtArgs>>): Prisma__PermissionClient<$Result.GetResult<Prisma.$PermissionPayload<ExtArgs>, T, "findUnique"> | null, null, ExtArgs>
|
|
|
|
/**
|
|
* Find one Permission that matches the filter or throw an error with `error.code='P2025'`
|
|
* if no matches were found.
|
|
* @param {PermissionFindUniqueOrThrowArgs} args - Arguments to find a Permission
|
|
* @example
|
|
* // Get one Permission
|
|
* const permission = await prisma.permission.findUniqueOrThrow({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findUniqueOrThrow<T extends PermissionFindUniqueOrThrowArgs>(args: SelectSubset<T, PermissionFindUniqueOrThrowArgs<ExtArgs>>): Prisma__PermissionClient<$Result.GetResult<Prisma.$PermissionPayload<ExtArgs>, T, "findUniqueOrThrow">, never, ExtArgs>
|
|
|
|
/**
|
|
* Find the first Permission that matches the filter.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {PermissionFindFirstArgs} args - Arguments to find a Permission
|
|
* @example
|
|
* // Get one Permission
|
|
* const permission = await prisma.permission.findFirst({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findFirst<T extends PermissionFindFirstArgs>(args?: SelectSubset<T, PermissionFindFirstArgs<ExtArgs>>): Prisma__PermissionClient<$Result.GetResult<Prisma.$PermissionPayload<ExtArgs>, T, "findFirst"> | null, null, ExtArgs>
|
|
|
|
/**
|
|
* Find the first Permission that matches the filter or
|
|
* throw `PrismaKnownClientError` with `P2025` code if no matches were found.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {PermissionFindFirstOrThrowArgs} args - Arguments to find a Permission
|
|
* @example
|
|
* // Get one Permission
|
|
* const permission = await prisma.permission.findFirstOrThrow({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findFirstOrThrow<T extends PermissionFindFirstOrThrowArgs>(args?: SelectSubset<T, PermissionFindFirstOrThrowArgs<ExtArgs>>): Prisma__PermissionClient<$Result.GetResult<Prisma.$PermissionPayload<ExtArgs>, T, "findFirstOrThrow">, never, ExtArgs>
|
|
|
|
/**
|
|
* Find zero or more Permissions that matches the filter.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {PermissionFindManyArgs} args - Arguments to filter and select certain fields only.
|
|
* @example
|
|
* // Get all Permissions
|
|
* const permissions = await prisma.permission.findMany()
|
|
*
|
|
* // Get first 10 Permissions
|
|
* const permissions = await prisma.permission.findMany({ take: 10 })
|
|
*
|
|
* // Only select the `id`
|
|
* const permissionWithIdOnly = await prisma.permission.findMany({ select: { id: true } })
|
|
*
|
|
*/
|
|
findMany<T extends PermissionFindManyArgs>(args?: SelectSubset<T, PermissionFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$PermissionPayload<ExtArgs>, T, "findMany">>
|
|
|
|
/**
|
|
* Create a Permission.
|
|
* @param {PermissionCreateArgs} args - Arguments to create a Permission.
|
|
* @example
|
|
* // Create one Permission
|
|
* const Permission = await prisma.permission.create({
|
|
* data: {
|
|
* // ... data to create a Permission
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
create<T extends PermissionCreateArgs>(args: SelectSubset<T, PermissionCreateArgs<ExtArgs>>): Prisma__PermissionClient<$Result.GetResult<Prisma.$PermissionPayload<ExtArgs>, T, "create">, never, ExtArgs>
|
|
|
|
/**
|
|
* Create many Permissions.
|
|
* @param {PermissionCreateManyArgs} args - Arguments to create many Permissions.
|
|
* @example
|
|
* // Create many Permissions
|
|
* const permission = await prisma.permission.createMany({
|
|
* data: [
|
|
* // ... provide data here
|
|
* ]
|
|
* })
|
|
*
|
|
*/
|
|
createMany<T extends PermissionCreateManyArgs>(args?: SelectSubset<T, PermissionCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
|
|
|
|
/**
|
|
* Delete a Permission.
|
|
* @param {PermissionDeleteArgs} args - Arguments to delete one Permission.
|
|
* @example
|
|
* // Delete one Permission
|
|
* const Permission = await prisma.permission.delete({
|
|
* where: {
|
|
* // ... filter to delete one Permission
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
delete<T extends PermissionDeleteArgs>(args: SelectSubset<T, PermissionDeleteArgs<ExtArgs>>): Prisma__PermissionClient<$Result.GetResult<Prisma.$PermissionPayload<ExtArgs>, T, "delete">, never, ExtArgs>
|
|
|
|
/**
|
|
* Update one Permission.
|
|
* @param {PermissionUpdateArgs} args - Arguments to update one Permission.
|
|
* @example
|
|
* // Update one Permission
|
|
* const permission = await prisma.permission.update({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* },
|
|
* data: {
|
|
* // ... provide data here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
update<T extends PermissionUpdateArgs>(args: SelectSubset<T, PermissionUpdateArgs<ExtArgs>>): Prisma__PermissionClient<$Result.GetResult<Prisma.$PermissionPayload<ExtArgs>, T, "update">, never, ExtArgs>
|
|
|
|
/**
|
|
* Delete zero or more Permissions.
|
|
* @param {PermissionDeleteManyArgs} args - Arguments to filter Permissions to delete.
|
|
* @example
|
|
* // Delete a few Permissions
|
|
* const { count } = await prisma.permission.deleteMany({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
deleteMany<T extends PermissionDeleteManyArgs>(args?: SelectSubset<T, PermissionDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
|
|
|
|
/**
|
|
* Update zero or more Permissions.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {PermissionUpdateManyArgs} args - Arguments to update one or more rows.
|
|
* @example
|
|
* // Update many Permissions
|
|
* const permission = await prisma.permission.updateMany({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* },
|
|
* data: {
|
|
* // ... provide data here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
updateMany<T extends PermissionUpdateManyArgs>(args: SelectSubset<T, PermissionUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
|
|
|
|
/**
|
|
* Create or update one Permission.
|
|
* @param {PermissionUpsertArgs} args - Arguments to update or create a Permission.
|
|
* @example
|
|
* // Update or create a Permission
|
|
* const permission = await prisma.permission.upsert({
|
|
* create: {
|
|
* // ... data to create a Permission
|
|
* },
|
|
* update: {
|
|
* // ... in case it already exists, update
|
|
* },
|
|
* where: {
|
|
* // ... the filter for the Permission we want to update
|
|
* }
|
|
* })
|
|
*/
|
|
upsert<T extends PermissionUpsertArgs>(args: SelectSubset<T, PermissionUpsertArgs<ExtArgs>>): Prisma__PermissionClient<$Result.GetResult<Prisma.$PermissionPayload<ExtArgs>, T, "upsert">, never, ExtArgs>
|
|
|
|
|
|
/**
|
|
* Count the number of Permissions.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {PermissionCountArgs} args - Arguments to filter Permissions to count.
|
|
* @example
|
|
* // Count the number of Permissions
|
|
* const count = await prisma.permission.count({
|
|
* where: {
|
|
* // ... the filter for the Permissions we want to count
|
|
* }
|
|
* })
|
|
**/
|
|
count<T extends PermissionCountArgs>(
|
|
args?: Subset<T, PermissionCountArgs>,
|
|
): Prisma.PrismaPromise<
|
|
T extends $Utils.Record<'select', any>
|
|
? T['select'] extends true
|
|
? number
|
|
: GetScalarType<T['select'], PermissionCountAggregateOutputType>
|
|
: number
|
|
>
|
|
|
|
/**
|
|
* Allows you to perform aggregations operations on a Permission.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {PermissionAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
|
|
* @example
|
|
* // Ordered by age ascending
|
|
* // Where email contains prisma.io
|
|
* // Limited to the 10 users
|
|
* const aggregations = await prisma.user.aggregate({
|
|
* _avg: {
|
|
* age: true,
|
|
* },
|
|
* where: {
|
|
* email: {
|
|
* contains: "prisma.io",
|
|
* },
|
|
* },
|
|
* orderBy: {
|
|
* age: "asc",
|
|
* },
|
|
* take: 10,
|
|
* })
|
|
**/
|
|
aggregate<T extends PermissionAggregateArgs>(args: Subset<T, PermissionAggregateArgs>): Prisma.PrismaPromise<GetPermissionAggregateType<T>>
|
|
|
|
/**
|
|
* Group by Permission.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {PermissionGroupByArgs} args - Group by arguments.
|
|
* @example
|
|
* // Group by city, order by createdAt, get count
|
|
* const result = await prisma.user.groupBy({
|
|
* by: ['city', 'createdAt'],
|
|
* orderBy: {
|
|
* createdAt: true
|
|
* },
|
|
* _count: {
|
|
* _all: true
|
|
* },
|
|
* })
|
|
*
|
|
**/
|
|
groupBy<
|
|
T extends PermissionGroupByArgs,
|
|
HasSelectOrTake extends Or<
|
|
Extends<'skip', Keys<T>>,
|
|
Extends<'take', Keys<T>>
|
|
>,
|
|
OrderByArg extends True extends HasSelectOrTake
|
|
? { orderBy: PermissionGroupByArgs['orderBy'] }
|
|
: { orderBy?: PermissionGroupByArgs['orderBy'] },
|
|
OrderFields extends ExcludeUnderscoreKeys<Keys<MaybeTupleToUnion<T['orderBy']>>>,
|
|
ByFields extends MaybeTupleToUnion<T['by']>,
|
|
ByValid extends Has<ByFields, OrderFields>,
|
|
HavingFields extends GetHavingFields<T['having']>,
|
|
HavingValid extends Has<ByFields, HavingFields>,
|
|
ByEmpty extends T['by'] extends never[] ? True : False,
|
|
InputErrors extends ByEmpty extends True
|
|
? `Error: "by" must not be empty.`
|
|
: HavingValid extends False
|
|
? {
|
|
[P in HavingFields]: P extends ByFields
|
|
? never
|
|
: P extends string
|
|
? `Error: Field "${P}" used in "having" needs to be provided in "by".`
|
|
: [
|
|
Error,
|
|
'Field ',
|
|
P,
|
|
` in "having" needs to be provided in "by"`,
|
|
]
|
|
}[HavingFields]
|
|
: 'take' extends Keys<T>
|
|
? 'orderBy' extends Keys<T>
|
|
? ByValid extends True
|
|
? {}
|
|
: {
|
|
[P in OrderFields]: P extends ByFields
|
|
? never
|
|
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
|
|
}[OrderFields]
|
|
: 'Error: If you provide "take", you also need to provide "orderBy"'
|
|
: 'skip' extends Keys<T>
|
|
? 'orderBy' extends Keys<T>
|
|
? ByValid extends True
|
|
? {}
|
|
: {
|
|
[P in OrderFields]: P extends ByFields
|
|
? never
|
|
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
|
|
}[OrderFields]
|
|
: 'Error: If you provide "skip", you also need to provide "orderBy"'
|
|
: ByValid extends True
|
|
? {}
|
|
: {
|
|
[P in OrderFields]: P extends ByFields
|
|
? never
|
|
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
|
|
}[OrderFields]
|
|
>(args: SubsetIntersection<T, PermissionGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetPermissionGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
|
|
/**
|
|
* Fields of the Permission model
|
|
*/
|
|
readonly fields: PermissionFieldRefs;
|
|
}
|
|
|
|
/**
|
|
* The delegate class that acts as a "Promise-like" for Permission.
|
|
* Why is this prefixed with `Prisma__`?
|
|
* Because we want to prevent naming conflicts as mentioned in
|
|
* https://github.com/prisma/prisma-client-js/issues/707
|
|
*/
|
|
export interface Prisma__PermissionClient<T, Null = never, ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> extends Prisma.PrismaPromise<T> {
|
|
readonly [Symbol.toStringTag]: "PrismaPromise"
|
|
roles<T extends Permission$rolesArgs<ExtArgs> = {}>(args?: Subset<T, Permission$rolesArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$RolePermissionPayload<ExtArgs>, T, "findMany"> | Null>
|
|
/**
|
|
* Attaches callbacks for the resolution and/or rejection of the Promise.
|
|
* @param onfulfilled The callback to execute when the Promise is resolved.
|
|
* @param onrejected The callback to execute when the Promise is rejected.
|
|
* @returns A Promise for the completion of which ever callback is executed.
|
|
*/
|
|
then<TResult1 = T, TResult2 = never>(onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined | null): $Utils.JsPromise<TResult1 | TResult2>
|
|
/**
|
|
* Attaches a callback for only the rejection of the Promise.
|
|
* @param onrejected The callback to execute when the Promise is rejected.
|
|
* @returns A Promise for the completion of the callback.
|
|
*/
|
|
catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): $Utils.JsPromise<T | TResult>
|
|
/**
|
|
* Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
|
|
* resolved value cannot be modified from the callback.
|
|
* @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
|
|
* @returns A Promise for the completion of the callback.
|
|
*/
|
|
finally(onfinally?: (() => void) | undefined | null): $Utils.JsPromise<T>
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
* Fields of the Permission model
|
|
*/
|
|
interface PermissionFieldRefs {
|
|
readonly id: FieldRef<"Permission", 'Int'>
|
|
readonly resource: FieldRef<"Permission", 'String'>
|
|
readonly action: FieldRef<"Permission", 'String'>
|
|
}
|
|
|
|
|
|
// Custom InputTypes
|
|
/**
|
|
* Permission findUnique
|
|
*/
|
|
export type PermissionFindUniqueArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the Permission
|
|
*/
|
|
select?: PermissionSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: PermissionInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which Permission to fetch.
|
|
*/
|
|
where: PermissionWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* Permission findUniqueOrThrow
|
|
*/
|
|
export type PermissionFindUniqueOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the Permission
|
|
*/
|
|
select?: PermissionSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: PermissionInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which Permission to fetch.
|
|
*/
|
|
where: PermissionWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* Permission findFirst
|
|
*/
|
|
export type PermissionFindFirstArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the Permission
|
|
*/
|
|
select?: PermissionSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: PermissionInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which Permission to fetch.
|
|
*/
|
|
where?: PermissionWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of Permissions to fetch.
|
|
*/
|
|
orderBy?: PermissionOrderByWithRelationInput | PermissionOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for searching for Permissions.
|
|
*/
|
|
cursor?: PermissionWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` Permissions from the position of the cursor.
|
|
*/
|
|
take?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Skip the first `n` Permissions.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
*
|
|
* Filter by unique combinations of Permissions.
|
|
*/
|
|
distinct?: PermissionScalarFieldEnum | PermissionScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* Permission findFirstOrThrow
|
|
*/
|
|
export type PermissionFindFirstOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the Permission
|
|
*/
|
|
select?: PermissionSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: PermissionInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which Permission to fetch.
|
|
*/
|
|
where?: PermissionWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of Permissions to fetch.
|
|
*/
|
|
orderBy?: PermissionOrderByWithRelationInput | PermissionOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for searching for Permissions.
|
|
*/
|
|
cursor?: PermissionWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` Permissions from the position of the cursor.
|
|
*/
|
|
take?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Skip the first `n` Permissions.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
*
|
|
* Filter by unique combinations of Permissions.
|
|
*/
|
|
distinct?: PermissionScalarFieldEnum | PermissionScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* Permission findMany
|
|
*/
|
|
export type PermissionFindManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the Permission
|
|
*/
|
|
select?: PermissionSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: PermissionInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which Permissions to fetch.
|
|
*/
|
|
where?: PermissionWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of Permissions to fetch.
|
|
*/
|
|
orderBy?: PermissionOrderByWithRelationInput | PermissionOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for listing Permissions.
|
|
*/
|
|
cursor?: PermissionWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` Permissions from the position of the cursor.
|
|
*/
|
|
take?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Skip the first `n` Permissions.
|
|
*/
|
|
skip?: number
|
|
distinct?: PermissionScalarFieldEnum | PermissionScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* Permission create
|
|
*/
|
|
export type PermissionCreateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the Permission
|
|
*/
|
|
select?: PermissionSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: PermissionInclude<ExtArgs> | null
|
|
/**
|
|
* The data needed to create a Permission.
|
|
*/
|
|
data: XOR<PermissionCreateInput, PermissionUncheckedCreateInput>
|
|
}
|
|
|
|
/**
|
|
* Permission createMany
|
|
*/
|
|
export type PermissionCreateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* The data used to create many Permissions.
|
|
*/
|
|
data: PermissionCreateManyInput | PermissionCreateManyInput[]
|
|
skipDuplicates?: boolean
|
|
}
|
|
|
|
/**
|
|
* Permission update
|
|
*/
|
|
export type PermissionUpdateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the Permission
|
|
*/
|
|
select?: PermissionSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: PermissionInclude<ExtArgs> | null
|
|
/**
|
|
* The data needed to update a Permission.
|
|
*/
|
|
data: XOR<PermissionUpdateInput, PermissionUncheckedUpdateInput>
|
|
/**
|
|
* Choose, which Permission to update.
|
|
*/
|
|
where: PermissionWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* Permission updateMany
|
|
*/
|
|
export type PermissionUpdateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* The data used to update Permissions.
|
|
*/
|
|
data: XOR<PermissionUpdateManyMutationInput, PermissionUncheckedUpdateManyInput>
|
|
/**
|
|
* Filter which Permissions to update
|
|
*/
|
|
where?: PermissionWhereInput
|
|
}
|
|
|
|
/**
|
|
* Permission upsert
|
|
*/
|
|
export type PermissionUpsertArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the Permission
|
|
*/
|
|
select?: PermissionSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: PermissionInclude<ExtArgs> | null
|
|
/**
|
|
* The filter to search for the Permission to update in case it exists.
|
|
*/
|
|
where: PermissionWhereUniqueInput
|
|
/**
|
|
* In case the Permission found by the `where` argument doesn't exist, create a new Permission with this data.
|
|
*/
|
|
create: XOR<PermissionCreateInput, PermissionUncheckedCreateInput>
|
|
/**
|
|
* In case the Permission was found with the provided `where` argument, update it with this data.
|
|
*/
|
|
update: XOR<PermissionUpdateInput, PermissionUncheckedUpdateInput>
|
|
}
|
|
|
|
/**
|
|
* Permission delete
|
|
*/
|
|
export type PermissionDeleteArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the Permission
|
|
*/
|
|
select?: PermissionSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: PermissionInclude<ExtArgs> | null
|
|
/**
|
|
* Filter which Permission to delete.
|
|
*/
|
|
where: PermissionWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* Permission deleteMany
|
|
*/
|
|
export type PermissionDeleteManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Filter which Permissions to delete
|
|
*/
|
|
where?: PermissionWhereInput
|
|
}
|
|
|
|
/**
|
|
* Permission.roles
|
|
*/
|
|
export type Permission$rolesArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the RolePermission
|
|
*/
|
|
select?: RolePermissionSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: RolePermissionInclude<ExtArgs> | null
|
|
where?: RolePermissionWhereInput
|
|
orderBy?: RolePermissionOrderByWithRelationInput | RolePermissionOrderByWithRelationInput[]
|
|
cursor?: RolePermissionWhereUniqueInput
|
|
take?: number
|
|
skip?: number
|
|
distinct?: RolePermissionScalarFieldEnum | RolePermissionScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* Permission without action
|
|
*/
|
|
export type PermissionDefaultArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the Permission
|
|
*/
|
|
select?: PermissionSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: PermissionInclude<ExtArgs> | null
|
|
}
|
|
|
|
|
|
/**
|
|
* Model RolePermission
|
|
*/
|
|
|
|
export type AggregateRolePermission = {
|
|
_count: RolePermissionCountAggregateOutputType | null
|
|
_avg: RolePermissionAvgAggregateOutputType | null
|
|
_sum: RolePermissionSumAggregateOutputType | null
|
|
_min: RolePermissionMinAggregateOutputType | null
|
|
_max: RolePermissionMaxAggregateOutputType | null
|
|
}
|
|
|
|
export type RolePermissionAvgAggregateOutputType = {
|
|
roleId: number | null
|
|
permissionId: number | null
|
|
}
|
|
|
|
export type RolePermissionSumAggregateOutputType = {
|
|
roleId: number | null
|
|
permissionId: number | null
|
|
}
|
|
|
|
export type RolePermissionMinAggregateOutputType = {
|
|
roleId: number | null
|
|
permissionId: number | null
|
|
}
|
|
|
|
export type RolePermissionMaxAggregateOutputType = {
|
|
roleId: number | null
|
|
permissionId: number | null
|
|
}
|
|
|
|
export type RolePermissionCountAggregateOutputType = {
|
|
roleId: number
|
|
permissionId: number
|
|
_all: number
|
|
}
|
|
|
|
|
|
export type RolePermissionAvgAggregateInputType = {
|
|
roleId?: true
|
|
permissionId?: true
|
|
}
|
|
|
|
export type RolePermissionSumAggregateInputType = {
|
|
roleId?: true
|
|
permissionId?: true
|
|
}
|
|
|
|
export type RolePermissionMinAggregateInputType = {
|
|
roleId?: true
|
|
permissionId?: true
|
|
}
|
|
|
|
export type RolePermissionMaxAggregateInputType = {
|
|
roleId?: true
|
|
permissionId?: true
|
|
}
|
|
|
|
export type RolePermissionCountAggregateInputType = {
|
|
roleId?: true
|
|
permissionId?: true
|
|
_all?: true
|
|
}
|
|
|
|
export type RolePermissionAggregateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Filter which RolePermission to aggregate.
|
|
*/
|
|
where?: RolePermissionWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of RolePermissions to fetch.
|
|
*/
|
|
orderBy?: RolePermissionOrderByWithRelationInput | RolePermissionOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the start position
|
|
*/
|
|
cursor?: RolePermissionWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` RolePermissions from the position of the cursor.
|
|
*/
|
|
take?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Skip the first `n` RolePermissions.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Count returned RolePermissions
|
|
**/
|
|
_count?: true | RolePermissionCountAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to average
|
|
**/
|
|
_avg?: RolePermissionAvgAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to sum
|
|
**/
|
|
_sum?: RolePermissionSumAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to find the minimum value
|
|
**/
|
|
_min?: RolePermissionMinAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to find the maximum value
|
|
**/
|
|
_max?: RolePermissionMaxAggregateInputType
|
|
}
|
|
|
|
export type GetRolePermissionAggregateType<T extends RolePermissionAggregateArgs> = {
|
|
[P in keyof T & keyof AggregateRolePermission]: P extends '_count' | 'count'
|
|
? T[P] extends true
|
|
? number
|
|
: GetScalarType<T[P], AggregateRolePermission[P]>
|
|
: GetScalarType<T[P], AggregateRolePermission[P]>
|
|
}
|
|
|
|
|
|
|
|
|
|
export type RolePermissionGroupByArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
where?: RolePermissionWhereInput
|
|
orderBy?: RolePermissionOrderByWithAggregationInput | RolePermissionOrderByWithAggregationInput[]
|
|
by: RolePermissionScalarFieldEnum[] | RolePermissionScalarFieldEnum
|
|
having?: RolePermissionScalarWhereWithAggregatesInput
|
|
take?: number
|
|
skip?: number
|
|
_count?: RolePermissionCountAggregateInputType | true
|
|
_avg?: RolePermissionAvgAggregateInputType
|
|
_sum?: RolePermissionSumAggregateInputType
|
|
_min?: RolePermissionMinAggregateInputType
|
|
_max?: RolePermissionMaxAggregateInputType
|
|
}
|
|
|
|
export type RolePermissionGroupByOutputType = {
|
|
roleId: number
|
|
permissionId: number
|
|
_count: RolePermissionCountAggregateOutputType | null
|
|
_avg: RolePermissionAvgAggregateOutputType | null
|
|
_sum: RolePermissionSumAggregateOutputType | null
|
|
_min: RolePermissionMinAggregateOutputType | null
|
|
_max: RolePermissionMaxAggregateOutputType | null
|
|
}
|
|
|
|
type GetRolePermissionGroupByPayload<T extends RolePermissionGroupByArgs> = Prisma.PrismaPromise<
|
|
Array<
|
|
PickEnumerable<RolePermissionGroupByOutputType, T['by']> &
|
|
{
|
|
[P in ((keyof T) & (keyof RolePermissionGroupByOutputType))]: P extends '_count'
|
|
? T[P] extends boolean
|
|
? number
|
|
: GetScalarType<T[P], RolePermissionGroupByOutputType[P]>
|
|
: GetScalarType<T[P], RolePermissionGroupByOutputType[P]>
|
|
}
|
|
>
|
|
>
|
|
|
|
|
|
export type RolePermissionSelect<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
|
|
roleId?: boolean
|
|
permissionId?: boolean
|
|
role?: boolean | RoleDefaultArgs<ExtArgs>
|
|
permission?: boolean | PermissionDefaultArgs<ExtArgs>
|
|
}, ExtArgs["result"]["rolePermission"]>
|
|
|
|
|
|
export type RolePermissionSelectScalar = {
|
|
roleId?: boolean
|
|
permissionId?: boolean
|
|
}
|
|
|
|
export type RolePermissionInclude<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
role?: boolean | RoleDefaultArgs<ExtArgs>
|
|
permission?: boolean | PermissionDefaultArgs<ExtArgs>
|
|
}
|
|
|
|
export type $RolePermissionPayload<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
name: "RolePermission"
|
|
objects: {
|
|
role: Prisma.$RolePayload<ExtArgs>
|
|
permission: Prisma.$PermissionPayload<ExtArgs>
|
|
}
|
|
scalars: $Extensions.GetPayloadResult<{
|
|
roleId: number
|
|
permissionId: number
|
|
}, ExtArgs["result"]["rolePermission"]>
|
|
composites: {}
|
|
}
|
|
|
|
type RolePermissionGetPayload<S extends boolean | null | undefined | RolePermissionDefaultArgs> = $Result.GetResult<Prisma.$RolePermissionPayload, S>
|
|
|
|
type RolePermissionCountArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> =
|
|
Omit<RolePermissionFindManyArgs, 'select' | 'include' | 'distinct'> & {
|
|
select?: RolePermissionCountAggregateInputType | true
|
|
}
|
|
|
|
export interface RolePermissionDelegate<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> {
|
|
[K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['RolePermission'], meta: { name: 'RolePermission' } }
|
|
/**
|
|
* Find zero or one RolePermission that matches the filter.
|
|
* @param {RolePermissionFindUniqueArgs} args - Arguments to find a RolePermission
|
|
* @example
|
|
* // Get one RolePermission
|
|
* const rolePermission = await prisma.rolePermission.findUnique({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findUnique<T extends RolePermissionFindUniqueArgs>(args: SelectSubset<T, RolePermissionFindUniqueArgs<ExtArgs>>): Prisma__RolePermissionClient<$Result.GetResult<Prisma.$RolePermissionPayload<ExtArgs>, T, "findUnique"> | null, null, ExtArgs>
|
|
|
|
/**
|
|
* Find one RolePermission that matches the filter or throw an error with `error.code='P2025'`
|
|
* if no matches were found.
|
|
* @param {RolePermissionFindUniqueOrThrowArgs} args - Arguments to find a RolePermission
|
|
* @example
|
|
* // Get one RolePermission
|
|
* const rolePermission = await prisma.rolePermission.findUniqueOrThrow({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findUniqueOrThrow<T extends RolePermissionFindUniqueOrThrowArgs>(args: SelectSubset<T, RolePermissionFindUniqueOrThrowArgs<ExtArgs>>): Prisma__RolePermissionClient<$Result.GetResult<Prisma.$RolePermissionPayload<ExtArgs>, T, "findUniqueOrThrow">, never, ExtArgs>
|
|
|
|
/**
|
|
* Find the first RolePermission that matches the filter.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {RolePermissionFindFirstArgs} args - Arguments to find a RolePermission
|
|
* @example
|
|
* // Get one RolePermission
|
|
* const rolePermission = await prisma.rolePermission.findFirst({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findFirst<T extends RolePermissionFindFirstArgs>(args?: SelectSubset<T, RolePermissionFindFirstArgs<ExtArgs>>): Prisma__RolePermissionClient<$Result.GetResult<Prisma.$RolePermissionPayload<ExtArgs>, T, "findFirst"> | null, null, ExtArgs>
|
|
|
|
/**
|
|
* Find the first RolePermission that matches the filter or
|
|
* throw `PrismaKnownClientError` with `P2025` code if no matches were found.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {RolePermissionFindFirstOrThrowArgs} args - Arguments to find a RolePermission
|
|
* @example
|
|
* // Get one RolePermission
|
|
* const rolePermission = await prisma.rolePermission.findFirstOrThrow({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findFirstOrThrow<T extends RolePermissionFindFirstOrThrowArgs>(args?: SelectSubset<T, RolePermissionFindFirstOrThrowArgs<ExtArgs>>): Prisma__RolePermissionClient<$Result.GetResult<Prisma.$RolePermissionPayload<ExtArgs>, T, "findFirstOrThrow">, never, ExtArgs>
|
|
|
|
/**
|
|
* Find zero or more RolePermissions that matches the filter.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {RolePermissionFindManyArgs} args - Arguments to filter and select certain fields only.
|
|
* @example
|
|
* // Get all RolePermissions
|
|
* const rolePermissions = await prisma.rolePermission.findMany()
|
|
*
|
|
* // Get first 10 RolePermissions
|
|
* const rolePermissions = await prisma.rolePermission.findMany({ take: 10 })
|
|
*
|
|
* // Only select the `roleId`
|
|
* const rolePermissionWithRoleIdOnly = await prisma.rolePermission.findMany({ select: { roleId: true } })
|
|
*
|
|
*/
|
|
findMany<T extends RolePermissionFindManyArgs>(args?: SelectSubset<T, RolePermissionFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$RolePermissionPayload<ExtArgs>, T, "findMany">>
|
|
|
|
/**
|
|
* Create a RolePermission.
|
|
* @param {RolePermissionCreateArgs} args - Arguments to create a RolePermission.
|
|
* @example
|
|
* // Create one RolePermission
|
|
* const RolePermission = await prisma.rolePermission.create({
|
|
* data: {
|
|
* // ... data to create a RolePermission
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
create<T extends RolePermissionCreateArgs>(args: SelectSubset<T, RolePermissionCreateArgs<ExtArgs>>): Prisma__RolePermissionClient<$Result.GetResult<Prisma.$RolePermissionPayload<ExtArgs>, T, "create">, never, ExtArgs>
|
|
|
|
/**
|
|
* Create many RolePermissions.
|
|
* @param {RolePermissionCreateManyArgs} args - Arguments to create many RolePermissions.
|
|
* @example
|
|
* // Create many RolePermissions
|
|
* const rolePermission = await prisma.rolePermission.createMany({
|
|
* data: [
|
|
* // ... provide data here
|
|
* ]
|
|
* })
|
|
*
|
|
*/
|
|
createMany<T extends RolePermissionCreateManyArgs>(args?: SelectSubset<T, RolePermissionCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
|
|
|
|
/**
|
|
* Delete a RolePermission.
|
|
* @param {RolePermissionDeleteArgs} args - Arguments to delete one RolePermission.
|
|
* @example
|
|
* // Delete one RolePermission
|
|
* const RolePermission = await prisma.rolePermission.delete({
|
|
* where: {
|
|
* // ... filter to delete one RolePermission
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
delete<T extends RolePermissionDeleteArgs>(args: SelectSubset<T, RolePermissionDeleteArgs<ExtArgs>>): Prisma__RolePermissionClient<$Result.GetResult<Prisma.$RolePermissionPayload<ExtArgs>, T, "delete">, never, ExtArgs>
|
|
|
|
/**
|
|
* Update one RolePermission.
|
|
* @param {RolePermissionUpdateArgs} args - Arguments to update one RolePermission.
|
|
* @example
|
|
* // Update one RolePermission
|
|
* const rolePermission = await prisma.rolePermission.update({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* },
|
|
* data: {
|
|
* // ... provide data here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
update<T extends RolePermissionUpdateArgs>(args: SelectSubset<T, RolePermissionUpdateArgs<ExtArgs>>): Prisma__RolePermissionClient<$Result.GetResult<Prisma.$RolePermissionPayload<ExtArgs>, T, "update">, never, ExtArgs>
|
|
|
|
/**
|
|
* Delete zero or more RolePermissions.
|
|
* @param {RolePermissionDeleteManyArgs} args - Arguments to filter RolePermissions to delete.
|
|
* @example
|
|
* // Delete a few RolePermissions
|
|
* const { count } = await prisma.rolePermission.deleteMany({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
deleteMany<T extends RolePermissionDeleteManyArgs>(args?: SelectSubset<T, RolePermissionDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
|
|
|
|
/**
|
|
* Update zero or more RolePermissions.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {RolePermissionUpdateManyArgs} args - Arguments to update one or more rows.
|
|
* @example
|
|
* // Update many RolePermissions
|
|
* const rolePermission = await prisma.rolePermission.updateMany({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* },
|
|
* data: {
|
|
* // ... provide data here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
updateMany<T extends RolePermissionUpdateManyArgs>(args: SelectSubset<T, RolePermissionUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
|
|
|
|
/**
|
|
* Create or update one RolePermission.
|
|
* @param {RolePermissionUpsertArgs} args - Arguments to update or create a RolePermission.
|
|
* @example
|
|
* // Update or create a RolePermission
|
|
* const rolePermission = await prisma.rolePermission.upsert({
|
|
* create: {
|
|
* // ... data to create a RolePermission
|
|
* },
|
|
* update: {
|
|
* // ... in case it already exists, update
|
|
* },
|
|
* where: {
|
|
* // ... the filter for the RolePermission we want to update
|
|
* }
|
|
* })
|
|
*/
|
|
upsert<T extends RolePermissionUpsertArgs>(args: SelectSubset<T, RolePermissionUpsertArgs<ExtArgs>>): Prisma__RolePermissionClient<$Result.GetResult<Prisma.$RolePermissionPayload<ExtArgs>, T, "upsert">, never, ExtArgs>
|
|
|
|
|
|
/**
|
|
* Count the number of RolePermissions.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {RolePermissionCountArgs} args - Arguments to filter RolePermissions to count.
|
|
* @example
|
|
* // Count the number of RolePermissions
|
|
* const count = await prisma.rolePermission.count({
|
|
* where: {
|
|
* // ... the filter for the RolePermissions we want to count
|
|
* }
|
|
* })
|
|
**/
|
|
count<T extends RolePermissionCountArgs>(
|
|
args?: Subset<T, RolePermissionCountArgs>,
|
|
): Prisma.PrismaPromise<
|
|
T extends $Utils.Record<'select', any>
|
|
? T['select'] extends true
|
|
? number
|
|
: GetScalarType<T['select'], RolePermissionCountAggregateOutputType>
|
|
: number
|
|
>
|
|
|
|
/**
|
|
* Allows you to perform aggregations operations on a RolePermission.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {RolePermissionAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
|
|
* @example
|
|
* // Ordered by age ascending
|
|
* // Where email contains prisma.io
|
|
* // Limited to the 10 users
|
|
* const aggregations = await prisma.user.aggregate({
|
|
* _avg: {
|
|
* age: true,
|
|
* },
|
|
* where: {
|
|
* email: {
|
|
* contains: "prisma.io",
|
|
* },
|
|
* },
|
|
* orderBy: {
|
|
* age: "asc",
|
|
* },
|
|
* take: 10,
|
|
* })
|
|
**/
|
|
aggregate<T extends RolePermissionAggregateArgs>(args: Subset<T, RolePermissionAggregateArgs>): Prisma.PrismaPromise<GetRolePermissionAggregateType<T>>
|
|
|
|
/**
|
|
* Group by RolePermission.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {RolePermissionGroupByArgs} args - Group by arguments.
|
|
* @example
|
|
* // Group by city, order by createdAt, get count
|
|
* const result = await prisma.user.groupBy({
|
|
* by: ['city', 'createdAt'],
|
|
* orderBy: {
|
|
* createdAt: true
|
|
* },
|
|
* _count: {
|
|
* _all: true
|
|
* },
|
|
* })
|
|
*
|
|
**/
|
|
groupBy<
|
|
T extends RolePermissionGroupByArgs,
|
|
HasSelectOrTake extends Or<
|
|
Extends<'skip', Keys<T>>,
|
|
Extends<'take', Keys<T>>
|
|
>,
|
|
OrderByArg extends True extends HasSelectOrTake
|
|
? { orderBy: RolePermissionGroupByArgs['orderBy'] }
|
|
: { orderBy?: RolePermissionGroupByArgs['orderBy'] },
|
|
OrderFields extends ExcludeUnderscoreKeys<Keys<MaybeTupleToUnion<T['orderBy']>>>,
|
|
ByFields extends MaybeTupleToUnion<T['by']>,
|
|
ByValid extends Has<ByFields, OrderFields>,
|
|
HavingFields extends GetHavingFields<T['having']>,
|
|
HavingValid extends Has<ByFields, HavingFields>,
|
|
ByEmpty extends T['by'] extends never[] ? True : False,
|
|
InputErrors extends ByEmpty extends True
|
|
? `Error: "by" must not be empty.`
|
|
: HavingValid extends False
|
|
? {
|
|
[P in HavingFields]: P extends ByFields
|
|
? never
|
|
: P extends string
|
|
? `Error: Field "${P}" used in "having" needs to be provided in "by".`
|
|
: [
|
|
Error,
|
|
'Field ',
|
|
P,
|
|
` in "having" needs to be provided in "by"`,
|
|
]
|
|
}[HavingFields]
|
|
: 'take' extends Keys<T>
|
|
? 'orderBy' extends Keys<T>
|
|
? ByValid extends True
|
|
? {}
|
|
: {
|
|
[P in OrderFields]: P extends ByFields
|
|
? never
|
|
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
|
|
}[OrderFields]
|
|
: 'Error: If you provide "take", you also need to provide "orderBy"'
|
|
: 'skip' extends Keys<T>
|
|
? 'orderBy' extends Keys<T>
|
|
? ByValid extends True
|
|
? {}
|
|
: {
|
|
[P in OrderFields]: P extends ByFields
|
|
? never
|
|
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
|
|
}[OrderFields]
|
|
: 'Error: If you provide "skip", you also need to provide "orderBy"'
|
|
: ByValid extends True
|
|
? {}
|
|
: {
|
|
[P in OrderFields]: P extends ByFields
|
|
? never
|
|
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
|
|
}[OrderFields]
|
|
>(args: SubsetIntersection<T, RolePermissionGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetRolePermissionGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
|
|
/**
|
|
* Fields of the RolePermission model
|
|
*/
|
|
readonly fields: RolePermissionFieldRefs;
|
|
}
|
|
|
|
/**
|
|
* The delegate class that acts as a "Promise-like" for RolePermission.
|
|
* Why is this prefixed with `Prisma__`?
|
|
* Because we want to prevent naming conflicts as mentioned in
|
|
* https://github.com/prisma/prisma-client-js/issues/707
|
|
*/
|
|
export interface Prisma__RolePermissionClient<T, Null = never, ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> extends Prisma.PrismaPromise<T> {
|
|
readonly [Symbol.toStringTag]: "PrismaPromise"
|
|
role<T extends RoleDefaultArgs<ExtArgs> = {}>(args?: Subset<T, RoleDefaultArgs<ExtArgs>>): Prisma__RoleClient<$Result.GetResult<Prisma.$RolePayload<ExtArgs>, T, "findUniqueOrThrow"> | Null, Null, ExtArgs>
|
|
permission<T extends PermissionDefaultArgs<ExtArgs> = {}>(args?: Subset<T, PermissionDefaultArgs<ExtArgs>>): Prisma__PermissionClient<$Result.GetResult<Prisma.$PermissionPayload<ExtArgs>, T, "findUniqueOrThrow"> | Null, Null, ExtArgs>
|
|
/**
|
|
* Attaches callbacks for the resolution and/or rejection of the Promise.
|
|
* @param onfulfilled The callback to execute when the Promise is resolved.
|
|
* @param onrejected The callback to execute when the Promise is rejected.
|
|
* @returns A Promise for the completion of which ever callback is executed.
|
|
*/
|
|
then<TResult1 = T, TResult2 = never>(onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined | null): $Utils.JsPromise<TResult1 | TResult2>
|
|
/**
|
|
* Attaches a callback for only the rejection of the Promise.
|
|
* @param onrejected The callback to execute when the Promise is rejected.
|
|
* @returns A Promise for the completion of the callback.
|
|
*/
|
|
catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): $Utils.JsPromise<T | TResult>
|
|
/**
|
|
* Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
|
|
* resolved value cannot be modified from the callback.
|
|
* @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
|
|
* @returns A Promise for the completion of the callback.
|
|
*/
|
|
finally(onfinally?: (() => void) | undefined | null): $Utils.JsPromise<T>
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
* Fields of the RolePermission model
|
|
*/
|
|
interface RolePermissionFieldRefs {
|
|
readonly roleId: FieldRef<"RolePermission", 'Int'>
|
|
readonly permissionId: FieldRef<"RolePermission", 'Int'>
|
|
}
|
|
|
|
|
|
// Custom InputTypes
|
|
/**
|
|
* RolePermission findUnique
|
|
*/
|
|
export type RolePermissionFindUniqueArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the RolePermission
|
|
*/
|
|
select?: RolePermissionSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: RolePermissionInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which RolePermission to fetch.
|
|
*/
|
|
where: RolePermissionWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* RolePermission findUniqueOrThrow
|
|
*/
|
|
export type RolePermissionFindUniqueOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the RolePermission
|
|
*/
|
|
select?: RolePermissionSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: RolePermissionInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which RolePermission to fetch.
|
|
*/
|
|
where: RolePermissionWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* RolePermission findFirst
|
|
*/
|
|
export type RolePermissionFindFirstArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the RolePermission
|
|
*/
|
|
select?: RolePermissionSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: RolePermissionInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which RolePermission to fetch.
|
|
*/
|
|
where?: RolePermissionWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of RolePermissions to fetch.
|
|
*/
|
|
orderBy?: RolePermissionOrderByWithRelationInput | RolePermissionOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for searching for RolePermissions.
|
|
*/
|
|
cursor?: RolePermissionWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` RolePermissions from the position of the cursor.
|
|
*/
|
|
take?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Skip the first `n` RolePermissions.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
*
|
|
* Filter by unique combinations of RolePermissions.
|
|
*/
|
|
distinct?: RolePermissionScalarFieldEnum | RolePermissionScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* RolePermission findFirstOrThrow
|
|
*/
|
|
export type RolePermissionFindFirstOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the RolePermission
|
|
*/
|
|
select?: RolePermissionSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: RolePermissionInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which RolePermission to fetch.
|
|
*/
|
|
where?: RolePermissionWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of RolePermissions to fetch.
|
|
*/
|
|
orderBy?: RolePermissionOrderByWithRelationInput | RolePermissionOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for searching for RolePermissions.
|
|
*/
|
|
cursor?: RolePermissionWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` RolePermissions from the position of the cursor.
|
|
*/
|
|
take?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Skip the first `n` RolePermissions.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
*
|
|
* Filter by unique combinations of RolePermissions.
|
|
*/
|
|
distinct?: RolePermissionScalarFieldEnum | RolePermissionScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* RolePermission findMany
|
|
*/
|
|
export type RolePermissionFindManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the RolePermission
|
|
*/
|
|
select?: RolePermissionSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: RolePermissionInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which RolePermissions to fetch.
|
|
*/
|
|
where?: RolePermissionWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of RolePermissions to fetch.
|
|
*/
|
|
orderBy?: RolePermissionOrderByWithRelationInput | RolePermissionOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for listing RolePermissions.
|
|
*/
|
|
cursor?: RolePermissionWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` RolePermissions from the position of the cursor.
|
|
*/
|
|
take?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Skip the first `n` RolePermissions.
|
|
*/
|
|
skip?: number
|
|
distinct?: RolePermissionScalarFieldEnum | RolePermissionScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* RolePermission create
|
|
*/
|
|
export type RolePermissionCreateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the RolePermission
|
|
*/
|
|
select?: RolePermissionSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: RolePermissionInclude<ExtArgs> | null
|
|
/**
|
|
* The data needed to create a RolePermission.
|
|
*/
|
|
data: XOR<RolePermissionCreateInput, RolePermissionUncheckedCreateInput>
|
|
}
|
|
|
|
/**
|
|
* RolePermission createMany
|
|
*/
|
|
export type RolePermissionCreateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* The data used to create many RolePermissions.
|
|
*/
|
|
data: RolePermissionCreateManyInput | RolePermissionCreateManyInput[]
|
|
skipDuplicates?: boolean
|
|
}
|
|
|
|
/**
|
|
* RolePermission update
|
|
*/
|
|
export type RolePermissionUpdateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the RolePermission
|
|
*/
|
|
select?: RolePermissionSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: RolePermissionInclude<ExtArgs> | null
|
|
/**
|
|
* The data needed to update a RolePermission.
|
|
*/
|
|
data: XOR<RolePermissionUpdateInput, RolePermissionUncheckedUpdateInput>
|
|
/**
|
|
* Choose, which RolePermission to update.
|
|
*/
|
|
where: RolePermissionWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* RolePermission updateMany
|
|
*/
|
|
export type RolePermissionUpdateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* The data used to update RolePermissions.
|
|
*/
|
|
data: XOR<RolePermissionUpdateManyMutationInput, RolePermissionUncheckedUpdateManyInput>
|
|
/**
|
|
* Filter which RolePermissions to update
|
|
*/
|
|
where?: RolePermissionWhereInput
|
|
}
|
|
|
|
/**
|
|
* RolePermission upsert
|
|
*/
|
|
export type RolePermissionUpsertArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the RolePermission
|
|
*/
|
|
select?: RolePermissionSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: RolePermissionInclude<ExtArgs> | null
|
|
/**
|
|
* The filter to search for the RolePermission to update in case it exists.
|
|
*/
|
|
where: RolePermissionWhereUniqueInput
|
|
/**
|
|
* In case the RolePermission found by the `where` argument doesn't exist, create a new RolePermission with this data.
|
|
*/
|
|
create: XOR<RolePermissionCreateInput, RolePermissionUncheckedCreateInput>
|
|
/**
|
|
* In case the RolePermission was found with the provided `where` argument, update it with this data.
|
|
*/
|
|
update: XOR<RolePermissionUpdateInput, RolePermissionUncheckedUpdateInput>
|
|
}
|
|
|
|
/**
|
|
* RolePermission delete
|
|
*/
|
|
export type RolePermissionDeleteArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the RolePermission
|
|
*/
|
|
select?: RolePermissionSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: RolePermissionInclude<ExtArgs> | null
|
|
/**
|
|
* Filter which RolePermission to delete.
|
|
*/
|
|
where: RolePermissionWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* RolePermission deleteMany
|
|
*/
|
|
export type RolePermissionDeleteManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Filter which RolePermissions to delete
|
|
*/
|
|
where?: RolePermissionWhereInput
|
|
}
|
|
|
|
/**
|
|
* RolePermission without action
|
|
*/
|
|
export type RolePermissionDefaultArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the RolePermission
|
|
*/
|
|
select?: RolePermissionSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: RolePermissionInclude<ExtArgs> | null
|
|
}
|
|
|
|
|
|
/**
|
|
* Model UserRole
|
|
*/
|
|
|
|
export type AggregateUserRole = {
|
|
_count: UserRoleCountAggregateOutputType | null
|
|
_avg: UserRoleAvgAggregateOutputType | null
|
|
_sum: UserRoleSumAggregateOutputType | null
|
|
_min: UserRoleMinAggregateOutputType | null
|
|
_max: UserRoleMaxAggregateOutputType | null
|
|
}
|
|
|
|
export type UserRoleAvgAggregateOutputType = {
|
|
userId: number | null
|
|
roleId: number | null
|
|
}
|
|
|
|
export type UserRoleSumAggregateOutputType = {
|
|
userId: number | null
|
|
roleId: number | null
|
|
}
|
|
|
|
export type UserRoleMinAggregateOutputType = {
|
|
userId: number | null
|
|
roleId: number | null
|
|
}
|
|
|
|
export type UserRoleMaxAggregateOutputType = {
|
|
userId: number | null
|
|
roleId: number | null
|
|
}
|
|
|
|
export type UserRoleCountAggregateOutputType = {
|
|
userId: number
|
|
roleId: number
|
|
_all: number
|
|
}
|
|
|
|
|
|
export type UserRoleAvgAggregateInputType = {
|
|
userId?: true
|
|
roleId?: true
|
|
}
|
|
|
|
export type UserRoleSumAggregateInputType = {
|
|
userId?: true
|
|
roleId?: true
|
|
}
|
|
|
|
export type UserRoleMinAggregateInputType = {
|
|
userId?: true
|
|
roleId?: true
|
|
}
|
|
|
|
export type UserRoleMaxAggregateInputType = {
|
|
userId?: true
|
|
roleId?: true
|
|
}
|
|
|
|
export type UserRoleCountAggregateInputType = {
|
|
userId?: true
|
|
roleId?: true
|
|
_all?: true
|
|
}
|
|
|
|
export type UserRoleAggregateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Filter which UserRole to aggregate.
|
|
*/
|
|
where?: UserRoleWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of UserRoles to fetch.
|
|
*/
|
|
orderBy?: UserRoleOrderByWithRelationInput | UserRoleOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the start position
|
|
*/
|
|
cursor?: UserRoleWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` UserRoles from the position of the cursor.
|
|
*/
|
|
take?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Skip the first `n` UserRoles.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Count returned UserRoles
|
|
**/
|
|
_count?: true | UserRoleCountAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to average
|
|
**/
|
|
_avg?: UserRoleAvgAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to sum
|
|
**/
|
|
_sum?: UserRoleSumAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to find the minimum value
|
|
**/
|
|
_min?: UserRoleMinAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to find the maximum value
|
|
**/
|
|
_max?: UserRoleMaxAggregateInputType
|
|
}
|
|
|
|
export type GetUserRoleAggregateType<T extends UserRoleAggregateArgs> = {
|
|
[P in keyof T & keyof AggregateUserRole]: P extends '_count' | 'count'
|
|
? T[P] extends true
|
|
? number
|
|
: GetScalarType<T[P], AggregateUserRole[P]>
|
|
: GetScalarType<T[P], AggregateUserRole[P]>
|
|
}
|
|
|
|
|
|
|
|
|
|
export type UserRoleGroupByArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
where?: UserRoleWhereInput
|
|
orderBy?: UserRoleOrderByWithAggregationInput | UserRoleOrderByWithAggregationInput[]
|
|
by: UserRoleScalarFieldEnum[] | UserRoleScalarFieldEnum
|
|
having?: UserRoleScalarWhereWithAggregatesInput
|
|
take?: number
|
|
skip?: number
|
|
_count?: UserRoleCountAggregateInputType | true
|
|
_avg?: UserRoleAvgAggregateInputType
|
|
_sum?: UserRoleSumAggregateInputType
|
|
_min?: UserRoleMinAggregateInputType
|
|
_max?: UserRoleMaxAggregateInputType
|
|
}
|
|
|
|
export type UserRoleGroupByOutputType = {
|
|
userId: number
|
|
roleId: number
|
|
_count: UserRoleCountAggregateOutputType | null
|
|
_avg: UserRoleAvgAggregateOutputType | null
|
|
_sum: UserRoleSumAggregateOutputType | null
|
|
_min: UserRoleMinAggregateOutputType | null
|
|
_max: UserRoleMaxAggregateOutputType | null
|
|
}
|
|
|
|
type GetUserRoleGroupByPayload<T extends UserRoleGroupByArgs> = Prisma.PrismaPromise<
|
|
Array<
|
|
PickEnumerable<UserRoleGroupByOutputType, T['by']> &
|
|
{
|
|
[P in ((keyof T) & (keyof UserRoleGroupByOutputType))]: P extends '_count'
|
|
? T[P] extends boolean
|
|
? number
|
|
: GetScalarType<T[P], UserRoleGroupByOutputType[P]>
|
|
: GetScalarType<T[P], UserRoleGroupByOutputType[P]>
|
|
}
|
|
>
|
|
>
|
|
|
|
|
|
export type UserRoleSelect<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
|
|
userId?: boolean
|
|
roleId?: boolean
|
|
user?: boolean | UserDefaultArgs<ExtArgs>
|
|
role?: boolean | RoleDefaultArgs<ExtArgs>
|
|
}, ExtArgs["result"]["userRole"]>
|
|
|
|
|
|
export type UserRoleSelectScalar = {
|
|
userId?: boolean
|
|
roleId?: boolean
|
|
}
|
|
|
|
export type UserRoleInclude<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
user?: boolean | UserDefaultArgs<ExtArgs>
|
|
role?: boolean | RoleDefaultArgs<ExtArgs>
|
|
}
|
|
|
|
export type $UserRolePayload<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
name: "UserRole"
|
|
objects: {
|
|
user: Prisma.$UserPayload<ExtArgs>
|
|
role: Prisma.$RolePayload<ExtArgs>
|
|
}
|
|
scalars: $Extensions.GetPayloadResult<{
|
|
userId: number
|
|
roleId: number
|
|
}, ExtArgs["result"]["userRole"]>
|
|
composites: {}
|
|
}
|
|
|
|
type UserRoleGetPayload<S extends boolean | null | undefined | UserRoleDefaultArgs> = $Result.GetResult<Prisma.$UserRolePayload, S>
|
|
|
|
type UserRoleCountArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> =
|
|
Omit<UserRoleFindManyArgs, 'select' | 'include' | 'distinct'> & {
|
|
select?: UserRoleCountAggregateInputType | true
|
|
}
|
|
|
|
export interface UserRoleDelegate<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> {
|
|
[K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['UserRole'], meta: { name: 'UserRole' } }
|
|
/**
|
|
* Find zero or one UserRole that matches the filter.
|
|
* @param {UserRoleFindUniqueArgs} args - Arguments to find a UserRole
|
|
* @example
|
|
* // Get one UserRole
|
|
* const userRole = await prisma.userRole.findUnique({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findUnique<T extends UserRoleFindUniqueArgs>(args: SelectSubset<T, UserRoleFindUniqueArgs<ExtArgs>>): Prisma__UserRoleClient<$Result.GetResult<Prisma.$UserRolePayload<ExtArgs>, T, "findUnique"> | null, null, ExtArgs>
|
|
|
|
/**
|
|
* Find one UserRole that matches the filter or throw an error with `error.code='P2025'`
|
|
* if no matches were found.
|
|
* @param {UserRoleFindUniqueOrThrowArgs} args - Arguments to find a UserRole
|
|
* @example
|
|
* // Get one UserRole
|
|
* const userRole = await prisma.userRole.findUniqueOrThrow({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findUniqueOrThrow<T extends UserRoleFindUniqueOrThrowArgs>(args: SelectSubset<T, UserRoleFindUniqueOrThrowArgs<ExtArgs>>): Prisma__UserRoleClient<$Result.GetResult<Prisma.$UserRolePayload<ExtArgs>, T, "findUniqueOrThrow">, never, ExtArgs>
|
|
|
|
/**
|
|
* Find the first UserRole that matches the filter.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {UserRoleFindFirstArgs} args - Arguments to find a UserRole
|
|
* @example
|
|
* // Get one UserRole
|
|
* const userRole = await prisma.userRole.findFirst({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findFirst<T extends UserRoleFindFirstArgs>(args?: SelectSubset<T, UserRoleFindFirstArgs<ExtArgs>>): Prisma__UserRoleClient<$Result.GetResult<Prisma.$UserRolePayload<ExtArgs>, T, "findFirst"> | null, null, ExtArgs>
|
|
|
|
/**
|
|
* Find the first UserRole that matches the filter or
|
|
* throw `PrismaKnownClientError` with `P2025` code if no matches were found.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {UserRoleFindFirstOrThrowArgs} args - Arguments to find a UserRole
|
|
* @example
|
|
* // Get one UserRole
|
|
* const userRole = await prisma.userRole.findFirstOrThrow({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findFirstOrThrow<T extends UserRoleFindFirstOrThrowArgs>(args?: SelectSubset<T, UserRoleFindFirstOrThrowArgs<ExtArgs>>): Prisma__UserRoleClient<$Result.GetResult<Prisma.$UserRolePayload<ExtArgs>, T, "findFirstOrThrow">, never, ExtArgs>
|
|
|
|
/**
|
|
* Find zero or more UserRoles that matches the filter.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {UserRoleFindManyArgs} args - Arguments to filter and select certain fields only.
|
|
* @example
|
|
* // Get all UserRoles
|
|
* const userRoles = await prisma.userRole.findMany()
|
|
*
|
|
* // Get first 10 UserRoles
|
|
* const userRoles = await prisma.userRole.findMany({ take: 10 })
|
|
*
|
|
* // Only select the `userId`
|
|
* const userRoleWithUserIdOnly = await prisma.userRole.findMany({ select: { userId: true } })
|
|
*
|
|
*/
|
|
findMany<T extends UserRoleFindManyArgs>(args?: SelectSubset<T, UserRoleFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$UserRolePayload<ExtArgs>, T, "findMany">>
|
|
|
|
/**
|
|
* Create a UserRole.
|
|
* @param {UserRoleCreateArgs} args - Arguments to create a UserRole.
|
|
* @example
|
|
* // Create one UserRole
|
|
* const UserRole = await prisma.userRole.create({
|
|
* data: {
|
|
* // ... data to create a UserRole
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
create<T extends UserRoleCreateArgs>(args: SelectSubset<T, UserRoleCreateArgs<ExtArgs>>): Prisma__UserRoleClient<$Result.GetResult<Prisma.$UserRolePayload<ExtArgs>, T, "create">, never, ExtArgs>
|
|
|
|
/**
|
|
* Create many UserRoles.
|
|
* @param {UserRoleCreateManyArgs} args - Arguments to create many UserRoles.
|
|
* @example
|
|
* // Create many UserRoles
|
|
* const userRole = await prisma.userRole.createMany({
|
|
* data: [
|
|
* // ... provide data here
|
|
* ]
|
|
* })
|
|
*
|
|
*/
|
|
createMany<T extends UserRoleCreateManyArgs>(args?: SelectSubset<T, UserRoleCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
|
|
|
|
/**
|
|
* Delete a UserRole.
|
|
* @param {UserRoleDeleteArgs} args - Arguments to delete one UserRole.
|
|
* @example
|
|
* // Delete one UserRole
|
|
* const UserRole = await prisma.userRole.delete({
|
|
* where: {
|
|
* // ... filter to delete one UserRole
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
delete<T extends UserRoleDeleteArgs>(args: SelectSubset<T, UserRoleDeleteArgs<ExtArgs>>): Prisma__UserRoleClient<$Result.GetResult<Prisma.$UserRolePayload<ExtArgs>, T, "delete">, never, ExtArgs>
|
|
|
|
/**
|
|
* Update one UserRole.
|
|
* @param {UserRoleUpdateArgs} args - Arguments to update one UserRole.
|
|
* @example
|
|
* // Update one UserRole
|
|
* const userRole = await prisma.userRole.update({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* },
|
|
* data: {
|
|
* // ... provide data here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
update<T extends UserRoleUpdateArgs>(args: SelectSubset<T, UserRoleUpdateArgs<ExtArgs>>): Prisma__UserRoleClient<$Result.GetResult<Prisma.$UserRolePayload<ExtArgs>, T, "update">, never, ExtArgs>
|
|
|
|
/**
|
|
* Delete zero or more UserRoles.
|
|
* @param {UserRoleDeleteManyArgs} args - Arguments to filter UserRoles to delete.
|
|
* @example
|
|
* // Delete a few UserRoles
|
|
* const { count } = await prisma.userRole.deleteMany({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
deleteMany<T extends UserRoleDeleteManyArgs>(args?: SelectSubset<T, UserRoleDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
|
|
|
|
/**
|
|
* Update zero or more UserRoles.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {UserRoleUpdateManyArgs} args - Arguments to update one or more rows.
|
|
* @example
|
|
* // Update many UserRoles
|
|
* const userRole = await prisma.userRole.updateMany({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* },
|
|
* data: {
|
|
* // ... provide data here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
updateMany<T extends UserRoleUpdateManyArgs>(args: SelectSubset<T, UserRoleUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
|
|
|
|
/**
|
|
* Create or update one UserRole.
|
|
* @param {UserRoleUpsertArgs} args - Arguments to update or create a UserRole.
|
|
* @example
|
|
* // Update or create a UserRole
|
|
* const userRole = await prisma.userRole.upsert({
|
|
* create: {
|
|
* // ... data to create a UserRole
|
|
* },
|
|
* update: {
|
|
* // ... in case it already exists, update
|
|
* },
|
|
* where: {
|
|
* // ... the filter for the UserRole we want to update
|
|
* }
|
|
* })
|
|
*/
|
|
upsert<T extends UserRoleUpsertArgs>(args: SelectSubset<T, UserRoleUpsertArgs<ExtArgs>>): Prisma__UserRoleClient<$Result.GetResult<Prisma.$UserRolePayload<ExtArgs>, T, "upsert">, never, ExtArgs>
|
|
|
|
|
|
/**
|
|
* Count the number of UserRoles.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {UserRoleCountArgs} args - Arguments to filter UserRoles to count.
|
|
* @example
|
|
* // Count the number of UserRoles
|
|
* const count = await prisma.userRole.count({
|
|
* where: {
|
|
* // ... the filter for the UserRoles we want to count
|
|
* }
|
|
* })
|
|
**/
|
|
count<T extends UserRoleCountArgs>(
|
|
args?: Subset<T, UserRoleCountArgs>,
|
|
): Prisma.PrismaPromise<
|
|
T extends $Utils.Record<'select', any>
|
|
? T['select'] extends true
|
|
? number
|
|
: GetScalarType<T['select'], UserRoleCountAggregateOutputType>
|
|
: number
|
|
>
|
|
|
|
/**
|
|
* Allows you to perform aggregations operations on a UserRole.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {UserRoleAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
|
|
* @example
|
|
* // Ordered by age ascending
|
|
* // Where email contains prisma.io
|
|
* // Limited to the 10 users
|
|
* const aggregations = await prisma.user.aggregate({
|
|
* _avg: {
|
|
* age: true,
|
|
* },
|
|
* where: {
|
|
* email: {
|
|
* contains: "prisma.io",
|
|
* },
|
|
* },
|
|
* orderBy: {
|
|
* age: "asc",
|
|
* },
|
|
* take: 10,
|
|
* })
|
|
**/
|
|
aggregate<T extends UserRoleAggregateArgs>(args: Subset<T, UserRoleAggregateArgs>): Prisma.PrismaPromise<GetUserRoleAggregateType<T>>
|
|
|
|
/**
|
|
* Group by UserRole.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {UserRoleGroupByArgs} args - Group by arguments.
|
|
* @example
|
|
* // Group by city, order by createdAt, get count
|
|
* const result = await prisma.user.groupBy({
|
|
* by: ['city', 'createdAt'],
|
|
* orderBy: {
|
|
* createdAt: true
|
|
* },
|
|
* _count: {
|
|
* _all: true
|
|
* },
|
|
* })
|
|
*
|
|
**/
|
|
groupBy<
|
|
T extends UserRoleGroupByArgs,
|
|
HasSelectOrTake extends Or<
|
|
Extends<'skip', Keys<T>>,
|
|
Extends<'take', Keys<T>>
|
|
>,
|
|
OrderByArg extends True extends HasSelectOrTake
|
|
? { orderBy: UserRoleGroupByArgs['orderBy'] }
|
|
: { orderBy?: UserRoleGroupByArgs['orderBy'] },
|
|
OrderFields extends ExcludeUnderscoreKeys<Keys<MaybeTupleToUnion<T['orderBy']>>>,
|
|
ByFields extends MaybeTupleToUnion<T['by']>,
|
|
ByValid extends Has<ByFields, OrderFields>,
|
|
HavingFields extends GetHavingFields<T['having']>,
|
|
HavingValid extends Has<ByFields, HavingFields>,
|
|
ByEmpty extends T['by'] extends never[] ? True : False,
|
|
InputErrors extends ByEmpty extends True
|
|
? `Error: "by" must not be empty.`
|
|
: HavingValid extends False
|
|
? {
|
|
[P in HavingFields]: P extends ByFields
|
|
? never
|
|
: P extends string
|
|
? `Error: Field "${P}" used in "having" needs to be provided in "by".`
|
|
: [
|
|
Error,
|
|
'Field ',
|
|
P,
|
|
` in "having" needs to be provided in "by"`,
|
|
]
|
|
}[HavingFields]
|
|
: 'take' extends Keys<T>
|
|
? 'orderBy' extends Keys<T>
|
|
? ByValid extends True
|
|
? {}
|
|
: {
|
|
[P in OrderFields]: P extends ByFields
|
|
? never
|
|
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
|
|
}[OrderFields]
|
|
: 'Error: If you provide "take", you also need to provide "orderBy"'
|
|
: 'skip' extends Keys<T>
|
|
? 'orderBy' extends Keys<T>
|
|
? ByValid extends True
|
|
? {}
|
|
: {
|
|
[P in OrderFields]: P extends ByFields
|
|
? never
|
|
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
|
|
}[OrderFields]
|
|
: 'Error: If you provide "skip", you also need to provide "orderBy"'
|
|
: ByValid extends True
|
|
? {}
|
|
: {
|
|
[P in OrderFields]: P extends ByFields
|
|
? never
|
|
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
|
|
}[OrderFields]
|
|
>(args: SubsetIntersection<T, UserRoleGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetUserRoleGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
|
|
/**
|
|
* Fields of the UserRole model
|
|
*/
|
|
readonly fields: UserRoleFieldRefs;
|
|
}
|
|
|
|
/**
|
|
* The delegate class that acts as a "Promise-like" for UserRole.
|
|
* Why is this prefixed with `Prisma__`?
|
|
* Because we want to prevent naming conflicts as mentioned in
|
|
* https://github.com/prisma/prisma-client-js/issues/707
|
|
*/
|
|
export interface Prisma__UserRoleClient<T, Null = never, ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> extends Prisma.PrismaPromise<T> {
|
|
readonly [Symbol.toStringTag]: "PrismaPromise"
|
|
user<T extends UserDefaultArgs<ExtArgs> = {}>(args?: Subset<T, UserDefaultArgs<ExtArgs>>): Prisma__UserClient<$Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "findUniqueOrThrow"> | Null, Null, ExtArgs>
|
|
role<T extends RoleDefaultArgs<ExtArgs> = {}>(args?: Subset<T, RoleDefaultArgs<ExtArgs>>): Prisma__RoleClient<$Result.GetResult<Prisma.$RolePayload<ExtArgs>, T, "findUniqueOrThrow"> | Null, Null, ExtArgs>
|
|
/**
|
|
* Attaches callbacks for the resolution and/or rejection of the Promise.
|
|
* @param onfulfilled The callback to execute when the Promise is resolved.
|
|
* @param onrejected The callback to execute when the Promise is rejected.
|
|
* @returns A Promise for the completion of which ever callback is executed.
|
|
*/
|
|
then<TResult1 = T, TResult2 = never>(onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined | null): $Utils.JsPromise<TResult1 | TResult2>
|
|
/**
|
|
* Attaches a callback for only the rejection of the Promise.
|
|
* @param onrejected The callback to execute when the Promise is rejected.
|
|
* @returns A Promise for the completion of the callback.
|
|
*/
|
|
catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): $Utils.JsPromise<T | TResult>
|
|
/**
|
|
* Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
|
|
* resolved value cannot be modified from the callback.
|
|
* @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
|
|
* @returns A Promise for the completion of the callback.
|
|
*/
|
|
finally(onfinally?: (() => void) | undefined | null): $Utils.JsPromise<T>
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
* Fields of the UserRole model
|
|
*/
|
|
interface UserRoleFieldRefs {
|
|
readonly userId: FieldRef<"UserRole", 'Int'>
|
|
readonly roleId: FieldRef<"UserRole", 'Int'>
|
|
}
|
|
|
|
|
|
// Custom InputTypes
|
|
/**
|
|
* UserRole findUnique
|
|
*/
|
|
export type UserRoleFindUniqueArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the UserRole
|
|
*/
|
|
select?: UserRoleSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: UserRoleInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which UserRole to fetch.
|
|
*/
|
|
where: UserRoleWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* UserRole findUniqueOrThrow
|
|
*/
|
|
export type UserRoleFindUniqueOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the UserRole
|
|
*/
|
|
select?: UserRoleSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: UserRoleInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which UserRole to fetch.
|
|
*/
|
|
where: UserRoleWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* UserRole findFirst
|
|
*/
|
|
export type UserRoleFindFirstArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the UserRole
|
|
*/
|
|
select?: UserRoleSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: UserRoleInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which UserRole to fetch.
|
|
*/
|
|
where?: UserRoleWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of UserRoles to fetch.
|
|
*/
|
|
orderBy?: UserRoleOrderByWithRelationInput | UserRoleOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for searching for UserRoles.
|
|
*/
|
|
cursor?: UserRoleWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` UserRoles from the position of the cursor.
|
|
*/
|
|
take?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Skip the first `n` UserRoles.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
*
|
|
* Filter by unique combinations of UserRoles.
|
|
*/
|
|
distinct?: UserRoleScalarFieldEnum | UserRoleScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* UserRole findFirstOrThrow
|
|
*/
|
|
export type UserRoleFindFirstOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the UserRole
|
|
*/
|
|
select?: UserRoleSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: UserRoleInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which UserRole to fetch.
|
|
*/
|
|
where?: UserRoleWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of UserRoles to fetch.
|
|
*/
|
|
orderBy?: UserRoleOrderByWithRelationInput | UserRoleOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for searching for UserRoles.
|
|
*/
|
|
cursor?: UserRoleWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` UserRoles from the position of the cursor.
|
|
*/
|
|
take?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Skip the first `n` UserRoles.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
*
|
|
* Filter by unique combinations of UserRoles.
|
|
*/
|
|
distinct?: UserRoleScalarFieldEnum | UserRoleScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* UserRole findMany
|
|
*/
|
|
export type UserRoleFindManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the UserRole
|
|
*/
|
|
select?: UserRoleSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: UserRoleInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which UserRoles to fetch.
|
|
*/
|
|
where?: UserRoleWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of UserRoles to fetch.
|
|
*/
|
|
orderBy?: UserRoleOrderByWithRelationInput | UserRoleOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for listing UserRoles.
|
|
*/
|
|
cursor?: UserRoleWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` UserRoles from the position of the cursor.
|
|
*/
|
|
take?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Skip the first `n` UserRoles.
|
|
*/
|
|
skip?: number
|
|
distinct?: UserRoleScalarFieldEnum | UserRoleScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* UserRole create
|
|
*/
|
|
export type UserRoleCreateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the UserRole
|
|
*/
|
|
select?: UserRoleSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: UserRoleInclude<ExtArgs> | null
|
|
/**
|
|
* The data needed to create a UserRole.
|
|
*/
|
|
data: XOR<UserRoleCreateInput, UserRoleUncheckedCreateInput>
|
|
}
|
|
|
|
/**
|
|
* UserRole createMany
|
|
*/
|
|
export type UserRoleCreateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* The data used to create many UserRoles.
|
|
*/
|
|
data: UserRoleCreateManyInput | UserRoleCreateManyInput[]
|
|
skipDuplicates?: boolean
|
|
}
|
|
|
|
/**
|
|
* UserRole update
|
|
*/
|
|
export type UserRoleUpdateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the UserRole
|
|
*/
|
|
select?: UserRoleSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: UserRoleInclude<ExtArgs> | null
|
|
/**
|
|
* The data needed to update a UserRole.
|
|
*/
|
|
data: XOR<UserRoleUpdateInput, UserRoleUncheckedUpdateInput>
|
|
/**
|
|
* Choose, which UserRole to update.
|
|
*/
|
|
where: UserRoleWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* UserRole updateMany
|
|
*/
|
|
export type UserRoleUpdateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* The data used to update UserRoles.
|
|
*/
|
|
data: XOR<UserRoleUpdateManyMutationInput, UserRoleUncheckedUpdateManyInput>
|
|
/**
|
|
* Filter which UserRoles to update
|
|
*/
|
|
where?: UserRoleWhereInput
|
|
}
|
|
|
|
/**
|
|
* UserRole upsert
|
|
*/
|
|
export type UserRoleUpsertArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the UserRole
|
|
*/
|
|
select?: UserRoleSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: UserRoleInclude<ExtArgs> | null
|
|
/**
|
|
* The filter to search for the UserRole to update in case it exists.
|
|
*/
|
|
where: UserRoleWhereUniqueInput
|
|
/**
|
|
* In case the UserRole found by the `where` argument doesn't exist, create a new UserRole with this data.
|
|
*/
|
|
create: XOR<UserRoleCreateInput, UserRoleUncheckedCreateInput>
|
|
/**
|
|
* In case the UserRole was found with the provided `where` argument, update it with this data.
|
|
*/
|
|
update: XOR<UserRoleUpdateInput, UserRoleUncheckedUpdateInput>
|
|
}
|
|
|
|
/**
|
|
* UserRole delete
|
|
*/
|
|
export type UserRoleDeleteArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the UserRole
|
|
*/
|
|
select?: UserRoleSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: UserRoleInclude<ExtArgs> | null
|
|
/**
|
|
* Filter which UserRole to delete.
|
|
*/
|
|
where: UserRoleWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* UserRole deleteMany
|
|
*/
|
|
export type UserRoleDeleteManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Filter which UserRoles to delete
|
|
*/
|
|
where?: UserRoleWhereInput
|
|
}
|
|
|
|
/**
|
|
* UserRole without action
|
|
*/
|
|
export type UserRoleDefaultArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the UserRole
|
|
*/
|
|
select?: UserRoleSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: UserRoleInclude<ExtArgs> | null
|
|
}
|
|
|
|
|
|
/**
|
|
* Model Customer
|
|
*/
|
|
|
|
export type AggregateCustomer = {
|
|
_count: CustomerCountAggregateOutputType | null
|
|
_avg: CustomerAvgAggregateOutputType | null
|
|
_sum: CustomerSumAggregateOutputType | null
|
|
_min: CustomerMinAggregateOutputType | null
|
|
_max: CustomerMaxAggregateOutputType | null
|
|
}
|
|
|
|
export type CustomerAvgAggregateOutputType = {
|
|
id: number | null
|
|
}
|
|
|
|
export type CustomerSumAggregateOutputType = {
|
|
id: number | null
|
|
}
|
|
|
|
export type CustomerMinAggregateOutputType = {
|
|
id: number | null
|
|
customerNumber: string | null
|
|
type: $Enums.CustomerType | null
|
|
salutation: string | null
|
|
firstName: string | null
|
|
lastName: string | null
|
|
companyName: string | null
|
|
foundingDate: Date | null
|
|
birthDate: Date | null
|
|
birthPlace: string | null
|
|
email: string | null
|
|
phone: string | null
|
|
mobile: string | null
|
|
taxNumber: string | null
|
|
businessRegistrationPath: string | null
|
|
commercialRegisterPath: string | null
|
|
commercialRegisterNumber: string | null
|
|
privacyPolicyPath: string | null
|
|
notes: string | null
|
|
portalEnabled: boolean | null
|
|
portalEmail: string | null
|
|
portalPasswordHash: string | null
|
|
portalPasswordEncrypted: string | null
|
|
portalLastLogin: Date | null
|
|
createdAt: Date | null
|
|
updatedAt: Date | null
|
|
}
|
|
|
|
export type CustomerMaxAggregateOutputType = {
|
|
id: number | null
|
|
customerNumber: string | null
|
|
type: $Enums.CustomerType | null
|
|
salutation: string | null
|
|
firstName: string | null
|
|
lastName: string | null
|
|
companyName: string | null
|
|
foundingDate: Date | null
|
|
birthDate: Date | null
|
|
birthPlace: string | null
|
|
email: string | null
|
|
phone: string | null
|
|
mobile: string | null
|
|
taxNumber: string | null
|
|
businessRegistrationPath: string | null
|
|
commercialRegisterPath: string | null
|
|
commercialRegisterNumber: string | null
|
|
privacyPolicyPath: string | null
|
|
notes: string | null
|
|
portalEnabled: boolean | null
|
|
portalEmail: string | null
|
|
portalPasswordHash: string | null
|
|
portalPasswordEncrypted: string | null
|
|
portalLastLogin: Date | null
|
|
createdAt: Date | null
|
|
updatedAt: Date | null
|
|
}
|
|
|
|
export type CustomerCountAggregateOutputType = {
|
|
id: number
|
|
customerNumber: number
|
|
type: number
|
|
salutation: number
|
|
firstName: number
|
|
lastName: number
|
|
companyName: number
|
|
foundingDate: number
|
|
birthDate: number
|
|
birthPlace: number
|
|
email: number
|
|
phone: number
|
|
mobile: number
|
|
taxNumber: number
|
|
businessRegistrationPath: number
|
|
commercialRegisterPath: number
|
|
commercialRegisterNumber: number
|
|
privacyPolicyPath: number
|
|
notes: number
|
|
portalEnabled: number
|
|
portalEmail: number
|
|
portalPasswordHash: number
|
|
portalPasswordEncrypted: number
|
|
portalLastLogin: number
|
|
createdAt: number
|
|
updatedAt: number
|
|
_all: number
|
|
}
|
|
|
|
|
|
export type CustomerAvgAggregateInputType = {
|
|
id?: true
|
|
}
|
|
|
|
export type CustomerSumAggregateInputType = {
|
|
id?: true
|
|
}
|
|
|
|
export type CustomerMinAggregateInputType = {
|
|
id?: true
|
|
customerNumber?: true
|
|
type?: true
|
|
salutation?: true
|
|
firstName?: true
|
|
lastName?: true
|
|
companyName?: true
|
|
foundingDate?: true
|
|
birthDate?: true
|
|
birthPlace?: true
|
|
email?: true
|
|
phone?: true
|
|
mobile?: true
|
|
taxNumber?: true
|
|
businessRegistrationPath?: true
|
|
commercialRegisterPath?: true
|
|
commercialRegisterNumber?: true
|
|
privacyPolicyPath?: true
|
|
notes?: true
|
|
portalEnabled?: true
|
|
portalEmail?: true
|
|
portalPasswordHash?: true
|
|
portalPasswordEncrypted?: true
|
|
portalLastLogin?: true
|
|
createdAt?: true
|
|
updatedAt?: true
|
|
}
|
|
|
|
export type CustomerMaxAggregateInputType = {
|
|
id?: true
|
|
customerNumber?: true
|
|
type?: true
|
|
salutation?: true
|
|
firstName?: true
|
|
lastName?: true
|
|
companyName?: true
|
|
foundingDate?: true
|
|
birthDate?: true
|
|
birthPlace?: true
|
|
email?: true
|
|
phone?: true
|
|
mobile?: true
|
|
taxNumber?: true
|
|
businessRegistrationPath?: true
|
|
commercialRegisterPath?: true
|
|
commercialRegisterNumber?: true
|
|
privacyPolicyPath?: true
|
|
notes?: true
|
|
portalEnabled?: true
|
|
portalEmail?: true
|
|
portalPasswordHash?: true
|
|
portalPasswordEncrypted?: true
|
|
portalLastLogin?: true
|
|
createdAt?: true
|
|
updatedAt?: true
|
|
}
|
|
|
|
export type CustomerCountAggregateInputType = {
|
|
id?: true
|
|
customerNumber?: true
|
|
type?: true
|
|
salutation?: true
|
|
firstName?: true
|
|
lastName?: true
|
|
companyName?: true
|
|
foundingDate?: true
|
|
birthDate?: true
|
|
birthPlace?: true
|
|
email?: true
|
|
phone?: true
|
|
mobile?: true
|
|
taxNumber?: true
|
|
businessRegistrationPath?: true
|
|
commercialRegisterPath?: true
|
|
commercialRegisterNumber?: true
|
|
privacyPolicyPath?: true
|
|
notes?: true
|
|
portalEnabled?: true
|
|
portalEmail?: true
|
|
portalPasswordHash?: true
|
|
portalPasswordEncrypted?: true
|
|
portalLastLogin?: true
|
|
createdAt?: true
|
|
updatedAt?: true
|
|
_all?: true
|
|
}
|
|
|
|
export type CustomerAggregateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Filter which Customer to aggregate.
|
|
*/
|
|
where?: CustomerWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of Customers to fetch.
|
|
*/
|
|
orderBy?: CustomerOrderByWithRelationInput | CustomerOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the start position
|
|
*/
|
|
cursor?: CustomerWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` Customers from the position of the cursor.
|
|
*/
|
|
take?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Skip the first `n` Customers.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Count returned Customers
|
|
**/
|
|
_count?: true | CustomerCountAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to average
|
|
**/
|
|
_avg?: CustomerAvgAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to sum
|
|
**/
|
|
_sum?: CustomerSumAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to find the minimum value
|
|
**/
|
|
_min?: CustomerMinAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to find the maximum value
|
|
**/
|
|
_max?: CustomerMaxAggregateInputType
|
|
}
|
|
|
|
export type GetCustomerAggregateType<T extends CustomerAggregateArgs> = {
|
|
[P in keyof T & keyof AggregateCustomer]: P extends '_count' | 'count'
|
|
? T[P] extends true
|
|
? number
|
|
: GetScalarType<T[P], AggregateCustomer[P]>
|
|
: GetScalarType<T[P], AggregateCustomer[P]>
|
|
}
|
|
|
|
|
|
|
|
|
|
export type CustomerGroupByArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
where?: CustomerWhereInput
|
|
orderBy?: CustomerOrderByWithAggregationInput | CustomerOrderByWithAggregationInput[]
|
|
by: CustomerScalarFieldEnum[] | CustomerScalarFieldEnum
|
|
having?: CustomerScalarWhereWithAggregatesInput
|
|
take?: number
|
|
skip?: number
|
|
_count?: CustomerCountAggregateInputType | true
|
|
_avg?: CustomerAvgAggregateInputType
|
|
_sum?: CustomerSumAggregateInputType
|
|
_min?: CustomerMinAggregateInputType
|
|
_max?: CustomerMaxAggregateInputType
|
|
}
|
|
|
|
export type CustomerGroupByOutputType = {
|
|
id: number
|
|
customerNumber: string
|
|
type: $Enums.CustomerType
|
|
salutation: string | null
|
|
firstName: string
|
|
lastName: string
|
|
companyName: string | null
|
|
foundingDate: Date | null
|
|
birthDate: Date | null
|
|
birthPlace: string | null
|
|
email: string | null
|
|
phone: string | null
|
|
mobile: string | null
|
|
taxNumber: string | null
|
|
businessRegistrationPath: string | null
|
|
commercialRegisterPath: string | null
|
|
commercialRegisterNumber: string | null
|
|
privacyPolicyPath: string | null
|
|
notes: string | null
|
|
portalEnabled: boolean
|
|
portalEmail: string | null
|
|
portalPasswordHash: string | null
|
|
portalPasswordEncrypted: string | null
|
|
portalLastLogin: Date | null
|
|
createdAt: Date
|
|
updatedAt: Date
|
|
_count: CustomerCountAggregateOutputType | null
|
|
_avg: CustomerAvgAggregateOutputType | null
|
|
_sum: CustomerSumAggregateOutputType | null
|
|
_min: CustomerMinAggregateOutputType | null
|
|
_max: CustomerMaxAggregateOutputType | null
|
|
}
|
|
|
|
type GetCustomerGroupByPayload<T extends CustomerGroupByArgs> = Prisma.PrismaPromise<
|
|
Array<
|
|
PickEnumerable<CustomerGroupByOutputType, T['by']> &
|
|
{
|
|
[P in ((keyof T) & (keyof CustomerGroupByOutputType))]: P extends '_count'
|
|
? T[P] extends boolean
|
|
? number
|
|
: GetScalarType<T[P], CustomerGroupByOutputType[P]>
|
|
: GetScalarType<T[P], CustomerGroupByOutputType[P]>
|
|
}
|
|
>
|
|
>
|
|
|
|
|
|
export type CustomerSelect<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
|
|
id?: boolean
|
|
customerNumber?: boolean
|
|
type?: boolean
|
|
salutation?: boolean
|
|
firstName?: boolean
|
|
lastName?: boolean
|
|
companyName?: boolean
|
|
foundingDate?: boolean
|
|
birthDate?: boolean
|
|
birthPlace?: boolean
|
|
email?: boolean
|
|
phone?: boolean
|
|
mobile?: boolean
|
|
taxNumber?: boolean
|
|
businessRegistrationPath?: boolean
|
|
commercialRegisterPath?: boolean
|
|
commercialRegisterNumber?: boolean
|
|
privacyPolicyPath?: boolean
|
|
notes?: boolean
|
|
portalEnabled?: boolean
|
|
portalEmail?: boolean
|
|
portalPasswordHash?: boolean
|
|
portalPasswordEncrypted?: boolean
|
|
portalLastLogin?: boolean
|
|
createdAt?: boolean
|
|
updatedAt?: boolean
|
|
user?: boolean | Customer$userArgs<ExtArgs>
|
|
addresses?: boolean | Customer$addressesArgs<ExtArgs>
|
|
bankCards?: boolean | Customer$bankCardsArgs<ExtArgs>
|
|
identityDocuments?: boolean | Customer$identityDocumentsArgs<ExtArgs>
|
|
meters?: boolean | Customer$metersArgs<ExtArgs>
|
|
stressfreiEmails?: boolean | Customer$stressfreiEmailsArgs<ExtArgs>
|
|
contracts?: boolean | Customer$contractsArgs<ExtArgs>
|
|
representingFor?: boolean | Customer$representingForArgs<ExtArgs>
|
|
representedBy?: boolean | Customer$representedByArgs<ExtArgs>
|
|
_count?: boolean | CustomerCountOutputTypeDefaultArgs<ExtArgs>
|
|
}, ExtArgs["result"]["customer"]>
|
|
|
|
|
|
export type CustomerSelectScalar = {
|
|
id?: boolean
|
|
customerNumber?: boolean
|
|
type?: boolean
|
|
salutation?: boolean
|
|
firstName?: boolean
|
|
lastName?: boolean
|
|
companyName?: boolean
|
|
foundingDate?: boolean
|
|
birthDate?: boolean
|
|
birthPlace?: boolean
|
|
email?: boolean
|
|
phone?: boolean
|
|
mobile?: boolean
|
|
taxNumber?: boolean
|
|
businessRegistrationPath?: boolean
|
|
commercialRegisterPath?: boolean
|
|
commercialRegisterNumber?: boolean
|
|
privacyPolicyPath?: boolean
|
|
notes?: boolean
|
|
portalEnabled?: boolean
|
|
portalEmail?: boolean
|
|
portalPasswordHash?: boolean
|
|
portalPasswordEncrypted?: boolean
|
|
portalLastLogin?: boolean
|
|
createdAt?: boolean
|
|
updatedAt?: boolean
|
|
}
|
|
|
|
export type CustomerInclude<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
user?: boolean | Customer$userArgs<ExtArgs>
|
|
addresses?: boolean | Customer$addressesArgs<ExtArgs>
|
|
bankCards?: boolean | Customer$bankCardsArgs<ExtArgs>
|
|
identityDocuments?: boolean | Customer$identityDocumentsArgs<ExtArgs>
|
|
meters?: boolean | Customer$metersArgs<ExtArgs>
|
|
stressfreiEmails?: boolean | Customer$stressfreiEmailsArgs<ExtArgs>
|
|
contracts?: boolean | Customer$contractsArgs<ExtArgs>
|
|
representingFor?: boolean | Customer$representingForArgs<ExtArgs>
|
|
representedBy?: boolean | Customer$representedByArgs<ExtArgs>
|
|
_count?: boolean | CustomerCountOutputTypeDefaultArgs<ExtArgs>
|
|
}
|
|
|
|
export type $CustomerPayload<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
name: "Customer"
|
|
objects: {
|
|
user: Prisma.$UserPayload<ExtArgs> | null
|
|
addresses: Prisma.$AddressPayload<ExtArgs>[]
|
|
bankCards: Prisma.$BankCardPayload<ExtArgs>[]
|
|
identityDocuments: Prisma.$IdentityDocumentPayload<ExtArgs>[]
|
|
meters: Prisma.$MeterPayload<ExtArgs>[]
|
|
stressfreiEmails: Prisma.$StressfreiEmailPayload<ExtArgs>[]
|
|
contracts: Prisma.$ContractPayload<ExtArgs>[]
|
|
representingFor: Prisma.$CustomerRepresentativePayload<ExtArgs>[]
|
|
representedBy: Prisma.$CustomerRepresentativePayload<ExtArgs>[]
|
|
}
|
|
scalars: $Extensions.GetPayloadResult<{
|
|
id: number
|
|
customerNumber: string
|
|
type: $Enums.CustomerType
|
|
salutation: string | null
|
|
firstName: string
|
|
lastName: string
|
|
companyName: string | null
|
|
foundingDate: Date | null
|
|
birthDate: Date | null
|
|
birthPlace: string | null
|
|
email: string | null
|
|
phone: string | null
|
|
mobile: string | null
|
|
taxNumber: string | null
|
|
businessRegistrationPath: string | null
|
|
commercialRegisterPath: string | null
|
|
commercialRegisterNumber: string | null
|
|
privacyPolicyPath: string | null
|
|
notes: string | null
|
|
portalEnabled: boolean
|
|
portalEmail: string | null
|
|
portalPasswordHash: string | null
|
|
portalPasswordEncrypted: string | null
|
|
portalLastLogin: Date | null
|
|
createdAt: Date
|
|
updatedAt: Date
|
|
}, ExtArgs["result"]["customer"]>
|
|
composites: {}
|
|
}
|
|
|
|
type CustomerGetPayload<S extends boolean | null | undefined | CustomerDefaultArgs> = $Result.GetResult<Prisma.$CustomerPayload, S>
|
|
|
|
type CustomerCountArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> =
|
|
Omit<CustomerFindManyArgs, 'select' | 'include' | 'distinct'> & {
|
|
select?: CustomerCountAggregateInputType | true
|
|
}
|
|
|
|
export interface CustomerDelegate<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> {
|
|
[K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['Customer'], meta: { name: 'Customer' } }
|
|
/**
|
|
* Find zero or one Customer that matches the filter.
|
|
* @param {CustomerFindUniqueArgs} args - Arguments to find a Customer
|
|
* @example
|
|
* // Get one Customer
|
|
* const customer = await prisma.customer.findUnique({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findUnique<T extends CustomerFindUniqueArgs>(args: SelectSubset<T, CustomerFindUniqueArgs<ExtArgs>>): Prisma__CustomerClient<$Result.GetResult<Prisma.$CustomerPayload<ExtArgs>, T, "findUnique"> | null, null, ExtArgs>
|
|
|
|
/**
|
|
* Find one Customer that matches the filter or throw an error with `error.code='P2025'`
|
|
* if no matches were found.
|
|
* @param {CustomerFindUniqueOrThrowArgs} args - Arguments to find a Customer
|
|
* @example
|
|
* // Get one Customer
|
|
* const customer = await prisma.customer.findUniqueOrThrow({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findUniqueOrThrow<T extends CustomerFindUniqueOrThrowArgs>(args: SelectSubset<T, CustomerFindUniqueOrThrowArgs<ExtArgs>>): Prisma__CustomerClient<$Result.GetResult<Prisma.$CustomerPayload<ExtArgs>, T, "findUniqueOrThrow">, never, ExtArgs>
|
|
|
|
/**
|
|
* Find the first Customer that matches the filter.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {CustomerFindFirstArgs} args - Arguments to find a Customer
|
|
* @example
|
|
* // Get one Customer
|
|
* const customer = await prisma.customer.findFirst({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findFirst<T extends CustomerFindFirstArgs>(args?: SelectSubset<T, CustomerFindFirstArgs<ExtArgs>>): Prisma__CustomerClient<$Result.GetResult<Prisma.$CustomerPayload<ExtArgs>, T, "findFirst"> | null, null, ExtArgs>
|
|
|
|
/**
|
|
* Find the first Customer that matches the filter or
|
|
* throw `PrismaKnownClientError` with `P2025` code if no matches were found.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {CustomerFindFirstOrThrowArgs} args - Arguments to find a Customer
|
|
* @example
|
|
* // Get one Customer
|
|
* const customer = await prisma.customer.findFirstOrThrow({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findFirstOrThrow<T extends CustomerFindFirstOrThrowArgs>(args?: SelectSubset<T, CustomerFindFirstOrThrowArgs<ExtArgs>>): Prisma__CustomerClient<$Result.GetResult<Prisma.$CustomerPayload<ExtArgs>, T, "findFirstOrThrow">, never, ExtArgs>
|
|
|
|
/**
|
|
* Find zero or more Customers that matches the filter.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {CustomerFindManyArgs} args - Arguments to filter and select certain fields only.
|
|
* @example
|
|
* // Get all Customers
|
|
* const customers = await prisma.customer.findMany()
|
|
*
|
|
* // Get first 10 Customers
|
|
* const customers = await prisma.customer.findMany({ take: 10 })
|
|
*
|
|
* // Only select the `id`
|
|
* const customerWithIdOnly = await prisma.customer.findMany({ select: { id: true } })
|
|
*
|
|
*/
|
|
findMany<T extends CustomerFindManyArgs>(args?: SelectSubset<T, CustomerFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$CustomerPayload<ExtArgs>, T, "findMany">>
|
|
|
|
/**
|
|
* Create a Customer.
|
|
* @param {CustomerCreateArgs} args - Arguments to create a Customer.
|
|
* @example
|
|
* // Create one Customer
|
|
* const Customer = await prisma.customer.create({
|
|
* data: {
|
|
* // ... data to create a Customer
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
create<T extends CustomerCreateArgs>(args: SelectSubset<T, CustomerCreateArgs<ExtArgs>>): Prisma__CustomerClient<$Result.GetResult<Prisma.$CustomerPayload<ExtArgs>, T, "create">, never, ExtArgs>
|
|
|
|
/**
|
|
* Create many Customers.
|
|
* @param {CustomerCreateManyArgs} args - Arguments to create many Customers.
|
|
* @example
|
|
* // Create many Customers
|
|
* const customer = await prisma.customer.createMany({
|
|
* data: [
|
|
* // ... provide data here
|
|
* ]
|
|
* })
|
|
*
|
|
*/
|
|
createMany<T extends CustomerCreateManyArgs>(args?: SelectSubset<T, CustomerCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
|
|
|
|
/**
|
|
* Delete a Customer.
|
|
* @param {CustomerDeleteArgs} args - Arguments to delete one Customer.
|
|
* @example
|
|
* // Delete one Customer
|
|
* const Customer = await prisma.customer.delete({
|
|
* where: {
|
|
* // ... filter to delete one Customer
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
delete<T extends CustomerDeleteArgs>(args: SelectSubset<T, CustomerDeleteArgs<ExtArgs>>): Prisma__CustomerClient<$Result.GetResult<Prisma.$CustomerPayload<ExtArgs>, T, "delete">, never, ExtArgs>
|
|
|
|
/**
|
|
* Update one Customer.
|
|
* @param {CustomerUpdateArgs} args - Arguments to update one Customer.
|
|
* @example
|
|
* // Update one Customer
|
|
* const customer = await prisma.customer.update({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* },
|
|
* data: {
|
|
* // ... provide data here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
update<T extends CustomerUpdateArgs>(args: SelectSubset<T, CustomerUpdateArgs<ExtArgs>>): Prisma__CustomerClient<$Result.GetResult<Prisma.$CustomerPayload<ExtArgs>, T, "update">, never, ExtArgs>
|
|
|
|
/**
|
|
* Delete zero or more Customers.
|
|
* @param {CustomerDeleteManyArgs} args - Arguments to filter Customers to delete.
|
|
* @example
|
|
* // Delete a few Customers
|
|
* const { count } = await prisma.customer.deleteMany({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
deleteMany<T extends CustomerDeleteManyArgs>(args?: SelectSubset<T, CustomerDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
|
|
|
|
/**
|
|
* Update zero or more Customers.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {CustomerUpdateManyArgs} args - Arguments to update one or more rows.
|
|
* @example
|
|
* // Update many Customers
|
|
* const customer = await prisma.customer.updateMany({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* },
|
|
* data: {
|
|
* // ... provide data here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
updateMany<T extends CustomerUpdateManyArgs>(args: SelectSubset<T, CustomerUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
|
|
|
|
/**
|
|
* Create or update one Customer.
|
|
* @param {CustomerUpsertArgs} args - Arguments to update or create a Customer.
|
|
* @example
|
|
* // Update or create a Customer
|
|
* const customer = await prisma.customer.upsert({
|
|
* create: {
|
|
* // ... data to create a Customer
|
|
* },
|
|
* update: {
|
|
* // ... in case it already exists, update
|
|
* },
|
|
* where: {
|
|
* // ... the filter for the Customer we want to update
|
|
* }
|
|
* })
|
|
*/
|
|
upsert<T extends CustomerUpsertArgs>(args: SelectSubset<T, CustomerUpsertArgs<ExtArgs>>): Prisma__CustomerClient<$Result.GetResult<Prisma.$CustomerPayload<ExtArgs>, T, "upsert">, never, ExtArgs>
|
|
|
|
|
|
/**
|
|
* Count the number of Customers.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {CustomerCountArgs} args - Arguments to filter Customers to count.
|
|
* @example
|
|
* // Count the number of Customers
|
|
* const count = await prisma.customer.count({
|
|
* where: {
|
|
* // ... the filter for the Customers we want to count
|
|
* }
|
|
* })
|
|
**/
|
|
count<T extends CustomerCountArgs>(
|
|
args?: Subset<T, CustomerCountArgs>,
|
|
): Prisma.PrismaPromise<
|
|
T extends $Utils.Record<'select', any>
|
|
? T['select'] extends true
|
|
? number
|
|
: GetScalarType<T['select'], CustomerCountAggregateOutputType>
|
|
: number
|
|
>
|
|
|
|
/**
|
|
* Allows you to perform aggregations operations on a Customer.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {CustomerAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
|
|
* @example
|
|
* // Ordered by age ascending
|
|
* // Where email contains prisma.io
|
|
* // Limited to the 10 users
|
|
* const aggregations = await prisma.user.aggregate({
|
|
* _avg: {
|
|
* age: true,
|
|
* },
|
|
* where: {
|
|
* email: {
|
|
* contains: "prisma.io",
|
|
* },
|
|
* },
|
|
* orderBy: {
|
|
* age: "asc",
|
|
* },
|
|
* take: 10,
|
|
* })
|
|
**/
|
|
aggregate<T extends CustomerAggregateArgs>(args: Subset<T, CustomerAggregateArgs>): Prisma.PrismaPromise<GetCustomerAggregateType<T>>
|
|
|
|
/**
|
|
* Group by Customer.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {CustomerGroupByArgs} args - Group by arguments.
|
|
* @example
|
|
* // Group by city, order by createdAt, get count
|
|
* const result = await prisma.user.groupBy({
|
|
* by: ['city', 'createdAt'],
|
|
* orderBy: {
|
|
* createdAt: true
|
|
* },
|
|
* _count: {
|
|
* _all: true
|
|
* },
|
|
* })
|
|
*
|
|
**/
|
|
groupBy<
|
|
T extends CustomerGroupByArgs,
|
|
HasSelectOrTake extends Or<
|
|
Extends<'skip', Keys<T>>,
|
|
Extends<'take', Keys<T>>
|
|
>,
|
|
OrderByArg extends True extends HasSelectOrTake
|
|
? { orderBy: CustomerGroupByArgs['orderBy'] }
|
|
: { orderBy?: CustomerGroupByArgs['orderBy'] },
|
|
OrderFields extends ExcludeUnderscoreKeys<Keys<MaybeTupleToUnion<T['orderBy']>>>,
|
|
ByFields extends MaybeTupleToUnion<T['by']>,
|
|
ByValid extends Has<ByFields, OrderFields>,
|
|
HavingFields extends GetHavingFields<T['having']>,
|
|
HavingValid extends Has<ByFields, HavingFields>,
|
|
ByEmpty extends T['by'] extends never[] ? True : False,
|
|
InputErrors extends ByEmpty extends True
|
|
? `Error: "by" must not be empty.`
|
|
: HavingValid extends False
|
|
? {
|
|
[P in HavingFields]: P extends ByFields
|
|
? never
|
|
: P extends string
|
|
? `Error: Field "${P}" used in "having" needs to be provided in "by".`
|
|
: [
|
|
Error,
|
|
'Field ',
|
|
P,
|
|
` in "having" needs to be provided in "by"`,
|
|
]
|
|
}[HavingFields]
|
|
: 'take' extends Keys<T>
|
|
? 'orderBy' extends Keys<T>
|
|
? ByValid extends True
|
|
? {}
|
|
: {
|
|
[P in OrderFields]: P extends ByFields
|
|
? never
|
|
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
|
|
}[OrderFields]
|
|
: 'Error: If you provide "take", you also need to provide "orderBy"'
|
|
: 'skip' extends Keys<T>
|
|
? 'orderBy' extends Keys<T>
|
|
? ByValid extends True
|
|
? {}
|
|
: {
|
|
[P in OrderFields]: P extends ByFields
|
|
? never
|
|
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
|
|
}[OrderFields]
|
|
: 'Error: If you provide "skip", you also need to provide "orderBy"'
|
|
: ByValid extends True
|
|
? {}
|
|
: {
|
|
[P in OrderFields]: P extends ByFields
|
|
? never
|
|
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
|
|
}[OrderFields]
|
|
>(args: SubsetIntersection<T, CustomerGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetCustomerGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
|
|
/**
|
|
* Fields of the Customer model
|
|
*/
|
|
readonly fields: CustomerFieldRefs;
|
|
}
|
|
|
|
/**
|
|
* The delegate class that acts as a "Promise-like" for Customer.
|
|
* Why is this prefixed with `Prisma__`?
|
|
* Because we want to prevent naming conflicts as mentioned in
|
|
* https://github.com/prisma/prisma-client-js/issues/707
|
|
*/
|
|
export interface Prisma__CustomerClient<T, Null = never, ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> extends Prisma.PrismaPromise<T> {
|
|
readonly [Symbol.toStringTag]: "PrismaPromise"
|
|
user<T extends Customer$userArgs<ExtArgs> = {}>(args?: Subset<T, Customer$userArgs<ExtArgs>>): Prisma__UserClient<$Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "findUniqueOrThrow"> | null, null, ExtArgs>
|
|
addresses<T extends Customer$addressesArgs<ExtArgs> = {}>(args?: Subset<T, Customer$addressesArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$AddressPayload<ExtArgs>, T, "findMany"> | Null>
|
|
bankCards<T extends Customer$bankCardsArgs<ExtArgs> = {}>(args?: Subset<T, Customer$bankCardsArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$BankCardPayload<ExtArgs>, T, "findMany"> | Null>
|
|
identityDocuments<T extends Customer$identityDocumentsArgs<ExtArgs> = {}>(args?: Subset<T, Customer$identityDocumentsArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$IdentityDocumentPayload<ExtArgs>, T, "findMany"> | Null>
|
|
meters<T extends Customer$metersArgs<ExtArgs> = {}>(args?: Subset<T, Customer$metersArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$MeterPayload<ExtArgs>, T, "findMany"> | Null>
|
|
stressfreiEmails<T extends Customer$stressfreiEmailsArgs<ExtArgs> = {}>(args?: Subset<T, Customer$stressfreiEmailsArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$StressfreiEmailPayload<ExtArgs>, T, "findMany"> | Null>
|
|
contracts<T extends Customer$contractsArgs<ExtArgs> = {}>(args?: Subset<T, Customer$contractsArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$ContractPayload<ExtArgs>, T, "findMany"> | Null>
|
|
representingFor<T extends Customer$representingForArgs<ExtArgs> = {}>(args?: Subset<T, Customer$representingForArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$CustomerRepresentativePayload<ExtArgs>, T, "findMany"> | Null>
|
|
representedBy<T extends Customer$representedByArgs<ExtArgs> = {}>(args?: Subset<T, Customer$representedByArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$CustomerRepresentativePayload<ExtArgs>, T, "findMany"> | Null>
|
|
/**
|
|
* Attaches callbacks for the resolution and/or rejection of the Promise.
|
|
* @param onfulfilled The callback to execute when the Promise is resolved.
|
|
* @param onrejected The callback to execute when the Promise is rejected.
|
|
* @returns A Promise for the completion of which ever callback is executed.
|
|
*/
|
|
then<TResult1 = T, TResult2 = never>(onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined | null): $Utils.JsPromise<TResult1 | TResult2>
|
|
/**
|
|
* Attaches a callback for only the rejection of the Promise.
|
|
* @param onrejected The callback to execute when the Promise is rejected.
|
|
* @returns A Promise for the completion of the callback.
|
|
*/
|
|
catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): $Utils.JsPromise<T | TResult>
|
|
/**
|
|
* Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
|
|
* resolved value cannot be modified from the callback.
|
|
* @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
|
|
* @returns A Promise for the completion of the callback.
|
|
*/
|
|
finally(onfinally?: (() => void) | undefined | null): $Utils.JsPromise<T>
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
* Fields of the Customer model
|
|
*/
|
|
interface CustomerFieldRefs {
|
|
readonly id: FieldRef<"Customer", 'Int'>
|
|
readonly customerNumber: FieldRef<"Customer", 'String'>
|
|
readonly type: FieldRef<"Customer", 'CustomerType'>
|
|
readonly salutation: FieldRef<"Customer", 'String'>
|
|
readonly firstName: FieldRef<"Customer", 'String'>
|
|
readonly lastName: FieldRef<"Customer", 'String'>
|
|
readonly companyName: FieldRef<"Customer", 'String'>
|
|
readonly foundingDate: FieldRef<"Customer", 'DateTime'>
|
|
readonly birthDate: FieldRef<"Customer", 'DateTime'>
|
|
readonly birthPlace: FieldRef<"Customer", 'String'>
|
|
readonly email: FieldRef<"Customer", 'String'>
|
|
readonly phone: FieldRef<"Customer", 'String'>
|
|
readonly mobile: FieldRef<"Customer", 'String'>
|
|
readonly taxNumber: FieldRef<"Customer", 'String'>
|
|
readonly businessRegistrationPath: FieldRef<"Customer", 'String'>
|
|
readonly commercialRegisterPath: FieldRef<"Customer", 'String'>
|
|
readonly commercialRegisterNumber: FieldRef<"Customer", 'String'>
|
|
readonly privacyPolicyPath: FieldRef<"Customer", 'String'>
|
|
readonly notes: FieldRef<"Customer", 'String'>
|
|
readonly portalEnabled: FieldRef<"Customer", 'Boolean'>
|
|
readonly portalEmail: FieldRef<"Customer", 'String'>
|
|
readonly portalPasswordHash: FieldRef<"Customer", 'String'>
|
|
readonly portalPasswordEncrypted: FieldRef<"Customer", 'String'>
|
|
readonly portalLastLogin: FieldRef<"Customer", 'DateTime'>
|
|
readonly createdAt: FieldRef<"Customer", 'DateTime'>
|
|
readonly updatedAt: FieldRef<"Customer", 'DateTime'>
|
|
}
|
|
|
|
|
|
// Custom InputTypes
|
|
/**
|
|
* Customer findUnique
|
|
*/
|
|
export type CustomerFindUniqueArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the Customer
|
|
*/
|
|
select?: CustomerSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: CustomerInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which Customer to fetch.
|
|
*/
|
|
where: CustomerWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* Customer findUniqueOrThrow
|
|
*/
|
|
export type CustomerFindUniqueOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the Customer
|
|
*/
|
|
select?: CustomerSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: CustomerInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which Customer to fetch.
|
|
*/
|
|
where: CustomerWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* Customer findFirst
|
|
*/
|
|
export type CustomerFindFirstArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the Customer
|
|
*/
|
|
select?: CustomerSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: CustomerInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which Customer to fetch.
|
|
*/
|
|
where?: CustomerWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of Customers to fetch.
|
|
*/
|
|
orderBy?: CustomerOrderByWithRelationInput | CustomerOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for searching for Customers.
|
|
*/
|
|
cursor?: CustomerWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` Customers from the position of the cursor.
|
|
*/
|
|
take?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Skip the first `n` Customers.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
*
|
|
* Filter by unique combinations of Customers.
|
|
*/
|
|
distinct?: CustomerScalarFieldEnum | CustomerScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* Customer findFirstOrThrow
|
|
*/
|
|
export type CustomerFindFirstOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the Customer
|
|
*/
|
|
select?: CustomerSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: CustomerInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which Customer to fetch.
|
|
*/
|
|
where?: CustomerWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of Customers to fetch.
|
|
*/
|
|
orderBy?: CustomerOrderByWithRelationInput | CustomerOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for searching for Customers.
|
|
*/
|
|
cursor?: CustomerWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` Customers from the position of the cursor.
|
|
*/
|
|
take?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Skip the first `n` Customers.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
*
|
|
* Filter by unique combinations of Customers.
|
|
*/
|
|
distinct?: CustomerScalarFieldEnum | CustomerScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* Customer findMany
|
|
*/
|
|
export type CustomerFindManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the Customer
|
|
*/
|
|
select?: CustomerSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: CustomerInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which Customers to fetch.
|
|
*/
|
|
where?: CustomerWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of Customers to fetch.
|
|
*/
|
|
orderBy?: CustomerOrderByWithRelationInput | CustomerOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for listing Customers.
|
|
*/
|
|
cursor?: CustomerWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` Customers from the position of the cursor.
|
|
*/
|
|
take?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Skip the first `n` Customers.
|
|
*/
|
|
skip?: number
|
|
distinct?: CustomerScalarFieldEnum | CustomerScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* Customer create
|
|
*/
|
|
export type CustomerCreateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the Customer
|
|
*/
|
|
select?: CustomerSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: CustomerInclude<ExtArgs> | null
|
|
/**
|
|
* The data needed to create a Customer.
|
|
*/
|
|
data: XOR<CustomerCreateInput, CustomerUncheckedCreateInput>
|
|
}
|
|
|
|
/**
|
|
* Customer createMany
|
|
*/
|
|
export type CustomerCreateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* The data used to create many Customers.
|
|
*/
|
|
data: CustomerCreateManyInput | CustomerCreateManyInput[]
|
|
skipDuplicates?: boolean
|
|
}
|
|
|
|
/**
|
|
* Customer update
|
|
*/
|
|
export type CustomerUpdateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the Customer
|
|
*/
|
|
select?: CustomerSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: CustomerInclude<ExtArgs> | null
|
|
/**
|
|
* The data needed to update a Customer.
|
|
*/
|
|
data: XOR<CustomerUpdateInput, CustomerUncheckedUpdateInput>
|
|
/**
|
|
* Choose, which Customer to update.
|
|
*/
|
|
where: CustomerWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* Customer updateMany
|
|
*/
|
|
export type CustomerUpdateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* The data used to update Customers.
|
|
*/
|
|
data: XOR<CustomerUpdateManyMutationInput, CustomerUncheckedUpdateManyInput>
|
|
/**
|
|
* Filter which Customers to update
|
|
*/
|
|
where?: CustomerWhereInput
|
|
}
|
|
|
|
/**
|
|
* Customer upsert
|
|
*/
|
|
export type CustomerUpsertArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the Customer
|
|
*/
|
|
select?: CustomerSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: CustomerInclude<ExtArgs> | null
|
|
/**
|
|
* The filter to search for the Customer to update in case it exists.
|
|
*/
|
|
where: CustomerWhereUniqueInput
|
|
/**
|
|
* In case the Customer found by the `where` argument doesn't exist, create a new Customer with this data.
|
|
*/
|
|
create: XOR<CustomerCreateInput, CustomerUncheckedCreateInput>
|
|
/**
|
|
* In case the Customer was found with the provided `where` argument, update it with this data.
|
|
*/
|
|
update: XOR<CustomerUpdateInput, CustomerUncheckedUpdateInput>
|
|
}
|
|
|
|
/**
|
|
* Customer delete
|
|
*/
|
|
export type CustomerDeleteArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the Customer
|
|
*/
|
|
select?: CustomerSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: CustomerInclude<ExtArgs> | null
|
|
/**
|
|
* Filter which Customer to delete.
|
|
*/
|
|
where: CustomerWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* Customer deleteMany
|
|
*/
|
|
export type CustomerDeleteManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Filter which Customers to delete
|
|
*/
|
|
where?: CustomerWhereInput
|
|
}
|
|
|
|
/**
|
|
* Customer.user
|
|
*/
|
|
export type Customer$userArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the User
|
|
*/
|
|
select?: UserSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: UserInclude<ExtArgs> | null
|
|
where?: UserWhereInput
|
|
}
|
|
|
|
/**
|
|
* Customer.addresses
|
|
*/
|
|
export type Customer$addressesArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the Address
|
|
*/
|
|
select?: AddressSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: AddressInclude<ExtArgs> | null
|
|
where?: AddressWhereInput
|
|
orderBy?: AddressOrderByWithRelationInput | AddressOrderByWithRelationInput[]
|
|
cursor?: AddressWhereUniqueInput
|
|
take?: number
|
|
skip?: number
|
|
distinct?: AddressScalarFieldEnum | AddressScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* Customer.bankCards
|
|
*/
|
|
export type Customer$bankCardsArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the BankCard
|
|
*/
|
|
select?: BankCardSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: BankCardInclude<ExtArgs> | null
|
|
where?: BankCardWhereInput
|
|
orderBy?: BankCardOrderByWithRelationInput | BankCardOrderByWithRelationInput[]
|
|
cursor?: BankCardWhereUniqueInput
|
|
take?: number
|
|
skip?: number
|
|
distinct?: BankCardScalarFieldEnum | BankCardScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* Customer.identityDocuments
|
|
*/
|
|
export type Customer$identityDocumentsArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the IdentityDocument
|
|
*/
|
|
select?: IdentityDocumentSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: IdentityDocumentInclude<ExtArgs> | null
|
|
where?: IdentityDocumentWhereInput
|
|
orderBy?: IdentityDocumentOrderByWithRelationInput | IdentityDocumentOrderByWithRelationInput[]
|
|
cursor?: IdentityDocumentWhereUniqueInput
|
|
take?: number
|
|
skip?: number
|
|
distinct?: IdentityDocumentScalarFieldEnum | IdentityDocumentScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* Customer.meters
|
|
*/
|
|
export type Customer$metersArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the Meter
|
|
*/
|
|
select?: MeterSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: MeterInclude<ExtArgs> | null
|
|
where?: MeterWhereInput
|
|
orderBy?: MeterOrderByWithRelationInput | MeterOrderByWithRelationInput[]
|
|
cursor?: MeterWhereUniqueInput
|
|
take?: number
|
|
skip?: number
|
|
distinct?: MeterScalarFieldEnum | MeterScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* Customer.stressfreiEmails
|
|
*/
|
|
export type Customer$stressfreiEmailsArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the StressfreiEmail
|
|
*/
|
|
select?: StressfreiEmailSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: StressfreiEmailInclude<ExtArgs> | null
|
|
where?: StressfreiEmailWhereInput
|
|
orderBy?: StressfreiEmailOrderByWithRelationInput | StressfreiEmailOrderByWithRelationInput[]
|
|
cursor?: StressfreiEmailWhereUniqueInput
|
|
take?: number
|
|
skip?: number
|
|
distinct?: StressfreiEmailScalarFieldEnum | StressfreiEmailScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* Customer.contracts
|
|
*/
|
|
export type Customer$contractsArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the Contract
|
|
*/
|
|
select?: ContractSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: ContractInclude<ExtArgs> | null
|
|
where?: ContractWhereInput
|
|
orderBy?: ContractOrderByWithRelationInput | ContractOrderByWithRelationInput[]
|
|
cursor?: ContractWhereUniqueInput
|
|
take?: number
|
|
skip?: number
|
|
distinct?: ContractScalarFieldEnum | ContractScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* Customer.representingFor
|
|
*/
|
|
export type Customer$representingForArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the CustomerRepresentative
|
|
*/
|
|
select?: CustomerRepresentativeSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: CustomerRepresentativeInclude<ExtArgs> | null
|
|
where?: CustomerRepresentativeWhereInput
|
|
orderBy?: CustomerRepresentativeOrderByWithRelationInput | CustomerRepresentativeOrderByWithRelationInput[]
|
|
cursor?: CustomerRepresentativeWhereUniqueInput
|
|
take?: number
|
|
skip?: number
|
|
distinct?: CustomerRepresentativeScalarFieldEnum | CustomerRepresentativeScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* Customer.representedBy
|
|
*/
|
|
export type Customer$representedByArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the CustomerRepresentative
|
|
*/
|
|
select?: CustomerRepresentativeSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: CustomerRepresentativeInclude<ExtArgs> | null
|
|
where?: CustomerRepresentativeWhereInput
|
|
orderBy?: CustomerRepresentativeOrderByWithRelationInput | CustomerRepresentativeOrderByWithRelationInput[]
|
|
cursor?: CustomerRepresentativeWhereUniqueInput
|
|
take?: number
|
|
skip?: number
|
|
distinct?: CustomerRepresentativeScalarFieldEnum | CustomerRepresentativeScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* Customer without action
|
|
*/
|
|
export type CustomerDefaultArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the Customer
|
|
*/
|
|
select?: CustomerSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: CustomerInclude<ExtArgs> | null
|
|
}
|
|
|
|
|
|
/**
|
|
* Model CustomerRepresentative
|
|
*/
|
|
|
|
export type AggregateCustomerRepresentative = {
|
|
_count: CustomerRepresentativeCountAggregateOutputType | null
|
|
_avg: CustomerRepresentativeAvgAggregateOutputType | null
|
|
_sum: CustomerRepresentativeSumAggregateOutputType | null
|
|
_min: CustomerRepresentativeMinAggregateOutputType | null
|
|
_max: CustomerRepresentativeMaxAggregateOutputType | null
|
|
}
|
|
|
|
export type CustomerRepresentativeAvgAggregateOutputType = {
|
|
id: number | null
|
|
customerId: number | null
|
|
representativeId: number | null
|
|
}
|
|
|
|
export type CustomerRepresentativeSumAggregateOutputType = {
|
|
id: number | null
|
|
customerId: number | null
|
|
representativeId: number | null
|
|
}
|
|
|
|
export type CustomerRepresentativeMinAggregateOutputType = {
|
|
id: number | null
|
|
customerId: number | null
|
|
representativeId: number | null
|
|
notes: string | null
|
|
isActive: boolean | null
|
|
createdAt: Date | null
|
|
updatedAt: Date | null
|
|
}
|
|
|
|
export type CustomerRepresentativeMaxAggregateOutputType = {
|
|
id: number | null
|
|
customerId: number | null
|
|
representativeId: number | null
|
|
notes: string | null
|
|
isActive: boolean | null
|
|
createdAt: Date | null
|
|
updatedAt: Date | null
|
|
}
|
|
|
|
export type CustomerRepresentativeCountAggregateOutputType = {
|
|
id: number
|
|
customerId: number
|
|
representativeId: number
|
|
notes: number
|
|
isActive: number
|
|
createdAt: number
|
|
updatedAt: number
|
|
_all: number
|
|
}
|
|
|
|
|
|
export type CustomerRepresentativeAvgAggregateInputType = {
|
|
id?: true
|
|
customerId?: true
|
|
representativeId?: true
|
|
}
|
|
|
|
export type CustomerRepresentativeSumAggregateInputType = {
|
|
id?: true
|
|
customerId?: true
|
|
representativeId?: true
|
|
}
|
|
|
|
export type CustomerRepresentativeMinAggregateInputType = {
|
|
id?: true
|
|
customerId?: true
|
|
representativeId?: true
|
|
notes?: true
|
|
isActive?: true
|
|
createdAt?: true
|
|
updatedAt?: true
|
|
}
|
|
|
|
export type CustomerRepresentativeMaxAggregateInputType = {
|
|
id?: true
|
|
customerId?: true
|
|
representativeId?: true
|
|
notes?: true
|
|
isActive?: true
|
|
createdAt?: true
|
|
updatedAt?: true
|
|
}
|
|
|
|
export type CustomerRepresentativeCountAggregateInputType = {
|
|
id?: true
|
|
customerId?: true
|
|
representativeId?: true
|
|
notes?: true
|
|
isActive?: true
|
|
createdAt?: true
|
|
updatedAt?: true
|
|
_all?: true
|
|
}
|
|
|
|
export type CustomerRepresentativeAggregateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Filter which CustomerRepresentative to aggregate.
|
|
*/
|
|
where?: CustomerRepresentativeWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of CustomerRepresentatives to fetch.
|
|
*/
|
|
orderBy?: CustomerRepresentativeOrderByWithRelationInput | CustomerRepresentativeOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the start position
|
|
*/
|
|
cursor?: CustomerRepresentativeWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` CustomerRepresentatives from the position of the cursor.
|
|
*/
|
|
take?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Skip the first `n` CustomerRepresentatives.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Count returned CustomerRepresentatives
|
|
**/
|
|
_count?: true | CustomerRepresentativeCountAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to average
|
|
**/
|
|
_avg?: CustomerRepresentativeAvgAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to sum
|
|
**/
|
|
_sum?: CustomerRepresentativeSumAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to find the minimum value
|
|
**/
|
|
_min?: CustomerRepresentativeMinAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to find the maximum value
|
|
**/
|
|
_max?: CustomerRepresentativeMaxAggregateInputType
|
|
}
|
|
|
|
export type GetCustomerRepresentativeAggregateType<T extends CustomerRepresentativeAggregateArgs> = {
|
|
[P in keyof T & keyof AggregateCustomerRepresentative]: P extends '_count' | 'count'
|
|
? T[P] extends true
|
|
? number
|
|
: GetScalarType<T[P], AggregateCustomerRepresentative[P]>
|
|
: GetScalarType<T[P], AggregateCustomerRepresentative[P]>
|
|
}
|
|
|
|
|
|
|
|
|
|
export type CustomerRepresentativeGroupByArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
where?: CustomerRepresentativeWhereInput
|
|
orderBy?: CustomerRepresentativeOrderByWithAggregationInput | CustomerRepresentativeOrderByWithAggregationInput[]
|
|
by: CustomerRepresentativeScalarFieldEnum[] | CustomerRepresentativeScalarFieldEnum
|
|
having?: CustomerRepresentativeScalarWhereWithAggregatesInput
|
|
take?: number
|
|
skip?: number
|
|
_count?: CustomerRepresentativeCountAggregateInputType | true
|
|
_avg?: CustomerRepresentativeAvgAggregateInputType
|
|
_sum?: CustomerRepresentativeSumAggregateInputType
|
|
_min?: CustomerRepresentativeMinAggregateInputType
|
|
_max?: CustomerRepresentativeMaxAggregateInputType
|
|
}
|
|
|
|
export type CustomerRepresentativeGroupByOutputType = {
|
|
id: number
|
|
customerId: number
|
|
representativeId: number
|
|
notes: string | null
|
|
isActive: boolean
|
|
createdAt: Date
|
|
updatedAt: Date
|
|
_count: CustomerRepresentativeCountAggregateOutputType | null
|
|
_avg: CustomerRepresentativeAvgAggregateOutputType | null
|
|
_sum: CustomerRepresentativeSumAggregateOutputType | null
|
|
_min: CustomerRepresentativeMinAggregateOutputType | null
|
|
_max: CustomerRepresentativeMaxAggregateOutputType | null
|
|
}
|
|
|
|
type GetCustomerRepresentativeGroupByPayload<T extends CustomerRepresentativeGroupByArgs> = Prisma.PrismaPromise<
|
|
Array<
|
|
PickEnumerable<CustomerRepresentativeGroupByOutputType, T['by']> &
|
|
{
|
|
[P in ((keyof T) & (keyof CustomerRepresentativeGroupByOutputType))]: P extends '_count'
|
|
? T[P] extends boolean
|
|
? number
|
|
: GetScalarType<T[P], CustomerRepresentativeGroupByOutputType[P]>
|
|
: GetScalarType<T[P], CustomerRepresentativeGroupByOutputType[P]>
|
|
}
|
|
>
|
|
>
|
|
|
|
|
|
export type CustomerRepresentativeSelect<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
|
|
id?: boolean
|
|
customerId?: boolean
|
|
representativeId?: boolean
|
|
notes?: boolean
|
|
isActive?: boolean
|
|
createdAt?: boolean
|
|
updatedAt?: boolean
|
|
customer?: boolean | CustomerDefaultArgs<ExtArgs>
|
|
representative?: boolean | CustomerDefaultArgs<ExtArgs>
|
|
}, ExtArgs["result"]["customerRepresentative"]>
|
|
|
|
|
|
export type CustomerRepresentativeSelectScalar = {
|
|
id?: boolean
|
|
customerId?: boolean
|
|
representativeId?: boolean
|
|
notes?: boolean
|
|
isActive?: boolean
|
|
createdAt?: boolean
|
|
updatedAt?: boolean
|
|
}
|
|
|
|
export type CustomerRepresentativeInclude<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
customer?: boolean | CustomerDefaultArgs<ExtArgs>
|
|
representative?: boolean | CustomerDefaultArgs<ExtArgs>
|
|
}
|
|
|
|
export type $CustomerRepresentativePayload<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
name: "CustomerRepresentative"
|
|
objects: {
|
|
customer: Prisma.$CustomerPayload<ExtArgs>
|
|
representative: Prisma.$CustomerPayload<ExtArgs>
|
|
}
|
|
scalars: $Extensions.GetPayloadResult<{
|
|
id: number
|
|
customerId: number
|
|
representativeId: number
|
|
notes: string | null
|
|
isActive: boolean
|
|
createdAt: Date
|
|
updatedAt: Date
|
|
}, ExtArgs["result"]["customerRepresentative"]>
|
|
composites: {}
|
|
}
|
|
|
|
type CustomerRepresentativeGetPayload<S extends boolean | null | undefined | CustomerRepresentativeDefaultArgs> = $Result.GetResult<Prisma.$CustomerRepresentativePayload, S>
|
|
|
|
type CustomerRepresentativeCountArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> =
|
|
Omit<CustomerRepresentativeFindManyArgs, 'select' | 'include' | 'distinct'> & {
|
|
select?: CustomerRepresentativeCountAggregateInputType | true
|
|
}
|
|
|
|
export interface CustomerRepresentativeDelegate<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> {
|
|
[K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['CustomerRepresentative'], meta: { name: 'CustomerRepresentative' } }
|
|
/**
|
|
* Find zero or one CustomerRepresentative that matches the filter.
|
|
* @param {CustomerRepresentativeFindUniqueArgs} args - Arguments to find a CustomerRepresentative
|
|
* @example
|
|
* // Get one CustomerRepresentative
|
|
* const customerRepresentative = await prisma.customerRepresentative.findUnique({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findUnique<T extends CustomerRepresentativeFindUniqueArgs>(args: SelectSubset<T, CustomerRepresentativeFindUniqueArgs<ExtArgs>>): Prisma__CustomerRepresentativeClient<$Result.GetResult<Prisma.$CustomerRepresentativePayload<ExtArgs>, T, "findUnique"> | null, null, ExtArgs>
|
|
|
|
/**
|
|
* Find one CustomerRepresentative that matches the filter or throw an error with `error.code='P2025'`
|
|
* if no matches were found.
|
|
* @param {CustomerRepresentativeFindUniqueOrThrowArgs} args - Arguments to find a CustomerRepresentative
|
|
* @example
|
|
* // Get one CustomerRepresentative
|
|
* const customerRepresentative = await prisma.customerRepresentative.findUniqueOrThrow({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findUniqueOrThrow<T extends CustomerRepresentativeFindUniqueOrThrowArgs>(args: SelectSubset<T, CustomerRepresentativeFindUniqueOrThrowArgs<ExtArgs>>): Prisma__CustomerRepresentativeClient<$Result.GetResult<Prisma.$CustomerRepresentativePayload<ExtArgs>, T, "findUniqueOrThrow">, never, ExtArgs>
|
|
|
|
/**
|
|
* Find the first CustomerRepresentative that matches the filter.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {CustomerRepresentativeFindFirstArgs} args - Arguments to find a CustomerRepresentative
|
|
* @example
|
|
* // Get one CustomerRepresentative
|
|
* const customerRepresentative = await prisma.customerRepresentative.findFirst({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findFirst<T extends CustomerRepresentativeFindFirstArgs>(args?: SelectSubset<T, CustomerRepresentativeFindFirstArgs<ExtArgs>>): Prisma__CustomerRepresentativeClient<$Result.GetResult<Prisma.$CustomerRepresentativePayload<ExtArgs>, T, "findFirst"> | null, null, ExtArgs>
|
|
|
|
/**
|
|
* Find the first CustomerRepresentative that matches the filter or
|
|
* throw `PrismaKnownClientError` with `P2025` code if no matches were found.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {CustomerRepresentativeFindFirstOrThrowArgs} args - Arguments to find a CustomerRepresentative
|
|
* @example
|
|
* // Get one CustomerRepresentative
|
|
* const customerRepresentative = await prisma.customerRepresentative.findFirstOrThrow({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findFirstOrThrow<T extends CustomerRepresentativeFindFirstOrThrowArgs>(args?: SelectSubset<T, CustomerRepresentativeFindFirstOrThrowArgs<ExtArgs>>): Prisma__CustomerRepresentativeClient<$Result.GetResult<Prisma.$CustomerRepresentativePayload<ExtArgs>, T, "findFirstOrThrow">, never, ExtArgs>
|
|
|
|
/**
|
|
* Find zero or more CustomerRepresentatives that matches the filter.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {CustomerRepresentativeFindManyArgs} args - Arguments to filter and select certain fields only.
|
|
* @example
|
|
* // Get all CustomerRepresentatives
|
|
* const customerRepresentatives = await prisma.customerRepresentative.findMany()
|
|
*
|
|
* // Get first 10 CustomerRepresentatives
|
|
* const customerRepresentatives = await prisma.customerRepresentative.findMany({ take: 10 })
|
|
*
|
|
* // Only select the `id`
|
|
* const customerRepresentativeWithIdOnly = await prisma.customerRepresentative.findMany({ select: { id: true } })
|
|
*
|
|
*/
|
|
findMany<T extends CustomerRepresentativeFindManyArgs>(args?: SelectSubset<T, CustomerRepresentativeFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$CustomerRepresentativePayload<ExtArgs>, T, "findMany">>
|
|
|
|
/**
|
|
* Create a CustomerRepresentative.
|
|
* @param {CustomerRepresentativeCreateArgs} args - Arguments to create a CustomerRepresentative.
|
|
* @example
|
|
* // Create one CustomerRepresentative
|
|
* const CustomerRepresentative = await prisma.customerRepresentative.create({
|
|
* data: {
|
|
* // ... data to create a CustomerRepresentative
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
create<T extends CustomerRepresentativeCreateArgs>(args: SelectSubset<T, CustomerRepresentativeCreateArgs<ExtArgs>>): Prisma__CustomerRepresentativeClient<$Result.GetResult<Prisma.$CustomerRepresentativePayload<ExtArgs>, T, "create">, never, ExtArgs>
|
|
|
|
/**
|
|
* Create many CustomerRepresentatives.
|
|
* @param {CustomerRepresentativeCreateManyArgs} args - Arguments to create many CustomerRepresentatives.
|
|
* @example
|
|
* // Create many CustomerRepresentatives
|
|
* const customerRepresentative = await prisma.customerRepresentative.createMany({
|
|
* data: [
|
|
* // ... provide data here
|
|
* ]
|
|
* })
|
|
*
|
|
*/
|
|
createMany<T extends CustomerRepresentativeCreateManyArgs>(args?: SelectSubset<T, CustomerRepresentativeCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
|
|
|
|
/**
|
|
* Delete a CustomerRepresentative.
|
|
* @param {CustomerRepresentativeDeleteArgs} args - Arguments to delete one CustomerRepresentative.
|
|
* @example
|
|
* // Delete one CustomerRepresentative
|
|
* const CustomerRepresentative = await prisma.customerRepresentative.delete({
|
|
* where: {
|
|
* // ... filter to delete one CustomerRepresentative
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
delete<T extends CustomerRepresentativeDeleteArgs>(args: SelectSubset<T, CustomerRepresentativeDeleteArgs<ExtArgs>>): Prisma__CustomerRepresentativeClient<$Result.GetResult<Prisma.$CustomerRepresentativePayload<ExtArgs>, T, "delete">, never, ExtArgs>
|
|
|
|
/**
|
|
* Update one CustomerRepresentative.
|
|
* @param {CustomerRepresentativeUpdateArgs} args - Arguments to update one CustomerRepresentative.
|
|
* @example
|
|
* // Update one CustomerRepresentative
|
|
* const customerRepresentative = await prisma.customerRepresentative.update({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* },
|
|
* data: {
|
|
* // ... provide data here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
update<T extends CustomerRepresentativeUpdateArgs>(args: SelectSubset<T, CustomerRepresentativeUpdateArgs<ExtArgs>>): Prisma__CustomerRepresentativeClient<$Result.GetResult<Prisma.$CustomerRepresentativePayload<ExtArgs>, T, "update">, never, ExtArgs>
|
|
|
|
/**
|
|
* Delete zero or more CustomerRepresentatives.
|
|
* @param {CustomerRepresentativeDeleteManyArgs} args - Arguments to filter CustomerRepresentatives to delete.
|
|
* @example
|
|
* // Delete a few CustomerRepresentatives
|
|
* const { count } = await prisma.customerRepresentative.deleteMany({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
deleteMany<T extends CustomerRepresentativeDeleteManyArgs>(args?: SelectSubset<T, CustomerRepresentativeDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
|
|
|
|
/**
|
|
* Update zero or more CustomerRepresentatives.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {CustomerRepresentativeUpdateManyArgs} args - Arguments to update one or more rows.
|
|
* @example
|
|
* // Update many CustomerRepresentatives
|
|
* const customerRepresentative = await prisma.customerRepresentative.updateMany({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* },
|
|
* data: {
|
|
* // ... provide data here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
updateMany<T extends CustomerRepresentativeUpdateManyArgs>(args: SelectSubset<T, CustomerRepresentativeUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
|
|
|
|
/**
|
|
* Create or update one CustomerRepresentative.
|
|
* @param {CustomerRepresentativeUpsertArgs} args - Arguments to update or create a CustomerRepresentative.
|
|
* @example
|
|
* // Update or create a CustomerRepresentative
|
|
* const customerRepresentative = await prisma.customerRepresentative.upsert({
|
|
* create: {
|
|
* // ... data to create a CustomerRepresentative
|
|
* },
|
|
* update: {
|
|
* // ... in case it already exists, update
|
|
* },
|
|
* where: {
|
|
* // ... the filter for the CustomerRepresentative we want to update
|
|
* }
|
|
* })
|
|
*/
|
|
upsert<T extends CustomerRepresentativeUpsertArgs>(args: SelectSubset<T, CustomerRepresentativeUpsertArgs<ExtArgs>>): Prisma__CustomerRepresentativeClient<$Result.GetResult<Prisma.$CustomerRepresentativePayload<ExtArgs>, T, "upsert">, never, ExtArgs>
|
|
|
|
|
|
/**
|
|
* Count the number of CustomerRepresentatives.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {CustomerRepresentativeCountArgs} args - Arguments to filter CustomerRepresentatives to count.
|
|
* @example
|
|
* // Count the number of CustomerRepresentatives
|
|
* const count = await prisma.customerRepresentative.count({
|
|
* where: {
|
|
* // ... the filter for the CustomerRepresentatives we want to count
|
|
* }
|
|
* })
|
|
**/
|
|
count<T extends CustomerRepresentativeCountArgs>(
|
|
args?: Subset<T, CustomerRepresentativeCountArgs>,
|
|
): Prisma.PrismaPromise<
|
|
T extends $Utils.Record<'select', any>
|
|
? T['select'] extends true
|
|
? number
|
|
: GetScalarType<T['select'], CustomerRepresentativeCountAggregateOutputType>
|
|
: number
|
|
>
|
|
|
|
/**
|
|
* Allows you to perform aggregations operations on a CustomerRepresentative.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {CustomerRepresentativeAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
|
|
* @example
|
|
* // Ordered by age ascending
|
|
* // Where email contains prisma.io
|
|
* // Limited to the 10 users
|
|
* const aggregations = await prisma.user.aggregate({
|
|
* _avg: {
|
|
* age: true,
|
|
* },
|
|
* where: {
|
|
* email: {
|
|
* contains: "prisma.io",
|
|
* },
|
|
* },
|
|
* orderBy: {
|
|
* age: "asc",
|
|
* },
|
|
* take: 10,
|
|
* })
|
|
**/
|
|
aggregate<T extends CustomerRepresentativeAggregateArgs>(args: Subset<T, CustomerRepresentativeAggregateArgs>): Prisma.PrismaPromise<GetCustomerRepresentativeAggregateType<T>>
|
|
|
|
/**
|
|
* Group by CustomerRepresentative.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {CustomerRepresentativeGroupByArgs} args - Group by arguments.
|
|
* @example
|
|
* // Group by city, order by createdAt, get count
|
|
* const result = await prisma.user.groupBy({
|
|
* by: ['city', 'createdAt'],
|
|
* orderBy: {
|
|
* createdAt: true
|
|
* },
|
|
* _count: {
|
|
* _all: true
|
|
* },
|
|
* })
|
|
*
|
|
**/
|
|
groupBy<
|
|
T extends CustomerRepresentativeGroupByArgs,
|
|
HasSelectOrTake extends Or<
|
|
Extends<'skip', Keys<T>>,
|
|
Extends<'take', Keys<T>>
|
|
>,
|
|
OrderByArg extends True extends HasSelectOrTake
|
|
? { orderBy: CustomerRepresentativeGroupByArgs['orderBy'] }
|
|
: { orderBy?: CustomerRepresentativeGroupByArgs['orderBy'] },
|
|
OrderFields extends ExcludeUnderscoreKeys<Keys<MaybeTupleToUnion<T['orderBy']>>>,
|
|
ByFields extends MaybeTupleToUnion<T['by']>,
|
|
ByValid extends Has<ByFields, OrderFields>,
|
|
HavingFields extends GetHavingFields<T['having']>,
|
|
HavingValid extends Has<ByFields, HavingFields>,
|
|
ByEmpty extends T['by'] extends never[] ? True : False,
|
|
InputErrors extends ByEmpty extends True
|
|
? `Error: "by" must not be empty.`
|
|
: HavingValid extends False
|
|
? {
|
|
[P in HavingFields]: P extends ByFields
|
|
? never
|
|
: P extends string
|
|
? `Error: Field "${P}" used in "having" needs to be provided in "by".`
|
|
: [
|
|
Error,
|
|
'Field ',
|
|
P,
|
|
` in "having" needs to be provided in "by"`,
|
|
]
|
|
}[HavingFields]
|
|
: 'take' extends Keys<T>
|
|
? 'orderBy' extends Keys<T>
|
|
? ByValid extends True
|
|
? {}
|
|
: {
|
|
[P in OrderFields]: P extends ByFields
|
|
? never
|
|
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
|
|
}[OrderFields]
|
|
: 'Error: If you provide "take", you also need to provide "orderBy"'
|
|
: 'skip' extends Keys<T>
|
|
? 'orderBy' extends Keys<T>
|
|
? ByValid extends True
|
|
? {}
|
|
: {
|
|
[P in OrderFields]: P extends ByFields
|
|
? never
|
|
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
|
|
}[OrderFields]
|
|
: 'Error: If you provide "skip", you also need to provide "orderBy"'
|
|
: ByValid extends True
|
|
? {}
|
|
: {
|
|
[P in OrderFields]: P extends ByFields
|
|
? never
|
|
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
|
|
}[OrderFields]
|
|
>(args: SubsetIntersection<T, CustomerRepresentativeGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetCustomerRepresentativeGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
|
|
/**
|
|
* Fields of the CustomerRepresentative model
|
|
*/
|
|
readonly fields: CustomerRepresentativeFieldRefs;
|
|
}
|
|
|
|
/**
|
|
* The delegate class that acts as a "Promise-like" for CustomerRepresentative.
|
|
* Why is this prefixed with `Prisma__`?
|
|
* Because we want to prevent naming conflicts as mentioned in
|
|
* https://github.com/prisma/prisma-client-js/issues/707
|
|
*/
|
|
export interface Prisma__CustomerRepresentativeClient<T, Null = never, ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> extends Prisma.PrismaPromise<T> {
|
|
readonly [Symbol.toStringTag]: "PrismaPromise"
|
|
customer<T extends CustomerDefaultArgs<ExtArgs> = {}>(args?: Subset<T, CustomerDefaultArgs<ExtArgs>>): Prisma__CustomerClient<$Result.GetResult<Prisma.$CustomerPayload<ExtArgs>, T, "findUniqueOrThrow"> | Null, Null, ExtArgs>
|
|
representative<T extends CustomerDefaultArgs<ExtArgs> = {}>(args?: Subset<T, CustomerDefaultArgs<ExtArgs>>): Prisma__CustomerClient<$Result.GetResult<Prisma.$CustomerPayload<ExtArgs>, T, "findUniqueOrThrow"> | Null, Null, ExtArgs>
|
|
/**
|
|
* Attaches callbacks for the resolution and/or rejection of the Promise.
|
|
* @param onfulfilled The callback to execute when the Promise is resolved.
|
|
* @param onrejected The callback to execute when the Promise is rejected.
|
|
* @returns A Promise for the completion of which ever callback is executed.
|
|
*/
|
|
then<TResult1 = T, TResult2 = never>(onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined | null): $Utils.JsPromise<TResult1 | TResult2>
|
|
/**
|
|
* Attaches a callback for only the rejection of the Promise.
|
|
* @param onrejected The callback to execute when the Promise is rejected.
|
|
* @returns A Promise for the completion of the callback.
|
|
*/
|
|
catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): $Utils.JsPromise<T | TResult>
|
|
/**
|
|
* Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
|
|
* resolved value cannot be modified from the callback.
|
|
* @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
|
|
* @returns A Promise for the completion of the callback.
|
|
*/
|
|
finally(onfinally?: (() => void) | undefined | null): $Utils.JsPromise<T>
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
* Fields of the CustomerRepresentative model
|
|
*/
|
|
interface CustomerRepresentativeFieldRefs {
|
|
readonly id: FieldRef<"CustomerRepresentative", 'Int'>
|
|
readonly customerId: FieldRef<"CustomerRepresentative", 'Int'>
|
|
readonly representativeId: FieldRef<"CustomerRepresentative", 'Int'>
|
|
readonly notes: FieldRef<"CustomerRepresentative", 'String'>
|
|
readonly isActive: FieldRef<"CustomerRepresentative", 'Boolean'>
|
|
readonly createdAt: FieldRef<"CustomerRepresentative", 'DateTime'>
|
|
readonly updatedAt: FieldRef<"CustomerRepresentative", 'DateTime'>
|
|
}
|
|
|
|
|
|
// Custom InputTypes
|
|
/**
|
|
* CustomerRepresentative findUnique
|
|
*/
|
|
export type CustomerRepresentativeFindUniqueArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the CustomerRepresentative
|
|
*/
|
|
select?: CustomerRepresentativeSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: CustomerRepresentativeInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which CustomerRepresentative to fetch.
|
|
*/
|
|
where: CustomerRepresentativeWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* CustomerRepresentative findUniqueOrThrow
|
|
*/
|
|
export type CustomerRepresentativeFindUniqueOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the CustomerRepresentative
|
|
*/
|
|
select?: CustomerRepresentativeSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: CustomerRepresentativeInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which CustomerRepresentative to fetch.
|
|
*/
|
|
where: CustomerRepresentativeWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* CustomerRepresentative findFirst
|
|
*/
|
|
export type CustomerRepresentativeFindFirstArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the CustomerRepresentative
|
|
*/
|
|
select?: CustomerRepresentativeSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: CustomerRepresentativeInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which CustomerRepresentative to fetch.
|
|
*/
|
|
where?: CustomerRepresentativeWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of CustomerRepresentatives to fetch.
|
|
*/
|
|
orderBy?: CustomerRepresentativeOrderByWithRelationInput | CustomerRepresentativeOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for searching for CustomerRepresentatives.
|
|
*/
|
|
cursor?: CustomerRepresentativeWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` CustomerRepresentatives from the position of the cursor.
|
|
*/
|
|
take?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Skip the first `n` CustomerRepresentatives.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
*
|
|
* Filter by unique combinations of CustomerRepresentatives.
|
|
*/
|
|
distinct?: CustomerRepresentativeScalarFieldEnum | CustomerRepresentativeScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* CustomerRepresentative findFirstOrThrow
|
|
*/
|
|
export type CustomerRepresentativeFindFirstOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the CustomerRepresentative
|
|
*/
|
|
select?: CustomerRepresentativeSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: CustomerRepresentativeInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which CustomerRepresentative to fetch.
|
|
*/
|
|
where?: CustomerRepresentativeWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of CustomerRepresentatives to fetch.
|
|
*/
|
|
orderBy?: CustomerRepresentativeOrderByWithRelationInput | CustomerRepresentativeOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for searching for CustomerRepresentatives.
|
|
*/
|
|
cursor?: CustomerRepresentativeWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` CustomerRepresentatives from the position of the cursor.
|
|
*/
|
|
take?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Skip the first `n` CustomerRepresentatives.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
*
|
|
* Filter by unique combinations of CustomerRepresentatives.
|
|
*/
|
|
distinct?: CustomerRepresentativeScalarFieldEnum | CustomerRepresentativeScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* CustomerRepresentative findMany
|
|
*/
|
|
export type CustomerRepresentativeFindManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the CustomerRepresentative
|
|
*/
|
|
select?: CustomerRepresentativeSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: CustomerRepresentativeInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which CustomerRepresentatives to fetch.
|
|
*/
|
|
where?: CustomerRepresentativeWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of CustomerRepresentatives to fetch.
|
|
*/
|
|
orderBy?: CustomerRepresentativeOrderByWithRelationInput | CustomerRepresentativeOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for listing CustomerRepresentatives.
|
|
*/
|
|
cursor?: CustomerRepresentativeWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` CustomerRepresentatives from the position of the cursor.
|
|
*/
|
|
take?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Skip the first `n` CustomerRepresentatives.
|
|
*/
|
|
skip?: number
|
|
distinct?: CustomerRepresentativeScalarFieldEnum | CustomerRepresentativeScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* CustomerRepresentative create
|
|
*/
|
|
export type CustomerRepresentativeCreateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the CustomerRepresentative
|
|
*/
|
|
select?: CustomerRepresentativeSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: CustomerRepresentativeInclude<ExtArgs> | null
|
|
/**
|
|
* The data needed to create a CustomerRepresentative.
|
|
*/
|
|
data: XOR<CustomerRepresentativeCreateInput, CustomerRepresentativeUncheckedCreateInput>
|
|
}
|
|
|
|
/**
|
|
* CustomerRepresentative createMany
|
|
*/
|
|
export type CustomerRepresentativeCreateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* The data used to create many CustomerRepresentatives.
|
|
*/
|
|
data: CustomerRepresentativeCreateManyInput | CustomerRepresentativeCreateManyInput[]
|
|
skipDuplicates?: boolean
|
|
}
|
|
|
|
/**
|
|
* CustomerRepresentative update
|
|
*/
|
|
export type CustomerRepresentativeUpdateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the CustomerRepresentative
|
|
*/
|
|
select?: CustomerRepresentativeSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: CustomerRepresentativeInclude<ExtArgs> | null
|
|
/**
|
|
* The data needed to update a CustomerRepresentative.
|
|
*/
|
|
data: XOR<CustomerRepresentativeUpdateInput, CustomerRepresentativeUncheckedUpdateInput>
|
|
/**
|
|
* Choose, which CustomerRepresentative to update.
|
|
*/
|
|
where: CustomerRepresentativeWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* CustomerRepresentative updateMany
|
|
*/
|
|
export type CustomerRepresentativeUpdateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* The data used to update CustomerRepresentatives.
|
|
*/
|
|
data: XOR<CustomerRepresentativeUpdateManyMutationInput, CustomerRepresentativeUncheckedUpdateManyInput>
|
|
/**
|
|
* Filter which CustomerRepresentatives to update
|
|
*/
|
|
where?: CustomerRepresentativeWhereInput
|
|
}
|
|
|
|
/**
|
|
* CustomerRepresentative upsert
|
|
*/
|
|
export type CustomerRepresentativeUpsertArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the CustomerRepresentative
|
|
*/
|
|
select?: CustomerRepresentativeSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: CustomerRepresentativeInclude<ExtArgs> | null
|
|
/**
|
|
* The filter to search for the CustomerRepresentative to update in case it exists.
|
|
*/
|
|
where: CustomerRepresentativeWhereUniqueInput
|
|
/**
|
|
* In case the CustomerRepresentative found by the `where` argument doesn't exist, create a new CustomerRepresentative with this data.
|
|
*/
|
|
create: XOR<CustomerRepresentativeCreateInput, CustomerRepresentativeUncheckedCreateInput>
|
|
/**
|
|
* In case the CustomerRepresentative was found with the provided `where` argument, update it with this data.
|
|
*/
|
|
update: XOR<CustomerRepresentativeUpdateInput, CustomerRepresentativeUncheckedUpdateInput>
|
|
}
|
|
|
|
/**
|
|
* CustomerRepresentative delete
|
|
*/
|
|
export type CustomerRepresentativeDeleteArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the CustomerRepresentative
|
|
*/
|
|
select?: CustomerRepresentativeSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: CustomerRepresentativeInclude<ExtArgs> | null
|
|
/**
|
|
* Filter which CustomerRepresentative to delete.
|
|
*/
|
|
where: CustomerRepresentativeWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* CustomerRepresentative deleteMany
|
|
*/
|
|
export type CustomerRepresentativeDeleteManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Filter which CustomerRepresentatives to delete
|
|
*/
|
|
where?: CustomerRepresentativeWhereInput
|
|
}
|
|
|
|
/**
|
|
* CustomerRepresentative without action
|
|
*/
|
|
export type CustomerRepresentativeDefaultArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the CustomerRepresentative
|
|
*/
|
|
select?: CustomerRepresentativeSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: CustomerRepresentativeInclude<ExtArgs> | null
|
|
}
|
|
|
|
|
|
/**
|
|
* Model Address
|
|
*/
|
|
|
|
export type AggregateAddress = {
|
|
_count: AddressCountAggregateOutputType | null
|
|
_avg: AddressAvgAggregateOutputType | null
|
|
_sum: AddressSumAggregateOutputType | null
|
|
_min: AddressMinAggregateOutputType | null
|
|
_max: AddressMaxAggregateOutputType | null
|
|
}
|
|
|
|
export type AddressAvgAggregateOutputType = {
|
|
id: number | null
|
|
customerId: number | null
|
|
}
|
|
|
|
export type AddressSumAggregateOutputType = {
|
|
id: number | null
|
|
customerId: number | null
|
|
}
|
|
|
|
export type AddressMinAggregateOutputType = {
|
|
id: number | null
|
|
customerId: number | null
|
|
type: $Enums.AddressType | null
|
|
street: string | null
|
|
houseNumber: string | null
|
|
postalCode: string | null
|
|
city: string | null
|
|
country: string | null
|
|
isDefault: boolean | null
|
|
createdAt: Date | null
|
|
updatedAt: Date | null
|
|
}
|
|
|
|
export type AddressMaxAggregateOutputType = {
|
|
id: number | null
|
|
customerId: number | null
|
|
type: $Enums.AddressType | null
|
|
street: string | null
|
|
houseNumber: string | null
|
|
postalCode: string | null
|
|
city: string | null
|
|
country: string | null
|
|
isDefault: boolean | null
|
|
createdAt: Date | null
|
|
updatedAt: Date | null
|
|
}
|
|
|
|
export type AddressCountAggregateOutputType = {
|
|
id: number
|
|
customerId: number
|
|
type: number
|
|
street: number
|
|
houseNumber: number
|
|
postalCode: number
|
|
city: number
|
|
country: number
|
|
isDefault: number
|
|
createdAt: number
|
|
updatedAt: number
|
|
_all: number
|
|
}
|
|
|
|
|
|
export type AddressAvgAggregateInputType = {
|
|
id?: true
|
|
customerId?: true
|
|
}
|
|
|
|
export type AddressSumAggregateInputType = {
|
|
id?: true
|
|
customerId?: true
|
|
}
|
|
|
|
export type AddressMinAggregateInputType = {
|
|
id?: true
|
|
customerId?: true
|
|
type?: true
|
|
street?: true
|
|
houseNumber?: true
|
|
postalCode?: true
|
|
city?: true
|
|
country?: true
|
|
isDefault?: true
|
|
createdAt?: true
|
|
updatedAt?: true
|
|
}
|
|
|
|
export type AddressMaxAggregateInputType = {
|
|
id?: true
|
|
customerId?: true
|
|
type?: true
|
|
street?: true
|
|
houseNumber?: true
|
|
postalCode?: true
|
|
city?: true
|
|
country?: true
|
|
isDefault?: true
|
|
createdAt?: true
|
|
updatedAt?: true
|
|
}
|
|
|
|
export type AddressCountAggregateInputType = {
|
|
id?: true
|
|
customerId?: true
|
|
type?: true
|
|
street?: true
|
|
houseNumber?: true
|
|
postalCode?: true
|
|
city?: true
|
|
country?: true
|
|
isDefault?: true
|
|
createdAt?: true
|
|
updatedAt?: true
|
|
_all?: true
|
|
}
|
|
|
|
export type AddressAggregateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Filter which Address to aggregate.
|
|
*/
|
|
where?: AddressWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of Addresses to fetch.
|
|
*/
|
|
orderBy?: AddressOrderByWithRelationInput | AddressOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the start position
|
|
*/
|
|
cursor?: AddressWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` Addresses from the position of the cursor.
|
|
*/
|
|
take?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Skip the first `n` Addresses.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Count returned Addresses
|
|
**/
|
|
_count?: true | AddressCountAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to average
|
|
**/
|
|
_avg?: AddressAvgAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to sum
|
|
**/
|
|
_sum?: AddressSumAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to find the minimum value
|
|
**/
|
|
_min?: AddressMinAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to find the maximum value
|
|
**/
|
|
_max?: AddressMaxAggregateInputType
|
|
}
|
|
|
|
export type GetAddressAggregateType<T extends AddressAggregateArgs> = {
|
|
[P in keyof T & keyof AggregateAddress]: P extends '_count' | 'count'
|
|
? T[P] extends true
|
|
? number
|
|
: GetScalarType<T[P], AggregateAddress[P]>
|
|
: GetScalarType<T[P], AggregateAddress[P]>
|
|
}
|
|
|
|
|
|
|
|
|
|
export type AddressGroupByArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
where?: AddressWhereInput
|
|
orderBy?: AddressOrderByWithAggregationInput | AddressOrderByWithAggregationInput[]
|
|
by: AddressScalarFieldEnum[] | AddressScalarFieldEnum
|
|
having?: AddressScalarWhereWithAggregatesInput
|
|
take?: number
|
|
skip?: number
|
|
_count?: AddressCountAggregateInputType | true
|
|
_avg?: AddressAvgAggregateInputType
|
|
_sum?: AddressSumAggregateInputType
|
|
_min?: AddressMinAggregateInputType
|
|
_max?: AddressMaxAggregateInputType
|
|
}
|
|
|
|
export type AddressGroupByOutputType = {
|
|
id: number
|
|
customerId: number
|
|
type: $Enums.AddressType
|
|
street: string
|
|
houseNumber: string
|
|
postalCode: string
|
|
city: string
|
|
country: string
|
|
isDefault: boolean
|
|
createdAt: Date
|
|
updatedAt: Date
|
|
_count: AddressCountAggregateOutputType | null
|
|
_avg: AddressAvgAggregateOutputType | null
|
|
_sum: AddressSumAggregateOutputType | null
|
|
_min: AddressMinAggregateOutputType | null
|
|
_max: AddressMaxAggregateOutputType | null
|
|
}
|
|
|
|
type GetAddressGroupByPayload<T extends AddressGroupByArgs> = Prisma.PrismaPromise<
|
|
Array<
|
|
PickEnumerable<AddressGroupByOutputType, T['by']> &
|
|
{
|
|
[P in ((keyof T) & (keyof AddressGroupByOutputType))]: P extends '_count'
|
|
? T[P] extends boolean
|
|
? number
|
|
: GetScalarType<T[P], AddressGroupByOutputType[P]>
|
|
: GetScalarType<T[P], AddressGroupByOutputType[P]>
|
|
}
|
|
>
|
|
>
|
|
|
|
|
|
export type AddressSelect<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
|
|
id?: boolean
|
|
customerId?: boolean
|
|
type?: boolean
|
|
street?: boolean
|
|
houseNumber?: boolean
|
|
postalCode?: boolean
|
|
city?: boolean
|
|
country?: boolean
|
|
isDefault?: boolean
|
|
createdAt?: boolean
|
|
updatedAt?: boolean
|
|
customer?: boolean | CustomerDefaultArgs<ExtArgs>
|
|
contractsAsDelivery?: boolean | Address$contractsAsDeliveryArgs<ExtArgs>
|
|
contractsAsBilling?: boolean | Address$contractsAsBillingArgs<ExtArgs>
|
|
_count?: boolean | AddressCountOutputTypeDefaultArgs<ExtArgs>
|
|
}, ExtArgs["result"]["address"]>
|
|
|
|
|
|
export type AddressSelectScalar = {
|
|
id?: boolean
|
|
customerId?: boolean
|
|
type?: boolean
|
|
street?: boolean
|
|
houseNumber?: boolean
|
|
postalCode?: boolean
|
|
city?: boolean
|
|
country?: boolean
|
|
isDefault?: boolean
|
|
createdAt?: boolean
|
|
updatedAt?: boolean
|
|
}
|
|
|
|
export type AddressInclude<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
customer?: boolean | CustomerDefaultArgs<ExtArgs>
|
|
contractsAsDelivery?: boolean | Address$contractsAsDeliveryArgs<ExtArgs>
|
|
contractsAsBilling?: boolean | Address$contractsAsBillingArgs<ExtArgs>
|
|
_count?: boolean | AddressCountOutputTypeDefaultArgs<ExtArgs>
|
|
}
|
|
|
|
export type $AddressPayload<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
name: "Address"
|
|
objects: {
|
|
customer: Prisma.$CustomerPayload<ExtArgs>
|
|
contractsAsDelivery: Prisma.$ContractPayload<ExtArgs>[]
|
|
contractsAsBilling: Prisma.$ContractPayload<ExtArgs>[]
|
|
}
|
|
scalars: $Extensions.GetPayloadResult<{
|
|
id: number
|
|
customerId: number
|
|
type: $Enums.AddressType
|
|
street: string
|
|
houseNumber: string
|
|
postalCode: string
|
|
city: string
|
|
country: string
|
|
isDefault: boolean
|
|
createdAt: Date
|
|
updatedAt: Date
|
|
}, ExtArgs["result"]["address"]>
|
|
composites: {}
|
|
}
|
|
|
|
type AddressGetPayload<S extends boolean | null | undefined | AddressDefaultArgs> = $Result.GetResult<Prisma.$AddressPayload, S>
|
|
|
|
type AddressCountArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> =
|
|
Omit<AddressFindManyArgs, 'select' | 'include' | 'distinct'> & {
|
|
select?: AddressCountAggregateInputType | true
|
|
}
|
|
|
|
export interface AddressDelegate<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> {
|
|
[K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['Address'], meta: { name: 'Address' } }
|
|
/**
|
|
* Find zero or one Address that matches the filter.
|
|
* @param {AddressFindUniqueArgs} args - Arguments to find a Address
|
|
* @example
|
|
* // Get one Address
|
|
* const address = await prisma.address.findUnique({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findUnique<T extends AddressFindUniqueArgs>(args: SelectSubset<T, AddressFindUniqueArgs<ExtArgs>>): Prisma__AddressClient<$Result.GetResult<Prisma.$AddressPayload<ExtArgs>, T, "findUnique"> | null, null, ExtArgs>
|
|
|
|
/**
|
|
* Find one Address that matches the filter or throw an error with `error.code='P2025'`
|
|
* if no matches were found.
|
|
* @param {AddressFindUniqueOrThrowArgs} args - Arguments to find a Address
|
|
* @example
|
|
* // Get one Address
|
|
* const address = await prisma.address.findUniqueOrThrow({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findUniqueOrThrow<T extends AddressFindUniqueOrThrowArgs>(args: SelectSubset<T, AddressFindUniqueOrThrowArgs<ExtArgs>>): Prisma__AddressClient<$Result.GetResult<Prisma.$AddressPayload<ExtArgs>, T, "findUniqueOrThrow">, never, ExtArgs>
|
|
|
|
/**
|
|
* Find the first Address that matches the filter.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {AddressFindFirstArgs} args - Arguments to find a Address
|
|
* @example
|
|
* // Get one Address
|
|
* const address = await prisma.address.findFirst({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findFirst<T extends AddressFindFirstArgs>(args?: SelectSubset<T, AddressFindFirstArgs<ExtArgs>>): Prisma__AddressClient<$Result.GetResult<Prisma.$AddressPayload<ExtArgs>, T, "findFirst"> | null, null, ExtArgs>
|
|
|
|
/**
|
|
* Find the first Address that matches the filter or
|
|
* throw `PrismaKnownClientError` with `P2025` code if no matches were found.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {AddressFindFirstOrThrowArgs} args - Arguments to find a Address
|
|
* @example
|
|
* // Get one Address
|
|
* const address = await prisma.address.findFirstOrThrow({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findFirstOrThrow<T extends AddressFindFirstOrThrowArgs>(args?: SelectSubset<T, AddressFindFirstOrThrowArgs<ExtArgs>>): Prisma__AddressClient<$Result.GetResult<Prisma.$AddressPayload<ExtArgs>, T, "findFirstOrThrow">, never, ExtArgs>
|
|
|
|
/**
|
|
* Find zero or more Addresses that matches the filter.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {AddressFindManyArgs} args - Arguments to filter and select certain fields only.
|
|
* @example
|
|
* // Get all Addresses
|
|
* const addresses = await prisma.address.findMany()
|
|
*
|
|
* // Get first 10 Addresses
|
|
* const addresses = await prisma.address.findMany({ take: 10 })
|
|
*
|
|
* // Only select the `id`
|
|
* const addressWithIdOnly = await prisma.address.findMany({ select: { id: true } })
|
|
*
|
|
*/
|
|
findMany<T extends AddressFindManyArgs>(args?: SelectSubset<T, AddressFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$AddressPayload<ExtArgs>, T, "findMany">>
|
|
|
|
/**
|
|
* Create a Address.
|
|
* @param {AddressCreateArgs} args - Arguments to create a Address.
|
|
* @example
|
|
* // Create one Address
|
|
* const Address = await prisma.address.create({
|
|
* data: {
|
|
* // ... data to create a Address
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
create<T extends AddressCreateArgs>(args: SelectSubset<T, AddressCreateArgs<ExtArgs>>): Prisma__AddressClient<$Result.GetResult<Prisma.$AddressPayload<ExtArgs>, T, "create">, never, ExtArgs>
|
|
|
|
/**
|
|
* Create many Addresses.
|
|
* @param {AddressCreateManyArgs} args - Arguments to create many Addresses.
|
|
* @example
|
|
* // Create many Addresses
|
|
* const address = await prisma.address.createMany({
|
|
* data: [
|
|
* // ... provide data here
|
|
* ]
|
|
* })
|
|
*
|
|
*/
|
|
createMany<T extends AddressCreateManyArgs>(args?: SelectSubset<T, AddressCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
|
|
|
|
/**
|
|
* Delete a Address.
|
|
* @param {AddressDeleteArgs} args - Arguments to delete one Address.
|
|
* @example
|
|
* // Delete one Address
|
|
* const Address = await prisma.address.delete({
|
|
* where: {
|
|
* // ... filter to delete one Address
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
delete<T extends AddressDeleteArgs>(args: SelectSubset<T, AddressDeleteArgs<ExtArgs>>): Prisma__AddressClient<$Result.GetResult<Prisma.$AddressPayload<ExtArgs>, T, "delete">, never, ExtArgs>
|
|
|
|
/**
|
|
* Update one Address.
|
|
* @param {AddressUpdateArgs} args - Arguments to update one Address.
|
|
* @example
|
|
* // Update one Address
|
|
* const address = await prisma.address.update({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* },
|
|
* data: {
|
|
* // ... provide data here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
update<T extends AddressUpdateArgs>(args: SelectSubset<T, AddressUpdateArgs<ExtArgs>>): Prisma__AddressClient<$Result.GetResult<Prisma.$AddressPayload<ExtArgs>, T, "update">, never, ExtArgs>
|
|
|
|
/**
|
|
* Delete zero or more Addresses.
|
|
* @param {AddressDeleteManyArgs} args - Arguments to filter Addresses to delete.
|
|
* @example
|
|
* // Delete a few Addresses
|
|
* const { count } = await prisma.address.deleteMany({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
deleteMany<T extends AddressDeleteManyArgs>(args?: SelectSubset<T, AddressDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
|
|
|
|
/**
|
|
* Update zero or more Addresses.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {AddressUpdateManyArgs} args - Arguments to update one or more rows.
|
|
* @example
|
|
* // Update many Addresses
|
|
* const address = await prisma.address.updateMany({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* },
|
|
* data: {
|
|
* // ... provide data here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
updateMany<T extends AddressUpdateManyArgs>(args: SelectSubset<T, AddressUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
|
|
|
|
/**
|
|
* Create or update one Address.
|
|
* @param {AddressUpsertArgs} args - Arguments to update or create a Address.
|
|
* @example
|
|
* // Update or create a Address
|
|
* const address = await prisma.address.upsert({
|
|
* create: {
|
|
* // ... data to create a Address
|
|
* },
|
|
* update: {
|
|
* // ... in case it already exists, update
|
|
* },
|
|
* where: {
|
|
* // ... the filter for the Address we want to update
|
|
* }
|
|
* })
|
|
*/
|
|
upsert<T extends AddressUpsertArgs>(args: SelectSubset<T, AddressUpsertArgs<ExtArgs>>): Prisma__AddressClient<$Result.GetResult<Prisma.$AddressPayload<ExtArgs>, T, "upsert">, never, ExtArgs>
|
|
|
|
|
|
/**
|
|
* Count the number of Addresses.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {AddressCountArgs} args - Arguments to filter Addresses to count.
|
|
* @example
|
|
* // Count the number of Addresses
|
|
* const count = await prisma.address.count({
|
|
* where: {
|
|
* // ... the filter for the Addresses we want to count
|
|
* }
|
|
* })
|
|
**/
|
|
count<T extends AddressCountArgs>(
|
|
args?: Subset<T, AddressCountArgs>,
|
|
): Prisma.PrismaPromise<
|
|
T extends $Utils.Record<'select', any>
|
|
? T['select'] extends true
|
|
? number
|
|
: GetScalarType<T['select'], AddressCountAggregateOutputType>
|
|
: number
|
|
>
|
|
|
|
/**
|
|
* Allows you to perform aggregations operations on a Address.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {AddressAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
|
|
* @example
|
|
* // Ordered by age ascending
|
|
* // Where email contains prisma.io
|
|
* // Limited to the 10 users
|
|
* const aggregations = await prisma.user.aggregate({
|
|
* _avg: {
|
|
* age: true,
|
|
* },
|
|
* where: {
|
|
* email: {
|
|
* contains: "prisma.io",
|
|
* },
|
|
* },
|
|
* orderBy: {
|
|
* age: "asc",
|
|
* },
|
|
* take: 10,
|
|
* })
|
|
**/
|
|
aggregate<T extends AddressAggregateArgs>(args: Subset<T, AddressAggregateArgs>): Prisma.PrismaPromise<GetAddressAggregateType<T>>
|
|
|
|
/**
|
|
* Group by Address.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {AddressGroupByArgs} args - Group by arguments.
|
|
* @example
|
|
* // Group by city, order by createdAt, get count
|
|
* const result = await prisma.user.groupBy({
|
|
* by: ['city', 'createdAt'],
|
|
* orderBy: {
|
|
* createdAt: true
|
|
* },
|
|
* _count: {
|
|
* _all: true
|
|
* },
|
|
* })
|
|
*
|
|
**/
|
|
groupBy<
|
|
T extends AddressGroupByArgs,
|
|
HasSelectOrTake extends Or<
|
|
Extends<'skip', Keys<T>>,
|
|
Extends<'take', Keys<T>>
|
|
>,
|
|
OrderByArg extends True extends HasSelectOrTake
|
|
? { orderBy: AddressGroupByArgs['orderBy'] }
|
|
: { orderBy?: AddressGroupByArgs['orderBy'] },
|
|
OrderFields extends ExcludeUnderscoreKeys<Keys<MaybeTupleToUnion<T['orderBy']>>>,
|
|
ByFields extends MaybeTupleToUnion<T['by']>,
|
|
ByValid extends Has<ByFields, OrderFields>,
|
|
HavingFields extends GetHavingFields<T['having']>,
|
|
HavingValid extends Has<ByFields, HavingFields>,
|
|
ByEmpty extends T['by'] extends never[] ? True : False,
|
|
InputErrors extends ByEmpty extends True
|
|
? `Error: "by" must not be empty.`
|
|
: HavingValid extends False
|
|
? {
|
|
[P in HavingFields]: P extends ByFields
|
|
? never
|
|
: P extends string
|
|
? `Error: Field "${P}" used in "having" needs to be provided in "by".`
|
|
: [
|
|
Error,
|
|
'Field ',
|
|
P,
|
|
` in "having" needs to be provided in "by"`,
|
|
]
|
|
}[HavingFields]
|
|
: 'take' extends Keys<T>
|
|
? 'orderBy' extends Keys<T>
|
|
? ByValid extends True
|
|
? {}
|
|
: {
|
|
[P in OrderFields]: P extends ByFields
|
|
? never
|
|
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
|
|
}[OrderFields]
|
|
: 'Error: If you provide "take", you also need to provide "orderBy"'
|
|
: 'skip' extends Keys<T>
|
|
? 'orderBy' extends Keys<T>
|
|
? ByValid extends True
|
|
? {}
|
|
: {
|
|
[P in OrderFields]: P extends ByFields
|
|
? never
|
|
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
|
|
}[OrderFields]
|
|
: 'Error: If you provide "skip", you also need to provide "orderBy"'
|
|
: ByValid extends True
|
|
? {}
|
|
: {
|
|
[P in OrderFields]: P extends ByFields
|
|
? never
|
|
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
|
|
}[OrderFields]
|
|
>(args: SubsetIntersection<T, AddressGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetAddressGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
|
|
/**
|
|
* Fields of the Address model
|
|
*/
|
|
readonly fields: AddressFieldRefs;
|
|
}
|
|
|
|
/**
|
|
* The delegate class that acts as a "Promise-like" for Address.
|
|
* Why is this prefixed with `Prisma__`?
|
|
* Because we want to prevent naming conflicts as mentioned in
|
|
* https://github.com/prisma/prisma-client-js/issues/707
|
|
*/
|
|
export interface Prisma__AddressClient<T, Null = never, ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> extends Prisma.PrismaPromise<T> {
|
|
readonly [Symbol.toStringTag]: "PrismaPromise"
|
|
customer<T extends CustomerDefaultArgs<ExtArgs> = {}>(args?: Subset<T, CustomerDefaultArgs<ExtArgs>>): Prisma__CustomerClient<$Result.GetResult<Prisma.$CustomerPayload<ExtArgs>, T, "findUniqueOrThrow"> | Null, Null, ExtArgs>
|
|
contractsAsDelivery<T extends Address$contractsAsDeliveryArgs<ExtArgs> = {}>(args?: Subset<T, Address$contractsAsDeliveryArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$ContractPayload<ExtArgs>, T, "findMany"> | Null>
|
|
contractsAsBilling<T extends Address$contractsAsBillingArgs<ExtArgs> = {}>(args?: Subset<T, Address$contractsAsBillingArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$ContractPayload<ExtArgs>, T, "findMany"> | Null>
|
|
/**
|
|
* Attaches callbacks for the resolution and/or rejection of the Promise.
|
|
* @param onfulfilled The callback to execute when the Promise is resolved.
|
|
* @param onrejected The callback to execute when the Promise is rejected.
|
|
* @returns A Promise for the completion of which ever callback is executed.
|
|
*/
|
|
then<TResult1 = T, TResult2 = never>(onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined | null): $Utils.JsPromise<TResult1 | TResult2>
|
|
/**
|
|
* Attaches a callback for only the rejection of the Promise.
|
|
* @param onrejected The callback to execute when the Promise is rejected.
|
|
* @returns A Promise for the completion of the callback.
|
|
*/
|
|
catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): $Utils.JsPromise<T | TResult>
|
|
/**
|
|
* Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
|
|
* resolved value cannot be modified from the callback.
|
|
* @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
|
|
* @returns A Promise for the completion of the callback.
|
|
*/
|
|
finally(onfinally?: (() => void) | undefined | null): $Utils.JsPromise<T>
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
* Fields of the Address model
|
|
*/
|
|
interface AddressFieldRefs {
|
|
readonly id: FieldRef<"Address", 'Int'>
|
|
readonly customerId: FieldRef<"Address", 'Int'>
|
|
readonly type: FieldRef<"Address", 'AddressType'>
|
|
readonly street: FieldRef<"Address", 'String'>
|
|
readonly houseNumber: FieldRef<"Address", 'String'>
|
|
readonly postalCode: FieldRef<"Address", 'String'>
|
|
readonly city: FieldRef<"Address", 'String'>
|
|
readonly country: FieldRef<"Address", 'String'>
|
|
readonly isDefault: FieldRef<"Address", 'Boolean'>
|
|
readonly createdAt: FieldRef<"Address", 'DateTime'>
|
|
readonly updatedAt: FieldRef<"Address", 'DateTime'>
|
|
}
|
|
|
|
|
|
// Custom InputTypes
|
|
/**
|
|
* Address findUnique
|
|
*/
|
|
export type AddressFindUniqueArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the Address
|
|
*/
|
|
select?: AddressSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: AddressInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which Address to fetch.
|
|
*/
|
|
where: AddressWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* Address findUniqueOrThrow
|
|
*/
|
|
export type AddressFindUniqueOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the Address
|
|
*/
|
|
select?: AddressSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: AddressInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which Address to fetch.
|
|
*/
|
|
where: AddressWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* Address findFirst
|
|
*/
|
|
export type AddressFindFirstArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the Address
|
|
*/
|
|
select?: AddressSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: AddressInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which Address to fetch.
|
|
*/
|
|
where?: AddressWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of Addresses to fetch.
|
|
*/
|
|
orderBy?: AddressOrderByWithRelationInput | AddressOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for searching for Addresses.
|
|
*/
|
|
cursor?: AddressWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` Addresses from the position of the cursor.
|
|
*/
|
|
take?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Skip the first `n` Addresses.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
*
|
|
* Filter by unique combinations of Addresses.
|
|
*/
|
|
distinct?: AddressScalarFieldEnum | AddressScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* Address findFirstOrThrow
|
|
*/
|
|
export type AddressFindFirstOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the Address
|
|
*/
|
|
select?: AddressSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: AddressInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which Address to fetch.
|
|
*/
|
|
where?: AddressWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of Addresses to fetch.
|
|
*/
|
|
orderBy?: AddressOrderByWithRelationInput | AddressOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for searching for Addresses.
|
|
*/
|
|
cursor?: AddressWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` Addresses from the position of the cursor.
|
|
*/
|
|
take?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Skip the first `n` Addresses.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
*
|
|
* Filter by unique combinations of Addresses.
|
|
*/
|
|
distinct?: AddressScalarFieldEnum | AddressScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* Address findMany
|
|
*/
|
|
export type AddressFindManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the Address
|
|
*/
|
|
select?: AddressSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: AddressInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which Addresses to fetch.
|
|
*/
|
|
where?: AddressWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of Addresses to fetch.
|
|
*/
|
|
orderBy?: AddressOrderByWithRelationInput | AddressOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for listing Addresses.
|
|
*/
|
|
cursor?: AddressWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` Addresses from the position of the cursor.
|
|
*/
|
|
take?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Skip the first `n` Addresses.
|
|
*/
|
|
skip?: number
|
|
distinct?: AddressScalarFieldEnum | AddressScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* Address create
|
|
*/
|
|
export type AddressCreateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the Address
|
|
*/
|
|
select?: AddressSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: AddressInclude<ExtArgs> | null
|
|
/**
|
|
* The data needed to create a Address.
|
|
*/
|
|
data: XOR<AddressCreateInput, AddressUncheckedCreateInput>
|
|
}
|
|
|
|
/**
|
|
* Address createMany
|
|
*/
|
|
export type AddressCreateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* The data used to create many Addresses.
|
|
*/
|
|
data: AddressCreateManyInput | AddressCreateManyInput[]
|
|
skipDuplicates?: boolean
|
|
}
|
|
|
|
/**
|
|
* Address update
|
|
*/
|
|
export type AddressUpdateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the Address
|
|
*/
|
|
select?: AddressSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: AddressInclude<ExtArgs> | null
|
|
/**
|
|
* The data needed to update a Address.
|
|
*/
|
|
data: XOR<AddressUpdateInput, AddressUncheckedUpdateInput>
|
|
/**
|
|
* Choose, which Address to update.
|
|
*/
|
|
where: AddressWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* Address updateMany
|
|
*/
|
|
export type AddressUpdateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* The data used to update Addresses.
|
|
*/
|
|
data: XOR<AddressUpdateManyMutationInput, AddressUncheckedUpdateManyInput>
|
|
/**
|
|
* Filter which Addresses to update
|
|
*/
|
|
where?: AddressWhereInput
|
|
}
|
|
|
|
/**
|
|
* Address upsert
|
|
*/
|
|
export type AddressUpsertArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the Address
|
|
*/
|
|
select?: AddressSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: AddressInclude<ExtArgs> | null
|
|
/**
|
|
* The filter to search for the Address to update in case it exists.
|
|
*/
|
|
where: AddressWhereUniqueInput
|
|
/**
|
|
* In case the Address found by the `where` argument doesn't exist, create a new Address with this data.
|
|
*/
|
|
create: XOR<AddressCreateInput, AddressUncheckedCreateInput>
|
|
/**
|
|
* In case the Address was found with the provided `where` argument, update it with this data.
|
|
*/
|
|
update: XOR<AddressUpdateInput, AddressUncheckedUpdateInput>
|
|
}
|
|
|
|
/**
|
|
* Address delete
|
|
*/
|
|
export type AddressDeleteArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the Address
|
|
*/
|
|
select?: AddressSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: AddressInclude<ExtArgs> | null
|
|
/**
|
|
* Filter which Address to delete.
|
|
*/
|
|
where: AddressWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* Address deleteMany
|
|
*/
|
|
export type AddressDeleteManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Filter which Addresses to delete
|
|
*/
|
|
where?: AddressWhereInput
|
|
}
|
|
|
|
/**
|
|
* Address.contractsAsDelivery
|
|
*/
|
|
export type Address$contractsAsDeliveryArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the Contract
|
|
*/
|
|
select?: ContractSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: ContractInclude<ExtArgs> | null
|
|
where?: ContractWhereInput
|
|
orderBy?: ContractOrderByWithRelationInput | ContractOrderByWithRelationInput[]
|
|
cursor?: ContractWhereUniqueInput
|
|
take?: number
|
|
skip?: number
|
|
distinct?: ContractScalarFieldEnum | ContractScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* Address.contractsAsBilling
|
|
*/
|
|
export type Address$contractsAsBillingArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the Contract
|
|
*/
|
|
select?: ContractSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: ContractInclude<ExtArgs> | null
|
|
where?: ContractWhereInput
|
|
orderBy?: ContractOrderByWithRelationInput | ContractOrderByWithRelationInput[]
|
|
cursor?: ContractWhereUniqueInput
|
|
take?: number
|
|
skip?: number
|
|
distinct?: ContractScalarFieldEnum | ContractScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* Address without action
|
|
*/
|
|
export type AddressDefaultArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the Address
|
|
*/
|
|
select?: AddressSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: AddressInclude<ExtArgs> | null
|
|
}
|
|
|
|
|
|
/**
|
|
* Model BankCard
|
|
*/
|
|
|
|
export type AggregateBankCard = {
|
|
_count: BankCardCountAggregateOutputType | null
|
|
_avg: BankCardAvgAggregateOutputType | null
|
|
_sum: BankCardSumAggregateOutputType | null
|
|
_min: BankCardMinAggregateOutputType | null
|
|
_max: BankCardMaxAggregateOutputType | null
|
|
}
|
|
|
|
export type BankCardAvgAggregateOutputType = {
|
|
id: number | null
|
|
customerId: number | null
|
|
}
|
|
|
|
export type BankCardSumAggregateOutputType = {
|
|
id: number | null
|
|
customerId: number | null
|
|
}
|
|
|
|
export type BankCardMinAggregateOutputType = {
|
|
id: number | null
|
|
customerId: number | null
|
|
accountHolder: string | null
|
|
iban: string | null
|
|
bic: string | null
|
|
bankName: string | null
|
|
expiryDate: Date | null
|
|
documentPath: string | null
|
|
isActive: boolean | null
|
|
createdAt: Date | null
|
|
updatedAt: Date | null
|
|
}
|
|
|
|
export type BankCardMaxAggregateOutputType = {
|
|
id: number | null
|
|
customerId: number | null
|
|
accountHolder: string | null
|
|
iban: string | null
|
|
bic: string | null
|
|
bankName: string | null
|
|
expiryDate: Date | null
|
|
documentPath: string | null
|
|
isActive: boolean | null
|
|
createdAt: Date | null
|
|
updatedAt: Date | null
|
|
}
|
|
|
|
export type BankCardCountAggregateOutputType = {
|
|
id: number
|
|
customerId: number
|
|
accountHolder: number
|
|
iban: number
|
|
bic: number
|
|
bankName: number
|
|
expiryDate: number
|
|
documentPath: number
|
|
isActive: number
|
|
createdAt: number
|
|
updatedAt: number
|
|
_all: number
|
|
}
|
|
|
|
|
|
export type BankCardAvgAggregateInputType = {
|
|
id?: true
|
|
customerId?: true
|
|
}
|
|
|
|
export type BankCardSumAggregateInputType = {
|
|
id?: true
|
|
customerId?: true
|
|
}
|
|
|
|
export type BankCardMinAggregateInputType = {
|
|
id?: true
|
|
customerId?: true
|
|
accountHolder?: true
|
|
iban?: true
|
|
bic?: true
|
|
bankName?: true
|
|
expiryDate?: true
|
|
documentPath?: true
|
|
isActive?: true
|
|
createdAt?: true
|
|
updatedAt?: true
|
|
}
|
|
|
|
export type BankCardMaxAggregateInputType = {
|
|
id?: true
|
|
customerId?: true
|
|
accountHolder?: true
|
|
iban?: true
|
|
bic?: true
|
|
bankName?: true
|
|
expiryDate?: true
|
|
documentPath?: true
|
|
isActive?: true
|
|
createdAt?: true
|
|
updatedAt?: true
|
|
}
|
|
|
|
export type BankCardCountAggregateInputType = {
|
|
id?: true
|
|
customerId?: true
|
|
accountHolder?: true
|
|
iban?: true
|
|
bic?: true
|
|
bankName?: true
|
|
expiryDate?: true
|
|
documentPath?: true
|
|
isActive?: true
|
|
createdAt?: true
|
|
updatedAt?: true
|
|
_all?: true
|
|
}
|
|
|
|
export type BankCardAggregateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Filter which BankCard to aggregate.
|
|
*/
|
|
where?: BankCardWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of BankCards to fetch.
|
|
*/
|
|
orderBy?: BankCardOrderByWithRelationInput | BankCardOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the start position
|
|
*/
|
|
cursor?: BankCardWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` BankCards from the position of the cursor.
|
|
*/
|
|
take?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Skip the first `n` BankCards.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Count returned BankCards
|
|
**/
|
|
_count?: true | BankCardCountAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to average
|
|
**/
|
|
_avg?: BankCardAvgAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to sum
|
|
**/
|
|
_sum?: BankCardSumAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to find the minimum value
|
|
**/
|
|
_min?: BankCardMinAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to find the maximum value
|
|
**/
|
|
_max?: BankCardMaxAggregateInputType
|
|
}
|
|
|
|
export type GetBankCardAggregateType<T extends BankCardAggregateArgs> = {
|
|
[P in keyof T & keyof AggregateBankCard]: P extends '_count' | 'count'
|
|
? T[P] extends true
|
|
? number
|
|
: GetScalarType<T[P], AggregateBankCard[P]>
|
|
: GetScalarType<T[P], AggregateBankCard[P]>
|
|
}
|
|
|
|
|
|
|
|
|
|
export type BankCardGroupByArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
where?: BankCardWhereInput
|
|
orderBy?: BankCardOrderByWithAggregationInput | BankCardOrderByWithAggregationInput[]
|
|
by: BankCardScalarFieldEnum[] | BankCardScalarFieldEnum
|
|
having?: BankCardScalarWhereWithAggregatesInput
|
|
take?: number
|
|
skip?: number
|
|
_count?: BankCardCountAggregateInputType | true
|
|
_avg?: BankCardAvgAggregateInputType
|
|
_sum?: BankCardSumAggregateInputType
|
|
_min?: BankCardMinAggregateInputType
|
|
_max?: BankCardMaxAggregateInputType
|
|
}
|
|
|
|
export type BankCardGroupByOutputType = {
|
|
id: number
|
|
customerId: number
|
|
accountHolder: string
|
|
iban: string
|
|
bic: string | null
|
|
bankName: string | null
|
|
expiryDate: Date | null
|
|
documentPath: string | null
|
|
isActive: boolean
|
|
createdAt: Date
|
|
updatedAt: Date
|
|
_count: BankCardCountAggregateOutputType | null
|
|
_avg: BankCardAvgAggregateOutputType | null
|
|
_sum: BankCardSumAggregateOutputType | null
|
|
_min: BankCardMinAggregateOutputType | null
|
|
_max: BankCardMaxAggregateOutputType | null
|
|
}
|
|
|
|
type GetBankCardGroupByPayload<T extends BankCardGroupByArgs> = Prisma.PrismaPromise<
|
|
Array<
|
|
PickEnumerable<BankCardGroupByOutputType, T['by']> &
|
|
{
|
|
[P in ((keyof T) & (keyof BankCardGroupByOutputType))]: P extends '_count'
|
|
? T[P] extends boolean
|
|
? number
|
|
: GetScalarType<T[P], BankCardGroupByOutputType[P]>
|
|
: GetScalarType<T[P], BankCardGroupByOutputType[P]>
|
|
}
|
|
>
|
|
>
|
|
|
|
|
|
export type BankCardSelect<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
|
|
id?: boolean
|
|
customerId?: boolean
|
|
accountHolder?: boolean
|
|
iban?: boolean
|
|
bic?: boolean
|
|
bankName?: boolean
|
|
expiryDate?: boolean
|
|
documentPath?: boolean
|
|
isActive?: boolean
|
|
createdAt?: boolean
|
|
updatedAt?: boolean
|
|
customer?: boolean | CustomerDefaultArgs<ExtArgs>
|
|
contracts?: boolean | BankCard$contractsArgs<ExtArgs>
|
|
_count?: boolean | BankCardCountOutputTypeDefaultArgs<ExtArgs>
|
|
}, ExtArgs["result"]["bankCard"]>
|
|
|
|
|
|
export type BankCardSelectScalar = {
|
|
id?: boolean
|
|
customerId?: boolean
|
|
accountHolder?: boolean
|
|
iban?: boolean
|
|
bic?: boolean
|
|
bankName?: boolean
|
|
expiryDate?: boolean
|
|
documentPath?: boolean
|
|
isActive?: boolean
|
|
createdAt?: boolean
|
|
updatedAt?: boolean
|
|
}
|
|
|
|
export type BankCardInclude<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
customer?: boolean | CustomerDefaultArgs<ExtArgs>
|
|
contracts?: boolean | BankCard$contractsArgs<ExtArgs>
|
|
_count?: boolean | BankCardCountOutputTypeDefaultArgs<ExtArgs>
|
|
}
|
|
|
|
export type $BankCardPayload<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
name: "BankCard"
|
|
objects: {
|
|
customer: Prisma.$CustomerPayload<ExtArgs>
|
|
contracts: Prisma.$ContractPayload<ExtArgs>[]
|
|
}
|
|
scalars: $Extensions.GetPayloadResult<{
|
|
id: number
|
|
customerId: number
|
|
accountHolder: string
|
|
iban: string
|
|
bic: string | null
|
|
bankName: string | null
|
|
expiryDate: Date | null
|
|
documentPath: string | null
|
|
isActive: boolean
|
|
createdAt: Date
|
|
updatedAt: Date
|
|
}, ExtArgs["result"]["bankCard"]>
|
|
composites: {}
|
|
}
|
|
|
|
type BankCardGetPayload<S extends boolean | null | undefined | BankCardDefaultArgs> = $Result.GetResult<Prisma.$BankCardPayload, S>
|
|
|
|
type BankCardCountArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> =
|
|
Omit<BankCardFindManyArgs, 'select' | 'include' | 'distinct'> & {
|
|
select?: BankCardCountAggregateInputType | true
|
|
}
|
|
|
|
export interface BankCardDelegate<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> {
|
|
[K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['BankCard'], meta: { name: 'BankCard' } }
|
|
/**
|
|
* Find zero or one BankCard that matches the filter.
|
|
* @param {BankCardFindUniqueArgs} args - Arguments to find a BankCard
|
|
* @example
|
|
* // Get one BankCard
|
|
* const bankCard = await prisma.bankCard.findUnique({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findUnique<T extends BankCardFindUniqueArgs>(args: SelectSubset<T, BankCardFindUniqueArgs<ExtArgs>>): Prisma__BankCardClient<$Result.GetResult<Prisma.$BankCardPayload<ExtArgs>, T, "findUnique"> | null, null, ExtArgs>
|
|
|
|
/**
|
|
* Find one BankCard that matches the filter or throw an error with `error.code='P2025'`
|
|
* if no matches were found.
|
|
* @param {BankCardFindUniqueOrThrowArgs} args - Arguments to find a BankCard
|
|
* @example
|
|
* // Get one BankCard
|
|
* const bankCard = await prisma.bankCard.findUniqueOrThrow({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findUniqueOrThrow<T extends BankCardFindUniqueOrThrowArgs>(args: SelectSubset<T, BankCardFindUniqueOrThrowArgs<ExtArgs>>): Prisma__BankCardClient<$Result.GetResult<Prisma.$BankCardPayload<ExtArgs>, T, "findUniqueOrThrow">, never, ExtArgs>
|
|
|
|
/**
|
|
* Find the first BankCard that matches the filter.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {BankCardFindFirstArgs} args - Arguments to find a BankCard
|
|
* @example
|
|
* // Get one BankCard
|
|
* const bankCard = await prisma.bankCard.findFirst({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findFirst<T extends BankCardFindFirstArgs>(args?: SelectSubset<T, BankCardFindFirstArgs<ExtArgs>>): Prisma__BankCardClient<$Result.GetResult<Prisma.$BankCardPayload<ExtArgs>, T, "findFirst"> | null, null, ExtArgs>
|
|
|
|
/**
|
|
* Find the first BankCard that matches the filter or
|
|
* throw `PrismaKnownClientError` with `P2025` code if no matches were found.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {BankCardFindFirstOrThrowArgs} args - Arguments to find a BankCard
|
|
* @example
|
|
* // Get one BankCard
|
|
* const bankCard = await prisma.bankCard.findFirstOrThrow({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findFirstOrThrow<T extends BankCardFindFirstOrThrowArgs>(args?: SelectSubset<T, BankCardFindFirstOrThrowArgs<ExtArgs>>): Prisma__BankCardClient<$Result.GetResult<Prisma.$BankCardPayload<ExtArgs>, T, "findFirstOrThrow">, never, ExtArgs>
|
|
|
|
/**
|
|
* Find zero or more BankCards that matches the filter.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {BankCardFindManyArgs} args - Arguments to filter and select certain fields only.
|
|
* @example
|
|
* // Get all BankCards
|
|
* const bankCards = await prisma.bankCard.findMany()
|
|
*
|
|
* // Get first 10 BankCards
|
|
* const bankCards = await prisma.bankCard.findMany({ take: 10 })
|
|
*
|
|
* // Only select the `id`
|
|
* const bankCardWithIdOnly = await prisma.bankCard.findMany({ select: { id: true } })
|
|
*
|
|
*/
|
|
findMany<T extends BankCardFindManyArgs>(args?: SelectSubset<T, BankCardFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$BankCardPayload<ExtArgs>, T, "findMany">>
|
|
|
|
/**
|
|
* Create a BankCard.
|
|
* @param {BankCardCreateArgs} args - Arguments to create a BankCard.
|
|
* @example
|
|
* // Create one BankCard
|
|
* const BankCard = await prisma.bankCard.create({
|
|
* data: {
|
|
* // ... data to create a BankCard
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
create<T extends BankCardCreateArgs>(args: SelectSubset<T, BankCardCreateArgs<ExtArgs>>): Prisma__BankCardClient<$Result.GetResult<Prisma.$BankCardPayload<ExtArgs>, T, "create">, never, ExtArgs>
|
|
|
|
/**
|
|
* Create many BankCards.
|
|
* @param {BankCardCreateManyArgs} args - Arguments to create many BankCards.
|
|
* @example
|
|
* // Create many BankCards
|
|
* const bankCard = await prisma.bankCard.createMany({
|
|
* data: [
|
|
* // ... provide data here
|
|
* ]
|
|
* })
|
|
*
|
|
*/
|
|
createMany<T extends BankCardCreateManyArgs>(args?: SelectSubset<T, BankCardCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
|
|
|
|
/**
|
|
* Delete a BankCard.
|
|
* @param {BankCardDeleteArgs} args - Arguments to delete one BankCard.
|
|
* @example
|
|
* // Delete one BankCard
|
|
* const BankCard = await prisma.bankCard.delete({
|
|
* where: {
|
|
* // ... filter to delete one BankCard
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
delete<T extends BankCardDeleteArgs>(args: SelectSubset<T, BankCardDeleteArgs<ExtArgs>>): Prisma__BankCardClient<$Result.GetResult<Prisma.$BankCardPayload<ExtArgs>, T, "delete">, never, ExtArgs>
|
|
|
|
/**
|
|
* Update one BankCard.
|
|
* @param {BankCardUpdateArgs} args - Arguments to update one BankCard.
|
|
* @example
|
|
* // Update one BankCard
|
|
* const bankCard = await prisma.bankCard.update({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* },
|
|
* data: {
|
|
* // ... provide data here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
update<T extends BankCardUpdateArgs>(args: SelectSubset<T, BankCardUpdateArgs<ExtArgs>>): Prisma__BankCardClient<$Result.GetResult<Prisma.$BankCardPayload<ExtArgs>, T, "update">, never, ExtArgs>
|
|
|
|
/**
|
|
* Delete zero or more BankCards.
|
|
* @param {BankCardDeleteManyArgs} args - Arguments to filter BankCards to delete.
|
|
* @example
|
|
* // Delete a few BankCards
|
|
* const { count } = await prisma.bankCard.deleteMany({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
deleteMany<T extends BankCardDeleteManyArgs>(args?: SelectSubset<T, BankCardDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
|
|
|
|
/**
|
|
* Update zero or more BankCards.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {BankCardUpdateManyArgs} args - Arguments to update one or more rows.
|
|
* @example
|
|
* // Update many BankCards
|
|
* const bankCard = await prisma.bankCard.updateMany({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* },
|
|
* data: {
|
|
* // ... provide data here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
updateMany<T extends BankCardUpdateManyArgs>(args: SelectSubset<T, BankCardUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
|
|
|
|
/**
|
|
* Create or update one BankCard.
|
|
* @param {BankCardUpsertArgs} args - Arguments to update or create a BankCard.
|
|
* @example
|
|
* // Update or create a BankCard
|
|
* const bankCard = await prisma.bankCard.upsert({
|
|
* create: {
|
|
* // ... data to create a BankCard
|
|
* },
|
|
* update: {
|
|
* // ... in case it already exists, update
|
|
* },
|
|
* where: {
|
|
* // ... the filter for the BankCard we want to update
|
|
* }
|
|
* })
|
|
*/
|
|
upsert<T extends BankCardUpsertArgs>(args: SelectSubset<T, BankCardUpsertArgs<ExtArgs>>): Prisma__BankCardClient<$Result.GetResult<Prisma.$BankCardPayload<ExtArgs>, T, "upsert">, never, ExtArgs>
|
|
|
|
|
|
/**
|
|
* Count the number of BankCards.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {BankCardCountArgs} args - Arguments to filter BankCards to count.
|
|
* @example
|
|
* // Count the number of BankCards
|
|
* const count = await prisma.bankCard.count({
|
|
* where: {
|
|
* // ... the filter for the BankCards we want to count
|
|
* }
|
|
* })
|
|
**/
|
|
count<T extends BankCardCountArgs>(
|
|
args?: Subset<T, BankCardCountArgs>,
|
|
): Prisma.PrismaPromise<
|
|
T extends $Utils.Record<'select', any>
|
|
? T['select'] extends true
|
|
? number
|
|
: GetScalarType<T['select'], BankCardCountAggregateOutputType>
|
|
: number
|
|
>
|
|
|
|
/**
|
|
* Allows you to perform aggregations operations on a BankCard.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {BankCardAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
|
|
* @example
|
|
* // Ordered by age ascending
|
|
* // Where email contains prisma.io
|
|
* // Limited to the 10 users
|
|
* const aggregations = await prisma.user.aggregate({
|
|
* _avg: {
|
|
* age: true,
|
|
* },
|
|
* where: {
|
|
* email: {
|
|
* contains: "prisma.io",
|
|
* },
|
|
* },
|
|
* orderBy: {
|
|
* age: "asc",
|
|
* },
|
|
* take: 10,
|
|
* })
|
|
**/
|
|
aggregate<T extends BankCardAggregateArgs>(args: Subset<T, BankCardAggregateArgs>): Prisma.PrismaPromise<GetBankCardAggregateType<T>>
|
|
|
|
/**
|
|
* Group by BankCard.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {BankCardGroupByArgs} args - Group by arguments.
|
|
* @example
|
|
* // Group by city, order by createdAt, get count
|
|
* const result = await prisma.user.groupBy({
|
|
* by: ['city', 'createdAt'],
|
|
* orderBy: {
|
|
* createdAt: true
|
|
* },
|
|
* _count: {
|
|
* _all: true
|
|
* },
|
|
* })
|
|
*
|
|
**/
|
|
groupBy<
|
|
T extends BankCardGroupByArgs,
|
|
HasSelectOrTake extends Or<
|
|
Extends<'skip', Keys<T>>,
|
|
Extends<'take', Keys<T>>
|
|
>,
|
|
OrderByArg extends True extends HasSelectOrTake
|
|
? { orderBy: BankCardGroupByArgs['orderBy'] }
|
|
: { orderBy?: BankCardGroupByArgs['orderBy'] },
|
|
OrderFields extends ExcludeUnderscoreKeys<Keys<MaybeTupleToUnion<T['orderBy']>>>,
|
|
ByFields extends MaybeTupleToUnion<T['by']>,
|
|
ByValid extends Has<ByFields, OrderFields>,
|
|
HavingFields extends GetHavingFields<T['having']>,
|
|
HavingValid extends Has<ByFields, HavingFields>,
|
|
ByEmpty extends T['by'] extends never[] ? True : False,
|
|
InputErrors extends ByEmpty extends True
|
|
? `Error: "by" must not be empty.`
|
|
: HavingValid extends False
|
|
? {
|
|
[P in HavingFields]: P extends ByFields
|
|
? never
|
|
: P extends string
|
|
? `Error: Field "${P}" used in "having" needs to be provided in "by".`
|
|
: [
|
|
Error,
|
|
'Field ',
|
|
P,
|
|
` in "having" needs to be provided in "by"`,
|
|
]
|
|
}[HavingFields]
|
|
: 'take' extends Keys<T>
|
|
? 'orderBy' extends Keys<T>
|
|
? ByValid extends True
|
|
? {}
|
|
: {
|
|
[P in OrderFields]: P extends ByFields
|
|
? never
|
|
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
|
|
}[OrderFields]
|
|
: 'Error: If you provide "take", you also need to provide "orderBy"'
|
|
: 'skip' extends Keys<T>
|
|
? 'orderBy' extends Keys<T>
|
|
? ByValid extends True
|
|
? {}
|
|
: {
|
|
[P in OrderFields]: P extends ByFields
|
|
? never
|
|
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
|
|
}[OrderFields]
|
|
: 'Error: If you provide "skip", you also need to provide "orderBy"'
|
|
: ByValid extends True
|
|
? {}
|
|
: {
|
|
[P in OrderFields]: P extends ByFields
|
|
? never
|
|
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
|
|
}[OrderFields]
|
|
>(args: SubsetIntersection<T, BankCardGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetBankCardGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
|
|
/**
|
|
* Fields of the BankCard model
|
|
*/
|
|
readonly fields: BankCardFieldRefs;
|
|
}
|
|
|
|
/**
|
|
* The delegate class that acts as a "Promise-like" for BankCard.
|
|
* Why is this prefixed with `Prisma__`?
|
|
* Because we want to prevent naming conflicts as mentioned in
|
|
* https://github.com/prisma/prisma-client-js/issues/707
|
|
*/
|
|
export interface Prisma__BankCardClient<T, Null = never, ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> extends Prisma.PrismaPromise<T> {
|
|
readonly [Symbol.toStringTag]: "PrismaPromise"
|
|
customer<T extends CustomerDefaultArgs<ExtArgs> = {}>(args?: Subset<T, CustomerDefaultArgs<ExtArgs>>): Prisma__CustomerClient<$Result.GetResult<Prisma.$CustomerPayload<ExtArgs>, T, "findUniqueOrThrow"> | Null, Null, ExtArgs>
|
|
contracts<T extends BankCard$contractsArgs<ExtArgs> = {}>(args?: Subset<T, BankCard$contractsArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$ContractPayload<ExtArgs>, T, "findMany"> | Null>
|
|
/**
|
|
* Attaches callbacks for the resolution and/or rejection of the Promise.
|
|
* @param onfulfilled The callback to execute when the Promise is resolved.
|
|
* @param onrejected The callback to execute when the Promise is rejected.
|
|
* @returns A Promise for the completion of which ever callback is executed.
|
|
*/
|
|
then<TResult1 = T, TResult2 = never>(onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined | null): $Utils.JsPromise<TResult1 | TResult2>
|
|
/**
|
|
* Attaches a callback for only the rejection of the Promise.
|
|
* @param onrejected The callback to execute when the Promise is rejected.
|
|
* @returns A Promise for the completion of the callback.
|
|
*/
|
|
catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): $Utils.JsPromise<T | TResult>
|
|
/**
|
|
* Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
|
|
* resolved value cannot be modified from the callback.
|
|
* @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
|
|
* @returns A Promise for the completion of the callback.
|
|
*/
|
|
finally(onfinally?: (() => void) | undefined | null): $Utils.JsPromise<T>
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
* Fields of the BankCard model
|
|
*/
|
|
interface BankCardFieldRefs {
|
|
readonly id: FieldRef<"BankCard", 'Int'>
|
|
readonly customerId: FieldRef<"BankCard", 'Int'>
|
|
readonly accountHolder: FieldRef<"BankCard", 'String'>
|
|
readonly iban: FieldRef<"BankCard", 'String'>
|
|
readonly bic: FieldRef<"BankCard", 'String'>
|
|
readonly bankName: FieldRef<"BankCard", 'String'>
|
|
readonly expiryDate: FieldRef<"BankCard", 'DateTime'>
|
|
readonly documentPath: FieldRef<"BankCard", 'String'>
|
|
readonly isActive: FieldRef<"BankCard", 'Boolean'>
|
|
readonly createdAt: FieldRef<"BankCard", 'DateTime'>
|
|
readonly updatedAt: FieldRef<"BankCard", 'DateTime'>
|
|
}
|
|
|
|
|
|
// Custom InputTypes
|
|
/**
|
|
* BankCard findUnique
|
|
*/
|
|
export type BankCardFindUniqueArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the BankCard
|
|
*/
|
|
select?: BankCardSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: BankCardInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which BankCard to fetch.
|
|
*/
|
|
where: BankCardWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* BankCard findUniqueOrThrow
|
|
*/
|
|
export type BankCardFindUniqueOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the BankCard
|
|
*/
|
|
select?: BankCardSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: BankCardInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which BankCard to fetch.
|
|
*/
|
|
where: BankCardWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* BankCard findFirst
|
|
*/
|
|
export type BankCardFindFirstArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the BankCard
|
|
*/
|
|
select?: BankCardSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: BankCardInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which BankCard to fetch.
|
|
*/
|
|
where?: BankCardWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of BankCards to fetch.
|
|
*/
|
|
orderBy?: BankCardOrderByWithRelationInput | BankCardOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for searching for BankCards.
|
|
*/
|
|
cursor?: BankCardWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` BankCards from the position of the cursor.
|
|
*/
|
|
take?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Skip the first `n` BankCards.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
*
|
|
* Filter by unique combinations of BankCards.
|
|
*/
|
|
distinct?: BankCardScalarFieldEnum | BankCardScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* BankCard findFirstOrThrow
|
|
*/
|
|
export type BankCardFindFirstOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the BankCard
|
|
*/
|
|
select?: BankCardSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: BankCardInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which BankCard to fetch.
|
|
*/
|
|
where?: BankCardWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of BankCards to fetch.
|
|
*/
|
|
orderBy?: BankCardOrderByWithRelationInput | BankCardOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for searching for BankCards.
|
|
*/
|
|
cursor?: BankCardWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` BankCards from the position of the cursor.
|
|
*/
|
|
take?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Skip the first `n` BankCards.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
*
|
|
* Filter by unique combinations of BankCards.
|
|
*/
|
|
distinct?: BankCardScalarFieldEnum | BankCardScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* BankCard findMany
|
|
*/
|
|
export type BankCardFindManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the BankCard
|
|
*/
|
|
select?: BankCardSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: BankCardInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which BankCards to fetch.
|
|
*/
|
|
where?: BankCardWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of BankCards to fetch.
|
|
*/
|
|
orderBy?: BankCardOrderByWithRelationInput | BankCardOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for listing BankCards.
|
|
*/
|
|
cursor?: BankCardWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` BankCards from the position of the cursor.
|
|
*/
|
|
take?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Skip the first `n` BankCards.
|
|
*/
|
|
skip?: number
|
|
distinct?: BankCardScalarFieldEnum | BankCardScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* BankCard create
|
|
*/
|
|
export type BankCardCreateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the BankCard
|
|
*/
|
|
select?: BankCardSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: BankCardInclude<ExtArgs> | null
|
|
/**
|
|
* The data needed to create a BankCard.
|
|
*/
|
|
data: XOR<BankCardCreateInput, BankCardUncheckedCreateInput>
|
|
}
|
|
|
|
/**
|
|
* BankCard createMany
|
|
*/
|
|
export type BankCardCreateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* The data used to create many BankCards.
|
|
*/
|
|
data: BankCardCreateManyInput | BankCardCreateManyInput[]
|
|
skipDuplicates?: boolean
|
|
}
|
|
|
|
/**
|
|
* BankCard update
|
|
*/
|
|
export type BankCardUpdateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the BankCard
|
|
*/
|
|
select?: BankCardSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: BankCardInclude<ExtArgs> | null
|
|
/**
|
|
* The data needed to update a BankCard.
|
|
*/
|
|
data: XOR<BankCardUpdateInput, BankCardUncheckedUpdateInput>
|
|
/**
|
|
* Choose, which BankCard to update.
|
|
*/
|
|
where: BankCardWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* BankCard updateMany
|
|
*/
|
|
export type BankCardUpdateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* The data used to update BankCards.
|
|
*/
|
|
data: XOR<BankCardUpdateManyMutationInput, BankCardUncheckedUpdateManyInput>
|
|
/**
|
|
* Filter which BankCards to update
|
|
*/
|
|
where?: BankCardWhereInput
|
|
}
|
|
|
|
/**
|
|
* BankCard upsert
|
|
*/
|
|
export type BankCardUpsertArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the BankCard
|
|
*/
|
|
select?: BankCardSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: BankCardInclude<ExtArgs> | null
|
|
/**
|
|
* The filter to search for the BankCard to update in case it exists.
|
|
*/
|
|
where: BankCardWhereUniqueInput
|
|
/**
|
|
* In case the BankCard found by the `where` argument doesn't exist, create a new BankCard with this data.
|
|
*/
|
|
create: XOR<BankCardCreateInput, BankCardUncheckedCreateInput>
|
|
/**
|
|
* In case the BankCard was found with the provided `where` argument, update it with this data.
|
|
*/
|
|
update: XOR<BankCardUpdateInput, BankCardUncheckedUpdateInput>
|
|
}
|
|
|
|
/**
|
|
* BankCard delete
|
|
*/
|
|
export type BankCardDeleteArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the BankCard
|
|
*/
|
|
select?: BankCardSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: BankCardInclude<ExtArgs> | null
|
|
/**
|
|
* Filter which BankCard to delete.
|
|
*/
|
|
where: BankCardWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* BankCard deleteMany
|
|
*/
|
|
export type BankCardDeleteManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Filter which BankCards to delete
|
|
*/
|
|
where?: BankCardWhereInput
|
|
}
|
|
|
|
/**
|
|
* BankCard.contracts
|
|
*/
|
|
export type BankCard$contractsArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the Contract
|
|
*/
|
|
select?: ContractSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: ContractInclude<ExtArgs> | null
|
|
where?: ContractWhereInput
|
|
orderBy?: ContractOrderByWithRelationInput | ContractOrderByWithRelationInput[]
|
|
cursor?: ContractWhereUniqueInput
|
|
take?: number
|
|
skip?: number
|
|
distinct?: ContractScalarFieldEnum | ContractScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* BankCard without action
|
|
*/
|
|
export type BankCardDefaultArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the BankCard
|
|
*/
|
|
select?: BankCardSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: BankCardInclude<ExtArgs> | null
|
|
}
|
|
|
|
|
|
/**
|
|
* Model IdentityDocument
|
|
*/
|
|
|
|
export type AggregateIdentityDocument = {
|
|
_count: IdentityDocumentCountAggregateOutputType | null
|
|
_avg: IdentityDocumentAvgAggregateOutputType | null
|
|
_sum: IdentityDocumentSumAggregateOutputType | null
|
|
_min: IdentityDocumentMinAggregateOutputType | null
|
|
_max: IdentityDocumentMaxAggregateOutputType | null
|
|
}
|
|
|
|
export type IdentityDocumentAvgAggregateOutputType = {
|
|
id: number | null
|
|
customerId: number | null
|
|
}
|
|
|
|
export type IdentityDocumentSumAggregateOutputType = {
|
|
id: number | null
|
|
customerId: number | null
|
|
}
|
|
|
|
export type IdentityDocumentMinAggregateOutputType = {
|
|
id: number | null
|
|
customerId: number | null
|
|
type: $Enums.DocumentType | null
|
|
documentNumber: string | null
|
|
issuingAuthority: string | null
|
|
issueDate: Date | null
|
|
expiryDate: Date | null
|
|
documentPath: string | null
|
|
isActive: boolean | null
|
|
licenseClasses: string | null
|
|
licenseIssueDate: Date | null
|
|
createdAt: Date | null
|
|
updatedAt: Date | null
|
|
}
|
|
|
|
export type IdentityDocumentMaxAggregateOutputType = {
|
|
id: number | null
|
|
customerId: number | null
|
|
type: $Enums.DocumentType | null
|
|
documentNumber: string | null
|
|
issuingAuthority: string | null
|
|
issueDate: Date | null
|
|
expiryDate: Date | null
|
|
documentPath: string | null
|
|
isActive: boolean | null
|
|
licenseClasses: string | null
|
|
licenseIssueDate: Date | null
|
|
createdAt: Date | null
|
|
updatedAt: Date | null
|
|
}
|
|
|
|
export type IdentityDocumentCountAggregateOutputType = {
|
|
id: number
|
|
customerId: number
|
|
type: number
|
|
documentNumber: number
|
|
issuingAuthority: number
|
|
issueDate: number
|
|
expiryDate: number
|
|
documentPath: number
|
|
isActive: number
|
|
licenseClasses: number
|
|
licenseIssueDate: number
|
|
createdAt: number
|
|
updatedAt: number
|
|
_all: number
|
|
}
|
|
|
|
|
|
export type IdentityDocumentAvgAggregateInputType = {
|
|
id?: true
|
|
customerId?: true
|
|
}
|
|
|
|
export type IdentityDocumentSumAggregateInputType = {
|
|
id?: true
|
|
customerId?: true
|
|
}
|
|
|
|
export type IdentityDocumentMinAggregateInputType = {
|
|
id?: true
|
|
customerId?: true
|
|
type?: true
|
|
documentNumber?: true
|
|
issuingAuthority?: true
|
|
issueDate?: true
|
|
expiryDate?: true
|
|
documentPath?: true
|
|
isActive?: true
|
|
licenseClasses?: true
|
|
licenseIssueDate?: true
|
|
createdAt?: true
|
|
updatedAt?: true
|
|
}
|
|
|
|
export type IdentityDocumentMaxAggregateInputType = {
|
|
id?: true
|
|
customerId?: true
|
|
type?: true
|
|
documentNumber?: true
|
|
issuingAuthority?: true
|
|
issueDate?: true
|
|
expiryDate?: true
|
|
documentPath?: true
|
|
isActive?: true
|
|
licenseClasses?: true
|
|
licenseIssueDate?: true
|
|
createdAt?: true
|
|
updatedAt?: true
|
|
}
|
|
|
|
export type IdentityDocumentCountAggregateInputType = {
|
|
id?: true
|
|
customerId?: true
|
|
type?: true
|
|
documentNumber?: true
|
|
issuingAuthority?: true
|
|
issueDate?: true
|
|
expiryDate?: true
|
|
documentPath?: true
|
|
isActive?: true
|
|
licenseClasses?: true
|
|
licenseIssueDate?: true
|
|
createdAt?: true
|
|
updatedAt?: true
|
|
_all?: true
|
|
}
|
|
|
|
export type IdentityDocumentAggregateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Filter which IdentityDocument to aggregate.
|
|
*/
|
|
where?: IdentityDocumentWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of IdentityDocuments to fetch.
|
|
*/
|
|
orderBy?: IdentityDocumentOrderByWithRelationInput | IdentityDocumentOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the start position
|
|
*/
|
|
cursor?: IdentityDocumentWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` IdentityDocuments from the position of the cursor.
|
|
*/
|
|
take?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Skip the first `n` IdentityDocuments.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Count returned IdentityDocuments
|
|
**/
|
|
_count?: true | IdentityDocumentCountAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to average
|
|
**/
|
|
_avg?: IdentityDocumentAvgAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to sum
|
|
**/
|
|
_sum?: IdentityDocumentSumAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to find the minimum value
|
|
**/
|
|
_min?: IdentityDocumentMinAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to find the maximum value
|
|
**/
|
|
_max?: IdentityDocumentMaxAggregateInputType
|
|
}
|
|
|
|
export type GetIdentityDocumentAggregateType<T extends IdentityDocumentAggregateArgs> = {
|
|
[P in keyof T & keyof AggregateIdentityDocument]: P extends '_count' | 'count'
|
|
? T[P] extends true
|
|
? number
|
|
: GetScalarType<T[P], AggregateIdentityDocument[P]>
|
|
: GetScalarType<T[P], AggregateIdentityDocument[P]>
|
|
}
|
|
|
|
|
|
|
|
|
|
export type IdentityDocumentGroupByArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
where?: IdentityDocumentWhereInput
|
|
orderBy?: IdentityDocumentOrderByWithAggregationInput | IdentityDocumentOrderByWithAggregationInput[]
|
|
by: IdentityDocumentScalarFieldEnum[] | IdentityDocumentScalarFieldEnum
|
|
having?: IdentityDocumentScalarWhereWithAggregatesInput
|
|
take?: number
|
|
skip?: number
|
|
_count?: IdentityDocumentCountAggregateInputType | true
|
|
_avg?: IdentityDocumentAvgAggregateInputType
|
|
_sum?: IdentityDocumentSumAggregateInputType
|
|
_min?: IdentityDocumentMinAggregateInputType
|
|
_max?: IdentityDocumentMaxAggregateInputType
|
|
}
|
|
|
|
export type IdentityDocumentGroupByOutputType = {
|
|
id: number
|
|
customerId: number
|
|
type: $Enums.DocumentType
|
|
documentNumber: string
|
|
issuingAuthority: string | null
|
|
issueDate: Date | null
|
|
expiryDate: Date | null
|
|
documentPath: string | null
|
|
isActive: boolean
|
|
licenseClasses: string | null
|
|
licenseIssueDate: Date | null
|
|
createdAt: Date
|
|
updatedAt: Date
|
|
_count: IdentityDocumentCountAggregateOutputType | null
|
|
_avg: IdentityDocumentAvgAggregateOutputType | null
|
|
_sum: IdentityDocumentSumAggregateOutputType | null
|
|
_min: IdentityDocumentMinAggregateOutputType | null
|
|
_max: IdentityDocumentMaxAggregateOutputType | null
|
|
}
|
|
|
|
type GetIdentityDocumentGroupByPayload<T extends IdentityDocumentGroupByArgs> = Prisma.PrismaPromise<
|
|
Array<
|
|
PickEnumerable<IdentityDocumentGroupByOutputType, T['by']> &
|
|
{
|
|
[P in ((keyof T) & (keyof IdentityDocumentGroupByOutputType))]: P extends '_count'
|
|
? T[P] extends boolean
|
|
? number
|
|
: GetScalarType<T[P], IdentityDocumentGroupByOutputType[P]>
|
|
: GetScalarType<T[P], IdentityDocumentGroupByOutputType[P]>
|
|
}
|
|
>
|
|
>
|
|
|
|
|
|
export type IdentityDocumentSelect<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
|
|
id?: boolean
|
|
customerId?: boolean
|
|
type?: boolean
|
|
documentNumber?: boolean
|
|
issuingAuthority?: boolean
|
|
issueDate?: boolean
|
|
expiryDate?: boolean
|
|
documentPath?: boolean
|
|
isActive?: boolean
|
|
licenseClasses?: boolean
|
|
licenseIssueDate?: boolean
|
|
createdAt?: boolean
|
|
updatedAt?: boolean
|
|
customer?: boolean | CustomerDefaultArgs<ExtArgs>
|
|
contracts?: boolean | IdentityDocument$contractsArgs<ExtArgs>
|
|
_count?: boolean | IdentityDocumentCountOutputTypeDefaultArgs<ExtArgs>
|
|
}, ExtArgs["result"]["identityDocument"]>
|
|
|
|
|
|
export type IdentityDocumentSelectScalar = {
|
|
id?: boolean
|
|
customerId?: boolean
|
|
type?: boolean
|
|
documentNumber?: boolean
|
|
issuingAuthority?: boolean
|
|
issueDate?: boolean
|
|
expiryDate?: boolean
|
|
documentPath?: boolean
|
|
isActive?: boolean
|
|
licenseClasses?: boolean
|
|
licenseIssueDate?: boolean
|
|
createdAt?: boolean
|
|
updatedAt?: boolean
|
|
}
|
|
|
|
export type IdentityDocumentInclude<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
customer?: boolean | CustomerDefaultArgs<ExtArgs>
|
|
contracts?: boolean | IdentityDocument$contractsArgs<ExtArgs>
|
|
_count?: boolean | IdentityDocumentCountOutputTypeDefaultArgs<ExtArgs>
|
|
}
|
|
|
|
export type $IdentityDocumentPayload<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
name: "IdentityDocument"
|
|
objects: {
|
|
customer: Prisma.$CustomerPayload<ExtArgs>
|
|
contracts: Prisma.$ContractPayload<ExtArgs>[]
|
|
}
|
|
scalars: $Extensions.GetPayloadResult<{
|
|
id: number
|
|
customerId: number
|
|
type: $Enums.DocumentType
|
|
documentNumber: string
|
|
issuingAuthority: string | null
|
|
issueDate: Date | null
|
|
expiryDate: Date | null
|
|
documentPath: string | null
|
|
isActive: boolean
|
|
licenseClasses: string | null
|
|
licenseIssueDate: Date | null
|
|
createdAt: Date
|
|
updatedAt: Date
|
|
}, ExtArgs["result"]["identityDocument"]>
|
|
composites: {}
|
|
}
|
|
|
|
type IdentityDocumentGetPayload<S extends boolean | null | undefined | IdentityDocumentDefaultArgs> = $Result.GetResult<Prisma.$IdentityDocumentPayload, S>
|
|
|
|
type IdentityDocumentCountArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> =
|
|
Omit<IdentityDocumentFindManyArgs, 'select' | 'include' | 'distinct'> & {
|
|
select?: IdentityDocumentCountAggregateInputType | true
|
|
}
|
|
|
|
export interface IdentityDocumentDelegate<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> {
|
|
[K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['IdentityDocument'], meta: { name: 'IdentityDocument' } }
|
|
/**
|
|
* Find zero or one IdentityDocument that matches the filter.
|
|
* @param {IdentityDocumentFindUniqueArgs} args - Arguments to find a IdentityDocument
|
|
* @example
|
|
* // Get one IdentityDocument
|
|
* const identityDocument = await prisma.identityDocument.findUnique({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findUnique<T extends IdentityDocumentFindUniqueArgs>(args: SelectSubset<T, IdentityDocumentFindUniqueArgs<ExtArgs>>): Prisma__IdentityDocumentClient<$Result.GetResult<Prisma.$IdentityDocumentPayload<ExtArgs>, T, "findUnique"> | null, null, ExtArgs>
|
|
|
|
/**
|
|
* Find one IdentityDocument that matches the filter or throw an error with `error.code='P2025'`
|
|
* if no matches were found.
|
|
* @param {IdentityDocumentFindUniqueOrThrowArgs} args - Arguments to find a IdentityDocument
|
|
* @example
|
|
* // Get one IdentityDocument
|
|
* const identityDocument = await prisma.identityDocument.findUniqueOrThrow({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findUniqueOrThrow<T extends IdentityDocumentFindUniqueOrThrowArgs>(args: SelectSubset<T, IdentityDocumentFindUniqueOrThrowArgs<ExtArgs>>): Prisma__IdentityDocumentClient<$Result.GetResult<Prisma.$IdentityDocumentPayload<ExtArgs>, T, "findUniqueOrThrow">, never, ExtArgs>
|
|
|
|
/**
|
|
* Find the first IdentityDocument that matches the filter.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {IdentityDocumentFindFirstArgs} args - Arguments to find a IdentityDocument
|
|
* @example
|
|
* // Get one IdentityDocument
|
|
* const identityDocument = await prisma.identityDocument.findFirst({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findFirst<T extends IdentityDocumentFindFirstArgs>(args?: SelectSubset<T, IdentityDocumentFindFirstArgs<ExtArgs>>): Prisma__IdentityDocumentClient<$Result.GetResult<Prisma.$IdentityDocumentPayload<ExtArgs>, T, "findFirst"> | null, null, ExtArgs>
|
|
|
|
/**
|
|
* Find the first IdentityDocument that matches the filter or
|
|
* throw `PrismaKnownClientError` with `P2025` code if no matches were found.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {IdentityDocumentFindFirstOrThrowArgs} args - Arguments to find a IdentityDocument
|
|
* @example
|
|
* // Get one IdentityDocument
|
|
* const identityDocument = await prisma.identityDocument.findFirstOrThrow({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findFirstOrThrow<T extends IdentityDocumentFindFirstOrThrowArgs>(args?: SelectSubset<T, IdentityDocumentFindFirstOrThrowArgs<ExtArgs>>): Prisma__IdentityDocumentClient<$Result.GetResult<Prisma.$IdentityDocumentPayload<ExtArgs>, T, "findFirstOrThrow">, never, ExtArgs>
|
|
|
|
/**
|
|
* Find zero or more IdentityDocuments that matches the filter.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {IdentityDocumentFindManyArgs} args - Arguments to filter and select certain fields only.
|
|
* @example
|
|
* // Get all IdentityDocuments
|
|
* const identityDocuments = await prisma.identityDocument.findMany()
|
|
*
|
|
* // Get first 10 IdentityDocuments
|
|
* const identityDocuments = await prisma.identityDocument.findMany({ take: 10 })
|
|
*
|
|
* // Only select the `id`
|
|
* const identityDocumentWithIdOnly = await prisma.identityDocument.findMany({ select: { id: true } })
|
|
*
|
|
*/
|
|
findMany<T extends IdentityDocumentFindManyArgs>(args?: SelectSubset<T, IdentityDocumentFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$IdentityDocumentPayload<ExtArgs>, T, "findMany">>
|
|
|
|
/**
|
|
* Create a IdentityDocument.
|
|
* @param {IdentityDocumentCreateArgs} args - Arguments to create a IdentityDocument.
|
|
* @example
|
|
* // Create one IdentityDocument
|
|
* const IdentityDocument = await prisma.identityDocument.create({
|
|
* data: {
|
|
* // ... data to create a IdentityDocument
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
create<T extends IdentityDocumentCreateArgs>(args: SelectSubset<T, IdentityDocumentCreateArgs<ExtArgs>>): Prisma__IdentityDocumentClient<$Result.GetResult<Prisma.$IdentityDocumentPayload<ExtArgs>, T, "create">, never, ExtArgs>
|
|
|
|
/**
|
|
* Create many IdentityDocuments.
|
|
* @param {IdentityDocumentCreateManyArgs} args - Arguments to create many IdentityDocuments.
|
|
* @example
|
|
* // Create many IdentityDocuments
|
|
* const identityDocument = await prisma.identityDocument.createMany({
|
|
* data: [
|
|
* // ... provide data here
|
|
* ]
|
|
* })
|
|
*
|
|
*/
|
|
createMany<T extends IdentityDocumentCreateManyArgs>(args?: SelectSubset<T, IdentityDocumentCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
|
|
|
|
/**
|
|
* Delete a IdentityDocument.
|
|
* @param {IdentityDocumentDeleteArgs} args - Arguments to delete one IdentityDocument.
|
|
* @example
|
|
* // Delete one IdentityDocument
|
|
* const IdentityDocument = await prisma.identityDocument.delete({
|
|
* where: {
|
|
* // ... filter to delete one IdentityDocument
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
delete<T extends IdentityDocumentDeleteArgs>(args: SelectSubset<T, IdentityDocumentDeleteArgs<ExtArgs>>): Prisma__IdentityDocumentClient<$Result.GetResult<Prisma.$IdentityDocumentPayload<ExtArgs>, T, "delete">, never, ExtArgs>
|
|
|
|
/**
|
|
* Update one IdentityDocument.
|
|
* @param {IdentityDocumentUpdateArgs} args - Arguments to update one IdentityDocument.
|
|
* @example
|
|
* // Update one IdentityDocument
|
|
* const identityDocument = await prisma.identityDocument.update({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* },
|
|
* data: {
|
|
* // ... provide data here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
update<T extends IdentityDocumentUpdateArgs>(args: SelectSubset<T, IdentityDocumentUpdateArgs<ExtArgs>>): Prisma__IdentityDocumentClient<$Result.GetResult<Prisma.$IdentityDocumentPayload<ExtArgs>, T, "update">, never, ExtArgs>
|
|
|
|
/**
|
|
* Delete zero or more IdentityDocuments.
|
|
* @param {IdentityDocumentDeleteManyArgs} args - Arguments to filter IdentityDocuments to delete.
|
|
* @example
|
|
* // Delete a few IdentityDocuments
|
|
* const { count } = await prisma.identityDocument.deleteMany({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
deleteMany<T extends IdentityDocumentDeleteManyArgs>(args?: SelectSubset<T, IdentityDocumentDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
|
|
|
|
/**
|
|
* Update zero or more IdentityDocuments.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {IdentityDocumentUpdateManyArgs} args - Arguments to update one or more rows.
|
|
* @example
|
|
* // Update many IdentityDocuments
|
|
* const identityDocument = await prisma.identityDocument.updateMany({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* },
|
|
* data: {
|
|
* // ... provide data here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
updateMany<T extends IdentityDocumentUpdateManyArgs>(args: SelectSubset<T, IdentityDocumentUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
|
|
|
|
/**
|
|
* Create or update one IdentityDocument.
|
|
* @param {IdentityDocumentUpsertArgs} args - Arguments to update or create a IdentityDocument.
|
|
* @example
|
|
* // Update or create a IdentityDocument
|
|
* const identityDocument = await prisma.identityDocument.upsert({
|
|
* create: {
|
|
* // ... data to create a IdentityDocument
|
|
* },
|
|
* update: {
|
|
* // ... in case it already exists, update
|
|
* },
|
|
* where: {
|
|
* // ... the filter for the IdentityDocument we want to update
|
|
* }
|
|
* })
|
|
*/
|
|
upsert<T extends IdentityDocumentUpsertArgs>(args: SelectSubset<T, IdentityDocumentUpsertArgs<ExtArgs>>): Prisma__IdentityDocumentClient<$Result.GetResult<Prisma.$IdentityDocumentPayload<ExtArgs>, T, "upsert">, never, ExtArgs>
|
|
|
|
|
|
/**
|
|
* Count the number of IdentityDocuments.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {IdentityDocumentCountArgs} args - Arguments to filter IdentityDocuments to count.
|
|
* @example
|
|
* // Count the number of IdentityDocuments
|
|
* const count = await prisma.identityDocument.count({
|
|
* where: {
|
|
* // ... the filter for the IdentityDocuments we want to count
|
|
* }
|
|
* })
|
|
**/
|
|
count<T extends IdentityDocumentCountArgs>(
|
|
args?: Subset<T, IdentityDocumentCountArgs>,
|
|
): Prisma.PrismaPromise<
|
|
T extends $Utils.Record<'select', any>
|
|
? T['select'] extends true
|
|
? number
|
|
: GetScalarType<T['select'], IdentityDocumentCountAggregateOutputType>
|
|
: number
|
|
>
|
|
|
|
/**
|
|
* Allows you to perform aggregations operations on a IdentityDocument.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {IdentityDocumentAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
|
|
* @example
|
|
* // Ordered by age ascending
|
|
* // Where email contains prisma.io
|
|
* // Limited to the 10 users
|
|
* const aggregations = await prisma.user.aggregate({
|
|
* _avg: {
|
|
* age: true,
|
|
* },
|
|
* where: {
|
|
* email: {
|
|
* contains: "prisma.io",
|
|
* },
|
|
* },
|
|
* orderBy: {
|
|
* age: "asc",
|
|
* },
|
|
* take: 10,
|
|
* })
|
|
**/
|
|
aggregate<T extends IdentityDocumentAggregateArgs>(args: Subset<T, IdentityDocumentAggregateArgs>): Prisma.PrismaPromise<GetIdentityDocumentAggregateType<T>>
|
|
|
|
/**
|
|
* Group by IdentityDocument.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {IdentityDocumentGroupByArgs} args - Group by arguments.
|
|
* @example
|
|
* // Group by city, order by createdAt, get count
|
|
* const result = await prisma.user.groupBy({
|
|
* by: ['city', 'createdAt'],
|
|
* orderBy: {
|
|
* createdAt: true
|
|
* },
|
|
* _count: {
|
|
* _all: true
|
|
* },
|
|
* })
|
|
*
|
|
**/
|
|
groupBy<
|
|
T extends IdentityDocumentGroupByArgs,
|
|
HasSelectOrTake extends Or<
|
|
Extends<'skip', Keys<T>>,
|
|
Extends<'take', Keys<T>>
|
|
>,
|
|
OrderByArg extends True extends HasSelectOrTake
|
|
? { orderBy: IdentityDocumentGroupByArgs['orderBy'] }
|
|
: { orderBy?: IdentityDocumentGroupByArgs['orderBy'] },
|
|
OrderFields extends ExcludeUnderscoreKeys<Keys<MaybeTupleToUnion<T['orderBy']>>>,
|
|
ByFields extends MaybeTupleToUnion<T['by']>,
|
|
ByValid extends Has<ByFields, OrderFields>,
|
|
HavingFields extends GetHavingFields<T['having']>,
|
|
HavingValid extends Has<ByFields, HavingFields>,
|
|
ByEmpty extends T['by'] extends never[] ? True : False,
|
|
InputErrors extends ByEmpty extends True
|
|
? `Error: "by" must not be empty.`
|
|
: HavingValid extends False
|
|
? {
|
|
[P in HavingFields]: P extends ByFields
|
|
? never
|
|
: P extends string
|
|
? `Error: Field "${P}" used in "having" needs to be provided in "by".`
|
|
: [
|
|
Error,
|
|
'Field ',
|
|
P,
|
|
` in "having" needs to be provided in "by"`,
|
|
]
|
|
}[HavingFields]
|
|
: 'take' extends Keys<T>
|
|
? 'orderBy' extends Keys<T>
|
|
? ByValid extends True
|
|
? {}
|
|
: {
|
|
[P in OrderFields]: P extends ByFields
|
|
? never
|
|
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
|
|
}[OrderFields]
|
|
: 'Error: If you provide "take", you also need to provide "orderBy"'
|
|
: 'skip' extends Keys<T>
|
|
? 'orderBy' extends Keys<T>
|
|
? ByValid extends True
|
|
? {}
|
|
: {
|
|
[P in OrderFields]: P extends ByFields
|
|
? never
|
|
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
|
|
}[OrderFields]
|
|
: 'Error: If you provide "skip", you also need to provide "orderBy"'
|
|
: ByValid extends True
|
|
? {}
|
|
: {
|
|
[P in OrderFields]: P extends ByFields
|
|
? never
|
|
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
|
|
}[OrderFields]
|
|
>(args: SubsetIntersection<T, IdentityDocumentGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetIdentityDocumentGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
|
|
/**
|
|
* Fields of the IdentityDocument model
|
|
*/
|
|
readonly fields: IdentityDocumentFieldRefs;
|
|
}
|
|
|
|
/**
|
|
* The delegate class that acts as a "Promise-like" for IdentityDocument.
|
|
* Why is this prefixed with `Prisma__`?
|
|
* Because we want to prevent naming conflicts as mentioned in
|
|
* https://github.com/prisma/prisma-client-js/issues/707
|
|
*/
|
|
export interface Prisma__IdentityDocumentClient<T, Null = never, ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> extends Prisma.PrismaPromise<T> {
|
|
readonly [Symbol.toStringTag]: "PrismaPromise"
|
|
customer<T extends CustomerDefaultArgs<ExtArgs> = {}>(args?: Subset<T, CustomerDefaultArgs<ExtArgs>>): Prisma__CustomerClient<$Result.GetResult<Prisma.$CustomerPayload<ExtArgs>, T, "findUniqueOrThrow"> | Null, Null, ExtArgs>
|
|
contracts<T extends IdentityDocument$contractsArgs<ExtArgs> = {}>(args?: Subset<T, IdentityDocument$contractsArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$ContractPayload<ExtArgs>, T, "findMany"> | Null>
|
|
/**
|
|
* Attaches callbacks for the resolution and/or rejection of the Promise.
|
|
* @param onfulfilled The callback to execute when the Promise is resolved.
|
|
* @param onrejected The callback to execute when the Promise is rejected.
|
|
* @returns A Promise for the completion of which ever callback is executed.
|
|
*/
|
|
then<TResult1 = T, TResult2 = never>(onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined | null): $Utils.JsPromise<TResult1 | TResult2>
|
|
/**
|
|
* Attaches a callback for only the rejection of the Promise.
|
|
* @param onrejected The callback to execute when the Promise is rejected.
|
|
* @returns A Promise for the completion of the callback.
|
|
*/
|
|
catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): $Utils.JsPromise<T | TResult>
|
|
/**
|
|
* Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
|
|
* resolved value cannot be modified from the callback.
|
|
* @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
|
|
* @returns A Promise for the completion of the callback.
|
|
*/
|
|
finally(onfinally?: (() => void) | undefined | null): $Utils.JsPromise<T>
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
* Fields of the IdentityDocument model
|
|
*/
|
|
interface IdentityDocumentFieldRefs {
|
|
readonly id: FieldRef<"IdentityDocument", 'Int'>
|
|
readonly customerId: FieldRef<"IdentityDocument", 'Int'>
|
|
readonly type: FieldRef<"IdentityDocument", 'DocumentType'>
|
|
readonly documentNumber: FieldRef<"IdentityDocument", 'String'>
|
|
readonly issuingAuthority: FieldRef<"IdentityDocument", 'String'>
|
|
readonly issueDate: FieldRef<"IdentityDocument", 'DateTime'>
|
|
readonly expiryDate: FieldRef<"IdentityDocument", 'DateTime'>
|
|
readonly documentPath: FieldRef<"IdentityDocument", 'String'>
|
|
readonly isActive: FieldRef<"IdentityDocument", 'Boolean'>
|
|
readonly licenseClasses: FieldRef<"IdentityDocument", 'String'>
|
|
readonly licenseIssueDate: FieldRef<"IdentityDocument", 'DateTime'>
|
|
readonly createdAt: FieldRef<"IdentityDocument", 'DateTime'>
|
|
readonly updatedAt: FieldRef<"IdentityDocument", 'DateTime'>
|
|
}
|
|
|
|
|
|
// Custom InputTypes
|
|
/**
|
|
* IdentityDocument findUnique
|
|
*/
|
|
export type IdentityDocumentFindUniqueArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the IdentityDocument
|
|
*/
|
|
select?: IdentityDocumentSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: IdentityDocumentInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which IdentityDocument to fetch.
|
|
*/
|
|
where: IdentityDocumentWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* IdentityDocument findUniqueOrThrow
|
|
*/
|
|
export type IdentityDocumentFindUniqueOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the IdentityDocument
|
|
*/
|
|
select?: IdentityDocumentSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: IdentityDocumentInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which IdentityDocument to fetch.
|
|
*/
|
|
where: IdentityDocumentWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* IdentityDocument findFirst
|
|
*/
|
|
export type IdentityDocumentFindFirstArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the IdentityDocument
|
|
*/
|
|
select?: IdentityDocumentSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: IdentityDocumentInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which IdentityDocument to fetch.
|
|
*/
|
|
where?: IdentityDocumentWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of IdentityDocuments to fetch.
|
|
*/
|
|
orderBy?: IdentityDocumentOrderByWithRelationInput | IdentityDocumentOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for searching for IdentityDocuments.
|
|
*/
|
|
cursor?: IdentityDocumentWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` IdentityDocuments from the position of the cursor.
|
|
*/
|
|
take?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Skip the first `n` IdentityDocuments.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
*
|
|
* Filter by unique combinations of IdentityDocuments.
|
|
*/
|
|
distinct?: IdentityDocumentScalarFieldEnum | IdentityDocumentScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* IdentityDocument findFirstOrThrow
|
|
*/
|
|
export type IdentityDocumentFindFirstOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the IdentityDocument
|
|
*/
|
|
select?: IdentityDocumentSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: IdentityDocumentInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which IdentityDocument to fetch.
|
|
*/
|
|
where?: IdentityDocumentWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of IdentityDocuments to fetch.
|
|
*/
|
|
orderBy?: IdentityDocumentOrderByWithRelationInput | IdentityDocumentOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for searching for IdentityDocuments.
|
|
*/
|
|
cursor?: IdentityDocumentWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` IdentityDocuments from the position of the cursor.
|
|
*/
|
|
take?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Skip the first `n` IdentityDocuments.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
*
|
|
* Filter by unique combinations of IdentityDocuments.
|
|
*/
|
|
distinct?: IdentityDocumentScalarFieldEnum | IdentityDocumentScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* IdentityDocument findMany
|
|
*/
|
|
export type IdentityDocumentFindManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the IdentityDocument
|
|
*/
|
|
select?: IdentityDocumentSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: IdentityDocumentInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which IdentityDocuments to fetch.
|
|
*/
|
|
where?: IdentityDocumentWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of IdentityDocuments to fetch.
|
|
*/
|
|
orderBy?: IdentityDocumentOrderByWithRelationInput | IdentityDocumentOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for listing IdentityDocuments.
|
|
*/
|
|
cursor?: IdentityDocumentWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` IdentityDocuments from the position of the cursor.
|
|
*/
|
|
take?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Skip the first `n` IdentityDocuments.
|
|
*/
|
|
skip?: number
|
|
distinct?: IdentityDocumentScalarFieldEnum | IdentityDocumentScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* IdentityDocument create
|
|
*/
|
|
export type IdentityDocumentCreateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the IdentityDocument
|
|
*/
|
|
select?: IdentityDocumentSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: IdentityDocumentInclude<ExtArgs> | null
|
|
/**
|
|
* The data needed to create a IdentityDocument.
|
|
*/
|
|
data: XOR<IdentityDocumentCreateInput, IdentityDocumentUncheckedCreateInput>
|
|
}
|
|
|
|
/**
|
|
* IdentityDocument createMany
|
|
*/
|
|
export type IdentityDocumentCreateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* The data used to create many IdentityDocuments.
|
|
*/
|
|
data: IdentityDocumentCreateManyInput | IdentityDocumentCreateManyInput[]
|
|
skipDuplicates?: boolean
|
|
}
|
|
|
|
/**
|
|
* IdentityDocument update
|
|
*/
|
|
export type IdentityDocumentUpdateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the IdentityDocument
|
|
*/
|
|
select?: IdentityDocumentSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: IdentityDocumentInclude<ExtArgs> | null
|
|
/**
|
|
* The data needed to update a IdentityDocument.
|
|
*/
|
|
data: XOR<IdentityDocumentUpdateInput, IdentityDocumentUncheckedUpdateInput>
|
|
/**
|
|
* Choose, which IdentityDocument to update.
|
|
*/
|
|
where: IdentityDocumentWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* IdentityDocument updateMany
|
|
*/
|
|
export type IdentityDocumentUpdateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* The data used to update IdentityDocuments.
|
|
*/
|
|
data: XOR<IdentityDocumentUpdateManyMutationInput, IdentityDocumentUncheckedUpdateManyInput>
|
|
/**
|
|
* Filter which IdentityDocuments to update
|
|
*/
|
|
where?: IdentityDocumentWhereInput
|
|
}
|
|
|
|
/**
|
|
* IdentityDocument upsert
|
|
*/
|
|
export type IdentityDocumentUpsertArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the IdentityDocument
|
|
*/
|
|
select?: IdentityDocumentSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: IdentityDocumentInclude<ExtArgs> | null
|
|
/**
|
|
* The filter to search for the IdentityDocument to update in case it exists.
|
|
*/
|
|
where: IdentityDocumentWhereUniqueInput
|
|
/**
|
|
* In case the IdentityDocument found by the `where` argument doesn't exist, create a new IdentityDocument with this data.
|
|
*/
|
|
create: XOR<IdentityDocumentCreateInput, IdentityDocumentUncheckedCreateInput>
|
|
/**
|
|
* In case the IdentityDocument was found with the provided `where` argument, update it with this data.
|
|
*/
|
|
update: XOR<IdentityDocumentUpdateInput, IdentityDocumentUncheckedUpdateInput>
|
|
}
|
|
|
|
/**
|
|
* IdentityDocument delete
|
|
*/
|
|
export type IdentityDocumentDeleteArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the IdentityDocument
|
|
*/
|
|
select?: IdentityDocumentSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: IdentityDocumentInclude<ExtArgs> | null
|
|
/**
|
|
* Filter which IdentityDocument to delete.
|
|
*/
|
|
where: IdentityDocumentWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* IdentityDocument deleteMany
|
|
*/
|
|
export type IdentityDocumentDeleteManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Filter which IdentityDocuments to delete
|
|
*/
|
|
where?: IdentityDocumentWhereInput
|
|
}
|
|
|
|
/**
|
|
* IdentityDocument.contracts
|
|
*/
|
|
export type IdentityDocument$contractsArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the Contract
|
|
*/
|
|
select?: ContractSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: ContractInclude<ExtArgs> | null
|
|
where?: ContractWhereInput
|
|
orderBy?: ContractOrderByWithRelationInput | ContractOrderByWithRelationInput[]
|
|
cursor?: ContractWhereUniqueInput
|
|
take?: number
|
|
skip?: number
|
|
distinct?: ContractScalarFieldEnum | ContractScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* IdentityDocument without action
|
|
*/
|
|
export type IdentityDocumentDefaultArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the IdentityDocument
|
|
*/
|
|
select?: IdentityDocumentSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: IdentityDocumentInclude<ExtArgs> | null
|
|
}
|
|
|
|
|
|
/**
|
|
* Model EmailProviderConfig
|
|
*/
|
|
|
|
export type AggregateEmailProviderConfig = {
|
|
_count: EmailProviderConfigCountAggregateOutputType | null
|
|
_avg: EmailProviderConfigAvgAggregateOutputType | null
|
|
_sum: EmailProviderConfigSumAggregateOutputType | null
|
|
_min: EmailProviderConfigMinAggregateOutputType | null
|
|
_max: EmailProviderConfigMaxAggregateOutputType | null
|
|
}
|
|
|
|
export type EmailProviderConfigAvgAggregateOutputType = {
|
|
id: number | null
|
|
imapPort: number | null
|
|
smtpPort: number | null
|
|
}
|
|
|
|
export type EmailProviderConfigSumAggregateOutputType = {
|
|
id: number | null
|
|
imapPort: number | null
|
|
smtpPort: number | null
|
|
}
|
|
|
|
export type EmailProviderConfigMinAggregateOutputType = {
|
|
id: number | null
|
|
name: string | null
|
|
type: $Enums.EmailProviderType | null
|
|
apiUrl: string | null
|
|
apiKey: string | null
|
|
username: string | null
|
|
passwordEncrypted: string | null
|
|
domain: string | null
|
|
defaultForwardEmail: string | null
|
|
imapServer: string | null
|
|
imapPort: number | null
|
|
smtpServer: string | null
|
|
smtpPort: number | null
|
|
imapEncryption: $Enums.MailEncryption | null
|
|
smtpEncryption: $Enums.MailEncryption | null
|
|
allowSelfSignedCerts: boolean | null
|
|
isActive: boolean | null
|
|
isDefault: boolean | null
|
|
createdAt: Date | null
|
|
updatedAt: Date | null
|
|
}
|
|
|
|
export type EmailProviderConfigMaxAggregateOutputType = {
|
|
id: number | null
|
|
name: string | null
|
|
type: $Enums.EmailProviderType | null
|
|
apiUrl: string | null
|
|
apiKey: string | null
|
|
username: string | null
|
|
passwordEncrypted: string | null
|
|
domain: string | null
|
|
defaultForwardEmail: string | null
|
|
imapServer: string | null
|
|
imapPort: number | null
|
|
smtpServer: string | null
|
|
smtpPort: number | null
|
|
imapEncryption: $Enums.MailEncryption | null
|
|
smtpEncryption: $Enums.MailEncryption | null
|
|
allowSelfSignedCerts: boolean | null
|
|
isActive: boolean | null
|
|
isDefault: boolean | null
|
|
createdAt: Date | null
|
|
updatedAt: Date | null
|
|
}
|
|
|
|
export type EmailProviderConfigCountAggregateOutputType = {
|
|
id: number
|
|
name: number
|
|
type: number
|
|
apiUrl: number
|
|
apiKey: number
|
|
username: number
|
|
passwordEncrypted: number
|
|
domain: number
|
|
defaultForwardEmail: number
|
|
imapServer: number
|
|
imapPort: number
|
|
smtpServer: number
|
|
smtpPort: number
|
|
imapEncryption: number
|
|
smtpEncryption: number
|
|
allowSelfSignedCerts: number
|
|
isActive: number
|
|
isDefault: number
|
|
createdAt: number
|
|
updatedAt: number
|
|
_all: number
|
|
}
|
|
|
|
|
|
export type EmailProviderConfigAvgAggregateInputType = {
|
|
id?: true
|
|
imapPort?: true
|
|
smtpPort?: true
|
|
}
|
|
|
|
export type EmailProviderConfigSumAggregateInputType = {
|
|
id?: true
|
|
imapPort?: true
|
|
smtpPort?: true
|
|
}
|
|
|
|
export type EmailProviderConfigMinAggregateInputType = {
|
|
id?: true
|
|
name?: true
|
|
type?: true
|
|
apiUrl?: true
|
|
apiKey?: true
|
|
username?: true
|
|
passwordEncrypted?: true
|
|
domain?: true
|
|
defaultForwardEmail?: true
|
|
imapServer?: true
|
|
imapPort?: true
|
|
smtpServer?: true
|
|
smtpPort?: true
|
|
imapEncryption?: true
|
|
smtpEncryption?: true
|
|
allowSelfSignedCerts?: true
|
|
isActive?: true
|
|
isDefault?: true
|
|
createdAt?: true
|
|
updatedAt?: true
|
|
}
|
|
|
|
export type EmailProviderConfigMaxAggregateInputType = {
|
|
id?: true
|
|
name?: true
|
|
type?: true
|
|
apiUrl?: true
|
|
apiKey?: true
|
|
username?: true
|
|
passwordEncrypted?: true
|
|
domain?: true
|
|
defaultForwardEmail?: true
|
|
imapServer?: true
|
|
imapPort?: true
|
|
smtpServer?: true
|
|
smtpPort?: true
|
|
imapEncryption?: true
|
|
smtpEncryption?: true
|
|
allowSelfSignedCerts?: true
|
|
isActive?: true
|
|
isDefault?: true
|
|
createdAt?: true
|
|
updatedAt?: true
|
|
}
|
|
|
|
export type EmailProviderConfigCountAggregateInputType = {
|
|
id?: true
|
|
name?: true
|
|
type?: true
|
|
apiUrl?: true
|
|
apiKey?: true
|
|
username?: true
|
|
passwordEncrypted?: true
|
|
domain?: true
|
|
defaultForwardEmail?: true
|
|
imapServer?: true
|
|
imapPort?: true
|
|
smtpServer?: true
|
|
smtpPort?: true
|
|
imapEncryption?: true
|
|
smtpEncryption?: true
|
|
allowSelfSignedCerts?: true
|
|
isActive?: true
|
|
isDefault?: true
|
|
createdAt?: true
|
|
updatedAt?: true
|
|
_all?: true
|
|
}
|
|
|
|
export type EmailProviderConfigAggregateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Filter which EmailProviderConfig to aggregate.
|
|
*/
|
|
where?: EmailProviderConfigWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of EmailProviderConfigs to fetch.
|
|
*/
|
|
orderBy?: EmailProviderConfigOrderByWithRelationInput | EmailProviderConfigOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the start position
|
|
*/
|
|
cursor?: EmailProviderConfigWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` EmailProviderConfigs from the position of the cursor.
|
|
*/
|
|
take?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Skip the first `n` EmailProviderConfigs.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Count returned EmailProviderConfigs
|
|
**/
|
|
_count?: true | EmailProviderConfigCountAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to average
|
|
**/
|
|
_avg?: EmailProviderConfigAvgAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to sum
|
|
**/
|
|
_sum?: EmailProviderConfigSumAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to find the minimum value
|
|
**/
|
|
_min?: EmailProviderConfigMinAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to find the maximum value
|
|
**/
|
|
_max?: EmailProviderConfigMaxAggregateInputType
|
|
}
|
|
|
|
export type GetEmailProviderConfigAggregateType<T extends EmailProviderConfigAggregateArgs> = {
|
|
[P in keyof T & keyof AggregateEmailProviderConfig]: P extends '_count' | 'count'
|
|
? T[P] extends true
|
|
? number
|
|
: GetScalarType<T[P], AggregateEmailProviderConfig[P]>
|
|
: GetScalarType<T[P], AggregateEmailProviderConfig[P]>
|
|
}
|
|
|
|
|
|
|
|
|
|
export type EmailProviderConfigGroupByArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
where?: EmailProviderConfigWhereInput
|
|
orderBy?: EmailProviderConfigOrderByWithAggregationInput | EmailProviderConfigOrderByWithAggregationInput[]
|
|
by: EmailProviderConfigScalarFieldEnum[] | EmailProviderConfigScalarFieldEnum
|
|
having?: EmailProviderConfigScalarWhereWithAggregatesInput
|
|
take?: number
|
|
skip?: number
|
|
_count?: EmailProviderConfigCountAggregateInputType | true
|
|
_avg?: EmailProviderConfigAvgAggregateInputType
|
|
_sum?: EmailProviderConfigSumAggregateInputType
|
|
_min?: EmailProviderConfigMinAggregateInputType
|
|
_max?: EmailProviderConfigMaxAggregateInputType
|
|
}
|
|
|
|
export type EmailProviderConfigGroupByOutputType = {
|
|
id: number
|
|
name: string
|
|
type: $Enums.EmailProviderType
|
|
apiUrl: string
|
|
apiKey: string | null
|
|
username: string | null
|
|
passwordEncrypted: string | null
|
|
domain: string
|
|
defaultForwardEmail: string | null
|
|
imapServer: string | null
|
|
imapPort: number | null
|
|
smtpServer: string | null
|
|
smtpPort: number | null
|
|
imapEncryption: $Enums.MailEncryption
|
|
smtpEncryption: $Enums.MailEncryption
|
|
allowSelfSignedCerts: boolean
|
|
isActive: boolean
|
|
isDefault: boolean
|
|
createdAt: Date
|
|
updatedAt: Date
|
|
_count: EmailProviderConfigCountAggregateOutputType | null
|
|
_avg: EmailProviderConfigAvgAggregateOutputType | null
|
|
_sum: EmailProviderConfigSumAggregateOutputType | null
|
|
_min: EmailProviderConfigMinAggregateOutputType | null
|
|
_max: EmailProviderConfigMaxAggregateOutputType | null
|
|
}
|
|
|
|
type GetEmailProviderConfigGroupByPayload<T extends EmailProviderConfigGroupByArgs> = Prisma.PrismaPromise<
|
|
Array<
|
|
PickEnumerable<EmailProviderConfigGroupByOutputType, T['by']> &
|
|
{
|
|
[P in ((keyof T) & (keyof EmailProviderConfigGroupByOutputType))]: P extends '_count'
|
|
? T[P] extends boolean
|
|
? number
|
|
: GetScalarType<T[P], EmailProviderConfigGroupByOutputType[P]>
|
|
: GetScalarType<T[P], EmailProviderConfigGroupByOutputType[P]>
|
|
}
|
|
>
|
|
>
|
|
|
|
|
|
export type EmailProviderConfigSelect<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
|
|
id?: boolean
|
|
name?: boolean
|
|
type?: boolean
|
|
apiUrl?: boolean
|
|
apiKey?: boolean
|
|
username?: boolean
|
|
passwordEncrypted?: boolean
|
|
domain?: boolean
|
|
defaultForwardEmail?: boolean
|
|
imapServer?: boolean
|
|
imapPort?: boolean
|
|
smtpServer?: boolean
|
|
smtpPort?: boolean
|
|
imapEncryption?: boolean
|
|
smtpEncryption?: boolean
|
|
allowSelfSignedCerts?: boolean
|
|
isActive?: boolean
|
|
isDefault?: boolean
|
|
createdAt?: boolean
|
|
updatedAt?: boolean
|
|
}, ExtArgs["result"]["emailProviderConfig"]>
|
|
|
|
|
|
export type EmailProviderConfigSelectScalar = {
|
|
id?: boolean
|
|
name?: boolean
|
|
type?: boolean
|
|
apiUrl?: boolean
|
|
apiKey?: boolean
|
|
username?: boolean
|
|
passwordEncrypted?: boolean
|
|
domain?: boolean
|
|
defaultForwardEmail?: boolean
|
|
imapServer?: boolean
|
|
imapPort?: boolean
|
|
smtpServer?: boolean
|
|
smtpPort?: boolean
|
|
imapEncryption?: boolean
|
|
smtpEncryption?: boolean
|
|
allowSelfSignedCerts?: boolean
|
|
isActive?: boolean
|
|
isDefault?: boolean
|
|
createdAt?: boolean
|
|
updatedAt?: boolean
|
|
}
|
|
|
|
|
|
export type $EmailProviderConfigPayload<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
name: "EmailProviderConfig"
|
|
objects: {}
|
|
scalars: $Extensions.GetPayloadResult<{
|
|
id: number
|
|
name: string
|
|
type: $Enums.EmailProviderType
|
|
apiUrl: string
|
|
apiKey: string | null
|
|
username: string | null
|
|
passwordEncrypted: string | null
|
|
domain: string
|
|
defaultForwardEmail: string | null
|
|
imapServer: string | null
|
|
imapPort: number | null
|
|
smtpServer: string | null
|
|
smtpPort: number | null
|
|
imapEncryption: $Enums.MailEncryption
|
|
smtpEncryption: $Enums.MailEncryption
|
|
allowSelfSignedCerts: boolean
|
|
isActive: boolean
|
|
isDefault: boolean
|
|
createdAt: Date
|
|
updatedAt: Date
|
|
}, ExtArgs["result"]["emailProviderConfig"]>
|
|
composites: {}
|
|
}
|
|
|
|
type EmailProviderConfigGetPayload<S extends boolean | null | undefined | EmailProviderConfigDefaultArgs> = $Result.GetResult<Prisma.$EmailProviderConfigPayload, S>
|
|
|
|
type EmailProviderConfigCountArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> =
|
|
Omit<EmailProviderConfigFindManyArgs, 'select' | 'include' | 'distinct'> & {
|
|
select?: EmailProviderConfigCountAggregateInputType | true
|
|
}
|
|
|
|
export interface EmailProviderConfigDelegate<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> {
|
|
[K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['EmailProviderConfig'], meta: { name: 'EmailProviderConfig' } }
|
|
/**
|
|
* Find zero or one EmailProviderConfig that matches the filter.
|
|
* @param {EmailProviderConfigFindUniqueArgs} args - Arguments to find a EmailProviderConfig
|
|
* @example
|
|
* // Get one EmailProviderConfig
|
|
* const emailProviderConfig = await prisma.emailProviderConfig.findUnique({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findUnique<T extends EmailProviderConfigFindUniqueArgs>(args: SelectSubset<T, EmailProviderConfigFindUniqueArgs<ExtArgs>>): Prisma__EmailProviderConfigClient<$Result.GetResult<Prisma.$EmailProviderConfigPayload<ExtArgs>, T, "findUnique"> | null, null, ExtArgs>
|
|
|
|
/**
|
|
* Find one EmailProviderConfig that matches the filter or throw an error with `error.code='P2025'`
|
|
* if no matches were found.
|
|
* @param {EmailProviderConfigFindUniqueOrThrowArgs} args - Arguments to find a EmailProviderConfig
|
|
* @example
|
|
* // Get one EmailProviderConfig
|
|
* const emailProviderConfig = await prisma.emailProviderConfig.findUniqueOrThrow({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findUniqueOrThrow<T extends EmailProviderConfigFindUniqueOrThrowArgs>(args: SelectSubset<T, EmailProviderConfigFindUniqueOrThrowArgs<ExtArgs>>): Prisma__EmailProviderConfigClient<$Result.GetResult<Prisma.$EmailProviderConfigPayload<ExtArgs>, T, "findUniqueOrThrow">, never, ExtArgs>
|
|
|
|
/**
|
|
* Find the first EmailProviderConfig that matches the filter.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {EmailProviderConfigFindFirstArgs} args - Arguments to find a EmailProviderConfig
|
|
* @example
|
|
* // Get one EmailProviderConfig
|
|
* const emailProviderConfig = await prisma.emailProviderConfig.findFirst({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findFirst<T extends EmailProviderConfigFindFirstArgs>(args?: SelectSubset<T, EmailProviderConfigFindFirstArgs<ExtArgs>>): Prisma__EmailProviderConfigClient<$Result.GetResult<Prisma.$EmailProviderConfigPayload<ExtArgs>, T, "findFirst"> | null, null, ExtArgs>
|
|
|
|
/**
|
|
* Find the first EmailProviderConfig that matches the filter or
|
|
* throw `PrismaKnownClientError` with `P2025` code if no matches were found.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {EmailProviderConfigFindFirstOrThrowArgs} args - Arguments to find a EmailProviderConfig
|
|
* @example
|
|
* // Get one EmailProviderConfig
|
|
* const emailProviderConfig = await prisma.emailProviderConfig.findFirstOrThrow({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findFirstOrThrow<T extends EmailProviderConfigFindFirstOrThrowArgs>(args?: SelectSubset<T, EmailProviderConfigFindFirstOrThrowArgs<ExtArgs>>): Prisma__EmailProviderConfigClient<$Result.GetResult<Prisma.$EmailProviderConfigPayload<ExtArgs>, T, "findFirstOrThrow">, never, ExtArgs>
|
|
|
|
/**
|
|
* Find zero or more EmailProviderConfigs that matches the filter.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {EmailProviderConfigFindManyArgs} args - Arguments to filter and select certain fields only.
|
|
* @example
|
|
* // Get all EmailProviderConfigs
|
|
* const emailProviderConfigs = await prisma.emailProviderConfig.findMany()
|
|
*
|
|
* // Get first 10 EmailProviderConfigs
|
|
* const emailProviderConfigs = await prisma.emailProviderConfig.findMany({ take: 10 })
|
|
*
|
|
* // Only select the `id`
|
|
* const emailProviderConfigWithIdOnly = await prisma.emailProviderConfig.findMany({ select: { id: true } })
|
|
*
|
|
*/
|
|
findMany<T extends EmailProviderConfigFindManyArgs>(args?: SelectSubset<T, EmailProviderConfigFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$EmailProviderConfigPayload<ExtArgs>, T, "findMany">>
|
|
|
|
/**
|
|
* Create a EmailProviderConfig.
|
|
* @param {EmailProviderConfigCreateArgs} args - Arguments to create a EmailProviderConfig.
|
|
* @example
|
|
* // Create one EmailProviderConfig
|
|
* const EmailProviderConfig = await prisma.emailProviderConfig.create({
|
|
* data: {
|
|
* // ... data to create a EmailProviderConfig
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
create<T extends EmailProviderConfigCreateArgs>(args: SelectSubset<T, EmailProviderConfigCreateArgs<ExtArgs>>): Prisma__EmailProviderConfigClient<$Result.GetResult<Prisma.$EmailProviderConfigPayload<ExtArgs>, T, "create">, never, ExtArgs>
|
|
|
|
/**
|
|
* Create many EmailProviderConfigs.
|
|
* @param {EmailProviderConfigCreateManyArgs} args - Arguments to create many EmailProviderConfigs.
|
|
* @example
|
|
* // Create many EmailProviderConfigs
|
|
* const emailProviderConfig = await prisma.emailProviderConfig.createMany({
|
|
* data: [
|
|
* // ... provide data here
|
|
* ]
|
|
* })
|
|
*
|
|
*/
|
|
createMany<T extends EmailProviderConfigCreateManyArgs>(args?: SelectSubset<T, EmailProviderConfigCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
|
|
|
|
/**
|
|
* Delete a EmailProviderConfig.
|
|
* @param {EmailProviderConfigDeleteArgs} args - Arguments to delete one EmailProviderConfig.
|
|
* @example
|
|
* // Delete one EmailProviderConfig
|
|
* const EmailProviderConfig = await prisma.emailProviderConfig.delete({
|
|
* where: {
|
|
* // ... filter to delete one EmailProviderConfig
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
delete<T extends EmailProviderConfigDeleteArgs>(args: SelectSubset<T, EmailProviderConfigDeleteArgs<ExtArgs>>): Prisma__EmailProviderConfigClient<$Result.GetResult<Prisma.$EmailProviderConfigPayload<ExtArgs>, T, "delete">, never, ExtArgs>
|
|
|
|
/**
|
|
* Update one EmailProviderConfig.
|
|
* @param {EmailProviderConfigUpdateArgs} args - Arguments to update one EmailProviderConfig.
|
|
* @example
|
|
* // Update one EmailProviderConfig
|
|
* const emailProviderConfig = await prisma.emailProviderConfig.update({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* },
|
|
* data: {
|
|
* // ... provide data here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
update<T extends EmailProviderConfigUpdateArgs>(args: SelectSubset<T, EmailProviderConfigUpdateArgs<ExtArgs>>): Prisma__EmailProviderConfigClient<$Result.GetResult<Prisma.$EmailProviderConfigPayload<ExtArgs>, T, "update">, never, ExtArgs>
|
|
|
|
/**
|
|
* Delete zero or more EmailProviderConfigs.
|
|
* @param {EmailProviderConfigDeleteManyArgs} args - Arguments to filter EmailProviderConfigs to delete.
|
|
* @example
|
|
* // Delete a few EmailProviderConfigs
|
|
* const { count } = await prisma.emailProviderConfig.deleteMany({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
deleteMany<T extends EmailProviderConfigDeleteManyArgs>(args?: SelectSubset<T, EmailProviderConfigDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
|
|
|
|
/**
|
|
* Update zero or more EmailProviderConfigs.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {EmailProviderConfigUpdateManyArgs} args - Arguments to update one or more rows.
|
|
* @example
|
|
* // Update many EmailProviderConfigs
|
|
* const emailProviderConfig = await prisma.emailProviderConfig.updateMany({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* },
|
|
* data: {
|
|
* // ... provide data here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
updateMany<T extends EmailProviderConfigUpdateManyArgs>(args: SelectSubset<T, EmailProviderConfigUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
|
|
|
|
/**
|
|
* Create or update one EmailProviderConfig.
|
|
* @param {EmailProviderConfigUpsertArgs} args - Arguments to update or create a EmailProviderConfig.
|
|
* @example
|
|
* // Update or create a EmailProviderConfig
|
|
* const emailProviderConfig = await prisma.emailProviderConfig.upsert({
|
|
* create: {
|
|
* // ... data to create a EmailProviderConfig
|
|
* },
|
|
* update: {
|
|
* // ... in case it already exists, update
|
|
* },
|
|
* where: {
|
|
* // ... the filter for the EmailProviderConfig we want to update
|
|
* }
|
|
* })
|
|
*/
|
|
upsert<T extends EmailProviderConfigUpsertArgs>(args: SelectSubset<T, EmailProviderConfigUpsertArgs<ExtArgs>>): Prisma__EmailProviderConfigClient<$Result.GetResult<Prisma.$EmailProviderConfigPayload<ExtArgs>, T, "upsert">, never, ExtArgs>
|
|
|
|
|
|
/**
|
|
* Count the number of EmailProviderConfigs.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {EmailProviderConfigCountArgs} args - Arguments to filter EmailProviderConfigs to count.
|
|
* @example
|
|
* // Count the number of EmailProviderConfigs
|
|
* const count = await prisma.emailProviderConfig.count({
|
|
* where: {
|
|
* // ... the filter for the EmailProviderConfigs we want to count
|
|
* }
|
|
* })
|
|
**/
|
|
count<T extends EmailProviderConfigCountArgs>(
|
|
args?: Subset<T, EmailProviderConfigCountArgs>,
|
|
): Prisma.PrismaPromise<
|
|
T extends $Utils.Record<'select', any>
|
|
? T['select'] extends true
|
|
? number
|
|
: GetScalarType<T['select'], EmailProviderConfigCountAggregateOutputType>
|
|
: number
|
|
>
|
|
|
|
/**
|
|
* Allows you to perform aggregations operations on a EmailProviderConfig.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {EmailProviderConfigAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
|
|
* @example
|
|
* // Ordered by age ascending
|
|
* // Where email contains prisma.io
|
|
* // Limited to the 10 users
|
|
* const aggregations = await prisma.user.aggregate({
|
|
* _avg: {
|
|
* age: true,
|
|
* },
|
|
* where: {
|
|
* email: {
|
|
* contains: "prisma.io",
|
|
* },
|
|
* },
|
|
* orderBy: {
|
|
* age: "asc",
|
|
* },
|
|
* take: 10,
|
|
* })
|
|
**/
|
|
aggregate<T extends EmailProviderConfigAggregateArgs>(args: Subset<T, EmailProviderConfigAggregateArgs>): Prisma.PrismaPromise<GetEmailProviderConfigAggregateType<T>>
|
|
|
|
/**
|
|
* Group by EmailProviderConfig.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {EmailProviderConfigGroupByArgs} args - Group by arguments.
|
|
* @example
|
|
* // Group by city, order by createdAt, get count
|
|
* const result = await prisma.user.groupBy({
|
|
* by: ['city', 'createdAt'],
|
|
* orderBy: {
|
|
* createdAt: true
|
|
* },
|
|
* _count: {
|
|
* _all: true
|
|
* },
|
|
* })
|
|
*
|
|
**/
|
|
groupBy<
|
|
T extends EmailProviderConfigGroupByArgs,
|
|
HasSelectOrTake extends Or<
|
|
Extends<'skip', Keys<T>>,
|
|
Extends<'take', Keys<T>>
|
|
>,
|
|
OrderByArg extends True extends HasSelectOrTake
|
|
? { orderBy: EmailProviderConfigGroupByArgs['orderBy'] }
|
|
: { orderBy?: EmailProviderConfigGroupByArgs['orderBy'] },
|
|
OrderFields extends ExcludeUnderscoreKeys<Keys<MaybeTupleToUnion<T['orderBy']>>>,
|
|
ByFields extends MaybeTupleToUnion<T['by']>,
|
|
ByValid extends Has<ByFields, OrderFields>,
|
|
HavingFields extends GetHavingFields<T['having']>,
|
|
HavingValid extends Has<ByFields, HavingFields>,
|
|
ByEmpty extends T['by'] extends never[] ? True : False,
|
|
InputErrors extends ByEmpty extends True
|
|
? `Error: "by" must not be empty.`
|
|
: HavingValid extends False
|
|
? {
|
|
[P in HavingFields]: P extends ByFields
|
|
? never
|
|
: P extends string
|
|
? `Error: Field "${P}" used in "having" needs to be provided in "by".`
|
|
: [
|
|
Error,
|
|
'Field ',
|
|
P,
|
|
` in "having" needs to be provided in "by"`,
|
|
]
|
|
}[HavingFields]
|
|
: 'take' extends Keys<T>
|
|
? 'orderBy' extends Keys<T>
|
|
? ByValid extends True
|
|
? {}
|
|
: {
|
|
[P in OrderFields]: P extends ByFields
|
|
? never
|
|
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
|
|
}[OrderFields]
|
|
: 'Error: If you provide "take", you also need to provide "orderBy"'
|
|
: 'skip' extends Keys<T>
|
|
? 'orderBy' extends Keys<T>
|
|
? ByValid extends True
|
|
? {}
|
|
: {
|
|
[P in OrderFields]: P extends ByFields
|
|
? never
|
|
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
|
|
}[OrderFields]
|
|
: 'Error: If you provide "skip", you also need to provide "orderBy"'
|
|
: ByValid extends True
|
|
? {}
|
|
: {
|
|
[P in OrderFields]: P extends ByFields
|
|
? never
|
|
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
|
|
}[OrderFields]
|
|
>(args: SubsetIntersection<T, EmailProviderConfigGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetEmailProviderConfigGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
|
|
/**
|
|
* Fields of the EmailProviderConfig model
|
|
*/
|
|
readonly fields: EmailProviderConfigFieldRefs;
|
|
}
|
|
|
|
/**
|
|
* The delegate class that acts as a "Promise-like" for EmailProviderConfig.
|
|
* Why is this prefixed with `Prisma__`?
|
|
* Because we want to prevent naming conflicts as mentioned in
|
|
* https://github.com/prisma/prisma-client-js/issues/707
|
|
*/
|
|
export interface Prisma__EmailProviderConfigClient<T, Null = never, ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> extends Prisma.PrismaPromise<T> {
|
|
readonly [Symbol.toStringTag]: "PrismaPromise"
|
|
/**
|
|
* Attaches callbacks for the resolution and/or rejection of the Promise.
|
|
* @param onfulfilled The callback to execute when the Promise is resolved.
|
|
* @param onrejected The callback to execute when the Promise is rejected.
|
|
* @returns A Promise for the completion of which ever callback is executed.
|
|
*/
|
|
then<TResult1 = T, TResult2 = never>(onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined | null): $Utils.JsPromise<TResult1 | TResult2>
|
|
/**
|
|
* Attaches a callback for only the rejection of the Promise.
|
|
* @param onrejected The callback to execute when the Promise is rejected.
|
|
* @returns A Promise for the completion of the callback.
|
|
*/
|
|
catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): $Utils.JsPromise<T | TResult>
|
|
/**
|
|
* Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
|
|
* resolved value cannot be modified from the callback.
|
|
* @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
|
|
* @returns A Promise for the completion of the callback.
|
|
*/
|
|
finally(onfinally?: (() => void) | undefined | null): $Utils.JsPromise<T>
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
* Fields of the EmailProviderConfig model
|
|
*/
|
|
interface EmailProviderConfigFieldRefs {
|
|
readonly id: FieldRef<"EmailProviderConfig", 'Int'>
|
|
readonly name: FieldRef<"EmailProviderConfig", 'String'>
|
|
readonly type: FieldRef<"EmailProviderConfig", 'EmailProviderType'>
|
|
readonly apiUrl: FieldRef<"EmailProviderConfig", 'String'>
|
|
readonly apiKey: FieldRef<"EmailProviderConfig", 'String'>
|
|
readonly username: FieldRef<"EmailProviderConfig", 'String'>
|
|
readonly passwordEncrypted: FieldRef<"EmailProviderConfig", 'String'>
|
|
readonly domain: FieldRef<"EmailProviderConfig", 'String'>
|
|
readonly defaultForwardEmail: FieldRef<"EmailProviderConfig", 'String'>
|
|
readonly imapServer: FieldRef<"EmailProviderConfig", 'String'>
|
|
readonly imapPort: FieldRef<"EmailProviderConfig", 'Int'>
|
|
readonly smtpServer: FieldRef<"EmailProviderConfig", 'String'>
|
|
readonly smtpPort: FieldRef<"EmailProviderConfig", 'Int'>
|
|
readonly imapEncryption: FieldRef<"EmailProviderConfig", 'MailEncryption'>
|
|
readonly smtpEncryption: FieldRef<"EmailProviderConfig", 'MailEncryption'>
|
|
readonly allowSelfSignedCerts: FieldRef<"EmailProviderConfig", 'Boolean'>
|
|
readonly isActive: FieldRef<"EmailProviderConfig", 'Boolean'>
|
|
readonly isDefault: FieldRef<"EmailProviderConfig", 'Boolean'>
|
|
readonly createdAt: FieldRef<"EmailProviderConfig", 'DateTime'>
|
|
readonly updatedAt: FieldRef<"EmailProviderConfig", 'DateTime'>
|
|
}
|
|
|
|
|
|
// Custom InputTypes
|
|
/**
|
|
* EmailProviderConfig findUnique
|
|
*/
|
|
export type EmailProviderConfigFindUniqueArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the EmailProviderConfig
|
|
*/
|
|
select?: EmailProviderConfigSelect<ExtArgs> | null
|
|
/**
|
|
* Filter, which EmailProviderConfig to fetch.
|
|
*/
|
|
where: EmailProviderConfigWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* EmailProviderConfig findUniqueOrThrow
|
|
*/
|
|
export type EmailProviderConfigFindUniqueOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the EmailProviderConfig
|
|
*/
|
|
select?: EmailProviderConfigSelect<ExtArgs> | null
|
|
/**
|
|
* Filter, which EmailProviderConfig to fetch.
|
|
*/
|
|
where: EmailProviderConfigWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* EmailProviderConfig findFirst
|
|
*/
|
|
export type EmailProviderConfigFindFirstArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the EmailProviderConfig
|
|
*/
|
|
select?: EmailProviderConfigSelect<ExtArgs> | null
|
|
/**
|
|
* Filter, which EmailProviderConfig to fetch.
|
|
*/
|
|
where?: EmailProviderConfigWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of EmailProviderConfigs to fetch.
|
|
*/
|
|
orderBy?: EmailProviderConfigOrderByWithRelationInput | EmailProviderConfigOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for searching for EmailProviderConfigs.
|
|
*/
|
|
cursor?: EmailProviderConfigWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` EmailProviderConfigs from the position of the cursor.
|
|
*/
|
|
take?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Skip the first `n` EmailProviderConfigs.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
*
|
|
* Filter by unique combinations of EmailProviderConfigs.
|
|
*/
|
|
distinct?: EmailProviderConfigScalarFieldEnum | EmailProviderConfigScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* EmailProviderConfig findFirstOrThrow
|
|
*/
|
|
export type EmailProviderConfigFindFirstOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the EmailProviderConfig
|
|
*/
|
|
select?: EmailProviderConfigSelect<ExtArgs> | null
|
|
/**
|
|
* Filter, which EmailProviderConfig to fetch.
|
|
*/
|
|
where?: EmailProviderConfigWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of EmailProviderConfigs to fetch.
|
|
*/
|
|
orderBy?: EmailProviderConfigOrderByWithRelationInput | EmailProviderConfigOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for searching for EmailProviderConfigs.
|
|
*/
|
|
cursor?: EmailProviderConfigWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` EmailProviderConfigs from the position of the cursor.
|
|
*/
|
|
take?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Skip the first `n` EmailProviderConfigs.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
*
|
|
* Filter by unique combinations of EmailProviderConfigs.
|
|
*/
|
|
distinct?: EmailProviderConfigScalarFieldEnum | EmailProviderConfigScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* EmailProviderConfig findMany
|
|
*/
|
|
export type EmailProviderConfigFindManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the EmailProviderConfig
|
|
*/
|
|
select?: EmailProviderConfigSelect<ExtArgs> | null
|
|
/**
|
|
* Filter, which EmailProviderConfigs to fetch.
|
|
*/
|
|
where?: EmailProviderConfigWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of EmailProviderConfigs to fetch.
|
|
*/
|
|
orderBy?: EmailProviderConfigOrderByWithRelationInput | EmailProviderConfigOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for listing EmailProviderConfigs.
|
|
*/
|
|
cursor?: EmailProviderConfigWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` EmailProviderConfigs from the position of the cursor.
|
|
*/
|
|
take?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Skip the first `n` EmailProviderConfigs.
|
|
*/
|
|
skip?: number
|
|
distinct?: EmailProviderConfigScalarFieldEnum | EmailProviderConfigScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* EmailProviderConfig create
|
|
*/
|
|
export type EmailProviderConfigCreateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the EmailProviderConfig
|
|
*/
|
|
select?: EmailProviderConfigSelect<ExtArgs> | null
|
|
/**
|
|
* The data needed to create a EmailProviderConfig.
|
|
*/
|
|
data: XOR<EmailProviderConfigCreateInput, EmailProviderConfigUncheckedCreateInput>
|
|
}
|
|
|
|
/**
|
|
* EmailProviderConfig createMany
|
|
*/
|
|
export type EmailProviderConfigCreateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* The data used to create many EmailProviderConfigs.
|
|
*/
|
|
data: EmailProviderConfigCreateManyInput | EmailProviderConfigCreateManyInput[]
|
|
skipDuplicates?: boolean
|
|
}
|
|
|
|
/**
|
|
* EmailProviderConfig update
|
|
*/
|
|
export type EmailProviderConfigUpdateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the EmailProviderConfig
|
|
*/
|
|
select?: EmailProviderConfigSelect<ExtArgs> | null
|
|
/**
|
|
* The data needed to update a EmailProviderConfig.
|
|
*/
|
|
data: XOR<EmailProviderConfigUpdateInput, EmailProviderConfigUncheckedUpdateInput>
|
|
/**
|
|
* Choose, which EmailProviderConfig to update.
|
|
*/
|
|
where: EmailProviderConfigWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* EmailProviderConfig updateMany
|
|
*/
|
|
export type EmailProviderConfigUpdateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* The data used to update EmailProviderConfigs.
|
|
*/
|
|
data: XOR<EmailProviderConfigUpdateManyMutationInput, EmailProviderConfigUncheckedUpdateManyInput>
|
|
/**
|
|
* Filter which EmailProviderConfigs to update
|
|
*/
|
|
where?: EmailProviderConfigWhereInput
|
|
}
|
|
|
|
/**
|
|
* EmailProviderConfig upsert
|
|
*/
|
|
export type EmailProviderConfigUpsertArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the EmailProviderConfig
|
|
*/
|
|
select?: EmailProviderConfigSelect<ExtArgs> | null
|
|
/**
|
|
* The filter to search for the EmailProviderConfig to update in case it exists.
|
|
*/
|
|
where: EmailProviderConfigWhereUniqueInput
|
|
/**
|
|
* In case the EmailProviderConfig found by the `where` argument doesn't exist, create a new EmailProviderConfig with this data.
|
|
*/
|
|
create: XOR<EmailProviderConfigCreateInput, EmailProviderConfigUncheckedCreateInput>
|
|
/**
|
|
* In case the EmailProviderConfig was found with the provided `where` argument, update it with this data.
|
|
*/
|
|
update: XOR<EmailProviderConfigUpdateInput, EmailProviderConfigUncheckedUpdateInput>
|
|
}
|
|
|
|
/**
|
|
* EmailProviderConfig delete
|
|
*/
|
|
export type EmailProviderConfigDeleteArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the EmailProviderConfig
|
|
*/
|
|
select?: EmailProviderConfigSelect<ExtArgs> | null
|
|
/**
|
|
* Filter which EmailProviderConfig to delete.
|
|
*/
|
|
where: EmailProviderConfigWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* EmailProviderConfig deleteMany
|
|
*/
|
|
export type EmailProviderConfigDeleteManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Filter which EmailProviderConfigs to delete
|
|
*/
|
|
where?: EmailProviderConfigWhereInput
|
|
}
|
|
|
|
/**
|
|
* EmailProviderConfig without action
|
|
*/
|
|
export type EmailProviderConfigDefaultArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the EmailProviderConfig
|
|
*/
|
|
select?: EmailProviderConfigSelect<ExtArgs> | null
|
|
}
|
|
|
|
|
|
/**
|
|
* Model StressfreiEmail
|
|
*/
|
|
|
|
export type AggregateStressfreiEmail = {
|
|
_count: StressfreiEmailCountAggregateOutputType | null
|
|
_avg: StressfreiEmailAvgAggregateOutputType | null
|
|
_sum: StressfreiEmailSumAggregateOutputType | null
|
|
_min: StressfreiEmailMinAggregateOutputType | null
|
|
_max: StressfreiEmailMaxAggregateOutputType | null
|
|
}
|
|
|
|
export type StressfreiEmailAvgAggregateOutputType = {
|
|
id: number | null
|
|
customerId: number | null
|
|
}
|
|
|
|
export type StressfreiEmailSumAggregateOutputType = {
|
|
id: number | null
|
|
customerId: number | null
|
|
}
|
|
|
|
export type StressfreiEmailMinAggregateOutputType = {
|
|
id: number | null
|
|
customerId: number | null
|
|
email: string | null
|
|
platform: string | null
|
|
notes: string | null
|
|
isActive: boolean | null
|
|
isProvisioned: boolean | null
|
|
provisionedAt: Date | null
|
|
provisionError: string | null
|
|
hasMailbox: boolean | null
|
|
emailPasswordEncrypted: string | null
|
|
createdAt: Date | null
|
|
updatedAt: Date | null
|
|
}
|
|
|
|
export type StressfreiEmailMaxAggregateOutputType = {
|
|
id: number | null
|
|
customerId: number | null
|
|
email: string | null
|
|
platform: string | null
|
|
notes: string | null
|
|
isActive: boolean | null
|
|
isProvisioned: boolean | null
|
|
provisionedAt: Date | null
|
|
provisionError: string | null
|
|
hasMailbox: boolean | null
|
|
emailPasswordEncrypted: string | null
|
|
createdAt: Date | null
|
|
updatedAt: Date | null
|
|
}
|
|
|
|
export type StressfreiEmailCountAggregateOutputType = {
|
|
id: number
|
|
customerId: number
|
|
email: number
|
|
platform: number
|
|
notes: number
|
|
isActive: number
|
|
isProvisioned: number
|
|
provisionedAt: number
|
|
provisionError: number
|
|
hasMailbox: number
|
|
emailPasswordEncrypted: number
|
|
createdAt: number
|
|
updatedAt: number
|
|
_all: number
|
|
}
|
|
|
|
|
|
export type StressfreiEmailAvgAggregateInputType = {
|
|
id?: true
|
|
customerId?: true
|
|
}
|
|
|
|
export type StressfreiEmailSumAggregateInputType = {
|
|
id?: true
|
|
customerId?: true
|
|
}
|
|
|
|
export type StressfreiEmailMinAggregateInputType = {
|
|
id?: true
|
|
customerId?: true
|
|
email?: true
|
|
platform?: true
|
|
notes?: true
|
|
isActive?: true
|
|
isProvisioned?: true
|
|
provisionedAt?: true
|
|
provisionError?: true
|
|
hasMailbox?: true
|
|
emailPasswordEncrypted?: true
|
|
createdAt?: true
|
|
updatedAt?: true
|
|
}
|
|
|
|
export type StressfreiEmailMaxAggregateInputType = {
|
|
id?: true
|
|
customerId?: true
|
|
email?: true
|
|
platform?: true
|
|
notes?: true
|
|
isActive?: true
|
|
isProvisioned?: true
|
|
provisionedAt?: true
|
|
provisionError?: true
|
|
hasMailbox?: true
|
|
emailPasswordEncrypted?: true
|
|
createdAt?: true
|
|
updatedAt?: true
|
|
}
|
|
|
|
export type StressfreiEmailCountAggregateInputType = {
|
|
id?: true
|
|
customerId?: true
|
|
email?: true
|
|
platform?: true
|
|
notes?: true
|
|
isActive?: true
|
|
isProvisioned?: true
|
|
provisionedAt?: true
|
|
provisionError?: true
|
|
hasMailbox?: true
|
|
emailPasswordEncrypted?: true
|
|
createdAt?: true
|
|
updatedAt?: true
|
|
_all?: true
|
|
}
|
|
|
|
export type StressfreiEmailAggregateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Filter which StressfreiEmail to aggregate.
|
|
*/
|
|
where?: StressfreiEmailWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of StressfreiEmails to fetch.
|
|
*/
|
|
orderBy?: StressfreiEmailOrderByWithRelationInput | StressfreiEmailOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the start position
|
|
*/
|
|
cursor?: StressfreiEmailWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` StressfreiEmails from the position of the cursor.
|
|
*/
|
|
take?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Skip the first `n` StressfreiEmails.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Count returned StressfreiEmails
|
|
**/
|
|
_count?: true | StressfreiEmailCountAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to average
|
|
**/
|
|
_avg?: StressfreiEmailAvgAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to sum
|
|
**/
|
|
_sum?: StressfreiEmailSumAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to find the minimum value
|
|
**/
|
|
_min?: StressfreiEmailMinAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to find the maximum value
|
|
**/
|
|
_max?: StressfreiEmailMaxAggregateInputType
|
|
}
|
|
|
|
export type GetStressfreiEmailAggregateType<T extends StressfreiEmailAggregateArgs> = {
|
|
[P in keyof T & keyof AggregateStressfreiEmail]: P extends '_count' | 'count'
|
|
? T[P] extends true
|
|
? number
|
|
: GetScalarType<T[P], AggregateStressfreiEmail[P]>
|
|
: GetScalarType<T[P], AggregateStressfreiEmail[P]>
|
|
}
|
|
|
|
|
|
|
|
|
|
export type StressfreiEmailGroupByArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
where?: StressfreiEmailWhereInput
|
|
orderBy?: StressfreiEmailOrderByWithAggregationInput | StressfreiEmailOrderByWithAggregationInput[]
|
|
by: StressfreiEmailScalarFieldEnum[] | StressfreiEmailScalarFieldEnum
|
|
having?: StressfreiEmailScalarWhereWithAggregatesInput
|
|
take?: number
|
|
skip?: number
|
|
_count?: StressfreiEmailCountAggregateInputType | true
|
|
_avg?: StressfreiEmailAvgAggregateInputType
|
|
_sum?: StressfreiEmailSumAggregateInputType
|
|
_min?: StressfreiEmailMinAggregateInputType
|
|
_max?: StressfreiEmailMaxAggregateInputType
|
|
}
|
|
|
|
export type StressfreiEmailGroupByOutputType = {
|
|
id: number
|
|
customerId: number
|
|
email: string
|
|
platform: string | null
|
|
notes: string | null
|
|
isActive: boolean
|
|
isProvisioned: boolean
|
|
provisionedAt: Date | null
|
|
provisionError: string | null
|
|
hasMailbox: boolean
|
|
emailPasswordEncrypted: string | null
|
|
createdAt: Date
|
|
updatedAt: Date
|
|
_count: StressfreiEmailCountAggregateOutputType | null
|
|
_avg: StressfreiEmailAvgAggregateOutputType | null
|
|
_sum: StressfreiEmailSumAggregateOutputType | null
|
|
_min: StressfreiEmailMinAggregateOutputType | null
|
|
_max: StressfreiEmailMaxAggregateOutputType | null
|
|
}
|
|
|
|
type GetStressfreiEmailGroupByPayload<T extends StressfreiEmailGroupByArgs> = Prisma.PrismaPromise<
|
|
Array<
|
|
PickEnumerable<StressfreiEmailGroupByOutputType, T['by']> &
|
|
{
|
|
[P in ((keyof T) & (keyof StressfreiEmailGroupByOutputType))]: P extends '_count'
|
|
? T[P] extends boolean
|
|
? number
|
|
: GetScalarType<T[P], StressfreiEmailGroupByOutputType[P]>
|
|
: GetScalarType<T[P], StressfreiEmailGroupByOutputType[P]>
|
|
}
|
|
>
|
|
>
|
|
|
|
|
|
export type StressfreiEmailSelect<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
|
|
id?: boolean
|
|
customerId?: boolean
|
|
email?: boolean
|
|
platform?: boolean
|
|
notes?: boolean
|
|
isActive?: boolean
|
|
isProvisioned?: boolean
|
|
provisionedAt?: boolean
|
|
provisionError?: boolean
|
|
hasMailbox?: boolean
|
|
emailPasswordEncrypted?: boolean
|
|
createdAt?: boolean
|
|
updatedAt?: boolean
|
|
customer?: boolean | CustomerDefaultArgs<ExtArgs>
|
|
contracts?: boolean | StressfreiEmail$contractsArgs<ExtArgs>
|
|
cachedEmails?: boolean | StressfreiEmail$cachedEmailsArgs<ExtArgs>
|
|
_count?: boolean | StressfreiEmailCountOutputTypeDefaultArgs<ExtArgs>
|
|
}, ExtArgs["result"]["stressfreiEmail"]>
|
|
|
|
|
|
export type StressfreiEmailSelectScalar = {
|
|
id?: boolean
|
|
customerId?: boolean
|
|
email?: boolean
|
|
platform?: boolean
|
|
notes?: boolean
|
|
isActive?: boolean
|
|
isProvisioned?: boolean
|
|
provisionedAt?: boolean
|
|
provisionError?: boolean
|
|
hasMailbox?: boolean
|
|
emailPasswordEncrypted?: boolean
|
|
createdAt?: boolean
|
|
updatedAt?: boolean
|
|
}
|
|
|
|
export type StressfreiEmailInclude<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
customer?: boolean | CustomerDefaultArgs<ExtArgs>
|
|
contracts?: boolean | StressfreiEmail$contractsArgs<ExtArgs>
|
|
cachedEmails?: boolean | StressfreiEmail$cachedEmailsArgs<ExtArgs>
|
|
_count?: boolean | StressfreiEmailCountOutputTypeDefaultArgs<ExtArgs>
|
|
}
|
|
|
|
export type $StressfreiEmailPayload<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
name: "StressfreiEmail"
|
|
objects: {
|
|
customer: Prisma.$CustomerPayload<ExtArgs>
|
|
contracts: Prisma.$ContractPayload<ExtArgs>[]
|
|
cachedEmails: Prisma.$CachedEmailPayload<ExtArgs>[]
|
|
}
|
|
scalars: $Extensions.GetPayloadResult<{
|
|
id: number
|
|
customerId: number
|
|
email: string
|
|
platform: string | null
|
|
notes: string | null
|
|
isActive: boolean
|
|
isProvisioned: boolean
|
|
provisionedAt: Date | null
|
|
provisionError: string | null
|
|
hasMailbox: boolean
|
|
emailPasswordEncrypted: string | null
|
|
createdAt: Date
|
|
updatedAt: Date
|
|
}, ExtArgs["result"]["stressfreiEmail"]>
|
|
composites: {}
|
|
}
|
|
|
|
type StressfreiEmailGetPayload<S extends boolean | null | undefined | StressfreiEmailDefaultArgs> = $Result.GetResult<Prisma.$StressfreiEmailPayload, S>
|
|
|
|
type StressfreiEmailCountArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> =
|
|
Omit<StressfreiEmailFindManyArgs, 'select' | 'include' | 'distinct'> & {
|
|
select?: StressfreiEmailCountAggregateInputType | true
|
|
}
|
|
|
|
export interface StressfreiEmailDelegate<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> {
|
|
[K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['StressfreiEmail'], meta: { name: 'StressfreiEmail' } }
|
|
/**
|
|
* Find zero or one StressfreiEmail that matches the filter.
|
|
* @param {StressfreiEmailFindUniqueArgs} args - Arguments to find a StressfreiEmail
|
|
* @example
|
|
* // Get one StressfreiEmail
|
|
* const stressfreiEmail = await prisma.stressfreiEmail.findUnique({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findUnique<T extends StressfreiEmailFindUniqueArgs>(args: SelectSubset<T, StressfreiEmailFindUniqueArgs<ExtArgs>>): Prisma__StressfreiEmailClient<$Result.GetResult<Prisma.$StressfreiEmailPayload<ExtArgs>, T, "findUnique"> | null, null, ExtArgs>
|
|
|
|
/**
|
|
* Find one StressfreiEmail that matches the filter or throw an error with `error.code='P2025'`
|
|
* if no matches were found.
|
|
* @param {StressfreiEmailFindUniqueOrThrowArgs} args - Arguments to find a StressfreiEmail
|
|
* @example
|
|
* // Get one StressfreiEmail
|
|
* const stressfreiEmail = await prisma.stressfreiEmail.findUniqueOrThrow({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findUniqueOrThrow<T extends StressfreiEmailFindUniqueOrThrowArgs>(args: SelectSubset<T, StressfreiEmailFindUniqueOrThrowArgs<ExtArgs>>): Prisma__StressfreiEmailClient<$Result.GetResult<Prisma.$StressfreiEmailPayload<ExtArgs>, T, "findUniqueOrThrow">, never, ExtArgs>
|
|
|
|
/**
|
|
* Find the first StressfreiEmail that matches the filter.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {StressfreiEmailFindFirstArgs} args - Arguments to find a StressfreiEmail
|
|
* @example
|
|
* // Get one StressfreiEmail
|
|
* const stressfreiEmail = await prisma.stressfreiEmail.findFirst({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findFirst<T extends StressfreiEmailFindFirstArgs>(args?: SelectSubset<T, StressfreiEmailFindFirstArgs<ExtArgs>>): Prisma__StressfreiEmailClient<$Result.GetResult<Prisma.$StressfreiEmailPayload<ExtArgs>, T, "findFirst"> | null, null, ExtArgs>
|
|
|
|
/**
|
|
* Find the first StressfreiEmail that matches the filter or
|
|
* throw `PrismaKnownClientError` with `P2025` code if no matches were found.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {StressfreiEmailFindFirstOrThrowArgs} args - Arguments to find a StressfreiEmail
|
|
* @example
|
|
* // Get one StressfreiEmail
|
|
* const stressfreiEmail = await prisma.stressfreiEmail.findFirstOrThrow({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findFirstOrThrow<T extends StressfreiEmailFindFirstOrThrowArgs>(args?: SelectSubset<T, StressfreiEmailFindFirstOrThrowArgs<ExtArgs>>): Prisma__StressfreiEmailClient<$Result.GetResult<Prisma.$StressfreiEmailPayload<ExtArgs>, T, "findFirstOrThrow">, never, ExtArgs>
|
|
|
|
/**
|
|
* Find zero or more StressfreiEmails that matches the filter.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {StressfreiEmailFindManyArgs} args - Arguments to filter and select certain fields only.
|
|
* @example
|
|
* // Get all StressfreiEmails
|
|
* const stressfreiEmails = await prisma.stressfreiEmail.findMany()
|
|
*
|
|
* // Get first 10 StressfreiEmails
|
|
* const stressfreiEmails = await prisma.stressfreiEmail.findMany({ take: 10 })
|
|
*
|
|
* // Only select the `id`
|
|
* const stressfreiEmailWithIdOnly = await prisma.stressfreiEmail.findMany({ select: { id: true } })
|
|
*
|
|
*/
|
|
findMany<T extends StressfreiEmailFindManyArgs>(args?: SelectSubset<T, StressfreiEmailFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$StressfreiEmailPayload<ExtArgs>, T, "findMany">>
|
|
|
|
/**
|
|
* Create a StressfreiEmail.
|
|
* @param {StressfreiEmailCreateArgs} args - Arguments to create a StressfreiEmail.
|
|
* @example
|
|
* // Create one StressfreiEmail
|
|
* const StressfreiEmail = await prisma.stressfreiEmail.create({
|
|
* data: {
|
|
* // ... data to create a StressfreiEmail
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
create<T extends StressfreiEmailCreateArgs>(args: SelectSubset<T, StressfreiEmailCreateArgs<ExtArgs>>): Prisma__StressfreiEmailClient<$Result.GetResult<Prisma.$StressfreiEmailPayload<ExtArgs>, T, "create">, never, ExtArgs>
|
|
|
|
/**
|
|
* Create many StressfreiEmails.
|
|
* @param {StressfreiEmailCreateManyArgs} args - Arguments to create many StressfreiEmails.
|
|
* @example
|
|
* // Create many StressfreiEmails
|
|
* const stressfreiEmail = await prisma.stressfreiEmail.createMany({
|
|
* data: [
|
|
* // ... provide data here
|
|
* ]
|
|
* })
|
|
*
|
|
*/
|
|
createMany<T extends StressfreiEmailCreateManyArgs>(args?: SelectSubset<T, StressfreiEmailCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
|
|
|
|
/**
|
|
* Delete a StressfreiEmail.
|
|
* @param {StressfreiEmailDeleteArgs} args - Arguments to delete one StressfreiEmail.
|
|
* @example
|
|
* // Delete one StressfreiEmail
|
|
* const StressfreiEmail = await prisma.stressfreiEmail.delete({
|
|
* where: {
|
|
* // ... filter to delete one StressfreiEmail
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
delete<T extends StressfreiEmailDeleteArgs>(args: SelectSubset<T, StressfreiEmailDeleteArgs<ExtArgs>>): Prisma__StressfreiEmailClient<$Result.GetResult<Prisma.$StressfreiEmailPayload<ExtArgs>, T, "delete">, never, ExtArgs>
|
|
|
|
/**
|
|
* Update one StressfreiEmail.
|
|
* @param {StressfreiEmailUpdateArgs} args - Arguments to update one StressfreiEmail.
|
|
* @example
|
|
* // Update one StressfreiEmail
|
|
* const stressfreiEmail = await prisma.stressfreiEmail.update({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* },
|
|
* data: {
|
|
* // ... provide data here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
update<T extends StressfreiEmailUpdateArgs>(args: SelectSubset<T, StressfreiEmailUpdateArgs<ExtArgs>>): Prisma__StressfreiEmailClient<$Result.GetResult<Prisma.$StressfreiEmailPayload<ExtArgs>, T, "update">, never, ExtArgs>
|
|
|
|
/**
|
|
* Delete zero or more StressfreiEmails.
|
|
* @param {StressfreiEmailDeleteManyArgs} args - Arguments to filter StressfreiEmails to delete.
|
|
* @example
|
|
* // Delete a few StressfreiEmails
|
|
* const { count } = await prisma.stressfreiEmail.deleteMany({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
deleteMany<T extends StressfreiEmailDeleteManyArgs>(args?: SelectSubset<T, StressfreiEmailDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
|
|
|
|
/**
|
|
* Update zero or more StressfreiEmails.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {StressfreiEmailUpdateManyArgs} args - Arguments to update one or more rows.
|
|
* @example
|
|
* // Update many StressfreiEmails
|
|
* const stressfreiEmail = await prisma.stressfreiEmail.updateMany({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* },
|
|
* data: {
|
|
* // ... provide data here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
updateMany<T extends StressfreiEmailUpdateManyArgs>(args: SelectSubset<T, StressfreiEmailUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
|
|
|
|
/**
|
|
* Create or update one StressfreiEmail.
|
|
* @param {StressfreiEmailUpsertArgs} args - Arguments to update or create a StressfreiEmail.
|
|
* @example
|
|
* // Update or create a StressfreiEmail
|
|
* const stressfreiEmail = await prisma.stressfreiEmail.upsert({
|
|
* create: {
|
|
* // ... data to create a StressfreiEmail
|
|
* },
|
|
* update: {
|
|
* // ... in case it already exists, update
|
|
* },
|
|
* where: {
|
|
* // ... the filter for the StressfreiEmail we want to update
|
|
* }
|
|
* })
|
|
*/
|
|
upsert<T extends StressfreiEmailUpsertArgs>(args: SelectSubset<T, StressfreiEmailUpsertArgs<ExtArgs>>): Prisma__StressfreiEmailClient<$Result.GetResult<Prisma.$StressfreiEmailPayload<ExtArgs>, T, "upsert">, never, ExtArgs>
|
|
|
|
|
|
/**
|
|
* Count the number of StressfreiEmails.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {StressfreiEmailCountArgs} args - Arguments to filter StressfreiEmails to count.
|
|
* @example
|
|
* // Count the number of StressfreiEmails
|
|
* const count = await prisma.stressfreiEmail.count({
|
|
* where: {
|
|
* // ... the filter for the StressfreiEmails we want to count
|
|
* }
|
|
* })
|
|
**/
|
|
count<T extends StressfreiEmailCountArgs>(
|
|
args?: Subset<T, StressfreiEmailCountArgs>,
|
|
): Prisma.PrismaPromise<
|
|
T extends $Utils.Record<'select', any>
|
|
? T['select'] extends true
|
|
? number
|
|
: GetScalarType<T['select'], StressfreiEmailCountAggregateOutputType>
|
|
: number
|
|
>
|
|
|
|
/**
|
|
* Allows you to perform aggregations operations on a StressfreiEmail.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {StressfreiEmailAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
|
|
* @example
|
|
* // Ordered by age ascending
|
|
* // Where email contains prisma.io
|
|
* // Limited to the 10 users
|
|
* const aggregations = await prisma.user.aggregate({
|
|
* _avg: {
|
|
* age: true,
|
|
* },
|
|
* where: {
|
|
* email: {
|
|
* contains: "prisma.io",
|
|
* },
|
|
* },
|
|
* orderBy: {
|
|
* age: "asc",
|
|
* },
|
|
* take: 10,
|
|
* })
|
|
**/
|
|
aggregate<T extends StressfreiEmailAggregateArgs>(args: Subset<T, StressfreiEmailAggregateArgs>): Prisma.PrismaPromise<GetStressfreiEmailAggregateType<T>>
|
|
|
|
/**
|
|
* Group by StressfreiEmail.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {StressfreiEmailGroupByArgs} args - Group by arguments.
|
|
* @example
|
|
* // Group by city, order by createdAt, get count
|
|
* const result = await prisma.user.groupBy({
|
|
* by: ['city', 'createdAt'],
|
|
* orderBy: {
|
|
* createdAt: true
|
|
* },
|
|
* _count: {
|
|
* _all: true
|
|
* },
|
|
* })
|
|
*
|
|
**/
|
|
groupBy<
|
|
T extends StressfreiEmailGroupByArgs,
|
|
HasSelectOrTake extends Or<
|
|
Extends<'skip', Keys<T>>,
|
|
Extends<'take', Keys<T>>
|
|
>,
|
|
OrderByArg extends True extends HasSelectOrTake
|
|
? { orderBy: StressfreiEmailGroupByArgs['orderBy'] }
|
|
: { orderBy?: StressfreiEmailGroupByArgs['orderBy'] },
|
|
OrderFields extends ExcludeUnderscoreKeys<Keys<MaybeTupleToUnion<T['orderBy']>>>,
|
|
ByFields extends MaybeTupleToUnion<T['by']>,
|
|
ByValid extends Has<ByFields, OrderFields>,
|
|
HavingFields extends GetHavingFields<T['having']>,
|
|
HavingValid extends Has<ByFields, HavingFields>,
|
|
ByEmpty extends T['by'] extends never[] ? True : False,
|
|
InputErrors extends ByEmpty extends True
|
|
? `Error: "by" must not be empty.`
|
|
: HavingValid extends False
|
|
? {
|
|
[P in HavingFields]: P extends ByFields
|
|
? never
|
|
: P extends string
|
|
? `Error: Field "${P}" used in "having" needs to be provided in "by".`
|
|
: [
|
|
Error,
|
|
'Field ',
|
|
P,
|
|
` in "having" needs to be provided in "by"`,
|
|
]
|
|
}[HavingFields]
|
|
: 'take' extends Keys<T>
|
|
? 'orderBy' extends Keys<T>
|
|
? ByValid extends True
|
|
? {}
|
|
: {
|
|
[P in OrderFields]: P extends ByFields
|
|
? never
|
|
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
|
|
}[OrderFields]
|
|
: 'Error: If you provide "take", you also need to provide "orderBy"'
|
|
: 'skip' extends Keys<T>
|
|
? 'orderBy' extends Keys<T>
|
|
? ByValid extends True
|
|
? {}
|
|
: {
|
|
[P in OrderFields]: P extends ByFields
|
|
? never
|
|
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
|
|
}[OrderFields]
|
|
: 'Error: If you provide "skip", you also need to provide "orderBy"'
|
|
: ByValid extends True
|
|
? {}
|
|
: {
|
|
[P in OrderFields]: P extends ByFields
|
|
? never
|
|
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
|
|
}[OrderFields]
|
|
>(args: SubsetIntersection<T, StressfreiEmailGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetStressfreiEmailGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
|
|
/**
|
|
* Fields of the StressfreiEmail model
|
|
*/
|
|
readonly fields: StressfreiEmailFieldRefs;
|
|
}
|
|
|
|
/**
|
|
* The delegate class that acts as a "Promise-like" for StressfreiEmail.
|
|
* Why is this prefixed with `Prisma__`?
|
|
* Because we want to prevent naming conflicts as mentioned in
|
|
* https://github.com/prisma/prisma-client-js/issues/707
|
|
*/
|
|
export interface Prisma__StressfreiEmailClient<T, Null = never, ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> extends Prisma.PrismaPromise<T> {
|
|
readonly [Symbol.toStringTag]: "PrismaPromise"
|
|
customer<T extends CustomerDefaultArgs<ExtArgs> = {}>(args?: Subset<T, CustomerDefaultArgs<ExtArgs>>): Prisma__CustomerClient<$Result.GetResult<Prisma.$CustomerPayload<ExtArgs>, T, "findUniqueOrThrow"> | Null, Null, ExtArgs>
|
|
contracts<T extends StressfreiEmail$contractsArgs<ExtArgs> = {}>(args?: Subset<T, StressfreiEmail$contractsArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$ContractPayload<ExtArgs>, T, "findMany"> | Null>
|
|
cachedEmails<T extends StressfreiEmail$cachedEmailsArgs<ExtArgs> = {}>(args?: Subset<T, StressfreiEmail$cachedEmailsArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$CachedEmailPayload<ExtArgs>, T, "findMany"> | Null>
|
|
/**
|
|
* Attaches callbacks for the resolution and/or rejection of the Promise.
|
|
* @param onfulfilled The callback to execute when the Promise is resolved.
|
|
* @param onrejected The callback to execute when the Promise is rejected.
|
|
* @returns A Promise for the completion of which ever callback is executed.
|
|
*/
|
|
then<TResult1 = T, TResult2 = never>(onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined | null): $Utils.JsPromise<TResult1 | TResult2>
|
|
/**
|
|
* Attaches a callback for only the rejection of the Promise.
|
|
* @param onrejected The callback to execute when the Promise is rejected.
|
|
* @returns A Promise for the completion of the callback.
|
|
*/
|
|
catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): $Utils.JsPromise<T | TResult>
|
|
/**
|
|
* Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
|
|
* resolved value cannot be modified from the callback.
|
|
* @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
|
|
* @returns A Promise for the completion of the callback.
|
|
*/
|
|
finally(onfinally?: (() => void) | undefined | null): $Utils.JsPromise<T>
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
* Fields of the StressfreiEmail model
|
|
*/
|
|
interface StressfreiEmailFieldRefs {
|
|
readonly id: FieldRef<"StressfreiEmail", 'Int'>
|
|
readonly customerId: FieldRef<"StressfreiEmail", 'Int'>
|
|
readonly email: FieldRef<"StressfreiEmail", 'String'>
|
|
readonly platform: FieldRef<"StressfreiEmail", 'String'>
|
|
readonly notes: FieldRef<"StressfreiEmail", 'String'>
|
|
readonly isActive: FieldRef<"StressfreiEmail", 'Boolean'>
|
|
readonly isProvisioned: FieldRef<"StressfreiEmail", 'Boolean'>
|
|
readonly provisionedAt: FieldRef<"StressfreiEmail", 'DateTime'>
|
|
readonly provisionError: FieldRef<"StressfreiEmail", 'String'>
|
|
readonly hasMailbox: FieldRef<"StressfreiEmail", 'Boolean'>
|
|
readonly emailPasswordEncrypted: FieldRef<"StressfreiEmail", 'String'>
|
|
readonly createdAt: FieldRef<"StressfreiEmail", 'DateTime'>
|
|
readonly updatedAt: FieldRef<"StressfreiEmail", 'DateTime'>
|
|
}
|
|
|
|
|
|
// Custom InputTypes
|
|
/**
|
|
* StressfreiEmail findUnique
|
|
*/
|
|
export type StressfreiEmailFindUniqueArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the StressfreiEmail
|
|
*/
|
|
select?: StressfreiEmailSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: StressfreiEmailInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which StressfreiEmail to fetch.
|
|
*/
|
|
where: StressfreiEmailWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* StressfreiEmail findUniqueOrThrow
|
|
*/
|
|
export type StressfreiEmailFindUniqueOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the StressfreiEmail
|
|
*/
|
|
select?: StressfreiEmailSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: StressfreiEmailInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which StressfreiEmail to fetch.
|
|
*/
|
|
where: StressfreiEmailWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* StressfreiEmail findFirst
|
|
*/
|
|
export type StressfreiEmailFindFirstArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the StressfreiEmail
|
|
*/
|
|
select?: StressfreiEmailSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: StressfreiEmailInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which StressfreiEmail to fetch.
|
|
*/
|
|
where?: StressfreiEmailWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of StressfreiEmails to fetch.
|
|
*/
|
|
orderBy?: StressfreiEmailOrderByWithRelationInput | StressfreiEmailOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for searching for StressfreiEmails.
|
|
*/
|
|
cursor?: StressfreiEmailWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` StressfreiEmails from the position of the cursor.
|
|
*/
|
|
take?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Skip the first `n` StressfreiEmails.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
*
|
|
* Filter by unique combinations of StressfreiEmails.
|
|
*/
|
|
distinct?: StressfreiEmailScalarFieldEnum | StressfreiEmailScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* StressfreiEmail findFirstOrThrow
|
|
*/
|
|
export type StressfreiEmailFindFirstOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the StressfreiEmail
|
|
*/
|
|
select?: StressfreiEmailSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: StressfreiEmailInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which StressfreiEmail to fetch.
|
|
*/
|
|
where?: StressfreiEmailWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of StressfreiEmails to fetch.
|
|
*/
|
|
orderBy?: StressfreiEmailOrderByWithRelationInput | StressfreiEmailOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for searching for StressfreiEmails.
|
|
*/
|
|
cursor?: StressfreiEmailWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` StressfreiEmails from the position of the cursor.
|
|
*/
|
|
take?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Skip the first `n` StressfreiEmails.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
*
|
|
* Filter by unique combinations of StressfreiEmails.
|
|
*/
|
|
distinct?: StressfreiEmailScalarFieldEnum | StressfreiEmailScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* StressfreiEmail findMany
|
|
*/
|
|
export type StressfreiEmailFindManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the StressfreiEmail
|
|
*/
|
|
select?: StressfreiEmailSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: StressfreiEmailInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which StressfreiEmails to fetch.
|
|
*/
|
|
where?: StressfreiEmailWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of StressfreiEmails to fetch.
|
|
*/
|
|
orderBy?: StressfreiEmailOrderByWithRelationInput | StressfreiEmailOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for listing StressfreiEmails.
|
|
*/
|
|
cursor?: StressfreiEmailWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` StressfreiEmails from the position of the cursor.
|
|
*/
|
|
take?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Skip the first `n` StressfreiEmails.
|
|
*/
|
|
skip?: number
|
|
distinct?: StressfreiEmailScalarFieldEnum | StressfreiEmailScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* StressfreiEmail create
|
|
*/
|
|
export type StressfreiEmailCreateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the StressfreiEmail
|
|
*/
|
|
select?: StressfreiEmailSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: StressfreiEmailInclude<ExtArgs> | null
|
|
/**
|
|
* The data needed to create a StressfreiEmail.
|
|
*/
|
|
data: XOR<StressfreiEmailCreateInput, StressfreiEmailUncheckedCreateInput>
|
|
}
|
|
|
|
/**
|
|
* StressfreiEmail createMany
|
|
*/
|
|
export type StressfreiEmailCreateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* The data used to create many StressfreiEmails.
|
|
*/
|
|
data: StressfreiEmailCreateManyInput | StressfreiEmailCreateManyInput[]
|
|
skipDuplicates?: boolean
|
|
}
|
|
|
|
/**
|
|
* StressfreiEmail update
|
|
*/
|
|
export type StressfreiEmailUpdateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the StressfreiEmail
|
|
*/
|
|
select?: StressfreiEmailSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: StressfreiEmailInclude<ExtArgs> | null
|
|
/**
|
|
* The data needed to update a StressfreiEmail.
|
|
*/
|
|
data: XOR<StressfreiEmailUpdateInput, StressfreiEmailUncheckedUpdateInput>
|
|
/**
|
|
* Choose, which StressfreiEmail to update.
|
|
*/
|
|
where: StressfreiEmailWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* StressfreiEmail updateMany
|
|
*/
|
|
export type StressfreiEmailUpdateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* The data used to update StressfreiEmails.
|
|
*/
|
|
data: XOR<StressfreiEmailUpdateManyMutationInput, StressfreiEmailUncheckedUpdateManyInput>
|
|
/**
|
|
* Filter which StressfreiEmails to update
|
|
*/
|
|
where?: StressfreiEmailWhereInput
|
|
}
|
|
|
|
/**
|
|
* StressfreiEmail upsert
|
|
*/
|
|
export type StressfreiEmailUpsertArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the StressfreiEmail
|
|
*/
|
|
select?: StressfreiEmailSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: StressfreiEmailInclude<ExtArgs> | null
|
|
/**
|
|
* The filter to search for the StressfreiEmail to update in case it exists.
|
|
*/
|
|
where: StressfreiEmailWhereUniqueInput
|
|
/**
|
|
* In case the StressfreiEmail found by the `where` argument doesn't exist, create a new StressfreiEmail with this data.
|
|
*/
|
|
create: XOR<StressfreiEmailCreateInput, StressfreiEmailUncheckedCreateInput>
|
|
/**
|
|
* In case the StressfreiEmail was found with the provided `where` argument, update it with this data.
|
|
*/
|
|
update: XOR<StressfreiEmailUpdateInput, StressfreiEmailUncheckedUpdateInput>
|
|
}
|
|
|
|
/**
|
|
* StressfreiEmail delete
|
|
*/
|
|
export type StressfreiEmailDeleteArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the StressfreiEmail
|
|
*/
|
|
select?: StressfreiEmailSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: StressfreiEmailInclude<ExtArgs> | null
|
|
/**
|
|
* Filter which StressfreiEmail to delete.
|
|
*/
|
|
where: StressfreiEmailWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* StressfreiEmail deleteMany
|
|
*/
|
|
export type StressfreiEmailDeleteManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Filter which StressfreiEmails to delete
|
|
*/
|
|
where?: StressfreiEmailWhereInput
|
|
}
|
|
|
|
/**
|
|
* StressfreiEmail.contracts
|
|
*/
|
|
export type StressfreiEmail$contractsArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the Contract
|
|
*/
|
|
select?: ContractSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: ContractInclude<ExtArgs> | null
|
|
where?: ContractWhereInput
|
|
orderBy?: ContractOrderByWithRelationInput | ContractOrderByWithRelationInput[]
|
|
cursor?: ContractWhereUniqueInput
|
|
take?: number
|
|
skip?: number
|
|
distinct?: ContractScalarFieldEnum | ContractScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* StressfreiEmail.cachedEmails
|
|
*/
|
|
export type StressfreiEmail$cachedEmailsArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the CachedEmail
|
|
*/
|
|
select?: CachedEmailSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: CachedEmailInclude<ExtArgs> | null
|
|
where?: CachedEmailWhereInput
|
|
orderBy?: CachedEmailOrderByWithRelationInput | CachedEmailOrderByWithRelationInput[]
|
|
cursor?: CachedEmailWhereUniqueInput
|
|
take?: number
|
|
skip?: number
|
|
distinct?: CachedEmailScalarFieldEnum | CachedEmailScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* StressfreiEmail without action
|
|
*/
|
|
export type StressfreiEmailDefaultArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the StressfreiEmail
|
|
*/
|
|
select?: StressfreiEmailSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: StressfreiEmailInclude<ExtArgs> | null
|
|
}
|
|
|
|
|
|
/**
|
|
* Model CachedEmail
|
|
*/
|
|
|
|
export type AggregateCachedEmail = {
|
|
_count: CachedEmailCountAggregateOutputType | null
|
|
_avg: CachedEmailAvgAggregateOutputType | null
|
|
_sum: CachedEmailSumAggregateOutputType | null
|
|
_min: CachedEmailMinAggregateOutputType | null
|
|
_max: CachedEmailMaxAggregateOutputType | null
|
|
}
|
|
|
|
export type CachedEmailAvgAggregateOutputType = {
|
|
id: number | null
|
|
stressfreiEmailId: number | null
|
|
uid: number | null
|
|
contractId: number | null
|
|
assignedBy: number | null
|
|
}
|
|
|
|
export type CachedEmailSumAggregateOutputType = {
|
|
id: number | null
|
|
stressfreiEmailId: number | null
|
|
uid: number | null
|
|
contractId: number | null
|
|
assignedBy: number | null
|
|
}
|
|
|
|
export type CachedEmailMinAggregateOutputType = {
|
|
id: number | null
|
|
stressfreiEmailId: number | null
|
|
folder: $Enums.EmailFolder | null
|
|
messageId: string | null
|
|
uid: number | null
|
|
subject: string | null
|
|
fromAddress: string | null
|
|
fromName: string | null
|
|
toAddresses: string | null
|
|
ccAddresses: string | null
|
|
receivedAt: Date | null
|
|
textBody: string | null
|
|
htmlBody: string | null
|
|
hasAttachments: boolean | null
|
|
attachmentNames: string | null
|
|
contractId: number | null
|
|
assignedAt: Date | null
|
|
assignedBy: number | null
|
|
isAutoAssigned: boolean | null
|
|
isRead: boolean | null
|
|
isStarred: boolean | null
|
|
isDeleted: boolean | null
|
|
deletedAt: Date | null
|
|
createdAt: Date | null
|
|
updatedAt: Date | null
|
|
}
|
|
|
|
export type CachedEmailMaxAggregateOutputType = {
|
|
id: number | null
|
|
stressfreiEmailId: number | null
|
|
folder: $Enums.EmailFolder | null
|
|
messageId: string | null
|
|
uid: number | null
|
|
subject: string | null
|
|
fromAddress: string | null
|
|
fromName: string | null
|
|
toAddresses: string | null
|
|
ccAddresses: string | null
|
|
receivedAt: Date | null
|
|
textBody: string | null
|
|
htmlBody: string | null
|
|
hasAttachments: boolean | null
|
|
attachmentNames: string | null
|
|
contractId: number | null
|
|
assignedAt: Date | null
|
|
assignedBy: number | null
|
|
isAutoAssigned: boolean | null
|
|
isRead: boolean | null
|
|
isStarred: boolean | null
|
|
isDeleted: boolean | null
|
|
deletedAt: Date | null
|
|
createdAt: Date | null
|
|
updatedAt: Date | null
|
|
}
|
|
|
|
export type CachedEmailCountAggregateOutputType = {
|
|
id: number
|
|
stressfreiEmailId: number
|
|
folder: number
|
|
messageId: number
|
|
uid: number
|
|
subject: number
|
|
fromAddress: number
|
|
fromName: number
|
|
toAddresses: number
|
|
ccAddresses: number
|
|
receivedAt: number
|
|
textBody: number
|
|
htmlBody: number
|
|
hasAttachments: number
|
|
attachmentNames: number
|
|
contractId: number
|
|
assignedAt: number
|
|
assignedBy: number
|
|
isAutoAssigned: number
|
|
isRead: number
|
|
isStarred: number
|
|
isDeleted: number
|
|
deletedAt: number
|
|
createdAt: number
|
|
updatedAt: number
|
|
_all: number
|
|
}
|
|
|
|
|
|
export type CachedEmailAvgAggregateInputType = {
|
|
id?: true
|
|
stressfreiEmailId?: true
|
|
uid?: true
|
|
contractId?: true
|
|
assignedBy?: true
|
|
}
|
|
|
|
export type CachedEmailSumAggregateInputType = {
|
|
id?: true
|
|
stressfreiEmailId?: true
|
|
uid?: true
|
|
contractId?: true
|
|
assignedBy?: true
|
|
}
|
|
|
|
export type CachedEmailMinAggregateInputType = {
|
|
id?: true
|
|
stressfreiEmailId?: true
|
|
folder?: true
|
|
messageId?: true
|
|
uid?: true
|
|
subject?: true
|
|
fromAddress?: true
|
|
fromName?: true
|
|
toAddresses?: true
|
|
ccAddresses?: true
|
|
receivedAt?: true
|
|
textBody?: true
|
|
htmlBody?: true
|
|
hasAttachments?: true
|
|
attachmentNames?: true
|
|
contractId?: true
|
|
assignedAt?: true
|
|
assignedBy?: true
|
|
isAutoAssigned?: true
|
|
isRead?: true
|
|
isStarred?: true
|
|
isDeleted?: true
|
|
deletedAt?: true
|
|
createdAt?: true
|
|
updatedAt?: true
|
|
}
|
|
|
|
export type CachedEmailMaxAggregateInputType = {
|
|
id?: true
|
|
stressfreiEmailId?: true
|
|
folder?: true
|
|
messageId?: true
|
|
uid?: true
|
|
subject?: true
|
|
fromAddress?: true
|
|
fromName?: true
|
|
toAddresses?: true
|
|
ccAddresses?: true
|
|
receivedAt?: true
|
|
textBody?: true
|
|
htmlBody?: true
|
|
hasAttachments?: true
|
|
attachmentNames?: true
|
|
contractId?: true
|
|
assignedAt?: true
|
|
assignedBy?: true
|
|
isAutoAssigned?: true
|
|
isRead?: true
|
|
isStarred?: true
|
|
isDeleted?: true
|
|
deletedAt?: true
|
|
createdAt?: true
|
|
updatedAt?: true
|
|
}
|
|
|
|
export type CachedEmailCountAggregateInputType = {
|
|
id?: true
|
|
stressfreiEmailId?: true
|
|
folder?: true
|
|
messageId?: true
|
|
uid?: true
|
|
subject?: true
|
|
fromAddress?: true
|
|
fromName?: true
|
|
toAddresses?: true
|
|
ccAddresses?: true
|
|
receivedAt?: true
|
|
textBody?: true
|
|
htmlBody?: true
|
|
hasAttachments?: true
|
|
attachmentNames?: true
|
|
contractId?: true
|
|
assignedAt?: true
|
|
assignedBy?: true
|
|
isAutoAssigned?: true
|
|
isRead?: true
|
|
isStarred?: true
|
|
isDeleted?: true
|
|
deletedAt?: true
|
|
createdAt?: true
|
|
updatedAt?: true
|
|
_all?: true
|
|
}
|
|
|
|
export type CachedEmailAggregateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Filter which CachedEmail to aggregate.
|
|
*/
|
|
where?: CachedEmailWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of CachedEmails to fetch.
|
|
*/
|
|
orderBy?: CachedEmailOrderByWithRelationInput | CachedEmailOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the start position
|
|
*/
|
|
cursor?: CachedEmailWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` CachedEmails from the position of the cursor.
|
|
*/
|
|
take?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Skip the first `n` CachedEmails.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Count returned CachedEmails
|
|
**/
|
|
_count?: true | CachedEmailCountAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to average
|
|
**/
|
|
_avg?: CachedEmailAvgAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to sum
|
|
**/
|
|
_sum?: CachedEmailSumAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to find the minimum value
|
|
**/
|
|
_min?: CachedEmailMinAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to find the maximum value
|
|
**/
|
|
_max?: CachedEmailMaxAggregateInputType
|
|
}
|
|
|
|
export type GetCachedEmailAggregateType<T extends CachedEmailAggregateArgs> = {
|
|
[P in keyof T & keyof AggregateCachedEmail]: P extends '_count' | 'count'
|
|
? T[P] extends true
|
|
? number
|
|
: GetScalarType<T[P], AggregateCachedEmail[P]>
|
|
: GetScalarType<T[P], AggregateCachedEmail[P]>
|
|
}
|
|
|
|
|
|
|
|
|
|
export type CachedEmailGroupByArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
where?: CachedEmailWhereInput
|
|
orderBy?: CachedEmailOrderByWithAggregationInput | CachedEmailOrderByWithAggregationInput[]
|
|
by: CachedEmailScalarFieldEnum[] | CachedEmailScalarFieldEnum
|
|
having?: CachedEmailScalarWhereWithAggregatesInput
|
|
take?: number
|
|
skip?: number
|
|
_count?: CachedEmailCountAggregateInputType | true
|
|
_avg?: CachedEmailAvgAggregateInputType
|
|
_sum?: CachedEmailSumAggregateInputType
|
|
_min?: CachedEmailMinAggregateInputType
|
|
_max?: CachedEmailMaxAggregateInputType
|
|
}
|
|
|
|
export type CachedEmailGroupByOutputType = {
|
|
id: number
|
|
stressfreiEmailId: number
|
|
folder: $Enums.EmailFolder
|
|
messageId: string
|
|
uid: number
|
|
subject: string | null
|
|
fromAddress: string
|
|
fromName: string | null
|
|
toAddresses: string
|
|
ccAddresses: string | null
|
|
receivedAt: Date
|
|
textBody: string | null
|
|
htmlBody: string | null
|
|
hasAttachments: boolean
|
|
attachmentNames: string | null
|
|
contractId: number | null
|
|
assignedAt: Date | null
|
|
assignedBy: number | null
|
|
isAutoAssigned: boolean
|
|
isRead: boolean
|
|
isStarred: boolean
|
|
isDeleted: boolean
|
|
deletedAt: Date | null
|
|
createdAt: Date
|
|
updatedAt: Date
|
|
_count: CachedEmailCountAggregateOutputType | null
|
|
_avg: CachedEmailAvgAggregateOutputType | null
|
|
_sum: CachedEmailSumAggregateOutputType | null
|
|
_min: CachedEmailMinAggregateOutputType | null
|
|
_max: CachedEmailMaxAggregateOutputType | null
|
|
}
|
|
|
|
type GetCachedEmailGroupByPayload<T extends CachedEmailGroupByArgs> = Prisma.PrismaPromise<
|
|
Array<
|
|
PickEnumerable<CachedEmailGroupByOutputType, T['by']> &
|
|
{
|
|
[P in ((keyof T) & (keyof CachedEmailGroupByOutputType))]: P extends '_count'
|
|
? T[P] extends boolean
|
|
? number
|
|
: GetScalarType<T[P], CachedEmailGroupByOutputType[P]>
|
|
: GetScalarType<T[P], CachedEmailGroupByOutputType[P]>
|
|
}
|
|
>
|
|
>
|
|
|
|
|
|
export type CachedEmailSelect<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
|
|
id?: boolean
|
|
stressfreiEmailId?: boolean
|
|
folder?: boolean
|
|
messageId?: boolean
|
|
uid?: boolean
|
|
subject?: boolean
|
|
fromAddress?: boolean
|
|
fromName?: boolean
|
|
toAddresses?: boolean
|
|
ccAddresses?: boolean
|
|
receivedAt?: boolean
|
|
textBody?: boolean
|
|
htmlBody?: boolean
|
|
hasAttachments?: boolean
|
|
attachmentNames?: boolean
|
|
contractId?: boolean
|
|
assignedAt?: boolean
|
|
assignedBy?: boolean
|
|
isAutoAssigned?: boolean
|
|
isRead?: boolean
|
|
isStarred?: boolean
|
|
isDeleted?: boolean
|
|
deletedAt?: boolean
|
|
createdAt?: boolean
|
|
updatedAt?: boolean
|
|
stressfreiEmail?: boolean | StressfreiEmailDefaultArgs<ExtArgs>
|
|
contract?: boolean | CachedEmail$contractArgs<ExtArgs>
|
|
}, ExtArgs["result"]["cachedEmail"]>
|
|
|
|
|
|
export type CachedEmailSelectScalar = {
|
|
id?: boolean
|
|
stressfreiEmailId?: boolean
|
|
folder?: boolean
|
|
messageId?: boolean
|
|
uid?: boolean
|
|
subject?: boolean
|
|
fromAddress?: boolean
|
|
fromName?: boolean
|
|
toAddresses?: boolean
|
|
ccAddresses?: boolean
|
|
receivedAt?: boolean
|
|
textBody?: boolean
|
|
htmlBody?: boolean
|
|
hasAttachments?: boolean
|
|
attachmentNames?: boolean
|
|
contractId?: boolean
|
|
assignedAt?: boolean
|
|
assignedBy?: boolean
|
|
isAutoAssigned?: boolean
|
|
isRead?: boolean
|
|
isStarred?: boolean
|
|
isDeleted?: boolean
|
|
deletedAt?: boolean
|
|
createdAt?: boolean
|
|
updatedAt?: boolean
|
|
}
|
|
|
|
export type CachedEmailInclude<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
stressfreiEmail?: boolean | StressfreiEmailDefaultArgs<ExtArgs>
|
|
contract?: boolean | CachedEmail$contractArgs<ExtArgs>
|
|
}
|
|
|
|
export type $CachedEmailPayload<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
name: "CachedEmail"
|
|
objects: {
|
|
stressfreiEmail: Prisma.$StressfreiEmailPayload<ExtArgs>
|
|
contract: Prisma.$ContractPayload<ExtArgs> | null
|
|
}
|
|
scalars: $Extensions.GetPayloadResult<{
|
|
id: number
|
|
stressfreiEmailId: number
|
|
folder: $Enums.EmailFolder
|
|
messageId: string
|
|
uid: number
|
|
subject: string | null
|
|
fromAddress: string
|
|
fromName: string | null
|
|
toAddresses: string
|
|
ccAddresses: string | null
|
|
receivedAt: Date
|
|
textBody: string | null
|
|
htmlBody: string | null
|
|
hasAttachments: boolean
|
|
attachmentNames: string | null
|
|
contractId: number | null
|
|
assignedAt: Date | null
|
|
assignedBy: number | null
|
|
isAutoAssigned: boolean
|
|
isRead: boolean
|
|
isStarred: boolean
|
|
isDeleted: boolean
|
|
deletedAt: Date | null
|
|
createdAt: Date
|
|
updatedAt: Date
|
|
}, ExtArgs["result"]["cachedEmail"]>
|
|
composites: {}
|
|
}
|
|
|
|
type CachedEmailGetPayload<S extends boolean | null | undefined | CachedEmailDefaultArgs> = $Result.GetResult<Prisma.$CachedEmailPayload, S>
|
|
|
|
type CachedEmailCountArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> =
|
|
Omit<CachedEmailFindManyArgs, 'select' | 'include' | 'distinct'> & {
|
|
select?: CachedEmailCountAggregateInputType | true
|
|
}
|
|
|
|
export interface CachedEmailDelegate<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> {
|
|
[K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['CachedEmail'], meta: { name: 'CachedEmail' } }
|
|
/**
|
|
* Find zero or one CachedEmail that matches the filter.
|
|
* @param {CachedEmailFindUniqueArgs} args - Arguments to find a CachedEmail
|
|
* @example
|
|
* // Get one CachedEmail
|
|
* const cachedEmail = await prisma.cachedEmail.findUnique({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findUnique<T extends CachedEmailFindUniqueArgs>(args: SelectSubset<T, CachedEmailFindUniqueArgs<ExtArgs>>): Prisma__CachedEmailClient<$Result.GetResult<Prisma.$CachedEmailPayload<ExtArgs>, T, "findUnique"> | null, null, ExtArgs>
|
|
|
|
/**
|
|
* Find one CachedEmail that matches the filter or throw an error with `error.code='P2025'`
|
|
* if no matches were found.
|
|
* @param {CachedEmailFindUniqueOrThrowArgs} args - Arguments to find a CachedEmail
|
|
* @example
|
|
* // Get one CachedEmail
|
|
* const cachedEmail = await prisma.cachedEmail.findUniqueOrThrow({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findUniqueOrThrow<T extends CachedEmailFindUniqueOrThrowArgs>(args: SelectSubset<T, CachedEmailFindUniqueOrThrowArgs<ExtArgs>>): Prisma__CachedEmailClient<$Result.GetResult<Prisma.$CachedEmailPayload<ExtArgs>, T, "findUniqueOrThrow">, never, ExtArgs>
|
|
|
|
/**
|
|
* Find the first CachedEmail that matches the filter.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {CachedEmailFindFirstArgs} args - Arguments to find a CachedEmail
|
|
* @example
|
|
* // Get one CachedEmail
|
|
* const cachedEmail = await prisma.cachedEmail.findFirst({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findFirst<T extends CachedEmailFindFirstArgs>(args?: SelectSubset<T, CachedEmailFindFirstArgs<ExtArgs>>): Prisma__CachedEmailClient<$Result.GetResult<Prisma.$CachedEmailPayload<ExtArgs>, T, "findFirst"> | null, null, ExtArgs>
|
|
|
|
/**
|
|
* Find the first CachedEmail that matches the filter or
|
|
* throw `PrismaKnownClientError` with `P2025` code if no matches were found.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {CachedEmailFindFirstOrThrowArgs} args - Arguments to find a CachedEmail
|
|
* @example
|
|
* // Get one CachedEmail
|
|
* const cachedEmail = await prisma.cachedEmail.findFirstOrThrow({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findFirstOrThrow<T extends CachedEmailFindFirstOrThrowArgs>(args?: SelectSubset<T, CachedEmailFindFirstOrThrowArgs<ExtArgs>>): Prisma__CachedEmailClient<$Result.GetResult<Prisma.$CachedEmailPayload<ExtArgs>, T, "findFirstOrThrow">, never, ExtArgs>
|
|
|
|
/**
|
|
* Find zero or more CachedEmails that matches the filter.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {CachedEmailFindManyArgs} args - Arguments to filter and select certain fields only.
|
|
* @example
|
|
* // Get all CachedEmails
|
|
* const cachedEmails = await prisma.cachedEmail.findMany()
|
|
*
|
|
* // Get first 10 CachedEmails
|
|
* const cachedEmails = await prisma.cachedEmail.findMany({ take: 10 })
|
|
*
|
|
* // Only select the `id`
|
|
* const cachedEmailWithIdOnly = await prisma.cachedEmail.findMany({ select: { id: true } })
|
|
*
|
|
*/
|
|
findMany<T extends CachedEmailFindManyArgs>(args?: SelectSubset<T, CachedEmailFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$CachedEmailPayload<ExtArgs>, T, "findMany">>
|
|
|
|
/**
|
|
* Create a CachedEmail.
|
|
* @param {CachedEmailCreateArgs} args - Arguments to create a CachedEmail.
|
|
* @example
|
|
* // Create one CachedEmail
|
|
* const CachedEmail = await prisma.cachedEmail.create({
|
|
* data: {
|
|
* // ... data to create a CachedEmail
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
create<T extends CachedEmailCreateArgs>(args: SelectSubset<T, CachedEmailCreateArgs<ExtArgs>>): Prisma__CachedEmailClient<$Result.GetResult<Prisma.$CachedEmailPayload<ExtArgs>, T, "create">, never, ExtArgs>
|
|
|
|
/**
|
|
* Create many CachedEmails.
|
|
* @param {CachedEmailCreateManyArgs} args - Arguments to create many CachedEmails.
|
|
* @example
|
|
* // Create many CachedEmails
|
|
* const cachedEmail = await prisma.cachedEmail.createMany({
|
|
* data: [
|
|
* // ... provide data here
|
|
* ]
|
|
* })
|
|
*
|
|
*/
|
|
createMany<T extends CachedEmailCreateManyArgs>(args?: SelectSubset<T, CachedEmailCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
|
|
|
|
/**
|
|
* Delete a CachedEmail.
|
|
* @param {CachedEmailDeleteArgs} args - Arguments to delete one CachedEmail.
|
|
* @example
|
|
* // Delete one CachedEmail
|
|
* const CachedEmail = await prisma.cachedEmail.delete({
|
|
* where: {
|
|
* // ... filter to delete one CachedEmail
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
delete<T extends CachedEmailDeleteArgs>(args: SelectSubset<T, CachedEmailDeleteArgs<ExtArgs>>): Prisma__CachedEmailClient<$Result.GetResult<Prisma.$CachedEmailPayload<ExtArgs>, T, "delete">, never, ExtArgs>
|
|
|
|
/**
|
|
* Update one CachedEmail.
|
|
* @param {CachedEmailUpdateArgs} args - Arguments to update one CachedEmail.
|
|
* @example
|
|
* // Update one CachedEmail
|
|
* const cachedEmail = await prisma.cachedEmail.update({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* },
|
|
* data: {
|
|
* // ... provide data here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
update<T extends CachedEmailUpdateArgs>(args: SelectSubset<T, CachedEmailUpdateArgs<ExtArgs>>): Prisma__CachedEmailClient<$Result.GetResult<Prisma.$CachedEmailPayload<ExtArgs>, T, "update">, never, ExtArgs>
|
|
|
|
/**
|
|
* Delete zero or more CachedEmails.
|
|
* @param {CachedEmailDeleteManyArgs} args - Arguments to filter CachedEmails to delete.
|
|
* @example
|
|
* // Delete a few CachedEmails
|
|
* const { count } = await prisma.cachedEmail.deleteMany({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
deleteMany<T extends CachedEmailDeleteManyArgs>(args?: SelectSubset<T, CachedEmailDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
|
|
|
|
/**
|
|
* Update zero or more CachedEmails.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {CachedEmailUpdateManyArgs} args - Arguments to update one or more rows.
|
|
* @example
|
|
* // Update many CachedEmails
|
|
* const cachedEmail = await prisma.cachedEmail.updateMany({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* },
|
|
* data: {
|
|
* // ... provide data here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
updateMany<T extends CachedEmailUpdateManyArgs>(args: SelectSubset<T, CachedEmailUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
|
|
|
|
/**
|
|
* Create or update one CachedEmail.
|
|
* @param {CachedEmailUpsertArgs} args - Arguments to update or create a CachedEmail.
|
|
* @example
|
|
* // Update or create a CachedEmail
|
|
* const cachedEmail = await prisma.cachedEmail.upsert({
|
|
* create: {
|
|
* // ... data to create a CachedEmail
|
|
* },
|
|
* update: {
|
|
* // ... in case it already exists, update
|
|
* },
|
|
* where: {
|
|
* // ... the filter for the CachedEmail we want to update
|
|
* }
|
|
* })
|
|
*/
|
|
upsert<T extends CachedEmailUpsertArgs>(args: SelectSubset<T, CachedEmailUpsertArgs<ExtArgs>>): Prisma__CachedEmailClient<$Result.GetResult<Prisma.$CachedEmailPayload<ExtArgs>, T, "upsert">, never, ExtArgs>
|
|
|
|
|
|
/**
|
|
* Count the number of CachedEmails.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {CachedEmailCountArgs} args - Arguments to filter CachedEmails to count.
|
|
* @example
|
|
* // Count the number of CachedEmails
|
|
* const count = await prisma.cachedEmail.count({
|
|
* where: {
|
|
* // ... the filter for the CachedEmails we want to count
|
|
* }
|
|
* })
|
|
**/
|
|
count<T extends CachedEmailCountArgs>(
|
|
args?: Subset<T, CachedEmailCountArgs>,
|
|
): Prisma.PrismaPromise<
|
|
T extends $Utils.Record<'select', any>
|
|
? T['select'] extends true
|
|
? number
|
|
: GetScalarType<T['select'], CachedEmailCountAggregateOutputType>
|
|
: number
|
|
>
|
|
|
|
/**
|
|
* Allows you to perform aggregations operations on a CachedEmail.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {CachedEmailAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
|
|
* @example
|
|
* // Ordered by age ascending
|
|
* // Where email contains prisma.io
|
|
* // Limited to the 10 users
|
|
* const aggregations = await prisma.user.aggregate({
|
|
* _avg: {
|
|
* age: true,
|
|
* },
|
|
* where: {
|
|
* email: {
|
|
* contains: "prisma.io",
|
|
* },
|
|
* },
|
|
* orderBy: {
|
|
* age: "asc",
|
|
* },
|
|
* take: 10,
|
|
* })
|
|
**/
|
|
aggregate<T extends CachedEmailAggregateArgs>(args: Subset<T, CachedEmailAggregateArgs>): Prisma.PrismaPromise<GetCachedEmailAggregateType<T>>
|
|
|
|
/**
|
|
* Group by CachedEmail.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {CachedEmailGroupByArgs} args - Group by arguments.
|
|
* @example
|
|
* // Group by city, order by createdAt, get count
|
|
* const result = await prisma.user.groupBy({
|
|
* by: ['city', 'createdAt'],
|
|
* orderBy: {
|
|
* createdAt: true
|
|
* },
|
|
* _count: {
|
|
* _all: true
|
|
* },
|
|
* })
|
|
*
|
|
**/
|
|
groupBy<
|
|
T extends CachedEmailGroupByArgs,
|
|
HasSelectOrTake extends Or<
|
|
Extends<'skip', Keys<T>>,
|
|
Extends<'take', Keys<T>>
|
|
>,
|
|
OrderByArg extends True extends HasSelectOrTake
|
|
? { orderBy: CachedEmailGroupByArgs['orderBy'] }
|
|
: { orderBy?: CachedEmailGroupByArgs['orderBy'] },
|
|
OrderFields extends ExcludeUnderscoreKeys<Keys<MaybeTupleToUnion<T['orderBy']>>>,
|
|
ByFields extends MaybeTupleToUnion<T['by']>,
|
|
ByValid extends Has<ByFields, OrderFields>,
|
|
HavingFields extends GetHavingFields<T['having']>,
|
|
HavingValid extends Has<ByFields, HavingFields>,
|
|
ByEmpty extends T['by'] extends never[] ? True : False,
|
|
InputErrors extends ByEmpty extends True
|
|
? `Error: "by" must not be empty.`
|
|
: HavingValid extends False
|
|
? {
|
|
[P in HavingFields]: P extends ByFields
|
|
? never
|
|
: P extends string
|
|
? `Error: Field "${P}" used in "having" needs to be provided in "by".`
|
|
: [
|
|
Error,
|
|
'Field ',
|
|
P,
|
|
` in "having" needs to be provided in "by"`,
|
|
]
|
|
}[HavingFields]
|
|
: 'take' extends Keys<T>
|
|
? 'orderBy' extends Keys<T>
|
|
? ByValid extends True
|
|
? {}
|
|
: {
|
|
[P in OrderFields]: P extends ByFields
|
|
? never
|
|
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
|
|
}[OrderFields]
|
|
: 'Error: If you provide "take", you also need to provide "orderBy"'
|
|
: 'skip' extends Keys<T>
|
|
? 'orderBy' extends Keys<T>
|
|
? ByValid extends True
|
|
? {}
|
|
: {
|
|
[P in OrderFields]: P extends ByFields
|
|
? never
|
|
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
|
|
}[OrderFields]
|
|
: 'Error: If you provide "skip", you also need to provide "orderBy"'
|
|
: ByValid extends True
|
|
? {}
|
|
: {
|
|
[P in OrderFields]: P extends ByFields
|
|
? never
|
|
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
|
|
}[OrderFields]
|
|
>(args: SubsetIntersection<T, CachedEmailGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetCachedEmailGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
|
|
/**
|
|
* Fields of the CachedEmail model
|
|
*/
|
|
readonly fields: CachedEmailFieldRefs;
|
|
}
|
|
|
|
/**
|
|
* The delegate class that acts as a "Promise-like" for CachedEmail.
|
|
* Why is this prefixed with `Prisma__`?
|
|
* Because we want to prevent naming conflicts as mentioned in
|
|
* https://github.com/prisma/prisma-client-js/issues/707
|
|
*/
|
|
export interface Prisma__CachedEmailClient<T, Null = never, ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> extends Prisma.PrismaPromise<T> {
|
|
readonly [Symbol.toStringTag]: "PrismaPromise"
|
|
stressfreiEmail<T extends StressfreiEmailDefaultArgs<ExtArgs> = {}>(args?: Subset<T, StressfreiEmailDefaultArgs<ExtArgs>>): Prisma__StressfreiEmailClient<$Result.GetResult<Prisma.$StressfreiEmailPayload<ExtArgs>, T, "findUniqueOrThrow"> | Null, Null, ExtArgs>
|
|
contract<T extends CachedEmail$contractArgs<ExtArgs> = {}>(args?: Subset<T, CachedEmail$contractArgs<ExtArgs>>): Prisma__ContractClient<$Result.GetResult<Prisma.$ContractPayload<ExtArgs>, T, "findUniqueOrThrow"> | null, null, ExtArgs>
|
|
/**
|
|
* Attaches callbacks for the resolution and/or rejection of the Promise.
|
|
* @param onfulfilled The callback to execute when the Promise is resolved.
|
|
* @param onrejected The callback to execute when the Promise is rejected.
|
|
* @returns A Promise for the completion of which ever callback is executed.
|
|
*/
|
|
then<TResult1 = T, TResult2 = never>(onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined | null): $Utils.JsPromise<TResult1 | TResult2>
|
|
/**
|
|
* Attaches a callback for only the rejection of the Promise.
|
|
* @param onrejected The callback to execute when the Promise is rejected.
|
|
* @returns A Promise for the completion of the callback.
|
|
*/
|
|
catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): $Utils.JsPromise<T | TResult>
|
|
/**
|
|
* Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
|
|
* resolved value cannot be modified from the callback.
|
|
* @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
|
|
* @returns A Promise for the completion of the callback.
|
|
*/
|
|
finally(onfinally?: (() => void) | undefined | null): $Utils.JsPromise<T>
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
* Fields of the CachedEmail model
|
|
*/
|
|
interface CachedEmailFieldRefs {
|
|
readonly id: FieldRef<"CachedEmail", 'Int'>
|
|
readonly stressfreiEmailId: FieldRef<"CachedEmail", 'Int'>
|
|
readonly folder: FieldRef<"CachedEmail", 'EmailFolder'>
|
|
readonly messageId: FieldRef<"CachedEmail", 'String'>
|
|
readonly uid: FieldRef<"CachedEmail", 'Int'>
|
|
readonly subject: FieldRef<"CachedEmail", 'String'>
|
|
readonly fromAddress: FieldRef<"CachedEmail", 'String'>
|
|
readonly fromName: FieldRef<"CachedEmail", 'String'>
|
|
readonly toAddresses: FieldRef<"CachedEmail", 'String'>
|
|
readonly ccAddresses: FieldRef<"CachedEmail", 'String'>
|
|
readonly receivedAt: FieldRef<"CachedEmail", 'DateTime'>
|
|
readonly textBody: FieldRef<"CachedEmail", 'String'>
|
|
readonly htmlBody: FieldRef<"CachedEmail", 'String'>
|
|
readonly hasAttachments: FieldRef<"CachedEmail", 'Boolean'>
|
|
readonly attachmentNames: FieldRef<"CachedEmail", 'String'>
|
|
readonly contractId: FieldRef<"CachedEmail", 'Int'>
|
|
readonly assignedAt: FieldRef<"CachedEmail", 'DateTime'>
|
|
readonly assignedBy: FieldRef<"CachedEmail", 'Int'>
|
|
readonly isAutoAssigned: FieldRef<"CachedEmail", 'Boolean'>
|
|
readonly isRead: FieldRef<"CachedEmail", 'Boolean'>
|
|
readonly isStarred: FieldRef<"CachedEmail", 'Boolean'>
|
|
readonly isDeleted: FieldRef<"CachedEmail", 'Boolean'>
|
|
readonly deletedAt: FieldRef<"CachedEmail", 'DateTime'>
|
|
readonly createdAt: FieldRef<"CachedEmail", 'DateTime'>
|
|
readonly updatedAt: FieldRef<"CachedEmail", 'DateTime'>
|
|
}
|
|
|
|
|
|
// Custom InputTypes
|
|
/**
|
|
* CachedEmail findUnique
|
|
*/
|
|
export type CachedEmailFindUniqueArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the CachedEmail
|
|
*/
|
|
select?: CachedEmailSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: CachedEmailInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which CachedEmail to fetch.
|
|
*/
|
|
where: CachedEmailWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* CachedEmail findUniqueOrThrow
|
|
*/
|
|
export type CachedEmailFindUniqueOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the CachedEmail
|
|
*/
|
|
select?: CachedEmailSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: CachedEmailInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which CachedEmail to fetch.
|
|
*/
|
|
where: CachedEmailWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* CachedEmail findFirst
|
|
*/
|
|
export type CachedEmailFindFirstArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the CachedEmail
|
|
*/
|
|
select?: CachedEmailSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: CachedEmailInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which CachedEmail to fetch.
|
|
*/
|
|
where?: CachedEmailWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of CachedEmails to fetch.
|
|
*/
|
|
orderBy?: CachedEmailOrderByWithRelationInput | CachedEmailOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for searching for CachedEmails.
|
|
*/
|
|
cursor?: CachedEmailWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` CachedEmails from the position of the cursor.
|
|
*/
|
|
take?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Skip the first `n` CachedEmails.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
*
|
|
* Filter by unique combinations of CachedEmails.
|
|
*/
|
|
distinct?: CachedEmailScalarFieldEnum | CachedEmailScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* CachedEmail findFirstOrThrow
|
|
*/
|
|
export type CachedEmailFindFirstOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the CachedEmail
|
|
*/
|
|
select?: CachedEmailSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: CachedEmailInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which CachedEmail to fetch.
|
|
*/
|
|
where?: CachedEmailWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of CachedEmails to fetch.
|
|
*/
|
|
orderBy?: CachedEmailOrderByWithRelationInput | CachedEmailOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for searching for CachedEmails.
|
|
*/
|
|
cursor?: CachedEmailWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` CachedEmails from the position of the cursor.
|
|
*/
|
|
take?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Skip the first `n` CachedEmails.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
*
|
|
* Filter by unique combinations of CachedEmails.
|
|
*/
|
|
distinct?: CachedEmailScalarFieldEnum | CachedEmailScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* CachedEmail findMany
|
|
*/
|
|
export type CachedEmailFindManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the CachedEmail
|
|
*/
|
|
select?: CachedEmailSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: CachedEmailInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which CachedEmails to fetch.
|
|
*/
|
|
where?: CachedEmailWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of CachedEmails to fetch.
|
|
*/
|
|
orderBy?: CachedEmailOrderByWithRelationInput | CachedEmailOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for listing CachedEmails.
|
|
*/
|
|
cursor?: CachedEmailWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` CachedEmails from the position of the cursor.
|
|
*/
|
|
take?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Skip the first `n` CachedEmails.
|
|
*/
|
|
skip?: number
|
|
distinct?: CachedEmailScalarFieldEnum | CachedEmailScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* CachedEmail create
|
|
*/
|
|
export type CachedEmailCreateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the CachedEmail
|
|
*/
|
|
select?: CachedEmailSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: CachedEmailInclude<ExtArgs> | null
|
|
/**
|
|
* The data needed to create a CachedEmail.
|
|
*/
|
|
data: XOR<CachedEmailCreateInput, CachedEmailUncheckedCreateInput>
|
|
}
|
|
|
|
/**
|
|
* CachedEmail createMany
|
|
*/
|
|
export type CachedEmailCreateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* The data used to create many CachedEmails.
|
|
*/
|
|
data: CachedEmailCreateManyInput | CachedEmailCreateManyInput[]
|
|
skipDuplicates?: boolean
|
|
}
|
|
|
|
/**
|
|
* CachedEmail update
|
|
*/
|
|
export type CachedEmailUpdateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the CachedEmail
|
|
*/
|
|
select?: CachedEmailSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: CachedEmailInclude<ExtArgs> | null
|
|
/**
|
|
* The data needed to update a CachedEmail.
|
|
*/
|
|
data: XOR<CachedEmailUpdateInput, CachedEmailUncheckedUpdateInput>
|
|
/**
|
|
* Choose, which CachedEmail to update.
|
|
*/
|
|
where: CachedEmailWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* CachedEmail updateMany
|
|
*/
|
|
export type CachedEmailUpdateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* The data used to update CachedEmails.
|
|
*/
|
|
data: XOR<CachedEmailUpdateManyMutationInput, CachedEmailUncheckedUpdateManyInput>
|
|
/**
|
|
* Filter which CachedEmails to update
|
|
*/
|
|
where?: CachedEmailWhereInput
|
|
}
|
|
|
|
/**
|
|
* CachedEmail upsert
|
|
*/
|
|
export type CachedEmailUpsertArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the CachedEmail
|
|
*/
|
|
select?: CachedEmailSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: CachedEmailInclude<ExtArgs> | null
|
|
/**
|
|
* The filter to search for the CachedEmail to update in case it exists.
|
|
*/
|
|
where: CachedEmailWhereUniqueInput
|
|
/**
|
|
* In case the CachedEmail found by the `where` argument doesn't exist, create a new CachedEmail with this data.
|
|
*/
|
|
create: XOR<CachedEmailCreateInput, CachedEmailUncheckedCreateInput>
|
|
/**
|
|
* In case the CachedEmail was found with the provided `where` argument, update it with this data.
|
|
*/
|
|
update: XOR<CachedEmailUpdateInput, CachedEmailUncheckedUpdateInput>
|
|
}
|
|
|
|
/**
|
|
* CachedEmail delete
|
|
*/
|
|
export type CachedEmailDeleteArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the CachedEmail
|
|
*/
|
|
select?: CachedEmailSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: CachedEmailInclude<ExtArgs> | null
|
|
/**
|
|
* Filter which CachedEmail to delete.
|
|
*/
|
|
where: CachedEmailWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* CachedEmail deleteMany
|
|
*/
|
|
export type CachedEmailDeleteManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Filter which CachedEmails to delete
|
|
*/
|
|
where?: CachedEmailWhereInput
|
|
}
|
|
|
|
/**
|
|
* CachedEmail.contract
|
|
*/
|
|
export type CachedEmail$contractArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the Contract
|
|
*/
|
|
select?: ContractSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: ContractInclude<ExtArgs> | null
|
|
where?: ContractWhereInput
|
|
}
|
|
|
|
/**
|
|
* CachedEmail without action
|
|
*/
|
|
export type CachedEmailDefaultArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the CachedEmail
|
|
*/
|
|
select?: CachedEmailSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: CachedEmailInclude<ExtArgs> | null
|
|
}
|
|
|
|
|
|
/**
|
|
* Model Meter
|
|
*/
|
|
|
|
export type AggregateMeter = {
|
|
_count: MeterCountAggregateOutputType | null
|
|
_avg: MeterAvgAggregateOutputType | null
|
|
_sum: MeterSumAggregateOutputType | null
|
|
_min: MeterMinAggregateOutputType | null
|
|
_max: MeterMaxAggregateOutputType | null
|
|
}
|
|
|
|
export type MeterAvgAggregateOutputType = {
|
|
id: number | null
|
|
customerId: number | null
|
|
}
|
|
|
|
export type MeterSumAggregateOutputType = {
|
|
id: number | null
|
|
customerId: number | null
|
|
}
|
|
|
|
export type MeterMinAggregateOutputType = {
|
|
id: number | null
|
|
customerId: number | null
|
|
meterNumber: string | null
|
|
type: $Enums.MeterType | null
|
|
location: string | null
|
|
isActive: boolean | null
|
|
createdAt: Date | null
|
|
updatedAt: Date | null
|
|
}
|
|
|
|
export type MeterMaxAggregateOutputType = {
|
|
id: number | null
|
|
customerId: number | null
|
|
meterNumber: string | null
|
|
type: $Enums.MeterType | null
|
|
location: string | null
|
|
isActive: boolean | null
|
|
createdAt: Date | null
|
|
updatedAt: Date | null
|
|
}
|
|
|
|
export type MeterCountAggregateOutputType = {
|
|
id: number
|
|
customerId: number
|
|
meterNumber: number
|
|
type: number
|
|
location: number
|
|
isActive: number
|
|
createdAt: number
|
|
updatedAt: number
|
|
_all: number
|
|
}
|
|
|
|
|
|
export type MeterAvgAggregateInputType = {
|
|
id?: true
|
|
customerId?: true
|
|
}
|
|
|
|
export type MeterSumAggregateInputType = {
|
|
id?: true
|
|
customerId?: true
|
|
}
|
|
|
|
export type MeterMinAggregateInputType = {
|
|
id?: true
|
|
customerId?: true
|
|
meterNumber?: true
|
|
type?: true
|
|
location?: true
|
|
isActive?: true
|
|
createdAt?: true
|
|
updatedAt?: true
|
|
}
|
|
|
|
export type MeterMaxAggregateInputType = {
|
|
id?: true
|
|
customerId?: true
|
|
meterNumber?: true
|
|
type?: true
|
|
location?: true
|
|
isActive?: true
|
|
createdAt?: true
|
|
updatedAt?: true
|
|
}
|
|
|
|
export type MeterCountAggregateInputType = {
|
|
id?: true
|
|
customerId?: true
|
|
meterNumber?: true
|
|
type?: true
|
|
location?: true
|
|
isActive?: true
|
|
createdAt?: true
|
|
updatedAt?: true
|
|
_all?: true
|
|
}
|
|
|
|
export type MeterAggregateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Filter which Meter to aggregate.
|
|
*/
|
|
where?: MeterWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of Meters to fetch.
|
|
*/
|
|
orderBy?: MeterOrderByWithRelationInput | MeterOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the start position
|
|
*/
|
|
cursor?: MeterWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` Meters from the position of the cursor.
|
|
*/
|
|
take?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Skip the first `n` Meters.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Count returned Meters
|
|
**/
|
|
_count?: true | MeterCountAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to average
|
|
**/
|
|
_avg?: MeterAvgAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to sum
|
|
**/
|
|
_sum?: MeterSumAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to find the minimum value
|
|
**/
|
|
_min?: MeterMinAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to find the maximum value
|
|
**/
|
|
_max?: MeterMaxAggregateInputType
|
|
}
|
|
|
|
export type GetMeterAggregateType<T extends MeterAggregateArgs> = {
|
|
[P in keyof T & keyof AggregateMeter]: P extends '_count' | 'count'
|
|
? T[P] extends true
|
|
? number
|
|
: GetScalarType<T[P], AggregateMeter[P]>
|
|
: GetScalarType<T[P], AggregateMeter[P]>
|
|
}
|
|
|
|
|
|
|
|
|
|
export type MeterGroupByArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
where?: MeterWhereInput
|
|
orderBy?: MeterOrderByWithAggregationInput | MeterOrderByWithAggregationInput[]
|
|
by: MeterScalarFieldEnum[] | MeterScalarFieldEnum
|
|
having?: MeterScalarWhereWithAggregatesInput
|
|
take?: number
|
|
skip?: number
|
|
_count?: MeterCountAggregateInputType | true
|
|
_avg?: MeterAvgAggregateInputType
|
|
_sum?: MeterSumAggregateInputType
|
|
_min?: MeterMinAggregateInputType
|
|
_max?: MeterMaxAggregateInputType
|
|
}
|
|
|
|
export type MeterGroupByOutputType = {
|
|
id: number
|
|
customerId: number
|
|
meterNumber: string
|
|
type: $Enums.MeterType
|
|
location: string | null
|
|
isActive: boolean
|
|
createdAt: Date
|
|
updatedAt: Date
|
|
_count: MeterCountAggregateOutputType | null
|
|
_avg: MeterAvgAggregateOutputType | null
|
|
_sum: MeterSumAggregateOutputType | null
|
|
_min: MeterMinAggregateOutputType | null
|
|
_max: MeterMaxAggregateOutputType | null
|
|
}
|
|
|
|
type GetMeterGroupByPayload<T extends MeterGroupByArgs> = Prisma.PrismaPromise<
|
|
Array<
|
|
PickEnumerable<MeterGroupByOutputType, T['by']> &
|
|
{
|
|
[P in ((keyof T) & (keyof MeterGroupByOutputType))]: P extends '_count'
|
|
? T[P] extends boolean
|
|
? number
|
|
: GetScalarType<T[P], MeterGroupByOutputType[P]>
|
|
: GetScalarType<T[P], MeterGroupByOutputType[P]>
|
|
}
|
|
>
|
|
>
|
|
|
|
|
|
export type MeterSelect<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
|
|
id?: boolean
|
|
customerId?: boolean
|
|
meterNumber?: boolean
|
|
type?: boolean
|
|
location?: boolean
|
|
isActive?: boolean
|
|
createdAt?: boolean
|
|
updatedAt?: boolean
|
|
customer?: boolean | CustomerDefaultArgs<ExtArgs>
|
|
readings?: boolean | Meter$readingsArgs<ExtArgs>
|
|
energyDetails?: boolean | Meter$energyDetailsArgs<ExtArgs>
|
|
_count?: boolean | MeterCountOutputTypeDefaultArgs<ExtArgs>
|
|
}, ExtArgs["result"]["meter"]>
|
|
|
|
|
|
export type MeterSelectScalar = {
|
|
id?: boolean
|
|
customerId?: boolean
|
|
meterNumber?: boolean
|
|
type?: boolean
|
|
location?: boolean
|
|
isActive?: boolean
|
|
createdAt?: boolean
|
|
updatedAt?: boolean
|
|
}
|
|
|
|
export type MeterInclude<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
customer?: boolean | CustomerDefaultArgs<ExtArgs>
|
|
readings?: boolean | Meter$readingsArgs<ExtArgs>
|
|
energyDetails?: boolean | Meter$energyDetailsArgs<ExtArgs>
|
|
_count?: boolean | MeterCountOutputTypeDefaultArgs<ExtArgs>
|
|
}
|
|
|
|
export type $MeterPayload<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
name: "Meter"
|
|
objects: {
|
|
customer: Prisma.$CustomerPayload<ExtArgs>
|
|
readings: Prisma.$MeterReadingPayload<ExtArgs>[]
|
|
energyDetails: Prisma.$EnergyContractDetailsPayload<ExtArgs>[]
|
|
}
|
|
scalars: $Extensions.GetPayloadResult<{
|
|
id: number
|
|
customerId: number
|
|
meterNumber: string
|
|
type: $Enums.MeterType
|
|
location: string | null
|
|
isActive: boolean
|
|
createdAt: Date
|
|
updatedAt: Date
|
|
}, ExtArgs["result"]["meter"]>
|
|
composites: {}
|
|
}
|
|
|
|
type MeterGetPayload<S extends boolean | null | undefined | MeterDefaultArgs> = $Result.GetResult<Prisma.$MeterPayload, S>
|
|
|
|
type MeterCountArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> =
|
|
Omit<MeterFindManyArgs, 'select' | 'include' | 'distinct'> & {
|
|
select?: MeterCountAggregateInputType | true
|
|
}
|
|
|
|
export interface MeterDelegate<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> {
|
|
[K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['Meter'], meta: { name: 'Meter' } }
|
|
/**
|
|
* Find zero or one Meter that matches the filter.
|
|
* @param {MeterFindUniqueArgs} args - Arguments to find a Meter
|
|
* @example
|
|
* // Get one Meter
|
|
* const meter = await prisma.meter.findUnique({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findUnique<T extends MeterFindUniqueArgs>(args: SelectSubset<T, MeterFindUniqueArgs<ExtArgs>>): Prisma__MeterClient<$Result.GetResult<Prisma.$MeterPayload<ExtArgs>, T, "findUnique"> | null, null, ExtArgs>
|
|
|
|
/**
|
|
* Find one Meter that matches the filter or throw an error with `error.code='P2025'`
|
|
* if no matches were found.
|
|
* @param {MeterFindUniqueOrThrowArgs} args - Arguments to find a Meter
|
|
* @example
|
|
* // Get one Meter
|
|
* const meter = await prisma.meter.findUniqueOrThrow({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findUniqueOrThrow<T extends MeterFindUniqueOrThrowArgs>(args: SelectSubset<T, MeterFindUniqueOrThrowArgs<ExtArgs>>): Prisma__MeterClient<$Result.GetResult<Prisma.$MeterPayload<ExtArgs>, T, "findUniqueOrThrow">, never, ExtArgs>
|
|
|
|
/**
|
|
* Find the first Meter that matches the filter.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {MeterFindFirstArgs} args - Arguments to find a Meter
|
|
* @example
|
|
* // Get one Meter
|
|
* const meter = await prisma.meter.findFirst({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findFirst<T extends MeterFindFirstArgs>(args?: SelectSubset<T, MeterFindFirstArgs<ExtArgs>>): Prisma__MeterClient<$Result.GetResult<Prisma.$MeterPayload<ExtArgs>, T, "findFirst"> | null, null, ExtArgs>
|
|
|
|
/**
|
|
* Find the first Meter that matches the filter or
|
|
* throw `PrismaKnownClientError` with `P2025` code if no matches were found.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {MeterFindFirstOrThrowArgs} args - Arguments to find a Meter
|
|
* @example
|
|
* // Get one Meter
|
|
* const meter = await prisma.meter.findFirstOrThrow({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findFirstOrThrow<T extends MeterFindFirstOrThrowArgs>(args?: SelectSubset<T, MeterFindFirstOrThrowArgs<ExtArgs>>): Prisma__MeterClient<$Result.GetResult<Prisma.$MeterPayload<ExtArgs>, T, "findFirstOrThrow">, never, ExtArgs>
|
|
|
|
/**
|
|
* Find zero or more Meters that matches the filter.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {MeterFindManyArgs} args - Arguments to filter and select certain fields only.
|
|
* @example
|
|
* // Get all Meters
|
|
* const meters = await prisma.meter.findMany()
|
|
*
|
|
* // Get first 10 Meters
|
|
* const meters = await prisma.meter.findMany({ take: 10 })
|
|
*
|
|
* // Only select the `id`
|
|
* const meterWithIdOnly = await prisma.meter.findMany({ select: { id: true } })
|
|
*
|
|
*/
|
|
findMany<T extends MeterFindManyArgs>(args?: SelectSubset<T, MeterFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$MeterPayload<ExtArgs>, T, "findMany">>
|
|
|
|
/**
|
|
* Create a Meter.
|
|
* @param {MeterCreateArgs} args - Arguments to create a Meter.
|
|
* @example
|
|
* // Create one Meter
|
|
* const Meter = await prisma.meter.create({
|
|
* data: {
|
|
* // ... data to create a Meter
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
create<T extends MeterCreateArgs>(args: SelectSubset<T, MeterCreateArgs<ExtArgs>>): Prisma__MeterClient<$Result.GetResult<Prisma.$MeterPayload<ExtArgs>, T, "create">, never, ExtArgs>
|
|
|
|
/**
|
|
* Create many Meters.
|
|
* @param {MeterCreateManyArgs} args - Arguments to create many Meters.
|
|
* @example
|
|
* // Create many Meters
|
|
* const meter = await prisma.meter.createMany({
|
|
* data: [
|
|
* // ... provide data here
|
|
* ]
|
|
* })
|
|
*
|
|
*/
|
|
createMany<T extends MeterCreateManyArgs>(args?: SelectSubset<T, MeterCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
|
|
|
|
/**
|
|
* Delete a Meter.
|
|
* @param {MeterDeleteArgs} args - Arguments to delete one Meter.
|
|
* @example
|
|
* // Delete one Meter
|
|
* const Meter = await prisma.meter.delete({
|
|
* where: {
|
|
* // ... filter to delete one Meter
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
delete<T extends MeterDeleteArgs>(args: SelectSubset<T, MeterDeleteArgs<ExtArgs>>): Prisma__MeterClient<$Result.GetResult<Prisma.$MeterPayload<ExtArgs>, T, "delete">, never, ExtArgs>
|
|
|
|
/**
|
|
* Update one Meter.
|
|
* @param {MeterUpdateArgs} args - Arguments to update one Meter.
|
|
* @example
|
|
* // Update one Meter
|
|
* const meter = await prisma.meter.update({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* },
|
|
* data: {
|
|
* // ... provide data here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
update<T extends MeterUpdateArgs>(args: SelectSubset<T, MeterUpdateArgs<ExtArgs>>): Prisma__MeterClient<$Result.GetResult<Prisma.$MeterPayload<ExtArgs>, T, "update">, never, ExtArgs>
|
|
|
|
/**
|
|
* Delete zero or more Meters.
|
|
* @param {MeterDeleteManyArgs} args - Arguments to filter Meters to delete.
|
|
* @example
|
|
* // Delete a few Meters
|
|
* const { count } = await prisma.meter.deleteMany({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
deleteMany<T extends MeterDeleteManyArgs>(args?: SelectSubset<T, MeterDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
|
|
|
|
/**
|
|
* Update zero or more Meters.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {MeterUpdateManyArgs} args - Arguments to update one or more rows.
|
|
* @example
|
|
* // Update many Meters
|
|
* const meter = await prisma.meter.updateMany({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* },
|
|
* data: {
|
|
* // ... provide data here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
updateMany<T extends MeterUpdateManyArgs>(args: SelectSubset<T, MeterUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
|
|
|
|
/**
|
|
* Create or update one Meter.
|
|
* @param {MeterUpsertArgs} args - Arguments to update or create a Meter.
|
|
* @example
|
|
* // Update or create a Meter
|
|
* const meter = await prisma.meter.upsert({
|
|
* create: {
|
|
* // ... data to create a Meter
|
|
* },
|
|
* update: {
|
|
* // ... in case it already exists, update
|
|
* },
|
|
* where: {
|
|
* // ... the filter for the Meter we want to update
|
|
* }
|
|
* })
|
|
*/
|
|
upsert<T extends MeterUpsertArgs>(args: SelectSubset<T, MeterUpsertArgs<ExtArgs>>): Prisma__MeterClient<$Result.GetResult<Prisma.$MeterPayload<ExtArgs>, T, "upsert">, never, ExtArgs>
|
|
|
|
|
|
/**
|
|
* Count the number of Meters.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {MeterCountArgs} args - Arguments to filter Meters to count.
|
|
* @example
|
|
* // Count the number of Meters
|
|
* const count = await prisma.meter.count({
|
|
* where: {
|
|
* // ... the filter for the Meters we want to count
|
|
* }
|
|
* })
|
|
**/
|
|
count<T extends MeterCountArgs>(
|
|
args?: Subset<T, MeterCountArgs>,
|
|
): Prisma.PrismaPromise<
|
|
T extends $Utils.Record<'select', any>
|
|
? T['select'] extends true
|
|
? number
|
|
: GetScalarType<T['select'], MeterCountAggregateOutputType>
|
|
: number
|
|
>
|
|
|
|
/**
|
|
* Allows you to perform aggregations operations on a Meter.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {MeterAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
|
|
* @example
|
|
* // Ordered by age ascending
|
|
* // Where email contains prisma.io
|
|
* // Limited to the 10 users
|
|
* const aggregations = await prisma.user.aggregate({
|
|
* _avg: {
|
|
* age: true,
|
|
* },
|
|
* where: {
|
|
* email: {
|
|
* contains: "prisma.io",
|
|
* },
|
|
* },
|
|
* orderBy: {
|
|
* age: "asc",
|
|
* },
|
|
* take: 10,
|
|
* })
|
|
**/
|
|
aggregate<T extends MeterAggregateArgs>(args: Subset<T, MeterAggregateArgs>): Prisma.PrismaPromise<GetMeterAggregateType<T>>
|
|
|
|
/**
|
|
* Group by Meter.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {MeterGroupByArgs} args - Group by arguments.
|
|
* @example
|
|
* // Group by city, order by createdAt, get count
|
|
* const result = await prisma.user.groupBy({
|
|
* by: ['city', 'createdAt'],
|
|
* orderBy: {
|
|
* createdAt: true
|
|
* },
|
|
* _count: {
|
|
* _all: true
|
|
* },
|
|
* })
|
|
*
|
|
**/
|
|
groupBy<
|
|
T extends MeterGroupByArgs,
|
|
HasSelectOrTake extends Or<
|
|
Extends<'skip', Keys<T>>,
|
|
Extends<'take', Keys<T>>
|
|
>,
|
|
OrderByArg extends True extends HasSelectOrTake
|
|
? { orderBy: MeterGroupByArgs['orderBy'] }
|
|
: { orderBy?: MeterGroupByArgs['orderBy'] },
|
|
OrderFields extends ExcludeUnderscoreKeys<Keys<MaybeTupleToUnion<T['orderBy']>>>,
|
|
ByFields extends MaybeTupleToUnion<T['by']>,
|
|
ByValid extends Has<ByFields, OrderFields>,
|
|
HavingFields extends GetHavingFields<T['having']>,
|
|
HavingValid extends Has<ByFields, HavingFields>,
|
|
ByEmpty extends T['by'] extends never[] ? True : False,
|
|
InputErrors extends ByEmpty extends True
|
|
? `Error: "by" must not be empty.`
|
|
: HavingValid extends False
|
|
? {
|
|
[P in HavingFields]: P extends ByFields
|
|
? never
|
|
: P extends string
|
|
? `Error: Field "${P}" used in "having" needs to be provided in "by".`
|
|
: [
|
|
Error,
|
|
'Field ',
|
|
P,
|
|
` in "having" needs to be provided in "by"`,
|
|
]
|
|
}[HavingFields]
|
|
: 'take' extends Keys<T>
|
|
? 'orderBy' extends Keys<T>
|
|
? ByValid extends True
|
|
? {}
|
|
: {
|
|
[P in OrderFields]: P extends ByFields
|
|
? never
|
|
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
|
|
}[OrderFields]
|
|
: 'Error: If you provide "take", you also need to provide "orderBy"'
|
|
: 'skip' extends Keys<T>
|
|
? 'orderBy' extends Keys<T>
|
|
? ByValid extends True
|
|
? {}
|
|
: {
|
|
[P in OrderFields]: P extends ByFields
|
|
? never
|
|
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
|
|
}[OrderFields]
|
|
: 'Error: If you provide "skip", you also need to provide "orderBy"'
|
|
: ByValid extends True
|
|
? {}
|
|
: {
|
|
[P in OrderFields]: P extends ByFields
|
|
? never
|
|
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
|
|
}[OrderFields]
|
|
>(args: SubsetIntersection<T, MeterGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetMeterGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
|
|
/**
|
|
* Fields of the Meter model
|
|
*/
|
|
readonly fields: MeterFieldRefs;
|
|
}
|
|
|
|
/**
|
|
* The delegate class that acts as a "Promise-like" for Meter.
|
|
* Why is this prefixed with `Prisma__`?
|
|
* Because we want to prevent naming conflicts as mentioned in
|
|
* https://github.com/prisma/prisma-client-js/issues/707
|
|
*/
|
|
export interface Prisma__MeterClient<T, Null = never, ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> extends Prisma.PrismaPromise<T> {
|
|
readonly [Symbol.toStringTag]: "PrismaPromise"
|
|
customer<T extends CustomerDefaultArgs<ExtArgs> = {}>(args?: Subset<T, CustomerDefaultArgs<ExtArgs>>): Prisma__CustomerClient<$Result.GetResult<Prisma.$CustomerPayload<ExtArgs>, T, "findUniqueOrThrow"> | Null, Null, ExtArgs>
|
|
readings<T extends Meter$readingsArgs<ExtArgs> = {}>(args?: Subset<T, Meter$readingsArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$MeterReadingPayload<ExtArgs>, T, "findMany"> | Null>
|
|
energyDetails<T extends Meter$energyDetailsArgs<ExtArgs> = {}>(args?: Subset<T, Meter$energyDetailsArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$EnergyContractDetailsPayload<ExtArgs>, T, "findMany"> | Null>
|
|
/**
|
|
* Attaches callbacks for the resolution and/or rejection of the Promise.
|
|
* @param onfulfilled The callback to execute when the Promise is resolved.
|
|
* @param onrejected The callback to execute when the Promise is rejected.
|
|
* @returns A Promise for the completion of which ever callback is executed.
|
|
*/
|
|
then<TResult1 = T, TResult2 = never>(onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined | null): $Utils.JsPromise<TResult1 | TResult2>
|
|
/**
|
|
* Attaches a callback for only the rejection of the Promise.
|
|
* @param onrejected The callback to execute when the Promise is rejected.
|
|
* @returns A Promise for the completion of the callback.
|
|
*/
|
|
catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): $Utils.JsPromise<T | TResult>
|
|
/**
|
|
* Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
|
|
* resolved value cannot be modified from the callback.
|
|
* @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
|
|
* @returns A Promise for the completion of the callback.
|
|
*/
|
|
finally(onfinally?: (() => void) | undefined | null): $Utils.JsPromise<T>
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
* Fields of the Meter model
|
|
*/
|
|
interface MeterFieldRefs {
|
|
readonly id: FieldRef<"Meter", 'Int'>
|
|
readonly customerId: FieldRef<"Meter", 'Int'>
|
|
readonly meterNumber: FieldRef<"Meter", 'String'>
|
|
readonly type: FieldRef<"Meter", 'MeterType'>
|
|
readonly location: FieldRef<"Meter", 'String'>
|
|
readonly isActive: FieldRef<"Meter", 'Boolean'>
|
|
readonly createdAt: FieldRef<"Meter", 'DateTime'>
|
|
readonly updatedAt: FieldRef<"Meter", 'DateTime'>
|
|
}
|
|
|
|
|
|
// Custom InputTypes
|
|
/**
|
|
* Meter findUnique
|
|
*/
|
|
export type MeterFindUniqueArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the Meter
|
|
*/
|
|
select?: MeterSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: MeterInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which Meter to fetch.
|
|
*/
|
|
where: MeterWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* Meter findUniqueOrThrow
|
|
*/
|
|
export type MeterFindUniqueOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the Meter
|
|
*/
|
|
select?: MeterSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: MeterInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which Meter to fetch.
|
|
*/
|
|
where: MeterWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* Meter findFirst
|
|
*/
|
|
export type MeterFindFirstArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the Meter
|
|
*/
|
|
select?: MeterSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: MeterInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which Meter to fetch.
|
|
*/
|
|
where?: MeterWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of Meters to fetch.
|
|
*/
|
|
orderBy?: MeterOrderByWithRelationInput | MeterOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for searching for Meters.
|
|
*/
|
|
cursor?: MeterWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` Meters from the position of the cursor.
|
|
*/
|
|
take?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Skip the first `n` Meters.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
*
|
|
* Filter by unique combinations of Meters.
|
|
*/
|
|
distinct?: MeterScalarFieldEnum | MeterScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* Meter findFirstOrThrow
|
|
*/
|
|
export type MeterFindFirstOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the Meter
|
|
*/
|
|
select?: MeterSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: MeterInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which Meter to fetch.
|
|
*/
|
|
where?: MeterWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of Meters to fetch.
|
|
*/
|
|
orderBy?: MeterOrderByWithRelationInput | MeterOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for searching for Meters.
|
|
*/
|
|
cursor?: MeterWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` Meters from the position of the cursor.
|
|
*/
|
|
take?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Skip the first `n` Meters.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
*
|
|
* Filter by unique combinations of Meters.
|
|
*/
|
|
distinct?: MeterScalarFieldEnum | MeterScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* Meter findMany
|
|
*/
|
|
export type MeterFindManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the Meter
|
|
*/
|
|
select?: MeterSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: MeterInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which Meters to fetch.
|
|
*/
|
|
where?: MeterWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of Meters to fetch.
|
|
*/
|
|
orderBy?: MeterOrderByWithRelationInput | MeterOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for listing Meters.
|
|
*/
|
|
cursor?: MeterWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` Meters from the position of the cursor.
|
|
*/
|
|
take?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Skip the first `n` Meters.
|
|
*/
|
|
skip?: number
|
|
distinct?: MeterScalarFieldEnum | MeterScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* Meter create
|
|
*/
|
|
export type MeterCreateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the Meter
|
|
*/
|
|
select?: MeterSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: MeterInclude<ExtArgs> | null
|
|
/**
|
|
* The data needed to create a Meter.
|
|
*/
|
|
data: XOR<MeterCreateInput, MeterUncheckedCreateInput>
|
|
}
|
|
|
|
/**
|
|
* Meter createMany
|
|
*/
|
|
export type MeterCreateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* The data used to create many Meters.
|
|
*/
|
|
data: MeterCreateManyInput | MeterCreateManyInput[]
|
|
skipDuplicates?: boolean
|
|
}
|
|
|
|
/**
|
|
* Meter update
|
|
*/
|
|
export type MeterUpdateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the Meter
|
|
*/
|
|
select?: MeterSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: MeterInclude<ExtArgs> | null
|
|
/**
|
|
* The data needed to update a Meter.
|
|
*/
|
|
data: XOR<MeterUpdateInput, MeterUncheckedUpdateInput>
|
|
/**
|
|
* Choose, which Meter to update.
|
|
*/
|
|
where: MeterWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* Meter updateMany
|
|
*/
|
|
export type MeterUpdateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* The data used to update Meters.
|
|
*/
|
|
data: XOR<MeterUpdateManyMutationInput, MeterUncheckedUpdateManyInput>
|
|
/**
|
|
* Filter which Meters to update
|
|
*/
|
|
where?: MeterWhereInput
|
|
}
|
|
|
|
/**
|
|
* Meter upsert
|
|
*/
|
|
export type MeterUpsertArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the Meter
|
|
*/
|
|
select?: MeterSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: MeterInclude<ExtArgs> | null
|
|
/**
|
|
* The filter to search for the Meter to update in case it exists.
|
|
*/
|
|
where: MeterWhereUniqueInput
|
|
/**
|
|
* In case the Meter found by the `where` argument doesn't exist, create a new Meter with this data.
|
|
*/
|
|
create: XOR<MeterCreateInput, MeterUncheckedCreateInput>
|
|
/**
|
|
* In case the Meter was found with the provided `where` argument, update it with this data.
|
|
*/
|
|
update: XOR<MeterUpdateInput, MeterUncheckedUpdateInput>
|
|
}
|
|
|
|
/**
|
|
* Meter delete
|
|
*/
|
|
export type MeterDeleteArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the Meter
|
|
*/
|
|
select?: MeterSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: MeterInclude<ExtArgs> | null
|
|
/**
|
|
* Filter which Meter to delete.
|
|
*/
|
|
where: MeterWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* Meter deleteMany
|
|
*/
|
|
export type MeterDeleteManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Filter which Meters to delete
|
|
*/
|
|
where?: MeterWhereInput
|
|
}
|
|
|
|
/**
|
|
* Meter.readings
|
|
*/
|
|
export type Meter$readingsArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the MeterReading
|
|
*/
|
|
select?: MeterReadingSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: MeterReadingInclude<ExtArgs> | null
|
|
where?: MeterReadingWhereInput
|
|
orderBy?: MeterReadingOrderByWithRelationInput | MeterReadingOrderByWithRelationInput[]
|
|
cursor?: MeterReadingWhereUniqueInput
|
|
take?: number
|
|
skip?: number
|
|
distinct?: MeterReadingScalarFieldEnum | MeterReadingScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* Meter.energyDetails
|
|
*/
|
|
export type Meter$energyDetailsArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the EnergyContractDetails
|
|
*/
|
|
select?: EnergyContractDetailsSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: EnergyContractDetailsInclude<ExtArgs> | null
|
|
where?: EnergyContractDetailsWhereInput
|
|
orderBy?: EnergyContractDetailsOrderByWithRelationInput | EnergyContractDetailsOrderByWithRelationInput[]
|
|
cursor?: EnergyContractDetailsWhereUniqueInput
|
|
take?: number
|
|
skip?: number
|
|
distinct?: EnergyContractDetailsScalarFieldEnum | EnergyContractDetailsScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* Meter without action
|
|
*/
|
|
export type MeterDefaultArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the Meter
|
|
*/
|
|
select?: MeterSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: MeterInclude<ExtArgs> | null
|
|
}
|
|
|
|
|
|
/**
|
|
* Model MeterReading
|
|
*/
|
|
|
|
export type AggregateMeterReading = {
|
|
_count: MeterReadingCountAggregateOutputType | null
|
|
_avg: MeterReadingAvgAggregateOutputType | null
|
|
_sum: MeterReadingSumAggregateOutputType | null
|
|
_min: MeterReadingMinAggregateOutputType | null
|
|
_max: MeterReadingMaxAggregateOutputType | null
|
|
}
|
|
|
|
export type MeterReadingAvgAggregateOutputType = {
|
|
id: number | null
|
|
meterId: number | null
|
|
value: number | null
|
|
}
|
|
|
|
export type MeterReadingSumAggregateOutputType = {
|
|
id: number | null
|
|
meterId: number | null
|
|
value: number | null
|
|
}
|
|
|
|
export type MeterReadingMinAggregateOutputType = {
|
|
id: number | null
|
|
meterId: number | null
|
|
readingDate: Date | null
|
|
value: number | null
|
|
unit: string | null
|
|
notes: string | null
|
|
createdAt: Date | null
|
|
}
|
|
|
|
export type MeterReadingMaxAggregateOutputType = {
|
|
id: number | null
|
|
meterId: number | null
|
|
readingDate: Date | null
|
|
value: number | null
|
|
unit: string | null
|
|
notes: string | null
|
|
createdAt: Date | null
|
|
}
|
|
|
|
export type MeterReadingCountAggregateOutputType = {
|
|
id: number
|
|
meterId: number
|
|
readingDate: number
|
|
value: number
|
|
unit: number
|
|
notes: number
|
|
createdAt: number
|
|
_all: number
|
|
}
|
|
|
|
|
|
export type MeterReadingAvgAggregateInputType = {
|
|
id?: true
|
|
meterId?: true
|
|
value?: true
|
|
}
|
|
|
|
export type MeterReadingSumAggregateInputType = {
|
|
id?: true
|
|
meterId?: true
|
|
value?: true
|
|
}
|
|
|
|
export type MeterReadingMinAggregateInputType = {
|
|
id?: true
|
|
meterId?: true
|
|
readingDate?: true
|
|
value?: true
|
|
unit?: true
|
|
notes?: true
|
|
createdAt?: true
|
|
}
|
|
|
|
export type MeterReadingMaxAggregateInputType = {
|
|
id?: true
|
|
meterId?: true
|
|
readingDate?: true
|
|
value?: true
|
|
unit?: true
|
|
notes?: true
|
|
createdAt?: true
|
|
}
|
|
|
|
export type MeterReadingCountAggregateInputType = {
|
|
id?: true
|
|
meterId?: true
|
|
readingDate?: true
|
|
value?: true
|
|
unit?: true
|
|
notes?: true
|
|
createdAt?: true
|
|
_all?: true
|
|
}
|
|
|
|
export type MeterReadingAggregateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Filter which MeterReading to aggregate.
|
|
*/
|
|
where?: MeterReadingWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of MeterReadings to fetch.
|
|
*/
|
|
orderBy?: MeterReadingOrderByWithRelationInput | MeterReadingOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the start position
|
|
*/
|
|
cursor?: MeterReadingWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` MeterReadings from the position of the cursor.
|
|
*/
|
|
take?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Skip the first `n` MeterReadings.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Count returned MeterReadings
|
|
**/
|
|
_count?: true | MeterReadingCountAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to average
|
|
**/
|
|
_avg?: MeterReadingAvgAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to sum
|
|
**/
|
|
_sum?: MeterReadingSumAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to find the minimum value
|
|
**/
|
|
_min?: MeterReadingMinAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to find the maximum value
|
|
**/
|
|
_max?: MeterReadingMaxAggregateInputType
|
|
}
|
|
|
|
export type GetMeterReadingAggregateType<T extends MeterReadingAggregateArgs> = {
|
|
[P in keyof T & keyof AggregateMeterReading]: P extends '_count' | 'count'
|
|
? T[P] extends true
|
|
? number
|
|
: GetScalarType<T[P], AggregateMeterReading[P]>
|
|
: GetScalarType<T[P], AggregateMeterReading[P]>
|
|
}
|
|
|
|
|
|
|
|
|
|
export type MeterReadingGroupByArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
where?: MeterReadingWhereInput
|
|
orderBy?: MeterReadingOrderByWithAggregationInput | MeterReadingOrderByWithAggregationInput[]
|
|
by: MeterReadingScalarFieldEnum[] | MeterReadingScalarFieldEnum
|
|
having?: MeterReadingScalarWhereWithAggregatesInput
|
|
take?: number
|
|
skip?: number
|
|
_count?: MeterReadingCountAggregateInputType | true
|
|
_avg?: MeterReadingAvgAggregateInputType
|
|
_sum?: MeterReadingSumAggregateInputType
|
|
_min?: MeterReadingMinAggregateInputType
|
|
_max?: MeterReadingMaxAggregateInputType
|
|
}
|
|
|
|
export type MeterReadingGroupByOutputType = {
|
|
id: number
|
|
meterId: number
|
|
readingDate: Date
|
|
value: number
|
|
unit: string
|
|
notes: string | null
|
|
createdAt: Date
|
|
_count: MeterReadingCountAggregateOutputType | null
|
|
_avg: MeterReadingAvgAggregateOutputType | null
|
|
_sum: MeterReadingSumAggregateOutputType | null
|
|
_min: MeterReadingMinAggregateOutputType | null
|
|
_max: MeterReadingMaxAggregateOutputType | null
|
|
}
|
|
|
|
type GetMeterReadingGroupByPayload<T extends MeterReadingGroupByArgs> = Prisma.PrismaPromise<
|
|
Array<
|
|
PickEnumerable<MeterReadingGroupByOutputType, T['by']> &
|
|
{
|
|
[P in ((keyof T) & (keyof MeterReadingGroupByOutputType))]: P extends '_count'
|
|
? T[P] extends boolean
|
|
? number
|
|
: GetScalarType<T[P], MeterReadingGroupByOutputType[P]>
|
|
: GetScalarType<T[P], MeterReadingGroupByOutputType[P]>
|
|
}
|
|
>
|
|
>
|
|
|
|
|
|
export type MeterReadingSelect<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
|
|
id?: boolean
|
|
meterId?: boolean
|
|
readingDate?: boolean
|
|
value?: boolean
|
|
unit?: boolean
|
|
notes?: boolean
|
|
createdAt?: boolean
|
|
meter?: boolean | MeterDefaultArgs<ExtArgs>
|
|
}, ExtArgs["result"]["meterReading"]>
|
|
|
|
|
|
export type MeterReadingSelectScalar = {
|
|
id?: boolean
|
|
meterId?: boolean
|
|
readingDate?: boolean
|
|
value?: boolean
|
|
unit?: boolean
|
|
notes?: boolean
|
|
createdAt?: boolean
|
|
}
|
|
|
|
export type MeterReadingInclude<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
meter?: boolean | MeterDefaultArgs<ExtArgs>
|
|
}
|
|
|
|
export type $MeterReadingPayload<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
name: "MeterReading"
|
|
objects: {
|
|
meter: Prisma.$MeterPayload<ExtArgs>
|
|
}
|
|
scalars: $Extensions.GetPayloadResult<{
|
|
id: number
|
|
meterId: number
|
|
readingDate: Date
|
|
value: number
|
|
unit: string
|
|
notes: string | null
|
|
createdAt: Date
|
|
}, ExtArgs["result"]["meterReading"]>
|
|
composites: {}
|
|
}
|
|
|
|
type MeterReadingGetPayload<S extends boolean | null | undefined | MeterReadingDefaultArgs> = $Result.GetResult<Prisma.$MeterReadingPayload, S>
|
|
|
|
type MeterReadingCountArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> =
|
|
Omit<MeterReadingFindManyArgs, 'select' | 'include' | 'distinct'> & {
|
|
select?: MeterReadingCountAggregateInputType | true
|
|
}
|
|
|
|
export interface MeterReadingDelegate<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> {
|
|
[K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['MeterReading'], meta: { name: 'MeterReading' } }
|
|
/**
|
|
* Find zero or one MeterReading that matches the filter.
|
|
* @param {MeterReadingFindUniqueArgs} args - Arguments to find a MeterReading
|
|
* @example
|
|
* // Get one MeterReading
|
|
* const meterReading = await prisma.meterReading.findUnique({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findUnique<T extends MeterReadingFindUniqueArgs>(args: SelectSubset<T, MeterReadingFindUniqueArgs<ExtArgs>>): Prisma__MeterReadingClient<$Result.GetResult<Prisma.$MeterReadingPayload<ExtArgs>, T, "findUnique"> | null, null, ExtArgs>
|
|
|
|
/**
|
|
* Find one MeterReading that matches the filter or throw an error with `error.code='P2025'`
|
|
* if no matches were found.
|
|
* @param {MeterReadingFindUniqueOrThrowArgs} args - Arguments to find a MeterReading
|
|
* @example
|
|
* // Get one MeterReading
|
|
* const meterReading = await prisma.meterReading.findUniqueOrThrow({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findUniqueOrThrow<T extends MeterReadingFindUniqueOrThrowArgs>(args: SelectSubset<T, MeterReadingFindUniqueOrThrowArgs<ExtArgs>>): Prisma__MeterReadingClient<$Result.GetResult<Prisma.$MeterReadingPayload<ExtArgs>, T, "findUniqueOrThrow">, never, ExtArgs>
|
|
|
|
/**
|
|
* Find the first MeterReading that matches the filter.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {MeterReadingFindFirstArgs} args - Arguments to find a MeterReading
|
|
* @example
|
|
* // Get one MeterReading
|
|
* const meterReading = await prisma.meterReading.findFirst({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findFirst<T extends MeterReadingFindFirstArgs>(args?: SelectSubset<T, MeterReadingFindFirstArgs<ExtArgs>>): Prisma__MeterReadingClient<$Result.GetResult<Prisma.$MeterReadingPayload<ExtArgs>, T, "findFirst"> | null, null, ExtArgs>
|
|
|
|
/**
|
|
* Find the first MeterReading that matches the filter or
|
|
* throw `PrismaKnownClientError` with `P2025` code if no matches were found.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {MeterReadingFindFirstOrThrowArgs} args - Arguments to find a MeterReading
|
|
* @example
|
|
* // Get one MeterReading
|
|
* const meterReading = await prisma.meterReading.findFirstOrThrow({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findFirstOrThrow<T extends MeterReadingFindFirstOrThrowArgs>(args?: SelectSubset<T, MeterReadingFindFirstOrThrowArgs<ExtArgs>>): Prisma__MeterReadingClient<$Result.GetResult<Prisma.$MeterReadingPayload<ExtArgs>, T, "findFirstOrThrow">, never, ExtArgs>
|
|
|
|
/**
|
|
* Find zero or more MeterReadings that matches the filter.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {MeterReadingFindManyArgs} args - Arguments to filter and select certain fields only.
|
|
* @example
|
|
* // Get all MeterReadings
|
|
* const meterReadings = await prisma.meterReading.findMany()
|
|
*
|
|
* // Get first 10 MeterReadings
|
|
* const meterReadings = await prisma.meterReading.findMany({ take: 10 })
|
|
*
|
|
* // Only select the `id`
|
|
* const meterReadingWithIdOnly = await prisma.meterReading.findMany({ select: { id: true } })
|
|
*
|
|
*/
|
|
findMany<T extends MeterReadingFindManyArgs>(args?: SelectSubset<T, MeterReadingFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$MeterReadingPayload<ExtArgs>, T, "findMany">>
|
|
|
|
/**
|
|
* Create a MeterReading.
|
|
* @param {MeterReadingCreateArgs} args - Arguments to create a MeterReading.
|
|
* @example
|
|
* // Create one MeterReading
|
|
* const MeterReading = await prisma.meterReading.create({
|
|
* data: {
|
|
* // ... data to create a MeterReading
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
create<T extends MeterReadingCreateArgs>(args: SelectSubset<T, MeterReadingCreateArgs<ExtArgs>>): Prisma__MeterReadingClient<$Result.GetResult<Prisma.$MeterReadingPayload<ExtArgs>, T, "create">, never, ExtArgs>
|
|
|
|
/**
|
|
* Create many MeterReadings.
|
|
* @param {MeterReadingCreateManyArgs} args - Arguments to create many MeterReadings.
|
|
* @example
|
|
* // Create many MeterReadings
|
|
* const meterReading = await prisma.meterReading.createMany({
|
|
* data: [
|
|
* // ... provide data here
|
|
* ]
|
|
* })
|
|
*
|
|
*/
|
|
createMany<T extends MeterReadingCreateManyArgs>(args?: SelectSubset<T, MeterReadingCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
|
|
|
|
/**
|
|
* Delete a MeterReading.
|
|
* @param {MeterReadingDeleteArgs} args - Arguments to delete one MeterReading.
|
|
* @example
|
|
* // Delete one MeterReading
|
|
* const MeterReading = await prisma.meterReading.delete({
|
|
* where: {
|
|
* // ... filter to delete one MeterReading
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
delete<T extends MeterReadingDeleteArgs>(args: SelectSubset<T, MeterReadingDeleteArgs<ExtArgs>>): Prisma__MeterReadingClient<$Result.GetResult<Prisma.$MeterReadingPayload<ExtArgs>, T, "delete">, never, ExtArgs>
|
|
|
|
/**
|
|
* Update one MeterReading.
|
|
* @param {MeterReadingUpdateArgs} args - Arguments to update one MeterReading.
|
|
* @example
|
|
* // Update one MeterReading
|
|
* const meterReading = await prisma.meterReading.update({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* },
|
|
* data: {
|
|
* // ... provide data here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
update<T extends MeterReadingUpdateArgs>(args: SelectSubset<T, MeterReadingUpdateArgs<ExtArgs>>): Prisma__MeterReadingClient<$Result.GetResult<Prisma.$MeterReadingPayload<ExtArgs>, T, "update">, never, ExtArgs>
|
|
|
|
/**
|
|
* Delete zero or more MeterReadings.
|
|
* @param {MeterReadingDeleteManyArgs} args - Arguments to filter MeterReadings to delete.
|
|
* @example
|
|
* // Delete a few MeterReadings
|
|
* const { count } = await prisma.meterReading.deleteMany({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
deleteMany<T extends MeterReadingDeleteManyArgs>(args?: SelectSubset<T, MeterReadingDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
|
|
|
|
/**
|
|
* Update zero or more MeterReadings.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {MeterReadingUpdateManyArgs} args - Arguments to update one or more rows.
|
|
* @example
|
|
* // Update many MeterReadings
|
|
* const meterReading = await prisma.meterReading.updateMany({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* },
|
|
* data: {
|
|
* // ... provide data here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
updateMany<T extends MeterReadingUpdateManyArgs>(args: SelectSubset<T, MeterReadingUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
|
|
|
|
/**
|
|
* Create or update one MeterReading.
|
|
* @param {MeterReadingUpsertArgs} args - Arguments to update or create a MeterReading.
|
|
* @example
|
|
* // Update or create a MeterReading
|
|
* const meterReading = await prisma.meterReading.upsert({
|
|
* create: {
|
|
* // ... data to create a MeterReading
|
|
* },
|
|
* update: {
|
|
* // ... in case it already exists, update
|
|
* },
|
|
* where: {
|
|
* // ... the filter for the MeterReading we want to update
|
|
* }
|
|
* })
|
|
*/
|
|
upsert<T extends MeterReadingUpsertArgs>(args: SelectSubset<T, MeterReadingUpsertArgs<ExtArgs>>): Prisma__MeterReadingClient<$Result.GetResult<Prisma.$MeterReadingPayload<ExtArgs>, T, "upsert">, never, ExtArgs>
|
|
|
|
|
|
/**
|
|
* Count the number of MeterReadings.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {MeterReadingCountArgs} args - Arguments to filter MeterReadings to count.
|
|
* @example
|
|
* // Count the number of MeterReadings
|
|
* const count = await prisma.meterReading.count({
|
|
* where: {
|
|
* // ... the filter for the MeterReadings we want to count
|
|
* }
|
|
* })
|
|
**/
|
|
count<T extends MeterReadingCountArgs>(
|
|
args?: Subset<T, MeterReadingCountArgs>,
|
|
): Prisma.PrismaPromise<
|
|
T extends $Utils.Record<'select', any>
|
|
? T['select'] extends true
|
|
? number
|
|
: GetScalarType<T['select'], MeterReadingCountAggregateOutputType>
|
|
: number
|
|
>
|
|
|
|
/**
|
|
* Allows you to perform aggregations operations on a MeterReading.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {MeterReadingAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
|
|
* @example
|
|
* // Ordered by age ascending
|
|
* // Where email contains prisma.io
|
|
* // Limited to the 10 users
|
|
* const aggregations = await prisma.user.aggregate({
|
|
* _avg: {
|
|
* age: true,
|
|
* },
|
|
* where: {
|
|
* email: {
|
|
* contains: "prisma.io",
|
|
* },
|
|
* },
|
|
* orderBy: {
|
|
* age: "asc",
|
|
* },
|
|
* take: 10,
|
|
* })
|
|
**/
|
|
aggregate<T extends MeterReadingAggregateArgs>(args: Subset<T, MeterReadingAggregateArgs>): Prisma.PrismaPromise<GetMeterReadingAggregateType<T>>
|
|
|
|
/**
|
|
* Group by MeterReading.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {MeterReadingGroupByArgs} args - Group by arguments.
|
|
* @example
|
|
* // Group by city, order by createdAt, get count
|
|
* const result = await prisma.user.groupBy({
|
|
* by: ['city', 'createdAt'],
|
|
* orderBy: {
|
|
* createdAt: true
|
|
* },
|
|
* _count: {
|
|
* _all: true
|
|
* },
|
|
* })
|
|
*
|
|
**/
|
|
groupBy<
|
|
T extends MeterReadingGroupByArgs,
|
|
HasSelectOrTake extends Or<
|
|
Extends<'skip', Keys<T>>,
|
|
Extends<'take', Keys<T>>
|
|
>,
|
|
OrderByArg extends True extends HasSelectOrTake
|
|
? { orderBy: MeterReadingGroupByArgs['orderBy'] }
|
|
: { orderBy?: MeterReadingGroupByArgs['orderBy'] },
|
|
OrderFields extends ExcludeUnderscoreKeys<Keys<MaybeTupleToUnion<T['orderBy']>>>,
|
|
ByFields extends MaybeTupleToUnion<T['by']>,
|
|
ByValid extends Has<ByFields, OrderFields>,
|
|
HavingFields extends GetHavingFields<T['having']>,
|
|
HavingValid extends Has<ByFields, HavingFields>,
|
|
ByEmpty extends T['by'] extends never[] ? True : False,
|
|
InputErrors extends ByEmpty extends True
|
|
? `Error: "by" must not be empty.`
|
|
: HavingValid extends False
|
|
? {
|
|
[P in HavingFields]: P extends ByFields
|
|
? never
|
|
: P extends string
|
|
? `Error: Field "${P}" used in "having" needs to be provided in "by".`
|
|
: [
|
|
Error,
|
|
'Field ',
|
|
P,
|
|
` in "having" needs to be provided in "by"`,
|
|
]
|
|
}[HavingFields]
|
|
: 'take' extends Keys<T>
|
|
? 'orderBy' extends Keys<T>
|
|
? ByValid extends True
|
|
? {}
|
|
: {
|
|
[P in OrderFields]: P extends ByFields
|
|
? never
|
|
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
|
|
}[OrderFields]
|
|
: 'Error: If you provide "take", you also need to provide "orderBy"'
|
|
: 'skip' extends Keys<T>
|
|
? 'orderBy' extends Keys<T>
|
|
? ByValid extends True
|
|
? {}
|
|
: {
|
|
[P in OrderFields]: P extends ByFields
|
|
? never
|
|
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
|
|
}[OrderFields]
|
|
: 'Error: If you provide "skip", you also need to provide "orderBy"'
|
|
: ByValid extends True
|
|
? {}
|
|
: {
|
|
[P in OrderFields]: P extends ByFields
|
|
? never
|
|
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
|
|
}[OrderFields]
|
|
>(args: SubsetIntersection<T, MeterReadingGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetMeterReadingGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
|
|
/**
|
|
* Fields of the MeterReading model
|
|
*/
|
|
readonly fields: MeterReadingFieldRefs;
|
|
}
|
|
|
|
/**
|
|
* The delegate class that acts as a "Promise-like" for MeterReading.
|
|
* Why is this prefixed with `Prisma__`?
|
|
* Because we want to prevent naming conflicts as mentioned in
|
|
* https://github.com/prisma/prisma-client-js/issues/707
|
|
*/
|
|
export interface Prisma__MeterReadingClient<T, Null = never, ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> extends Prisma.PrismaPromise<T> {
|
|
readonly [Symbol.toStringTag]: "PrismaPromise"
|
|
meter<T extends MeterDefaultArgs<ExtArgs> = {}>(args?: Subset<T, MeterDefaultArgs<ExtArgs>>): Prisma__MeterClient<$Result.GetResult<Prisma.$MeterPayload<ExtArgs>, T, "findUniqueOrThrow"> | Null, Null, ExtArgs>
|
|
/**
|
|
* Attaches callbacks for the resolution and/or rejection of the Promise.
|
|
* @param onfulfilled The callback to execute when the Promise is resolved.
|
|
* @param onrejected The callback to execute when the Promise is rejected.
|
|
* @returns A Promise for the completion of which ever callback is executed.
|
|
*/
|
|
then<TResult1 = T, TResult2 = never>(onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined | null): $Utils.JsPromise<TResult1 | TResult2>
|
|
/**
|
|
* Attaches a callback for only the rejection of the Promise.
|
|
* @param onrejected The callback to execute when the Promise is rejected.
|
|
* @returns A Promise for the completion of the callback.
|
|
*/
|
|
catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): $Utils.JsPromise<T | TResult>
|
|
/**
|
|
* Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
|
|
* resolved value cannot be modified from the callback.
|
|
* @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
|
|
* @returns A Promise for the completion of the callback.
|
|
*/
|
|
finally(onfinally?: (() => void) | undefined | null): $Utils.JsPromise<T>
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
* Fields of the MeterReading model
|
|
*/
|
|
interface MeterReadingFieldRefs {
|
|
readonly id: FieldRef<"MeterReading", 'Int'>
|
|
readonly meterId: FieldRef<"MeterReading", 'Int'>
|
|
readonly readingDate: FieldRef<"MeterReading", 'DateTime'>
|
|
readonly value: FieldRef<"MeterReading", 'Float'>
|
|
readonly unit: FieldRef<"MeterReading", 'String'>
|
|
readonly notes: FieldRef<"MeterReading", 'String'>
|
|
readonly createdAt: FieldRef<"MeterReading", 'DateTime'>
|
|
}
|
|
|
|
|
|
// Custom InputTypes
|
|
/**
|
|
* MeterReading findUnique
|
|
*/
|
|
export type MeterReadingFindUniqueArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the MeterReading
|
|
*/
|
|
select?: MeterReadingSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: MeterReadingInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which MeterReading to fetch.
|
|
*/
|
|
where: MeterReadingWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* MeterReading findUniqueOrThrow
|
|
*/
|
|
export type MeterReadingFindUniqueOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the MeterReading
|
|
*/
|
|
select?: MeterReadingSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: MeterReadingInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which MeterReading to fetch.
|
|
*/
|
|
where: MeterReadingWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* MeterReading findFirst
|
|
*/
|
|
export type MeterReadingFindFirstArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the MeterReading
|
|
*/
|
|
select?: MeterReadingSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: MeterReadingInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which MeterReading to fetch.
|
|
*/
|
|
where?: MeterReadingWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of MeterReadings to fetch.
|
|
*/
|
|
orderBy?: MeterReadingOrderByWithRelationInput | MeterReadingOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for searching for MeterReadings.
|
|
*/
|
|
cursor?: MeterReadingWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` MeterReadings from the position of the cursor.
|
|
*/
|
|
take?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Skip the first `n` MeterReadings.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
*
|
|
* Filter by unique combinations of MeterReadings.
|
|
*/
|
|
distinct?: MeterReadingScalarFieldEnum | MeterReadingScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* MeterReading findFirstOrThrow
|
|
*/
|
|
export type MeterReadingFindFirstOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the MeterReading
|
|
*/
|
|
select?: MeterReadingSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: MeterReadingInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which MeterReading to fetch.
|
|
*/
|
|
where?: MeterReadingWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of MeterReadings to fetch.
|
|
*/
|
|
orderBy?: MeterReadingOrderByWithRelationInput | MeterReadingOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for searching for MeterReadings.
|
|
*/
|
|
cursor?: MeterReadingWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` MeterReadings from the position of the cursor.
|
|
*/
|
|
take?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Skip the first `n` MeterReadings.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
*
|
|
* Filter by unique combinations of MeterReadings.
|
|
*/
|
|
distinct?: MeterReadingScalarFieldEnum | MeterReadingScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* MeterReading findMany
|
|
*/
|
|
export type MeterReadingFindManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the MeterReading
|
|
*/
|
|
select?: MeterReadingSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: MeterReadingInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which MeterReadings to fetch.
|
|
*/
|
|
where?: MeterReadingWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of MeterReadings to fetch.
|
|
*/
|
|
orderBy?: MeterReadingOrderByWithRelationInput | MeterReadingOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for listing MeterReadings.
|
|
*/
|
|
cursor?: MeterReadingWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` MeterReadings from the position of the cursor.
|
|
*/
|
|
take?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Skip the first `n` MeterReadings.
|
|
*/
|
|
skip?: number
|
|
distinct?: MeterReadingScalarFieldEnum | MeterReadingScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* MeterReading create
|
|
*/
|
|
export type MeterReadingCreateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the MeterReading
|
|
*/
|
|
select?: MeterReadingSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: MeterReadingInclude<ExtArgs> | null
|
|
/**
|
|
* The data needed to create a MeterReading.
|
|
*/
|
|
data: XOR<MeterReadingCreateInput, MeterReadingUncheckedCreateInput>
|
|
}
|
|
|
|
/**
|
|
* MeterReading createMany
|
|
*/
|
|
export type MeterReadingCreateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* The data used to create many MeterReadings.
|
|
*/
|
|
data: MeterReadingCreateManyInput | MeterReadingCreateManyInput[]
|
|
skipDuplicates?: boolean
|
|
}
|
|
|
|
/**
|
|
* MeterReading update
|
|
*/
|
|
export type MeterReadingUpdateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the MeterReading
|
|
*/
|
|
select?: MeterReadingSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: MeterReadingInclude<ExtArgs> | null
|
|
/**
|
|
* The data needed to update a MeterReading.
|
|
*/
|
|
data: XOR<MeterReadingUpdateInput, MeterReadingUncheckedUpdateInput>
|
|
/**
|
|
* Choose, which MeterReading to update.
|
|
*/
|
|
where: MeterReadingWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* MeterReading updateMany
|
|
*/
|
|
export type MeterReadingUpdateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* The data used to update MeterReadings.
|
|
*/
|
|
data: XOR<MeterReadingUpdateManyMutationInput, MeterReadingUncheckedUpdateManyInput>
|
|
/**
|
|
* Filter which MeterReadings to update
|
|
*/
|
|
where?: MeterReadingWhereInput
|
|
}
|
|
|
|
/**
|
|
* MeterReading upsert
|
|
*/
|
|
export type MeterReadingUpsertArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the MeterReading
|
|
*/
|
|
select?: MeterReadingSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: MeterReadingInclude<ExtArgs> | null
|
|
/**
|
|
* The filter to search for the MeterReading to update in case it exists.
|
|
*/
|
|
where: MeterReadingWhereUniqueInput
|
|
/**
|
|
* In case the MeterReading found by the `where` argument doesn't exist, create a new MeterReading with this data.
|
|
*/
|
|
create: XOR<MeterReadingCreateInput, MeterReadingUncheckedCreateInput>
|
|
/**
|
|
* In case the MeterReading was found with the provided `where` argument, update it with this data.
|
|
*/
|
|
update: XOR<MeterReadingUpdateInput, MeterReadingUncheckedUpdateInput>
|
|
}
|
|
|
|
/**
|
|
* MeterReading delete
|
|
*/
|
|
export type MeterReadingDeleteArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the MeterReading
|
|
*/
|
|
select?: MeterReadingSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: MeterReadingInclude<ExtArgs> | null
|
|
/**
|
|
* Filter which MeterReading to delete.
|
|
*/
|
|
where: MeterReadingWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* MeterReading deleteMany
|
|
*/
|
|
export type MeterReadingDeleteManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Filter which MeterReadings to delete
|
|
*/
|
|
where?: MeterReadingWhereInput
|
|
}
|
|
|
|
/**
|
|
* MeterReading without action
|
|
*/
|
|
export type MeterReadingDefaultArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the MeterReading
|
|
*/
|
|
select?: MeterReadingSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: MeterReadingInclude<ExtArgs> | null
|
|
}
|
|
|
|
|
|
/**
|
|
* Model SalesPlatform
|
|
*/
|
|
|
|
export type AggregateSalesPlatform = {
|
|
_count: SalesPlatformCountAggregateOutputType | null
|
|
_avg: SalesPlatformAvgAggregateOutputType | null
|
|
_sum: SalesPlatformSumAggregateOutputType | null
|
|
_min: SalesPlatformMinAggregateOutputType | null
|
|
_max: SalesPlatformMaxAggregateOutputType | null
|
|
}
|
|
|
|
export type SalesPlatformAvgAggregateOutputType = {
|
|
id: number | null
|
|
}
|
|
|
|
export type SalesPlatformSumAggregateOutputType = {
|
|
id: number | null
|
|
}
|
|
|
|
export type SalesPlatformMinAggregateOutputType = {
|
|
id: number | null
|
|
name: string | null
|
|
contactInfo: string | null
|
|
isActive: boolean | null
|
|
createdAt: Date | null
|
|
updatedAt: Date | null
|
|
}
|
|
|
|
export type SalesPlatformMaxAggregateOutputType = {
|
|
id: number | null
|
|
name: string | null
|
|
contactInfo: string | null
|
|
isActive: boolean | null
|
|
createdAt: Date | null
|
|
updatedAt: Date | null
|
|
}
|
|
|
|
export type SalesPlatformCountAggregateOutputType = {
|
|
id: number
|
|
name: number
|
|
contactInfo: number
|
|
isActive: number
|
|
createdAt: number
|
|
updatedAt: number
|
|
_all: number
|
|
}
|
|
|
|
|
|
export type SalesPlatformAvgAggregateInputType = {
|
|
id?: true
|
|
}
|
|
|
|
export type SalesPlatformSumAggregateInputType = {
|
|
id?: true
|
|
}
|
|
|
|
export type SalesPlatformMinAggregateInputType = {
|
|
id?: true
|
|
name?: true
|
|
contactInfo?: true
|
|
isActive?: true
|
|
createdAt?: true
|
|
updatedAt?: true
|
|
}
|
|
|
|
export type SalesPlatformMaxAggregateInputType = {
|
|
id?: true
|
|
name?: true
|
|
contactInfo?: true
|
|
isActive?: true
|
|
createdAt?: true
|
|
updatedAt?: true
|
|
}
|
|
|
|
export type SalesPlatformCountAggregateInputType = {
|
|
id?: true
|
|
name?: true
|
|
contactInfo?: true
|
|
isActive?: true
|
|
createdAt?: true
|
|
updatedAt?: true
|
|
_all?: true
|
|
}
|
|
|
|
export type SalesPlatformAggregateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Filter which SalesPlatform to aggregate.
|
|
*/
|
|
where?: SalesPlatformWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of SalesPlatforms to fetch.
|
|
*/
|
|
orderBy?: SalesPlatformOrderByWithRelationInput | SalesPlatformOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the start position
|
|
*/
|
|
cursor?: SalesPlatformWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` SalesPlatforms from the position of the cursor.
|
|
*/
|
|
take?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Skip the first `n` SalesPlatforms.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Count returned SalesPlatforms
|
|
**/
|
|
_count?: true | SalesPlatformCountAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to average
|
|
**/
|
|
_avg?: SalesPlatformAvgAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to sum
|
|
**/
|
|
_sum?: SalesPlatformSumAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to find the minimum value
|
|
**/
|
|
_min?: SalesPlatformMinAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to find the maximum value
|
|
**/
|
|
_max?: SalesPlatformMaxAggregateInputType
|
|
}
|
|
|
|
export type GetSalesPlatformAggregateType<T extends SalesPlatformAggregateArgs> = {
|
|
[P in keyof T & keyof AggregateSalesPlatform]: P extends '_count' | 'count'
|
|
? T[P] extends true
|
|
? number
|
|
: GetScalarType<T[P], AggregateSalesPlatform[P]>
|
|
: GetScalarType<T[P], AggregateSalesPlatform[P]>
|
|
}
|
|
|
|
|
|
|
|
|
|
export type SalesPlatformGroupByArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
where?: SalesPlatformWhereInput
|
|
orderBy?: SalesPlatformOrderByWithAggregationInput | SalesPlatformOrderByWithAggregationInput[]
|
|
by: SalesPlatformScalarFieldEnum[] | SalesPlatformScalarFieldEnum
|
|
having?: SalesPlatformScalarWhereWithAggregatesInput
|
|
take?: number
|
|
skip?: number
|
|
_count?: SalesPlatformCountAggregateInputType | true
|
|
_avg?: SalesPlatformAvgAggregateInputType
|
|
_sum?: SalesPlatformSumAggregateInputType
|
|
_min?: SalesPlatformMinAggregateInputType
|
|
_max?: SalesPlatformMaxAggregateInputType
|
|
}
|
|
|
|
export type SalesPlatformGroupByOutputType = {
|
|
id: number
|
|
name: string
|
|
contactInfo: string | null
|
|
isActive: boolean
|
|
createdAt: Date
|
|
updatedAt: Date
|
|
_count: SalesPlatformCountAggregateOutputType | null
|
|
_avg: SalesPlatformAvgAggregateOutputType | null
|
|
_sum: SalesPlatformSumAggregateOutputType | null
|
|
_min: SalesPlatformMinAggregateOutputType | null
|
|
_max: SalesPlatformMaxAggregateOutputType | null
|
|
}
|
|
|
|
type GetSalesPlatformGroupByPayload<T extends SalesPlatformGroupByArgs> = Prisma.PrismaPromise<
|
|
Array<
|
|
PickEnumerable<SalesPlatformGroupByOutputType, T['by']> &
|
|
{
|
|
[P in ((keyof T) & (keyof SalesPlatformGroupByOutputType))]: P extends '_count'
|
|
? T[P] extends boolean
|
|
? number
|
|
: GetScalarType<T[P], SalesPlatformGroupByOutputType[P]>
|
|
: GetScalarType<T[P], SalesPlatformGroupByOutputType[P]>
|
|
}
|
|
>
|
|
>
|
|
|
|
|
|
export type SalesPlatformSelect<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
|
|
id?: boolean
|
|
name?: boolean
|
|
contactInfo?: boolean
|
|
isActive?: boolean
|
|
createdAt?: boolean
|
|
updatedAt?: boolean
|
|
contracts?: boolean | SalesPlatform$contractsArgs<ExtArgs>
|
|
_count?: boolean | SalesPlatformCountOutputTypeDefaultArgs<ExtArgs>
|
|
}, ExtArgs["result"]["salesPlatform"]>
|
|
|
|
|
|
export type SalesPlatformSelectScalar = {
|
|
id?: boolean
|
|
name?: boolean
|
|
contactInfo?: boolean
|
|
isActive?: boolean
|
|
createdAt?: boolean
|
|
updatedAt?: boolean
|
|
}
|
|
|
|
export type SalesPlatformInclude<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
contracts?: boolean | SalesPlatform$contractsArgs<ExtArgs>
|
|
_count?: boolean | SalesPlatformCountOutputTypeDefaultArgs<ExtArgs>
|
|
}
|
|
|
|
export type $SalesPlatformPayload<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
name: "SalesPlatform"
|
|
objects: {
|
|
contracts: Prisma.$ContractPayload<ExtArgs>[]
|
|
}
|
|
scalars: $Extensions.GetPayloadResult<{
|
|
id: number
|
|
name: string
|
|
contactInfo: string | null
|
|
isActive: boolean
|
|
createdAt: Date
|
|
updatedAt: Date
|
|
}, ExtArgs["result"]["salesPlatform"]>
|
|
composites: {}
|
|
}
|
|
|
|
type SalesPlatformGetPayload<S extends boolean | null | undefined | SalesPlatformDefaultArgs> = $Result.GetResult<Prisma.$SalesPlatformPayload, S>
|
|
|
|
type SalesPlatformCountArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> =
|
|
Omit<SalesPlatformFindManyArgs, 'select' | 'include' | 'distinct'> & {
|
|
select?: SalesPlatformCountAggregateInputType | true
|
|
}
|
|
|
|
export interface SalesPlatformDelegate<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> {
|
|
[K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['SalesPlatform'], meta: { name: 'SalesPlatform' } }
|
|
/**
|
|
* Find zero or one SalesPlatform that matches the filter.
|
|
* @param {SalesPlatformFindUniqueArgs} args - Arguments to find a SalesPlatform
|
|
* @example
|
|
* // Get one SalesPlatform
|
|
* const salesPlatform = await prisma.salesPlatform.findUnique({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findUnique<T extends SalesPlatformFindUniqueArgs>(args: SelectSubset<T, SalesPlatformFindUniqueArgs<ExtArgs>>): Prisma__SalesPlatformClient<$Result.GetResult<Prisma.$SalesPlatformPayload<ExtArgs>, T, "findUnique"> | null, null, ExtArgs>
|
|
|
|
/**
|
|
* Find one SalesPlatform that matches the filter or throw an error with `error.code='P2025'`
|
|
* if no matches were found.
|
|
* @param {SalesPlatformFindUniqueOrThrowArgs} args - Arguments to find a SalesPlatform
|
|
* @example
|
|
* // Get one SalesPlatform
|
|
* const salesPlatform = await prisma.salesPlatform.findUniqueOrThrow({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findUniqueOrThrow<T extends SalesPlatformFindUniqueOrThrowArgs>(args: SelectSubset<T, SalesPlatformFindUniqueOrThrowArgs<ExtArgs>>): Prisma__SalesPlatformClient<$Result.GetResult<Prisma.$SalesPlatformPayload<ExtArgs>, T, "findUniqueOrThrow">, never, ExtArgs>
|
|
|
|
/**
|
|
* Find the first SalesPlatform that matches the filter.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {SalesPlatformFindFirstArgs} args - Arguments to find a SalesPlatform
|
|
* @example
|
|
* // Get one SalesPlatform
|
|
* const salesPlatform = await prisma.salesPlatform.findFirst({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findFirst<T extends SalesPlatformFindFirstArgs>(args?: SelectSubset<T, SalesPlatformFindFirstArgs<ExtArgs>>): Prisma__SalesPlatformClient<$Result.GetResult<Prisma.$SalesPlatformPayload<ExtArgs>, T, "findFirst"> | null, null, ExtArgs>
|
|
|
|
/**
|
|
* Find the first SalesPlatform that matches the filter or
|
|
* throw `PrismaKnownClientError` with `P2025` code if no matches were found.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {SalesPlatformFindFirstOrThrowArgs} args - Arguments to find a SalesPlatform
|
|
* @example
|
|
* // Get one SalesPlatform
|
|
* const salesPlatform = await prisma.salesPlatform.findFirstOrThrow({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findFirstOrThrow<T extends SalesPlatformFindFirstOrThrowArgs>(args?: SelectSubset<T, SalesPlatformFindFirstOrThrowArgs<ExtArgs>>): Prisma__SalesPlatformClient<$Result.GetResult<Prisma.$SalesPlatformPayload<ExtArgs>, T, "findFirstOrThrow">, never, ExtArgs>
|
|
|
|
/**
|
|
* Find zero or more SalesPlatforms that matches the filter.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {SalesPlatformFindManyArgs} args - Arguments to filter and select certain fields only.
|
|
* @example
|
|
* // Get all SalesPlatforms
|
|
* const salesPlatforms = await prisma.salesPlatform.findMany()
|
|
*
|
|
* // Get first 10 SalesPlatforms
|
|
* const salesPlatforms = await prisma.salesPlatform.findMany({ take: 10 })
|
|
*
|
|
* // Only select the `id`
|
|
* const salesPlatformWithIdOnly = await prisma.salesPlatform.findMany({ select: { id: true } })
|
|
*
|
|
*/
|
|
findMany<T extends SalesPlatformFindManyArgs>(args?: SelectSubset<T, SalesPlatformFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$SalesPlatformPayload<ExtArgs>, T, "findMany">>
|
|
|
|
/**
|
|
* Create a SalesPlatform.
|
|
* @param {SalesPlatformCreateArgs} args - Arguments to create a SalesPlatform.
|
|
* @example
|
|
* // Create one SalesPlatform
|
|
* const SalesPlatform = await prisma.salesPlatform.create({
|
|
* data: {
|
|
* // ... data to create a SalesPlatform
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
create<T extends SalesPlatformCreateArgs>(args: SelectSubset<T, SalesPlatformCreateArgs<ExtArgs>>): Prisma__SalesPlatformClient<$Result.GetResult<Prisma.$SalesPlatformPayload<ExtArgs>, T, "create">, never, ExtArgs>
|
|
|
|
/**
|
|
* Create many SalesPlatforms.
|
|
* @param {SalesPlatformCreateManyArgs} args - Arguments to create many SalesPlatforms.
|
|
* @example
|
|
* // Create many SalesPlatforms
|
|
* const salesPlatform = await prisma.salesPlatform.createMany({
|
|
* data: [
|
|
* // ... provide data here
|
|
* ]
|
|
* })
|
|
*
|
|
*/
|
|
createMany<T extends SalesPlatformCreateManyArgs>(args?: SelectSubset<T, SalesPlatformCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
|
|
|
|
/**
|
|
* Delete a SalesPlatform.
|
|
* @param {SalesPlatformDeleteArgs} args - Arguments to delete one SalesPlatform.
|
|
* @example
|
|
* // Delete one SalesPlatform
|
|
* const SalesPlatform = await prisma.salesPlatform.delete({
|
|
* where: {
|
|
* // ... filter to delete one SalesPlatform
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
delete<T extends SalesPlatformDeleteArgs>(args: SelectSubset<T, SalesPlatformDeleteArgs<ExtArgs>>): Prisma__SalesPlatformClient<$Result.GetResult<Prisma.$SalesPlatformPayload<ExtArgs>, T, "delete">, never, ExtArgs>
|
|
|
|
/**
|
|
* Update one SalesPlatform.
|
|
* @param {SalesPlatformUpdateArgs} args - Arguments to update one SalesPlatform.
|
|
* @example
|
|
* // Update one SalesPlatform
|
|
* const salesPlatform = await prisma.salesPlatform.update({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* },
|
|
* data: {
|
|
* // ... provide data here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
update<T extends SalesPlatformUpdateArgs>(args: SelectSubset<T, SalesPlatformUpdateArgs<ExtArgs>>): Prisma__SalesPlatformClient<$Result.GetResult<Prisma.$SalesPlatformPayload<ExtArgs>, T, "update">, never, ExtArgs>
|
|
|
|
/**
|
|
* Delete zero or more SalesPlatforms.
|
|
* @param {SalesPlatformDeleteManyArgs} args - Arguments to filter SalesPlatforms to delete.
|
|
* @example
|
|
* // Delete a few SalesPlatforms
|
|
* const { count } = await prisma.salesPlatform.deleteMany({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
deleteMany<T extends SalesPlatformDeleteManyArgs>(args?: SelectSubset<T, SalesPlatformDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
|
|
|
|
/**
|
|
* Update zero or more SalesPlatforms.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {SalesPlatformUpdateManyArgs} args - Arguments to update one or more rows.
|
|
* @example
|
|
* // Update many SalesPlatforms
|
|
* const salesPlatform = await prisma.salesPlatform.updateMany({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* },
|
|
* data: {
|
|
* // ... provide data here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
updateMany<T extends SalesPlatformUpdateManyArgs>(args: SelectSubset<T, SalesPlatformUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
|
|
|
|
/**
|
|
* Create or update one SalesPlatform.
|
|
* @param {SalesPlatformUpsertArgs} args - Arguments to update or create a SalesPlatform.
|
|
* @example
|
|
* // Update or create a SalesPlatform
|
|
* const salesPlatform = await prisma.salesPlatform.upsert({
|
|
* create: {
|
|
* // ... data to create a SalesPlatform
|
|
* },
|
|
* update: {
|
|
* // ... in case it already exists, update
|
|
* },
|
|
* where: {
|
|
* // ... the filter for the SalesPlatform we want to update
|
|
* }
|
|
* })
|
|
*/
|
|
upsert<T extends SalesPlatformUpsertArgs>(args: SelectSubset<T, SalesPlatformUpsertArgs<ExtArgs>>): Prisma__SalesPlatformClient<$Result.GetResult<Prisma.$SalesPlatformPayload<ExtArgs>, T, "upsert">, never, ExtArgs>
|
|
|
|
|
|
/**
|
|
* Count the number of SalesPlatforms.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {SalesPlatformCountArgs} args - Arguments to filter SalesPlatforms to count.
|
|
* @example
|
|
* // Count the number of SalesPlatforms
|
|
* const count = await prisma.salesPlatform.count({
|
|
* where: {
|
|
* // ... the filter for the SalesPlatforms we want to count
|
|
* }
|
|
* })
|
|
**/
|
|
count<T extends SalesPlatformCountArgs>(
|
|
args?: Subset<T, SalesPlatformCountArgs>,
|
|
): Prisma.PrismaPromise<
|
|
T extends $Utils.Record<'select', any>
|
|
? T['select'] extends true
|
|
? number
|
|
: GetScalarType<T['select'], SalesPlatformCountAggregateOutputType>
|
|
: number
|
|
>
|
|
|
|
/**
|
|
* Allows you to perform aggregations operations on a SalesPlatform.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {SalesPlatformAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
|
|
* @example
|
|
* // Ordered by age ascending
|
|
* // Where email contains prisma.io
|
|
* // Limited to the 10 users
|
|
* const aggregations = await prisma.user.aggregate({
|
|
* _avg: {
|
|
* age: true,
|
|
* },
|
|
* where: {
|
|
* email: {
|
|
* contains: "prisma.io",
|
|
* },
|
|
* },
|
|
* orderBy: {
|
|
* age: "asc",
|
|
* },
|
|
* take: 10,
|
|
* })
|
|
**/
|
|
aggregate<T extends SalesPlatformAggregateArgs>(args: Subset<T, SalesPlatformAggregateArgs>): Prisma.PrismaPromise<GetSalesPlatformAggregateType<T>>
|
|
|
|
/**
|
|
* Group by SalesPlatform.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {SalesPlatformGroupByArgs} args - Group by arguments.
|
|
* @example
|
|
* // Group by city, order by createdAt, get count
|
|
* const result = await prisma.user.groupBy({
|
|
* by: ['city', 'createdAt'],
|
|
* orderBy: {
|
|
* createdAt: true
|
|
* },
|
|
* _count: {
|
|
* _all: true
|
|
* },
|
|
* })
|
|
*
|
|
**/
|
|
groupBy<
|
|
T extends SalesPlatformGroupByArgs,
|
|
HasSelectOrTake extends Or<
|
|
Extends<'skip', Keys<T>>,
|
|
Extends<'take', Keys<T>>
|
|
>,
|
|
OrderByArg extends True extends HasSelectOrTake
|
|
? { orderBy: SalesPlatformGroupByArgs['orderBy'] }
|
|
: { orderBy?: SalesPlatformGroupByArgs['orderBy'] },
|
|
OrderFields extends ExcludeUnderscoreKeys<Keys<MaybeTupleToUnion<T['orderBy']>>>,
|
|
ByFields extends MaybeTupleToUnion<T['by']>,
|
|
ByValid extends Has<ByFields, OrderFields>,
|
|
HavingFields extends GetHavingFields<T['having']>,
|
|
HavingValid extends Has<ByFields, HavingFields>,
|
|
ByEmpty extends T['by'] extends never[] ? True : False,
|
|
InputErrors extends ByEmpty extends True
|
|
? `Error: "by" must not be empty.`
|
|
: HavingValid extends False
|
|
? {
|
|
[P in HavingFields]: P extends ByFields
|
|
? never
|
|
: P extends string
|
|
? `Error: Field "${P}" used in "having" needs to be provided in "by".`
|
|
: [
|
|
Error,
|
|
'Field ',
|
|
P,
|
|
` in "having" needs to be provided in "by"`,
|
|
]
|
|
}[HavingFields]
|
|
: 'take' extends Keys<T>
|
|
? 'orderBy' extends Keys<T>
|
|
? ByValid extends True
|
|
? {}
|
|
: {
|
|
[P in OrderFields]: P extends ByFields
|
|
? never
|
|
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
|
|
}[OrderFields]
|
|
: 'Error: If you provide "take", you also need to provide "orderBy"'
|
|
: 'skip' extends Keys<T>
|
|
? 'orderBy' extends Keys<T>
|
|
? ByValid extends True
|
|
? {}
|
|
: {
|
|
[P in OrderFields]: P extends ByFields
|
|
? never
|
|
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
|
|
}[OrderFields]
|
|
: 'Error: If you provide "skip", you also need to provide "orderBy"'
|
|
: ByValid extends True
|
|
? {}
|
|
: {
|
|
[P in OrderFields]: P extends ByFields
|
|
? never
|
|
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
|
|
}[OrderFields]
|
|
>(args: SubsetIntersection<T, SalesPlatformGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetSalesPlatformGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
|
|
/**
|
|
* Fields of the SalesPlatform model
|
|
*/
|
|
readonly fields: SalesPlatformFieldRefs;
|
|
}
|
|
|
|
/**
|
|
* The delegate class that acts as a "Promise-like" for SalesPlatform.
|
|
* Why is this prefixed with `Prisma__`?
|
|
* Because we want to prevent naming conflicts as mentioned in
|
|
* https://github.com/prisma/prisma-client-js/issues/707
|
|
*/
|
|
export interface Prisma__SalesPlatformClient<T, Null = never, ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> extends Prisma.PrismaPromise<T> {
|
|
readonly [Symbol.toStringTag]: "PrismaPromise"
|
|
contracts<T extends SalesPlatform$contractsArgs<ExtArgs> = {}>(args?: Subset<T, SalesPlatform$contractsArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$ContractPayload<ExtArgs>, T, "findMany"> | Null>
|
|
/**
|
|
* Attaches callbacks for the resolution and/or rejection of the Promise.
|
|
* @param onfulfilled The callback to execute when the Promise is resolved.
|
|
* @param onrejected The callback to execute when the Promise is rejected.
|
|
* @returns A Promise for the completion of which ever callback is executed.
|
|
*/
|
|
then<TResult1 = T, TResult2 = never>(onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined | null): $Utils.JsPromise<TResult1 | TResult2>
|
|
/**
|
|
* Attaches a callback for only the rejection of the Promise.
|
|
* @param onrejected The callback to execute when the Promise is rejected.
|
|
* @returns A Promise for the completion of the callback.
|
|
*/
|
|
catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): $Utils.JsPromise<T | TResult>
|
|
/**
|
|
* Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
|
|
* resolved value cannot be modified from the callback.
|
|
* @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
|
|
* @returns A Promise for the completion of the callback.
|
|
*/
|
|
finally(onfinally?: (() => void) | undefined | null): $Utils.JsPromise<T>
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
* Fields of the SalesPlatform model
|
|
*/
|
|
interface SalesPlatformFieldRefs {
|
|
readonly id: FieldRef<"SalesPlatform", 'Int'>
|
|
readonly name: FieldRef<"SalesPlatform", 'String'>
|
|
readonly contactInfo: FieldRef<"SalesPlatform", 'String'>
|
|
readonly isActive: FieldRef<"SalesPlatform", 'Boolean'>
|
|
readonly createdAt: FieldRef<"SalesPlatform", 'DateTime'>
|
|
readonly updatedAt: FieldRef<"SalesPlatform", 'DateTime'>
|
|
}
|
|
|
|
|
|
// Custom InputTypes
|
|
/**
|
|
* SalesPlatform findUnique
|
|
*/
|
|
export type SalesPlatformFindUniqueArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the SalesPlatform
|
|
*/
|
|
select?: SalesPlatformSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: SalesPlatformInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which SalesPlatform to fetch.
|
|
*/
|
|
where: SalesPlatformWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* SalesPlatform findUniqueOrThrow
|
|
*/
|
|
export type SalesPlatformFindUniqueOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the SalesPlatform
|
|
*/
|
|
select?: SalesPlatformSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: SalesPlatformInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which SalesPlatform to fetch.
|
|
*/
|
|
where: SalesPlatformWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* SalesPlatform findFirst
|
|
*/
|
|
export type SalesPlatformFindFirstArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the SalesPlatform
|
|
*/
|
|
select?: SalesPlatformSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: SalesPlatformInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which SalesPlatform to fetch.
|
|
*/
|
|
where?: SalesPlatformWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of SalesPlatforms to fetch.
|
|
*/
|
|
orderBy?: SalesPlatformOrderByWithRelationInput | SalesPlatformOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for searching for SalesPlatforms.
|
|
*/
|
|
cursor?: SalesPlatformWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` SalesPlatforms from the position of the cursor.
|
|
*/
|
|
take?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Skip the first `n` SalesPlatforms.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
*
|
|
* Filter by unique combinations of SalesPlatforms.
|
|
*/
|
|
distinct?: SalesPlatformScalarFieldEnum | SalesPlatformScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* SalesPlatform findFirstOrThrow
|
|
*/
|
|
export type SalesPlatformFindFirstOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the SalesPlatform
|
|
*/
|
|
select?: SalesPlatformSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: SalesPlatformInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which SalesPlatform to fetch.
|
|
*/
|
|
where?: SalesPlatformWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of SalesPlatforms to fetch.
|
|
*/
|
|
orderBy?: SalesPlatformOrderByWithRelationInput | SalesPlatformOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for searching for SalesPlatforms.
|
|
*/
|
|
cursor?: SalesPlatformWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` SalesPlatforms from the position of the cursor.
|
|
*/
|
|
take?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Skip the first `n` SalesPlatforms.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
*
|
|
* Filter by unique combinations of SalesPlatforms.
|
|
*/
|
|
distinct?: SalesPlatformScalarFieldEnum | SalesPlatformScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* SalesPlatform findMany
|
|
*/
|
|
export type SalesPlatformFindManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the SalesPlatform
|
|
*/
|
|
select?: SalesPlatformSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: SalesPlatformInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which SalesPlatforms to fetch.
|
|
*/
|
|
where?: SalesPlatformWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of SalesPlatforms to fetch.
|
|
*/
|
|
orderBy?: SalesPlatformOrderByWithRelationInput | SalesPlatformOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for listing SalesPlatforms.
|
|
*/
|
|
cursor?: SalesPlatformWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` SalesPlatforms from the position of the cursor.
|
|
*/
|
|
take?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Skip the first `n` SalesPlatforms.
|
|
*/
|
|
skip?: number
|
|
distinct?: SalesPlatformScalarFieldEnum | SalesPlatformScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* SalesPlatform create
|
|
*/
|
|
export type SalesPlatformCreateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the SalesPlatform
|
|
*/
|
|
select?: SalesPlatformSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: SalesPlatformInclude<ExtArgs> | null
|
|
/**
|
|
* The data needed to create a SalesPlatform.
|
|
*/
|
|
data: XOR<SalesPlatformCreateInput, SalesPlatformUncheckedCreateInput>
|
|
}
|
|
|
|
/**
|
|
* SalesPlatform createMany
|
|
*/
|
|
export type SalesPlatformCreateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* The data used to create many SalesPlatforms.
|
|
*/
|
|
data: SalesPlatformCreateManyInput | SalesPlatformCreateManyInput[]
|
|
skipDuplicates?: boolean
|
|
}
|
|
|
|
/**
|
|
* SalesPlatform update
|
|
*/
|
|
export type SalesPlatformUpdateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the SalesPlatform
|
|
*/
|
|
select?: SalesPlatformSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: SalesPlatformInclude<ExtArgs> | null
|
|
/**
|
|
* The data needed to update a SalesPlatform.
|
|
*/
|
|
data: XOR<SalesPlatformUpdateInput, SalesPlatformUncheckedUpdateInput>
|
|
/**
|
|
* Choose, which SalesPlatform to update.
|
|
*/
|
|
where: SalesPlatformWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* SalesPlatform updateMany
|
|
*/
|
|
export type SalesPlatformUpdateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* The data used to update SalesPlatforms.
|
|
*/
|
|
data: XOR<SalesPlatformUpdateManyMutationInput, SalesPlatformUncheckedUpdateManyInput>
|
|
/**
|
|
* Filter which SalesPlatforms to update
|
|
*/
|
|
where?: SalesPlatformWhereInput
|
|
}
|
|
|
|
/**
|
|
* SalesPlatform upsert
|
|
*/
|
|
export type SalesPlatformUpsertArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the SalesPlatform
|
|
*/
|
|
select?: SalesPlatformSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: SalesPlatformInclude<ExtArgs> | null
|
|
/**
|
|
* The filter to search for the SalesPlatform to update in case it exists.
|
|
*/
|
|
where: SalesPlatformWhereUniqueInput
|
|
/**
|
|
* In case the SalesPlatform found by the `where` argument doesn't exist, create a new SalesPlatform with this data.
|
|
*/
|
|
create: XOR<SalesPlatformCreateInput, SalesPlatformUncheckedCreateInput>
|
|
/**
|
|
* In case the SalesPlatform was found with the provided `where` argument, update it with this data.
|
|
*/
|
|
update: XOR<SalesPlatformUpdateInput, SalesPlatformUncheckedUpdateInput>
|
|
}
|
|
|
|
/**
|
|
* SalesPlatform delete
|
|
*/
|
|
export type SalesPlatformDeleteArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the SalesPlatform
|
|
*/
|
|
select?: SalesPlatformSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: SalesPlatformInclude<ExtArgs> | null
|
|
/**
|
|
* Filter which SalesPlatform to delete.
|
|
*/
|
|
where: SalesPlatformWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* SalesPlatform deleteMany
|
|
*/
|
|
export type SalesPlatformDeleteManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Filter which SalesPlatforms to delete
|
|
*/
|
|
where?: SalesPlatformWhereInput
|
|
}
|
|
|
|
/**
|
|
* SalesPlatform.contracts
|
|
*/
|
|
export type SalesPlatform$contractsArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the Contract
|
|
*/
|
|
select?: ContractSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: ContractInclude<ExtArgs> | null
|
|
where?: ContractWhereInput
|
|
orderBy?: ContractOrderByWithRelationInput | ContractOrderByWithRelationInput[]
|
|
cursor?: ContractWhereUniqueInput
|
|
take?: number
|
|
skip?: number
|
|
distinct?: ContractScalarFieldEnum | ContractScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* SalesPlatform without action
|
|
*/
|
|
export type SalesPlatformDefaultArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the SalesPlatform
|
|
*/
|
|
select?: SalesPlatformSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: SalesPlatformInclude<ExtArgs> | null
|
|
}
|
|
|
|
|
|
/**
|
|
* Model CancellationPeriod
|
|
*/
|
|
|
|
export type AggregateCancellationPeriod = {
|
|
_count: CancellationPeriodCountAggregateOutputType | null
|
|
_avg: CancellationPeriodAvgAggregateOutputType | null
|
|
_sum: CancellationPeriodSumAggregateOutputType | null
|
|
_min: CancellationPeriodMinAggregateOutputType | null
|
|
_max: CancellationPeriodMaxAggregateOutputType | null
|
|
}
|
|
|
|
export type CancellationPeriodAvgAggregateOutputType = {
|
|
id: number | null
|
|
}
|
|
|
|
export type CancellationPeriodSumAggregateOutputType = {
|
|
id: number | null
|
|
}
|
|
|
|
export type CancellationPeriodMinAggregateOutputType = {
|
|
id: number | null
|
|
code: string | null
|
|
description: string | null
|
|
isActive: boolean | null
|
|
createdAt: Date | null
|
|
updatedAt: Date | null
|
|
}
|
|
|
|
export type CancellationPeriodMaxAggregateOutputType = {
|
|
id: number | null
|
|
code: string | null
|
|
description: string | null
|
|
isActive: boolean | null
|
|
createdAt: Date | null
|
|
updatedAt: Date | null
|
|
}
|
|
|
|
export type CancellationPeriodCountAggregateOutputType = {
|
|
id: number
|
|
code: number
|
|
description: number
|
|
isActive: number
|
|
createdAt: number
|
|
updatedAt: number
|
|
_all: number
|
|
}
|
|
|
|
|
|
export type CancellationPeriodAvgAggregateInputType = {
|
|
id?: true
|
|
}
|
|
|
|
export type CancellationPeriodSumAggregateInputType = {
|
|
id?: true
|
|
}
|
|
|
|
export type CancellationPeriodMinAggregateInputType = {
|
|
id?: true
|
|
code?: true
|
|
description?: true
|
|
isActive?: true
|
|
createdAt?: true
|
|
updatedAt?: true
|
|
}
|
|
|
|
export type CancellationPeriodMaxAggregateInputType = {
|
|
id?: true
|
|
code?: true
|
|
description?: true
|
|
isActive?: true
|
|
createdAt?: true
|
|
updatedAt?: true
|
|
}
|
|
|
|
export type CancellationPeriodCountAggregateInputType = {
|
|
id?: true
|
|
code?: true
|
|
description?: true
|
|
isActive?: true
|
|
createdAt?: true
|
|
updatedAt?: true
|
|
_all?: true
|
|
}
|
|
|
|
export type CancellationPeriodAggregateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Filter which CancellationPeriod to aggregate.
|
|
*/
|
|
where?: CancellationPeriodWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of CancellationPeriods to fetch.
|
|
*/
|
|
orderBy?: CancellationPeriodOrderByWithRelationInput | CancellationPeriodOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the start position
|
|
*/
|
|
cursor?: CancellationPeriodWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` CancellationPeriods from the position of the cursor.
|
|
*/
|
|
take?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Skip the first `n` CancellationPeriods.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Count returned CancellationPeriods
|
|
**/
|
|
_count?: true | CancellationPeriodCountAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to average
|
|
**/
|
|
_avg?: CancellationPeriodAvgAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to sum
|
|
**/
|
|
_sum?: CancellationPeriodSumAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to find the minimum value
|
|
**/
|
|
_min?: CancellationPeriodMinAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to find the maximum value
|
|
**/
|
|
_max?: CancellationPeriodMaxAggregateInputType
|
|
}
|
|
|
|
export type GetCancellationPeriodAggregateType<T extends CancellationPeriodAggregateArgs> = {
|
|
[P in keyof T & keyof AggregateCancellationPeriod]: P extends '_count' | 'count'
|
|
? T[P] extends true
|
|
? number
|
|
: GetScalarType<T[P], AggregateCancellationPeriod[P]>
|
|
: GetScalarType<T[P], AggregateCancellationPeriod[P]>
|
|
}
|
|
|
|
|
|
|
|
|
|
export type CancellationPeriodGroupByArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
where?: CancellationPeriodWhereInput
|
|
orderBy?: CancellationPeriodOrderByWithAggregationInput | CancellationPeriodOrderByWithAggregationInput[]
|
|
by: CancellationPeriodScalarFieldEnum[] | CancellationPeriodScalarFieldEnum
|
|
having?: CancellationPeriodScalarWhereWithAggregatesInput
|
|
take?: number
|
|
skip?: number
|
|
_count?: CancellationPeriodCountAggregateInputType | true
|
|
_avg?: CancellationPeriodAvgAggregateInputType
|
|
_sum?: CancellationPeriodSumAggregateInputType
|
|
_min?: CancellationPeriodMinAggregateInputType
|
|
_max?: CancellationPeriodMaxAggregateInputType
|
|
}
|
|
|
|
export type CancellationPeriodGroupByOutputType = {
|
|
id: number
|
|
code: string
|
|
description: string
|
|
isActive: boolean
|
|
createdAt: Date
|
|
updatedAt: Date
|
|
_count: CancellationPeriodCountAggregateOutputType | null
|
|
_avg: CancellationPeriodAvgAggregateOutputType | null
|
|
_sum: CancellationPeriodSumAggregateOutputType | null
|
|
_min: CancellationPeriodMinAggregateOutputType | null
|
|
_max: CancellationPeriodMaxAggregateOutputType | null
|
|
}
|
|
|
|
type GetCancellationPeriodGroupByPayload<T extends CancellationPeriodGroupByArgs> = Prisma.PrismaPromise<
|
|
Array<
|
|
PickEnumerable<CancellationPeriodGroupByOutputType, T['by']> &
|
|
{
|
|
[P in ((keyof T) & (keyof CancellationPeriodGroupByOutputType))]: P extends '_count'
|
|
? T[P] extends boolean
|
|
? number
|
|
: GetScalarType<T[P], CancellationPeriodGroupByOutputType[P]>
|
|
: GetScalarType<T[P], CancellationPeriodGroupByOutputType[P]>
|
|
}
|
|
>
|
|
>
|
|
|
|
|
|
export type CancellationPeriodSelect<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
|
|
id?: boolean
|
|
code?: boolean
|
|
description?: boolean
|
|
isActive?: boolean
|
|
createdAt?: boolean
|
|
updatedAt?: boolean
|
|
contracts?: boolean | CancellationPeriod$contractsArgs<ExtArgs>
|
|
_count?: boolean | CancellationPeriodCountOutputTypeDefaultArgs<ExtArgs>
|
|
}, ExtArgs["result"]["cancellationPeriod"]>
|
|
|
|
|
|
export type CancellationPeriodSelectScalar = {
|
|
id?: boolean
|
|
code?: boolean
|
|
description?: boolean
|
|
isActive?: boolean
|
|
createdAt?: boolean
|
|
updatedAt?: boolean
|
|
}
|
|
|
|
export type CancellationPeriodInclude<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
contracts?: boolean | CancellationPeriod$contractsArgs<ExtArgs>
|
|
_count?: boolean | CancellationPeriodCountOutputTypeDefaultArgs<ExtArgs>
|
|
}
|
|
|
|
export type $CancellationPeriodPayload<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
name: "CancellationPeriod"
|
|
objects: {
|
|
contracts: Prisma.$ContractPayload<ExtArgs>[]
|
|
}
|
|
scalars: $Extensions.GetPayloadResult<{
|
|
id: number
|
|
code: string
|
|
description: string
|
|
isActive: boolean
|
|
createdAt: Date
|
|
updatedAt: Date
|
|
}, ExtArgs["result"]["cancellationPeriod"]>
|
|
composites: {}
|
|
}
|
|
|
|
type CancellationPeriodGetPayload<S extends boolean | null | undefined | CancellationPeriodDefaultArgs> = $Result.GetResult<Prisma.$CancellationPeriodPayload, S>
|
|
|
|
type CancellationPeriodCountArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> =
|
|
Omit<CancellationPeriodFindManyArgs, 'select' | 'include' | 'distinct'> & {
|
|
select?: CancellationPeriodCountAggregateInputType | true
|
|
}
|
|
|
|
export interface CancellationPeriodDelegate<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> {
|
|
[K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['CancellationPeriod'], meta: { name: 'CancellationPeriod' } }
|
|
/**
|
|
* Find zero or one CancellationPeriod that matches the filter.
|
|
* @param {CancellationPeriodFindUniqueArgs} args - Arguments to find a CancellationPeriod
|
|
* @example
|
|
* // Get one CancellationPeriod
|
|
* const cancellationPeriod = await prisma.cancellationPeriod.findUnique({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findUnique<T extends CancellationPeriodFindUniqueArgs>(args: SelectSubset<T, CancellationPeriodFindUniqueArgs<ExtArgs>>): Prisma__CancellationPeriodClient<$Result.GetResult<Prisma.$CancellationPeriodPayload<ExtArgs>, T, "findUnique"> | null, null, ExtArgs>
|
|
|
|
/**
|
|
* Find one CancellationPeriod that matches the filter or throw an error with `error.code='P2025'`
|
|
* if no matches were found.
|
|
* @param {CancellationPeriodFindUniqueOrThrowArgs} args - Arguments to find a CancellationPeriod
|
|
* @example
|
|
* // Get one CancellationPeriod
|
|
* const cancellationPeriod = await prisma.cancellationPeriod.findUniqueOrThrow({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findUniqueOrThrow<T extends CancellationPeriodFindUniqueOrThrowArgs>(args: SelectSubset<T, CancellationPeriodFindUniqueOrThrowArgs<ExtArgs>>): Prisma__CancellationPeriodClient<$Result.GetResult<Prisma.$CancellationPeriodPayload<ExtArgs>, T, "findUniqueOrThrow">, never, ExtArgs>
|
|
|
|
/**
|
|
* Find the first CancellationPeriod that matches the filter.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {CancellationPeriodFindFirstArgs} args - Arguments to find a CancellationPeriod
|
|
* @example
|
|
* // Get one CancellationPeriod
|
|
* const cancellationPeriod = await prisma.cancellationPeriod.findFirst({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findFirst<T extends CancellationPeriodFindFirstArgs>(args?: SelectSubset<T, CancellationPeriodFindFirstArgs<ExtArgs>>): Prisma__CancellationPeriodClient<$Result.GetResult<Prisma.$CancellationPeriodPayload<ExtArgs>, T, "findFirst"> | null, null, ExtArgs>
|
|
|
|
/**
|
|
* Find the first CancellationPeriod that matches the filter or
|
|
* throw `PrismaKnownClientError` with `P2025` code if no matches were found.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {CancellationPeriodFindFirstOrThrowArgs} args - Arguments to find a CancellationPeriod
|
|
* @example
|
|
* // Get one CancellationPeriod
|
|
* const cancellationPeriod = await prisma.cancellationPeriod.findFirstOrThrow({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findFirstOrThrow<T extends CancellationPeriodFindFirstOrThrowArgs>(args?: SelectSubset<T, CancellationPeriodFindFirstOrThrowArgs<ExtArgs>>): Prisma__CancellationPeriodClient<$Result.GetResult<Prisma.$CancellationPeriodPayload<ExtArgs>, T, "findFirstOrThrow">, never, ExtArgs>
|
|
|
|
/**
|
|
* Find zero or more CancellationPeriods that matches the filter.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {CancellationPeriodFindManyArgs} args - Arguments to filter and select certain fields only.
|
|
* @example
|
|
* // Get all CancellationPeriods
|
|
* const cancellationPeriods = await prisma.cancellationPeriod.findMany()
|
|
*
|
|
* // Get first 10 CancellationPeriods
|
|
* const cancellationPeriods = await prisma.cancellationPeriod.findMany({ take: 10 })
|
|
*
|
|
* // Only select the `id`
|
|
* const cancellationPeriodWithIdOnly = await prisma.cancellationPeriod.findMany({ select: { id: true } })
|
|
*
|
|
*/
|
|
findMany<T extends CancellationPeriodFindManyArgs>(args?: SelectSubset<T, CancellationPeriodFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$CancellationPeriodPayload<ExtArgs>, T, "findMany">>
|
|
|
|
/**
|
|
* Create a CancellationPeriod.
|
|
* @param {CancellationPeriodCreateArgs} args - Arguments to create a CancellationPeriod.
|
|
* @example
|
|
* // Create one CancellationPeriod
|
|
* const CancellationPeriod = await prisma.cancellationPeriod.create({
|
|
* data: {
|
|
* // ... data to create a CancellationPeriod
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
create<T extends CancellationPeriodCreateArgs>(args: SelectSubset<T, CancellationPeriodCreateArgs<ExtArgs>>): Prisma__CancellationPeriodClient<$Result.GetResult<Prisma.$CancellationPeriodPayload<ExtArgs>, T, "create">, never, ExtArgs>
|
|
|
|
/**
|
|
* Create many CancellationPeriods.
|
|
* @param {CancellationPeriodCreateManyArgs} args - Arguments to create many CancellationPeriods.
|
|
* @example
|
|
* // Create many CancellationPeriods
|
|
* const cancellationPeriod = await prisma.cancellationPeriod.createMany({
|
|
* data: [
|
|
* // ... provide data here
|
|
* ]
|
|
* })
|
|
*
|
|
*/
|
|
createMany<T extends CancellationPeriodCreateManyArgs>(args?: SelectSubset<T, CancellationPeriodCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
|
|
|
|
/**
|
|
* Delete a CancellationPeriod.
|
|
* @param {CancellationPeriodDeleteArgs} args - Arguments to delete one CancellationPeriod.
|
|
* @example
|
|
* // Delete one CancellationPeriod
|
|
* const CancellationPeriod = await prisma.cancellationPeriod.delete({
|
|
* where: {
|
|
* // ... filter to delete one CancellationPeriod
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
delete<T extends CancellationPeriodDeleteArgs>(args: SelectSubset<T, CancellationPeriodDeleteArgs<ExtArgs>>): Prisma__CancellationPeriodClient<$Result.GetResult<Prisma.$CancellationPeriodPayload<ExtArgs>, T, "delete">, never, ExtArgs>
|
|
|
|
/**
|
|
* Update one CancellationPeriod.
|
|
* @param {CancellationPeriodUpdateArgs} args - Arguments to update one CancellationPeriod.
|
|
* @example
|
|
* // Update one CancellationPeriod
|
|
* const cancellationPeriod = await prisma.cancellationPeriod.update({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* },
|
|
* data: {
|
|
* // ... provide data here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
update<T extends CancellationPeriodUpdateArgs>(args: SelectSubset<T, CancellationPeriodUpdateArgs<ExtArgs>>): Prisma__CancellationPeriodClient<$Result.GetResult<Prisma.$CancellationPeriodPayload<ExtArgs>, T, "update">, never, ExtArgs>
|
|
|
|
/**
|
|
* Delete zero or more CancellationPeriods.
|
|
* @param {CancellationPeriodDeleteManyArgs} args - Arguments to filter CancellationPeriods to delete.
|
|
* @example
|
|
* // Delete a few CancellationPeriods
|
|
* const { count } = await prisma.cancellationPeriod.deleteMany({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
deleteMany<T extends CancellationPeriodDeleteManyArgs>(args?: SelectSubset<T, CancellationPeriodDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
|
|
|
|
/**
|
|
* Update zero or more CancellationPeriods.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {CancellationPeriodUpdateManyArgs} args - Arguments to update one or more rows.
|
|
* @example
|
|
* // Update many CancellationPeriods
|
|
* const cancellationPeriod = await prisma.cancellationPeriod.updateMany({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* },
|
|
* data: {
|
|
* // ... provide data here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
updateMany<T extends CancellationPeriodUpdateManyArgs>(args: SelectSubset<T, CancellationPeriodUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
|
|
|
|
/**
|
|
* Create or update one CancellationPeriod.
|
|
* @param {CancellationPeriodUpsertArgs} args - Arguments to update or create a CancellationPeriod.
|
|
* @example
|
|
* // Update or create a CancellationPeriod
|
|
* const cancellationPeriod = await prisma.cancellationPeriod.upsert({
|
|
* create: {
|
|
* // ... data to create a CancellationPeriod
|
|
* },
|
|
* update: {
|
|
* // ... in case it already exists, update
|
|
* },
|
|
* where: {
|
|
* // ... the filter for the CancellationPeriod we want to update
|
|
* }
|
|
* })
|
|
*/
|
|
upsert<T extends CancellationPeriodUpsertArgs>(args: SelectSubset<T, CancellationPeriodUpsertArgs<ExtArgs>>): Prisma__CancellationPeriodClient<$Result.GetResult<Prisma.$CancellationPeriodPayload<ExtArgs>, T, "upsert">, never, ExtArgs>
|
|
|
|
|
|
/**
|
|
* Count the number of CancellationPeriods.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {CancellationPeriodCountArgs} args - Arguments to filter CancellationPeriods to count.
|
|
* @example
|
|
* // Count the number of CancellationPeriods
|
|
* const count = await prisma.cancellationPeriod.count({
|
|
* where: {
|
|
* // ... the filter for the CancellationPeriods we want to count
|
|
* }
|
|
* })
|
|
**/
|
|
count<T extends CancellationPeriodCountArgs>(
|
|
args?: Subset<T, CancellationPeriodCountArgs>,
|
|
): Prisma.PrismaPromise<
|
|
T extends $Utils.Record<'select', any>
|
|
? T['select'] extends true
|
|
? number
|
|
: GetScalarType<T['select'], CancellationPeriodCountAggregateOutputType>
|
|
: number
|
|
>
|
|
|
|
/**
|
|
* Allows you to perform aggregations operations on a CancellationPeriod.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {CancellationPeriodAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
|
|
* @example
|
|
* // Ordered by age ascending
|
|
* // Where email contains prisma.io
|
|
* // Limited to the 10 users
|
|
* const aggregations = await prisma.user.aggregate({
|
|
* _avg: {
|
|
* age: true,
|
|
* },
|
|
* where: {
|
|
* email: {
|
|
* contains: "prisma.io",
|
|
* },
|
|
* },
|
|
* orderBy: {
|
|
* age: "asc",
|
|
* },
|
|
* take: 10,
|
|
* })
|
|
**/
|
|
aggregate<T extends CancellationPeriodAggregateArgs>(args: Subset<T, CancellationPeriodAggregateArgs>): Prisma.PrismaPromise<GetCancellationPeriodAggregateType<T>>
|
|
|
|
/**
|
|
* Group by CancellationPeriod.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {CancellationPeriodGroupByArgs} args - Group by arguments.
|
|
* @example
|
|
* // Group by city, order by createdAt, get count
|
|
* const result = await prisma.user.groupBy({
|
|
* by: ['city', 'createdAt'],
|
|
* orderBy: {
|
|
* createdAt: true
|
|
* },
|
|
* _count: {
|
|
* _all: true
|
|
* },
|
|
* })
|
|
*
|
|
**/
|
|
groupBy<
|
|
T extends CancellationPeriodGroupByArgs,
|
|
HasSelectOrTake extends Or<
|
|
Extends<'skip', Keys<T>>,
|
|
Extends<'take', Keys<T>>
|
|
>,
|
|
OrderByArg extends True extends HasSelectOrTake
|
|
? { orderBy: CancellationPeriodGroupByArgs['orderBy'] }
|
|
: { orderBy?: CancellationPeriodGroupByArgs['orderBy'] },
|
|
OrderFields extends ExcludeUnderscoreKeys<Keys<MaybeTupleToUnion<T['orderBy']>>>,
|
|
ByFields extends MaybeTupleToUnion<T['by']>,
|
|
ByValid extends Has<ByFields, OrderFields>,
|
|
HavingFields extends GetHavingFields<T['having']>,
|
|
HavingValid extends Has<ByFields, HavingFields>,
|
|
ByEmpty extends T['by'] extends never[] ? True : False,
|
|
InputErrors extends ByEmpty extends True
|
|
? `Error: "by" must not be empty.`
|
|
: HavingValid extends False
|
|
? {
|
|
[P in HavingFields]: P extends ByFields
|
|
? never
|
|
: P extends string
|
|
? `Error: Field "${P}" used in "having" needs to be provided in "by".`
|
|
: [
|
|
Error,
|
|
'Field ',
|
|
P,
|
|
` in "having" needs to be provided in "by"`,
|
|
]
|
|
}[HavingFields]
|
|
: 'take' extends Keys<T>
|
|
? 'orderBy' extends Keys<T>
|
|
? ByValid extends True
|
|
? {}
|
|
: {
|
|
[P in OrderFields]: P extends ByFields
|
|
? never
|
|
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
|
|
}[OrderFields]
|
|
: 'Error: If you provide "take", you also need to provide "orderBy"'
|
|
: 'skip' extends Keys<T>
|
|
? 'orderBy' extends Keys<T>
|
|
? ByValid extends True
|
|
? {}
|
|
: {
|
|
[P in OrderFields]: P extends ByFields
|
|
? never
|
|
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
|
|
}[OrderFields]
|
|
: 'Error: If you provide "skip", you also need to provide "orderBy"'
|
|
: ByValid extends True
|
|
? {}
|
|
: {
|
|
[P in OrderFields]: P extends ByFields
|
|
? never
|
|
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
|
|
}[OrderFields]
|
|
>(args: SubsetIntersection<T, CancellationPeriodGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetCancellationPeriodGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
|
|
/**
|
|
* Fields of the CancellationPeriod model
|
|
*/
|
|
readonly fields: CancellationPeriodFieldRefs;
|
|
}
|
|
|
|
/**
|
|
* The delegate class that acts as a "Promise-like" for CancellationPeriod.
|
|
* Why is this prefixed with `Prisma__`?
|
|
* Because we want to prevent naming conflicts as mentioned in
|
|
* https://github.com/prisma/prisma-client-js/issues/707
|
|
*/
|
|
export interface Prisma__CancellationPeriodClient<T, Null = never, ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> extends Prisma.PrismaPromise<T> {
|
|
readonly [Symbol.toStringTag]: "PrismaPromise"
|
|
contracts<T extends CancellationPeriod$contractsArgs<ExtArgs> = {}>(args?: Subset<T, CancellationPeriod$contractsArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$ContractPayload<ExtArgs>, T, "findMany"> | Null>
|
|
/**
|
|
* Attaches callbacks for the resolution and/or rejection of the Promise.
|
|
* @param onfulfilled The callback to execute when the Promise is resolved.
|
|
* @param onrejected The callback to execute when the Promise is rejected.
|
|
* @returns A Promise for the completion of which ever callback is executed.
|
|
*/
|
|
then<TResult1 = T, TResult2 = never>(onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined | null): $Utils.JsPromise<TResult1 | TResult2>
|
|
/**
|
|
* Attaches a callback for only the rejection of the Promise.
|
|
* @param onrejected The callback to execute when the Promise is rejected.
|
|
* @returns A Promise for the completion of the callback.
|
|
*/
|
|
catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): $Utils.JsPromise<T | TResult>
|
|
/**
|
|
* Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
|
|
* resolved value cannot be modified from the callback.
|
|
* @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
|
|
* @returns A Promise for the completion of the callback.
|
|
*/
|
|
finally(onfinally?: (() => void) | undefined | null): $Utils.JsPromise<T>
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
* Fields of the CancellationPeriod model
|
|
*/
|
|
interface CancellationPeriodFieldRefs {
|
|
readonly id: FieldRef<"CancellationPeriod", 'Int'>
|
|
readonly code: FieldRef<"CancellationPeriod", 'String'>
|
|
readonly description: FieldRef<"CancellationPeriod", 'String'>
|
|
readonly isActive: FieldRef<"CancellationPeriod", 'Boolean'>
|
|
readonly createdAt: FieldRef<"CancellationPeriod", 'DateTime'>
|
|
readonly updatedAt: FieldRef<"CancellationPeriod", 'DateTime'>
|
|
}
|
|
|
|
|
|
// Custom InputTypes
|
|
/**
|
|
* CancellationPeriod findUnique
|
|
*/
|
|
export type CancellationPeriodFindUniqueArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the CancellationPeriod
|
|
*/
|
|
select?: CancellationPeriodSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: CancellationPeriodInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which CancellationPeriod to fetch.
|
|
*/
|
|
where: CancellationPeriodWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* CancellationPeriod findUniqueOrThrow
|
|
*/
|
|
export type CancellationPeriodFindUniqueOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the CancellationPeriod
|
|
*/
|
|
select?: CancellationPeriodSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: CancellationPeriodInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which CancellationPeriod to fetch.
|
|
*/
|
|
where: CancellationPeriodWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* CancellationPeriod findFirst
|
|
*/
|
|
export type CancellationPeriodFindFirstArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the CancellationPeriod
|
|
*/
|
|
select?: CancellationPeriodSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: CancellationPeriodInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which CancellationPeriod to fetch.
|
|
*/
|
|
where?: CancellationPeriodWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of CancellationPeriods to fetch.
|
|
*/
|
|
orderBy?: CancellationPeriodOrderByWithRelationInput | CancellationPeriodOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for searching for CancellationPeriods.
|
|
*/
|
|
cursor?: CancellationPeriodWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` CancellationPeriods from the position of the cursor.
|
|
*/
|
|
take?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Skip the first `n` CancellationPeriods.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
*
|
|
* Filter by unique combinations of CancellationPeriods.
|
|
*/
|
|
distinct?: CancellationPeriodScalarFieldEnum | CancellationPeriodScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* CancellationPeriod findFirstOrThrow
|
|
*/
|
|
export type CancellationPeriodFindFirstOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the CancellationPeriod
|
|
*/
|
|
select?: CancellationPeriodSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: CancellationPeriodInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which CancellationPeriod to fetch.
|
|
*/
|
|
where?: CancellationPeriodWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of CancellationPeriods to fetch.
|
|
*/
|
|
orderBy?: CancellationPeriodOrderByWithRelationInput | CancellationPeriodOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for searching for CancellationPeriods.
|
|
*/
|
|
cursor?: CancellationPeriodWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` CancellationPeriods from the position of the cursor.
|
|
*/
|
|
take?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Skip the first `n` CancellationPeriods.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
*
|
|
* Filter by unique combinations of CancellationPeriods.
|
|
*/
|
|
distinct?: CancellationPeriodScalarFieldEnum | CancellationPeriodScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* CancellationPeriod findMany
|
|
*/
|
|
export type CancellationPeriodFindManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the CancellationPeriod
|
|
*/
|
|
select?: CancellationPeriodSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: CancellationPeriodInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which CancellationPeriods to fetch.
|
|
*/
|
|
where?: CancellationPeriodWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of CancellationPeriods to fetch.
|
|
*/
|
|
orderBy?: CancellationPeriodOrderByWithRelationInput | CancellationPeriodOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for listing CancellationPeriods.
|
|
*/
|
|
cursor?: CancellationPeriodWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` CancellationPeriods from the position of the cursor.
|
|
*/
|
|
take?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Skip the first `n` CancellationPeriods.
|
|
*/
|
|
skip?: number
|
|
distinct?: CancellationPeriodScalarFieldEnum | CancellationPeriodScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* CancellationPeriod create
|
|
*/
|
|
export type CancellationPeriodCreateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the CancellationPeriod
|
|
*/
|
|
select?: CancellationPeriodSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: CancellationPeriodInclude<ExtArgs> | null
|
|
/**
|
|
* The data needed to create a CancellationPeriod.
|
|
*/
|
|
data: XOR<CancellationPeriodCreateInput, CancellationPeriodUncheckedCreateInput>
|
|
}
|
|
|
|
/**
|
|
* CancellationPeriod createMany
|
|
*/
|
|
export type CancellationPeriodCreateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* The data used to create many CancellationPeriods.
|
|
*/
|
|
data: CancellationPeriodCreateManyInput | CancellationPeriodCreateManyInput[]
|
|
skipDuplicates?: boolean
|
|
}
|
|
|
|
/**
|
|
* CancellationPeriod update
|
|
*/
|
|
export type CancellationPeriodUpdateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the CancellationPeriod
|
|
*/
|
|
select?: CancellationPeriodSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: CancellationPeriodInclude<ExtArgs> | null
|
|
/**
|
|
* The data needed to update a CancellationPeriod.
|
|
*/
|
|
data: XOR<CancellationPeriodUpdateInput, CancellationPeriodUncheckedUpdateInput>
|
|
/**
|
|
* Choose, which CancellationPeriod to update.
|
|
*/
|
|
where: CancellationPeriodWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* CancellationPeriod updateMany
|
|
*/
|
|
export type CancellationPeriodUpdateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* The data used to update CancellationPeriods.
|
|
*/
|
|
data: XOR<CancellationPeriodUpdateManyMutationInput, CancellationPeriodUncheckedUpdateManyInput>
|
|
/**
|
|
* Filter which CancellationPeriods to update
|
|
*/
|
|
where?: CancellationPeriodWhereInput
|
|
}
|
|
|
|
/**
|
|
* CancellationPeriod upsert
|
|
*/
|
|
export type CancellationPeriodUpsertArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the CancellationPeriod
|
|
*/
|
|
select?: CancellationPeriodSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: CancellationPeriodInclude<ExtArgs> | null
|
|
/**
|
|
* The filter to search for the CancellationPeriod to update in case it exists.
|
|
*/
|
|
where: CancellationPeriodWhereUniqueInput
|
|
/**
|
|
* In case the CancellationPeriod found by the `where` argument doesn't exist, create a new CancellationPeriod with this data.
|
|
*/
|
|
create: XOR<CancellationPeriodCreateInput, CancellationPeriodUncheckedCreateInput>
|
|
/**
|
|
* In case the CancellationPeriod was found with the provided `where` argument, update it with this data.
|
|
*/
|
|
update: XOR<CancellationPeriodUpdateInput, CancellationPeriodUncheckedUpdateInput>
|
|
}
|
|
|
|
/**
|
|
* CancellationPeriod delete
|
|
*/
|
|
export type CancellationPeriodDeleteArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the CancellationPeriod
|
|
*/
|
|
select?: CancellationPeriodSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: CancellationPeriodInclude<ExtArgs> | null
|
|
/**
|
|
* Filter which CancellationPeriod to delete.
|
|
*/
|
|
where: CancellationPeriodWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* CancellationPeriod deleteMany
|
|
*/
|
|
export type CancellationPeriodDeleteManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Filter which CancellationPeriods to delete
|
|
*/
|
|
where?: CancellationPeriodWhereInput
|
|
}
|
|
|
|
/**
|
|
* CancellationPeriod.contracts
|
|
*/
|
|
export type CancellationPeriod$contractsArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the Contract
|
|
*/
|
|
select?: ContractSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: ContractInclude<ExtArgs> | null
|
|
where?: ContractWhereInput
|
|
orderBy?: ContractOrderByWithRelationInput | ContractOrderByWithRelationInput[]
|
|
cursor?: ContractWhereUniqueInput
|
|
take?: number
|
|
skip?: number
|
|
distinct?: ContractScalarFieldEnum | ContractScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* CancellationPeriod without action
|
|
*/
|
|
export type CancellationPeriodDefaultArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the CancellationPeriod
|
|
*/
|
|
select?: CancellationPeriodSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: CancellationPeriodInclude<ExtArgs> | null
|
|
}
|
|
|
|
|
|
/**
|
|
* Model ContractDuration
|
|
*/
|
|
|
|
export type AggregateContractDuration = {
|
|
_count: ContractDurationCountAggregateOutputType | null
|
|
_avg: ContractDurationAvgAggregateOutputType | null
|
|
_sum: ContractDurationSumAggregateOutputType | null
|
|
_min: ContractDurationMinAggregateOutputType | null
|
|
_max: ContractDurationMaxAggregateOutputType | null
|
|
}
|
|
|
|
export type ContractDurationAvgAggregateOutputType = {
|
|
id: number | null
|
|
}
|
|
|
|
export type ContractDurationSumAggregateOutputType = {
|
|
id: number | null
|
|
}
|
|
|
|
export type ContractDurationMinAggregateOutputType = {
|
|
id: number | null
|
|
code: string | null
|
|
description: string | null
|
|
isActive: boolean | null
|
|
createdAt: Date | null
|
|
updatedAt: Date | null
|
|
}
|
|
|
|
export type ContractDurationMaxAggregateOutputType = {
|
|
id: number | null
|
|
code: string | null
|
|
description: string | null
|
|
isActive: boolean | null
|
|
createdAt: Date | null
|
|
updatedAt: Date | null
|
|
}
|
|
|
|
export type ContractDurationCountAggregateOutputType = {
|
|
id: number
|
|
code: number
|
|
description: number
|
|
isActive: number
|
|
createdAt: number
|
|
updatedAt: number
|
|
_all: number
|
|
}
|
|
|
|
|
|
export type ContractDurationAvgAggregateInputType = {
|
|
id?: true
|
|
}
|
|
|
|
export type ContractDurationSumAggregateInputType = {
|
|
id?: true
|
|
}
|
|
|
|
export type ContractDurationMinAggregateInputType = {
|
|
id?: true
|
|
code?: true
|
|
description?: true
|
|
isActive?: true
|
|
createdAt?: true
|
|
updatedAt?: true
|
|
}
|
|
|
|
export type ContractDurationMaxAggregateInputType = {
|
|
id?: true
|
|
code?: true
|
|
description?: true
|
|
isActive?: true
|
|
createdAt?: true
|
|
updatedAt?: true
|
|
}
|
|
|
|
export type ContractDurationCountAggregateInputType = {
|
|
id?: true
|
|
code?: true
|
|
description?: true
|
|
isActive?: true
|
|
createdAt?: true
|
|
updatedAt?: true
|
|
_all?: true
|
|
}
|
|
|
|
export type ContractDurationAggregateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Filter which ContractDuration to aggregate.
|
|
*/
|
|
where?: ContractDurationWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of ContractDurations to fetch.
|
|
*/
|
|
orderBy?: ContractDurationOrderByWithRelationInput | ContractDurationOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the start position
|
|
*/
|
|
cursor?: ContractDurationWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` ContractDurations from the position of the cursor.
|
|
*/
|
|
take?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Skip the first `n` ContractDurations.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Count returned ContractDurations
|
|
**/
|
|
_count?: true | ContractDurationCountAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to average
|
|
**/
|
|
_avg?: ContractDurationAvgAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to sum
|
|
**/
|
|
_sum?: ContractDurationSumAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to find the minimum value
|
|
**/
|
|
_min?: ContractDurationMinAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to find the maximum value
|
|
**/
|
|
_max?: ContractDurationMaxAggregateInputType
|
|
}
|
|
|
|
export type GetContractDurationAggregateType<T extends ContractDurationAggregateArgs> = {
|
|
[P in keyof T & keyof AggregateContractDuration]: P extends '_count' | 'count'
|
|
? T[P] extends true
|
|
? number
|
|
: GetScalarType<T[P], AggregateContractDuration[P]>
|
|
: GetScalarType<T[P], AggregateContractDuration[P]>
|
|
}
|
|
|
|
|
|
|
|
|
|
export type ContractDurationGroupByArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
where?: ContractDurationWhereInput
|
|
orderBy?: ContractDurationOrderByWithAggregationInput | ContractDurationOrderByWithAggregationInput[]
|
|
by: ContractDurationScalarFieldEnum[] | ContractDurationScalarFieldEnum
|
|
having?: ContractDurationScalarWhereWithAggregatesInput
|
|
take?: number
|
|
skip?: number
|
|
_count?: ContractDurationCountAggregateInputType | true
|
|
_avg?: ContractDurationAvgAggregateInputType
|
|
_sum?: ContractDurationSumAggregateInputType
|
|
_min?: ContractDurationMinAggregateInputType
|
|
_max?: ContractDurationMaxAggregateInputType
|
|
}
|
|
|
|
export type ContractDurationGroupByOutputType = {
|
|
id: number
|
|
code: string
|
|
description: string
|
|
isActive: boolean
|
|
createdAt: Date
|
|
updatedAt: Date
|
|
_count: ContractDurationCountAggregateOutputType | null
|
|
_avg: ContractDurationAvgAggregateOutputType | null
|
|
_sum: ContractDurationSumAggregateOutputType | null
|
|
_min: ContractDurationMinAggregateOutputType | null
|
|
_max: ContractDurationMaxAggregateOutputType | null
|
|
}
|
|
|
|
type GetContractDurationGroupByPayload<T extends ContractDurationGroupByArgs> = Prisma.PrismaPromise<
|
|
Array<
|
|
PickEnumerable<ContractDurationGroupByOutputType, T['by']> &
|
|
{
|
|
[P in ((keyof T) & (keyof ContractDurationGroupByOutputType))]: P extends '_count'
|
|
? T[P] extends boolean
|
|
? number
|
|
: GetScalarType<T[P], ContractDurationGroupByOutputType[P]>
|
|
: GetScalarType<T[P], ContractDurationGroupByOutputType[P]>
|
|
}
|
|
>
|
|
>
|
|
|
|
|
|
export type ContractDurationSelect<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
|
|
id?: boolean
|
|
code?: boolean
|
|
description?: boolean
|
|
isActive?: boolean
|
|
createdAt?: boolean
|
|
updatedAt?: boolean
|
|
contracts?: boolean | ContractDuration$contractsArgs<ExtArgs>
|
|
_count?: boolean | ContractDurationCountOutputTypeDefaultArgs<ExtArgs>
|
|
}, ExtArgs["result"]["contractDuration"]>
|
|
|
|
|
|
export type ContractDurationSelectScalar = {
|
|
id?: boolean
|
|
code?: boolean
|
|
description?: boolean
|
|
isActive?: boolean
|
|
createdAt?: boolean
|
|
updatedAt?: boolean
|
|
}
|
|
|
|
export type ContractDurationInclude<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
contracts?: boolean | ContractDuration$contractsArgs<ExtArgs>
|
|
_count?: boolean | ContractDurationCountOutputTypeDefaultArgs<ExtArgs>
|
|
}
|
|
|
|
export type $ContractDurationPayload<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
name: "ContractDuration"
|
|
objects: {
|
|
contracts: Prisma.$ContractPayload<ExtArgs>[]
|
|
}
|
|
scalars: $Extensions.GetPayloadResult<{
|
|
id: number
|
|
code: string
|
|
description: string
|
|
isActive: boolean
|
|
createdAt: Date
|
|
updatedAt: Date
|
|
}, ExtArgs["result"]["contractDuration"]>
|
|
composites: {}
|
|
}
|
|
|
|
type ContractDurationGetPayload<S extends boolean | null | undefined | ContractDurationDefaultArgs> = $Result.GetResult<Prisma.$ContractDurationPayload, S>
|
|
|
|
type ContractDurationCountArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> =
|
|
Omit<ContractDurationFindManyArgs, 'select' | 'include' | 'distinct'> & {
|
|
select?: ContractDurationCountAggregateInputType | true
|
|
}
|
|
|
|
export interface ContractDurationDelegate<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> {
|
|
[K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['ContractDuration'], meta: { name: 'ContractDuration' } }
|
|
/**
|
|
* Find zero or one ContractDuration that matches the filter.
|
|
* @param {ContractDurationFindUniqueArgs} args - Arguments to find a ContractDuration
|
|
* @example
|
|
* // Get one ContractDuration
|
|
* const contractDuration = await prisma.contractDuration.findUnique({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findUnique<T extends ContractDurationFindUniqueArgs>(args: SelectSubset<T, ContractDurationFindUniqueArgs<ExtArgs>>): Prisma__ContractDurationClient<$Result.GetResult<Prisma.$ContractDurationPayload<ExtArgs>, T, "findUnique"> | null, null, ExtArgs>
|
|
|
|
/**
|
|
* Find one ContractDuration that matches the filter or throw an error with `error.code='P2025'`
|
|
* if no matches were found.
|
|
* @param {ContractDurationFindUniqueOrThrowArgs} args - Arguments to find a ContractDuration
|
|
* @example
|
|
* // Get one ContractDuration
|
|
* const contractDuration = await prisma.contractDuration.findUniqueOrThrow({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findUniqueOrThrow<T extends ContractDurationFindUniqueOrThrowArgs>(args: SelectSubset<T, ContractDurationFindUniqueOrThrowArgs<ExtArgs>>): Prisma__ContractDurationClient<$Result.GetResult<Prisma.$ContractDurationPayload<ExtArgs>, T, "findUniqueOrThrow">, never, ExtArgs>
|
|
|
|
/**
|
|
* Find the first ContractDuration that matches the filter.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {ContractDurationFindFirstArgs} args - Arguments to find a ContractDuration
|
|
* @example
|
|
* // Get one ContractDuration
|
|
* const contractDuration = await prisma.contractDuration.findFirst({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findFirst<T extends ContractDurationFindFirstArgs>(args?: SelectSubset<T, ContractDurationFindFirstArgs<ExtArgs>>): Prisma__ContractDurationClient<$Result.GetResult<Prisma.$ContractDurationPayload<ExtArgs>, T, "findFirst"> | null, null, ExtArgs>
|
|
|
|
/**
|
|
* Find the first ContractDuration that matches the filter or
|
|
* throw `PrismaKnownClientError` with `P2025` code if no matches were found.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {ContractDurationFindFirstOrThrowArgs} args - Arguments to find a ContractDuration
|
|
* @example
|
|
* // Get one ContractDuration
|
|
* const contractDuration = await prisma.contractDuration.findFirstOrThrow({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findFirstOrThrow<T extends ContractDurationFindFirstOrThrowArgs>(args?: SelectSubset<T, ContractDurationFindFirstOrThrowArgs<ExtArgs>>): Prisma__ContractDurationClient<$Result.GetResult<Prisma.$ContractDurationPayload<ExtArgs>, T, "findFirstOrThrow">, never, ExtArgs>
|
|
|
|
/**
|
|
* Find zero or more ContractDurations that matches the filter.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {ContractDurationFindManyArgs} args - Arguments to filter and select certain fields only.
|
|
* @example
|
|
* // Get all ContractDurations
|
|
* const contractDurations = await prisma.contractDuration.findMany()
|
|
*
|
|
* // Get first 10 ContractDurations
|
|
* const contractDurations = await prisma.contractDuration.findMany({ take: 10 })
|
|
*
|
|
* // Only select the `id`
|
|
* const contractDurationWithIdOnly = await prisma.contractDuration.findMany({ select: { id: true } })
|
|
*
|
|
*/
|
|
findMany<T extends ContractDurationFindManyArgs>(args?: SelectSubset<T, ContractDurationFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$ContractDurationPayload<ExtArgs>, T, "findMany">>
|
|
|
|
/**
|
|
* Create a ContractDuration.
|
|
* @param {ContractDurationCreateArgs} args - Arguments to create a ContractDuration.
|
|
* @example
|
|
* // Create one ContractDuration
|
|
* const ContractDuration = await prisma.contractDuration.create({
|
|
* data: {
|
|
* // ... data to create a ContractDuration
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
create<T extends ContractDurationCreateArgs>(args: SelectSubset<T, ContractDurationCreateArgs<ExtArgs>>): Prisma__ContractDurationClient<$Result.GetResult<Prisma.$ContractDurationPayload<ExtArgs>, T, "create">, never, ExtArgs>
|
|
|
|
/**
|
|
* Create many ContractDurations.
|
|
* @param {ContractDurationCreateManyArgs} args - Arguments to create many ContractDurations.
|
|
* @example
|
|
* // Create many ContractDurations
|
|
* const contractDuration = await prisma.contractDuration.createMany({
|
|
* data: [
|
|
* // ... provide data here
|
|
* ]
|
|
* })
|
|
*
|
|
*/
|
|
createMany<T extends ContractDurationCreateManyArgs>(args?: SelectSubset<T, ContractDurationCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
|
|
|
|
/**
|
|
* Delete a ContractDuration.
|
|
* @param {ContractDurationDeleteArgs} args - Arguments to delete one ContractDuration.
|
|
* @example
|
|
* // Delete one ContractDuration
|
|
* const ContractDuration = await prisma.contractDuration.delete({
|
|
* where: {
|
|
* // ... filter to delete one ContractDuration
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
delete<T extends ContractDurationDeleteArgs>(args: SelectSubset<T, ContractDurationDeleteArgs<ExtArgs>>): Prisma__ContractDurationClient<$Result.GetResult<Prisma.$ContractDurationPayload<ExtArgs>, T, "delete">, never, ExtArgs>
|
|
|
|
/**
|
|
* Update one ContractDuration.
|
|
* @param {ContractDurationUpdateArgs} args - Arguments to update one ContractDuration.
|
|
* @example
|
|
* // Update one ContractDuration
|
|
* const contractDuration = await prisma.contractDuration.update({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* },
|
|
* data: {
|
|
* // ... provide data here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
update<T extends ContractDurationUpdateArgs>(args: SelectSubset<T, ContractDurationUpdateArgs<ExtArgs>>): Prisma__ContractDurationClient<$Result.GetResult<Prisma.$ContractDurationPayload<ExtArgs>, T, "update">, never, ExtArgs>
|
|
|
|
/**
|
|
* Delete zero or more ContractDurations.
|
|
* @param {ContractDurationDeleteManyArgs} args - Arguments to filter ContractDurations to delete.
|
|
* @example
|
|
* // Delete a few ContractDurations
|
|
* const { count } = await prisma.contractDuration.deleteMany({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
deleteMany<T extends ContractDurationDeleteManyArgs>(args?: SelectSubset<T, ContractDurationDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
|
|
|
|
/**
|
|
* Update zero or more ContractDurations.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {ContractDurationUpdateManyArgs} args - Arguments to update one or more rows.
|
|
* @example
|
|
* // Update many ContractDurations
|
|
* const contractDuration = await prisma.contractDuration.updateMany({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* },
|
|
* data: {
|
|
* // ... provide data here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
updateMany<T extends ContractDurationUpdateManyArgs>(args: SelectSubset<T, ContractDurationUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
|
|
|
|
/**
|
|
* Create or update one ContractDuration.
|
|
* @param {ContractDurationUpsertArgs} args - Arguments to update or create a ContractDuration.
|
|
* @example
|
|
* // Update or create a ContractDuration
|
|
* const contractDuration = await prisma.contractDuration.upsert({
|
|
* create: {
|
|
* // ... data to create a ContractDuration
|
|
* },
|
|
* update: {
|
|
* // ... in case it already exists, update
|
|
* },
|
|
* where: {
|
|
* // ... the filter for the ContractDuration we want to update
|
|
* }
|
|
* })
|
|
*/
|
|
upsert<T extends ContractDurationUpsertArgs>(args: SelectSubset<T, ContractDurationUpsertArgs<ExtArgs>>): Prisma__ContractDurationClient<$Result.GetResult<Prisma.$ContractDurationPayload<ExtArgs>, T, "upsert">, never, ExtArgs>
|
|
|
|
|
|
/**
|
|
* Count the number of ContractDurations.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {ContractDurationCountArgs} args - Arguments to filter ContractDurations to count.
|
|
* @example
|
|
* // Count the number of ContractDurations
|
|
* const count = await prisma.contractDuration.count({
|
|
* where: {
|
|
* // ... the filter for the ContractDurations we want to count
|
|
* }
|
|
* })
|
|
**/
|
|
count<T extends ContractDurationCountArgs>(
|
|
args?: Subset<T, ContractDurationCountArgs>,
|
|
): Prisma.PrismaPromise<
|
|
T extends $Utils.Record<'select', any>
|
|
? T['select'] extends true
|
|
? number
|
|
: GetScalarType<T['select'], ContractDurationCountAggregateOutputType>
|
|
: number
|
|
>
|
|
|
|
/**
|
|
* Allows you to perform aggregations operations on a ContractDuration.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {ContractDurationAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
|
|
* @example
|
|
* // Ordered by age ascending
|
|
* // Where email contains prisma.io
|
|
* // Limited to the 10 users
|
|
* const aggregations = await prisma.user.aggregate({
|
|
* _avg: {
|
|
* age: true,
|
|
* },
|
|
* where: {
|
|
* email: {
|
|
* contains: "prisma.io",
|
|
* },
|
|
* },
|
|
* orderBy: {
|
|
* age: "asc",
|
|
* },
|
|
* take: 10,
|
|
* })
|
|
**/
|
|
aggregate<T extends ContractDurationAggregateArgs>(args: Subset<T, ContractDurationAggregateArgs>): Prisma.PrismaPromise<GetContractDurationAggregateType<T>>
|
|
|
|
/**
|
|
* Group by ContractDuration.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {ContractDurationGroupByArgs} args - Group by arguments.
|
|
* @example
|
|
* // Group by city, order by createdAt, get count
|
|
* const result = await prisma.user.groupBy({
|
|
* by: ['city', 'createdAt'],
|
|
* orderBy: {
|
|
* createdAt: true
|
|
* },
|
|
* _count: {
|
|
* _all: true
|
|
* },
|
|
* })
|
|
*
|
|
**/
|
|
groupBy<
|
|
T extends ContractDurationGroupByArgs,
|
|
HasSelectOrTake extends Or<
|
|
Extends<'skip', Keys<T>>,
|
|
Extends<'take', Keys<T>>
|
|
>,
|
|
OrderByArg extends True extends HasSelectOrTake
|
|
? { orderBy: ContractDurationGroupByArgs['orderBy'] }
|
|
: { orderBy?: ContractDurationGroupByArgs['orderBy'] },
|
|
OrderFields extends ExcludeUnderscoreKeys<Keys<MaybeTupleToUnion<T['orderBy']>>>,
|
|
ByFields extends MaybeTupleToUnion<T['by']>,
|
|
ByValid extends Has<ByFields, OrderFields>,
|
|
HavingFields extends GetHavingFields<T['having']>,
|
|
HavingValid extends Has<ByFields, HavingFields>,
|
|
ByEmpty extends T['by'] extends never[] ? True : False,
|
|
InputErrors extends ByEmpty extends True
|
|
? `Error: "by" must not be empty.`
|
|
: HavingValid extends False
|
|
? {
|
|
[P in HavingFields]: P extends ByFields
|
|
? never
|
|
: P extends string
|
|
? `Error: Field "${P}" used in "having" needs to be provided in "by".`
|
|
: [
|
|
Error,
|
|
'Field ',
|
|
P,
|
|
` in "having" needs to be provided in "by"`,
|
|
]
|
|
}[HavingFields]
|
|
: 'take' extends Keys<T>
|
|
? 'orderBy' extends Keys<T>
|
|
? ByValid extends True
|
|
? {}
|
|
: {
|
|
[P in OrderFields]: P extends ByFields
|
|
? never
|
|
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
|
|
}[OrderFields]
|
|
: 'Error: If you provide "take", you also need to provide "orderBy"'
|
|
: 'skip' extends Keys<T>
|
|
? 'orderBy' extends Keys<T>
|
|
? ByValid extends True
|
|
? {}
|
|
: {
|
|
[P in OrderFields]: P extends ByFields
|
|
? never
|
|
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
|
|
}[OrderFields]
|
|
: 'Error: If you provide "skip", you also need to provide "orderBy"'
|
|
: ByValid extends True
|
|
? {}
|
|
: {
|
|
[P in OrderFields]: P extends ByFields
|
|
? never
|
|
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
|
|
}[OrderFields]
|
|
>(args: SubsetIntersection<T, ContractDurationGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetContractDurationGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
|
|
/**
|
|
* Fields of the ContractDuration model
|
|
*/
|
|
readonly fields: ContractDurationFieldRefs;
|
|
}
|
|
|
|
/**
|
|
* The delegate class that acts as a "Promise-like" for ContractDuration.
|
|
* Why is this prefixed with `Prisma__`?
|
|
* Because we want to prevent naming conflicts as mentioned in
|
|
* https://github.com/prisma/prisma-client-js/issues/707
|
|
*/
|
|
export interface Prisma__ContractDurationClient<T, Null = never, ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> extends Prisma.PrismaPromise<T> {
|
|
readonly [Symbol.toStringTag]: "PrismaPromise"
|
|
contracts<T extends ContractDuration$contractsArgs<ExtArgs> = {}>(args?: Subset<T, ContractDuration$contractsArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$ContractPayload<ExtArgs>, T, "findMany"> | Null>
|
|
/**
|
|
* Attaches callbacks for the resolution and/or rejection of the Promise.
|
|
* @param onfulfilled The callback to execute when the Promise is resolved.
|
|
* @param onrejected The callback to execute when the Promise is rejected.
|
|
* @returns A Promise for the completion of which ever callback is executed.
|
|
*/
|
|
then<TResult1 = T, TResult2 = never>(onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined | null): $Utils.JsPromise<TResult1 | TResult2>
|
|
/**
|
|
* Attaches a callback for only the rejection of the Promise.
|
|
* @param onrejected The callback to execute when the Promise is rejected.
|
|
* @returns A Promise for the completion of the callback.
|
|
*/
|
|
catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): $Utils.JsPromise<T | TResult>
|
|
/**
|
|
* Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
|
|
* resolved value cannot be modified from the callback.
|
|
* @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
|
|
* @returns A Promise for the completion of the callback.
|
|
*/
|
|
finally(onfinally?: (() => void) | undefined | null): $Utils.JsPromise<T>
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
* Fields of the ContractDuration model
|
|
*/
|
|
interface ContractDurationFieldRefs {
|
|
readonly id: FieldRef<"ContractDuration", 'Int'>
|
|
readonly code: FieldRef<"ContractDuration", 'String'>
|
|
readonly description: FieldRef<"ContractDuration", 'String'>
|
|
readonly isActive: FieldRef<"ContractDuration", 'Boolean'>
|
|
readonly createdAt: FieldRef<"ContractDuration", 'DateTime'>
|
|
readonly updatedAt: FieldRef<"ContractDuration", 'DateTime'>
|
|
}
|
|
|
|
|
|
// Custom InputTypes
|
|
/**
|
|
* ContractDuration findUnique
|
|
*/
|
|
export type ContractDurationFindUniqueArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the ContractDuration
|
|
*/
|
|
select?: ContractDurationSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: ContractDurationInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which ContractDuration to fetch.
|
|
*/
|
|
where: ContractDurationWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* ContractDuration findUniqueOrThrow
|
|
*/
|
|
export type ContractDurationFindUniqueOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the ContractDuration
|
|
*/
|
|
select?: ContractDurationSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: ContractDurationInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which ContractDuration to fetch.
|
|
*/
|
|
where: ContractDurationWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* ContractDuration findFirst
|
|
*/
|
|
export type ContractDurationFindFirstArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the ContractDuration
|
|
*/
|
|
select?: ContractDurationSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: ContractDurationInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which ContractDuration to fetch.
|
|
*/
|
|
where?: ContractDurationWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of ContractDurations to fetch.
|
|
*/
|
|
orderBy?: ContractDurationOrderByWithRelationInput | ContractDurationOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for searching for ContractDurations.
|
|
*/
|
|
cursor?: ContractDurationWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` ContractDurations from the position of the cursor.
|
|
*/
|
|
take?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Skip the first `n` ContractDurations.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
*
|
|
* Filter by unique combinations of ContractDurations.
|
|
*/
|
|
distinct?: ContractDurationScalarFieldEnum | ContractDurationScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* ContractDuration findFirstOrThrow
|
|
*/
|
|
export type ContractDurationFindFirstOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the ContractDuration
|
|
*/
|
|
select?: ContractDurationSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: ContractDurationInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which ContractDuration to fetch.
|
|
*/
|
|
where?: ContractDurationWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of ContractDurations to fetch.
|
|
*/
|
|
orderBy?: ContractDurationOrderByWithRelationInput | ContractDurationOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for searching for ContractDurations.
|
|
*/
|
|
cursor?: ContractDurationWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` ContractDurations from the position of the cursor.
|
|
*/
|
|
take?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Skip the first `n` ContractDurations.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
*
|
|
* Filter by unique combinations of ContractDurations.
|
|
*/
|
|
distinct?: ContractDurationScalarFieldEnum | ContractDurationScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* ContractDuration findMany
|
|
*/
|
|
export type ContractDurationFindManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the ContractDuration
|
|
*/
|
|
select?: ContractDurationSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: ContractDurationInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which ContractDurations to fetch.
|
|
*/
|
|
where?: ContractDurationWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of ContractDurations to fetch.
|
|
*/
|
|
orderBy?: ContractDurationOrderByWithRelationInput | ContractDurationOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for listing ContractDurations.
|
|
*/
|
|
cursor?: ContractDurationWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` ContractDurations from the position of the cursor.
|
|
*/
|
|
take?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Skip the first `n` ContractDurations.
|
|
*/
|
|
skip?: number
|
|
distinct?: ContractDurationScalarFieldEnum | ContractDurationScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* ContractDuration create
|
|
*/
|
|
export type ContractDurationCreateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the ContractDuration
|
|
*/
|
|
select?: ContractDurationSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: ContractDurationInclude<ExtArgs> | null
|
|
/**
|
|
* The data needed to create a ContractDuration.
|
|
*/
|
|
data: XOR<ContractDurationCreateInput, ContractDurationUncheckedCreateInput>
|
|
}
|
|
|
|
/**
|
|
* ContractDuration createMany
|
|
*/
|
|
export type ContractDurationCreateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* The data used to create many ContractDurations.
|
|
*/
|
|
data: ContractDurationCreateManyInput | ContractDurationCreateManyInput[]
|
|
skipDuplicates?: boolean
|
|
}
|
|
|
|
/**
|
|
* ContractDuration update
|
|
*/
|
|
export type ContractDurationUpdateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the ContractDuration
|
|
*/
|
|
select?: ContractDurationSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: ContractDurationInclude<ExtArgs> | null
|
|
/**
|
|
* The data needed to update a ContractDuration.
|
|
*/
|
|
data: XOR<ContractDurationUpdateInput, ContractDurationUncheckedUpdateInput>
|
|
/**
|
|
* Choose, which ContractDuration to update.
|
|
*/
|
|
where: ContractDurationWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* ContractDuration updateMany
|
|
*/
|
|
export type ContractDurationUpdateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* The data used to update ContractDurations.
|
|
*/
|
|
data: XOR<ContractDurationUpdateManyMutationInput, ContractDurationUncheckedUpdateManyInput>
|
|
/**
|
|
* Filter which ContractDurations to update
|
|
*/
|
|
where?: ContractDurationWhereInput
|
|
}
|
|
|
|
/**
|
|
* ContractDuration upsert
|
|
*/
|
|
export type ContractDurationUpsertArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the ContractDuration
|
|
*/
|
|
select?: ContractDurationSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: ContractDurationInclude<ExtArgs> | null
|
|
/**
|
|
* The filter to search for the ContractDuration to update in case it exists.
|
|
*/
|
|
where: ContractDurationWhereUniqueInput
|
|
/**
|
|
* In case the ContractDuration found by the `where` argument doesn't exist, create a new ContractDuration with this data.
|
|
*/
|
|
create: XOR<ContractDurationCreateInput, ContractDurationUncheckedCreateInput>
|
|
/**
|
|
* In case the ContractDuration was found with the provided `where` argument, update it with this data.
|
|
*/
|
|
update: XOR<ContractDurationUpdateInput, ContractDurationUncheckedUpdateInput>
|
|
}
|
|
|
|
/**
|
|
* ContractDuration delete
|
|
*/
|
|
export type ContractDurationDeleteArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the ContractDuration
|
|
*/
|
|
select?: ContractDurationSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: ContractDurationInclude<ExtArgs> | null
|
|
/**
|
|
* Filter which ContractDuration to delete.
|
|
*/
|
|
where: ContractDurationWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* ContractDuration deleteMany
|
|
*/
|
|
export type ContractDurationDeleteManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Filter which ContractDurations to delete
|
|
*/
|
|
where?: ContractDurationWhereInput
|
|
}
|
|
|
|
/**
|
|
* ContractDuration.contracts
|
|
*/
|
|
export type ContractDuration$contractsArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the Contract
|
|
*/
|
|
select?: ContractSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: ContractInclude<ExtArgs> | null
|
|
where?: ContractWhereInput
|
|
orderBy?: ContractOrderByWithRelationInput | ContractOrderByWithRelationInput[]
|
|
cursor?: ContractWhereUniqueInput
|
|
take?: number
|
|
skip?: number
|
|
distinct?: ContractScalarFieldEnum | ContractScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* ContractDuration without action
|
|
*/
|
|
export type ContractDurationDefaultArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the ContractDuration
|
|
*/
|
|
select?: ContractDurationSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: ContractDurationInclude<ExtArgs> | null
|
|
}
|
|
|
|
|
|
/**
|
|
* Model Provider
|
|
*/
|
|
|
|
export type AggregateProvider = {
|
|
_count: ProviderCountAggregateOutputType | null
|
|
_avg: ProviderAvgAggregateOutputType | null
|
|
_sum: ProviderSumAggregateOutputType | null
|
|
_min: ProviderMinAggregateOutputType | null
|
|
_max: ProviderMaxAggregateOutputType | null
|
|
}
|
|
|
|
export type ProviderAvgAggregateOutputType = {
|
|
id: number | null
|
|
}
|
|
|
|
export type ProviderSumAggregateOutputType = {
|
|
id: number | null
|
|
}
|
|
|
|
export type ProviderMinAggregateOutputType = {
|
|
id: number | null
|
|
name: string | null
|
|
portalUrl: string | null
|
|
usernameFieldName: string | null
|
|
passwordFieldName: string | null
|
|
isActive: boolean | null
|
|
createdAt: Date | null
|
|
updatedAt: Date | null
|
|
}
|
|
|
|
export type ProviderMaxAggregateOutputType = {
|
|
id: number | null
|
|
name: string | null
|
|
portalUrl: string | null
|
|
usernameFieldName: string | null
|
|
passwordFieldName: string | null
|
|
isActive: boolean | null
|
|
createdAt: Date | null
|
|
updatedAt: Date | null
|
|
}
|
|
|
|
export type ProviderCountAggregateOutputType = {
|
|
id: number
|
|
name: number
|
|
portalUrl: number
|
|
usernameFieldName: number
|
|
passwordFieldName: number
|
|
isActive: number
|
|
createdAt: number
|
|
updatedAt: number
|
|
_all: number
|
|
}
|
|
|
|
|
|
export type ProviderAvgAggregateInputType = {
|
|
id?: true
|
|
}
|
|
|
|
export type ProviderSumAggregateInputType = {
|
|
id?: true
|
|
}
|
|
|
|
export type ProviderMinAggregateInputType = {
|
|
id?: true
|
|
name?: true
|
|
portalUrl?: true
|
|
usernameFieldName?: true
|
|
passwordFieldName?: true
|
|
isActive?: true
|
|
createdAt?: true
|
|
updatedAt?: true
|
|
}
|
|
|
|
export type ProviderMaxAggregateInputType = {
|
|
id?: true
|
|
name?: true
|
|
portalUrl?: true
|
|
usernameFieldName?: true
|
|
passwordFieldName?: true
|
|
isActive?: true
|
|
createdAt?: true
|
|
updatedAt?: true
|
|
}
|
|
|
|
export type ProviderCountAggregateInputType = {
|
|
id?: true
|
|
name?: true
|
|
portalUrl?: true
|
|
usernameFieldName?: true
|
|
passwordFieldName?: true
|
|
isActive?: true
|
|
createdAt?: true
|
|
updatedAt?: true
|
|
_all?: true
|
|
}
|
|
|
|
export type ProviderAggregateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Filter which Provider to aggregate.
|
|
*/
|
|
where?: ProviderWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of Providers to fetch.
|
|
*/
|
|
orderBy?: ProviderOrderByWithRelationInput | ProviderOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the start position
|
|
*/
|
|
cursor?: ProviderWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` Providers from the position of the cursor.
|
|
*/
|
|
take?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Skip the first `n` Providers.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Count returned Providers
|
|
**/
|
|
_count?: true | ProviderCountAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to average
|
|
**/
|
|
_avg?: ProviderAvgAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to sum
|
|
**/
|
|
_sum?: ProviderSumAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to find the minimum value
|
|
**/
|
|
_min?: ProviderMinAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to find the maximum value
|
|
**/
|
|
_max?: ProviderMaxAggregateInputType
|
|
}
|
|
|
|
export type GetProviderAggregateType<T extends ProviderAggregateArgs> = {
|
|
[P in keyof T & keyof AggregateProvider]: P extends '_count' | 'count'
|
|
? T[P] extends true
|
|
? number
|
|
: GetScalarType<T[P], AggregateProvider[P]>
|
|
: GetScalarType<T[P], AggregateProvider[P]>
|
|
}
|
|
|
|
|
|
|
|
|
|
export type ProviderGroupByArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
where?: ProviderWhereInput
|
|
orderBy?: ProviderOrderByWithAggregationInput | ProviderOrderByWithAggregationInput[]
|
|
by: ProviderScalarFieldEnum[] | ProviderScalarFieldEnum
|
|
having?: ProviderScalarWhereWithAggregatesInput
|
|
take?: number
|
|
skip?: number
|
|
_count?: ProviderCountAggregateInputType | true
|
|
_avg?: ProviderAvgAggregateInputType
|
|
_sum?: ProviderSumAggregateInputType
|
|
_min?: ProviderMinAggregateInputType
|
|
_max?: ProviderMaxAggregateInputType
|
|
}
|
|
|
|
export type ProviderGroupByOutputType = {
|
|
id: number
|
|
name: string
|
|
portalUrl: string | null
|
|
usernameFieldName: string | null
|
|
passwordFieldName: string | null
|
|
isActive: boolean
|
|
createdAt: Date
|
|
updatedAt: Date
|
|
_count: ProviderCountAggregateOutputType | null
|
|
_avg: ProviderAvgAggregateOutputType | null
|
|
_sum: ProviderSumAggregateOutputType | null
|
|
_min: ProviderMinAggregateOutputType | null
|
|
_max: ProviderMaxAggregateOutputType | null
|
|
}
|
|
|
|
type GetProviderGroupByPayload<T extends ProviderGroupByArgs> = Prisma.PrismaPromise<
|
|
Array<
|
|
PickEnumerable<ProviderGroupByOutputType, T['by']> &
|
|
{
|
|
[P in ((keyof T) & (keyof ProviderGroupByOutputType))]: P extends '_count'
|
|
? T[P] extends boolean
|
|
? number
|
|
: GetScalarType<T[P], ProviderGroupByOutputType[P]>
|
|
: GetScalarType<T[P], ProviderGroupByOutputType[P]>
|
|
}
|
|
>
|
|
>
|
|
|
|
|
|
export type ProviderSelect<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
|
|
id?: boolean
|
|
name?: boolean
|
|
portalUrl?: boolean
|
|
usernameFieldName?: boolean
|
|
passwordFieldName?: boolean
|
|
isActive?: boolean
|
|
createdAt?: boolean
|
|
updatedAt?: boolean
|
|
tariffs?: boolean | Provider$tariffsArgs<ExtArgs>
|
|
contracts?: boolean | Provider$contractsArgs<ExtArgs>
|
|
_count?: boolean | ProviderCountOutputTypeDefaultArgs<ExtArgs>
|
|
}, ExtArgs["result"]["provider"]>
|
|
|
|
|
|
export type ProviderSelectScalar = {
|
|
id?: boolean
|
|
name?: boolean
|
|
portalUrl?: boolean
|
|
usernameFieldName?: boolean
|
|
passwordFieldName?: boolean
|
|
isActive?: boolean
|
|
createdAt?: boolean
|
|
updatedAt?: boolean
|
|
}
|
|
|
|
export type ProviderInclude<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
tariffs?: boolean | Provider$tariffsArgs<ExtArgs>
|
|
contracts?: boolean | Provider$contractsArgs<ExtArgs>
|
|
_count?: boolean | ProviderCountOutputTypeDefaultArgs<ExtArgs>
|
|
}
|
|
|
|
export type $ProviderPayload<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
name: "Provider"
|
|
objects: {
|
|
tariffs: Prisma.$TariffPayload<ExtArgs>[]
|
|
contracts: Prisma.$ContractPayload<ExtArgs>[]
|
|
}
|
|
scalars: $Extensions.GetPayloadResult<{
|
|
id: number
|
|
name: string
|
|
portalUrl: string | null
|
|
usernameFieldName: string | null
|
|
passwordFieldName: string | null
|
|
isActive: boolean
|
|
createdAt: Date
|
|
updatedAt: Date
|
|
}, ExtArgs["result"]["provider"]>
|
|
composites: {}
|
|
}
|
|
|
|
type ProviderGetPayload<S extends boolean | null | undefined | ProviderDefaultArgs> = $Result.GetResult<Prisma.$ProviderPayload, S>
|
|
|
|
type ProviderCountArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> =
|
|
Omit<ProviderFindManyArgs, 'select' | 'include' | 'distinct'> & {
|
|
select?: ProviderCountAggregateInputType | true
|
|
}
|
|
|
|
export interface ProviderDelegate<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> {
|
|
[K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['Provider'], meta: { name: 'Provider' } }
|
|
/**
|
|
* Find zero or one Provider that matches the filter.
|
|
* @param {ProviderFindUniqueArgs} args - Arguments to find a Provider
|
|
* @example
|
|
* // Get one Provider
|
|
* const provider = await prisma.provider.findUnique({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findUnique<T extends ProviderFindUniqueArgs>(args: SelectSubset<T, ProviderFindUniqueArgs<ExtArgs>>): Prisma__ProviderClient<$Result.GetResult<Prisma.$ProviderPayload<ExtArgs>, T, "findUnique"> | null, null, ExtArgs>
|
|
|
|
/**
|
|
* Find one Provider that matches the filter or throw an error with `error.code='P2025'`
|
|
* if no matches were found.
|
|
* @param {ProviderFindUniqueOrThrowArgs} args - Arguments to find a Provider
|
|
* @example
|
|
* // Get one Provider
|
|
* const provider = await prisma.provider.findUniqueOrThrow({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findUniqueOrThrow<T extends ProviderFindUniqueOrThrowArgs>(args: SelectSubset<T, ProviderFindUniqueOrThrowArgs<ExtArgs>>): Prisma__ProviderClient<$Result.GetResult<Prisma.$ProviderPayload<ExtArgs>, T, "findUniqueOrThrow">, never, ExtArgs>
|
|
|
|
/**
|
|
* Find the first Provider that matches the filter.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {ProviderFindFirstArgs} args - Arguments to find a Provider
|
|
* @example
|
|
* // Get one Provider
|
|
* const provider = await prisma.provider.findFirst({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findFirst<T extends ProviderFindFirstArgs>(args?: SelectSubset<T, ProviderFindFirstArgs<ExtArgs>>): Prisma__ProviderClient<$Result.GetResult<Prisma.$ProviderPayload<ExtArgs>, T, "findFirst"> | null, null, ExtArgs>
|
|
|
|
/**
|
|
* Find the first Provider that matches the filter or
|
|
* throw `PrismaKnownClientError` with `P2025` code if no matches were found.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {ProviderFindFirstOrThrowArgs} args - Arguments to find a Provider
|
|
* @example
|
|
* // Get one Provider
|
|
* const provider = await prisma.provider.findFirstOrThrow({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findFirstOrThrow<T extends ProviderFindFirstOrThrowArgs>(args?: SelectSubset<T, ProviderFindFirstOrThrowArgs<ExtArgs>>): Prisma__ProviderClient<$Result.GetResult<Prisma.$ProviderPayload<ExtArgs>, T, "findFirstOrThrow">, never, ExtArgs>
|
|
|
|
/**
|
|
* Find zero or more Providers that matches the filter.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {ProviderFindManyArgs} args - Arguments to filter and select certain fields only.
|
|
* @example
|
|
* // Get all Providers
|
|
* const providers = await prisma.provider.findMany()
|
|
*
|
|
* // Get first 10 Providers
|
|
* const providers = await prisma.provider.findMany({ take: 10 })
|
|
*
|
|
* // Only select the `id`
|
|
* const providerWithIdOnly = await prisma.provider.findMany({ select: { id: true } })
|
|
*
|
|
*/
|
|
findMany<T extends ProviderFindManyArgs>(args?: SelectSubset<T, ProviderFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$ProviderPayload<ExtArgs>, T, "findMany">>
|
|
|
|
/**
|
|
* Create a Provider.
|
|
* @param {ProviderCreateArgs} args - Arguments to create a Provider.
|
|
* @example
|
|
* // Create one Provider
|
|
* const Provider = await prisma.provider.create({
|
|
* data: {
|
|
* // ... data to create a Provider
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
create<T extends ProviderCreateArgs>(args: SelectSubset<T, ProviderCreateArgs<ExtArgs>>): Prisma__ProviderClient<$Result.GetResult<Prisma.$ProviderPayload<ExtArgs>, T, "create">, never, ExtArgs>
|
|
|
|
/**
|
|
* Create many Providers.
|
|
* @param {ProviderCreateManyArgs} args - Arguments to create many Providers.
|
|
* @example
|
|
* // Create many Providers
|
|
* const provider = await prisma.provider.createMany({
|
|
* data: [
|
|
* // ... provide data here
|
|
* ]
|
|
* })
|
|
*
|
|
*/
|
|
createMany<T extends ProviderCreateManyArgs>(args?: SelectSubset<T, ProviderCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
|
|
|
|
/**
|
|
* Delete a Provider.
|
|
* @param {ProviderDeleteArgs} args - Arguments to delete one Provider.
|
|
* @example
|
|
* // Delete one Provider
|
|
* const Provider = await prisma.provider.delete({
|
|
* where: {
|
|
* // ... filter to delete one Provider
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
delete<T extends ProviderDeleteArgs>(args: SelectSubset<T, ProviderDeleteArgs<ExtArgs>>): Prisma__ProviderClient<$Result.GetResult<Prisma.$ProviderPayload<ExtArgs>, T, "delete">, never, ExtArgs>
|
|
|
|
/**
|
|
* Update one Provider.
|
|
* @param {ProviderUpdateArgs} args - Arguments to update one Provider.
|
|
* @example
|
|
* // Update one Provider
|
|
* const provider = await prisma.provider.update({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* },
|
|
* data: {
|
|
* // ... provide data here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
update<T extends ProviderUpdateArgs>(args: SelectSubset<T, ProviderUpdateArgs<ExtArgs>>): Prisma__ProviderClient<$Result.GetResult<Prisma.$ProviderPayload<ExtArgs>, T, "update">, never, ExtArgs>
|
|
|
|
/**
|
|
* Delete zero or more Providers.
|
|
* @param {ProviderDeleteManyArgs} args - Arguments to filter Providers to delete.
|
|
* @example
|
|
* // Delete a few Providers
|
|
* const { count } = await prisma.provider.deleteMany({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
deleteMany<T extends ProviderDeleteManyArgs>(args?: SelectSubset<T, ProviderDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
|
|
|
|
/**
|
|
* Update zero or more Providers.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {ProviderUpdateManyArgs} args - Arguments to update one or more rows.
|
|
* @example
|
|
* // Update many Providers
|
|
* const provider = await prisma.provider.updateMany({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* },
|
|
* data: {
|
|
* // ... provide data here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
updateMany<T extends ProviderUpdateManyArgs>(args: SelectSubset<T, ProviderUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
|
|
|
|
/**
|
|
* Create or update one Provider.
|
|
* @param {ProviderUpsertArgs} args - Arguments to update or create a Provider.
|
|
* @example
|
|
* // Update or create a Provider
|
|
* const provider = await prisma.provider.upsert({
|
|
* create: {
|
|
* // ... data to create a Provider
|
|
* },
|
|
* update: {
|
|
* // ... in case it already exists, update
|
|
* },
|
|
* where: {
|
|
* // ... the filter for the Provider we want to update
|
|
* }
|
|
* })
|
|
*/
|
|
upsert<T extends ProviderUpsertArgs>(args: SelectSubset<T, ProviderUpsertArgs<ExtArgs>>): Prisma__ProviderClient<$Result.GetResult<Prisma.$ProviderPayload<ExtArgs>, T, "upsert">, never, ExtArgs>
|
|
|
|
|
|
/**
|
|
* Count the number of Providers.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {ProviderCountArgs} args - Arguments to filter Providers to count.
|
|
* @example
|
|
* // Count the number of Providers
|
|
* const count = await prisma.provider.count({
|
|
* where: {
|
|
* // ... the filter for the Providers we want to count
|
|
* }
|
|
* })
|
|
**/
|
|
count<T extends ProviderCountArgs>(
|
|
args?: Subset<T, ProviderCountArgs>,
|
|
): Prisma.PrismaPromise<
|
|
T extends $Utils.Record<'select', any>
|
|
? T['select'] extends true
|
|
? number
|
|
: GetScalarType<T['select'], ProviderCountAggregateOutputType>
|
|
: number
|
|
>
|
|
|
|
/**
|
|
* Allows you to perform aggregations operations on a Provider.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {ProviderAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
|
|
* @example
|
|
* // Ordered by age ascending
|
|
* // Where email contains prisma.io
|
|
* // Limited to the 10 users
|
|
* const aggregations = await prisma.user.aggregate({
|
|
* _avg: {
|
|
* age: true,
|
|
* },
|
|
* where: {
|
|
* email: {
|
|
* contains: "prisma.io",
|
|
* },
|
|
* },
|
|
* orderBy: {
|
|
* age: "asc",
|
|
* },
|
|
* take: 10,
|
|
* })
|
|
**/
|
|
aggregate<T extends ProviderAggregateArgs>(args: Subset<T, ProviderAggregateArgs>): Prisma.PrismaPromise<GetProviderAggregateType<T>>
|
|
|
|
/**
|
|
* Group by Provider.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {ProviderGroupByArgs} args - Group by arguments.
|
|
* @example
|
|
* // Group by city, order by createdAt, get count
|
|
* const result = await prisma.user.groupBy({
|
|
* by: ['city', 'createdAt'],
|
|
* orderBy: {
|
|
* createdAt: true
|
|
* },
|
|
* _count: {
|
|
* _all: true
|
|
* },
|
|
* })
|
|
*
|
|
**/
|
|
groupBy<
|
|
T extends ProviderGroupByArgs,
|
|
HasSelectOrTake extends Or<
|
|
Extends<'skip', Keys<T>>,
|
|
Extends<'take', Keys<T>>
|
|
>,
|
|
OrderByArg extends True extends HasSelectOrTake
|
|
? { orderBy: ProviderGroupByArgs['orderBy'] }
|
|
: { orderBy?: ProviderGroupByArgs['orderBy'] },
|
|
OrderFields extends ExcludeUnderscoreKeys<Keys<MaybeTupleToUnion<T['orderBy']>>>,
|
|
ByFields extends MaybeTupleToUnion<T['by']>,
|
|
ByValid extends Has<ByFields, OrderFields>,
|
|
HavingFields extends GetHavingFields<T['having']>,
|
|
HavingValid extends Has<ByFields, HavingFields>,
|
|
ByEmpty extends T['by'] extends never[] ? True : False,
|
|
InputErrors extends ByEmpty extends True
|
|
? `Error: "by" must not be empty.`
|
|
: HavingValid extends False
|
|
? {
|
|
[P in HavingFields]: P extends ByFields
|
|
? never
|
|
: P extends string
|
|
? `Error: Field "${P}" used in "having" needs to be provided in "by".`
|
|
: [
|
|
Error,
|
|
'Field ',
|
|
P,
|
|
` in "having" needs to be provided in "by"`,
|
|
]
|
|
}[HavingFields]
|
|
: 'take' extends Keys<T>
|
|
? 'orderBy' extends Keys<T>
|
|
? ByValid extends True
|
|
? {}
|
|
: {
|
|
[P in OrderFields]: P extends ByFields
|
|
? never
|
|
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
|
|
}[OrderFields]
|
|
: 'Error: If you provide "take", you also need to provide "orderBy"'
|
|
: 'skip' extends Keys<T>
|
|
? 'orderBy' extends Keys<T>
|
|
? ByValid extends True
|
|
? {}
|
|
: {
|
|
[P in OrderFields]: P extends ByFields
|
|
? never
|
|
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
|
|
}[OrderFields]
|
|
: 'Error: If you provide "skip", you also need to provide "orderBy"'
|
|
: ByValid extends True
|
|
? {}
|
|
: {
|
|
[P in OrderFields]: P extends ByFields
|
|
? never
|
|
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
|
|
}[OrderFields]
|
|
>(args: SubsetIntersection<T, ProviderGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetProviderGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
|
|
/**
|
|
* Fields of the Provider model
|
|
*/
|
|
readonly fields: ProviderFieldRefs;
|
|
}
|
|
|
|
/**
|
|
* The delegate class that acts as a "Promise-like" for Provider.
|
|
* Why is this prefixed with `Prisma__`?
|
|
* Because we want to prevent naming conflicts as mentioned in
|
|
* https://github.com/prisma/prisma-client-js/issues/707
|
|
*/
|
|
export interface Prisma__ProviderClient<T, Null = never, ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> extends Prisma.PrismaPromise<T> {
|
|
readonly [Symbol.toStringTag]: "PrismaPromise"
|
|
tariffs<T extends Provider$tariffsArgs<ExtArgs> = {}>(args?: Subset<T, Provider$tariffsArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$TariffPayload<ExtArgs>, T, "findMany"> | Null>
|
|
contracts<T extends Provider$contractsArgs<ExtArgs> = {}>(args?: Subset<T, Provider$contractsArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$ContractPayload<ExtArgs>, T, "findMany"> | Null>
|
|
/**
|
|
* Attaches callbacks for the resolution and/or rejection of the Promise.
|
|
* @param onfulfilled The callback to execute when the Promise is resolved.
|
|
* @param onrejected The callback to execute when the Promise is rejected.
|
|
* @returns A Promise for the completion of which ever callback is executed.
|
|
*/
|
|
then<TResult1 = T, TResult2 = never>(onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined | null): $Utils.JsPromise<TResult1 | TResult2>
|
|
/**
|
|
* Attaches a callback for only the rejection of the Promise.
|
|
* @param onrejected The callback to execute when the Promise is rejected.
|
|
* @returns A Promise for the completion of the callback.
|
|
*/
|
|
catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): $Utils.JsPromise<T | TResult>
|
|
/**
|
|
* Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
|
|
* resolved value cannot be modified from the callback.
|
|
* @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
|
|
* @returns A Promise for the completion of the callback.
|
|
*/
|
|
finally(onfinally?: (() => void) | undefined | null): $Utils.JsPromise<T>
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
* Fields of the Provider model
|
|
*/
|
|
interface ProviderFieldRefs {
|
|
readonly id: FieldRef<"Provider", 'Int'>
|
|
readonly name: FieldRef<"Provider", 'String'>
|
|
readonly portalUrl: FieldRef<"Provider", 'String'>
|
|
readonly usernameFieldName: FieldRef<"Provider", 'String'>
|
|
readonly passwordFieldName: FieldRef<"Provider", 'String'>
|
|
readonly isActive: FieldRef<"Provider", 'Boolean'>
|
|
readonly createdAt: FieldRef<"Provider", 'DateTime'>
|
|
readonly updatedAt: FieldRef<"Provider", 'DateTime'>
|
|
}
|
|
|
|
|
|
// Custom InputTypes
|
|
/**
|
|
* Provider findUnique
|
|
*/
|
|
export type ProviderFindUniqueArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the Provider
|
|
*/
|
|
select?: ProviderSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: ProviderInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which Provider to fetch.
|
|
*/
|
|
where: ProviderWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* Provider findUniqueOrThrow
|
|
*/
|
|
export type ProviderFindUniqueOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the Provider
|
|
*/
|
|
select?: ProviderSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: ProviderInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which Provider to fetch.
|
|
*/
|
|
where: ProviderWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* Provider findFirst
|
|
*/
|
|
export type ProviderFindFirstArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the Provider
|
|
*/
|
|
select?: ProviderSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: ProviderInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which Provider to fetch.
|
|
*/
|
|
where?: ProviderWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of Providers to fetch.
|
|
*/
|
|
orderBy?: ProviderOrderByWithRelationInput | ProviderOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for searching for Providers.
|
|
*/
|
|
cursor?: ProviderWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` Providers from the position of the cursor.
|
|
*/
|
|
take?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Skip the first `n` Providers.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
*
|
|
* Filter by unique combinations of Providers.
|
|
*/
|
|
distinct?: ProviderScalarFieldEnum | ProviderScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* Provider findFirstOrThrow
|
|
*/
|
|
export type ProviderFindFirstOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the Provider
|
|
*/
|
|
select?: ProviderSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: ProviderInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which Provider to fetch.
|
|
*/
|
|
where?: ProviderWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of Providers to fetch.
|
|
*/
|
|
orderBy?: ProviderOrderByWithRelationInput | ProviderOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for searching for Providers.
|
|
*/
|
|
cursor?: ProviderWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` Providers from the position of the cursor.
|
|
*/
|
|
take?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Skip the first `n` Providers.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
*
|
|
* Filter by unique combinations of Providers.
|
|
*/
|
|
distinct?: ProviderScalarFieldEnum | ProviderScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* Provider findMany
|
|
*/
|
|
export type ProviderFindManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the Provider
|
|
*/
|
|
select?: ProviderSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: ProviderInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which Providers to fetch.
|
|
*/
|
|
where?: ProviderWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of Providers to fetch.
|
|
*/
|
|
orderBy?: ProviderOrderByWithRelationInput | ProviderOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for listing Providers.
|
|
*/
|
|
cursor?: ProviderWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` Providers from the position of the cursor.
|
|
*/
|
|
take?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Skip the first `n` Providers.
|
|
*/
|
|
skip?: number
|
|
distinct?: ProviderScalarFieldEnum | ProviderScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* Provider create
|
|
*/
|
|
export type ProviderCreateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the Provider
|
|
*/
|
|
select?: ProviderSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: ProviderInclude<ExtArgs> | null
|
|
/**
|
|
* The data needed to create a Provider.
|
|
*/
|
|
data: XOR<ProviderCreateInput, ProviderUncheckedCreateInput>
|
|
}
|
|
|
|
/**
|
|
* Provider createMany
|
|
*/
|
|
export type ProviderCreateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* The data used to create many Providers.
|
|
*/
|
|
data: ProviderCreateManyInput | ProviderCreateManyInput[]
|
|
skipDuplicates?: boolean
|
|
}
|
|
|
|
/**
|
|
* Provider update
|
|
*/
|
|
export type ProviderUpdateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the Provider
|
|
*/
|
|
select?: ProviderSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: ProviderInclude<ExtArgs> | null
|
|
/**
|
|
* The data needed to update a Provider.
|
|
*/
|
|
data: XOR<ProviderUpdateInput, ProviderUncheckedUpdateInput>
|
|
/**
|
|
* Choose, which Provider to update.
|
|
*/
|
|
where: ProviderWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* Provider updateMany
|
|
*/
|
|
export type ProviderUpdateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* The data used to update Providers.
|
|
*/
|
|
data: XOR<ProviderUpdateManyMutationInput, ProviderUncheckedUpdateManyInput>
|
|
/**
|
|
* Filter which Providers to update
|
|
*/
|
|
where?: ProviderWhereInput
|
|
}
|
|
|
|
/**
|
|
* Provider upsert
|
|
*/
|
|
export type ProviderUpsertArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the Provider
|
|
*/
|
|
select?: ProviderSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: ProviderInclude<ExtArgs> | null
|
|
/**
|
|
* The filter to search for the Provider to update in case it exists.
|
|
*/
|
|
where: ProviderWhereUniqueInput
|
|
/**
|
|
* In case the Provider found by the `where` argument doesn't exist, create a new Provider with this data.
|
|
*/
|
|
create: XOR<ProviderCreateInput, ProviderUncheckedCreateInput>
|
|
/**
|
|
* In case the Provider was found with the provided `where` argument, update it with this data.
|
|
*/
|
|
update: XOR<ProviderUpdateInput, ProviderUncheckedUpdateInput>
|
|
}
|
|
|
|
/**
|
|
* Provider delete
|
|
*/
|
|
export type ProviderDeleteArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the Provider
|
|
*/
|
|
select?: ProviderSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: ProviderInclude<ExtArgs> | null
|
|
/**
|
|
* Filter which Provider to delete.
|
|
*/
|
|
where: ProviderWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* Provider deleteMany
|
|
*/
|
|
export type ProviderDeleteManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Filter which Providers to delete
|
|
*/
|
|
where?: ProviderWhereInput
|
|
}
|
|
|
|
/**
|
|
* Provider.tariffs
|
|
*/
|
|
export type Provider$tariffsArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the Tariff
|
|
*/
|
|
select?: TariffSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: TariffInclude<ExtArgs> | null
|
|
where?: TariffWhereInput
|
|
orderBy?: TariffOrderByWithRelationInput | TariffOrderByWithRelationInput[]
|
|
cursor?: TariffWhereUniqueInput
|
|
take?: number
|
|
skip?: number
|
|
distinct?: TariffScalarFieldEnum | TariffScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* Provider.contracts
|
|
*/
|
|
export type Provider$contractsArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the Contract
|
|
*/
|
|
select?: ContractSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: ContractInclude<ExtArgs> | null
|
|
where?: ContractWhereInput
|
|
orderBy?: ContractOrderByWithRelationInput | ContractOrderByWithRelationInput[]
|
|
cursor?: ContractWhereUniqueInput
|
|
take?: number
|
|
skip?: number
|
|
distinct?: ContractScalarFieldEnum | ContractScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* Provider without action
|
|
*/
|
|
export type ProviderDefaultArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the Provider
|
|
*/
|
|
select?: ProviderSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: ProviderInclude<ExtArgs> | null
|
|
}
|
|
|
|
|
|
/**
|
|
* Model Tariff
|
|
*/
|
|
|
|
export type AggregateTariff = {
|
|
_count: TariffCountAggregateOutputType | null
|
|
_avg: TariffAvgAggregateOutputType | null
|
|
_sum: TariffSumAggregateOutputType | null
|
|
_min: TariffMinAggregateOutputType | null
|
|
_max: TariffMaxAggregateOutputType | null
|
|
}
|
|
|
|
export type TariffAvgAggregateOutputType = {
|
|
id: number | null
|
|
providerId: number | null
|
|
}
|
|
|
|
export type TariffSumAggregateOutputType = {
|
|
id: number | null
|
|
providerId: number | null
|
|
}
|
|
|
|
export type TariffMinAggregateOutputType = {
|
|
id: number | null
|
|
providerId: number | null
|
|
name: string | null
|
|
isActive: boolean | null
|
|
createdAt: Date | null
|
|
updatedAt: Date | null
|
|
}
|
|
|
|
export type TariffMaxAggregateOutputType = {
|
|
id: number | null
|
|
providerId: number | null
|
|
name: string | null
|
|
isActive: boolean | null
|
|
createdAt: Date | null
|
|
updatedAt: Date | null
|
|
}
|
|
|
|
export type TariffCountAggregateOutputType = {
|
|
id: number
|
|
providerId: number
|
|
name: number
|
|
isActive: number
|
|
createdAt: number
|
|
updatedAt: number
|
|
_all: number
|
|
}
|
|
|
|
|
|
export type TariffAvgAggregateInputType = {
|
|
id?: true
|
|
providerId?: true
|
|
}
|
|
|
|
export type TariffSumAggregateInputType = {
|
|
id?: true
|
|
providerId?: true
|
|
}
|
|
|
|
export type TariffMinAggregateInputType = {
|
|
id?: true
|
|
providerId?: true
|
|
name?: true
|
|
isActive?: true
|
|
createdAt?: true
|
|
updatedAt?: true
|
|
}
|
|
|
|
export type TariffMaxAggregateInputType = {
|
|
id?: true
|
|
providerId?: true
|
|
name?: true
|
|
isActive?: true
|
|
createdAt?: true
|
|
updatedAt?: true
|
|
}
|
|
|
|
export type TariffCountAggregateInputType = {
|
|
id?: true
|
|
providerId?: true
|
|
name?: true
|
|
isActive?: true
|
|
createdAt?: true
|
|
updatedAt?: true
|
|
_all?: true
|
|
}
|
|
|
|
export type TariffAggregateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Filter which Tariff to aggregate.
|
|
*/
|
|
where?: TariffWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of Tariffs to fetch.
|
|
*/
|
|
orderBy?: TariffOrderByWithRelationInput | TariffOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the start position
|
|
*/
|
|
cursor?: TariffWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` Tariffs from the position of the cursor.
|
|
*/
|
|
take?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Skip the first `n` Tariffs.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Count returned Tariffs
|
|
**/
|
|
_count?: true | TariffCountAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to average
|
|
**/
|
|
_avg?: TariffAvgAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to sum
|
|
**/
|
|
_sum?: TariffSumAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to find the minimum value
|
|
**/
|
|
_min?: TariffMinAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to find the maximum value
|
|
**/
|
|
_max?: TariffMaxAggregateInputType
|
|
}
|
|
|
|
export type GetTariffAggregateType<T extends TariffAggregateArgs> = {
|
|
[P in keyof T & keyof AggregateTariff]: P extends '_count' | 'count'
|
|
? T[P] extends true
|
|
? number
|
|
: GetScalarType<T[P], AggregateTariff[P]>
|
|
: GetScalarType<T[P], AggregateTariff[P]>
|
|
}
|
|
|
|
|
|
|
|
|
|
export type TariffGroupByArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
where?: TariffWhereInput
|
|
orderBy?: TariffOrderByWithAggregationInput | TariffOrderByWithAggregationInput[]
|
|
by: TariffScalarFieldEnum[] | TariffScalarFieldEnum
|
|
having?: TariffScalarWhereWithAggregatesInput
|
|
take?: number
|
|
skip?: number
|
|
_count?: TariffCountAggregateInputType | true
|
|
_avg?: TariffAvgAggregateInputType
|
|
_sum?: TariffSumAggregateInputType
|
|
_min?: TariffMinAggregateInputType
|
|
_max?: TariffMaxAggregateInputType
|
|
}
|
|
|
|
export type TariffGroupByOutputType = {
|
|
id: number
|
|
providerId: number
|
|
name: string
|
|
isActive: boolean
|
|
createdAt: Date
|
|
updatedAt: Date
|
|
_count: TariffCountAggregateOutputType | null
|
|
_avg: TariffAvgAggregateOutputType | null
|
|
_sum: TariffSumAggregateOutputType | null
|
|
_min: TariffMinAggregateOutputType | null
|
|
_max: TariffMaxAggregateOutputType | null
|
|
}
|
|
|
|
type GetTariffGroupByPayload<T extends TariffGroupByArgs> = Prisma.PrismaPromise<
|
|
Array<
|
|
PickEnumerable<TariffGroupByOutputType, T['by']> &
|
|
{
|
|
[P in ((keyof T) & (keyof TariffGroupByOutputType))]: P extends '_count'
|
|
? T[P] extends boolean
|
|
? number
|
|
: GetScalarType<T[P], TariffGroupByOutputType[P]>
|
|
: GetScalarType<T[P], TariffGroupByOutputType[P]>
|
|
}
|
|
>
|
|
>
|
|
|
|
|
|
export type TariffSelect<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
|
|
id?: boolean
|
|
providerId?: boolean
|
|
name?: boolean
|
|
isActive?: boolean
|
|
createdAt?: boolean
|
|
updatedAt?: boolean
|
|
provider?: boolean | ProviderDefaultArgs<ExtArgs>
|
|
contracts?: boolean | Tariff$contractsArgs<ExtArgs>
|
|
_count?: boolean | TariffCountOutputTypeDefaultArgs<ExtArgs>
|
|
}, ExtArgs["result"]["tariff"]>
|
|
|
|
|
|
export type TariffSelectScalar = {
|
|
id?: boolean
|
|
providerId?: boolean
|
|
name?: boolean
|
|
isActive?: boolean
|
|
createdAt?: boolean
|
|
updatedAt?: boolean
|
|
}
|
|
|
|
export type TariffInclude<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
provider?: boolean | ProviderDefaultArgs<ExtArgs>
|
|
contracts?: boolean | Tariff$contractsArgs<ExtArgs>
|
|
_count?: boolean | TariffCountOutputTypeDefaultArgs<ExtArgs>
|
|
}
|
|
|
|
export type $TariffPayload<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
name: "Tariff"
|
|
objects: {
|
|
provider: Prisma.$ProviderPayload<ExtArgs>
|
|
contracts: Prisma.$ContractPayload<ExtArgs>[]
|
|
}
|
|
scalars: $Extensions.GetPayloadResult<{
|
|
id: number
|
|
providerId: number
|
|
name: string
|
|
isActive: boolean
|
|
createdAt: Date
|
|
updatedAt: Date
|
|
}, ExtArgs["result"]["tariff"]>
|
|
composites: {}
|
|
}
|
|
|
|
type TariffGetPayload<S extends boolean | null | undefined | TariffDefaultArgs> = $Result.GetResult<Prisma.$TariffPayload, S>
|
|
|
|
type TariffCountArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> =
|
|
Omit<TariffFindManyArgs, 'select' | 'include' | 'distinct'> & {
|
|
select?: TariffCountAggregateInputType | true
|
|
}
|
|
|
|
export interface TariffDelegate<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> {
|
|
[K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['Tariff'], meta: { name: 'Tariff' } }
|
|
/**
|
|
* Find zero or one Tariff that matches the filter.
|
|
* @param {TariffFindUniqueArgs} args - Arguments to find a Tariff
|
|
* @example
|
|
* // Get one Tariff
|
|
* const tariff = await prisma.tariff.findUnique({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findUnique<T extends TariffFindUniqueArgs>(args: SelectSubset<T, TariffFindUniqueArgs<ExtArgs>>): Prisma__TariffClient<$Result.GetResult<Prisma.$TariffPayload<ExtArgs>, T, "findUnique"> | null, null, ExtArgs>
|
|
|
|
/**
|
|
* Find one Tariff that matches the filter or throw an error with `error.code='P2025'`
|
|
* if no matches were found.
|
|
* @param {TariffFindUniqueOrThrowArgs} args - Arguments to find a Tariff
|
|
* @example
|
|
* // Get one Tariff
|
|
* const tariff = await prisma.tariff.findUniqueOrThrow({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findUniqueOrThrow<T extends TariffFindUniqueOrThrowArgs>(args: SelectSubset<T, TariffFindUniqueOrThrowArgs<ExtArgs>>): Prisma__TariffClient<$Result.GetResult<Prisma.$TariffPayload<ExtArgs>, T, "findUniqueOrThrow">, never, ExtArgs>
|
|
|
|
/**
|
|
* Find the first Tariff that matches the filter.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {TariffFindFirstArgs} args - Arguments to find a Tariff
|
|
* @example
|
|
* // Get one Tariff
|
|
* const tariff = await prisma.tariff.findFirst({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findFirst<T extends TariffFindFirstArgs>(args?: SelectSubset<T, TariffFindFirstArgs<ExtArgs>>): Prisma__TariffClient<$Result.GetResult<Prisma.$TariffPayload<ExtArgs>, T, "findFirst"> | null, null, ExtArgs>
|
|
|
|
/**
|
|
* Find the first Tariff that matches the filter or
|
|
* throw `PrismaKnownClientError` with `P2025` code if no matches were found.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {TariffFindFirstOrThrowArgs} args - Arguments to find a Tariff
|
|
* @example
|
|
* // Get one Tariff
|
|
* const tariff = await prisma.tariff.findFirstOrThrow({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findFirstOrThrow<T extends TariffFindFirstOrThrowArgs>(args?: SelectSubset<T, TariffFindFirstOrThrowArgs<ExtArgs>>): Prisma__TariffClient<$Result.GetResult<Prisma.$TariffPayload<ExtArgs>, T, "findFirstOrThrow">, never, ExtArgs>
|
|
|
|
/**
|
|
* Find zero or more Tariffs that matches the filter.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {TariffFindManyArgs} args - Arguments to filter and select certain fields only.
|
|
* @example
|
|
* // Get all Tariffs
|
|
* const tariffs = await prisma.tariff.findMany()
|
|
*
|
|
* // Get first 10 Tariffs
|
|
* const tariffs = await prisma.tariff.findMany({ take: 10 })
|
|
*
|
|
* // Only select the `id`
|
|
* const tariffWithIdOnly = await prisma.tariff.findMany({ select: { id: true } })
|
|
*
|
|
*/
|
|
findMany<T extends TariffFindManyArgs>(args?: SelectSubset<T, TariffFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$TariffPayload<ExtArgs>, T, "findMany">>
|
|
|
|
/**
|
|
* Create a Tariff.
|
|
* @param {TariffCreateArgs} args - Arguments to create a Tariff.
|
|
* @example
|
|
* // Create one Tariff
|
|
* const Tariff = await prisma.tariff.create({
|
|
* data: {
|
|
* // ... data to create a Tariff
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
create<T extends TariffCreateArgs>(args: SelectSubset<T, TariffCreateArgs<ExtArgs>>): Prisma__TariffClient<$Result.GetResult<Prisma.$TariffPayload<ExtArgs>, T, "create">, never, ExtArgs>
|
|
|
|
/**
|
|
* Create many Tariffs.
|
|
* @param {TariffCreateManyArgs} args - Arguments to create many Tariffs.
|
|
* @example
|
|
* // Create many Tariffs
|
|
* const tariff = await prisma.tariff.createMany({
|
|
* data: [
|
|
* // ... provide data here
|
|
* ]
|
|
* })
|
|
*
|
|
*/
|
|
createMany<T extends TariffCreateManyArgs>(args?: SelectSubset<T, TariffCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
|
|
|
|
/**
|
|
* Delete a Tariff.
|
|
* @param {TariffDeleteArgs} args - Arguments to delete one Tariff.
|
|
* @example
|
|
* // Delete one Tariff
|
|
* const Tariff = await prisma.tariff.delete({
|
|
* where: {
|
|
* // ... filter to delete one Tariff
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
delete<T extends TariffDeleteArgs>(args: SelectSubset<T, TariffDeleteArgs<ExtArgs>>): Prisma__TariffClient<$Result.GetResult<Prisma.$TariffPayload<ExtArgs>, T, "delete">, never, ExtArgs>
|
|
|
|
/**
|
|
* Update one Tariff.
|
|
* @param {TariffUpdateArgs} args - Arguments to update one Tariff.
|
|
* @example
|
|
* // Update one Tariff
|
|
* const tariff = await prisma.tariff.update({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* },
|
|
* data: {
|
|
* // ... provide data here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
update<T extends TariffUpdateArgs>(args: SelectSubset<T, TariffUpdateArgs<ExtArgs>>): Prisma__TariffClient<$Result.GetResult<Prisma.$TariffPayload<ExtArgs>, T, "update">, never, ExtArgs>
|
|
|
|
/**
|
|
* Delete zero or more Tariffs.
|
|
* @param {TariffDeleteManyArgs} args - Arguments to filter Tariffs to delete.
|
|
* @example
|
|
* // Delete a few Tariffs
|
|
* const { count } = await prisma.tariff.deleteMany({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
deleteMany<T extends TariffDeleteManyArgs>(args?: SelectSubset<T, TariffDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
|
|
|
|
/**
|
|
* Update zero or more Tariffs.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {TariffUpdateManyArgs} args - Arguments to update one or more rows.
|
|
* @example
|
|
* // Update many Tariffs
|
|
* const tariff = await prisma.tariff.updateMany({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* },
|
|
* data: {
|
|
* // ... provide data here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
updateMany<T extends TariffUpdateManyArgs>(args: SelectSubset<T, TariffUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
|
|
|
|
/**
|
|
* Create or update one Tariff.
|
|
* @param {TariffUpsertArgs} args - Arguments to update or create a Tariff.
|
|
* @example
|
|
* // Update or create a Tariff
|
|
* const tariff = await prisma.tariff.upsert({
|
|
* create: {
|
|
* // ... data to create a Tariff
|
|
* },
|
|
* update: {
|
|
* // ... in case it already exists, update
|
|
* },
|
|
* where: {
|
|
* // ... the filter for the Tariff we want to update
|
|
* }
|
|
* })
|
|
*/
|
|
upsert<T extends TariffUpsertArgs>(args: SelectSubset<T, TariffUpsertArgs<ExtArgs>>): Prisma__TariffClient<$Result.GetResult<Prisma.$TariffPayload<ExtArgs>, T, "upsert">, never, ExtArgs>
|
|
|
|
|
|
/**
|
|
* Count the number of Tariffs.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {TariffCountArgs} args - Arguments to filter Tariffs to count.
|
|
* @example
|
|
* // Count the number of Tariffs
|
|
* const count = await prisma.tariff.count({
|
|
* where: {
|
|
* // ... the filter for the Tariffs we want to count
|
|
* }
|
|
* })
|
|
**/
|
|
count<T extends TariffCountArgs>(
|
|
args?: Subset<T, TariffCountArgs>,
|
|
): Prisma.PrismaPromise<
|
|
T extends $Utils.Record<'select', any>
|
|
? T['select'] extends true
|
|
? number
|
|
: GetScalarType<T['select'], TariffCountAggregateOutputType>
|
|
: number
|
|
>
|
|
|
|
/**
|
|
* Allows you to perform aggregations operations on a Tariff.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {TariffAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
|
|
* @example
|
|
* // Ordered by age ascending
|
|
* // Where email contains prisma.io
|
|
* // Limited to the 10 users
|
|
* const aggregations = await prisma.user.aggregate({
|
|
* _avg: {
|
|
* age: true,
|
|
* },
|
|
* where: {
|
|
* email: {
|
|
* contains: "prisma.io",
|
|
* },
|
|
* },
|
|
* orderBy: {
|
|
* age: "asc",
|
|
* },
|
|
* take: 10,
|
|
* })
|
|
**/
|
|
aggregate<T extends TariffAggregateArgs>(args: Subset<T, TariffAggregateArgs>): Prisma.PrismaPromise<GetTariffAggregateType<T>>
|
|
|
|
/**
|
|
* Group by Tariff.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {TariffGroupByArgs} args - Group by arguments.
|
|
* @example
|
|
* // Group by city, order by createdAt, get count
|
|
* const result = await prisma.user.groupBy({
|
|
* by: ['city', 'createdAt'],
|
|
* orderBy: {
|
|
* createdAt: true
|
|
* },
|
|
* _count: {
|
|
* _all: true
|
|
* },
|
|
* })
|
|
*
|
|
**/
|
|
groupBy<
|
|
T extends TariffGroupByArgs,
|
|
HasSelectOrTake extends Or<
|
|
Extends<'skip', Keys<T>>,
|
|
Extends<'take', Keys<T>>
|
|
>,
|
|
OrderByArg extends True extends HasSelectOrTake
|
|
? { orderBy: TariffGroupByArgs['orderBy'] }
|
|
: { orderBy?: TariffGroupByArgs['orderBy'] },
|
|
OrderFields extends ExcludeUnderscoreKeys<Keys<MaybeTupleToUnion<T['orderBy']>>>,
|
|
ByFields extends MaybeTupleToUnion<T['by']>,
|
|
ByValid extends Has<ByFields, OrderFields>,
|
|
HavingFields extends GetHavingFields<T['having']>,
|
|
HavingValid extends Has<ByFields, HavingFields>,
|
|
ByEmpty extends T['by'] extends never[] ? True : False,
|
|
InputErrors extends ByEmpty extends True
|
|
? `Error: "by" must not be empty.`
|
|
: HavingValid extends False
|
|
? {
|
|
[P in HavingFields]: P extends ByFields
|
|
? never
|
|
: P extends string
|
|
? `Error: Field "${P}" used in "having" needs to be provided in "by".`
|
|
: [
|
|
Error,
|
|
'Field ',
|
|
P,
|
|
` in "having" needs to be provided in "by"`,
|
|
]
|
|
}[HavingFields]
|
|
: 'take' extends Keys<T>
|
|
? 'orderBy' extends Keys<T>
|
|
? ByValid extends True
|
|
? {}
|
|
: {
|
|
[P in OrderFields]: P extends ByFields
|
|
? never
|
|
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
|
|
}[OrderFields]
|
|
: 'Error: If you provide "take", you also need to provide "orderBy"'
|
|
: 'skip' extends Keys<T>
|
|
? 'orderBy' extends Keys<T>
|
|
? ByValid extends True
|
|
? {}
|
|
: {
|
|
[P in OrderFields]: P extends ByFields
|
|
? never
|
|
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
|
|
}[OrderFields]
|
|
: 'Error: If you provide "skip", you also need to provide "orderBy"'
|
|
: ByValid extends True
|
|
? {}
|
|
: {
|
|
[P in OrderFields]: P extends ByFields
|
|
? never
|
|
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
|
|
}[OrderFields]
|
|
>(args: SubsetIntersection<T, TariffGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetTariffGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
|
|
/**
|
|
* Fields of the Tariff model
|
|
*/
|
|
readonly fields: TariffFieldRefs;
|
|
}
|
|
|
|
/**
|
|
* The delegate class that acts as a "Promise-like" for Tariff.
|
|
* Why is this prefixed with `Prisma__`?
|
|
* Because we want to prevent naming conflicts as mentioned in
|
|
* https://github.com/prisma/prisma-client-js/issues/707
|
|
*/
|
|
export interface Prisma__TariffClient<T, Null = never, ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> extends Prisma.PrismaPromise<T> {
|
|
readonly [Symbol.toStringTag]: "PrismaPromise"
|
|
provider<T extends ProviderDefaultArgs<ExtArgs> = {}>(args?: Subset<T, ProviderDefaultArgs<ExtArgs>>): Prisma__ProviderClient<$Result.GetResult<Prisma.$ProviderPayload<ExtArgs>, T, "findUniqueOrThrow"> | Null, Null, ExtArgs>
|
|
contracts<T extends Tariff$contractsArgs<ExtArgs> = {}>(args?: Subset<T, Tariff$contractsArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$ContractPayload<ExtArgs>, T, "findMany"> | Null>
|
|
/**
|
|
* Attaches callbacks for the resolution and/or rejection of the Promise.
|
|
* @param onfulfilled The callback to execute when the Promise is resolved.
|
|
* @param onrejected The callback to execute when the Promise is rejected.
|
|
* @returns A Promise for the completion of which ever callback is executed.
|
|
*/
|
|
then<TResult1 = T, TResult2 = never>(onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined | null): $Utils.JsPromise<TResult1 | TResult2>
|
|
/**
|
|
* Attaches a callback for only the rejection of the Promise.
|
|
* @param onrejected The callback to execute when the Promise is rejected.
|
|
* @returns A Promise for the completion of the callback.
|
|
*/
|
|
catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): $Utils.JsPromise<T | TResult>
|
|
/**
|
|
* Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
|
|
* resolved value cannot be modified from the callback.
|
|
* @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
|
|
* @returns A Promise for the completion of the callback.
|
|
*/
|
|
finally(onfinally?: (() => void) | undefined | null): $Utils.JsPromise<T>
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
* Fields of the Tariff model
|
|
*/
|
|
interface TariffFieldRefs {
|
|
readonly id: FieldRef<"Tariff", 'Int'>
|
|
readonly providerId: FieldRef<"Tariff", 'Int'>
|
|
readonly name: FieldRef<"Tariff", 'String'>
|
|
readonly isActive: FieldRef<"Tariff", 'Boolean'>
|
|
readonly createdAt: FieldRef<"Tariff", 'DateTime'>
|
|
readonly updatedAt: FieldRef<"Tariff", 'DateTime'>
|
|
}
|
|
|
|
|
|
// Custom InputTypes
|
|
/**
|
|
* Tariff findUnique
|
|
*/
|
|
export type TariffFindUniqueArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the Tariff
|
|
*/
|
|
select?: TariffSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: TariffInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which Tariff to fetch.
|
|
*/
|
|
where: TariffWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* Tariff findUniqueOrThrow
|
|
*/
|
|
export type TariffFindUniqueOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the Tariff
|
|
*/
|
|
select?: TariffSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: TariffInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which Tariff to fetch.
|
|
*/
|
|
where: TariffWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* Tariff findFirst
|
|
*/
|
|
export type TariffFindFirstArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the Tariff
|
|
*/
|
|
select?: TariffSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: TariffInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which Tariff to fetch.
|
|
*/
|
|
where?: TariffWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of Tariffs to fetch.
|
|
*/
|
|
orderBy?: TariffOrderByWithRelationInput | TariffOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for searching for Tariffs.
|
|
*/
|
|
cursor?: TariffWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` Tariffs from the position of the cursor.
|
|
*/
|
|
take?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Skip the first `n` Tariffs.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
*
|
|
* Filter by unique combinations of Tariffs.
|
|
*/
|
|
distinct?: TariffScalarFieldEnum | TariffScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* Tariff findFirstOrThrow
|
|
*/
|
|
export type TariffFindFirstOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the Tariff
|
|
*/
|
|
select?: TariffSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: TariffInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which Tariff to fetch.
|
|
*/
|
|
where?: TariffWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of Tariffs to fetch.
|
|
*/
|
|
orderBy?: TariffOrderByWithRelationInput | TariffOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for searching for Tariffs.
|
|
*/
|
|
cursor?: TariffWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` Tariffs from the position of the cursor.
|
|
*/
|
|
take?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Skip the first `n` Tariffs.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
*
|
|
* Filter by unique combinations of Tariffs.
|
|
*/
|
|
distinct?: TariffScalarFieldEnum | TariffScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* Tariff findMany
|
|
*/
|
|
export type TariffFindManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the Tariff
|
|
*/
|
|
select?: TariffSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: TariffInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which Tariffs to fetch.
|
|
*/
|
|
where?: TariffWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of Tariffs to fetch.
|
|
*/
|
|
orderBy?: TariffOrderByWithRelationInput | TariffOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for listing Tariffs.
|
|
*/
|
|
cursor?: TariffWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` Tariffs from the position of the cursor.
|
|
*/
|
|
take?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Skip the first `n` Tariffs.
|
|
*/
|
|
skip?: number
|
|
distinct?: TariffScalarFieldEnum | TariffScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* Tariff create
|
|
*/
|
|
export type TariffCreateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the Tariff
|
|
*/
|
|
select?: TariffSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: TariffInclude<ExtArgs> | null
|
|
/**
|
|
* The data needed to create a Tariff.
|
|
*/
|
|
data: XOR<TariffCreateInput, TariffUncheckedCreateInput>
|
|
}
|
|
|
|
/**
|
|
* Tariff createMany
|
|
*/
|
|
export type TariffCreateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* The data used to create many Tariffs.
|
|
*/
|
|
data: TariffCreateManyInput | TariffCreateManyInput[]
|
|
skipDuplicates?: boolean
|
|
}
|
|
|
|
/**
|
|
* Tariff update
|
|
*/
|
|
export type TariffUpdateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the Tariff
|
|
*/
|
|
select?: TariffSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: TariffInclude<ExtArgs> | null
|
|
/**
|
|
* The data needed to update a Tariff.
|
|
*/
|
|
data: XOR<TariffUpdateInput, TariffUncheckedUpdateInput>
|
|
/**
|
|
* Choose, which Tariff to update.
|
|
*/
|
|
where: TariffWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* Tariff updateMany
|
|
*/
|
|
export type TariffUpdateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* The data used to update Tariffs.
|
|
*/
|
|
data: XOR<TariffUpdateManyMutationInput, TariffUncheckedUpdateManyInput>
|
|
/**
|
|
* Filter which Tariffs to update
|
|
*/
|
|
where?: TariffWhereInput
|
|
}
|
|
|
|
/**
|
|
* Tariff upsert
|
|
*/
|
|
export type TariffUpsertArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the Tariff
|
|
*/
|
|
select?: TariffSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: TariffInclude<ExtArgs> | null
|
|
/**
|
|
* The filter to search for the Tariff to update in case it exists.
|
|
*/
|
|
where: TariffWhereUniqueInput
|
|
/**
|
|
* In case the Tariff found by the `where` argument doesn't exist, create a new Tariff with this data.
|
|
*/
|
|
create: XOR<TariffCreateInput, TariffUncheckedCreateInput>
|
|
/**
|
|
* In case the Tariff was found with the provided `where` argument, update it with this data.
|
|
*/
|
|
update: XOR<TariffUpdateInput, TariffUncheckedUpdateInput>
|
|
}
|
|
|
|
/**
|
|
* Tariff delete
|
|
*/
|
|
export type TariffDeleteArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the Tariff
|
|
*/
|
|
select?: TariffSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: TariffInclude<ExtArgs> | null
|
|
/**
|
|
* Filter which Tariff to delete.
|
|
*/
|
|
where: TariffWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* Tariff deleteMany
|
|
*/
|
|
export type TariffDeleteManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Filter which Tariffs to delete
|
|
*/
|
|
where?: TariffWhereInput
|
|
}
|
|
|
|
/**
|
|
* Tariff.contracts
|
|
*/
|
|
export type Tariff$contractsArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the Contract
|
|
*/
|
|
select?: ContractSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: ContractInclude<ExtArgs> | null
|
|
where?: ContractWhereInput
|
|
orderBy?: ContractOrderByWithRelationInput | ContractOrderByWithRelationInput[]
|
|
cursor?: ContractWhereUniqueInput
|
|
take?: number
|
|
skip?: number
|
|
distinct?: ContractScalarFieldEnum | ContractScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* Tariff without action
|
|
*/
|
|
export type TariffDefaultArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the Tariff
|
|
*/
|
|
select?: TariffSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: TariffInclude<ExtArgs> | null
|
|
}
|
|
|
|
|
|
/**
|
|
* Model ContractCategory
|
|
*/
|
|
|
|
export type AggregateContractCategory = {
|
|
_count: ContractCategoryCountAggregateOutputType | null
|
|
_avg: ContractCategoryAvgAggregateOutputType | null
|
|
_sum: ContractCategorySumAggregateOutputType | null
|
|
_min: ContractCategoryMinAggregateOutputType | null
|
|
_max: ContractCategoryMaxAggregateOutputType | null
|
|
}
|
|
|
|
export type ContractCategoryAvgAggregateOutputType = {
|
|
id: number | null
|
|
sortOrder: number | null
|
|
}
|
|
|
|
export type ContractCategorySumAggregateOutputType = {
|
|
id: number | null
|
|
sortOrder: number | null
|
|
}
|
|
|
|
export type ContractCategoryMinAggregateOutputType = {
|
|
id: number | null
|
|
code: string | null
|
|
name: string | null
|
|
icon: string | null
|
|
color: string | null
|
|
sortOrder: number | null
|
|
isActive: boolean | null
|
|
createdAt: Date | null
|
|
updatedAt: Date | null
|
|
}
|
|
|
|
export type ContractCategoryMaxAggregateOutputType = {
|
|
id: number | null
|
|
code: string | null
|
|
name: string | null
|
|
icon: string | null
|
|
color: string | null
|
|
sortOrder: number | null
|
|
isActive: boolean | null
|
|
createdAt: Date | null
|
|
updatedAt: Date | null
|
|
}
|
|
|
|
export type ContractCategoryCountAggregateOutputType = {
|
|
id: number
|
|
code: number
|
|
name: number
|
|
icon: number
|
|
color: number
|
|
sortOrder: number
|
|
isActive: number
|
|
createdAt: number
|
|
updatedAt: number
|
|
_all: number
|
|
}
|
|
|
|
|
|
export type ContractCategoryAvgAggregateInputType = {
|
|
id?: true
|
|
sortOrder?: true
|
|
}
|
|
|
|
export type ContractCategorySumAggregateInputType = {
|
|
id?: true
|
|
sortOrder?: true
|
|
}
|
|
|
|
export type ContractCategoryMinAggregateInputType = {
|
|
id?: true
|
|
code?: true
|
|
name?: true
|
|
icon?: true
|
|
color?: true
|
|
sortOrder?: true
|
|
isActive?: true
|
|
createdAt?: true
|
|
updatedAt?: true
|
|
}
|
|
|
|
export type ContractCategoryMaxAggregateInputType = {
|
|
id?: true
|
|
code?: true
|
|
name?: true
|
|
icon?: true
|
|
color?: true
|
|
sortOrder?: true
|
|
isActive?: true
|
|
createdAt?: true
|
|
updatedAt?: true
|
|
}
|
|
|
|
export type ContractCategoryCountAggregateInputType = {
|
|
id?: true
|
|
code?: true
|
|
name?: true
|
|
icon?: true
|
|
color?: true
|
|
sortOrder?: true
|
|
isActive?: true
|
|
createdAt?: true
|
|
updatedAt?: true
|
|
_all?: true
|
|
}
|
|
|
|
export type ContractCategoryAggregateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Filter which ContractCategory to aggregate.
|
|
*/
|
|
where?: ContractCategoryWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of ContractCategories to fetch.
|
|
*/
|
|
orderBy?: ContractCategoryOrderByWithRelationInput | ContractCategoryOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the start position
|
|
*/
|
|
cursor?: ContractCategoryWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` ContractCategories from the position of the cursor.
|
|
*/
|
|
take?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Skip the first `n` ContractCategories.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Count returned ContractCategories
|
|
**/
|
|
_count?: true | ContractCategoryCountAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to average
|
|
**/
|
|
_avg?: ContractCategoryAvgAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to sum
|
|
**/
|
|
_sum?: ContractCategorySumAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to find the minimum value
|
|
**/
|
|
_min?: ContractCategoryMinAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to find the maximum value
|
|
**/
|
|
_max?: ContractCategoryMaxAggregateInputType
|
|
}
|
|
|
|
export type GetContractCategoryAggregateType<T extends ContractCategoryAggregateArgs> = {
|
|
[P in keyof T & keyof AggregateContractCategory]: P extends '_count' | 'count'
|
|
? T[P] extends true
|
|
? number
|
|
: GetScalarType<T[P], AggregateContractCategory[P]>
|
|
: GetScalarType<T[P], AggregateContractCategory[P]>
|
|
}
|
|
|
|
|
|
|
|
|
|
export type ContractCategoryGroupByArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
where?: ContractCategoryWhereInput
|
|
orderBy?: ContractCategoryOrderByWithAggregationInput | ContractCategoryOrderByWithAggregationInput[]
|
|
by: ContractCategoryScalarFieldEnum[] | ContractCategoryScalarFieldEnum
|
|
having?: ContractCategoryScalarWhereWithAggregatesInput
|
|
take?: number
|
|
skip?: number
|
|
_count?: ContractCategoryCountAggregateInputType | true
|
|
_avg?: ContractCategoryAvgAggregateInputType
|
|
_sum?: ContractCategorySumAggregateInputType
|
|
_min?: ContractCategoryMinAggregateInputType
|
|
_max?: ContractCategoryMaxAggregateInputType
|
|
}
|
|
|
|
export type ContractCategoryGroupByOutputType = {
|
|
id: number
|
|
code: string
|
|
name: string
|
|
icon: string | null
|
|
color: string | null
|
|
sortOrder: number
|
|
isActive: boolean
|
|
createdAt: Date
|
|
updatedAt: Date
|
|
_count: ContractCategoryCountAggregateOutputType | null
|
|
_avg: ContractCategoryAvgAggregateOutputType | null
|
|
_sum: ContractCategorySumAggregateOutputType | null
|
|
_min: ContractCategoryMinAggregateOutputType | null
|
|
_max: ContractCategoryMaxAggregateOutputType | null
|
|
}
|
|
|
|
type GetContractCategoryGroupByPayload<T extends ContractCategoryGroupByArgs> = Prisma.PrismaPromise<
|
|
Array<
|
|
PickEnumerable<ContractCategoryGroupByOutputType, T['by']> &
|
|
{
|
|
[P in ((keyof T) & (keyof ContractCategoryGroupByOutputType))]: P extends '_count'
|
|
? T[P] extends boolean
|
|
? number
|
|
: GetScalarType<T[P], ContractCategoryGroupByOutputType[P]>
|
|
: GetScalarType<T[P], ContractCategoryGroupByOutputType[P]>
|
|
}
|
|
>
|
|
>
|
|
|
|
|
|
export type ContractCategorySelect<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
|
|
id?: boolean
|
|
code?: boolean
|
|
name?: boolean
|
|
icon?: boolean
|
|
color?: boolean
|
|
sortOrder?: boolean
|
|
isActive?: boolean
|
|
createdAt?: boolean
|
|
updatedAt?: boolean
|
|
contracts?: boolean | ContractCategory$contractsArgs<ExtArgs>
|
|
_count?: boolean | ContractCategoryCountOutputTypeDefaultArgs<ExtArgs>
|
|
}, ExtArgs["result"]["contractCategory"]>
|
|
|
|
|
|
export type ContractCategorySelectScalar = {
|
|
id?: boolean
|
|
code?: boolean
|
|
name?: boolean
|
|
icon?: boolean
|
|
color?: boolean
|
|
sortOrder?: boolean
|
|
isActive?: boolean
|
|
createdAt?: boolean
|
|
updatedAt?: boolean
|
|
}
|
|
|
|
export type ContractCategoryInclude<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
contracts?: boolean | ContractCategory$contractsArgs<ExtArgs>
|
|
_count?: boolean | ContractCategoryCountOutputTypeDefaultArgs<ExtArgs>
|
|
}
|
|
|
|
export type $ContractCategoryPayload<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
name: "ContractCategory"
|
|
objects: {
|
|
contracts: Prisma.$ContractPayload<ExtArgs>[]
|
|
}
|
|
scalars: $Extensions.GetPayloadResult<{
|
|
id: number
|
|
code: string
|
|
name: string
|
|
icon: string | null
|
|
color: string | null
|
|
sortOrder: number
|
|
isActive: boolean
|
|
createdAt: Date
|
|
updatedAt: Date
|
|
}, ExtArgs["result"]["contractCategory"]>
|
|
composites: {}
|
|
}
|
|
|
|
type ContractCategoryGetPayload<S extends boolean | null | undefined | ContractCategoryDefaultArgs> = $Result.GetResult<Prisma.$ContractCategoryPayload, S>
|
|
|
|
type ContractCategoryCountArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> =
|
|
Omit<ContractCategoryFindManyArgs, 'select' | 'include' | 'distinct'> & {
|
|
select?: ContractCategoryCountAggregateInputType | true
|
|
}
|
|
|
|
export interface ContractCategoryDelegate<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> {
|
|
[K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['ContractCategory'], meta: { name: 'ContractCategory' } }
|
|
/**
|
|
* Find zero or one ContractCategory that matches the filter.
|
|
* @param {ContractCategoryFindUniqueArgs} args - Arguments to find a ContractCategory
|
|
* @example
|
|
* // Get one ContractCategory
|
|
* const contractCategory = await prisma.contractCategory.findUnique({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findUnique<T extends ContractCategoryFindUniqueArgs>(args: SelectSubset<T, ContractCategoryFindUniqueArgs<ExtArgs>>): Prisma__ContractCategoryClient<$Result.GetResult<Prisma.$ContractCategoryPayload<ExtArgs>, T, "findUnique"> | null, null, ExtArgs>
|
|
|
|
/**
|
|
* Find one ContractCategory that matches the filter or throw an error with `error.code='P2025'`
|
|
* if no matches were found.
|
|
* @param {ContractCategoryFindUniqueOrThrowArgs} args - Arguments to find a ContractCategory
|
|
* @example
|
|
* // Get one ContractCategory
|
|
* const contractCategory = await prisma.contractCategory.findUniqueOrThrow({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findUniqueOrThrow<T extends ContractCategoryFindUniqueOrThrowArgs>(args: SelectSubset<T, ContractCategoryFindUniqueOrThrowArgs<ExtArgs>>): Prisma__ContractCategoryClient<$Result.GetResult<Prisma.$ContractCategoryPayload<ExtArgs>, T, "findUniqueOrThrow">, never, ExtArgs>
|
|
|
|
/**
|
|
* Find the first ContractCategory that matches the filter.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {ContractCategoryFindFirstArgs} args - Arguments to find a ContractCategory
|
|
* @example
|
|
* // Get one ContractCategory
|
|
* const contractCategory = await prisma.contractCategory.findFirst({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findFirst<T extends ContractCategoryFindFirstArgs>(args?: SelectSubset<T, ContractCategoryFindFirstArgs<ExtArgs>>): Prisma__ContractCategoryClient<$Result.GetResult<Prisma.$ContractCategoryPayload<ExtArgs>, T, "findFirst"> | null, null, ExtArgs>
|
|
|
|
/**
|
|
* Find the first ContractCategory that matches the filter or
|
|
* throw `PrismaKnownClientError` with `P2025` code if no matches were found.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {ContractCategoryFindFirstOrThrowArgs} args - Arguments to find a ContractCategory
|
|
* @example
|
|
* // Get one ContractCategory
|
|
* const contractCategory = await prisma.contractCategory.findFirstOrThrow({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findFirstOrThrow<T extends ContractCategoryFindFirstOrThrowArgs>(args?: SelectSubset<T, ContractCategoryFindFirstOrThrowArgs<ExtArgs>>): Prisma__ContractCategoryClient<$Result.GetResult<Prisma.$ContractCategoryPayload<ExtArgs>, T, "findFirstOrThrow">, never, ExtArgs>
|
|
|
|
/**
|
|
* Find zero or more ContractCategories that matches the filter.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {ContractCategoryFindManyArgs} args - Arguments to filter and select certain fields only.
|
|
* @example
|
|
* // Get all ContractCategories
|
|
* const contractCategories = await prisma.contractCategory.findMany()
|
|
*
|
|
* // Get first 10 ContractCategories
|
|
* const contractCategories = await prisma.contractCategory.findMany({ take: 10 })
|
|
*
|
|
* // Only select the `id`
|
|
* const contractCategoryWithIdOnly = await prisma.contractCategory.findMany({ select: { id: true } })
|
|
*
|
|
*/
|
|
findMany<T extends ContractCategoryFindManyArgs>(args?: SelectSubset<T, ContractCategoryFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$ContractCategoryPayload<ExtArgs>, T, "findMany">>
|
|
|
|
/**
|
|
* Create a ContractCategory.
|
|
* @param {ContractCategoryCreateArgs} args - Arguments to create a ContractCategory.
|
|
* @example
|
|
* // Create one ContractCategory
|
|
* const ContractCategory = await prisma.contractCategory.create({
|
|
* data: {
|
|
* // ... data to create a ContractCategory
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
create<T extends ContractCategoryCreateArgs>(args: SelectSubset<T, ContractCategoryCreateArgs<ExtArgs>>): Prisma__ContractCategoryClient<$Result.GetResult<Prisma.$ContractCategoryPayload<ExtArgs>, T, "create">, never, ExtArgs>
|
|
|
|
/**
|
|
* Create many ContractCategories.
|
|
* @param {ContractCategoryCreateManyArgs} args - Arguments to create many ContractCategories.
|
|
* @example
|
|
* // Create many ContractCategories
|
|
* const contractCategory = await prisma.contractCategory.createMany({
|
|
* data: [
|
|
* // ... provide data here
|
|
* ]
|
|
* })
|
|
*
|
|
*/
|
|
createMany<T extends ContractCategoryCreateManyArgs>(args?: SelectSubset<T, ContractCategoryCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
|
|
|
|
/**
|
|
* Delete a ContractCategory.
|
|
* @param {ContractCategoryDeleteArgs} args - Arguments to delete one ContractCategory.
|
|
* @example
|
|
* // Delete one ContractCategory
|
|
* const ContractCategory = await prisma.contractCategory.delete({
|
|
* where: {
|
|
* // ... filter to delete one ContractCategory
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
delete<T extends ContractCategoryDeleteArgs>(args: SelectSubset<T, ContractCategoryDeleteArgs<ExtArgs>>): Prisma__ContractCategoryClient<$Result.GetResult<Prisma.$ContractCategoryPayload<ExtArgs>, T, "delete">, never, ExtArgs>
|
|
|
|
/**
|
|
* Update one ContractCategory.
|
|
* @param {ContractCategoryUpdateArgs} args - Arguments to update one ContractCategory.
|
|
* @example
|
|
* // Update one ContractCategory
|
|
* const contractCategory = await prisma.contractCategory.update({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* },
|
|
* data: {
|
|
* // ... provide data here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
update<T extends ContractCategoryUpdateArgs>(args: SelectSubset<T, ContractCategoryUpdateArgs<ExtArgs>>): Prisma__ContractCategoryClient<$Result.GetResult<Prisma.$ContractCategoryPayload<ExtArgs>, T, "update">, never, ExtArgs>
|
|
|
|
/**
|
|
* Delete zero or more ContractCategories.
|
|
* @param {ContractCategoryDeleteManyArgs} args - Arguments to filter ContractCategories to delete.
|
|
* @example
|
|
* // Delete a few ContractCategories
|
|
* const { count } = await prisma.contractCategory.deleteMany({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
deleteMany<T extends ContractCategoryDeleteManyArgs>(args?: SelectSubset<T, ContractCategoryDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
|
|
|
|
/**
|
|
* Update zero or more ContractCategories.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {ContractCategoryUpdateManyArgs} args - Arguments to update one or more rows.
|
|
* @example
|
|
* // Update many ContractCategories
|
|
* const contractCategory = await prisma.contractCategory.updateMany({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* },
|
|
* data: {
|
|
* // ... provide data here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
updateMany<T extends ContractCategoryUpdateManyArgs>(args: SelectSubset<T, ContractCategoryUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
|
|
|
|
/**
|
|
* Create or update one ContractCategory.
|
|
* @param {ContractCategoryUpsertArgs} args - Arguments to update or create a ContractCategory.
|
|
* @example
|
|
* // Update or create a ContractCategory
|
|
* const contractCategory = await prisma.contractCategory.upsert({
|
|
* create: {
|
|
* // ... data to create a ContractCategory
|
|
* },
|
|
* update: {
|
|
* // ... in case it already exists, update
|
|
* },
|
|
* where: {
|
|
* // ... the filter for the ContractCategory we want to update
|
|
* }
|
|
* })
|
|
*/
|
|
upsert<T extends ContractCategoryUpsertArgs>(args: SelectSubset<T, ContractCategoryUpsertArgs<ExtArgs>>): Prisma__ContractCategoryClient<$Result.GetResult<Prisma.$ContractCategoryPayload<ExtArgs>, T, "upsert">, never, ExtArgs>
|
|
|
|
|
|
/**
|
|
* Count the number of ContractCategories.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {ContractCategoryCountArgs} args - Arguments to filter ContractCategories to count.
|
|
* @example
|
|
* // Count the number of ContractCategories
|
|
* const count = await prisma.contractCategory.count({
|
|
* where: {
|
|
* // ... the filter for the ContractCategories we want to count
|
|
* }
|
|
* })
|
|
**/
|
|
count<T extends ContractCategoryCountArgs>(
|
|
args?: Subset<T, ContractCategoryCountArgs>,
|
|
): Prisma.PrismaPromise<
|
|
T extends $Utils.Record<'select', any>
|
|
? T['select'] extends true
|
|
? number
|
|
: GetScalarType<T['select'], ContractCategoryCountAggregateOutputType>
|
|
: number
|
|
>
|
|
|
|
/**
|
|
* Allows you to perform aggregations operations on a ContractCategory.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {ContractCategoryAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
|
|
* @example
|
|
* // Ordered by age ascending
|
|
* // Where email contains prisma.io
|
|
* // Limited to the 10 users
|
|
* const aggregations = await prisma.user.aggregate({
|
|
* _avg: {
|
|
* age: true,
|
|
* },
|
|
* where: {
|
|
* email: {
|
|
* contains: "prisma.io",
|
|
* },
|
|
* },
|
|
* orderBy: {
|
|
* age: "asc",
|
|
* },
|
|
* take: 10,
|
|
* })
|
|
**/
|
|
aggregate<T extends ContractCategoryAggregateArgs>(args: Subset<T, ContractCategoryAggregateArgs>): Prisma.PrismaPromise<GetContractCategoryAggregateType<T>>
|
|
|
|
/**
|
|
* Group by ContractCategory.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {ContractCategoryGroupByArgs} args - Group by arguments.
|
|
* @example
|
|
* // Group by city, order by createdAt, get count
|
|
* const result = await prisma.user.groupBy({
|
|
* by: ['city', 'createdAt'],
|
|
* orderBy: {
|
|
* createdAt: true
|
|
* },
|
|
* _count: {
|
|
* _all: true
|
|
* },
|
|
* })
|
|
*
|
|
**/
|
|
groupBy<
|
|
T extends ContractCategoryGroupByArgs,
|
|
HasSelectOrTake extends Or<
|
|
Extends<'skip', Keys<T>>,
|
|
Extends<'take', Keys<T>>
|
|
>,
|
|
OrderByArg extends True extends HasSelectOrTake
|
|
? { orderBy: ContractCategoryGroupByArgs['orderBy'] }
|
|
: { orderBy?: ContractCategoryGroupByArgs['orderBy'] },
|
|
OrderFields extends ExcludeUnderscoreKeys<Keys<MaybeTupleToUnion<T['orderBy']>>>,
|
|
ByFields extends MaybeTupleToUnion<T['by']>,
|
|
ByValid extends Has<ByFields, OrderFields>,
|
|
HavingFields extends GetHavingFields<T['having']>,
|
|
HavingValid extends Has<ByFields, HavingFields>,
|
|
ByEmpty extends T['by'] extends never[] ? True : False,
|
|
InputErrors extends ByEmpty extends True
|
|
? `Error: "by" must not be empty.`
|
|
: HavingValid extends False
|
|
? {
|
|
[P in HavingFields]: P extends ByFields
|
|
? never
|
|
: P extends string
|
|
? `Error: Field "${P}" used in "having" needs to be provided in "by".`
|
|
: [
|
|
Error,
|
|
'Field ',
|
|
P,
|
|
` in "having" needs to be provided in "by"`,
|
|
]
|
|
}[HavingFields]
|
|
: 'take' extends Keys<T>
|
|
? 'orderBy' extends Keys<T>
|
|
? ByValid extends True
|
|
? {}
|
|
: {
|
|
[P in OrderFields]: P extends ByFields
|
|
? never
|
|
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
|
|
}[OrderFields]
|
|
: 'Error: If you provide "take", you also need to provide "orderBy"'
|
|
: 'skip' extends Keys<T>
|
|
? 'orderBy' extends Keys<T>
|
|
? ByValid extends True
|
|
? {}
|
|
: {
|
|
[P in OrderFields]: P extends ByFields
|
|
? never
|
|
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
|
|
}[OrderFields]
|
|
: 'Error: If you provide "skip", you also need to provide "orderBy"'
|
|
: ByValid extends True
|
|
? {}
|
|
: {
|
|
[P in OrderFields]: P extends ByFields
|
|
? never
|
|
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
|
|
}[OrderFields]
|
|
>(args: SubsetIntersection<T, ContractCategoryGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetContractCategoryGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
|
|
/**
|
|
* Fields of the ContractCategory model
|
|
*/
|
|
readonly fields: ContractCategoryFieldRefs;
|
|
}
|
|
|
|
/**
|
|
* The delegate class that acts as a "Promise-like" for ContractCategory.
|
|
* Why is this prefixed with `Prisma__`?
|
|
* Because we want to prevent naming conflicts as mentioned in
|
|
* https://github.com/prisma/prisma-client-js/issues/707
|
|
*/
|
|
export interface Prisma__ContractCategoryClient<T, Null = never, ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> extends Prisma.PrismaPromise<T> {
|
|
readonly [Symbol.toStringTag]: "PrismaPromise"
|
|
contracts<T extends ContractCategory$contractsArgs<ExtArgs> = {}>(args?: Subset<T, ContractCategory$contractsArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$ContractPayload<ExtArgs>, T, "findMany"> | Null>
|
|
/**
|
|
* Attaches callbacks for the resolution and/or rejection of the Promise.
|
|
* @param onfulfilled The callback to execute when the Promise is resolved.
|
|
* @param onrejected The callback to execute when the Promise is rejected.
|
|
* @returns A Promise for the completion of which ever callback is executed.
|
|
*/
|
|
then<TResult1 = T, TResult2 = never>(onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined | null): $Utils.JsPromise<TResult1 | TResult2>
|
|
/**
|
|
* Attaches a callback for only the rejection of the Promise.
|
|
* @param onrejected The callback to execute when the Promise is rejected.
|
|
* @returns A Promise for the completion of the callback.
|
|
*/
|
|
catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): $Utils.JsPromise<T | TResult>
|
|
/**
|
|
* Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
|
|
* resolved value cannot be modified from the callback.
|
|
* @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
|
|
* @returns A Promise for the completion of the callback.
|
|
*/
|
|
finally(onfinally?: (() => void) | undefined | null): $Utils.JsPromise<T>
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
* Fields of the ContractCategory model
|
|
*/
|
|
interface ContractCategoryFieldRefs {
|
|
readonly id: FieldRef<"ContractCategory", 'Int'>
|
|
readonly code: FieldRef<"ContractCategory", 'String'>
|
|
readonly name: FieldRef<"ContractCategory", 'String'>
|
|
readonly icon: FieldRef<"ContractCategory", 'String'>
|
|
readonly color: FieldRef<"ContractCategory", 'String'>
|
|
readonly sortOrder: FieldRef<"ContractCategory", 'Int'>
|
|
readonly isActive: FieldRef<"ContractCategory", 'Boolean'>
|
|
readonly createdAt: FieldRef<"ContractCategory", 'DateTime'>
|
|
readonly updatedAt: FieldRef<"ContractCategory", 'DateTime'>
|
|
}
|
|
|
|
|
|
// Custom InputTypes
|
|
/**
|
|
* ContractCategory findUnique
|
|
*/
|
|
export type ContractCategoryFindUniqueArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the ContractCategory
|
|
*/
|
|
select?: ContractCategorySelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: ContractCategoryInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which ContractCategory to fetch.
|
|
*/
|
|
where: ContractCategoryWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* ContractCategory findUniqueOrThrow
|
|
*/
|
|
export type ContractCategoryFindUniqueOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the ContractCategory
|
|
*/
|
|
select?: ContractCategorySelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: ContractCategoryInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which ContractCategory to fetch.
|
|
*/
|
|
where: ContractCategoryWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* ContractCategory findFirst
|
|
*/
|
|
export type ContractCategoryFindFirstArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the ContractCategory
|
|
*/
|
|
select?: ContractCategorySelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: ContractCategoryInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which ContractCategory to fetch.
|
|
*/
|
|
where?: ContractCategoryWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of ContractCategories to fetch.
|
|
*/
|
|
orderBy?: ContractCategoryOrderByWithRelationInput | ContractCategoryOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for searching for ContractCategories.
|
|
*/
|
|
cursor?: ContractCategoryWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` ContractCategories from the position of the cursor.
|
|
*/
|
|
take?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Skip the first `n` ContractCategories.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
*
|
|
* Filter by unique combinations of ContractCategories.
|
|
*/
|
|
distinct?: ContractCategoryScalarFieldEnum | ContractCategoryScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* ContractCategory findFirstOrThrow
|
|
*/
|
|
export type ContractCategoryFindFirstOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the ContractCategory
|
|
*/
|
|
select?: ContractCategorySelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: ContractCategoryInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which ContractCategory to fetch.
|
|
*/
|
|
where?: ContractCategoryWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of ContractCategories to fetch.
|
|
*/
|
|
orderBy?: ContractCategoryOrderByWithRelationInput | ContractCategoryOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for searching for ContractCategories.
|
|
*/
|
|
cursor?: ContractCategoryWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` ContractCategories from the position of the cursor.
|
|
*/
|
|
take?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Skip the first `n` ContractCategories.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
*
|
|
* Filter by unique combinations of ContractCategories.
|
|
*/
|
|
distinct?: ContractCategoryScalarFieldEnum | ContractCategoryScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* ContractCategory findMany
|
|
*/
|
|
export type ContractCategoryFindManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the ContractCategory
|
|
*/
|
|
select?: ContractCategorySelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: ContractCategoryInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which ContractCategories to fetch.
|
|
*/
|
|
where?: ContractCategoryWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of ContractCategories to fetch.
|
|
*/
|
|
orderBy?: ContractCategoryOrderByWithRelationInput | ContractCategoryOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for listing ContractCategories.
|
|
*/
|
|
cursor?: ContractCategoryWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` ContractCategories from the position of the cursor.
|
|
*/
|
|
take?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Skip the first `n` ContractCategories.
|
|
*/
|
|
skip?: number
|
|
distinct?: ContractCategoryScalarFieldEnum | ContractCategoryScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* ContractCategory create
|
|
*/
|
|
export type ContractCategoryCreateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the ContractCategory
|
|
*/
|
|
select?: ContractCategorySelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: ContractCategoryInclude<ExtArgs> | null
|
|
/**
|
|
* The data needed to create a ContractCategory.
|
|
*/
|
|
data: XOR<ContractCategoryCreateInput, ContractCategoryUncheckedCreateInput>
|
|
}
|
|
|
|
/**
|
|
* ContractCategory createMany
|
|
*/
|
|
export type ContractCategoryCreateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* The data used to create many ContractCategories.
|
|
*/
|
|
data: ContractCategoryCreateManyInput | ContractCategoryCreateManyInput[]
|
|
skipDuplicates?: boolean
|
|
}
|
|
|
|
/**
|
|
* ContractCategory update
|
|
*/
|
|
export type ContractCategoryUpdateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the ContractCategory
|
|
*/
|
|
select?: ContractCategorySelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: ContractCategoryInclude<ExtArgs> | null
|
|
/**
|
|
* The data needed to update a ContractCategory.
|
|
*/
|
|
data: XOR<ContractCategoryUpdateInput, ContractCategoryUncheckedUpdateInput>
|
|
/**
|
|
* Choose, which ContractCategory to update.
|
|
*/
|
|
where: ContractCategoryWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* ContractCategory updateMany
|
|
*/
|
|
export type ContractCategoryUpdateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* The data used to update ContractCategories.
|
|
*/
|
|
data: XOR<ContractCategoryUpdateManyMutationInput, ContractCategoryUncheckedUpdateManyInput>
|
|
/**
|
|
* Filter which ContractCategories to update
|
|
*/
|
|
where?: ContractCategoryWhereInput
|
|
}
|
|
|
|
/**
|
|
* ContractCategory upsert
|
|
*/
|
|
export type ContractCategoryUpsertArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the ContractCategory
|
|
*/
|
|
select?: ContractCategorySelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: ContractCategoryInclude<ExtArgs> | null
|
|
/**
|
|
* The filter to search for the ContractCategory to update in case it exists.
|
|
*/
|
|
where: ContractCategoryWhereUniqueInput
|
|
/**
|
|
* In case the ContractCategory found by the `where` argument doesn't exist, create a new ContractCategory with this data.
|
|
*/
|
|
create: XOR<ContractCategoryCreateInput, ContractCategoryUncheckedCreateInput>
|
|
/**
|
|
* In case the ContractCategory was found with the provided `where` argument, update it with this data.
|
|
*/
|
|
update: XOR<ContractCategoryUpdateInput, ContractCategoryUncheckedUpdateInput>
|
|
}
|
|
|
|
/**
|
|
* ContractCategory delete
|
|
*/
|
|
export type ContractCategoryDeleteArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the ContractCategory
|
|
*/
|
|
select?: ContractCategorySelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: ContractCategoryInclude<ExtArgs> | null
|
|
/**
|
|
* Filter which ContractCategory to delete.
|
|
*/
|
|
where: ContractCategoryWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* ContractCategory deleteMany
|
|
*/
|
|
export type ContractCategoryDeleteManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Filter which ContractCategories to delete
|
|
*/
|
|
where?: ContractCategoryWhereInput
|
|
}
|
|
|
|
/**
|
|
* ContractCategory.contracts
|
|
*/
|
|
export type ContractCategory$contractsArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the Contract
|
|
*/
|
|
select?: ContractSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: ContractInclude<ExtArgs> | null
|
|
where?: ContractWhereInput
|
|
orderBy?: ContractOrderByWithRelationInput | ContractOrderByWithRelationInput[]
|
|
cursor?: ContractWhereUniqueInput
|
|
take?: number
|
|
skip?: number
|
|
distinct?: ContractScalarFieldEnum | ContractScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* ContractCategory without action
|
|
*/
|
|
export type ContractCategoryDefaultArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the ContractCategory
|
|
*/
|
|
select?: ContractCategorySelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: ContractCategoryInclude<ExtArgs> | null
|
|
}
|
|
|
|
|
|
/**
|
|
* Model Contract
|
|
*/
|
|
|
|
export type AggregateContract = {
|
|
_count: ContractCountAggregateOutputType | null
|
|
_avg: ContractAvgAggregateOutputType | null
|
|
_sum: ContractSumAggregateOutputType | null
|
|
_min: ContractMinAggregateOutputType | null
|
|
_max: ContractMaxAggregateOutputType | null
|
|
}
|
|
|
|
export type ContractAvgAggregateOutputType = {
|
|
id: number | null
|
|
customerId: number | null
|
|
contractCategoryId: number | null
|
|
addressId: number | null
|
|
billingAddressId: number | null
|
|
bankCardId: number | null
|
|
identityDocumentId: number | null
|
|
salesPlatformId: number | null
|
|
cancellationPeriodId: number | null
|
|
contractDurationId: number | null
|
|
previousContractId: number | null
|
|
providerId: number | null
|
|
tariffId: number | null
|
|
commission: number | null
|
|
stressfreiEmailId: number | null
|
|
}
|
|
|
|
export type ContractSumAggregateOutputType = {
|
|
id: number | null
|
|
customerId: number | null
|
|
contractCategoryId: number | null
|
|
addressId: number | null
|
|
billingAddressId: number | null
|
|
bankCardId: number | null
|
|
identityDocumentId: number | null
|
|
salesPlatformId: number | null
|
|
cancellationPeriodId: number | null
|
|
contractDurationId: number | null
|
|
previousContractId: number | null
|
|
providerId: number | null
|
|
tariffId: number | null
|
|
commission: number | null
|
|
stressfreiEmailId: number | null
|
|
}
|
|
|
|
export type ContractMinAggregateOutputType = {
|
|
id: number | null
|
|
contractNumber: string | null
|
|
customerId: number | null
|
|
type: $Enums.ContractType | null
|
|
status: $Enums.ContractStatus | null
|
|
contractCategoryId: number | null
|
|
addressId: number | null
|
|
billingAddressId: number | null
|
|
bankCardId: number | null
|
|
identityDocumentId: number | null
|
|
salesPlatformId: number | null
|
|
cancellationPeriodId: number | null
|
|
contractDurationId: number | null
|
|
previousContractId: number | null
|
|
providerId: number | null
|
|
tariffId: number | null
|
|
providerName: string | null
|
|
tariffName: string | null
|
|
customerNumberAtProvider: string | null
|
|
priceFirst12Months: string | null
|
|
priceFrom13Months: string | null
|
|
priceAfter24Months: string | null
|
|
startDate: Date | null
|
|
endDate: Date | null
|
|
commission: number | null
|
|
cancellationLetterPath: string | null
|
|
cancellationConfirmationPath: string | null
|
|
cancellationLetterOptionsPath: string | null
|
|
cancellationConfirmationOptionsPath: string | null
|
|
cancellationConfirmationDate: Date | null
|
|
cancellationConfirmationOptionsDate: Date | null
|
|
wasSpecialCancellation: boolean | null
|
|
portalUsername: string | null
|
|
portalPasswordEncrypted: string | null
|
|
stressfreiEmailId: number | null
|
|
notes: string | null
|
|
createdAt: Date | null
|
|
updatedAt: Date | null
|
|
}
|
|
|
|
export type ContractMaxAggregateOutputType = {
|
|
id: number | null
|
|
contractNumber: string | null
|
|
customerId: number | null
|
|
type: $Enums.ContractType | null
|
|
status: $Enums.ContractStatus | null
|
|
contractCategoryId: number | null
|
|
addressId: number | null
|
|
billingAddressId: number | null
|
|
bankCardId: number | null
|
|
identityDocumentId: number | null
|
|
salesPlatformId: number | null
|
|
cancellationPeriodId: number | null
|
|
contractDurationId: number | null
|
|
previousContractId: number | null
|
|
providerId: number | null
|
|
tariffId: number | null
|
|
providerName: string | null
|
|
tariffName: string | null
|
|
customerNumberAtProvider: string | null
|
|
priceFirst12Months: string | null
|
|
priceFrom13Months: string | null
|
|
priceAfter24Months: string | null
|
|
startDate: Date | null
|
|
endDate: Date | null
|
|
commission: number | null
|
|
cancellationLetterPath: string | null
|
|
cancellationConfirmationPath: string | null
|
|
cancellationLetterOptionsPath: string | null
|
|
cancellationConfirmationOptionsPath: string | null
|
|
cancellationConfirmationDate: Date | null
|
|
cancellationConfirmationOptionsDate: Date | null
|
|
wasSpecialCancellation: boolean | null
|
|
portalUsername: string | null
|
|
portalPasswordEncrypted: string | null
|
|
stressfreiEmailId: number | null
|
|
notes: string | null
|
|
createdAt: Date | null
|
|
updatedAt: Date | null
|
|
}
|
|
|
|
export type ContractCountAggregateOutputType = {
|
|
id: number
|
|
contractNumber: number
|
|
customerId: number
|
|
type: number
|
|
status: number
|
|
contractCategoryId: number
|
|
addressId: number
|
|
billingAddressId: number
|
|
bankCardId: number
|
|
identityDocumentId: number
|
|
salesPlatformId: number
|
|
cancellationPeriodId: number
|
|
contractDurationId: number
|
|
previousContractId: number
|
|
providerId: number
|
|
tariffId: number
|
|
providerName: number
|
|
tariffName: number
|
|
customerNumberAtProvider: number
|
|
priceFirst12Months: number
|
|
priceFrom13Months: number
|
|
priceAfter24Months: number
|
|
startDate: number
|
|
endDate: number
|
|
commission: number
|
|
cancellationLetterPath: number
|
|
cancellationConfirmationPath: number
|
|
cancellationLetterOptionsPath: number
|
|
cancellationConfirmationOptionsPath: number
|
|
cancellationConfirmationDate: number
|
|
cancellationConfirmationOptionsDate: number
|
|
wasSpecialCancellation: number
|
|
portalUsername: number
|
|
portalPasswordEncrypted: number
|
|
stressfreiEmailId: number
|
|
notes: number
|
|
createdAt: number
|
|
updatedAt: number
|
|
_all: number
|
|
}
|
|
|
|
|
|
export type ContractAvgAggregateInputType = {
|
|
id?: true
|
|
customerId?: true
|
|
contractCategoryId?: true
|
|
addressId?: true
|
|
billingAddressId?: true
|
|
bankCardId?: true
|
|
identityDocumentId?: true
|
|
salesPlatformId?: true
|
|
cancellationPeriodId?: true
|
|
contractDurationId?: true
|
|
previousContractId?: true
|
|
providerId?: true
|
|
tariffId?: true
|
|
commission?: true
|
|
stressfreiEmailId?: true
|
|
}
|
|
|
|
export type ContractSumAggregateInputType = {
|
|
id?: true
|
|
customerId?: true
|
|
contractCategoryId?: true
|
|
addressId?: true
|
|
billingAddressId?: true
|
|
bankCardId?: true
|
|
identityDocumentId?: true
|
|
salesPlatformId?: true
|
|
cancellationPeriodId?: true
|
|
contractDurationId?: true
|
|
previousContractId?: true
|
|
providerId?: true
|
|
tariffId?: true
|
|
commission?: true
|
|
stressfreiEmailId?: true
|
|
}
|
|
|
|
export type ContractMinAggregateInputType = {
|
|
id?: true
|
|
contractNumber?: true
|
|
customerId?: true
|
|
type?: true
|
|
status?: true
|
|
contractCategoryId?: true
|
|
addressId?: true
|
|
billingAddressId?: true
|
|
bankCardId?: true
|
|
identityDocumentId?: true
|
|
salesPlatformId?: true
|
|
cancellationPeriodId?: true
|
|
contractDurationId?: true
|
|
previousContractId?: true
|
|
providerId?: true
|
|
tariffId?: true
|
|
providerName?: true
|
|
tariffName?: true
|
|
customerNumberAtProvider?: true
|
|
priceFirst12Months?: true
|
|
priceFrom13Months?: true
|
|
priceAfter24Months?: true
|
|
startDate?: true
|
|
endDate?: true
|
|
commission?: true
|
|
cancellationLetterPath?: true
|
|
cancellationConfirmationPath?: true
|
|
cancellationLetterOptionsPath?: true
|
|
cancellationConfirmationOptionsPath?: true
|
|
cancellationConfirmationDate?: true
|
|
cancellationConfirmationOptionsDate?: true
|
|
wasSpecialCancellation?: true
|
|
portalUsername?: true
|
|
portalPasswordEncrypted?: true
|
|
stressfreiEmailId?: true
|
|
notes?: true
|
|
createdAt?: true
|
|
updatedAt?: true
|
|
}
|
|
|
|
export type ContractMaxAggregateInputType = {
|
|
id?: true
|
|
contractNumber?: true
|
|
customerId?: true
|
|
type?: true
|
|
status?: true
|
|
contractCategoryId?: true
|
|
addressId?: true
|
|
billingAddressId?: true
|
|
bankCardId?: true
|
|
identityDocumentId?: true
|
|
salesPlatformId?: true
|
|
cancellationPeriodId?: true
|
|
contractDurationId?: true
|
|
previousContractId?: true
|
|
providerId?: true
|
|
tariffId?: true
|
|
providerName?: true
|
|
tariffName?: true
|
|
customerNumberAtProvider?: true
|
|
priceFirst12Months?: true
|
|
priceFrom13Months?: true
|
|
priceAfter24Months?: true
|
|
startDate?: true
|
|
endDate?: true
|
|
commission?: true
|
|
cancellationLetterPath?: true
|
|
cancellationConfirmationPath?: true
|
|
cancellationLetterOptionsPath?: true
|
|
cancellationConfirmationOptionsPath?: true
|
|
cancellationConfirmationDate?: true
|
|
cancellationConfirmationOptionsDate?: true
|
|
wasSpecialCancellation?: true
|
|
portalUsername?: true
|
|
portalPasswordEncrypted?: true
|
|
stressfreiEmailId?: true
|
|
notes?: true
|
|
createdAt?: true
|
|
updatedAt?: true
|
|
}
|
|
|
|
export type ContractCountAggregateInputType = {
|
|
id?: true
|
|
contractNumber?: true
|
|
customerId?: true
|
|
type?: true
|
|
status?: true
|
|
contractCategoryId?: true
|
|
addressId?: true
|
|
billingAddressId?: true
|
|
bankCardId?: true
|
|
identityDocumentId?: true
|
|
salesPlatformId?: true
|
|
cancellationPeriodId?: true
|
|
contractDurationId?: true
|
|
previousContractId?: true
|
|
providerId?: true
|
|
tariffId?: true
|
|
providerName?: true
|
|
tariffName?: true
|
|
customerNumberAtProvider?: true
|
|
priceFirst12Months?: true
|
|
priceFrom13Months?: true
|
|
priceAfter24Months?: true
|
|
startDate?: true
|
|
endDate?: true
|
|
commission?: true
|
|
cancellationLetterPath?: true
|
|
cancellationConfirmationPath?: true
|
|
cancellationLetterOptionsPath?: true
|
|
cancellationConfirmationOptionsPath?: true
|
|
cancellationConfirmationDate?: true
|
|
cancellationConfirmationOptionsDate?: true
|
|
wasSpecialCancellation?: true
|
|
portalUsername?: true
|
|
portalPasswordEncrypted?: true
|
|
stressfreiEmailId?: true
|
|
notes?: true
|
|
createdAt?: true
|
|
updatedAt?: true
|
|
_all?: true
|
|
}
|
|
|
|
export type ContractAggregateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Filter which Contract to aggregate.
|
|
*/
|
|
where?: ContractWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of Contracts to fetch.
|
|
*/
|
|
orderBy?: ContractOrderByWithRelationInput | ContractOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the start position
|
|
*/
|
|
cursor?: ContractWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` Contracts from the position of the cursor.
|
|
*/
|
|
take?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Skip the first `n` Contracts.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Count returned Contracts
|
|
**/
|
|
_count?: true | ContractCountAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to average
|
|
**/
|
|
_avg?: ContractAvgAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to sum
|
|
**/
|
|
_sum?: ContractSumAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to find the minimum value
|
|
**/
|
|
_min?: ContractMinAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to find the maximum value
|
|
**/
|
|
_max?: ContractMaxAggregateInputType
|
|
}
|
|
|
|
export type GetContractAggregateType<T extends ContractAggregateArgs> = {
|
|
[P in keyof T & keyof AggregateContract]: P extends '_count' | 'count'
|
|
? T[P] extends true
|
|
? number
|
|
: GetScalarType<T[P], AggregateContract[P]>
|
|
: GetScalarType<T[P], AggregateContract[P]>
|
|
}
|
|
|
|
|
|
|
|
|
|
export type ContractGroupByArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
where?: ContractWhereInput
|
|
orderBy?: ContractOrderByWithAggregationInput | ContractOrderByWithAggregationInput[]
|
|
by: ContractScalarFieldEnum[] | ContractScalarFieldEnum
|
|
having?: ContractScalarWhereWithAggregatesInput
|
|
take?: number
|
|
skip?: number
|
|
_count?: ContractCountAggregateInputType | true
|
|
_avg?: ContractAvgAggregateInputType
|
|
_sum?: ContractSumAggregateInputType
|
|
_min?: ContractMinAggregateInputType
|
|
_max?: ContractMaxAggregateInputType
|
|
}
|
|
|
|
export type ContractGroupByOutputType = {
|
|
id: number
|
|
contractNumber: string
|
|
customerId: number
|
|
type: $Enums.ContractType
|
|
status: $Enums.ContractStatus
|
|
contractCategoryId: number | null
|
|
addressId: number | null
|
|
billingAddressId: number | null
|
|
bankCardId: number | null
|
|
identityDocumentId: number | null
|
|
salesPlatformId: number | null
|
|
cancellationPeriodId: number | null
|
|
contractDurationId: number | null
|
|
previousContractId: number | null
|
|
providerId: number | null
|
|
tariffId: number | null
|
|
providerName: string | null
|
|
tariffName: string | null
|
|
customerNumberAtProvider: string | null
|
|
priceFirst12Months: string | null
|
|
priceFrom13Months: string | null
|
|
priceAfter24Months: string | null
|
|
startDate: Date | null
|
|
endDate: Date | null
|
|
commission: number | null
|
|
cancellationLetterPath: string | null
|
|
cancellationConfirmationPath: string | null
|
|
cancellationLetterOptionsPath: string | null
|
|
cancellationConfirmationOptionsPath: string | null
|
|
cancellationConfirmationDate: Date | null
|
|
cancellationConfirmationOptionsDate: Date | null
|
|
wasSpecialCancellation: boolean
|
|
portalUsername: string | null
|
|
portalPasswordEncrypted: string | null
|
|
stressfreiEmailId: number | null
|
|
notes: string | null
|
|
createdAt: Date
|
|
updatedAt: Date
|
|
_count: ContractCountAggregateOutputType | null
|
|
_avg: ContractAvgAggregateOutputType | null
|
|
_sum: ContractSumAggregateOutputType | null
|
|
_min: ContractMinAggregateOutputType | null
|
|
_max: ContractMaxAggregateOutputType | null
|
|
}
|
|
|
|
type GetContractGroupByPayload<T extends ContractGroupByArgs> = Prisma.PrismaPromise<
|
|
Array<
|
|
PickEnumerable<ContractGroupByOutputType, T['by']> &
|
|
{
|
|
[P in ((keyof T) & (keyof ContractGroupByOutputType))]: P extends '_count'
|
|
? T[P] extends boolean
|
|
? number
|
|
: GetScalarType<T[P], ContractGroupByOutputType[P]>
|
|
: GetScalarType<T[P], ContractGroupByOutputType[P]>
|
|
}
|
|
>
|
|
>
|
|
|
|
|
|
export type ContractSelect<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
|
|
id?: boolean
|
|
contractNumber?: boolean
|
|
customerId?: boolean
|
|
type?: boolean
|
|
status?: boolean
|
|
contractCategoryId?: boolean
|
|
addressId?: boolean
|
|
billingAddressId?: boolean
|
|
bankCardId?: boolean
|
|
identityDocumentId?: boolean
|
|
salesPlatformId?: boolean
|
|
cancellationPeriodId?: boolean
|
|
contractDurationId?: boolean
|
|
previousContractId?: boolean
|
|
providerId?: boolean
|
|
tariffId?: boolean
|
|
providerName?: boolean
|
|
tariffName?: boolean
|
|
customerNumberAtProvider?: boolean
|
|
priceFirst12Months?: boolean
|
|
priceFrom13Months?: boolean
|
|
priceAfter24Months?: boolean
|
|
startDate?: boolean
|
|
endDate?: boolean
|
|
commission?: boolean
|
|
cancellationLetterPath?: boolean
|
|
cancellationConfirmationPath?: boolean
|
|
cancellationLetterOptionsPath?: boolean
|
|
cancellationConfirmationOptionsPath?: boolean
|
|
cancellationConfirmationDate?: boolean
|
|
cancellationConfirmationOptionsDate?: boolean
|
|
wasSpecialCancellation?: boolean
|
|
portalUsername?: boolean
|
|
portalPasswordEncrypted?: boolean
|
|
stressfreiEmailId?: boolean
|
|
notes?: boolean
|
|
createdAt?: boolean
|
|
updatedAt?: boolean
|
|
customer?: boolean | CustomerDefaultArgs<ExtArgs>
|
|
contractCategory?: boolean | Contract$contractCategoryArgs<ExtArgs>
|
|
address?: boolean | Contract$addressArgs<ExtArgs>
|
|
billingAddress?: boolean | Contract$billingAddressArgs<ExtArgs>
|
|
bankCard?: boolean | Contract$bankCardArgs<ExtArgs>
|
|
identityDocument?: boolean | Contract$identityDocumentArgs<ExtArgs>
|
|
salesPlatform?: boolean | Contract$salesPlatformArgs<ExtArgs>
|
|
cancellationPeriod?: boolean | Contract$cancellationPeriodArgs<ExtArgs>
|
|
contractDuration?: boolean | Contract$contractDurationArgs<ExtArgs>
|
|
previousContract?: boolean | Contract$previousContractArgs<ExtArgs>
|
|
followUpContract?: boolean | Contract$followUpContractArgs<ExtArgs>
|
|
provider?: boolean | Contract$providerArgs<ExtArgs>
|
|
tariff?: boolean | Contract$tariffArgs<ExtArgs>
|
|
stressfreiEmail?: boolean | Contract$stressfreiEmailArgs<ExtArgs>
|
|
energyDetails?: boolean | Contract$energyDetailsArgs<ExtArgs>
|
|
internetDetails?: boolean | Contract$internetDetailsArgs<ExtArgs>
|
|
mobileDetails?: boolean | Contract$mobileDetailsArgs<ExtArgs>
|
|
tvDetails?: boolean | Contract$tvDetailsArgs<ExtArgs>
|
|
carInsuranceDetails?: boolean | Contract$carInsuranceDetailsArgs<ExtArgs>
|
|
tasks?: boolean | Contract$tasksArgs<ExtArgs>
|
|
assignedEmails?: boolean | Contract$assignedEmailsArgs<ExtArgs>
|
|
_count?: boolean | ContractCountOutputTypeDefaultArgs<ExtArgs>
|
|
}, ExtArgs["result"]["contract"]>
|
|
|
|
|
|
export type ContractSelectScalar = {
|
|
id?: boolean
|
|
contractNumber?: boolean
|
|
customerId?: boolean
|
|
type?: boolean
|
|
status?: boolean
|
|
contractCategoryId?: boolean
|
|
addressId?: boolean
|
|
billingAddressId?: boolean
|
|
bankCardId?: boolean
|
|
identityDocumentId?: boolean
|
|
salesPlatformId?: boolean
|
|
cancellationPeriodId?: boolean
|
|
contractDurationId?: boolean
|
|
previousContractId?: boolean
|
|
providerId?: boolean
|
|
tariffId?: boolean
|
|
providerName?: boolean
|
|
tariffName?: boolean
|
|
customerNumberAtProvider?: boolean
|
|
priceFirst12Months?: boolean
|
|
priceFrom13Months?: boolean
|
|
priceAfter24Months?: boolean
|
|
startDate?: boolean
|
|
endDate?: boolean
|
|
commission?: boolean
|
|
cancellationLetterPath?: boolean
|
|
cancellationConfirmationPath?: boolean
|
|
cancellationLetterOptionsPath?: boolean
|
|
cancellationConfirmationOptionsPath?: boolean
|
|
cancellationConfirmationDate?: boolean
|
|
cancellationConfirmationOptionsDate?: boolean
|
|
wasSpecialCancellation?: boolean
|
|
portalUsername?: boolean
|
|
portalPasswordEncrypted?: boolean
|
|
stressfreiEmailId?: boolean
|
|
notes?: boolean
|
|
createdAt?: boolean
|
|
updatedAt?: boolean
|
|
}
|
|
|
|
export type ContractInclude<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
customer?: boolean | CustomerDefaultArgs<ExtArgs>
|
|
contractCategory?: boolean | Contract$contractCategoryArgs<ExtArgs>
|
|
address?: boolean | Contract$addressArgs<ExtArgs>
|
|
billingAddress?: boolean | Contract$billingAddressArgs<ExtArgs>
|
|
bankCard?: boolean | Contract$bankCardArgs<ExtArgs>
|
|
identityDocument?: boolean | Contract$identityDocumentArgs<ExtArgs>
|
|
salesPlatform?: boolean | Contract$salesPlatformArgs<ExtArgs>
|
|
cancellationPeriod?: boolean | Contract$cancellationPeriodArgs<ExtArgs>
|
|
contractDuration?: boolean | Contract$contractDurationArgs<ExtArgs>
|
|
previousContract?: boolean | Contract$previousContractArgs<ExtArgs>
|
|
followUpContract?: boolean | Contract$followUpContractArgs<ExtArgs>
|
|
provider?: boolean | Contract$providerArgs<ExtArgs>
|
|
tariff?: boolean | Contract$tariffArgs<ExtArgs>
|
|
stressfreiEmail?: boolean | Contract$stressfreiEmailArgs<ExtArgs>
|
|
energyDetails?: boolean | Contract$energyDetailsArgs<ExtArgs>
|
|
internetDetails?: boolean | Contract$internetDetailsArgs<ExtArgs>
|
|
mobileDetails?: boolean | Contract$mobileDetailsArgs<ExtArgs>
|
|
tvDetails?: boolean | Contract$tvDetailsArgs<ExtArgs>
|
|
carInsuranceDetails?: boolean | Contract$carInsuranceDetailsArgs<ExtArgs>
|
|
tasks?: boolean | Contract$tasksArgs<ExtArgs>
|
|
assignedEmails?: boolean | Contract$assignedEmailsArgs<ExtArgs>
|
|
_count?: boolean | ContractCountOutputTypeDefaultArgs<ExtArgs>
|
|
}
|
|
|
|
export type $ContractPayload<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
name: "Contract"
|
|
objects: {
|
|
customer: Prisma.$CustomerPayload<ExtArgs>
|
|
contractCategory: Prisma.$ContractCategoryPayload<ExtArgs> | null
|
|
address: Prisma.$AddressPayload<ExtArgs> | null
|
|
billingAddress: Prisma.$AddressPayload<ExtArgs> | null
|
|
bankCard: Prisma.$BankCardPayload<ExtArgs> | null
|
|
identityDocument: Prisma.$IdentityDocumentPayload<ExtArgs> | null
|
|
salesPlatform: Prisma.$SalesPlatformPayload<ExtArgs> | null
|
|
cancellationPeriod: Prisma.$CancellationPeriodPayload<ExtArgs> | null
|
|
contractDuration: Prisma.$ContractDurationPayload<ExtArgs> | null
|
|
previousContract: Prisma.$ContractPayload<ExtArgs> | null
|
|
followUpContract: Prisma.$ContractPayload<ExtArgs> | null
|
|
provider: Prisma.$ProviderPayload<ExtArgs> | null
|
|
tariff: Prisma.$TariffPayload<ExtArgs> | null
|
|
stressfreiEmail: Prisma.$StressfreiEmailPayload<ExtArgs> | null
|
|
energyDetails: Prisma.$EnergyContractDetailsPayload<ExtArgs> | null
|
|
internetDetails: Prisma.$InternetContractDetailsPayload<ExtArgs> | null
|
|
mobileDetails: Prisma.$MobileContractDetailsPayload<ExtArgs> | null
|
|
tvDetails: Prisma.$TvContractDetailsPayload<ExtArgs> | null
|
|
carInsuranceDetails: Prisma.$CarInsuranceDetailsPayload<ExtArgs> | null
|
|
tasks: Prisma.$ContractTaskPayload<ExtArgs>[]
|
|
assignedEmails: Prisma.$CachedEmailPayload<ExtArgs>[]
|
|
}
|
|
scalars: $Extensions.GetPayloadResult<{
|
|
id: number
|
|
contractNumber: string
|
|
customerId: number
|
|
type: $Enums.ContractType
|
|
status: $Enums.ContractStatus
|
|
contractCategoryId: number | null
|
|
addressId: number | null
|
|
billingAddressId: number | null
|
|
bankCardId: number | null
|
|
identityDocumentId: number | null
|
|
salesPlatformId: number | null
|
|
cancellationPeriodId: number | null
|
|
contractDurationId: number | null
|
|
previousContractId: number | null
|
|
providerId: number | null
|
|
tariffId: number | null
|
|
providerName: string | null
|
|
tariffName: string | null
|
|
customerNumberAtProvider: string | null
|
|
priceFirst12Months: string | null
|
|
priceFrom13Months: string | null
|
|
priceAfter24Months: string | null
|
|
startDate: Date | null
|
|
endDate: Date | null
|
|
commission: number | null
|
|
cancellationLetterPath: string | null
|
|
cancellationConfirmationPath: string | null
|
|
cancellationLetterOptionsPath: string | null
|
|
cancellationConfirmationOptionsPath: string | null
|
|
cancellationConfirmationDate: Date | null
|
|
cancellationConfirmationOptionsDate: Date | null
|
|
wasSpecialCancellation: boolean
|
|
portalUsername: string | null
|
|
portalPasswordEncrypted: string | null
|
|
stressfreiEmailId: number | null
|
|
notes: string | null
|
|
createdAt: Date
|
|
updatedAt: Date
|
|
}, ExtArgs["result"]["contract"]>
|
|
composites: {}
|
|
}
|
|
|
|
type ContractGetPayload<S extends boolean | null | undefined | ContractDefaultArgs> = $Result.GetResult<Prisma.$ContractPayload, S>
|
|
|
|
type ContractCountArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> =
|
|
Omit<ContractFindManyArgs, 'select' | 'include' | 'distinct'> & {
|
|
select?: ContractCountAggregateInputType | true
|
|
}
|
|
|
|
export interface ContractDelegate<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> {
|
|
[K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['Contract'], meta: { name: 'Contract' } }
|
|
/**
|
|
* Find zero or one Contract that matches the filter.
|
|
* @param {ContractFindUniqueArgs} args - Arguments to find a Contract
|
|
* @example
|
|
* // Get one Contract
|
|
* const contract = await prisma.contract.findUnique({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findUnique<T extends ContractFindUniqueArgs>(args: SelectSubset<T, ContractFindUniqueArgs<ExtArgs>>): Prisma__ContractClient<$Result.GetResult<Prisma.$ContractPayload<ExtArgs>, T, "findUnique"> | null, null, ExtArgs>
|
|
|
|
/**
|
|
* Find one Contract that matches the filter or throw an error with `error.code='P2025'`
|
|
* if no matches were found.
|
|
* @param {ContractFindUniqueOrThrowArgs} args - Arguments to find a Contract
|
|
* @example
|
|
* // Get one Contract
|
|
* const contract = await prisma.contract.findUniqueOrThrow({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findUniqueOrThrow<T extends ContractFindUniqueOrThrowArgs>(args: SelectSubset<T, ContractFindUniqueOrThrowArgs<ExtArgs>>): Prisma__ContractClient<$Result.GetResult<Prisma.$ContractPayload<ExtArgs>, T, "findUniqueOrThrow">, never, ExtArgs>
|
|
|
|
/**
|
|
* Find the first Contract that matches the filter.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {ContractFindFirstArgs} args - Arguments to find a Contract
|
|
* @example
|
|
* // Get one Contract
|
|
* const contract = await prisma.contract.findFirst({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findFirst<T extends ContractFindFirstArgs>(args?: SelectSubset<T, ContractFindFirstArgs<ExtArgs>>): Prisma__ContractClient<$Result.GetResult<Prisma.$ContractPayload<ExtArgs>, T, "findFirst"> | null, null, ExtArgs>
|
|
|
|
/**
|
|
* Find the first Contract that matches the filter or
|
|
* throw `PrismaKnownClientError` with `P2025` code if no matches were found.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {ContractFindFirstOrThrowArgs} args - Arguments to find a Contract
|
|
* @example
|
|
* // Get one Contract
|
|
* const contract = await prisma.contract.findFirstOrThrow({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findFirstOrThrow<T extends ContractFindFirstOrThrowArgs>(args?: SelectSubset<T, ContractFindFirstOrThrowArgs<ExtArgs>>): Prisma__ContractClient<$Result.GetResult<Prisma.$ContractPayload<ExtArgs>, T, "findFirstOrThrow">, never, ExtArgs>
|
|
|
|
/**
|
|
* Find zero or more Contracts that matches the filter.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {ContractFindManyArgs} args - Arguments to filter and select certain fields only.
|
|
* @example
|
|
* // Get all Contracts
|
|
* const contracts = await prisma.contract.findMany()
|
|
*
|
|
* // Get first 10 Contracts
|
|
* const contracts = await prisma.contract.findMany({ take: 10 })
|
|
*
|
|
* // Only select the `id`
|
|
* const contractWithIdOnly = await prisma.contract.findMany({ select: { id: true } })
|
|
*
|
|
*/
|
|
findMany<T extends ContractFindManyArgs>(args?: SelectSubset<T, ContractFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$ContractPayload<ExtArgs>, T, "findMany">>
|
|
|
|
/**
|
|
* Create a Contract.
|
|
* @param {ContractCreateArgs} args - Arguments to create a Contract.
|
|
* @example
|
|
* // Create one Contract
|
|
* const Contract = await prisma.contract.create({
|
|
* data: {
|
|
* // ... data to create a Contract
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
create<T extends ContractCreateArgs>(args: SelectSubset<T, ContractCreateArgs<ExtArgs>>): Prisma__ContractClient<$Result.GetResult<Prisma.$ContractPayload<ExtArgs>, T, "create">, never, ExtArgs>
|
|
|
|
/**
|
|
* Create many Contracts.
|
|
* @param {ContractCreateManyArgs} args - Arguments to create many Contracts.
|
|
* @example
|
|
* // Create many Contracts
|
|
* const contract = await prisma.contract.createMany({
|
|
* data: [
|
|
* // ... provide data here
|
|
* ]
|
|
* })
|
|
*
|
|
*/
|
|
createMany<T extends ContractCreateManyArgs>(args?: SelectSubset<T, ContractCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
|
|
|
|
/**
|
|
* Delete a Contract.
|
|
* @param {ContractDeleteArgs} args - Arguments to delete one Contract.
|
|
* @example
|
|
* // Delete one Contract
|
|
* const Contract = await prisma.contract.delete({
|
|
* where: {
|
|
* // ... filter to delete one Contract
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
delete<T extends ContractDeleteArgs>(args: SelectSubset<T, ContractDeleteArgs<ExtArgs>>): Prisma__ContractClient<$Result.GetResult<Prisma.$ContractPayload<ExtArgs>, T, "delete">, never, ExtArgs>
|
|
|
|
/**
|
|
* Update one Contract.
|
|
* @param {ContractUpdateArgs} args - Arguments to update one Contract.
|
|
* @example
|
|
* // Update one Contract
|
|
* const contract = await prisma.contract.update({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* },
|
|
* data: {
|
|
* // ... provide data here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
update<T extends ContractUpdateArgs>(args: SelectSubset<T, ContractUpdateArgs<ExtArgs>>): Prisma__ContractClient<$Result.GetResult<Prisma.$ContractPayload<ExtArgs>, T, "update">, never, ExtArgs>
|
|
|
|
/**
|
|
* Delete zero or more Contracts.
|
|
* @param {ContractDeleteManyArgs} args - Arguments to filter Contracts to delete.
|
|
* @example
|
|
* // Delete a few Contracts
|
|
* const { count } = await prisma.contract.deleteMany({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
deleteMany<T extends ContractDeleteManyArgs>(args?: SelectSubset<T, ContractDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
|
|
|
|
/**
|
|
* Update zero or more Contracts.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {ContractUpdateManyArgs} args - Arguments to update one or more rows.
|
|
* @example
|
|
* // Update many Contracts
|
|
* const contract = await prisma.contract.updateMany({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* },
|
|
* data: {
|
|
* // ... provide data here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
updateMany<T extends ContractUpdateManyArgs>(args: SelectSubset<T, ContractUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
|
|
|
|
/**
|
|
* Create or update one Contract.
|
|
* @param {ContractUpsertArgs} args - Arguments to update or create a Contract.
|
|
* @example
|
|
* // Update or create a Contract
|
|
* const contract = await prisma.contract.upsert({
|
|
* create: {
|
|
* // ... data to create a Contract
|
|
* },
|
|
* update: {
|
|
* // ... in case it already exists, update
|
|
* },
|
|
* where: {
|
|
* // ... the filter for the Contract we want to update
|
|
* }
|
|
* })
|
|
*/
|
|
upsert<T extends ContractUpsertArgs>(args: SelectSubset<T, ContractUpsertArgs<ExtArgs>>): Prisma__ContractClient<$Result.GetResult<Prisma.$ContractPayload<ExtArgs>, T, "upsert">, never, ExtArgs>
|
|
|
|
|
|
/**
|
|
* Count the number of Contracts.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {ContractCountArgs} args - Arguments to filter Contracts to count.
|
|
* @example
|
|
* // Count the number of Contracts
|
|
* const count = await prisma.contract.count({
|
|
* where: {
|
|
* // ... the filter for the Contracts we want to count
|
|
* }
|
|
* })
|
|
**/
|
|
count<T extends ContractCountArgs>(
|
|
args?: Subset<T, ContractCountArgs>,
|
|
): Prisma.PrismaPromise<
|
|
T extends $Utils.Record<'select', any>
|
|
? T['select'] extends true
|
|
? number
|
|
: GetScalarType<T['select'], ContractCountAggregateOutputType>
|
|
: number
|
|
>
|
|
|
|
/**
|
|
* Allows you to perform aggregations operations on a Contract.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {ContractAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
|
|
* @example
|
|
* // Ordered by age ascending
|
|
* // Where email contains prisma.io
|
|
* // Limited to the 10 users
|
|
* const aggregations = await prisma.user.aggregate({
|
|
* _avg: {
|
|
* age: true,
|
|
* },
|
|
* where: {
|
|
* email: {
|
|
* contains: "prisma.io",
|
|
* },
|
|
* },
|
|
* orderBy: {
|
|
* age: "asc",
|
|
* },
|
|
* take: 10,
|
|
* })
|
|
**/
|
|
aggregate<T extends ContractAggregateArgs>(args: Subset<T, ContractAggregateArgs>): Prisma.PrismaPromise<GetContractAggregateType<T>>
|
|
|
|
/**
|
|
* Group by Contract.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {ContractGroupByArgs} args - Group by arguments.
|
|
* @example
|
|
* // Group by city, order by createdAt, get count
|
|
* const result = await prisma.user.groupBy({
|
|
* by: ['city', 'createdAt'],
|
|
* orderBy: {
|
|
* createdAt: true
|
|
* },
|
|
* _count: {
|
|
* _all: true
|
|
* },
|
|
* })
|
|
*
|
|
**/
|
|
groupBy<
|
|
T extends ContractGroupByArgs,
|
|
HasSelectOrTake extends Or<
|
|
Extends<'skip', Keys<T>>,
|
|
Extends<'take', Keys<T>>
|
|
>,
|
|
OrderByArg extends True extends HasSelectOrTake
|
|
? { orderBy: ContractGroupByArgs['orderBy'] }
|
|
: { orderBy?: ContractGroupByArgs['orderBy'] },
|
|
OrderFields extends ExcludeUnderscoreKeys<Keys<MaybeTupleToUnion<T['orderBy']>>>,
|
|
ByFields extends MaybeTupleToUnion<T['by']>,
|
|
ByValid extends Has<ByFields, OrderFields>,
|
|
HavingFields extends GetHavingFields<T['having']>,
|
|
HavingValid extends Has<ByFields, HavingFields>,
|
|
ByEmpty extends T['by'] extends never[] ? True : False,
|
|
InputErrors extends ByEmpty extends True
|
|
? `Error: "by" must not be empty.`
|
|
: HavingValid extends False
|
|
? {
|
|
[P in HavingFields]: P extends ByFields
|
|
? never
|
|
: P extends string
|
|
? `Error: Field "${P}" used in "having" needs to be provided in "by".`
|
|
: [
|
|
Error,
|
|
'Field ',
|
|
P,
|
|
` in "having" needs to be provided in "by"`,
|
|
]
|
|
}[HavingFields]
|
|
: 'take' extends Keys<T>
|
|
? 'orderBy' extends Keys<T>
|
|
? ByValid extends True
|
|
? {}
|
|
: {
|
|
[P in OrderFields]: P extends ByFields
|
|
? never
|
|
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
|
|
}[OrderFields]
|
|
: 'Error: If you provide "take", you also need to provide "orderBy"'
|
|
: 'skip' extends Keys<T>
|
|
? 'orderBy' extends Keys<T>
|
|
? ByValid extends True
|
|
? {}
|
|
: {
|
|
[P in OrderFields]: P extends ByFields
|
|
? never
|
|
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
|
|
}[OrderFields]
|
|
: 'Error: If you provide "skip", you also need to provide "orderBy"'
|
|
: ByValid extends True
|
|
? {}
|
|
: {
|
|
[P in OrderFields]: P extends ByFields
|
|
? never
|
|
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
|
|
}[OrderFields]
|
|
>(args: SubsetIntersection<T, ContractGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetContractGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
|
|
/**
|
|
* Fields of the Contract model
|
|
*/
|
|
readonly fields: ContractFieldRefs;
|
|
}
|
|
|
|
/**
|
|
* The delegate class that acts as a "Promise-like" for Contract.
|
|
* Why is this prefixed with `Prisma__`?
|
|
* Because we want to prevent naming conflicts as mentioned in
|
|
* https://github.com/prisma/prisma-client-js/issues/707
|
|
*/
|
|
export interface Prisma__ContractClient<T, Null = never, ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> extends Prisma.PrismaPromise<T> {
|
|
readonly [Symbol.toStringTag]: "PrismaPromise"
|
|
customer<T extends CustomerDefaultArgs<ExtArgs> = {}>(args?: Subset<T, CustomerDefaultArgs<ExtArgs>>): Prisma__CustomerClient<$Result.GetResult<Prisma.$CustomerPayload<ExtArgs>, T, "findUniqueOrThrow"> | Null, Null, ExtArgs>
|
|
contractCategory<T extends Contract$contractCategoryArgs<ExtArgs> = {}>(args?: Subset<T, Contract$contractCategoryArgs<ExtArgs>>): Prisma__ContractCategoryClient<$Result.GetResult<Prisma.$ContractCategoryPayload<ExtArgs>, T, "findUniqueOrThrow"> | null, null, ExtArgs>
|
|
address<T extends Contract$addressArgs<ExtArgs> = {}>(args?: Subset<T, Contract$addressArgs<ExtArgs>>): Prisma__AddressClient<$Result.GetResult<Prisma.$AddressPayload<ExtArgs>, T, "findUniqueOrThrow"> | null, null, ExtArgs>
|
|
billingAddress<T extends Contract$billingAddressArgs<ExtArgs> = {}>(args?: Subset<T, Contract$billingAddressArgs<ExtArgs>>): Prisma__AddressClient<$Result.GetResult<Prisma.$AddressPayload<ExtArgs>, T, "findUniqueOrThrow"> | null, null, ExtArgs>
|
|
bankCard<T extends Contract$bankCardArgs<ExtArgs> = {}>(args?: Subset<T, Contract$bankCardArgs<ExtArgs>>): Prisma__BankCardClient<$Result.GetResult<Prisma.$BankCardPayload<ExtArgs>, T, "findUniqueOrThrow"> | null, null, ExtArgs>
|
|
identityDocument<T extends Contract$identityDocumentArgs<ExtArgs> = {}>(args?: Subset<T, Contract$identityDocumentArgs<ExtArgs>>): Prisma__IdentityDocumentClient<$Result.GetResult<Prisma.$IdentityDocumentPayload<ExtArgs>, T, "findUniqueOrThrow"> | null, null, ExtArgs>
|
|
salesPlatform<T extends Contract$salesPlatformArgs<ExtArgs> = {}>(args?: Subset<T, Contract$salesPlatformArgs<ExtArgs>>): Prisma__SalesPlatformClient<$Result.GetResult<Prisma.$SalesPlatformPayload<ExtArgs>, T, "findUniqueOrThrow"> | null, null, ExtArgs>
|
|
cancellationPeriod<T extends Contract$cancellationPeriodArgs<ExtArgs> = {}>(args?: Subset<T, Contract$cancellationPeriodArgs<ExtArgs>>): Prisma__CancellationPeriodClient<$Result.GetResult<Prisma.$CancellationPeriodPayload<ExtArgs>, T, "findUniqueOrThrow"> | null, null, ExtArgs>
|
|
contractDuration<T extends Contract$contractDurationArgs<ExtArgs> = {}>(args?: Subset<T, Contract$contractDurationArgs<ExtArgs>>): Prisma__ContractDurationClient<$Result.GetResult<Prisma.$ContractDurationPayload<ExtArgs>, T, "findUniqueOrThrow"> | null, null, ExtArgs>
|
|
previousContract<T extends Contract$previousContractArgs<ExtArgs> = {}>(args?: Subset<T, Contract$previousContractArgs<ExtArgs>>): Prisma__ContractClient<$Result.GetResult<Prisma.$ContractPayload<ExtArgs>, T, "findUniqueOrThrow"> | null, null, ExtArgs>
|
|
followUpContract<T extends Contract$followUpContractArgs<ExtArgs> = {}>(args?: Subset<T, Contract$followUpContractArgs<ExtArgs>>): Prisma__ContractClient<$Result.GetResult<Prisma.$ContractPayload<ExtArgs>, T, "findUniqueOrThrow"> | null, null, ExtArgs>
|
|
provider<T extends Contract$providerArgs<ExtArgs> = {}>(args?: Subset<T, Contract$providerArgs<ExtArgs>>): Prisma__ProviderClient<$Result.GetResult<Prisma.$ProviderPayload<ExtArgs>, T, "findUniqueOrThrow"> | null, null, ExtArgs>
|
|
tariff<T extends Contract$tariffArgs<ExtArgs> = {}>(args?: Subset<T, Contract$tariffArgs<ExtArgs>>): Prisma__TariffClient<$Result.GetResult<Prisma.$TariffPayload<ExtArgs>, T, "findUniqueOrThrow"> | null, null, ExtArgs>
|
|
stressfreiEmail<T extends Contract$stressfreiEmailArgs<ExtArgs> = {}>(args?: Subset<T, Contract$stressfreiEmailArgs<ExtArgs>>): Prisma__StressfreiEmailClient<$Result.GetResult<Prisma.$StressfreiEmailPayload<ExtArgs>, T, "findUniqueOrThrow"> | null, null, ExtArgs>
|
|
energyDetails<T extends Contract$energyDetailsArgs<ExtArgs> = {}>(args?: Subset<T, Contract$energyDetailsArgs<ExtArgs>>): Prisma__EnergyContractDetailsClient<$Result.GetResult<Prisma.$EnergyContractDetailsPayload<ExtArgs>, T, "findUniqueOrThrow"> | null, null, ExtArgs>
|
|
internetDetails<T extends Contract$internetDetailsArgs<ExtArgs> = {}>(args?: Subset<T, Contract$internetDetailsArgs<ExtArgs>>): Prisma__InternetContractDetailsClient<$Result.GetResult<Prisma.$InternetContractDetailsPayload<ExtArgs>, T, "findUniqueOrThrow"> | null, null, ExtArgs>
|
|
mobileDetails<T extends Contract$mobileDetailsArgs<ExtArgs> = {}>(args?: Subset<T, Contract$mobileDetailsArgs<ExtArgs>>): Prisma__MobileContractDetailsClient<$Result.GetResult<Prisma.$MobileContractDetailsPayload<ExtArgs>, T, "findUniqueOrThrow"> | null, null, ExtArgs>
|
|
tvDetails<T extends Contract$tvDetailsArgs<ExtArgs> = {}>(args?: Subset<T, Contract$tvDetailsArgs<ExtArgs>>): Prisma__TvContractDetailsClient<$Result.GetResult<Prisma.$TvContractDetailsPayload<ExtArgs>, T, "findUniqueOrThrow"> | null, null, ExtArgs>
|
|
carInsuranceDetails<T extends Contract$carInsuranceDetailsArgs<ExtArgs> = {}>(args?: Subset<T, Contract$carInsuranceDetailsArgs<ExtArgs>>): Prisma__CarInsuranceDetailsClient<$Result.GetResult<Prisma.$CarInsuranceDetailsPayload<ExtArgs>, T, "findUniqueOrThrow"> | null, null, ExtArgs>
|
|
tasks<T extends Contract$tasksArgs<ExtArgs> = {}>(args?: Subset<T, Contract$tasksArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$ContractTaskPayload<ExtArgs>, T, "findMany"> | Null>
|
|
assignedEmails<T extends Contract$assignedEmailsArgs<ExtArgs> = {}>(args?: Subset<T, Contract$assignedEmailsArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$CachedEmailPayload<ExtArgs>, T, "findMany"> | Null>
|
|
/**
|
|
* Attaches callbacks for the resolution and/or rejection of the Promise.
|
|
* @param onfulfilled The callback to execute when the Promise is resolved.
|
|
* @param onrejected The callback to execute when the Promise is rejected.
|
|
* @returns A Promise for the completion of which ever callback is executed.
|
|
*/
|
|
then<TResult1 = T, TResult2 = never>(onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined | null): $Utils.JsPromise<TResult1 | TResult2>
|
|
/**
|
|
* Attaches a callback for only the rejection of the Promise.
|
|
* @param onrejected The callback to execute when the Promise is rejected.
|
|
* @returns A Promise for the completion of the callback.
|
|
*/
|
|
catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): $Utils.JsPromise<T | TResult>
|
|
/**
|
|
* Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
|
|
* resolved value cannot be modified from the callback.
|
|
* @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
|
|
* @returns A Promise for the completion of the callback.
|
|
*/
|
|
finally(onfinally?: (() => void) | undefined | null): $Utils.JsPromise<T>
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
* Fields of the Contract model
|
|
*/
|
|
interface ContractFieldRefs {
|
|
readonly id: FieldRef<"Contract", 'Int'>
|
|
readonly contractNumber: FieldRef<"Contract", 'String'>
|
|
readonly customerId: FieldRef<"Contract", 'Int'>
|
|
readonly type: FieldRef<"Contract", 'ContractType'>
|
|
readonly status: FieldRef<"Contract", 'ContractStatus'>
|
|
readonly contractCategoryId: FieldRef<"Contract", 'Int'>
|
|
readonly addressId: FieldRef<"Contract", 'Int'>
|
|
readonly billingAddressId: FieldRef<"Contract", 'Int'>
|
|
readonly bankCardId: FieldRef<"Contract", 'Int'>
|
|
readonly identityDocumentId: FieldRef<"Contract", 'Int'>
|
|
readonly salesPlatformId: FieldRef<"Contract", 'Int'>
|
|
readonly cancellationPeriodId: FieldRef<"Contract", 'Int'>
|
|
readonly contractDurationId: FieldRef<"Contract", 'Int'>
|
|
readonly previousContractId: FieldRef<"Contract", 'Int'>
|
|
readonly providerId: FieldRef<"Contract", 'Int'>
|
|
readonly tariffId: FieldRef<"Contract", 'Int'>
|
|
readonly providerName: FieldRef<"Contract", 'String'>
|
|
readonly tariffName: FieldRef<"Contract", 'String'>
|
|
readonly customerNumberAtProvider: FieldRef<"Contract", 'String'>
|
|
readonly priceFirst12Months: FieldRef<"Contract", 'String'>
|
|
readonly priceFrom13Months: FieldRef<"Contract", 'String'>
|
|
readonly priceAfter24Months: FieldRef<"Contract", 'String'>
|
|
readonly startDate: FieldRef<"Contract", 'DateTime'>
|
|
readonly endDate: FieldRef<"Contract", 'DateTime'>
|
|
readonly commission: FieldRef<"Contract", 'Float'>
|
|
readonly cancellationLetterPath: FieldRef<"Contract", 'String'>
|
|
readonly cancellationConfirmationPath: FieldRef<"Contract", 'String'>
|
|
readonly cancellationLetterOptionsPath: FieldRef<"Contract", 'String'>
|
|
readonly cancellationConfirmationOptionsPath: FieldRef<"Contract", 'String'>
|
|
readonly cancellationConfirmationDate: FieldRef<"Contract", 'DateTime'>
|
|
readonly cancellationConfirmationOptionsDate: FieldRef<"Contract", 'DateTime'>
|
|
readonly wasSpecialCancellation: FieldRef<"Contract", 'Boolean'>
|
|
readonly portalUsername: FieldRef<"Contract", 'String'>
|
|
readonly portalPasswordEncrypted: FieldRef<"Contract", 'String'>
|
|
readonly stressfreiEmailId: FieldRef<"Contract", 'Int'>
|
|
readonly notes: FieldRef<"Contract", 'String'>
|
|
readonly createdAt: FieldRef<"Contract", 'DateTime'>
|
|
readonly updatedAt: FieldRef<"Contract", 'DateTime'>
|
|
}
|
|
|
|
|
|
// Custom InputTypes
|
|
/**
|
|
* Contract findUnique
|
|
*/
|
|
export type ContractFindUniqueArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the Contract
|
|
*/
|
|
select?: ContractSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: ContractInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which Contract to fetch.
|
|
*/
|
|
where: ContractWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* Contract findUniqueOrThrow
|
|
*/
|
|
export type ContractFindUniqueOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the Contract
|
|
*/
|
|
select?: ContractSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: ContractInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which Contract to fetch.
|
|
*/
|
|
where: ContractWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* Contract findFirst
|
|
*/
|
|
export type ContractFindFirstArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the Contract
|
|
*/
|
|
select?: ContractSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: ContractInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which Contract to fetch.
|
|
*/
|
|
where?: ContractWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of Contracts to fetch.
|
|
*/
|
|
orderBy?: ContractOrderByWithRelationInput | ContractOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for searching for Contracts.
|
|
*/
|
|
cursor?: ContractWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` Contracts from the position of the cursor.
|
|
*/
|
|
take?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Skip the first `n` Contracts.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
*
|
|
* Filter by unique combinations of Contracts.
|
|
*/
|
|
distinct?: ContractScalarFieldEnum | ContractScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* Contract findFirstOrThrow
|
|
*/
|
|
export type ContractFindFirstOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the Contract
|
|
*/
|
|
select?: ContractSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: ContractInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which Contract to fetch.
|
|
*/
|
|
where?: ContractWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of Contracts to fetch.
|
|
*/
|
|
orderBy?: ContractOrderByWithRelationInput | ContractOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for searching for Contracts.
|
|
*/
|
|
cursor?: ContractWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` Contracts from the position of the cursor.
|
|
*/
|
|
take?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Skip the first `n` Contracts.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
*
|
|
* Filter by unique combinations of Contracts.
|
|
*/
|
|
distinct?: ContractScalarFieldEnum | ContractScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* Contract findMany
|
|
*/
|
|
export type ContractFindManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the Contract
|
|
*/
|
|
select?: ContractSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: ContractInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which Contracts to fetch.
|
|
*/
|
|
where?: ContractWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of Contracts to fetch.
|
|
*/
|
|
orderBy?: ContractOrderByWithRelationInput | ContractOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for listing Contracts.
|
|
*/
|
|
cursor?: ContractWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` Contracts from the position of the cursor.
|
|
*/
|
|
take?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Skip the first `n` Contracts.
|
|
*/
|
|
skip?: number
|
|
distinct?: ContractScalarFieldEnum | ContractScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* Contract create
|
|
*/
|
|
export type ContractCreateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the Contract
|
|
*/
|
|
select?: ContractSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: ContractInclude<ExtArgs> | null
|
|
/**
|
|
* The data needed to create a Contract.
|
|
*/
|
|
data: XOR<ContractCreateInput, ContractUncheckedCreateInput>
|
|
}
|
|
|
|
/**
|
|
* Contract createMany
|
|
*/
|
|
export type ContractCreateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* The data used to create many Contracts.
|
|
*/
|
|
data: ContractCreateManyInput | ContractCreateManyInput[]
|
|
skipDuplicates?: boolean
|
|
}
|
|
|
|
/**
|
|
* Contract update
|
|
*/
|
|
export type ContractUpdateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the Contract
|
|
*/
|
|
select?: ContractSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: ContractInclude<ExtArgs> | null
|
|
/**
|
|
* The data needed to update a Contract.
|
|
*/
|
|
data: XOR<ContractUpdateInput, ContractUncheckedUpdateInput>
|
|
/**
|
|
* Choose, which Contract to update.
|
|
*/
|
|
where: ContractWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* Contract updateMany
|
|
*/
|
|
export type ContractUpdateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* The data used to update Contracts.
|
|
*/
|
|
data: XOR<ContractUpdateManyMutationInput, ContractUncheckedUpdateManyInput>
|
|
/**
|
|
* Filter which Contracts to update
|
|
*/
|
|
where?: ContractWhereInput
|
|
}
|
|
|
|
/**
|
|
* Contract upsert
|
|
*/
|
|
export type ContractUpsertArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the Contract
|
|
*/
|
|
select?: ContractSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: ContractInclude<ExtArgs> | null
|
|
/**
|
|
* The filter to search for the Contract to update in case it exists.
|
|
*/
|
|
where: ContractWhereUniqueInput
|
|
/**
|
|
* In case the Contract found by the `where` argument doesn't exist, create a new Contract with this data.
|
|
*/
|
|
create: XOR<ContractCreateInput, ContractUncheckedCreateInput>
|
|
/**
|
|
* In case the Contract was found with the provided `where` argument, update it with this data.
|
|
*/
|
|
update: XOR<ContractUpdateInput, ContractUncheckedUpdateInput>
|
|
}
|
|
|
|
/**
|
|
* Contract delete
|
|
*/
|
|
export type ContractDeleteArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the Contract
|
|
*/
|
|
select?: ContractSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: ContractInclude<ExtArgs> | null
|
|
/**
|
|
* Filter which Contract to delete.
|
|
*/
|
|
where: ContractWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* Contract deleteMany
|
|
*/
|
|
export type ContractDeleteManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Filter which Contracts to delete
|
|
*/
|
|
where?: ContractWhereInput
|
|
}
|
|
|
|
/**
|
|
* Contract.contractCategory
|
|
*/
|
|
export type Contract$contractCategoryArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the ContractCategory
|
|
*/
|
|
select?: ContractCategorySelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: ContractCategoryInclude<ExtArgs> | null
|
|
where?: ContractCategoryWhereInput
|
|
}
|
|
|
|
/**
|
|
* Contract.address
|
|
*/
|
|
export type Contract$addressArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the Address
|
|
*/
|
|
select?: AddressSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: AddressInclude<ExtArgs> | null
|
|
where?: AddressWhereInput
|
|
}
|
|
|
|
/**
|
|
* Contract.billingAddress
|
|
*/
|
|
export type Contract$billingAddressArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the Address
|
|
*/
|
|
select?: AddressSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: AddressInclude<ExtArgs> | null
|
|
where?: AddressWhereInput
|
|
}
|
|
|
|
/**
|
|
* Contract.bankCard
|
|
*/
|
|
export type Contract$bankCardArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the BankCard
|
|
*/
|
|
select?: BankCardSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: BankCardInclude<ExtArgs> | null
|
|
where?: BankCardWhereInput
|
|
}
|
|
|
|
/**
|
|
* Contract.identityDocument
|
|
*/
|
|
export type Contract$identityDocumentArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the IdentityDocument
|
|
*/
|
|
select?: IdentityDocumentSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: IdentityDocumentInclude<ExtArgs> | null
|
|
where?: IdentityDocumentWhereInput
|
|
}
|
|
|
|
/**
|
|
* Contract.salesPlatform
|
|
*/
|
|
export type Contract$salesPlatformArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the SalesPlatform
|
|
*/
|
|
select?: SalesPlatformSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: SalesPlatformInclude<ExtArgs> | null
|
|
where?: SalesPlatformWhereInput
|
|
}
|
|
|
|
/**
|
|
* Contract.cancellationPeriod
|
|
*/
|
|
export type Contract$cancellationPeriodArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the CancellationPeriod
|
|
*/
|
|
select?: CancellationPeriodSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: CancellationPeriodInclude<ExtArgs> | null
|
|
where?: CancellationPeriodWhereInput
|
|
}
|
|
|
|
/**
|
|
* Contract.contractDuration
|
|
*/
|
|
export type Contract$contractDurationArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the ContractDuration
|
|
*/
|
|
select?: ContractDurationSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: ContractDurationInclude<ExtArgs> | null
|
|
where?: ContractDurationWhereInput
|
|
}
|
|
|
|
/**
|
|
* Contract.previousContract
|
|
*/
|
|
export type Contract$previousContractArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the Contract
|
|
*/
|
|
select?: ContractSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: ContractInclude<ExtArgs> | null
|
|
where?: ContractWhereInput
|
|
}
|
|
|
|
/**
|
|
* Contract.followUpContract
|
|
*/
|
|
export type Contract$followUpContractArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the Contract
|
|
*/
|
|
select?: ContractSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: ContractInclude<ExtArgs> | null
|
|
where?: ContractWhereInput
|
|
}
|
|
|
|
/**
|
|
* Contract.provider
|
|
*/
|
|
export type Contract$providerArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the Provider
|
|
*/
|
|
select?: ProviderSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: ProviderInclude<ExtArgs> | null
|
|
where?: ProviderWhereInput
|
|
}
|
|
|
|
/**
|
|
* Contract.tariff
|
|
*/
|
|
export type Contract$tariffArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the Tariff
|
|
*/
|
|
select?: TariffSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: TariffInclude<ExtArgs> | null
|
|
where?: TariffWhereInput
|
|
}
|
|
|
|
/**
|
|
* Contract.stressfreiEmail
|
|
*/
|
|
export type Contract$stressfreiEmailArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the StressfreiEmail
|
|
*/
|
|
select?: StressfreiEmailSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: StressfreiEmailInclude<ExtArgs> | null
|
|
where?: StressfreiEmailWhereInput
|
|
}
|
|
|
|
/**
|
|
* Contract.energyDetails
|
|
*/
|
|
export type Contract$energyDetailsArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the EnergyContractDetails
|
|
*/
|
|
select?: EnergyContractDetailsSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: EnergyContractDetailsInclude<ExtArgs> | null
|
|
where?: EnergyContractDetailsWhereInput
|
|
}
|
|
|
|
/**
|
|
* Contract.internetDetails
|
|
*/
|
|
export type Contract$internetDetailsArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the InternetContractDetails
|
|
*/
|
|
select?: InternetContractDetailsSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: InternetContractDetailsInclude<ExtArgs> | null
|
|
where?: InternetContractDetailsWhereInput
|
|
}
|
|
|
|
/**
|
|
* Contract.mobileDetails
|
|
*/
|
|
export type Contract$mobileDetailsArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the MobileContractDetails
|
|
*/
|
|
select?: MobileContractDetailsSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: MobileContractDetailsInclude<ExtArgs> | null
|
|
where?: MobileContractDetailsWhereInput
|
|
}
|
|
|
|
/**
|
|
* Contract.tvDetails
|
|
*/
|
|
export type Contract$tvDetailsArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the TvContractDetails
|
|
*/
|
|
select?: TvContractDetailsSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: TvContractDetailsInclude<ExtArgs> | null
|
|
where?: TvContractDetailsWhereInput
|
|
}
|
|
|
|
/**
|
|
* Contract.carInsuranceDetails
|
|
*/
|
|
export type Contract$carInsuranceDetailsArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the CarInsuranceDetails
|
|
*/
|
|
select?: CarInsuranceDetailsSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: CarInsuranceDetailsInclude<ExtArgs> | null
|
|
where?: CarInsuranceDetailsWhereInput
|
|
}
|
|
|
|
/**
|
|
* Contract.tasks
|
|
*/
|
|
export type Contract$tasksArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the ContractTask
|
|
*/
|
|
select?: ContractTaskSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: ContractTaskInclude<ExtArgs> | null
|
|
where?: ContractTaskWhereInput
|
|
orderBy?: ContractTaskOrderByWithRelationInput | ContractTaskOrderByWithRelationInput[]
|
|
cursor?: ContractTaskWhereUniqueInput
|
|
take?: number
|
|
skip?: number
|
|
distinct?: ContractTaskScalarFieldEnum | ContractTaskScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* Contract.assignedEmails
|
|
*/
|
|
export type Contract$assignedEmailsArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the CachedEmail
|
|
*/
|
|
select?: CachedEmailSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: CachedEmailInclude<ExtArgs> | null
|
|
where?: CachedEmailWhereInput
|
|
orderBy?: CachedEmailOrderByWithRelationInput | CachedEmailOrderByWithRelationInput[]
|
|
cursor?: CachedEmailWhereUniqueInput
|
|
take?: number
|
|
skip?: number
|
|
distinct?: CachedEmailScalarFieldEnum | CachedEmailScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* Contract without action
|
|
*/
|
|
export type ContractDefaultArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the Contract
|
|
*/
|
|
select?: ContractSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: ContractInclude<ExtArgs> | null
|
|
}
|
|
|
|
|
|
/**
|
|
* Model ContractTask
|
|
*/
|
|
|
|
export type AggregateContractTask = {
|
|
_count: ContractTaskCountAggregateOutputType | null
|
|
_avg: ContractTaskAvgAggregateOutputType | null
|
|
_sum: ContractTaskSumAggregateOutputType | null
|
|
_min: ContractTaskMinAggregateOutputType | null
|
|
_max: ContractTaskMaxAggregateOutputType | null
|
|
}
|
|
|
|
export type ContractTaskAvgAggregateOutputType = {
|
|
id: number | null
|
|
contractId: number | null
|
|
}
|
|
|
|
export type ContractTaskSumAggregateOutputType = {
|
|
id: number | null
|
|
contractId: number | null
|
|
}
|
|
|
|
export type ContractTaskMinAggregateOutputType = {
|
|
id: number | null
|
|
contractId: number | null
|
|
title: string | null
|
|
description: string | null
|
|
status: $Enums.ContractTaskStatus | null
|
|
visibleInPortal: boolean | null
|
|
createdBy: string | null
|
|
completedAt: Date | null
|
|
createdAt: Date | null
|
|
updatedAt: Date | null
|
|
}
|
|
|
|
export type ContractTaskMaxAggregateOutputType = {
|
|
id: number | null
|
|
contractId: number | null
|
|
title: string | null
|
|
description: string | null
|
|
status: $Enums.ContractTaskStatus | null
|
|
visibleInPortal: boolean | null
|
|
createdBy: string | null
|
|
completedAt: Date | null
|
|
createdAt: Date | null
|
|
updatedAt: Date | null
|
|
}
|
|
|
|
export type ContractTaskCountAggregateOutputType = {
|
|
id: number
|
|
contractId: number
|
|
title: number
|
|
description: number
|
|
status: number
|
|
visibleInPortal: number
|
|
createdBy: number
|
|
completedAt: number
|
|
createdAt: number
|
|
updatedAt: number
|
|
_all: number
|
|
}
|
|
|
|
|
|
export type ContractTaskAvgAggregateInputType = {
|
|
id?: true
|
|
contractId?: true
|
|
}
|
|
|
|
export type ContractTaskSumAggregateInputType = {
|
|
id?: true
|
|
contractId?: true
|
|
}
|
|
|
|
export type ContractTaskMinAggregateInputType = {
|
|
id?: true
|
|
contractId?: true
|
|
title?: true
|
|
description?: true
|
|
status?: true
|
|
visibleInPortal?: true
|
|
createdBy?: true
|
|
completedAt?: true
|
|
createdAt?: true
|
|
updatedAt?: true
|
|
}
|
|
|
|
export type ContractTaskMaxAggregateInputType = {
|
|
id?: true
|
|
contractId?: true
|
|
title?: true
|
|
description?: true
|
|
status?: true
|
|
visibleInPortal?: true
|
|
createdBy?: true
|
|
completedAt?: true
|
|
createdAt?: true
|
|
updatedAt?: true
|
|
}
|
|
|
|
export type ContractTaskCountAggregateInputType = {
|
|
id?: true
|
|
contractId?: true
|
|
title?: true
|
|
description?: true
|
|
status?: true
|
|
visibleInPortal?: true
|
|
createdBy?: true
|
|
completedAt?: true
|
|
createdAt?: true
|
|
updatedAt?: true
|
|
_all?: true
|
|
}
|
|
|
|
export type ContractTaskAggregateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Filter which ContractTask to aggregate.
|
|
*/
|
|
where?: ContractTaskWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of ContractTasks to fetch.
|
|
*/
|
|
orderBy?: ContractTaskOrderByWithRelationInput | ContractTaskOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the start position
|
|
*/
|
|
cursor?: ContractTaskWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` ContractTasks from the position of the cursor.
|
|
*/
|
|
take?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Skip the first `n` ContractTasks.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Count returned ContractTasks
|
|
**/
|
|
_count?: true | ContractTaskCountAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to average
|
|
**/
|
|
_avg?: ContractTaskAvgAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to sum
|
|
**/
|
|
_sum?: ContractTaskSumAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to find the minimum value
|
|
**/
|
|
_min?: ContractTaskMinAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to find the maximum value
|
|
**/
|
|
_max?: ContractTaskMaxAggregateInputType
|
|
}
|
|
|
|
export type GetContractTaskAggregateType<T extends ContractTaskAggregateArgs> = {
|
|
[P in keyof T & keyof AggregateContractTask]: P extends '_count' | 'count'
|
|
? T[P] extends true
|
|
? number
|
|
: GetScalarType<T[P], AggregateContractTask[P]>
|
|
: GetScalarType<T[P], AggregateContractTask[P]>
|
|
}
|
|
|
|
|
|
|
|
|
|
export type ContractTaskGroupByArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
where?: ContractTaskWhereInput
|
|
orderBy?: ContractTaskOrderByWithAggregationInput | ContractTaskOrderByWithAggregationInput[]
|
|
by: ContractTaskScalarFieldEnum[] | ContractTaskScalarFieldEnum
|
|
having?: ContractTaskScalarWhereWithAggregatesInput
|
|
take?: number
|
|
skip?: number
|
|
_count?: ContractTaskCountAggregateInputType | true
|
|
_avg?: ContractTaskAvgAggregateInputType
|
|
_sum?: ContractTaskSumAggregateInputType
|
|
_min?: ContractTaskMinAggregateInputType
|
|
_max?: ContractTaskMaxAggregateInputType
|
|
}
|
|
|
|
export type ContractTaskGroupByOutputType = {
|
|
id: number
|
|
contractId: number
|
|
title: string
|
|
description: string | null
|
|
status: $Enums.ContractTaskStatus
|
|
visibleInPortal: boolean
|
|
createdBy: string | null
|
|
completedAt: Date | null
|
|
createdAt: Date
|
|
updatedAt: Date
|
|
_count: ContractTaskCountAggregateOutputType | null
|
|
_avg: ContractTaskAvgAggregateOutputType | null
|
|
_sum: ContractTaskSumAggregateOutputType | null
|
|
_min: ContractTaskMinAggregateOutputType | null
|
|
_max: ContractTaskMaxAggregateOutputType | null
|
|
}
|
|
|
|
type GetContractTaskGroupByPayload<T extends ContractTaskGroupByArgs> = Prisma.PrismaPromise<
|
|
Array<
|
|
PickEnumerable<ContractTaskGroupByOutputType, T['by']> &
|
|
{
|
|
[P in ((keyof T) & (keyof ContractTaskGroupByOutputType))]: P extends '_count'
|
|
? T[P] extends boolean
|
|
? number
|
|
: GetScalarType<T[P], ContractTaskGroupByOutputType[P]>
|
|
: GetScalarType<T[P], ContractTaskGroupByOutputType[P]>
|
|
}
|
|
>
|
|
>
|
|
|
|
|
|
export type ContractTaskSelect<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
|
|
id?: boolean
|
|
contractId?: boolean
|
|
title?: boolean
|
|
description?: boolean
|
|
status?: boolean
|
|
visibleInPortal?: boolean
|
|
createdBy?: boolean
|
|
completedAt?: boolean
|
|
createdAt?: boolean
|
|
updatedAt?: boolean
|
|
contract?: boolean | ContractDefaultArgs<ExtArgs>
|
|
subtasks?: boolean | ContractTask$subtasksArgs<ExtArgs>
|
|
_count?: boolean | ContractTaskCountOutputTypeDefaultArgs<ExtArgs>
|
|
}, ExtArgs["result"]["contractTask"]>
|
|
|
|
|
|
export type ContractTaskSelectScalar = {
|
|
id?: boolean
|
|
contractId?: boolean
|
|
title?: boolean
|
|
description?: boolean
|
|
status?: boolean
|
|
visibleInPortal?: boolean
|
|
createdBy?: boolean
|
|
completedAt?: boolean
|
|
createdAt?: boolean
|
|
updatedAt?: boolean
|
|
}
|
|
|
|
export type ContractTaskInclude<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
contract?: boolean | ContractDefaultArgs<ExtArgs>
|
|
subtasks?: boolean | ContractTask$subtasksArgs<ExtArgs>
|
|
_count?: boolean | ContractTaskCountOutputTypeDefaultArgs<ExtArgs>
|
|
}
|
|
|
|
export type $ContractTaskPayload<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
name: "ContractTask"
|
|
objects: {
|
|
contract: Prisma.$ContractPayload<ExtArgs>
|
|
subtasks: Prisma.$ContractTaskSubtaskPayload<ExtArgs>[]
|
|
}
|
|
scalars: $Extensions.GetPayloadResult<{
|
|
id: number
|
|
contractId: number
|
|
title: string
|
|
description: string | null
|
|
status: $Enums.ContractTaskStatus
|
|
visibleInPortal: boolean
|
|
createdBy: string | null
|
|
completedAt: Date | null
|
|
createdAt: Date
|
|
updatedAt: Date
|
|
}, ExtArgs["result"]["contractTask"]>
|
|
composites: {}
|
|
}
|
|
|
|
type ContractTaskGetPayload<S extends boolean | null | undefined | ContractTaskDefaultArgs> = $Result.GetResult<Prisma.$ContractTaskPayload, S>
|
|
|
|
type ContractTaskCountArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> =
|
|
Omit<ContractTaskFindManyArgs, 'select' | 'include' | 'distinct'> & {
|
|
select?: ContractTaskCountAggregateInputType | true
|
|
}
|
|
|
|
export interface ContractTaskDelegate<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> {
|
|
[K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['ContractTask'], meta: { name: 'ContractTask' } }
|
|
/**
|
|
* Find zero or one ContractTask that matches the filter.
|
|
* @param {ContractTaskFindUniqueArgs} args - Arguments to find a ContractTask
|
|
* @example
|
|
* // Get one ContractTask
|
|
* const contractTask = await prisma.contractTask.findUnique({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findUnique<T extends ContractTaskFindUniqueArgs>(args: SelectSubset<T, ContractTaskFindUniqueArgs<ExtArgs>>): Prisma__ContractTaskClient<$Result.GetResult<Prisma.$ContractTaskPayload<ExtArgs>, T, "findUnique"> | null, null, ExtArgs>
|
|
|
|
/**
|
|
* Find one ContractTask that matches the filter or throw an error with `error.code='P2025'`
|
|
* if no matches were found.
|
|
* @param {ContractTaskFindUniqueOrThrowArgs} args - Arguments to find a ContractTask
|
|
* @example
|
|
* // Get one ContractTask
|
|
* const contractTask = await prisma.contractTask.findUniqueOrThrow({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findUniqueOrThrow<T extends ContractTaskFindUniqueOrThrowArgs>(args: SelectSubset<T, ContractTaskFindUniqueOrThrowArgs<ExtArgs>>): Prisma__ContractTaskClient<$Result.GetResult<Prisma.$ContractTaskPayload<ExtArgs>, T, "findUniqueOrThrow">, never, ExtArgs>
|
|
|
|
/**
|
|
* Find the first ContractTask that matches the filter.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {ContractTaskFindFirstArgs} args - Arguments to find a ContractTask
|
|
* @example
|
|
* // Get one ContractTask
|
|
* const contractTask = await prisma.contractTask.findFirst({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findFirst<T extends ContractTaskFindFirstArgs>(args?: SelectSubset<T, ContractTaskFindFirstArgs<ExtArgs>>): Prisma__ContractTaskClient<$Result.GetResult<Prisma.$ContractTaskPayload<ExtArgs>, T, "findFirst"> | null, null, ExtArgs>
|
|
|
|
/**
|
|
* Find the first ContractTask that matches the filter or
|
|
* throw `PrismaKnownClientError` with `P2025` code if no matches were found.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {ContractTaskFindFirstOrThrowArgs} args - Arguments to find a ContractTask
|
|
* @example
|
|
* // Get one ContractTask
|
|
* const contractTask = await prisma.contractTask.findFirstOrThrow({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findFirstOrThrow<T extends ContractTaskFindFirstOrThrowArgs>(args?: SelectSubset<T, ContractTaskFindFirstOrThrowArgs<ExtArgs>>): Prisma__ContractTaskClient<$Result.GetResult<Prisma.$ContractTaskPayload<ExtArgs>, T, "findFirstOrThrow">, never, ExtArgs>
|
|
|
|
/**
|
|
* Find zero or more ContractTasks that matches the filter.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {ContractTaskFindManyArgs} args - Arguments to filter and select certain fields only.
|
|
* @example
|
|
* // Get all ContractTasks
|
|
* const contractTasks = await prisma.contractTask.findMany()
|
|
*
|
|
* // Get first 10 ContractTasks
|
|
* const contractTasks = await prisma.contractTask.findMany({ take: 10 })
|
|
*
|
|
* // Only select the `id`
|
|
* const contractTaskWithIdOnly = await prisma.contractTask.findMany({ select: { id: true } })
|
|
*
|
|
*/
|
|
findMany<T extends ContractTaskFindManyArgs>(args?: SelectSubset<T, ContractTaskFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$ContractTaskPayload<ExtArgs>, T, "findMany">>
|
|
|
|
/**
|
|
* Create a ContractTask.
|
|
* @param {ContractTaskCreateArgs} args - Arguments to create a ContractTask.
|
|
* @example
|
|
* // Create one ContractTask
|
|
* const ContractTask = await prisma.contractTask.create({
|
|
* data: {
|
|
* // ... data to create a ContractTask
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
create<T extends ContractTaskCreateArgs>(args: SelectSubset<T, ContractTaskCreateArgs<ExtArgs>>): Prisma__ContractTaskClient<$Result.GetResult<Prisma.$ContractTaskPayload<ExtArgs>, T, "create">, never, ExtArgs>
|
|
|
|
/**
|
|
* Create many ContractTasks.
|
|
* @param {ContractTaskCreateManyArgs} args - Arguments to create many ContractTasks.
|
|
* @example
|
|
* // Create many ContractTasks
|
|
* const contractTask = await prisma.contractTask.createMany({
|
|
* data: [
|
|
* // ... provide data here
|
|
* ]
|
|
* })
|
|
*
|
|
*/
|
|
createMany<T extends ContractTaskCreateManyArgs>(args?: SelectSubset<T, ContractTaskCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
|
|
|
|
/**
|
|
* Delete a ContractTask.
|
|
* @param {ContractTaskDeleteArgs} args - Arguments to delete one ContractTask.
|
|
* @example
|
|
* // Delete one ContractTask
|
|
* const ContractTask = await prisma.contractTask.delete({
|
|
* where: {
|
|
* // ... filter to delete one ContractTask
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
delete<T extends ContractTaskDeleteArgs>(args: SelectSubset<T, ContractTaskDeleteArgs<ExtArgs>>): Prisma__ContractTaskClient<$Result.GetResult<Prisma.$ContractTaskPayload<ExtArgs>, T, "delete">, never, ExtArgs>
|
|
|
|
/**
|
|
* Update one ContractTask.
|
|
* @param {ContractTaskUpdateArgs} args - Arguments to update one ContractTask.
|
|
* @example
|
|
* // Update one ContractTask
|
|
* const contractTask = await prisma.contractTask.update({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* },
|
|
* data: {
|
|
* // ... provide data here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
update<T extends ContractTaskUpdateArgs>(args: SelectSubset<T, ContractTaskUpdateArgs<ExtArgs>>): Prisma__ContractTaskClient<$Result.GetResult<Prisma.$ContractTaskPayload<ExtArgs>, T, "update">, never, ExtArgs>
|
|
|
|
/**
|
|
* Delete zero or more ContractTasks.
|
|
* @param {ContractTaskDeleteManyArgs} args - Arguments to filter ContractTasks to delete.
|
|
* @example
|
|
* // Delete a few ContractTasks
|
|
* const { count } = await prisma.contractTask.deleteMany({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
deleteMany<T extends ContractTaskDeleteManyArgs>(args?: SelectSubset<T, ContractTaskDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
|
|
|
|
/**
|
|
* Update zero or more ContractTasks.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {ContractTaskUpdateManyArgs} args - Arguments to update one or more rows.
|
|
* @example
|
|
* // Update many ContractTasks
|
|
* const contractTask = await prisma.contractTask.updateMany({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* },
|
|
* data: {
|
|
* // ... provide data here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
updateMany<T extends ContractTaskUpdateManyArgs>(args: SelectSubset<T, ContractTaskUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
|
|
|
|
/**
|
|
* Create or update one ContractTask.
|
|
* @param {ContractTaskUpsertArgs} args - Arguments to update or create a ContractTask.
|
|
* @example
|
|
* // Update or create a ContractTask
|
|
* const contractTask = await prisma.contractTask.upsert({
|
|
* create: {
|
|
* // ... data to create a ContractTask
|
|
* },
|
|
* update: {
|
|
* // ... in case it already exists, update
|
|
* },
|
|
* where: {
|
|
* // ... the filter for the ContractTask we want to update
|
|
* }
|
|
* })
|
|
*/
|
|
upsert<T extends ContractTaskUpsertArgs>(args: SelectSubset<T, ContractTaskUpsertArgs<ExtArgs>>): Prisma__ContractTaskClient<$Result.GetResult<Prisma.$ContractTaskPayload<ExtArgs>, T, "upsert">, never, ExtArgs>
|
|
|
|
|
|
/**
|
|
* Count the number of ContractTasks.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {ContractTaskCountArgs} args - Arguments to filter ContractTasks to count.
|
|
* @example
|
|
* // Count the number of ContractTasks
|
|
* const count = await prisma.contractTask.count({
|
|
* where: {
|
|
* // ... the filter for the ContractTasks we want to count
|
|
* }
|
|
* })
|
|
**/
|
|
count<T extends ContractTaskCountArgs>(
|
|
args?: Subset<T, ContractTaskCountArgs>,
|
|
): Prisma.PrismaPromise<
|
|
T extends $Utils.Record<'select', any>
|
|
? T['select'] extends true
|
|
? number
|
|
: GetScalarType<T['select'], ContractTaskCountAggregateOutputType>
|
|
: number
|
|
>
|
|
|
|
/**
|
|
* Allows you to perform aggregations operations on a ContractTask.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {ContractTaskAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
|
|
* @example
|
|
* // Ordered by age ascending
|
|
* // Where email contains prisma.io
|
|
* // Limited to the 10 users
|
|
* const aggregations = await prisma.user.aggregate({
|
|
* _avg: {
|
|
* age: true,
|
|
* },
|
|
* where: {
|
|
* email: {
|
|
* contains: "prisma.io",
|
|
* },
|
|
* },
|
|
* orderBy: {
|
|
* age: "asc",
|
|
* },
|
|
* take: 10,
|
|
* })
|
|
**/
|
|
aggregate<T extends ContractTaskAggregateArgs>(args: Subset<T, ContractTaskAggregateArgs>): Prisma.PrismaPromise<GetContractTaskAggregateType<T>>
|
|
|
|
/**
|
|
* Group by ContractTask.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {ContractTaskGroupByArgs} args - Group by arguments.
|
|
* @example
|
|
* // Group by city, order by createdAt, get count
|
|
* const result = await prisma.user.groupBy({
|
|
* by: ['city', 'createdAt'],
|
|
* orderBy: {
|
|
* createdAt: true
|
|
* },
|
|
* _count: {
|
|
* _all: true
|
|
* },
|
|
* })
|
|
*
|
|
**/
|
|
groupBy<
|
|
T extends ContractTaskGroupByArgs,
|
|
HasSelectOrTake extends Or<
|
|
Extends<'skip', Keys<T>>,
|
|
Extends<'take', Keys<T>>
|
|
>,
|
|
OrderByArg extends True extends HasSelectOrTake
|
|
? { orderBy: ContractTaskGroupByArgs['orderBy'] }
|
|
: { orderBy?: ContractTaskGroupByArgs['orderBy'] },
|
|
OrderFields extends ExcludeUnderscoreKeys<Keys<MaybeTupleToUnion<T['orderBy']>>>,
|
|
ByFields extends MaybeTupleToUnion<T['by']>,
|
|
ByValid extends Has<ByFields, OrderFields>,
|
|
HavingFields extends GetHavingFields<T['having']>,
|
|
HavingValid extends Has<ByFields, HavingFields>,
|
|
ByEmpty extends T['by'] extends never[] ? True : False,
|
|
InputErrors extends ByEmpty extends True
|
|
? `Error: "by" must not be empty.`
|
|
: HavingValid extends False
|
|
? {
|
|
[P in HavingFields]: P extends ByFields
|
|
? never
|
|
: P extends string
|
|
? `Error: Field "${P}" used in "having" needs to be provided in "by".`
|
|
: [
|
|
Error,
|
|
'Field ',
|
|
P,
|
|
` in "having" needs to be provided in "by"`,
|
|
]
|
|
}[HavingFields]
|
|
: 'take' extends Keys<T>
|
|
? 'orderBy' extends Keys<T>
|
|
? ByValid extends True
|
|
? {}
|
|
: {
|
|
[P in OrderFields]: P extends ByFields
|
|
? never
|
|
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
|
|
}[OrderFields]
|
|
: 'Error: If you provide "take", you also need to provide "orderBy"'
|
|
: 'skip' extends Keys<T>
|
|
? 'orderBy' extends Keys<T>
|
|
? ByValid extends True
|
|
? {}
|
|
: {
|
|
[P in OrderFields]: P extends ByFields
|
|
? never
|
|
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
|
|
}[OrderFields]
|
|
: 'Error: If you provide "skip", you also need to provide "orderBy"'
|
|
: ByValid extends True
|
|
? {}
|
|
: {
|
|
[P in OrderFields]: P extends ByFields
|
|
? never
|
|
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
|
|
}[OrderFields]
|
|
>(args: SubsetIntersection<T, ContractTaskGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetContractTaskGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
|
|
/**
|
|
* Fields of the ContractTask model
|
|
*/
|
|
readonly fields: ContractTaskFieldRefs;
|
|
}
|
|
|
|
/**
|
|
* The delegate class that acts as a "Promise-like" for ContractTask.
|
|
* Why is this prefixed with `Prisma__`?
|
|
* Because we want to prevent naming conflicts as mentioned in
|
|
* https://github.com/prisma/prisma-client-js/issues/707
|
|
*/
|
|
export interface Prisma__ContractTaskClient<T, Null = never, ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> extends Prisma.PrismaPromise<T> {
|
|
readonly [Symbol.toStringTag]: "PrismaPromise"
|
|
contract<T extends ContractDefaultArgs<ExtArgs> = {}>(args?: Subset<T, ContractDefaultArgs<ExtArgs>>): Prisma__ContractClient<$Result.GetResult<Prisma.$ContractPayload<ExtArgs>, T, "findUniqueOrThrow"> | Null, Null, ExtArgs>
|
|
subtasks<T extends ContractTask$subtasksArgs<ExtArgs> = {}>(args?: Subset<T, ContractTask$subtasksArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$ContractTaskSubtaskPayload<ExtArgs>, T, "findMany"> | Null>
|
|
/**
|
|
* Attaches callbacks for the resolution and/or rejection of the Promise.
|
|
* @param onfulfilled The callback to execute when the Promise is resolved.
|
|
* @param onrejected The callback to execute when the Promise is rejected.
|
|
* @returns A Promise for the completion of which ever callback is executed.
|
|
*/
|
|
then<TResult1 = T, TResult2 = never>(onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined | null): $Utils.JsPromise<TResult1 | TResult2>
|
|
/**
|
|
* Attaches a callback for only the rejection of the Promise.
|
|
* @param onrejected The callback to execute when the Promise is rejected.
|
|
* @returns A Promise for the completion of the callback.
|
|
*/
|
|
catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): $Utils.JsPromise<T | TResult>
|
|
/**
|
|
* Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
|
|
* resolved value cannot be modified from the callback.
|
|
* @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
|
|
* @returns A Promise for the completion of the callback.
|
|
*/
|
|
finally(onfinally?: (() => void) | undefined | null): $Utils.JsPromise<T>
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
* Fields of the ContractTask model
|
|
*/
|
|
interface ContractTaskFieldRefs {
|
|
readonly id: FieldRef<"ContractTask", 'Int'>
|
|
readonly contractId: FieldRef<"ContractTask", 'Int'>
|
|
readonly title: FieldRef<"ContractTask", 'String'>
|
|
readonly description: FieldRef<"ContractTask", 'String'>
|
|
readonly status: FieldRef<"ContractTask", 'ContractTaskStatus'>
|
|
readonly visibleInPortal: FieldRef<"ContractTask", 'Boolean'>
|
|
readonly createdBy: FieldRef<"ContractTask", 'String'>
|
|
readonly completedAt: FieldRef<"ContractTask", 'DateTime'>
|
|
readonly createdAt: FieldRef<"ContractTask", 'DateTime'>
|
|
readonly updatedAt: FieldRef<"ContractTask", 'DateTime'>
|
|
}
|
|
|
|
|
|
// Custom InputTypes
|
|
/**
|
|
* ContractTask findUnique
|
|
*/
|
|
export type ContractTaskFindUniqueArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the ContractTask
|
|
*/
|
|
select?: ContractTaskSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: ContractTaskInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which ContractTask to fetch.
|
|
*/
|
|
where: ContractTaskWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* ContractTask findUniqueOrThrow
|
|
*/
|
|
export type ContractTaskFindUniqueOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the ContractTask
|
|
*/
|
|
select?: ContractTaskSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: ContractTaskInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which ContractTask to fetch.
|
|
*/
|
|
where: ContractTaskWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* ContractTask findFirst
|
|
*/
|
|
export type ContractTaskFindFirstArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the ContractTask
|
|
*/
|
|
select?: ContractTaskSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: ContractTaskInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which ContractTask to fetch.
|
|
*/
|
|
where?: ContractTaskWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of ContractTasks to fetch.
|
|
*/
|
|
orderBy?: ContractTaskOrderByWithRelationInput | ContractTaskOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for searching for ContractTasks.
|
|
*/
|
|
cursor?: ContractTaskWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` ContractTasks from the position of the cursor.
|
|
*/
|
|
take?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Skip the first `n` ContractTasks.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
*
|
|
* Filter by unique combinations of ContractTasks.
|
|
*/
|
|
distinct?: ContractTaskScalarFieldEnum | ContractTaskScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* ContractTask findFirstOrThrow
|
|
*/
|
|
export type ContractTaskFindFirstOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the ContractTask
|
|
*/
|
|
select?: ContractTaskSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: ContractTaskInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which ContractTask to fetch.
|
|
*/
|
|
where?: ContractTaskWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of ContractTasks to fetch.
|
|
*/
|
|
orderBy?: ContractTaskOrderByWithRelationInput | ContractTaskOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for searching for ContractTasks.
|
|
*/
|
|
cursor?: ContractTaskWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` ContractTasks from the position of the cursor.
|
|
*/
|
|
take?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Skip the first `n` ContractTasks.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
*
|
|
* Filter by unique combinations of ContractTasks.
|
|
*/
|
|
distinct?: ContractTaskScalarFieldEnum | ContractTaskScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* ContractTask findMany
|
|
*/
|
|
export type ContractTaskFindManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the ContractTask
|
|
*/
|
|
select?: ContractTaskSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: ContractTaskInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which ContractTasks to fetch.
|
|
*/
|
|
where?: ContractTaskWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of ContractTasks to fetch.
|
|
*/
|
|
orderBy?: ContractTaskOrderByWithRelationInput | ContractTaskOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for listing ContractTasks.
|
|
*/
|
|
cursor?: ContractTaskWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` ContractTasks from the position of the cursor.
|
|
*/
|
|
take?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Skip the first `n` ContractTasks.
|
|
*/
|
|
skip?: number
|
|
distinct?: ContractTaskScalarFieldEnum | ContractTaskScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* ContractTask create
|
|
*/
|
|
export type ContractTaskCreateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the ContractTask
|
|
*/
|
|
select?: ContractTaskSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: ContractTaskInclude<ExtArgs> | null
|
|
/**
|
|
* The data needed to create a ContractTask.
|
|
*/
|
|
data: XOR<ContractTaskCreateInput, ContractTaskUncheckedCreateInput>
|
|
}
|
|
|
|
/**
|
|
* ContractTask createMany
|
|
*/
|
|
export type ContractTaskCreateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* The data used to create many ContractTasks.
|
|
*/
|
|
data: ContractTaskCreateManyInput | ContractTaskCreateManyInput[]
|
|
skipDuplicates?: boolean
|
|
}
|
|
|
|
/**
|
|
* ContractTask update
|
|
*/
|
|
export type ContractTaskUpdateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the ContractTask
|
|
*/
|
|
select?: ContractTaskSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: ContractTaskInclude<ExtArgs> | null
|
|
/**
|
|
* The data needed to update a ContractTask.
|
|
*/
|
|
data: XOR<ContractTaskUpdateInput, ContractTaskUncheckedUpdateInput>
|
|
/**
|
|
* Choose, which ContractTask to update.
|
|
*/
|
|
where: ContractTaskWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* ContractTask updateMany
|
|
*/
|
|
export type ContractTaskUpdateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* The data used to update ContractTasks.
|
|
*/
|
|
data: XOR<ContractTaskUpdateManyMutationInput, ContractTaskUncheckedUpdateManyInput>
|
|
/**
|
|
* Filter which ContractTasks to update
|
|
*/
|
|
where?: ContractTaskWhereInput
|
|
}
|
|
|
|
/**
|
|
* ContractTask upsert
|
|
*/
|
|
export type ContractTaskUpsertArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the ContractTask
|
|
*/
|
|
select?: ContractTaskSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: ContractTaskInclude<ExtArgs> | null
|
|
/**
|
|
* The filter to search for the ContractTask to update in case it exists.
|
|
*/
|
|
where: ContractTaskWhereUniqueInput
|
|
/**
|
|
* In case the ContractTask found by the `where` argument doesn't exist, create a new ContractTask with this data.
|
|
*/
|
|
create: XOR<ContractTaskCreateInput, ContractTaskUncheckedCreateInput>
|
|
/**
|
|
* In case the ContractTask was found with the provided `where` argument, update it with this data.
|
|
*/
|
|
update: XOR<ContractTaskUpdateInput, ContractTaskUncheckedUpdateInput>
|
|
}
|
|
|
|
/**
|
|
* ContractTask delete
|
|
*/
|
|
export type ContractTaskDeleteArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the ContractTask
|
|
*/
|
|
select?: ContractTaskSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: ContractTaskInclude<ExtArgs> | null
|
|
/**
|
|
* Filter which ContractTask to delete.
|
|
*/
|
|
where: ContractTaskWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* ContractTask deleteMany
|
|
*/
|
|
export type ContractTaskDeleteManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Filter which ContractTasks to delete
|
|
*/
|
|
where?: ContractTaskWhereInput
|
|
}
|
|
|
|
/**
|
|
* ContractTask.subtasks
|
|
*/
|
|
export type ContractTask$subtasksArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the ContractTaskSubtask
|
|
*/
|
|
select?: ContractTaskSubtaskSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: ContractTaskSubtaskInclude<ExtArgs> | null
|
|
where?: ContractTaskSubtaskWhereInput
|
|
orderBy?: ContractTaskSubtaskOrderByWithRelationInput | ContractTaskSubtaskOrderByWithRelationInput[]
|
|
cursor?: ContractTaskSubtaskWhereUniqueInput
|
|
take?: number
|
|
skip?: number
|
|
distinct?: ContractTaskSubtaskScalarFieldEnum | ContractTaskSubtaskScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* ContractTask without action
|
|
*/
|
|
export type ContractTaskDefaultArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the ContractTask
|
|
*/
|
|
select?: ContractTaskSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: ContractTaskInclude<ExtArgs> | null
|
|
}
|
|
|
|
|
|
/**
|
|
* Model ContractTaskSubtask
|
|
*/
|
|
|
|
export type AggregateContractTaskSubtask = {
|
|
_count: ContractTaskSubtaskCountAggregateOutputType | null
|
|
_avg: ContractTaskSubtaskAvgAggregateOutputType | null
|
|
_sum: ContractTaskSubtaskSumAggregateOutputType | null
|
|
_min: ContractTaskSubtaskMinAggregateOutputType | null
|
|
_max: ContractTaskSubtaskMaxAggregateOutputType | null
|
|
}
|
|
|
|
export type ContractTaskSubtaskAvgAggregateOutputType = {
|
|
id: number | null
|
|
taskId: number | null
|
|
}
|
|
|
|
export type ContractTaskSubtaskSumAggregateOutputType = {
|
|
id: number | null
|
|
taskId: number | null
|
|
}
|
|
|
|
export type ContractTaskSubtaskMinAggregateOutputType = {
|
|
id: number | null
|
|
taskId: number | null
|
|
title: string | null
|
|
status: $Enums.ContractTaskStatus | null
|
|
createdBy: string | null
|
|
completedAt: Date | null
|
|
createdAt: Date | null
|
|
updatedAt: Date | null
|
|
}
|
|
|
|
export type ContractTaskSubtaskMaxAggregateOutputType = {
|
|
id: number | null
|
|
taskId: number | null
|
|
title: string | null
|
|
status: $Enums.ContractTaskStatus | null
|
|
createdBy: string | null
|
|
completedAt: Date | null
|
|
createdAt: Date | null
|
|
updatedAt: Date | null
|
|
}
|
|
|
|
export type ContractTaskSubtaskCountAggregateOutputType = {
|
|
id: number
|
|
taskId: number
|
|
title: number
|
|
status: number
|
|
createdBy: number
|
|
completedAt: number
|
|
createdAt: number
|
|
updatedAt: number
|
|
_all: number
|
|
}
|
|
|
|
|
|
export type ContractTaskSubtaskAvgAggregateInputType = {
|
|
id?: true
|
|
taskId?: true
|
|
}
|
|
|
|
export type ContractTaskSubtaskSumAggregateInputType = {
|
|
id?: true
|
|
taskId?: true
|
|
}
|
|
|
|
export type ContractTaskSubtaskMinAggregateInputType = {
|
|
id?: true
|
|
taskId?: true
|
|
title?: true
|
|
status?: true
|
|
createdBy?: true
|
|
completedAt?: true
|
|
createdAt?: true
|
|
updatedAt?: true
|
|
}
|
|
|
|
export type ContractTaskSubtaskMaxAggregateInputType = {
|
|
id?: true
|
|
taskId?: true
|
|
title?: true
|
|
status?: true
|
|
createdBy?: true
|
|
completedAt?: true
|
|
createdAt?: true
|
|
updatedAt?: true
|
|
}
|
|
|
|
export type ContractTaskSubtaskCountAggregateInputType = {
|
|
id?: true
|
|
taskId?: true
|
|
title?: true
|
|
status?: true
|
|
createdBy?: true
|
|
completedAt?: true
|
|
createdAt?: true
|
|
updatedAt?: true
|
|
_all?: true
|
|
}
|
|
|
|
export type ContractTaskSubtaskAggregateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Filter which ContractTaskSubtask to aggregate.
|
|
*/
|
|
where?: ContractTaskSubtaskWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of ContractTaskSubtasks to fetch.
|
|
*/
|
|
orderBy?: ContractTaskSubtaskOrderByWithRelationInput | ContractTaskSubtaskOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the start position
|
|
*/
|
|
cursor?: ContractTaskSubtaskWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` ContractTaskSubtasks from the position of the cursor.
|
|
*/
|
|
take?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Skip the first `n` ContractTaskSubtasks.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Count returned ContractTaskSubtasks
|
|
**/
|
|
_count?: true | ContractTaskSubtaskCountAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to average
|
|
**/
|
|
_avg?: ContractTaskSubtaskAvgAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to sum
|
|
**/
|
|
_sum?: ContractTaskSubtaskSumAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to find the minimum value
|
|
**/
|
|
_min?: ContractTaskSubtaskMinAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to find the maximum value
|
|
**/
|
|
_max?: ContractTaskSubtaskMaxAggregateInputType
|
|
}
|
|
|
|
export type GetContractTaskSubtaskAggregateType<T extends ContractTaskSubtaskAggregateArgs> = {
|
|
[P in keyof T & keyof AggregateContractTaskSubtask]: P extends '_count' | 'count'
|
|
? T[P] extends true
|
|
? number
|
|
: GetScalarType<T[P], AggregateContractTaskSubtask[P]>
|
|
: GetScalarType<T[P], AggregateContractTaskSubtask[P]>
|
|
}
|
|
|
|
|
|
|
|
|
|
export type ContractTaskSubtaskGroupByArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
where?: ContractTaskSubtaskWhereInput
|
|
orderBy?: ContractTaskSubtaskOrderByWithAggregationInput | ContractTaskSubtaskOrderByWithAggregationInput[]
|
|
by: ContractTaskSubtaskScalarFieldEnum[] | ContractTaskSubtaskScalarFieldEnum
|
|
having?: ContractTaskSubtaskScalarWhereWithAggregatesInput
|
|
take?: number
|
|
skip?: number
|
|
_count?: ContractTaskSubtaskCountAggregateInputType | true
|
|
_avg?: ContractTaskSubtaskAvgAggregateInputType
|
|
_sum?: ContractTaskSubtaskSumAggregateInputType
|
|
_min?: ContractTaskSubtaskMinAggregateInputType
|
|
_max?: ContractTaskSubtaskMaxAggregateInputType
|
|
}
|
|
|
|
export type ContractTaskSubtaskGroupByOutputType = {
|
|
id: number
|
|
taskId: number
|
|
title: string
|
|
status: $Enums.ContractTaskStatus
|
|
createdBy: string | null
|
|
completedAt: Date | null
|
|
createdAt: Date
|
|
updatedAt: Date
|
|
_count: ContractTaskSubtaskCountAggregateOutputType | null
|
|
_avg: ContractTaskSubtaskAvgAggregateOutputType | null
|
|
_sum: ContractTaskSubtaskSumAggregateOutputType | null
|
|
_min: ContractTaskSubtaskMinAggregateOutputType | null
|
|
_max: ContractTaskSubtaskMaxAggregateOutputType | null
|
|
}
|
|
|
|
type GetContractTaskSubtaskGroupByPayload<T extends ContractTaskSubtaskGroupByArgs> = Prisma.PrismaPromise<
|
|
Array<
|
|
PickEnumerable<ContractTaskSubtaskGroupByOutputType, T['by']> &
|
|
{
|
|
[P in ((keyof T) & (keyof ContractTaskSubtaskGroupByOutputType))]: P extends '_count'
|
|
? T[P] extends boolean
|
|
? number
|
|
: GetScalarType<T[P], ContractTaskSubtaskGroupByOutputType[P]>
|
|
: GetScalarType<T[P], ContractTaskSubtaskGroupByOutputType[P]>
|
|
}
|
|
>
|
|
>
|
|
|
|
|
|
export type ContractTaskSubtaskSelect<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
|
|
id?: boolean
|
|
taskId?: boolean
|
|
title?: boolean
|
|
status?: boolean
|
|
createdBy?: boolean
|
|
completedAt?: boolean
|
|
createdAt?: boolean
|
|
updatedAt?: boolean
|
|
task?: boolean | ContractTaskDefaultArgs<ExtArgs>
|
|
}, ExtArgs["result"]["contractTaskSubtask"]>
|
|
|
|
|
|
export type ContractTaskSubtaskSelectScalar = {
|
|
id?: boolean
|
|
taskId?: boolean
|
|
title?: boolean
|
|
status?: boolean
|
|
createdBy?: boolean
|
|
completedAt?: boolean
|
|
createdAt?: boolean
|
|
updatedAt?: boolean
|
|
}
|
|
|
|
export type ContractTaskSubtaskInclude<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
task?: boolean | ContractTaskDefaultArgs<ExtArgs>
|
|
}
|
|
|
|
export type $ContractTaskSubtaskPayload<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
name: "ContractTaskSubtask"
|
|
objects: {
|
|
task: Prisma.$ContractTaskPayload<ExtArgs>
|
|
}
|
|
scalars: $Extensions.GetPayloadResult<{
|
|
id: number
|
|
taskId: number
|
|
title: string
|
|
status: $Enums.ContractTaskStatus
|
|
createdBy: string | null
|
|
completedAt: Date | null
|
|
createdAt: Date
|
|
updatedAt: Date
|
|
}, ExtArgs["result"]["contractTaskSubtask"]>
|
|
composites: {}
|
|
}
|
|
|
|
type ContractTaskSubtaskGetPayload<S extends boolean | null | undefined | ContractTaskSubtaskDefaultArgs> = $Result.GetResult<Prisma.$ContractTaskSubtaskPayload, S>
|
|
|
|
type ContractTaskSubtaskCountArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> =
|
|
Omit<ContractTaskSubtaskFindManyArgs, 'select' | 'include' | 'distinct'> & {
|
|
select?: ContractTaskSubtaskCountAggregateInputType | true
|
|
}
|
|
|
|
export interface ContractTaskSubtaskDelegate<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> {
|
|
[K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['ContractTaskSubtask'], meta: { name: 'ContractTaskSubtask' } }
|
|
/**
|
|
* Find zero or one ContractTaskSubtask that matches the filter.
|
|
* @param {ContractTaskSubtaskFindUniqueArgs} args - Arguments to find a ContractTaskSubtask
|
|
* @example
|
|
* // Get one ContractTaskSubtask
|
|
* const contractTaskSubtask = await prisma.contractTaskSubtask.findUnique({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findUnique<T extends ContractTaskSubtaskFindUniqueArgs>(args: SelectSubset<T, ContractTaskSubtaskFindUniqueArgs<ExtArgs>>): Prisma__ContractTaskSubtaskClient<$Result.GetResult<Prisma.$ContractTaskSubtaskPayload<ExtArgs>, T, "findUnique"> | null, null, ExtArgs>
|
|
|
|
/**
|
|
* Find one ContractTaskSubtask that matches the filter or throw an error with `error.code='P2025'`
|
|
* if no matches were found.
|
|
* @param {ContractTaskSubtaskFindUniqueOrThrowArgs} args - Arguments to find a ContractTaskSubtask
|
|
* @example
|
|
* // Get one ContractTaskSubtask
|
|
* const contractTaskSubtask = await prisma.contractTaskSubtask.findUniqueOrThrow({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findUniqueOrThrow<T extends ContractTaskSubtaskFindUniqueOrThrowArgs>(args: SelectSubset<T, ContractTaskSubtaskFindUniqueOrThrowArgs<ExtArgs>>): Prisma__ContractTaskSubtaskClient<$Result.GetResult<Prisma.$ContractTaskSubtaskPayload<ExtArgs>, T, "findUniqueOrThrow">, never, ExtArgs>
|
|
|
|
/**
|
|
* Find the first ContractTaskSubtask that matches the filter.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {ContractTaskSubtaskFindFirstArgs} args - Arguments to find a ContractTaskSubtask
|
|
* @example
|
|
* // Get one ContractTaskSubtask
|
|
* const contractTaskSubtask = await prisma.contractTaskSubtask.findFirst({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findFirst<T extends ContractTaskSubtaskFindFirstArgs>(args?: SelectSubset<T, ContractTaskSubtaskFindFirstArgs<ExtArgs>>): Prisma__ContractTaskSubtaskClient<$Result.GetResult<Prisma.$ContractTaskSubtaskPayload<ExtArgs>, T, "findFirst"> | null, null, ExtArgs>
|
|
|
|
/**
|
|
* Find the first ContractTaskSubtask that matches the filter or
|
|
* throw `PrismaKnownClientError` with `P2025` code if no matches were found.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {ContractTaskSubtaskFindFirstOrThrowArgs} args - Arguments to find a ContractTaskSubtask
|
|
* @example
|
|
* // Get one ContractTaskSubtask
|
|
* const contractTaskSubtask = await prisma.contractTaskSubtask.findFirstOrThrow({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findFirstOrThrow<T extends ContractTaskSubtaskFindFirstOrThrowArgs>(args?: SelectSubset<T, ContractTaskSubtaskFindFirstOrThrowArgs<ExtArgs>>): Prisma__ContractTaskSubtaskClient<$Result.GetResult<Prisma.$ContractTaskSubtaskPayload<ExtArgs>, T, "findFirstOrThrow">, never, ExtArgs>
|
|
|
|
/**
|
|
* Find zero or more ContractTaskSubtasks that matches the filter.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {ContractTaskSubtaskFindManyArgs} args - Arguments to filter and select certain fields only.
|
|
* @example
|
|
* // Get all ContractTaskSubtasks
|
|
* const contractTaskSubtasks = await prisma.contractTaskSubtask.findMany()
|
|
*
|
|
* // Get first 10 ContractTaskSubtasks
|
|
* const contractTaskSubtasks = await prisma.contractTaskSubtask.findMany({ take: 10 })
|
|
*
|
|
* // Only select the `id`
|
|
* const contractTaskSubtaskWithIdOnly = await prisma.contractTaskSubtask.findMany({ select: { id: true } })
|
|
*
|
|
*/
|
|
findMany<T extends ContractTaskSubtaskFindManyArgs>(args?: SelectSubset<T, ContractTaskSubtaskFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$ContractTaskSubtaskPayload<ExtArgs>, T, "findMany">>
|
|
|
|
/**
|
|
* Create a ContractTaskSubtask.
|
|
* @param {ContractTaskSubtaskCreateArgs} args - Arguments to create a ContractTaskSubtask.
|
|
* @example
|
|
* // Create one ContractTaskSubtask
|
|
* const ContractTaskSubtask = await prisma.contractTaskSubtask.create({
|
|
* data: {
|
|
* // ... data to create a ContractTaskSubtask
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
create<T extends ContractTaskSubtaskCreateArgs>(args: SelectSubset<T, ContractTaskSubtaskCreateArgs<ExtArgs>>): Prisma__ContractTaskSubtaskClient<$Result.GetResult<Prisma.$ContractTaskSubtaskPayload<ExtArgs>, T, "create">, never, ExtArgs>
|
|
|
|
/**
|
|
* Create many ContractTaskSubtasks.
|
|
* @param {ContractTaskSubtaskCreateManyArgs} args - Arguments to create many ContractTaskSubtasks.
|
|
* @example
|
|
* // Create many ContractTaskSubtasks
|
|
* const contractTaskSubtask = await prisma.contractTaskSubtask.createMany({
|
|
* data: [
|
|
* // ... provide data here
|
|
* ]
|
|
* })
|
|
*
|
|
*/
|
|
createMany<T extends ContractTaskSubtaskCreateManyArgs>(args?: SelectSubset<T, ContractTaskSubtaskCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
|
|
|
|
/**
|
|
* Delete a ContractTaskSubtask.
|
|
* @param {ContractTaskSubtaskDeleteArgs} args - Arguments to delete one ContractTaskSubtask.
|
|
* @example
|
|
* // Delete one ContractTaskSubtask
|
|
* const ContractTaskSubtask = await prisma.contractTaskSubtask.delete({
|
|
* where: {
|
|
* // ... filter to delete one ContractTaskSubtask
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
delete<T extends ContractTaskSubtaskDeleteArgs>(args: SelectSubset<T, ContractTaskSubtaskDeleteArgs<ExtArgs>>): Prisma__ContractTaskSubtaskClient<$Result.GetResult<Prisma.$ContractTaskSubtaskPayload<ExtArgs>, T, "delete">, never, ExtArgs>
|
|
|
|
/**
|
|
* Update one ContractTaskSubtask.
|
|
* @param {ContractTaskSubtaskUpdateArgs} args - Arguments to update one ContractTaskSubtask.
|
|
* @example
|
|
* // Update one ContractTaskSubtask
|
|
* const contractTaskSubtask = await prisma.contractTaskSubtask.update({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* },
|
|
* data: {
|
|
* // ... provide data here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
update<T extends ContractTaskSubtaskUpdateArgs>(args: SelectSubset<T, ContractTaskSubtaskUpdateArgs<ExtArgs>>): Prisma__ContractTaskSubtaskClient<$Result.GetResult<Prisma.$ContractTaskSubtaskPayload<ExtArgs>, T, "update">, never, ExtArgs>
|
|
|
|
/**
|
|
* Delete zero or more ContractTaskSubtasks.
|
|
* @param {ContractTaskSubtaskDeleteManyArgs} args - Arguments to filter ContractTaskSubtasks to delete.
|
|
* @example
|
|
* // Delete a few ContractTaskSubtasks
|
|
* const { count } = await prisma.contractTaskSubtask.deleteMany({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
deleteMany<T extends ContractTaskSubtaskDeleteManyArgs>(args?: SelectSubset<T, ContractTaskSubtaskDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
|
|
|
|
/**
|
|
* Update zero or more ContractTaskSubtasks.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {ContractTaskSubtaskUpdateManyArgs} args - Arguments to update one or more rows.
|
|
* @example
|
|
* // Update many ContractTaskSubtasks
|
|
* const contractTaskSubtask = await prisma.contractTaskSubtask.updateMany({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* },
|
|
* data: {
|
|
* // ... provide data here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
updateMany<T extends ContractTaskSubtaskUpdateManyArgs>(args: SelectSubset<T, ContractTaskSubtaskUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
|
|
|
|
/**
|
|
* Create or update one ContractTaskSubtask.
|
|
* @param {ContractTaskSubtaskUpsertArgs} args - Arguments to update or create a ContractTaskSubtask.
|
|
* @example
|
|
* // Update or create a ContractTaskSubtask
|
|
* const contractTaskSubtask = await prisma.contractTaskSubtask.upsert({
|
|
* create: {
|
|
* // ... data to create a ContractTaskSubtask
|
|
* },
|
|
* update: {
|
|
* // ... in case it already exists, update
|
|
* },
|
|
* where: {
|
|
* // ... the filter for the ContractTaskSubtask we want to update
|
|
* }
|
|
* })
|
|
*/
|
|
upsert<T extends ContractTaskSubtaskUpsertArgs>(args: SelectSubset<T, ContractTaskSubtaskUpsertArgs<ExtArgs>>): Prisma__ContractTaskSubtaskClient<$Result.GetResult<Prisma.$ContractTaskSubtaskPayload<ExtArgs>, T, "upsert">, never, ExtArgs>
|
|
|
|
|
|
/**
|
|
* Count the number of ContractTaskSubtasks.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {ContractTaskSubtaskCountArgs} args - Arguments to filter ContractTaskSubtasks to count.
|
|
* @example
|
|
* // Count the number of ContractTaskSubtasks
|
|
* const count = await prisma.contractTaskSubtask.count({
|
|
* where: {
|
|
* // ... the filter for the ContractTaskSubtasks we want to count
|
|
* }
|
|
* })
|
|
**/
|
|
count<T extends ContractTaskSubtaskCountArgs>(
|
|
args?: Subset<T, ContractTaskSubtaskCountArgs>,
|
|
): Prisma.PrismaPromise<
|
|
T extends $Utils.Record<'select', any>
|
|
? T['select'] extends true
|
|
? number
|
|
: GetScalarType<T['select'], ContractTaskSubtaskCountAggregateOutputType>
|
|
: number
|
|
>
|
|
|
|
/**
|
|
* Allows you to perform aggregations operations on a ContractTaskSubtask.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {ContractTaskSubtaskAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
|
|
* @example
|
|
* // Ordered by age ascending
|
|
* // Where email contains prisma.io
|
|
* // Limited to the 10 users
|
|
* const aggregations = await prisma.user.aggregate({
|
|
* _avg: {
|
|
* age: true,
|
|
* },
|
|
* where: {
|
|
* email: {
|
|
* contains: "prisma.io",
|
|
* },
|
|
* },
|
|
* orderBy: {
|
|
* age: "asc",
|
|
* },
|
|
* take: 10,
|
|
* })
|
|
**/
|
|
aggregate<T extends ContractTaskSubtaskAggregateArgs>(args: Subset<T, ContractTaskSubtaskAggregateArgs>): Prisma.PrismaPromise<GetContractTaskSubtaskAggregateType<T>>
|
|
|
|
/**
|
|
* Group by ContractTaskSubtask.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {ContractTaskSubtaskGroupByArgs} args - Group by arguments.
|
|
* @example
|
|
* // Group by city, order by createdAt, get count
|
|
* const result = await prisma.user.groupBy({
|
|
* by: ['city', 'createdAt'],
|
|
* orderBy: {
|
|
* createdAt: true
|
|
* },
|
|
* _count: {
|
|
* _all: true
|
|
* },
|
|
* })
|
|
*
|
|
**/
|
|
groupBy<
|
|
T extends ContractTaskSubtaskGroupByArgs,
|
|
HasSelectOrTake extends Or<
|
|
Extends<'skip', Keys<T>>,
|
|
Extends<'take', Keys<T>>
|
|
>,
|
|
OrderByArg extends True extends HasSelectOrTake
|
|
? { orderBy: ContractTaskSubtaskGroupByArgs['orderBy'] }
|
|
: { orderBy?: ContractTaskSubtaskGroupByArgs['orderBy'] },
|
|
OrderFields extends ExcludeUnderscoreKeys<Keys<MaybeTupleToUnion<T['orderBy']>>>,
|
|
ByFields extends MaybeTupleToUnion<T['by']>,
|
|
ByValid extends Has<ByFields, OrderFields>,
|
|
HavingFields extends GetHavingFields<T['having']>,
|
|
HavingValid extends Has<ByFields, HavingFields>,
|
|
ByEmpty extends T['by'] extends never[] ? True : False,
|
|
InputErrors extends ByEmpty extends True
|
|
? `Error: "by" must not be empty.`
|
|
: HavingValid extends False
|
|
? {
|
|
[P in HavingFields]: P extends ByFields
|
|
? never
|
|
: P extends string
|
|
? `Error: Field "${P}" used in "having" needs to be provided in "by".`
|
|
: [
|
|
Error,
|
|
'Field ',
|
|
P,
|
|
` in "having" needs to be provided in "by"`,
|
|
]
|
|
}[HavingFields]
|
|
: 'take' extends Keys<T>
|
|
? 'orderBy' extends Keys<T>
|
|
? ByValid extends True
|
|
? {}
|
|
: {
|
|
[P in OrderFields]: P extends ByFields
|
|
? never
|
|
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
|
|
}[OrderFields]
|
|
: 'Error: If you provide "take", you also need to provide "orderBy"'
|
|
: 'skip' extends Keys<T>
|
|
? 'orderBy' extends Keys<T>
|
|
? ByValid extends True
|
|
? {}
|
|
: {
|
|
[P in OrderFields]: P extends ByFields
|
|
? never
|
|
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
|
|
}[OrderFields]
|
|
: 'Error: If you provide "skip", you also need to provide "orderBy"'
|
|
: ByValid extends True
|
|
? {}
|
|
: {
|
|
[P in OrderFields]: P extends ByFields
|
|
? never
|
|
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
|
|
}[OrderFields]
|
|
>(args: SubsetIntersection<T, ContractTaskSubtaskGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetContractTaskSubtaskGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
|
|
/**
|
|
* Fields of the ContractTaskSubtask model
|
|
*/
|
|
readonly fields: ContractTaskSubtaskFieldRefs;
|
|
}
|
|
|
|
/**
|
|
* The delegate class that acts as a "Promise-like" for ContractTaskSubtask.
|
|
* Why is this prefixed with `Prisma__`?
|
|
* Because we want to prevent naming conflicts as mentioned in
|
|
* https://github.com/prisma/prisma-client-js/issues/707
|
|
*/
|
|
export interface Prisma__ContractTaskSubtaskClient<T, Null = never, ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> extends Prisma.PrismaPromise<T> {
|
|
readonly [Symbol.toStringTag]: "PrismaPromise"
|
|
task<T extends ContractTaskDefaultArgs<ExtArgs> = {}>(args?: Subset<T, ContractTaskDefaultArgs<ExtArgs>>): Prisma__ContractTaskClient<$Result.GetResult<Prisma.$ContractTaskPayload<ExtArgs>, T, "findUniqueOrThrow"> | Null, Null, ExtArgs>
|
|
/**
|
|
* Attaches callbacks for the resolution and/or rejection of the Promise.
|
|
* @param onfulfilled The callback to execute when the Promise is resolved.
|
|
* @param onrejected The callback to execute when the Promise is rejected.
|
|
* @returns A Promise for the completion of which ever callback is executed.
|
|
*/
|
|
then<TResult1 = T, TResult2 = never>(onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined | null): $Utils.JsPromise<TResult1 | TResult2>
|
|
/**
|
|
* Attaches a callback for only the rejection of the Promise.
|
|
* @param onrejected The callback to execute when the Promise is rejected.
|
|
* @returns A Promise for the completion of the callback.
|
|
*/
|
|
catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): $Utils.JsPromise<T | TResult>
|
|
/**
|
|
* Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
|
|
* resolved value cannot be modified from the callback.
|
|
* @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
|
|
* @returns A Promise for the completion of the callback.
|
|
*/
|
|
finally(onfinally?: (() => void) | undefined | null): $Utils.JsPromise<T>
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
* Fields of the ContractTaskSubtask model
|
|
*/
|
|
interface ContractTaskSubtaskFieldRefs {
|
|
readonly id: FieldRef<"ContractTaskSubtask", 'Int'>
|
|
readonly taskId: FieldRef<"ContractTaskSubtask", 'Int'>
|
|
readonly title: FieldRef<"ContractTaskSubtask", 'String'>
|
|
readonly status: FieldRef<"ContractTaskSubtask", 'ContractTaskStatus'>
|
|
readonly createdBy: FieldRef<"ContractTaskSubtask", 'String'>
|
|
readonly completedAt: FieldRef<"ContractTaskSubtask", 'DateTime'>
|
|
readonly createdAt: FieldRef<"ContractTaskSubtask", 'DateTime'>
|
|
readonly updatedAt: FieldRef<"ContractTaskSubtask", 'DateTime'>
|
|
}
|
|
|
|
|
|
// Custom InputTypes
|
|
/**
|
|
* ContractTaskSubtask findUnique
|
|
*/
|
|
export type ContractTaskSubtaskFindUniqueArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the ContractTaskSubtask
|
|
*/
|
|
select?: ContractTaskSubtaskSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: ContractTaskSubtaskInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which ContractTaskSubtask to fetch.
|
|
*/
|
|
where: ContractTaskSubtaskWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* ContractTaskSubtask findUniqueOrThrow
|
|
*/
|
|
export type ContractTaskSubtaskFindUniqueOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the ContractTaskSubtask
|
|
*/
|
|
select?: ContractTaskSubtaskSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: ContractTaskSubtaskInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which ContractTaskSubtask to fetch.
|
|
*/
|
|
where: ContractTaskSubtaskWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* ContractTaskSubtask findFirst
|
|
*/
|
|
export type ContractTaskSubtaskFindFirstArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the ContractTaskSubtask
|
|
*/
|
|
select?: ContractTaskSubtaskSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: ContractTaskSubtaskInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which ContractTaskSubtask to fetch.
|
|
*/
|
|
where?: ContractTaskSubtaskWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of ContractTaskSubtasks to fetch.
|
|
*/
|
|
orderBy?: ContractTaskSubtaskOrderByWithRelationInput | ContractTaskSubtaskOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for searching for ContractTaskSubtasks.
|
|
*/
|
|
cursor?: ContractTaskSubtaskWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` ContractTaskSubtasks from the position of the cursor.
|
|
*/
|
|
take?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Skip the first `n` ContractTaskSubtasks.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
*
|
|
* Filter by unique combinations of ContractTaskSubtasks.
|
|
*/
|
|
distinct?: ContractTaskSubtaskScalarFieldEnum | ContractTaskSubtaskScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* ContractTaskSubtask findFirstOrThrow
|
|
*/
|
|
export type ContractTaskSubtaskFindFirstOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the ContractTaskSubtask
|
|
*/
|
|
select?: ContractTaskSubtaskSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: ContractTaskSubtaskInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which ContractTaskSubtask to fetch.
|
|
*/
|
|
where?: ContractTaskSubtaskWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of ContractTaskSubtasks to fetch.
|
|
*/
|
|
orderBy?: ContractTaskSubtaskOrderByWithRelationInput | ContractTaskSubtaskOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for searching for ContractTaskSubtasks.
|
|
*/
|
|
cursor?: ContractTaskSubtaskWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` ContractTaskSubtasks from the position of the cursor.
|
|
*/
|
|
take?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Skip the first `n` ContractTaskSubtasks.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
*
|
|
* Filter by unique combinations of ContractTaskSubtasks.
|
|
*/
|
|
distinct?: ContractTaskSubtaskScalarFieldEnum | ContractTaskSubtaskScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* ContractTaskSubtask findMany
|
|
*/
|
|
export type ContractTaskSubtaskFindManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the ContractTaskSubtask
|
|
*/
|
|
select?: ContractTaskSubtaskSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: ContractTaskSubtaskInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which ContractTaskSubtasks to fetch.
|
|
*/
|
|
where?: ContractTaskSubtaskWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of ContractTaskSubtasks to fetch.
|
|
*/
|
|
orderBy?: ContractTaskSubtaskOrderByWithRelationInput | ContractTaskSubtaskOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for listing ContractTaskSubtasks.
|
|
*/
|
|
cursor?: ContractTaskSubtaskWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` ContractTaskSubtasks from the position of the cursor.
|
|
*/
|
|
take?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Skip the first `n` ContractTaskSubtasks.
|
|
*/
|
|
skip?: number
|
|
distinct?: ContractTaskSubtaskScalarFieldEnum | ContractTaskSubtaskScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* ContractTaskSubtask create
|
|
*/
|
|
export type ContractTaskSubtaskCreateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the ContractTaskSubtask
|
|
*/
|
|
select?: ContractTaskSubtaskSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: ContractTaskSubtaskInclude<ExtArgs> | null
|
|
/**
|
|
* The data needed to create a ContractTaskSubtask.
|
|
*/
|
|
data: XOR<ContractTaskSubtaskCreateInput, ContractTaskSubtaskUncheckedCreateInput>
|
|
}
|
|
|
|
/**
|
|
* ContractTaskSubtask createMany
|
|
*/
|
|
export type ContractTaskSubtaskCreateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* The data used to create many ContractTaskSubtasks.
|
|
*/
|
|
data: ContractTaskSubtaskCreateManyInput | ContractTaskSubtaskCreateManyInput[]
|
|
skipDuplicates?: boolean
|
|
}
|
|
|
|
/**
|
|
* ContractTaskSubtask update
|
|
*/
|
|
export type ContractTaskSubtaskUpdateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the ContractTaskSubtask
|
|
*/
|
|
select?: ContractTaskSubtaskSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: ContractTaskSubtaskInclude<ExtArgs> | null
|
|
/**
|
|
* The data needed to update a ContractTaskSubtask.
|
|
*/
|
|
data: XOR<ContractTaskSubtaskUpdateInput, ContractTaskSubtaskUncheckedUpdateInput>
|
|
/**
|
|
* Choose, which ContractTaskSubtask to update.
|
|
*/
|
|
where: ContractTaskSubtaskWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* ContractTaskSubtask updateMany
|
|
*/
|
|
export type ContractTaskSubtaskUpdateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* The data used to update ContractTaskSubtasks.
|
|
*/
|
|
data: XOR<ContractTaskSubtaskUpdateManyMutationInput, ContractTaskSubtaskUncheckedUpdateManyInput>
|
|
/**
|
|
* Filter which ContractTaskSubtasks to update
|
|
*/
|
|
where?: ContractTaskSubtaskWhereInput
|
|
}
|
|
|
|
/**
|
|
* ContractTaskSubtask upsert
|
|
*/
|
|
export type ContractTaskSubtaskUpsertArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the ContractTaskSubtask
|
|
*/
|
|
select?: ContractTaskSubtaskSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: ContractTaskSubtaskInclude<ExtArgs> | null
|
|
/**
|
|
* The filter to search for the ContractTaskSubtask to update in case it exists.
|
|
*/
|
|
where: ContractTaskSubtaskWhereUniqueInput
|
|
/**
|
|
* In case the ContractTaskSubtask found by the `where` argument doesn't exist, create a new ContractTaskSubtask with this data.
|
|
*/
|
|
create: XOR<ContractTaskSubtaskCreateInput, ContractTaskSubtaskUncheckedCreateInput>
|
|
/**
|
|
* In case the ContractTaskSubtask was found with the provided `where` argument, update it with this data.
|
|
*/
|
|
update: XOR<ContractTaskSubtaskUpdateInput, ContractTaskSubtaskUncheckedUpdateInput>
|
|
}
|
|
|
|
/**
|
|
* ContractTaskSubtask delete
|
|
*/
|
|
export type ContractTaskSubtaskDeleteArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the ContractTaskSubtask
|
|
*/
|
|
select?: ContractTaskSubtaskSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: ContractTaskSubtaskInclude<ExtArgs> | null
|
|
/**
|
|
* Filter which ContractTaskSubtask to delete.
|
|
*/
|
|
where: ContractTaskSubtaskWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* ContractTaskSubtask deleteMany
|
|
*/
|
|
export type ContractTaskSubtaskDeleteManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Filter which ContractTaskSubtasks to delete
|
|
*/
|
|
where?: ContractTaskSubtaskWhereInput
|
|
}
|
|
|
|
/**
|
|
* ContractTaskSubtask without action
|
|
*/
|
|
export type ContractTaskSubtaskDefaultArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the ContractTaskSubtask
|
|
*/
|
|
select?: ContractTaskSubtaskSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: ContractTaskSubtaskInclude<ExtArgs> | null
|
|
}
|
|
|
|
|
|
/**
|
|
* Model EnergyContractDetails
|
|
*/
|
|
|
|
export type AggregateEnergyContractDetails = {
|
|
_count: EnergyContractDetailsCountAggregateOutputType | null
|
|
_avg: EnergyContractDetailsAvgAggregateOutputType | null
|
|
_sum: EnergyContractDetailsSumAggregateOutputType | null
|
|
_min: EnergyContractDetailsMinAggregateOutputType | null
|
|
_max: EnergyContractDetailsMaxAggregateOutputType | null
|
|
}
|
|
|
|
export type EnergyContractDetailsAvgAggregateOutputType = {
|
|
id: number | null
|
|
contractId: number | null
|
|
meterId: number | null
|
|
annualConsumption: number | null
|
|
annualConsumptionKwh: number | null
|
|
basePrice: number | null
|
|
unitPrice: number | null
|
|
bonus: number | null
|
|
}
|
|
|
|
export type EnergyContractDetailsSumAggregateOutputType = {
|
|
id: number | null
|
|
contractId: number | null
|
|
meterId: number | null
|
|
annualConsumption: number | null
|
|
annualConsumptionKwh: number | null
|
|
basePrice: number | null
|
|
unitPrice: number | null
|
|
bonus: number | null
|
|
}
|
|
|
|
export type EnergyContractDetailsMinAggregateOutputType = {
|
|
id: number | null
|
|
contractId: number | null
|
|
meterId: number | null
|
|
maloId: string | null
|
|
annualConsumption: number | null
|
|
annualConsumptionKwh: number | null
|
|
basePrice: number | null
|
|
unitPrice: number | null
|
|
bonus: number | null
|
|
previousProviderName: string | null
|
|
previousCustomerNumber: string | null
|
|
}
|
|
|
|
export type EnergyContractDetailsMaxAggregateOutputType = {
|
|
id: number | null
|
|
contractId: number | null
|
|
meterId: number | null
|
|
maloId: string | null
|
|
annualConsumption: number | null
|
|
annualConsumptionKwh: number | null
|
|
basePrice: number | null
|
|
unitPrice: number | null
|
|
bonus: number | null
|
|
previousProviderName: string | null
|
|
previousCustomerNumber: string | null
|
|
}
|
|
|
|
export type EnergyContractDetailsCountAggregateOutputType = {
|
|
id: number
|
|
contractId: number
|
|
meterId: number
|
|
maloId: number
|
|
annualConsumption: number
|
|
annualConsumptionKwh: number
|
|
basePrice: number
|
|
unitPrice: number
|
|
bonus: number
|
|
previousProviderName: number
|
|
previousCustomerNumber: number
|
|
_all: number
|
|
}
|
|
|
|
|
|
export type EnergyContractDetailsAvgAggregateInputType = {
|
|
id?: true
|
|
contractId?: true
|
|
meterId?: true
|
|
annualConsumption?: true
|
|
annualConsumptionKwh?: true
|
|
basePrice?: true
|
|
unitPrice?: true
|
|
bonus?: true
|
|
}
|
|
|
|
export type EnergyContractDetailsSumAggregateInputType = {
|
|
id?: true
|
|
contractId?: true
|
|
meterId?: true
|
|
annualConsumption?: true
|
|
annualConsumptionKwh?: true
|
|
basePrice?: true
|
|
unitPrice?: true
|
|
bonus?: true
|
|
}
|
|
|
|
export type EnergyContractDetailsMinAggregateInputType = {
|
|
id?: true
|
|
contractId?: true
|
|
meterId?: true
|
|
maloId?: true
|
|
annualConsumption?: true
|
|
annualConsumptionKwh?: true
|
|
basePrice?: true
|
|
unitPrice?: true
|
|
bonus?: true
|
|
previousProviderName?: true
|
|
previousCustomerNumber?: true
|
|
}
|
|
|
|
export type EnergyContractDetailsMaxAggregateInputType = {
|
|
id?: true
|
|
contractId?: true
|
|
meterId?: true
|
|
maloId?: true
|
|
annualConsumption?: true
|
|
annualConsumptionKwh?: true
|
|
basePrice?: true
|
|
unitPrice?: true
|
|
bonus?: true
|
|
previousProviderName?: true
|
|
previousCustomerNumber?: true
|
|
}
|
|
|
|
export type EnergyContractDetailsCountAggregateInputType = {
|
|
id?: true
|
|
contractId?: true
|
|
meterId?: true
|
|
maloId?: true
|
|
annualConsumption?: true
|
|
annualConsumptionKwh?: true
|
|
basePrice?: true
|
|
unitPrice?: true
|
|
bonus?: true
|
|
previousProviderName?: true
|
|
previousCustomerNumber?: true
|
|
_all?: true
|
|
}
|
|
|
|
export type EnergyContractDetailsAggregateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Filter which EnergyContractDetails to aggregate.
|
|
*/
|
|
where?: EnergyContractDetailsWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of EnergyContractDetails to fetch.
|
|
*/
|
|
orderBy?: EnergyContractDetailsOrderByWithRelationInput | EnergyContractDetailsOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the start position
|
|
*/
|
|
cursor?: EnergyContractDetailsWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` EnergyContractDetails from the position of the cursor.
|
|
*/
|
|
take?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Skip the first `n` EnergyContractDetails.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Count returned EnergyContractDetails
|
|
**/
|
|
_count?: true | EnergyContractDetailsCountAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to average
|
|
**/
|
|
_avg?: EnergyContractDetailsAvgAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to sum
|
|
**/
|
|
_sum?: EnergyContractDetailsSumAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to find the minimum value
|
|
**/
|
|
_min?: EnergyContractDetailsMinAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to find the maximum value
|
|
**/
|
|
_max?: EnergyContractDetailsMaxAggregateInputType
|
|
}
|
|
|
|
export type GetEnergyContractDetailsAggregateType<T extends EnergyContractDetailsAggregateArgs> = {
|
|
[P in keyof T & keyof AggregateEnergyContractDetails]: P extends '_count' | 'count'
|
|
? T[P] extends true
|
|
? number
|
|
: GetScalarType<T[P], AggregateEnergyContractDetails[P]>
|
|
: GetScalarType<T[P], AggregateEnergyContractDetails[P]>
|
|
}
|
|
|
|
|
|
|
|
|
|
export type EnergyContractDetailsGroupByArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
where?: EnergyContractDetailsWhereInput
|
|
orderBy?: EnergyContractDetailsOrderByWithAggregationInput | EnergyContractDetailsOrderByWithAggregationInput[]
|
|
by: EnergyContractDetailsScalarFieldEnum[] | EnergyContractDetailsScalarFieldEnum
|
|
having?: EnergyContractDetailsScalarWhereWithAggregatesInput
|
|
take?: number
|
|
skip?: number
|
|
_count?: EnergyContractDetailsCountAggregateInputType | true
|
|
_avg?: EnergyContractDetailsAvgAggregateInputType
|
|
_sum?: EnergyContractDetailsSumAggregateInputType
|
|
_min?: EnergyContractDetailsMinAggregateInputType
|
|
_max?: EnergyContractDetailsMaxAggregateInputType
|
|
}
|
|
|
|
export type EnergyContractDetailsGroupByOutputType = {
|
|
id: number
|
|
contractId: number
|
|
meterId: number | null
|
|
maloId: string | null
|
|
annualConsumption: number | null
|
|
annualConsumptionKwh: number | null
|
|
basePrice: number | null
|
|
unitPrice: number | null
|
|
bonus: number | null
|
|
previousProviderName: string | null
|
|
previousCustomerNumber: string | null
|
|
_count: EnergyContractDetailsCountAggregateOutputType | null
|
|
_avg: EnergyContractDetailsAvgAggregateOutputType | null
|
|
_sum: EnergyContractDetailsSumAggregateOutputType | null
|
|
_min: EnergyContractDetailsMinAggregateOutputType | null
|
|
_max: EnergyContractDetailsMaxAggregateOutputType | null
|
|
}
|
|
|
|
type GetEnergyContractDetailsGroupByPayload<T extends EnergyContractDetailsGroupByArgs> = Prisma.PrismaPromise<
|
|
Array<
|
|
PickEnumerable<EnergyContractDetailsGroupByOutputType, T['by']> &
|
|
{
|
|
[P in ((keyof T) & (keyof EnergyContractDetailsGroupByOutputType))]: P extends '_count'
|
|
? T[P] extends boolean
|
|
? number
|
|
: GetScalarType<T[P], EnergyContractDetailsGroupByOutputType[P]>
|
|
: GetScalarType<T[P], EnergyContractDetailsGroupByOutputType[P]>
|
|
}
|
|
>
|
|
>
|
|
|
|
|
|
export type EnergyContractDetailsSelect<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
|
|
id?: boolean
|
|
contractId?: boolean
|
|
meterId?: boolean
|
|
maloId?: boolean
|
|
annualConsumption?: boolean
|
|
annualConsumptionKwh?: boolean
|
|
basePrice?: boolean
|
|
unitPrice?: boolean
|
|
bonus?: boolean
|
|
previousProviderName?: boolean
|
|
previousCustomerNumber?: boolean
|
|
contract?: boolean | ContractDefaultArgs<ExtArgs>
|
|
meter?: boolean | EnergyContractDetails$meterArgs<ExtArgs>
|
|
}, ExtArgs["result"]["energyContractDetails"]>
|
|
|
|
|
|
export type EnergyContractDetailsSelectScalar = {
|
|
id?: boolean
|
|
contractId?: boolean
|
|
meterId?: boolean
|
|
maloId?: boolean
|
|
annualConsumption?: boolean
|
|
annualConsumptionKwh?: boolean
|
|
basePrice?: boolean
|
|
unitPrice?: boolean
|
|
bonus?: boolean
|
|
previousProviderName?: boolean
|
|
previousCustomerNumber?: boolean
|
|
}
|
|
|
|
export type EnergyContractDetailsInclude<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
contract?: boolean | ContractDefaultArgs<ExtArgs>
|
|
meter?: boolean | EnergyContractDetails$meterArgs<ExtArgs>
|
|
}
|
|
|
|
export type $EnergyContractDetailsPayload<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
name: "EnergyContractDetails"
|
|
objects: {
|
|
contract: Prisma.$ContractPayload<ExtArgs>
|
|
meter: Prisma.$MeterPayload<ExtArgs> | null
|
|
}
|
|
scalars: $Extensions.GetPayloadResult<{
|
|
id: number
|
|
contractId: number
|
|
meterId: number | null
|
|
maloId: string | null
|
|
annualConsumption: number | null
|
|
annualConsumptionKwh: number | null
|
|
basePrice: number | null
|
|
unitPrice: number | null
|
|
bonus: number | null
|
|
previousProviderName: string | null
|
|
previousCustomerNumber: string | null
|
|
}, ExtArgs["result"]["energyContractDetails"]>
|
|
composites: {}
|
|
}
|
|
|
|
type EnergyContractDetailsGetPayload<S extends boolean | null | undefined | EnergyContractDetailsDefaultArgs> = $Result.GetResult<Prisma.$EnergyContractDetailsPayload, S>
|
|
|
|
type EnergyContractDetailsCountArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> =
|
|
Omit<EnergyContractDetailsFindManyArgs, 'select' | 'include' | 'distinct'> & {
|
|
select?: EnergyContractDetailsCountAggregateInputType | true
|
|
}
|
|
|
|
export interface EnergyContractDetailsDelegate<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> {
|
|
[K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['EnergyContractDetails'], meta: { name: 'EnergyContractDetails' } }
|
|
/**
|
|
* Find zero or one EnergyContractDetails that matches the filter.
|
|
* @param {EnergyContractDetailsFindUniqueArgs} args - Arguments to find a EnergyContractDetails
|
|
* @example
|
|
* // Get one EnergyContractDetails
|
|
* const energyContractDetails = await prisma.energyContractDetails.findUnique({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findUnique<T extends EnergyContractDetailsFindUniqueArgs>(args: SelectSubset<T, EnergyContractDetailsFindUniqueArgs<ExtArgs>>): Prisma__EnergyContractDetailsClient<$Result.GetResult<Prisma.$EnergyContractDetailsPayload<ExtArgs>, T, "findUnique"> | null, null, ExtArgs>
|
|
|
|
/**
|
|
* Find one EnergyContractDetails that matches the filter or throw an error with `error.code='P2025'`
|
|
* if no matches were found.
|
|
* @param {EnergyContractDetailsFindUniqueOrThrowArgs} args - Arguments to find a EnergyContractDetails
|
|
* @example
|
|
* // Get one EnergyContractDetails
|
|
* const energyContractDetails = await prisma.energyContractDetails.findUniqueOrThrow({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findUniqueOrThrow<T extends EnergyContractDetailsFindUniqueOrThrowArgs>(args: SelectSubset<T, EnergyContractDetailsFindUniqueOrThrowArgs<ExtArgs>>): Prisma__EnergyContractDetailsClient<$Result.GetResult<Prisma.$EnergyContractDetailsPayload<ExtArgs>, T, "findUniqueOrThrow">, never, ExtArgs>
|
|
|
|
/**
|
|
* Find the first EnergyContractDetails that matches the filter.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {EnergyContractDetailsFindFirstArgs} args - Arguments to find a EnergyContractDetails
|
|
* @example
|
|
* // Get one EnergyContractDetails
|
|
* const energyContractDetails = await prisma.energyContractDetails.findFirst({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findFirst<T extends EnergyContractDetailsFindFirstArgs>(args?: SelectSubset<T, EnergyContractDetailsFindFirstArgs<ExtArgs>>): Prisma__EnergyContractDetailsClient<$Result.GetResult<Prisma.$EnergyContractDetailsPayload<ExtArgs>, T, "findFirst"> | null, null, ExtArgs>
|
|
|
|
/**
|
|
* Find the first EnergyContractDetails that matches the filter or
|
|
* throw `PrismaKnownClientError` with `P2025` code if no matches were found.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {EnergyContractDetailsFindFirstOrThrowArgs} args - Arguments to find a EnergyContractDetails
|
|
* @example
|
|
* // Get one EnergyContractDetails
|
|
* const energyContractDetails = await prisma.energyContractDetails.findFirstOrThrow({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findFirstOrThrow<T extends EnergyContractDetailsFindFirstOrThrowArgs>(args?: SelectSubset<T, EnergyContractDetailsFindFirstOrThrowArgs<ExtArgs>>): Prisma__EnergyContractDetailsClient<$Result.GetResult<Prisma.$EnergyContractDetailsPayload<ExtArgs>, T, "findFirstOrThrow">, never, ExtArgs>
|
|
|
|
/**
|
|
* Find zero or more EnergyContractDetails that matches the filter.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {EnergyContractDetailsFindManyArgs} args - Arguments to filter and select certain fields only.
|
|
* @example
|
|
* // Get all EnergyContractDetails
|
|
* const energyContractDetails = await prisma.energyContractDetails.findMany()
|
|
*
|
|
* // Get first 10 EnergyContractDetails
|
|
* const energyContractDetails = await prisma.energyContractDetails.findMany({ take: 10 })
|
|
*
|
|
* // Only select the `id`
|
|
* const energyContractDetailsWithIdOnly = await prisma.energyContractDetails.findMany({ select: { id: true } })
|
|
*
|
|
*/
|
|
findMany<T extends EnergyContractDetailsFindManyArgs>(args?: SelectSubset<T, EnergyContractDetailsFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$EnergyContractDetailsPayload<ExtArgs>, T, "findMany">>
|
|
|
|
/**
|
|
* Create a EnergyContractDetails.
|
|
* @param {EnergyContractDetailsCreateArgs} args - Arguments to create a EnergyContractDetails.
|
|
* @example
|
|
* // Create one EnergyContractDetails
|
|
* const EnergyContractDetails = await prisma.energyContractDetails.create({
|
|
* data: {
|
|
* // ... data to create a EnergyContractDetails
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
create<T extends EnergyContractDetailsCreateArgs>(args: SelectSubset<T, EnergyContractDetailsCreateArgs<ExtArgs>>): Prisma__EnergyContractDetailsClient<$Result.GetResult<Prisma.$EnergyContractDetailsPayload<ExtArgs>, T, "create">, never, ExtArgs>
|
|
|
|
/**
|
|
* Create many EnergyContractDetails.
|
|
* @param {EnergyContractDetailsCreateManyArgs} args - Arguments to create many EnergyContractDetails.
|
|
* @example
|
|
* // Create many EnergyContractDetails
|
|
* const energyContractDetails = await prisma.energyContractDetails.createMany({
|
|
* data: [
|
|
* // ... provide data here
|
|
* ]
|
|
* })
|
|
*
|
|
*/
|
|
createMany<T extends EnergyContractDetailsCreateManyArgs>(args?: SelectSubset<T, EnergyContractDetailsCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
|
|
|
|
/**
|
|
* Delete a EnergyContractDetails.
|
|
* @param {EnergyContractDetailsDeleteArgs} args - Arguments to delete one EnergyContractDetails.
|
|
* @example
|
|
* // Delete one EnergyContractDetails
|
|
* const EnergyContractDetails = await prisma.energyContractDetails.delete({
|
|
* where: {
|
|
* // ... filter to delete one EnergyContractDetails
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
delete<T extends EnergyContractDetailsDeleteArgs>(args: SelectSubset<T, EnergyContractDetailsDeleteArgs<ExtArgs>>): Prisma__EnergyContractDetailsClient<$Result.GetResult<Prisma.$EnergyContractDetailsPayload<ExtArgs>, T, "delete">, never, ExtArgs>
|
|
|
|
/**
|
|
* Update one EnergyContractDetails.
|
|
* @param {EnergyContractDetailsUpdateArgs} args - Arguments to update one EnergyContractDetails.
|
|
* @example
|
|
* // Update one EnergyContractDetails
|
|
* const energyContractDetails = await prisma.energyContractDetails.update({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* },
|
|
* data: {
|
|
* // ... provide data here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
update<T extends EnergyContractDetailsUpdateArgs>(args: SelectSubset<T, EnergyContractDetailsUpdateArgs<ExtArgs>>): Prisma__EnergyContractDetailsClient<$Result.GetResult<Prisma.$EnergyContractDetailsPayload<ExtArgs>, T, "update">, never, ExtArgs>
|
|
|
|
/**
|
|
* Delete zero or more EnergyContractDetails.
|
|
* @param {EnergyContractDetailsDeleteManyArgs} args - Arguments to filter EnergyContractDetails to delete.
|
|
* @example
|
|
* // Delete a few EnergyContractDetails
|
|
* const { count } = await prisma.energyContractDetails.deleteMany({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
deleteMany<T extends EnergyContractDetailsDeleteManyArgs>(args?: SelectSubset<T, EnergyContractDetailsDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
|
|
|
|
/**
|
|
* Update zero or more EnergyContractDetails.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {EnergyContractDetailsUpdateManyArgs} args - Arguments to update one or more rows.
|
|
* @example
|
|
* // Update many EnergyContractDetails
|
|
* const energyContractDetails = await prisma.energyContractDetails.updateMany({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* },
|
|
* data: {
|
|
* // ... provide data here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
updateMany<T extends EnergyContractDetailsUpdateManyArgs>(args: SelectSubset<T, EnergyContractDetailsUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
|
|
|
|
/**
|
|
* Create or update one EnergyContractDetails.
|
|
* @param {EnergyContractDetailsUpsertArgs} args - Arguments to update or create a EnergyContractDetails.
|
|
* @example
|
|
* // Update or create a EnergyContractDetails
|
|
* const energyContractDetails = await prisma.energyContractDetails.upsert({
|
|
* create: {
|
|
* // ... data to create a EnergyContractDetails
|
|
* },
|
|
* update: {
|
|
* // ... in case it already exists, update
|
|
* },
|
|
* where: {
|
|
* // ... the filter for the EnergyContractDetails we want to update
|
|
* }
|
|
* })
|
|
*/
|
|
upsert<T extends EnergyContractDetailsUpsertArgs>(args: SelectSubset<T, EnergyContractDetailsUpsertArgs<ExtArgs>>): Prisma__EnergyContractDetailsClient<$Result.GetResult<Prisma.$EnergyContractDetailsPayload<ExtArgs>, T, "upsert">, never, ExtArgs>
|
|
|
|
|
|
/**
|
|
* Count the number of EnergyContractDetails.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {EnergyContractDetailsCountArgs} args - Arguments to filter EnergyContractDetails to count.
|
|
* @example
|
|
* // Count the number of EnergyContractDetails
|
|
* const count = await prisma.energyContractDetails.count({
|
|
* where: {
|
|
* // ... the filter for the EnergyContractDetails we want to count
|
|
* }
|
|
* })
|
|
**/
|
|
count<T extends EnergyContractDetailsCountArgs>(
|
|
args?: Subset<T, EnergyContractDetailsCountArgs>,
|
|
): Prisma.PrismaPromise<
|
|
T extends $Utils.Record<'select', any>
|
|
? T['select'] extends true
|
|
? number
|
|
: GetScalarType<T['select'], EnergyContractDetailsCountAggregateOutputType>
|
|
: number
|
|
>
|
|
|
|
/**
|
|
* Allows you to perform aggregations operations on a EnergyContractDetails.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {EnergyContractDetailsAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
|
|
* @example
|
|
* // Ordered by age ascending
|
|
* // Where email contains prisma.io
|
|
* // Limited to the 10 users
|
|
* const aggregations = await prisma.user.aggregate({
|
|
* _avg: {
|
|
* age: true,
|
|
* },
|
|
* where: {
|
|
* email: {
|
|
* contains: "prisma.io",
|
|
* },
|
|
* },
|
|
* orderBy: {
|
|
* age: "asc",
|
|
* },
|
|
* take: 10,
|
|
* })
|
|
**/
|
|
aggregate<T extends EnergyContractDetailsAggregateArgs>(args: Subset<T, EnergyContractDetailsAggregateArgs>): Prisma.PrismaPromise<GetEnergyContractDetailsAggregateType<T>>
|
|
|
|
/**
|
|
* Group by EnergyContractDetails.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {EnergyContractDetailsGroupByArgs} args - Group by arguments.
|
|
* @example
|
|
* // Group by city, order by createdAt, get count
|
|
* const result = await prisma.user.groupBy({
|
|
* by: ['city', 'createdAt'],
|
|
* orderBy: {
|
|
* createdAt: true
|
|
* },
|
|
* _count: {
|
|
* _all: true
|
|
* },
|
|
* })
|
|
*
|
|
**/
|
|
groupBy<
|
|
T extends EnergyContractDetailsGroupByArgs,
|
|
HasSelectOrTake extends Or<
|
|
Extends<'skip', Keys<T>>,
|
|
Extends<'take', Keys<T>>
|
|
>,
|
|
OrderByArg extends True extends HasSelectOrTake
|
|
? { orderBy: EnergyContractDetailsGroupByArgs['orderBy'] }
|
|
: { orderBy?: EnergyContractDetailsGroupByArgs['orderBy'] },
|
|
OrderFields extends ExcludeUnderscoreKeys<Keys<MaybeTupleToUnion<T['orderBy']>>>,
|
|
ByFields extends MaybeTupleToUnion<T['by']>,
|
|
ByValid extends Has<ByFields, OrderFields>,
|
|
HavingFields extends GetHavingFields<T['having']>,
|
|
HavingValid extends Has<ByFields, HavingFields>,
|
|
ByEmpty extends T['by'] extends never[] ? True : False,
|
|
InputErrors extends ByEmpty extends True
|
|
? `Error: "by" must not be empty.`
|
|
: HavingValid extends False
|
|
? {
|
|
[P in HavingFields]: P extends ByFields
|
|
? never
|
|
: P extends string
|
|
? `Error: Field "${P}" used in "having" needs to be provided in "by".`
|
|
: [
|
|
Error,
|
|
'Field ',
|
|
P,
|
|
` in "having" needs to be provided in "by"`,
|
|
]
|
|
}[HavingFields]
|
|
: 'take' extends Keys<T>
|
|
? 'orderBy' extends Keys<T>
|
|
? ByValid extends True
|
|
? {}
|
|
: {
|
|
[P in OrderFields]: P extends ByFields
|
|
? never
|
|
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
|
|
}[OrderFields]
|
|
: 'Error: If you provide "take", you also need to provide "orderBy"'
|
|
: 'skip' extends Keys<T>
|
|
? 'orderBy' extends Keys<T>
|
|
? ByValid extends True
|
|
? {}
|
|
: {
|
|
[P in OrderFields]: P extends ByFields
|
|
? never
|
|
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
|
|
}[OrderFields]
|
|
: 'Error: If you provide "skip", you also need to provide "orderBy"'
|
|
: ByValid extends True
|
|
? {}
|
|
: {
|
|
[P in OrderFields]: P extends ByFields
|
|
? never
|
|
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
|
|
}[OrderFields]
|
|
>(args: SubsetIntersection<T, EnergyContractDetailsGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetEnergyContractDetailsGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
|
|
/**
|
|
* Fields of the EnergyContractDetails model
|
|
*/
|
|
readonly fields: EnergyContractDetailsFieldRefs;
|
|
}
|
|
|
|
/**
|
|
* The delegate class that acts as a "Promise-like" for EnergyContractDetails.
|
|
* Why is this prefixed with `Prisma__`?
|
|
* Because we want to prevent naming conflicts as mentioned in
|
|
* https://github.com/prisma/prisma-client-js/issues/707
|
|
*/
|
|
export interface Prisma__EnergyContractDetailsClient<T, Null = never, ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> extends Prisma.PrismaPromise<T> {
|
|
readonly [Symbol.toStringTag]: "PrismaPromise"
|
|
contract<T extends ContractDefaultArgs<ExtArgs> = {}>(args?: Subset<T, ContractDefaultArgs<ExtArgs>>): Prisma__ContractClient<$Result.GetResult<Prisma.$ContractPayload<ExtArgs>, T, "findUniqueOrThrow"> | Null, Null, ExtArgs>
|
|
meter<T extends EnergyContractDetails$meterArgs<ExtArgs> = {}>(args?: Subset<T, EnergyContractDetails$meterArgs<ExtArgs>>): Prisma__MeterClient<$Result.GetResult<Prisma.$MeterPayload<ExtArgs>, T, "findUniqueOrThrow"> | null, null, ExtArgs>
|
|
/**
|
|
* Attaches callbacks for the resolution and/or rejection of the Promise.
|
|
* @param onfulfilled The callback to execute when the Promise is resolved.
|
|
* @param onrejected The callback to execute when the Promise is rejected.
|
|
* @returns A Promise for the completion of which ever callback is executed.
|
|
*/
|
|
then<TResult1 = T, TResult2 = never>(onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined | null): $Utils.JsPromise<TResult1 | TResult2>
|
|
/**
|
|
* Attaches a callback for only the rejection of the Promise.
|
|
* @param onrejected The callback to execute when the Promise is rejected.
|
|
* @returns A Promise for the completion of the callback.
|
|
*/
|
|
catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): $Utils.JsPromise<T | TResult>
|
|
/**
|
|
* Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
|
|
* resolved value cannot be modified from the callback.
|
|
* @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
|
|
* @returns A Promise for the completion of the callback.
|
|
*/
|
|
finally(onfinally?: (() => void) | undefined | null): $Utils.JsPromise<T>
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
* Fields of the EnergyContractDetails model
|
|
*/
|
|
interface EnergyContractDetailsFieldRefs {
|
|
readonly id: FieldRef<"EnergyContractDetails", 'Int'>
|
|
readonly contractId: FieldRef<"EnergyContractDetails", 'Int'>
|
|
readonly meterId: FieldRef<"EnergyContractDetails", 'Int'>
|
|
readonly maloId: FieldRef<"EnergyContractDetails", 'String'>
|
|
readonly annualConsumption: FieldRef<"EnergyContractDetails", 'Float'>
|
|
readonly annualConsumptionKwh: FieldRef<"EnergyContractDetails", 'Float'>
|
|
readonly basePrice: FieldRef<"EnergyContractDetails", 'Float'>
|
|
readonly unitPrice: FieldRef<"EnergyContractDetails", 'Float'>
|
|
readonly bonus: FieldRef<"EnergyContractDetails", 'Float'>
|
|
readonly previousProviderName: FieldRef<"EnergyContractDetails", 'String'>
|
|
readonly previousCustomerNumber: FieldRef<"EnergyContractDetails", 'String'>
|
|
}
|
|
|
|
|
|
// Custom InputTypes
|
|
/**
|
|
* EnergyContractDetails findUnique
|
|
*/
|
|
export type EnergyContractDetailsFindUniqueArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the EnergyContractDetails
|
|
*/
|
|
select?: EnergyContractDetailsSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: EnergyContractDetailsInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which EnergyContractDetails to fetch.
|
|
*/
|
|
where: EnergyContractDetailsWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* EnergyContractDetails findUniqueOrThrow
|
|
*/
|
|
export type EnergyContractDetailsFindUniqueOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the EnergyContractDetails
|
|
*/
|
|
select?: EnergyContractDetailsSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: EnergyContractDetailsInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which EnergyContractDetails to fetch.
|
|
*/
|
|
where: EnergyContractDetailsWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* EnergyContractDetails findFirst
|
|
*/
|
|
export type EnergyContractDetailsFindFirstArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the EnergyContractDetails
|
|
*/
|
|
select?: EnergyContractDetailsSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: EnergyContractDetailsInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which EnergyContractDetails to fetch.
|
|
*/
|
|
where?: EnergyContractDetailsWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of EnergyContractDetails to fetch.
|
|
*/
|
|
orderBy?: EnergyContractDetailsOrderByWithRelationInput | EnergyContractDetailsOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for searching for EnergyContractDetails.
|
|
*/
|
|
cursor?: EnergyContractDetailsWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` EnergyContractDetails from the position of the cursor.
|
|
*/
|
|
take?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Skip the first `n` EnergyContractDetails.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
*
|
|
* Filter by unique combinations of EnergyContractDetails.
|
|
*/
|
|
distinct?: EnergyContractDetailsScalarFieldEnum | EnergyContractDetailsScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* EnergyContractDetails findFirstOrThrow
|
|
*/
|
|
export type EnergyContractDetailsFindFirstOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the EnergyContractDetails
|
|
*/
|
|
select?: EnergyContractDetailsSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: EnergyContractDetailsInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which EnergyContractDetails to fetch.
|
|
*/
|
|
where?: EnergyContractDetailsWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of EnergyContractDetails to fetch.
|
|
*/
|
|
orderBy?: EnergyContractDetailsOrderByWithRelationInput | EnergyContractDetailsOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for searching for EnergyContractDetails.
|
|
*/
|
|
cursor?: EnergyContractDetailsWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` EnergyContractDetails from the position of the cursor.
|
|
*/
|
|
take?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Skip the first `n` EnergyContractDetails.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
*
|
|
* Filter by unique combinations of EnergyContractDetails.
|
|
*/
|
|
distinct?: EnergyContractDetailsScalarFieldEnum | EnergyContractDetailsScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* EnergyContractDetails findMany
|
|
*/
|
|
export type EnergyContractDetailsFindManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the EnergyContractDetails
|
|
*/
|
|
select?: EnergyContractDetailsSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: EnergyContractDetailsInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which EnergyContractDetails to fetch.
|
|
*/
|
|
where?: EnergyContractDetailsWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of EnergyContractDetails to fetch.
|
|
*/
|
|
orderBy?: EnergyContractDetailsOrderByWithRelationInput | EnergyContractDetailsOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for listing EnergyContractDetails.
|
|
*/
|
|
cursor?: EnergyContractDetailsWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` EnergyContractDetails from the position of the cursor.
|
|
*/
|
|
take?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Skip the first `n` EnergyContractDetails.
|
|
*/
|
|
skip?: number
|
|
distinct?: EnergyContractDetailsScalarFieldEnum | EnergyContractDetailsScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* EnergyContractDetails create
|
|
*/
|
|
export type EnergyContractDetailsCreateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the EnergyContractDetails
|
|
*/
|
|
select?: EnergyContractDetailsSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: EnergyContractDetailsInclude<ExtArgs> | null
|
|
/**
|
|
* The data needed to create a EnergyContractDetails.
|
|
*/
|
|
data: XOR<EnergyContractDetailsCreateInput, EnergyContractDetailsUncheckedCreateInput>
|
|
}
|
|
|
|
/**
|
|
* EnergyContractDetails createMany
|
|
*/
|
|
export type EnergyContractDetailsCreateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* The data used to create many EnergyContractDetails.
|
|
*/
|
|
data: EnergyContractDetailsCreateManyInput | EnergyContractDetailsCreateManyInput[]
|
|
skipDuplicates?: boolean
|
|
}
|
|
|
|
/**
|
|
* EnergyContractDetails update
|
|
*/
|
|
export type EnergyContractDetailsUpdateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the EnergyContractDetails
|
|
*/
|
|
select?: EnergyContractDetailsSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: EnergyContractDetailsInclude<ExtArgs> | null
|
|
/**
|
|
* The data needed to update a EnergyContractDetails.
|
|
*/
|
|
data: XOR<EnergyContractDetailsUpdateInput, EnergyContractDetailsUncheckedUpdateInput>
|
|
/**
|
|
* Choose, which EnergyContractDetails to update.
|
|
*/
|
|
where: EnergyContractDetailsWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* EnergyContractDetails updateMany
|
|
*/
|
|
export type EnergyContractDetailsUpdateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* The data used to update EnergyContractDetails.
|
|
*/
|
|
data: XOR<EnergyContractDetailsUpdateManyMutationInput, EnergyContractDetailsUncheckedUpdateManyInput>
|
|
/**
|
|
* Filter which EnergyContractDetails to update
|
|
*/
|
|
where?: EnergyContractDetailsWhereInput
|
|
}
|
|
|
|
/**
|
|
* EnergyContractDetails upsert
|
|
*/
|
|
export type EnergyContractDetailsUpsertArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the EnergyContractDetails
|
|
*/
|
|
select?: EnergyContractDetailsSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: EnergyContractDetailsInclude<ExtArgs> | null
|
|
/**
|
|
* The filter to search for the EnergyContractDetails to update in case it exists.
|
|
*/
|
|
where: EnergyContractDetailsWhereUniqueInput
|
|
/**
|
|
* In case the EnergyContractDetails found by the `where` argument doesn't exist, create a new EnergyContractDetails with this data.
|
|
*/
|
|
create: XOR<EnergyContractDetailsCreateInput, EnergyContractDetailsUncheckedCreateInput>
|
|
/**
|
|
* In case the EnergyContractDetails was found with the provided `where` argument, update it with this data.
|
|
*/
|
|
update: XOR<EnergyContractDetailsUpdateInput, EnergyContractDetailsUncheckedUpdateInput>
|
|
}
|
|
|
|
/**
|
|
* EnergyContractDetails delete
|
|
*/
|
|
export type EnergyContractDetailsDeleteArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the EnergyContractDetails
|
|
*/
|
|
select?: EnergyContractDetailsSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: EnergyContractDetailsInclude<ExtArgs> | null
|
|
/**
|
|
* Filter which EnergyContractDetails to delete.
|
|
*/
|
|
where: EnergyContractDetailsWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* EnergyContractDetails deleteMany
|
|
*/
|
|
export type EnergyContractDetailsDeleteManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Filter which EnergyContractDetails to delete
|
|
*/
|
|
where?: EnergyContractDetailsWhereInput
|
|
}
|
|
|
|
/**
|
|
* EnergyContractDetails.meter
|
|
*/
|
|
export type EnergyContractDetails$meterArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the Meter
|
|
*/
|
|
select?: MeterSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: MeterInclude<ExtArgs> | null
|
|
where?: MeterWhereInput
|
|
}
|
|
|
|
/**
|
|
* EnergyContractDetails without action
|
|
*/
|
|
export type EnergyContractDetailsDefaultArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the EnergyContractDetails
|
|
*/
|
|
select?: EnergyContractDetailsSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: EnergyContractDetailsInclude<ExtArgs> | null
|
|
}
|
|
|
|
|
|
/**
|
|
* Model InternetContractDetails
|
|
*/
|
|
|
|
export type AggregateInternetContractDetails = {
|
|
_count: InternetContractDetailsCountAggregateOutputType | null
|
|
_avg: InternetContractDetailsAvgAggregateOutputType | null
|
|
_sum: InternetContractDetailsSumAggregateOutputType | null
|
|
_min: InternetContractDetailsMinAggregateOutputType | null
|
|
_max: InternetContractDetailsMaxAggregateOutputType | null
|
|
}
|
|
|
|
export type InternetContractDetailsAvgAggregateOutputType = {
|
|
id: number | null
|
|
contractId: number | null
|
|
downloadSpeed: number | null
|
|
uploadSpeed: number | null
|
|
}
|
|
|
|
export type InternetContractDetailsSumAggregateOutputType = {
|
|
id: number | null
|
|
contractId: number | null
|
|
downloadSpeed: number | null
|
|
uploadSpeed: number | null
|
|
}
|
|
|
|
export type InternetContractDetailsMinAggregateOutputType = {
|
|
id: number | null
|
|
contractId: number | null
|
|
downloadSpeed: number | null
|
|
uploadSpeed: number | null
|
|
routerModel: string | null
|
|
routerSerialNumber: string | null
|
|
installationDate: Date | null
|
|
internetUsername: string | null
|
|
internetPasswordEncrypted: string | null
|
|
homeId: string | null
|
|
activationCode: string | null
|
|
}
|
|
|
|
export type InternetContractDetailsMaxAggregateOutputType = {
|
|
id: number | null
|
|
contractId: number | null
|
|
downloadSpeed: number | null
|
|
uploadSpeed: number | null
|
|
routerModel: string | null
|
|
routerSerialNumber: string | null
|
|
installationDate: Date | null
|
|
internetUsername: string | null
|
|
internetPasswordEncrypted: string | null
|
|
homeId: string | null
|
|
activationCode: string | null
|
|
}
|
|
|
|
export type InternetContractDetailsCountAggregateOutputType = {
|
|
id: number
|
|
contractId: number
|
|
downloadSpeed: number
|
|
uploadSpeed: number
|
|
routerModel: number
|
|
routerSerialNumber: number
|
|
installationDate: number
|
|
internetUsername: number
|
|
internetPasswordEncrypted: number
|
|
homeId: number
|
|
activationCode: number
|
|
_all: number
|
|
}
|
|
|
|
|
|
export type InternetContractDetailsAvgAggregateInputType = {
|
|
id?: true
|
|
contractId?: true
|
|
downloadSpeed?: true
|
|
uploadSpeed?: true
|
|
}
|
|
|
|
export type InternetContractDetailsSumAggregateInputType = {
|
|
id?: true
|
|
contractId?: true
|
|
downloadSpeed?: true
|
|
uploadSpeed?: true
|
|
}
|
|
|
|
export type InternetContractDetailsMinAggregateInputType = {
|
|
id?: true
|
|
contractId?: true
|
|
downloadSpeed?: true
|
|
uploadSpeed?: true
|
|
routerModel?: true
|
|
routerSerialNumber?: true
|
|
installationDate?: true
|
|
internetUsername?: true
|
|
internetPasswordEncrypted?: true
|
|
homeId?: true
|
|
activationCode?: true
|
|
}
|
|
|
|
export type InternetContractDetailsMaxAggregateInputType = {
|
|
id?: true
|
|
contractId?: true
|
|
downloadSpeed?: true
|
|
uploadSpeed?: true
|
|
routerModel?: true
|
|
routerSerialNumber?: true
|
|
installationDate?: true
|
|
internetUsername?: true
|
|
internetPasswordEncrypted?: true
|
|
homeId?: true
|
|
activationCode?: true
|
|
}
|
|
|
|
export type InternetContractDetailsCountAggregateInputType = {
|
|
id?: true
|
|
contractId?: true
|
|
downloadSpeed?: true
|
|
uploadSpeed?: true
|
|
routerModel?: true
|
|
routerSerialNumber?: true
|
|
installationDate?: true
|
|
internetUsername?: true
|
|
internetPasswordEncrypted?: true
|
|
homeId?: true
|
|
activationCode?: true
|
|
_all?: true
|
|
}
|
|
|
|
export type InternetContractDetailsAggregateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Filter which InternetContractDetails to aggregate.
|
|
*/
|
|
where?: InternetContractDetailsWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of InternetContractDetails to fetch.
|
|
*/
|
|
orderBy?: InternetContractDetailsOrderByWithRelationInput | InternetContractDetailsOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the start position
|
|
*/
|
|
cursor?: InternetContractDetailsWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` InternetContractDetails from the position of the cursor.
|
|
*/
|
|
take?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Skip the first `n` InternetContractDetails.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Count returned InternetContractDetails
|
|
**/
|
|
_count?: true | InternetContractDetailsCountAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to average
|
|
**/
|
|
_avg?: InternetContractDetailsAvgAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to sum
|
|
**/
|
|
_sum?: InternetContractDetailsSumAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to find the minimum value
|
|
**/
|
|
_min?: InternetContractDetailsMinAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to find the maximum value
|
|
**/
|
|
_max?: InternetContractDetailsMaxAggregateInputType
|
|
}
|
|
|
|
export type GetInternetContractDetailsAggregateType<T extends InternetContractDetailsAggregateArgs> = {
|
|
[P in keyof T & keyof AggregateInternetContractDetails]: P extends '_count' | 'count'
|
|
? T[P] extends true
|
|
? number
|
|
: GetScalarType<T[P], AggregateInternetContractDetails[P]>
|
|
: GetScalarType<T[P], AggregateInternetContractDetails[P]>
|
|
}
|
|
|
|
|
|
|
|
|
|
export type InternetContractDetailsGroupByArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
where?: InternetContractDetailsWhereInput
|
|
orderBy?: InternetContractDetailsOrderByWithAggregationInput | InternetContractDetailsOrderByWithAggregationInput[]
|
|
by: InternetContractDetailsScalarFieldEnum[] | InternetContractDetailsScalarFieldEnum
|
|
having?: InternetContractDetailsScalarWhereWithAggregatesInput
|
|
take?: number
|
|
skip?: number
|
|
_count?: InternetContractDetailsCountAggregateInputType | true
|
|
_avg?: InternetContractDetailsAvgAggregateInputType
|
|
_sum?: InternetContractDetailsSumAggregateInputType
|
|
_min?: InternetContractDetailsMinAggregateInputType
|
|
_max?: InternetContractDetailsMaxAggregateInputType
|
|
}
|
|
|
|
export type InternetContractDetailsGroupByOutputType = {
|
|
id: number
|
|
contractId: number
|
|
downloadSpeed: number | null
|
|
uploadSpeed: number | null
|
|
routerModel: string | null
|
|
routerSerialNumber: string | null
|
|
installationDate: Date | null
|
|
internetUsername: string | null
|
|
internetPasswordEncrypted: string | null
|
|
homeId: string | null
|
|
activationCode: string | null
|
|
_count: InternetContractDetailsCountAggregateOutputType | null
|
|
_avg: InternetContractDetailsAvgAggregateOutputType | null
|
|
_sum: InternetContractDetailsSumAggregateOutputType | null
|
|
_min: InternetContractDetailsMinAggregateOutputType | null
|
|
_max: InternetContractDetailsMaxAggregateOutputType | null
|
|
}
|
|
|
|
type GetInternetContractDetailsGroupByPayload<T extends InternetContractDetailsGroupByArgs> = Prisma.PrismaPromise<
|
|
Array<
|
|
PickEnumerable<InternetContractDetailsGroupByOutputType, T['by']> &
|
|
{
|
|
[P in ((keyof T) & (keyof InternetContractDetailsGroupByOutputType))]: P extends '_count'
|
|
? T[P] extends boolean
|
|
? number
|
|
: GetScalarType<T[P], InternetContractDetailsGroupByOutputType[P]>
|
|
: GetScalarType<T[P], InternetContractDetailsGroupByOutputType[P]>
|
|
}
|
|
>
|
|
>
|
|
|
|
|
|
export type InternetContractDetailsSelect<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
|
|
id?: boolean
|
|
contractId?: boolean
|
|
downloadSpeed?: boolean
|
|
uploadSpeed?: boolean
|
|
routerModel?: boolean
|
|
routerSerialNumber?: boolean
|
|
installationDate?: boolean
|
|
internetUsername?: boolean
|
|
internetPasswordEncrypted?: boolean
|
|
homeId?: boolean
|
|
activationCode?: boolean
|
|
contract?: boolean | ContractDefaultArgs<ExtArgs>
|
|
phoneNumbers?: boolean | InternetContractDetails$phoneNumbersArgs<ExtArgs>
|
|
_count?: boolean | InternetContractDetailsCountOutputTypeDefaultArgs<ExtArgs>
|
|
}, ExtArgs["result"]["internetContractDetails"]>
|
|
|
|
|
|
export type InternetContractDetailsSelectScalar = {
|
|
id?: boolean
|
|
contractId?: boolean
|
|
downloadSpeed?: boolean
|
|
uploadSpeed?: boolean
|
|
routerModel?: boolean
|
|
routerSerialNumber?: boolean
|
|
installationDate?: boolean
|
|
internetUsername?: boolean
|
|
internetPasswordEncrypted?: boolean
|
|
homeId?: boolean
|
|
activationCode?: boolean
|
|
}
|
|
|
|
export type InternetContractDetailsInclude<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
contract?: boolean | ContractDefaultArgs<ExtArgs>
|
|
phoneNumbers?: boolean | InternetContractDetails$phoneNumbersArgs<ExtArgs>
|
|
_count?: boolean | InternetContractDetailsCountOutputTypeDefaultArgs<ExtArgs>
|
|
}
|
|
|
|
export type $InternetContractDetailsPayload<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
name: "InternetContractDetails"
|
|
objects: {
|
|
contract: Prisma.$ContractPayload<ExtArgs>
|
|
phoneNumbers: Prisma.$PhoneNumberPayload<ExtArgs>[]
|
|
}
|
|
scalars: $Extensions.GetPayloadResult<{
|
|
id: number
|
|
contractId: number
|
|
downloadSpeed: number | null
|
|
uploadSpeed: number | null
|
|
routerModel: string | null
|
|
routerSerialNumber: string | null
|
|
installationDate: Date | null
|
|
internetUsername: string | null
|
|
internetPasswordEncrypted: string | null
|
|
homeId: string | null
|
|
activationCode: string | null
|
|
}, ExtArgs["result"]["internetContractDetails"]>
|
|
composites: {}
|
|
}
|
|
|
|
type InternetContractDetailsGetPayload<S extends boolean | null | undefined | InternetContractDetailsDefaultArgs> = $Result.GetResult<Prisma.$InternetContractDetailsPayload, S>
|
|
|
|
type InternetContractDetailsCountArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> =
|
|
Omit<InternetContractDetailsFindManyArgs, 'select' | 'include' | 'distinct'> & {
|
|
select?: InternetContractDetailsCountAggregateInputType | true
|
|
}
|
|
|
|
export interface InternetContractDetailsDelegate<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> {
|
|
[K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['InternetContractDetails'], meta: { name: 'InternetContractDetails' } }
|
|
/**
|
|
* Find zero or one InternetContractDetails that matches the filter.
|
|
* @param {InternetContractDetailsFindUniqueArgs} args - Arguments to find a InternetContractDetails
|
|
* @example
|
|
* // Get one InternetContractDetails
|
|
* const internetContractDetails = await prisma.internetContractDetails.findUnique({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findUnique<T extends InternetContractDetailsFindUniqueArgs>(args: SelectSubset<T, InternetContractDetailsFindUniqueArgs<ExtArgs>>): Prisma__InternetContractDetailsClient<$Result.GetResult<Prisma.$InternetContractDetailsPayload<ExtArgs>, T, "findUnique"> | null, null, ExtArgs>
|
|
|
|
/**
|
|
* Find one InternetContractDetails that matches the filter or throw an error with `error.code='P2025'`
|
|
* if no matches were found.
|
|
* @param {InternetContractDetailsFindUniqueOrThrowArgs} args - Arguments to find a InternetContractDetails
|
|
* @example
|
|
* // Get one InternetContractDetails
|
|
* const internetContractDetails = await prisma.internetContractDetails.findUniqueOrThrow({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findUniqueOrThrow<T extends InternetContractDetailsFindUniqueOrThrowArgs>(args: SelectSubset<T, InternetContractDetailsFindUniqueOrThrowArgs<ExtArgs>>): Prisma__InternetContractDetailsClient<$Result.GetResult<Prisma.$InternetContractDetailsPayload<ExtArgs>, T, "findUniqueOrThrow">, never, ExtArgs>
|
|
|
|
/**
|
|
* Find the first InternetContractDetails that matches the filter.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {InternetContractDetailsFindFirstArgs} args - Arguments to find a InternetContractDetails
|
|
* @example
|
|
* // Get one InternetContractDetails
|
|
* const internetContractDetails = await prisma.internetContractDetails.findFirst({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findFirst<T extends InternetContractDetailsFindFirstArgs>(args?: SelectSubset<T, InternetContractDetailsFindFirstArgs<ExtArgs>>): Prisma__InternetContractDetailsClient<$Result.GetResult<Prisma.$InternetContractDetailsPayload<ExtArgs>, T, "findFirst"> | null, null, ExtArgs>
|
|
|
|
/**
|
|
* Find the first InternetContractDetails that matches the filter or
|
|
* throw `PrismaKnownClientError` with `P2025` code if no matches were found.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {InternetContractDetailsFindFirstOrThrowArgs} args - Arguments to find a InternetContractDetails
|
|
* @example
|
|
* // Get one InternetContractDetails
|
|
* const internetContractDetails = await prisma.internetContractDetails.findFirstOrThrow({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findFirstOrThrow<T extends InternetContractDetailsFindFirstOrThrowArgs>(args?: SelectSubset<T, InternetContractDetailsFindFirstOrThrowArgs<ExtArgs>>): Prisma__InternetContractDetailsClient<$Result.GetResult<Prisma.$InternetContractDetailsPayload<ExtArgs>, T, "findFirstOrThrow">, never, ExtArgs>
|
|
|
|
/**
|
|
* Find zero or more InternetContractDetails that matches the filter.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {InternetContractDetailsFindManyArgs} args - Arguments to filter and select certain fields only.
|
|
* @example
|
|
* // Get all InternetContractDetails
|
|
* const internetContractDetails = await prisma.internetContractDetails.findMany()
|
|
*
|
|
* // Get first 10 InternetContractDetails
|
|
* const internetContractDetails = await prisma.internetContractDetails.findMany({ take: 10 })
|
|
*
|
|
* // Only select the `id`
|
|
* const internetContractDetailsWithIdOnly = await prisma.internetContractDetails.findMany({ select: { id: true } })
|
|
*
|
|
*/
|
|
findMany<T extends InternetContractDetailsFindManyArgs>(args?: SelectSubset<T, InternetContractDetailsFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$InternetContractDetailsPayload<ExtArgs>, T, "findMany">>
|
|
|
|
/**
|
|
* Create a InternetContractDetails.
|
|
* @param {InternetContractDetailsCreateArgs} args - Arguments to create a InternetContractDetails.
|
|
* @example
|
|
* // Create one InternetContractDetails
|
|
* const InternetContractDetails = await prisma.internetContractDetails.create({
|
|
* data: {
|
|
* // ... data to create a InternetContractDetails
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
create<T extends InternetContractDetailsCreateArgs>(args: SelectSubset<T, InternetContractDetailsCreateArgs<ExtArgs>>): Prisma__InternetContractDetailsClient<$Result.GetResult<Prisma.$InternetContractDetailsPayload<ExtArgs>, T, "create">, never, ExtArgs>
|
|
|
|
/**
|
|
* Create many InternetContractDetails.
|
|
* @param {InternetContractDetailsCreateManyArgs} args - Arguments to create many InternetContractDetails.
|
|
* @example
|
|
* // Create many InternetContractDetails
|
|
* const internetContractDetails = await prisma.internetContractDetails.createMany({
|
|
* data: [
|
|
* // ... provide data here
|
|
* ]
|
|
* })
|
|
*
|
|
*/
|
|
createMany<T extends InternetContractDetailsCreateManyArgs>(args?: SelectSubset<T, InternetContractDetailsCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
|
|
|
|
/**
|
|
* Delete a InternetContractDetails.
|
|
* @param {InternetContractDetailsDeleteArgs} args - Arguments to delete one InternetContractDetails.
|
|
* @example
|
|
* // Delete one InternetContractDetails
|
|
* const InternetContractDetails = await prisma.internetContractDetails.delete({
|
|
* where: {
|
|
* // ... filter to delete one InternetContractDetails
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
delete<T extends InternetContractDetailsDeleteArgs>(args: SelectSubset<T, InternetContractDetailsDeleteArgs<ExtArgs>>): Prisma__InternetContractDetailsClient<$Result.GetResult<Prisma.$InternetContractDetailsPayload<ExtArgs>, T, "delete">, never, ExtArgs>
|
|
|
|
/**
|
|
* Update one InternetContractDetails.
|
|
* @param {InternetContractDetailsUpdateArgs} args - Arguments to update one InternetContractDetails.
|
|
* @example
|
|
* // Update one InternetContractDetails
|
|
* const internetContractDetails = await prisma.internetContractDetails.update({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* },
|
|
* data: {
|
|
* // ... provide data here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
update<T extends InternetContractDetailsUpdateArgs>(args: SelectSubset<T, InternetContractDetailsUpdateArgs<ExtArgs>>): Prisma__InternetContractDetailsClient<$Result.GetResult<Prisma.$InternetContractDetailsPayload<ExtArgs>, T, "update">, never, ExtArgs>
|
|
|
|
/**
|
|
* Delete zero or more InternetContractDetails.
|
|
* @param {InternetContractDetailsDeleteManyArgs} args - Arguments to filter InternetContractDetails to delete.
|
|
* @example
|
|
* // Delete a few InternetContractDetails
|
|
* const { count } = await prisma.internetContractDetails.deleteMany({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
deleteMany<T extends InternetContractDetailsDeleteManyArgs>(args?: SelectSubset<T, InternetContractDetailsDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
|
|
|
|
/**
|
|
* Update zero or more InternetContractDetails.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {InternetContractDetailsUpdateManyArgs} args - Arguments to update one or more rows.
|
|
* @example
|
|
* // Update many InternetContractDetails
|
|
* const internetContractDetails = await prisma.internetContractDetails.updateMany({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* },
|
|
* data: {
|
|
* // ... provide data here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
updateMany<T extends InternetContractDetailsUpdateManyArgs>(args: SelectSubset<T, InternetContractDetailsUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
|
|
|
|
/**
|
|
* Create or update one InternetContractDetails.
|
|
* @param {InternetContractDetailsUpsertArgs} args - Arguments to update or create a InternetContractDetails.
|
|
* @example
|
|
* // Update or create a InternetContractDetails
|
|
* const internetContractDetails = await prisma.internetContractDetails.upsert({
|
|
* create: {
|
|
* // ... data to create a InternetContractDetails
|
|
* },
|
|
* update: {
|
|
* // ... in case it already exists, update
|
|
* },
|
|
* where: {
|
|
* // ... the filter for the InternetContractDetails we want to update
|
|
* }
|
|
* })
|
|
*/
|
|
upsert<T extends InternetContractDetailsUpsertArgs>(args: SelectSubset<T, InternetContractDetailsUpsertArgs<ExtArgs>>): Prisma__InternetContractDetailsClient<$Result.GetResult<Prisma.$InternetContractDetailsPayload<ExtArgs>, T, "upsert">, never, ExtArgs>
|
|
|
|
|
|
/**
|
|
* Count the number of InternetContractDetails.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {InternetContractDetailsCountArgs} args - Arguments to filter InternetContractDetails to count.
|
|
* @example
|
|
* // Count the number of InternetContractDetails
|
|
* const count = await prisma.internetContractDetails.count({
|
|
* where: {
|
|
* // ... the filter for the InternetContractDetails we want to count
|
|
* }
|
|
* })
|
|
**/
|
|
count<T extends InternetContractDetailsCountArgs>(
|
|
args?: Subset<T, InternetContractDetailsCountArgs>,
|
|
): Prisma.PrismaPromise<
|
|
T extends $Utils.Record<'select', any>
|
|
? T['select'] extends true
|
|
? number
|
|
: GetScalarType<T['select'], InternetContractDetailsCountAggregateOutputType>
|
|
: number
|
|
>
|
|
|
|
/**
|
|
* Allows you to perform aggregations operations on a InternetContractDetails.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {InternetContractDetailsAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
|
|
* @example
|
|
* // Ordered by age ascending
|
|
* // Where email contains prisma.io
|
|
* // Limited to the 10 users
|
|
* const aggregations = await prisma.user.aggregate({
|
|
* _avg: {
|
|
* age: true,
|
|
* },
|
|
* where: {
|
|
* email: {
|
|
* contains: "prisma.io",
|
|
* },
|
|
* },
|
|
* orderBy: {
|
|
* age: "asc",
|
|
* },
|
|
* take: 10,
|
|
* })
|
|
**/
|
|
aggregate<T extends InternetContractDetailsAggregateArgs>(args: Subset<T, InternetContractDetailsAggregateArgs>): Prisma.PrismaPromise<GetInternetContractDetailsAggregateType<T>>
|
|
|
|
/**
|
|
* Group by InternetContractDetails.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {InternetContractDetailsGroupByArgs} args - Group by arguments.
|
|
* @example
|
|
* // Group by city, order by createdAt, get count
|
|
* const result = await prisma.user.groupBy({
|
|
* by: ['city', 'createdAt'],
|
|
* orderBy: {
|
|
* createdAt: true
|
|
* },
|
|
* _count: {
|
|
* _all: true
|
|
* },
|
|
* })
|
|
*
|
|
**/
|
|
groupBy<
|
|
T extends InternetContractDetailsGroupByArgs,
|
|
HasSelectOrTake extends Or<
|
|
Extends<'skip', Keys<T>>,
|
|
Extends<'take', Keys<T>>
|
|
>,
|
|
OrderByArg extends True extends HasSelectOrTake
|
|
? { orderBy: InternetContractDetailsGroupByArgs['orderBy'] }
|
|
: { orderBy?: InternetContractDetailsGroupByArgs['orderBy'] },
|
|
OrderFields extends ExcludeUnderscoreKeys<Keys<MaybeTupleToUnion<T['orderBy']>>>,
|
|
ByFields extends MaybeTupleToUnion<T['by']>,
|
|
ByValid extends Has<ByFields, OrderFields>,
|
|
HavingFields extends GetHavingFields<T['having']>,
|
|
HavingValid extends Has<ByFields, HavingFields>,
|
|
ByEmpty extends T['by'] extends never[] ? True : False,
|
|
InputErrors extends ByEmpty extends True
|
|
? `Error: "by" must not be empty.`
|
|
: HavingValid extends False
|
|
? {
|
|
[P in HavingFields]: P extends ByFields
|
|
? never
|
|
: P extends string
|
|
? `Error: Field "${P}" used in "having" needs to be provided in "by".`
|
|
: [
|
|
Error,
|
|
'Field ',
|
|
P,
|
|
` in "having" needs to be provided in "by"`,
|
|
]
|
|
}[HavingFields]
|
|
: 'take' extends Keys<T>
|
|
? 'orderBy' extends Keys<T>
|
|
? ByValid extends True
|
|
? {}
|
|
: {
|
|
[P in OrderFields]: P extends ByFields
|
|
? never
|
|
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
|
|
}[OrderFields]
|
|
: 'Error: If you provide "take", you also need to provide "orderBy"'
|
|
: 'skip' extends Keys<T>
|
|
? 'orderBy' extends Keys<T>
|
|
? ByValid extends True
|
|
? {}
|
|
: {
|
|
[P in OrderFields]: P extends ByFields
|
|
? never
|
|
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
|
|
}[OrderFields]
|
|
: 'Error: If you provide "skip", you also need to provide "orderBy"'
|
|
: ByValid extends True
|
|
? {}
|
|
: {
|
|
[P in OrderFields]: P extends ByFields
|
|
? never
|
|
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
|
|
}[OrderFields]
|
|
>(args: SubsetIntersection<T, InternetContractDetailsGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetInternetContractDetailsGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
|
|
/**
|
|
* Fields of the InternetContractDetails model
|
|
*/
|
|
readonly fields: InternetContractDetailsFieldRefs;
|
|
}
|
|
|
|
/**
|
|
* The delegate class that acts as a "Promise-like" for InternetContractDetails.
|
|
* Why is this prefixed with `Prisma__`?
|
|
* Because we want to prevent naming conflicts as mentioned in
|
|
* https://github.com/prisma/prisma-client-js/issues/707
|
|
*/
|
|
export interface Prisma__InternetContractDetailsClient<T, Null = never, ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> extends Prisma.PrismaPromise<T> {
|
|
readonly [Symbol.toStringTag]: "PrismaPromise"
|
|
contract<T extends ContractDefaultArgs<ExtArgs> = {}>(args?: Subset<T, ContractDefaultArgs<ExtArgs>>): Prisma__ContractClient<$Result.GetResult<Prisma.$ContractPayload<ExtArgs>, T, "findUniqueOrThrow"> | Null, Null, ExtArgs>
|
|
phoneNumbers<T extends InternetContractDetails$phoneNumbersArgs<ExtArgs> = {}>(args?: Subset<T, InternetContractDetails$phoneNumbersArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$PhoneNumberPayload<ExtArgs>, T, "findMany"> | Null>
|
|
/**
|
|
* Attaches callbacks for the resolution and/or rejection of the Promise.
|
|
* @param onfulfilled The callback to execute when the Promise is resolved.
|
|
* @param onrejected The callback to execute when the Promise is rejected.
|
|
* @returns A Promise for the completion of which ever callback is executed.
|
|
*/
|
|
then<TResult1 = T, TResult2 = never>(onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined | null): $Utils.JsPromise<TResult1 | TResult2>
|
|
/**
|
|
* Attaches a callback for only the rejection of the Promise.
|
|
* @param onrejected The callback to execute when the Promise is rejected.
|
|
* @returns A Promise for the completion of the callback.
|
|
*/
|
|
catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): $Utils.JsPromise<T | TResult>
|
|
/**
|
|
* Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
|
|
* resolved value cannot be modified from the callback.
|
|
* @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
|
|
* @returns A Promise for the completion of the callback.
|
|
*/
|
|
finally(onfinally?: (() => void) | undefined | null): $Utils.JsPromise<T>
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
* Fields of the InternetContractDetails model
|
|
*/
|
|
interface InternetContractDetailsFieldRefs {
|
|
readonly id: FieldRef<"InternetContractDetails", 'Int'>
|
|
readonly contractId: FieldRef<"InternetContractDetails", 'Int'>
|
|
readonly downloadSpeed: FieldRef<"InternetContractDetails", 'Int'>
|
|
readonly uploadSpeed: FieldRef<"InternetContractDetails", 'Int'>
|
|
readonly routerModel: FieldRef<"InternetContractDetails", 'String'>
|
|
readonly routerSerialNumber: FieldRef<"InternetContractDetails", 'String'>
|
|
readonly installationDate: FieldRef<"InternetContractDetails", 'DateTime'>
|
|
readonly internetUsername: FieldRef<"InternetContractDetails", 'String'>
|
|
readonly internetPasswordEncrypted: FieldRef<"InternetContractDetails", 'String'>
|
|
readonly homeId: FieldRef<"InternetContractDetails", 'String'>
|
|
readonly activationCode: FieldRef<"InternetContractDetails", 'String'>
|
|
}
|
|
|
|
|
|
// Custom InputTypes
|
|
/**
|
|
* InternetContractDetails findUnique
|
|
*/
|
|
export type InternetContractDetailsFindUniqueArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the InternetContractDetails
|
|
*/
|
|
select?: InternetContractDetailsSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: InternetContractDetailsInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which InternetContractDetails to fetch.
|
|
*/
|
|
where: InternetContractDetailsWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* InternetContractDetails findUniqueOrThrow
|
|
*/
|
|
export type InternetContractDetailsFindUniqueOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the InternetContractDetails
|
|
*/
|
|
select?: InternetContractDetailsSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: InternetContractDetailsInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which InternetContractDetails to fetch.
|
|
*/
|
|
where: InternetContractDetailsWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* InternetContractDetails findFirst
|
|
*/
|
|
export type InternetContractDetailsFindFirstArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the InternetContractDetails
|
|
*/
|
|
select?: InternetContractDetailsSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: InternetContractDetailsInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which InternetContractDetails to fetch.
|
|
*/
|
|
where?: InternetContractDetailsWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of InternetContractDetails to fetch.
|
|
*/
|
|
orderBy?: InternetContractDetailsOrderByWithRelationInput | InternetContractDetailsOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for searching for InternetContractDetails.
|
|
*/
|
|
cursor?: InternetContractDetailsWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` InternetContractDetails from the position of the cursor.
|
|
*/
|
|
take?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Skip the first `n` InternetContractDetails.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
*
|
|
* Filter by unique combinations of InternetContractDetails.
|
|
*/
|
|
distinct?: InternetContractDetailsScalarFieldEnum | InternetContractDetailsScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* InternetContractDetails findFirstOrThrow
|
|
*/
|
|
export type InternetContractDetailsFindFirstOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the InternetContractDetails
|
|
*/
|
|
select?: InternetContractDetailsSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: InternetContractDetailsInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which InternetContractDetails to fetch.
|
|
*/
|
|
where?: InternetContractDetailsWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of InternetContractDetails to fetch.
|
|
*/
|
|
orderBy?: InternetContractDetailsOrderByWithRelationInput | InternetContractDetailsOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for searching for InternetContractDetails.
|
|
*/
|
|
cursor?: InternetContractDetailsWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` InternetContractDetails from the position of the cursor.
|
|
*/
|
|
take?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Skip the first `n` InternetContractDetails.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
*
|
|
* Filter by unique combinations of InternetContractDetails.
|
|
*/
|
|
distinct?: InternetContractDetailsScalarFieldEnum | InternetContractDetailsScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* InternetContractDetails findMany
|
|
*/
|
|
export type InternetContractDetailsFindManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the InternetContractDetails
|
|
*/
|
|
select?: InternetContractDetailsSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: InternetContractDetailsInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which InternetContractDetails to fetch.
|
|
*/
|
|
where?: InternetContractDetailsWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of InternetContractDetails to fetch.
|
|
*/
|
|
orderBy?: InternetContractDetailsOrderByWithRelationInput | InternetContractDetailsOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for listing InternetContractDetails.
|
|
*/
|
|
cursor?: InternetContractDetailsWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` InternetContractDetails from the position of the cursor.
|
|
*/
|
|
take?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Skip the first `n` InternetContractDetails.
|
|
*/
|
|
skip?: number
|
|
distinct?: InternetContractDetailsScalarFieldEnum | InternetContractDetailsScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* InternetContractDetails create
|
|
*/
|
|
export type InternetContractDetailsCreateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the InternetContractDetails
|
|
*/
|
|
select?: InternetContractDetailsSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: InternetContractDetailsInclude<ExtArgs> | null
|
|
/**
|
|
* The data needed to create a InternetContractDetails.
|
|
*/
|
|
data: XOR<InternetContractDetailsCreateInput, InternetContractDetailsUncheckedCreateInput>
|
|
}
|
|
|
|
/**
|
|
* InternetContractDetails createMany
|
|
*/
|
|
export type InternetContractDetailsCreateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* The data used to create many InternetContractDetails.
|
|
*/
|
|
data: InternetContractDetailsCreateManyInput | InternetContractDetailsCreateManyInput[]
|
|
skipDuplicates?: boolean
|
|
}
|
|
|
|
/**
|
|
* InternetContractDetails update
|
|
*/
|
|
export type InternetContractDetailsUpdateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the InternetContractDetails
|
|
*/
|
|
select?: InternetContractDetailsSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: InternetContractDetailsInclude<ExtArgs> | null
|
|
/**
|
|
* The data needed to update a InternetContractDetails.
|
|
*/
|
|
data: XOR<InternetContractDetailsUpdateInput, InternetContractDetailsUncheckedUpdateInput>
|
|
/**
|
|
* Choose, which InternetContractDetails to update.
|
|
*/
|
|
where: InternetContractDetailsWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* InternetContractDetails updateMany
|
|
*/
|
|
export type InternetContractDetailsUpdateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* The data used to update InternetContractDetails.
|
|
*/
|
|
data: XOR<InternetContractDetailsUpdateManyMutationInput, InternetContractDetailsUncheckedUpdateManyInput>
|
|
/**
|
|
* Filter which InternetContractDetails to update
|
|
*/
|
|
where?: InternetContractDetailsWhereInput
|
|
}
|
|
|
|
/**
|
|
* InternetContractDetails upsert
|
|
*/
|
|
export type InternetContractDetailsUpsertArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the InternetContractDetails
|
|
*/
|
|
select?: InternetContractDetailsSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: InternetContractDetailsInclude<ExtArgs> | null
|
|
/**
|
|
* The filter to search for the InternetContractDetails to update in case it exists.
|
|
*/
|
|
where: InternetContractDetailsWhereUniqueInput
|
|
/**
|
|
* In case the InternetContractDetails found by the `where` argument doesn't exist, create a new InternetContractDetails with this data.
|
|
*/
|
|
create: XOR<InternetContractDetailsCreateInput, InternetContractDetailsUncheckedCreateInput>
|
|
/**
|
|
* In case the InternetContractDetails was found with the provided `where` argument, update it with this data.
|
|
*/
|
|
update: XOR<InternetContractDetailsUpdateInput, InternetContractDetailsUncheckedUpdateInput>
|
|
}
|
|
|
|
/**
|
|
* InternetContractDetails delete
|
|
*/
|
|
export type InternetContractDetailsDeleteArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the InternetContractDetails
|
|
*/
|
|
select?: InternetContractDetailsSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: InternetContractDetailsInclude<ExtArgs> | null
|
|
/**
|
|
* Filter which InternetContractDetails to delete.
|
|
*/
|
|
where: InternetContractDetailsWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* InternetContractDetails deleteMany
|
|
*/
|
|
export type InternetContractDetailsDeleteManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Filter which InternetContractDetails to delete
|
|
*/
|
|
where?: InternetContractDetailsWhereInput
|
|
}
|
|
|
|
/**
|
|
* InternetContractDetails.phoneNumbers
|
|
*/
|
|
export type InternetContractDetails$phoneNumbersArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the PhoneNumber
|
|
*/
|
|
select?: PhoneNumberSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: PhoneNumberInclude<ExtArgs> | null
|
|
where?: PhoneNumberWhereInput
|
|
orderBy?: PhoneNumberOrderByWithRelationInput | PhoneNumberOrderByWithRelationInput[]
|
|
cursor?: PhoneNumberWhereUniqueInput
|
|
take?: number
|
|
skip?: number
|
|
distinct?: PhoneNumberScalarFieldEnum | PhoneNumberScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* InternetContractDetails without action
|
|
*/
|
|
export type InternetContractDetailsDefaultArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the InternetContractDetails
|
|
*/
|
|
select?: InternetContractDetailsSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: InternetContractDetailsInclude<ExtArgs> | null
|
|
}
|
|
|
|
|
|
/**
|
|
* Model PhoneNumber
|
|
*/
|
|
|
|
export type AggregatePhoneNumber = {
|
|
_count: PhoneNumberCountAggregateOutputType | null
|
|
_avg: PhoneNumberAvgAggregateOutputType | null
|
|
_sum: PhoneNumberSumAggregateOutputType | null
|
|
_min: PhoneNumberMinAggregateOutputType | null
|
|
_max: PhoneNumberMaxAggregateOutputType | null
|
|
}
|
|
|
|
export type PhoneNumberAvgAggregateOutputType = {
|
|
id: number | null
|
|
internetContractDetailsId: number | null
|
|
}
|
|
|
|
export type PhoneNumberSumAggregateOutputType = {
|
|
id: number | null
|
|
internetContractDetailsId: number | null
|
|
}
|
|
|
|
export type PhoneNumberMinAggregateOutputType = {
|
|
id: number | null
|
|
internetContractDetailsId: number | null
|
|
phoneNumber: string | null
|
|
isMain: boolean | null
|
|
sipUsername: string | null
|
|
sipPasswordEncrypted: string | null
|
|
sipServer: string | null
|
|
}
|
|
|
|
export type PhoneNumberMaxAggregateOutputType = {
|
|
id: number | null
|
|
internetContractDetailsId: number | null
|
|
phoneNumber: string | null
|
|
isMain: boolean | null
|
|
sipUsername: string | null
|
|
sipPasswordEncrypted: string | null
|
|
sipServer: string | null
|
|
}
|
|
|
|
export type PhoneNumberCountAggregateOutputType = {
|
|
id: number
|
|
internetContractDetailsId: number
|
|
phoneNumber: number
|
|
isMain: number
|
|
sipUsername: number
|
|
sipPasswordEncrypted: number
|
|
sipServer: number
|
|
_all: number
|
|
}
|
|
|
|
|
|
export type PhoneNumberAvgAggregateInputType = {
|
|
id?: true
|
|
internetContractDetailsId?: true
|
|
}
|
|
|
|
export type PhoneNumberSumAggregateInputType = {
|
|
id?: true
|
|
internetContractDetailsId?: true
|
|
}
|
|
|
|
export type PhoneNumberMinAggregateInputType = {
|
|
id?: true
|
|
internetContractDetailsId?: true
|
|
phoneNumber?: true
|
|
isMain?: true
|
|
sipUsername?: true
|
|
sipPasswordEncrypted?: true
|
|
sipServer?: true
|
|
}
|
|
|
|
export type PhoneNumberMaxAggregateInputType = {
|
|
id?: true
|
|
internetContractDetailsId?: true
|
|
phoneNumber?: true
|
|
isMain?: true
|
|
sipUsername?: true
|
|
sipPasswordEncrypted?: true
|
|
sipServer?: true
|
|
}
|
|
|
|
export type PhoneNumberCountAggregateInputType = {
|
|
id?: true
|
|
internetContractDetailsId?: true
|
|
phoneNumber?: true
|
|
isMain?: true
|
|
sipUsername?: true
|
|
sipPasswordEncrypted?: true
|
|
sipServer?: true
|
|
_all?: true
|
|
}
|
|
|
|
export type PhoneNumberAggregateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Filter which PhoneNumber to aggregate.
|
|
*/
|
|
where?: PhoneNumberWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of PhoneNumbers to fetch.
|
|
*/
|
|
orderBy?: PhoneNumberOrderByWithRelationInput | PhoneNumberOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the start position
|
|
*/
|
|
cursor?: PhoneNumberWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` PhoneNumbers from the position of the cursor.
|
|
*/
|
|
take?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Skip the first `n` PhoneNumbers.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Count returned PhoneNumbers
|
|
**/
|
|
_count?: true | PhoneNumberCountAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to average
|
|
**/
|
|
_avg?: PhoneNumberAvgAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to sum
|
|
**/
|
|
_sum?: PhoneNumberSumAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to find the minimum value
|
|
**/
|
|
_min?: PhoneNumberMinAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to find the maximum value
|
|
**/
|
|
_max?: PhoneNumberMaxAggregateInputType
|
|
}
|
|
|
|
export type GetPhoneNumberAggregateType<T extends PhoneNumberAggregateArgs> = {
|
|
[P in keyof T & keyof AggregatePhoneNumber]: P extends '_count' | 'count'
|
|
? T[P] extends true
|
|
? number
|
|
: GetScalarType<T[P], AggregatePhoneNumber[P]>
|
|
: GetScalarType<T[P], AggregatePhoneNumber[P]>
|
|
}
|
|
|
|
|
|
|
|
|
|
export type PhoneNumberGroupByArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
where?: PhoneNumberWhereInput
|
|
orderBy?: PhoneNumberOrderByWithAggregationInput | PhoneNumberOrderByWithAggregationInput[]
|
|
by: PhoneNumberScalarFieldEnum[] | PhoneNumberScalarFieldEnum
|
|
having?: PhoneNumberScalarWhereWithAggregatesInput
|
|
take?: number
|
|
skip?: number
|
|
_count?: PhoneNumberCountAggregateInputType | true
|
|
_avg?: PhoneNumberAvgAggregateInputType
|
|
_sum?: PhoneNumberSumAggregateInputType
|
|
_min?: PhoneNumberMinAggregateInputType
|
|
_max?: PhoneNumberMaxAggregateInputType
|
|
}
|
|
|
|
export type PhoneNumberGroupByOutputType = {
|
|
id: number
|
|
internetContractDetailsId: number
|
|
phoneNumber: string
|
|
isMain: boolean
|
|
sipUsername: string | null
|
|
sipPasswordEncrypted: string | null
|
|
sipServer: string | null
|
|
_count: PhoneNumberCountAggregateOutputType | null
|
|
_avg: PhoneNumberAvgAggregateOutputType | null
|
|
_sum: PhoneNumberSumAggregateOutputType | null
|
|
_min: PhoneNumberMinAggregateOutputType | null
|
|
_max: PhoneNumberMaxAggregateOutputType | null
|
|
}
|
|
|
|
type GetPhoneNumberGroupByPayload<T extends PhoneNumberGroupByArgs> = Prisma.PrismaPromise<
|
|
Array<
|
|
PickEnumerable<PhoneNumberGroupByOutputType, T['by']> &
|
|
{
|
|
[P in ((keyof T) & (keyof PhoneNumberGroupByOutputType))]: P extends '_count'
|
|
? T[P] extends boolean
|
|
? number
|
|
: GetScalarType<T[P], PhoneNumberGroupByOutputType[P]>
|
|
: GetScalarType<T[P], PhoneNumberGroupByOutputType[P]>
|
|
}
|
|
>
|
|
>
|
|
|
|
|
|
export type PhoneNumberSelect<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
|
|
id?: boolean
|
|
internetContractDetailsId?: boolean
|
|
phoneNumber?: boolean
|
|
isMain?: boolean
|
|
sipUsername?: boolean
|
|
sipPasswordEncrypted?: boolean
|
|
sipServer?: boolean
|
|
internetDetails?: boolean | InternetContractDetailsDefaultArgs<ExtArgs>
|
|
}, ExtArgs["result"]["phoneNumber"]>
|
|
|
|
|
|
export type PhoneNumberSelectScalar = {
|
|
id?: boolean
|
|
internetContractDetailsId?: boolean
|
|
phoneNumber?: boolean
|
|
isMain?: boolean
|
|
sipUsername?: boolean
|
|
sipPasswordEncrypted?: boolean
|
|
sipServer?: boolean
|
|
}
|
|
|
|
export type PhoneNumberInclude<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
internetDetails?: boolean | InternetContractDetailsDefaultArgs<ExtArgs>
|
|
}
|
|
|
|
export type $PhoneNumberPayload<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
name: "PhoneNumber"
|
|
objects: {
|
|
internetDetails: Prisma.$InternetContractDetailsPayload<ExtArgs>
|
|
}
|
|
scalars: $Extensions.GetPayloadResult<{
|
|
id: number
|
|
internetContractDetailsId: number
|
|
phoneNumber: string
|
|
isMain: boolean
|
|
sipUsername: string | null
|
|
sipPasswordEncrypted: string | null
|
|
sipServer: string | null
|
|
}, ExtArgs["result"]["phoneNumber"]>
|
|
composites: {}
|
|
}
|
|
|
|
type PhoneNumberGetPayload<S extends boolean | null | undefined | PhoneNumberDefaultArgs> = $Result.GetResult<Prisma.$PhoneNumberPayload, S>
|
|
|
|
type PhoneNumberCountArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> =
|
|
Omit<PhoneNumberFindManyArgs, 'select' | 'include' | 'distinct'> & {
|
|
select?: PhoneNumberCountAggregateInputType | true
|
|
}
|
|
|
|
export interface PhoneNumberDelegate<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> {
|
|
[K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['PhoneNumber'], meta: { name: 'PhoneNumber' } }
|
|
/**
|
|
* Find zero or one PhoneNumber that matches the filter.
|
|
* @param {PhoneNumberFindUniqueArgs} args - Arguments to find a PhoneNumber
|
|
* @example
|
|
* // Get one PhoneNumber
|
|
* const phoneNumber = await prisma.phoneNumber.findUnique({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findUnique<T extends PhoneNumberFindUniqueArgs>(args: SelectSubset<T, PhoneNumberFindUniqueArgs<ExtArgs>>): Prisma__PhoneNumberClient<$Result.GetResult<Prisma.$PhoneNumberPayload<ExtArgs>, T, "findUnique"> | null, null, ExtArgs>
|
|
|
|
/**
|
|
* Find one PhoneNumber that matches the filter or throw an error with `error.code='P2025'`
|
|
* if no matches were found.
|
|
* @param {PhoneNumberFindUniqueOrThrowArgs} args - Arguments to find a PhoneNumber
|
|
* @example
|
|
* // Get one PhoneNumber
|
|
* const phoneNumber = await prisma.phoneNumber.findUniqueOrThrow({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findUniqueOrThrow<T extends PhoneNumberFindUniqueOrThrowArgs>(args: SelectSubset<T, PhoneNumberFindUniqueOrThrowArgs<ExtArgs>>): Prisma__PhoneNumberClient<$Result.GetResult<Prisma.$PhoneNumberPayload<ExtArgs>, T, "findUniqueOrThrow">, never, ExtArgs>
|
|
|
|
/**
|
|
* Find the first PhoneNumber that matches the filter.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {PhoneNumberFindFirstArgs} args - Arguments to find a PhoneNumber
|
|
* @example
|
|
* // Get one PhoneNumber
|
|
* const phoneNumber = await prisma.phoneNumber.findFirst({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findFirst<T extends PhoneNumberFindFirstArgs>(args?: SelectSubset<T, PhoneNumberFindFirstArgs<ExtArgs>>): Prisma__PhoneNumberClient<$Result.GetResult<Prisma.$PhoneNumberPayload<ExtArgs>, T, "findFirst"> | null, null, ExtArgs>
|
|
|
|
/**
|
|
* Find the first PhoneNumber that matches the filter or
|
|
* throw `PrismaKnownClientError` with `P2025` code if no matches were found.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {PhoneNumberFindFirstOrThrowArgs} args - Arguments to find a PhoneNumber
|
|
* @example
|
|
* // Get one PhoneNumber
|
|
* const phoneNumber = await prisma.phoneNumber.findFirstOrThrow({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findFirstOrThrow<T extends PhoneNumberFindFirstOrThrowArgs>(args?: SelectSubset<T, PhoneNumberFindFirstOrThrowArgs<ExtArgs>>): Prisma__PhoneNumberClient<$Result.GetResult<Prisma.$PhoneNumberPayload<ExtArgs>, T, "findFirstOrThrow">, never, ExtArgs>
|
|
|
|
/**
|
|
* Find zero or more PhoneNumbers that matches the filter.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {PhoneNumberFindManyArgs} args - Arguments to filter and select certain fields only.
|
|
* @example
|
|
* // Get all PhoneNumbers
|
|
* const phoneNumbers = await prisma.phoneNumber.findMany()
|
|
*
|
|
* // Get first 10 PhoneNumbers
|
|
* const phoneNumbers = await prisma.phoneNumber.findMany({ take: 10 })
|
|
*
|
|
* // Only select the `id`
|
|
* const phoneNumberWithIdOnly = await prisma.phoneNumber.findMany({ select: { id: true } })
|
|
*
|
|
*/
|
|
findMany<T extends PhoneNumberFindManyArgs>(args?: SelectSubset<T, PhoneNumberFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$PhoneNumberPayload<ExtArgs>, T, "findMany">>
|
|
|
|
/**
|
|
* Create a PhoneNumber.
|
|
* @param {PhoneNumberCreateArgs} args - Arguments to create a PhoneNumber.
|
|
* @example
|
|
* // Create one PhoneNumber
|
|
* const PhoneNumber = await prisma.phoneNumber.create({
|
|
* data: {
|
|
* // ... data to create a PhoneNumber
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
create<T extends PhoneNumberCreateArgs>(args: SelectSubset<T, PhoneNumberCreateArgs<ExtArgs>>): Prisma__PhoneNumberClient<$Result.GetResult<Prisma.$PhoneNumberPayload<ExtArgs>, T, "create">, never, ExtArgs>
|
|
|
|
/**
|
|
* Create many PhoneNumbers.
|
|
* @param {PhoneNumberCreateManyArgs} args - Arguments to create many PhoneNumbers.
|
|
* @example
|
|
* // Create many PhoneNumbers
|
|
* const phoneNumber = await prisma.phoneNumber.createMany({
|
|
* data: [
|
|
* // ... provide data here
|
|
* ]
|
|
* })
|
|
*
|
|
*/
|
|
createMany<T extends PhoneNumberCreateManyArgs>(args?: SelectSubset<T, PhoneNumberCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
|
|
|
|
/**
|
|
* Delete a PhoneNumber.
|
|
* @param {PhoneNumberDeleteArgs} args - Arguments to delete one PhoneNumber.
|
|
* @example
|
|
* // Delete one PhoneNumber
|
|
* const PhoneNumber = await prisma.phoneNumber.delete({
|
|
* where: {
|
|
* // ... filter to delete one PhoneNumber
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
delete<T extends PhoneNumberDeleteArgs>(args: SelectSubset<T, PhoneNumberDeleteArgs<ExtArgs>>): Prisma__PhoneNumberClient<$Result.GetResult<Prisma.$PhoneNumberPayload<ExtArgs>, T, "delete">, never, ExtArgs>
|
|
|
|
/**
|
|
* Update one PhoneNumber.
|
|
* @param {PhoneNumberUpdateArgs} args - Arguments to update one PhoneNumber.
|
|
* @example
|
|
* // Update one PhoneNumber
|
|
* const phoneNumber = await prisma.phoneNumber.update({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* },
|
|
* data: {
|
|
* // ... provide data here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
update<T extends PhoneNumberUpdateArgs>(args: SelectSubset<T, PhoneNumberUpdateArgs<ExtArgs>>): Prisma__PhoneNumberClient<$Result.GetResult<Prisma.$PhoneNumberPayload<ExtArgs>, T, "update">, never, ExtArgs>
|
|
|
|
/**
|
|
* Delete zero or more PhoneNumbers.
|
|
* @param {PhoneNumberDeleteManyArgs} args - Arguments to filter PhoneNumbers to delete.
|
|
* @example
|
|
* // Delete a few PhoneNumbers
|
|
* const { count } = await prisma.phoneNumber.deleteMany({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
deleteMany<T extends PhoneNumberDeleteManyArgs>(args?: SelectSubset<T, PhoneNumberDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
|
|
|
|
/**
|
|
* Update zero or more PhoneNumbers.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {PhoneNumberUpdateManyArgs} args - Arguments to update one or more rows.
|
|
* @example
|
|
* // Update many PhoneNumbers
|
|
* const phoneNumber = await prisma.phoneNumber.updateMany({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* },
|
|
* data: {
|
|
* // ... provide data here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
updateMany<T extends PhoneNumberUpdateManyArgs>(args: SelectSubset<T, PhoneNumberUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
|
|
|
|
/**
|
|
* Create or update one PhoneNumber.
|
|
* @param {PhoneNumberUpsertArgs} args - Arguments to update or create a PhoneNumber.
|
|
* @example
|
|
* // Update or create a PhoneNumber
|
|
* const phoneNumber = await prisma.phoneNumber.upsert({
|
|
* create: {
|
|
* // ... data to create a PhoneNumber
|
|
* },
|
|
* update: {
|
|
* // ... in case it already exists, update
|
|
* },
|
|
* where: {
|
|
* // ... the filter for the PhoneNumber we want to update
|
|
* }
|
|
* })
|
|
*/
|
|
upsert<T extends PhoneNumberUpsertArgs>(args: SelectSubset<T, PhoneNumberUpsertArgs<ExtArgs>>): Prisma__PhoneNumberClient<$Result.GetResult<Prisma.$PhoneNumberPayload<ExtArgs>, T, "upsert">, never, ExtArgs>
|
|
|
|
|
|
/**
|
|
* Count the number of PhoneNumbers.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {PhoneNumberCountArgs} args - Arguments to filter PhoneNumbers to count.
|
|
* @example
|
|
* // Count the number of PhoneNumbers
|
|
* const count = await prisma.phoneNumber.count({
|
|
* where: {
|
|
* // ... the filter for the PhoneNumbers we want to count
|
|
* }
|
|
* })
|
|
**/
|
|
count<T extends PhoneNumberCountArgs>(
|
|
args?: Subset<T, PhoneNumberCountArgs>,
|
|
): Prisma.PrismaPromise<
|
|
T extends $Utils.Record<'select', any>
|
|
? T['select'] extends true
|
|
? number
|
|
: GetScalarType<T['select'], PhoneNumberCountAggregateOutputType>
|
|
: number
|
|
>
|
|
|
|
/**
|
|
* Allows you to perform aggregations operations on a PhoneNumber.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {PhoneNumberAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
|
|
* @example
|
|
* // Ordered by age ascending
|
|
* // Where email contains prisma.io
|
|
* // Limited to the 10 users
|
|
* const aggregations = await prisma.user.aggregate({
|
|
* _avg: {
|
|
* age: true,
|
|
* },
|
|
* where: {
|
|
* email: {
|
|
* contains: "prisma.io",
|
|
* },
|
|
* },
|
|
* orderBy: {
|
|
* age: "asc",
|
|
* },
|
|
* take: 10,
|
|
* })
|
|
**/
|
|
aggregate<T extends PhoneNumberAggregateArgs>(args: Subset<T, PhoneNumberAggregateArgs>): Prisma.PrismaPromise<GetPhoneNumberAggregateType<T>>
|
|
|
|
/**
|
|
* Group by PhoneNumber.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {PhoneNumberGroupByArgs} args - Group by arguments.
|
|
* @example
|
|
* // Group by city, order by createdAt, get count
|
|
* const result = await prisma.user.groupBy({
|
|
* by: ['city', 'createdAt'],
|
|
* orderBy: {
|
|
* createdAt: true
|
|
* },
|
|
* _count: {
|
|
* _all: true
|
|
* },
|
|
* })
|
|
*
|
|
**/
|
|
groupBy<
|
|
T extends PhoneNumberGroupByArgs,
|
|
HasSelectOrTake extends Or<
|
|
Extends<'skip', Keys<T>>,
|
|
Extends<'take', Keys<T>>
|
|
>,
|
|
OrderByArg extends True extends HasSelectOrTake
|
|
? { orderBy: PhoneNumberGroupByArgs['orderBy'] }
|
|
: { orderBy?: PhoneNumberGroupByArgs['orderBy'] },
|
|
OrderFields extends ExcludeUnderscoreKeys<Keys<MaybeTupleToUnion<T['orderBy']>>>,
|
|
ByFields extends MaybeTupleToUnion<T['by']>,
|
|
ByValid extends Has<ByFields, OrderFields>,
|
|
HavingFields extends GetHavingFields<T['having']>,
|
|
HavingValid extends Has<ByFields, HavingFields>,
|
|
ByEmpty extends T['by'] extends never[] ? True : False,
|
|
InputErrors extends ByEmpty extends True
|
|
? `Error: "by" must not be empty.`
|
|
: HavingValid extends False
|
|
? {
|
|
[P in HavingFields]: P extends ByFields
|
|
? never
|
|
: P extends string
|
|
? `Error: Field "${P}" used in "having" needs to be provided in "by".`
|
|
: [
|
|
Error,
|
|
'Field ',
|
|
P,
|
|
` in "having" needs to be provided in "by"`,
|
|
]
|
|
}[HavingFields]
|
|
: 'take' extends Keys<T>
|
|
? 'orderBy' extends Keys<T>
|
|
? ByValid extends True
|
|
? {}
|
|
: {
|
|
[P in OrderFields]: P extends ByFields
|
|
? never
|
|
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
|
|
}[OrderFields]
|
|
: 'Error: If you provide "take", you also need to provide "orderBy"'
|
|
: 'skip' extends Keys<T>
|
|
? 'orderBy' extends Keys<T>
|
|
? ByValid extends True
|
|
? {}
|
|
: {
|
|
[P in OrderFields]: P extends ByFields
|
|
? never
|
|
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
|
|
}[OrderFields]
|
|
: 'Error: If you provide "skip", you also need to provide "orderBy"'
|
|
: ByValid extends True
|
|
? {}
|
|
: {
|
|
[P in OrderFields]: P extends ByFields
|
|
? never
|
|
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
|
|
}[OrderFields]
|
|
>(args: SubsetIntersection<T, PhoneNumberGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetPhoneNumberGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
|
|
/**
|
|
* Fields of the PhoneNumber model
|
|
*/
|
|
readonly fields: PhoneNumberFieldRefs;
|
|
}
|
|
|
|
/**
|
|
* The delegate class that acts as a "Promise-like" for PhoneNumber.
|
|
* Why is this prefixed with `Prisma__`?
|
|
* Because we want to prevent naming conflicts as mentioned in
|
|
* https://github.com/prisma/prisma-client-js/issues/707
|
|
*/
|
|
export interface Prisma__PhoneNumberClient<T, Null = never, ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> extends Prisma.PrismaPromise<T> {
|
|
readonly [Symbol.toStringTag]: "PrismaPromise"
|
|
internetDetails<T extends InternetContractDetailsDefaultArgs<ExtArgs> = {}>(args?: Subset<T, InternetContractDetailsDefaultArgs<ExtArgs>>): Prisma__InternetContractDetailsClient<$Result.GetResult<Prisma.$InternetContractDetailsPayload<ExtArgs>, T, "findUniqueOrThrow"> | Null, Null, ExtArgs>
|
|
/**
|
|
* Attaches callbacks for the resolution and/or rejection of the Promise.
|
|
* @param onfulfilled The callback to execute when the Promise is resolved.
|
|
* @param onrejected The callback to execute when the Promise is rejected.
|
|
* @returns A Promise for the completion of which ever callback is executed.
|
|
*/
|
|
then<TResult1 = T, TResult2 = never>(onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined | null): $Utils.JsPromise<TResult1 | TResult2>
|
|
/**
|
|
* Attaches a callback for only the rejection of the Promise.
|
|
* @param onrejected The callback to execute when the Promise is rejected.
|
|
* @returns A Promise for the completion of the callback.
|
|
*/
|
|
catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): $Utils.JsPromise<T | TResult>
|
|
/**
|
|
* Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
|
|
* resolved value cannot be modified from the callback.
|
|
* @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
|
|
* @returns A Promise for the completion of the callback.
|
|
*/
|
|
finally(onfinally?: (() => void) | undefined | null): $Utils.JsPromise<T>
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
* Fields of the PhoneNumber model
|
|
*/
|
|
interface PhoneNumberFieldRefs {
|
|
readonly id: FieldRef<"PhoneNumber", 'Int'>
|
|
readonly internetContractDetailsId: FieldRef<"PhoneNumber", 'Int'>
|
|
readonly phoneNumber: FieldRef<"PhoneNumber", 'String'>
|
|
readonly isMain: FieldRef<"PhoneNumber", 'Boolean'>
|
|
readonly sipUsername: FieldRef<"PhoneNumber", 'String'>
|
|
readonly sipPasswordEncrypted: FieldRef<"PhoneNumber", 'String'>
|
|
readonly sipServer: FieldRef<"PhoneNumber", 'String'>
|
|
}
|
|
|
|
|
|
// Custom InputTypes
|
|
/**
|
|
* PhoneNumber findUnique
|
|
*/
|
|
export type PhoneNumberFindUniqueArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the PhoneNumber
|
|
*/
|
|
select?: PhoneNumberSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: PhoneNumberInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which PhoneNumber to fetch.
|
|
*/
|
|
where: PhoneNumberWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* PhoneNumber findUniqueOrThrow
|
|
*/
|
|
export type PhoneNumberFindUniqueOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the PhoneNumber
|
|
*/
|
|
select?: PhoneNumberSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: PhoneNumberInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which PhoneNumber to fetch.
|
|
*/
|
|
where: PhoneNumberWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* PhoneNumber findFirst
|
|
*/
|
|
export type PhoneNumberFindFirstArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the PhoneNumber
|
|
*/
|
|
select?: PhoneNumberSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: PhoneNumberInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which PhoneNumber to fetch.
|
|
*/
|
|
where?: PhoneNumberWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of PhoneNumbers to fetch.
|
|
*/
|
|
orderBy?: PhoneNumberOrderByWithRelationInput | PhoneNumberOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for searching for PhoneNumbers.
|
|
*/
|
|
cursor?: PhoneNumberWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` PhoneNumbers from the position of the cursor.
|
|
*/
|
|
take?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Skip the first `n` PhoneNumbers.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
*
|
|
* Filter by unique combinations of PhoneNumbers.
|
|
*/
|
|
distinct?: PhoneNumberScalarFieldEnum | PhoneNumberScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* PhoneNumber findFirstOrThrow
|
|
*/
|
|
export type PhoneNumberFindFirstOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the PhoneNumber
|
|
*/
|
|
select?: PhoneNumberSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: PhoneNumberInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which PhoneNumber to fetch.
|
|
*/
|
|
where?: PhoneNumberWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of PhoneNumbers to fetch.
|
|
*/
|
|
orderBy?: PhoneNumberOrderByWithRelationInput | PhoneNumberOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for searching for PhoneNumbers.
|
|
*/
|
|
cursor?: PhoneNumberWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` PhoneNumbers from the position of the cursor.
|
|
*/
|
|
take?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Skip the first `n` PhoneNumbers.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
*
|
|
* Filter by unique combinations of PhoneNumbers.
|
|
*/
|
|
distinct?: PhoneNumberScalarFieldEnum | PhoneNumberScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* PhoneNumber findMany
|
|
*/
|
|
export type PhoneNumberFindManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the PhoneNumber
|
|
*/
|
|
select?: PhoneNumberSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: PhoneNumberInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which PhoneNumbers to fetch.
|
|
*/
|
|
where?: PhoneNumberWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of PhoneNumbers to fetch.
|
|
*/
|
|
orderBy?: PhoneNumberOrderByWithRelationInput | PhoneNumberOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for listing PhoneNumbers.
|
|
*/
|
|
cursor?: PhoneNumberWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` PhoneNumbers from the position of the cursor.
|
|
*/
|
|
take?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Skip the first `n` PhoneNumbers.
|
|
*/
|
|
skip?: number
|
|
distinct?: PhoneNumberScalarFieldEnum | PhoneNumberScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* PhoneNumber create
|
|
*/
|
|
export type PhoneNumberCreateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the PhoneNumber
|
|
*/
|
|
select?: PhoneNumberSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: PhoneNumberInclude<ExtArgs> | null
|
|
/**
|
|
* The data needed to create a PhoneNumber.
|
|
*/
|
|
data: XOR<PhoneNumberCreateInput, PhoneNumberUncheckedCreateInput>
|
|
}
|
|
|
|
/**
|
|
* PhoneNumber createMany
|
|
*/
|
|
export type PhoneNumberCreateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* The data used to create many PhoneNumbers.
|
|
*/
|
|
data: PhoneNumberCreateManyInput | PhoneNumberCreateManyInput[]
|
|
skipDuplicates?: boolean
|
|
}
|
|
|
|
/**
|
|
* PhoneNumber update
|
|
*/
|
|
export type PhoneNumberUpdateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the PhoneNumber
|
|
*/
|
|
select?: PhoneNumberSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: PhoneNumberInclude<ExtArgs> | null
|
|
/**
|
|
* The data needed to update a PhoneNumber.
|
|
*/
|
|
data: XOR<PhoneNumberUpdateInput, PhoneNumberUncheckedUpdateInput>
|
|
/**
|
|
* Choose, which PhoneNumber to update.
|
|
*/
|
|
where: PhoneNumberWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* PhoneNumber updateMany
|
|
*/
|
|
export type PhoneNumberUpdateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* The data used to update PhoneNumbers.
|
|
*/
|
|
data: XOR<PhoneNumberUpdateManyMutationInput, PhoneNumberUncheckedUpdateManyInput>
|
|
/**
|
|
* Filter which PhoneNumbers to update
|
|
*/
|
|
where?: PhoneNumberWhereInput
|
|
}
|
|
|
|
/**
|
|
* PhoneNumber upsert
|
|
*/
|
|
export type PhoneNumberUpsertArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the PhoneNumber
|
|
*/
|
|
select?: PhoneNumberSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: PhoneNumberInclude<ExtArgs> | null
|
|
/**
|
|
* The filter to search for the PhoneNumber to update in case it exists.
|
|
*/
|
|
where: PhoneNumberWhereUniqueInput
|
|
/**
|
|
* In case the PhoneNumber found by the `where` argument doesn't exist, create a new PhoneNumber with this data.
|
|
*/
|
|
create: XOR<PhoneNumberCreateInput, PhoneNumberUncheckedCreateInput>
|
|
/**
|
|
* In case the PhoneNumber was found with the provided `where` argument, update it with this data.
|
|
*/
|
|
update: XOR<PhoneNumberUpdateInput, PhoneNumberUncheckedUpdateInput>
|
|
}
|
|
|
|
/**
|
|
* PhoneNumber delete
|
|
*/
|
|
export type PhoneNumberDeleteArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the PhoneNumber
|
|
*/
|
|
select?: PhoneNumberSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: PhoneNumberInclude<ExtArgs> | null
|
|
/**
|
|
* Filter which PhoneNumber to delete.
|
|
*/
|
|
where: PhoneNumberWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* PhoneNumber deleteMany
|
|
*/
|
|
export type PhoneNumberDeleteManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Filter which PhoneNumbers to delete
|
|
*/
|
|
where?: PhoneNumberWhereInput
|
|
}
|
|
|
|
/**
|
|
* PhoneNumber without action
|
|
*/
|
|
export type PhoneNumberDefaultArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the PhoneNumber
|
|
*/
|
|
select?: PhoneNumberSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: PhoneNumberInclude<ExtArgs> | null
|
|
}
|
|
|
|
|
|
/**
|
|
* Model MobileContractDetails
|
|
*/
|
|
|
|
export type AggregateMobileContractDetails = {
|
|
_count: MobileContractDetailsCountAggregateOutputType | null
|
|
_avg: MobileContractDetailsAvgAggregateOutputType | null
|
|
_sum: MobileContractDetailsSumAggregateOutputType | null
|
|
_min: MobileContractDetailsMinAggregateOutputType | null
|
|
_max: MobileContractDetailsMaxAggregateOutputType | null
|
|
}
|
|
|
|
export type MobileContractDetailsAvgAggregateOutputType = {
|
|
id: number | null
|
|
contractId: number | null
|
|
dataVolume: number | null
|
|
includedMinutes: number | null
|
|
includedSMS: number | null
|
|
}
|
|
|
|
export type MobileContractDetailsSumAggregateOutputType = {
|
|
id: number | null
|
|
contractId: number | null
|
|
dataVolume: number | null
|
|
includedMinutes: number | null
|
|
includedSMS: number | null
|
|
}
|
|
|
|
export type MobileContractDetailsMinAggregateOutputType = {
|
|
id: number | null
|
|
contractId: number | null
|
|
requiresMultisim: boolean | null
|
|
dataVolume: number | null
|
|
includedMinutes: number | null
|
|
includedSMS: number | null
|
|
deviceModel: string | null
|
|
deviceImei: string | null
|
|
phoneNumber: string | null
|
|
simCardNumber: string | null
|
|
}
|
|
|
|
export type MobileContractDetailsMaxAggregateOutputType = {
|
|
id: number | null
|
|
contractId: number | null
|
|
requiresMultisim: boolean | null
|
|
dataVolume: number | null
|
|
includedMinutes: number | null
|
|
includedSMS: number | null
|
|
deviceModel: string | null
|
|
deviceImei: string | null
|
|
phoneNumber: string | null
|
|
simCardNumber: string | null
|
|
}
|
|
|
|
export type MobileContractDetailsCountAggregateOutputType = {
|
|
id: number
|
|
contractId: number
|
|
requiresMultisim: number
|
|
dataVolume: number
|
|
includedMinutes: number
|
|
includedSMS: number
|
|
deviceModel: number
|
|
deviceImei: number
|
|
phoneNumber: number
|
|
simCardNumber: number
|
|
_all: number
|
|
}
|
|
|
|
|
|
export type MobileContractDetailsAvgAggregateInputType = {
|
|
id?: true
|
|
contractId?: true
|
|
dataVolume?: true
|
|
includedMinutes?: true
|
|
includedSMS?: true
|
|
}
|
|
|
|
export type MobileContractDetailsSumAggregateInputType = {
|
|
id?: true
|
|
contractId?: true
|
|
dataVolume?: true
|
|
includedMinutes?: true
|
|
includedSMS?: true
|
|
}
|
|
|
|
export type MobileContractDetailsMinAggregateInputType = {
|
|
id?: true
|
|
contractId?: true
|
|
requiresMultisim?: true
|
|
dataVolume?: true
|
|
includedMinutes?: true
|
|
includedSMS?: true
|
|
deviceModel?: true
|
|
deviceImei?: true
|
|
phoneNumber?: true
|
|
simCardNumber?: true
|
|
}
|
|
|
|
export type MobileContractDetailsMaxAggregateInputType = {
|
|
id?: true
|
|
contractId?: true
|
|
requiresMultisim?: true
|
|
dataVolume?: true
|
|
includedMinutes?: true
|
|
includedSMS?: true
|
|
deviceModel?: true
|
|
deviceImei?: true
|
|
phoneNumber?: true
|
|
simCardNumber?: true
|
|
}
|
|
|
|
export type MobileContractDetailsCountAggregateInputType = {
|
|
id?: true
|
|
contractId?: true
|
|
requiresMultisim?: true
|
|
dataVolume?: true
|
|
includedMinutes?: true
|
|
includedSMS?: true
|
|
deviceModel?: true
|
|
deviceImei?: true
|
|
phoneNumber?: true
|
|
simCardNumber?: true
|
|
_all?: true
|
|
}
|
|
|
|
export type MobileContractDetailsAggregateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Filter which MobileContractDetails to aggregate.
|
|
*/
|
|
where?: MobileContractDetailsWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of MobileContractDetails to fetch.
|
|
*/
|
|
orderBy?: MobileContractDetailsOrderByWithRelationInput | MobileContractDetailsOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the start position
|
|
*/
|
|
cursor?: MobileContractDetailsWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` MobileContractDetails from the position of the cursor.
|
|
*/
|
|
take?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Skip the first `n` MobileContractDetails.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Count returned MobileContractDetails
|
|
**/
|
|
_count?: true | MobileContractDetailsCountAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to average
|
|
**/
|
|
_avg?: MobileContractDetailsAvgAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to sum
|
|
**/
|
|
_sum?: MobileContractDetailsSumAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to find the minimum value
|
|
**/
|
|
_min?: MobileContractDetailsMinAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to find the maximum value
|
|
**/
|
|
_max?: MobileContractDetailsMaxAggregateInputType
|
|
}
|
|
|
|
export type GetMobileContractDetailsAggregateType<T extends MobileContractDetailsAggregateArgs> = {
|
|
[P in keyof T & keyof AggregateMobileContractDetails]: P extends '_count' | 'count'
|
|
? T[P] extends true
|
|
? number
|
|
: GetScalarType<T[P], AggregateMobileContractDetails[P]>
|
|
: GetScalarType<T[P], AggregateMobileContractDetails[P]>
|
|
}
|
|
|
|
|
|
|
|
|
|
export type MobileContractDetailsGroupByArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
where?: MobileContractDetailsWhereInput
|
|
orderBy?: MobileContractDetailsOrderByWithAggregationInput | MobileContractDetailsOrderByWithAggregationInput[]
|
|
by: MobileContractDetailsScalarFieldEnum[] | MobileContractDetailsScalarFieldEnum
|
|
having?: MobileContractDetailsScalarWhereWithAggregatesInput
|
|
take?: number
|
|
skip?: number
|
|
_count?: MobileContractDetailsCountAggregateInputType | true
|
|
_avg?: MobileContractDetailsAvgAggregateInputType
|
|
_sum?: MobileContractDetailsSumAggregateInputType
|
|
_min?: MobileContractDetailsMinAggregateInputType
|
|
_max?: MobileContractDetailsMaxAggregateInputType
|
|
}
|
|
|
|
export type MobileContractDetailsGroupByOutputType = {
|
|
id: number
|
|
contractId: number
|
|
requiresMultisim: boolean
|
|
dataVolume: number | null
|
|
includedMinutes: number | null
|
|
includedSMS: number | null
|
|
deviceModel: string | null
|
|
deviceImei: string | null
|
|
phoneNumber: string | null
|
|
simCardNumber: string | null
|
|
_count: MobileContractDetailsCountAggregateOutputType | null
|
|
_avg: MobileContractDetailsAvgAggregateOutputType | null
|
|
_sum: MobileContractDetailsSumAggregateOutputType | null
|
|
_min: MobileContractDetailsMinAggregateOutputType | null
|
|
_max: MobileContractDetailsMaxAggregateOutputType | null
|
|
}
|
|
|
|
type GetMobileContractDetailsGroupByPayload<T extends MobileContractDetailsGroupByArgs> = Prisma.PrismaPromise<
|
|
Array<
|
|
PickEnumerable<MobileContractDetailsGroupByOutputType, T['by']> &
|
|
{
|
|
[P in ((keyof T) & (keyof MobileContractDetailsGroupByOutputType))]: P extends '_count'
|
|
? T[P] extends boolean
|
|
? number
|
|
: GetScalarType<T[P], MobileContractDetailsGroupByOutputType[P]>
|
|
: GetScalarType<T[P], MobileContractDetailsGroupByOutputType[P]>
|
|
}
|
|
>
|
|
>
|
|
|
|
|
|
export type MobileContractDetailsSelect<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
|
|
id?: boolean
|
|
contractId?: boolean
|
|
requiresMultisim?: boolean
|
|
dataVolume?: boolean
|
|
includedMinutes?: boolean
|
|
includedSMS?: boolean
|
|
deviceModel?: boolean
|
|
deviceImei?: boolean
|
|
phoneNumber?: boolean
|
|
simCardNumber?: boolean
|
|
contract?: boolean | ContractDefaultArgs<ExtArgs>
|
|
simCards?: boolean | MobileContractDetails$simCardsArgs<ExtArgs>
|
|
_count?: boolean | MobileContractDetailsCountOutputTypeDefaultArgs<ExtArgs>
|
|
}, ExtArgs["result"]["mobileContractDetails"]>
|
|
|
|
|
|
export type MobileContractDetailsSelectScalar = {
|
|
id?: boolean
|
|
contractId?: boolean
|
|
requiresMultisim?: boolean
|
|
dataVolume?: boolean
|
|
includedMinutes?: boolean
|
|
includedSMS?: boolean
|
|
deviceModel?: boolean
|
|
deviceImei?: boolean
|
|
phoneNumber?: boolean
|
|
simCardNumber?: boolean
|
|
}
|
|
|
|
export type MobileContractDetailsInclude<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
contract?: boolean | ContractDefaultArgs<ExtArgs>
|
|
simCards?: boolean | MobileContractDetails$simCardsArgs<ExtArgs>
|
|
_count?: boolean | MobileContractDetailsCountOutputTypeDefaultArgs<ExtArgs>
|
|
}
|
|
|
|
export type $MobileContractDetailsPayload<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
name: "MobileContractDetails"
|
|
objects: {
|
|
contract: Prisma.$ContractPayload<ExtArgs>
|
|
simCards: Prisma.$SimCardPayload<ExtArgs>[]
|
|
}
|
|
scalars: $Extensions.GetPayloadResult<{
|
|
id: number
|
|
contractId: number
|
|
requiresMultisim: boolean
|
|
dataVolume: number | null
|
|
includedMinutes: number | null
|
|
includedSMS: number | null
|
|
deviceModel: string | null
|
|
deviceImei: string | null
|
|
phoneNumber: string | null
|
|
simCardNumber: string | null
|
|
}, ExtArgs["result"]["mobileContractDetails"]>
|
|
composites: {}
|
|
}
|
|
|
|
type MobileContractDetailsGetPayload<S extends boolean | null | undefined | MobileContractDetailsDefaultArgs> = $Result.GetResult<Prisma.$MobileContractDetailsPayload, S>
|
|
|
|
type MobileContractDetailsCountArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> =
|
|
Omit<MobileContractDetailsFindManyArgs, 'select' | 'include' | 'distinct'> & {
|
|
select?: MobileContractDetailsCountAggregateInputType | true
|
|
}
|
|
|
|
export interface MobileContractDetailsDelegate<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> {
|
|
[K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['MobileContractDetails'], meta: { name: 'MobileContractDetails' } }
|
|
/**
|
|
* Find zero or one MobileContractDetails that matches the filter.
|
|
* @param {MobileContractDetailsFindUniqueArgs} args - Arguments to find a MobileContractDetails
|
|
* @example
|
|
* // Get one MobileContractDetails
|
|
* const mobileContractDetails = await prisma.mobileContractDetails.findUnique({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findUnique<T extends MobileContractDetailsFindUniqueArgs>(args: SelectSubset<T, MobileContractDetailsFindUniqueArgs<ExtArgs>>): Prisma__MobileContractDetailsClient<$Result.GetResult<Prisma.$MobileContractDetailsPayload<ExtArgs>, T, "findUnique"> | null, null, ExtArgs>
|
|
|
|
/**
|
|
* Find one MobileContractDetails that matches the filter or throw an error with `error.code='P2025'`
|
|
* if no matches were found.
|
|
* @param {MobileContractDetailsFindUniqueOrThrowArgs} args - Arguments to find a MobileContractDetails
|
|
* @example
|
|
* // Get one MobileContractDetails
|
|
* const mobileContractDetails = await prisma.mobileContractDetails.findUniqueOrThrow({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findUniqueOrThrow<T extends MobileContractDetailsFindUniqueOrThrowArgs>(args: SelectSubset<T, MobileContractDetailsFindUniqueOrThrowArgs<ExtArgs>>): Prisma__MobileContractDetailsClient<$Result.GetResult<Prisma.$MobileContractDetailsPayload<ExtArgs>, T, "findUniqueOrThrow">, never, ExtArgs>
|
|
|
|
/**
|
|
* Find the first MobileContractDetails that matches the filter.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {MobileContractDetailsFindFirstArgs} args - Arguments to find a MobileContractDetails
|
|
* @example
|
|
* // Get one MobileContractDetails
|
|
* const mobileContractDetails = await prisma.mobileContractDetails.findFirst({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findFirst<T extends MobileContractDetailsFindFirstArgs>(args?: SelectSubset<T, MobileContractDetailsFindFirstArgs<ExtArgs>>): Prisma__MobileContractDetailsClient<$Result.GetResult<Prisma.$MobileContractDetailsPayload<ExtArgs>, T, "findFirst"> | null, null, ExtArgs>
|
|
|
|
/**
|
|
* Find the first MobileContractDetails that matches the filter or
|
|
* throw `PrismaKnownClientError` with `P2025` code if no matches were found.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {MobileContractDetailsFindFirstOrThrowArgs} args - Arguments to find a MobileContractDetails
|
|
* @example
|
|
* // Get one MobileContractDetails
|
|
* const mobileContractDetails = await prisma.mobileContractDetails.findFirstOrThrow({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findFirstOrThrow<T extends MobileContractDetailsFindFirstOrThrowArgs>(args?: SelectSubset<T, MobileContractDetailsFindFirstOrThrowArgs<ExtArgs>>): Prisma__MobileContractDetailsClient<$Result.GetResult<Prisma.$MobileContractDetailsPayload<ExtArgs>, T, "findFirstOrThrow">, never, ExtArgs>
|
|
|
|
/**
|
|
* Find zero or more MobileContractDetails that matches the filter.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {MobileContractDetailsFindManyArgs} args - Arguments to filter and select certain fields only.
|
|
* @example
|
|
* // Get all MobileContractDetails
|
|
* const mobileContractDetails = await prisma.mobileContractDetails.findMany()
|
|
*
|
|
* // Get first 10 MobileContractDetails
|
|
* const mobileContractDetails = await prisma.mobileContractDetails.findMany({ take: 10 })
|
|
*
|
|
* // Only select the `id`
|
|
* const mobileContractDetailsWithIdOnly = await prisma.mobileContractDetails.findMany({ select: { id: true } })
|
|
*
|
|
*/
|
|
findMany<T extends MobileContractDetailsFindManyArgs>(args?: SelectSubset<T, MobileContractDetailsFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$MobileContractDetailsPayload<ExtArgs>, T, "findMany">>
|
|
|
|
/**
|
|
* Create a MobileContractDetails.
|
|
* @param {MobileContractDetailsCreateArgs} args - Arguments to create a MobileContractDetails.
|
|
* @example
|
|
* // Create one MobileContractDetails
|
|
* const MobileContractDetails = await prisma.mobileContractDetails.create({
|
|
* data: {
|
|
* // ... data to create a MobileContractDetails
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
create<T extends MobileContractDetailsCreateArgs>(args: SelectSubset<T, MobileContractDetailsCreateArgs<ExtArgs>>): Prisma__MobileContractDetailsClient<$Result.GetResult<Prisma.$MobileContractDetailsPayload<ExtArgs>, T, "create">, never, ExtArgs>
|
|
|
|
/**
|
|
* Create many MobileContractDetails.
|
|
* @param {MobileContractDetailsCreateManyArgs} args - Arguments to create many MobileContractDetails.
|
|
* @example
|
|
* // Create many MobileContractDetails
|
|
* const mobileContractDetails = await prisma.mobileContractDetails.createMany({
|
|
* data: [
|
|
* // ... provide data here
|
|
* ]
|
|
* })
|
|
*
|
|
*/
|
|
createMany<T extends MobileContractDetailsCreateManyArgs>(args?: SelectSubset<T, MobileContractDetailsCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
|
|
|
|
/**
|
|
* Delete a MobileContractDetails.
|
|
* @param {MobileContractDetailsDeleteArgs} args - Arguments to delete one MobileContractDetails.
|
|
* @example
|
|
* // Delete one MobileContractDetails
|
|
* const MobileContractDetails = await prisma.mobileContractDetails.delete({
|
|
* where: {
|
|
* // ... filter to delete one MobileContractDetails
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
delete<T extends MobileContractDetailsDeleteArgs>(args: SelectSubset<T, MobileContractDetailsDeleteArgs<ExtArgs>>): Prisma__MobileContractDetailsClient<$Result.GetResult<Prisma.$MobileContractDetailsPayload<ExtArgs>, T, "delete">, never, ExtArgs>
|
|
|
|
/**
|
|
* Update one MobileContractDetails.
|
|
* @param {MobileContractDetailsUpdateArgs} args - Arguments to update one MobileContractDetails.
|
|
* @example
|
|
* // Update one MobileContractDetails
|
|
* const mobileContractDetails = await prisma.mobileContractDetails.update({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* },
|
|
* data: {
|
|
* // ... provide data here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
update<T extends MobileContractDetailsUpdateArgs>(args: SelectSubset<T, MobileContractDetailsUpdateArgs<ExtArgs>>): Prisma__MobileContractDetailsClient<$Result.GetResult<Prisma.$MobileContractDetailsPayload<ExtArgs>, T, "update">, never, ExtArgs>
|
|
|
|
/**
|
|
* Delete zero or more MobileContractDetails.
|
|
* @param {MobileContractDetailsDeleteManyArgs} args - Arguments to filter MobileContractDetails to delete.
|
|
* @example
|
|
* // Delete a few MobileContractDetails
|
|
* const { count } = await prisma.mobileContractDetails.deleteMany({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
deleteMany<T extends MobileContractDetailsDeleteManyArgs>(args?: SelectSubset<T, MobileContractDetailsDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
|
|
|
|
/**
|
|
* Update zero or more MobileContractDetails.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {MobileContractDetailsUpdateManyArgs} args - Arguments to update one or more rows.
|
|
* @example
|
|
* // Update many MobileContractDetails
|
|
* const mobileContractDetails = await prisma.mobileContractDetails.updateMany({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* },
|
|
* data: {
|
|
* // ... provide data here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
updateMany<T extends MobileContractDetailsUpdateManyArgs>(args: SelectSubset<T, MobileContractDetailsUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
|
|
|
|
/**
|
|
* Create or update one MobileContractDetails.
|
|
* @param {MobileContractDetailsUpsertArgs} args - Arguments to update or create a MobileContractDetails.
|
|
* @example
|
|
* // Update or create a MobileContractDetails
|
|
* const mobileContractDetails = await prisma.mobileContractDetails.upsert({
|
|
* create: {
|
|
* // ... data to create a MobileContractDetails
|
|
* },
|
|
* update: {
|
|
* // ... in case it already exists, update
|
|
* },
|
|
* where: {
|
|
* // ... the filter for the MobileContractDetails we want to update
|
|
* }
|
|
* })
|
|
*/
|
|
upsert<T extends MobileContractDetailsUpsertArgs>(args: SelectSubset<T, MobileContractDetailsUpsertArgs<ExtArgs>>): Prisma__MobileContractDetailsClient<$Result.GetResult<Prisma.$MobileContractDetailsPayload<ExtArgs>, T, "upsert">, never, ExtArgs>
|
|
|
|
|
|
/**
|
|
* Count the number of MobileContractDetails.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {MobileContractDetailsCountArgs} args - Arguments to filter MobileContractDetails to count.
|
|
* @example
|
|
* // Count the number of MobileContractDetails
|
|
* const count = await prisma.mobileContractDetails.count({
|
|
* where: {
|
|
* // ... the filter for the MobileContractDetails we want to count
|
|
* }
|
|
* })
|
|
**/
|
|
count<T extends MobileContractDetailsCountArgs>(
|
|
args?: Subset<T, MobileContractDetailsCountArgs>,
|
|
): Prisma.PrismaPromise<
|
|
T extends $Utils.Record<'select', any>
|
|
? T['select'] extends true
|
|
? number
|
|
: GetScalarType<T['select'], MobileContractDetailsCountAggregateOutputType>
|
|
: number
|
|
>
|
|
|
|
/**
|
|
* Allows you to perform aggregations operations on a MobileContractDetails.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {MobileContractDetailsAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
|
|
* @example
|
|
* // Ordered by age ascending
|
|
* // Where email contains prisma.io
|
|
* // Limited to the 10 users
|
|
* const aggregations = await prisma.user.aggregate({
|
|
* _avg: {
|
|
* age: true,
|
|
* },
|
|
* where: {
|
|
* email: {
|
|
* contains: "prisma.io",
|
|
* },
|
|
* },
|
|
* orderBy: {
|
|
* age: "asc",
|
|
* },
|
|
* take: 10,
|
|
* })
|
|
**/
|
|
aggregate<T extends MobileContractDetailsAggregateArgs>(args: Subset<T, MobileContractDetailsAggregateArgs>): Prisma.PrismaPromise<GetMobileContractDetailsAggregateType<T>>
|
|
|
|
/**
|
|
* Group by MobileContractDetails.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {MobileContractDetailsGroupByArgs} args - Group by arguments.
|
|
* @example
|
|
* // Group by city, order by createdAt, get count
|
|
* const result = await prisma.user.groupBy({
|
|
* by: ['city', 'createdAt'],
|
|
* orderBy: {
|
|
* createdAt: true
|
|
* },
|
|
* _count: {
|
|
* _all: true
|
|
* },
|
|
* })
|
|
*
|
|
**/
|
|
groupBy<
|
|
T extends MobileContractDetailsGroupByArgs,
|
|
HasSelectOrTake extends Or<
|
|
Extends<'skip', Keys<T>>,
|
|
Extends<'take', Keys<T>>
|
|
>,
|
|
OrderByArg extends True extends HasSelectOrTake
|
|
? { orderBy: MobileContractDetailsGroupByArgs['orderBy'] }
|
|
: { orderBy?: MobileContractDetailsGroupByArgs['orderBy'] },
|
|
OrderFields extends ExcludeUnderscoreKeys<Keys<MaybeTupleToUnion<T['orderBy']>>>,
|
|
ByFields extends MaybeTupleToUnion<T['by']>,
|
|
ByValid extends Has<ByFields, OrderFields>,
|
|
HavingFields extends GetHavingFields<T['having']>,
|
|
HavingValid extends Has<ByFields, HavingFields>,
|
|
ByEmpty extends T['by'] extends never[] ? True : False,
|
|
InputErrors extends ByEmpty extends True
|
|
? `Error: "by" must not be empty.`
|
|
: HavingValid extends False
|
|
? {
|
|
[P in HavingFields]: P extends ByFields
|
|
? never
|
|
: P extends string
|
|
? `Error: Field "${P}" used in "having" needs to be provided in "by".`
|
|
: [
|
|
Error,
|
|
'Field ',
|
|
P,
|
|
` in "having" needs to be provided in "by"`,
|
|
]
|
|
}[HavingFields]
|
|
: 'take' extends Keys<T>
|
|
? 'orderBy' extends Keys<T>
|
|
? ByValid extends True
|
|
? {}
|
|
: {
|
|
[P in OrderFields]: P extends ByFields
|
|
? never
|
|
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
|
|
}[OrderFields]
|
|
: 'Error: If you provide "take", you also need to provide "orderBy"'
|
|
: 'skip' extends Keys<T>
|
|
? 'orderBy' extends Keys<T>
|
|
? ByValid extends True
|
|
? {}
|
|
: {
|
|
[P in OrderFields]: P extends ByFields
|
|
? never
|
|
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
|
|
}[OrderFields]
|
|
: 'Error: If you provide "skip", you also need to provide "orderBy"'
|
|
: ByValid extends True
|
|
? {}
|
|
: {
|
|
[P in OrderFields]: P extends ByFields
|
|
? never
|
|
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
|
|
}[OrderFields]
|
|
>(args: SubsetIntersection<T, MobileContractDetailsGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetMobileContractDetailsGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
|
|
/**
|
|
* Fields of the MobileContractDetails model
|
|
*/
|
|
readonly fields: MobileContractDetailsFieldRefs;
|
|
}
|
|
|
|
/**
|
|
* The delegate class that acts as a "Promise-like" for MobileContractDetails.
|
|
* Why is this prefixed with `Prisma__`?
|
|
* Because we want to prevent naming conflicts as mentioned in
|
|
* https://github.com/prisma/prisma-client-js/issues/707
|
|
*/
|
|
export interface Prisma__MobileContractDetailsClient<T, Null = never, ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> extends Prisma.PrismaPromise<T> {
|
|
readonly [Symbol.toStringTag]: "PrismaPromise"
|
|
contract<T extends ContractDefaultArgs<ExtArgs> = {}>(args?: Subset<T, ContractDefaultArgs<ExtArgs>>): Prisma__ContractClient<$Result.GetResult<Prisma.$ContractPayload<ExtArgs>, T, "findUniqueOrThrow"> | Null, Null, ExtArgs>
|
|
simCards<T extends MobileContractDetails$simCardsArgs<ExtArgs> = {}>(args?: Subset<T, MobileContractDetails$simCardsArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$SimCardPayload<ExtArgs>, T, "findMany"> | Null>
|
|
/**
|
|
* Attaches callbacks for the resolution and/or rejection of the Promise.
|
|
* @param onfulfilled The callback to execute when the Promise is resolved.
|
|
* @param onrejected The callback to execute when the Promise is rejected.
|
|
* @returns A Promise for the completion of which ever callback is executed.
|
|
*/
|
|
then<TResult1 = T, TResult2 = never>(onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined | null): $Utils.JsPromise<TResult1 | TResult2>
|
|
/**
|
|
* Attaches a callback for only the rejection of the Promise.
|
|
* @param onrejected The callback to execute when the Promise is rejected.
|
|
* @returns A Promise for the completion of the callback.
|
|
*/
|
|
catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): $Utils.JsPromise<T | TResult>
|
|
/**
|
|
* Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
|
|
* resolved value cannot be modified from the callback.
|
|
* @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
|
|
* @returns A Promise for the completion of the callback.
|
|
*/
|
|
finally(onfinally?: (() => void) | undefined | null): $Utils.JsPromise<T>
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
* Fields of the MobileContractDetails model
|
|
*/
|
|
interface MobileContractDetailsFieldRefs {
|
|
readonly id: FieldRef<"MobileContractDetails", 'Int'>
|
|
readonly contractId: FieldRef<"MobileContractDetails", 'Int'>
|
|
readonly requiresMultisim: FieldRef<"MobileContractDetails", 'Boolean'>
|
|
readonly dataVolume: FieldRef<"MobileContractDetails", 'Float'>
|
|
readonly includedMinutes: FieldRef<"MobileContractDetails", 'Int'>
|
|
readonly includedSMS: FieldRef<"MobileContractDetails", 'Int'>
|
|
readonly deviceModel: FieldRef<"MobileContractDetails", 'String'>
|
|
readonly deviceImei: FieldRef<"MobileContractDetails", 'String'>
|
|
readonly phoneNumber: FieldRef<"MobileContractDetails", 'String'>
|
|
readonly simCardNumber: FieldRef<"MobileContractDetails", 'String'>
|
|
}
|
|
|
|
|
|
// Custom InputTypes
|
|
/**
|
|
* MobileContractDetails findUnique
|
|
*/
|
|
export type MobileContractDetailsFindUniqueArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the MobileContractDetails
|
|
*/
|
|
select?: MobileContractDetailsSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: MobileContractDetailsInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which MobileContractDetails to fetch.
|
|
*/
|
|
where: MobileContractDetailsWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* MobileContractDetails findUniqueOrThrow
|
|
*/
|
|
export type MobileContractDetailsFindUniqueOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the MobileContractDetails
|
|
*/
|
|
select?: MobileContractDetailsSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: MobileContractDetailsInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which MobileContractDetails to fetch.
|
|
*/
|
|
where: MobileContractDetailsWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* MobileContractDetails findFirst
|
|
*/
|
|
export type MobileContractDetailsFindFirstArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the MobileContractDetails
|
|
*/
|
|
select?: MobileContractDetailsSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: MobileContractDetailsInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which MobileContractDetails to fetch.
|
|
*/
|
|
where?: MobileContractDetailsWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of MobileContractDetails to fetch.
|
|
*/
|
|
orderBy?: MobileContractDetailsOrderByWithRelationInput | MobileContractDetailsOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for searching for MobileContractDetails.
|
|
*/
|
|
cursor?: MobileContractDetailsWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` MobileContractDetails from the position of the cursor.
|
|
*/
|
|
take?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Skip the first `n` MobileContractDetails.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
*
|
|
* Filter by unique combinations of MobileContractDetails.
|
|
*/
|
|
distinct?: MobileContractDetailsScalarFieldEnum | MobileContractDetailsScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* MobileContractDetails findFirstOrThrow
|
|
*/
|
|
export type MobileContractDetailsFindFirstOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the MobileContractDetails
|
|
*/
|
|
select?: MobileContractDetailsSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: MobileContractDetailsInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which MobileContractDetails to fetch.
|
|
*/
|
|
where?: MobileContractDetailsWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of MobileContractDetails to fetch.
|
|
*/
|
|
orderBy?: MobileContractDetailsOrderByWithRelationInput | MobileContractDetailsOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for searching for MobileContractDetails.
|
|
*/
|
|
cursor?: MobileContractDetailsWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` MobileContractDetails from the position of the cursor.
|
|
*/
|
|
take?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Skip the first `n` MobileContractDetails.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
*
|
|
* Filter by unique combinations of MobileContractDetails.
|
|
*/
|
|
distinct?: MobileContractDetailsScalarFieldEnum | MobileContractDetailsScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* MobileContractDetails findMany
|
|
*/
|
|
export type MobileContractDetailsFindManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the MobileContractDetails
|
|
*/
|
|
select?: MobileContractDetailsSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: MobileContractDetailsInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which MobileContractDetails to fetch.
|
|
*/
|
|
where?: MobileContractDetailsWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of MobileContractDetails to fetch.
|
|
*/
|
|
orderBy?: MobileContractDetailsOrderByWithRelationInput | MobileContractDetailsOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for listing MobileContractDetails.
|
|
*/
|
|
cursor?: MobileContractDetailsWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` MobileContractDetails from the position of the cursor.
|
|
*/
|
|
take?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Skip the first `n` MobileContractDetails.
|
|
*/
|
|
skip?: number
|
|
distinct?: MobileContractDetailsScalarFieldEnum | MobileContractDetailsScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* MobileContractDetails create
|
|
*/
|
|
export type MobileContractDetailsCreateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the MobileContractDetails
|
|
*/
|
|
select?: MobileContractDetailsSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: MobileContractDetailsInclude<ExtArgs> | null
|
|
/**
|
|
* The data needed to create a MobileContractDetails.
|
|
*/
|
|
data: XOR<MobileContractDetailsCreateInput, MobileContractDetailsUncheckedCreateInput>
|
|
}
|
|
|
|
/**
|
|
* MobileContractDetails createMany
|
|
*/
|
|
export type MobileContractDetailsCreateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* The data used to create many MobileContractDetails.
|
|
*/
|
|
data: MobileContractDetailsCreateManyInput | MobileContractDetailsCreateManyInput[]
|
|
skipDuplicates?: boolean
|
|
}
|
|
|
|
/**
|
|
* MobileContractDetails update
|
|
*/
|
|
export type MobileContractDetailsUpdateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the MobileContractDetails
|
|
*/
|
|
select?: MobileContractDetailsSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: MobileContractDetailsInclude<ExtArgs> | null
|
|
/**
|
|
* The data needed to update a MobileContractDetails.
|
|
*/
|
|
data: XOR<MobileContractDetailsUpdateInput, MobileContractDetailsUncheckedUpdateInput>
|
|
/**
|
|
* Choose, which MobileContractDetails to update.
|
|
*/
|
|
where: MobileContractDetailsWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* MobileContractDetails updateMany
|
|
*/
|
|
export type MobileContractDetailsUpdateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* The data used to update MobileContractDetails.
|
|
*/
|
|
data: XOR<MobileContractDetailsUpdateManyMutationInput, MobileContractDetailsUncheckedUpdateManyInput>
|
|
/**
|
|
* Filter which MobileContractDetails to update
|
|
*/
|
|
where?: MobileContractDetailsWhereInput
|
|
}
|
|
|
|
/**
|
|
* MobileContractDetails upsert
|
|
*/
|
|
export type MobileContractDetailsUpsertArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the MobileContractDetails
|
|
*/
|
|
select?: MobileContractDetailsSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: MobileContractDetailsInclude<ExtArgs> | null
|
|
/**
|
|
* The filter to search for the MobileContractDetails to update in case it exists.
|
|
*/
|
|
where: MobileContractDetailsWhereUniqueInput
|
|
/**
|
|
* In case the MobileContractDetails found by the `where` argument doesn't exist, create a new MobileContractDetails with this data.
|
|
*/
|
|
create: XOR<MobileContractDetailsCreateInput, MobileContractDetailsUncheckedCreateInput>
|
|
/**
|
|
* In case the MobileContractDetails was found with the provided `where` argument, update it with this data.
|
|
*/
|
|
update: XOR<MobileContractDetailsUpdateInput, MobileContractDetailsUncheckedUpdateInput>
|
|
}
|
|
|
|
/**
|
|
* MobileContractDetails delete
|
|
*/
|
|
export type MobileContractDetailsDeleteArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the MobileContractDetails
|
|
*/
|
|
select?: MobileContractDetailsSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: MobileContractDetailsInclude<ExtArgs> | null
|
|
/**
|
|
* Filter which MobileContractDetails to delete.
|
|
*/
|
|
where: MobileContractDetailsWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* MobileContractDetails deleteMany
|
|
*/
|
|
export type MobileContractDetailsDeleteManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Filter which MobileContractDetails to delete
|
|
*/
|
|
where?: MobileContractDetailsWhereInput
|
|
}
|
|
|
|
/**
|
|
* MobileContractDetails.simCards
|
|
*/
|
|
export type MobileContractDetails$simCardsArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the SimCard
|
|
*/
|
|
select?: SimCardSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: SimCardInclude<ExtArgs> | null
|
|
where?: SimCardWhereInput
|
|
orderBy?: SimCardOrderByWithRelationInput | SimCardOrderByWithRelationInput[]
|
|
cursor?: SimCardWhereUniqueInput
|
|
take?: number
|
|
skip?: number
|
|
distinct?: SimCardScalarFieldEnum | SimCardScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* MobileContractDetails without action
|
|
*/
|
|
export type MobileContractDetailsDefaultArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the MobileContractDetails
|
|
*/
|
|
select?: MobileContractDetailsSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: MobileContractDetailsInclude<ExtArgs> | null
|
|
}
|
|
|
|
|
|
/**
|
|
* Model SimCard
|
|
*/
|
|
|
|
export type AggregateSimCard = {
|
|
_count: SimCardCountAggregateOutputType | null
|
|
_avg: SimCardAvgAggregateOutputType | null
|
|
_sum: SimCardSumAggregateOutputType | null
|
|
_min: SimCardMinAggregateOutputType | null
|
|
_max: SimCardMaxAggregateOutputType | null
|
|
}
|
|
|
|
export type SimCardAvgAggregateOutputType = {
|
|
id: number | null
|
|
mobileDetailsId: number | null
|
|
}
|
|
|
|
export type SimCardSumAggregateOutputType = {
|
|
id: number | null
|
|
mobileDetailsId: number | null
|
|
}
|
|
|
|
export type SimCardMinAggregateOutputType = {
|
|
id: number | null
|
|
mobileDetailsId: number | null
|
|
phoneNumber: string | null
|
|
simCardNumber: string | null
|
|
pin: string | null
|
|
puk: string | null
|
|
isMultisim: boolean | null
|
|
isMain: boolean | null
|
|
createdAt: Date | null
|
|
updatedAt: Date | null
|
|
}
|
|
|
|
export type SimCardMaxAggregateOutputType = {
|
|
id: number | null
|
|
mobileDetailsId: number | null
|
|
phoneNumber: string | null
|
|
simCardNumber: string | null
|
|
pin: string | null
|
|
puk: string | null
|
|
isMultisim: boolean | null
|
|
isMain: boolean | null
|
|
createdAt: Date | null
|
|
updatedAt: Date | null
|
|
}
|
|
|
|
export type SimCardCountAggregateOutputType = {
|
|
id: number
|
|
mobileDetailsId: number
|
|
phoneNumber: number
|
|
simCardNumber: number
|
|
pin: number
|
|
puk: number
|
|
isMultisim: number
|
|
isMain: number
|
|
createdAt: number
|
|
updatedAt: number
|
|
_all: number
|
|
}
|
|
|
|
|
|
export type SimCardAvgAggregateInputType = {
|
|
id?: true
|
|
mobileDetailsId?: true
|
|
}
|
|
|
|
export type SimCardSumAggregateInputType = {
|
|
id?: true
|
|
mobileDetailsId?: true
|
|
}
|
|
|
|
export type SimCardMinAggregateInputType = {
|
|
id?: true
|
|
mobileDetailsId?: true
|
|
phoneNumber?: true
|
|
simCardNumber?: true
|
|
pin?: true
|
|
puk?: true
|
|
isMultisim?: true
|
|
isMain?: true
|
|
createdAt?: true
|
|
updatedAt?: true
|
|
}
|
|
|
|
export type SimCardMaxAggregateInputType = {
|
|
id?: true
|
|
mobileDetailsId?: true
|
|
phoneNumber?: true
|
|
simCardNumber?: true
|
|
pin?: true
|
|
puk?: true
|
|
isMultisim?: true
|
|
isMain?: true
|
|
createdAt?: true
|
|
updatedAt?: true
|
|
}
|
|
|
|
export type SimCardCountAggregateInputType = {
|
|
id?: true
|
|
mobileDetailsId?: true
|
|
phoneNumber?: true
|
|
simCardNumber?: true
|
|
pin?: true
|
|
puk?: true
|
|
isMultisim?: true
|
|
isMain?: true
|
|
createdAt?: true
|
|
updatedAt?: true
|
|
_all?: true
|
|
}
|
|
|
|
export type SimCardAggregateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Filter which SimCard to aggregate.
|
|
*/
|
|
where?: SimCardWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of SimCards to fetch.
|
|
*/
|
|
orderBy?: SimCardOrderByWithRelationInput | SimCardOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the start position
|
|
*/
|
|
cursor?: SimCardWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` SimCards from the position of the cursor.
|
|
*/
|
|
take?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Skip the first `n` SimCards.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Count returned SimCards
|
|
**/
|
|
_count?: true | SimCardCountAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to average
|
|
**/
|
|
_avg?: SimCardAvgAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to sum
|
|
**/
|
|
_sum?: SimCardSumAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to find the minimum value
|
|
**/
|
|
_min?: SimCardMinAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to find the maximum value
|
|
**/
|
|
_max?: SimCardMaxAggregateInputType
|
|
}
|
|
|
|
export type GetSimCardAggregateType<T extends SimCardAggregateArgs> = {
|
|
[P in keyof T & keyof AggregateSimCard]: P extends '_count' | 'count'
|
|
? T[P] extends true
|
|
? number
|
|
: GetScalarType<T[P], AggregateSimCard[P]>
|
|
: GetScalarType<T[P], AggregateSimCard[P]>
|
|
}
|
|
|
|
|
|
|
|
|
|
export type SimCardGroupByArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
where?: SimCardWhereInput
|
|
orderBy?: SimCardOrderByWithAggregationInput | SimCardOrderByWithAggregationInput[]
|
|
by: SimCardScalarFieldEnum[] | SimCardScalarFieldEnum
|
|
having?: SimCardScalarWhereWithAggregatesInput
|
|
take?: number
|
|
skip?: number
|
|
_count?: SimCardCountAggregateInputType | true
|
|
_avg?: SimCardAvgAggregateInputType
|
|
_sum?: SimCardSumAggregateInputType
|
|
_min?: SimCardMinAggregateInputType
|
|
_max?: SimCardMaxAggregateInputType
|
|
}
|
|
|
|
export type SimCardGroupByOutputType = {
|
|
id: number
|
|
mobileDetailsId: number
|
|
phoneNumber: string | null
|
|
simCardNumber: string | null
|
|
pin: string | null
|
|
puk: string | null
|
|
isMultisim: boolean
|
|
isMain: boolean
|
|
createdAt: Date
|
|
updatedAt: Date
|
|
_count: SimCardCountAggregateOutputType | null
|
|
_avg: SimCardAvgAggregateOutputType | null
|
|
_sum: SimCardSumAggregateOutputType | null
|
|
_min: SimCardMinAggregateOutputType | null
|
|
_max: SimCardMaxAggregateOutputType | null
|
|
}
|
|
|
|
type GetSimCardGroupByPayload<T extends SimCardGroupByArgs> = Prisma.PrismaPromise<
|
|
Array<
|
|
PickEnumerable<SimCardGroupByOutputType, T['by']> &
|
|
{
|
|
[P in ((keyof T) & (keyof SimCardGroupByOutputType))]: P extends '_count'
|
|
? T[P] extends boolean
|
|
? number
|
|
: GetScalarType<T[P], SimCardGroupByOutputType[P]>
|
|
: GetScalarType<T[P], SimCardGroupByOutputType[P]>
|
|
}
|
|
>
|
|
>
|
|
|
|
|
|
export type SimCardSelect<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
|
|
id?: boolean
|
|
mobileDetailsId?: boolean
|
|
phoneNumber?: boolean
|
|
simCardNumber?: boolean
|
|
pin?: boolean
|
|
puk?: boolean
|
|
isMultisim?: boolean
|
|
isMain?: boolean
|
|
createdAt?: boolean
|
|
updatedAt?: boolean
|
|
mobileDetails?: boolean | MobileContractDetailsDefaultArgs<ExtArgs>
|
|
}, ExtArgs["result"]["simCard"]>
|
|
|
|
|
|
export type SimCardSelectScalar = {
|
|
id?: boolean
|
|
mobileDetailsId?: boolean
|
|
phoneNumber?: boolean
|
|
simCardNumber?: boolean
|
|
pin?: boolean
|
|
puk?: boolean
|
|
isMultisim?: boolean
|
|
isMain?: boolean
|
|
createdAt?: boolean
|
|
updatedAt?: boolean
|
|
}
|
|
|
|
export type SimCardInclude<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
mobileDetails?: boolean | MobileContractDetailsDefaultArgs<ExtArgs>
|
|
}
|
|
|
|
export type $SimCardPayload<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
name: "SimCard"
|
|
objects: {
|
|
mobileDetails: Prisma.$MobileContractDetailsPayload<ExtArgs>
|
|
}
|
|
scalars: $Extensions.GetPayloadResult<{
|
|
id: number
|
|
mobileDetailsId: number
|
|
phoneNumber: string | null
|
|
simCardNumber: string | null
|
|
pin: string | null
|
|
puk: string | null
|
|
isMultisim: boolean
|
|
isMain: boolean
|
|
createdAt: Date
|
|
updatedAt: Date
|
|
}, ExtArgs["result"]["simCard"]>
|
|
composites: {}
|
|
}
|
|
|
|
type SimCardGetPayload<S extends boolean | null | undefined | SimCardDefaultArgs> = $Result.GetResult<Prisma.$SimCardPayload, S>
|
|
|
|
type SimCardCountArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> =
|
|
Omit<SimCardFindManyArgs, 'select' | 'include' | 'distinct'> & {
|
|
select?: SimCardCountAggregateInputType | true
|
|
}
|
|
|
|
export interface SimCardDelegate<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> {
|
|
[K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['SimCard'], meta: { name: 'SimCard' } }
|
|
/**
|
|
* Find zero or one SimCard that matches the filter.
|
|
* @param {SimCardFindUniqueArgs} args - Arguments to find a SimCard
|
|
* @example
|
|
* // Get one SimCard
|
|
* const simCard = await prisma.simCard.findUnique({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findUnique<T extends SimCardFindUniqueArgs>(args: SelectSubset<T, SimCardFindUniqueArgs<ExtArgs>>): Prisma__SimCardClient<$Result.GetResult<Prisma.$SimCardPayload<ExtArgs>, T, "findUnique"> | null, null, ExtArgs>
|
|
|
|
/**
|
|
* Find one SimCard that matches the filter or throw an error with `error.code='P2025'`
|
|
* if no matches were found.
|
|
* @param {SimCardFindUniqueOrThrowArgs} args - Arguments to find a SimCard
|
|
* @example
|
|
* // Get one SimCard
|
|
* const simCard = await prisma.simCard.findUniqueOrThrow({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findUniqueOrThrow<T extends SimCardFindUniqueOrThrowArgs>(args: SelectSubset<T, SimCardFindUniqueOrThrowArgs<ExtArgs>>): Prisma__SimCardClient<$Result.GetResult<Prisma.$SimCardPayload<ExtArgs>, T, "findUniqueOrThrow">, never, ExtArgs>
|
|
|
|
/**
|
|
* Find the first SimCard that matches the filter.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {SimCardFindFirstArgs} args - Arguments to find a SimCard
|
|
* @example
|
|
* // Get one SimCard
|
|
* const simCard = await prisma.simCard.findFirst({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findFirst<T extends SimCardFindFirstArgs>(args?: SelectSubset<T, SimCardFindFirstArgs<ExtArgs>>): Prisma__SimCardClient<$Result.GetResult<Prisma.$SimCardPayload<ExtArgs>, T, "findFirst"> | null, null, ExtArgs>
|
|
|
|
/**
|
|
* Find the first SimCard that matches the filter or
|
|
* throw `PrismaKnownClientError` with `P2025` code if no matches were found.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {SimCardFindFirstOrThrowArgs} args - Arguments to find a SimCard
|
|
* @example
|
|
* // Get one SimCard
|
|
* const simCard = await prisma.simCard.findFirstOrThrow({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findFirstOrThrow<T extends SimCardFindFirstOrThrowArgs>(args?: SelectSubset<T, SimCardFindFirstOrThrowArgs<ExtArgs>>): Prisma__SimCardClient<$Result.GetResult<Prisma.$SimCardPayload<ExtArgs>, T, "findFirstOrThrow">, never, ExtArgs>
|
|
|
|
/**
|
|
* Find zero or more SimCards that matches the filter.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {SimCardFindManyArgs} args - Arguments to filter and select certain fields only.
|
|
* @example
|
|
* // Get all SimCards
|
|
* const simCards = await prisma.simCard.findMany()
|
|
*
|
|
* // Get first 10 SimCards
|
|
* const simCards = await prisma.simCard.findMany({ take: 10 })
|
|
*
|
|
* // Only select the `id`
|
|
* const simCardWithIdOnly = await prisma.simCard.findMany({ select: { id: true } })
|
|
*
|
|
*/
|
|
findMany<T extends SimCardFindManyArgs>(args?: SelectSubset<T, SimCardFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$SimCardPayload<ExtArgs>, T, "findMany">>
|
|
|
|
/**
|
|
* Create a SimCard.
|
|
* @param {SimCardCreateArgs} args - Arguments to create a SimCard.
|
|
* @example
|
|
* // Create one SimCard
|
|
* const SimCard = await prisma.simCard.create({
|
|
* data: {
|
|
* // ... data to create a SimCard
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
create<T extends SimCardCreateArgs>(args: SelectSubset<T, SimCardCreateArgs<ExtArgs>>): Prisma__SimCardClient<$Result.GetResult<Prisma.$SimCardPayload<ExtArgs>, T, "create">, never, ExtArgs>
|
|
|
|
/**
|
|
* Create many SimCards.
|
|
* @param {SimCardCreateManyArgs} args - Arguments to create many SimCards.
|
|
* @example
|
|
* // Create many SimCards
|
|
* const simCard = await prisma.simCard.createMany({
|
|
* data: [
|
|
* // ... provide data here
|
|
* ]
|
|
* })
|
|
*
|
|
*/
|
|
createMany<T extends SimCardCreateManyArgs>(args?: SelectSubset<T, SimCardCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
|
|
|
|
/**
|
|
* Delete a SimCard.
|
|
* @param {SimCardDeleteArgs} args - Arguments to delete one SimCard.
|
|
* @example
|
|
* // Delete one SimCard
|
|
* const SimCard = await prisma.simCard.delete({
|
|
* where: {
|
|
* // ... filter to delete one SimCard
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
delete<T extends SimCardDeleteArgs>(args: SelectSubset<T, SimCardDeleteArgs<ExtArgs>>): Prisma__SimCardClient<$Result.GetResult<Prisma.$SimCardPayload<ExtArgs>, T, "delete">, never, ExtArgs>
|
|
|
|
/**
|
|
* Update one SimCard.
|
|
* @param {SimCardUpdateArgs} args - Arguments to update one SimCard.
|
|
* @example
|
|
* // Update one SimCard
|
|
* const simCard = await prisma.simCard.update({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* },
|
|
* data: {
|
|
* // ... provide data here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
update<T extends SimCardUpdateArgs>(args: SelectSubset<T, SimCardUpdateArgs<ExtArgs>>): Prisma__SimCardClient<$Result.GetResult<Prisma.$SimCardPayload<ExtArgs>, T, "update">, never, ExtArgs>
|
|
|
|
/**
|
|
* Delete zero or more SimCards.
|
|
* @param {SimCardDeleteManyArgs} args - Arguments to filter SimCards to delete.
|
|
* @example
|
|
* // Delete a few SimCards
|
|
* const { count } = await prisma.simCard.deleteMany({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
deleteMany<T extends SimCardDeleteManyArgs>(args?: SelectSubset<T, SimCardDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
|
|
|
|
/**
|
|
* Update zero or more SimCards.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {SimCardUpdateManyArgs} args - Arguments to update one or more rows.
|
|
* @example
|
|
* // Update many SimCards
|
|
* const simCard = await prisma.simCard.updateMany({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* },
|
|
* data: {
|
|
* // ... provide data here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
updateMany<T extends SimCardUpdateManyArgs>(args: SelectSubset<T, SimCardUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
|
|
|
|
/**
|
|
* Create or update one SimCard.
|
|
* @param {SimCardUpsertArgs} args - Arguments to update or create a SimCard.
|
|
* @example
|
|
* // Update or create a SimCard
|
|
* const simCard = await prisma.simCard.upsert({
|
|
* create: {
|
|
* // ... data to create a SimCard
|
|
* },
|
|
* update: {
|
|
* // ... in case it already exists, update
|
|
* },
|
|
* where: {
|
|
* // ... the filter for the SimCard we want to update
|
|
* }
|
|
* })
|
|
*/
|
|
upsert<T extends SimCardUpsertArgs>(args: SelectSubset<T, SimCardUpsertArgs<ExtArgs>>): Prisma__SimCardClient<$Result.GetResult<Prisma.$SimCardPayload<ExtArgs>, T, "upsert">, never, ExtArgs>
|
|
|
|
|
|
/**
|
|
* Count the number of SimCards.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {SimCardCountArgs} args - Arguments to filter SimCards to count.
|
|
* @example
|
|
* // Count the number of SimCards
|
|
* const count = await prisma.simCard.count({
|
|
* where: {
|
|
* // ... the filter for the SimCards we want to count
|
|
* }
|
|
* })
|
|
**/
|
|
count<T extends SimCardCountArgs>(
|
|
args?: Subset<T, SimCardCountArgs>,
|
|
): Prisma.PrismaPromise<
|
|
T extends $Utils.Record<'select', any>
|
|
? T['select'] extends true
|
|
? number
|
|
: GetScalarType<T['select'], SimCardCountAggregateOutputType>
|
|
: number
|
|
>
|
|
|
|
/**
|
|
* Allows you to perform aggregations operations on a SimCard.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {SimCardAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
|
|
* @example
|
|
* // Ordered by age ascending
|
|
* // Where email contains prisma.io
|
|
* // Limited to the 10 users
|
|
* const aggregations = await prisma.user.aggregate({
|
|
* _avg: {
|
|
* age: true,
|
|
* },
|
|
* where: {
|
|
* email: {
|
|
* contains: "prisma.io",
|
|
* },
|
|
* },
|
|
* orderBy: {
|
|
* age: "asc",
|
|
* },
|
|
* take: 10,
|
|
* })
|
|
**/
|
|
aggregate<T extends SimCardAggregateArgs>(args: Subset<T, SimCardAggregateArgs>): Prisma.PrismaPromise<GetSimCardAggregateType<T>>
|
|
|
|
/**
|
|
* Group by SimCard.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {SimCardGroupByArgs} args - Group by arguments.
|
|
* @example
|
|
* // Group by city, order by createdAt, get count
|
|
* const result = await prisma.user.groupBy({
|
|
* by: ['city', 'createdAt'],
|
|
* orderBy: {
|
|
* createdAt: true
|
|
* },
|
|
* _count: {
|
|
* _all: true
|
|
* },
|
|
* })
|
|
*
|
|
**/
|
|
groupBy<
|
|
T extends SimCardGroupByArgs,
|
|
HasSelectOrTake extends Or<
|
|
Extends<'skip', Keys<T>>,
|
|
Extends<'take', Keys<T>>
|
|
>,
|
|
OrderByArg extends True extends HasSelectOrTake
|
|
? { orderBy: SimCardGroupByArgs['orderBy'] }
|
|
: { orderBy?: SimCardGroupByArgs['orderBy'] },
|
|
OrderFields extends ExcludeUnderscoreKeys<Keys<MaybeTupleToUnion<T['orderBy']>>>,
|
|
ByFields extends MaybeTupleToUnion<T['by']>,
|
|
ByValid extends Has<ByFields, OrderFields>,
|
|
HavingFields extends GetHavingFields<T['having']>,
|
|
HavingValid extends Has<ByFields, HavingFields>,
|
|
ByEmpty extends T['by'] extends never[] ? True : False,
|
|
InputErrors extends ByEmpty extends True
|
|
? `Error: "by" must not be empty.`
|
|
: HavingValid extends False
|
|
? {
|
|
[P in HavingFields]: P extends ByFields
|
|
? never
|
|
: P extends string
|
|
? `Error: Field "${P}" used in "having" needs to be provided in "by".`
|
|
: [
|
|
Error,
|
|
'Field ',
|
|
P,
|
|
` in "having" needs to be provided in "by"`,
|
|
]
|
|
}[HavingFields]
|
|
: 'take' extends Keys<T>
|
|
? 'orderBy' extends Keys<T>
|
|
? ByValid extends True
|
|
? {}
|
|
: {
|
|
[P in OrderFields]: P extends ByFields
|
|
? never
|
|
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
|
|
}[OrderFields]
|
|
: 'Error: If you provide "take", you also need to provide "orderBy"'
|
|
: 'skip' extends Keys<T>
|
|
? 'orderBy' extends Keys<T>
|
|
? ByValid extends True
|
|
? {}
|
|
: {
|
|
[P in OrderFields]: P extends ByFields
|
|
? never
|
|
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
|
|
}[OrderFields]
|
|
: 'Error: If you provide "skip", you also need to provide "orderBy"'
|
|
: ByValid extends True
|
|
? {}
|
|
: {
|
|
[P in OrderFields]: P extends ByFields
|
|
? never
|
|
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
|
|
}[OrderFields]
|
|
>(args: SubsetIntersection<T, SimCardGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetSimCardGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
|
|
/**
|
|
* Fields of the SimCard model
|
|
*/
|
|
readonly fields: SimCardFieldRefs;
|
|
}
|
|
|
|
/**
|
|
* The delegate class that acts as a "Promise-like" for SimCard.
|
|
* Why is this prefixed with `Prisma__`?
|
|
* Because we want to prevent naming conflicts as mentioned in
|
|
* https://github.com/prisma/prisma-client-js/issues/707
|
|
*/
|
|
export interface Prisma__SimCardClient<T, Null = never, ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> extends Prisma.PrismaPromise<T> {
|
|
readonly [Symbol.toStringTag]: "PrismaPromise"
|
|
mobileDetails<T extends MobileContractDetailsDefaultArgs<ExtArgs> = {}>(args?: Subset<T, MobileContractDetailsDefaultArgs<ExtArgs>>): Prisma__MobileContractDetailsClient<$Result.GetResult<Prisma.$MobileContractDetailsPayload<ExtArgs>, T, "findUniqueOrThrow"> | Null, Null, ExtArgs>
|
|
/**
|
|
* Attaches callbacks for the resolution and/or rejection of the Promise.
|
|
* @param onfulfilled The callback to execute when the Promise is resolved.
|
|
* @param onrejected The callback to execute when the Promise is rejected.
|
|
* @returns A Promise for the completion of which ever callback is executed.
|
|
*/
|
|
then<TResult1 = T, TResult2 = never>(onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined | null): $Utils.JsPromise<TResult1 | TResult2>
|
|
/**
|
|
* Attaches a callback for only the rejection of the Promise.
|
|
* @param onrejected The callback to execute when the Promise is rejected.
|
|
* @returns A Promise for the completion of the callback.
|
|
*/
|
|
catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): $Utils.JsPromise<T | TResult>
|
|
/**
|
|
* Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
|
|
* resolved value cannot be modified from the callback.
|
|
* @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
|
|
* @returns A Promise for the completion of the callback.
|
|
*/
|
|
finally(onfinally?: (() => void) | undefined | null): $Utils.JsPromise<T>
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
* Fields of the SimCard model
|
|
*/
|
|
interface SimCardFieldRefs {
|
|
readonly id: FieldRef<"SimCard", 'Int'>
|
|
readonly mobileDetailsId: FieldRef<"SimCard", 'Int'>
|
|
readonly phoneNumber: FieldRef<"SimCard", 'String'>
|
|
readonly simCardNumber: FieldRef<"SimCard", 'String'>
|
|
readonly pin: FieldRef<"SimCard", 'String'>
|
|
readonly puk: FieldRef<"SimCard", 'String'>
|
|
readonly isMultisim: FieldRef<"SimCard", 'Boolean'>
|
|
readonly isMain: FieldRef<"SimCard", 'Boolean'>
|
|
readonly createdAt: FieldRef<"SimCard", 'DateTime'>
|
|
readonly updatedAt: FieldRef<"SimCard", 'DateTime'>
|
|
}
|
|
|
|
|
|
// Custom InputTypes
|
|
/**
|
|
* SimCard findUnique
|
|
*/
|
|
export type SimCardFindUniqueArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the SimCard
|
|
*/
|
|
select?: SimCardSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: SimCardInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which SimCard to fetch.
|
|
*/
|
|
where: SimCardWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* SimCard findUniqueOrThrow
|
|
*/
|
|
export type SimCardFindUniqueOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the SimCard
|
|
*/
|
|
select?: SimCardSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: SimCardInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which SimCard to fetch.
|
|
*/
|
|
where: SimCardWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* SimCard findFirst
|
|
*/
|
|
export type SimCardFindFirstArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the SimCard
|
|
*/
|
|
select?: SimCardSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: SimCardInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which SimCard to fetch.
|
|
*/
|
|
where?: SimCardWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of SimCards to fetch.
|
|
*/
|
|
orderBy?: SimCardOrderByWithRelationInput | SimCardOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for searching for SimCards.
|
|
*/
|
|
cursor?: SimCardWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` SimCards from the position of the cursor.
|
|
*/
|
|
take?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Skip the first `n` SimCards.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
*
|
|
* Filter by unique combinations of SimCards.
|
|
*/
|
|
distinct?: SimCardScalarFieldEnum | SimCardScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* SimCard findFirstOrThrow
|
|
*/
|
|
export type SimCardFindFirstOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the SimCard
|
|
*/
|
|
select?: SimCardSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: SimCardInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which SimCard to fetch.
|
|
*/
|
|
where?: SimCardWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of SimCards to fetch.
|
|
*/
|
|
orderBy?: SimCardOrderByWithRelationInput | SimCardOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for searching for SimCards.
|
|
*/
|
|
cursor?: SimCardWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` SimCards from the position of the cursor.
|
|
*/
|
|
take?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Skip the first `n` SimCards.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
*
|
|
* Filter by unique combinations of SimCards.
|
|
*/
|
|
distinct?: SimCardScalarFieldEnum | SimCardScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* SimCard findMany
|
|
*/
|
|
export type SimCardFindManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the SimCard
|
|
*/
|
|
select?: SimCardSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: SimCardInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which SimCards to fetch.
|
|
*/
|
|
where?: SimCardWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of SimCards to fetch.
|
|
*/
|
|
orderBy?: SimCardOrderByWithRelationInput | SimCardOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for listing SimCards.
|
|
*/
|
|
cursor?: SimCardWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` SimCards from the position of the cursor.
|
|
*/
|
|
take?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Skip the first `n` SimCards.
|
|
*/
|
|
skip?: number
|
|
distinct?: SimCardScalarFieldEnum | SimCardScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* SimCard create
|
|
*/
|
|
export type SimCardCreateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the SimCard
|
|
*/
|
|
select?: SimCardSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: SimCardInclude<ExtArgs> | null
|
|
/**
|
|
* The data needed to create a SimCard.
|
|
*/
|
|
data: XOR<SimCardCreateInput, SimCardUncheckedCreateInput>
|
|
}
|
|
|
|
/**
|
|
* SimCard createMany
|
|
*/
|
|
export type SimCardCreateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* The data used to create many SimCards.
|
|
*/
|
|
data: SimCardCreateManyInput | SimCardCreateManyInput[]
|
|
skipDuplicates?: boolean
|
|
}
|
|
|
|
/**
|
|
* SimCard update
|
|
*/
|
|
export type SimCardUpdateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the SimCard
|
|
*/
|
|
select?: SimCardSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: SimCardInclude<ExtArgs> | null
|
|
/**
|
|
* The data needed to update a SimCard.
|
|
*/
|
|
data: XOR<SimCardUpdateInput, SimCardUncheckedUpdateInput>
|
|
/**
|
|
* Choose, which SimCard to update.
|
|
*/
|
|
where: SimCardWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* SimCard updateMany
|
|
*/
|
|
export type SimCardUpdateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* The data used to update SimCards.
|
|
*/
|
|
data: XOR<SimCardUpdateManyMutationInput, SimCardUncheckedUpdateManyInput>
|
|
/**
|
|
* Filter which SimCards to update
|
|
*/
|
|
where?: SimCardWhereInput
|
|
}
|
|
|
|
/**
|
|
* SimCard upsert
|
|
*/
|
|
export type SimCardUpsertArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the SimCard
|
|
*/
|
|
select?: SimCardSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: SimCardInclude<ExtArgs> | null
|
|
/**
|
|
* The filter to search for the SimCard to update in case it exists.
|
|
*/
|
|
where: SimCardWhereUniqueInput
|
|
/**
|
|
* In case the SimCard found by the `where` argument doesn't exist, create a new SimCard with this data.
|
|
*/
|
|
create: XOR<SimCardCreateInput, SimCardUncheckedCreateInput>
|
|
/**
|
|
* In case the SimCard was found with the provided `where` argument, update it with this data.
|
|
*/
|
|
update: XOR<SimCardUpdateInput, SimCardUncheckedUpdateInput>
|
|
}
|
|
|
|
/**
|
|
* SimCard delete
|
|
*/
|
|
export type SimCardDeleteArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the SimCard
|
|
*/
|
|
select?: SimCardSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: SimCardInclude<ExtArgs> | null
|
|
/**
|
|
* Filter which SimCard to delete.
|
|
*/
|
|
where: SimCardWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* SimCard deleteMany
|
|
*/
|
|
export type SimCardDeleteManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Filter which SimCards to delete
|
|
*/
|
|
where?: SimCardWhereInput
|
|
}
|
|
|
|
/**
|
|
* SimCard without action
|
|
*/
|
|
export type SimCardDefaultArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the SimCard
|
|
*/
|
|
select?: SimCardSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: SimCardInclude<ExtArgs> | null
|
|
}
|
|
|
|
|
|
/**
|
|
* Model TvContractDetails
|
|
*/
|
|
|
|
export type AggregateTvContractDetails = {
|
|
_count: TvContractDetailsCountAggregateOutputType | null
|
|
_avg: TvContractDetailsAvgAggregateOutputType | null
|
|
_sum: TvContractDetailsSumAggregateOutputType | null
|
|
_min: TvContractDetailsMinAggregateOutputType | null
|
|
_max: TvContractDetailsMaxAggregateOutputType | null
|
|
}
|
|
|
|
export type TvContractDetailsAvgAggregateOutputType = {
|
|
id: number | null
|
|
contractId: number | null
|
|
}
|
|
|
|
export type TvContractDetailsSumAggregateOutputType = {
|
|
id: number | null
|
|
contractId: number | null
|
|
}
|
|
|
|
export type TvContractDetailsMinAggregateOutputType = {
|
|
id: number | null
|
|
contractId: number | null
|
|
receiverModel: string | null
|
|
smartcardNumber: string | null
|
|
package: string | null
|
|
}
|
|
|
|
export type TvContractDetailsMaxAggregateOutputType = {
|
|
id: number | null
|
|
contractId: number | null
|
|
receiverModel: string | null
|
|
smartcardNumber: string | null
|
|
package: string | null
|
|
}
|
|
|
|
export type TvContractDetailsCountAggregateOutputType = {
|
|
id: number
|
|
contractId: number
|
|
receiverModel: number
|
|
smartcardNumber: number
|
|
package: number
|
|
_all: number
|
|
}
|
|
|
|
|
|
export type TvContractDetailsAvgAggregateInputType = {
|
|
id?: true
|
|
contractId?: true
|
|
}
|
|
|
|
export type TvContractDetailsSumAggregateInputType = {
|
|
id?: true
|
|
contractId?: true
|
|
}
|
|
|
|
export type TvContractDetailsMinAggregateInputType = {
|
|
id?: true
|
|
contractId?: true
|
|
receiverModel?: true
|
|
smartcardNumber?: true
|
|
package?: true
|
|
}
|
|
|
|
export type TvContractDetailsMaxAggregateInputType = {
|
|
id?: true
|
|
contractId?: true
|
|
receiverModel?: true
|
|
smartcardNumber?: true
|
|
package?: true
|
|
}
|
|
|
|
export type TvContractDetailsCountAggregateInputType = {
|
|
id?: true
|
|
contractId?: true
|
|
receiverModel?: true
|
|
smartcardNumber?: true
|
|
package?: true
|
|
_all?: true
|
|
}
|
|
|
|
export type TvContractDetailsAggregateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Filter which TvContractDetails to aggregate.
|
|
*/
|
|
where?: TvContractDetailsWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of TvContractDetails to fetch.
|
|
*/
|
|
orderBy?: TvContractDetailsOrderByWithRelationInput | TvContractDetailsOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the start position
|
|
*/
|
|
cursor?: TvContractDetailsWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` TvContractDetails from the position of the cursor.
|
|
*/
|
|
take?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Skip the first `n` TvContractDetails.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Count returned TvContractDetails
|
|
**/
|
|
_count?: true | TvContractDetailsCountAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to average
|
|
**/
|
|
_avg?: TvContractDetailsAvgAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to sum
|
|
**/
|
|
_sum?: TvContractDetailsSumAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to find the minimum value
|
|
**/
|
|
_min?: TvContractDetailsMinAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to find the maximum value
|
|
**/
|
|
_max?: TvContractDetailsMaxAggregateInputType
|
|
}
|
|
|
|
export type GetTvContractDetailsAggregateType<T extends TvContractDetailsAggregateArgs> = {
|
|
[P in keyof T & keyof AggregateTvContractDetails]: P extends '_count' | 'count'
|
|
? T[P] extends true
|
|
? number
|
|
: GetScalarType<T[P], AggregateTvContractDetails[P]>
|
|
: GetScalarType<T[P], AggregateTvContractDetails[P]>
|
|
}
|
|
|
|
|
|
|
|
|
|
export type TvContractDetailsGroupByArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
where?: TvContractDetailsWhereInput
|
|
orderBy?: TvContractDetailsOrderByWithAggregationInput | TvContractDetailsOrderByWithAggregationInput[]
|
|
by: TvContractDetailsScalarFieldEnum[] | TvContractDetailsScalarFieldEnum
|
|
having?: TvContractDetailsScalarWhereWithAggregatesInput
|
|
take?: number
|
|
skip?: number
|
|
_count?: TvContractDetailsCountAggregateInputType | true
|
|
_avg?: TvContractDetailsAvgAggregateInputType
|
|
_sum?: TvContractDetailsSumAggregateInputType
|
|
_min?: TvContractDetailsMinAggregateInputType
|
|
_max?: TvContractDetailsMaxAggregateInputType
|
|
}
|
|
|
|
export type TvContractDetailsGroupByOutputType = {
|
|
id: number
|
|
contractId: number
|
|
receiverModel: string | null
|
|
smartcardNumber: string | null
|
|
package: string | null
|
|
_count: TvContractDetailsCountAggregateOutputType | null
|
|
_avg: TvContractDetailsAvgAggregateOutputType | null
|
|
_sum: TvContractDetailsSumAggregateOutputType | null
|
|
_min: TvContractDetailsMinAggregateOutputType | null
|
|
_max: TvContractDetailsMaxAggregateOutputType | null
|
|
}
|
|
|
|
type GetTvContractDetailsGroupByPayload<T extends TvContractDetailsGroupByArgs> = Prisma.PrismaPromise<
|
|
Array<
|
|
PickEnumerable<TvContractDetailsGroupByOutputType, T['by']> &
|
|
{
|
|
[P in ((keyof T) & (keyof TvContractDetailsGroupByOutputType))]: P extends '_count'
|
|
? T[P] extends boolean
|
|
? number
|
|
: GetScalarType<T[P], TvContractDetailsGroupByOutputType[P]>
|
|
: GetScalarType<T[P], TvContractDetailsGroupByOutputType[P]>
|
|
}
|
|
>
|
|
>
|
|
|
|
|
|
export type TvContractDetailsSelect<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
|
|
id?: boolean
|
|
contractId?: boolean
|
|
receiverModel?: boolean
|
|
smartcardNumber?: boolean
|
|
package?: boolean
|
|
contract?: boolean | ContractDefaultArgs<ExtArgs>
|
|
}, ExtArgs["result"]["tvContractDetails"]>
|
|
|
|
|
|
export type TvContractDetailsSelectScalar = {
|
|
id?: boolean
|
|
contractId?: boolean
|
|
receiverModel?: boolean
|
|
smartcardNumber?: boolean
|
|
package?: boolean
|
|
}
|
|
|
|
export type TvContractDetailsInclude<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
contract?: boolean | ContractDefaultArgs<ExtArgs>
|
|
}
|
|
|
|
export type $TvContractDetailsPayload<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
name: "TvContractDetails"
|
|
objects: {
|
|
contract: Prisma.$ContractPayload<ExtArgs>
|
|
}
|
|
scalars: $Extensions.GetPayloadResult<{
|
|
id: number
|
|
contractId: number
|
|
receiverModel: string | null
|
|
smartcardNumber: string | null
|
|
package: string | null
|
|
}, ExtArgs["result"]["tvContractDetails"]>
|
|
composites: {}
|
|
}
|
|
|
|
type TvContractDetailsGetPayload<S extends boolean | null | undefined | TvContractDetailsDefaultArgs> = $Result.GetResult<Prisma.$TvContractDetailsPayload, S>
|
|
|
|
type TvContractDetailsCountArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> =
|
|
Omit<TvContractDetailsFindManyArgs, 'select' | 'include' | 'distinct'> & {
|
|
select?: TvContractDetailsCountAggregateInputType | true
|
|
}
|
|
|
|
export interface TvContractDetailsDelegate<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> {
|
|
[K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['TvContractDetails'], meta: { name: 'TvContractDetails' } }
|
|
/**
|
|
* Find zero or one TvContractDetails that matches the filter.
|
|
* @param {TvContractDetailsFindUniqueArgs} args - Arguments to find a TvContractDetails
|
|
* @example
|
|
* // Get one TvContractDetails
|
|
* const tvContractDetails = await prisma.tvContractDetails.findUnique({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findUnique<T extends TvContractDetailsFindUniqueArgs>(args: SelectSubset<T, TvContractDetailsFindUniqueArgs<ExtArgs>>): Prisma__TvContractDetailsClient<$Result.GetResult<Prisma.$TvContractDetailsPayload<ExtArgs>, T, "findUnique"> | null, null, ExtArgs>
|
|
|
|
/**
|
|
* Find one TvContractDetails that matches the filter or throw an error with `error.code='P2025'`
|
|
* if no matches were found.
|
|
* @param {TvContractDetailsFindUniqueOrThrowArgs} args - Arguments to find a TvContractDetails
|
|
* @example
|
|
* // Get one TvContractDetails
|
|
* const tvContractDetails = await prisma.tvContractDetails.findUniqueOrThrow({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findUniqueOrThrow<T extends TvContractDetailsFindUniqueOrThrowArgs>(args: SelectSubset<T, TvContractDetailsFindUniqueOrThrowArgs<ExtArgs>>): Prisma__TvContractDetailsClient<$Result.GetResult<Prisma.$TvContractDetailsPayload<ExtArgs>, T, "findUniqueOrThrow">, never, ExtArgs>
|
|
|
|
/**
|
|
* Find the first TvContractDetails that matches the filter.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {TvContractDetailsFindFirstArgs} args - Arguments to find a TvContractDetails
|
|
* @example
|
|
* // Get one TvContractDetails
|
|
* const tvContractDetails = await prisma.tvContractDetails.findFirst({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findFirst<T extends TvContractDetailsFindFirstArgs>(args?: SelectSubset<T, TvContractDetailsFindFirstArgs<ExtArgs>>): Prisma__TvContractDetailsClient<$Result.GetResult<Prisma.$TvContractDetailsPayload<ExtArgs>, T, "findFirst"> | null, null, ExtArgs>
|
|
|
|
/**
|
|
* Find the first TvContractDetails that matches the filter or
|
|
* throw `PrismaKnownClientError` with `P2025` code if no matches were found.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {TvContractDetailsFindFirstOrThrowArgs} args - Arguments to find a TvContractDetails
|
|
* @example
|
|
* // Get one TvContractDetails
|
|
* const tvContractDetails = await prisma.tvContractDetails.findFirstOrThrow({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findFirstOrThrow<T extends TvContractDetailsFindFirstOrThrowArgs>(args?: SelectSubset<T, TvContractDetailsFindFirstOrThrowArgs<ExtArgs>>): Prisma__TvContractDetailsClient<$Result.GetResult<Prisma.$TvContractDetailsPayload<ExtArgs>, T, "findFirstOrThrow">, never, ExtArgs>
|
|
|
|
/**
|
|
* Find zero or more TvContractDetails that matches the filter.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {TvContractDetailsFindManyArgs} args - Arguments to filter and select certain fields only.
|
|
* @example
|
|
* // Get all TvContractDetails
|
|
* const tvContractDetails = await prisma.tvContractDetails.findMany()
|
|
*
|
|
* // Get first 10 TvContractDetails
|
|
* const tvContractDetails = await prisma.tvContractDetails.findMany({ take: 10 })
|
|
*
|
|
* // Only select the `id`
|
|
* const tvContractDetailsWithIdOnly = await prisma.tvContractDetails.findMany({ select: { id: true } })
|
|
*
|
|
*/
|
|
findMany<T extends TvContractDetailsFindManyArgs>(args?: SelectSubset<T, TvContractDetailsFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$TvContractDetailsPayload<ExtArgs>, T, "findMany">>
|
|
|
|
/**
|
|
* Create a TvContractDetails.
|
|
* @param {TvContractDetailsCreateArgs} args - Arguments to create a TvContractDetails.
|
|
* @example
|
|
* // Create one TvContractDetails
|
|
* const TvContractDetails = await prisma.tvContractDetails.create({
|
|
* data: {
|
|
* // ... data to create a TvContractDetails
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
create<T extends TvContractDetailsCreateArgs>(args: SelectSubset<T, TvContractDetailsCreateArgs<ExtArgs>>): Prisma__TvContractDetailsClient<$Result.GetResult<Prisma.$TvContractDetailsPayload<ExtArgs>, T, "create">, never, ExtArgs>
|
|
|
|
/**
|
|
* Create many TvContractDetails.
|
|
* @param {TvContractDetailsCreateManyArgs} args - Arguments to create many TvContractDetails.
|
|
* @example
|
|
* // Create many TvContractDetails
|
|
* const tvContractDetails = await prisma.tvContractDetails.createMany({
|
|
* data: [
|
|
* // ... provide data here
|
|
* ]
|
|
* })
|
|
*
|
|
*/
|
|
createMany<T extends TvContractDetailsCreateManyArgs>(args?: SelectSubset<T, TvContractDetailsCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
|
|
|
|
/**
|
|
* Delete a TvContractDetails.
|
|
* @param {TvContractDetailsDeleteArgs} args - Arguments to delete one TvContractDetails.
|
|
* @example
|
|
* // Delete one TvContractDetails
|
|
* const TvContractDetails = await prisma.tvContractDetails.delete({
|
|
* where: {
|
|
* // ... filter to delete one TvContractDetails
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
delete<T extends TvContractDetailsDeleteArgs>(args: SelectSubset<T, TvContractDetailsDeleteArgs<ExtArgs>>): Prisma__TvContractDetailsClient<$Result.GetResult<Prisma.$TvContractDetailsPayload<ExtArgs>, T, "delete">, never, ExtArgs>
|
|
|
|
/**
|
|
* Update one TvContractDetails.
|
|
* @param {TvContractDetailsUpdateArgs} args - Arguments to update one TvContractDetails.
|
|
* @example
|
|
* // Update one TvContractDetails
|
|
* const tvContractDetails = await prisma.tvContractDetails.update({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* },
|
|
* data: {
|
|
* // ... provide data here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
update<T extends TvContractDetailsUpdateArgs>(args: SelectSubset<T, TvContractDetailsUpdateArgs<ExtArgs>>): Prisma__TvContractDetailsClient<$Result.GetResult<Prisma.$TvContractDetailsPayload<ExtArgs>, T, "update">, never, ExtArgs>
|
|
|
|
/**
|
|
* Delete zero or more TvContractDetails.
|
|
* @param {TvContractDetailsDeleteManyArgs} args - Arguments to filter TvContractDetails to delete.
|
|
* @example
|
|
* // Delete a few TvContractDetails
|
|
* const { count } = await prisma.tvContractDetails.deleteMany({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
deleteMany<T extends TvContractDetailsDeleteManyArgs>(args?: SelectSubset<T, TvContractDetailsDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
|
|
|
|
/**
|
|
* Update zero or more TvContractDetails.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {TvContractDetailsUpdateManyArgs} args - Arguments to update one or more rows.
|
|
* @example
|
|
* // Update many TvContractDetails
|
|
* const tvContractDetails = await prisma.tvContractDetails.updateMany({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* },
|
|
* data: {
|
|
* // ... provide data here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
updateMany<T extends TvContractDetailsUpdateManyArgs>(args: SelectSubset<T, TvContractDetailsUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
|
|
|
|
/**
|
|
* Create or update one TvContractDetails.
|
|
* @param {TvContractDetailsUpsertArgs} args - Arguments to update or create a TvContractDetails.
|
|
* @example
|
|
* // Update or create a TvContractDetails
|
|
* const tvContractDetails = await prisma.tvContractDetails.upsert({
|
|
* create: {
|
|
* // ... data to create a TvContractDetails
|
|
* },
|
|
* update: {
|
|
* // ... in case it already exists, update
|
|
* },
|
|
* where: {
|
|
* // ... the filter for the TvContractDetails we want to update
|
|
* }
|
|
* })
|
|
*/
|
|
upsert<T extends TvContractDetailsUpsertArgs>(args: SelectSubset<T, TvContractDetailsUpsertArgs<ExtArgs>>): Prisma__TvContractDetailsClient<$Result.GetResult<Prisma.$TvContractDetailsPayload<ExtArgs>, T, "upsert">, never, ExtArgs>
|
|
|
|
|
|
/**
|
|
* Count the number of TvContractDetails.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {TvContractDetailsCountArgs} args - Arguments to filter TvContractDetails to count.
|
|
* @example
|
|
* // Count the number of TvContractDetails
|
|
* const count = await prisma.tvContractDetails.count({
|
|
* where: {
|
|
* // ... the filter for the TvContractDetails we want to count
|
|
* }
|
|
* })
|
|
**/
|
|
count<T extends TvContractDetailsCountArgs>(
|
|
args?: Subset<T, TvContractDetailsCountArgs>,
|
|
): Prisma.PrismaPromise<
|
|
T extends $Utils.Record<'select', any>
|
|
? T['select'] extends true
|
|
? number
|
|
: GetScalarType<T['select'], TvContractDetailsCountAggregateOutputType>
|
|
: number
|
|
>
|
|
|
|
/**
|
|
* Allows you to perform aggregations operations on a TvContractDetails.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {TvContractDetailsAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
|
|
* @example
|
|
* // Ordered by age ascending
|
|
* // Where email contains prisma.io
|
|
* // Limited to the 10 users
|
|
* const aggregations = await prisma.user.aggregate({
|
|
* _avg: {
|
|
* age: true,
|
|
* },
|
|
* where: {
|
|
* email: {
|
|
* contains: "prisma.io",
|
|
* },
|
|
* },
|
|
* orderBy: {
|
|
* age: "asc",
|
|
* },
|
|
* take: 10,
|
|
* })
|
|
**/
|
|
aggregate<T extends TvContractDetailsAggregateArgs>(args: Subset<T, TvContractDetailsAggregateArgs>): Prisma.PrismaPromise<GetTvContractDetailsAggregateType<T>>
|
|
|
|
/**
|
|
* Group by TvContractDetails.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {TvContractDetailsGroupByArgs} args - Group by arguments.
|
|
* @example
|
|
* // Group by city, order by createdAt, get count
|
|
* const result = await prisma.user.groupBy({
|
|
* by: ['city', 'createdAt'],
|
|
* orderBy: {
|
|
* createdAt: true
|
|
* },
|
|
* _count: {
|
|
* _all: true
|
|
* },
|
|
* })
|
|
*
|
|
**/
|
|
groupBy<
|
|
T extends TvContractDetailsGroupByArgs,
|
|
HasSelectOrTake extends Or<
|
|
Extends<'skip', Keys<T>>,
|
|
Extends<'take', Keys<T>>
|
|
>,
|
|
OrderByArg extends True extends HasSelectOrTake
|
|
? { orderBy: TvContractDetailsGroupByArgs['orderBy'] }
|
|
: { orderBy?: TvContractDetailsGroupByArgs['orderBy'] },
|
|
OrderFields extends ExcludeUnderscoreKeys<Keys<MaybeTupleToUnion<T['orderBy']>>>,
|
|
ByFields extends MaybeTupleToUnion<T['by']>,
|
|
ByValid extends Has<ByFields, OrderFields>,
|
|
HavingFields extends GetHavingFields<T['having']>,
|
|
HavingValid extends Has<ByFields, HavingFields>,
|
|
ByEmpty extends T['by'] extends never[] ? True : False,
|
|
InputErrors extends ByEmpty extends True
|
|
? `Error: "by" must not be empty.`
|
|
: HavingValid extends False
|
|
? {
|
|
[P in HavingFields]: P extends ByFields
|
|
? never
|
|
: P extends string
|
|
? `Error: Field "${P}" used in "having" needs to be provided in "by".`
|
|
: [
|
|
Error,
|
|
'Field ',
|
|
P,
|
|
` in "having" needs to be provided in "by"`,
|
|
]
|
|
}[HavingFields]
|
|
: 'take' extends Keys<T>
|
|
? 'orderBy' extends Keys<T>
|
|
? ByValid extends True
|
|
? {}
|
|
: {
|
|
[P in OrderFields]: P extends ByFields
|
|
? never
|
|
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
|
|
}[OrderFields]
|
|
: 'Error: If you provide "take", you also need to provide "orderBy"'
|
|
: 'skip' extends Keys<T>
|
|
? 'orderBy' extends Keys<T>
|
|
? ByValid extends True
|
|
? {}
|
|
: {
|
|
[P in OrderFields]: P extends ByFields
|
|
? never
|
|
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
|
|
}[OrderFields]
|
|
: 'Error: If you provide "skip", you also need to provide "orderBy"'
|
|
: ByValid extends True
|
|
? {}
|
|
: {
|
|
[P in OrderFields]: P extends ByFields
|
|
? never
|
|
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
|
|
}[OrderFields]
|
|
>(args: SubsetIntersection<T, TvContractDetailsGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetTvContractDetailsGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
|
|
/**
|
|
* Fields of the TvContractDetails model
|
|
*/
|
|
readonly fields: TvContractDetailsFieldRefs;
|
|
}
|
|
|
|
/**
|
|
* The delegate class that acts as a "Promise-like" for TvContractDetails.
|
|
* Why is this prefixed with `Prisma__`?
|
|
* Because we want to prevent naming conflicts as mentioned in
|
|
* https://github.com/prisma/prisma-client-js/issues/707
|
|
*/
|
|
export interface Prisma__TvContractDetailsClient<T, Null = never, ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> extends Prisma.PrismaPromise<T> {
|
|
readonly [Symbol.toStringTag]: "PrismaPromise"
|
|
contract<T extends ContractDefaultArgs<ExtArgs> = {}>(args?: Subset<T, ContractDefaultArgs<ExtArgs>>): Prisma__ContractClient<$Result.GetResult<Prisma.$ContractPayload<ExtArgs>, T, "findUniqueOrThrow"> | Null, Null, ExtArgs>
|
|
/**
|
|
* Attaches callbacks for the resolution and/or rejection of the Promise.
|
|
* @param onfulfilled The callback to execute when the Promise is resolved.
|
|
* @param onrejected The callback to execute when the Promise is rejected.
|
|
* @returns A Promise for the completion of which ever callback is executed.
|
|
*/
|
|
then<TResult1 = T, TResult2 = never>(onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined | null): $Utils.JsPromise<TResult1 | TResult2>
|
|
/**
|
|
* Attaches a callback for only the rejection of the Promise.
|
|
* @param onrejected The callback to execute when the Promise is rejected.
|
|
* @returns A Promise for the completion of the callback.
|
|
*/
|
|
catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): $Utils.JsPromise<T | TResult>
|
|
/**
|
|
* Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
|
|
* resolved value cannot be modified from the callback.
|
|
* @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
|
|
* @returns A Promise for the completion of the callback.
|
|
*/
|
|
finally(onfinally?: (() => void) | undefined | null): $Utils.JsPromise<T>
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
* Fields of the TvContractDetails model
|
|
*/
|
|
interface TvContractDetailsFieldRefs {
|
|
readonly id: FieldRef<"TvContractDetails", 'Int'>
|
|
readonly contractId: FieldRef<"TvContractDetails", 'Int'>
|
|
readonly receiverModel: FieldRef<"TvContractDetails", 'String'>
|
|
readonly smartcardNumber: FieldRef<"TvContractDetails", 'String'>
|
|
readonly package: FieldRef<"TvContractDetails", 'String'>
|
|
}
|
|
|
|
|
|
// Custom InputTypes
|
|
/**
|
|
* TvContractDetails findUnique
|
|
*/
|
|
export type TvContractDetailsFindUniqueArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the TvContractDetails
|
|
*/
|
|
select?: TvContractDetailsSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: TvContractDetailsInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which TvContractDetails to fetch.
|
|
*/
|
|
where: TvContractDetailsWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* TvContractDetails findUniqueOrThrow
|
|
*/
|
|
export type TvContractDetailsFindUniqueOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the TvContractDetails
|
|
*/
|
|
select?: TvContractDetailsSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: TvContractDetailsInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which TvContractDetails to fetch.
|
|
*/
|
|
where: TvContractDetailsWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* TvContractDetails findFirst
|
|
*/
|
|
export type TvContractDetailsFindFirstArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the TvContractDetails
|
|
*/
|
|
select?: TvContractDetailsSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: TvContractDetailsInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which TvContractDetails to fetch.
|
|
*/
|
|
where?: TvContractDetailsWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of TvContractDetails to fetch.
|
|
*/
|
|
orderBy?: TvContractDetailsOrderByWithRelationInput | TvContractDetailsOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for searching for TvContractDetails.
|
|
*/
|
|
cursor?: TvContractDetailsWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` TvContractDetails from the position of the cursor.
|
|
*/
|
|
take?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Skip the first `n` TvContractDetails.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
*
|
|
* Filter by unique combinations of TvContractDetails.
|
|
*/
|
|
distinct?: TvContractDetailsScalarFieldEnum | TvContractDetailsScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* TvContractDetails findFirstOrThrow
|
|
*/
|
|
export type TvContractDetailsFindFirstOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the TvContractDetails
|
|
*/
|
|
select?: TvContractDetailsSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: TvContractDetailsInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which TvContractDetails to fetch.
|
|
*/
|
|
where?: TvContractDetailsWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of TvContractDetails to fetch.
|
|
*/
|
|
orderBy?: TvContractDetailsOrderByWithRelationInput | TvContractDetailsOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for searching for TvContractDetails.
|
|
*/
|
|
cursor?: TvContractDetailsWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` TvContractDetails from the position of the cursor.
|
|
*/
|
|
take?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Skip the first `n` TvContractDetails.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
*
|
|
* Filter by unique combinations of TvContractDetails.
|
|
*/
|
|
distinct?: TvContractDetailsScalarFieldEnum | TvContractDetailsScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* TvContractDetails findMany
|
|
*/
|
|
export type TvContractDetailsFindManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the TvContractDetails
|
|
*/
|
|
select?: TvContractDetailsSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: TvContractDetailsInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which TvContractDetails to fetch.
|
|
*/
|
|
where?: TvContractDetailsWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of TvContractDetails to fetch.
|
|
*/
|
|
orderBy?: TvContractDetailsOrderByWithRelationInput | TvContractDetailsOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for listing TvContractDetails.
|
|
*/
|
|
cursor?: TvContractDetailsWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` TvContractDetails from the position of the cursor.
|
|
*/
|
|
take?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Skip the first `n` TvContractDetails.
|
|
*/
|
|
skip?: number
|
|
distinct?: TvContractDetailsScalarFieldEnum | TvContractDetailsScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* TvContractDetails create
|
|
*/
|
|
export type TvContractDetailsCreateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the TvContractDetails
|
|
*/
|
|
select?: TvContractDetailsSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: TvContractDetailsInclude<ExtArgs> | null
|
|
/**
|
|
* The data needed to create a TvContractDetails.
|
|
*/
|
|
data: XOR<TvContractDetailsCreateInput, TvContractDetailsUncheckedCreateInput>
|
|
}
|
|
|
|
/**
|
|
* TvContractDetails createMany
|
|
*/
|
|
export type TvContractDetailsCreateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* The data used to create many TvContractDetails.
|
|
*/
|
|
data: TvContractDetailsCreateManyInput | TvContractDetailsCreateManyInput[]
|
|
skipDuplicates?: boolean
|
|
}
|
|
|
|
/**
|
|
* TvContractDetails update
|
|
*/
|
|
export type TvContractDetailsUpdateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the TvContractDetails
|
|
*/
|
|
select?: TvContractDetailsSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: TvContractDetailsInclude<ExtArgs> | null
|
|
/**
|
|
* The data needed to update a TvContractDetails.
|
|
*/
|
|
data: XOR<TvContractDetailsUpdateInput, TvContractDetailsUncheckedUpdateInput>
|
|
/**
|
|
* Choose, which TvContractDetails to update.
|
|
*/
|
|
where: TvContractDetailsWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* TvContractDetails updateMany
|
|
*/
|
|
export type TvContractDetailsUpdateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* The data used to update TvContractDetails.
|
|
*/
|
|
data: XOR<TvContractDetailsUpdateManyMutationInput, TvContractDetailsUncheckedUpdateManyInput>
|
|
/**
|
|
* Filter which TvContractDetails to update
|
|
*/
|
|
where?: TvContractDetailsWhereInput
|
|
}
|
|
|
|
/**
|
|
* TvContractDetails upsert
|
|
*/
|
|
export type TvContractDetailsUpsertArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the TvContractDetails
|
|
*/
|
|
select?: TvContractDetailsSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: TvContractDetailsInclude<ExtArgs> | null
|
|
/**
|
|
* The filter to search for the TvContractDetails to update in case it exists.
|
|
*/
|
|
where: TvContractDetailsWhereUniqueInput
|
|
/**
|
|
* In case the TvContractDetails found by the `where` argument doesn't exist, create a new TvContractDetails with this data.
|
|
*/
|
|
create: XOR<TvContractDetailsCreateInput, TvContractDetailsUncheckedCreateInput>
|
|
/**
|
|
* In case the TvContractDetails was found with the provided `where` argument, update it with this data.
|
|
*/
|
|
update: XOR<TvContractDetailsUpdateInput, TvContractDetailsUncheckedUpdateInput>
|
|
}
|
|
|
|
/**
|
|
* TvContractDetails delete
|
|
*/
|
|
export type TvContractDetailsDeleteArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the TvContractDetails
|
|
*/
|
|
select?: TvContractDetailsSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: TvContractDetailsInclude<ExtArgs> | null
|
|
/**
|
|
* Filter which TvContractDetails to delete.
|
|
*/
|
|
where: TvContractDetailsWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* TvContractDetails deleteMany
|
|
*/
|
|
export type TvContractDetailsDeleteManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Filter which TvContractDetails to delete
|
|
*/
|
|
where?: TvContractDetailsWhereInput
|
|
}
|
|
|
|
/**
|
|
* TvContractDetails without action
|
|
*/
|
|
export type TvContractDetailsDefaultArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the TvContractDetails
|
|
*/
|
|
select?: TvContractDetailsSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: TvContractDetailsInclude<ExtArgs> | null
|
|
}
|
|
|
|
|
|
/**
|
|
* Model CarInsuranceDetails
|
|
*/
|
|
|
|
export type AggregateCarInsuranceDetails = {
|
|
_count: CarInsuranceDetailsCountAggregateOutputType | null
|
|
_avg: CarInsuranceDetailsAvgAggregateOutputType | null
|
|
_sum: CarInsuranceDetailsSumAggregateOutputType | null
|
|
_min: CarInsuranceDetailsMinAggregateOutputType | null
|
|
_max: CarInsuranceDetailsMaxAggregateOutputType | null
|
|
}
|
|
|
|
export type CarInsuranceDetailsAvgAggregateOutputType = {
|
|
id: number | null
|
|
contractId: number | null
|
|
deductiblePartial: number | null
|
|
deductibleFull: number | null
|
|
}
|
|
|
|
export type CarInsuranceDetailsSumAggregateOutputType = {
|
|
id: number | null
|
|
contractId: number | null
|
|
deductiblePartial: number | null
|
|
deductibleFull: number | null
|
|
}
|
|
|
|
export type CarInsuranceDetailsMinAggregateOutputType = {
|
|
id: number | null
|
|
contractId: number | null
|
|
licensePlate: string | null
|
|
hsn: string | null
|
|
tsn: string | null
|
|
vin: string | null
|
|
vehicleType: string | null
|
|
firstRegistration: Date | null
|
|
noClaimsClass: string | null
|
|
insuranceType: $Enums.InsuranceType | null
|
|
deductiblePartial: number | null
|
|
deductibleFull: number | null
|
|
policyNumber: string | null
|
|
previousInsurer: string | null
|
|
}
|
|
|
|
export type CarInsuranceDetailsMaxAggregateOutputType = {
|
|
id: number | null
|
|
contractId: number | null
|
|
licensePlate: string | null
|
|
hsn: string | null
|
|
tsn: string | null
|
|
vin: string | null
|
|
vehicleType: string | null
|
|
firstRegistration: Date | null
|
|
noClaimsClass: string | null
|
|
insuranceType: $Enums.InsuranceType | null
|
|
deductiblePartial: number | null
|
|
deductibleFull: number | null
|
|
policyNumber: string | null
|
|
previousInsurer: string | null
|
|
}
|
|
|
|
export type CarInsuranceDetailsCountAggregateOutputType = {
|
|
id: number
|
|
contractId: number
|
|
licensePlate: number
|
|
hsn: number
|
|
tsn: number
|
|
vin: number
|
|
vehicleType: number
|
|
firstRegistration: number
|
|
noClaimsClass: number
|
|
insuranceType: number
|
|
deductiblePartial: number
|
|
deductibleFull: number
|
|
policyNumber: number
|
|
previousInsurer: number
|
|
_all: number
|
|
}
|
|
|
|
|
|
export type CarInsuranceDetailsAvgAggregateInputType = {
|
|
id?: true
|
|
contractId?: true
|
|
deductiblePartial?: true
|
|
deductibleFull?: true
|
|
}
|
|
|
|
export type CarInsuranceDetailsSumAggregateInputType = {
|
|
id?: true
|
|
contractId?: true
|
|
deductiblePartial?: true
|
|
deductibleFull?: true
|
|
}
|
|
|
|
export type CarInsuranceDetailsMinAggregateInputType = {
|
|
id?: true
|
|
contractId?: true
|
|
licensePlate?: true
|
|
hsn?: true
|
|
tsn?: true
|
|
vin?: true
|
|
vehicleType?: true
|
|
firstRegistration?: true
|
|
noClaimsClass?: true
|
|
insuranceType?: true
|
|
deductiblePartial?: true
|
|
deductibleFull?: true
|
|
policyNumber?: true
|
|
previousInsurer?: true
|
|
}
|
|
|
|
export type CarInsuranceDetailsMaxAggregateInputType = {
|
|
id?: true
|
|
contractId?: true
|
|
licensePlate?: true
|
|
hsn?: true
|
|
tsn?: true
|
|
vin?: true
|
|
vehicleType?: true
|
|
firstRegistration?: true
|
|
noClaimsClass?: true
|
|
insuranceType?: true
|
|
deductiblePartial?: true
|
|
deductibleFull?: true
|
|
policyNumber?: true
|
|
previousInsurer?: true
|
|
}
|
|
|
|
export type CarInsuranceDetailsCountAggregateInputType = {
|
|
id?: true
|
|
contractId?: true
|
|
licensePlate?: true
|
|
hsn?: true
|
|
tsn?: true
|
|
vin?: true
|
|
vehicleType?: true
|
|
firstRegistration?: true
|
|
noClaimsClass?: true
|
|
insuranceType?: true
|
|
deductiblePartial?: true
|
|
deductibleFull?: true
|
|
policyNumber?: true
|
|
previousInsurer?: true
|
|
_all?: true
|
|
}
|
|
|
|
export type CarInsuranceDetailsAggregateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Filter which CarInsuranceDetails to aggregate.
|
|
*/
|
|
where?: CarInsuranceDetailsWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of CarInsuranceDetails to fetch.
|
|
*/
|
|
orderBy?: CarInsuranceDetailsOrderByWithRelationInput | CarInsuranceDetailsOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the start position
|
|
*/
|
|
cursor?: CarInsuranceDetailsWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` CarInsuranceDetails from the position of the cursor.
|
|
*/
|
|
take?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Skip the first `n` CarInsuranceDetails.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Count returned CarInsuranceDetails
|
|
**/
|
|
_count?: true | CarInsuranceDetailsCountAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to average
|
|
**/
|
|
_avg?: CarInsuranceDetailsAvgAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to sum
|
|
**/
|
|
_sum?: CarInsuranceDetailsSumAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to find the minimum value
|
|
**/
|
|
_min?: CarInsuranceDetailsMinAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to find the maximum value
|
|
**/
|
|
_max?: CarInsuranceDetailsMaxAggregateInputType
|
|
}
|
|
|
|
export type GetCarInsuranceDetailsAggregateType<T extends CarInsuranceDetailsAggregateArgs> = {
|
|
[P in keyof T & keyof AggregateCarInsuranceDetails]: P extends '_count' | 'count'
|
|
? T[P] extends true
|
|
? number
|
|
: GetScalarType<T[P], AggregateCarInsuranceDetails[P]>
|
|
: GetScalarType<T[P], AggregateCarInsuranceDetails[P]>
|
|
}
|
|
|
|
|
|
|
|
|
|
export type CarInsuranceDetailsGroupByArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
where?: CarInsuranceDetailsWhereInput
|
|
orderBy?: CarInsuranceDetailsOrderByWithAggregationInput | CarInsuranceDetailsOrderByWithAggregationInput[]
|
|
by: CarInsuranceDetailsScalarFieldEnum[] | CarInsuranceDetailsScalarFieldEnum
|
|
having?: CarInsuranceDetailsScalarWhereWithAggregatesInput
|
|
take?: number
|
|
skip?: number
|
|
_count?: CarInsuranceDetailsCountAggregateInputType | true
|
|
_avg?: CarInsuranceDetailsAvgAggregateInputType
|
|
_sum?: CarInsuranceDetailsSumAggregateInputType
|
|
_min?: CarInsuranceDetailsMinAggregateInputType
|
|
_max?: CarInsuranceDetailsMaxAggregateInputType
|
|
}
|
|
|
|
export type CarInsuranceDetailsGroupByOutputType = {
|
|
id: number
|
|
contractId: number
|
|
licensePlate: string | null
|
|
hsn: string | null
|
|
tsn: string | null
|
|
vin: string | null
|
|
vehicleType: string | null
|
|
firstRegistration: Date | null
|
|
noClaimsClass: string | null
|
|
insuranceType: $Enums.InsuranceType
|
|
deductiblePartial: number | null
|
|
deductibleFull: number | null
|
|
policyNumber: string | null
|
|
previousInsurer: string | null
|
|
_count: CarInsuranceDetailsCountAggregateOutputType | null
|
|
_avg: CarInsuranceDetailsAvgAggregateOutputType | null
|
|
_sum: CarInsuranceDetailsSumAggregateOutputType | null
|
|
_min: CarInsuranceDetailsMinAggregateOutputType | null
|
|
_max: CarInsuranceDetailsMaxAggregateOutputType | null
|
|
}
|
|
|
|
type GetCarInsuranceDetailsGroupByPayload<T extends CarInsuranceDetailsGroupByArgs> = Prisma.PrismaPromise<
|
|
Array<
|
|
PickEnumerable<CarInsuranceDetailsGroupByOutputType, T['by']> &
|
|
{
|
|
[P in ((keyof T) & (keyof CarInsuranceDetailsGroupByOutputType))]: P extends '_count'
|
|
? T[P] extends boolean
|
|
? number
|
|
: GetScalarType<T[P], CarInsuranceDetailsGroupByOutputType[P]>
|
|
: GetScalarType<T[P], CarInsuranceDetailsGroupByOutputType[P]>
|
|
}
|
|
>
|
|
>
|
|
|
|
|
|
export type CarInsuranceDetailsSelect<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
|
|
id?: boolean
|
|
contractId?: boolean
|
|
licensePlate?: boolean
|
|
hsn?: boolean
|
|
tsn?: boolean
|
|
vin?: boolean
|
|
vehicleType?: boolean
|
|
firstRegistration?: boolean
|
|
noClaimsClass?: boolean
|
|
insuranceType?: boolean
|
|
deductiblePartial?: boolean
|
|
deductibleFull?: boolean
|
|
policyNumber?: boolean
|
|
previousInsurer?: boolean
|
|
contract?: boolean | ContractDefaultArgs<ExtArgs>
|
|
}, ExtArgs["result"]["carInsuranceDetails"]>
|
|
|
|
|
|
export type CarInsuranceDetailsSelectScalar = {
|
|
id?: boolean
|
|
contractId?: boolean
|
|
licensePlate?: boolean
|
|
hsn?: boolean
|
|
tsn?: boolean
|
|
vin?: boolean
|
|
vehicleType?: boolean
|
|
firstRegistration?: boolean
|
|
noClaimsClass?: boolean
|
|
insuranceType?: boolean
|
|
deductiblePartial?: boolean
|
|
deductibleFull?: boolean
|
|
policyNumber?: boolean
|
|
previousInsurer?: boolean
|
|
}
|
|
|
|
export type CarInsuranceDetailsInclude<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
contract?: boolean | ContractDefaultArgs<ExtArgs>
|
|
}
|
|
|
|
export type $CarInsuranceDetailsPayload<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
name: "CarInsuranceDetails"
|
|
objects: {
|
|
contract: Prisma.$ContractPayload<ExtArgs>
|
|
}
|
|
scalars: $Extensions.GetPayloadResult<{
|
|
id: number
|
|
contractId: number
|
|
licensePlate: string | null
|
|
hsn: string | null
|
|
tsn: string | null
|
|
vin: string | null
|
|
vehicleType: string | null
|
|
firstRegistration: Date | null
|
|
noClaimsClass: string | null
|
|
insuranceType: $Enums.InsuranceType
|
|
deductiblePartial: number | null
|
|
deductibleFull: number | null
|
|
policyNumber: string | null
|
|
previousInsurer: string | null
|
|
}, ExtArgs["result"]["carInsuranceDetails"]>
|
|
composites: {}
|
|
}
|
|
|
|
type CarInsuranceDetailsGetPayload<S extends boolean | null | undefined | CarInsuranceDetailsDefaultArgs> = $Result.GetResult<Prisma.$CarInsuranceDetailsPayload, S>
|
|
|
|
type CarInsuranceDetailsCountArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> =
|
|
Omit<CarInsuranceDetailsFindManyArgs, 'select' | 'include' | 'distinct'> & {
|
|
select?: CarInsuranceDetailsCountAggregateInputType | true
|
|
}
|
|
|
|
export interface CarInsuranceDetailsDelegate<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> {
|
|
[K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['CarInsuranceDetails'], meta: { name: 'CarInsuranceDetails' } }
|
|
/**
|
|
* Find zero or one CarInsuranceDetails that matches the filter.
|
|
* @param {CarInsuranceDetailsFindUniqueArgs} args - Arguments to find a CarInsuranceDetails
|
|
* @example
|
|
* // Get one CarInsuranceDetails
|
|
* const carInsuranceDetails = await prisma.carInsuranceDetails.findUnique({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findUnique<T extends CarInsuranceDetailsFindUniqueArgs>(args: SelectSubset<T, CarInsuranceDetailsFindUniqueArgs<ExtArgs>>): Prisma__CarInsuranceDetailsClient<$Result.GetResult<Prisma.$CarInsuranceDetailsPayload<ExtArgs>, T, "findUnique"> | null, null, ExtArgs>
|
|
|
|
/**
|
|
* Find one CarInsuranceDetails that matches the filter or throw an error with `error.code='P2025'`
|
|
* if no matches were found.
|
|
* @param {CarInsuranceDetailsFindUniqueOrThrowArgs} args - Arguments to find a CarInsuranceDetails
|
|
* @example
|
|
* // Get one CarInsuranceDetails
|
|
* const carInsuranceDetails = await prisma.carInsuranceDetails.findUniqueOrThrow({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findUniqueOrThrow<T extends CarInsuranceDetailsFindUniqueOrThrowArgs>(args: SelectSubset<T, CarInsuranceDetailsFindUniqueOrThrowArgs<ExtArgs>>): Prisma__CarInsuranceDetailsClient<$Result.GetResult<Prisma.$CarInsuranceDetailsPayload<ExtArgs>, T, "findUniqueOrThrow">, never, ExtArgs>
|
|
|
|
/**
|
|
* Find the first CarInsuranceDetails that matches the filter.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {CarInsuranceDetailsFindFirstArgs} args - Arguments to find a CarInsuranceDetails
|
|
* @example
|
|
* // Get one CarInsuranceDetails
|
|
* const carInsuranceDetails = await prisma.carInsuranceDetails.findFirst({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findFirst<T extends CarInsuranceDetailsFindFirstArgs>(args?: SelectSubset<T, CarInsuranceDetailsFindFirstArgs<ExtArgs>>): Prisma__CarInsuranceDetailsClient<$Result.GetResult<Prisma.$CarInsuranceDetailsPayload<ExtArgs>, T, "findFirst"> | null, null, ExtArgs>
|
|
|
|
/**
|
|
* Find the first CarInsuranceDetails that matches the filter or
|
|
* throw `PrismaKnownClientError` with `P2025` code if no matches were found.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {CarInsuranceDetailsFindFirstOrThrowArgs} args - Arguments to find a CarInsuranceDetails
|
|
* @example
|
|
* // Get one CarInsuranceDetails
|
|
* const carInsuranceDetails = await prisma.carInsuranceDetails.findFirstOrThrow({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findFirstOrThrow<T extends CarInsuranceDetailsFindFirstOrThrowArgs>(args?: SelectSubset<T, CarInsuranceDetailsFindFirstOrThrowArgs<ExtArgs>>): Prisma__CarInsuranceDetailsClient<$Result.GetResult<Prisma.$CarInsuranceDetailsPayload<ExtArgs>, T, "findFirstOrThrow">, never, ExtArgs>
|
|
|
|
/**
|
|
* Find zero or more CarInsuranceDetails that matches the filter.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {CarInsuranceDetailsFindManyArgs} args - Arguments to filter and select certain fields only.
|
|
* @example
|
|
* // Get all CarInsuranceDetails
|
|
* const carInsuranceDetails = await prisma.carInsuranceDetails.findMany()
|
|
*
|
|
* // Get first 10 CarInsuranceDetails
|
|
* const carInsuranceDetails = await prisma.carInsuranceDetails.findMany({ take: 10 })
|
|
*
|
|
* // Only select the `id`
|
|
* const carInsuranceDetailsWithIdOnly = await prisma.carInsuranceDetails.findMany({ select: { id: true } })
|
|
*
|
|
*/
|
|
findMany<T extends CarInsuranceDetailsFindManyArgs>(args?: SelectSubset<T, CarInsuranceDetailsFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$CarInsuranceDetailsPayload<ExtArgs>, T, "findMany">>
|
|
|
|
/**
|
|
* Create a CarInsuranceDetails.
|
|
* @param {CarInsuranceDetailsCreateArgs} args - Arguments to create a CarInsuranceDetails.
|
|
* @example
|
|
* // Create one CarInsuranceDetails
|
|
* const CarInsuranceDetails = await prisma.carInsuranceDetails.create({
|
|
* data: {
|
|
* // ... data to create a CarInsuranceDetails
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
create<T extends CarInsuranceDetailsCreateArgs>(args: SelectSubset<T, CarInsuranceDetailsCreateArgs<ExtArgs>>): Prisma__CarInsuranceDetailsClient<$Result.GetResult<Prisma.$CarInsuranceDetailsPayload<ExtArgs>, T, "create">, never, ExtArgs>
|
|
|
|
/**
|
|
* Create many CarInsuranceDetails.
|
|
* @param {CarInsuranceDetailsCreateManyArgs} args - Arguments to create many CarInsuranceDetails.
|
|
* @example
|
|
* // Create many CarInsuranceDetails
|
|
* const carInsuranceDetails = await prisma.carInsuranceDetails.createMany({
|
|
* data: [
|
|
* // ... provide data here
|
|
* ]
|
|
* })
|
|
*
|
|
*/
|
|
createMany<T extends CarInsuranceDetailsCreateManyArgs>(args?: SelectSubset<T, CarInsuranceDetailsCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
|
|
|
|
/**
|
|
* Delete a CarInsuranceDetails.
|
|
* @param {CarInsuranceDetailsDeleteArgs} args - Arguments to delete one CarInsuranceDetails.
|
|
* @example
|
|
* // Delete one CarInsuranceDetails
|
|
* const CarInsuranceDetails = await prisma.carInsuranceDetails.delete({
|
|
* where: {
|
|
* // ... filter to delete one CarInsuranceDetails
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
delete<T extends CarInsuranceDetailsDeleteArgs>(args: SelectSubset<T, CarInsuranceDetailsDeleteArgs<ExtArgs>>): Prisma__CarInsuranceDetailsClient<$Result.GetResult<Prisma.$CarInsuranceDetailsPayload<ExtArgs>, T, "delete">, never, ExtArgs>
|
|
|
|
/**
|
|
* Update one CarInsuranceDetails.
|
|
* @param {CarInsuranceDetailsUpdateArgs} args - Arguments to update one CarInsuranceDetails.
|
|
* @example
|
|
* // Update one CarInsuranceDetails
|
|
* const carInsuranceDetails = await prisma.carInsuranceDetails.update({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* },
|
|
* data: {
|
|
* // ... provide data here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
update<T extends CarInsuranceDetailsUpdateArgs>(args: SelectSubset<T, CarInsuranceDetailsUpdateArgs<ExtArgs>>): Prisma__CarInsuranceDetailsClient<$Result.GetResult<Prisma.$CarInsuranceDetailsPayload<ExtArgs>, T, "update">, never, ExtArgs>
|
|
|
|
/**
|
|
* Delete zero or more CarInsuranceDetails.
|
|
* @param {CarInsuranceDetailsDeleteManyArgs} args - Arguments to filter CarInsuranceDetails to delete.
|
|
* @example
|
|
* // Delete a few CarInsuranceDetails
|
|
* const { count } = await prisma.carInsuranceDetails.deleteMany({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
deleteMany<T extends CarInsuranceDetailsDeleteManyArgs>(args?: SelectSubset<T, CarInsuranceDetailsDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
|
|
|
|
/**
|
|
* Update zero or more CarInsuranceDetails.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {CarInsuranceDetailsUpdateManyArgs} args - Arguments to update one or more rows.
|
|
* @example
|
|
* // Update many CarInsuranceDetails
|
|
* const carInsuranceDetails = await prisma.carInsuranceDetails.updateMany({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* },
|
|
* data: {
|
|
* // ... provide data here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
updateMany<T extends CarInsuranceDetailsUpdateManyArgs>(args: SelectSubset<T, CarInsuranceDetailsUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
|
|
|
|
/**
|
|
* Create or update one CarInsuranceDetails.
|
|
* @param {CarInsuranceDetailsUpsertArgs} args - Arguments to update or create a CarInsuranceDetails.
|
|
* @example
|
|
* // Update or create a CarInsuranceDetails
|
|
* const carInsuranceDetails = await prisma.carInsuranceDetails.upsert({
|
|
* create: {
|
|
* // ... data to create a CarInsuranceDetails
|
|
* },
|
|
* update: {
|
|
* // ... in case it already exists, update
|
|
* },
|
|
* where: {
|
|
* // ... the filter for the CarInsuranceDetails we want to update
|
|
* }
|
|
* })
|
|
*/
|
|
upsert<T extends CarInsuranceDetailsUpsertArgs>(args: SelectSubset<T, CarInsuranceDetailsUpsertArgs<ExtArgs>>): Prisma__CarInsuranceDetailsClient<$Result.GetResult<Prisma.$CarInsuranceDetailsPayload<ExtArgs>, T, "upsert">, never, ExtArgs>
|
|
|
|
|
|
/**
|
|
* Count the number of CarInsuranceDetails.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {CarInsuranceDetailsCountArgs} args - Arguments to filter CarInsuranceDetails to count.
|
|
* @example
|
|
* // Count the number of CarInsuranceDetails
|
|
* const count = await prisma.carInsuranceDetails.count({
|
|
* where: {
|
|
* // ... the filter for the CarInsuranceDetails we want to count
|
|
* }
|
|
* })
|
|
**/
|
|
count<T extends CarInsuranceDetailsCountArgs>(
|
|
args?: Subset<T, CarInsuranceDetailsCountArgs>,
|
|
): Prisma.PrismaPromise<
|
|
T extends $Utils.Record<'select', any>
|
|
? T['select'] extends true
|
|
? number
|
|
: GetScalarType<T['select'], CarInsuranceDetailsCountAggregateOutputType>
|
|
: number
|
|
>
|
|
|
|
/**
|
|
* Allows you to perform aggregations operations on a CarInsuranceDetails.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {CarInsuranceDetailsAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
|
|
* @example
|
|
* // Ordered by age ascending
|
|
* // Where email contains prisma.io
|
|
* // Limited to the 10 users
|
|
* const aggregations = await prisma.user.aggregate({
|
|
* _avg: {
|
|
* age: true,
|
|
* },
|
|
* where: {
|
|
* email: {
|
|
* contains: "prisma.io",
|
|
* },
|
|
* },
|
|
* orderBy: {
|
|
* age: "asc",
|
|
* },
|
|
* take: 10,
|
|
* })
|
|
**/
|
|
aggregate<T extends CarInsuranceDetailsAggregateArgs>(args: Subset<T, CarInsuranceDetailsAggregateArgs>): Prisma.PrismaPromise<GetCarInsuranceDetailsAggregateType<T>>
|
|
|
|
/**
|
|
* Group by CarInsuranceDetails.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {CarInsuranceDetailsGroupByArgs} args - Group by arguments.
|
|
* @example
|
|
* // Group by city, order by createdAt, get count
|
|
* const result = await prisma.user.groupBy({
|
|
* by: ['city', 'createdAt'],
|
|
* orderBy: {
|
|
* createdAt: true
|
|
* },
|
|
* _count: {
|
|
* _all: true
|
|
* },
|
|
* })
|
|
*
|
|
**/
|
|
groupBy<
|
|
T extends CarInsuranceDetailsGroupByArgs,
|
|
HasSelectOrTake extends Or<
|
|
Extends<'skip', Keys<T>>,
|
|
Extends<'take', Keys<T>>
|
|
>,
|
|
OrderByArg extends True extends HasSelectOrTake
|
|
? { orderBy: CarInsuranceDetailsGroupByArgs['orderBy'] }
|
|
: { orderBy?: CarInsuranceDetailsGroupByArgs['orderBy'] },
|
|
OrderFields extends ExcludeUnderscoreKeys<Keys<MaybeTupleToUnion<T['orderBy']>>>,
|
|
ByFields extends MaybeTupleToUnion<T['by']>,
|
|
ByValid extends Has<ByFields, OrderFields>,
|
|
HavingFields extends GetHavingFields<T['having']>,
|
|
HavingValid extends Has<ByFields, HavingFields>,
|
|
ByEmpty extends T['by'] extends never[] ? True : False,
|
|
InputErrors extends ByEmpty extends True
|
|
? `Error: "by" must not be empty.`
|
|
: HavingValid extends False
|
|
? {
|
|
[P in HavingFields]: P extends ByFields
|
|
? never
|
|
: P extends string
|
|
? `Error: Field "${P}" used in "having" needs to be provided in "by".`
|
|
: [
|
|
Error,
|
|
'Field ',
|
|
P,
|
|
` in "having" needs to be provided in "by"`,
|
|
]
|
|
}[HavingFields]
|
|
: 'take' extends Keys<T>
|
|
? 'orderBy' extends Keys<T>
|
|
? ByValid extends True
|
|
? {}
|
|
: {
|
|
[P in OrderFields]: P extends ByFields
|
|
? never
|
|
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
|
|
}[OrderFields]
|
|
: 'Error: If you provide "take", you also need to provide "orderBy"'
|
|
: 'skip' extends Keys<T>
|
|
? 'orderBy' extends Keys<T>
|
|
? ByValid extends True
|
|
? {}
|
|
: {
|
|
[P in OrderFields]: P extends ByFields
|
|
? never
|
|
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
|
|
}[OrderFields]
|
|
: 'Error: If you provide "skip", you also need to provide "orderBy"'
|
|
: ByValid extends True
|
|
? {}
|
|
: {
|
|
[P in OrderFields]: P extends ByFields
|
|
? never
|
|
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
|
|
}[OrderFields]
|
|
>(args: SubsetIntersection<T, CarInsuranceDetailsGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetCarInsuranceDetailsGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
|
|
/**
|
|
* Fields of the CarInsuranceDetails model
|
|
*/
|
|
readonly fields: CarInsuranceDetailsFieldRefs;
|
|
}
|
|
|
|
/**
|
|
* The delegate class that acts as a "Promise-like" for CarInsuranceDetails.
|
|
* Why is this prefixed with `Prisma__`?
|
|
* Because we want to prevent naming conflicts as mentioned in
|
|
* https://github.com/prisma/prisma-client-js/issues/707
|
|
*/
|
|
export interface Prisma__CarInsuranceDetailsClient<T, Null = never, ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> extends Prisma.PrismaPromise<T> {
|
|
readonly [Symbol.toStringTag]: "PrismaPromise"
|
|
contract<T extends ContractDefaultArgs<ExtArgs> = {}>(args?: Subset<T, ContractDefaultArgs<ExtArgs>>): Prisma__ContractClient<$Result.GetResult<Prisma.$ContractPayload<ExtArgs>, T, "findUniqueOrThrow"> | Null, Null, ExtArgs>
|
|
/**
|
|
* Attaches callbacks for the resolution and/or rejection of the Promise.
|
|
* @param onfulfilled The callback to execute when the Promise is resolved.
|
|
* @param onrejected The callback to execute when the Promise is rejected.
|
|
* @returns A Promise for the completion of which ever callback is executed.
|
|
*/
|
|
then<TResult1 = T, TResult2 = never>(onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined | null): $Utils.JsPromise<TResult1 | TResult2>
|
|
/**
|
|
* Attaches a callback for only the rejection of the Promise.
|
|
* @param onrejected The callback to execute when the Promise is rejected.
|
|
* @returns A Promise for the completion of the callback.
|
|
*/
|
|
catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): $Utils.JsPromise<T | TResult>
|
|
/**
|
|
* Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
|
|
* resolved value cannot be modified from the callback.
|
|
* @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
|
|
* @returns A Promise for the completion of the callback.
|
|
*/
|
|
finally(onfinally?: (() => void) | undefined | null): $Utils.JsPromise<T>
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
* Fields of the CarInsuranceDetails model
|
|
*/
|
|
interface CarInsuranceDetailsFieldRefs {
|
|
readonly id: FieldRef<"CarInsuranceDetails", 'Int'>
|
|
readonly contractId: FieldRef<"CarInsuranceDetails", 'Int'>
|
|
readonly licensePlate: FieldRef<"CarInsuranceDetails", 'String'>
|
|
readonly hsn: FieldRef<"CarInsuranceDetails", 'String'>
|
|
readonly tsn: FieldRef<"CarInsuranceDetails", 'String'>
|
|
readonly vin: FieldRef<"CarInsuranceDetails", 'String'>
|
|
readonly vehicleType: FieldRef<"CarInsuranceDetails", 'String'>
|
|
readonly firstRegistration: FieldRef<"CarInsuranceDetails", 'DateTime'>
|
|
readonly noClaimsClass: FieldRef<"CarInsuranceDetails", 'String'>
|
|
readonly insuranceType: FieldRef<"CarInsuranceDetails", 'InsuranceType'>
|
|
readonly deductiblePartial: FieldRef<"CarInsuranceDetails", 'Float'>
|
|
readonly deductibleFull: FieldRef<"CarInsuranceDetails", 'Float'>
|
|
readonly policyNumber: FieldRef<"CarInsuranceDetails", 'String'>
|
|
readonly previousInsurer: FieldRef<"CarInsuranceDetails", 'String'>
|
|
}
|
|
|
|
|
|
// Custom InputTypes
|
|
/**
|
|
* CarInsuranceDetails findUnique
|
|
*/
|
|
export type CarInsuranceDetailsFindUniqueArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the CarInsuranceDetails
|
|
*/
|
|
select?: CarInsuranceDetailsSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: CarInsuranceDetailsInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which CarInsuranceDetails to fetch.
|
|
*/
|
|
where: CarInsuranceDetailsWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* CarInsuranceDetails findUniqueOrThrow
|
|
*/
|
|
export type CarInsuranceDetailsFindUniqueOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the CarInsuranceDetails
|
|
*/
|
|
select?: CarInsuranceDetailsSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: CarInsuranceDetailsInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which CarInsuranceDetails to fetch.
|
|
*/
|
|
where: CarInsuranceDetailsWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* CarInsuranceDetails findFirst
|
|
*/
|
|
export type CarInsuranceDetailsFindFirstArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the CarInsuranceDetails
|
|
*/
|
|
select?: CarInsuranceDetailsSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: CarInsuranceDetailsInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which CarInsuranceDetails to fetch.
|
|
*/
|
|
where?: CarInsuranceDetailsWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of CarInsuranceDetails to fetch.
|
|
*/
|
|
orderBy?: CarInsuranceDetailsOrderByWithRelationInput | CarInsuranceDetailsOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for searching for CarInsuranceDetails.
|
|
*/
|
|
cursor?: CarInsuranceDetailsWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` CarInsuranceDetails from the position of the cursor.
|
|
*/
|
|
take?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Skip the first `n` CarInsuranceDetails.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
*
|
|
* Filter by unique combinations of CarInsuranceDetails.
|
|
*/
|
|
distinct?: CarInsuranceDetailsScalarFieldEnum | CarInsuranceDetailsScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* CarInsuranceDetails findFirstOrThrow
|
|
*/
|
|
export type CarInsuranceDetailsFindFirstOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the CarInsuranceDetails
|
|
*/
|
|
select?: CarInsuranceDetailsSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: CarInsuranceDetailsInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which CarInsuranceDetails to fetch.
|
|
*/
|
|
where?: CarInsuranceDetailsWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of CarInsuranceDetails to fetch.
|
|
*/
|
|
orderBy?: CarInsuranceDetailsOrderByWithRelationInput | CarInsuranceDetailsOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for searching for CarInsuranceDetails.
|
|
*/
|
|
cursor?: CarInsuranceDetailsWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` CarInsuranceDetails from the position of the cursor.
|
|
*/
|
|
take?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Skip the first `n` CarInsuranceDetails.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
*
|
|
* Filter by unique combinations of CarInsuranceDetails.
|
|
*/
|
|
distinct?: CarInsuranceDetailsScalarFieldEnum | CarInsuranceDetailsScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* CarInsuranceDetails findMany
|
|
*/
|
|
export type CarInsuranceDetailsFindManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the CarInsuranceDetails
|
|
*/
|
|
select?: CarInsuranceDetailsSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: CarInsuranceDetailsInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which CarInsuranceDetails to fetch.
|
|
*/
|
|
where?: CarInsuranceDetailsWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of CarInsuranceDetails to fetch.
|
|
*/
|
|
orderBy?: CarInsuranceDetailsOrderByWithRelationInput | CarInsuranceDetailsOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for listing CarInsuranceDetails.
|
|
*/
|
|
cursor?: CarInsuranceDetailsWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` CarInsuranceDetails from the position of the cursor.
|
|
*/
|
|
take?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Skip the first `n` CarInsuranceDetails.
|
|
*/
|
|
skip?: number
|
|
distinct?: CarInsuranceDetailsScalarFieldEnum | CarInsuranceDetailsScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* CarInsuranceDetails create
|
|
*/
|
|
export type CarInsuranceDetailsCreateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the CarInsuranceDetails
|
|
*/
|
|
select?: CarInsuranceDetailsSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: CarInsuranceDetailsInclude<ExtArgs> | null
|
|
/**
|
|
* The data needed to create a CarInsuranceDetails.
|
|
*/
|
|
data: XOR<CarInsuranceDetailsCreateInput, CarInsuranceDetailsUncheckedCreateInput>
|
|
}
|
|
|
|
/**
|
|
* CarInsuranceDetails createMany
|
|
*/
|
|
export type CarInsuranceDetailsCreateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* The data used to create many CarInsuranceDetails.
|
|
*/
|
|
data: CarInsuranceDetailsCreateManyInput | CarInsuranceDetailsCreateManyInput[]
|
|
skipDuplicates?: boolean
|
|
}
|
|
|
|
/**
|
|
* CarInsuranceDetails update
|
|
*/
|
|
export type CarInsuranceDetailsUpdateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the CarInsuranceDetails
|
|
*/
|
|
select?: CarInsuranceDetailsSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: CarInsuranceDetailsInclude<ExtArgs> | null
|
|
/**
|
|
* The data needed to update a CarInsuranceDetails.
|
|
*/
|
|
data: XOR<CarInsuranceDetailsUpdateInput, CarInsuranceDetailsUncheckedUpdateInput>
|
|
/**
|
|
* Choose, which CarInsuranceDetails to update.
|
|
*/
|
|
where: CarInsuranceDetailsWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* CarInsuranceDetails updateMany
|
|
*/
|
|
export type CarInsuranceDetailsUpdateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* The data used to update CarInsuranceDetails.
|
|
*/
|
|
data: XOR<CarInsuranceDetailsUpdateManyMutationInput, CarInsuranceDetailsUncheckedUpdateManyInput>
|
|
/**
|
|
* Filter which CarInsuranceDetails to update
|
|
*/
|
|
where?: CarInsuranceDetailsWhereInput
|
|
}
|
|
|
|
/**
|
|
* CarInsuranceDetails upsert
|
|
*/
|
|
export type CarInsuranceDetailsUpsertArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the CarInsuranceDetails
|
|
*/
|
|
select?: CarInsuranceDetailsSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: CarInsuranceDetailsInclude<ExtArgs> | null
|
|
/**
|
|
* The filter to search for the CarInsuranceDetails to update in case it exists.
|
|
*/
|
|
where: CarInsuranceDetailsWhereUniqueInput
|
|
/**
|
|
* In case the CarInsuranceDetails found by the `where` argument doesn't exist, create a new CarInsuranceDetails with this data.
|
|
*/
|
|
create: XOR<CarInsuranceDetailsCreateInput, CarInsuranceDetailsUncheckedCreateInput>
|
|
/**
|
|
* In case the CarInsuranceDetails was found with the provided `where` argument, update it with this data.
|
|
*/
|
|
update: XOR<CarInsuranceDetailsUpdateInput, CarInsuranceDetailsUncheckedUpdateInput>
|
|
}
|
|
|
|
/**
|
|
* CarInsuranceDetails delete
|
|
*/
|
|
export type CarInsuranceDetailsDeleteArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the CarInsuranceDetails
|
|
*/
|
|
select?: CarInsuranceDetailsSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: CarInsuranceDetailsInclude<ExtArgs> | null
|
|
/**
|
|
* Filter which CarInsuranceDetails to delete.
|
|
*/
|
|
where: CarInsuranceDetailsWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* CarInsuranceDetails deleteMany
|
|
*/
|
|
export type CarInsuranceDetailsDeleteManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Filter which CarInsuranceDetails to delete
|
|
*/
|
|
where?: CarInsuranceDetailsWhereInput
|
|
}
|
|
|
|
/**
|
|
* CarInsuranceDetails without action
|
|
*/
|
|
export type CarInsuranceDetailsDefaultArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the CarInsuranceDetails
|
|
*/
|
|
select?: CarInsuranceDetailsSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: CarInsuranceDetailsInclude<ExtArgs> | null
|
|
}
|
|
|
|
|
|
/**
|
|
* Enums
|
|
*/
|
|
|
|
export const TransactionIsolationLevel: {
|
|
ReadUncommitted: 'ReadUncommitted',
|
|
ReadCommitted: 'ReadCommitted',
|
|
RepeatableRead: 'RepeatableRead',
|
|
Serializable: 'Serializable'
|
|
};
|
|
|
|
export type TransactionIsolationLevel = (typeof TransactionIsolationLevel)[keyof typeof TransactionIsolationLevel]
|
|
|
|
|
|
export const AppSettingScalarFieldEnum: {
|
|
id: 'id',
|
|
key: 'key',
|
|
value: 'value',
|
|
createdAt: 'createdAt',
|
|
updatedAt: 'updatedAt'
|
|
};
|
|
|
|
export type AppSettingScalarFieldEnum = (typeof AppSettingScalarFieldEnum)[keyof typeof AppSettingScalarFieldEnum]
|
|
|
|
|
|
export const UserScalarFieldEnum: {
|
|
id: 'id',
|
|
email: 'email',
|
|
password: 'password',
|
|
firstName: 'firstName',
|
|
lastName: 'lastName',
|
|
isActive: 'isActive',
|
|
tokenInvalidatedAt: 'tokenInvalidatedAt',
|
|
customerId: 'customerId',
|
|
createdAt: 'createdAt',
|
|
updatedAt: 'updatedAt'
|
|
};
|
|
|
|
export type UserScalarFieldEnum = (typeof UserScalarFieldEnum)[keyof typeof UserScalarFieldEnum]
|
|
|
|
|
|
export const RoleScalarFieldEnum: {
|
|
id: 'id',
|
|
name: 'name',
|
|
description: 'description',
|
|
createdAt: 'createdAt',
|
|
updatedAt: 'updatedAt'
|
|
};
|
|
|
|
export type RoleScalarFieldEnum = (typeof RoleScalarFieldEnum)[keyof typeof RoleScalarFieldEnum]
|
|
|
|
|
|
export const PermissionScalarFieldEnum: {
|
|
id: 'id',
|
|
resource: 'resource',
|
|
action: 'action'
|
|
};
|
|
|
|
export type PermissionScalarFieldEnum = (typeof PermissionScalarFieldEnum)[keyof typeof PermissionScalarFieldEnum]
|
|
|
|
|
|
export const RolePermissionScalarFieldEnum: {
|
|
roleId: 'roleId',
|
|
permissionId: 'permissionId'
|
|
};
|
|
|
|
export type RolePermissionScalarFieldEnum = (typeof RolePermissionScalarFieldEnum)[keyof typeof RolePermissionScalarFieldEnum]
|
|
|
|
|
|
export const UserRoleScalarFieldEnum: {
|
|
userId: 'userId',
|
|
roleId: 'roleId'
|
|
};
|
|
|
|
export type UserRoleScalarFieldEnum = (typeof UserRoleScalarFieldEnum)[keyof typeof UserRoleScalarFieldEnum]
|
|
|
|
|
|
export const CustomerScalarFieldEnum: {
|
|
id: 'id',
|
|
customerNumber: 'customerNumber',
|
|
type: 'type',
|
|
salutation: 'salutation',
|
|
firstName: 'firstName',
|
|
lastName: 'lastName',
|
|
companyName: 'companyName',
|
|
foundingDate: 'foundingDate',
|
|
birthDate: 'birthDate',
|
|
birthPlace: 'birthPlace',
|
|
email: 'email',
|
|
phone: 'phone',
|
|
mobile: 'mobile',
|
|
taxNumber: 'taxNumber',
|
|
businessRegistrationPath: 'businessRegistrationPath',
|
|
commercialRegisterPath: 'commercialRegisterPath',
|
|
commercialRegisterNumber: 'commercialRegisterNumber',
|
|
privacyPolicyPath: 'privacyPolicyPath',
|
|
notes: 'notes',
|
|
portalEnabled: 'portalEnabled',
|
|
portalEmail: 'portalEmail',
|
|
portalPasswordHash: 'portalPasswordHash',
|
|
portalPasswordEncrypted: 'portalPasswordEncrypted',
|
|
portalLastLogin: 'portalLastLogin',
|
|
createdAt: 'createdAt',
|
|
updatedAt: 'updatedAt'
|
|
};
|
|
|
|
export type CustomerScalarFieldEnum = (typeof CustomerScalarFieldEnum)[keyof typeof CustomerScalarFieldEnum]
|
|
|
|
|
|
export const CustomerRepresentativeScalarFieldEnum: {
|
|
id: 'id',
|
|
customerId: 'customerId',
|
|
representativeId: 'representativeId',
|
|
notes: 'notes',
|
|
isActive: 'isActive',
|
|
createdAt: 'createdAt',
|
|
updatedAt: 'updatedAt'
|
|
};
|
|
|
|
export type CustomerRepresentativeScalarFieldEnum = (typeof CustomerRepresentativeScalarFieldEnum)[keyof typeof CustomerRepresentativeScalarFieldEnum]
|
|
|
|
|
|
export const AddressScalarFieldEnum: {
|
|
id: 'id',
|
|
customerId: 'customerId',
|
|
type: 'type',
|
|
street: 'street',
|
|
houseNumber: 'houseNumber',
|
|
postalCode: 'postalCode',
|
|
city: 'city',
|
|
country: 'country',
|
|
isDefault: 'isDefault',
|
|
createdAt: 'createdAt',
|
|
updatedAt: 'updatedAt'
|
|
};
|
|
|
|
export type AddressScalarFieldEnum = (typeof AddressScalarFieldEnum)[keyof typeof AddressScalarFieldEnum]
|
|
|
|
|
|
export const BankCardScalarFieldEnum: {
|
|
id: 'id',
|
|
customerId: 'customerId',
|
|
accountHolder: 'accountHolder',
|
|
iban: 'iban',
|
|
bic: 'bic',
|
|
bankName: 'bankName',
|
|
expiryDate: 'expiryDate',
|
|
documentPath: 'documentPath',
|
|
isActive: 'isActive',
|
|
createdAt: 'createdAt',
|
|
updatedAt: 'updatedAt'
|
|
};
|
|
|
|
export type BankCardScalarFieldEnum = (typeof BankCardScalarFieldEnum)[keyof typeof BankCardScalarFieldEnum]
|
|
|
|
|
|
export const IdentityDocumentScalarFieldEnum: {
|
|
id: 'id',
|
|
customerId: 'customerId',
|
|
type: 'type',
|
|
documentNumber: 'documentNumber',
|
|
issuingAuthority: 'issuingAuthority',
|
|
issueDate: 'issueDate',
|
|
expiryDate: 'expiryDate',
|
|
documentPath: 'documentPath',
|
|
isActive: 'isActive',
|
|
licenseClasses: 'licenseClasses',
|
|
licenseIssueDate: 'licenseIssueDate',
|
|
createdAt: 'createdAt',
|
|
updatedAt: 'updatedAt'
|
|
};
|
|
|
|
export type IdentityDocumentScalarFieldEnum = (typeof IdentityDocumentScalarFieldEnum)[keyof typeof IdentityDocumentScalarFieldEnum]
|
|
|
|
|
|
export const EmailProviderConfigScalarFieldEnum: {
|
|
id: 'id',
|
|
name: 'name',
|
|
type: 'type',
|
|
apiUrl: 'apiUrl',
|
|
apiKey: 'apiKey',
|
|
username: 'username',
|
|
passwordEncrypted: 'passwordEncrypted',
|
|
domain: 'domain',
|
|
defaultForwardEmail: 'defaultForwardEmail',
|
|
imapServer: 'imapServer',
|
|
imapPort: 'imapPort',
|
|
smtpServer: 'smtpServer',
|
|
smtpPort: 'smtpPort',
|
|
imapEncryption: 'imapEncryption',
|
|
smtpEncryption: 'smtpEncryption',
|
|
allowSelfSignedCerts: 'allowSelfSignedCerts',
|
|
isActive: 'isActive',
|
|
isDefault: 'isDefault',
|
|
createdAt: 'createdAt',
|
|
updatedAt: 'updatedAt'
|
|
};
|
|
|
|
export type EmailProviderConfigScalarFieldEnum = (typeof EmailProviderConfigScalarFieldEnum)[keyof typeof EmailProviderConfigScalarFieldEnum]
|
|
|
|
|
|
export const StressfreiEmailScalarFieldEnum: {
|
|
id: 'id',
|
|
customerId: 'customerId',
|
|
email: 'email',
|
|
platform: 'platform',
|
|
notes: 'notes',
|
|
isActive: 'isActive',
|
|
isProvisioned: 'isProvisioned',
|
|
provisionedAt: 'provisionedAt',
|
|
provisionError: 'provisionError',
|
|
hasMailbox: 'hasMailbox',
|
|
emailPasswordEncrypted: 'emailPasswordEncrypted',
|
|
createdAt: 'createdAt',
|
|
updatedAt: 'updatedAt'
|
|
};
|
|
|
|
export type StressfreiEmailScalarFieldEnum = (typeof StressfreiEmailScalarFieldEnum)[keyof typeof StressfreiEmailScalarFieldEnum]
|
|
|
|
|
|
export const CachedEmailScalarFieldEnum: {
|
|
id: 'id',
|
|
stressfreiEmailId: 'stressfreiEmailId',
|
|
folder: 'folder',
|
|
messageId: 'messageId',
|
|
uid: 'uid',
|
|
subject: 'subject',
|
|
fromAddress: 'fromAddress',
|
|
fromName: 'fromName',
|
|
toAddresses: 'toAddresses',
|
|
ccAddresses: 'ccAddresses',
|
|
receivedAt: 'receivedAt',
|
|
textBody: 'textBody',
|
|
htmlBody: 'htmlBody',
|
|
hasAttachments: 'hasAttachments',
|
|
attachmentNames: 'attachmentNames',
|
|
contractId: 'contractId',
|
|
assignedAt: 'assignedAt',
|
|
assignedBy: 'assignedBy',
|
|
isAutoAssigned: 'isAutoAssigned',
|
|
isRead: 'isRead',
|
|
isStarred: 'isStarred',
|
|
isDeleted: 'isDeleted',
|
|
deletedAt: 'deletedAt',
|
|
createdAt: 'createdAt',
|
|
updatedAt: 'updatedAt'
|
|
};
|
|
|
|
export type CachedEmailScalarFieldEnum = (typeof CachedEmailScalarFieldEnum)[keyof typeof CachedEmailScalarFieldEnum]
|
|
|
|
|
|
export const MeterScalarFieldEnum: {
|
|
id: 'id',
|
|
customerId: 'customerId',
|
|
meterNumber: 'meterNumber',
|
|
type: 'type',
|
|
location: 'location',
|
|
isActive: 'isActive',
|
|
createdAt: 'createdAt',
|
|
updatedAt: 'updatedAt'
|
|
};
|
|
|
|
export type MeterScalarFieldEnum = (typeof MeterScalarFieldEnum)[keyof typeof MeterScalarFieldEnum]
|
|
|
|
|
|
export const MeterReadingScalarFieldEnum: {
|
|
id: 'id',
|
|
meterId: 'meterId',
|
|
readingDate: 'readingDate',
|
|
value: 'value',
|
|
unit: 'unit',
|
|
notes: 'notes',
|
|
createdAt: 'createdAt'
|
|
};
|
|
|
|
export type MeterReadingScalarFieldEnum = (typeof MeterReadingScalarFieldEnum)[keyof typeof MeterReadingScalarFieldEnum]
|
|
|
|
|
|
export const SalesPlatformScalarFieldEnum: {
|
|
id: 'id',
|
|
name: 'name',
|
|
contactInfo: 'contactInfo',
|
|
isActive: 'isActive',
|
|
createdAt: 'createdAt',
|
|
updatedAt: 'updatedAt'
|
|
};
|
|
|
|
export type SalesPlatformScalarFieldEnum = (typeof SalesPlatformScalarFieldEnum)[keyof typeof SalesPlatformScalarFieldEnum]
|
|
|
|
|
|
export const CancellationPeriodScalarFieldEnum: {
|
|
id: 'id',
|
|
code: 'code',
|
|
description: 'description',
|
|
isActive: 'isActive',
|
|
createdAt: 'createdAt',
|
|
updatedAt: 'updatedAt'
|
|
};
|
|
|
|
export type CancellationPeriodScalarFieldEnum = (typeof CancellationPeriodScalarFieldEnum)[keyof typeof CancellationPeriodScalarFieldEnum]
|
|
|
|
|
|
export const ContractDurationScalarFieldEnum: {
|
|
id: 'id',
|
|
code: 'code',
|
|
description: 'description',
|
|
isActive: 'isActive',
|
|
createdAt: 'createdAt',
|
|
updatedAt: 'updatedAt'
|
|
};
|
|
|
|
export type ContractDurationScalarFieldEnum = (typeof ContractDurationScalarFieldEnum)[keyof typeof ContractDurationScalarFieldEnum]
|
|
|
|
|
|
export const ProviderScalarFieldEnum: {
|
|
id: 'id',
|
|
name: 'name',
|
|
portalUrl: 'portalUrl',
|
|
usernameFieldName: 'usernameFieldName',
|
|
passwordFieldName: 'passwordFieldName',
|
|
isActive: 'isActive',
|
|
createdAt: 'createdAt',
|
|
updatedAt: 'updatedAt'
|
|
};
|
|
|
|
export type ProviderScalarFieldEnum = (typeof ProviderScalarFieldEnum)[keyof typeof ProviderScalarFieldEnum]
|
|
|
|
|
|
export const TariffScalarFieldEnum: {
|
|
id: 'id',
|
|
providerId: 'providerId',
|
|
name: 'name',
|
|
isActive: 'isActive',
|
|
createdAt: 'createdAt',
|
|
updatedAt: 'updatedAt'
|
|
};
|
|
|
|
export type TariffScalarFieldEnum = (typeof TariffScalarFieldEnum)[keyof typeof TariffScalarFieldEnum]
|
|
|
|
|
|
export const ContractCategoryScalarFieldEnum: {
|
|
id: 'id',
|
|
code: 'code',
|
|
name: 'name',
|
|
icon: 'icon',
|
|
color: 'color',
|
|
sortOrder: 'sortOrder',
|
|
isActive: 'isActive',
|
|
createdAt: 'createdAt',
|
|
updatedAt: 'updatedAt'
|
|
};
|
|
|
|
export type ContractCategoryScalarFieldEnum = (typeof ContractCategoryScalarFieldEnum)[keyof typeof ContractCategoryScalarFieldEnum]
|
|
|
|
|
|
export const ContractScalarFieldEnum: {
|
|
id: 'id',
|
|
contractNumber: 'contractNumber',
|
|
customerId: 'customerId',
|
|
type: 'type',
|
|
status: 'status',
|
|
contractCategoryId: 'contractCategoryId',
|
|
addressId: 'addressId',
|
|
billingAddressId: 'billingAddressId',
|
|
bankCardId: 'bankCardId',
|
|
identityDocumentId: 'identityDocumentId',
|
|
salesPlatformId: 'salesPlatformId',
|
|
cancellationPeriodId: 'cancellationPeriodId',
|
|
contractDurationId: 'contractDurationId',
|
|
previousContractId: 'previousContractId',
|
|
providerId: 'providerId',
|
|
tariffId: 'tariffId',
|
|
providerName: 'providerName',
|
|
tariffName: 'tariffName',
|
|
customerNumberAtProvider: 'customerNumberAtProvider',
|
|
priceFirst12Months: 'priceFirst12Months',
|
|
priceFrom13Months: 'priceFrom13Months',
|
|
priceAfter24Months: 'priceAfter24Months',
|
|
startDate: 'startDate',
|
|
endDate: 'endDate',
|
|
commission: 'commission',
|
|
cancellationLetterPath: 'cancellationLetterPath',
|
|
cancellationConfirmationPath: 'cancellationConfirmationPath',
|
|
cancellationLetterOptionsPath: 'cancellationLetterOptionsPath',
|
|
cancellationConfirmationOptionsPath: 'cancellationConfirmationOptionsPath',
|
|
cancellationConfirmationDate: 'cancellationConfirmationDate',
|
|
cancellationConfirmationOptionsDate: 'cancellationConfirmationOptionsDate',
|
|
wasSpecialCancellation: 'wasSpecialCancellation',
|
|
portalUsername: 'portalUsername',
|
|
portalPasswordEncrypted: 'portalPasswordEncrypted',
|
|
stressfreiEmailId: 'stressfreiEmailId',
|
|
notes: 'notes',
|
|
createdAt: 'createdAt',
|
|
updatedAt: 'updatedAt'
|
|
};
|
|
|
|
export type ContractScalarFieldEnum = (typeof ContractScalarFieldEnum)[keyof typeof ContractScalarFieldEnum]
|
|
|
|
|
|
export const ContractTaskScalarFieldEnum: {
|
|
id: 'id',
|
|
contractId: 'contractId',
|
|
title: 'title',
|
|
description: 'description',
|
|
status: 'status',
|
|
visibleInPortal: 'visibleInPortal',
|
|
createdBy: 'createdBy',
|
|
completedAt: 'completedAt',
|
|
createdAt: 'createdAt',
|
|
updatedAt: 'updatedAt'
|
|
};
|
|
|
|
export type ContractTaskScalarFieldEnum = (typeof ContractTaskScalarFieldEnum)[keyof typeof ContractTaskScalarFieldEnum]
|
|
|
|
|
|
export const ContractTaskSubtaskScalarFieldEnum: {
|
|
id: 'id',
|
|
taskId: 'taskId',
|
|
title: 'title',
|
|
status: 'status',
|
|
createdBy: 'createdBy',
|
|
completedAt: 'completedAt',
|
|
createdAt: 'createdAt',
|
|
updatedAt: 'updatedAt'
|
|
};
|
|
|
|
export type ContractTaskSubtaskScalarFieldEnum = (typeof ContractTaskSubtaskScalarFieldEnum)[keyof typeof ContractTaskSubtaskScalarFieldEnum]
|
|
|
|
|
|
export const EnergyContractDetailsScalarFieldEnum: {
|
|
id: 'id',
|
|
contractId: 'contractId',
|
|
meterId: 'meterId',
|
|
maloId: 'maloId',
|
|
annualConsumption: 'annualConsumption',
|
|
annualConsumptionKwh: 'annualConsumptionKwh',
|
|
basePrice: 'basePrice',
|
|
unitPrice: 'unitPrice',
|
|
bonus: 'bonus',
|
|
previousProviderName: 'previousProviderName',
|
|
previousCustomerNumber: 'previousCustomerNumber'
|
|
};
|
|
|
|
export type EnergyContractDetailsScalarFieldEnum = (typeof EnergyContractDetailsScalarFieldEnum)[keyof typeof EnergyContractDetailsScalarFieldEnum]
|
|
|
|
|
|
export const InternetContractDetailsScalarFieldEnum: {
|
|
id: 'id',
|
|
contractId: 'contractId',
|
|
downloadSpeed: 'downloadSpeed',
|
|
uploadSpeed: 'uploadSpeed',
|
|
routerModel: 'routerModel',
|
|
routerSerialNumber: 'routerSerialNumber',
|
|
installationDate: 'installationDate',
|
|
internetUsername: 'internetUsername',
|
|
internetPasswordEncrypted: 'internetPasswordEncrypted',
|
|
homeId: 'homeId',
|
|
activationCode: 'activationCode'
|
|
};
|
|
|
|
export type InternetContractDetailsScalarFieldEnum = (typeof InternetContractDetailsScalarFieldEnum)[keyof typeof InternetContractDetailsScalarFieldEnum]
|
|
|
|
|
|
export const PhoneNumberScalarFieldEnum: {
|
|
id: 'id',
|
|
internetContractDetailsId: 'internetContractDetailsId',
|
|
phoneNumber: 'phoneNumber',
|
|
isMain: 'isMain',
|
|
sipUsername: 'sipUsername',
|
|
sipPasswordEncrypted: 'sipPasswordEncrypted',
|
|
sipServer: 'sipServer'
|
|
};
|
|
|
|
export type PhoneNumberScalarFieldEnum = (typeof PhoneNumberScalarFieldEnum)[keyof typeof PhoneNumberScalarFieldEnum]
|
|
|
|
|
|
export const MobileContractDetailsScalarFieldEnum: {
|
|
id: 'id',
|
|
contractId: 'contractId',
|
|
requiresMultisim: 'requiresMultisim',
|
|
dataVolume: 'dataVolume',
|
|
includedMinutes: 'includedMinutes',
|
|
includedSMS: 'includedSMS',
|
|
deviceModel: 'deviceModel',
|
|
deviceImei: 'deviceImei',
|
|
phoneNumber: 'phoneNumber',
|
|
simCardNumber: 'simCardNumber'
|
|
};
|
|
|
|
export type MobileContractDetailsScalarFieldEnum = (typeof MobileContractDetailsScalarFieldEnum)[keyof typeof MobileContractDetailsScalarFieldEnum]
|
|
|
|
|
|
export const SimCardScalarFieldEnum: {
|
|
id: 'id',
|
|
mobileDetailsId: 'mobileDetailsId',
|
|
phoneNumber: 'phoneNumber',
|
|
simCardNumber: 'simCardNumber',
|
|
pin: 'pin',
|
|
puk: 'puk',
|
|
isMultisim: 'isMultisim',
|
|
isMain: 'isMain',
|
|
createdAt: 'createdAt',
|
|
updatedAt: 'updatedAt'
|
|
};
|
|
|
|
export type SimCardScalarFieldEnum = (typeof SimCardScalarFieldEnum)[keyof typeof SimCardScalarFieldEnum]
|
|
|
|
|
|
export const TvContractDetailsScalarFieldEnum: {
|
|
id: 'id',
|
|
contractId: 'contractId',
|
|
receiverModel: 'receiverModel',
|
|
smartcardNumber: 'smartcardNumber',
|
|
package: 'package'
|
|
};
|
|
|
|
export type TvContractDetailsScalarFieldEnum = (typeof TvContractDetailsScalarFieldEnum)[keyof typeof TvContractDetailsScalarFieldEnum]
|
|
|
|
|
|
export const CarInsuranceDetailsScalarFieldEnum: {
|
|
id: 'id',
|
|
contractId: 'contractId',
|
|
licensePlate: 'licensePlate',
|
|
hsn: 'hsn',
|
|
tsn: 'tsn',
|
|
vin: 'vin',
|
|
vehicleType: 'vehicleType',
|
|
firstRegistration: 'firstRegistration',
|
|
noClaimsClass: 'noClaimsClass',
|
|
insuranceType: 'insuranceType',
|
|
deductiblePartial: 'deductiblePartial',
|
|
deductibleFull: 'deductibleFull',
|
|
policyNumber: 'policyNumber',
|
|
previousInsurer: 'previousInsurer'
|
|
};
|
|
|
|
export type CarInsuranceDetailsScalarFieldEnum = (typeof CarInsuranceDetailsScalarFieldEnum)[keyof typeof CarInsuranceDetailsScalarFieldEnum]
|
|
|
|
|
|
export const SortOrder: {
|
|
asc: 'asc',
|
|
desc: 'desc'
|
|
};
|
|
|
|
export type SortOrder = (typeof SortOrder)[keyof typeof SortOrder]
|
|
|
|
|
|
export const NullsOrder: {
|
|
first: 'first',
|
|
last: 'last'
|
|
};
|
|
|
|
export type NullsOrder = (typeof NullsOrder)[keyof typeof NullsOrder]
|
|
|
|
|
|
/**
|
|
* Field references
|
|
*/
|
|
|
|
|
|
/**
|
|
* Reference to a field of type 'Int'
|
|
*/
|
|
export type IntFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'Int'>
|
|
|
|
|
|
|
|
/**
|
|
* Reference to a field of type 'String'
|
|
*/
|
|
export type StringFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'String'>
|
|
|
|
|
|
|
|
/**
|
|
* Reference to a field of type 'DateTime'
|
|
*/
|
|
export type DateTimeFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'DateTime'>
|
|
|
|
|
|
|
|
/**
|
|
* Reference to a field of type 'Boolean'
|
|
*/
|
|
export type BooleanFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'Boolean'>
|
|
|
|
|
|
|
|
/**
|
|
* Reference to a field of type 'CustomerType'
|
|
*/
|
|
export type EnumCustomerTypeFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'CustomerType'>
|
|
|
|
|
|
|
|
/**
|
|
* Reference to a field of type 'AddressType'
|
|
*/
|
|
export type EnumAddressTypeFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'AddressType'>
|
|
|
|
|
|
|
|
/**
|
|
* Reference to a field of type 'DocumentType'
|
|
*/
|
|
export type EnumDocumentTypeFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'DocumentType'>
|
|
|
|
|
|
|
|
/**
|
|
* Reference to a field of type 'EmailProviderType'
|
|
*/
|
|
export type EnumEmailProviderTypeFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'EmailProviderType'>
|
|
|
|
|
|
|
|
/**
|
|
* Reference to a field of type 'MailEncryption'
|
|
*/
|
|
export type EnumMailEncryptionFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'MailEncryption'>
|
|
|
|
|
|
|
|
/**
|
|
* Reference to a field of type 'EmailFolder'
|
|
*/
|
|
export type EnumEmailFolderFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'EmailFolder'>
|
|
|
|
|
|
|
|
/**
|
|
* Reference to a field of type 'MeterType'
|
|
*/
|
|
export type EnumMeterTypeFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'MeterType'>
|
|
|
|
|
|
|
|
/**
|
|
* Reference to a field of type 'Float'
|
|
*/
|
|
export type FloatFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'Float'>
|
|
|
|
|
|
|
|
/**
|
|
* Reference to a field of type 'ContractType'
|
|
*/
|
|
export type EnumContractTypeFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'ContractType'>
|
|
|
|
|
|
|
|
/**
|
|
* Reference to a field of type 'ContractStatus'
|
|
*/
|
|
export type EnumContractStatusFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'ContractStatus'>
|
|
|
|
|
|
|
|
/**
|
|
* Reference to a field of type 'ContractTaskStatus'
|
|
*/
|
|
export type EnumContractTaskStatusFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'ContractTaskStatus'>
|
|
|
|
|
|
|
|
/**
|
|
* Reference to a field of type 'InsuranceType'
|
|
*/
|
|
export type EnumInsuranceTypeFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'InsuranceType'>
|
|
|
|
/**
|
|
* Deep Input Types
|
|
*/
|
|
|
|
|
|
export type AppSettingWhereInput = {
|
|
AND?: AppSettingWhereInput | AppSettingWhereInput[]
|
|
OR?: AppSettingWhereInput[]
|
|
NOT?: AppSettingWhereInput | AppSettingWhereInput[]
|
|
id?: IntFilter<"AppSetting"> | number
|
|
key?: StringFilter<"AppSetting"> | string
|
|
value?: StringFilter<"AppSetting"> | string
|
|
createdAt?: DateTimeFilter<"AppSetting"> | Date | string
|
|
updatedAt?: DateTimeFilter<"AppSetting"> | Date | string
|
|
}
|
|
|
|
export type AppSettingOrderByWithRelationInput = {
|
|
id?: SortOrder
|
|
key?: SortOrder
|
|
value?: SortOrder
|
|
createdAt?: SortOrder
|
|
updatedAt?: SortOrder
|
|
}
|
|
|
|
export type AppSettingWhereUniqueInput = Prisma.AtLeast<{
|
|
id?: number
|
|
key?: string
|
|
AND?: AppSettingWhereInput | AppSettingWhereInput[]
|
|
OR?: AppSettingWhereInput[]
|
|
NOT?: AppSettingWhereInput | AppSettingWhereInput[]
|
|
value?: StringFilter<"AppSetting"> | string
|
|
createdAt?: DateTimeFilter<"AppSetting"> | Date | string
|
|
updatedAt?: DateTimeFilter<"AppSetting"> | Date | string
|
|
}, "id" | "key">
|
|
|
|
export type AppSettingOrderByWithAggregationInput = {
|
|
id?: SortOrder
|
|
key?: SortOrder
|
|
value?: SortOrder
|
|
createdAt?: SortOrder
|
|
updatedAt?: SortOrder
|
|
_count?: AppSettingCountOrderByAggregateInput
|
|
_avg?: AppSettingAvgOrderByAggregateInput
|
|
_max?: AppSettingMaxOrderByAggregateInput
|
|
_min?: AppSettingMinOrderByAggregateInput
|
|
_sum?: AppSettingSumOrderByAggregateInput
|
|
}
|
|
|
|
export type AppSettingScalarWhereWithAggregatesInput = {
|
|
AND?: AppSettingScalarWhereWithAggregatesInput | AppSettingScalarWhereWithAggregatesInput[]
|
|
OR?: AppSettingScalarWhereWithAggregatesInput[]
|
|
NOT?: AppSettingScalarWhereWithAggregatesInput | AppSettingScalarWhereWithAggregatesInput[]
|
|
id?: IntWithAggregatesFilter<"AppSetting"> | number
|
|
key?: StringWithAggregatesFilter<"AppSetting"> | string
|
|
value?: StringWithAggregatesFilter<"AppSetting"> | string
|
|
createdAt?: DateTimeWithAggregatesFilter<"AppSetting"> | Date | string
|
|
updatedAt?: DateTimeWithAggregatesFilter<"AppSetting"> | Date | string
|
|
}
|
|
|
|
export type UserWhereInput = {
|
|
AND?: UserWhereInput | UserWhereInput[]
|
|
OR?: UserWhereInput[]
|
|
NOT?: UserWhereInput | UserWhereInput[]
|
|
id?: IntFilter<"User"> | number
|
|
email?: StringFilter<"User"> | string
|
|
password?: StringFilter<"User"> | string
|
|
firstName?: StringFilter<"User"> | string
|
|
lastName?: StringFilter<"User"> | string
|
|
isActive?: BoolFilter<"User"> | boolean
|
|
tokenInvalidatedAt?: DateTimeNullableFilter<"User"> | Date | string | null
|
|
customerId?: IntNullableFilter<"User"> | number | null
|
|
createdAt?: DateTimeFilter<"User"> | Date | string
|
|
updatedAt?: DateTimeFilter<"User"> | Date | string
|
|
customer?: XOR<CustomerNullableRelationFilter, CustomerWhereInput> | null
|
|
roles?: UserRoleListRelationFilter
|
|
}
|
|
|
|
export type UserOrderByWithRelationInput = {
|
|
id?: SortOrder
|
|
email?: SortOrder
|
|
password?: SortOrder
|
|
firstName?: SortOrder
|
|
lastName?: SortOrder
|
|
isActive?: SortOrder
|
|
tokenInvalidatedAt?: SortOrderInput | SortOrder
|
|
customerId?: SortOrderInput | SortOrder
|
|
createdAt?: SortOrder
|
|
updatedAt?: SortOrder
|
|
customer?: CustomerOrderByWithRelationInput
|
|
roles?: UserRoleOrderByRelationAggregateInput
|
|
}
|
|
|
|
export type UserWhereUniqueInput = Prisma.AtLeast<{
|
|
id?: number
|
|
email?: string
|
|
customerId?: number
|
|
AND?: UserWhereInput | UserWhereInput[]
|
|
OR?: UserWhereInput[]
|
|
NOT?: UserWhereInput | UserWhereInput[]
|
|
password?: StringFilter<"User"> | string
|
|
firstName?: StringFilter<"User"> | string
|
|
lastName?: StringFilter<"User"> | string
|
|
isActive?: BoolFilter<"User"> | boolean
|
|
tokenInvalidatedAt?: DateTimeNullableFilter<"User"> | Date | string | null
|
|
createdAt?: DateTimeFilter<"User"> | Date | string
|
|
updatedAt?: DateTimeFilter<"User"> | Date | string
|
|
customer?: XOR<CustomerNullableRelationFilter, CustomerWhereInput> | null
|
|
roles?: UserRoleListRelationFilter
|
|
}, "id" | "email" | "customerId">
|
|
|
|
export type UserOrderByWithAggregationInput = {
|
|
id?: SortOrder
|
|
email?: SortOrder
|
|
password?: SortOrder
|
|
firstName?: SortOrder
|
|
lastName?: SortOrder
|
|
isActive?: SortOrder
|
|
tokenInvalidatedAt?: SortOrderInput | SortOrder
|
|
customerId?: SortOrderInput | SortOrder
|
|
createdAt?: SortOrder
|
|
updatedAt?: SortOrder
|
|
_count?: UserCountOrderByAggregateInput
|
|
_avg?: UserAvgOrderByAggregateInput
|
|
_max?: UserMaxOrderByAggregateInput
|
|
_min?: UserMinOrderByAggregateInput
|
|
_sum?: UserSumOrderByAggregateInput
|
|
}
|
|
|
|
export type UserScalarWhereWithAggregatesInput = {
|
|
AND?: UserScalarWhereWithAggregatesInput | UserScalarWhereWithAggregatesInput[]
|
|
OR?: UserScalarWhereWithAggregatesInput[]
|
|
NOT?: UserScalarWhereWithAggregatesInput | UserScalarWhereWithAggregatesInput[]
|
|
id?: IntWithAggregatesFilter<"User"> | number
|
|
email?: StringWithAggregatesFilter<"User"> | string
|
|
password?: StringWithAggregatesFilter<"User"> | string
|
|
firstName?: StringWithAggregatesFilter<"User"> | string
|
|
lastName?: StringWithAggregatesFilter<"User"> | string
|
|
isActive?: BoolWithAggregatesFilter<"User"> | boolean
|
|
tokenInvalidatedAt?: DateTimeNullableWithAggregatesFilter<"User"> | Date | string | null
|
|
customerId?: IntNullableWithAggregatesFilter<"User"> | number | null
|
|
createdAt?: DateTimeWithAggregatesFilter<"User"> | Date | string
|
|
updatedAt?: DateTimeWithAggregatesFilter<"User"> | Date | string
|
|
}
|
|
|
|
export type RoleWhereInput = {
|
|
AND?: RoleWhereInput | RoleWhereInput[]
|
|
OR?: RoleWhereInput[]
|
|
NOT?: RoleWhereInput | RoleWhereInput[]
|
|
id?: IntFilter<"Role"> | number
|
|
name?: StringFilter<"Role"> | string
|
|
description?: StringNullableFilter<"Role"> | string | null
|
|
createdAt?: DateTimeFilter<"Role"> | Date | string
|
|
updatedAt?: DateTimeFilter<"Role"> | Date | string
|
|
permissions?: RolePermissionListRelationFilter
|
|
users?: UserRoleListRelationFilter
|
|
}
|
|
|
|
export type RoleOrderByWithRelationInput = {
|
|
id?: SortOrder
|
|
name?: SortOrder
|
|
description?: SortOrderInput | SortOrder
|
|
createdAt?: SortOrder
|
|
updatedAt?: SortOrder
|
|
permissions?: RolePermissionOrderByRelationAggregateInput
|
|
users?: UserRoleOrderByRelationAggregateInput
|
|
}
|
|
|
|
export type RoleWhereUniqueInput = Prisma.AtLeast<{
|
|
id?: number
|
|
name?: string
|
|
AND?: RoleWhereInput | RoleWhereInput[]
|
|
OR?: RoleWhereInput[]
|
|
NOT?: RoleWhereInput | RoleWhereInput[]
|
|
description?: StringNullableFilter<"Role"> | string | null
|
|
createdAt?: DateTimeFilter<"Role"> | Date | string
|
|
updatedAt?: DateTimeFilter<"Role"> | Date | string
|
|
permissions?: RolePermissionListRelationFilter
|
|
users?: UserRoleListRelationFilter
|
|
}, "id" | "name">
|
|
|
|
export type RoleOrderByWithAggregationInput = {
|
|
id?: SortOrder
|
|
name?: SortOrder
|
|
description?: SortOrderInput | SortOrder
|
|
createdAt?: SortOrder
|
|
updatedAt?: SortOrder
|
|
_count?: RoleCountOrderByAggregateInput
|
|
_avg?: RoleAvgOrderByAggregateInput
|
|
_max?: RoleMaxOrderByAggregateInput
|
|
_min?: RoleMinOrderByAggregateInput
|
|
_sum?: RoleSumOrderByAggregateInput
|
|
}
|
|
|
|
export type RoleScalarWhereWithAggregatesInput = {
|
|
AND?: RoleScalarWhereWithAggregatesInput | RoleScalarWhereWithAggregatesInput[]
|
|
OR?: RoleScalarWhereWithAggregatesInput[]
|
|
NOT?: RoleScalarWhereWithAggregatesInput | RoleScalarWhereWithAggregatesInput[]
|
|
id?: IntWithAggregatesFilter<"Role"> | number
|
|
name?: StringWithAggregatesFilter<"Role"> | string
|
|
description?: StringNullableWithAggregatesFilter<"Role"> | string | null
|
|
createdAt?: DateTimeWithAggregatesFilter<"Role"> | Date | string
|
|
updatedAt?: DateTimeWithAggregatesFilter<"Role"> | Date | string
|
|
}
|
|
|
|
export type PermissionWhereInput = {
|
|
AND?: PermissionWhereInput | PermissionWhereInput[]
|
|
OR?: PermissionWhereInput[]
|
|
NOT?: PermissionWhereInput | PermissionWhereInput[]
|
|
id?: IntFilter<"Permission"> | number
|
|
resource?: StringFilter<"Permission"> | string
|
|
action?: StringFilter<"Permission"> | string
|
|
roles?: RolePermissionListRelationFilter
|
|
}
|
|
|
|
export type PermissionOrderByWithRelationInput = {
|
|
id?: SortOrder
|
|
resource?: SortOrder
|
|
action?: SortOrder
|
|
roles?: RolePermissionOrderByRelationAggregateInput
|
|
}
|
|
|
|
export type PermissionWhereUniqueInput = Prisma.AtLeast<{
|
|
id?: number
|
|
resource_action?: PermissionResourceActionCompoundUniqueInput
|
|
AND?: PermissionWhereInput | PermissionWhereInput[]
|
|
OR?: PermissionWhereInput[]
|
|
NOT?: PermissionWhereInput | PermissionWhereInput[]
|
|
resource?: StringFilter<"Permission"> | string
|
|
action?: StringFilter<"Permission"> | string
|
|
roles?: RolePermissionListRelationFilter
|
|
}, "id" | "resource_action">
|
|
|
|
export type PermissionOrderByWithAggregationInput = {
|
|
id?: SortOrder
|
|
resource?: SortOrder
|
|
action?: SortOrder
|
|
_count?: PermissionCountOrderByAggregateInput
|
|
_avg?: PermissionAvgOrderByAggregateInput
|
|
_max?: PermissionMaxOrderByAggregateInput
|
|
_min?: PermissionMinOrderByAggregateInput
|
|
_sum?: PermissionSumOrderByAggregateInput
|
|
}
|
|
|
|
export type PermissionScalarWhereWithAggregatesInput = {
|
|
AND?: PermissionScalarWhereWithAggregatesInput | PermissionScalarWhereWithAggregatesInput[]
|
|
OR?: PermissionScalarWhereWithAggregatesInput[]
|
|
NOT?: PermissionScalarWhereWithAggregatesInput | PermissionScalarWhereWithAggregatesInput[]
|
|
id?: IntWithAggregatesFilter<"Permission"> | number
|
|
resource?: StringWithAggregatesFilter<"Permission"> | string
|
|
action?: StringWithAggregatesFilter<"Permission"> | string
|
|
}
|
|
|
|
export type RolePermissionWhereInput = {
|
|
AND?: RolePermissionWhereInput | RolePermissionWhereInput[]
|
|
OR?: RolePermissionWhereInput[]
|
|
NOT?: RolePermissionWhereInput | RolePermissionWhereInput[]
|
|
roleId?: IntFilter<"RolePermission"> | number
|
|
permissionId?: IntFilter<"RolePermission"> | number
|
|
role?: XOR<RoleRelationFilter, RoleWhereInput>
|
|
permission?: XOR<PermissionRelationFilter, PermissionWhereInput>
|
|
}
|
|
|
|
export type RolePermissionOrderByWithRelationInput = {
|
|
roleId?: SortOrder
|
|
permissionId?: SortOrder
|
|
role?: RoleOrderByWithRelationInput
|
|
permission?: PermissionOrderByWithRelationInput
|
|
}
|
|
|
|
export type RolePermissionWhereUniqueInput = Prisma.AtLeast<{
|
|
roleId_permissionId?: RolePermissionRoleIdPermissionIdCompoundUniqueInput
|
|
AND?: RolePermissionWhereInput | RolePermissionWhereInput[]
|
|
OR?: RolePermissionWhereInput[]
|
|
NOT?: RolePermissionWhereInput | RolePermissionWhereInput[]
|
|
roleId?: IntFilter<"RolePermission"> | number
|
|
permissionId?: IntFilter<"RolePermission"> | number
|
|
role?: XOR<RoleRelationFilter, RoleWhereInput>
|
|
permission?: XOR<PermissionRelationFilter, PermissionWhereInput>
|
|
}, "roleId_permissionId">
|
|
|
|
export type RolePermissionOrderByWithAggregationInput = {
|
|
roleId?: SortOrder
|
|
permissionId?: SortOrder
|
|
_count?: RolePermissionCountOrderByAggregateInput
|
|
_avg?: RolePermissionAvgOrderByAggregateInput
|
|
_max?: RolePermissionMaxOrderByAggregateInput
|
|
_min?: RolePermissionMinOrderByAggregateInput
|
|
_sum?: RolePermissionSumOrderByAggregateInput
|
|
}
|
|
|
|
export type RolePermissionScalarWhereWithAggregatesInput = {
|
|
AND?: RolePermissionScalarWhereWithAggregatesInput | RolePermissionScalarWhereWithAggregatesInput[]
|
|
OR?: RolePermissionScalarWhereWithAggregatesInput[]
|
|
NOT?: RolePermissionScalarWhereWithAggregatesInput | RolePermissionScalarWhereWithAggregatesInput[]
|
|
roleId?: IntWithAggregatesFilter<"RolePermission"> | number
|
|
permissionId?: IntWithAggregatesFilter<"RolePermission"> | number
|
|
}
|
|
|
|
export type UserRoleWhereInput = {
|
|
AND?: UserRoleWhereInput | UserRoleWhereInput[]
|
|
OR?: UserRoleWhereInput[]
|
|
NOT?: UserRoleWhereInput | UserRoleWhereInput[]
|
|
userId?: IntFilter<"UserRole"> | number
|
|
roleId?: IntFilter<"UserRole"> | number
|
|
user?: XOR<UserRelationFilter, UserWhereInput>
|
|
role?: XOR<RoleRelationFilter, RoleWhereInput>
|
|
}
|
|
|
|
export type UserRoleOrderByWithRelationInput = {
|
|
userId?: SortOrder
|
|
roleId?: SortOrder
|
|
user?: UserOrderByWithRelationInput
|
|
role?: RoleOrderByWithRelationInput
|
|
}
|
|
|
|
export type UserRoleWhereUniqueInput = Prisma.AtLeast<{
|
|
userId_roleId?: UserRoleUserIdRoleIdCompoundUniqueInput
|
|
AND?: UserRoleWhereInput | UserRoleWhereInput[]
|
|
OR?: UserRoleWhereInput[]
|
|
NOT?: UserRoleWhereInput | UserRoleWhereInput[]
|
|
userId?: IntFilter<"UserRole"> | number
|
|
roleId?: IntFilter<"UserRole"> | number
|
|
user?: XOR<UserRelationFilter, UserWhereInput>
|
|
role?: XOR<RoleRelationFilter, RoleWhereInput>
|
|
}, "userId_roleId">
|
|
|
|
export type UserRoleOrderByWithAggregationInput = {
|
|
userId?: SortOrder
|
|
roleId?: SortOrder
|
|
_count?: UserRoleCountOrderByAggregateInput
|
|
_avg?: UserRoleAvgOrderByAggregateInput
|
|
_max?: UserRoleMaxOrderByAggregateInput
|
|
_min?: UserRoleMinOrderByAggregateInput
|
|
_sum?: UserRoleSumOrderByAggregateInput
|
|
}
|
|
|
|
export type UserRoleScalarWhereWithAggregatesInput = {
|
|
AND?: UserRoleScalarWhereWithAggregatesInput | UserRoleScalarWhereWithAggregatesInput[]
|
|
OR?: UserRoleScalarWhereWithAggregatesInput[]
|
|
NOT?: UserRoleScalarWhereWithAggregatesInput | UserRoleScalarWhereWithAggregatesInput[]
|
|
userId?: IntWithAggregatesFilter<"UserRole"> | number
|
|
roleId?: IntWithAggregatesFilter<"UserRole"> | number
|
|
}
|
|
|
|
export type CustomerWhereInput = {
|
|
AND?: CustomerWhereInput | CustomerWhereInput[]
|
|
OR?: CustomerWhereInput[]
|
|
NOT?: CustomerWhereInput | CustomerWhereInput[]
|
|
id?: IntFilter<"Customer"> | number
|
|
customerNumber?: StringFilter<"Customer"> | string
|
|
type?: EnumCustomerTypeFilter<"Customer"> | $Enums.CustomerType
|
|
salutation?: StringNullableFilter<"Customer"> | string | null
|
|
firstName?: StringFilter<"Customer"> | string
|
|
lastName?: StringFilter<"Customer"> | string
|
|
companyName?: StringNullableFilter<"Customer"> | string | null
|
|
foundingDate?: DateTimeNullableFilter<"Customer"> | Date | string | null
|
|
birthDate?: DateTimeNullableFilter<"Customer"> | Date | string | null
|
|
birthPlace?: StringNullableFilter<"Customer"> | string | null
|
|
email?: StringNullableFilter<"Customer"> | string | null
|
|
phone?: StringNullableFilter<"Customer"> | string | null
|
|
mobile?: StringNullableFilter<"Customer"> | string | null
|
|
taxNumber?: StringNullableFilter<"Customer"> | string | null
|
|
businessRegistrationPath?: StringNullableFilter<"Customer"> | string | null
|
|
commercialRegisterPath?: StringNullableFilter<"Customer"> | string | null
|
|
commercialRegisterNumber?: StringNullableFilter<"Customer"> | string | null
|
|
privacyPolicyPath?: StringNullableFilter<"Customer"> | string | null
|
|
notes?: StringNullableFilter<"Customer"> | string | null
|
|
portalEnabled?: BoolFilter<"Customer"> | boolean
|
|
portalEmail?: StringNullableFilter<"Customer"> | string | null
|
|
portalPasswordHash?: StringNullableFilter<"Customer"> | string | null
|
|
portalPasswordEncrypted?: StringNullableFilter<"Customer"> | string | null
|
|
portalLastLogin?: DateTimeNullableFilter<"Customer"> | Date | string | null
|
|
createdAt?: DateTimeFilter<"Customer"> | Date | string
|
|
updatedAt?: DateTimeFilter<"Customer"> | Date | string
|
|
user?: XOR<UserNullableRelationFilter, UserWhereInput> | null
|
|
addresses?: AddressListRelationFilter
|
|
bankCards?: BankCardListRelationFilter
|
|
identityDocuments?: IdentityDocumentListRelationFilter
|
|
meters?: MeterListRelationFilter
|
|
stressfreiEmails?: StressfreiEmailListRelationFilter
|
|
contracts?: ContractListRelationFilter
|
|
representingFor?: CustomerRepresentativeListRelationFilter
|
|
representedBy?: CustomerRepresentativeListRelationFilter
|
|
}
|
|
|
|
export type CustomerOrderByWithRelationInput = {
|
|
id?: SortOrder
|
|
customerNumber?: SortOrder
|
|
type?: SortOrder
|
|
salutation?: SortOrderInput | SortOrder
|
|
firstName?: SortOrder
|
|
lastName?: SortOrder
|
|
companyName?: SortOrderInput | SortOrder
|
|
foundingDate?: SortOrderInput | SortOrder
|
|
birthDate?: SortOrderInput | SortOrder
|
|
birthPlace?: SortOrderInput | SortOrder
|
|
email?: SortOrderInput | SortOrder
|
|
phone?: SortOrderInput | SortOrder
|
|
mobile?: SortOrderInput | SortOrder
|
|
taxNumber?: SortOrderInput | SortOrder
|
|
businessRegistrationPath?: SortOrderInput | SortOrder
|
|
commercialRegisterPath?: SortOrderInput | SortOrder
|
|
commercialRegisterNumber?: SortOrderInput | SortOrder
|
|
privacyPolicyPath?: SortOrderInput | SortOrder
|
|
notes?: SortOrderInput | SortOrder
|
|
portalEnabled?: SortOrder
|
|
portalEmail?: SortOrderInput | SortOrder
|
|
portalPasswordHash?: SortOrderInput | SortOrder
|
|
portalPasswordEncrypted?: SortOrderInput | SortOrder
|
|
portalLastLogin?: SortOrderInput | SortOrder
|
|
createdAt?: SortOrder
|
|
updatedAt?: SortOrder
|
|
user?: UserOrderByWithRelationInput
|
|
addresses?: AddressOrderByRelationAggregateInput
|
|
bankCards?: BankCardOrderByRelationAggregateInput
|
|
identityDocuments?: IdentityDocumentOrderByRelationAggregateInput
|
|
meters?: MeterOrderByRelationAggregateInput
|
|
stressfreiEmails?: StressfreiEmailOrderByRelationAggregateInput
|
|
contracts?: ContractOrderByRelationAggregateInput
|
|
representingFor?: CustomerRepresentativeOrderByRelationAggregateInput
|
|
representedBy?: CustomerRepresentativeOrderByRelationAggregateInput
|
|
}
|
|
|
|
export type CustomerWhereUniqueInput = Prisma.AtLeast<{
|
|
id?: number
|
|
customerNumber?: string
|
|
portalEmail?: string
|
|
AND?: CustomerWhereInput | CustomerWhereInput[]
|
|
OR?: CustomerWhereInput[]
|
|
NOT?: CustomerWhereInput | CustomerWhereInput[]
|
|
type?: EnumCustomerTypeFilter<"Customer"> | $Enums.CustomerType
|
|
salutation?: StringNullableFilter<"Customer"> | string | null
|
|
firstName?: StringFilter<"Customer"> | string
|
|
lastName?: StringFilter<"Customer"> | string
|
|
companyName?: StringNullableFilter<"Customer"> | string | null
|
|
foundingDate?: DateTimeNullableFilter<"Customer"> | Date | string | null
|
|
birthDate?: DateTimeNullableFilter<"Customer"> | Date | string | null
|
|
birthPlace?: StringNullableFilter<"Customer"> | string | null
|
|
email?: StringNullableFilter<"Customer"> | string | null
|
|
phone?: StringNullableFilter<"Customer"> | string | null
|
|
mobile?: StringNullableFilter<"Customer"> | string | null
|
|
taxNumber?: StringNullableFilter<"Customer"> | string | null
|
|
businessRegistrationPath?: StringNullableFilter<"Customer"> | string | null
|
|
commercialRegisterPath?: StringNullableFilter<"Customer"> | string | null
|
|
commercialRegisterNumber?: StringNullableFilter<"Customer"> | string | null
|
|
privacyPolicyPath?: StringNullableFilter<"Customer"> | string | null
|
|
notes?: StringNullableFilter<"Customer"> | string | null
|
|
portalEnabled?: BoolFilter<"Customer"> | boolean
|
|
portalPasswordHash?: StringNullableFilter<"Customer"> | string | null
|
|
portalPasswordEncrypted?: StringNullableFilter<"Customer"> | string | null
|
|
portalLastLogin?: DateTimeNullableFilter<"Customer"> | Date | string | null
|
|
createdAt?: DateTimeFilter<"Customer"> | Date | string
|
|
updatedAt?: DateTimeFilter<"Customer"> | Date | string
|
|
user?: XOR<UserNullableRelationFilter, UserWhereInput> | null
|
|
addresses?: AddressListRelationFilter
|
|
bankCards?: BankCardListRelationFilter
|
|
identityDocuments?: IdentityDocumentListRelationFilter
|
|
meters?: MeterListRelationFilter
|
|
stressfreiEmails?: StressfreiEmailListRelationFilter
|
|
contracts?: ContractListRelationFilter
|
|
representingFor?: CustomerRepresentativeListRelationFilter
|
|
representedBy?: CustomerRepresentativeListRelationFilter
|
|
}, "id" | "customerNumber" | "portalEmail">
|
|
|
|
export type CustomerOrderByWithAggregationInput = {
|
|
id?: SortOrder
|
|
customerNumber?: SortOrder
|
|
type?: SortOrder
|
|
salutation?: SortOrderInput | SortOrder
|
|
firstName?: SortOrder
|
|
lastName?: SortOrder
|
|
companyName?: SortOrderInput | SortOrder
|
|
foundingDate?: SortOrderInput | SortOrder
|
|
birthDate?: SortOrderInput | SortOrder
|
|
birthPlace?: SortOrderInput | SortOrder
|
|
email?: SortOrderInput | SortOrder
|
|
phone?: SortOrderInput | SortOrder
|
|
mobile?: SortOrderInput | SortOrder
|
|
taxNumber?: SortOrderInput | SortOrder
|
|
businessRegistrationPath?: SortOrderInput | SortOrder
|
|
commercialRegisterPath?: SortOrderInput | SortOrder
|
|
commercialRegisterNumber?: SortOrderInput | SortOrder
|
|
privacyPolicyPath?: SortOrderInput | SortOrder
|
|
notes?: SortOrderInput | SortOrder
|
|
portalEnabled?: SortOrder
|
|
portalEmail?: SortOrderInput | SortOrder
|
|
portalPasswordHash?: SortOrderInput | SortOrder
|
|
portalPasswordEncrypted?: SortOrderInput | SortOrder
|
|
portalLastLogin?: SortOrderInput | SortOrder
|
|
createdAt?: SortOrder
|
|
updatedAt?: SortOrder
|
|
_count?: CustomerCountOrderByAggregateInput
|
|
_avg?: CustomerAvgOrderByAggregateInput
|
|
_max?: CustomerMaxOrderByAggregateInput
|
|
_min?: CustomerMinOrderByAggregateInput
|
|
_sum?: CustomerSumOrderByAggregateInput
|
|
}
|
|
|
|
export type CustomerScalarWhereWithAggregatesInput = {
|
|
AND?: CustomerScalarWhereWithAggregatesInput | CustomerScalarWhereWithAggregatesInput[]
|
|
OR?: CustomerScalarWhereWithAggregatesInput[]
|
|
NOT?: CustomerScalarWhereWithAggregatesInput | CustomerScalarWhereWithAggregatesInput[]
|
|
id?: IntWithAggregatesFilter<"Customer"> | number
|
|
customerNumber?: StringWithAggregatesFilter<"Customer"> | string
|
|
type?: EnumCustomerTypeWithAggregatesFilter<"Customer"> | $Enums.CustomerType
|
|
salutation?: StringNullableWithAggregatesFilter<"Customer"> | string | null
|
|
firstName?: StringWithAggregatesFilter<"Customer"> | string
|
|
lastName?: StringWithAggregatesFilter<"Customer"> | string
|
|
companyName?: StringNullableWithAggregatesFilter<"Customer"> | string | null
|
|
foundingDate?: DateTimeNullableWithAggregatesFilter<"Customer"> | Date | string | null
|
|
birthDate?: DateTimeNullableWithAggregatesFilter<"Customer"> | Date | string | null
|
|
birthPlace?: StringNullableWithAggregatesFilter<"Customer"> | string | null
|
|
email?: StringNullableWithAggregatesFilter<"Customer"> | string | null
|
|
phone?: StringNullableWithAggregatesFilter<"Customer"> | string | null
|
|
mobile?: StringNullableWithAggregatesFilter<"Customer"> | string | null
|
|
taxNumber?: StringNullableWithAggregatesFilter<"Customer"> | string | null
|
|
businessRegistrationPath?: StringNullableWithAggregatesFilter<"Customer"> | string | null
|
|
commercialRegisterPath?: StringNullableWithAggregatesFilter<"Customer"> | string | null
|
|
commercialRegisterNumber?: StringNullableWithAggregatesFilter<"Customer"> | string | null
|
|
privacyPolicyPath?: StringNullableWithAggregatesFilter<"Customer"> | string | null
|
|
notes?: StringNullableWithAggregatesFilter<"Customer"> | string | null
|
|
portalEnabled?: BoolWithAggregatesFilter<"Customer"> | boolean
|
|
portalEmail?: StringNullableWithAggregatesFilter<"Customer"> | string | null
|
|
portalPasswordHash?: StringNullableWithAggregatesFilter<"Customer"> | string | null
|
|
portalPasswordEncrypted?: StringNullableWithAggregatesFilter<"Customer"> | string | null
|
|
portalLastLogin?: DateTimeNullableWithAggregatesFilter<"Customer"> | Date | string | null
|
|
createdAt?: DateTimeWithAggregatesFilter<"Customer"> | Date | string
|
|
updatedAt?: DateTimeWithAggregatesFilter<"Customer"> | Date | string
|
|
}
|
|
|
|
export type CustomerRepresentativeWhereInput = {
|
|
AND?: CustomerRepresentativeWhereInput | CustomerRepresentativeWhereInput[]
|
|
OR?: CustomerRepresentativeWhereInput[]
|
|
NOT?: CustomerRepresentativeWhereInput | CustomerRepresentativeWhereInput[]
|
|
id?: IntFilter<"CustomerRepresentative"> | number
|
|
customerId?: IntFilter<"CustomerRepresentative"> | number
|
|
representativeId?: IntFilter<"CustomerRepresentative"> | number
|
|
notes?: StringNullableFilter<"CustomerRepresentative"> | string | null
|
|
isActive?: BoolFilter<"CustomerRepresentative"> | boolean
|
|
createdAt?: DateTimeFilter<"CustomerRepresentative"> | Date | string
|
|
updatedAt?: DateTimeFilter<"CustomerRepresentative"> | Date | string
|
|
customer?: XOR<CustomerRelationFilter, CustomerWhereInput>
|
|
representative?: XOR<CustomerRelationFilter, CustomerWhereInput>
|
|
}
|
|
|
|
export type CustomerRepresentativeOrderByWithRelationInput = {
|
|
id?: SortOrder
|
|
customerId?: SortOrder
|
|
representativeId?: SortOrder
|
|
notes?: SortOrderInput | SortOrder
|
|
isActive?: SortOrder
|
|
createdAt?: SortOrder
|
|
updatedAt?: SortOrder
|
|
customer?: CustomerOrderByWithRelationInput
|
|
representative?: CustomerOrderByWithRelationInput
|
|
}
|
|
|
|
export type CustomerRepresentativeWhereUniqueInput = Prisma.AtLeast<{
|
|
id?: number
|
|
customerId_representativeId?: CustomerRepresentativeCustomerIdRepresentativeIdCompoundUniqueInput
|
|
AND?: CustomerRepresentativeWhereInput | CustomerRepresentativeWhereInput[]
|
|
OR?: CustomerRepresentativeWhereInput[]
|
|
NOT?: CustomerRepresentativeWhereInput | CustomerRepresentativeWhereInput[]
|
|
customerId?: IntFilter<"CustomerRepresentative"> | number
|
|
representativeId?: IntFilter<"CustomerRepresentative"> | number
|
|
notes?: StringNullableFilter<"CustomerRepresentative"> | string | null
|
|
isActive?: BoolFilter<"CustomerRepresentative"> | boolean
|
|
createdAt?: DateTimeFilter<"CustomerRepresentative"> | Date | string
|
|
updatedAt?: DateTimeFilter<"CustomerRepresentative"> | Date | string
|
|
customer?: XOR<CustomerRelationFilter, CustomerWhereInput>
|
|
representative?: XOR<CustomerRelationFilter, CustomerWhereInput>
|
|
}, "id" | "customerId_representativeId">
|
|
|
|
export type CustomerRepresentativeOrderByWithAggregationInput = {
|
|
id?: SortOrder
|
|
customerId?: SortOrder
|
|
representativeId?: SortOrder
|
|
notes?: SortOrderInput | SortOrder
|
|
isActive?: SortOrder
|
|
createdAt?: SortOrder
|
|
updatedAt?: SortOrder
|
|
_count?: CustomerRepresentativeCountOrderByAggregateInput
|
|
_avg?: CustomerRepresentativeAvgOrderByAggregateInput
|
|
_max?: CustomerRepresentativeMaxOrderByAggregateInput
|
|
_min?: CustomerRepresentativeMinOrderByAggregateInput
|
|
_sum?: CustomerRepresentativeSumOrderByAggregateInput
|
|
}
|
|
|
|
export type CustomerRepresentativeScalarWhereWithAggregatesInput = {
|
|
AND?: CustomerRepresentativeScalarWhereWithAggregatesInput | CustomerRepresentativeScalarWhereWithAggregatesInput[]
|
|
OR?: CustomerRepresentativeScalarWhereWithAggregatesInput[]
|
|
NOT?: CustomerRepresentativeScalarWhereWithAggregatesInput | CustomerRepresentativeScalarWhereWithAggregatesInput[]
|
|
id?: IntWithAggregatesFilter<"CustomerRepresentative"> | number
|
|
customerId?: IntWithAggregatesFilter<"CustomerRepresentative"> | number
|
|
representativeId?: IntWithAggregatesFilter<"CustomerRepresentative"> | number
|
|
notes?: StringNullableWithAggregatesFilter<"CustomerRepresentative"> | string | null
|
|
isActive?: BoolWithAggregatesFilter<"CustomerRepresentative"> | boolean
|
|
createdAt?: DateTimeWithAggregatesFilter<"CustomerRepresentative"> | Date | string
|
|
updatedAt?: DateTimeWithAggregatesFilter<"CustomerRepresentative"> | Date | string
|
|
}
|
|
|
|
export type AddressWhereInput = {
|
|
AND?: AddressWhereInput | AddressWhereInput[]
|
|
OR?: AddressWhereInput[]
|
|
NOT?: AddressWhereInput | AddressWhereInput[]
|
|
id?: IntFilter<"Address"> | number
|
|
customerId?: IntFilter<"Address"> | number
|
|
type?: EnumAddressTypeFilter<"Address"> | $Enums.AddressType
|
|
street?: StringFilter<"Address"> | string
|
|
houseNumber?: StringFilter<"Address"> | string
|
|
postalCode?: StringFilter<"Address"> | string
|
|
city?: StringFilter<"Address"> | string
|
|
country?: StringFilter<"Address"> | string
|
|
isDefault?: BoolFilter<"Address"> | boolean
|
|
createdAt?: DateTimeFilter<"Address"> | Date | string
|
|
updatedAt?: DateTimeFilter<"Address"> | Date | string
|
|
customer?: XOR<CustomerRelationFilter, CustomerWhereInput>
|
|
contractsAsDelivery?: ContractListRelationFilter
|
|
contractsAsBilling?: ContractListRelationFilter
|
|
}
|
|
|
|
export type AddressOrderByWithRelationInput = {
|
|
id?: SortOrder
|
|
customerId?: SortOrder
|
|
type?: SortOrder
|
|
street?: SortOrder
|
|
houseNumber?: SortOrder
|
|
postalCode?: SortOrder
|
|
city?: SortOrder
|
|
country?: SortOrder
|
|
isDefault?: SortOrder
|
|
createdAt?: SortOrder
|
|
updatedAt?: SortOrder
|
|
customer?: CustomerOrderByWithRelationInput
|
|
contractsAsDelivery?: ContractOrderByRelationAggregateInput
|
|
contractsAsBilling?: ContractOrderByRelationAggregateInput
|
|
}
|
|
|
|
export type AddressWhereUniqueInput = Prisma.AtLeast<{
|
|
id?: number
|
|
AND?: AddressWhereInput | AddressWhereInput[]
|
|
OR?: AddressWhereInput[]
|
|
NOT?: AddressWhereInput | AddressWhereInput[]
|
|
customerId?: IntFilter<"Address"> | number
|
|
type?: EnumAddressTypeFilter<"Address"> | $Enums.AddressType
|
|
street?: StringFilter<"Address"> | string
|
|
houseNumber?: StringFilter<"Address"> | string
|
|
postalCode?: StringFilter<"Address"> | string
|
|
city?: StringFilter<"Address"> | string
|
|
country?: StringFilter<"Address"> | string
|
|
isDefault?: BoolFilter<"Address"> | boolean
|
|
createdAt?: DateTimeFilter<"Address"> | Date | string
|
|
updatedAt?: DateTimeFilter<"Address"> | Date | string
|
|
customer?: XOR<CustomerRelationFilter, CustomerWhereInput>
|
|
contractsAsDelivery?: ContractListRelationFilter
|
|
contractsAsBilling?: ContractListRelationFilter
|
|
}, "id">
|
|
|
|
export type AddressOrderByWithAggregationInput = {
|
|
id?: SortOrder
|
|
customerId?: SortOrder
|
|
type?: SortOrder
|
|
street?: SortOrder
|
|
houseNumber?: SortOrder
|
|
postalCode?: SortOrder
|
|
city?: SortOrder
|
|
country?: SortOrder
|
|
isDefault?: SortOrder
|
|
createdAt?: SortOrder
|
|
updatedAt?: SortOrder
|
|
_count?: AddressCountOrderByAggregateInput
|
|
_avg?: AddressAvgOrderByAggregateInput
|
|
_max?: AddressMaxOrderByAggregateInput
|
|
_min?: AddressMinOrderByAggregateInput
|
|
_sum?: AddressSumOrderByAggregateInput
|
|
}
|
|
|
|
export type AddressScalarWhereWithAggregatesInput = {
|
|
AND?: AddressScalarWhereWithAggregatesInput | AddressScalarWhereWithAggregatesInput[]
|
|
OR?: AddressScalarWhereWithAggregatesInput[]
|
|
NOT?: AddressScalarWhereWithAggregatesInput | AddressScalarWhereWithAggregatesInput[]
|
|
id?: IntWithAggregatesFilter<"Address"> | number
|
|
customerId?: IntWithAggregatesFilter<"Address"> | number
|
|
type?: EnumAddressTypeWithAggregatesFilter<"Address"> | $Enums.AddressType
|
|
street?: StringWithAggregatesFilter<"Address"> | string
|
|
houseNumber?: StringWithAggregatesFilter<"Address"> | string
|
|
postalCode?: StringWithAggregatesFilter<"Address"> | string
|
|
city?: StringWithAggregatesFilter<"Address"> | string
|
|
country?: StringWithAggregatesFilter<"Address"> | string
|
|
isDefault?: BoolWithAggregatesFilter<"Address"> | boolean
|
|
createdAt?: DateTimeWithAggregatesFilter<"Address"> | Date | string
|
|
updatedAt?: DateTimeWithAggregatesFilter<"Address"> | Date | string
|
|
}
|
|
|
|
export type BankCardWhereInput = {
|
|
AND?: BankCardWhereInput | BankCardWhereInput[]
|
|
OR?: BankCardWhereInput[]
|
|
NOT?: BankCardWhereInput | BankCardWhereInput[]
|
|
id?: IntFilter<"BankCard"> | number
|
|
customerId?: IntFilter<"BankCard"> | number
|
|
accountHolder?: StringFilter<"BankCard"> | string
|
|
iban?: StringFilter<"BankCard"> | string
|
|
bic?: StringNullableFilter<"BankCard"> | string | null
|
|
bankName?: StringNullableFilter<"BankCard"> | string | null
|
|
expiryDate?: DateTimeNullableFilter<"BankCard"> | Date | string | null
|
|
documentPath?: StringNullableFilter<"BankCard"> | string | null
|
|
isActive?: BoolFilter<"BankCard"> | boolean
|
|
createdAt?: DateTimeFilter<"BankCard"> | Date | string
|
|
updatedAt?: DateTimeFilter<"BankCard"> | Date | string
|
|
customer?: XOR<CustomerRelationFilter, CustomerWhereInput>
|
|
contracts?: ContractListRelationFilter
|
|
}
|
|
|
|
export type BankCardOrderByWithRelationInput = {
|
|
id?: SortOrder
|
|
customerId?: SortOrder
|
|
accountHolder?: SortOrder
|
|
iban?: SortOrder
|
|
bic?: SortOrderInput | SortOrder
|
|
bankName?: SortOrderInput | SortOrder
|
|
expiryDate?: SortOrderInput | SortOrder
|
|
documentPath?: SortOrderInput | SortOrder
|
|
isActive?: SortOrder
|
|
createdAt?: SortOrder
|
|
updatedAt?: SortOrder
|
|
customer?: CustomerOrderByWithRelationInput
|
|
contracts?: ContractOrderByRelationAggregateInput
|
|
}
|
|
|
|
export type BankCardWhereUniqueInput = Prisma.AtLeast<{
|
|
id?: number
|
|
AND?: BankCardWhereInput | BankCardWhereInput[]
|
|
OR?: BankCardWhereInput[]
|
|
NOT?: BankCardWhereInput | BankCardWhereInput[]
|
|
customerId?: IntFilter<"BankCard"> | number
|
|
accountHolder?: StringFilter<"BankCard"> | string
|
|
iban?: StringFilter<"BankCard"> | string
|
|
bic?: StringNullableFilter<"BankCard"> | string | null
|
|
bankName?: StringNullableFilter<"BankCard"> | string | null
|
|
expiryDate?: DateTimeNullableFilter<"BankCard"> | Date | string | null
|
|
documentPath?: StringNullableFilter<"BankCard"> | string | null
|
|
isActive?: BoolFilter<"BankCard"> | boolean
|
|
createdAt?: DateTimeFilter<"BankCard"> | Date | string
|
|
updatedAt?: DateTimeFilter<"BankCard"> | Date | string
|
|
customer?: XOR<CustomerRelationFilter, CustomerWhereInput>
|
|
contracts?: ContractListRelationFilter
|
|
}, "id">
|
|
|
|
export type BankCardOrderByWithAggregationInput = {
|
|
id?: SortOrder
|
|
customerId?: SortOrder
|
|
accountHolder?: SortOrder
|
|
iban?: SortOrder
|
|
bic?: SortOrderInput | SortOrder
|
|
bankName?: SortOrderInput | SortOrder
|
|
expiryDate?: SortOrderInput | SortOrder
|
|
documentPath?: SortOrderInput | SortOrder
|
|
isActive?: SortOrder
|
|
createdAt?: SortOrder
|
|
updatedAt?: SortOrder
|
|
_count?: BankCardCountOrderByAggregateInput
|
|
_avg?: BankCardAvgOrderByAggregateInput
|
|
_max?: BankCardMaxOrderByAggregateInput
|
|
_min?: BankCardMinOrderByAggregateInput
|
|
_sum?: BankCardSumOrderByAggregateInput
|
|
}
|
|
|
|
export type BankCardScalarWhereWithAggregatesInput = {
|
|
AND?: BankCardScalarWhereWithAggregatesInput | BankCardScalarWhereWithAggregatesInput[]
|
|
OR?: BankCardScalarWhereWithAggregatesInput[]
|
|
NOT?: BankCardScalarWhereWithAggregatesInput | BankCardScalarWhereWithAggregatesInput[]
|
|
id?: IntWithAggregatesFilter<"BankCard"> | number
|
|
customerId?: IntWithAggregatesFilter<"BankCard"> | number
|
|
accountHolder?: StringWithAggregatesFilter<"BankCard"> | string
|
|
iban?: StringWithAggregatesFilter<"BankCard"> | string
|
|
bic?: StringNullableWithAggregatesFilter<"BankCard"> | string | null
|
|
bankName?: StringNullableWithAggregatesFilter<"BankCard"> | string | null
|
|
expiryDate?: DateTimeNullableWithAggregatesFilter<"BankCard"> | Date | string | null
|
|
documentPath?: StringNullableWithAggregatesFilter<"BankCard"> | string | null
|
|
isActive?: BoolWithAggregatesFilter<"BankCard"> | boolean
|
|
createdAt?: DateTimeWithAggregatesFilter<"BankCard"> | Date | string
|
|
updatedAt?: DateTimeWithAggregatesFilter<"BankCard"> | Date | string
|
|
}
|
|
|
|
export type IdentityDocumentWhereInput = {
|
|
AND?: IdentityDocumentWhereInput | IdentityDocumentWhereInput[]
|
|
OR?: IdentityDocumentWhereInput[]
|
|
NOT?: IdentityDocumentWhereInput | IdentityDocumentWhereInput[]
|
|
id?: IntFilter<"IdentityDocument"> | number
|
|
customerId?: IntFilter<"IdentityDocument"> | number
|
|
type?: EnumDocumentTypeFilter<"IdentityDocument"> | $Enums.DocumentType
|
|
documentNumber?: StringFilter<"IdentityDocument"> | string
|
|
issuingAuthority?: StringNullableFilter<"IdentityDocument"> | string | null
|
|
issueDate?: DateTimeNullableFilter<"IdentityDocument"> | Date | string | null
|
|
expiryDate?: DateTimeNullableFilter<"IdentityDocument"> | Date | string | null
|
|
documentPath?: StringNullableFilter<"IdentityDocument"> | string | null
|
|
isActive?: BoolFilter<"IdentityDocument"> | boolean
|
|
licenseClasses?: StringNullableFilter<"IdentityDocument"> | string | null
|
|
licenseIssueDate?: DateTimeNullableFilter<"IdentityDocument"> | Date | string | null
|
|
createdAt?: DateTimeFilter<"IdentityDocument"> | Date | string
|
|
updatedAt?: DateTimeFilter<"IdentityDocument"> | Date | string
|
|
customer?: XOR<CustomerRelationFilter, CustomerWhereInput>
|
|
contracts?: ContractListRelationFilter
|
|
}
|
|
|
|
export type IdentityDocumentOrderByWithRelationInput = {
|
|
id?: SortOrder
|
|
customerId?: SortOrder
|
|
type?: SortOrder
|
|
documentNumber?: SortOrder
|
|
issuingAuthority?: SortOrderInput | SortOrder
|
|
issueDate?: SortOrderInput | SortOrder
|
|
expiryDate?: SortOrderInput | SortOrder
|
|
documentPath?: SortOrderInput | SortOrder
|
|
isActive?: SortOrder
|
|
licenseClasses?: SortOrderInput | SortOrder
|
|
licenseIssueDate?: SortOrderInput | SortOrder
|
|
createdAt?: SortOrder
|
|
updatedAt?: SortOrder
|
|
customer?: CustomerOrderByWithRelationInput
|
|
contracts?: ContractOrderByRelationAggregateInput
|
|
}
|
|
|
|
export type IdentityDocumentWhereUniqueInput = Prisma.AtLeast<{
|
|
id?: number
|
|
AND?: IdentityDocumentWhereInput | IdentityDocumentWhereInput[]
|
|
OR?: IdentityDocumentWhereInput[]
|
|
NOT?: IdentityDocumentWhereInput | IdentityDocumentWhereInput[]
|
|
customerId?: IntFilter<"IdentityDocument"> | number
|
|
type?: EnumDocumentTypeFilter<"IdentityDocument"> | $Enums.DocumentType
|
|
documentNumber?: StringFilter<"IdentityDocument"> | string
|
|
issuingAuthority?: StringNullableFilter<"IdentityDocument"> | string | null
|
|
issueDate?: DateTimeNullableFilter<"IdentityDocument"> | Date | string | null
|
|
expiryDate?: DateTimeNullableFilter<"IdentityDocument"> | Date | string | null
|
|
documentPath?: StringNullableFilter<"IdentityDocument"> | string | null
|
|
isActive?: BoolFilter<"IdentityDocument"> | boolean
|
|
licenseClasses?: StringNullableFilter<"IdentityDocument"> | string | null
|
|
licenseIssueDate?: DateTimeNullableFilter<"IdentityDocument"> | Date | string | null
|
|
createdAt?: DateTimeFilter<"IdentityDocument"> | Date | string
|
|
updatedAt?: DateTimeFilter<"IdentityDocument"> | Date | string
|
|
customer?: XOR<CustomerRelationFilter, CustomerWhereInput>
|
|
contracts?: ContractListRelationFilter
|
|
}, "id">
|
|
|
|
export type IdentityDocumentOrderByWithAggregationInput = {
|
|
id?: SortOrder
|
|
customerId?: SortOrder
|
|
type?: SortOrder
|
|
documentNumber?: SortOrder
|
|
issuingAuthority?: SortOrderInput | SortOrder
|
|
issueDate?: SortOrderInput | SortOrder
|
|
expiryDate?: SortOrderInput | SortOrder
|
|
documentPath?: SortOrderInput | SortOrder
|
|
isActive?: SortOrder
|
|
licenseClasses?: SortOrderInput | SortOrder
|
|
licenseIssueDate?: SortOrderInput | SortOrder
|
|
createdAt?: SortOrder
|
|
updatedAt?: SortOrder
|
|
_count?: IdentityDocumentCountOrderByAggregateInput
|
|
_avg?: IdentityDocumentAvgOrderByAggregateInput
|
|
_max?: IdentityDocumentMaxOrderByAggregateInput
|
|
_min?: IdentityDocumentMinOrderByAggregateInput
|
|
_sum?: IdentityDocumentSumOrderByAggregateInput
|
|
}
|
|
|
|
export type IdentityDocumentScalarWhereWithAggregatesInput = {
|
|
AND?: IdentityDocumentScalarWhereWithAggregatesInput | IdentityDocumentScalarWhereWithAggregatesInput[]
|
|
OR?: IdentityDocumentScalarWhereWithAggregatesInput[]
|
|
NOT?: IdentityDocumentScalarWhereWithAggregatesInput | IdentityDocumentScalarWhereWithAggregatesInput[]
|
|
id?: IntWithAggregatesFilter<"IdentityDocument"> | number
|
|
customerId?: IntWithAggregatesFilter<"IdentityDocument"> | number
|
|
type?: EnumDocumentTypeWithAggregatesFilter<"IdentityDocument"> | $Enums.DocumentType
|
|
documentNumber?: StringWithAggregatesFilter<"IdentityDocument"> | string
|
|
issuingAuthority?: StringNullableWithAggregatesFilter<"IdentityDocument"> | string | null
|
|
issueDate?: DateTimeNullableWithAggregatesFilter<"IdentityDocument"> | Date | string | null
|
|
expiryDate?: DateTimeNullableWithAggregatesFilter<"IdentityDocument"> | Date | string | null
|
|
documentPath?: StringNullableWithAggregatesFilter<"IdentityDocument"> | string | null
|
|
isActive?: BoolWithAggregatesFilter<"IdentityDocument"> | boolean
|
|
licenseClasses?: StringNullableWithAggregatesFilter<"IdentityDocument"> | string | null
|
|
licenseIssueDate?: DateTimeNullableWithAggregatesFilter<"IdentityDocument"> | Date | string | null
|
|
createdAt?: DateTimeWithAggregatesFilter<"IdentityDocument"> | Date | string
|
|
updatedAt?: DateTimeWithAggregatesFilter<"IdentityDocument"> | Date | string
|
|
}
|
|
|
|
export type EmailProviderConfigWhereInput = {
|
|
AND?: EmailProviderConfigWhereInput | EmailProviderConfigWhereInput[]
|
|
OR?: EmailProviderConfigWhereInput[]
|
|
NOT?: EmailProviderConfigWhereInput | EmailProviderConfigWhereInput[]
|
|
id?: IntFilter<"EmailProviderConfig"> | number
|
|
name?: StringFilter<"EmailProviderConfig"> | string
|
|
type?: EnumEmailProviderTypeFilter<"EmailProviderConfig"> | $Enums.EmailProviderType
|
|
apiUrl?: StringFilter<"EmailProviderConfig"> | string
|
|
apiKey?: StringNullableFilter<"EmailProviderConfig"> | string | null
|
|
username?: StringNullableFilter<"EmailProviderConfig"> | string | null
|
|
passwordEncrypted?: StringNullableFilter<"EmailProviderConfig"> | string | null
|
|
domain?: StringFilter<"EmailProviderConfig"> | string
|
|
defaultForwardEmail?: StringNullableFilter<"EmailProviderConfig"> | string | null
|
|
imapServer?: StringNullableFilter<"EmailProviderConfig"> | string | null
|
|
imapPort?: IntNullableFilter<"EmailProviderConfig"> | number | null
|
|
smtpServer?: StringNullableFilter<"EmailProviderConfig"> | string | null
|
|
smtpPort?: IntNullableFilter<"EmailProviderConfig"> | number | null
|
|
imapEncryption?: EnumMailEncryptionFilter<"EmailProviderConfig"> | $Enums.MailEncryption
|
|
smtpEncryption?: EnumMailEncryptionFilter<"EmailProviderConfig"> | $Enums.MailEncryption
|
|
allowSelfSignedCerts?: BoolFilter<"EmailProviderConfig"> | boolean
|
|
isActive?: BoolFilter<"EmailProviderConfig"> | boolean
|
|
isDefault?: BoolFilter<"EmailProviderConfig"> | boolean
|
|
createdAt?: DateTimeFilter<"EmailProviderConfig"> | Date | string
|
|
updatedAt?: DateTimeFilter<"EmailProviderConfig"> | Date | string
|
|
}
|
|
|
|
export type EmailProviderConfigOrderByWithRelationInput = {
|
|
id?: SortOrder
|
|
name?: SortOrder
|
|
type?: SortOrder
|
|
apiUrl?: SortOrder
|
|
apiKey?: SortOrderInput | SortOrder
|
|
username?: SortOrderInput | SortOrder
|
|
passwordEncrypted?: SortOrderInput | SortOrder
|
|
domain?: SortOrder
|
|
defaultForwardEmail?: SortOrderInput | SortOrder
|
|
imapServer?: SortOrderInput | SortOrder
|
|
imapPort?: SortOrderInput | SortOrder
|
|
smtpServer?: SortOrderInput | SortOrder
|
|
smtpPort?: SortOrderInput | SortOrder
|
|
imapEncryption?: SortOrder
|
|
smtpEncryption?: SortOrder
|
|
allowSelfSignedCerts?: SortOrder
|
|
isActive?: SortOrder
|
|
isDefault?: SortOrder
|
|
createdAt?: SortOrder
|
|
updatedAt?: SortOrder
|
|
}
|
|
|
|
export type EmailProviderConfigWhereUniqueInput = Prisma.AtLeast<{
|
|
id?: number
|
|
name?: string
|
|
AND?: EmailProviderConfigWhereInput | EmailProviderConfigWhereInput[]
|
|
OR?: EmailProviderConfigWhereInput[]
|
|
NOT?: EmailProviderConfigWhereInput | EmailProviderConfigWhereInput[]
|
|
type?: EnumEmailProviderTypeFilter<"EmailProviderConfig"> | $Enums.EmailProviderType
|
|
apiUrl?: StringFilter<"EmailProviderConfig"> | string
|
|
apiKey?: StringNullableFilter<"EmailProviderConfig"> | string | null
|
|
username?: StringNullableFilter<"EmailProviderConfig"> | string | null
|
|
passwordEncrypted?: StringNullableFilter<"EmailProviderConfig"> | string | null
|
|
domain?: StringFilter<"EmailProviderConfig"> | string
|
|
defaultForwardEmail?: StringNullableFilter<"EmailProviderConfig"> | string | null
|
|
imapServer?: StringNullableFilter<"EmailProviderConfig"> | string | null
|
|
imapPort?: IntNullableFilter<"EmailProviderConfig"> | number | null
|
|
smtpServer?: StringNullableFilter<"EmailProviderConfig"> | string | null
|
|
smtpPort?: IntNullableFilter<"EmailProviderConfig"> | number | null
|
|
imapEncryption?: EnumMailEncryptionFilter<"EmailProviderConfig"> | $Enums.MailEncryption
|
|
smtpEncryption?: EnumMailEncryptionFilter<"EmailProviderConfig"> | $Enums.MailEncryption
|
|
allowSelfSignedCerts?: BoolFilter<"EmailProviderConfig"> | boolean
|
|
isActive?: BoolFilter<"EmailProviderConfig"> | boolean
|
|
isDefault?: BoolFilter<"EmailProviderConfig"> | boolean
|
|
createdAt?: DateTimeFilter<"EmailProviderConfig"> | Date | string
|
|
updatedAt?: DateTimeFilter<"EmailProviderConfig"> | Date | string
|
|
}, "id" | "name">
|
|
|
|
export type EmailProviderConfigOrderByWithAggregationInput = {
|
|
id?: SortOrder
|
|
name?: SortOrder
|
|
type?: SortOrder
|
|
apiUrl?: SortOrder
|
|
apiKey?: SortOrderInput | SortOrder
|
|
username?: SortOrderInput | SortOrder
|
|
passwordEncrypted?: SortOrderInput | SortOrder
|
|
domain?: SortOrder
|
|
defaultForwardEmail?: SortOrderInput | SortOrder
|
|
imapServer?: SortOrderInput | SortOrder
|
|
imapPort?: SortOrderInput | SortOrder
|
|
smtpServer?: SortOrderInput | SortOrder
|
|
smtpPort?: SortOrderInput | SortOrder
|
|
imapEncryption?: SortOrder
|
|
smtpEncryption?: SortOrder
|
|
allowSelfSignedCerts?: SortOrder
|
|
isActive?: SortOrder
|
|
isDefault?: SortOrder
|
|
createdAt?: SortOrder
|
|
updatedAt?: SortOrder
|
|
_count?: EmailProviderConfigCountOrderByAggregateInput
|
|
_avg?: EmailProviderConfigAvgOrderByAggregateInput
|
|
_max?: EmailProviderConfigMaxOrderByAggregateInput
|
|
_min?: EmailProviderConfigMinOrderByAggregateInput
|
|
_sum?: EmailProviderConfigSumOrderByAggregateInput
|
|
}
|
|
|
|
export type EmailProviderConfigScalarWhereWithAggregatesInput = {
|
|
AND?: EmailProviderConfigScalarWhereWithAggregatesInput | EmailProviderConfigScalarWhereWithAggregatesInput[]
|
|
OR?: EmailProviderConfigScalarWhereWithAggregatesInput[]
|
|
NOT?: EmailProviderConfigScalarWhereWithAggregatesInput | EmailProviderConfigScalarWhereWithAggregatesInput[]
|
|
id?: IntWithAggregatesFilter<"EmailProviderConfig"> | number
|
|
name?: StringWithAggregatesFilter<"EmailProviderConfig"> | string
|
|
type?: EnumEmailProviderTypeWithAggregatesFilter<"EmailProviderConfig"> | $Enums.EmailProviderType
|
|
apiUrl?: StringWithAggregatesFilter<"EmailProviderConfig"> | string
|
|
apiKey?: StringNullableWithAggregatesFilter<"EmailProviderConfig"> | string | null
|
|
username?: StringNullableWithAggregatesFilter<"EmailProviderConfig"> | string | null
|
|
passwordEncrypted?: StringNullableWithAggregatesFilter<"EmailProviderConfig"> | string | null
|
|
domain?: StringWithAggregatesFilter<"EmailProviderConfig"> | string
|
|
defaultForwardEmail?: StringNullableWithAggregatesFilter<"EmailProviderConfig"> | string | null
|
|
imapServer?: StringNullableWithAggregatesFilter<"EmailProviderConfig"> | string | null
|
|
imapPort?: IntNullableWithAggregatesFilter<"EmailProviderConfig"> | number | null
|
|
smtpServer?: StringNullableWithAggregatesFilter<"EmailProviderConfig"> | string | null
|
|
smtpPort?: IntNullableWithAggregatesFilter<"EmailProviderConfig"> | number | null
|
|
imapEncryption?: EnumMailEncryptionWithAggregatesFilter<"EmailProviderConfig"> | $Enums.MailEncryption
|
|
smtpEncryption?: EnumMailEncryptionWithAggregatesFilter<"EmailProviderConfig"> | $Enums.MailEncryption
|
|
allowSelfSignedCerts?: BoolWithAggregatesFilter<"EmailProviderConfig"> | boolean
|
|
isActive?: BoolWithAggregatesFilter<"EmailProviderConfig"> | boolean
|
|
isDefault?: BoolWithAggregatesFilter<"EmailProviderConfig"> | boolean
|
|
createdAt?: DateTimeWithAggregatesFilter<"EmailProviderConfig"> | Date | string
|
|
updatedAt?: DateTimeWithAggregatesFilter<"EmailProviderConfig"> | Date | string
|
|
}
|
|
|
|
export type StressfreiEmailWhereInput = {
|
|
AND?: StressfreiEmailWhereInput | StressfreiEmailWhereInput[]
|
|
OR?: StressfreiEmailWhereInput[]
|
|
NOT?: StressfreiEmailWhereInput | StressfreiEmailWhereInput[]
|
|
id?: IntFilter<"StressfreiEmail"> | number
|
|
customerId?: IntFilter<"StressfreiEmail"> | number
|
|
email?: StringFilter<"StressfreiEmail"> | string
|
|
platform?: StringNullableFilter<"StressfreiEmail"> | string | null
|
|
notes?: StringNullableFilter<"StressfreiEmail"> | string | null
|
|
isActive?: BoolFilter<"StressfreiEmail"> | boolean
|
|
isProvisioned?: BoolFilter<"StressfreiEmail"> | boolean
|
|
provisionedAt?: DateTimeNullableFilter<"StressfreiEmail"> | Date | string | null
|
|
provisionError?: StringNullableFilter<"StressfreiEmail"> | string | null
|
|
hasMailbox?: BoolFilter<"StressfreiEmail"> | boolean
|
|
emailPasswordEncrypted?: StringNullableFilter<"StressfreiEmail"> | string | null
|
|
createdAt?: DateTimeFilter<"StressfreiEmail"> | Date | string
|
|
updatedAt?: DateTimeFilter<"StressfreiEmail"> | Date | string
|
|
customer?: XOR<CustomerRelationFilter, CustomerWhereInput>
|
|
contracts?: ContractListRelationFilter
|
|
cachedEmails?: CachedEmailListRelationFilter
|
|
}
|
|
|
|
export type StressfreiEmailOrderByWithRelationInput = {
|
|
id?: SortOrder
|
|
customerId?: SortOrder
|
|
email?: SortOrder
|
|
platform?: SortOrderInput | SortOrder
|
|
notes?: SortOrderInput | SortOrder
|
|
isActive?: SortOrder
|
|
isProvisioned?: SortOrder
|
|
provisionedAt?: SortOrderInput | SortOrder
|
|
provisionError?: SortOrderInput | SortOrder
|
|
hasMailbox?: SortOrder
|
|
emailPasswordEncrypted?: SortOrderInput | SortOrder
|
|
createdAt?: SortOrder
|
|
updatedAt?: SortOrder
|
|
customer?: CustomerOrderByWithRelationInput
|
|
contracts?: ContractOrderByRelationAggregateInput
|
|
cachedEmails?: CachedEmailOrderByRelationAggregateInput
|
|
}
|
|
|
|
export type StressfreiEmailWhereUniqueInput = Prisma.AtLeast<{
|
|
id?: number
|
|
AND?: StressfreiEmailWhereInput | StressfreiEmailWhereInput[]
|
|
OR?: StressfreiEmailWhereInput[]
|
|
NOT?: StressfreiEmailWhereInput | StressfreiEmailWhereInput[]
|
|
customerId?: IntFilter<"StressfreiEmail"> | number
|
|
email?: StringFilter<"StressfreiEmail"> | string
|
|
platform?: StringNullableFilter<"StressfreiEmail"> | string | null
|
|
notes?: StringNullableFilter<"StressfreiEmail"> | string | null
|
|
isActive?: BoolFilter<"StressfreiEmail"> | boolean
|
|
isProvisioned?: BoolFilter<"StressfreiEmail"> | boolean
|
|
provisionedAt?: DateTimeNullableFilter<"StressfreiEmail"> | Date | string | null
|
|
provisionError?: StringNullableFilter<"StressfreiEmail"> | string | null
|
|
hasMailbox?: BoolFilter<"StressfreiEmail"> | boolean
|
|
emailPasswordEncrypted?: StringNullableFilter<"StressfreiEmail"> | string | null
|
|
createdAt?: DateTimeFilter<"StressfreiEmail"> | Date | string
|
|
updatedAt?: DateTimeFilter<"StressfreiEmail"> | Date | string
|
|
customer?: XOR<CustomerRelationFilter, CustomerWhereInput>
|
|
contracts?: ContractListRelationFilter
|
|
cachedEmails?: CachedEmailListRelationFilter
|
|
}, "id">
|
|
|
|
export type StressfreiEmailOrderByWithAggregationInput = {
|
|
id?: SortOrder
|
|
customerId?: SortOrder
|
|
email?: SortOrder
|
|
platform?: SortOrderInput | SortOrder
|
|
notes?: SortOrderInput | SortOrder
|
|
isActive?: SortOrder
|
|
isProvisioned?: SortOrder
|
|
provisionedAt?: SortOrderInput | SortOrder
|
|
provisionError?: SortOrderInput | SortOrder
|
|
hasMailbox?: SortOrder
|
|
emailPasswordEncrypted?: SortOrderInput | SortOrder
|
|
createdAt?: SortOrder
|
|
updatedAt?: SortOrder
|
|
_count?: StressfreiEmailCountOrderByAggregateInput
|
|
_avg?: StressfreiEmailAvgOrderByAggregateInput
|
|
_max?: StressfreiEmailMaxOrderByAggregateInput
|
|
_min?: StressfreiEmailMinOrderByAggregateInput
|
|
_sum?: StressfreiEmailSumOrderByAggregateInput
|
|
}
|
|
|
|
export type StressfreiEmailScalarWhereWithAggregatesInput = {
|
|
AND?: StressfreiEmailScalarWhereWithAggregatesInput | StressfreiEmailScalarWhereWithAggregatesInput[]
|
|
OR?: StressfreiEmailScalarWhereWithAggregatesInput[]
|
|
NOT?: StressfreiEmailScalarWhereWithAggregatesInput | StressfreiEmailScalarWhereWithAggregatesInput[]
|
|
id?: IntWithAggregatesFilter<"StressfreiEmail"> | number
|
|
customerId?: IntWithAggregatesFilter<"StressfreiEmail"> | number
|
|
email?: StringWithAggregatesFilter<"StressfreiEmail"> | string
|
|
platform?: StringNullableWithAggregatesFilter<"StressfreiEmail"> | string | null
|
|
notes?: StringNullableWithAggregatesFilter<"StressfreiEmail"> | string | null
|
|
isActive?: BoolWithAggregatesFilter<"StressfreiEmail"> | boolean
|
|
isProvisioned?: BoolWithAggregatesFilter<"StressfreiEmail"> | boolean
|
|
provisionedAt?: DateTimeNullableWithAggregatesFilter<"StressfreiEmail"> | Date | string | null
|
|
provisionError?: StringNullableWithAggregatesFilter<"StressfreiEmail"> | string | null
|
|
hasMailbox?: BoolWithAggregatesFilter<"StressfreiEmail"> | boolean
|
|
emailPasswordEncrypted?: StringNullableWithAggregatesFilter<"StressfreiEmail"> | string | null
|
|
createdAt?: DateTimeWithAggregatesFilter<"StressfreiEmail"> | Date | string
|
|
updatedAt?: DateTimeWithAggregatesFilter<"StressfreiEmail"> | Date | string
|
|
}
|
|
|
|
export type CachedEmailWhereInput = {
|
|
AND?: CachedEmailWhereInput | CachedEmailWhereInput[]
|
|
OR?: CachedEmailWhereInput[]
|
|
NOT?: CachedEmailWhereInput | CachedEmailWhereInput[]
|
|
id?: IntFilter<"CachedEmail"> | number
|
|
stressfreiEmailId?: IntFilter<"CachedEmail"> | number
|
|
folder?: EnumEmailFolderFilter<"CachedEmail"> | $Enums.EmailFolder
|
|
messageId?: StringFilter<"CachedEmail"> | string
|
|
uid?: IntFilter<"CachedEmail"> | number
|
|
subject?: StringNullableFilter<"CachedEmail"> | string | null
|
|
fromAddress?: StringFilter<"CachedEmail"> | string
|
|
fromName?: StringNullableFilter<"CachedEmail"> | string | null
|
|
toAddresses?: StringFilter<"CachedEmail"> | string
|
|
ccAddresses?: StringNullableFilter<"CachedEmail"> | string | null
|
|
receivedAt?: DateTimeFilter<"CachedEmail"> | Date | string
|
|
textBody?: StringNullableFilter<"CachedEmail"> | string | null
|
|
htmlBody?: StringNullableFilter<"CachedEmail"> | string | null
|
|
hasAttachments?: BoolFilter<"CachedEmail"> | boolean
|
|
attachmentNames?: StringNullableFilter<"CachedEmail"> | string | null
|
|
contractId?: IntNullableFilter<"CachedEmail"> | number | null
|
|
assignedAt?: DateTimeNullableFilter<"CachedEmail"> | Date | string | null
|
|
assignedBy?: IntNullableFilter<"CachedEmail"> | number | null
|
|
isAutoAssigned?: BoolFilter<"CachedEmail"> | boolean
|
|
isRead?: BoolFilter<"CachedEmail"> | boolean
|
|
isStarred?: BoolFilter<"CachedEmail"> | boolean
|
|
isDeleted?: BoolFilter<"CachedEmail"> | boolean
|
|
deletedAt?: DateTimeNullableFilter<"CachedEmail"> | Date | string | null
|
|
createdAt?: DateTimeFilter<"CachedEmail"> | Date | string
|
|
updatedAt?: DateTimeFilter<"CachedEmail"> | Date | string
|
|
stressfreiEmail?: XOR<StressfreiEmailRelationFilter, StressfreiEmailWhereInput>
|
|
contract?: XOR<ContractNullableRelationFilter, ContractWhereInput> | null
|
|
}
|
|
|
|
export type CachedEmailOrderByWithRelationInput = {
|
|
id?: SortOrder
|
|
stressfreiEmailId?: SortOrder
|
|
folder?: SortOrder
|
|
messageId?: SortOrder
|
|
uid?: SortOrder
|
|
subject?: SortOrderInput | SortOrder
|
|
fromAddress?: SortOrder
|
|
fromName?: SortOrderInput | SortOrder
|
|
toAddresses?: SortOrder
|
|
ccAddresses?: SortOrderInput | SortOrder
|
|
receivedAt?: SortOrder
|
|
textBody?: SortOrderInput | SortOrder
|
|
htmlBody?: SortOrderInput | SortOrder
|
|
hasAttachments?: SortOrder
|
|
attachmentNames?: SortOrderInput | SortOrder
|
|
contractId?: SortOrderInput | SortOrder
|
|
assignedAt?: SortOrderInput | SortOrder
|
|
assignedBy?: SortOrderInput | SortOrder
|
|
isAutoAssigned?: SortOrder
|
|
isRead?: SortOrder
|
|
isStarred?: SortOrder
|
|
isDeleted?: SortOrder
|
|
deletedAt?: SortOrderInput | SortOrder
|
|
createdAt?: SortOrder
|
|
updatedAt?: SortOrder
|
|
stressfreiEmail?: StressfreiEmailOrderByWithRelationInput
|
|
contract?: ContractOrderByWithRelationInput
|
|
}
|
|
|
|
export type CachedEmailWhereUniqueInput = Prisma.AtLeast<{
|
|
id?: number
|
|
stressfreiEmailId_messageId_folder?: CachedEmailStressfreiEmailIdMessageIdFolderCompoundUniqueInput
|
|
AND?: CachedEmailWhereInput | CachedEmailWhereInput[]
|
|
OR?: CachedEmailWhereInput[]
|
|
NOT?: CachedEmailWhereInput | CachedEmailWhereInput[]
|
|
stressfreiEmailId?: IntFilter<"CachedEmail"> | number
|
|
folder?: EnumEmailFolderFilter<"CachedEmail"> | $Enums.EmailFolder
|
|
messageId?: StringFilter<"CachedEmail"> | string
|
|
uid?: IntFilter<"CachedEmail"> | number
|
|
subject?: StringNullableFilter<"CachedEmail"> | string | null
|
|
fromAddress?: StringFilter<"CachedEmail"> | string
|
|
fromName?: StringNullableFilter<"CachedEmail"> | string | null
|
|
toAddresses?: StringFilter<"CachedEmail"> | string
|
|
ccAddresses?: StringNullableFilter<"CachedEmail"> | string | null
|
|
receivedAt?: DateTimeFilter<"CachedEmail"> | Date | string
|
|
textBody?: StringNullableFilter<"CachedEmail"> | string | null
|
|
htmlBody?: StringNullableFilter<"CachedEmail"> | string | null
|
|
hasAttachments?: BoolFilter<"CachedEmail"> | boolean
|
|
attachmentNames?: StringNullableFilter<"CachedEmail"> | string | null
|
|
contractId?: IntNullableFilter<"CachedEmail"> | number | null
|
|
assignedAt?: DateTimeNullableFilter<"CachedEmail"> | Date | string | null
|
|
assignedBy?: IntNullableFilter<"CachedEmail"> | number | null
|
|
isAutoAssigned?: BoolFilter<"CachedEmail"> | boolean
|
|
isRead?: BoolFilter<"CachedEmail"> | boolean
|
|
isStarred?: BoolFilter<"CachedEmail"> | boolean
|
|
isDeleted?: BoolFilter<"CachedEmail"> | boolean
|
|
deletedAt?: DateTimeNullableFilter<"CachedEmail"> | Date | string | null
|
|
createdAt?: DateTimeFilter<"CachedEmail"> | Date | string
|
|
updatedAt?: DateTimeFilter<"CachedEmail"> | Date | string
|
|
stressfreiEmail?: XOR<StressfreiEmailRelationFilter, StressfreiEmailWhereInput>
|
|
contract?: XOR<ContractNullableRelationFilter, ContractWhereInput> | null
|
|
}, "id" | "stressfreiEmailId_messageId_folder">
|
|
|
|
export type CachedEmailOrderByWithAggregationInput = {
|
|
id?: SortOrder
|
|
stressfreiEmailId?: SortOrder
|
|
folder?: SortOrder
|
|
messageId?: SortOrder
|
|
uid?: SortOrder
|
|
subject?: SortOrderInput | SortOrder
|
|
fromAddress?: SortOrder
|
|
fromName?: SortOrderInput | SortOrder
|
|
toAddresses?: SortOrder
|
|
ccAddresses?: SortOrderInput | SortOrder
|
|
receivedAt?: SortOrder
|
|
textBody?: SortOrderInput | SortOrder
|
|
htmlBody?: SortOrderInput | SortOrder
|
|
hasAttachments?: SortOrder
|
|
attachmentNames?: SortOrderInput | SortOrder
|
|
contractId?: SortOrderInput | SortOrder
|
|
assignedAt?: SortOrderInput | SortOrder
|
|
assignedBy?: SortOrderInput | SortOrder
|
|
isAutoAssigned?: SortOrder
|
|
isRead?: SortOrder
|
|
isStarred?: SortOrder
|
|
isDeleted?: SortOrder
|
|
deletedAt?: SortOrderInput | SortOrder
|
|
createdAt?: SortOrder
|
|
updatedAt?: SortOrder
|
|
_count?: CachedEmailCountOrderByAggregateInput
|
|
_avg?: CachedEmailAvgOrderByAggregateInput
|
|
_max?: CachedEmailMaxOrderByAggregateInput
|
|
_min?: CachedEmailMinOrderByAggregateInput
|
|
_sum?: CachedEmailSumOrderByAggregateInput
|
|
}
|
|
|
|
export type CachedEmailScalarWhereWithAggregatesInput = {
|
|
AND?: CachedEmailScalarWhereWithAggregatesInput | CachedEmailScalarWhereWithAggregatesInput[]
|
|
OR?: CachedEmailScalarWhereWithAggregatesInput[]
|
|
NOT?: CachedEmailScalarWhereWithAggregatesInput | CachedEmailScalarWhereWithAggregatesInput[]
|
|
id?: IntWithAggregatesFilter<"CachedEmail"> | number
|
|
stressfreiEmailId?: IntWithAggregatesFilter<"CachedEmail"> | number
|
|
folder?: EnumEmailFolderWithAggregatesFilter<"CachedEmail"> | $Enums.EmailFolder
|
|
messageId?: StringWithAggregatesFilter<"CachedEmail"> | string
|
|
uid?: IntWithAggregatesFilter<"CachedEmail"> | number
|
|
subject?: StringNullableWithAggregatesFilter<"CachedEmail"> | string | null
|
|
fromAddress?: StringWithAggregatesFilter<"CachedEmail"> | string
|
|
fromName?: StringNullableWithAggregatesFilter<"CachedEmail"> | string | null
|
|
toAddresses?: StringWithAggregatesFilter<"CachedEmail"> | string
|
|
ccAddresses?: StringNullableWithAggregatesFilter<"CachedEmail"> | string | null
|
|
receivedAt?: DateTimeWithAggregatesFilter<"CachedEmail"> | Date | string
|
|
textBody?: StringNullableWithAggregatesFilter<"CachedEmail"> | string | null
|
|
htmlBody?: StringNullableWithAggregatesFilter<"CachedEmail"> | string | null
|
|
hasAttachments?: BoolWithAggregatesFilter<"CachedEmail"> | boolean
|
|
attachmentNames?: StringNullableWithAggregatesFilter<"CachedEmail"> | string | null
|
|
contractId?: IntNullableWithAggregatesFilter<"CachedEmail"> | number | null
|
|
assignedAt?: DateTimeNullableWithAggregatesFilter<"CachedEmail"> | Date | string | null
|
|
assignedBy?: IntNullableWithAggregatesFilter<"CachedEmail"> | number | null
|
|
isAutoAssigned?: BoolWithAggregatesFilter<"CachedEmail"> | boolean
|
|
isRead?: BoolWithAggregatesFilter<"CachedEmail"> | boolean
|
|
isStarred?: BoolWithAggregatesFilter<"CachedEmail"> | boolean
|
|
isDeleted?: BoolWithAggregatesFilter<"CachedEmail"> | boolean
|
|
deletedAt?: DateTimeNullableWithAggregatesFilter<"CachedEmail"> | Date | string | null
|
|
createdAt?: DateTimeWithAggregatesFilter<"CachedEmail"> | Date | string
|
|
updatedAt?: DateTimeWithAggregatesFilter<"CachedEmail"> | Date | string
|
|
}
|
|
|
|
export type MeterWhereInput = {
|
|
AND?: MeterWhereInput | MeterWhereInput[]
|
|
OR?: MeterWhereInput[]
|
|
NOT?: MeterWhereInput | MeterWhereInput[]
|
|
id?: IntFilter<"Meter"> | number
|
|
customerId?: IntFilter<"Meter"> | number
|
|
meterNumber?: StringFilter<"Meter"> | string
|
|
type?: EnumMeterTypeFilter<"Meter"> | $Enums.MeterType
|
|
location?: StringNullableFilter<"Meter"> | string | null
|
|
isActive?: BoolFilter<"Meter"> | boolean
|
|
createdAt?: DateTimeFilter<"Meter"> | Date | string
|
|
updatedAt?: DateTimeFilter<"Meter"> | Date | string
|
|
customer?: XOR<CustomerRelationFilter, CustomerWhereInput>
|
|
readings?: MeterReadingListRelationFilter
|
|
energyDetails?: EnergyContractDetailsListRelationFilter
|
|
}
|
|
|
|
export type MeterOrderByWithRelationInput = {
|
|
id?: SortOrder
|
|
customerId?: SortOrder
|
|
meterNumber?: SortOrder
|
|
type?: SortOrder
|
|
location?: SortOrderInput | SortOrder
|
|
isActive?: SortOrder
|
|
createdAt?: SortOrder
|
|
updatedAt?: SortOrder
|
|
customer?: CustomerOrderByWithRelationInput
|
|
readings?: MeterReadingOrderByRelationAggregateInput
|
|
energyDetails?: EnergyContractDetailsOrderByRelationAggregateInput
|
|
}
|
|
|
|
export type MeterWhereUniqueInput = Prisma.AtLeast<{
|
|
id?: number
|
|
AND?: MeterWhereInput | MeterWhereInput[]
|
|
OR?: MeterWhereInput[]
|
|
NOT?: MeterWhereInput | MeterWhereInput[]
|
|
customerId?: IntFilter<"Meter"> | number
|
|
meterNumber?: StringFilter<"Meter"> | string
|
|
type?: EnumMeterTypeFilter<"Meter"> | $Enums.MeterType
|
|
location?: StringNullableFilter<"Meter"> | string | null
|
|
isActive?: BoolFilter<"Meter"> | boolean
|
|
createdAt?: DateTimeFilter<"Meter"> | Date | string
|
|
updatedAt?: DateTimeFilter<"Meter"> | Date | string
|
|
customer?: XOR<CustomerRelationFilter, CustomerWhereInput>
|
|
readings?: MeterReadingListRelationFilter
|
|
energyDetails?: EnergyContractDetailsListRelationFilter
|
|
}, "id">
|
|
|
|
export type MeterOrderByWithAggregationInput = {
|
|
id?: SortOrder
|
|
customerId?: SortOrder
|
|
meterNumber?: SortOrder
|
|
type?: SortOrder
|
|
location?: SortOrderInput | SortOrder
|
|
isActive?: SortOrder
|
|
createdAt?: SortOrder
|
|
updatedAt?: SortOrder
|
|
_count?: MeterCountOrderByAggregateInput
|
|
_avg?: MeterAvgOrderByAggregateInput
|
|
_max?: MeterMaxOrderByAggregateInput
|
|
_min?: MeterMinOrderByAggregateInput
|
|
_sum?: MeterSumOrderByAggregateInput
|
|
}
|
|
|
|
export type MeterScalarWhereWithAggregatesInput = {
|
|
AND?: MeterScalarWhereWithAggregatesInput | MeterScalarWhereWithAggregatesInput[]
|
|
OR?: MeterScalarWhereWithAggregatesInput[]
|
|
NOT?: MeterScalarWhereWithAggregatesInput | MeterScalarWhereWithAggregatesInput[]
|
|
id?: IntWithAggregatesFilter<"Meter"> | number
|
|
customerId?: IntWithAggregatesFilter<"Meter"> | number
|
|
meterNumber?: StringWithAggregatesFilter<"Meter"> | string
|
|
type?: EnumMeterTypeWithAggregatesFilter<"Meter"> | $Enums.MeterType
|
|
location?: StringNullableWithAggregatesFilter<"Meter"> | string | null
|
|
isActive?: BoolWithAggregatesFilter<"Meter"> | boolean
|
|
createdAt?: DateTimeWithAggregatesFilter<"Meter"> | Date | string
|
|
updatedAt?: DateTimeWithAggregatesFilter<"Meter"> | Date | string
|
|
}
|
|
|
|
export type MeterReadingWhereInput = {
|
|
AND?: MeterReadingWhereInput | MeterReadingWhereInput[]
|
|
OR?: MeterReadingWhereInput[]
|
|
NOT?: MeterReadingWhereInput | MeterReadingWhereInput[]
|
|
id?: IntFilter<"MeterReading"> | number
|
|
meterId?: IntFilter<"MeterReading"> | number
|
|
readingDate?: DateTimeFilter<"MeterReading"> | Date | string
|
|
value?: FloatFilter<"MeterReading"> | number
|
|
unit?: StringFilter<"MeterReading"> | string
|
|
notes?: StringNullableFilter<"MeterReading"> | string | null
|
|
createdAt?: DateTimeFilter<"MeterReading"> | Date | string
|
|
meter?: XOR<MeterRelationFilter, MeterWhereInput>
|
|
}
|
|
|
|
export type MeterReadingOrderByWithRelationInput = {
|
|
id?: SortOrder
|
|
meterId?: SortOrder
|
|
readingDate?: SortOrder
|
|
value?: SortOrder
|
|
unit?: SortOrder
|
|
notes?: SortOrderInput | SortOrder
|
|
createdAt?: SortOrder
|
|
meter?: MeterOrderByWithRelationInput
|
|
}
|
|
|
|
export type MeterReadingWhereUniqueInput = Prisma.AtLeast<{
|
|
id?: number
|
|
AND?: MeterReadingWhereInput | MeterReadingWhereInput[]
|
|
OR?: MeterReadingWhereInput[]
|
|
NOT?: MeterReadingWhereInput | MeterReadingWhereInput[]
|
|
meterId?: IntFilter<"MeterReading"> | number
|
|
readingDate?: DateTimeFilter<"MeterReading"> | Date | string
|
|
value?: FloatFilter<"MeterReading"> | number
|
|
unit?: StringFilter<"MeterReading"> | string
|
|
notes?: StringNullableFilter<"MeterReading"> | string | null
|
|
createdAt?: DateTimeFilter<"MeterReading"> | Date | string
|
|
meter?: XOR<MeterRelationFilter, MeterWhereInput>
|
|
}, "id">
|
|
|
|
export type MeterReadingOrderByWithAggregationInput = {
|
|
id?: SortOrder
|
|
meterId?: SortOrder
|
|
readingDate?: SortOrder
|
|
value?: SortOrder
|
|
unit?: SortOrder
|
|
notes?: SortOrderInput | SortOrder
|
|
createdAt?: SortOrder
|
|
_count?: MeterReadingCountOrderByAggregateInput
|
|
_avg?: MeterReadingAvgOrderByAggregateInput
|
|
_max?: MeterReadingMaxOrderByAggregateInput
|
|
_min?: MeterReadingMinOrderByAggregateInput
|
|
_sum?: MeterReadingSumOrderByAggregateInput
|
|
}
|
|
|
|
export type MeterReadingScalarWhereWithAggregatesInput = {
|
|
AND?: MeterReadingScalarWhereWithAggregatesInput | MeterReadingScalarWhereWithAggregatesInput[]
|
|
OR?: MeterReadingScalarWhereWithAggregatesInput[]
|
|
NOT?: MeterReadingScalarWhereWithAggregatesInput | MeterReadingScalarWhereWithAggregatesInput[]
|
|
id?: IntWithAggregatesFilter<"MeterReading"> | number
|
|
meterId?: IntWithAggregatesFilter<"MeterReading"> | number
|
|
readingDate?: DateTimeWithAggregatesFilter<"MeterReading"> | Date | string
|
|
value?: FloatWithAggregatesFilter<"MeterReading"> | number
|
|
unit?: StringWithAggregatesFilter<"MeterReading"> | string
|
|
notes?: StringNullableWithAggregatesFilter<"MeterReading"> | string | null
|
|
createdAt?: DateTimeWithAggregatesFilter<"MeterReading"> | Date | string
|
|
}
|
|
|
|
export type SalesPlatformWhereInput = {
|
|
AND?: SalesPlatformWhereInput | SalesPlatformWhereInput[]
|
|
OR?: SalesPlatformWhereInput[]
|
|
NOT?: SalesPlatformWhereInput | SalesPlatformWhereInput[]
|
|
id?: IntFilter<"SalesPlatform"> | number
|
|
name?: StringFilter<"SalesPlatform"> | string
|
|
contactInfo?: StringNullableFilter<"SalesPlatform"> | string | null
|
|
isActive?: BoolFilter<"SalesPlatform"> | boolean
|
|
createdAt?: DateTimeFilter<"SalesPlatform"> | Date | string
|
|
updatedAt?: DateTimeFilter<"SalesPlatform"> | Date | string
|
|
contracts?: ContractListRelationFilter
|
|
}
|
|
|
|
export type SalesPlatformOrderByWithRelationInput = {
|
|
id?: SortOrder
|
|
name?: SortOrder
|
|
contactInfo?: SortOrderInput | SortOrder
|
|
isActive?: SortOrder
|
|
createdAt?: SortOrder
|
|
updatedAt?: SortOrder
|
|
contracts?: ContractOrderByRelationAggregateInput
|
|
}
|
|
|
|
export type SalesPlatformWhereUniqueInput = Prisma.AtLeast<{
|
|
id?: number
|
|
name?: string
|
|
AND?: SalesPlatformWhereInput | SalesPlatformWhereInput[]
|
|
OR?: SalesPlatformWhereInput[]
|
|
NOT?: SalesPlatformWhereInput | SalesPlatformWhereInput[]
|
|
contactInfo?: StringNullableFilter<"SalesPlatform"> | string | null
|
|
isActive?: BoolFilter<"SalesPlatform"> | boolean
|
|
createdAt?: DateTimeFilter<"SalesPlatform"> | Date | string
|
|
updatedAt?: DateTimeFilter<"SalesPlatform"> | Date | string
|
|
contracts?: ContractListRelationFilter
|
|
}, "id" | "name">
|
|
|
|
export type SalesPlatformOrderByWithAggregationInput = {
|
|
id?: SortOrder
|
|
name?: SortOrder
|
|
contactInfo?: SortOrderInput | SortOrder
|
|
isActive?: SortOrder
|
|
createdAt?: SortOrder
|
|
updatedAt?: SortOrder
|
|
_count?: SalesPlatformCountOrderByAggregateInput
|
|
_avg?: SalesPlatformAvgOrderByAggregateInput
|
|
_max?: SalesPlatformMaxOrderByAggregateInput
|
|
_min?: SalesPlatformMinOrderByAggregateInput
|
|
_sum?: SalesPlatformSumOrderByAggregateInput
|
|
}
|
|
|
|
export type SalesPlatformScalarWhereWithAggregatesInput = {
|
|
AND?: SalesPlatformScalarWhereWithAggregatesInput | SalesPlatformScalarWhereWithAggregatesInput[]
|
|
OR?: SalesPlatformScalarWhereWithAggregatesInput[]
|
|
NOT?: SalesPlatformScalarWhereWithAggregatesInput | SalesPlatformScalarWhereWithAggregatesInput[]
|
|
id?: IntWithAggregatesFilter<"SalesPlatform"> | number
|
|
name?: StringWithAggregatesFilter<"SalesPlatform"> | string
|
|
contactInfo?: StringNullableWithAggregatesFilter<"SalesPlatform"> | string | null
|
|
isActive?: BoolWithAggregatesFilter<"SalesPlatform"> | boolean
|
|
createdAt?: DateTimeWithAggregatesFilter<"SalesPlatform"> | Date | string
|
|
updatedAt?: DateTimeWithAggregatesFilter<"SalesPlatform"> | Date | string
|
|
}
|
|
|
|
export type CancellationPeriodWhereInput = {
|
|
AND?: CancellationPeriodWhereInput | CancellationPeriodWhereInput[]
|
|
OR?: CancellationPeriodWhereInput[]
|
|
NOT?: CancellationPeriodWhereInput | CancellationPeriodWhereInput[]
|
|
id?: IntFilter<"CancellationPeriod"> | number
|
|
code?: StringFilter<"CancellationPeriod"> | string
|
|
description?: StringFilter<"CancellationPeriod"> | string
|
|
isActive?: BoolFilter<"CancellationPeriod"> | boolean
|
|
createdAt?: DateTimeFilter<"CancellationPeriod"> | Date | string
|
|
updatedAt?: DateTimeFilter<"CancellationPeriod"> | Date | string
|
|
contracts?: ContractListRelationFilter
|
|
}
|
|
|
|
export type CancellationPeriodOrderByWithRelationInput = {
|
|
id?: SortOrder
|
|
code?: SortOrder
|
|
description?: SortOrder
|
|
isActive?: SortOrder
|
|
createdAt?: SortOrder
|
|
updatedAt?: SortOrder
|
|
contracts?: ContractOrderByRelationAggregateInput
|
|
}
|
|
|
|
export type CancellationPeriodWhereUniqueInput = Prisma.AtLeast<{
|
|
id?: number
|
|
code?: string
|
|
AND?: CancellationPeriodWhereInput | CancellationPeriodWhereInput[]
|
|
OR?: CancellationPeriodWhereInput[]
|
|
NOT?: CancellationPeriodWhereInput | CancellationPeriodWhereInput[]
|
|
description?: StringFilter<"CancellationPeriod"> | string
|
|
isActive?: BoolFilter<"CancellationPeriod"> | boolean
|
|
createdAt?: DateTimeFilter<"CancellationPeriod"> | Date | string
|
|
updatedAt?: DateTimeFilter<"CancellationPeriod"> | Date | string
|
|
contracts?: ContractListRelationFilter
|
|
}, "id" | "code">
|
|
|
|
export type CancellationPeriodOrderByWithAggregationInput = {
|
|
id?: SortOrder
|
|
code?: SortOrder
|
|
description?: SortOrder
|
|
isActive?: SortOrder
|
|
createdAt?: SortOrder
|
|
updatedAt?: SortOrder
|
|
_count?: CancellationPeriodCountOrderByAggregateInput
|
|
_avg?: CancellationPeriodAvgOrderByAggregateInput
|
|
_max?: CancellationPeriodMaxOrderByAggregateInput
|
|
_min?: CancellationPeriodMinOrderByAggregateInput
|
|
_sum?: CancellationPeriodSumOrderByAggregateInput
|
|
}
|
|
|
|
export type CancellationPeriodScalarWhereWithAggregatesInput = {
|
|
AND?: CancellationPeriodScalarWhereWithAggregatesInput | CancellationPeriodScalarWhereWithAggregatesInput[]
|
|
OR?: CancellationPeriodScalarWhereWithAggregatesInput[]
|
|
NOT?: CancellationPeriodScalarWhereWithAggregatesInput | CancellationPeriodScalarWhereWithAggregatesInput[]
|
|
id?: IntWithAggregatesFilter<"CancellationPeriod"> | number
|
|
code?: StringWithAggregatesFilter<"CancellationPeriod"> | string
|
|
description?: StringWithAggregatesFilter<"CancellationPeriod"> | string
|
|
isActive?: BoolWithAggregatesFilter<"CancellationPeriod"> | boolean
|
|
createdAt?: DateTimeWithAggregatesFilter<"CancellationPeriod"> | Date | string
|
|
updatedAt?: DateTimeWithAggregatesFilter<"CancellationPeriod"> | Date | string
|
|
}
|
|
|
|
export type ContractDurationWhereInput = {
|
|
AND?: ContractDurationWhereInput | ContractDurationWhereInput[]
|
|
OR?: ContractDurationWhereInput[]
|
|
NOT?: ContractDurationWhereInput | ContractDurationWhereInput[]
|
|
id?: IntFilter<"ContractDuration"> | number
|
|
code?: StringFilter<"ContractDuration"> | string
|
|
description?: StringFilter<"ContractDuration"> | string
|
|
isActive?: BoolFilter<"ContractDuration"> | boolean
|
|
createdAt?: DateTimeFilter<"ContractDuration"> | Date | string
|
|
updatedAt?: DateTimeFilter<"ContractDuration"> | Date | string
|
|
contracts?: ContractListRelationFilter
|
|
}
|
|
|
|
export type ContractDurationOrderByWithRelationInput = {
|
|
id?: SortOrder
|
|
code?: SortOrder
|
|
description?: SortOrder
|
|
isActive?: SortOrder
|
|
createdAt?: SortOrder
|
|
updatedAt?: SortOrder
|
|
contracts?: ContractOrderByRelationAggregateInput
|
|
}
|
|
|
|
export type ContractDurationWhereUniqueInput = Prisma.AtLeast<{
|
|
id?: number
|
|
code?: string
|
|
AND?: ContractDurationWhereInput | ContractDurationWhereInput[]
|
|
OR?: ContractDurationWhereInput[]
|
|
NOT?: ContractDurationWhereInput | ContractDurationWhereInput[]
|
|
description?: StringFilter<"ContractDuration"> | string
|
|
isActive?: BoolFilter<"ContractDuration"> | boolean
|
|
createdAt?: DateTimeFilter<"ContractDuration"> | Date | string
|
|
updatedAt?: DateTimeFilter<"ContractDuration"> | Date | string
|
|
contracts?: ContractListRelationFilter
|
|
}, "id" | "code">
|
|
|
|
export type ContractDurationOrderByWithAggregationInput = {
|
|
id?: SortOrder
|
|
code?: SortOrder
|
|
description?: SortOrder
|
|
isActive?: SortOrder
|
|
createdAt?: SortOrder
|
|
updatedAt?: SortOrder
|
|
_count?: ContractDurationCountOrderByAggregateInput
|
|
_avg?: ContractDurationAvgOrderByAggregateInput
|
|
_max?: ContractDurationMaxOrderByAggregateInput
|
|
_min?: ContractDurationMinOrderByAggregateInput
|
|
_sum?: ContractDurationSumOrderByAggregateInput
|
|
}
|
|
|
|
export type ContractDurationScalarWhereWithAggregatesInput = {
|
|
AND?: ContractDurationScalarWhereWithAggregatesInput | ContractDurationScalarWhereWithAggregatesInput[]
|
|
OR?: ContractDurationScalarWhereWithAggregatesInput[]
|
|
NOT?: ContractDurationScalarWhereWithAggregatesInput | ContractDurationScalarWhereWithAggregatesInput[]
|
|
id?: IntWithAggregatesFilter<"ContractDuration"> | number
|
|
code?: StringWithAggregatesFilter<"ContractDuration"> | string
|
|
description?: StringWithAggregatesFilter<"ContractDuration"> | string
|
|
isActive?: BoolWithAggregatesFilter<"ContractDuration"> | boolean
|
|
createdAt?: DateTimeWithAggregatesFilter<"ContractDuration"> | Date | string
|
|
updatedAt?: DateTimeWithAggregatesFilter<"ContractDuration"> | Date | string
|
|
}
|
|
|
|
export type ProviderWhereInput = {
|
|
AND?: ProviderWhereInput | ProviderWhereInput[]
|
|
OR?: ProviderWhereInput[]
|
|
NOT?: ProviderWhereInput | ProviderWhereInput[]
|
|
id?: IntFilter<"Provider"> | number
|
|
name?: StringFilter<"Provider"> | string
|
|
portalUrl?: StringNullableFilter<"Provider"> | string | null
|
|
usernameFieldName?: StringNullableFilter<"Provider"> | string | null
|
|
passwordFieldName?: StringNullableFilter<"Provider"> | string | null
|
|
isActive?: BoolFilter<"Provider"> | boolean
|
|
createdAt?: DateTimeFilter<"Provider"> | Date | string
|
|
updatedAt?: DateTimeFilter<"Provider"> | Date | string
|
|
tariffs?: TariffListRelationFilter
|
|
contracts?: ContractListRelationFilter
|
|
}
|
|
|
|
export type ProviderOrderByWithRelationInput = {
|
|
id?: SortOrder
|
|
name?: SortOrder
|
|
portalUrl?: SortOrderInput | SortOrder
|
|
usernameFieldName?: SortOrderInput | SortOrder
|
|
passwordFieldName?: SortOrderInput | SortOrder
|
|
isActive?: SortOrder
|
|
createdAt?: SortOrder
|
|
updatedAt?: SortOrder
|
|
tariffs?: TariffOrderByRelationAggregateInput
|
|
contracts?: ContractOrderByRelationAggregateInput
|
|
}
|
|
|
|
export type ProviderWhereUniqueInput = Prisma.AtLeast<{
|
|
id?: number
|
|
name?: string
|
|
AND?: ProviderWhereInput | ProviderWhereInput[]
|
|
OR?: ProviderWhereInput[]
|
|
NOT?: ProviderWhereInput | ProviderWhereInput[]
|
|
portalUrl?: StringNullableFilter<"Provider"> | string | null
|
|
usernameFieldName?: StringNullableFilter<"Provider"> | string | null
|
|
passwordFieldName?: StringNullableFilter<"Provider"> | string | null
|
|
isActive?: BoolFilter<"Provider"> | boolean
|
|
createdAt?: DateTimeFilter<"Provider"> | Date | string
|
|
updatedAt?: DateTimeFilter<"Provider"> | Date | string
|
|
tariffs?: TariffListRelationFilter
|
|
contracts?: ContractListRelationFilter
|
|
}, "id" | "name">
|
|
|
|
export type ProviderOrderByWithAggregationInput = {
|
|
id?: SortOrder
|
|
name?: SortOrder
|
|
portalUrl?: SortOrderInput | SortOrder
|
|
usernameFieldName?: SortOrderInput | SortOrder
|
|
passwordFieldName?: SortOrderInput | SortOrder
|
|
isActive?: SortOrder
|
|
createdAt?: SortOrder
|
|
updatedAt?: SortOrder
|
|
_count?: ProviderCountOrderByAggregateInput
|
|
_avg?: ProviderAvgOrderByAggregateInput
|
|
_max?: ProviderMaxOrderByAggregateInput
|
|
_min?: ProviderMinOrderByAggregateInput
|
|
_sum?: ProviderSumOrderByAggregateInput
|
|
}
|
|
|
|
export type ProviderScalarWhereWithAggregatesInput = {
|
|
AND?: ProviderScalarWhereWithAggregatesInput | ProviderScalarWhereWithAggregatesInput[]
|
|
OR?: ProviderScalarWhereWithAggregatesInput[]
|
|
NOT?: ProviderScalarWhereWithAggregatesInput | ProviderScalarWhereWithAggregatesInput[]
|
|
id?: IntWithAggregatesFilter<"Provider"> | number
|
|
name?: StringWithAggregatesFilter<"Provider"> | string
|
|
portalUrl?: StringNullableWithAggregatesFilter<"Provider"> | string | null
|
|
usernameFieldName?: StringNullableWithAggregatesFilter<"Provider"> | string | null
|
|
passwordFieldName?: StringNullableWithAggregatesFilter<"Provider"> | string | null
|
|
isActive?: BoolWithAggregatesFilter<"Provider"> | boolean
|
|
createdAt?: DateTimeWithAggregatesFilter<"Provider"> | Date | string
|
|
updatedAt?: DateTimeWithAggregatesFilter<"Provider"> | Date | string
|
|
}
|
|
|
|
export type TariffWhereInput = {
|
|
AND?: TariffWhereInput | TariffWhereInput[]
|
|
OR?: TariffWhereInput[]
|
|
NOT?: TariffWhereInput | TariffWhereInput[]
|
|
id?: IntFilter<"Tariff"> | number
|
|
providerId?: IntFilter<"Tariff"> | number
|
|
name?: StringFilter<"Tariff"> | string
|
|
isActive?: BoolFilter<"Tariff"> | boolean
|
|
createdAt?: DateTimeFilter<"Tariff"> | Date | string
|
|
updatedAt?: DateTimeFilter<"Tariff"> | Date | string
|
|
provider?: XOR<ProviderRelationFilter, ProviderWhereInput>
|
|
contracts?: ContractListRelationFilter
|
|
}
|
|
|
|
export type TariffOrderByWithRelationInput = {
|
|
id?: SortOrder
|
|
providerId?: SortOrder
|
|
name?: SortOrder
|
|
isActive?: SortOrder
|
|
createdAt?: SortOrder
|
|
updatedAt?: SortOrder
|
|
provider?: ProviderOrderByWithRelationInput
|
|
contracts?: ContractOrderByRelationAggregateInput
|
|
}
|
|
|
|
export type TariffWhereUniqueInput = Prisma.AtLeast<{
|
|
id?: number
|
|
providerId_name?: TariffProviderIdNameCompoundUniqueInput
|
|
AND?: TariffWhereInput | TariffWhereInput[]
|
|
OR?: TariffWhereInput[]
|
|
NOT?: TariffWhereInput | TariffWhereInput[]
|
|
providerId?: IntFilter<"Tariff"> | number
|
|
name?: StringFilter<"Tariff"> | string
|
|
isActive?: BoolFilter<"Tariff"> | boolean
|
|
createdAt?: DateTimeFilter<"Tariff"> | Date | string
|
|
updatedAt?: DateTimeFilter<"Tariff"> | Date | string
|
|
provider?: XOR<ProviderRelationFilter, ProviderWhereInput>
|
|
contracts?: ContractListRelationFilter
|
|
}, "id" | "providerId_name">
|
|
|
|
export type TariffOrderByWithAggregationInput = {
|
|
id?: SortOrder
|
|
providerId?: SortOrder
|
|
name?: SortOrder
|
|
isActive?: SortOrder
|
|
createdAt?: SortOrder
|
|
updatedAt?: SortOrder
|
|
_count?: TariffCountOrderByAggregateInput
|
|
_avg?: TariffAvgOrderByAggregateInput
|
|
_max?: TariffMaxOrderByAggregateInput
|
|
_min?: TariffMinOrderByAggregateInput
|
|
_sum?: TariffSumOrderByAggregateInput
|
|
}
|
|
|
|
export type TariffScalarWhereWithAggregatesInput = {
|
|
AND?: TariffScalarWhereWithAggregatesInput | TariffScalarWhereWithAggregatesInput[]
|
|
OR?: TariffScalarWhereWithAggregatesInput[]
|
|
NOT?: TariffScalarWhereWithAggregatesInput | TariffScalarWhereWithAggregatesInput[]
|
|
id?: IntWithAggregatesFilter<"Tariff"> | number
|
|
providerId?: IntWithAggregatesFilter<"Tariff"> | number
|
|
name?: StringWithAggregatesFilter<"Tariff"> | string
|
|
isActive?: BoolWithAggregatesFilter<"Tariff"> | boolean
|
|
createdAt?: DateTimeWithAggregatesFilter<"Tariff"> | Date | string
|
|
updatedAt?: DateTimeWithAggregatesFilter<"Tariff"> | Date | string
|
|
}
|
|
|
|
export type ContractCategoryWhereInput = {
|
|
AND?: ContractCategoryWhereInput | ContractCategoryWhereInput[]
|
|
OR?: ContractCategoryWhereInput[]
|
|
NOT?: ContractCategoryWhereInput | ContractCategoryWhereInput[]
|
|
id?: IntFilter<"ContractCategory"> | number
|
|
code?: StringFilter<"ContractCategory"> | string
|
|
name?: StringFilter<"ContractCategory"> | string
|
|
icon?: StringNullableFilter<"ContractCategory"> | string | null
|
|
color?: StringNullableFilter<"ContractCategory"> | string | null
|
|
sortOrder?: IntFilter<"ContractCategory"> | number
|
|
isActive?: BoolFilter<"ContractCategory"> | boolean
|
|
createdAt?: DateTimeFilter<"ContractCategory"> | Date | string
|
|
updatedAt?: DateTimeFilter<"ContractCategory"> | Date | string
|
|
contracts?: ContractListRelationFilter
|
|
}
|
|
|
|
export type ContractCategoryOrderByWithRelationInput = {
|
|
id?: SortOrder
|
|
code?: SortOrder
|
|
name?: SortOrder
|
|
icon?: SortOrderInput | SortOrder
|
|
color?: SortOrderInput | SortOrder
|
|
sortOrder?: SortOrder
|
|
isActive?: SortOrder
|
|
createdAt?: SortOrder
|
|
updatedAt?: SortOrder
|
|
contracts?: ContractOrderByRelationAggregateInput
|
|
}
|
|
|
|
export type ContractCategoryWhereUniqueInput = Prisma.AtLeast<{
|
|
id?: number
|
|
code?: string
|
|
AND?: ContractCategoryWhereInput | ContractCategoryWhereInput[]
|
|
OR?: ContractCategoryWhereInput[]
|
|
NOT?: ContractCategoryWhereInput | ContractCategoryWhereInput[]
|
|
name?: StringFilter<"ContractCategory"> | string
|
|
icon?: StringNullableFilter<"ContractCategory"> | string | null
|
|
color?: StringNullableFilter<"ContractCategory"> | string | null
|
|
sortOrder?: IntFilter<"ContractCategory"> | number
|
|
isActive?: BoolFilter<"ContractCategory"> | boolean
|
|
createdAt?: DateTimeFilter<"ContractCategory"> | Date | string
|
|
updatedAt?: DateTimeFilter<"ContractCategory"> | Date | string
|
|
contracts?: ContractListRelationFilter
|
|
}, "id" | "code">
|
|
|
|
export type ContractCategoryOrderByWithAggregationInput = {
|
|
id?: SortOrder
|
|
code?: SortOrder
|
|
name?: SortOrder
|
|
icon?: SortOrderInput | SortOrder
|
|
color?: SortOrderInput | SortOrder
|
|
sortOrder?: SortOrder
|
|
isActive?: SortOrder
|
|
createdAt?: SortOrder
|
|
updatedAt?: SortOrder
|
|
_count?: ContractCategoryCountOrderByAggregateInput
|
|
_avg?: ContractCategoryAvgOrderByAggregateInput
|
|
_max?: ContractCategoryMaxOrderByAggregateInput
|
|
_min?: ContractCategoryMinOrderByAggregateInput
|
|
_sum?: ContractCategorySumOrderByAggregateInput
|
|
}
|
|
|
|
export type ContractCategoryScalarWhereWithAggregatesInput = {
|
|
AND?: ContractCategoryScalarWhereWithAggregatesInput | ContractCategoryScalarWhereWithAggregatesInput[]
|
|
OR?: ContractCategoryScalarWhereWithAggregatesInput[]
|
|
NOT?: ContractCategoryScalarWhereWithAggregatesInput | ContractCategoryScalarWhereWithAggregatesInput[]
|
|
id?: IntWithAggregatesFilter<"ContractCategory"> | number
|
|
code?: StringWithAggregatesFilter<"ContractCategory"> | string
|
|
name?: StringWithAggregatesFilter<"ContractCategory"> | string
|
|
icon?: StringNullableWithAggregatesFilter<"ContractCategory"> | string | null
|
|
color?: StringNullableWithAggregatesFilter<"ContractCategory"> | string | null
|
|
sortOrder?: IntWithAggregatesFilter<"ContractCategory"> | number
|
|
isActive?: BoolWithAggregatesFilter<"ContractCategory"> | boolean
|
|
createdAt?: DateTimeWithAggregatesFilter<"ContractCategory"> | Date | string
|
|
updatedAt?: DateTimeWithAggregatesFilter<"ContractCategory"> | Date | string
|
|
}
|
|
|
|
export type ContractWhereInput = {
|
|
AND?: ContractWhereInput | ContractWhereInput[]
|
|
OR?: ContractWhereInput[]
|
|
NOT?: ContractWhereInput | ContractWhereInput[]
|
|
id?: IntFilter<"Contract"> | number
|
|
contractNumber?: StringFilter<"Contract"> | string
|
|
customerId?: IntFilter<"Contract"> | number
|
|
type?: EnumContractTypeFilter<"Contract"> | $Enums.ContractType
|
|
status?: EnumContractStatusFilter<"Contract"> | $Enums.ContractStatus
|
|
contractCategoryId?: IntNullableFilter<"Contract"> | number | null
|
|
addressId?: IntNullableFilter<"Contract"> | number | null
|
|
billingAddressId?: IntNullableFilter<"Contract"> | number | null
|
|
bankCardId?: IntNullableFilter<"Contract"> | number | null
|
|
identityDocumentId?: IntNullableFilter<"Contract"> | number | null
|
|
salesPlatformId?: IntNullableFilter<"Contract"> | number | null
|
|
cancellationPeriodId?: IntNullableFilter<"Contract"> | number | null
|
|
contractDurationId?: IntNullableFilter<"Contract"> | number | null
|
|
previousContractId?: IntNullableFilter<"Contract"> | number | null
|
|
providerId?: IntNullableFilter<"Contract"> | number | null
|
|
tariffId?: IntNullableFilter<"Contract"> | number | null
|
|
providerName?: StringNullableFilter<"Contract"> | string | null
|
|
tariffName?: StringNullableFilter<"Contract"> | string | null
|
|
customerNumberAtProvider?: StringNullableFilter<"Contract"> | string | null
|
|
priceFirst12Months?: StringNullableFilter<"Contract"> | string | null
|
|
priceFrom13Months?: StringNullableFilter<"Contract"> | string | null
|
|
priceAfter24Months?: StringNullableFilter<"Contract"> | string | null
|
|
startDate?: DateTimeNullableFilter<"Contract"> | Date | string | null
|
|
endDate?: DateTimeNullableFilter<"Contract"> | Date | string | null
|
|
commission?: FloatNullableFilter<"Contract"> | number | null
|
|
cancellationLetterPath?: StringNullableFilter<"Contract"> | string | null
|
|
cancellationConfirmationPath?: StringNullableFilter<"Contract"> | string | null
|
|
cancellationLetterOptionsPath?: StringNullableFilter<"Contract"> | string | null
|
|
cancellationConfirmationOptionsPath?: StringNullableFilter<"Contract"> | string | null
|
|
cancellationConfirmationDate?: DateTimeNullableFilter<"Contract"> | Date | string | null
|
|
cancellationConfirmationOptionsDate?: DateTimeNullableFilter<"Contract"> | Date | string | null
|
|
wasSpecialCancellation?: BoolFilter<"Contract"> | boolean
|
|
portalUsername?: StringNullableFilter<"Contract"> | string | null
|
|
portalPasswordEncrypted?: StringNullableFilter<"Contract"> | string | null
|
|
stressfreiEmailId?: IntNullableFilter<"Contract"> | number | null
|
|
notes?: StringNullableFilter<"Contract"> | string | null
|
|
createdAt?: DateTimeFilter<"Contract"> | Date | string
|
|
updatedAt?: DateTimeFilter<"Contract"> | Date | string
|
|
customer?: XOR<CustomerRelationFilter, CustomerWhereInput>
|
|
contractCategory?: XOR<ContractCategoryNullableRelationFilter, ContractCategoryWhereInput> | null
|
|
address?: XOR<AddressNullableRelationFilter, AddressWhereInput> | null
|
|
billingAddress?: XOR<AddressNullableRelationFilter, AddressWhereInput> | null
|
|
bankCard?: XOR<BankCardNullableRelationFilter, BankCardWhereInput> | null
|
|
identityDocument?: XOR<IdentityDocumentNullableRelationFilter, IdentityDocumentWhereInput> | null
|
|
salesPlatform?: XOR<SalesPlatformNullableRelationFilter, SalesPlatformWhereInput> | null
|
|
cancellationPeriod?: XOR<CancellationPeriodNullableRelationFilter, CancellationPeriodWhereInput> | null
|
|
contractDuration?: XOR<ContractDurationNullableRelationFilter, ContractDurationWhereInput> | null
|
|
previousContract?: XOR<ContractNullableRelationFilter, ContractWhereInput> | null
|
|
followUpContract?: XOR<ContractNullableRelationFilter, ContractWhereInput> | null
|
|
provider?: XOR<ProviderNullableRelationFilter, ProviderWhereInput> | null
|
|
tariff?: XOR<TariffNullableRelationFilter, TariffWhereInput> | null
|
|
stressfreiEmail?: XOR<StressfreiEmailNullableRelationFilter, StressfreiEmailWhereInput> | null
|
|
energyDetails?: XOR<EnergyContractDetailsNullableRelationFilter, EnergyContractDetailsWhereInput> | null
|
|
internetDetails?: XOR<InternetContractDetailsNullableRelationFilter, InternetContractDetailsWhereInput> | null
|
|
mobileDetails?: XOR<MobileContractDetailsNullableRelationFilter, MobileContractDetailsWhereInput> | null
|
|
tvDetails?: XOR<TvContractDetailsNullableRelationFilter, TvContractDetailsWhereInput> | null
|
|
carInsuranceDetails?: XOR<CarInsuranceDetailsNullableRelationFilter, CarInsuranceDetailsWhereInput> | null
|
|
tasks?: ContractTaskListRelationFilter
|
|
assignedEmails?: CachedEmailListRelationFilter
|
|
}
|
|
|
|
export type ContractOrderByWithRelationInput = {
|
|
id?: SortOrder
|
|
contractNumber?: SortOrder
|
|
customerId?: SortOrder
|
|
type?: SortOrder
|
|
status?: SortOrder
|
|
contractCategoryId?: SortOrderInput | SortOrder
|
|
addressId?: SortOrderInput | SortOrder
|
|
billingAddressId?: SortOrderInput | SortOrder
|
|
bankCardId?: SortOrderInput | SortOrder
|
|
identityDocumentId?: SortOrderInput | SortOrder
|
|
salesPlatformId?: SortOrderInput | SortOrder
|
|
cancellationPeriodId?: SortOrderInput | SortOrder
|
|
contractDurationId?: SortOrderInput | SortOrder
|
|
previousContractId?: SortOrderInput | SortOrder
|
|
providerId?: SortOrderInput | SortOrder
|
|
tariffId?: SortOrderInput | SortOrder
|
|
providerName?: SortOrderInput | SortOrder
|
|
tariffName?: SortOrderInput | SortOrder
|
|
customerNumberAtProvider?: SortOrderInput | SortOrder
|
|
priceFirst12Months?: SortOrderInput | SortOrder
|
|
priceFrom13Months?: SortOrderInput | SortOrder
|
|
priceAfter24Months?: SortOrderInput | SortOrder
|
|
startDate?: SortOrderInput | SortOrder
|
|
endDate?: SortOrderInput | SortOrder
|
|
commission?: SortOrderInput | SortOrder
|
|
cancellationLetterPath?: SortOrderInput | SortOrder
|
|
cancellationConfirmationPath?: SortOrderInput | SortOrder
|
|
cancellationLetterOptionsPath?: SortOrderInput | SortOrder
|
|
cancellationConfirmationOptionsPath?: SortOrderInput | SortOrder
|
|
cancellationConfirmationDate?: SortOrderInput | SortOrder
|
|
cancellationConfirmationOptionsDate?: SortOrderInput | SortOrder
|
|
wasSpecialCancellation?: SortOrder
|
|
portalUsername?: SortOrderInput | SortOrder
|
|
portalPasswordEncrypted?: SortOrderInput | SortOrder
|
|
stressfreiEmailId?: SortOrderInput | SortOrder
|
|
notes?: SortOrderInput | SortOrder
|
|
createdAt?: SortOrder
|
|
updatedAt?: SortOrder
|
|
customer?: CustomerOrderByWithRelationInput
|
|
contractCategory?: ContractCategoryOrderByWithRelationInput
|
|
address?: AddressOrderByWithRelationInput
|
|
billingAddress?: AddressOrderByWithRelationInput
|
|
bankCard?: BankCardOrderByWithRelationInput
|
|
identityDocument?: IdentityDocumentOrderByWithRelationInput
|
|
salesPlatform?: SalesPlatformOrderByWithRelationInput
|
|
cancellationPeriod?: CancellationPeriodOrderByWithRelationInput
|
|
contractDuration?: ContractDurationOrderByWithRelationInput
|
|
previousContract?: ContractOrderByWithRelationInput
|
|
followUpContract?: ContractOrderByWithRelationInput
|
|
provider?: ProviderOrderByWithRelationInput
|
|
tariff?: TariffOrderByWithRelationInput
|
|
stressfreiEmail?: StressfreiEmailOrderByWithRelationInput
|
|
energyDetails?: EnergyContractDetailsOrderByWithRelationInput
|
|
internetDetails?: InternetContractDetailsOrderByWithRelationInput
|
|
mobileDetails?: MobileContractDetailsOrderByWithRelationInput
|
|
tvDetails?: TvContractDetailsOrderByWithRelationInput
|
|
carInsuranceDetails?: CarInsuranceDetailsOrderByWithRelationInput
|
|
tasks?: ContractTaskOrderByRelationAggregateInput
|
|
assignedEmails?: CachedEmailOrderByRelationAggregateInput
|
|
}
|
|
|
|
export type ContractWhereUniqueInput = Prisma.AtLeast<{
|
|
id?: number
|
|
contractNumber?: string
|
|
previousContractId?: number
|
|
AND?: ContractWhereInput | ContractWhereInput[]
|
|
OR?: ContractWhereInput[]
|
|
NOT?: ContractWhereInput | ContractWhereInput[]
|
|
customerId?: IntFilter<"Contract"> | number
|
|
type?: EnumContractTypeFilter<"Contract"> | $Enums.ContractType
|
|
status?: EnumContractStatusFilter<"Contract"> | $Enums.ContractStatus
|
|
contractCategoryId?: IntNullableFilter<"Contract"> | number | null
|
|
addressId?: IntNullableFilter<"Contract"> | number | null
|
|
billingAddressId?: IntNullableFilter<"Contract"> | number | null
|
|
bankCardId?: IntNullableFilter<"Contract"> | number | null
|
|
identityDocumentId?: IntNullableFilter<"Contract"> | number | null
|
|
salesPlatformId?: IntNullableFilter<"Contract"> | number | null
|
|
cancellationPeriodId?: IntNullableFilter<"Contract"> | number | null
|
|
contractDurationId?: IntNullableFilter<"Contract"> | number | null
|
|
providerId?: IntNullableFilter<"Contract"> | number | null
|
|
tariffId?: IntNullableFilter<"Contract"> | number | null
|
|
providerName?: StringNullableFilter<"Contract"> | string | null
|
|
tariffName?: StringNullableFilter<"Contract"> | string | null
|
|
customerNumberAtProvider?: StringNullableFilter<"Contract"> | string | null
|
|
priceFirst12Months?: StringNullableFilter<"Contract"> | string | null
|
|
priceFrom13Months?: StringNullableFilter<"Contract"> | string | null
|
|
priceAfter24Months?: StringNullableFilter<"Contract"> | string | null
|
|
startDate?: DateTimeNullableFilter<"Contract"> | Date | string | null
|
|
endDate?: DateTimeNullableFilter<"Contract"> | Date | string | null
|
|
commission?: FloatNullableFilter<"Contract"> | number | null
|
|
cancellationLetterPath?: StringNullableFilter<"Contract"> | string | null
|
|
cancellationConfirmationPath?: StringNullableFilter<"Contract"> | string | null
|
|
cancellationLetterOptionsPath?: StringNullableFilter<"Contract"> | string | null
|
|
cancellationConfirmationOptionsPath?: StringNullableFilter<"Contract"> | string | null
|
|
cancellationConfirmationDate?: DateTimeNullableFilter<"Contract"> | Date | string | null
|
|
cancellationConfirmationOptionsDate?: DateTimeNullableFilter<"Contract"> | Date | string | null
|
|
wasSpecialCancellation?: BoolFilter<"Contract"> | boolean
|
|
portalUsername?: StringNullableFilter<"Contract"> | string | null
|
|
portalPasswordEncrypted?: StringNullableFilter<"Contract"> | string | null
|
|
stressfreiEmailId?: IntNullableFilter<"Contract"> | number | null
|
|
notes?: StringNullableFilter<"Contract"> | string | null
|
|
createdAt?: DateTimeFilter<"Contract"> | Date | string
|
|
updatedAt?: DateTimeFilter<"Contract"> | Date | string
|
|
customer?: XOR<CustomerRelationFilter, CustomerWhereInput>
|
|
contractCategory?: XOR<ContractCategoryNullableRelationFilter, ContractCategoryWhereInput> | null
|
|
address?: XOR<AddressNullableRelationFilter, AddressWhereInput> | null
|
|
billingAddress?: XOR<AddressNullableRelationFilter, AddressWhereInput> | null
|
|
bankCard?: XOR<BankCardNullableRelationFilter, BankCardWhereInput> | null
|
|
identityDocument?: XOR<IdentityDocumentNullableRelationFilter, IdentityDocumentWhereInput> | null
|
|
salesPlatform?: XOR<SalesPlatformNullableRelationFilter, SalesPlatformWhereInput> | null
|
|
cancellationPeriod?: XOR<CancellationPeriodNullableRelationFilter, CancellationPeriodWhereInput> | null
|
|
contractDuration?: XOR<ContractDurationNullableRelationFilter, ContractDurationWhereInput> | null
|
|
previousContract?: XOR<ContractNullableRelationFilter, ContractWhereInput> | null
|
|
followUpContract?: XOR<ContractNullableRelationFilter, ContractWhereInput> | null
|
|
provider?: XOR<ProviderNullableRelationFilter, ProviderWhereInput> | null
|
|
tariff?: XOR<TariffNullableRelationFilter, TariffWhereInput> | null
|
|
stressfreiEmail?: XOR<StressfreiEmailNullableRelationFilter, StressfreiEmailWhereInput> | null
|
|
energyDetails?: XOR<EnergyContractDetailsNullableRelationFilter, EnergyContractDetailsWhereInput> | null
|
|
internetDetails?: XOR<InternetContractDetailsNullableRelationFilter, InternetContractDetailsWhereInput> | null
|
|
mobileDetails?: XOR<MobileContractDetailsNullableRelationFilter, MobileContractDetailsWhereInput> | null
|
|
tvDetails?: XOR<TvContractDetailsNullableRelationFilter, TvContractDetailsWhereInput> | null
|
|
carInsuranceDetails?: XOR<CarInsuranceDetailsNullableRelationFilter, CarInsuranceDetailsWhereInput> | null
|
|
tasks?: ContractTaskListRelationFilter
|
|
assignedEmails?: CachedEmailListRelationFilter
|
|
}, "id" | "contractNumber" | "previousContractId">
|
|
|
|
export type ContractOrderByWithAggregationInput = {
|
|
id?: SortOrder
|
|
contractNumber?: SortOrder
|
|
customerId?: SortOrder
|
|
type?: SortOrder
|
|
status?: SortOrder
|
|
contractCategoryId?: SortOrderInput | SortOrder
|
|
addressId?: SortOrderInput | SortOrder
|
|
billingAddressId?: SortOrderInput | SortOrder
|
|
bankCardId?: SortOrderInput | SortOrder
|
|
identityDocumentId?: SortOrderInput | SortOrder
|
|
salesPlatformId?: SortOrderInput | SortOrder
|
|
cancellationPeriodId?: SortOrderInput | SortOrder
|
|
contractDurationId?: SortOrderInput | SortOrder
|
|
previousContractId?: SortOrderInput | SortOrder
|
|
providerId?: SortOrderInput | SortOrder
|
|
tariffId?: SortOrderInput | SortOrder
|
|
providerName?: SortOrderInput | SortOrder
|
|
tariffName?: SortOrderInput | SortOrder
|
|
customerNumberAtProvider?: SortOrderInput | SortOrder
|
|
priceFirst12Months?: SortOrderInput | SortOrder
|
|
priceFrom13Months?: SortOrderInput | SortOrder
|
|
priceAfter24Months?: SortOrderInput | SortOrder
|
|
startDate?: SortOrderInput | SortOrder
|
|
endDate?: SortOrderInput | SortOrder
|
|
commission?: SortOrderInput | SortOrder
|
|
cancellationLetterPath?: SortOrderInput | SortOrder
|
|
cancellationConfirmationPath?: SortOrderInput | SortOrder
|
|
cancellationLetterOptionsPath?: SortOrderInput | SortOrder
|
|
cancellationConfirmationOptionsPath?: SortOrderInput | SortOrder
|
|
cancellationConfirmationDate?: SortOrderInput | SortOrder
|
|
cancellationConfirmationOptionsDate?: SortOrderInput | SortOrder
|
|
wasSpecialCancellation?: SortOrder
|
|
portalUsername?: SortOrderInput | SortOrder
|
|
portalPasswordEncrypted?: SortOrderInput | SortOrder
|
|
stressfreiEmailId?: SortOrderInput | SortOrder
|
|
notes?: SortOrderInput | SortOrder
|
|
createdAt?: SortOrder
|
|
updatedAt?: SortOrder
|
|
_count?: ContractCountOrderByAggregateInput
|
|
_avg?: ContractAvgOrderByAggregateInput
|
|
_max?: ContractMaxOrderByAggregateInput
|
|
_min?: ContractMinOrderByAggregateInput
|
|
_sum?: ContractSumOrderByAggregateInput
|
|
}
|
|
|
|
export type ContractScalarWhereWithAggregatesInput = {
|
|
AND?: ContractScalarWhereWithAggregatesInput | ContractScalarWhereWithAggregatesInput[]
|
|
OR?: ContractScalarWhereWithAggregatesInput[]
|
|
NOT?: ContractScalarWhereWithAggregatesInput | ContractScalarWhereWithAggregatesInput[]
|
|
id?: IntWithAggregatesFilter<"Contract"> | number
|
|
contractNumber?: StringWithAggregatesFilter<"Contract"> | string
|
|
customerId?: IntWithAggregatesFilter<"Contract"> | number
|
|
type?: EnumContractTypeWithAggregatesFilter<"Contract"> | $Enums.ContractType
|
|
status?: EnumContractStatusWithAggregatesFilter<"Contract"> | $Enums.ContractStatus
|
|
contractCategoryId?: IntNullableWithAggregatesFilter<"Contract"> | number | null
|
|
addressId?: IntNullableWithAggregatesFilter<"Contract"> | number | null
|
|
billingAddressId?: IntNullableWithAggregatesFilter<"Contract"> | number | null
|
|
bankCardId?: IntNullableWithAggregatesFilter<"Contract"> | number | null
|
|
identityDocumentId?: IntNullableWithAggregatesFilter<"Contract"> | number | null
|
|
salesPlatformId?: IntNullableWithAggregatesFilter<"Contract"> | number | null
|
|
cancellationPeriodId?: IntNullableWithAggregatesFilter<"Contract"> | number | null
|
|
contractDurationId?: IntNullableWithAggregatesFilter<"Contract"> | number | null
|
|
previousContractId?: IntNullableWithAggregatesFilter<"Contract"> | number | null
|
|
providerId?: IntNullableWithAggregatesFilter<"Contract"> | number | null
|
|
tariffId?: IntNullableWithAggregatesFilter<"Contract"> | number | null
|
|
providerName?: StringNullableWithAggregatesFilter<"Contract"> | string | null
|
|
tariffName?: StringNullableWithAggregatesFilter<"Contract"> | string | null
|
|
customerNumberAtProvider?: StringNullableWithAggregatesFilter<"Contract"> | string | null
|
|
priceFirst12Months?: StringNullableWithAggregatesFilter<"Contract"> | string | null
|
|
priceFrom13Months?: StringNullableWithAggregatesFilter<"Contract"> | string | null
|
|
priceAfter24Months?: StringNullableWithAggregatesFilter<"Contract"> | string | null
|
|
startDate?: DateTimeNullableWithAggregatesFilter<"Contract"> | Date | string | null
|
|
endDate?: DateTimeNullableWithAggregatesFilter<"Contract"> | Date | string | null
|
|
commission?: FloatNullableWithAggregatesFilter<"Contract"> | number | null
|
|
cancellationLetterPath?: StringNullableWithAggregatesFilter<"Contract"> | string | null
|
|
cancellationConfirmationPath?: StringNullableWithAggregatesFilter<"Contract"> | string | null
|
|
cancellationLetterOptionsPath?: StringNullableWithAggregatesFilter<"Contract"> | string | null
|
|
cancellationConfirmationOptionsPath?: StringNullableWithAggregatesFilter<"Contract"> | string | null
|
|
cancellationConfirmationDate?: DateTimeNullableWithAggregatesFilter<"Contract"> | Date | string | null
|
|
cancellationConfirmationOptionsDate?: DateTimeNullableWithAggregatesFilter<"Contract"> | Date | string | null
|
|
wasSpecialCancellation?: BoolWithAggregatesFilter<"Contract"> | boolean
|
|
portalUsername?: StringNullableWithAggregatesFilter<"Contract"> | string | null
|
|
portalPasswordEncrypted?: StringNullableWithAggregatesFilter<"Contract"> | string | null
|
|
stressfreiEmailId?: IntNullableWithAggregatesFilter<"Contract"> | number | null
|
|
notes?: StringNullableWithAggregatesFilter<"Contract"> | string | null
|
|
createdAt?: DateTimeWithAggregatesFilter<"Contract"> | Date | string
|
|
updatedAt?: DateTimeWithAggregatesFilter<"Contract"> | Date | string
|
|
}
|
|
|
|
export type ContractTaskWhereInput = {
|
|
AND?: ContractTaskWhereInput | ContractTaskWhereInput[]
|
|
OR?: ContractTaskWhereInput[]
|
|
NOT?: ContractTaskWhereInput | ContractTaskWhereInput[]
|
|
id?: IntFilter<"ContractTask"> | number
|
|
contractId?: IntFilter<"ContractTask"> | number
|
|
title?: StringFilter<"ContractTask"> | string
|
|
description?: StringNullableFilter<"ContractTask"> | string | null
|
|
status?: EnumContractTaskStatusFilter<"ContractTask"> | $Enums.ContractTaskStatus
|
|
visibleInPortal?: BoolFilter<"ContractTask"> | boolean
|
|
createdBy?: StringNullableFilter<"ContractTask"> | string | null
|
|
completedAt?: DateTimeNullableFilter<"ContractTask"> | Date | string | null
|
|
createdAt?: DateTimeFilter<"ContractTask"> | Date | string
|
|
updatedAt?: DateTimeFilter<"ContractTask"> | Date | string
|
|
contract?: XOR<ContractRelationFilter, ContractWhereInput>
|
|
subtasks?: ContractTaskSubtaskListRelationFilter
|
|
}
|
|
|
|
export type ContractTaskOrderByWithRelationInput = {
|
|
id?: SortOrder
|
|
contractId?: SortOrder
|
|
title?: SortOrder
|
|
description?: SortOrderInput | SortOrder
|
|
status?: SortOrder
|
|
visibleInPortal?: SortOrder
|
|
createdBy?: SortOrderInput | SortOrder
|
|
completedAt?: SortOrderInput | SortOrder
|
|
createdAt?: SortOrder
|
|
updatedAt?: SortOrder
|
|
contract?: ContractOrderByWithRelationInput
|
|
subtasks?: ContractTaskSubtaskOrderByRelationAggregateInput
|
|
}
|
|
|
|
export type ContractTaskWhereUniqueInput = Prisma.AtLeast<{
|
|
id?: number
|
|
AND?: ContractTaskWhereInput | ContractTaskWhereInput[]
|
|
OR?: ContractTaskWhereInput[]
|
|
NOT?: ContractTaskWhereInput | ContractTaskWhereInput[]
|
|
contractId?: IntFilter<"ContractTask"> | number
|
|
title?: StringFilter<"ContractTask"> | string
|
|
description?: StringNullableFilter<"ContractTask"> | string | null
|
|
status?: EnumContractTaskStatusFilter<"ContractTask"> | $Enums.ContractTaskStatus
|
|
visibleInPortal?: BoolFilter<"ContractTask"> | boolean
|
|
createdBy?: StringNullableFilter<"ContractTask"> | string | null
|
|
completedAt?: DateTimeNullableFilter<"ContractTask"> | Date | string | null
|
|
createdAt?: DateTimeFilter<"ContractTask"> | Date | string
|
|
updatedAt?: DateTimeFilter<"ContractTask"> | Date | string
|
|
contract?: XOR<ContractRelationFilter, ContractWhereInput>
|
|
subtasks?: ContractTaskSubtaskListRelationFilter
|
|
}, "id">
|
|
|
|
export type ContractTaskOrderByWithAggregationInput = {
|
|
id?: SortOrder
|
|
contractId?: SortOrder
|
|
title?: SortOrder
|
|
description?: SortOrderInput | SortOrder
|
|
status?: SortOrder
|
|
visibleInPortal?: SortOrder
|
|
createdBy?: SortOrderInput | SortOrder
|
|
completedAt?: SortOrderInput | SortOrder
|
|
createdAt?: SortOrder
|
|
updatedAt?: SortOrder
|
|
_count?: ContractTaskCountOrderByAggregateInput
|
|
_avg?: ContractTaskAvgOrderByAggregateInput
|
|
_max?: ContractTaskMaxOrderByAggregateInput
|
|
_min?: ContractTaskMinOrderByAggregateInput
|
|
_sum?: ContractTaskSumOrderByAggregateInput
|
|
}
|
|
|
|
export type ContractTaskScalarWhereWithAggregatesInput = {
|
|
AND?: ContractTaskScalarWhereWithAggregatesInput | ContractTaskScalarWhereWithAggregatesInput[]
|
|
OR?: ContractTaskScalarWhereWithAggregatesInput[]
|
|
NOT?: ContractTaskScalarWhereWithAggregatesInput | ContractTaskScalarWhereWithAggregatesInput[]
|
|
id?: IntWithAggregatesFilter<"ContractTask"> | number
|
|
contractId?: IntWithAggregatesFilter<"ContractTask"> | number
|
|
title?: StringWithAggregatesFilter<"ContractTask"> | string
|
|
description?: StringNullableWithAggregatesFilter<"ContractTask"> | string | null
|
|
status?: EnumContractTaskStatusWithAggregatesFilter<"ContractTask"> | $Enums.ContractTaskStatus
|
|
visibleInPortal?: BoolWithAggregatesFilter<"ContractTask"> | boolean
|
|
createdBy?: StringNullableWithAggregatesFilter<"ContractTask"> | string | null
|
|
completedAt?: DateTimeNullableWithAggregatesFilter<"ContractTask"> | Date | string | null
|
|
createdAt?: DateTimeWithAggregatesFilter<"ContractTask"> | Date | string
|
|
updatedAt?: DateTimeWithAggregatesFilter<"ContractTask"> | Date | string
|
|
}
|
|
|
|
export type ContractTaskSubtaskWhereInput = {
|
|
AND?: ContractTaskSubtaskWhereInput | ContractTaskSubtaskWhereInput[]
|
|
OR?: ContractTaskSubtaskWhereInput[]
|
|
NOT?: ContractTaskSubtaskWhereInput | ContractTaskSubtaskWhereInput[]
|
|
id?: IntFilter<"ContractTaskSubtask"> | number
|
|
taskId?: IntFilter<"ContractTaskSubtask"> | number
|
|
title?: StringFilter<"ContractTaskSubtask"> | string
|
|
status?: EnumContractTaskStatusFilter<"ContractTaskSubtask"> | $Enums.ContractTaskStatus
|
|
createdBy?: StringNullableFilter<"ContractTaskSubtask"> | string | null
|
|
completedAt?: DateTimeNullableFilter<"ContractTaskSubtask"> | Date | string | null
|
|
createdAt?: DateTimeFilter<"ContractTaskSubtask"> | Date | string
|
|
updatedAt?: DateTimeFilter<"ContractTaskSubtask"> | Date | string
|
|
task?: XOR<ContractTaskRelationFilter, ContractTaskWhereInput>
|
|
}
|
|
|
|
export type ContractTaskSubtaskOrderByWithRelationInput = {
|
|
id?: SortOrder
|
|
taskId?: SortOrder
|
|
title?: SortOrder
|
|
status?: SortOrder
|
|
createdBy?: SortOrderInput | SortOrder
|
|
completedAt?: SortOrderInput | SortOrder
|
|
createdAt?: SortOrder
|
|
updatedAt?: SortOrder
|
|
task?: ContractTaskOrderByWithRelationInput
|
|
}
|
|
|
|
export type ContractTaskSubtaskWhereUniqueInput = Prisma.AtLeast<{
|
|
id?: number
|
|
AND?: ContractTaskSubtaskWhereInput | ContractTaskSubtaskWhereInput[]
|
|
OR?: ContractTaskSubtaskWhereInput[]
|
|
NOT?: ContractTaskSubtaskWhereInput | ContractTaskSubtaskWhereInput[]
|
|
taskId?: IntFilter<"ContractTaskSubtask"> | number
|
|
title?: StringFilter<"ContractTaskSubtask"> | string
|
|
status?: EnumContractTaskStatusFilter<"ContractTaskSubtask"> | $Enums.ContractTaskStatus
|
|
createdBy?: StringNullableFilter<"ContractTaskSubtask"> | string | null
|
|
completedAt?: DateTimeNullableFilter<"ContractTaskSubtask"> | Date | string | null
|
|
createdAt?: DateTimeFilter<"ContractTaskSubtask"> | Date | string
|
|
updatedAt?: DateTimeFilter<"ContractTaskSubtask"> | Date | string
|
|
task?: XOR<ContractTaskRelationFilter, ContractTaskWhereInput>
|
|
}, "id">
|
|
|
|
export type ContractTaskSubtaskOrderByWithAggregationInput = {
|
|
id?: SortOrder
|
|
taskId?: SortOrder
|
|
title?: SortOrder
|
|
status?: SortOrder
|
|
createdBy?: SortOrderInput | SortOrder
|
|
completedAt?: SortOrderInput | SortOrder
|
|
createdAt?: SortOrder
|
|
updatedAt?: SortOrder
|
|
_count?: ContractTaskSubtaskCountOrderByAggregateInput
|
|
_avg?: ContractTaskSubtaskAvgOrderByAggregateInput
|
|
_max?: ContractTaskSubtaskMaxOrderByAggregateInput
|
|
_min?: ContractTaskSubtaskMinOrderByAggregateInput
|
|
_sum?: ContractTaskSubtaskSumOrderByAggregateInput
|
|
}
|
|
|
|
export type ContractTaskSubtaskScalarWhereWithAggregatesInput = {
|
|
AND?: ContractTaskSubtaskScalarWhereWithAggregatesInput | ContractTaskSubtaskScalarWhereWithAggregatesInput[]
|
|
OR?: ContractTaskSubtaskScalarWhereWithAggregatesInput[]
|
|
NOT?: ContractTaskSubtaskScalarWhereWithAggregatesInput | ContractTaskSubtaskScalarWhereWithAggregatesInput[]
|
|
id?: IntWithAggregatesFilter<"ContractTaskSubtask"> | number
|
|
taskId?: IntWithAggregatesFilter<"ContractTaskSubtask"> | number
|
|
title?: StringWithAggregatesFilter<"ContractTaskSubtask"> | string
|
|
status?: EnumContractTaskStatusWithAggregatesFilter<"ContractTaskSubtask"> | $Enums.ContractTaskStatus
|
|
createdBy?: StringNullableWithAggregatesFilter<"ContractTaskSubtask"> | string | null
|
|
completedAt?: DateTimeNullableWithAggregatesFilter<"ContractTaskSubtask"> | Date | string | null
|
|
createdAt?: DateTimeWithAggregatesFilter<"ContractTaskSubtask"> | Date | string
|
|
updatedAt?: DateTimeWithAggregatesFilter<"ContractTaskSubtask"> | Date | string
|
|
}
|
|
|
|
export type EnergyContractDetailsWhereInput = {
|
|
AND?: EnergyContractDetailsWhereInput | EnergyContractDetailsWhereInput[]
|
|
OR?: EnergyContractDetailsWhereInput[]
|
|
NOT?: EnergyContractDetailsWhereInput | EnergyContractDetailsWhereInput[]
|
|
id?: IntFilter<"EnergyContractDetails"> | number
|
|
contractId?: IntFilter<"EnergyContractDetails"> | number
|
|
meterId?: IntNullableFilter<"EnergyContractDetails"> | number | null
|
|
maloId?: StringNullableFilter<"EnergyContractDetails"> | string | null
|
|
annualConsumption?: FloatNullableFilter<"EnergyContractDetails"> | number | null
|
|
annualConsumptionKwh?: FloatNullableFilter<"EnergyContractDetails"> | number | null
|
|
basePrice?: FloatNullableFilter<"EnergyContractDetails"> | number | null
|
|
unitPrice?: FloatNullableFilter<"EnergyContractDetails"> | number | null
|
|
bonus?: FloatNullableFilter<"EnergyContractDetails"> | number | null
|
|
previousProviderName?: StringNullableFilter<"EnergyContractDetails"> | string | null
|
|
previousCustomerNumber?: StringNullableFilter<"EnergyContractDetails"> | string | null
|
|
contract?: XOR<ContractRelationFilter, ContractWhereInput>
|
|
meter?: XOR<MeterNullableRelationFilter, MeterWhereInput> | null
|
|
}
|
|
|
|
export type EnergyContractDetailsOrderByWithRelationInput = {
|
|
id?: SortOrder
|
|
contractId?: SortOrder
|
|
meterId?: SortOrderInput | SortOrder
|
|
maloId?: SortOrderInput | SortOrder
|
|
annualConsumption?: SortOrderInput | SortOrder
|
|
annualConsumptionKwh?: SortOrderInput | SortOrder
|
|
basePrice?: SortOrderInput | SortOrder
|
|
unitPrice?: SortOrderInput | SortOrder
|
|
bonus?: SortOrderInput | SortOrder
|
|
previousProviderName?: SortOrderInput | SortOrder
|
|
previousCustomerNumber?: SortOrderInput | SortOrder
|
|
contract?: ContractOrderByWithRelationInput
|
|
meter?: MeterOrderByWithRelationInput
|
|
}
|
|
|
|
export type EnergyContractDetailsWhereUniqueInput = Prisma.AtLeast<{
|
|
id?: number
|
|
contractId?: number
|
|
AND?: EnergyContractDetailsWhereInput | EnergyContractDetailsWhereInput[]
|
|
OR?: EnergyContractDetailsWhereInput[]
|
|
NOT?: EnergyContractDetailsWhereInput | EnergyContractDetailsWhereInput[]
|
|
meterId?: IntNullableFilter<"EnergyContractDetails"> | number | null
|
|
maloId?: StringNullableFilter<"EnergyContractDetails"> | string | null
|
|
annualConsumption?: FloatNullableFilter<"EnergyContractDetails"> | number | null
|
|
annualConsumptionKwh?: FloatNullableFilter<"EnergyContractDetails"> | number | null
|
|
basePrice?: FloatNullableFilter<"EnergyContractDetails"> | number | null
|
|
unitPrice?: FloatNullableFilter<"EnergyContractDetails"> | number | null
|
|
bonus?: FloatNullableFilter<"EnergyContractDetails"> | number | null
|
|
previousProviderName?: StringNullableFilter<"EnergyContractDetails"> | string | null
|
|
previousCustomerNumber?: StringNullableFilter<"EnergyContractDetails"> | string | null
|
|
contract?: XOR<ContractRelationFilter, ContractWhereInput>
|
|
meter?: XOR<MeterNullableRelationFilter, MeterWhereInput> | null
|
|
}, "id" | "contractId">
|
|
|
|
export type EnergyContractDetailsOrderByWithAggregationInput = {
|
|
id?: SortOrder
|
|
contractId?: SortOrder
|
|
meterId?: SortOrderInput | SortOrder
|
|
maloId?: SortOrderInput | SortOrder
|
|
annualConsumption?: SortOrderInput | SortOrder
|
|
annualConsumptionKwh?: SortOrderInput | SortOrder
|
|
basePrice?: SortOrderInput | SortOrder
|
|
unitPrice?: SortOrderInput | SortOrder
|
|
bonus?: SortOrderInput | SortOrder
|
|
previousProviderName?: SortOrderInput | SortOrder
|
|
previousCustomerNumber?: SortOrderInput | SortOrder
|
|
_count?: EnergyContractDetailsCountOrderByAggregateInput
|
|
_avg?: EnergyContractDetailsAvgOrderByAggregateInput
|
|
_max?: EnergyContractDetailsMaxOrderByAggregateInput
|
|
_min?: EnergyContractDetailsMinOrderByAggregateInput
|
|
_sum?: EnergyContractDetailsSumOrderByAggregateInput
|
|
}
|
|
|
|
export type EnergyContractDetailsScalarWhereWithAggregatesInput = {
|
|
AND?: EnergyContractDetailsScalarWhereWithAggregatesInput | EnergyContractDetailsScalarWhereWithAggregatesInput[]
|
|
OR?: EnergyContractDetailsScalarWhereWithAggregatesInput[]
|
|
NOT?: EnergyContractDetailsScalarWhereWithAggregatesInput | EnergyContractDetailsScalarWhereWithAggregatesInput[]
|
|
id?: IntWithAggregatesFilter<"EnergyContractDetails"> | number
|
|
contractId?: IntWithAggregatesFilter<"EnergyContractDetails"> | number
|
|
meterId?: IntNullableWithAggregatesFilter<"EnergyContractDetails"> | number | null
|
|
maloId?: StringNullableWithAggregatesFilter<"EnergyContractDetails"> | string | null
|
|
annualConsumption?: FloatNullableWithAggregatesFilter<"EnergyContractDetails"> | number | null
|
|
annualConsumptionKwh?: FloatNullableWithAggregatesFilter<"EnergyContractDetails"> | number | null
|
|
basePrice?: FloatNullableWithAggregatesFilter<"EnergyContractDetails"> | number | null
|
|
unitPrice?: FloatNullableWithAggregatesFilter<"EnergyContractDetails"> | number | null
|
|
bonus?: FloatNullableWithAggregatesFilter<"EnergyContractDetails"> | number | null
|
|
previousProviderName?: StringNullableWithAggregatesFilter<"EnergyContractDetails"> | string | null
|
|
previousCustomerNumber?: StringNullableWithAggregatesFilter<"EnergyContractDetails"> | string | null
|
|
}
|
|
|
|
export type InternetContractDetailsWhereInput = {
|
|
AND?: InternetContractDetailsWhereInput | InternetContractDetailsWhereInput[]
|
|
OR?: InternetContractDetailsWhereInput[]
|
|
NOT?: InternetContractDetailsWhereInput | InternetContractDetailsWhereInput[]
|
|
id?: IntFilter<"InternetContractDetails"> | number
|
|
contractId?: IntFilter<"InternetContractDetails"> | number
|
|
downloadSpeed?: IntNullableFilter<"InternetContractDetails"> | number | null
|
|
uploadSpeed?: IntNullableFilter<"InternetContractDetails"> | number | null
|
|
routerModel?: StringNullableFilter<"InternetContractDetails"> | string | null
|
|
routerSerialNumber?: StringNullableFilter<"InternetContractDetails"> | string | null
|
|
installationDate?: DateTimeNullableFilter<"InternetContractDetails"> | Date | string | null
|
|
internetUsername?: StringNullableFilter<"InternetContractDetails"> | string | null
|
|
internetPasswordEncrypted?: StringNullableFilter<"InternetContractDetails"> | string | null
|
|
homeId?: StringNullableFilter<"InternetContractDetails"> | string | null
|
|
activationCode?: StringNullableFilter<"InternetContractDetails"> | string | null
|
|
contract?: XOR<ContractRelationFilter, ContractWhereInput>
|
|
phoneNumbers?: PhoneNumberListRelationFilter
|
|
}
|
|
|
|
export type InternetContractDetailsOrderByWithRelationInput = {
|
|
id?: SortOrder
|
|
contractId?: SortOrder
|
|
downloadSpeed?: SortOrderInput | SortOrder
|
|
uploadSpeed?: SortOrderInput | SortOrder
|
|
routerModel?: SortOrderInput | SortOrder
|
|
routerSerialNumber?: SortOrderInput | SortOrder
|
|
installationDate?: SortOrderInput | SortOrder
|
|
internetUsername?: SortOrderInput | SortOrder
|
|
internetPasswordEncrypted?: SortOrderInput | SortOrder
|
|
homeId?: SortOrderInput | SortOrder
|
|
activationCode?: SortOrderInput | SortOrder
|
|
contract?: ContractOrderByWithRelationInput
|
|
phoneNumbers?: PhoneNumberOrderByRelationAggregateInput
|
|
}
|
|
|
|
export type InternetContractDetailsWhereUniqueInput = Prisma.AtLeast<{
|
|
id?: number
|
|
contractId?: number
|
|
AND?: InternetContractDetailsWhereInput | InternetContractDetailsWhereInput[]
|
|
OR?: InternetContractDetailsWhereInput[]
|
|
NOT?: InternetContractDetailsWhereInput | InternetContractDetailsWhereInput[]
|
|
downloadSpeed?: IntNullableFilter<"InternetContractDetails"> | number | null
|
|
uploadSpeed?: IntNullableFilter<"InternetContractDetails"> | number | null
|
|
routerModel?: StringNullableFilter<"InternetContractDetails"> | string | null
|
|
routerSerialNumber?: StringNullableFilter<"InternetContractDetails"> | string | null
|
|
installationDate?: DateTimeNullableFilter<"InternetContractDetails"> | Date | string | null
|
|
internetUsername?: StringNullableFilter<"InternetContractDetails"> | string | null
|
|
internetPasswordEncrypted?: StringNullableFilter<"InternetContractDetails"> | string | null
|
|
homeId?: StringNullableFilter<"InternetContractDetails"> | string | null
|
|
activationCode?: StringNullableFilter<"InternetContractDetails"> | string | null
|
|
contract?: XOR<ContractRelationFilter, ContractWhereInput>
|
|
phoneNumbers?: PhoneNumberListRelationFilter
|
|
}, "id" | "contractId">
|
|
|
|
export type InternetContractDetailsOrderByWithAggregationInput = {
|
|
id?: SortOrder
|
|
contractId?: SortOrder
|
|
downloadSpeed?: SortOrderInput | SortOrder
|
|
uploadSpeed?: SortOrderInput | SortOrder
|
|
routerModel?: SortOrderInput | SortOrder
|
|
routerSerialNumber?: SortOrderInput | SortOrder
|
|
installationDate?: SortOrderInput | SortOrder
|
|
internetUsername?: SortOrderInput | SortOrder
|
|
internetPasswordEncrypted?: SortOrderInput | SortOrder
|
|
homeId?: SortOrderInput | SortOrder
|
|
activationCode?: SortOrderInput | SortOrder
|
|
_count?: InternetContractDetailsCountOrderByAggregateInput
|
|
_avg?: InternetContractDetailsAvgOrderByAggregateInput
|
|
_max?: InternetContractDetailsMaxOrderByAggregateInput
|
|
_min?: InternetContractDetailsMinOrderByAggregateInput
|
|
_sum?: InternetContractDetailsSumOrderByAggregateInput
|
|
}
|
|
|
|
export type InternetContractDetailsScalarWhereWithAggregatesInput = {
|
|
AND?: InternetContractDetailsScalarWhereWithAggregatesInput | InternetContractDetailsScalarWhereWithAggregatesInput[]
|
|
OR?: InternetContractDetailsScalarWhereWithAggregatesInput[]
|
|
NOT?: InternetContractDetailsScalarWhereWithAggregatesInput | InternetContractDetailsScalarWhereWithAggregatesInput[]
|
|
id?: IntWithAggregatesFilter<"InternetContractDetails"> | number
|
|
contractId?: IntWithAggregatesFilter<"InternetContractDetails"> | number
|
|
downloadSpeed?: IntNullableWithAggregatesFilter<"InternetContractDetails"> | number | null
|
|
uploadSpeed?: IntNullableWithAggregatesFilter<"InternetContractDetails"> | number | null
|
|
routerModel?: StringNullableWithAggregatesFilter<"InternetContractDetails"> | string | null
|
|
routerSerialNumber?: StringNullableWithAggregatesFilter<"InternetContractDetails"> | string | null
|
|
installationDate?: DateTimeNullableWithAggregatesFilter<"InternetContractDetails"> | Date | string | null
|
|
internetUsername?: StringNullableWithAggregatesFilter<"InternetContractDetails"> | string | null
|
|
internetPasswordEncrypted?: StringNullableWithAggregatesFilter<"InternetContractDetails"> | string | null
|
|
homeId?: StringNullableWithAggregatesFilter<"InternetContractDetails"> | string | null
|
|
activationCode?: StringNullableWithAggregatesFilter<"InternetContractDetails"> | string | null
|
|
}
|
|
|
|
export type PhoneNumberWhereInput = {
|
|
AND?: PhoneNumberWhereInput | PhoneNumberWhereInput[]
|
|
OR?: PhoneNumberWhereInput[]
|
|
NOT?: PhoneNumberWhereInput | PhoneNumberWhereInput[]
|
|
id?: IntFilter<"PhoneNumber"> | number
|
|
internetContractDetailsId?: IntFilter<"PhoneNumber"> | number
|
|
phoneNumber?: StringFilter<"PhoneNumber"> | string
|
|
isMain?: BoolFilter<"PhoneNumber"> | boolean
|
|
sipUsername?: StringNullableFilter<"PhoneNumber"> | string | null
|
|
sipPasswordEncrypted?: StringNullableFilter<"PhoneNumber"> | string | null
|
|
sipServer?: StringNullableFilter<"PhoneNumber"> | string | null
|
|
internetDetails?: XOR<InternetContractDetailsRelationFilter, InternetContractDetailsWhereInput>
|
|
}
|
|
|
|
export type PhoneNumberOrderByWithRelationInput = {
|
|
id?: SortOrder
|
|
internetContractDetailsId?: SortOrder
|
|
phoneNumber?: SortOrder
|
|
isMain?: SortOrder
|
|
sipUsername?: SortOrderInput | SortOrder
|
|
sipPasswordEncrypted?: SortOrderInput | SortOrder
|
|
sipServer?: SortOrderInput | SortOrder
|
|
internetDetails?: InternetContractDetailsOrderByWithRelationInput
|
|
}
|
|
|
|
export type PhoneNumberWhereUniqueInput = Prisma.AtLeast<{
|
|
id?: number
|
|
AND?: PhoneNumberWhereInput | PhoneNumberWhereInput[]
|
|
OR?: PhoneNumberWhereInput[]
|
|
NOT?: PhoneNumberWhereInput | PhoneNumberWhereInput[]
|
|
internetContractDetailsId?: IntFilter<"PhoneNumber"> | number
|
|
phoneNumber?: StringFilter<"PhoneNumber"> | string
|
|
isMain?: BoolFilter<"PhoneNumber"> | boolean
|
|
sipUsername?: StringNullableFilter<"PhoneNumber"> | string | null
|
|
sipPasswordEncrypted?: StringNullableFilter<"PhoneNumber"> | string | null
|
|
sipServer?: StringNullableFilter<"PhoneNumber"> | string | null
|
|
internetDetails?: XOR<InternetContractDetailsRelationFilter, InternetContractDetailsWhereInput>
|
|
}, "id">
|
|
|
|
export type PhoneNumberOrderByWithAggregationInput = {
|
|
id?: SortOrder
|
|
internetContractDetailsId?: SortOrder
|
|
phoneNumber?: SortOrder
|
|
isMain?: SortOrder
|
|
sipUsername?: SortOrderInput | SortOrder
|
|
sipPasswordEncrypted?: SortOrderInput | SortOrder
|
|
sipServer?: SortOrderInput | SortOrder
|
|
_count?: PhoneNumberCountOrderByAggregateInput
|
|
_avg?: PhoneNumberAvgOrderByAggregateInput
|
|
_max?: PhoneNumberMaxOrderByAggregateInput
|
|
_min?: PhoneNumberMinOrderByAggregateInput
|
|
_sum?: PhoneNumberSumOrderByAggregateInput
|
|
}
|
|
|
|
export type PhoneNumberScalarWhereWithAggregatesInput = {
|
|
AND?: PhoneNumberScalarWhereWithAggregatesInput | PhoneNumberScalarWhereWithAggregatesInput[]
|
|
OR?: PhoneNumberScalarWhereWithAggregatesInput[]
|
|
NOT?: PhoneNumberScalarWhereWithAggregatesInput | PhoneNumberScalarWhereWithAggregatesInput[]
|
|
id?: IntWithAggregatesFilter<"PhoneNumber"> | number
|
|
internetContractDetailsId?: IntWithAggregatesFilter<"PhoneNumber"> | number
|
|
phoneNumber?: StringWithAggregatesFilter<"PhoneNumber"> | string
|
|
isMain?: BoolWithAggregatesFilter<"PhoneNumber"> | boolean
|
|
sipUsername?: StringNullableWithAggregatesFilter<"PhoneNumber"> | string | null
|
|
sipPasswordEncrypted?: StringNullableWithAggregatesFilter<"PhoneNumber"> | string | null
|
|
sipServer?: StringNullableWithAggregatesFilter<"PhoneNumber"> | string | null
|
|
}
|
|
|
|
export type MobileContractDetailsWhereInput = {
|
|
AND?: MobileContractDetailsWhereInput | MobileContractDetailsWhereInput[]
|
|
OR?: MobileContractDetailsWhereInput[]
|
|
NOT?: MobileContractDetailsWhereInput | MobileContractDetailsWhereInput[]
|
|
id?: IntFilter<"MobileContractDetails"> | number
|
|
contractId?: IntFilter<"MobileContractDetails"> | number
|
|
requiresMultisim?: BoolFilter<"MobileContractDetails"> | boolean
|
|
dataVolume?: FloatNullableFilter<"MobileContractDetails"> | number | null
|
|
includedMinutes?: IntNullableFilter<"MobileContractDetails"> | number | null
|
|
includedSMS?: IntNullableFilter<"MobileContractDetails"> | number | null
|
|
deviceModel?: StringNullableFilter<"MobileContractDetails"> | string | null
|
|
deviceImei?: StringNullableFilter<"MobileContractDetails"> | string | null
|
|
phoneNumber?: StringNullableFilter<"MobileContractDetails"> | string | null
|
|
simCardNumber?: StringNullableFilter<"MobileContractDetails"> | string | null
|
|
contract?: XOR<ContractRelationFilter, ContractWhereInput>
|
|
simCards?: SimCardListRelationFilter
|
|
}
|
|
|
|
export type MobileContractDetailsOrderByWithRelationInput = {
|
|
id?: SortOrder
|
|
contractId?: SortOrder
|
|
requiresMultisim?: SortOrder
|
|
dataVolume?: SortOrderInput | SortOrder
|
|
includedMinutes?: SortOrderInput | SortOrder
|
|
includedSMS?: SortOrderInput | SortOrder
|
|
deviceModel?: SortOrderInput | SortOrder
|
|
deviceImei?: SortOrderInput | SortOrder
|
|
phoneNumber?: SortOrderInput | SortOrder
|
|
simCardNumber?: SortOrderInput | SortOrder
|
|
contract?: ContractOrderByWithRelationInput
|
|
simCards?: SimCardOrderByRelationAggregateInput
|
|
}
|
|
|
|
export type MobileContractDetailsWhereUniqueInput = Prisma.AtLeast<{
|
|
id?: number
|
|
contractId?: number
|
|
AND?: MobileContractDetailsWhereInput | MobileContractDetailsWhereInput[]
|
|
OR?: MobileContractDetailsWhereInput[]
|
|
NOT?: MobileContractDetailsWhereInput | MobileContractDetailsWhereInput[]
|
|
requiresMultisim?: BoolFilter<"MobileContractDetails"> | boolean
|
|
dataVolume?: FloatNullableFilter<"MobileContractDetails"> | number | null
|
|
includedMinutes?: IntNullableFilter<"MobileContractDetails"> | number | null
|
|
includedSMS?: IntNullableFilter<"MobileContractDetails"> | number | null
|
|
deviceModel?: StringNullableFilter<"MobileContractDetails"> | string | null
|
|
deviceImei?: StringNullableFilter<"MobileContractDetails"> | string | null
|
|
phoneNumber?: StringNullableFilter<"MobileContractDetails"> | string | null
|
|
simCardNumber?: StringNullableFilter<"MobileContractDetails"> | string | null
|
|
contract?: XOR<ContractRelationFilter, ContractWhereInput>
|
|
simCards?: SimCardListRelationFilter
|
|
}, "id" | "contractId">
|
|
|
|
export type MobileContractDetailsOrderByWithAggregationInput = {
|
|
id?: SortOrder
|
|
contractId?: SortOrder
|
|
requiresMultisim?: SortOrder
|
|
dataVolume?: SortOrderInput | SortOrder
|
|
includedMinutes?: SortOrderInput | SortOrder
|
|
includedSMS?: SortOrderInput | SortOrder
|
|
deviceModel?: SortOrderInput | SortOrder
|
|
deviceImei?: SortOrderInput | SortOrder
|
|
phoneNumber?: SortOrderInput | SortOrder
|
|
simCardNumber?: SortOrderInput | SortOrder
|
|
_count?: MobileContractDetailsCountOrderByAggregateInput
|
|
_avg?: MobileContractDetailsAvgOrderByAggregateInput
|
|
_max?: MobileContractDetailsMaxOrderByAggregateInput
|
|
_min?: MobileContractDetailsMinOrderByAggregateInput
|
|
_sum?: MobileContractDetailsSumOrderByAggregateInput
|
|
}
|
|
|
|
export type MobileContractDetailsScalarWhereWithAggregatesInput = {
|
|
AND?: MobileContractDetailsScalarWhereWithAggregatesInput | MobileContractDetailsScalarWhereWithAggregatesInput[]
|
|
OR?: MobileContractDetailsScalarWhereWithAggregatesInput[]
|
|
NOT?: MobileContractDetailsScalarWhereWithAggregatesInput | MobileContractDetailsScalarWhereWithAggregatesInput[]
|
|
id?: IntWithAggregatesFilter<"MobileContractDetails"> | number
|
|
contractId?: IntWithAggregatesFilter<"MobileContractDetails"> | number
|
|
requiresMultisim?: BoolWithAggregatesFilter<"MobileContractDetails"> | boolean
|
|
dataVolume?: FloatNullableWithAggregatesFilter<"MobileContractDetails"> | number | null
|
|
includedMinutes?: IntNullableWithAggregatesFilter<"MobileContractDetails"> | number | null
|
|
includedSMS?: IntNullableWithAggregatesFilter<"MobileContractDetails"> | number | null
|
|
deviceModel?: StringNullableWithAggregatesFilter<"MobileContractDetails"> | string | null
|
|
deviceImei?: StringNullableWithAggregatesFilter<"MobileContractDetails"> | string | null
|
|
phoneNumber?: StringNullableWithAggregatesFilter<"MobileContractDetails"> | string | null
|
|
simCardNumber?: StringNullableWithAggregatesFilter<"MobileContractDetails"> | string | null
|
|
}
|
|
|
|
export type SimCardWhereInput = {
|
|
AND?: SimCardWhereInput | SimCardWhereInput[]
|
|
OR?: SimCardWhereInput[]
|
|
NOT?: SimCardWhereInput | SimCardWhereInput[]
|
|
id?: IntFilter<"SimCard"> | number
|
|
mobileDetailsId?: IntFilter<"SimCard"> | number
|
|
phoneNumber?: StringNullableFilter<"SimCard"> | string | null
|
|
simCardNumber?: StringNullableFilter<"SimCard"> | string | null
|
|
pin?: StringNullableFilter<"SimCard"> | string | null
|
|
puk?: StringNullableFilter<"SimCard"> | string | null
|
|
isMultisim?: BoolFilter<"SimCard"> | boolean
|
|
isMain?: BoolFilter<"SimCard"> | boolean
|
|
createdAt?: DateTimeFilter<"SimCard"> | Date | string
|
|
updatedAt?: DateTimeFilter<"SimCard"> | Date | string
|
|
mobileDetails?: XOR<MobileContractDetailsRelationFilter, MobileContractDetailsWhereInput>
|
|
}
|
|
|
|
export type SimCardOrderByWithRelationInput = {
|
|
id?: SortOrder
|
|
mobileDetailsId?: SortOrder
|
|
phoneNumber?: SortOrderInput | SortOrder
|
|
simCardNumber?: SortOrderInput | SortOrder
|
|
pin?: SortOrderInput | SortOrder
|
|
puk?: SortOrderInput | SortOrder
|
|
isMultisim?: SortOrder
|
|
isMain?: SortOrder
|
|
createdAt?: SortOrder
|
|
updatedAt?: SortOrder
|
|
mobileDetails?: MobileContractDetailsOrderByWithRelationInput
|
|
}
|
|
|
|
export type SimCardWhereUniqueInput = Prisma.AtLeast<{
|
|
id?: number
|
|
AND?: SimCardWhereInput | SimCardWhereInput[]
|
|
OR?: SimCardWhereInput[]
|
|
NOT?: SimCardWhereInput | SimCardWhereInput[]
|
|
mobileDetailsId?: IntFilter<"SimCard"> | number
|
|
phoneNumber?: StringNullableFilter<"SimCard"> | string | null
|
|
simCardNumber?: StringNullableFilter<"SimCard"> | string | null
|
|
pin?: StringNullableFilter<"SimCard"> | string | null
|
|
puk?: StringNullableFilter<"SimCard"> | string | null
|
|
isMultisim?: BoolFilter<"SimCard"> | boolean
|
|
isMain?: BoolFilter<"SimCard"> | boolean
|
|
createdAt?: DateTimeFilter<"SimCard"> | Date | string
|
|
updatedAt?: DateTimeFilter<"SimCard"> | Date | string
|
|
mobileDetails?: XOR<MobileContractDetailsRelationFilter, MobileContractDetailsWhereInput>
|
|
}, "id">
|
|
|
|
export type SimCardOrderByWithAggregationInput = {
|
|
id?: SortOrder
|
|
mobileDetailsId?: SortOrder
|
|
phoneNumber?: SortOrderInput | SortOrder
|
|
simCardNumber?: SortOrderInput | SortOrder
|
|
pin?: SortOrderInput | SortOrder
|
|
puk?: SortOrderInput | SortOrder
|
|
isMultisim?: SortOrder
|
|
isMain?: SortOrder
|
|
createdAt?: SortOrder
|
|
updatedAt?: SortOrder
|
|
_count?: SimCardCountOrderByAggregateInput
|
|
_avg?: SimCardAvgOrderByAggregateInput
|
|
_max?: SimCardMaxOrderByAggregateInput
|
|
_min?: SimCardMinOrderByAggregateInput
|
|
_sum?: SimCardSumOrderByAggregateInput
|
|
}
|
|
|
|
export type SimCardScalarWhereWithAggregatesInput = {
|
|
AND?: SimCardScalarWhereWithAggregatesInput | SimCardScalarWhereWithAggregatesInput[]
|
|
OR?: SimCardScalarWhereWithAggregatesInput[]
|
|
NOT?: SimCardScalarWhereWithAggregatesInput | SimCardScalarWhereWithAggregatesInput[]
|
|
id?: IntWithAggregatesFilter<"SimCard"> | number
|
|
mobileDetailsId?: IntWithAggregatesFilter<"SimCard"> | number
|
|
phoneNumber?: StringNullableWithAggregatesFilter<"SimCard"> | string | null
|
|
simCardNumber?: StringNullableWithAggregatesFilter<"SimCard"> | string | null
|
|
pin?: StringNullableWithAggregatesFilter<"SimCard"> | string | null
|
|
puk?: StringNullableWithAggregatesFilter<"SimCard"> | string | null
|
|
isMultisim?: BoolWithAggregatesFilter<"SimCard"> | boolean
|
|
isMain?: BoolWithAggregatesFilter<"SimCard"> | boolean
|
|
createdAt?: DateTimeWithAggregatesFilter<"SimCard"> | Date | string
|
|
updatedAt?: DateTimeWithAggregatesFilter<"SimCard"> | Date | string
|
|
}
|
|
|
|
export type TvContractDetailsWhereInput = {
|
|
AND?: TvContractDetailsWhereInput | TvContractDetailsWhereInput[]
|
|
OR?: TvContractDetailsWhereInput[]
|
|
NOT?: TvContractDetailsWhereInput | TvContractDetailsWhereInput[]
|
|
id?: IntFilter<"TvContractDetails"> | number
|
|
contractId?: IntFilter<"TvContractDetails"> | number
|
|
receiverModel?: StringNullableFilter<"TvContractDetails"> | string | null
|
|
smartcardNumber?: StringNullableFilter<"TvContractDetails"> | string | null
|
|
package?: StringNullableFilter<"TvContractDetails"> | string | null
|
|
contract?: XOR<ContractRelationFilter, ContractWhereInput>
|
|
}
|
|
|
|
export type TvContractDetailsOrderByWithRelationInput = {
|
|
id?: SortOrder
|
|
contractId?: SortOrder
|
|
receiverModel?: SortOrderInput | SortOrder
|
|
smartcardNumber?: SortOrderInput | SortOrder
|
|
package?: SortOrderInput | SortOrder
|
|
contract?: ContractOrderByWithRelationInput
|
|
}
|
|
|
|
export type TvContractDetailsWhereUniqueInput = Prisma.AtLeast<{
|
|
id?: number
|
|
contractId?: number
|
|
AND?: TvContractDetailsWhereInput | TvContractDetailsWhereInput[]
|
|
OR?: TvContractDetailsWhereInput[]
|
|
NOT?: TvContractDetailsWhereInput | TvContractDetailsWhereInput[]
|
|
receiverModel?: StringNullableFilter<"TvContractDetails"> | string | null
|
|
smartcardNumber?: StringNullableFilter<"TvContractDetails"> | string | null
|
|
package?: StringNullableFilter<"TvContractDetails"> | string | null
|
|
contract?: XOR<ContractRelationFilter, ContractWhereInput>
|
|
}, "id" | "contractId">
|
|
|
|
export type TvContractDetailsOrderByWithAggregationInput = {
|
|
id?: SortOrder
|
|
contractId?: SortOrder
|
|
receiverModel?: SortOrderInput | SortOrder
|
|
smartcardNumber?: SortOrderInput | SortOrder
|
|
package?: SortOrderInput | SortOrder
|
|
_count?: TvContractDetailsCountOrderByAggregateInput
|
|
_avg?: TvContractDetailsAvgOrderByAggregateInput
|
|
_max?: TvContractDetailsMaxOrderByAggregateInput
|
|
_min?: TvContractDetailsMinOrderByAggregateInput
|
|
_sum?: TvContractDetailsSumOrderByAggregateInput
|
|
}
|
|
|
|
export type TvContractDetailsScalarWhereWithAggregatesInput = {
|
|
AND?: TvContractDetailsScalarWhereWithAggregatesInput | TvContractDetailsScalarWhereWithAggregatesInput[]
|
|
OR?: TvContractDetailsScalarWhereWithAggregatesInput[]
|
|
NOT?: TvContractDetailsScalarWhereWithAggregatesInput | TvContractDetailsScalarWhereWithAggregatesInput[]
|
|
id?: IntWithAggregatesFilter<"TvContractDetails"> | number
|
|
contractId?: IntWithAggregatesFilter<"TvContractDetails"> | number
|
|
receiverModel?: StringNullableWithAggregatesFilter<"TvContractDetails"> | string | null
|
|
smartcardNumber?: StringNullableWithAggregatesFilter<"TvContractDetails"> | string | null
|
|
package?: StringNullableWithAggregatesFilter<"TvContractDetails"> | string | null
|
|
}
|
|
|
|
export type CarInsuranceDetailsWhereInput = {
|
|
AND?: CarInsuranceDetailsWhereInput | CarInsuranceDetailsWhereInput[]
|
|
OR?: CarInsuranceDetailsWhereInput[]
|
|
NOT?: CarInsuranceDetailsWhereInput | CarInsuranceDetailsWhereInput[]
|
|
id?: IntFilter<"CarInsuranceDetails"> | number
|
|
contractId?: IntFilter<"CarInsuranceDetails"> | number
|
|
licensePlate?: StringNullableFilter<"CarInsuranceDetails"> | string | null
|
|
hsn?: StringNullableFilter<"CarInsuranceDetails"> | string | null
|
|
tsn?: StringNullableFilter<"CarInsuranceDetails"> | string | null
|
|
vin?: StringNullableFilter<"CarInsuranceDetails"> | string | null
|
|
vehicleType?: StringNullableFilter<"CarInsuranceDetails"> | string | null
|
|
firstRegistration?: DateTimeNullableFilter<"CarInsuranceDetails"> | Date | string | null
|
|
noClaimsClass?: StringNullableFilter<"CarInsuranceDetails"> | string | null
|
|
insuranceType?: EnumInsuranceTypeFilter<"CarInsuranceDetails"> | $Enums.InsuranceType
|
|
deductiblePartial?: FloatNullableFilter<"CarInsuranceDetails"> | number | null
|
|
deductibleFull?: FloatNullableFilter<"CarInsuranceDetails"> | number | null
|
|
policyNumber?: StringNullableFilter<"CarInsuranceDetails"> | string | null
|
|
previousInsurer?: StringNullableFilter<"CarInsuranceDetails"> | string | null
|
|
contract?: XOR<ContractRelationFilter, ContractWhereInput>
|
|
}
|
|
|
|
export type CarInsuranceDetailsOrderByWithRelationInput = {
|
|
id?: SortOrder
|
|
contractId?: SortOrder
|
|
licensePlate?: SortOrderInput | SortOrder
|
|
hsn?: SortOrderInput | SortOrder
|
|
tsn?: SortOrderInput | SortOrder
|
|
vin?: SortOrderInput | SortOrder
|
|
vehicleType?: SortOrderInput | SortOrder
|
|
firstRegistration?: SortOrderInput | SortOrder
|
|
noClaimsClass?: SortOrderInput | SortOrder
|
|
insuranceType?: SortOrder
|
|
deductiblePartial?: SortOrderInput | SortOrder
|
|
deductibleFull?: SortOrderInput | SortOrder
|
|
policyNumber?: SortOrderInput | SortOrder
|
|
previousInsurer?: SortOrderInput | SortOrder
|
|
contract?: ContractOrderByWithRelationInput
|
|
}
|
|
|
|
export type CarInsuranceDetailsWhereUniqueInput = Prisma.AtLeast<{
|
|
id?: number
|
|
contractId?: number
|
|
AND?: CarInsuranceDetailsWhereInput | CarInsuranceDetailsWhereInput[]
|
|
OR?: CarInsuranceDetailsWhereInput[]
|
|
NOT?: CarInsuranceDetailsWhereInput | CarInsuranceDetailsWhereInput[]
|
|
licensePlate?: StringNullableFilter<"CarInsuranceDetails"> | string | null
|
|
hsn?: StringNullableFilter<"CarInsuranceDetails"> | string | null
|
|
tsn?: StringNullableFilter<"CarInsuranceDetails"> | string | null
|
|
vin?: StringNullableFilter<"CarInsuranceDetails"> | string | null
|
|
vehicleType?: StringNullableFilter<"CarInsuranceDetails"> | string | null
|
|
firstRegistration?: DateTimeNullableFilter<"CarInsuranceDetails"> | Date | string | null
|
|
noClaimsClass?: StringNullableFilter<"CarInsuranceDetails"> | string | null
|
|
insuranceType?: EnumInsuranceTypeFilter<"CarInsuranceDetails"> | $Enums.InsuranceType
|
|
deductiblePartial?: FloatNullableFilter<"CarInsuranceDetails"> | number | null
|
|
deductibleFull?: FloatNullableFilter<"CarInsuranceDetails"> | number | null
|
|
policyNumber?: StringNullableFilter<"CarInsuranceDetails"> | string | null
|
|
previousInsurer?: StringNullableFilter<"CarInsuranceDetails"> | string | null
|
|
contract?: XOR<ContractRelationFilter, ContractWhereInput>
|
|
}, "id" | "contractId">
|
|
|
|
export type CarInsuranceDetailsOrderByWithAggregationInput = {
|
|
id?: SortOrder
|
|
contractId?: SortOrder
|
|
licensePlate?: SortOrderInput | SortOrder
|
|
hsn?: SortOrderInput | SortOrder
|
|
tsn?: SortOrderInput | SortOrder
|
|
vin?: SortOrderInput | SortOrder
|
|
vehicleType?: SortOrderInput | SortOrder
|
|
firstRegistration?: SortOrderInput | SortOrder
|
|
noClaimsClass?: SortOrderInput | SortOrder
|
|
insuranceType?: SortOrder
|
|
deductiblePartial?: SortOrderInput | SortOrder
|
|
deductibleFull?: SortOrderInput | SortOrder
|
|
policyNumber?: SortOrderInput | SortOrder
|
|
previousInsurer?: SortOrderInput | SortOrder
|
|
_count?: CarInsuranceDetailsCountOrderByAggregateInput
|
|
_avg?: CarInsuranceDetailsAvgOrderByAggregateInput
|
|
_max?: CarInsuranceDetailsMaxOrderByAggregateInput
|
|
_min?: CarInsuranceDetailsMinOrderByAggregateInput
|
|
_sum?: CarInsuranceDetailsSumOrderByAggregateInput
|
|
}
|
|
|
|
export type CarInsuranceDetailsScalarWhereWithAggregatesInput = {
|
|
AND?: CarInsuranceDetailsScalarWhereWithAggregatesInput | CarInsuranceDetailsScalarWhereWithAggregatesInput[]
|
|
OR?: CarInsuranceDetailsScalarWhereWithAggregatesInput[]
|
|
NOT?: CarInsuranceDetailsScalarWhereWithAggregatesInput | CarInsuranceDetailsScalarWhereWithAggregatesInput[]
|
|
id?: IntWithAggregatesFilter<"CarInsuranceDetails"> | number
|
|
contractId?: IntWithAggregatesFilter<"CarInsuranceDetails"> | number
|
|
licensePlate?: StringNullableWithAggregatesFilter<"CarInsuranceDetails"> | string | null
|
|
hsn?: StringNullableWithAggregatesFilter<"CarInsuranceDetails"> | string | null
|
|
tsn?: StringNullableWithAggregatesFilter<"CarInsuranceDetails"> | string | null
|
|
vin?: StringNullableWithAggregatesFilter<"CarInsuranceDetails"> | string | null
|
|
vehicleType?: StringNullableWithAggregatesFilter<"CarInsuranceDetails"> | string | null
|
|
firstRegistration?: DateTimeNullableWithAggregatesFilter<"CarInsuranceDetails"> | Date | string | null
|
|
noClaimsClass?: StringNullableWithAggregatesFilter<"CarInsuranceDetails"> | string | null
|
|
insuranceType?: EnumInsuranceTypeWithAggregatesFilter<"CarInsuranceDetails"> | $Enums.InsuranceType
|
|
deductiblePartial?: FloatNullableWithAggregatesFilter<"CarInsuranceDetails"> | number | null
|
|
deductibleFull?: FloatNullableWithAggregatesFilter<"CarInsuranceDetails"> | number | null
|
|
policyNumber?: StringNullableWithAggregatesFilter<"CarInsuranceDetails"> | string | null
|
|
previousInsurer?: StringNullableWithAggregatesFilter<"CarInsuranceDetails"> | string | null
|
|
}
|
|
|
|
export type AppSettingCreateInput = {
|
|
key: string
|
|
value: string
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
}
|
|
|
|
export type AppSettingUncheckedCreateInput = {
|
|
id?: number
|
|
key: string
|
|
value: string
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
}
|
|
|
|
export type AppSettingUpdateInput = {
|
|
key?: StringFieldUpdateOperationsInput | string
|
|
value?: StringFieldUpdateOperationsInput | string
|
|
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
}
|
|
|
|
export type AppSettingUncheckedUpdateInput = {
|
|
id?: IntFieldUpdateOperationsInput | number
|
|
key?: StringFieldUpdateOperationsInput | string
|
|
value?: StringFieldUpdateOperationsInput | string
|
|
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
}
|
|
|
|
export type AppSettingCreateManyInput = {
|
|
id?: number
|
|
key: string
|
|
value: string
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
}
|
|
|
|
export type AppSettingUpdateManyMutationInput = {
|
|
key?: StringFieldUpdateOperationsInput | string
|
|
value?: StringFieldUpdateOperationsInput | string
|
|
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
}
|
|
|
|
export type AppSettingUncheckedUpdateManyInput = {
|
|
id?: IntFieldUpdateOperationsInput | number
|
|
key?: StringFieldUpdateOperationsInput | string
|
|
value?: StringFieldUpdateOperationsInput | string
|
|
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
}
|
|
|
|
export type UserCreateInput = {
|
|
email: string
|
|
password: string
|
|
firstName: string
|
|
lastName: string
|
|
isActive?: boolean
|
|
tokenInvalidatedAt?: Date | string | null
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
customer?: CustomerCreateNestedOneWithoutUserInput
|
|
roles?: UserRoleCreateNestedManyWithoutUserInput
|
|
}
|
|
|
|
export type UserUncheckedCreateInput = {
|
|
id?: number
|
|
email: string
|
|
password: string
|
|
firstName: string
|
|
lastName: string
|
|
isActive?: boolean
|
|
tokenInvalidatedAt?: Date | string | null
|
|
customerId?: number | null
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
roles?: UserRoleUncheckedCreateNestedManyWithoutUserInput
|
|
}
|
|
|
|
export type UserUpdateInput = {
|
|
email?: StringFieldUpdateOperationsInput | string
|
|
password?: StringFieldUpdateOperationsInput | string
|
|
firstName?: StringFieldUpdateOperationsInput | string
|
|
lastName?: StringFieldUpdateOperationsInput | string
|
|
isActive?: BoolFieldUpdateOperationsInput | boolean
|
|
tokenInvalidatedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
customer?: CustomerUpdateOneWithoutUserNestedInput
|
|
roles?: UserRoleUpdateManyWithoutUserNestedInput
|
|
}
|
|
|
|
export type UserUncheckedUpdateInput = {
|
|
id?: IntFieldUpdateOperationsInput | number
|
|
email?: StringFieldUpdateOperationsInput | string
|
|
password?: StringFieldUpdateOperationsInput | string
|
|
firstName?: StringFieldUpdateOperationsInput | string
|
|
lastName?: StringFieldUpdateOperationsInput | string
|
|
isActive?: BoolFieldUpdateOperationsInput | boolean
|
|
tokenInvalidatedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
customerId?: NullableIntFieldUpdateOperationsInput | number | null
|
|
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
roles?: UserRoleUncheckedUpdateManyWithoutUserNestedInput
|
|
}
|
|
|
|
export type UserCreateManyInput = {
|
|
id?: number
|
|
email: string
|
|
password: string
|
|
firstName: string
|
|
lastName: string
|
|
isActive?: boolean
|
|
tokenInvalidatedAt?: Date | string | null
|
|
customerId?: number | null
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
}
|
|
|
|
export type UserUpdateManyMutationInput = {
|
|
email?: StringFieldUpdateOperationsInput | string
|
|
password?: StringFieldUpdateOperationsInput | string
|
|
firstName?: StringFieldUpdateOperationsInput | string
|
|
lastName?: StringFieldUpdateOperationsInput | string
|
|
isActive?: BoolFieldUpdateOperationsInput | boolean
|
|
tokenInvalidatedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
}
|
|
|
|
export type UserUncheckedUpdateManyInput = {
|
|
id?: IntFieldUpdateOperationsInput | number
|
|
email?: StringFieldUpdateOperationsInput | string
|
|
password?: StringFieldUpdateOperationsInput | string
|
|
firstName?: StringFieldUpdateOperationsInput | string
|
|
lastName?: StringFieldUpdateOperationsInput | string
|
|
isActive?: BoolFieldUpdateOperationsInput | boolean
|
|
tokenInvalidatedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
customerId?: NullableIntFieldUpdateOperationsInput | number | null
|
|
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
}
|
|
|
|
export type RoleCreateInput = {
|
|
name: string
|
|
description?: string | null
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
permissions?: RolePermissionCreateNestedManyWithoutRoleInput
|
|
users?: UserRoleCreateNestedManyWithoutRoleInput
|
|
}
|
|
|
|
export type RoleUncheckedCreateInput = {
|
|
id?: number
|
|
name: string
|
|
description?: string | null
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
permissions?: RolePermissionUncheckedCreateNestedManyWithoutRoleInput
|
|
users?: UserRoleUncheckedCreateNestedManyWithoutRoleInput
|
|
}
|
|
|
|
export type RoleUpdateInput = {
|
|
name?: StringFieldUpdateOperationsInput | string
|
|
description?: NullableStringFieldUpdateOperationsInput | string | null
|
|
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
permissions?: RolePermissionUpdateManyWithoutRoleNestedInput
|
|
users?: UserRoleUpdateManyWithoutRoleNestedInput
|
|
}
|
|
|
|
export type RoleUncheckedUpdateInput = {
|
|
id?: IntFieldUpdateOperationsInput | number
|
|
name?: StringFieldUpdateOperationsInput | string
|
|
description?: NullableStringFieldUpdateOperationsInput | string | null
|
|
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
permissions?: RolePermissionUncheckedUpdateManyWithoutRoleNestedInput
|
|
users?: UserRoleUncheckedUpdateManyWithoutRoleNestedInput
|
|
}
|
|
|
|
export type RoleCreateManyInput = {
|
|
id?: number
|
|
name: string
|
|
description?: string | null
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
}
|
|
|
|
export type RoleUpdateManyMutationInput = {
|
|
name?: StringFieldUpdateOperationsInput | string
|
|
description?: NullableStringFieldUpdateOperationsInput | string | null
|
|
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
}
|
|
|
|
export type RoleUncheckedUpdateManyInput = {
|
|
id?: IntFieldUpdateOperationsInput | number
|
|
name?: StringFieldUpdateOperationsInput | string
|
|
description?: NullableStringFieldUpdateOperationsInput | string | null
|
|
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
}
|
|
|
|
export type PermissionCreateInput = {
|
|
resource: string
|
|
action: string
|
|
roles?: RolePermissionCreateNestedManyWithoutPermissionInput
|
|
}
|
|
|
|
export type PermissionUncheckedCreateInput = {
|
|
id?: number
|
|
resource: string
|
|
action: string
|
|
roles?: RolePermissionUncheckedCreateNestedManyWithoutPermissionInput
|
|
}
|
|
|
|
export type PermissionUpdateInput = {
|
|
resource?: StringFieldUpdateOperationsInput | string
|
|
action?: StringFieldUpdateOperationsInput | string
|
|
roles?: RolePermissionUpdateManyWithoutPermissionNestedInput
|
|
}
|
|
|
|
export type PermissionUncheckedUpdateInput = {
|
|
id?: IntFieldUpdateOperationsInput | number
|
|
resource?: StringFieldUpdateOperationsInput | string
|
|
action?: StringFieldUpdateOperationsInput | string
|
|
roles?: RolePermissionUncheckedUpdateManyWithoutPermissionNestedInput
|
|
}
|
|
|
|
export type PermissionCreateManyInput = {
|
|
id?: number
|
|
resource: string
|
|
action: string
|
|
}
|
|
|
|
export type PermissionUpdateManyMutationInput = {
|
|
resource?: StringFieldUpdateOperationsInput | string
|
|
action?: StringFieldUpdateOperationsInput | string
|
|
}
|
|
|
|
export type PermissionUncheckedUpdateManyInput = {
|
|
id?: IntFieldUpdateOperationsInput | number
|
|
resource?: StringFieldUpdateOperationsInput | string
|
|
action?: StringFieldUpdateOperationsInput | string
|
|
}
|
|
|
|
export type RolePermissionCreateInput = {
|
|
role: RoleCreateNestedOneWithoutPermissionsInput
|
|
permission: PermissionCreateNestedOneWithoutRolesInput
|
|
}
|
|
|
|
export type RolePermissionUncheckedCreateInput = {
|
|
roleId: number
|
|
permissionId: number
|
|
}
|
|
|
|
export type RolePermissionUpdateInput = {
|
|
role?: RoleUpdateOneRequiredWithoutPermissionsNestedInput
|
|
permission?: PermissionUpdateOneRequiredWithoutRolesNestedInput
|
|
}
|
|
|
|
export type RolePermissionUncheckedUpdateInput = {
|
|
roleId?: IntFieldUpdateOperationsInput | number
|
|
permissionId?: IntFieldUpdateOperationsInput | number
|
|
}
|
|
|
|
export type RolePermissionCreateManyInput = {
|
|
roleId: number
|
|
permissionId: number
|
|
}
|
|
|
|
export type RolePermissionUpdateManyMutationInput = {
|
|
|
|
}
|
|
|
|
export type RolePermissionUncheckedUpdateManyInput = {
|
|
roleId?: IntFieldUpdateOperationsInput | number
|
|
permissionId?: IntFieldUpdateOperationsInput | number
|
|
}
|
|
|
|
export type UserRoleCreateInput = {
|
|
user: UserCreateNestedOneWithoutRolesInput
|
|
role: RoleCreateNestedOneWithoutUsersInput
|
|
}
|
|
|
|
export type UserRoleUncheckedCreateInput = {
|
|
userId: number
|
|
roleId: number
|
|
}
|
|
|
|
export type UserRoleUpdateInput = {
|
|
user?: UserUpdateOneRequiredWithoutRolesNestedInput
|
|
role?: RoleUpdateOneRequiredWithoutUsersNestedInput
|
|
}
|
|
|
|
export type UserRoleUncheckedUpdateInput = {
|
|
userId?: IntFieldUpdateOperationsInput | number
|
|
roleId?: IntFieldUpdateOperationsInput | number
|
|
}
|
|
|
|
export type UserRoleCreateManyInput = {
|
|
userId: number
|
|
roleId: number
|
|
}
|
|
|
|
export type UserRoleUpdateManyMutationInput = {
|
|
|
|
}
|
|
|
|
export type UserRoleUncheckedUpdateManyInput = {
|
|
userId?: IntFieldUpdateOperationsInput | number
|
|
roleId?: IntFieldUpdateOperationsInput | number
|
|
}
|
|
|
|
export type CustomerCreateInput = {
|
|
customerNumber: string
|
|
type?: $Enums.CustomerType
|
|
salutation?: string | null
|
|
firstName: string
|
|
lastName: string
|
|
companyName?: string | null
|
|
foundingDate?: Date | string | null
|
|
birthDate?: Date | string | null
|
|
birthPlace?: string | null
|
|
email?: string | null
|
|
phone?: string | null
|
|
mobile?: string | null
|
|
taxNumber?: string | null
|
|
businessRegistrationPath?: string | null
|
|
commercialRegisterPath?: string | null
|
|
commercialRegisterNumber?: string | null
|
|
privacyPolicyPath?: string | null
|
|
notes?: string | null
|
|
portalEnabled?: boolean
|
|
portalEmail?: string | null
|
|
portalPasswordHash?: string | null
|
|
portalPasswordEncrypted?: string | null
|
|
portalLastLogin?: Date | string | null
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
user?: UserCreateNestedOneWithoutCustomerInput
|
|
addresses?: AddressCreateNestedManyWithoutCustomerInput
|
|
bankCards?: BankCardCreateNestedManyWithoutCustomerInput
|
|
identityDocuments?: IdentityDocumentCreateNestedManyWithoutCustomerInput
|
|
meters?: MeterCreateNestedManyWithoutCustomerInput
|
|
stressfreiEmails?: StressfreiEmailCreateNestedManyWithoutCustomerInput
|
|
contracts?: ContractCreateNestedManyWithoutCustomerInput
|
|
representingFor?: CustomerRepresentativeCreateNestedManyWithoutRepresentativeInput
|
|
representedBy?: CustomerRepresentativeCreateNestedManyWithoutCustomerInput
|
|
}
|
|
|
|
export type CustomerUncheckedCreateInput = {
|
|
id?: number
|
|
customerNumber: string
|
|
type?: $Enums.CustomerType
|
|
salutation?: string | null
|
|
firstName: string
|
|
lastName: string
|
|
companyName?: string | null
|
|
foundingDate?: Date | string | null
|
|
birthDate?: Date | string | null
|
|
birthPlace?: string | null
|
|
email?: string | null
|
|
phone?: string | null
|
|
mobile?: string | null
|
|
taxNumber?: string | null
|
|
businessRegistrationPath?: string | null
|
|
commercialRegisterPath?: string | null
|
|
commercialRegisterNumber?: string | null
|
|
privacyPolicyPath?: string | null
|
|
notes?: string | null
|
|
portalEnabled?: boolean
|
|
portalEmail?: string | null
|
|
portalPasswordHash?: string | null
|
|
portalPasswordEncrypted?: string | null
|
|
portalLastLogin?: Date | string | null
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
user?: UserUncheckedCreateNestedOneWithoutCustomerInput
|
|
addresses?: AddressUncheckedCreateNestedManyWithoutCustomerInput
|
|
bankCards?: BankCardUncheckedCreateNestedManyWithoutCustomerInput
|
|
identityDocuments?: IdentityDocumentUncheckedCreateNestedManyWithoutCustomerInput
|
|
meters?: MeterUncheckedCreateNestedManyWithoutCustomerInput
|
|
stressfreiEmails?: StressfreiEmailUncheckedCreateNestedManyWithoutCustomerInput
|
|
contracts?: ContractUncheckedCreateNestedManyWithoutCustomerInput
|
|
representingFor?: CustomerRepresentativeUncheckedCreateNestedManyWithoutRepresentativeInput
|
|
representedBy?: CustomerRepresentativeUncheckedCreateNestedManyWithoutCustomerInput
|
|
}
|
|
|
|
export type CustomerUpdateInput = {
|
|
customerNumber?: StringFieldUpdateOperationsInput | string
|
|
type?: EnumCustomerTypeFieldUpdateOperationsInput | $Enums.CustomerType
|
|
salutation?: NullableStringFieldUpdateOperationsInput | string | null
|
|
firstName?: StringFieldUpdateOperationsInput | string
|
|
lastName?: StringFieldUpdateOperationsInput | string
|
|
companyName?: NullableStringFieldUpdateOperationsInput | string | null
|
|
foundingDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
birthDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
birthPlace?: NullableStringFieldUpdateOperationsInput | string | null
|
|
email?: NullableStringFieldUpdateOperationsInput | string | null
|
|
phone?: NullableStringFieldUpdateOperationsInput | string | null
|
|
mobile?: NullableStringFieldUpdateOperationsInput | string | null
|
|
taxNumber?: NullableStringFieldUpdateOperationsInput | string | null
|
|
businessRegistrationPath?: NullableStringFieldUpdateOperationsInput | string | null
|
|
commercialRegisterPath?: NullableStringFieldUpdateOperationsInput | string | null
|
|
commercialRegisterNumber?: NullableStringFieldUpdateOperationsInput | string | null
|
|
privacyPolicyPath?: NullableStringFieldUpdateOperationsInput | string | null
|
|
notes?: NullableStringFieldUpdateOperationsInput | string | null
|
|
portalEnabled?: BoolFieldUpdateOperationsInput | boolean
|
|
portalEmail?: NullableStringFieldUpdateOperationsInput | string | null
|
|
portalPasswordHash?: NullableStringFieldUpdateOperationsInput | string | null
|
|
portalPasswordEncrypted?: NullableStringFieldUpdateOperationsInput | string | null
|
|
portalLastLogin?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
user?: UserUpdateOneWithoutCustomerNestedInput
|
|
addresses?: AddressUpdateManyWithoutCustomerNestedInput
|
|
bankCards?: BankCardUpdateManyWithoutCustomerNestedInput
|
|
identityDocuments?: IdentityDocumentUpdateManyWithoutCustomerNestedInput
|
|
meters?: MeterUpdateManyWithoutCustomerNestedInput
|
|
stressfreiEmails?: StressfreiEmailUpdateManyWithoutCustomerNestedInput
|
|
contracts?: ContractUpdateManyWithoutCustomerNestedInput
|
|
representingFor?: CustomerRepresentativeUpdateManyWithoutRepresentativeNestedInput
|
|
representedBy?: CustomerRepresentativeUpdateManyWithoutCustomerNestedInput
|
|
}
|
|
|
|
export type CustomerUncheckedUpdateInput = {
|
|
id?: IntFieldUpdateOperationsInput | number
|
|
customerNumber?: StringFieldUpdateOperationsInput | string
|
|
type?: EnumCustomerTypeFieldUpdateOperationsInput | $Enums.CustomerType
|
|
salutation?: NullableStringFieldUpdateOperationsInput | string | null
|
|
firstName?: StringFieldUpdateOperationsInput | string
|
|
lastName?: StringFieldUpdateOperationsInput | string
|
|
companyName?: NullableStringFieldUpdateOperationsInput | string | null
|
|
foundingDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
birthDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
birthPlace?: NullableStringFieldUpdateOperationsInput | string | null
|
|
email?: NullableStringFieldUpdateOperationsInput | string | null
|
|
phone?: NullableStringFieldUpdateOperationsInput | string | null
|
|
mobile?: NullableStringFieldUpdateOperationsInput | string | null
|
|
taxNumber?: NullableStringFieldUpdateOperationsInput | string | null
|
|
businessRegistrationPath?: NullableStringFieldUpdateOperationsInput | string | null
|
|
commercialRegisterPath?: NullableStringFieldUpdateOperationsInput | string | null
|
|
commercialRegisterNumber?: NullableStringFieldUpdateOperationsInput | string | null
|
|
privacyPolicyPath?: NullableStringFieldUpdateOperationsInput | string | null
|
|
notes?: NullableStringFieldUpdateOperationsInput | string | null
|
|
portalEnabled?: BoolFieldUpdateOperationsInput | boolean
|
|
portalEmail?: NullableStringFieldUpdateOperationsInput | string | null
|
|
portalPasswordHash?: NullableStringFieldUpdateOperationsInput | string | null
|
|
portalPasswordEncrypted?: NullableStringFieldUpdateOperationsInput | string | null
|
|
portalLastLogin?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
user?: UserUncheckedUpdateOneWithoutCustomerNestedInput
|
|
addresses?: AddressUncheckedUpdateManyWithoutCustomerNestedInput
|
|
bankCards?: BankCardUncheckedUpdateManyWithoutCustomerNestedInput
|
|
identityDocuments?: IdentityDocumentUncheckedUpdateManyWithoutCustomerNestedInput
|
|
meters?: MeterUncheckedUpdateManyWithoutCustomerNestedInput
|
|
stressfreiEmails?: StressfreiEmailUncheckedUpdateManyWithoutCustomerNestedInput
|
|
contracts?: ContractUncheckedUpdateManyWithoutCustomerNestedInput
|
|
representingFor?: CustomerRepresentativeUncheckedUpdateManyWithoutRepresentativeNestedInput
|
|
representedBy?: CustomerRepresentativeUncheckedUpdateManyWithoutCustomerNestedInput
|
|
}
|
|
|
|
export type CustomerCreateManyInput = {
|
|
id?: number
|
|
customerNumber: string
|
|
type?: $Enums.CustomerType
|
|
salutation?: string | null
|
|
firstName: string
|
|
lastName: string
|
|
companyName?: string | null
|
|
foundingDate?: Date | string | null
|
|
birthDate?: Date | string | null
|
|
birthPlace?: string | null
|
|
email?: string | null
|
|
phone?: string | null
|
|
mobile?: string | null
|
|
taxNumber?: string | null
|
|
businessRegistrationPath?: string | null
|
|
commercialRegisterPath?: string | null
|
|
commercialRegisterNumber?: string | null
|
|
privacyPolicyPath?: string | null
|
|
notes?: string | null
|
|
portalEnabled?: boolean
|
|
portalEmail?: string | null
|
|
portalPasswordHash?: string | null
|
|
portalPasswordEncrypted?: string | null
|
|
portalLastLogin?: Date | string | null
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
}
|
|
|
|
export type CustomerUpdateManyMutationInput = {
|
|
customerNumber?: StringFieldUpdateOperationsInput | string
|
|
type?: EnumCustomerTypeFieldUpdateOperationsInput | $Enums.CustomerType
|
|
salutation?: NullableStringFieldUpdateOperationsInput | string | null
|
|
firstName?: StringFieldUpdateOperationsInput | string
|
|
lastName?: StringFieldUpdateOperationsInput | string
|
|
companyName?: NullableStringFieldUpdateOperationsInput | string | null
|
|
foundingDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
birthDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
birthPlace?: NullableStringFieldUpdateOperationsInput | string | null
|
|
email?: NullableStringFieldUpdateOperationsInput | string | null
|
|
phone?: NullableStringFieldUpdateOperationsInput | string | null
|
|
mobile?: NullableStringFieldUpdateOperationsInput | string | null
|
|
taxNumber?: NullableStringFieldUpdateOperationsInput | string | null
|
|
businessRegistrationPath?: NullableStringFieldUpdateOperationsInput | string | null
|
|
commercialRegisterPath?: NullableStringFieldUpdateOperationsInput | string | null
|
|
commercialRegisterNumber?: NullableStringFieldUpdateOperationsInput | string | null
|
|
privacyPolicyPath?: NullableStringFieldUpdateOperationsInput | string | null
|
|
notes?: NullableStringFieldUpdateOperationsInput | string | null
|
|
portalEnabled?: BoolFieldUpdateOperationsInput | boolean
|
|
portalEmail?: NullableStringFieldUpdateOperationsInput | string | null
|
|
portalPasswordHash?: NullableStringFieldUpdateOperationsInput | string | null
|
|
portalPasswordEncrypted?: NullableStringFieldUpdateOperationsInput | string | null
|
|
portalLastLogin?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
}
|
|
|
|
export type CustomerUncheckedUpdateManyInput = {
|
|
id?: IntFieldUpdateOperationsInput | number
|
|
customerNumber?: StringFieldUpdateOperationsInput | string
|
|
type?: EnumCustomerTypeFieldUpdateOperationsInput | $Enums.CustomerType
|
|
salutation?: NullableStringFieldUpdateOperationsInput | string | null
|
|
firstName?: StringFieldUpdateOperationsInput | string
|
|
lastName?: StringFieldUpdateOperationsInput | string
|
|
companyName?: NullableStringFieldUpdateOperationsInput | string | null
|
|
foundingDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
birthDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
birthPlace?: NullableStringFieldUpdateOperationsInput | string | null
|
|
email?: NullableStringFieldUpdateOperationsInput | string | null
|
|
phone?: NullableStringFieldUpdateOperationsInput | string | null
|
|
mobile?: NullableStringFieldUpdateOperationsInput | string | null
|
|
taxNumber?: NullableStringFieldUpdateOperationsInput | string | null
|
|
businessRegistrationPath?: NullableStringFieldUpdateOperationsInput | string | null
|
|
commercialRegisterPath?: NullableStringFieldUpdateOperationsInput | string | null
|
|
commercialRegisterNumber?: NullableStringFieldUpdateOperationsInput | string | null
|
|
privacyPolicyPath?: NullableStringFieldUpdateOperationsInput | string | null
|
|
notes?: NullableStringFieldUpdateOperationsInput | string | null
|
|
portalEnabled?: BoolFieldUpdateOperationsInput | boolean
|
|
portalEmail?: NullableStringFieldUpdateOperationsInput | string | null
|
|
portalPasswordHash?: NullableStringFieldUpdateOperationsInput | string | null
|
|
portalPasswordEncrypted?: NullableStringFieldUpdateOperationsInput | string | null
|
|
portalLastLogin?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
}
|
|
|
|
export type CustomerRepresentativeCreateInput = {
|
|
notes?: string | null
|
|
isActive?: boolean
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
customer: CustomerCreateNestedOneWithoutRepresentedByInput
|
|
representative: CustomerCreateNestedOneWithoutRepresentingForInput
|
|
}
|
|
|
|
export type CustomerRepresentativeUncheckedCreateInput = {
|
|
id?: number
|
|
customerId: number
|
|
representativeId: number
|
|
notes?: string | null
|
|
isActive?: boolean
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
}
|
|
|
|
export type CustomerRepresentativeUpdateInput = {
|
|
notes?: NullableStringFieldUpdateOperationsInput | string | null
|
|
isActive?: BoolFieldUpdateOperationsInput | boolean
|
|
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
customer?: CustomerUpdateOneRequiredWithoutRepresentedByNestedInput
|
|
representative?: CustomerUpdateOneRequiredWithoutRepresentingForNestedInput
|
|
}
|
|
|
|
export type CustomerRepresentativeUncheckedUpdateInput = {
|
|
id?: IntFieldUpdateOperationsInput | number
|
|
customerId?: IntFieldUpdateOperationsInput | number
|
|
representativeId?: IntFieldUpdateOperationsInput | number
|
|
notes?: NullableStringFieldUpdateOperationsInput | string | null
|
|
isActive?: BoolFieldUpdateOperationsInput | boolean
|
|
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
}
|
|
|
|
export type CustomerRepresentativeCreateManyInput = {
|
|
id?: number
|
|
customerId: number
|
|
representativeId: number
|
|
notes?: string | null
|
|
isActive?: boolean
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
}
|
|
|
|
export type CustomerRepresentativeUpdateManyMutationInput = {
|
|
notes?: NullableStringFieldUpdateOperationsInput | string | null
|
|
isActive?: BoolFieldUpdateOperationsInput | boolean
|
|
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
}
|
|
|
|
export type CustomerRepresentativeUncheckedUpdateManyInput = {
|
|
id?: IntFieldUpdateOperationsInput | number
|
|
customerId?: IntFieldUpdateOperationsInput | number
|
|
representativeId?: IntFieldUpdateOperationsInput | number
|
|
notes?: NullableStringFieldUpdateOperationsInput | string | null
|
|
isActive?: BoolFieldUpdateOperationsInput | boolean
|
|
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
}
|
|
|
|
export type AddressCreateInput = {
|
|
type?: $Enums.AddressType
|
|
street: string
|
|
houseNumber: string
|
|
postalCode: string
|
|
city: string
|
|
country?: string
|
|
isDefault?: boolean
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
customer: CustomerCreateNestedOneWithoutAddressesInput
|
|
contractsAsDelivery?: ContractCreateNestedManyWithoutAddressInput
|
|
contractsAsBilling?: ContractCreateNestedManyWithoutBillingAddressInput
|
|
}
|
|
|
|
export type AddressUncheckedCreateInput = {
|
|
id?: number
|
|
customerId: number
|
|
type?: $Enums.AddressType
|
|
street: string
|
|
houseNumber: string
|
|
postalCode: string
|
|
city: string
|
|
country?: string
|
|
isDefault?: boolean
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
contractsAsDelivery?: ContractUncheckedCreateNestedManyWithoutAddressInput
|
|
contractsAsBilling?: ContractUncheckedCreateNestedManyWithoutBillingAddressInput
|
|
}
|
|
|
|
export type AddressUpdateInput = {
|
|
type?: EnumAddressTypeFieldUpdateOperationsInput | $Enums.AddressType
|
|
street?: StringFieldUpdateOperationsInput | string
|
|
houseNumber?: StringFieldUpdateOperationsInput | string
|
|
postalCode?: StringFieldUpdateOperationsInput | string
|
|
city?: StringFieldUpdateOperationsInput | string
|
|
country?: StringFieldUpdateOperationsInput | string
|
|
isDefault?: BoolFieldUpdateOperationsInput | boolean
|
|
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
customer?: CustomerUpdateOneRequiredWithoutAddressesNestedInput
|
|
contractsAsDelivery?: ContractUpdateManyWithoutAddressNestedInput
|
|
contractsAsBilling?: ContractUpdateManyWithoutBillingAddressNestedInput
|
|
}
|
|
|
|
export type AddressUncheckedUpdateInput = {
|
|
id?: IntFieldUpdateOperationsInput | number
|
|
customerId?: IntFieldUpdateOperationsInput | number
|
|
type?: EnumAddressTypeFieldUpdateOperationsInput | $Enums.AddressType
|
|
street?: StringFieldUpdateOperationsInput | string
|
|
houseNumber?: StringFieldUpdateOperationsInput | string
|
|
postalCode?: StringFieldUpdateOperationsInput | string
|
|
city?: StringFieldUpdateOperationsInput | string
|
|
country?: StringFieldUpdateOperationsInput | string
|
|
isDefault?: BoolFieldUpdateOperationsInput | boolean
|
|
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
contractsAsDelivery?: ContractUncheckedUpdateManyWithoutAddressNestedInput
|
|
contractsAsBilling?: ContractUncheckedUpdateManyWithoutBillingAddressNestedInput
|
|
}
|
|
|
|
export type AddressCreateManyInput = {
|
|
id?: number
|
|
customerId: number
|
|
type?: $Enums.AddressType
|
|
street: string
|
|
houseNumber: string
|
|
postalCode: string
|
|
city: string
|
|
country?: string
|
|
isDefault?: boolean
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
}
|
|
|
|
export type AddressUpdateManyMutationInput = {
|
|
type?: EnumAddressTypeFieldUpdateOperationsInput | $Enums.AddressType
|
|
street?: StringFieldUpdateOperationsInput | string
|
|
houseNumber?: StringFieldUpdateOperationsInput | string
|
|
postalCode?: StringFieldUpdateOperationsInput | string
|
|
city?: StringFieldUpdateOperationsInput | string
|
|
country?: StringFieldUpdateOperationsInput | string
|
|
isDefault?: BoolFieldUpdateOperationsInput | boolean
|
|
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
}
|
|
|
|
export type AddressUncheckedUpdateManyInput = {
|
|
id?: IntFieldUpdateOperationsInput | number
|
|
customerId?: IntFieldUpdateOperationsInput | number
|
|
type?: EnumAddressTypeFieldUpdateOperationsInput | $Enums.AddressType
|
|
street?: StringFieldUpdateOperationsInput | string
|
|
houseNumber?: StringFieldUpdateOperationsInput | string
|
|
postalCode?: StringFieldUpdateOperationsInput | string
|
|
city?: StringFieldUpdateOperationsInput | string
|
|
country?: StringFieldUpdateOperationsInput | string
|
|
isDefault?: BoolFieldUpdateOperationsInput | boolean
|
|
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
}
|
|
|
|
export type BankCardCreateInput = {
|
|
accountHolder: string
|
|
iban: string
|
|
bic?: string | null
|
|
bankName?: string | null
|
|
expiryDate?: Date | string | null
|
|
documentPath?: string | null
|
|
isActive?: boolean
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
customer: CustomerCreateNestedOneWithoutBankCardsInput
|
|
contracts?: ContractCreateNestedManyWithoutBankCardInput
|
|
}
|
|
|
|
export type BankCardUncheckedCreateInput = {
|
|
id?: number
|
|
customerId: number
|
|
accountHolder: string
|
|
iban: string
|
|
bic?: string | null
|
|
bankName?: string | null
|
|
expiryDate?: Date | string | null
|
|
documentPath?: string | null
|
|
isActive?: boolean
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
contracts?: ContractUncheckedCreateNestedManyWithoutBankCardInput
|
|
}
|
|
|
|
export type BankCardUpdateInput = {
|
|
accountHolder?: StringFieldUpdateOperationsInput | string
|
|
iban?: StringFieldUpdateOperationsInput | string
|
|
bic?: NullableStringFieldUpdateOperationsInput | string | null
|
|
bankName?: NullableStringFieldUpdateOperationsInput | string | null
|
|
expiryDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
documentPath?: NullableStringFieldUpdateOperationsInput | string | null
|
|
isActive?: BoolFieldUpdateOperationsInput | boolean
|
|
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
customer?: CustomerUpdateOneRequiredWithoutBankCardsNestedInput
|
|
contracts?: ContractUpdateManyWithoutBankCardNestedInput
|
|
}
|
|
|
|
export type BankCardUncheckedUpdateInput = {
|
|
id?: IntFieldUpdateOperationsInput | number
|
|
customerId?: IntFieldUpdateOperationsInput | number
|
|
accountHolder?: StringFieldUpdateOperationsInput | string
|
|
iban?: StringFieldUpdateOperationsInput | string
|
|
bic?: NullableStringFieldUpdateOperationsInput | string | null
|
|
bankName?: NullableStringFieldUpdateOperationsInput | string | null
|
|
expiryDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
documentPath?: NullableStringFieldUpdateOperationsInput | string | null
|
|
isActive?: BoolFieldUpdateOperationsInput | boolean
|
|
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
contracts?: ContractUncheckedUpdateManyWithoutBankCardNestedInput
|
|
}
|
|
|
|
export type BankCardCreateManyInput = {
|
|
id?: number
|
|
customerId: number
|
|
accountHolder: string
|
|
iban: string
|
|
bic?: string | null
|
|
bankName?: string | null
|
|
expiryDate?: Date | string | null
|
|
documentPath?: string | null
|
|
isActive?: boolean
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
}
|
|
|
|
export type BankCardUpdateManyMutationInput = {
|
|
accountHolder?: StringFieldUpdateOperationsInput | string
|
|
iban?: StringFieldUpdateOperationsInput | string
|
|
bic?: NullableStringFieldUpdateOperationsInput | string | null
|
|
bankName?: NullableStringFieldUpdateOperationsInput | string | null
|
|
expiryDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
documentPath?: NullableStringFieldUpdateOperationsInput | string | null
|
|
isActive?: BoolFieldUpdateOperationsInput | boolean
|
|
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
}
|
|
|
|
export type BankCardUncheckedUpdateManyInput = {
|
|
id?: IntFieldUpdateOperationsInput | number
|
|
customerId?: IntFieldUpdateOperationsInput | number
|
|
accountHolder?: StringFieldUpdateOperationsInput | string
|
|
iban?: StringFieldUpdateOperationsInput | string
|
|
bic?: NullableStringFieldUpdateOperationsInput | string | null
|
|
bankName?: NullableStringFieldUpdateOperationsInput | string | null
|
|
expiryDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
documentPath?: NullableStringFieldUpdateOperationsInput | string | null
|
|
isActive?: BoolFieldUpdateOperationsInput | boolean
|
|
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
}
|
|
|
|
export type IdentityDocumentCreateInput = {
|
|
type?: $Enums.DocumentType
|
|
documentNumber: string
|
|
issuingAuthority?: string | null
|
|
issueDate?: Date | string | null
|
|
expiryDate?: Date | string | null
|
|
documentPath?: string | null
|
|
isActive?: boolean
|
|
licenseClasses?: string | null
|
|
licenseIssueDate?: Date | string | null
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
customer: CustomerCreateNestedOneWithoutIdentityDocumentsInput
|
|
contracts?: ContractCreateNestedManyWithoutIdentityDocumentInput
|
|
}
|
|
|
|
export type IdentityDocumentUncheckedCreateInput = {
|
|
id?: number
|
|
customerId: number
|
|
type?: $Enums.DocumentType
|
|
documentNumber: string
|
|
issuingAuthority?: string | null
|
|
issueDate?: Date | string | null
|
|
expiryDate?: Date | string | null
|
|
documentPath?: string | null
|
|
isActive?: boolean
|
|
licenseClasses?: string | null
|
|
licenseIssueDate?: Date | string | null
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
contracts?: ContractUncheckedCreateNestedManyWithoutIdentityDocumentInput
|
|
}
|
|
|
|
export type IdentityDocumentUpdateInput = {
|
|
type?: EnumDocumentTypeFieldUpdateOperationsInput | $Enums.DocumentType
|
|
documentNumber?: StringFieldUpdateOperationsInput | string
|
|
issuingAuthority?: NullableStringFieldUpdateOperationsInput | string | null
|
|
issueDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
expiryDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
documentPath?: NullableStringFieldUpdateOperationsInput | string | null
|
|
isActive?: BoolFieldUpdateOperationsInput | boolean
|
|
licenseClasses?: NullableStringFieldUpdateOperationsInput | string | null
|
|
licenseIssueDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
customer?: CustomerUpdateOneRequiredWithoutIdentityDocumentsNestedInput
|
|
contracts?: ContractUpdateManyWithoutIdentityDocumentNestedInput
|
|
}
|
|
|
|
export type IdentityDocumentUncheckedUpdateInput = {
|
|
id?: IntFieldUpdateOperationsInput | number
|
|
customerId?: IntFieldUpdateOperationsInput | number
|
|
type?: EnumDocumentTypeFieldUpdateOperationsInput | $Enums.DocumentType
|
|
documentNumber?: StringFieldUpdateOperationsInput | string
|
|
issuingAuthority?: NullableStringFieldUpdateOperationsInput | string | null
|
|
issueDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
expiryDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
documentPath?: NullableStringFieldUpdateOperationsInput | string | null
|
|
isActive?: BoolFieldUpdateOperationsInput | boolean
|
|
licenseClasses?: NullableStringFieldUpdateOperationsInput | string | null
|
|
licenseIssueDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
contracts?: ContractUncheckedUpdateManyWithoutIdentityDocumentNestedInput
|
|
}
|
|
|
|
export type IdentityDocumentCreateManyInput = {
|
|
id?: number
|
|
customerId: number
|
|
type?: $Enums.DocumentType
|
|
documentNumber: string
|
|
issuingAuthority?: string | null
|
|
issueDate?: Date | string | null
|
|
expiryDate?: Date | string | null
|
|
documentPath?: string | null
|
|
isActive?: boolean
|
|
licenseClasses?: string | null
|
|
licenseIssueDate?: Date | string | null
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
}
|
|
|
|
export type IdentityDocumentUpdateManyMutationInput = {
|
|
type?: EnumDocumentTypeFieldUpdateOperationsInput | $Enums.DocumentType
|
|
documentNumber?: StringFieldUpdateOperationsInput | string
|
|
issuingAuthority?: NullableStringFieldUpdateOperationsInput | string | null
|
|
issueDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
expiryDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
documentPath?: NullableStringFieldUpdateOperationsInput | string | null
|
|
isActive?: BoolFieldUpdateOperationsInput | boolean
|
|
licenseClasses?: NullableStringFieldUpdateOperationsInput | string | null
|
|
licenseIssueDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
}
|
|
|
|
export type IdentityDocumentUncheckedUpdateManyInput = {
|
|
id?: IntFieldUpdateOperationsInput | number
|
|
customerId?: IntFieldUpdateOperationsInput | number
|
|
type?: EnumDocumentTypeFieldUpdateOperationsInput | $Enums.DocumentType
|
|
documentNumber?: StringFieldUpdateOperationsInput | string
|
|
issuingAuthority?: NullableStringFieldUpdateOperationsInput | string | null
|
|
issueDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
expiryDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
documentPath?: NullableStringFieldUpdateOperationsInput | string | null
|
|
isActive?: BoolFieldUpdateOperationsInput | boolean
|
|
licenseClasses?: NullableStringFieldUpdateOperationsInput | string | null
|
|
licenseIssueDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
}
|
|
|
|
export type EmailProviderConfigCreateInput = {
|
|
name: string
|
|
type: $Enums.EmailProviderType
|
|
apiUrl: string
|
|
apiKey?: string | null
|
|
username?: string | null
|
|
passwordEncrypted?: string | null
|
|
domain: string
|
|
defaultForwardEmail?: string | null
|
|
imapServer?: string | null
|
|
imapPort?: number | null
|
|
smtpServer?: string | null
|
|
smtpPort?: number | null
|
|
imapEncryption?: $Enums.MailEncryption
|
|
smtpEncryption?: $Enums.MailEncryption
|
|
allowSelfSignedCerts?: boolean
|
|
isActive?: boolean
|
|
isDefault?: boolean
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
}
|
|
|
|
export type EmailProviderConfigUncheckedCreateInput = {
|
|
id?: number
|
|
name: string
|
|
type: $Enums.EmailProviderType
|
|
apiUrl: string
|
|
apiKey?: string | null
|
|
username?: string | null
|
|
passwordEncrypted?: string | null
|
|
domain: string
|
|
defaultForwardEmail?: string | null
|
|
imapServer?: string | null
|
|
imapPort?: number | null
|
|
smtpServer?: string | null
|
|
smtpPort?: number | null
|
|
imapEncryption?: $Enums.MailEncryption
|
|
smtpEncryption?: $Enums.MailEncryption
|
|
allowSelfSignedCerts?: boolean
|
|
isActive?: boolean
|
|
isDefault?: boolean
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
}
|
|
|
|
export type EmailProviderConfigUpdateInput = {
|
|
name?: StringFieldUpdateOperationsInput | string
|
|
type?: EnumEmailProviderTypeFieldUpdateOperationsInput | $Enums.EmailProviderType
|
|
apiUrl?: StringFieldUpdateOperationsInput | string
|
|
apiKey?: NullableStringFieldUpdateOperationsInput | string | null
|
|
username?: NullableStringFieldUpdateOperationsInput | string | null
|
|
passwordEncrypted?: NullableStringFieldUpdateOperationsInput | string | null
|
|
domain?: StringFieldUpdateOperationsInput | string
|
|
defaultForwardEmail?: NullableStringFieldUpdateOperationsInput | string | null
|
|
imapServer?: NullableStringFieldUpdateOperationsInput | string | null
|
|
imapPort?: NullableIntFieldUpdateOperationsInput | number | null
|
|
smtpServer?: NullableStringFieldUpdateOperationsInput | string | null
|
|
smtpPort?: NullableIntFieldUpdateOperationsInput | number | null
|
|
imapEncryption?: EnumMailEncryptionFieldUpdateOperationsInput | $Enums.MailEncryption
|
|
smtpEncryption?: EnumMailEncryptionFieldUpdateOperationsInput | $Enums.MailEncryption
|
|
allowSelfSignedCerts?: BoolFieldUpdateOperationsInput | boolean
|
|
isActive?: BoolFieldUpdateOperationsInput | boolean
|
|
isDefault?: BoolFieldUpdateOperationsInput | boolean
|
|
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
}
|
|
|
|
export type EmailProviderConfigUncheckedUpdateInput = {
|
|
id?: IntFieldUpdateOperationsInput | number
|
|
name?: StringFieldUpdateOperationsInput | string
|
|
type?: EnumEmailProviderTypeFieldUpdateOperationsInput | $Enums.EmailProviderType
|
|
apiUrl?: StringFieldUpdateOperationsInput | string
|
|
apiKey?: NullableStringFieldUpdateOperationsInput | string | null
|
|
username?: NullableStringFieldUpdateOperationsInput | string | null
|
|
passwordEncrypted?: NullableStringFieldUpdateOperationsInput | string | null
|
|
domain?: StringFieldUpdateOperationsInput | string
|
|
defaultForwardEmail?: NullableStringFieldUpdateOperationsInput | string | null
|
|
imapServer?: NullableStringFieldUpdateOperationsInput | string | null
|
|
imapPort?: NullableIntFieldUpdateOperationsInput | number | null
|
|
smtpServer?: NullableStringFieldUpdateOperationsInput | string | null
|
|
smtpPort?: NullableIntFieldUpdateOperationsInput | number | null
|
|
imapEncryption?: EnumMailEncryptionFieldUpdateOperationsInput | $Enums.MailEncryption
|
|
smtpEncryption?: EnumMailEncryptionFieldUpdateOperationsInput | $Enums.MailEncryption
|
|
allowSelfSignedCerts?: BoolFieldUpdateOperationsInput | boolean
|
|
isActive?: BoolFieldUpdateOperationsInput | boolean
|
|
isDefault?: BoolFieldUpdateOperationsInput | boolean
|
|
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
}
|
|
|
|
export type EmailProviderConfigCreateManyInput = {
|
|
id?: number
|
|
name: string
|
|
type: $Enums.EmailProviderType
|
|
apiUrl: string
|
|
apiKey?: string | null
|
|
username?: string | null
|
|
passwordEncrypted?: string | null
|
|
domain: string
|
|
defaultForwardEmail?: string | null
|
|
imapServer?: string | null
|
|
imapPort?: number | null
|
|
smtpServer?: string | null
|
|
smtpPort?: number | null
|
|
imapEncryption?: $Enums.MailEncryption
|
|
smtpEncryption?: $Enums.MailEncryption
|
|
allowSelfSignedCerts?: boolean
|
|
isActive?: boolean
|
|
isDefault?: boolean
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
}
|
|
|
|
export type EmailProviderConfigUpdateManyMutationInput = {
|
|
name?: StringFieldUpdateOperationsInput | string
|
|
type?: EnumEmailProviderTypeFieldUpdateOperationsInput | $Enums.EmailProviderType
|
|
apiUrl?: StringFieldUpdateOperationsInput | string
|
|
apiKey?: NullableStringFieldUpdateOperationsInput | string | null
|
|
username?: NullableStringFieldUpdateOperationsInput | string | null
|
|
passwordEncrypted?: NullableStringFieldUpdateOperationsInput | string | null
|
|
domain?: StringFieldUpdateOperationsInput | string
|
|
defaultForwardEmail?: NullableStringFieldUpdateOperationsInput | string | null
|
|
imapServer?: NullableStringFieldUpdateOperationsInput | string | null
|
|
imapPort?: NullableIntFieldUpdateOperationsInput | number | null
|
|
smtpServer?: NullableStringFieldUpdateOperationsInput | string | null
|
|
smtpPort?: NullableIntFieldUpdateOperationsInput | number | null
|
|
imapEncryption?: EnumMailEncryptionFieldUpdateOperationsInput | $Enums.MailEncryption
|
|
smtpEncryption?: EnumMailEncryptionFieldUpdateOperationsInput | $Enums.MailEncryption
|
|
allowSelfSignedCerts?: BoolFieldUpdateOperationsInput | boolean
|
|
isActive?: BoolFieldUpdateOperationsInput | boolean
|
|
isDefault?: BoolFieldUpdateOperationsInput | boolean
|
|
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
}
|
|
|
|
export type EmailProviderConfigUncheckedUpdateManyInput = {
|
|
id?: IntFieldUpdateOperationsInput | number
|
|
name?: StringFieldUpdateOperationsInput | string
|
|
type?: EnumEmailProviderTypeFieldUpdateOperationsInput | $Enums.EmailProviderType
|
|
apiUrl?: StringFieldUpdateOperationsInput | string
|
|
apiKey?: NullableStringFieldUpdateOperationsInput | string | null
|
|
username?: NullableStringFieldUpdateOperationsInput | string | null
|
|
passwordEncrypted?: NullableStringFieldUpdateOperationsInput | string | null
|
|
domain?: StringFieldUpdateOperationsInput | string
|
|
defaultForwardEmail?: NullableStringFieldUpdateOperationsInput | string | null
|
|
imapServer?: NullableStringFieldUpdateOperationsInput | string | null
|
|
imapPort?: NullableIntFieldUpdateOperationsInput | number | null
|
|
smtpServer?: NullableStringFieldUpdateOperationsInput | string | null
|
|
smtpPort?: NullableIntFieldUpdateOperationsInput | number | null
|
|
imapEncryption?: EnumMailEncryptionFieldUpdateOperationsInput | $Enums.MailEncryption
|
|
smtpEncryption?: EnumMailEncryptionFieldUpdateOperationsInput | $Enums.MailEncryption
|
|
allowSelfSignedCerts?: BoolFieldUpdateOperationsInput | boolean
|
|
isActive?: BoolFieldUpdateOperationsInput | boolean
|
|
isDefault?: BoolFieldUpdateOperationsInput | boolean
|
|
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
}
|
|
|
|
export type StressfreiEmailCreateInput = {
|
|
email: string
|
|
platform?: string | null
|
|
notes?: string | null
|
|
isActive?: boolean
|
|
isProvisioned?: boolean
|
|
provisionedAt?: Date | string | null
|
|
provisionError?: string | null
|
|
hasMailbox?: boolean
|
|
emailPasswordEncrypted?: string | null
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
customer: CustomerCreateNestedOneWithoutStressfreiEmailsInput
|
|
contracts?: ContractCreateNestedManyWithoutStressfreiEmailInput
|
|
cachedEmails?: CachedEmailCreateNestedManyWithoutStressfreiEmailInput
|
|
}
|
|
|
|
export type StressfreiEmailUncheckedCreateInput = {
|
|
id?: number
|
|
customerId: number
|
|
email: string
|
|
platform?: string | null
|
|
notes?: string | null
|
|
isActive?: boolean
|
|
isProvisioned?: boolean
|
|
provisionedAt?: Date | string | null
|
|
provisionError?: string | null
|
|
hasMailbox?: boolean
|
|
emailPasswordEncrypted?: string | null
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
contracts?: ContractUncheckedCreateNestedManyWithoutStressfreiEmailInput
|
|
cachedEmails?: CachedEmailUncheckedCreateNestedManyWithoutStressfreiEmailInput
|
|
}
|
|
|
|
export type StressfreiEmailUpdateInput = {
|
|
email?: StringFieldUpdateOperationsInput | string
|
|
platform?: NullableStringFieldUpdateOperationsInput | string | null
|
|
notes?: NullableStringFieldUpdateOperationsInput | string | null
|
|
isActive?: BoolFieldUpdateOperationsInput | boolean
|
|
isProvisioned?: BoolFieldUpdateOperationsInput | boolean
|
|
provisionedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
provisionError?: NullableStringFieldUpdateOperationsInput | string | null
|
|
hasMailbox?: BoolFieldUpdateOperationsInput | boolean
|
|
emailPasswordEncrypted?: NullableStringFieldUpdateOperationsInput | string | null
|
|
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
customer?: CustomerUpdateOneRequiredWithoutStressfreiEmailsNestedInput
|
|
contracts?: ContractUpdateManyWithoutStressfreiEmailNestedInput
|
|
cachedEmails?: CachedEmailUpdateManyWithoutStressfreiEmailNestedInput
|
|
}
|
|
|
|
export type StressfreiEmailUncheckedUpdateInput = {
|
|
id?: IntFieldUpdateOperationsInput | number
|
|
customerId?: IntFieldUpdateOperationsInput | number
|
|
email?: StringFieldUpdateOperationsInput | string
|
|
platform?: NullableStringFieldUpdateOperationsInput | string | null
|
|
notes?: NullableStringFieldUpdateOperationsInput | string | null
|
|
isActive?: BoolFieldUpdateOperationsInput | boolean
|
|
isProvisioned?: BoolFieldUpdateOperationsInput | boolean
|
|
provisionedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
provisionError?: NullableStringFieldUpdateOperationsInput | string | null
|
|
hasMailbox?: BoolFieldUpdateOperationsInput | boolean
|
|
emailPasswordEncrypted?: NullableStringFieldUpdateOperationsInput | string | null
|
|
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
contracts?: ContractUncheckedUpdateManyWithoutStressfreiEmailNestedInput
|
|
cachedEmails?: CachedEmailUncheckedUpdateManyWithoutStressfreiEmailNestedInput
|
|
}
|
|
|
|
export type StressfreiEmailCreateManyInput = {
|
|
id?: number
|
|
customerId: number
|
|
email: string
|
|
platform?: string | null
|
|
notes?: string | null
|
|
isActive?: boolean
|
|
isProvisioned?: boolean
|
|
provisionedAt?: Date | string | null
|
|
provisionError?: string | null
|
|
hasMailbox?: boolean
|
|
emailPasswordEncrypted?: string | null
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
}
|
|
|
|
export type StressfreiEmailUpdateManyMutationInput = {
|
|
email?: StringFieldUpdateOperationsInput | string
|
|
platform?: NullableStringFieldUpdateOperationsInput | string | null
|
|
notes?: NullableStringFieldUpdateOperationsInput | string | null
|
|
isActive?: BoolFieldUpdateOperationsInput | boolean
|
|
isProvisioned?: BoolFieldUpdateOperationsInput | boolean
|
|
provisionedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
provisionError?: NullableStringFieldUpdateOperationsInput | string | null
|
|
hasMailbox?: BoolFieldUpdateOperationsInput | boolean
|
|
emailPasswordEncrypted?: NullableStringFieldUpdateOperationsInput | string | null
|
|
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
}
|
|
|
|
export type StressfreiEmailUncheckedUpdateManyInput = {
|
|
id?: IntFieldUpdateOperationsInput | number
|
|
customerId?: IntFieldUpdateOperationsInput | number
|
|
email?: StringFieldUpdateOperationsInput | string
|
|
platform?: NullableStringFieldUpdateOperationsInput | string | null
|
|
notes?: NullableStringFieldUpdateOperationsInput | string | null
|
|
isActive?: BoolFieldUpdateOperationsInput | boolean
|
|
isProvisioned?: BoolFieldUpdateOperationsInput | boolean
|
|
provisionedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
provisionError?: NullableStringFieldUpdateOperationsInput | string | null
|
|
hasMailbox?: BoolFieldUpdateOperationsInput | boolean
|
|
emailPasswordEncrypted?: NullableStringFieldUpdateOperationsInput | string | null
|
|
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
}
|
|
|
|
export type CachedEmailCreateInput = {
|
|
folder?: $Enums.EmailFolder
|
|
messageId: string
|
|
uid: number
|
|
subject?: string | null
|
|
fromAddress: string
|
|
fromName?: string | null
|
|
toAddresses: string
|
|
ccAddresses?: string | null
|
|
receivedAt: Date | string
|
|
textBody?: string | null
|
|
htmlBody?: string | null
|
|
hasAttachments?: boolean
|
|
attachmentNames?: string | null
|
|
assignedAt?: Date | string | null
|
|
assignedBy?: number | null
|
|
isAutoAssigned?: boolean
|
|
isRead?: boolean
|
|
isStarred?: boolean
|
|
isDeleted?: boolean
|
|
deletedAt?: Date | string | null
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
stressfreiEmail: StressfreiEmailCreateNestedOneWithoutCachedEmailsInput
|
|
contract?: ContractCreateNestedOneWithoutAssignedEmailsInput
|
|
}
|
|
|
|
export type CachedEmailUncheckedCreateInput = {
|
|
id?: number
|
|
stressfreiEmailId: number
|
|
folder?: $Enums.EmailFolder
|
|
messageId: string
|
|
uid: number
|
|
subject?: string | null
|
|
fromAddress: string
|
|
fromName?: string | null
|
|
toAddresses: string
|
|
ccAddresses?: string | null
|
|
receivedAt: Date | string
|
|
textBody?: string | null
|
|
htmlBody?: string | null
|
|
hasAttachments?: boolean
|
|
attachmentNames?: string | null
|
|
contractId?: number | null
|
|
assignedAt?: Date | string | null
|
|
assignedBy?: number | null
|
|
isAutoAssigned?: boolean
|
|
isRead?: boolean
|
|
isStarred?: boolean
|
|
isDeleted?: boolean
|
|
deletedAt?: Date | string | null
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
}
|
|
|
|
export type CachedEmailUpdateInput = {
|
|
folder?: EnumEmailFolderFieldUpdateOperationsInput | $Enums.EmailFolder
|
|
messageId?: StringFieldUpdateOperationsInput | string
|
|
uid?: IntFieldUpdateOperationsInput | number
|
|
subject?: NullableStringFieldUpdateOperationsInput | string | null
|
|
fromAddress?: StringFieldUpdateOperationsInput | string
|
|
fromName?: NullableStringFieldUpdateOperationsInput | string | null
|
|
toAddresses?: StringFieldUpdateOperationsInput | string
|
|
ccAddresses?: NullableStringFieldUpdateOperationsInput | string | null
|
|
receivedAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
textBody?: NullableStringFieldUpdateOperationsInput | string | null
|
|
htmlBody?: NullableStringFieldUpdateOperationsInput | string | null
|
|
hasAttachments?: BoolFieldUpdateOperationsInput | boolean
|
|
attachmentNames?: NullableStringFieldUpdateOperationsInput | string | null
|
|
assignedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
assignedBy?: NullableIntFieldUpdateOperationsInput | number | null
|
|
isAutoAssigned?: BoolFieldUpdateOperationsInput | boolean
|
|
isRead?: BoolFieldUpdateOperationsInput | boolean
|
|
isStarred?: BoolFieldUpdateOperationsInput | boolean
|
|
isDeleted?: BoolFieldUpdateOperationsInput | boolean
|
|
deletedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
stressfreiEmail?: StressfreiEmailUpdateOneRequiredWithoutCachedEmailsNestedInput
|
|
contract?: ContractUpdateOneWithoutAssignedEmailsNestedInput
|
|
}
|
|
|
|
export type CachedEmailUncheckedUpdateInput = {
|
|
id?: IntFieldUpdateOperationsInput | number
|
|
stressfreiEmailId?: IntFieldUpdateOperationsInput | number
|
|
folder?: EnumEmailFolderFieldUpdateOperationsInput | $Enums.EmailFolder
|
|
messageId?: StringFieldUpdateOperationsInput | string
|
|
uid?: IntFieldUpdateOperationsInput | number
|
|
subject?: NullableStringFieldUpdateOperationsInput | string | null
|
|
fromAddress?: StringFieldUpdateOperationsInput | string
|
|
fromName?: NullableStringFieldUpdateOperationsInput | string | null
|
|
toAddresses?: StringFieldUpdateOperationsInput | string
|
|
ccAddresses?: NullableStringFieldUpdateOperationsInput | string | null
|
|
receivedAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
textBody?: NullableStringFieldUpdateOperationsInput | string | null
|
|
htmlBody?: NullableStringFieldUpdateOperationsInput | string | null
|
|
hasAttachments?: BoolFieldUpdateOperationsInput | boolean
|
|
attachmentNames?: NullableStringFieldUpdateOperationsInput | string | null
|
|
contractId?: NullableIntFieldUpdateOperationsInput | number | null
|
|
assignedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
assignedBy?: NullableIntFieldUpdateOperationsInput | number | null
|
|
isAutoAssigned?: BoolFieldUpdateOperationsInput | boolean
|
|
isRead?: BoolFieldUpdateOperationsInput | boolean
|
|
isStarred?: BoolFieldUpdateOperationsInput | boolean
|
|
isDeleted?: BoolFieldUpdateOperationsInput | boolean
|
|
deletedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
}
|
|
|
|
export type CachedEmailCreateManyInput = {
|
|
id?: number
|
|
stressfreiEmailId: number
|
|
folder?: $Enums.EmailFolder
|
|
messageId: string
|
|
uid: number
|
|
subject?: string | null
|
|
fromAddress: string
|
|
fromName?: string | null
|
|
toAddresses: string
|
|
ccAddresses?: string | null
|
|
receivedAt: Date | string
|
|
textBody?: string | null
|
|
htmlBody?: string | null
|
|
hasAttachments?: boolean
|
|
attachmentNames?: string | null
|
|
contractId?: number | null
|
|
assignedAt?: Date | string | null
|
|
assignedBy?: number | null
|
|
isAutoAssigned?: boolean
|
|
isRead?: boolean
|
|
isStarred?: boolean
|
|
isDeleted?: boolean
|
|
deletedAt?: Date | string | null
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
}
|
|
|
|
export type CachedEmailUpdateManyMutationInput = {
|
|
folder?: EnumEmailFolderFieldUpdateOperationsInput | $Enums.EmailFolder
|
|
messageId?: StringFieldUpdateOperationsInput | string
|
|
uid?: IntFieldUpdateOperationsInput | number
|
|
subject?: NullableStringFieldUpdateOperationsInput | string | null
|
|
fromAddress?: StringFieldUpdateOperationsInput | string
|
|
fromName?: NullableStringFieldUpdateOperationsInput | string | null
|
|
toAddresses?: StringFieldUpdateOperationsInput | string
|
|
ccAddresses?: NullableStringFieldUpdateOperationsInput | string | null
|
|
receivedAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
textBody?: NullableStringFieldUpdateOperationsInput | string | null
|
|
htmlBody?: NullableStringFieldUpdateOperationsInput | string | null
|
|
hasAttachments?: BoolFieldUpdateOperationsInput | boolean
|
|
attachmentNames?: NullableStringFieldUpdateOperationsInput | string | null
|
|
assignedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
assignedBy?: NullableIntFieldUpdateOperationsInput | number | null
|
|
isAutoAssigned?: BoolFieldUpdateOperationsInput | boolean
|
|
isRead?: BoolFieldUpdateOperationsInput | boolean
|
|
isStarred?: BoolFieldUpdateOperationsInput | boolean
|
|
isDeleted?: BoolFieldUpdateOperationsInput | boolean
|
|
deletedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
}
|
|
|
|
export type CachedEmailUncheckedUpdateManyInput = {
|
|
id?: IntFieldUpdateOperationsInput | number
|
|
stressfreiEmailId?: IntFieldUpdateOperationsInput | number
|
|
folder?: EnumEmailFolderFieldUpdateOperationsInput | $Enums.EmailFolder
|
|
messageId?: StringFieldUpdateOperationsInput | string
|
|
uid?: IntFieldUpdateOperationsInput | number
|
|
subject?: NullableStringFieldUpdateOperationsInput | string | null
|
|
fromAddress?: StringFieldUpdateOperationsInput | string
|
|
fromName?: NullableStringFieldUpdateOperationsInput | string | null
|
|
toAddresses?: StringFieldUpdateOperationsInput | string
|
|
ccAddresses?: NullableStringFieldUpdateOperationsInput | string | null
|
|
receivedAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
textBody?: NullableStringFieldUpdateOperationsInput | string | null
|
|
htmlBody?: NullableStringFieldUpdateOperationsInput | string | null
|
|
hasAttachments?: BoolFieldUpdateOperationsInput | boolean
|
|
attachmentNames?: NullableStringFieldUpdateOperationsInput | string | null
|
|
contractId?: NullableIntFieldUpdateOperationsInput | number | null
|
|
assignedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
assignedBy?: NullableIntFieldUpdateOperationsInput | number | null
|
|
isAutoAssigned?: BoolFieldUpdateOperationsInput | boolean
|
|
isRead?: BoolFieldUpdateOperationsInput | boolean
|
|
isStarred?: BoolFieldUpdateOperationsInput | boolean
|
|
isDeleted?: BoolFieldUpdateOperationsInput | boolean
|
|
deletedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
}
|
|
|
|
export type MeterCreateInput = {
|
|
meterNumber: string
|
|
type: $Enums.MeterType
|
|
location?: string | null
|
|
isActive?: boolean
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
customer: CustomerCreateNestedOneWithoutMetersInput
|
|
readings?: MeterReadingCreateNestedManyWithoutMeterInput
|
|
energyDetails?: EnergyContractDetailsCreateNestedManyWithoutMeterInput
|
|
}
|
|
|
|
export type MeterUncheckedCreateInput = {
|
|
id?: number
|
|
customerId: number
|
|
meterNumber: string
|
|
type: $Enums.MeterType
|
|
location?: string | null
|
|
isActive?: boolean
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
readings?: MeterReadingUncheckedCreateNestedManyWithoutMeterInput
|
|
energyDetails?: EnergyContractDetailsUncheckedCreateNestedManyWithoutMeterInput
|
|
}
|
|
|
|
export type MeterUpdateInput = {
|
|
meterNumber?: StringFieldUpdateOperationsInput | string
|
|
type?: EnumMeterTypeFieldUpdateOperationsInput | $Enums.MeterType
|
|
location?: NullableStringFieldUpdateOperationsInput | string | null
|
|
isActive?: BoolFieldUpdateOperationsInput | boolean
|
|
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
customer?: CustomerUpdateOneRequiredWithoutMetersNestedInput
|
|
readings?: MeterReadingUpdateManyWithoutMeterNestedInput
|
|
energyDetails?: EnergyContractDetailsUpdateManyWithoutMeterNestedInput
|
|
}
|
|
|
|
export type MeterUncheckedUpdateInput = {
|
|
id?: IntFieldUpdateOperationsInput | number
|
|
customerId?: IntFieldUpdateOperationsInput | number
|
|
meterNumber?: StringFieldUpdateOperationsInput | string
|
|
type?: EnumMeterTypeFieldUpdateOperationsInput | $Enums.MeterType
|
|
location?: NullableStringFieldUpdateOperationsInput | string | null
|
|
isActive?: BoolFieldUpdateOperationsInput | boolean
|
|
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
readings?: MeterReadingUncheckedUpdateManyWithoutMeterNestedInput
|
|
energyDetails?: EnergyContractDetailsUncheckedUpdateManyWithoutMeterNestedInput
|
|
}
|
|
|
|
export type MeterCreateManyInput = {
|
|
id?: number
|
|
customerId: number
|
|
meterNumber: string
|
|
type: $Enums.MeterType
|
|
location?: string | null
|
|
isActive?: boolean
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
}
|
|
|
|
export type MeterUpdateManyMutationInput = {
|
|
meterNumber?: StringFieldUpdateOperationsInput | string
|
|
type?: EnumMeterTypeFieldUpdateOperationsInput | $Enums.MeterType
|
|
location?: NullableStringFieldUpdateOperationsInput | string | null
|
|
isActive?: BoolFieldUpdateOperationsInput | boolean
|
|
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
}
|
|
|
|
export type MeterUncheckedUpdateManyInput = {
|
|
id?: IntFieldUpdateOperationsInput | number
|
|
customerId?: IntFieldUpdateOperationsInput | number
|
|
meterNumber?: StringFieldUpdateOperationsInput | string
|
|
type?: EnumMeterTypeFieldUpdateOperationsInput | $Enums.MeterType
|
|
location?: NullableStringFieldUpdateOperationsInput | string | null
|
|
isActive?: BoolFieldUpdateOperationsInput | boolean
|
|
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
}
|
|
|
|
export type MeterReadingCreateInput = {
|
|
readingDate: Date | string
|
|
value: number
|
|
unit?: string
|
|
notes?: string | null
|
|
createdAt?: Date | string
|
|
meter: MeterCreateNestedOneWithoutReadingsInput
|
|
}
|
|
|
|
export type MeterReadingUncheckedCreateInput = {
|
|
id?: number
|
|
meterId: number
|
|
readingDate: Date | string
|
|
value: number
|
|
unit?: string
|
|
notes?: string | null
|
|
createdAt?: Date | string
|
|
}
|
|
|
|
export type MeterReadingUpdateInput = {
|
|
readingDate?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
value?: FloatFieldUpdateOperationsInput | number
|
|
unit?: StringFieldUpdateOperationsInput | string
|
|
notes?: NullableStringFieldUpdateOperationsInput | string | null
|
|
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
meter?: MeterUpdateOneRequiredWithoutReadingsNestedInput
|
|
}
|
|
|
|
export type MeterReadingUncheckedUpdateInput = {
|
|
id?: IntFieldUpdateOperationsInput | number
|
|
meterId?: IntFieldUpdateOperationsInput | number
|
|
readingDate?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
value?: FloatFieldUpdateOperationsInput | number
|
|
unit?: StringFieldUpdateOperationsInput | string
|
|
notes?: NullableStringFieldUpdateOperationsInput | string | null
|
|
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
}
|
|
|
|
export type MeterReadingCreateManyInput = {
|
|
id?: number
|
|
meterId: number
|
|
readingDate: Date | string
|
|
value: number
|
|
unit?: string
|
|
notes?: string | null
|
|
createdAt?: Date | string
|
|
}
|
|
|
|
export type MeterReadingUpdateManyMutationInput = {
|
|
readingDate?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
value?: FloatFieldUpdateOperationsInput | number
|
|
unit?: StringFieldUpdateOperationsInput | string
|
|
notes?: NullableStringFieldUpdateOperationsInput | string | null
|
|
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
}
|
|
|
|
export type MeterReadingUncheckedUpdateManyInput = {
|
|
id?: IntFieldUpdateOperationsInput | number
|
|
meterId?: IntFieldUpdateOperationsInput | number
|
|
readingDate?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
value?: FloatFieldUpdateOperationsInput | number
|
|
unit?: StringFieldUpdateOperationsInput | string
|
|
notes?: NullableStringFieldUpdateOperationsInput | string | null
|
|
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
}
|
|
|
|
export type SalesPlatformCreateInput = {
|
|
name: string
|
|
contactInfo?: string | null
|
|
isActive?: boolean
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
contracts?: ContractCreateNestedManyWithoutSalesPlatformInput
|
|
}
|
|
|
|
export type SalesPlatformUncheckedCreateInput = {
|
|
id?: number
|
|
name: string
|
|
contactInfo?: string | null
|
|
isActive?: boolean
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
contracts?: ContractUncheckedCreateNestedManyWithoutSalesPlatformInput
|
|
}
|
|
|
|
export type SalesPlatformUpdateInput = {
|
|
name?: StringFieldUpdateOperationsInput | string
|
|
contactInfo?: NullableStringFieldUpdateOperationsInput | string | null
|
|
isActive?: BoolFieldUpdateOperationsInput | boolean
|
|
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
contracts?: ContractUpdateManyWithoutSalesPlatformNestedInput
|
|
}
|
|
|
|
export type SalesPlatformUncheckedUpdateInput = {
|
|
id?: IntFieldUpdateOperationsInput | number
|
|
name?: StringFieldUpdateOperationsInput | string
|
|
contactInfo?: NullableStringFieldUpdateOperationsInput | string | null
|
|
isActive?: BoolFieldUpdateOperationsInput | boolean
|
|
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
contracts?: ContractUncheckedUpdateManyWithoutSalesPlatformNestedInput
|
|
}
|
|
|
|
export type SalesPlatformCreateManyInput = {
|
|
id?: number
|
|
name: string
|
|
contactInfo?: string | null
|
|
isActive?: boolean
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
}
|
|
|
|
export type SalesPlatformUpdateManyMutationInput = {
|
|
name?: StringFieldUpdateOperationsInput | string
|
|
contactInfo?: NullableStringFieldUpdateOperationsInput | string | null
|
|
isActive?: BoolFieldUpdateOperationsInput | boolean
|
|
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
}
|
|
|
|
export type SalesPlatformUncheckedUpdateManyInput = {
|
|
id?: IntFieldUpdateOperationsInput | number
|
|
name?: StringFieldUpdateOperationsInput | string
|
|
contactInfo?: NullableStringFieldUpdateOperationsInput | string | null
|
|
isActive?: BoolFieldUpdateOperationsInput | boolean
|
|
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
}
|
|
|
|
export type CancellationPeriodCreateInput = {
|
|
code: string
|
|
description: string
|
|
isActive?: boolean
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
contracts?: ContractCreateNestedManyWithoutCancellationPeriodInput
|
|
}
|
|
|
|
export type CancellationPeriodUncheckedCreateInput = {
|
|
id?: number
|
|
code: string
|
|
description: string
|
|
isActive?: boolean
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
contracts?: ContractUncheckedCreateNestedManyWithoutCancellationPeriodInput
|
|
}
|
|
|
|
export type CancellationPeriodUpdateInput = {
|
|
code?: StringFieldUpdateOperationsInput | string
|
|
description?: StringFieldUpdateOperationsInput | string
|
|
isActive?: BoolFieldUpdateOperationsInput | boolean
|
|
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
contracts?: ContractUpdateManyWithoutCancellationPeriodNestedInput
|
|
}
|
|
|
|
export type CancellationPeriodUncheckedUpdateInput = {
|
|
id?: IntFieldUpdateOperationsInput | number
|
|
code?: StringFieldUpdateOperationsInput | string
|
|
description?: StringFieldUpdateOperationsInput | string
|
|
isActive?: BoolFieldUpdateOperationsInput | boolean
|
|
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
contracts?: ContractUncheckedUpdateManyWithoutCancellationPeriodNestedInput
|
|
}
|
|
|
|
export type CancellationPeriodCreateManyInput = {
|
|
id?: number
|
|
code: string
|
|
description: string
|
|
isActive?: boolean
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
}
|
|
|
|
export type CancellationPeriodUpdateManyMutationInput = {
|
|
code?: StringFieldUpdateOperationsInput | string
|
|
description?: StringFieldUpdateOperationsInput | string
|
|
isActive?: BoolFieldUpdateOperationsInput | boolean
|
|
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
}
|
|
|
|
export type CancellationPeriodUncheckedUpdateManyInput = {
|
|
id?: IntFieldUpdateOperationsInput | number
|
|
code?: StringFieldUpdateOperationsInput | string
|
|
description?: StringFieldUpdateOperationsInput | string
|
|
isActive?: BoolFieldUpdateOperationsInput | boolean
|
|
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
}
|
|
|
|
export type ContractDurationCreateInput = {
|
|
code: string
|
|
description: string
|
|
isActive?: boolean
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
contracts?: ContractCreateNestedManyWithoutContractDurationInput
|
|
}
|
|
|
|
export type ContractDurationUncheckedCreateInput = {
|
|
id?: number
|
|
code: string
|
|
description: string
|
|
isActive?: boolean
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
contracts?: ContractUncheckedCreateNestedManyWithoutContractDurationInput
|
|
}
|
|
|
|
export type ContractDurationUpdateInput = {
|
|
code?: StringFieldUpdateOperationsInput | string
|
|
description?: StringFieldUpdateOperationsInput | string
|
|
isActive?: BoolFieldUpdateOperationsInput | boolean
|
|
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
contracts?: ContractUpdateManyWithoutContractDurationNestedInput
|
|
}
|
|
|
|
export type ContractDurationUncheckedUpdateInput = {
|
|
id?: IntFieldUpdateOperationsInput | number
|
|
code?: StringFieldUpdateOperationsInput | string
|
|
description?: StringFieldUpdateOperationsInput | string
|
|
isActive?: BoolFieldUpdateOperationsInput | boolean
|
|
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
contracts?: ContractUncheckedUpdateManyWithoutContractDurationNestedInput
|
|
}
|
|
|
|
export type ContractDurationCreateManyInput = {
|
|
id?: number
|
|
code: string
|
|
description: string
|
|
isActive?: boolean
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
}
|
|
|
|
export type ContractDurationUpdateManyMutationInput = {
|
|
code?: StringFieldUpdateOperationsInput | string
|
|
description?: StringFieldUpdateOperationsInput | string
|
|
isActive?: BoolFieldUpdateOperationsInput | boolean
|
|
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
}
|
|
|
|
export type ContractDurationUncheckedUpdateManyInput = {
|
|
id?: IntFieldUpdateOperationsInput | number
|
|
code?: StringFieldUpdateOperationsInput | string
|
|
description?: StringFieldUpdateOperationsInput | string
|
|
isActive?: BoolFieldUpdateOperationsInput | boolean
|
|
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
}
|
|
|
|
export type ProviderCreateInput = {
|
|
name: string
|
|
portalUrl?: string | null
|
|
usernameFieldName?: string | null
|
|
passwordFieldName?: string | null
|
|
isActive?: boolean
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
tariffs?: TariffCreateNestedManyWithoutProviderInput
|
|
contracts?: ContractCreateNestedManyWithoutProviderInput
|
|
}
|
|
|
|
export type ProviderUncheckedCreateInput = {
|
|
id?: number
|
|
name: string
|
|
portalUrl?: string | null
|
|
usernameFieldName?: string | null
|
|
passwordFieldName?: string | null
|
|
isActive?: boolean
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
tariffs?: TariffUncheckedCreateNestedManyWithoutProviderInput
|
|
contracts?: ContractUncheckedCreateNestedManyWithoutProviderInput
|
|
}
|
|
|
|
export type ProviderUpdateInput = {
|
|
name?: StringFieldUpdateOperationsInput | string
|
|
portalUrl?: NullableStringFieldUpdateOperationsInput | string | null
|
|
usernameFieldName?: NullableStringFieldUpdateOperationsInput | string | null
|
|
passwordFieldName?: NullableStringFieldUpdateOperationsInput | string | null
|
|
isActive?: BoolFieldUpdateOperationsInput | boolean
|
|
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
tariffs?: TariffUpdateManyWithoutProviderNestedInput
|
|
contracts?: ContractUpdateManyWithoutProviderNestedInput
|
|
}
|
|
|
|
export type ProviderUncheckedUpdateInput = {
|
|
id?: IntFieldUpdateOperationsInput | number
|
|
name?: StringFieldUpdateOperationsInput | string
|
|
portalUrl?: NullableStringFieldUpdateOperationsInput | string | null
|
|
usernameFieldName?: NullableStringFieldUpdateOperationsInput | string | null
|
|
passwordFieldName?: NullableStringFieldUpdateOperationsInput | string | null
|
|
isActive?: BoolFieldUpdateOperationsInput | boolean
|
|
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
tariffs?: TariffUncheckedUpdateManyWithoutProviderNestedInput
|
|
contracts?: ContractUncheckedUpdateManyWithoutProviderNestedInput
|
|
}
|
|
|
|
export type ProviderCreateManyInput = {
|
|
id?: number
|
|
name: string
|
|
portalUrl?: string | null
|
|
usernameFieldName?: string | null
|
|
passwordFieldName?: string | null
|
|
isActive?: boolean
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
}
|
|
|
|
export type ProviderUpdateManyMutationInput = {
|
|
name?: StringFieldUpdateOperationsInput | string
|
|
portalUrl?: NullableStringFieldUpdateOperationsInput | string | null
|
|
usernameFieldName?: NullableStringFieldUpdateOperationsInput | string | null
|
|
passwordFieldName?: NullableStringFieldUpdateOperationsInput | string | null
|
|
isActive?: BoolFieldUpdateOperationsInput | boolean
|
|
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
}
|
|
|
|
export type ProviderUncheckedUpdateManyInput = {
|
|
id?: IntFieldUpdateOperationsInput | number
|
|
name?: StringFieldUpdateOperationsInput | string
|
|
portalUrl?: NullableStringFieldUpdateOperationsInput | string | null
|
|
usernameFieldName?: NullableStringFieldUpdateOperationsInput | string | null
|
|
passwordFieldName?: NullableStringFieldUpdateOperationsInput | string | null
|
|
isActive?: BoolFieldUpdateOperationsInput | boolean
|
|
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
}
|
|
|
|
export type TariffCreateInput = {
|
|
name: string
|
|
isActive?: boolean
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
provider: ProviderCreateNestedOneWithoutTariffsInput
|
|
contracts?: ContractCreateNestedManyWithoutTariffInput
|
|
}
|
|
|
|
export type TariffUncheckedCreateInput = {
|
|
id?: number
|
|
providerId: number
|
|
name: string
|
|
isActive?: boolean
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
contracts?: ContractUncheckedCreateNestedManyWithoutTariffInput
|
|
}
|
|
|
|
export type TariffUpdateInput = {
|
|
name?: StringFieldUpdateOperationsInput | string
|
|
isActive?: BoolFieldUpdateOperationsInput | boolean
|
|
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
provider?: ProviderUpdateOneRequiredWithoutTariffsNestedInput
|
|
contracts?: ContractUpdateManyWithoutTariffNestedInput
|
|
}
|
|
|
|
export type TariffUncheckedUpdateInput = {
|
|
id?: IntFieldUpdateOperationsInput | number
|
|
providerId?: IntFieldUpdateOperationsInput | number
|
|
name?: StringFieldUpdateOperationsInput | string
|
|
isActive?: BoolFieldUpdateOperationsInput | boolean
|
|
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
contracts?: ContractUncheckedUpdateManyWithoutTariffNestedInput
|
|
}
|
|
|
|
export type TariffCreateManyInput = {
|
|
id?: number
|
|
providerId: number
|
|
name: string
|
|
isActive?: boolean
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
}
|
|
|
|
export type TariffUpdateManyMutationInput = {
|
|
name?: StringFieldUpdateOperationsInput | string
|
|
isActive?: BoolFieldUpdateOperationsInput | boolean
|
|
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
}
|
|
|
|
export type TariffUncheckedUpdateManyInput = {
|
|
id?: IntFieldUpdateOperationsInput | number
|
|
providerId?: IntFieldUpdateOperationsInput | number
|
|
name?: StringFieldUpdateOperationsInput | string
|
|
isActive?: BoolFieldUpdateOperationsInput | boolean
|
|
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
}
|
|
|
|
export type ContractCategoryCreateInput = {
|
|
code: string
|
|
name: string
|
|
icon?: string | null
|
|
color?: string | null
|
|
sortOrder?: number
|
|
isActive?: boolean
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
contracts?: ContractCreateNestedManyWithoutContractCategoryInput
|
|
}
|
|
|
|
export type ContractCategoryUncheckedCreateInput = {
|
|
id?: number
|
|
code: string
|
|
name: string
|
|
icon?: string | null
|
|
color?: string | null
|
|
sortOrder?: number
|
|
isActive?: boolean
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
contracts?: ContractUncheckedCreateNestedManyWithoutContractCategoryInput
|
|
}
|
|
|
|
export type ContractCategoryUpdateInput = {
|
|
code?: StringFieldUpdateOperationsInput | string
|
|
name?: StringFieldUpdateOperationsInput | string
|
|
icon?: NullableStringFieldUpdateOperationsInput | string | null
|
|
color?: NullableStringFieldUpdateOperationsInput | string | null
|
|
sortOrder?: IntFieldUpdateOperationsInput | number
|
|
isActive?: BoolFieldUpdateOperationsInput | boolean
|
|
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
contracts?: ContractUpdateManyWithoutContractCategoryNestedInput
|
|
}
|
|
|
|
export type ContractCategoryUncheckedUpdateInput = {
|
|
id?: IntFieldUpdateOperationsInput | number
|
|
code?: StringFieldUpdateOperationsInput | string
|
|
name?: StringFieldUpdateOperationsInput | string
|
|
icon?: NullableStringFieldUpdateOperationsInput | string | null
|
|
color?: NullableStringFieldUpdateOperationsInput | string | null
|
|
sortOrder?: IntFieldUpdateOperationsInput | number
|
|
isActive?: BoolFieldUpdateOperationsInput | boolean
|
|
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
contracts?: ContractUncheckedUpdateManyWithoutContractCategoryNestedInput
|
|
}
|
|
|
|
export type ContractCategoryCreateManyInput = {
|
|
id?: number
|
|
code: string
|
|
name: string
|
|
icon?: string | null
|
|
color?: string | null
|
|
sortOrder?: number
|
|
isActive?: boolean
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
}
|
|
|
|
export type ContractCategoryUpdateManyMutationInput = {
|
|
code?: StringFieldUpdateOperationsInput | string
|
|
name?: StringFieldUpdateOperationsInput | string
|
|
icon?: NullableStringFieldUpdateOperationsInput | string | null
|
|
color?: NullableStringFieldUpdateOperationsInput | string | null
|
|
sortOrder?: IntFieldUpdateOperationsInput | number
|
|
isActive?: BoolFieldUpdateOperationsInput | boolean
|
|
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
}
|
|
|
|
export type ContractCategoryUncheckedUpdateManyInput = {
|
|
id?: IntFieldUpdateOperationsInput | number
|
|
code?: StringFieldUpdateOperationsInput | string
|
|
name?: StringFieldUpdateOperationsInput | string
|
|
icon?: NullableStringFieldUpdateOperationsInput | string | null
|
|
color?: NullableStringFieldUpdateOperationsInput | string | null
|
|
sortOrder?: IntFieldUpdateOperationsInput | number
|
|
isActive?: BoolFieldUpdateOperationsInput | boolean
|
|
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
}
|
|
|
|
export type ContractCreateInput = {
|
|
contractNumber: string
|
|
type: $Enums.ContractType
|
|
status?: $Enums.ContractStatus
|
|
providerName?: string | null
|
|
tariffName?: string | null
|
|
customerNumberAtProvider?: string | null
|
|
priceFirst12Months?: string | null
|
|
priceFrom13Months?: string | null
|
|
priceAfter24Months?: string | null
|
|
startDate?: Date | string | null
|
|
endDate?: Date | string | null
|
|
commission?: number | null
|
|
cancellationLetterPath?: string | null
|
|
cancellationConfirmationPath?: string | null
|
|
cancellationLetterOptionsPath?: string | null
|
|
cancellationConfirmationOptionsPath?: string | null
|
|
cancellationConfirmationDate?: Date | string | null
|
|
cancellationConfirmationOptionsDate?: Date | string | null
|
|
wasSpecialCancellation?: boolean
|
|
portalUsername?: string | null
|
|
portalPasswordEncrypted?: string | null
|
|
notes?: string | null
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
customer: CustomerCreateNestedOneWithoutContractsInput
|
|
contractCategory?: ContractCategoryCreateNestedOneWithoutContractsInput
|
|
address?: AddressCreateNestedOneWithoutContractsAsDeliveryInput
|
|
billingAddress?: AddressCreateNestedOneWithoutContractsAsBillingInput
|
|
bankCard?: BankCardCreateNestedOneWithoutContractsInput
|
|
identityDocument?: IdentityDocumentCreateNestedOneWithoutContractsInput
|
|
salesPlatform?: SalesPlatformCreateNestedOneWithoutContractsInput
|
|
cancellationPeriod?: CancellationPeriodCreateNestedOneWithoutContractsInput
|
|
contractDuration?: ContractDurationCreateNestedOneWithoutContractsInput
|
|
previousContract?: ContractCreateNestedOneWithoutFollowUpContractInput
|
|
followUpContract?: ContractCreateNestedOneWithoutPreviousContractInput
|
|
provider?: ProviderCreateNestedOneWithoutContractsInput
|
|
tariff?: TariffCreateNestedOneWithoutContractsInput
|
|
stressfreiEmail?: StressfreiEmailCreateNestedOneWithoutContractsInput
|
|
energyDetails?: EnergyContractDetailsCreateNestedOneWithoutContractInput
|
|
internetDetails?: InternetContractDetailsCreateNestedOneWithoutContractInput
|
|
mobileDetails?: MobileContractDetailsCreateNestedOneWithoutContractInput
|
|
tvDetails?: TvContractDetailsCreateNestedOneWithoutContractInput
|
|
carInsuranceDetails?: CarInsuranceDetailsCreateNestedOneWithoutContractInput
|
|
tasks?: ContractTaskCreateNestedManyWithoutContractInput
|
|
assignedEmails?: CachedEmailCreateNestedManyWithoutContractInput
|
|
}
|
|
|
|
export type ContractUncheckedCreateInput = {
|
|
id?: number
|
|
contractNumber: string
|
|
customerId: number
|
|
type: $Enums.ContractType
|
|
status?: $Enums.ContractStatus
|
|
contractCategoryId?: number | null
|
|
addressId?: number | null
|
|
billingAddressId?: number | null
|
|
bankCardId?: number | null
|
|
identityDocumentId?: number | null
|
|
salesPlatformId?: number | null
|
|
cancellationPeriodId?: number | null
|
|
contractDurationId?: number | null
|
|
previousContractId?: number | null
|
|
providerId?: number | null
|
|
tariffId?: number | null
|
|
providerName?: string | null
|
|
tariffName?: string | null
|
|
customerNumberAtProvider?: string | null
|
|
priceFirst12Months?: string | null
|
|
priceFrom13Months?: string | null
|
|
priceAfter24Months?: string | null
|
|
startDate?: Date | string | null
|
|
endDate?: Date | string | null
|
|
commission?: number | null
|
|
cancellationLetterPath?: string | null
|
|
cancellationConfirmationPath?: string | null
|
|
cancellationLetterOptionsPath?: string | null
|
|
cancellationConfirmationOptionsPath?: string | null
|
|
cancellationConfirmationDate?: Date | string | null
|
|
cancellationConfirmationOptionsDate?: Date | string | null
|
|
wasSpecialCancellation?: boolean
|
|
portalUsername?: string | null
|
|
portalPasswordEncrypted?: string | null
|
|
stressfreiEmailId?: number | null
|
|
notes?: string | null
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
followUpContract?: ContractUncheckedCreateNestedOneWithoutPreviousContractInput
|
|
energyDetails?: EnergyContractDetailsUncheckedCreateNestedOneWithoutContractInput
|
|
internetDetails?: InternetContractDetailsUncheckedCreateNestedOneWithoutContractInput
|
|
mobileDetails?: MobileContractDetailsUncheckedCreateNestedOneWithoutContractInput
|
|
tvDetails?: TvContractDetailsUncheckedCreateNestedOneWithoutContractInput
|
|
carInsuranceDetails?: CarInsuranceDetailsUncheckedCreateNestedOneWithoutContractInput
|
|
tasks?: ContractTaskUncheckedCreateNestedManyWithoutContractInput
|
|
assignedEmails?: CachedEmailUncheckedCreateNestedManyWithoutContractInput
|
|
}
|
|
|
|
export type ContractUpdateInput = {
|
|
contractNumber?: StringFieldUpdateOperationsInput | string
|
|
type?: EnumContractTypeFieldUpdateOperationsInput | $Enums.ContractType
|
|
status?: EnumContractStatusFieldUpdateOperationsInput | $Enums.ContractStatus
|
|
providerName?: NullableStringFieldUpdateOperationsInput | string | null
|
|
tariffName?: NullableStringFieldUpdateOperationsInput | string | null
|
|
customerNumberAtProvider?: NullableStringFieldUpdateOperationsInput | string | null
|
|
priceFirst12Months?: NullableStringFieldUpdateOperationsInput | string | null
|
|
priceFrom13Months?: NullableStringFieldUpdateOperationsInput | string | null
|
|
priceAfter24Months?: NullableStringFieldUpdateOperationsInput | string | null
|
|
startDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
endDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
commission?: NullableFloatFieldUpdateOperationsInput | number | null
|
|
cancellationLetterPath?: NullableStringFieldUpdateOperationsInput | string | null
|
|
cancellationConfirmationPath?: NullableStringFieldUpdateOperationsInput | string | null
|
|
cancellationLetterOptionsPath?: NullableStringFieldUpdateOperationsInput | string | null
|
|
cancellationConfirmationOptionsPath?: NullableStringFieldUpdateOperationsInput | string | null
|
|
cancellationConfirmationDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
cancellationConfirmationOptionsDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
wasSpecialCancellation?: BoolFieldUpdateOperationsInput | boolean
|
|
portalUsername?: NullableStringFieldUpdateOperationsInput | string | null
|
|
portalPasswordEncrypted?: NullableStringFieldUpdateOperationsInput | string | null
|
|
notes?: NullableStringFieldUpdateOperationsInput | string | null
|
|
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
customer?: CustomerUpdateOneRequiredWithoutContractsNestedInput
|
|
contractCategory?: ContractCategoryUpdateOneWithoutContractsNestedInput
|
|
address?: AddressUpdateOneWithoutContractsAsDeliveryNestedInput
|
|
billingAddress?: AddressUpdateOneWithoutContractsAsBillingNestedInput
|
|
bankCard?: BankCardUpdateOneWithoutContractsNestedInput
|
|
identityDocument?: IdentityDocumentUpdateOneWithoutContractsNestedInput
|
|
salesPlatform?: SalesPlatformUpdateOneWithoutContractsNestedInput
|
|
cancellationPeriod?: CancellationPeriodUpdateOneWithoutContractsNestedInput
|
|
contractDuration?: ContractDurationUpdateOneWithoutContractsNestedInput
|
|
previousContract?: ContractUpdateOneWithoutFollowUpContractNestedInput
|
|
followUpContract?: ContractUpdateOneWithoutPreviousContractNestedInput
|
|
provider?: ProviderUpdateOneWithoutContractsNestedInput
|
|
tariff?: TariffUpdateOneWithoutContractsNestedInput
|
|
stressfreiEmail?: StressfreiEmailUpdateOneWithoutContractsNestedInput
|
|
energyDetails?: EnergyContractDetailsUpdateOneWithoutContractNestedInput
|
|
internetDetails?: InternetContractDetailsUpdateOneWithoutContractNestedInput
|
|
mobileDetails?: MobileContractDetailsUpdateOneWithoutContractNestedInput
|
|
tvDetails?: TvContractDetailsUpdateOneWithoutContractNestedInput
|
|
carInsuranceDetails?: CarInsuranceDetailsUpdateOneWithoutContractNestedInput
|
|
tasks?: ContractTaskUpdateManyWithoutContractNestedInput
|
|
assignedEmails?: CachedEmailUpdateManyWithoutContractNestedInput
|
|
}
|
|
|
|
export type ContractUncheckedUpdateInput = {
|
|
id?: IntFieldUpdateOperationsInput | number
|
|
contractNumber?: StringFieldUpdateOperationsInput | string
|
|
customerId?: IntFieldUpdateOperationsInput | number
|
|
type?: EnumContractTypeFieldUpdateOperationsInput | $Enums.ContractType
|
|
status?: EnumContractStatusFieldUpdateOperationsInput | $Enums.ContractStatus
|
|
contractCategoryId?: NullableIntFieldUpdateOperationsInput | number | null
|
|
addressId?: NullableIntFieldUpdateOperationsInput | number | null
|
|
billingAddressId?: NullableIntFieldUpdateOperationsInput | number | null
|
|
bankCardId?: NullableIntFieldUpdateOperationsInput | number | null
|
|
identityDocumentId?: NullableIntFieldUpdateOperationsInput | number | null
|
|
salesPlatformId?: NullableIntFieldUpdateOperationsInput | number | null
|
|
cancellationPeriodId?: NullableIntFieldUpdateOperationsInput | number | null
|
|
contractDurationId?: NullableIntFieldUpdateOperationsInput | number | null
|
|
previousContractId?: NullableIntFieldUpdateOperationsInput | number | null
|
|
providerId?: NullableIntFieldUpdateOperationsInput | number | null
|
|
tariffId?: NullableIntFieldUpdateOperationsInput | number | null
|
|
providerName?: NullableStringFieldUpdateOperationsInput | string | null
|
|
tariffName?: NullableStringFieldUpdateOperationsInput | string | null
|
|
customerNumberAtProvider?: NullableStringFieldUpdateOperationsInput | string | null
|
|
priceFirst12Months?: NullableStringFieldUpdateOperationsInput | string | null
|
|
priceFrom13Months?: NullableStringFieldUpdateOperationsInput | string | null
|
|
priceAfter24Months?: NullableStringFieldUpdateOperationsInput | string | null
|
|
startDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
endDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
commission?: NullableFloatFieldUpdateOperationsInput | number | null
|
|
cancellationLetterPath?: NullableStringFieldUpdateOperationsInput | string | null
|
|
cancellationConfirmationPath?: NullableStringFieldUpdateOperationsInput | string | null
|
|
cancellationLetterOptionsPath?: NullableStringFieldUpdateOperationsInput | string | null
|
|
cancellationConfirmationOptionsPath?: NullableStringFieldUpdateOperationsInput | string | null
|
|
cancellationConfirmationDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
cancellationConfirmationOptionsDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
wasSpecialCancellation?: BoolFieldUpdateOperationsInput | boolean
|
|
portalUsername?: NullableStringFieldUpdateOperationsInput | string | null
|
|
portalPasswordEncrypted?: NullableStringFieldUpdateOperationsInput | string | null
|
|
stressfreiEmailId?: NullableIntFieldUpdateOperationsInput | number | null
|
|
notes?: NullableStringFieldUpdateOperationsInput | string | null
|
|
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
followUpContract?: ContractUncheckedUpdateOneWithoutPreviousContractNestedInput
|
|
energyDetails?: EnergyContractDetailsUncheckedUpdateOneWithoutContractNestedInput
|
|
internetDetails?: InternetContractDetailsUncheckedUpdateOneWithoutContractNestedInput
|
|
mobileDetails?: MobileContractDetailsUncheckedUpdateOneWithoutContractNestedInput
|
|
tvDetails?: TvContractDetailsUncheckedUpdateOneWithoutContractNestedInput
|
|
carInsuranceDetails?: CarInsuranceDetailsUncheckedUpdateOneWithoutContractNestedInput
|
|
tasks?: ContractTaskUncheckedUpdateManyWithoutContractNestedInput
|
|
assignedEmails?: CachedEmailUncheckedUpdateManyWithoutContractNestedInput
|
|
}
|
|
|
|
export type ContractCreateManyInput = {
|
|
id?: number
|
|
contractNumber: string
|
|
customerId: number
|
|
type: $Enums.ContractType
|
|
status?: $Enums.ContractStatus
|
|
contractCategoryId?: number | null
|
|
addressId?: number | null
|
|
billingAddressId?: number | null
|
|
bankCardId?: number | null
|
|
identityDocumentId?: number | null
|
|
salesPlatformId?: number | null
|
|
cancellationPeriodId?: number | null
|
|
contractDurationId?: number | null
|
|
previousContractId?: number | null
|
|
providerId?: number | null
|
|
tariffId?: number | null
|
|
providerName?: string | null
|
|
tariffName?: string | null
|
|
customerNumberAtProvider?: string | null
|
|
priceFirst12Months?: string | null
|
|
priceFrom13Months?: string | null
|
|
priceAfter24Months?: string | null
|
|
startDate?: Date | string | null
|
|
endDate?: Date | string | null
|
|
commission?: number | null
|
|
cancellationLetterPath?: string | null
|
|
cancellationConfirmationPath?: string | null
|
|
cancellationLetterOptionsPath?: string | null
|
|
cancellationConfirmationOptionsPath?: string | null
|
|
cancellationConfirmationDate?: Date | string | null
|
|
cancellationConfirmationOptionsDate?: Date | string | null
|
|
wasSpecialCancellation?: boolean
|
|
portalUsername?: string | null
|
|
portalPasswordEncrypted?: string | null
|
|
stressfreiEmailId?: number | null
|
|
notes?: string | null
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
}
|
|
|
|
export type ContractUpdateManyMutationInput = {
|
|
contractNumber?: StringFieldUpdateOperationsInput | string
|
|
type?: EnumContractTypeFieldUpdateOperationsInput | $Enums.ContractType
|
|
status?: EnumContractStatusFieldUpdateOperationsInput | $Enums.ContractStatus
|
|
providerName?: NullableStringFieldUpdateOperationsInput | string | null
|
|
tariffName?: NullableStringFieldUpdateOperationsInput | string | null
|
|
customerNumberAtProvider?: NullableStringFieldUpdateOperationsInput | string | null
|
|
priceFirst12Months?: NullableStringFieldUpdateOperationsInput | string | null
|
|
priceFrom13Months?: NullableStringFieldUpdateOperationsInput | string | null
|
|
priceAfter24Months?: NullableStringFieldUpdateOperationsInput | string | null
|
|
startDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
endDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
commission?: NullableFloatFieldUpdateOperationsInput | number | null
|
|
cancellationLetterPath?: NullableStringFieldUpdateOperationsInput | string | null
|
|
cancellationConfirmationPath?: NullableStringFieldUpdateOperationsInput | string | null
|
|
cancellationLetterOptionsPath?: NullableStringFieldUpdateOperationsInput | string | null
|
|
cancellationConfirmationOptionsPath?: NullableStringFieldUpdateOperationsInput | string | null
|
|
cancellationConfirmationDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
cancellationConfirmationOptionsDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
wasSpecialCancellation?: BoolFieldUpdateOperationsInput | boolean
|
|
portalUsername?: NullableStringFieldUpdateOperationsInput | string | null
|
|
portalPasswordEncrypted?: NullableStringFieldUpdateOperationsInput | string | null
|
|
notes?: NullableStringFieldUpdateOperationsInput | string | null
|
|
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
}
|
|
|
|
export type ContractUncheckedUpdateManyInput = {
|
|
id?: IntFieldUpdateOperationsInput | number
|
|
contractNumber?: StringFieldUpdateOperationsInput | string
|
|
customerId?: IntFieldUpdateOperationsInput | number
|
|
type?: EnumContractTypeFieldUpdateOperationsInput | $Enums.ContractType
|
|
status?: EnumContractStatusFieldUpdateOperationsInput | $Enums.ContractStatus
|
|
contractCategoryId?: NullableIntFieldUpdateOperationsInput | number | null
|
|
addressId?: NullableIntFieldUpdateOperationsInput | number | null
|
|
billingAddressId?: NullableIntFieldUpdateOperationsInput | number | null
|
|
bankCardId?: NullableIntFieldUpdateOperationsInput | number | null
|
|
identityDocumentId?: NullableIntFieldUpdateOperationsInput | number | null
|
|
salesPlatformId?: NullableIntFieldUpdateOperationsInput | number | null
|
|
cancellationPeriodId?: NullableIntFieldUpdateOperationsInput | number | null
|
|
contractDurationId?: NullableIntFieldUpdateOperationsInput | number | null
|
|
previousContractId?: NullableIntFieldUpdateOperationsInput | number | null
|
|
providerId?: NullableIntFieldUpdateOperationsInput | number | null
|
|
tariffId?: NullableIntFieldUpdateOperationsInput | number | null
|
|
providerName?: NullableStringFieldUpdateOperationsInput | string | null
|
|
tariffName?: NullableStringFieldUpdateOperationsInput | string | null
|
|
customerNumberAtProvider?: NullableStringFieldUpdateOperationsInput | string | null
|
|
priceFirst12Months?: NullableStringFieldUpdateOperationsInput | string | null
|
|
priceFrom13Months?: NullableStringFieldUpdateOperationsInput | string | null
|
|
priceAfter24Months?: NullableStringFieldUpdateOperationsInput | string | null
|
|
startDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
endDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
commission?: NullableFloatFieldUpdateOperationsInput | number | null
|
|
cancellationLetterPath?: NullableStringFieldUpdateOperationsInput | string | null
|
|
cancellationConfirmationPath?: NullableStringFieldUpdateOperationsInput | string | null
|
|
cancellationLetterOptionsPath?: NullableStringFieldUpdateOperationsInput | string | null
|
|
cancellationConfirmationOptionsPath?: NullableStringFieldUpdateOperationsInput | string | null
|
|
cancellationConfirmationDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
cancellationConfirmationOptionsDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
wasSpecialCancellation?: BoolFieldUpdateOperationsInput | boolean
|
|
portalUsername?: NullableStringFieldUpdateOperationsInput | string | null
|
|
portalPasswordEncrypted?: NullableStringFieldUpdateOperationsInput | string | null
|
|
stressfreiEmailId?: NullableIntFieldUpdateOperationsInput | number | null
|
|
notes?: NullableStringFieldUpdateOperationsInput | string | null
|
|
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
}
|
|
|
|
export type ContractTaskCreateInput = {
|
|
title: string
|
|
description?: string | null
|
|
status?: $Enums.ContractTaskStatus
|
|
visibleInPortal?: boolean
|
|
createdBy?: string | null
|
|
completedAt?: Date | string | null
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
contract: ContractCreateNestedOneWithoutTasksInput
|
|
subtasks?: ContractTaskSubtaskCreateNestedManyWithoutTaskInput
|
|
}
|
|
|
|
export type ContractTaskUncheckedCreateInput = {
|
|
id?: number
|
|
contractId: number
|
|
title: string
|
|
description?: string | null
|
|
status?: $Enums.ContractTaskStatus
|
|
visibleInPortal?: boolean
|
|
createdBy?: string | null
|
|
completedAt?: Date | string | null
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
subtasks?: ContractTaskSubtaskUncheckedCreateNestedManyWithoutTaskInput
|
|
}
|
|
|
|
export type ContractTaskUpdateInput = {
|
|
title?: StringFieldUpdateOperationsInput | string
|
|
description?: NullableStringFieldUpdateOperationsInput | string | null
|
|
status?: EnumContractTaskStatusFieldUpdateOperationsInput | $Enums.ContractTaskStatus
|
|
visibleInPortal?: BoolFieldUpdateOperationsInput | boolean
|
|
createdBy?: NullableStringFieldUpdateOperationsInput | string | null
|
|
completedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
contract?: ContractUpdateOneRequiredWithoutTasksNestedInput
|
|
subtasks?: ContractTaskSubtaskUpdateManyWithoutTaskNestedInput
|
|
}
|
|
|
|
export type ContractTaskUncheckedUpdateInput = {
|
|
id?: IntFieldUpdateOperationsInput | number
|
|
contractId?: IntFieldUpdateOperationsInput | number
|
|
title?: StringFieldUpdateOperationsInput | string
|
|
description?: NullableStringFieldUpdateOperationsInput | string | null
|
|
status?: EnumContractTaskStatusFieldUpdateOperationsInput | $Enums.ContractTaskStatus
|
|
visibleInPortal?: BoolFieldUpdateOperationsInput | boolean
|
|
createdBy?: NullableStringFieldUpdateOperationsInput | string | null
|
|
completedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
subtasks?: ContractTaskSubtaskUncheckedUpdateManyWithoutTaskNestedInput
|
|
}
|
|
|
|
export type ContractTaskCreateManyInput = {
|
|
id?: number
|
|
contractId: number
|
|
title: string
|
|
description?: string | null
|
|
status?: $Enums.ContractTaskStatus
|
|
visibleInPortal?: boolean
|
|
createdBy?: string | null
|
|
completedAt?: Date | string | null
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
}
|
|
|
|
export type ContractTaskUpdateManyMutationInput = {
|
|
title?: StringFieldUpdateOperationsInput | string
|
|
description?: NullableStringFieldUpdateOperationsInput | string | null
|
|
status?: EnumContractTaskStatusFieldUpdateOperationsInput | $Enums.ContractTaskStatus
|
|
visibleInPortal?: BoolFieldUpdateOperationsInput | boolean
|
|
createdBy?: NullableStringFieldUpdateOperationsInput | string | null
|
|
completedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
}
|
|
|
|
export type ContractTaskUncheckedUpdateManyInput = {
|
|
id?: IntFieldUpdateOperationsInput | number
|
|
contractId?: IntFieldUpdateOperationsInput | number
|
|
title?: StringFieldUpdateOperationsInput | string
|
|
description?: NullableStringFieldUpdateOperationsInput | string | null
|
|
status?: EnumContractTaskStatusFieldUpdateOperationsInput | $Enums.ContractTaskStatus
|
|
visibleInPortal?: BoolFieldUpdateOperationsInput | boolean
|
|
createdBy?: NullableStringFieldUpdateOperationsInput | string | null
|
|
completedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
}
|
|
|
|
export type ContractTaskSubtaskCreateInput = {
|
|
title: string
|
|
status?: $Enums.ContractTaskStatus
|
|
createdBy?: string | null
|
|
completedAt?: Date | string | null
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
task: ContractTaskCreateNestedOneWithoutSubtasksInput
|
|
}
|
|
|
|
export type ContractTaskSubtaskUncheckedCreateInput = {
|
|
id?: number
|
|
taskId: number
|
|
title: string
|
|
status?: $Enums.ContractTaskStatus
|
|
createdBy?: string | null
|
|
completedAt?: Date | string | null
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
}
|
|
|
|
export type ContractTaskSubtaskUpdateInput = {
|
|
title?: StringFieldUpdateOperationsInput | string
|
|
status?: EnumContractTaskStatusFieldUpdateOperationsInput | $Enums.ContractTaskStatus
|
|
createdBy?: NullableStringFieldUpdateOperationsInput | string | null
|
|
completedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
task?: ContractTaskUpdateOneRequiredWithoutSubtasksNestedInput
|
|
}
|
|
|
|
export type ContractTaskSubtaskUncheckedUpdateInput = {
|
|
id?: IntFieldUpdateOperationsInput | number
|
|
taskId?: IntFieldUpdateOperationsInput | number
|
|
title?: StringFieldUpdateOperationsInput | string
|
|
status?: EnumContractTaskStatusFieldUpdateOperationsInput | $Enums.ContractTaskStatus
|
|
createdBy?: NullableStringFieldUpdateOperationsInput | string | null
|
|
completedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
}
|
|
|
|
export type ContractTaskSubtaskCreateManyInput = {
|
|
id?: number
|
|
taskId: number
|
|
title: string
|
|
status?: $Enums.ContractTaskStatus
|
|
createdBy?: string | null
|
|
completedAt?: Date | string | null
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
}
|
|
|
|
export type ContractTaskSubtaskUpdateManyMutationInput = {
|
|
title?: StringFieldUpdateOperationsInput | string
|
|
status?: EnumContractTaskStatusFieldUpdateOperationsInput | $Enums.ContractTaskStatus
|
|
createdBy?: NullableStringFieldUpdateOperationsInput | string | null
|
|
completedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
}
|
|
|
|
export type ContractTaskSubtaskUncheckedUpdateManyInput = {
|
|
id?: IntFieldUpdateOperationsInput | number
|
|
taskId?: IntFieldUpdateOperationsInput | number
|
|
title?: StringFieldUpdateOperationsInput | string
|
|
status?: EnumContractTaskStatusFieldUpdateOperationsInput | $Enums.ContractTaskStatus
|
|
createdBy?: NullableStringFieldUpdateOperationsInput | string | null
|
|
completedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
}
|
|
|
|
export type EnergyContractDetailsCreateInput = {
|
|
maloId?: string | null
|
|
annualConsumption?: number | null
|
|
annualConsumptionKwh?: number | null
|
|
basePrice?: number | null
|
|
unitPrice?: number | null
|
|
bonus?: number | null
|
|
previousProviderName?: string | null
|
|
previousCustomerNumber?: string | null
|
|
contract: ContractCreateNestedOneWithoutEnergyDetailsInput
|
|
meter?: MeterCreateNestedOneWithoutEnergyDetailsInput
|
|
}
|
|
|
|
export type EnergyContractDetailsUncheckedCreateInput = {
|
|
id?: number
|
|
contractId: number
|
|
meterId?: number | null
|
|
maloId?: string | null
|
|
annualConsumption?: number | null
|
|
annualConsumptionKwh?: number | null
|
|
basePrice?: number | null
|
|
unitPrice?: number | null
|
|
bonus?: number | null
|
|
previousProviderName?: string | null
|
|
previousCustomerNumber?: string | null
|
|
}
|
|
|
|
export type EnergyContractDetailsUpdateInput = {
|
|
maloId?: NullableStringFieldUpdateOperationsInput | string | null
|
|
annualConsumption?: NullableFloatFieldUpdateOperationsInput | number | null
|
|
annualConsumptionKwh?: NullableFloatFieldUpdateOperationsInput | number | null
|
|
basePrice?: NullableFloatFieldUpdateOperationsInput | number | null
|
|
unitPrice?: NullableFloatFieldUpdateOperationsInput | number | null
|
|
bonus?: NullableFloatFieldUpdateOperationsInput | number | null
|
|
previousProviderName?: NullableStringFieldUpdateOperationsInput | string | null
|
|
previousCustomerNumber?: NullableStringFieldUpdateOperationsInput | string | null
|
|
contract?: ContractUpdateOneRequiredWithoutEnergyDetailsNestedInput
|
|
meter?: MeterUpdateOneWithoutEnergyDetailsNestedInput
|
|
}
|
|
|
|
export type EnergyContractDetailsUncheckedUpdateInput = {
|
|
id?: IntFieldUpdateOperationsInput | number
|
|
contractId?: IntFieldUpdateOperationsInput | number
|
|
meterId?: NullableIntFieldUpdateOperationsInput | number | null
|
|
maloId?: NullableStringFieldUpdateOperationsInput | string | null
|
|
annualConsumption?: NullableFloatFieldUpdateOperationsInput | number | null
|
|
annualConsumptionKwh?: NullableFloatFieldUpdateOperationsInput | number | null
|
|
basePrice?: NullableFloatFieldUpdateOperationsInput | number | null
|
|
unitPrice?: NullableFloatFieldUpdateOperationsInput | number | null
|
|
bonus?: NullableFloatFieldUpdateOperationsInput | number | null
|
|
previousProviderName?: NullableStringFieldUpdateOperationsInput | string | null
|
|
previousCustomerNumber?: NullableStringFieldUpdateOperationsInput | string | null
|
|
}
|
|
|
|
export type EnergyContractDetailsCreateManyInput = {
|
|
id?: number
|
|
contractId: number
|
|
meterId?: number | null
|
|
maloId?: string | null
|
|
annualConsumption?: number | null
|
|
annualConsumptionKwh?: number | null
|
|
basePrice?: number | null
|
|
unitPrice?: number | null
|
|
bonus?: number | null
|
|
previousProviderName?: string | null
|
|
previousCustomerNumber?: string | null
|
|
}
|
|
|
|
export type EnergyContractDetailsUpdateManyMutationInput = {
|
|
maloId?: NullableStringFieldUpdateOperationsInput | string | null
|
|
annualConsumption?: NullableFloatFieldUpdateOperationsInput | number | null
|
|
annualConsumptionKwh?: NullableFloatFieldUpdateOperationsInput | number | null
|
|
basePrice?: NullableFloatFieldUpdateOperationsInput | number | null
|
|
unitPrice?: NullableFloatFieldUpdateOperationsInput | number | null
|
|
bonus?: NullableFloatFieldUpdateOperationsInput | number | null
|
|
previousProviderName?: NullableStringFieldUpdateOperationsInput | string | null
|
|
previousCustomerNumber?: NullableStringFieldUpdateOperationsInput | string | null
|
|
}
|
|
|
|
export type EnergyContractDetailsUncheckedUpdateManyInput = {
|
|
id?: IntFieldUpdateOperationsInput | number
|
|
contractId?: IntFieldUpdateOperationsInput | number
|
|
meterId?: NullableIntFieldUpdateOperationsInput | number | null
|
|
maloId?: NullableStringFieldUpdateOperationsInput | string | null
|
|
annualConsumption?: NullableFloatFieldUpdateOperationsInput | number | null
|
|
annualConsumptionKwh?: NullableFloatFieldUpdateOperationsInput | number | null
|
|
basePrice?: NullableFloatFieldUpdateOperationsInput | number | null
|
|
unitPrice?: NullableFloatFieldUpdateOperationsInput | number | null
|
|
bonus?: NullableFloatFieldUpdateOperationsInput | number | null
|
|
previousProviderName?: NullableStringFieldUpdateOperationsInput | string | null
|
|
previousCustomerNumber?: NullableStringFieldUpdateOperationsInput | string | null
|
|
}
|
|
|
|
export type InternetContractDetailsCreateInput = {
|
|
downloadSpeed?: number | null
|
|
uploadSpeed?: number | null
|
|
routerModel?: string | null
|
|
routerSerialNumber?: string | null
|
|
installationDate?: Date | string | null
|
|
internetUsername?: string | null
|
|
internetPasswordEncrypted?: string | null
|
|
homeId?: string | null
|
|
activationCode?: string | null
|
|
contract: ContractCreateNestedOneWithoutInternetDetailsInput
|
|
phoneNumbers?: PhoneNumberCreateNestedManyWithoutInternetDetailsInput
|
|
}
|
|
|
|
export type InternetContractDetailsUncheckedCreateInput = {
|
|
id?: number
|
|
contractId: number
|
|
downloadSpeed?: number | null
|
|
uploadSpeed?: number | null
|
|
routerModel?: string | null
|
|
routerSerialNumber?: string | null
|
|
installationDate?: Date | string | null
|
|
internetUsername?: string | null
|
|
internetPasswordEncrypted?: string | null
|
|
homeId?: string | null
|
|
activationCode?: string | null
|
|
phoneNumbers?: PhoneNumberUncheckedCreateNestedManyWithoutInternetDetailsInput
|
|
}
|
|
|
|
export type InternetContractDetailsUpdateInput = {
|
|
downloadSpeed?: NullableIntFieldUpdateOperationsInput | number | null
|
|
uploadSpeed?: NullableIntFieldUpdateOperationsInput | number | null
|
|
routerModel?: NullableStringFieldUpdateOperationsInput | string | null
|
|
routerSerialNumber?: NullableStringFieldUpdateOperationsInput | string | null
|
|
installationDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
internetUsername?: NullableStringFieldUpdateOperationsInput | string | null
|
|
internetPasswordEncrypted?: NullableStringFieldUpdateOperationsInput | string | null
|
|
homeId?: NullableStringFieldUpdateOperationsInput | string | null
|
|
activationCode?: NullableStringFieldUpdateOperationsInput | string | null
|
|
contract?: ContractUpdateOneRequiredWithoutInternetDetailsNestedInput
|
|
phoneNumbers?: PhoneNumberUpdateManyWithoutInternetDetailsNestedInput
|
|
}
|
|
|
|
export type InternetContractDetailsUncheckedUpdateInput = {
|
|
id?: IntFieldUpdateOperationsInput | number
|
|
contractId?: IntFieldUpdateOperationsInput | number
|
|
downloadSpeed?: NullableIntFieldUpdateOperationsInput | number | null
|
|
uploadSpeed?: NullableIntFieldUpdateOperationsInput | number | null
|
|
routerModel?: NullableStringFieldUpdateOperationsInput | string | null
|
|
routerSerialNumber?: NullableStringFieldUpdateOperationsInput | string | null
|
|
installationDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
internetUsername?: NullableStringFieldUpdateOperationsInput | string | null
|
|
internetPasswordEncrypted?: NullableStringFieldUpdateOperationsInput | string | null
|
|
homeId?: NullableStringFieldUpdateOperationsInput | string | null
|
|
activationCode?: NullableStringFieldUpdateOperationsInput | string | null
|
|
phoneNumbers?: PhoneNumberUncheckedUpdateManyWithoutInternetDetailsNestedInput
|
|
}
|
|
|
|
export type InternetContractDetailsCreateManyInput = {
|
|
id?: number
|
|
contractId: number
|
|
downloadSpeed?: number | null
|
|
uploadSpeed?: number | null
|
|
routerModel?: string | null
|
|
routerSerialNumber?: string | null
|
|
installationDate?: Date | string | null
|
|
internetUsername?: string | null
|
|
internetPasswordEncrypted?: string | null
|
|
homeId?: string | null
|
|
activationCode?: string | null
|
|
}
|
|
|
|
export type InternetContractDetailsUpdateManyMutationInput = {
|
|
downloadSpeed?: NullableIntFieldUpdateOperationsInput | number | null
|
|
uploadSpeed?: NullableIntFieldUpdateOperationsInput | number | null
|
|
routerModel?: NullableStringFieldUpdateOperationsInput | string | null
|
|
routerSerialNumber?: NullableStringFieldUpdateOperationsInput | string | null
|
|
installationDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
internetUsername?: NullableStringFieldUpdateOperationsInput | string | null
|
|
internetPasswordEncrypted?: NullableStringFieldUpdateOperationsInput | string | null
|
|
homeId?: NullableStringFieldUpdateOperationsInput | string | null
|
|
activationCode?: NullableStringFieldUpdateOperationsInput | string | null
|
|
}
|
|
|
|
export type InternetContractDetailsUncheckedUpdateManyInput = {
|
|
id?: IntFieldUpdateOperationsInput | number
|
|
contractId?: IntFieldUpdateOperationsInput | number
|
|
downloadSpeed?: NullableIntFieldUpdateOperationsInput | number | null
|
|
uploadSpeed?: NullableIntFieldUpdateOperationsInput | number | null
|
|
routerModel?: NullableStringFieldUpdateOperationsInput | string | null
|
|
routerSerialNumber?: NullableStringFieldUpdateOperationsInput | string | null
|
|
installationDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
internetUsername?: NullableStringFieldUpdateOperationsInput | string | null
|
|
internetPasswordEncrypted?: NullableStringFieldUpdateOperationsInput | string | null
|
|
homeId?: NullableStringFieldUpdateOperationsInput | string | null
|
|
activationCode?: NullableStringFieldUpdateOperationsInput | string | null
|
|
}
|
|
|
|
export type PhoneNumberCreateInput = {
|
|
phoneNumber: string
|
|
isMain?: boolean
|
|
sipUsername?: string | null
|
|
sipPasswordEncrypted?: string | null
|
|
sipServer?: string | null
|
|
internetDetails: InternetContractDetailsCreateNestedOneWithoutPhoneNumbersInput
|
|
}
|
|
|
|
export type PhoneNumberUncheckedCreateInput = {
|
|
id?: number
|
|
internetContractDetailsId: number
|
|
phoneNumber: string
|
|
isMain?: boolean
|
|
sipUsername?: string | null
|
|
sipPasswordEncrypted?: string | null
|
|
sipServer?: string | null
|
|
}
|
|
|
|
export type PhoneNumberUpdateInput = {
|
|
phoneNumber?: StringFieldUpdateOperationsInput | string
|
|
isMain?: BoolFieldUpdateOperationsInput | boolean
|
|
sipUsername?: NullableStringFieldUpdateOperationsInput | string | null
|
|
sipPasswordEncrypted?: NullableStringFieldUpdateOperationsInput | string | null
|
|
sipServer?: NullableStringFieldUpdateOperationsInput | string | null
|
|
internetDetails?: InternetContractDetailsUpdateOneRequiredWithoutPhoneNumbersNestedInput
|
|
}
|
|
|
|
export type PhoneNumberUncheckedUpdateInput = {
|
|
id?: IntFieldUpdateOperationsInput | number
|
|
internetContractDetailsId?: IntFieldUpdateOperationsInput | number
|
|
phoneNumber?: StringFieldUpdateOperationsInput | string
|
|
isMain?: BoolFieldUpdateOperationsInput | boolean
|
|
sipUsername?: NullableStringFieldUpdateOperationsInput | string | null
|
|
sipPasswordEncrypted?: NullableStringFieldUpdateOperationsInput | string | null
|
|
sipServer?: NullableStringFieldUpdateOperationsInput | string | null
|
|
}
|
|
|
|
export type PhoneNumberCreateManyInput = {
|
|
id?: number
|
|
internetContractDetailsId: number
|
|
phoneNumber: string
|
|
isMain?: boolean
|
|
sipUsername?: string | null
|
|
sipPasswordEncrypted?: string | null
|
|
sipServer?: string | null
|
|
}
|
|
|
|
export type PhoneNumberUpdateManyMutationInput = {
|
|
phoneNumber?: StringFieldUpdateOperationsInput | string
|
|
isMain?: BoolFieldUpdateOperationsInput | boolean
|
|
sipUsername?: NullableStringFieldUpdateOperationsInput | string | null
|
|
sipPasswordEncrypted?: NullableStringFieldUpdateOperationsInput | string | null
|
|
sipServer?: NullableStringFieldUpdateOperationsInput | string | null
|
|
}
|
|
|
|
export type PhoneNumberUncheckedUpdateManyInput = {
|
|
id?: IntFieldUpdateOperationsInput | number
|
|
internetContractDetailsId?: IntFieldUpdateOperationsInput | number
|
|
phoneNumber?: StringFieldUpdateOperationsInput | string
|
|
isMain?: BoolFieldUpdateOperationsInput | boolean
|
|
sipUsername?: NullableStringFieldUpdateOperationsInput | string | null
|
|
sipPasswordEncrypted?: NullableStringFieldUpdateOperationsInput | string | null
|
|
sipServer?: NullableStringFieldUpdateOperationsInput | string | null
|
|
}
|
|
|
|
export type MobileContractDetailsCreateInput = {
|
|
requiresMultisim?: boolean
|
|
dataVolume?: number | null
|
|
includedMinutes?: number | null
|
|
includedSMS?: number | null
|
|
deviceModel?: string | null
|
|
deviceImei?: string | null
|
|
phoneNumber?: string | null
|
|
simCardNumber?: string | null
|
|
contract: ContractCreateNestedOneWithoutMobileDetailsInput
|
|
simCards?: SimCardCreateNestedManyWithoutMobileDetailsInput
|
|
}
|
|
|
|
export type MobileContractDetailsUncheckedCreateInput = {
|
|
id?: number
|
|
contractId: number
|
|
requiresMultisim?: boolean
|
|
dataVolume?: number | null
|
|
includedMinutes?: number | null
|
|
includedSMS?: number | null
|
|
deviceModel?: string | null
|
|
deviceImei?: string | null
|
|
phoneNumber?: string | null
|
|
simCardNumber?: string | null
|
|
simCards?: SimCardUncheckedCreateNestedManyWithoutMobileDetailsInput
|
|
}
|
|
|
|
export type MobileContractDetailsUpdateInput = {
|
|
requiresMultisim?: BoolFieldUpdateOperationsInput | boolean
|
|
dataVolume?: NullableFloatFieldUpdateOperationsInput | number | null
|
|
includedMinutes?: NullableIntFieldUpdateOperationsInput | number | null
|
|
includedSMS?: NullableIntFieldUpdateOperationsInput | number | null
|
|
deviceModel?: NullableStringFieldUpdateOperationsInput | string | null
|
|
deviceImei?: NullableStringFieldUpdateOperationsInput | string | null
|
|
phoneNumber?: NullableStringFieldUpdateOperationsInput | string | null
|
|
simCardNumber?: NullableStringFieldUpdateOperationsInput | string | null
|
|
contract?: ContractUpdateOneRequiredWithoutMobileDetailsNestedInput
|
|
simCards?: SimCardUpdateManyWithoutMobileDetailsNestedInput
|
|
}
|
|
|
|
export type MobileContractDetailsUncheckedUpdateInput = {
|
|
id?: IntFieldUpdateOperationsInput | number
|
|
contractId?: IntFieldUpdateOperationsInput | number
|
|
requiresMultisim?: BoolFieldUpdateOperationsInput | boolean
|
|
dataVolume?: NullableFloatFieldUpdateOperationsInput | number | null
|
|
includedMinutes?: NullableIntFieldUpdateOperationsInput | number | null
|
|
includedSMS?: NullableIntFieldUpdateOperationsInput | number | null
|
|
deviceModel?: NullableStringFieldUpdateOperationsInput | string | null
|
|
deviceImei?: NullableStringFieldUpdateOperationsInput | string | null
|
|
phoneNumber?: NullableStringFieldUpdateOperationsInput | string | null
|
|
simCardNumber?: NullableStringFieldUpdateOperationsInput | string | null
|
|
simCards?: SimCardUncheckedUpdateManyWithoutMobileDetailsNestedInput
|
|
}
|
|
|
|
export type MobileContractDetailsCreateManyInput = {
|
|
id?: number
|
|
contractId: number
|
|
requiresMultisim?: boolean
|
|
dataVolume?: number | null
|
|
includedMinutes?: number | null
|
|
includedSMS?: number | null
|
|
deviceModel?: string | null
|
|
deviceImei?: string | null
|
|
phoneNumber?: string | null
|
|
simCardNumber?: string | null
|
|
}
|
|
|
|
export type MobileContractDetailsUpdateManyMutationInput = {
|
|
requiresMultisim?: BoolFieldUpdateOperationsInput | boolean
|
|
dataVolume?: NullableFloatFieldUpdateOperationsInput | number | null
|
|
includedMinutes?: NullableIntFieldUpdateOperationsInput | number | null
|
|
includedSMS?: NullableIntFieldUpdateOperationsInput | number | null
|
|
deviceModel?: NullableStringFieldUpdateOperationsInput | string | null
|
|
deviceImei?: NullableStringFieldUpdateOperationsInput | string | null
|
|
phoneNumber?: NullableStringFieldUpdateOperationsInput | string | null
|
|
simCardNumber?: NullableStringFieldUpdateOperationsInput | string | null
|
|
}
|
|
|
|
export type MobileContractDetailsUncheckedUpdateManyInput = {
|
|
id?: IntFieldUpdateOperationsInput | number
|
|
contractId?: IntFieldUpdateOperationsInput | number
|
|
requiresMultisim?: BoolFieldUpdateOperationsInput | boolean
|
|
dataVolume?: NullableFloatFieldUpdateOperationsInput | number | null
|
|
includedMinutes?: NullableIntFieldUpdateOperationsInput | number | null
|
|
includedSMS?: NullableIntFieldUpdateOperationsInput | number | null
|
|
deviceModel?: NullableStringFieldUpdateOperationsInput | string | null
|
|
deviceImei?: NullableStringFieldUpdateOperationsInput | string | null
|
|
phoneNumber?: NullableStringFieldUpdateOperationsInput | string | null
|
|
simCardNumber?: NullableStringFieldUpdateOperationsInput | string | null
|
|
}
|
|
|
|
export type SimCardCreateInput = {
|
|
phoneNumber?: string | null
|
|
simCardNumber?: string | null
|
|
pin?: string | null
|
|
puk?: string | null
|
|
isMultisim?: boolean
|
|
isMain?: boolean
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
mobileDetails: MobileContractDetailsCreateNestedOneWithoutSimCardsInput
|
|
}
|
|
|
|
export type SimCardUncheckedCreateInput = {
|
|
id?: number
|
|
mobileDetailsId: number
|
|
phoneNumber?: string | null
|
|
simCardNumber?: string | null
|
|
pin?: string | null
|
|
puk?: string | null
|
|
isMultisim?: boolean
|
|
isMain?: boolean
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
}
|
|
|
|
export type SimCardUpdateInput = {
|
|
phoneNumber?: NullableStringFieldUpdateOperationsInput | string | null
|
|
simCardNumber?: NullableStringFieldUpdateOperationsInput | string | null
|
|
pin?: NullableStringFieldUpdateOperationsInput | string | null
|
|
puk?: NullableStringFieldUpdateOperationsInput | string | null
|
|
isMultisim?: BoolFieldUpdateOperationsInput | boolean
|
|
isMain?: BoolFieldUpdateOperationsInput | boolean
|
|
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
mobileDetails?: MobileContractDetailsUpdateOneRequiredWithoutSimCardsNestedInput
|
|
}
|
|
|
|
export type SimCardUncheckedUpdateInput = {
|
|
id?: IntFieldUpdateOperationsInput | number
|
|
mobileDetailsId?: IntFieldUpdateOperationsInput | number
|
|
phoneNumber?: NullableStringFieldUpdateOperationsInput | string | null
|
|
simCardNumber?: NullableStringFieldUpdateOperationsInput | string | null
|
|
pin?: NullableStringFieldUpdateOperationsInput | string | null
|
|
puk?: NullableStringFieldUpdateOperationsInput | string | null
|
|
isMultisim?: BoolFieldUpdateOperationsInput | boolean
|
|
isMain?: BoolFieldUpdateOperationsInput | boolean
|
|
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
}
|
|
|
|
export type SimCardCreateManyInput = {
|
|
id?: number
|
|
mobileDetailsId: number
|
|
phoneNumber?: string | null
|
|
simCardNumber?: string | null
|
|
pin?: string | null
|
|
puk?: string | null
|
|
isMultisim?: boolean
|
|
isMain?: boolean
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
}
|
|
|
|
export type SimCardUpdateManyMutationInput = {
|
|
phoneNumber?: NullableStringFieldUpdateOperationsInput | string | null
|
|
simCardNumber?: NullableStringFieldUpdateOperationsInput | string | null
|
|
pin?: NullableStringFieldUpdateOperationsInput | string | null
|
|
puk?: NullableStringFieldUpdateOperationsInput | string | null
|
|
isMultisim?: BoolFieldUpdateOperationsInput | boolean
|
|
isMain?: BoolFieldUpdateOperationsInput | boolean
|
|
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
}
|
|
|
|
export type SimCardUncheckedUpdateManyInput = {
|
|
id?: IntFieldUpdateOperationsInput | number
|
|
mobileDetailsId?: IntFieldUpdateOperationsInput | number
|
|
phoneNumber?: NullableStringFieldUpdateOperationsInput | string | null
|
|
simCardNumber?: NullableStringFieldUpdateOperationsInput | string | null
|
|
pin?: NullableStringFieldUpdateOperationsInput | string | null
|
|
puk?: NullableStringFieldUpdateOperationsInput | string | null
|
|
isMultisim?: BoolFieldUpdateOperationsInput | boolean
|
|
isMain?: BoolFieldUpdateOperationsInput | boolean
|
|
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
}
|
|
|
|
export type TvContractDetailsCreateInput = {
|
|
receiverModel?: string | null
|
|
smartcardNumber?: string | null
|
|
package?: string | null
|
|
contract: ContractCreateNestedOneWithoutTvDetailsInput
|
|
}
|
|
|
|
export type TvContractDetailsUncheckedCreateInput = {
|
|
id?: number
|
|
contractId: number
|
|
receiverModel?: string | null
|
|
smartcardNumber?: string | null
|
|
package?: string | null
|
|
}
|
|
|
|
export type TvContractDetailsUpdateInput = {
|
|
receiverModel?: NullableStringFieldUpdateOperationsInput | string | null
|
|
smartcardNumber?: NullableStringFieldUpdateOperationsInput | string | null
|
|
package?: NullableStringFieldUpdateOperationsInput | string | null
|
|
contract?: ContractUpdateOneRequiredWithoutTvDetailsNestedInput
|
|
}
|
|
|
|
export type TvContractDetailsUncheckedUpdateInput = {
|
|
id?: IntFieldUpdateOperationsInput | number
|
|
contractId?: IntFieldUpdateOperationsInput | number
|
|
receiverModel?: NullableStringFieldUpdateOperationsInput | string | null
|
|
smartcardNumber?: NullableStringFieldUpdateOperationsInput | string | null
|
|
package?: NullableStringFieldUpdateOperationsInput | string | null
|
|
}
|
|
|
|
export type TvContractDetailsCreateManyInput = {
|
|
id?: number
|
|
contractId: number
|
|
receiverModel?: string | null
|
|
smartcardNumber?: string | null
|
|
package?: string | null
|
|
}
|
|
|
|
export type TvContractDetailsUpdateManyMutationInput = {
|
|
receiverModel?: NullableStringFieldUpdateOperationsInput | string | null
|
|
smartcardNumber?: NullableStringFieldUpdateOperationsInput | string | null
|
|
package?: NullableStringFieldUpdateOperationsInput | string | null
|
|
}
|
|
|
|
export type TvContractDetailsUncheckedUpdateManyInput = {
|
|
id?: IntFieldUpdateOperationsInput | number
|
|
contractId?: IntFieldUpdateOperationsInput | number
|
|
receiverModel?: NullableStringFieldUpdateOperationsInput | string | null
|
|
smartcardNumber?: NullableStringFieldUpdateOperationsInput | string | null
|
|
package?: NullableStringFieldUpdateOperationsInput | string | null
|
|
}
|
|
|
|
export type CarInsuranceDetailsCreateInput = {
|
|
licensePlate?: string | null
|
|
hsn?: string | null
|
|
tsn?: string | null
|
|
vin?: string | null
|
|
vehicleType?: string | null
|
|
firstRegistration?: Date | string | null
|
|
noClaimsClass?: string | null
|
|
insuranceType?: $Enums.InsuranceType
|
|
deductiblePartial?: number | null
|
|
deductibleFull?: number | null
|
|
policyNumber?: string | null
|
|
previousInsurer?: string | null
|
|
contract: ContractCreateNestedOneWithoutCarInsuranceDetailsInput
|
|
}
|
|
|
|
export type CarInsuranceDetailsUncheckedCreateInput = {
|
|
id?: number
|
|
contractId: number
|
|
licensePlate?: string | null
|
|
hsn?: string | null
|
|
tsn?: string | null
|
|
vin?: string | null
|
|
vehicleType?: string | null
|
|
firstRegistration?: Date | string | null
|
|
noClaimsClass?: string | null
|
|
insuranceType?: $Enums.InsuranceType
|
|
deductiblePartial?: number | null
|
|
deductibleFull?: number | null
|
|
policyNumber?: string | null
|
|
previousInsurer?: string | null
|
|
}
|
|
|
|
export type CarInsuranceDetailsUpdateInput = {
|
|
licensePlate?: NullableStringFieldUpdateOperationsInput | string | null
|
|
hsn?: NullableStringFieldUpdateOperationsInput | string | null
|
|
tsn?: NullableStringFieldUpdateOperationsInput | string | null
|
|
vin?: NullableStringFieldUpdateOperationsInput | string | null
|
|
vehicleType?: NullableStringFieldUpdateOperationsInput | string | null
|
|
firstRegistration?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
noClaimsClass?: NullableStringFieldUpdateOperationsInput | string | null
|
|
insuranceType?: EnumInsuranceTypeFieldUpdateOperationsInput | $Enums.InsuranceType
|
|
deductiblePartial?: NullableFloatFieldUpdateOperationsInput | number | null
|
|
deductibleFull?: NullableFloatFieldUpdateOperationsInput | number | null
|
|
policyNumber?: NullableStringFieldUpdateOperationsInput | string | null
|
|
previousInsurer?: NullableStringFieldUpdateOperationsInput | string | null
|
|
contract?: ContractUpdateOneRequiredWithoutCarInsuranceDetailsNestedInput
|
|
}
|
|
|
|
export type CarInsuranceDetailsUncheckedUpdateInput = {
|
|
id?: IntFieldUpdateOperationsInput | number
|
|
contractId?: IntFieldUpdateOperationsInput | number
|
|
licensePlate?: NullableStringFieldUpdateOperationsInput | string | null
|
|
hsn?: NullableStringFieldUpdateOperationsInput | string | null
|
|
tsn?: NullableStringFieldUpdateOperationsInput | string | null
|
|
vin?: NullableStringFieldUpdateOperationsInput | string | null
|
|
vehicleType?: NullableStringFieldUpdateOperationsInput | string | null
|
|
firstRegistration?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
noClaimsClass?: NullableStringFieldUpdateOperationsInput | string | null
|
|
insuranceType?: EnumInsuranceTypeFieldUpdateOperationsInput | $Enums.InsuranceType
|
|
deductiblePartial?: NullableFloatFieldUpdateOperationsInput | number | null
|
|
deductibleFull?: NullableFloatFieldUpdateOperationsInput | number | null
|
|
policyNumber?: NullableStringFieldUpdateOperationsInput | string | null
|
|
previousInsurer?: NullableStringFieldUpdateOperationsInput | string | null
|
|
}
|
|
|
|
export type CarInsuranceDetailsCreateManyInput = {
|
|
id?: number
|
|
contractId: number
|
|
licensePlate?: string | null
|
|
hsn?: string | null
|
|
tsn?: string | null
|
|
vin?: string | null
|
|
vehicleType?: string | null
|
|
firstRegistration?: Date | string | null
|
|
noClaimsClass?: string | null
|
|
insuranceType?: $Enums.InsuranceType
|
|
deductiblePartial?: number | null
|
|
deductibleFull?: number | null
|
|
policyNumber?: string | null
|
|
previousInsurer?: string | null
|
|
}
|
|
|
|
export type CarInsuranceDetailsUpdateManyMutationInput = {
|
|
licensePlate?: NullableStringFieldUpdateOperationsInput | string | null
|
|
hsn?: NullableStringFieldUpdateOperationsInput | string | null
|
|
tsn?: NullableStringFieldUpdateOperationsInput | string | null
|
|
vin?: NullableStringFieldUpdateOperationsInput | string | null
|
|
vehicleType?: NullableStringFieldUpdateOperationsInput | string | null
|
|
firstRegistration?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
noClaimsClass?: NullableStringFieldUpdateOperationsInput | string | null
|
|
insuranceType?: EnumInsuranceTypeFieldUpdateOperationsInput | $Enums.InsuranceType
|
|
deductiblePartial?: NullableFloatFieldUpdateOperationsInput | number | null
|
|
deductibleFull?: NullableFloatFieldUpdateOperationsInput | number | null
|
|
policyNumber?: NullableStringFieldUpdateOperationsInput | string | null
|
|
previousInsurer?: NullableStringFieldUpdateOperationsInput | string | null
|
|
}
|
|
|
|
export type CarInsuranceDetailsUncheckedUpdateManyInput = {
|
|
id?: IntFieldUpdateOperationsInput | number
|
|
contractId?: IntFieldUpdateOperationsInput | number
|
|
licensePlate?: NullableStringFieldUpdateOperationsInput | string | null
|
|
hsn?: NullableStringFieldUpdateOperationsInput | string | null
|
|
tsn?: NullableStringFieldUpdateOperationsInput | string | null
|
|
vin?: NullableStringFieldUpdateOperationsInput | string | null
|
|
vehicleType?: NullableStringFieldUpdateOperationsInput | string | null
|
|
firstRegistration?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
noClaimsClass?: NullableStringFieldUpdateOperationsInput | string | null
|
|
insuranceType?: EnumInsuranceTypeFieldUpdateOperationsInput | $Enums.InsuranceType
|
|
deductiblePartial?: NullableFloatFieldUpdateOperationsInput | number | null
|
|
deductibleFull?: NullableFloatFieldUpdateOperationsInput | number | null
|
|
policyNumber?: NullableStringFieldUpdateOperationsInput | string | null
|
|
previousInsurer?: NullableStringFieldUpdateOperationsInput | string | null
|
|
}
|
|
|
|
export type IntFilter<$PrismaModel = never> = {
|
|
equals?: number | IntFieldRefInput<$PrismaModel>
|
|
in?: number[]
|
|
notIn?: number[]
|
|
lt?: number | IntFieldRefInput<$PrismaModel>
|
|
lte?: number | IntFieldRefInput<$PrismaModel>
|
|
gt?: number | IntFieldRefInput<$PrismaModel>
|
|
gte?: number | IntFieldRefInput<$PrismaModel>
|
|
not?: NestedIntFilter<$PrismaModel> | number
|
|
}
|
|
|
|
export type StringFilter<$PrismaModel = never> = {
|
|
equals?: string | StringFieldRefInput<$PrismaModel>
|
|
in?: string[]
|
|
notIn?: string[]
|
|
lt?: string | StringFieldRefInput<$PrismaModel>
|
|
lte?: string | StringFieldRefInput<$PrismaModel>
|
|
gt?: string | StringFieldRefInput<$PrismaModel>
|
|
gte?: string | StringFieldRefInput<$PrismaModel>
|
|
contains?: string | StringFieldRefInput<$PrismaModel>
|
|
startsWith?: string | StringFieldRefInput<$PrismaModel>
|
|
endsWith?: string | StringFieldRefInput<$PrismaModel>
|
|
not?: NestedStringFilter<$PrismaModel> | string
|
|
}
|
|
|
|
export type DateTimeFilter<$PrismaModel = never> = {
|
|
equals?: Date | string | DateTimeFieldRefInput<$PrismaModel>
|
|
in?: Date[] | string[]
|
|
notIn?: Date[] | string[]
|
|
lt?: Date | string | DateTimeFieldRefInput<$PrismaModel>
|
|
lte?: Date | string | DateTimeFieldRefInput<$PrismaModel>
|
|
gt?: Date | string | DateTimeFieldRefInput<$PrismaModel>
|
|
gte?: Date | string | DateTimeFieldRefInput<$PrismaModel>
|
|
not?: NestedDateTimeFilter<$PrismaModel> | Date | string
|
|
}
|
|
|
|
export type AppSettingCountOrderByAggregateInput = {
|
|
id?: SortOrder
|
|
key?: SortOrder
|
|
value?: SortOrder
|
|
createdAt?: SortOrder
|
|
updatedAt?: SortOrder
|
|
}
|
|
|
|
export type AppSettingAvgOrderByAggregateInput = {
|
|
id?: SortOrder
|
|
}
|
|
|
|
export type AppSettingMaxOrderByAggregateInput = {
|
|
id?: SortOrder
|
|
key?: SortOrder
|
|
value?: SortOrder
|
|
createdAt?: SortOrder
|
|
updatedAt?: SortOrder
|
|
}
|
|
|
|
export type AppSettingMinOrderByAggregateInput = {
|
|
id?: SortOrder
|
|
key?: SortOrder
|
|
value?: SortOrder
|
|
createdAt?: SortOrder
|
|
updatedAt?: SortOrder
|
|
}
|
|
|
|
export type AppSettingSumOrderByAggregateInput = {
|
|
id?: SortOrder
|
|
}
|
|
|
|
export type IntWithAggregatesFilter<$PrismaModel = never> = {
|
|
equals?: number | IntFieldRefInput<$PrismaModel>
|
|
in?: number[]
|
|
notIn?: number[]
|
|
lt?: number | IntFieldRefInput<$PrismaModel>
|
|
lte?: number | IntFieldRefInput<$PrismaModel>
|
|
gt?: number | IntFieldRefInput<$PrismaModel>
|
|
gte?: number | IntFieldRefInput<$PrismaModel>
|
|
not?: NestedIntWithAggregatesFilter<$PrismaModel> | number
|
|
_count?: NestedIntFilter<$PrismaModel>
|
|
_avg?: NestedFloatFilter<$PrismaModel>
|
|
_sum?: NestedIntFilter<$PrismaModel>
|
|
_min?: NestedIntFilter<$PrismaModel>
|
|
_max?: NestedIntFilter<$PrismaModel>
|
|
}
|
|
|
|
export type StringWithAggregatesFilter<$PrismaModel = never> = {
|
|
equals?: string | StringFieldRefInput<$PrismaModel>
|
|
in?: string[]
|
|
notIn?: string[]
|
|
lt?: string | StringFieldRefInput<$PrismaModel>
|
|
lte?: string | StringFieldRefInput<$PrismaModel>
|
|
gt?: string | StringFieldRefInput<$PrismaModel>
|
|
gte?: string | StringFieldRefInput<$PrismaModel>
|
|
contains?: string | StringFieldRefInput<$PrismaModel>
|
|
startsWith?: string | StringFieldRefInput<$PrismaModel>
|
|
endsWith?: string | StringFieldRefInput<$PrismaModel>
|
|
not?: NestedStringWithAggregatesFilter<$PrismaModel> | string
|
|
_count?: NestedIntFilter<$PrismaModel>
|
|
_min?: NestedStringFilter<$PrismaModel>
|
|
_max?: NestedStringFilter<$PrismaModel>
|
|
}
|
|
|
|
export type DateTimeWithAggregatesFilter<$PrismaModel = never> = {
|
|
equals?: Date | string | DateTimeFieldRefInput<$PrismaModel>
|
|
in?: Date[] | string[]
|
|
notIn?: Date[] | string[]
|
|
lt?: Date | string | DateTimeFieldRefInput<$PrismaModel>
|
|
lte?: Date | string | DateTimeFieldRefInput<$PrismaModel>
|
|
gt?: Date | string | DateTimeFieldRefInput<$PrismaModel>
|
|
gte?: Date | string | DateTimeFieldRefInput<$PrismaModel>
|
|
not?: NestedDateTimeWithAggregatesFilter<$PrismaModel> | Date | string
|
|
_count?: NestedIntFilter<$PrismaModel>
|
|
_min?: NestedDateTimeFilter<$PrismaModel>
|
|
_max?: NestedDateTimeFilter<$PrismaModel>
|
|
}
|
|
|
|
export type BoolFilter<$PrismaModel = never> = {
|
|
equals?: boolean | BooleanFieldRefInput<$PrismaModel>
|
|
not?: NestedBoolFilter<$PrismaModel> | boolean
|
|
}
|
|
|
|
export type DateTimeNullableFilter<$PrismaModel = never> = {
|
|
equals?: Date | string | DateTimeFieldRefInput<$PrismaModel> | null
|
|
in?: Date[] | string[] | null
|
|
notIn?: Date[] | string[] | null
|
|
lt?: Date | string | DateTimeFieldRefInput<$PrismaModel>
|
|
lte?: Date | string | DateTimeFieldRefInput<$PrismaModel>
|
|
gt?: Date | string | DateTimeFieldRefInput<$PrismaModel>
|
|
gte?: Date | string | DateTimeFieldRefInput<$PrismaModel>
|
|
not?: NestedDateTimeNullableFilter<$PrismaModel> | Date | string | null
|
|
}
|
|
|
|
export type IntNullableFilter<$PrismaModel = never> = {
|
|
equals?: number | IntFieldRefInput<$PrismaModel> | null
|
|
in?: number[] | null
|
|
notIn?: number[] | null
|
|
lt?: number | IntFieldRefInput<$PrismaModel>
|
|
lte?: number | IntFieldRefInput<$PrismaModel>
|
|
gt?: number | IntFieldRefInput<$PrismaModel>
|
|
gte?: number | IntFieldRefInput<$PrismaModel>
|
|
not?: NestedIntNullableFilter<$PrismaModel> | number | null
|
|
}
|
|
|
|
export type CustomerNullableRelationFilter = {
|
|
is?: CustomerWhereInput | null
|
|
isNot?: CustomerWhereInput | null
|
|
}
|
|
|
|
export type UserRoleListRelationFilter = {
|
|
every?: UserRoleWhereInput
|
|
some?: UserRoleWhereInput
|
|
none?: UserRoleWhereInput
|
|
}
|
|
|
|
export type SortOrderInput = {
|
|
sort: SortOrder
|
|
nulls?: NullsOrder
|
|
}
|
|
|
|
export type UserRoleOrderByRelationAggregateInput = {
|
|
_count?: SortOrder
|
|
}
|
|
|
|
export type UserCountOrderByAggregateInput = {
|
|
id?: SortOrder
|
|
email?: SortOrder
|
|
password?: SortOrder
|
|
firstName?: SortOrder
|
|
lastName?: SortOrder
|
|
isActive?: SortOrder
|
|
tokenInvalidatedAt?: SortOrder
|
|
customerId?: SortOrder
|
|
createdAt?: SortOrder
|
|
updatedAt?: SortOrder
|
|
}
|
|
|
|
export type UserAvgOrderByAggregateInput = {
|
|
id?: SortOrder
|
|
customerId?: SortOrder
|
|
}
|
|
|
|
export type UserMaxOrderByAggregateInput = {
|
|
id?: SortOrder
|
|
email?: SortOrder
|
|
password?: SortOrder
|
|
firstName?: SortOrder
|
|
lastName?: SortOrder
|
|
isActive?: SortOrder
|
|
tokenInvalidatedAt?: SortOrder
|
|
customerId?: SortOrder
|
|
createdAt?: SortOrder
|
|
updatedAt?: SortOrder
|
|
}
|
|
|
|
export type UserMinOrderByAggregateInput = {
|
|
id?: SortOrder
|
|
email?: SortOrder
|
|
password?: SortOrder
|
|
firstName?: SortOrder
|
|
lastName?: SortOrder
|
|
isActive?: SortOrder
|
|
tokenInvalidatedAt?: SortOrder
|
|
customerId?: SortOrder
|
|
createdAt?: SortOrder
|
|
updatedAt?: SortOrder
|
|
}
|
|
|
|
export type UserSumOrderByAggregateInput = {
|
|
id?: SortOrder
|
|
customerId?: SortOrder
|
|
}
|
|
|
|
export type BoolWithAggregatesFilter<$PrismaModel = never> = {
|
|
equals?: boolean | BooleanFieldRefInput<$PrismaModel>
|
|
not?: NestedBoolWithAggregatesFilter<$PrismaModel> | boolean
|
|
_count?: NestedIntFilter<$PrismaModel>
|
|
_min?: NestedBoolFilter<$PrismaModel>
|
|
_max?: NestedBoolFilter<$PrismaModel>
|
|
}
|
|
|
|
export type DateTimeNullableWithAggregatesFilter<$PrismaModel = never> = {
|
|
equals?: Date | string | DateTimeFieldRefInput<$PrismaModel> | null
|
|
in?: Date[] | string[] | null
|
|
notIn?: Date[] | string[] | null
|
|
lt?: Date | string | DateTimeFieldRefInput<$PrismaModel>
|
|
lte?: Date | string | DateTimeFieldRefInput<$PrismaModel>
|
|
gt?: Date | string | DateTimeFieldRefInput<$PrismaModel>
|
|
gte?: Date | string | DateTimeFieldRefInput<$PrismaModel>
|
|
not?: NestedDateTimeNullableWithAggregatesFilter<$PrismaModel> | Date | string | null
|
|
_count?: NestedIntNullableFilter<$PrismaModel>
|
|
_min?: NestedDateTimeNullableFilter<$PrismaModel>
|
|
_max?: NestedDateTimeNullableFilter<$PrismaModel>
|
|
}
|
|
|
|
export type IntNullableWithAggregatesFilter<$PrismaModel = never> = {
|
|
equals?: number | IntFieldRefInput<$PrismaModel> | null
|
|
in?: number[] | null
|
|
notIn?: number[] | null
|
|
lt?: number | IntFieldRefInput<$PrismaModel>
|
|
lte?: number | IntFieldRefInput<$PrismaModel>
|
|
gt?: number | IntFieldRefInput<$PrismaModel>
|
|
gte?: number | IntFieldRefInput<$PrismaModel>
|
|
not?: NestedIntNullableWithAggregatesFilter<$PrismaModel> | number | null
|
|
_count?: NestedIntNullableFilter<$PrismaModel>
|
|
_avg?: NestedFloatNullableFilter<$PrismaModel>
|
|
_sum?: NestedIntNullableFilter<$PrismaModel>
|
|
_min?: NestedIntNullableFilter<$PrismaModel>
|
|
_max?: NestedIntNullableFilter<$PrismaModel>
|
|
}
|
|
|
|
export type StringNullableFilter<$PrismaModel = never> = {
|
|
equals?: string | StringFieldRefInput<$PrismaModel> | null
|
|
in?: string[] | null
|
|
notIn?: string[] | null
|
|
lt?: string | StringFieldRefInput<$PrismaModel>
|
|
lte?: string | StringFieldRefInput<$PrismaModel>
|
|
gt?: string | StringFieldRefInput<$PrismaModel>
|
|
gte?: string | StringFieldRefInput<$PrismaModel>
|
|
contains?: string | StringFieldRefInput<$PrismaModel>
|
|
startsWith?: string | StringFieldRefInput<$PrismaModel>
|
|
endsWith?: string | StringFieldRefInput<$PrismaModel>
|
|
not?: NestedStringNullableFilter<$PrismaModel> | string | null
|
|
}
|
|
|
|
export type RolePermissionListRelationFilter = {
|
|
every?: RolePermissionWhereInput
|
|
some?: RolePermissionWhereInput
|
|
none?: RolePermissionWhereInput
|
|
}
|
|
|
|
export type RolePermissionOrderByRelationAggregateInput = {
|
|
_count?: SortOrder
|
|
}
|
|
|
|
export type RoleCountOrderByAggregateInput = {
|
|
id?: SortOrder
|
|
name?: SortOrder
|
|
description?: SortOrder
|
|
createdAt?: SortOrder
|
|
updatedAt?: SortOrder
|
|
}
|
|
|
|
export type RoleAvgOrderByAggregateInput = {
|
|
id?: SortOrder
|
|
}
|
|
|
|
export type RoleMaxOrderByAggregateInput = {
|
|
id?: SortOrder
|
|
name?: SortOrder
|
|
description?: SortOrder
|
|
createdAt?: SortOrder
|
|
updatedAt?: SortOrder
|
|
}
|
|
|
|
export type RoleMinOrderByAggregateInput = {
|
|
id?: SortOrder
|
|
name?: SortOrder
|
|
description?: SortOrder
|
|
createdAt?: SortOrder
|
|
updatedAt?: SortOrder
|
|
}
|
|
|
|
export type RoleSumOrderByAggregateInput = {
|
|
id?: SortOrder
|
|
}
|
|
|
|
export type StringNullableWithAggregatesFilter<$PrismaModel = never> = {
|
|
equals?: string | StringFieldRefInput<$PrismaModel> | null
|
|
in?: string[] | null
|
|
notIn?: string[] | null
|
|
lt?: string | StringFieldRefInput<$PrismaModel>
|
|
lte?: string | StringFieldRefInput<$PrismaModel>
|
|
gt?: string | StringFieldRefInput<$PrismaModel>
|
|
gte?: string | StringFieldRefInput<$PrismaModel>
|
|
contains?: string | StringFieldRefInput<$PrismaModel>
|
|
startsWith?: string | StringFieldRefInput<$PrismaModel>
|
|
endsWith?: string | StringFieldRefInput<$PrismaModel>
|
|
not?: NestedStringNullableWithAggregatesFilter<$PrismaModel> | string | null
|
|
_count?: NestedIntNullableFilter<$PrismaModel>
|
|
_min?: NestedStringNullableFilter<$PrismaModel>
|
|
_max?: NestedStringNullableFilter<$PrismaModel>
|
|
}
|
|
|
|
export type PermissionResourceActionCompoundUniqueInput = {
|
|
resource: string
|
|
action: string
|
|
}
|
|
|
|
export type PermissionCountOrderByAggregateInput = {
|
|
id?: SortOrder
|
|
resource?: SortOrder
|
|
action?: SortOrder
|
|
}
|
|
|
|
export type PermissionAvgOrderByAggregateInput = {
|
|
id?: SortOrder
|
|
}
|
|
|
|
export type PermissionMaxOrderByAggregateInput = {
|
|
id?: SortOrder
|
|
resource?: SortOrder
|
|
action?: SortOrder
|
|
}
|
|
|
|
export type PermissionMinOrderByAggregateInput = {
|
|
id?: SortOrder
|
|
resource?: SortOrder
|
|
action?: SortOrder
|
|
}
|
|
|
|
export type PermissionSumOrderByAggregateInput = {
|
|
id?: SortOrder
|
|
}
|
|
|
|
export type RoleRelationFilter = {
|
|
is?: RoleWhereInput
|
|
isNot?: RoleWhereInput
|
|
}
|
|
|
|
export type PermissionRelationFilter = {
|
|
is?: PermissionWhereInput
|
|
isNot?: PermissionWhereInput
|
|
}
|
|
|
|
export type RolePermissionRoleIdPermissionIdCompoundUniqueInput = {
|
|
roleId: number
|
|
permissionId: number
|
|
}
|
|
|
|
export type RolePermissionCountOrderByAggregateInput = {
|
|
roleId?: SortOrder
|
|
permissionId?: SortOrder
|
|
}
|
|
|
|
export type RolePermissionAvgOrderByAggregateInput = {
|
|
roleId?: SortOrder
|
|
permissionId?: SortOrder
|
|
}
|
|
|
|
export type RolePermissionMaxOrderByAggregateInput = {
|
|
roleId?: SortOrder
|
|
permissionId?: SortOrder
|
|
}
|
|
|
|
export type RolePermissionMinOrderByAggregateInput = {
|
|
roleId?: SortOrder
|
|
permissionId?: SortOrder
|
|
}
|
|
|
|
export type RolePermissionSumOrderByAggregateInput = {
|
|
roleId?: SortOrder
|
|
permissionId?: SortOrder
|
|
}
|
|
|
|
export type UserRelationFilter = {
|
|
is?: UserWhereInput
|
|
isNot?: UserWhereInput
|
|
}
|
|
|
|
export type UserRoleUserIdRoleIdCompoundUniqueInput = {
|
|
userId: number
|
|
roleId: number
|
|
}
|
|
|
|
export type UserRoleCountOrderByAggregateInput = {
|
|
userId?: SortOrder
|
|
roleId?: SortOrder
|
|
}
|
|
|
|
export type UserRoleAvgOrderByAggregateInput = {
|
|
userId?: SortOrder
|
|
roleId?: SortOrder
|
|
}
|
|
|
|
export type UserRoleMaxOrderByAggregateInput = {
|
|
userId?: SortOrder
|
|
roleId?: SortOrder
|
|
}
|
|
|
|
export type UserRoleMinOrderByAggregateInput = {
|
|
userId?: SortOrder
|
|
roleId?: SortOrder
|
|
}
|
|
|
|
export type UserRoleSumOrderByAggregateInput = {
|
|
userId?: SortOrder
|
|
roleId?: SortOrder
|
|
}
|
|
|
|
export type EnumCustomerTypeFilter<$PrismaModel = never> = {
|
|
equals?: $Enums.CustomerType | EnumCustomerTypeFieldRefInput<$PrismaModel>
|
|
in?: $Enums.CustomerType[]
|
|
notIn?: $Enums.CustomerType[]
|
|
not?: NestedEnumCustomerTypeFilter<$PrismaModel> | $Enums.CustomerType
|
|
}
|
|
|
|
export type UserNullableRelationFilter = {
|
|
is?: UserWhereInput | null
|
|
isNot?: UserWhereInput | null
|
|
}
|
|
|
|
export type AddressListRelationFilter = {
|
|
every?: AddressWhereInput
|
|
some?: AddressWhereInput
|
|
none?: AddressWhereInput
|
|
}
|
|
|
|
export type BankCardListRelationFilter = {
|
|
every?: BankCardWhereInput
|
|
some?: BankCardWhereInput
|
|
none?: BankCardWhereInput
|
|
}
|
|
|
|
export type IdentityDocumentListRelationFilter = {
|
|
every?: IdentityDocumentWhereInput
|
|
some?: IdentityDocumentWhereInput
|
|
none?: IdentityDocumentWhereInput
|
|
}
|
|
|
|
export type MeterListRelationFilter = {
|
|
every?: MeterWhereInput
|
|
some?: MeterWhereInput
|
|
none?: MeterWhereInput
|
|
}
|
|
|
|
export type StressfreiEmailListRelationFilter = {
|
|
every?: StressfreiEmailWhereInput
|
|
some?: StressfreiEmailWhereInput
|
|
none?: StressfreiEmailWhereInput
|
|
}
|
|
|
|
export type ContractListRelationFilter = {
|
|
every?: ContractWhereInput
|
|
some?: ContractWhereInput
|
|
none?: ContractWhereInput
|
|
}
|
|
|
|
export type CustomerRepresentativeListRelationFilter = {
|
|
every?: CustomerRepresentativeWhereInput
|
|
some?: CustomerRepresentativeWhereInput
|
|
none?: CustomerRepresentativeWhereInput
|
|
}
|
|
|
|
export type AddressOrderByRelationAggregateInput = {
|
|
_count?: SortOrder
|
|
}
|
|
|
|
export type BankCardOrderByRelationAggregateInput = {
|
|
_count?: SortOrder
|
|
}
|
|
|
|
export type IdentityDocumentOrderByRelationAggregateInput = {
|
|
_count?: SortOrder
|
|
}
|
|
|
|
export type MeterOrderByRelationAggregateInput = {
|
|
_count?: SortOrder
|
|
}
|
|
|
|
export type StressfreiEmailOrderByRelationAggregateInput = {
|
|
_count?: SortOrder
|
|
}
|
|
|
|
export type ContractOrderByRelationAggregateInput = {
|
|
_count?: SortOrder
|
|
}
|
|
|
|
export type CustomerRepresentativeOrderByRelationAggregateInput = {
|
|
_count?: SortOrder
|
|
}
|
|
|
|
export type CustomerCountOrderByAggregateInput = {
|
|
id?: SortOrder
|
|
customerNumber?: SortOrder
|
|
type?: SortOrder
|
|
salutation?: SortOrder
|
|
firstName?: SortOrder
|
|
lastName?: SortOrder
|
|
companyName?: SortOrder
|
|
foundingDate?: SortOrder
|
|
birthDate?: SortOrder
|
|
birthPlace?: SortOrder
|
|
email?: SortOrder
|
|
phone?: SortOrder
|
|
mobile?: SortOrder
|
|
taxNumber?: SortOrder
|
|
businessRegistrationPath?: SortOrder
|
|
commercialRegisterPath?: SortOrder
|
|
commercialRegisterNumber?: SortOrder
|
|
privacyPolicyPath?: SortOrder
|
|
notes?: SortOrder
|
|
portalEnabled?: SortOrder
|
|
portalEmail?: SortOrder
|
|
portalPasswordHash?: SortOrder
|
|
portalPasswordEncrypted?: SortOrder
|
|
portalLastLogin?: SortOrder
|
|
createdAt?: SortOrder
|
|
updatedAt?: SortOrder
|
|
}
|
|
|
|
export type CustomerAvgOrderByAggregateInput = {
|
|
id?: SortOrder
|
|
}
|
|
|
|
export type CustomerMaxOrderByAggregateInput = {
|
|
id?: SortOrder
|
|
customerNumber?: SortOrder
|
|
type?: SortOrder
|
|
salutation?: SortOrder
|
|
firstName?: SortOrder
|
|
lastName?: SortOrder
|
|
companyName?: SortOrder
|
|
foundingDate?: SortOrder
|
|
birthDate?: SortOrder
|
|
birthPlace?: SortOrder
|
|
email?: SortOrder
|
|
phone?: SortOrder
|
|
mobile?: SortOrder
|
|
taxNumber?: SortOrder
|
|
businessRegistrationPath?: SortOrder
|
|
commercialRegisterPath?: SortOrder
|
|
commercialRegisterNumber?: SortOrder
|
|
privacyPolicyPath?: SortOrder
|
|
notes?: SortOrder
|
|
portalEnabled?: SortOrder
|
|
portalEmail?: SortOrder
|
|
portalPasswordHash?: SortOrder
|
|
portalPasswordEncrypted?: SortOrder
|
|
portalLastLogin?: SortOrder
|
|
createdAt?: SortOrder
|
|
updatedAt?: SortOrder
|
|
}
|
|
|
|
export type CustomerMinOrderByAggregateInput = {
|
|
id?: SortOrder
|
|
customerNumber?: SortOrder
|
|
type?: SortOrder
|
|
salutation?: SortOrder
|
|
firstName?: SortOrder
|
|
lastName?: SortOrder
|
|
companyName?: SortOrder
|
|
foundingDate?: SortOrder
|
|
birthDate?: SortOrder
|
|
birthPlace?: SortOrder
|
|
email?: SortOrder
|
|
phone?: SortOrder
|
|
mobile?: SortOrder
|
|
taxNumber?: SortOrder
|
|
businessRegistrationPath?: SortOrder
|
|
commercialRegisterPath?: SortOrder
|
|
commercialRegisterNumber?: SortOrder
|
|
privacyPolicyPath?: SortOrder
|
|
notes?: SortOrder
|
|
portalEnabled?: SortOrder
|
|
portalEmail?: SortOrder
|
|
portalPasswordHash?: SortOrder
|
|
portalPasswordEncrypted?: SortOrder
|
|
portalLastLogin?: SortOrder
|
|
createdAt?: SortOrder
|
|
updatedAt?: SortOrder
|
|
}
|
|
|
|
export type CustomerSumOrderByAggregateInput = {
|
|
id?: SortOrder
|
|
}
|
|
|
|
export type EnumCustomerTypeWithAggregatesFilter<$PrismaModel = never> = {
|
|
equals?: $Enums.CustomerType | EnumCustomerTypeFieldRefInput<$PrismaModel>
|
|
in?: $Enums.CustomerType[]
|
|
notIn?: $Enums.CustomerType[]
|
|
not?: NestedEnumCustomerTypeWithAggregatesFilter<$PrismaModel> | $Enums.CustomerType
|
|
_count?: NestedIntFilter<$PrismaModel>
|
|
_min?: NestedEnumCustomerTypeFilter<$PrismaModel>
|
|
_max?: NestedEnumCustomerTypeFilter<$PrismaModel>
|
|
}
|
|
|
|
export type CustomerRelationFilter = {
|
|
is?: CustomerWhereInput
|
|
isNot?: CustomerWhereInput
|
|
}
|
|
|
|
export type CustomerRepresentativeCustomerIdRepresentativeIdCompoundUniqueInput = {
|
|
customerId: number
|
|
representativeId: number
|
|
}
|
|
|
|
export type CustomerRepresentativeCountOrderByAggregateInput = {
|
|
id?: SortOrder
|
|
customerId?: SortOrder
|
|
representativeId?: SortOrder
|
|
notes?: SortOrder
|
|
isActive?: SortOrder
|
|
createdAt?: SortOrder
|
|
updatedAt?: SortOrder
|
|
}
|
|
|
|
export type CustomerRepresentativeAvgOrderByAggregateInput = {
|
|
id?: SortOrder
|
|
customerId?: SortOrder
|
|
representativeId?: SortOrder
|
|
}
|
|
|
|
export type CustomerRepresentativeMaxOrderByAggregateInput = {
|
|
id?: SortOrder
|
|
customerId?: SortOrder
|
|
representativeId?: SortOrder
|
|
notes?: SortOrder
|
|
isActive?: SortOrder
|
|
createdAt?: SortOrder
|
|
updatedAt?: SortOrder
|
|
}
|
|
|
|
export type CustomerRepresentativeMinOrderByAggregateInput = {
|
|
id?: SortOrder
|
|
customerId?: SortOrder
|
|
representativeId?: SortOrder
|
|
notes?: SortOrder
|
|
isActive?: SortOrder
|
|
createdAt?: SortOrder
|
|
updatedAt?: SortOrder
|
|
}
|
|
|
|
export type CustomerRepresentativeSumOrderByAggregateInput = {
|
|
id?: SortOrder
|
|
customerId?: SortOrder
|
|
representativeId?: SortOrder
|
|
}
|
|
|
|
export type EnumAddressTypeFilter<$PrismaModel = never> = {
|
|
equals?: $Enums.AddressType | EnumAddressTypeFieldRefInput<$PrismaModel>
|
|
in?: $Enums.AddressType[]
|
|
notIn?: $Enums.AddressType[]
|
|
not?: NestedEnumAddressTypeFilter<$PrismaModel> | $Enums.AddressType
|
|
}
|
|
|
|
export type AddressCountOrderByAggregateInput = {
|
|
id?: SortOrder
|
|
customerId?: SortOrder
|
|
type?: SortOrder
|
|
street?: SortOrder
|
|
houseNumber?: SortOrder
|
|
postalCode?: SortOrder
|
|
city?: SortOrder
|
|
country?: SortOrder
|
|
isDefault?: SortOrder
|
|
createdAt?: SortOrder
|
|
updatedAt?: SortOrder
|
|
}
|
|
|
|
export type AddressAvgOrderByAggregateInput = {
|
|
id?: SortOrder
|
|
customerId?: SortOrder
|
|
}
|
|
|
|
export type AddressMaxOrderByAggregateInput = {
|
|
id?: SortOrder
|
|
customerId?: SortOrder
|
|
type?: SortOrder
|
|
street?: SortOrder
|
|
houseNumber?: SortOrder
|
|
postalCode?: SortOrder
|
|
city?: SortOrder
|
|
country?: SortOrder
|
|
isDefault?: SortOrder
|
|
createdAt?: SortOrder
|
|
updatedAt?: SortOrder
|
|
}
|
|
|
|
export type AddressMinOrderByAggregateInput = {
|
|
id?: SortOrder
|
|
customerId?: SortOrder
|
|
type?: SortOrder
|
|
street?: SortOrder
|
|
houseNumber?: SortOrder
|
|
postalCode?: SortOrder
|
|
city?: SortOrder
|
|
country?: SortOrder
|
|
isDefault?: SortOrder
|
|
createdAt?: SortOrder
|
|
updatedAt?: SortOrder
|
|
}
|
|
|
|
export type AddressSumOrderByAggregateInput = {
|
|
id?: SortOrder
|
|
customerId?: SortOrder
|
|
}
|
|
|
|
export type EnumAddressTypeWithAggregatesFilter<$PrismaModel = never> = {
|
|
equals?: $Enums.AddressType | EnumAddressTypeFieldRefInput<$PrismaModel>
|
|
in?: $Enums.AddressType[]
|
|
notIn?: $Enums.AddressType[]
|
|
not?: NestedEnumAddressTypeWithAggregatesFilter<$PrismaModel> | $Enums.AddressType
|
|
_count?: NestedIntFilter<$PrismaModel>
|
|
_min?: NestedEnumAddressTypeFilter<$PrismaModel>
|
|
_max?: NestedEnumAddressTypeFilter<$PrismaModel>
|
|
}
|
|
|
|
export type BankCardCountOrderByAggregateInput = {
|
|
id?: SortOrder
|
|
customerId?: SortOrder
|
|
accountHolder?: SortOrder
|
|
iban?: SortOrder
|
|
bic?: SortOrder
|
|
bankName?: SortOrder
|
|
expiryDate?: SortOrder
|
|
documentPath?: SortOrder
|
|
isActive?: SortOrder
|
|
createdAt?: SortOrder
|
|
updatedAt?: SortOrder
|
|
}
|
|
|
|
export type BankCardAvgOrderByAggregateInput = {
|
|
id?: SortOrder
|
|
customerId?: SortOrder
|
|
}
|
|
|
|
export type BankCardMaxOrderByAggregateInput = {
|
|
id?: SortOrder
|
|
customerId?: SortOrder
|
|
accountHolder?: SortOrder
|
|
iban?: SortOrder
|
|
bic?: SortOrder
|
|
bankName?: SortOrder
|
|
expiryDate?: SortOrder
|
|
documentPath?: SortOrder
|
|
isActive?: SortOrder
|
|
createdAt?: SortOrder
|
|
updatedAt?: SortOrder
|
|
}
|
|
|
|
export type BankCardMinOrderByAggregateInput = {
|
|
id?: SortOrder
|
|
customerId?: SortOrder
|
|
accountHolder?: SortOrder
|
|
iban?: SortOrder
|
|
bic?: SortOrder
|
|
bankName?: SortOrder
|
|
expiryDate?: SortOrder
|
|
documentPath?: SortOrder
|
|
isActive?: SortOrder
|
|
createdAt?: SortOrder
|
|
updatedAt?: SortOrder
|
|
}
|
|
|
|
export type BankCardSumOrderByAggregateInput = {
|
|
id?: SortOrder
|
|
customerId?: SortOrder
|
|
}
|
|
|
|
export type EnumDocumentTypeFilter<$PrismaModel = never> = {
|
|
equals?: $Enums.DocumentType | EnumDocumentTypeFieldRefInput<$PrismaModel>
|
|
in?: $Enums.DocumentType[]
|
|
notIn?: $Enums.DocumentType[]
|
|
not?: NestedEnumDocumentTypeFilter<$PrismaModel> | $Enums.DocumentType
|
|
}
|
|
|
|
export type IdentityDocumentCountOrderByAggregateInput = {
|
|
id?: SortOrder
|
|
customerId?: SortOrder
|
|
type?: SortOrder
|
|
documentNumber?: SortOrder
|
|
issuingAuthority?: SortOrder
|
|
issueDate?: SortOrder
|
|
expiryDate?: SortOrder
|
|
documentPath?: SortOrder
|
|
isActive?: SortOrder
|
|
licenseClasses?: SortOrder
|
|
licenseIssueDate?: SortOrder
|
|
createdAt?: SortOrder
|
|
updatedAt?: SortOrder
|
|
}
|
|
|
|
export type IdentityDocumentAvgOrderByAggregateInput = {
|
|
id?: SortOrder
|
|
customerId?: SortOrder
|
|
}
|
|
|
|
export type IdentityDocumentMaxOrderByAggregateInput = {
|
|
id?: SortOrder
|
|
customerId?: SortOrder
|
|
type?: SortOrder
|
|
documentNumber?: SortOrder
|
|
issuingAuthority?: SortOrder
|
|
issueDate?: SortOrder
|
|
expiryDate?: SortOrder
|
|
documentPath?: SortOrder
|
|
isActive?: SortOrder
|
|
licenseClasses?: SortOrder
|
|
licenseIssueDate?: SortOrder
|
|
createdAt?: SortOrder
|
|
updatedAt?: SortOrder
|
|
}
|
|
|
|
export type IdentityDocumentMinOrderByAggregateInput = {
|
|
id?: SortOrder
|
|
customerId?: SortOrder
|
|
type?: SortOrder
|
|
documentNumber?: SortOrder
|
|
issuingAuthority?: SortOrder
|
|
issueDate?: SortOrder
|
|
expiryDate?: SortOrder
|
|
documentPath?: SortOrder
|
|
isActive?: SortOrder
|
|
licenseClasses?: SortOrder
|
|
licenseIssueDate?: SortOrder
|
|
createdAt?: SortOrder
|
|
updatedAt?: SortOrder
|
|
}
|
|
|
|
export type IdentityDocumentSumOrderByAggregateInput = {
|
|
id?: SortOrder
|
|
customerId?: SortOrder
|
|
}
|
|
|
|
export type EnumDocumentTypeWithAggregatesFilter<$PrismaModel = never> = {
|
|
equals?: $Enums.DocumentType | EnumDocumentTypeFieldRefInput<$PrismaModel>
|
|
in?: $Enums.DocumentType[]
|
|
notIn?: $Enums.DocumentType[]
|
|
not?: NestedEnumDocumentTypeWithAggregatesFilter<$PrismaModel> | $Enums.DocumentType
|
|
_count?: NestedIntFilter<$PrismaModel>
|
|
_min?: NestedEnumDocumentTypeFilter<$PrismaModel>
|
|
_max?: NestedEnumDocumentTypeFilter<$PrismaModel>
|
|
}
|
|
|
|
export type EnumEmailProviderTypeFilter<$PrismaModel = never> = {
|
|
equals?: $Enums.EmailProviderType | EnumEmailProviderTypeFieldRefInput<$PrismaModel>
|
|
in?: $Enums.EmailProviderType[]
|
|
notIn?: $Enums.EmailProviderType[]
|
|
not?: NestedEnumEmailProviderTypeFilter<$PrismaModel> | $Enums.EmailProviderType
|
|
}
|
|
|
|
export type EnumMailEncryptionFilter<$PrismaModel = never> = {
|
|
equals?: $Enums.MailEncryption | EnumMailEncryptionFieldRefInput<$PrismaModel>
|
|
in?: $Enums.MailEncryption[]
|
|
notIn?: $Enums.MailEncryption[]
|
|
not?: NestedEnumMailEncryptionFilter<$PrismaModel> | $Enums.MailEncryption
|
|
}
|
|
|
|
export type EmailProviderConfigCountOrderByAggregateInput = {
|
|
id?: SortOrder
|
|
name?: SortOrder
|
|
type?: SortOrder
|
|
apiUrl?: SortOrder
|
|
apiKey?: SortOrder
|
|
username?: SortOrder
|
|
passwordEncrypted?: SortOrder
|
|
domain?: SortOrder
|
|
defaultForwardEmail?: SortOrder
|
|
imapServer?: SortOrder
|
|
imapPort?: SortOrder
|
|
smtpServer?: SortOrder
|
|
smtpPort?: SortOrder
|
|
imapEncryption?: SortOrder
|
|
smtpEncryption?: SortOrder
|
|
allowSelfSignedCerts?: SortOrder
|
|
isActive?: SortOrder
|
|
isDefault?: SortOrder
|
|
createdAt?: SortOrder
|
|
updatedAt?: SortOrder
|
|
}
|
|
|
|
export type EmailProviderConfigAvgOrderByAggregateInput = {
|
|
id?: SortOrder
|
|
imapPort?: SortOrder
|
|
smtpPort?: SortOrder
|
|
}
|
|
|
|
export type EmailProviderConfigMaxOrderByAggregateInput = {
|
|
id?: SortOrder
|
|
name?: SortOrder
|
|
type?: SortOrder
|
|
apiUrl?: SortOrder
|
|
apiKey?: SortOrder
|
|
username?: SortOrder
|
|
passwordEncrypted?: SortOrder
|
|
domain?: SortOrder
|
|
defaultForwardEmail?: SortOrder
|
|
imapServer?: SortOrder
|
|
imapPort?: SortOrder
|
|
smtpServer?: SortOrder
|
|
smtpPort?: SortOrder
|
|
imapEncryption?: SortOrder
|
|
smtpEncryption?: SortOrder
|
|
allowSelfSignedCerts?: SortOrder
|
|
isActive?: SortOrder
|
|
isDefault?: SortOrder
|
|
createdAt?: SortOrder
|
|
updatedAt?: SortOrder
|
|
}
|
|
|
|
export type EmailProviderConfigMinOrderByAggregateInput = {
|
|
id?: SortOrder
|
|
name?: SortOrder
|
|
type?: SortOrder
|
|
apiUrl?: SortOrder
|
|
apiKey?: SortOrder
|
|
username?: SortOrder
|
|
passwordEncrypted?: SortOrder
|
|
domain?: SortOrder
|
|
defaultForwardEmail?: SortOrder
|
|
imapServer?: SortOrder
|
|
imapPort?: SortOrder
|
|
smtpServer?: SortOrder
|
|
smtpPort?: SortOrder
|
|
imapEncryption?: SortOrder
|
|
smtpEncryption?: SortOrder
|
|
allowSelfSignedCerts?: SortOrder
|
|
isActive?: SortOrder
|
|
isDefault?: SortOrder
|
|
createdAt?: SortOrder
|
|
updatedAt?: SortOrder
|
|
}
|
|
|
|
export type EmailProviderConfigSumOrderByAggregateInput = {
|
|
id?: SortOrder
|
|
imapPort?: SortOrder
|
|
smtpPort?: SortOrder
|
|
}
|
|
|
|
export type EnumEmailProviderTypeWithAggregatesFilter<$PrismaModel = never> = {
|
|
equals?: $Enums.EmailProviderType | EnumEmailProviderTypeFieldRefInput<$PrismaModel>
|
|
in?: $Enums.EmailProviderType[]
|
|
notIn?: $Enums.EmailProviderType[]
|
|
not?: NestedEnumEmailProviderTypeWithAggregatesFilter<$PrismaModel> | $Enums.EmailProviderType
|
|
_count?: NestedIntFilter<$PrismaModel>
|
|
_min?: NestedEnumEmailProviderTypeFilter<$PrismaModel>
|
|
_max?: NestedEnumEmailProviderTypeFilter<$PrismaModel>
|
|
}
|
|
|
|
export type EnumMailEncryptionWithAggregatesFilter<$PrismaModel = never> = {
|
|
equals?: $Enums.MailEncryption | EnumMailEncryptionFieldRefInput<$PrismaModel>
|
|
in?: $Enums.MailEncryption[]
|
|
notIn?: $Enums.MailEncryption[]
|
|
not?: NestedEnumMailEncryptionWithAggregatesFilter<$PrismaModel> | $Enums.MailEncryption
|
|
_count?: NestedIntFilter<$PrismaModel>
|
|
_min?: NestedEnumMailEncryptionFilter<$PrismaModel>
|
|
_max?: NestedEnumMailEncryptionFilter<$PrismaModel>
|
|
}
|
|
|
|
export type CachedEmailListRelationFilter = {
|
|
every?: CachedEmailWhereInput
|
|
some?: CachedEmailWhereInput
|
|
none?: CachedEmailWhereInput
|
|
}
|
|
|
|
export type CachedEmailOrderByRelationAggregateInput = {
|
|
_count?: SortOrder
|
|
}
|
|
|
|
export type StressfreiEmailCountOrderByAggregateInput = {
|
|
id?: SortOrder
|
|
customerId?: SortOrder
|
|
email?: SortOrder
|
|
platform?: SortOrder
|
|
notes?: SortOrder
|
|
isActive?: SortOrder
|
|
isProvisioned?: SortOrder
|
|
provisionedAt?: SortOrder
|
|
provisionError?: SortOrder
|
|
hasMailbox?: SortOrder
|
|
emailPasswordEncrypted?: SortOrder
|
|
createdAt?: SortOrder
|
|
updatedAt?: SortOrder
|
|
}
|
|
|
|
export type StressfreiEmailAvgOrderByAggregateInput = {
|
|
id?: SortOrder
|
|
customerId?: SortOrder
|
|
}
|
|
|
|
export type StressfreiEmailMaxOrderByAggregateInput = {
|
|
id?: SortOrder
|
|
customerId?: SortOrder
|
|
email?: SortOrder
|
|
platform?: SortOrder
|
|
notes?: SortOrder
|
|
isActive?: SortOrder
|
|
isProvisioned?: SortOrder
|
|
provisionedAt?: SortOrder
|
|
provisionError?: SortOrder
|
|
hasMailbox?: SortOrder
|
|
emailPasswordEncrypted?: SortOrder
|
|
createdAt?: SortOrder
|
|
updatedAt?: SortOrder
|
|
}
|
|
|
|
export type StressfreiEmailMinOrderByAggregateInput = {
|
|
id?: SortOrder
|
|
customerId?: SortOrder
|
|
email?: SortOrder
|
|
platform?: SortOrder
|
|
notes?: SortOrder
|
|
isActive?: SortOrder
|
|
isProvisioned?: SortOrder
|
|
provisionedAt?: SortOrder
|
|
provisionError?: SortOrder
|
|
hasMailbox?: SortOrder
|
|
emailPasswordEncrypted?: SortOrder
|
|
createdAt?: SortOrder
|
|
updatedAt?: SortOrder
|
|
}
|
|
|
|
export type StressfreiEmailSumOrderByAggregateInput = {
|
|
id?: SortOrder
|
|
customerId?: SortOrder
|
|
}
|
|
|
|
export type EnumEmailFolderFilter<$PrismaModel = never> = {
|
|
equals?: $Enums.EmailFolder | EnumEmailFolderFieldRefInput<$PrismaModel>
|
|
in?: $Enums.EmailFolder[]
|
|
notIn?: $Enums.EmailFolder[]
|
|
not?: NestedEnumEmailFolderFilter<$PrismaModel> | $Enums.EmailFolder
|
|
}
|
|
|
|
export type StressfreiEmailRelationFilter = {
|
|
is?: StressfreiEmailWhereInput
|
|
isNot?: StressfreiEmailWhereInput
|
|
}
|
|
|
|
export type ContractNullableRelationFilter = {
|
|
is?: ContractWhereInput | null
|
|
isNot?: ContractWhereInput | null
|
|
}
|
|
|
|
export type CachedEmailStressfreiEmailIdMessageIdFolderCompoundUniqueInput = {
|
|
stressfreiEmailId: number
|
|
messageId: string
|
|
folder: $Enums.EmailFolder
|
|
}
|
|
|
|
export type CachedEmailCountOrderByAggregateInput = {
|
|
id?: SortOrder
|
|
stressfreiEmailId?: SortOrder
|
|
folder?: SortOrder
|
|
messageId?: SortOrder
|
|
uid?: SortOrder
|
|
subject?: SortOrder
|
|
fromAddress?: SortOrder
|
|
fromName?: SortOrder
|
|
toAddresses?: SortOrder
|
|
ccAddresses?: SortOrder
|
|
receivedAt?: SortOrder
|
|
textBody?: SortOrder
|
|
htmlBody?: SortOrder
|
|
hasAttachments?: SortOrder
|
|
attachmentNames?: SortOrder
|
|
contractId?: SortOrder
|
|
assignedAt?: SortOrder
|
|
assignedBy?: SortOrder
|
|
isAutoAssigned?: SortOrder
|
|
isRead?: SortOrder
|
|
isStarred?: SortOrder
|
|
isDeleted?: SortOrder
|
|
deletedAt?: SortOrder
|
|
createdAt?: SortOrder
|
|
updatedAt?: SortOrder
|
|
}
|
|
|
|
export type CachedEmailAvgOrderByAggregateInput = {
|
|
id?: SortOrder
|
|
stressfreiEmailId?: SortOrder
|
|
uid?: SortOrder
|
|
contractId?: SortOrder
|
|
assignedBy?: SortOrder
|
|
}
|
|
|
|
export type CachedEmailMaxOrderByAggregateInput = {
|
|
id?: SortOrder
|
|
stressfreiEmailId?: SortOrder
|
|
folder?: SortOrder
|
|
messageId?: SortOrder
|
|
uid?: SortOrder
|
|
subject?: SortOrder
|
|
fromAddress?: SortOrder
|
|
fromName?: SortOrder
|
|
toAddresses?: SortOrder
|
|
ccAddresses?: SortOrder
|
|
receivedAt?: SortOrder
|
|
textBody?: SortOrder
|
|
htmlBody?: SortOrder
|
|
hasAttachments?: SortOrder
|
|
attachmentNames?: SortOrder
|
|
contractId?: SortOrder
|
|
assignedAt?: SortOrder
|
|
assignedBy?: SortOrder
|
|
isAutoAssigned?: SortOrder
|
|
isRead?: SortOrder
|
|
isStarred?: SortOrder
|
|
isDeleted?: SortOrder
|
|
deletedAt?: SortOrder
|
|
createdAt?: SortOrder
|
|
updatedAt?: SortOrder
|
|
}
|
|
|
|
export type CachedEmailMinOrderByAggregateInput = {
|
|
id?: SortOrder
|
|
stressfreiEmailId?: SortOrder
|
|
folder?: SortOrder
|
|
messageId?: SortOrder
|
|
uid?: SortOrder
|
|
subject?: SortOrder
|
|
fromAddress?: SortOrder
|
|
fromName?: SortOrder
|
|
toAddresses?: SortOrder
|
|
ccAddresses?: SortOrder
|
|
receivedAt?: SortOrder
|
|
textBody?: SortOrder
|
|
htmlBody?: SortOrder
|
|
hasAttachments?: SortOrder
|
|
attachmentNames?: SortOrder
|
|
contractId?: SortOrder
|
|
assignedAt?: SortOrder
|
|
assignedBy?: SortOrder
|
|
isAutoAssigned?: SortOrder
|
|
isRead?: SortOrder
|
|
isStarred?: SortOrder
|
|
isDeleted?: SortOrder
|
|
deletedAt?: SortOrder
|
|
createdAt?: SortOrder
|
|
updatedAt?: SortOrder
|
|
}
|
|
|
|
export type CachedEmailSumOrderByAggregateInput = {
|
|
id?: SortOrder
|
|
stressfreiEmailId?: SortOrder
|
|
uid?: SortOrder
|
|
contractId?: SortOrder
|
|
assignedBy?: SortOrder
|
|
}
|
|
|
|
export type EnumEmailFolderWithAggregatesFilter<$PrismaModel = never> = {
|
|
equals?: $Enums.EmailFolder | EnumEmailFolderFieldRefInput<$PrismaModel>
|
|
in?: $Enums.EmailFolder[]
|
|
notIn?: $Enums.EmailFolder[]
|
|
not?: NestedEnumEmailFolderWithAggregatesFilter<$PrismaModel> | $Enums.EmailFolder
|
|
_count?: NestedIntFilter<$PrismaModel>
|
|
_min?: NestedEnumEmailFolderFilter<$PrismaModel>
|
|
_max?: NestedEnumEmailFolderFilter<$PrismaModel>
|
|
}
|
|
|
|
export type EnumMeterTypeFilter<$PrismaModel = never> = {
|
|
equals?: $Enums.MeterType | EnumMeterTypeFieldRefInput<$PrismaModel>
|
|
in?: $Enums.MeterType[]
|
|
notIn?: $Enums.MeterType[]
|
|
not?: NestedEnumMeterTypeFilter<$PrismaModel> | $Enums.MeterType
|
|
}
|
|
|
|
export type MeterReadingListRelationFilter = {
|
|
every?: MeterReadingWhereInput
|
|
some?: MeterReadingWhereInput
|
|
none?: MeterReadingWhereInput
|
|
}
|
|
|
|
export type EnergyContractDetailsListRelationFilter = {
|
|
every?: EnergyContractDetailsWhereInput
|
|
some?: EnergyContractDetailsWhereInput
|
|
none?: EnergyContractDetailsWhereInput
|
|
}
|
|
|
|
export type MeterReadingOrderByRelationAggregateInput = {
|
|
_count?: SortOrder
|
|
}
|
|
|
|
export type EnergyContractDetailsOrderByRelationAggregateInput = {
|
|
_count?: SortOrder
|
|
}
|
|
|
|
export type MeterCountOrderByAggregateInput = {
|
|
id?: SortOrder
|
|
customerId?: SortOrder
|
|
meterNumber?: SortOrder
|
|
type?: SortOrder
|
|
location?: SortOrder
|
|
isActive?: SortOrder
|
|
createdAt?: SortOrder
|
|
updatedAt?: SortOrder
|
|
}
|
|
|
|
export type MeterAvgOrderByAggregateInput = {
|
|
id?: SortOrder
|
|
customerId?: SortOrder
|
|
}
|
|
|
|
export type MeterMaxOrderByAggregateInput = {
|
|
id?: SortOrder
|
|
customerId?: SortOrder
|
|
meterNumber?: SortOrder
|
|
type?: SortOrder
|
|
location?: SortOrder
|
|
isActive?: SortOrder
|
|
createdAt?: SortOrder
|
|
updatedAt?: SortOrder
|
|
}
|
|
|
|
export type MeterMinOrderByAggregateInput = {
|
|
id?: SortOrder
|
|
customerId?: SortOrder
|
|
meterNumber?: SortOrder
|
|
type?: SortOrder
|
|
location?: SortOrder
|
|
isActive?: SortOrder
|
|
createdAt?: SortOrder
|
|
updatedAt?: SortOrder
|
|
}
|
|
|
|
export type MeterSumOrderByAggregateInput = {
|
|
id?: SortOrder
|
|
customerId?: SortOrder
|
|
}
|
|
|
|
export type EnumMeterTypeWithAggregatesFilter<$PrismaModel = never> = {
|
|
equals?: $Enums.MeterType | EnumMeterTypeFieldRefInput<$PrismaModel>
|
|
in?: $Enums.MeterType[]
|
|
notIn?: $Enums.MeterType[]
|
|
not?: NestedEnumMeterTypeWithAggregatesFilter<$PrismaModel> | $Enums.MeterType
|
|
_count?: NestedIntFilter<$PrismaModel>
|
|
_min?: NestedEnumMeterTypeFilter<$PrismaModel>
|
|
_max?: NestedEnumMeterTypeFilter<$PrismaModel>
|
|
}
|
|
|
|
export type FloatFilter<$PrismaModel = never> = {
|
|
equals?: number | FloatFieldRefInput<$PrismaModel>
|
|
in?: number[]
|
|
notIn?: number[]
|
|
lt?: number | FloatFieldRefInput<$PrismaModel>
|
|
lte?: number | FloatFieldRefInput<$PrismaModel>
|
|
gt?: number | FloatFieldRefInput<$PrismaModel>
|
|
gte?: number | FloatFieldRefInput<$PrismaModel>
|
|
not?: NestedFloatFilter<$PrismaModel> | number
|
|
}
|
|
|
|
export type MeterRelationFilter = {
|
|
is?: MeterWhereInput
|
|
isNot?: MeterWhereInput
|
|
}
|
|
|
|
export type MeterReadingCountOrderByAggregateInput = {
|
|
id?: SortOrder
|
|
meterId?: SortOrder
|
|
readingDate?: SortOrder
|
|
value?: SortOrder
|
|
unit?: SortOrder
|
|
notes?: SortOrder
|
|
createdAt?: SortOrder
|
|
}
|
|
|
|
export type MeterReadingAvgOrderByAggregateInput = {
|
|
id?: SortOrder
|
|
meterId?: SortOrder
|
|
value?: SortOrder
|
|
}
|
|
|
|
export type MeterReadingMaxOrderByAggregateInput = {
|
|
id?: SortOrder
|
|
meterId?: SortOrder
|
|
readingDate?: SortOrder
|
|
value?: SortOrder
|
|
unit?: SortOrder
|
|
notes?: SortOrder
|
|
createdAt?: SortOrder
|
|
}
|
|
|
|
export type MeterReadingMinOrderByAggregateInput = {
|
|
id?: SortOrder
|
|
meterId?: SortOrder
|
|
readingDate?: SortOrder
|
|
value?: SortOrder
|
|
unit?: SortOrder
|
|
notes?: SortOrder
|
|
createdAt?: SortOrder
|
|
}
|
|
|
|
export type MeterReadingSumOrderByAggregateInput = {
|
|
id?: SortOrder
|
|
meterId?: SortOrder
|
|
value?: SortOrder
|
|
}
|
|
|
|
export type FloatWithAggregatesFilter<$PrismaModel = never> = {
|
|
equals?: number | FloatFieldRefInput<$PrismaModel>
|
|
in?: number[]
|
|
notIn?: number[]
|
|
lt?: number | FloatFieldRefInput<$PrismaModel>
|
|
lte?: number | FloatFieldRefInput<$PrismaModel>
|
|
gt?: number | FloatFieldRefInput<$PrismaModel>
|
|
gte?: number | FloatFieldRefInput<$PrismaModel>
|
|
not?: NestedFloatWithAggregatesFilter<$PrismaModel> | number
|
|
_count?: NestedIntFilter<$PrismaModel>
|
|
_avg?: NestedFloatFilter<$PrismaModel>
|
|
_sum?: NestedFloatFilter<$PrismaModel>
|
|
_min?: NestedFloatFilter<$PrismaModel>
|
|
_max?: NestedFloatFilter<$PrismaModel>
|
|
}
|
|
|
|
export type SalesPlatformCountOrderByAggregateInput = {
|
|
id?: SortOrder
|
|
name?: SortOrder
|
|
contactInfo?: SortOrder
|
|
isActive?: SortOrder
|
|
createdAt?: SortOrder
|
|
updatedAt?: SortOrder
|
|
}
|
|
|
|
export type SalesPlatformAvgOrderByAggregateInput = {
|
|
id?: SortOrder
|
|
}
|
|
|
|
export type SalesPlatformMaxOrderByAggregateInput = {
|
|
id?: SortOrder
|
|
name?: SortOrder
|
|
contactInfo?: SortOrder
|
|
isActive?: SortOrder
|
|
createdAt?: SortOrder
|
|
updatedAt?: SortOrder
|
|
}
|
|
|
|
export type SalesPlatformMinOrderByAggregateInput = {
|
|
id?: SortOrder
|
|
name?: SortOrder
|
|
contactInfo?: SortOrder
|
|
isActive?: SortOrder
|
|
createdAt?: SortOrder
|
|
updatedAt?: SortOrder
|
|
}
|
|
|
|
export type SalesPlatformSumOrderByAggregateInput = {
|
|
id?: SortOrder
|
|
}
|
|
|
|
export type CancellationPeriodCountOrderByAggregateInput = {
|
|
id?: SortOrder
|
|
code?: SortOrder
|
|
description?: SortOrder
|
|
isActive?: SortOrder
|
|
createdAt?: SortOrder
|
|
updatedAt?: SortOrder
|
|
}
|
|
|
|
export type CancellationPeriodAvgOrderByAggregateInput = {
|
|
id?: SortOrder
|
|
}
|
|
|
|
export type CancellationPeriodMaxOrderByAggregateInput = {
|
|
id?: SortOrder
|
|
code?: SortOrder
|
|
description?: SortOrder
|
|
isActive?: SortOrder
|
|
createdAt?: SortOrder
|
|
updatedAt?: SortOrder
|
|
}
|
|
|
|
export type CancellationPeriodMinOrderByAggregateInput = {
|
|
id?: SortOrder
|
|
code?: SortOrder
|
|
description?: SortOrder
|
|
isActive?: SortOrder
|
|
createdAt?: SortOrder
|
|
updatedAt?: SortOrder
|
|
}
|
|
|
|
export type CancellationPeriodSumOrderByAggregateInput = {
|
|
id?: SortOrder
|
|
}
|
|
|
|
export type ContractDurationCountOrderByAggregateInput = {
|
|
id?: SortOrder
|
|
code?: SortOrder
|
|
description?: SortOrder
|
|
isActive?: SortOrder
|
|
createdAt?: SortOrder
|
|
updatedAt?: SortOrder
|
|
}
|
|
|
|
export type ContractDurationAvgOrderByAggregateInput = {
|
|
id?: SortOrder
|
|
}
|
|
|
|
export type ContractDurationMaxOrderByAggregateInput = {
|
|
id?: SortOrder
|
|
code?: SortOrder
|
|
description?: SortOrder
|
|
isActive?: SortOrder
|
|
createdAt?: SortOrder
|
|
updatedAt?: SortOrder
|
|
}
|
|
|
|
export type ContractDurationMinOrderByAggregateInput = {
|
|
id?: SortOrder
|
|
code?: SortOrder
|
|
description?: SortOrder
|
|
isActive?: SortOrder
|
|
createdAt?: SortOrder
|
|
updatedAt?: SortOrder
|
|
}
|
|
|
|
export type ContractDurationSumOrderByAggregateInput = {
|
|
id?: SortOrder
|
|
}
|
|
|
|
export type TariffListRelationFilter = {
|
|
every?: TariffWhereInput
|
|
some?: TariffWhereInput
|
|
none?: TariffWhereInput
|
|
}
|
|
|
|
export type TariffOrderByRelationAggregateInput = {
|
|
_count?: SortOrder
|
|
}
|
|
|
|
export type ProviderCountOrderByAggregateInput = {
|
|
id?: SortOrder
|
|
name?: SortOrder
|
|
portalUrl?: SortOrder
|
|
usernameFieldName?: SortOrder
|
|
passwordFieldName?: SortOrder
|
|
isActive?: SortOrder
|
|
createdAt?: SortOrder
|
|
updatedAt?: SortOrder
|
|
}
|
|
|
|
export type ProviderAvgOrderByAggregateInput = {
|
|
id?: SortOrder
|
|
}
|
|
|
|
export type ProviderMaxOrderByAggregateInput = {
|
|
id?: SortOrder
|
|
name?: SortOrder
|
|
portalUrl?: SortOrder
|
|
usernameFieldName?: SortOrder
|
|
passwordFieldName?: SortOrder
|
|
isActive?: SortOrder
|
|
createdAt?: SortOrder
|
|
updatedAt?: SortOrder
|
|
}
|
|
|
|
export type ProviderMinOrderByAggregateInput = {
|
|
id?: SortOrder
|
|
name?: SortOrder
|
|
portalUrl?: SortOrder
|
|
usernameFieldName?: SortOrder
|
|
passwordFieldName?: SortOrder
|
|
isActive?: SortOrder
|
|
createdAt?: SortOrder
|
|
updatedAt?: SortOrder
|
|
}
|
|
|
|
export type ProviderSumOrderByAggregateInput = {
|
|
id?: SortOrder
|
|
}
|
|
|
|
export type ProviderRelationFilter = {
|
|
is?: ProviderWhereInput
|
|
isNot?: ProviderWhereInput
|
|
}
|
|
|
|
export type TariffProviderIdNameCompoundUniqueInput = {
|
|
providerId: number
|
|
name: string
|
|
}
|
|
|
|
export type TariffCountOrderByAggregateInput = {
|
|
id?: SortOrder
|
|
providerId?: SortOrder
|
|
name?: SortOrder
|
|
isActive?: SortOrder
|
|
createdAt?: SortOrder
|
|
updatedAt?: SortOrder
|
|
}
|
|
|
|
export type TariffAvgOrderByAggregateInput = {
|
|
id?: SortOrder
|
|
providerId?: SortOrder
|
|
}
|
|
|
|
export type TariffMaxOrderByAggregateInput = {
|
|
id?: SortOrder
|
|
providerId?: SortOrder
|
|
name?: SortOrder
|
|
isActive?: SortOrder
|
|
createdAt?: SortOrder
|
|
updatedAt?: SortOrder
|
|
}
|
|
|
|
export type TariffMinOrderByAggregateInput = {
|
|
id?: SortOrder
|
|
providerId?: SortOrder
|
|
name?: SortOrder
|
|
isActive?: SortOrder
|
|
createdAt?: SortOrder
|
|
updatedAt?: SortOrder
|
|
}
|
|
|
|
export type TariffSumOrderByAggregateInput = {
|
|
id?: SortOrder
|
|
providerId?: SortOrder
|
|
}
|
|
|
|
export type ContractCategoryCountOrderByAggregateInput = {
|
|
id?: SortOrder
|
|
code?: SortOrder
|
|
name?: SortOrder
|
|
icon?: SortOrder
|
|
color?: SortOrder
|
|
sortOrder?: SortOrder
|
|
isActive?: SortOrder
|
|
createdAt?: SortOrder
|
|
updatedAt?: SortOrder
|
|
}
|
|
|
|
export type ContractCategoryAvgOrderByAggregateInput = {
|
|
id?: SortOrder
|
|
sortOrder?: SortOrder
|
|
}
|
|
|
|
export type ContractCategoryMaxOrderByAggregateInput = {
|
|
id?: SortOrder
|
|
code?: SortOrder
|
|
name?: SortOrder
|
|
icon?: SortOrder
|
|
color?: SortOrder
|
|
sortOrder?: SortOrder
|
|
isActive?: SortOrder
|
|
createdAt?: SortOrder
|
|
updatedAt?: SortOrder
|
|
}
|
|
|
|
export type ContractCategoryMinOrderByAggregateInput = {
|
|
id?: SortOrder
|
|
code?: SortOrder
|
|
name?: SortOrder
|
|
icon?: SortOrder
|
|
color?: SortOrder
|
|
sortOrder?: SortOrder
|
|
isActive?: SortOrder
|
|
createdAt?: SortOrder
|
|
updatedAt?: SortOrder
|
|
}
|
|
|
|
export type ContractCategorySumOrderByAggregateInput = {
|
|
id?: SortOrder
|
|
sortOrder?: SortOrder
|
|
}
|
|
|
|
export type EnumContractTypeFilter<$PrismaModel = never> = {
|
|
equals?: $Enums.ContractType | EnumContractTypeFieldRefInput<$PrismaModel>
|
|
in?: $Enums.ContractType[]
|
|
notIn?: $Enums.ContractType[]
|
|
not?: NestedEnumContractTypeFilter<$PrismaModel> | $Enums.ContractType
|
|
}
|
|
|
|
export type EnumContractStatusFilter<$PrismaModel = never> = {
|
|
equals?: $Enums.ContractStatus | EnumContractStatusFieldRefInput<$PrismaModel>
|
|
in?: $Enums.ContractStatus[]
|
|
notIn?: $Enums.ContractStatus[]
|
|
not?: NestedEnumContractStatusFilter<$PrismaModel> | $Enums.ContractStatus
|
|
}
|
|
|
|
export type FloatNullableFilter<$PrismaModel = never> = {
|
|
equals?: number | FloatFieldRefInput<$PrismaModel> | null
|
|
in?: number[] | null
|
|
notIn?: number[] | null
|
|
lt?: number | FloatFieldRefInput<$PrismaModel>
|
|
lte?: number | FloatFieldRefInput<$PrismaModel>
|
|
gt?: number | FloatFieldRefInput<$PrismaModel>
|
|
gte?: number | FloatFieldRefInput<$PrismaModel>
|
|
not?: NestedFloatNullableFilter<$PrismaModel> | number | null
|
|
}
|
|
|
|
export type ContractCategoryNullableRelationFilter = {
|
|
is?: ContractCategoryWhereInput | null
|
|
isNot?: ContractCategoryWhereInput | null
|
|
}
|
|
|
|
export type AddressNullableRelationFilter = {
|
|
is?: AddressWhereInput | null
|
|
isNot?: AddressWhereInput | null
|
|
}
|
|
|
|
export type BankCardNullableRelationFilter = {
|
|
is?: BankCardWhereInput | null
|
|
isNot?: BankCardWhereInput | null
|
|
}
|
|
|
|
export type IdentityDocumentNullableRelationFilter = {
|
|
is?: IdentityDocumentWhereInput | null
|
|
isNot?: IdentityDocumentWhereInput | null
|
|
}
|
|
|
|
export type SalesPlatformNullableRelationFilter = {
|
|
is?: SalesPlatformWhereInput | null
|
|
isNot?: SalesPlatformWhereInput | null
|
|
}
|
|
|
|
export type CancellationPeriodNullableRelationFilter = {
|
|
is?: CancellationPeriodWhereInput | null
|
|
isNot?: CancellationPeriodWhereInput | null
|
|
}
|
|
|
|
export type ContractDurationNullableRelationFilter = {
|
|
is?: ContractDurationWhereInput | null
|
|
isNot?: ContractDurationWhereInput | null
|
|
}
|
|
|
|
export type ProviderNullableRelationFilter = {
|
|
is?: ProviderWhereInput | null
|
|
isNot?: ProviderWhereInput | null
|
|
}
|
|
|
|
export type TariffNullableRelationFilter = {
|
|
is?: TariffWhereInput | null
|
|
isNot?: TariffWhereInput | null
|
|
}
|
|
|
|
export type StressfreiEmailNullableRelationFilter = {
|
|
is?: StressfreiEmailWhereInput | null
|
|
isNot?: StressfreiEmailWhereInput | null
|
|
}
|
|
|
|
export type EnergyContractDetailsNullableRelationFilter = {
|
|
is?: EnergyContractDetailsWhereInput | null
|
|
isNot?: EnergyContractDetailsWhereInput | null
|
|
}
|
|
|
|
export type InternetContractDetailsNullableRelationFilter = {
|
|
is?: InternetContractDetailsWhereInput | null
|
|
isNot?: InternetContractDetailsWhereInput | null
|
|
}
|
|
|
|
export type MobileContractDetailsNullableRelationFilter = {
|
|
is?: MobileContractDetailsWhereInput | null
|
|
isNot?: MobileContractDetailsWhereInput | null
|
|
}
|
|
|
|
export type TvContractDetailsNullableRelationFilter = {
|
|
is?: TvContractDetailsWhereInput | null
|
|
isNot?: TvContractDetailsWhereInput | null
|
|
}
|
|
|
|
export type CarInsuranceDetailsNullableRelationFilter = {
|
|
is?: CarInsuranceDetailsWhereInput | null
|
|
isNot?: CarInsuranceDetailsWhereInput | null
|
|
}
|
|
|
|
export type ContractTaskListRelationFilter = {
|
|
every?: ContractTaskWhereInput
|
|
some?: ContractTaskWhereInput
|
|
none?: ContractTaskWhereInput
|
|
}
|
|
|
|
export type ContractTaskOrderByRelationAggregateInput = {
|
|
_count?: SortOrder
|
|
}
|
|
|
|
export type ContractCountOrderByAggregateInput = {
|
|
id?: SortOrder
|
|
contractNumber?: SortOrder
|
|
customerId?: SortOrder
|
|
type?: SortOrder
|
|
status?: SortOrder
|
|
contractCategoryId?: SortOrder
|
|
addressId?: SortOrder
|
|
billingAddressId?: SortOrder
|
|
bankCardId?: SortOrder
|
|
identityDocumentId?: SortOrder
|
|
salesPlatformId?: SortOrder
|
|
cancellationPeriodId?: SortOrder
|
|
contractDurationId?: SortOrder
|
|
previousContractId?: SortOrder
|
|
providerId?: SortOrder
|
|
tariffId?: SortOrder
|
|
providerName?: SortOrder
|
|
tariffName?: SortOrder
|
|
customerNumberAtProvider?: SortOrder
|
|
priceFirst12Months?: SortOrder
|
|
priceFrom13Months?: SortOrder
|
|
priceAfter24Months?: SortOrder
|
|
startDate?: SortOrder
|
|
endDate?: SortOrder
|
|
commission?: SortOrder
|
|
cancellationLetterPath?: SortOrder
|
|
cancellationConfirmationPath?: SortOrder
|
|
cancellationLetterOptionsPath?: SortOrder
|
|
cancellationConfirmationOptionsPath?: SortOrder
|
|
cancellationConfirmationDate?: SortOrder
|
|
cancellationConfirmationOptionsDate?: SortOrder
|
|
wasSpecialCancellation?: SortOrder
|
|
portalUsername?: SortOrder
|
|
portalPasswordEncrypted?: SortOrder
|
|
stressfreiEmailId?: SortOrder
|
|
notes?: SortOrder
|
|
createdAt?: SortOrder
|
|
updatedAt?: SortOrder
|
|
}
|
|
|
|
export type ContractAvgOrderByAggregateInput = {
|
|
id?: SortOrder
|
|
customerId?: SortOrder
|
|
contractCategoryId?: SortOrder
|
|
addressId?: SortOrder
|
|
billingAddressId?: SortOrder
|
|
bankCardId?: SortOrder
|
|
identityDocumentId?: SortOrder
|
|
salesPlatformId?: SortOrder
|
|
cancellationPeriodId?: SortOrder
|
|
contractDurationId?: SortOrder
|
|
previousContractId?: SortOrder
|
|
providerId?: SortOrder
|
|
tariffId?: SortOrder
|
|
commission?: SortOrder
|
|
stressfreiEmailId?: SortOrder
|
|
}
|
|
|
|
export type ContractMaxOrderByAggregateInput = {
|
|
id?: SortOrder
|
|
contractNumber?: SortOrder
|
|
customerId?: SortOrder
|
|
type?: SortOrder
|
|
status?: SortOrder
|
|
contractCategoryId?: SortOrder
|
|
addressId?: SortOrder
|
|
billingAddressId?: SortOrder
|
|
bankCardId?: SortOrder
|
|
identityDocumentId?: SortOrder
|
|
salesPlatformId?: SortOrder
|
|
cancellationPeriodId?: SortOrder
|
|
contractDurationId?: SortOrder
|
|
previousContractId?: SortOrder
|
|
providerId?: SortOrder
|
|
tariffId?: SortOrder
|
|
providerName?: SortOrder
|
|
tariffName?: SortOrder
|
|
customerNumberAtProvider?: SortOrder
|
|
priceFirst12Months?: SortOrder
|
|
priceFrom13Months?: SortOrder
|
|
priceAfter24Months?: SortOrder
|
|
startDate?: SortOrder
|
|
endDate?: SortOrder
|
|
commission?: SortOrder
|
|
cancellationLetterPath?: SortOrder
|
|
cancellationConfirmationPath?: SortOrder
|
|
cancellationLetterOptionsPath?: SortOrder
|
|
cancellationConfirmationOptionsPath?: SortOrder
|
|
cancellationConfirmationDate?: SortOrder
|
|
cancellationConfirmationOptionsDate?: SortOrder
|
|
wasSpecialCancellation?: SortOrder
|
|
portalUsername?: SortOrder
|
|
portalPasswordEncrypted?: SortOrder
|
|
stressfreiEmailId?: SortOrder
|
|
notes?: SortOrder
|
|
createdAt?: SortOrder
|
|
updatedAt?: SortOrder
|
|
}
|
|
|
|
export type ContractMinOrderByAggregateInput = {
|
|
id?: SortOrder
|
|
contractNumber?: SortOrder
|
|
customerId?: SortOrder
|
|
type?: SortOrder
|
|
status?: SortOrder
|
|
contractCategoryId?: SortOrder
|
|
addressId?: SortOrder
|
|
billingAddressId?: SortOrder
|
|
bankCardId?: SortOrder
|
|
identityDocumentId?: SortOrder
|
|
salesPlatformId?: SortOrder
|
|
cancellationPeriodId?: SortOrder
|
|
contractDurationId?: SortOrder
|
|
previousContractId?: SortOrder
|
|
providerId?: SortOrder
|
|
tariffId?: SortOrder
|
|
providerName?: SortOrder
|
|
tariffName?: SortOrder
|
|
customerNumberAtProvider?: SortOrder
|
|
priceFirst12Months?: SortOrder
|
|
priceFrom13Months?: SortOrder
|
|
priceAfter24Months?: SortOrder
|
|
startDate?: SortOrder
|
|
endDate?: SortOrder
|
|
commission?: SortOrder
|
|
cancellationLetterPath?: SortOrder
|
|
cancellationConfirmationPath?: SortOrder
|
|
cancellationLetterOptionsPath?: SortOrder
|
|
cancellationConfirmationOptionsPath?: SortOrder
|
|
cancellationConfirmationDate?: SortOrder
|
|
cancellationConfirmationOptionsDate?: SortOrder
|
|
wasSpecialCancellation?: SortOrder
|
|
portalUsername?: SortOrder
|
|
portalPasswordEncrypted?: SortOrder
|
|
stressfreiEmailId?: SortOrder
|
|
notes?: SortOrder
|
|
createdAt?: SortOrder
|
|
updatedAt?: SortOrder
|
|
}
|
|
|
|
export type ContractSumOrderByAggregateInput = {
|
|
id?: SortOrder
|
|
customerId?: SortOrder
|
|
contractCategoryId?: SortOrder
|
|
addressId?: SortOrder
|
|
billingAddressId?: SortOrder
|
|
bankCardId?: SortOrder
|
|
identityDocumentId?: SortOrder
|
|
salesPlatformId?: SortOrder
|
|
cancellationPeriodId?: SortOrder
|
|
contractDurationId?: SortOrder
|
|
previousContractId?: SortOrder
|
|
providerId?: SortOrder
|
|
tariffId?: SortOrder
|
|
commission?: SortOrder
|
|
stressfreiEmailId?: SortOrder
|
|
}
|
|
|
|
export type EnumContractTypeWithAggregatesFilter<$PrismaModel = never> = {
|
|
equals?: $Enums.ContractType | EnumContractTypeFieldRefInput<$PrismaModel>
|
|
in?: $Enums.ContractType[]
|
|
notIn?: $Enums.ContractType[]
|
|
not?: NestedEnumContractTypeWithAggregatesFilter<$PrismaModel> | $Enums.ContractType
|
|
_count?: NestedIntFilter<$PrismaModel>
|
|
_min?: NestedEnumContractTypeFilter<$PrismaModel>
|
|
_max?: NestedEnumContractTypeFilter<$PrismaModel>
|
|
}
|
|
|
|
export type EnumContractStatusWithAggregatesFilter<$PrismaModel = never> = {
|
|
equals?: $Enums.ContractStatus | EnumContractStatusFieldRefInput<$PrismaModel>
|
|
in?: $Enums.ContractStatus[]
|
|
notIn?: $Enums.ContractStatus[]
|
|
not?: NestedEnumContractStatusWithAggregatesFilter<$PrismaModel> | $Enums.ContractStatus
|
|
_count?: NestedIntFilter<$PrismaModel>
|
|
_min?: NestedEnumContractStatusFilter<$PrismaModel>
|
|
_max?: NestedEnumContractStatusFilter<$PrismaModel>
|
|
}
|
|
|
|
export type FloatNullableWithAggregatesFilter<$PrismaModel = never> = {
|
|
equals?: number | FloatFieldRefInput<$PrismaModel> | null
|
|
in?: number[] | null
|
|
notIn?: number[] | null
|
|
lt?: number | FloatFieldRefInput<$PrismaModel>
|
|
lte?: number | FloatFieldRefInput<$PrismaModel>
|
|
gt?: number | FloatFieldRefInput<$PrismaModel>
|
|
gte?: number | FloatFieldRefInput<$PrismaModel>
|
|
not?: NestedFloatNullableWithAggregatesFilter<$PrismaModel> | number | null
|
|
_count?: NestedIntNullableFilter<$PrismaModel>
|
|
_avg?: NestedFloatNullableFilter<$PrismaModel>
|
|
_sum?: NestedFloatNullableFilter<$PrismaModel>
|
|
_min?: NestedFloatNullableFilter<$PrismaModel>
|
|
_max?: NestedFloatNullableFilter<$PrismaModel>
|
|
}
|
|
|
|
export type EnumContractTaskStatusFilter<$PrismaModel = never> = {
|
|
equals?: $Enums.ContractTaskStatus | EnumContractTaskStatusFieldRefInput<$PrismaModel>
|
|
in?: $Enums.ContractTaskStatus[]
|
|
notIn?: $Enums.ContractTaskStatus[]
|
|
not?: NestedEnumContractTaskStatusFilter<$PrismaModel> | $Enums.ContractTaskStatus
|
|
}
|
|
|
|
export type ContractRelationFilter = {
|
|
is?: ContractWhereInput
|
|
isNot?: ContractWhereInput
|
|
}
|
|
|
|
export type ContractTaskSubtaskListRelationFilter = {
|
|
every?: ContractTaskSubtaskWhereInput
|
|
some?: ContractTaskSubtaskWhereInput
|
|
none?: ContractTaskSubtaskWhereInput
|
|
}
|
|
|
|
export type ContractTaskSubtaskOrderByRelationAggregateInput = {
|
|
_count?: SortOrder
|
|
}
|
|
|
|
export type ContractTaskCountOrderByAggregateInput = {
|
|
id?: SortOrder
|
|
contractId?: SortOrder
|
|
title?: SortOrder
|
|
description?: SortOrder
|
|
status?: SortOrder
|
|
visibleInPortal?: SortOrder
|
|
createdBy?: SortOrder
|
|
completedAt?: SortOrder
|
|
createdAt?: SortOrder
|
|
updatedAt?: SortOrder
|
|
}
|
|
|
|
export type ContractTaskAvgOrderByAggregateInput = {
|
|
id?: SortOrder
|
|
contractId?: SortOrder
|
|
}
|
|
|
|
export type ContractTaskMaxOrderByAggregateInput = {
|
|
id?: SortOrder
|
|
contractId?: SortOrder
|
|
title?: SortOrder
|
|
description?: SortOrder
|
|
status?: SortOrder
|
|
visibleInPortal?: SortOrder
|
|
createdBy?: SortOrder
|
|
completedAt?: SortOrder
|
|
createdAt?: SortOrder
|
|
updatedAt?: SortOrder
|
|
}
|
|
|
|
export type ContractTaskMinOrderByAggregateInput = {
|
|
id?: SortOrder
|
|
contractId?: SortOrder
|
|
title?: SortOrder
|
|
description?: SortOrder
|
|
status?: SortOrder
|
|
visibleInPortal?: SortOrder
|
|
createdBy?: SortOrder
|
|
completedAt?: SortOrder
|
|
createdAt?: SortOrder
|
|
updatedAt?: SortOrder
|
|
}
|
|
|
|
export type ContractTaskSumOrderByAggregateInput = {
|
|
id?: SortOrder
|
|
contractId?: SortOrder
|
|
}
|
|
|
|
export type EnumContractTaskStatusWithAggregatesFilter<$PrismaModel = never> = {
|
|
equals?: $Enums.ContractTaskStatus | EnumContractTaskStatusFieldRefInput<$PrismaModel>
|
|
in?: $Enums.ContractTaskStatus[]
|
|
notIn?: $Enums.ContractTaskStatus[]
|
|
not?: NestedEnumContractTaskStatusWithAggregatesFilter<$PrismaModel> | $Enums.ContractTaskStatus
|
|
_count?: NestedIntFilter<$PrismaModel>
|
|
_min?: NestedEnumContractTaskStatusFilter<$PrismaModel>
|
|
_max?: NestedEnumContractTaskStatusFilter<$PrismaModel>
|
|
}
|
|
|
|
export type ContractTaskRelationFilter = {
|
|
is?: ContractTaskWhereInput
|
|
isNot?: ContractTaskWhereInput
|
|
}
|
|
|
|
export type ContractTaskSubtaskCountOrderByAggregateInput = {
|
|
id?: SortOrder
|
|
taskId?: SortOrder
|
|
title?: SortOrder
|
|
status?: SortOrder
|
|
createdBy?: SortOrder
|
|
completedAt?: SortOrder
|
|
createdAt?: SortOrder
|
|
updatedAt?: SortOrder
|
|
}
|
|
|
|
export type ContractTaskSubtaskAvgOrderByAggregateInput = {
|
|
id?: SortOrder
|
|
taskId?: SortOrder
|
|
}
|
|
|
|
export type ContractTaskSubtaskMaxOrderByAggregateInput = {
|
|
id?: SortOrder
|
|
taskId?: SortOrder
|
|
title?: SortOrder
|
|
status?: SortOrder
|
|
createdBy?: SortOrder
|
|
completedAt?: SortOrder
|
|
createdAt?: SortOrder
|
|
updatedAt?: SortOrder
|
|
}
|
|
|
|
export type ContractTaskSubtaskMinOrderByAggregateInput = {
|
|
id?: SortOrder
|
|
taskId?: SortOrder
|
|
title?: SortOrder
|
|
status?: SortOrder
|
|
createdBy?: SortOrder
|
|
completedAt?: SortOrder
|
|
createdAt?: SortOrder
|
|
updatedAt?: SortOrder
|
|
}
|
|
|
|
export type ContractTaskSubtaskSumOrderByAggregateInput = {
|
|
id?: SortOrder
|
|
taskId?: SortOrder
|
|
}
|
|
|
|
export type MeterNullableRelationFilter = {
|
|
is?: MeterWhereInput | null
|
|
isNot?: MeterWhereInput | null
|
|
}
|
|
|
|
export type EnergyContractDetailsCountOrderByAggregateInput = {
|
|
id?: SortOrder
|
|
contractId?: SortOrder
|
|
meterId?: SortOrder
|
|
maloId?: SortOrder
|
|
annualConsumption?: SortOrder
|
|
annualConsumptionKwh?: SortOrder
|
|
basePrice?: SortOrder
|
|
unitPrice?: SortOrder
|
|
bonus?: SortOrder
|
|
previousProviderName?: SortOrder
|
|
previousCustomerNumber?: SortOrder
|
|
}
|
|
|
|
export type EnergyContractDetailsAvgOrderByAggregateInput = {
|
|
id?: SortOrder
|
|
contractId?: SortOrder
|
|
meterId?: SortOrder
|
|
annualConsumption?: SortOrder
|
|
annualConsumptionKwh?: SortOrder
|
|
basePrice?: SortOrder
|
|
unitPrice?: SortOrder
|
|
bonus?: SortOrder
|
|
}
|
|
|
|
export type EnergyContractDetailsMaxOrderByAggregateInput = {
|
|
id?: SortOrder
|
|
contractId?: SortOrder
|
|
meterId?: SortOrder
|
|
maloId?: SortOrder
|
|
annualConsumption?: SortOrder
|
|
annualConsumptionKwh?: SortOrder
|
|
basePrice?: SortOrder
|
|
unitPrice?: SortOrder
|
|
bonus?: SortOrder
|
|
previousProviderName?: SortOrder
|
|
previousCustomerNumber?: SortOrder
|
|
}
|
|
|
|
export type EnergyContractDetailsMinOrderByAggregateInput = {
|
|
id?: SortOrder
|
|
contractId?: SortOrder
|
|
meterId?: SortOrder
|
|
maloId?: SortOrder
|
|
annualConsumption?: SortOrder
|
|
annualConsumptionKwh?: SortOrder
|
|
basePrice?: SortOrder
|
|
unitPrice?: SortOrder
|
|
bonus?: SortOrder
|
|
previousProviderName?: SortOrder
|
|
previousCustomerNumber?: SortOrder
|
|
}
|
|
|
|
export type EnergyContractDetailsSumOrderByAggregateInput = {
|
|
id?: SortOrder
|
|
contractId?: SortOrder
|
|
meterId?: SortOrder
|
|
annualConsumption?: SortOrder
|
|
annualConsumptionKwh?: SortOrder
|
|
basePrice?: SortOrder
|
|
unitPrice?: SortOrder
|
|
bonus?: SortOrder
|
|
}
|
|
|
|
export type PhoneNumberListRelationFilter = {
|
|
every?: PhoneNumberWhereInput
|
|
some?: PhoneNumberWhereInput
|
|
none?: PhoneNumberWhereInput
|
|
}
|
|
|
|
export type PhoneNumberOrderByRelationAggregateInput = {
|
|
_count?: SortOrder
|
|
}
|
|
|
|
export type InternetContractDetailsCountOrderByAggregateInput = {
|
|
id?: SortOrder
|
|
contractId?: SortOrder
|
|
downloadSpeed?: SortOrder
|
|
uploadSpeed?: SortOrder
|
|
routerModel?: SortOrder
|
|
routerSerialNumber?: SortOrder
|
|
installationDate?: SortOrder
|
|
internetUsername?: SortOrder
|
|
internetPasswordEncrypted?: SortOrder
|
|
homeId?: SortOrder
|
|
activationCode?: SortOrder
|
|
}
|
|
|
|
export type InternetContractDetailsAvgOrderByAggregateInput = {
|
|
id?: SortOrder
|
|
contractId?: SortOrder
|
|
downloadSpeed?: SortOrder
|
|
uploadSpeed?: SortOrder
|
|
}
|
|
|
|
export type InternetContractDetailsMaxOrderByAggregateInput = {
|
|
id?: SortOrder
|
|
contractId?: SortOrder
|
|
downloadSpeed?: SortOrder
|
|
uploadSpeed?: SortOrder
|
|
routerModel?: SortOrder
|
|
routerSerialNumber?: SortOrder
|
|
installationDate?: SortOrder
|
|
internetUsername?: SortOrder
|
|
internetPasswordEncrypted?: SortOrder
|
|
homeId?: SortOrder
|
|
activationCode?: SortOrder
|
|
}
|
|
|
|
export type InternetContractDetailsMinOrderByAggregateInput = {
|
|
id?: SortOrder
|
|
contractId?: SortOrder
|
|
downloadSpeed?: SortOrder
|
|
uploadSpeed?: SortOrder
|
|
routerModel?: SortOrder
|
|
routerSerialNumber?: SortOrder
|
|
installationDate?: SortOrder
|
|
internetUsername?: SortOrder
|
|
internetPasswordEncrypted?: SortOrder
|
|
homeId?: SortOrder
|
|
activationCode?: SortOrder
|
|
}
|
|
|
|
export type InternetContractDetailsSumOrderByAggregateInput = {
|
|
id?: SortOrder
|
|
contractId?: SortOrder
|
|
downloadSpeed?: SortOrder
|
|
uploadSpeed?: SortOrder
|
|
}
|
|
|
|
export type InternetContractDetailsRelationFilter = {
|
|
is?: InternetContractDetailsWhereInput
|
|
isNot?: InternetContractDetailsWhereInput
|
|
}
|
|
|
|
export type PhoneNumberCountOrderByAggregateInput = {
|
|
id?: SortOrder
|
|
internetContractDetailsId?: SortOrder
|
|
phoneNumber?: SortOrder
|
|
isMain?: SortOrder
|
|
sipUsername?: SortOrder
|
|
sipPasswordEncrypted?: SortOrder
|
|
sipServer?: SortOrder
|
|
}
|
|
|
|
export type PhoneNumberAvgOrderByAggregateInput = {
|
|
id?: SortOrder
|
|
internetContractDetailsId?: SortOrder
|
|
}
|
|
|
|
export type PhoneNumberMaxOrderByAggregateInput = {
|
|
id?: SortOrder
|
|
internetContractDetailsId?: SortOrder
|
|
phoneNumber?: SortOrder
|
|
isMain?: SortOrder
|
|
sipUsername?: SortOrder
|
|
sipPasswordEncrypted?: SortOrder
|
|
sipServer?: SortOrder
|
|
}
|
|
|
|
export type PhoneNumberMinOrderByAggregateInput = {
|
|
id?: SortOrder
|
|
internetContractDetailsId?: SortOrder
|
|
phoneNumber?: SortOrder
|
|
isMain?: SortOrder
|
|
sipUsername?: SortOrder
|
|
sipPasswordEncrypted?: SortOrder
|
|
sipServer?: SortOrder
|
|
}
|
|
|
|
export type PhoneNumberSumOrderByAggregateInput = {
|
|
id?: SortOrder
|
|
internetContractDetailsId?: SortOrder
|
|
}
|
|
|
|
export type SimCardListRelationFilter = {
|
|
every?: SimCardWhereInput
|
|
some?: SimCardWhereInput
|
|
none?: SimCardWhereInput
|
|
}
|
|
|
|
export type SimCardOrderByRelationAggregateInput = {
|
|
_count?: SortOrder
|
|
}
|
|
|
|
export type MobileContractDetailsCountOrderByAggregateInput = {
|
|
id?: SortOrder
|
|
contractId?: SortOrder
|
|
requiresMultisim?: SortOrder
|
|
dataVolume?: SortOrder
|
|
includedMinutes?: SortOrder
|
|
includedSMS?: SortOrder
|
|
deviceModel?: SortOrder
|
|
deviceImei?: SortOrder
|
|
phoneNumber?: SortOrder
|
|
simCardNumber?: SortOrder
|
|
}
|
|
|
|
export type MobileContractDetailsAvgOrderByAggregateInput = {
|
|
id?: SortOrder
|
|
contractId?: SortOrder
|
|
dataVolume?: SortOrder
|
|
includedMinutes?: SortOrder
|
|
includedSMS?: SortOrder
|
|
}
|
|
|
|
export type MobileContractDetailsMaxOrderByAggregateInput = {
|
|
id?: SortOrder
|
|
contractId?: SortOrder
|
|
requiresMultisim?: SortOrder
|
|
dataVolume?: SortOrder
|
|
includedMinutes?: SortOrder
|
|
includedSMS?: SortOrder
|
|
deviceModel?: SortOrder
|
|
deviceImei?: SortOrder
|
|
phoneNumber?: SortOrder
|
|
simCardNumber?: SortOrder
|
|
}
|
|
|
|
export type MobileContractDetailsMinOrderByAggregateInput = {
|
|
id?: SortOrder
|
|
contractId?: SortOrder
|
|
requiresMultisim?: SortOrder
|
|
dataVolume?: SortOrder
|
|
includedMinutes?: SortOrder
|
|
includedSMS?: SortOrder
|
|
deviceModel?: SortOrder
|
|
deviceImei?: SortOrder
|
|
phoneNumber?: SortOrder
|
|
simCardNumber?: SortOrder
|
|
}
|
|
|
|
export type MobileContractDetailsSumOrderByAggregateInput = {
|
|
id?: SortOrder
|
|
contractId?: SortOrder
|
|
dataVolume?: SortOrder
|
|
includedMinutes?: SortOrder
|
|
includedSMS?: SortOrder
|
|
}
|
|
|
|
export type MobileContractDetailsRelationFilter = {
|
|
is?: MobileContractDetailsWhereInput
|
|
isNot?: MobileContractDetailsWhereInput
|
|
}
|
|
|
|
export type SimCardCountOrderByAggregateInput = {
|
|
id?: SortOrder
|
|
mobileDetailsId?: SortOrder
|
|
phoneNumber?: SortOrder
|
|
simCardNumber?: SortOrder
|
|
pin?: SortOrder
|
|
puk?: SortOrder
|
|
isMultisim?: SortOrder
|
|
isMain?: SortOrder
|
|
createdAt?: SortOrder
|
|
updatedAt?: SortOrder
|
|
}
|
|
|
|
export type SimCardAvgOrderByAggregateInput = {
|
|
id?: SortOrder
|
|
mobileDetailsId?: SortOrder
|
|
}
|
|
|
|
export type SimCardMaxOrderByAggregateInput = {
|
|
id?: SortOrder
|
|
mobileDetailsId?: SortOrder
|
|
phoneNumber?: SortOrder
|
|
simCardNumber?: SortOrder
|
|
pin?: SortOrder
|
|
puk?: SortOrder
|
|
isMultisim?: SortOrder
|
|
isMain?: SortOrder
|
|
createdAt?: SortOrder
|
|
updatedAt?: SortOrder
|
|
}
|
|
|
|
export type SimCardMinOrderByAggregateInput = {
|
|
id?: SortOrder
|
|
mobileDetailsId?: SortOrder
|
|
phoneNumber?: SortOrder
|
|
simCardNumber?: SortOrder
|
|
pin?: SortOrder
|
|
puk?: SortOrder
|
|
isMultisim?: SortOrder
|
|
isMain?: SortOrder
|
|
createdAt?: SortOrder
|
|
updatedAt?: SortOrder
|
|
}
|
|
|
|
export type SimCardSumOrderByAggregateInput = {
|
|
id?: SortOrder
|
|
mobileDetailsId?: SortOrder
|
|
}
|
|
|
|
export type TvContractDetailsCountOrderByAggregateInput = {
|
|
id?: SortOrder
|
|
contractId?: SortOrder
|
|
receiverModel?: SortOrder
|
|
smartcardNumber?: SortOrder
|
|
package?: SortOrder
|
|
}
|
|
|
|
export type TvContractDetailsAvgOrderByAggregateInput = {
|
|
id?: SortOrder
|
|
contractId?: SortOrder
|
|
}
|
|
|
|
export type TvContractDetailsMaxOrderByAggregateInput = {
|
|
id?: SortOrder
|
|
contractId?: SortOrder
|
|
receiverModel?: SortOrder
|
|
smartcardNumber?: SortOrder
|
|
package?: SortOrder
|
|
}
|
|
|
|
export type TvContractDetailsMinOrderByAggregateInput = {
|
|
id?: SortOrder
|
|
contractId?: SortOrder
|
|
receiverModel?: SortOrder
|
|
smartcardNumber?: SortOrder
|
|
package?: SortOrder
|
|
}
|
|
|
|
export type TvContractDetailsSumOrderByAggregateInput = {
|
|
id?: SortOrder
|
|
contractId?: SortOrder
|
|
}
|
|
|
|
export type EnumInsuranceTypeFilter<$PrismaModel = never> = {
|
|
equals?: $Enums.InsuranceType | EnumInsuranceTypeFieldRefInput<$PrismaModel>
|
|
in?: $Enums.InsuranceType[]
|
|
notIn?: $Enums.InsuranceType[]
|
|
not?: NestedEnumInsuranceTypeFilter<$PrismaModel> | $Enums.InsuranceType
|
|
}
|
|
|
|
export type CarInsuranceDetailsCountOrderByAggregateInput = {
|
|
id?: SortOrder
|
|
contractId?: SortOrder
|
|
licensePlate?: SortOrder
|
|
hsn?: SortOrder
|
|
tsn?: SortOrder
|
|
vin?: SortOrder
|
|
vehicleType?: SortOrder
|
|
firstRegistration?: SortOrder
|
|
noClaimsClass?: SortOrder
|
|
insuranceType?: SortOrder
|
|
deductiblePartial?: SortOrder
|
|
deductibleFull?: SortOrder
|
|
policyNumber?: SortOrder
|
|
previousInsurer?: SortOrder
|
|
}
|
|
|
|
export type CarInsuranceDetailsAvgOrderByAggregateInput = {
|
|
id?: SortOrder
|
|
contractId?: SortOrder
|
|
deductiblePartial?: SortOrder
|
|
deductibleFull?: SortOrder
|
|
}
|
|
|
|
export type CarInsuranceDetailsMaxOrderByAggregateInput = {
|
|
id?: SortOrder
|
|
contractId?: SortOrder
|
|
licensePlate?: SortOrder
|
|
hsn?: SortOrder
|
|
tsn?: SortOrder
|
|
vin?: SortOrder
|
|
vehicleType?: SortOrder
|
|
firstRegistration?: SortOrder
|
|
noClaimsClass?: SortOrder
|
|
insuranceType?: SortOrder
|
|
deductiblePartial?: SortOrder
|
|
deductibleFull?: SortOrder
|
|
policyNumber?: SortOrder
|
|
previousInsurer?: SortOrder
|
|
}
|
|
|
|
export type CarInsuranceDetailsMinOrderByAggregateInput = {
|
|
id?: SortOrder
|
|
contractId?: SortOrder
|
|
licensePlate?: SortOrder
|
|
hsn?: SortOrder
|
|
tsn?: SortOrder
|
|
vin?: SortOrder
|
|
vehicleType?: SortOrder
|
|
firstRegistration?: SortOrder
|
|
noClaimsClass?: SortOrder
|
|
insuranceType?: SortOrder
|
|
deductiblePartial?: SortOrder
|
|
deductibleFull?: SortOrder
|
|
policyNumber?: SortOrder
|
|
previousInsurer?: SortOrder
|
|
}
|
|
|
|
export type CarInsuranceDetailsSumOrderByAggregateInput = {
|
|
id?: SortOrder
|
|
contractId?: SortOrder
|
|
deductiblePartial?: SortOrder
|
|
deductibleFull?: SortOrder
|
|
}
|
|
|
|
export type EnumInsuranceTypeWithAggregatesFilter<$PrismaModel = never> = {
|
|
equals?: $Enums.InsuranceType | EnumInsuranceTypeFieldRefInput<$PrismaModel>
|
|
in?: $Enums.InsuranceType[]
|
|
notIn?: $Enums.InsuranceType[]
|
|
not?: NestedEnumInsuranceTypeWithAggregatesFilter<$PrismaModel> | $Enums.InsuranceType
|
|
_count?: NestedIntFilter<$PrismaModel>
|
|
_min?: NestedEnumInsuranceTypeFilter<$PrismaModel>
|
|
_max?: NestedEnumInsuranceTypeFilter<$PrismaModel>
|
|
}
|
|
|
|
export type StringFieldUpdateOperationsInput = {
|
|
set?: string
|
|
}
|
|
|
|
export type DateTimeFieldUpdateOperationsInput = {
|
|
set?: Date | string
|
|
}
|
|
|
|
export type IntFieldUpdateOperationsInput = {
|
|
set?: number
|
|
increment?: number
|
|
decrement?: number
|
|
multiply?: number
|
|
divide?: number
|
|
}
|
|
|
|
export type CustomerCreateNestedOneWithoutUserInput = {
|
|
create?: XOR<CustomerCreateWithoutUserInput, CustomerUncheckedCreateWithoutUserInput>
|
|
connectOrCreate?: CustomerCreateOrConnectWithoutUserInput
|
|
connect?: CustomerWhereUniqueInput
|
|
}
|
|
|
|
export type UserRoleCreateNestedManyWithoutUserInput = {
|
|
create?: XOR<UserRoleCreateWithoutUserInput, UserRoleUncheckedCreateWithoutUserInput> | UserRoleCreateWithoutUserInput[] | UserRoleUncheckedCreateWithoutUserInput[]
|
|
connectOrCreate?: UserRoleCreateOrConnectWithoutUserInput | UserRoleCreateOrConnectWithoutUserInput[]
|
|
createMany?: UserRoleCreateManyUserInputEnvelope
|
|
connect?: UserRoleWhereUniqueInput | UserRoleWhereUniqueInput[]
|
|
}
|
|
|
|
export type UserRoleUncheckedCreateNestedManyWithoutUserInput = {
|
|
create?: XOR<UserRoleCreateWithoutUserInput, UserRoleUncheckedCreateWithoutUserInput> | UserRoleCreateWithoutUserInput[] | UserRoleUncheckedCreateWithoutUserInput[]
|
|
connectOrCreate?: UserRoleCreateOrConnectWithoutUserInput | UserRoleCreateOrConnectWithoutUserInput[]
|
|
createMany?: UserRoleCreateManyUserInputEnvelope
|
|
connect?: UserRoleWhereUniqueInput | UserRoleWhereUniqueInput[]
|
|
}
|
|
|
|
export type BoolFieldUpdateOperationsInput = {
|
|
set?: boolean
|
|
}
|
|
|
|
export type NullableDateTimeFieldUpdateOperationsInput = {
|
|
set?: Date | string | null
|
|
}
|
|
|
|
export type CustomerUpdateOneWithoutUserNestedInput = {
|
|
create?: XOR<CustomerCreateWithoutUserInput, CustomerUncheckedCreateWithoutUserInput>
|
|
connectOrCreate?: CustomerCreateOrConnectWithoutUserInput
|
|
upsert?: CustomerUpsertWithoutUserInput
|
|
disconnect?: CustomerWhereInput | boolean
|
|
delete?: CustomerWhereInput | boolean
|
|
connect?: CustomerWhereUniqueInput
|
|
update?: XOR<XOR<CustomerUpdateToOneWithWhereWithoutUserInput, CustomerUpdateWithoutUserInput>, CustomerUncheckedUpdateWithoutUserInput>
|
|
}
|
|
|
|
export type UserRoleUpdateManyWithoutUserNestedInput = {
|
|
create?: XOR<UserRoleCreateWithoutUserInput, UserRoleUncheckedCreateWithoutUserInput> | UserRoleCreateWithoutUserInput[] | UserRoleUncheckedCreateWithoutUserInput[]
|
|
connectOrCreate?: UserRoleCreateOrConnectWithoutUserInput | UserRoleCreateOrConnectWithoutUserInput[]
|
|
upsert?: UserRoleUpsertWithWhereUniqueWithoutUserInput | UserRoleUpsertWithWhereUniqueWithoutUserInput[]
|
|
createMany?: UserRoleCreateManyUserInputEnvelope
|
|
set?: UserRoleWhereUniqueInput | UserRoleWhereUniqueInput[]
|
|
disconnect?: UserRoleWhereUniqueInput | UserRoleWhereUniqueInput[]
|
|
delete?: UserRoleWhereUniqueInput | UserRoleWhereUniqueInput[]
|
|
connect?: UserRoleWhereUniqueInput | UserRoleWhereUniqueInput[]
|
|
update?: UserRoleUpdateWithWhereUniqueWithoutUserInput | UserRoleUpdateWithWhereUniqueWithoutUserInput[]
|
|
updateMany?: UserRoleUpdateManyWithWhereWithoutUserInput | UserRoleUpdateManyWithWhereWithoutUserInput[]
|
|
deleteMany?: UserRoleScalarWhereInput | UserRoleScalarWhereInput[]
|
|
}
|
|
|
|
export type NullableIntFieldUpdateOperationsInput = {
|
|
set?: number | null
|
|
increment?: number
|
|
decrement?: number
|
|
multiply?: number
|
|
divide?: number
|
|
}
|
|
|
|
export type UserRoleUncheckedUpdateManyWithoutUserNestedInput = {
|
|
create?: XOR<UserRoleCreateWithoutUserInput, UserRoleUncheckedCreateWithoutUserInput> | UserRoleCreateWithoutUserInput[] | UserRoleUncheckedCreateWithoutUserInput[]
|
|
connectOrCreate?: UserRoleCreateOrConnectWithoutUserInput | UserRoleCreateOrConnectWithoutUserInput[]
|
|
upsert?: UserRoleUpsertWithWhereUniqueWithoutUserInput | UserRoleUpsertWithWhereUniqueWithoutUserInput[]
|
|
createMany?: UserRoleCreateManyUserInputEnvelope
|
|
set?: UserRoleWhereUniqueInput | UserRoleWhereUniqueInput[]
|
|
disconnect?: UserRoleWhereUniqueInput | UserRoleWhereUniqueInput[]
|
|
delete?: UserRoleWhereUniqueInput | UserRoleWhereUniqueInput[]
|
|
connect?: UserRoleWhereUniqueInput | UserRoleWhereUniqueInput[]
|
|
update?: UserRoleUpdateWithWhereUniqueWithoutUserInput | UserRoleUpdateWithWhereUniqueWithoutUserInput[]
|
|
updateMany?: UserRoleUpdateManyWithWhereWithoutUserInput | UserRoleUpdateManyWithWhereWithoutUserInput[]
|
|
deleteMany?: UserRoleScalarWhereInput | UserRoleScalarWhereInput[]
|
|
}
|
|
|
|
export type RolePermissionCreateNestedManyWithoutRoleInput = {
|
|
create?: XOR<RolePermissionCreateWithoutRoleInput, RolePermissionUncheckedCreateWithoutRoleInput> | RolePermissionCreateWithoutRoleInput[] | RolePermissionUncheckedCreateWithoutRoleInput[]
|
|
connectOrCreate?: RolePermissionCreateOrConnectWithoutRoleInput | RolePermissionCreateOrConnectWithoutRoleInput[]
|
|
createMany?: RolePermissionCreateManyRoleInputEnvelope
|
|
connect?: RolePermissionWhereUniqueInput | RolePermissionWhereUniqueInput[]
|
|
}
|
|
|
|
export type UserRoleCreateNestedManyWithoutRoleInput = {
|
|
create?: XOR<UserRoleCreateWithoutRoleInput, UserRoleUncheckedCreateWithoutRoleInput> | UserRoleCreateWithoutRoleInput[] | UserRoleUncheckedCreateWithoutRoleInput[]
|
|
connectOrCreate?: UserRoleCreateOrConnectWithoutRoleInput | UserRoleCreateOrConnectWithoutRoleInput[]
|
|
createMany?: UserRoleCreateManyRoleInputEnvelope
|
|
connect?: UserRoleWhereUniqueInput | UserRoleWhereUniqueInput[]
|
|
}
|
|
|
|
export type RolePermissionUncheckedCreateNestedManyWithoutRoleInput = {
|
|
create?: XOR<RolePermissionCreateWithoutRoleInput, RolePermissionUncheckedCreateWithoutRoleInput> | RolePermissionCreateWithoutRoleInput[] | RolePermissionUncheckedCreateWithoutRoleInput[]
|
|
connectOrCreate?: RolePermissionCreateOrConnectWithoutRoleInput | RolePermissionCreateOrConnectWithoutRoleInput[]
|
|
createMany?: RolePermissionCreateManyRoleInputEnvelope
|
|
connect?: RolePermissionWhereUniqueInput | RolePermissionWhereUniqueInput[]
|
|
}
|
|
|
|
export type UserRoleUncheckedCreateNestedManyWithoutRoleInput = {
|
|
create?: XOR<UserRoleCreateWithoutRoleInput, UserRoleUncheckedCreateWithoutRoleInput> | UserRoleCreateWithoutRoleInput[] | UserRoleUncheckedCreateWithoutRoleInput[]
|
|
connectOrCreate?: UserRoleCreateOrConnectWithoutRoleInput | UserRoleCreateOrConnectWithoutRoleInput[]
|
|
createMany?: UserRoleCreateManyRoleInputEnvelope
|
|
connect?: UserRoleWhereUniqueInput | UserRoleWhereUniqueInput[]
|
|
}
|
|
|
|
export type NullableStringFieldUpdateOperationsInput = {
|
|
set?: string | null
|
|
}
|
|
|
|
export type RolePermissionUpdateManyWithoutRoleNestedInput = {
|
|
create?: XOR<RolePermissionCreateWithoutRoleInput, RolePermissionUncheckedCreateWithoutRoleInput> | RolePermissionCreateWithoutRoleInput[] | RolePermissionUncheckedCreateWithoutRoleInput[]
|
|
connectOrCreate?: RolePermissionCreateOrConnectWithoutRoleInput | RolePermissionCreateOrConnectWithoutRoleInput[]
|
|
upsert?: RolePermissionUpsertWithWhereUniqueWithoutRoleInput | RolePermissionUpsertWithWhereUniqueWithoutRoleInput[]
|
|
createMany?: RolePermissionCreateManyRoleInputEnvelope
|
|
set?: RolePermissionWhereUniqueInput | RolePermissionWhereUniqueInput[]
|
|
disconnect?: RolePermissionWhereUniqueInput | RolePermissionWhereUniqueInput[]
|
|
delete?: RolePermissionWhereUniqueInput | RolePermissionWhereUniqueInput[]
|
|
connect?: RolePermissionWhereUniqueInput | RolePermissionWhereUniqueInput[]
|
|
update?: RolePermissionUpdateWithWhereUniqueWithoutRoleInput | RolePermissionUpdateWithWhereUniqueWithoutRoleInput[]
|
|
updateMany?: RolePermissionUpdateManyWithWhereWithoutRoleInput | RolePermissionUpdateManyWithWhereWithoutRoleInput[]
|
|
deleteMany?: RolePermissionScalarWhereInput | RolePermissionScalarWhereInput[]
|
|
}
|
|
|
|
export type UserRoleUpdateManyWithoutRoleNestedInput = {
|
|
create?: XOR<UserRoleCreateWithoutRoleInput, UserRoleUncheckedCreateWithoutRoleInput> | UserRoleCreateWithoutRoleInput[] | UserRoleUncheckedCreateWithoutRoleInput[]
|
|
connectOrCreate?: UserRoleCreateOrConnectWithoutRoleInput | UserRoleCreateOrConnectWithoutRoleInput[]
|
|
upsert?: UserRoleUpsertWithWhereUniqueWithoutRoleInput | UserRoleUpsertWithWhereUniqueWithoutRoleInput[]
|
|
createMany?: UserRoleCreateManyRoleInputEnvelope
|
|
set?: UserRoleWhereUniqueInput | UserRoleWhereUniqueInput[]
|
|
disconnect?: UserRoleWhereUniqueInput | UserRoleWhereUniqueInput[]
|
|
delete?: UserRoleWhereUniqueInput | UserRoleWhereUniqueInput[]
|
|
connect?: UserRoleWhereUniqueInput | UserRoleWhereUniqueInput[]
|
|
update?: UserRoleUpdateWithWhereUniqueWithoutRoleInput | UserRoleUpdateWithWhereUniqueWithoutRoleInput[]
|
|
updateMany?: UserRoleUpdateManyWithWhereWithoutRoleInput | UserRoleUpdateManyWithWhereWithoutRoleInput[]
|
|
deleteMany?: UserRoleScalarWhereInput | UserRoleScalarWhereInput[]
|
|
}
|
|
|
|
export type RolePermissionUncheckedUpdateManyWithoutRoleNestedInput = {
|
|
create?: XOR<RolePermissionCreateWithoutRoleInput, RolePermissionUncheckedCreateWithoutRoleInput> | RolePermissionCreateWithoutRoleInput[] | RolePermissionUncheckedCreateWithoutRoleInput[]
|
|
connectOrCreate?: RolePermissionCreateOrConnectWithoutRoleInput | RolePermissionCreateOrConnectWithoutRoleInput[]
|
|
upsert?: RolePermissionUpsertWithWhereUniqueWithoutRoleInput | RolePermissionUpsertWithWhereUniqueWithoutRoleInput[]
|
|
createMany?: RolePermissionCreateManyRoleInputEnvelope
|
|
set?: RolePermissionWhereUniqueInput | RolePermissionWhereUniqueInput[]
|
|
disconnect?: RolePermissionWhereUniqueInput | RolePermissionWhereUniqueInput[]
|
|
delete?: RolePermissionWhereUniqueInput | RolePermissionWhereUniqueInput[]
|
|
connect?: RolePermissionWhereUniqueInput | RolePermissionWhereUniqueInput[]
|
|
update?: RolePermissionUpdateWithWhereUniqueWithoutRoleInput | RolePermissionUpdateWithWhereUniqueWithoutRoleInput[]
|
|
updateMany?: RolePermissionUpdateManyWithWhereWithoutRoleInput | RolePermissionUpdateManyWithWhereWithoutRoleInput[]
|
|
deleteMany?: RolePermissionScalarWhereInput | RolePermissionScalarWhereInput[]
|
|
}
|
|
|
|
export type UserRoleUncheckedUpdateManyWithoutRoleNestedInput = {
|
|
create?: XOR<UserRoleCreateWithoutRoleInput, UserRoleUncheckedCreateWithoutRoleInput> | UserRoleCreateWithoutRoleInput[] | UserRoleUncheckedCreateWithoutRoleInput[]
|
|
connectOrCreate?: UserRoleCreateOrConnectWithoutRoleInput | UserRoleCreateOrConnectWithoutRoleInput[]
|
|
upsert?: UserRoleUpsertWithWhereUniqueWithoutRoleInput | UserRoleUpsertWithWhereUniqueWithoutRoleInput[]
|
|
createMany?: UserRoleCreateManyRoleInputEnvelope
|
|
set?: UserRoleWhereUniqueInput | UserRoleWhereUniqueInput[]
|
|
disconnect?: UserRoleWhereUniqueInput | UserRoleWhereUniqueInput[]
|
|
delete?: UserRoleWhereUniqueInput | UserRoleWhereUniqueInput[]
|
|
connect?: UserRoleWhereUniqueInput | UserRoleWhereUniqueInput[]
|
|
update?: UserRoleUpdateWithWhereUniqueWithoutRoleInput | UserRoleUpdateWithWhereUniqueWithoutRoleInput[]
|
|
updateMany?: UserRoleUpdateManyWithWhereWithoutRoleInput | UserRoleUpdateManyWithWhereWithoutRoleInput[]
|
|
deleteMany?: UserRoleScalarWhereInput | UserRoleScalarWhereInput[]
|
|
}
|
|
|
|
export type RolePermissionCreateNestedManyWithoutPermissionInput = {
|
|
create?: XOR<RolePermissionCreateWithoutPermissionInput, RolePermissionUncheckedCreateWithoutPermissionInput> | RolePermissionCreateWithoutPermissionInput[] | RolePermissionUncheckedCreateWithoutPermissionInput[]
|
|
connectOrCreate?: RolePermissionCreateOrConnectWithoutPermissionInput | RolePermissionCreateOrConnectWithoutPermissionInput[]
|
|
createMany?: RolePermissionCreateManyPermissionInputEnvelope
|
|
connect?: RolePermissionWhereUniqueInput | RolePermissionWhereUniqueInput[]
|
|
}
|
|
|
|
export type RolePermissionUncheckedCreateNestedManyWithoutPermissionInput = {
|
|
create?: XOR<RolePermissionCreateWithoutPermissionInput, RolePermissionUncheckedCreateWithoutPermissionInput> | RolePermissionCreateWithoutPermissionInput[] | RolePermissionUncheckedCreateWithoutPermissionInput[]
|
|
connectOrCreate?: RolePermissionCreateOrConnectWithoutPermissionInput | RolePermissionCreateOrConnectWithoutPermissionInput[]
|
|
createMany?: RolePermissionCreateManyPermissionInputEnvelope
|
|
connect?: RolePermissionWhereUniqueInput | RolePermissionWhereUniqueInput[]
|
|
}
|
|
|
|
export type RolePermissionUpdateManyWithoutPermissionNestedInput = {
|
|
create?: XOR<RolePermissionCreateWithoutPermissionInput, RolePermissionUncheckedCreateWithoutPermissionInput> | RolePermissionCreateWithoutPermissionInput[] | RolePermissionUncheckedCreateWithoutPermissionInput[]
|
|
connectOrCreate?: RolePermissionCreateOrConnectWithoutPermissionInput | RolePermissionCreateOrConnectWithoutPermissionInput[]
|
|
upsert?: RolePermissionUpsertWithWhereUniqueWithoutPermissionInput | RolePermissionUpsertWithWhereUniqueWithoutPermissionInput[]
|
|
createMany?: RolePermissionCreateManyPermissionInputEnvelope
|
|
set?: RolePermissionWhereUniqueInput | RolePermissionWhereUniqueInput[]
|
|
disconnect?: RolePermissionWhereUniqueInput | RolePermissionWhereUniqueInput[]
|
|
delete?: RolePermissionWhereUniqueInput | RolePermissionWhereUniqueInput[]
|
|
connect?: RolePermissionWhereUniqueInput | RolePermissionWhereUniqueInput[]
|
|
update?: RolePermissionUpdateWithWhereUniqueWithoutPermissionInput | RolePermissionUpdateWithWhereUniqueWithoutPermissionInput[]
|
|
updateMany?: RolePermissionUpdateManyWithWhereWithoutPermissionInput | RolePermissionUpdateManyWithWhereWithoutPermissionInput[]
|
|
deleteMany?: RolePermissionScalarWhereInput | RolePermissionScalarWhereInput[]
|
|
}
|
|
|
|
export type RolePermissionUncheckedUpdateManyWithoutPermissionNestedInput = {
|
|
create?: XOR<RolePermissionCreateWithoutPermissionInput, RolePermissionUncheckedCreateWithoutPermissionInput> | RolePermissionCreateWithoutPermissionInput[] | RolePermissionUncheckedCreateWithoutPermissionInput[]
|
|
connectOrCreate?: RolePermissionCreateOrConnectWithoutPermissionInput | RolePermissionCreateOrConnectWithoutPermissionInput[]
|
|
upsert?: RolePermissionUpsertWithWhereUniqueWithoutPermissionInput | RolePermissionUpsertWithWhereUniqueWithoutPermissionInput[]
|
|
createMany?: RolePermissionCreateManyPermissionInputEnvelope
|
|
set?: RolePermissionWhereUniqueInput | RolePermissionWhereUniqueInput[]
|
|
disconnect?: RolePermissionWhereUniqueInput | RolePermissionWhereUniqueInput[]
|
|
delete?: RolePermissionWhereUniqueInput | RolePermissionWhereUniqueInput[]
|
|
connect?: RolePermissionWhereUniqueInput | RolePermissionWhereUniqueInput[]
|
|
update?: RolePermissionUpdateWithWhereUniqueWithoutPermissionInput | RolePermissionUpdateWithWhereUniqueWithoutPermissionInput[]
|
|
updateMany?: RolePermissionUpdateManyWithWhereWithoutPermissionInput | RolePermissionUpdateManyWithWhereWithoutPermissionInput[]
|
|
deleteMany?: RolePermissionScalarWhereInput | RolePermissionScalarWhereInput[]
|
|
}
|
|
|
|
export type RoleCreateNestedOneWithoutPermissionsInput = {
|
|
create?: XOR<RoleCreateWithoutPermissionsInput, RoleUncheckedCreateWithoutPermissionsInput>
|
|
connectOrCreate?: RoleCreateOrConnectWithoutPermissionsInput
|
|
connect?: RoleWhereUniqueInput
|
|
}
|
|
|
|
export type PermissionCreateNestedOneWithoutRolesInput = {
|
|
create?: XOR<PermissionCreateWithoutRolesInput, PermissionUncheckedCreateWithoutRolesInput>
|
|
connectOrCreate?: PermissionCreateOrConnectWithoutRolesInput
|
|
connect?: PermissionWhereUniqueInput
|
|
}
|
|
|
|
export type RoleUpdateOneRequiredWithoutPermissionsNestedInput = {
|
|
create?: XOR<RoleCreateWithoutPermissionsInput, RoleUncheckedCreateWithoutPermissionsInput>
|
|
connectOrCreate?: RoleCreateOrConnectWithoutPermissionsInput
|
|
upsert?: RoleUpsertWithoutPermissionsInput
|
|
connect?: RoleWhereUniqueInput
|
|
update?: XOR<XOR<RoleUpdateToOneWithWhereWithoutPermissionsInput, RoleUpdateWithoutPermissionsInput>, RoleUncheckedUpdateWithoutPermissionsInput>
|
|
}
|
|
|
|
export type PermissionUpdateOneRequiredWithoutRolesNestedInput = {
|
|
create?: XOR<PermissionCreateWithoutRolesInput, PermissionUncheckedCreateWithoutRolesInput>
|
|
connectOrCreate?: PermissionCreateOrConnectWithoutRolesInput
|
|
upsert?: PermissionUpsertWithoutRolesInput
|
|
connect?: PermissionWhereUniqueInput
|
|
update?: XOR<XOR<PermissionUpdateToOneWithWhereWithoutRolesInput, PermissionUpdateWithoutRolesInput>, PermissionUncheckedUpdateWithoutRolesInput>
|
|
}
|
|
|
|
export type UserCreateNestedOneWithoutRolesInput = {
|
|
create?: XOR<UserCreateWithoutRolesInput, UserUncheckedCreateWithoutRolesInput>
|
|
connectOrCreate?: UserCreateOrConnectWithoutRolesInput
|
|
connect?: UserWhereUniqueInput
|
|
}
|
|
|
|
export type RoleCreateNestedOneWithoutUsersInput = {
|
|
create?: XOR<RoleCreateWithoutUsersInput, RoleUncheckedCreateWithoutUsersInput>
|
|
connectOrCreate?: RoleCreateOrConnectWithoutUsersInput
|
|
connect?: RoleWhereUniqueInput
|
|
}
|
|
|
|
export type UserUpdateOneRequiredWithoutRolesNestedInput = {
|
|
create?: XOR<UserCreateWithoutRolesInput, UserUncheckedCreateWithoutRolesInput>
|
|
connectOrCreate?: UserCreateOrConnectWithoutRolesInput
|
|
upsert?: UserUpsertWithoutRolesInput
|
|
connect?: UserWhereUniqueInput
|
|
update?: XOR<XOR<UserUpdateToOneWithWhereWithoutRolesInput, UserUpdateWithoutRolesInput>, UserUncheckedUpdateWithoutRolesInput>
|
|
}
|
|
|
|
export type RoleUpdateOneRequiredWithoutUsersNestedInput = {
|
|
create?: XOR<RoleCreateWithoutUsersInput, RoleUncheckedCreateWithoutUsersInput>
|
|
connectOrCreate?: RoleCreateOrConnectWithoutUsersInput
|
|
upsert?: RoleUpsertWithoutUsersInput
|
|
connect?: RoleWhereUniqueInput
|
|
update?: XOR<XOR<RoleUpdateToOneWithWhereWithoutUsersInput, RoleUpdateWithoutUsersInput>, RoleUncheckedUpdateWithoutUsersInput>
|
|
}
|
|
|
|
export type UserCreateNestedOneWithoutCustomerInput = {
|
|
create?: XOR<UserCreateWithoutCustomerInput, UserUncheckedCreateWithoutCustomerInput>
|
|
connectOrCreate?: UserCreateOrConnectWithoutCustomerInput
|
|
connect?: UserWhereUniqueInput
|
|
}
|
|
|
|
export type AddressCreateNestedManyWithoutCustomerInput = {
|
|
create?: XOR<AddressCreateWithoutCustomerInput, AddressUncheckedCreateWithoutCustomerInput> | AddressCreateWithoutCustomerInput[] | AddressUncheckedCreateWithoutCustomerInput[]
|
|
connectOrCreate?: AddressCreateOrConnectWithoutCustomerInput | AddressCreateOrConnectWithoutCustomerInput[]
|
|
createMany?: AddressCreateManyCustomerInputEnvelope
|
|
connect?: AddressWhereUniqueInput | AddressWhereUniqueInput[]
|
|
}
|
|
|
|
export type BankCardCreateNestedManyWithoutCustomerInput = {
|
|
create?: XOR<BankCardCreateWithoutCustomerInput, BankCardUncheckedCreateWithoutCustomerInput> | BankCardCreateWithoutCustomerInput[] | BankCardUncheckedCreateWithoutCustomerInput[]
|
|
connectOrCreate?: BankCardCreateOrConnectWithoutCustomerInput | BankCardCreateOrConnectWithoutCustomerInput[]
|
|
createMany?: BankCardCreateManyCustomerInputEnvelope
|
|
connect?: BankCardWhereUniqueInput | BankCardWhereUniqueInput[]
|
|
}
|
|
|
|
export type IdentityDocumentCreateNestedManyWithoutCustomerInput = {
|
|
create?: XOR<IdentityDocumentCreateWithoutCustomerInput, IdentityDocumentUncheckedCreateWithoutCustomerInput> | IdentityDocumentCreateWithoutCustomerInput[] | IdentityDocumentUncheckedCreateWithoutCustomerInput[]
|
|
connectOrCreate?: IdentityDocumentCreateOrConnectWithoutCustomerInput | IdentityDocumentCreateOrConnectWithoutCustomerInput[]
|
|
createMany?: IdentityDocumentCreateManyCustomerInputEnvelope
|
|
connect?: IdentityDocumentWhereUniqueInput | IdentityDocumentWhereUniqueInput[]
|
|
}
|
|
|
|
export type MeterCreateNestedManyWithoutCustomerInput = {
|
|
create?: XOR<MeterCreateWithoutCustomerInput, MeterUncheckedCreateWithoutCustomerInput> | MeterCreateWithoutCustomerInput[] | MeterUncheckedCreateWithoutCustomerInput[]
|
|
connectOrCreate?: MeterCreateOrConnectWithoutCustomerInput | MeterCreateOrConnectWithoutCustomerInput[]
|
|
createMany?: MeterCreateManyCustomerInputEnvelope
|
|
connect?: MeterWhereUniqueInput | MeterWhereUniqueInput[]
|
|
}
|
|
|
|
export type StressfreiEmailCreateNestedManyWithoutCustomerInput = {
|
|
create?: XOR<StressfreiEmailCreateWithoutCustomerInput, StressfreiEmailUncheckedCreateWithoutCustomerInput> | StressfreiEmailCreateWithoutCustomerInput[] | StressfreiEmailUncheckedCreateWithoutCustomerInput[]
|
|
connectOrCreate?: StressfreiEmailCreateOrConnectWithoutCustomerInput | StressfreiEmailCreateOrConnectWithoutCustomerInput[]
|
|
createMany?: StressfreiEmailCreateManyCustomerInputEnvelope
|
|
connect?: StressfreiEmailWhereUniqueInput | StressfreiEmailWhereUniqueInput[]
|
|
}
|
|
|
|
export type ContractCreateNestedManyWithoutCustomerInput = {
|
|
create?: XOR<ContractCreateWithoutCustomerInput, ContractUncheckedCreateWithoutCustomerInput> | ContractCreateWithoutCustomerInput[] | ContractUncheckedCreateWithoutCustomerInput[]
|
|
connectOrCreate?: ContractCreateOrConnectWithoutCustomerInput | ContractCreateOrConnectWithoutCustomerInput[]
|
|
createMany?: ContractCreateManyCustomerInputEnvelope
|
|
connect?: ContractWhereUniqueInput | ContractWhereUniqueInput[]
|
|
}
|
|
|
|
export type CustomerRepresentativeCreateNestedManyWithoutRepresentativeInput = {
|
|
create?: XOR<CustomerRepresentativeCreateWithoutRepresentativeInput, CustomerRepresentativeUncheckedCreateWithoutRepresentativeInput> | CustomerRepresentativeCreateWithoutRepresentativeInput[] | CustomerRepresentativeUncheckedCreateWithoutRepresentativeInput[]
|
|
connectOrCreate?: CustomerRepresentativeCreateOrConnectWithoutRepresentativeInput | CustomerRepresentativeCreateOrConnectWithoutRepresentativeInput[]
|
|
createMany?: CustomerRepresentativeCreateManyRepresentativeInputEnvelope
|
|
connect?: CustomerRepresentativeWhereUniqueInput | CustomerRepresentativeWhereUniqueInput[]
|
|
}
|
|
|
|
export type CustomerRepresentativeCreateNestedManyWithoutCustomerInput = {
|
|
create?: XOR<CustomerRepresentativeCreateWithoutCustomerInput, CustomerRepresentativeUncheckedCreateWithoutCustomerInput> | CustomerRepresentativeCreateWithoutCustomerInput[] | CustomerRepresentativeUncheckedCreateWithoutCustomerInput[]
|
|
connectOrCreate?: CustomerRepresentativeCreateOrConnectWithoutCustomerInput | CustomerRepresentativeCreateOrConnectWithoutCustomerInput[]
|
|
createMany?: CustomerRepresentativeCreateManyCustomerInputEnvelope
|
|
connect?: CustomerRepresentativeWhereUniqueInput | CustomerRepresentativeWhereUniqueInput[]
|
|
}
|
|
|
|
export type UserUncheckedCreateNestedOneWithoutCustomerInput = {
|
|
create?: XOR<UserCreateWithoutCustomerInput, UserUncheckedCreateWithoutCustomerInput>
|
|
connectOrCreate?: UserCreateOrConnectWithoutCustomerInput
|
|
connect?: UserWhereUniqueInput
|
|
}
|
|
|
|
export type AddressUncheckedCreateNestedManyWithoutCustomerInput = {
|
|
create?: XOR<AddressCreateWithoutCustomerInput, AddressUncheckedCreateWithoutCustomerInput> | AddressCreateWithoutCustomerInput[] | AddressUncheckedCreateWithoutCustomerInput[]
|
|
connectOrCreate?: AddressCreateOrConnectWithoutCustomerInput | AddressCreateOrConnectWithoutCustomerInput[]
|
|
createMany?: AddressCreateManyCustomerInputEnvelope
|
|
connect?: AddressWhereUniqueInput | AddressWhereUniqueInput[]
|
|
}
|
|
|
|
export type BankCardUncheckedCreateNestedManyWithoutCustomerInput = {
|
|
create?: XOR<BankCardCreateWithoutCustomerInput, BankCardUncheckedCreateWithoutCustomerInput> | BankCardCreateWithoutCustomerInput[] | BankCardUncheckedCreateWithoutCustomerInput[]
|
|
connectOrCreate?: BankCardCreateOrConnectWithoutCustomerInput | BankCardCreateOrConnectWithoutCustomerInput[]
|
|
createMany?: BankCardCreateManyCustomerInputEnvelope
|
|
connect?: BankCardWhereUniqueInput | BankCardWhereUniqueInput[]
|
|
}
|
|
|
|
export type IdentityDocumentUncheckedCreateNestedManyWithoutCustomerInput = {
|
|
create?: XOR<IdentityDocumentCreateWithoutCustomerInput, IdentityDocumentUncheckedCreateWithoutCustomerInput> | IdentityDocumentCreateWithoutCustomerInput[] | IdentityDocumentUncheckedCreateWithoutCustomerInput[]
|
|
connectOrCreate?: IdentityDocumentCreateOrConnectWithoutCustomerInput | IdentityDocumentCreateOrConnectWithoutCustomerInput[]
|
|
createMany?: IdentityDocumentCreateManyCustomerInputEnvelope
|
|
connect?: IdentityDocumentWhereUniqueInput | IdentityDocumentWhereUniqueInput[]
|
|
}
|
|
|
|
export type MeterUncheckedCreateNestedManyWithoutCustomerInput = {
|
|
create?: XOR<MeterCreateWithoutCustomerInput, MeterUncheckedCreateWithoutCustomerInput> | MeterCreateWithoutCustomerInput[] | MeterUncheckedCreateWithoutCustomerInput[]
|
|
connectOrCreate?: MeterCreateOrConnectWithoutCustomerInput | MeterCreateOrConnectWithoutCustomerInput[]
|
|
createMany?: MeterCreateManyCustomerInputEnvelope
|
|
connect?: MeterWhereUniqueInput | MeterWhereUniqueInput[]
|
|
}
|
|
|
|
export type StressfreiEmailUncheckedCreateNestedManyWithoutCustomerInput = {
|
|
create?: XOR<StressfreiEmailCreateWithoutCustomerInput, StressfreiEmailUncheckedCreateWithoutCustomerInput> | StressfreiEmailCreateWithoutCustomerInput[] | StressfreiEmailUncheckedCreateWithoutCustomerInput[]
|
|
connectOrCreate?: StressfreiEmailCreateOrConnectWithoutCustomerInput | StressfreiEmailCreateOrConnectWithoutCustomerInput[]
|
|
createMany?: StressfreiEmailCreateManyCustomerInputEnvelope
|
|
connect?: StressfreiEmailWhereUniqueInput | StressfreiEmailWhereUniqueInput[]
|
|
}
|
|
|
|
export type ContractUncheckedCreateNestedManyWithoutCustomerInput = {
|
|
create?: XOR<ContractCreateWithoutCustomerInput, ContractUncheckedCreateWithoutCustomerInput> | ContractCreateWithoutCustomerInput[] | ContractUncheckedCreateWithoutCustomerInput[]
|
|
connectOrCreate?: ContractCreateOrConnectWithoutCustomerInput | ContractCreateOrConnectWithoutCustomerInput[]
|
|
createMany?: ContractCreateManyCustomerInputEnvelope
|
|
connect?: ContractWhereUniqueInput | ContractWhereUniqueInput[]
|
|
}
|
|
|
|
export type CustomerRepresentativeUncheckedCreateNestedManyWithoutRepresentativeInput = {
|
|
create?: XOR<CustomerRepresentativeCreateWithoutRepresentativeInput, CustomerRepresentativeUncheckedCreateWithoutRepresentativeInput> | CustomerRepresentativeCreateWithoutRepresentativeInput[] | CustomerRepresentativeUncheckedCreateWithoutRepresentativeInput[]
|
|
connectOrCreate?: CustomerRepresentativeCreateOrConnectWithoutRepresentativeInput | CustomerRepresentativeCreateOrConnectWithoutRepresentativeInput[]
|
|
createMany?: CustomerRepresentativeCreateManyRepresentativeInputEnvelope
|
|
connect?: CustomerRepresentativeWhereUniqueInput | CustomerRepresentativeWhereUniqueInput[]
|
|
}
|
|
|
|
export type CustomerRepresentativeUncheckedCreateNestedManyWithoutCustomerInput = {
|
|
create?: XOR<CustomerRepresentativeCreateWithoutCustomerInput, CustomerRepresentativeUncheckedCreateWithoutCustomerInput> | CustomerRepresentativeCreateWithoutCustomerInput[] | CustomerRepresentativeUncheckedCreateWithoutCustomerInput[]
|
|
connectOrCreate?: CustomerRepresentativeCreateOrConnectWithoutCustomerInput | CustomerRepresentativeCreateOrConnectWithoutCustomerInput[]
|
|
createMany?: CustomerRepresentativeCreateManyCustomerInputEnvelope
|
|
connect?: CustomerRepresentativeWhereUniqueInput | CustomerRepresentativeWhereUniqueInput[]
|
|
}
|
|
|
|
export type EnumCustomerTypeFieldUpdateOperationsInput = {
|
|
set?: $Enums.CustomerType
|
|
}
|
|
|
|
export type UserUpdateOneWithoutCustomerNestedInput = {
|
|
create?: XOR<UserCreateWithoutCustomerInput, UserUncheckedCreateWithoutCustomerInput>
|
|
connectOrCreate?: UserCreateOrConnectWithoutCustomerInput
|
|
upsert?: UserUpsertWithoutCustomerInput
|
|
disconnect?: UserWhereInput | boolean
|
|
delete?: UserWhereInput | boolean
|
|
connect?: UserWhereUniqueInput
|
|
update?: XOR<XOR<UserUpdateToOneWithWhereWithoutCustomerInput, UserUpdateWithoutCustomerInput>, UserUncheckedUpdateWithoutCustomerInput>
|
|
}
|
|
|
|
export type AddressUpdateManyWithoutCustomerNestedInput = {
|
|
create?: XOR<AddressCreateWithoutCustomerInput, AddressUncheckedCreateWithoutCustomerInput> | AddressCreateWithoutCustomerInput[] | AddressUncheckedCreateWithoutCustomerInput[]
|
|
connectOrCreate?: AddressCreateOrConnectWithoutCustomerInput | AddressCreateOrConnectWithoutCustomerInput[]
|
|
upsert?: AddressUpsertWithWhereUniqueWithoutCustomerInput | AddressUpsertWithWhereUniqueWithoutCustomerInput[]
|
|
createMany?: AddressCreateManyCustomerInputEnvelope
|
|
set?: AddressWhereUniqueInput | AddressWhereUniqueInput[]
|
|
disconnect?: AddressWhereUniqueInput | AddressWhereUniqueInput[]
|
|
delete?: AddressWhereUniqueInput | AddressWhereUniqueInput[]
|
|
connect?: AddressWhereUniqueInput | AddressWhereUniqueInput[]
|
|
update?: AddressUpdateWithWhereUniqueWithoutCustomerInput | AddressUpdateWithWhereUniqueWithoutCustomerInput[]
|
|
updateMany?: AddressUpdateManyWithWhereWithoutCustomerInput | AddressUpdateManyWithWhereWithoutCustomerInput[]
|
|
deleteMany?: AddressScalarWhereInput | AddressScalarWhereInput[]
|
|
}
|
|
|
|
export type BankCardUpdateManyWithoutCustomerNestedInput = {
|
|
create?: XOR<BankCardCreateWithoutCustomerInput, BankCardUncheckedCreateWithoutCustomerInput> | BankCardCreateWithoutCustomerInput[] | BankCardUncheckedCreateWithoutCustomerInput[]
|
|
connectOrCreate?: BankCardCreateOrConnectWithoutCustomerInput | BankCardCreateOrConnectWithoutCustomerInput[]
|
|
upsert?: BankCardUpsertWithWhereUniqueWithoutCustomerInput | BankCardUpsertWithWhereUniqueWithoutCustomerInput[]
|
|
createMany?: BankCardCreateManyCustomerInputEnvelope
|
|
set?: BankCardWhereUniqueInput | BankCardWhereUniqueInput[]
|
|
disconnect?: BankCardWhereUniqueInput | BankCardWhereUniqueInput[]
|
|
delete?: BankCardWhereUniqueInput | BankCardWhereUniqueInput[]
|
|
connect?: BankCardWhereUniqueInput | BankCardWhereUniqueInput[]
|
|
update?: BankCardUpdateWithWhereUniqueWithoutCustomerInput | BankCardUpdateWithWhereUniqueWithoutCustomerInput[]
|
|
updateMany?: BankCardUpdateManyWithWhereWithoutCustomerInput | BankCardUpdateManyWithWhereWithoutCustomerInput[]
|
|
deleteMany?: BankCardScalarWhereInput | BankCardScalarWhereInput[]
|
|
}
|
|
|
|
export type IdentityDocumentUpdateManyWithoutCustomerNestedInput = {
|
|
create?: XOR<IdentityDocumentCreateWithoutCustomerInput, IdentityDocumentUncheckedCreateWithoutCustomerInput> | IdentityDocumentCreateWithoutCustomerInput[] | IdentityDocumentUncheckedCreateWithoutCustomerInput[]
|
|
connectOrCreate?: IdentityDocumentCreateOrConnectWithoutCustomerInput | IdentityDocumentCreateOrConnectWithoutCustomerInput[]
|
|
upsert?: IdentityDocumentUpsertWithWhereUniqueWithoutCustomerInput | IdentityDocumentUpsertWithWhereUniqueWithoutCustomerInput[]
|
|
createMany?: IdentityDocumentCreateManyCustomerInputEnvelope
|
|
set?: IdentityDocumentWhereUniqueInput | IdentityDocumentWhereUniqueInput[]
|
|
disconnect?: IdentityDocumentWhereUniqueInput | IdentityDocumentWhereUniqueInput[]
|
|
delete?: IdentityDocumentWhereUniqueInput | IdentityDocumentWhereUniqueInput[]
|
|
connect?: IdentityDocumentWhereUniqueInput | IdentityDocumentWhereUniqueInput[]
|
|
update?: IdentityDocumentUpdateWithWhereUniqueWithoutCustomerInput | IdentityDocumentUpdateWithWhereUniqueWithoutCustomerInput[]
|
|
updateMany?: IdentityDocumentUpdateManyWithWhereWithoutCustomerInput | IdentityDocumentUpdateManyWithWhereWithoutCustomerInput[]
|
|
deleteMany?: IdentityDocumentScalarWhereInput | IdentityDocumentScalarWhereInput[]
|
|
}
|
|
|
|
export type MeterUpdateManyWithoutCustomerNestedInput = {
|
|
create?: XOR<MeterCreateWithoutCustomerInput, MeterUncheckedCreateWithoutCustomerInput> | MeterCreateWithoutCustomerInput[] | MeterUncheckedCreateWithoutCustomerInput[]
|
|
connectOrCreate?: MeterCreateOrConnectWithoutCustomerInput | MeterCreateOrConnectWithoutCustomerInput[]
|
|
upsert?: MeterUpsertWithWhereUniqueWithoutCustomerInput | MeterUpsertWithWhereUniqueWithoutCustomerInput[]
|
|
createMany?: MeterCreateManyCustomerInputEnvelope
|
|
set?: MeterWhereUniqueInput | MeterWhereUniqueInput[]
|
|
disconnect?: MeterWhereUniqueInput | MeterWhereUniqueInput[]
|
|
delete?: MeterWhereUniqueInput | MeterWhereUniqueInput[]
|
|
connect?: MeterWhereUniqueInput | MeterWhereUniqueInput[]
|
|
update?: MeterUpdateWithWhereUniqueWithoutCustomerInput | MeterUpdateWithWhereUniqueWithoutCustomerInput[]
|
|
updateMany?: MeterUpdateManyWithWhereWithoutCustomerInput | MeterUpdateManyWithWhereWithoutCustomerInput[]
|
|
deleteMany?: MeterScalarWhereInput | MeterScalarWhereInput[]
|
|
}
|
|
|
|
export type StressfreiEmailUpdateManyWithoutCustomerNestedInput = {
|
|
create?: XOR<StressfreiEmailCreateWithoutCustomerInput, StressfreiEmailUncheckedCreateWithoutCustomerInput> | StressfreiEmailCreateWithoutCustomerInput[] | StressfreiEmailUncheckedCreateWithoutCustomerInput[]
|
|
connectOrCreate?: StressfreiEmailCreateOrConnectWithoutCustomerInput | StressfreiEmailCreateOrConnectWithoutCustomerInput[]
|
|
upsert?: StressfreiEmailUpsertWithWhereUniqueWithoutCustomerInput | StressfreiEmailUpsertWithWhereUniqueWithoutCustomerInput[]
|
|
createMany?: StressfreiEmailCreateManyCustomerInputEnvelope
|
|
set?: StressfreiEmailWhereUniqueInput | StressfreiEmailWhereUniqueInput[]
|
|
disconnect?: StressfreiEmailWhereUniqueInput | StressfreiEmailWhereUniqueInput[]
|
|
delete?: StressfreiEmailWhereUniqueInput | StressfreiEmailWhereUniqueInput[]
|
|
connect?: StressfreiEmailWhereUniqueInput | StressfreiEmailWhereUniqueInput[]
|
|
update?: StressfreiEmailUpdateWithWhereUniqueWithoutCustomerInput | StressfreiEmailUpdateWithWhereUniqueWithoutCustomerInput[]
|
|
updateMany?: StressfreiEmailUpdateManyWithWhereWithoutCustomerInput | StressfreiEmailUpdateManyWithWhereWithoutCustomerInput[]
|
|
deleteMany?: StressfreiEmailScalarWhereInput | StressfreiEmailScalarWhereInput[]
|
|
}
|
|
|
|
export type ContractUpdateManyWithoutCustomerNestedInput = {
|
|
create?: XOR<ContractCreateWithoutCustomerInput, ContractUncheckedCreateWithoutCustomerInput> | ContractCreateWithoutCustomerInput[] | ContractUncheckedCreateWithoutCustomerInput[]
|
|
connectOrCreate?: ContractCreateOrConnectWithoutCustomerInput | ContractCreateOrConnectWithoutCustomerInput[]
|
|
upsert?: ContractUpsertWithWhereUniqueWithoutCustomerInput | ContractUpsertWithWhereUniqueWithoutCustomerInput[]
|
|
createMany?: ContractCreateManyCustomerInputEnvelope
|
|
set?: ContractWhereUniqueInput | ContractWhereUniqueInput[]
|
|
disconnect?: ContractWhereUniqueInput | ContractWhereUniqueInput[]
|
|
delete?: ContractWhereUniqueInput | ContractWhereUniqueInput[]
|
|
connect?: ContractWhereUniqueInput | ContractWhereUniqueInput[]
|
|
update?: ContractUpdateWithWhereUniqueWithoutCustomerInput | ContractUpdateWithWhereUniqueWithoutCustomerInput[]
|
|
updateMany?: ContractUpdateManyWithWhereWithoutCustomerInput | ContractUpdateManyWithWhereWithoutCustomerInput[]
|
|
deleteMany?: ContractScalarWhereInput | ContractScalarWhereInput[]
|
|
}
|
|
|
|
export type CustomerRepresentativeUpdateManyWithoutRepresentativeNestedInput = {
|
|
create?: XOR<CustomerRepresentativeCreateWithoutRepresentativeInput, CustomerRepresentativeUncheckedCreateWithoutRepresentativeInput> | CustomerRepresentativeCreateWithoutRepresentativeInput[] | CustomerRepresentativeUncheckedCreateWithoutRepresentativeInput[]
|
|
connectOrCreate?: CustomerRepresentativeCreateOrConnectWithoutRepresentativeInput | CustomerRepresentativeCreateOrConnectWithoutRepresentativeInput[]
|
|
upsert?: CustomerRepresentativeUpsertWithWhereUniqueWithoutRepresentativeInput | CustomerRepresentativeUpsertWithWhereUniqueWithoutRepresentativeInput[]
|
|
createMany?: CustomerRepresentativeCreateManyRepresentativeInputEnvelope
|
|
set?: CustomerRepresentativeWhereUniqueInput | CustomerRepresentativeWhereUniqueInput[]
|
|
disconnect?: CustomerRepresentativeWhereUniqueInput | CustomerRepresentativeWhereUniqueInput[]
|
|
delete?: CustomerRepresentativeWhereUniqueInput | CustomerRepresentativeWhereUniqueInput[]
|
|
connect?: CustomerRepresentativeWhereUniqueInput | CustomerRepresentativeWhereUniqueInput[]
|
|
update?: CustomerRepresentativeUpdateWithWhereUniqueWithoutRepresentativeInput | CustomerRepresentativeUpdateWithWhereUniqueWithoutRepresentativeInput[]
|
|
updateMany?: CustomerRepresentativeUpdateManyWithWhereWithoutRepresentativeInput | CustomerRepresentativeUpdateManyWithWhereWithoutRepresentativeInput[]
|
|
deleteMany?: CustomerRepresentativeScalarWhereInput | CustomerRepresentativeScalarWhereInput[]
|
|
}
|
|
|
|
export type CustomerRepresentativeUpdateManyWithoutCustomerNestedInput = {
|
|
create?: XOR<CustomerRepresentativeCreateWithoutCustomerInput, CustomerRepresentativeUncheckedCreateWithoutCustomerInput> | CustomerRepresentativeCreateWithoutCustomerInput[] | CustomerRepresentativeUncheckedCreateWithoutCustomerInput[]
|
|
connectOrCreate?: CustomerRepresentativeCreateOrConnectWithoutCustomerInput | CustomerRepresentativeCreateOrConnectWithoutCustomerInput[]
|
|
upsert?: CustomerRepresentativeUpsertWithWhereUniqueWithoutCustomerInput | CustomerRepresentativeUpsertWithWhereUniqueWithoutCustomerInput[]
|
|
createMany?: CustomerRepresentativeCreateManyCustomerInputEnvelope
|
|
set?: CustomerRepresentativeWhereUniqueInput | CustomerRepresentativeWhereUniqueInput[]
|
|
disconnect?: CustomerRepresentativeWhereUniqueInput | CustomerRepresentativeWhereUniqueInput[]
|
|
delete?: CustomerRepresentativeWhereUniqueInput | CustomerRepresentativeWhereUniqueInput[]
|
|
connect?: CustomerRepresentativeWhereUniqueInput | CustomerRepresentativeWhereUniqueInput[]
|
|
update?: CustomerRepresentativeUpdateWithWhereUniqueWithoutCustomerInput | CustomerRepresentativeUpdateWithWhereUniqueWithoutCustomerInput[]
|
|
updateMany?: CustomerRepresentativeUpdateManyWithWhereWithoutCustomerInput | CustomerRepresentativeUpdateManyWithWhereWithoutCustomerInput[]
|
|
deleteMany?: CustomerRepresentativeScalarWhereInput | CustomerRepresentativeScalarWhereInput[]
|
|
}
|
|
|
|
export type UserUncheckedUpdateOneWithoutCustomerNestedInput = {
|
|
create?: XOR<UserCreateWithoutCustomerInput, UserUncheckedCreateWithoutCustomerInput>
|
|
connectOrCreate?: UserCreateOrConnectWithoutCustomerInput
|
|
upsert?: UserUpsertWithoutCustomerInput
|
|
disconnect?: UserWhereInput | boolean
|
|
delete?: UserWhereInput | boolean
|
|
connect?: UserWhereUniqueInput
|
|
update?: XOR<XOR<UserUpdateToOneWithWhereWithoutCustomerInput, UserUpdateWithoutCustomerInput>, UserUncheckedUpdateWithoutCustomerInput>
|
|
}
|
|
|
|
export type AddressUncheckedUpdateManyWithoutCustomerNestedInput = {
|
|
create?: XOR<AddressCreateWithoutCustomerInput, AddressUncheckedCreateWithoutCustomerInput> | AddressCreateWithoutCustomerInput[] | AddressUncheckedCreateWithoutCustomerInput[]
|
|
connectOrCreate?: AddressCreateOrConnectWithoutCustomerInput | AddressCreateOrConnectWithoutCustomerInput[]
|
|
upsert?: AddressUpsertWithWhereUniqueWithoutCustomerInput | AddressUpsertWithWhereUniqueWithoutCustomerInput[]
|
|
createMany?: AddressCreateManyCustomerInputEnvelope
|
|
set?: AddressWhereUniqueInput | AddressWhereUniqueInput[]
|
|
disconnect?: AddressWhereUniqueInput | AddressWhereUniqueInput[]
|
|
delete?: AddressWhereUniqueInput | AddressWhereUniqueInput[]
|
|
connect?: AddressWhereUniqueInput | AddressWhereUniqueInput[]
|
|
update?: AddressUpdateWithWhereUniqueWithoutCustomerInput | AddressUpdateWithWhereUniqueWithoutCustomerInput[]
|
|
updateMany?: AddressUpdateManyWithWhereWithoutCustomerInput | AddressUpdateManyWithWhereWithoutCustomerInput[]
|
|
deleteMany?: AddressScalarWhereInput | AddressScalarWhereInput[]
|
|
}
|
|
|
|
export type BankCardUncheckedUpdateManyWithoutCustomerNestedInput = {
|
|
create?: XOR<BankCardCreateWithoutCustomerInput, BankCardUncheckedCreateWithoutCustomerInput> | BankCardCreateWithoutCustomerInput[] | BankCardUncheckedCreateWithoutCustomerInput[]
|
|
connectOrCreate?: BankCardCreateOrConnectWithoutCustomerInput | BankCardCreateOrConnectWithoutCustomerInput[]
|
|
upsert?: BankCardUpsertWithWhereUniqueWithoutCustomerInput | BankCardUpsertWithWhereUniqueWithoutCustomerInput[]
|
|
createMany?: BankCardCreateManyCustomerInputEnvelope
|
|
set?: BankCardWhereUniqueInput | BankCardWhereUniqueInput[]
|
|
disconnect?: BankCardWhereUniqueInput | BankCardWhereUniqueInput[]
|
|
delete?: BankCardWhereUniqueInput | BankCardWhereUniqueInput[]
|
|
connect?: BankCardWhereUniqueInput | BankCardWhereUniqueInput[]
|
|
update?: BankCardUpdateWithWhereUniqueWithoutCustomerInput | BankCardUpdateWithWhereUniqueWithoutCustomerInput[]
|
|
updateMany?: BankCardUpdateManyWithWhereWithoutCustomerInput | BankCardUpdateManyWithWhereWithoutCustomerInput[]
|
|
deleteMany?: BankCardScalarWhereInput | BankCardScalarWhereInput[]
|
|
}
|
|
|
|
export type IdentityDocumentUncheckedUpdateManyWithoutCustomerNestedInput = {
|
|
create?: XOR<IdentityDocumentCreateWithoutCustomerInput, IdentityDocumentUncheckedCreateWithoutCustomerInput> | IdentityDocumentCreateWithoutCustomerInput[] | IdentityDocumentUncheckedCreateWithoutCustomerInput[]
|
|
connectOrCreate?: IdentityDocumentCreateOrConnectWithoutCustomerInput | IdentityDocumentCreateOrConnectWithoutCustomerInput[]
|
|
upsert?: IdentityDocumentUpsertWithWhereUniqueWithoutCustomerInput | IdentityDocumentUpsertWithWhereUniqueWithoutCustomerInput[]
|
|
createMany?: IdentityDocumentCreateManyCustomerInputEnvelope
|
|
set?: IdentityDocumentWhereUniqueInput | IdentityDocumentWhereUniqueInput[]
|
|
disconnect?: IdentityDocumentWhereUniqueInput | IdentityDocumentWhereUniqueInput[]
|
|
delete?: IdentityDocumentWhereUniqueInput | IdentityDocumentWhereUniqueInput[]
|
|
connect?: IdentityDocumentWhereUniqueInput | IdentityDocumentWhereUniqueInput[]
|
|
update?: IdentityDocumentUpdateWithWhereUniqueWithoutCustomerInput | IdentityDocumentUpdateWithWhereUniqueWithoutCustomerInput[]
|
|
updateMany?: IdentityDocumentUpdateManyWithWhereWithoutCustomerInput | IdentityDocumentUpdateManyWithWhereWithoutCustomerInput[]
|
|
deleteMany?: IdentityDocumentScalarWhereInput | IdentityDocumentScalarWhereInput[]
|
|
}
|
|
|
|
export type MeterUncheckedUpdateManyWithoutCustomerNestedInput = {
|
|
create?: XOR<MeterCreateWithoutCustomerInput, MeterUncheckedCreateWithoutCustomerInput> | MeterCreateWithoutCustomerInput[] | MeterUncheckedCreateWithoutCustomerInput[]
|
|
connectOrCreate?: MeterCreateOrConnectWithoutCustomerInput | MeterCreateOrConnectWithoutCustomerInput[]
|
|
upsert?: MeterUpsertWithWhereUniqueWithoutCustomerInput | MeterUpsertWithWhereUniqueWithoutCustomerInput[]
|
|
createMany?: MeterCreateManyCustomerInputEnvelope
|
|
set?: MeterWhereUniqueInput | MeterWhereUniqueInput[]
|
|
disconnect?: MeterWhereUniqueInput | MeterWhereUniqueInput[]
|
|
delete?: MeterWhereUniqueInput | MeterWhereUniqueInput[]
|
|
connect?: MeterWhereUniqueInput | MeterWhereUniqueInput[]
|
|
update?: MeterUpdateWithWhereUniqueWithoutCustomerInput | MeterUpdateWithWhereUniqueWithoutCustomerInput[]
|
|
updateMany?: MeterUpdateManyWithWhereWithoutCustomerInput | MeterUpdateManyWithWhereWithoutCustomerInput[]
|
|
deleteMany?: MeterScalarWhereInput | MeterScalarWhereInput[]
|
|
}
|
|
|
|
export type StressfreiEmailUncheckedUpdateManyWithoutCustomerNestedInput = {
|
|
create?: XOR<StressfreiEmailCreateWithoutCustomerInput, StressfreiEmailUncheckedCreateWithoutCustomerInput> | StressfreiEmailCreateWithoutCustomerInput[] | StressfreiEmailUncheckedCreateWithoutCustomerInput[]
|
|
connectOrCreate?: StressfreiEmailCreateOrConnectWithoutCustomerInput | StressfreiEmailCreateOrConnectWithoutCustomerInput[]
|
|
upsert?: StressfreiEmailUpsertWithWhereUniqueWithoutCustomerInput | StressfreiEmailUpsertWithWhereUniqueWithoutCustomerInput[]
|
|
createMany?: StressfreiEmailCreateManyCustomerInputEnvelope
|
|
set?: StressfreiEmailWhereUniqueInput | StressfreiEmailWhereUniqueInput[]
|
|
disconnect?: StressfreiEmailWhereUniqueInput | StressfreiEmailWhereUniqueInput[]
|
|
delete?: StressfreiEmailWhereUniqueInput | StressfreiEmailWhereUniqueInput[]
|
|
connect?: StressfreiEmailWhereUniqueInput | StressfreiEmailWhereUniqueInput[]
|
|
update?: StressfreiEmailUpdateWithWhereUniqueWithoutCustomerInput | StressfreiEmailUpdateWithWhereUniqueWithoutCustomerInput[]
|
|
updateMany?: StressfreiEmailUpdateManyWithWhereWithoutCustomerInput | StressfreiEmailUpdateManyWithWhereWithoutCustomerInput[]
|
|
deleteMany?: StressfreiEmailScalarWhereInput | StressfreiEmailScalarWhereInput[]
|
|
}
|
|
|
|
export type ContractUncheckedUpdateManyWithoutCustomerNestedInput = {
|
|
create?: XOR<ContractCreateWithoutCustomerInput, ContractUncheckedCreateWithoutCustomerInput> | ContractCreateWithoutCustomerInput[] | ContractUncheckedCreateWithoutCustomerInput[]
|
|
connectOrCreate?: ContractCreateOrConnectWithoutCustomerInput | ContractCreateOrConnectWithoutCustomerInput[]
|
|
upsert?: ContractUpsertWithWhereUniqueWithoutCustomerInput | ContractUpsertWithWhereUniqueWithoutCustomerInput[]
|
|
createMany?: ContractCreateManyCustomerInputEnvelope
|
|
set?: ContractWhereUniqueInput | ContractWhereUniqueInput[]
|
|
disconnect?: ContractWhereUniqueInput | ContractWhereUniqueInput[]
|
|
delete?: ContractWhereUniqueInput | ContractWhereUniqueInput[]
|
|
connect?: ContractWhereUniqueInput | ContractWhereUniqueInput[]
|
|
update?: ContractUpdateWithWhereUniqueWithoutCustomerInput | ContractUpdateWithWhereUniqueWithoutCustomerInput[]
|
|
updateMany?: ContractUpdateManyWithWhereWithoutCustomerInput | ContractUpdateManyWithWhereWithoutCustomerInput[]
|
|
deleteMany?: ContractScalarWhereInput | ContractScalarWhereInput[]
|
|
}
|
|
|
|
export type CustomerRepresentativeUncheckedUpdateManyWithoutRepresentativeNestedInput = {
|
|
create?: XOR<CustomerRepresentativeCreateWithoutRepresentativeInput, CustomerRepresentativeUncheckedCreateWithoutRepresentativeInput> | CustomerRepresentativeCreateWithoutRepresentativeInput[] | CustomerRepresentativeUncheckedCreateWithoutRepresentativeInput[]
|
|
connectOrCreate?: CustomerRepresentativeCreateOrConnectWithoutRepresentativeInput | CustomerRepresentativeCreateOrConnectWithoutRepresentativeInput[]
|
|
upsert?: CustomerRepresentativeUpsertWithWhereUniqueWithoutRepresentativeInput | CustomerRepresentativeUpsertWithWhereUniqueWithoutRepresentativeInput[]
|
|
createMany?: CustomerRepresentativeCreateManyRepresentativeInputEnvelope
|
|
set?: CustomerRepresentativeWhereUniqueInput | CustomerRepresentativeWhereUniqueInput[]
|
|
disconnect?: CustomerRepresentativeWhereUniqueInput | CustomerRepresentativeWhereUniqueInput[]
|
|
delete?: CustomerRepresentativeWhereUniqueInput | CustomerRepresentativeWhereUniqueInput[]
|
|
connect?: CustomerRepresentativeWhereUniqueInput | CustomerRepresentativeWhereUniqueInput[]
|
|
update?: CustomerRepresentativeUpdateWithWhereUniqueWithoutRepresentativeInput | CustomerRepresentativeUpdateWithWhereUniqueWithoutRepresentativeInput[]
|
|
updateMany?: CustomerRepresentativeUpdateManyWithWhereWithoutRepresentativeInput | CustomerRepresentativeUpdateManyWithWhereWithoutRepresentativeInput[]
|
|
deleteMany?: CustomerRepresentativeScalarWhereInput | CustomerRepresentativeScalarWhereInput[]
|
|
}
|
|
|
|
export type CustomerRepresentativeUncheckedUpdateManyWithoutCustomerNestedInput = {
|
|
create?: XOR<CustomerRepresentativeCreateWithoutCustomerInput, CustomerRepresentativeUncheckedCreateWithoutCustomerInput> | CustomerRepresentativeCreateWithoutCustomerInput[] | CustomerRepresentativeUncheckedCreateWithoutCustomerInput[]
|
|
connectOrCreate?: CustomerRepresentativeCreateOrConnectWithoutCustomerInput | CustomerRepresentativeCreateOrConnectWithoutCustomerInput[]
|
|
upsert?: CustomerRepresentativeUpsertWithWhereUniqueWithoutCustomerInput | CustomerRepresentativeUpsertWithWhereUniqueWithoutCustomerInput[]
|
|
createMany?: CustomerRepresentativeCreateManyCustomerInputEnvelope
|
|
set?: CustomerRepresentativeWhereUniqueInput | CustomerRepresentativeWhereUniqueInput[]
|
|
disconnect?: CustomerRepresentativeWhereUniqueInput | CustomerRepresentativeWhereUniqueInput[]
|
|
delete?: CustomerRepresentativeWhereUniqueInput | CustomerRepresentativeWhereUniqueInput[]
|
|
connect?: CustomerRepresentativeWhereUniqueInput | CustomerRepresentativeWhereUniqueInput[]
|
|
update?: CustomerRepresentativeUpdateWithWhereUniqueWithoutCustomerInput | CustomerRepresentativeUpdateWithWhereUniqueWithoutCustomerInput[]
|
|
updateMany?: CustomerRepresentativeUpdateManyWithWhereWithoutCustomerInput | CustomerRepresentativeUpdateManyWithWhereWithoutCustomerInput[]
|
|
deleteMany?: CustomerRepresentativeScalarWhereInput | CustomerRepresentativeScalarWhereInput[]
|
|
}
|
|
|
|
export type CustomerCreateNestedOneWithoutRepresentedByInput = {
|
|
create?: XOR<CustomerCreateWithoutRepresentedByInput, CustomerUncheckedCreateWithoutRepresentedByInput>
|
|
connectOrCreate?: CustomerCreateOrConnectWithoutRepresentedByInput
|
|
connect?: CustomerWhereUniqueInput
|
|
}
|
|
|
|
export type CustomerCreateNestedOneWithoutRepresentingForInput = {
|
|
create?: XOR<CustomerCreateWithoutRepresentingForInput, CustomerUncheckedCreateWithoutRepresentingForInput>
|
|
connectOrCreate?: CustomerCreateOrConnectWithoutRepresentingForInput
|
|
connect?: CustomerWhereUniqueInput
|
|
}
|
|
|
|
export type CustomerUpdateOneRequiredWithoutRepresentedByNestedInput = {
|
|
create?: XOR<CustomerCreateWithoutRepresentedByInput, CustomerUncheckedCreateWithoutRepresentedByInput>
|
|
connectOrCreate?: CustomerCreateOrConnectWithoutRepresentedByInput
|
|
upsert?: CustomerUpsertWithoutRepresentedByInput
|
|
connect?: CustomerWhereUniqueInput
|
|
update?: XOR<XOR<CustomerUpdateToOneWithWhereWithoutRepresentedByInput, CustomerUpdateWithoutRepresentedByInput>, CustomerUncheckedUpdateWithoutRepresentedByInput>
|
|
}
|
|
|
|
export type CustomerUpdateOneRequiredWithoutRepresentingForNestedInput = {
|
|
create?: XOR<CustomerCreateWithoutRepresentingForInput, CustomerUncheckedCreateWithoutRepresentingForInput>
|
|
connectOrCreate?: CustomerCreateOrConnectWithoutRepresentingForInput
|
|
upsert?: CustomerUpsertWithoutRepresentingForInput
|
|
connect?: CustomerWhereUniqueInput
|
|
update?: XOR<XOR<CustomerUpdateToOneWithWhereWithoutRepresentingForInput, CustomerUpdateWithoutRepresentingForInput>, CustomerUncheckedUpdateWithoutRepresentingForInput>
|
|
}
|
|
|
|
export type CustomerCreateNestedOneWithoutAddressesInput = {
|
|
create?: XOR<CustomerCreateWithoutAddressesInput, CustomerUncheckedCreateWithoutAddressesInput>
|
|
connectOrCreate?: CustomerCreateOrConnectWithoutAddressesInput
|
|
connect?: CustomerWhereUniqueInput
|
|
}
|
|
|
|
export type ContractCreateNestedManyWithoutAddressInput = {
|
|
create?: XOR<ContractCreateWithoutAddressInput, ContractUncheckedCreateWithoutAddressInput> | ContractCreateWithoutAddressInput[] | ContractUncheckedCreateWithoutAddressInput[]
|
|
connectOrCreate?: ContractCreateOrConnectWithoutAddressInput | ContractCreateOrConnectWithoutAddressInput[]
|
|
createMany?: ContractCreateManyAddressInputEnvelope
|
|
connect?: ContractWhereUniqueInput | ContractWhereUniqueInput[]
|
|
}
|
|
|
|
export type ContractCreateNestedManyWithoutBillingAddressInput = {
|
|
create?: XOR<ContractCreateWithoutBillingAddressInput, ContractUncheckedCreateWithoutBillingAddressInput> | ContractCreateWithoutBillingAddressInput[] | ContractUncheckedCreateWithoutBillingAddressInput[]
|
|
connectOrCreate?: ContractCreateOrConnectWithoutBillingAddressInput | ContractCreateOrConnectWithoutBillingAddressInput[]
|
|
createMany?: ContractCreateManyBillingAddressInputEnvelope
|
|
connect?: ContractWhereUniqueInput | ContractWhereUniqueInput[]
|
|
}
|
|
|
|
export type ContractUncheckedCreateNestedManyWithoutAddressInput = {
|
|
create?: XOR<ContractCreateWithoutAddressInput, ContractUncheckedCreateWithoutAddressInput> | ContractCreateWithoutAddressInput[] | ContractUncheckedCreateWithoutAddressInput[]
|
|
connectOrCreate?: ContractCreateOrConnectWithoutAddressInput | ContractCreateOrConnectWithoutAddressInput[]
|
|
createMany?: ContractCreateManyAddressInputEnvelope
|
|
connect?: ContractWhereUniqueInput | ContractWhereUniqueInput[]
|
|
}
|
|
|
|
export type ContractUncheckedCreateNestedManyWithoutBillingAddressInput = {
|
|
create?: XOR<ContractCreateWithoutBillingAddressInput, ContractUncheckedCreateWithoutBillingAddressInput> | ContractCreateWithoutBillingAddressInput[] | ContractUncheckedCreateWithoutBillingAddressInput[]
|
|
connectOrCreate?: ContractCreateOrConnectWithoutBillingAddressInput | ContractCreateOrConnectWithoutBillingAddressInput[]
|
|
createMany?: ContractCreateManyBillingAddressInputEnvelope
|
|
connect?: ContractWhereUniqueInput | ContractWhereUniqueInput[]
|
|
}
|
|
|
|
export type EnumAddressTypeFieldUpdateOperationsInput = {
|
|
set?: $Enums.AddressType
|
|
}
|
|
|
|
export type CustomerUpdateOneRequiredWithoutAddressesNestedInput = {
|
|
create?: XOR<CustomerCreateWithoutAddressesInput, CustomerUncheckedCreateWithoutAddressesInput>
|
|
connectOrCreate?: CustomerCreateOrConnectWithoutAddressesInput
|
|
upsert?: CustomerUpsertWithoutAddressesInput
|
|
connect?: CustomerWhereUniqueInput
|
|
update?: XOR<XOR<CustomerUpdateToOneWithWhereWithoutAddressesInput, CustomerUpdateWithoutAddressesInput>, CustomerUncheckedUpdateWithoutAddressesInput>
|
|
}
|
|
|
|
export type ContractUpdateManyWithoutAddressNestedInput = {
|
|
create?: XOR<ContractCreateWithoutAddressInput, ContractUncheckedCreateWithoutAddressInput> | ContractCreateWithoutAddressInput[] | ContractUncheckedCreateWithoutAddressInput[]
|
|
connectOrCreate?: ContractCreateOrConnectWithoutAddressInput | ContractCreateOrConnectWithoutAddressInput[]
|
|
upsert?: ContractUpsertWithWhereUniqueWithoutAddressInput | ContractUpsertWithWhereUniqueWithoutAddressInput[]
|
|
createMany?: ContractCreateManyAddressInputEnvelope
|
|
set?: ContractWhereUniqueInput | ContractWhereUniqueInput[]
|
|
disconnect?: ContractWhereUniqueInput | ContractWhereUniqueInput[]
|
|
delete?: ContractWhereUniqueInput | ContractWhereUniqueInput[]
|
|
connect?: ContractWhereUniqueInput | ContractWhereUniqueInput[]
|
|
update?: ContractUpdateWithWhereUniqueWithoutAddressInput | ContractUpdateWithWhereUniqueWithoutAddressInput[]
|
|
updateMany?: ContractUpdateManyWithWhereWithoutAddressInput | ContractUpdateManyWithWhereWithoutAddressInput[]
|
|
deleteMany?: ContractScalarWhereInput | ContractScalarWhereInput[]
|
|
}
|
|
|
|
export type ContractUpdateManyWithoutBillingAddressNestedInput = {
|
|
create?: XOR<ContractCreateWithoutBillingAddressInput, ContractUncheckedCreateWithoutBillingAddressInput> | ContractCreateWithoutBillingAddressInput[] | ContractUncheckedCreateWithoutBillingAddressInput[]
|
|
connectOrCreate?: ContractCreateOrConnectWithoutBillingAddressInput | ContractCreateOrConnectWithoutBillingAddressInput[]
|
|
upsert?: ContractUpsertWithWhereUniqueWithoutBillingAddressInput | ContractUpsertWithWhereUniqueWithoutBillingAddressInput[]
|
|
createMany?: ContractCreateManyBillingAddressInputEnvelope
|
|
set?: ContractWhereUniqueInput | ContractWhereUniqueInput[]
|
|
disconnect?: ContractWhereUniqueInput | ContractWhereUniqueInput[]
|
|
delete?: ContractWhereUniqueInput | ContractWhereUniqueInput[]
|
|
connect?: ContractWhereUniqueInput | ContractWhereUniqueInput[]
|
|
update?: ContractUpdateWithWhereUniqueWithoutBillingAddressInput | ContractUpdateWithWhereUniqueWithoutBillingAddressInput[]
|
|
updateMany?: ContractUpdateManyWithWhereWithoutBillingAddressInput | ContractUpdateManyWithWhereWithoutBillingAddressInput[]
|
|
deleteMany?: ContractScalarWhereInput | ContractScalarWhereInput[]
|
|
}
|
|
|
|
export type ContractUncheckedUpdateManyWithoutAddressNestedInput = {
|
|
create?: XOR<ContractCreateWithoutAddressInput, ContractUncheckedCreateWithoutAddressInput> | ContractCreateWithoutAddressInput[] | ContractUncheckedCreateWithoutAddressInput[]
|
|
connectOrCreate?: ContractCreateOrConnectWithoutAddressInput | ContractCreateOrConnectWithoutAddressInput[]
|
|
upsert?: ContractUpsertWithWhereUniqueWithoutAddressInput | ContractUpsertWithWhereUniqueWithoutAddressInput[]
|
|
createMany?: ContractCreateManyAddressInputEnvelope
|
|
set?: ContractWhereUniqueInput | ContractWhereUniqueInput[]
|
|
disconnect?: ContractWhereUniqueInput | ContractWhereUniqueInput[]
|
|
delete?: ContractWhereUniqueInput | ContractWhereUniqueInput[]
|
|
connect?: ContractWhereUniqueInput | ContractWhereUniqueInput[]
|
|
update?: ContractUpdateWithWhereUniqueWithoutAddressInput | ContractUpdateWithWhereUniqueWithoutAddressInput[]
|
|
updateMany?: ContractUpdateManyWithWhereWithoutAddressInput | ContractUpdateManyWithWhereWithoutAddressInput[]
|
|
deleteMany?: ContractScalarWhereInput | ContractScalarWhereInput[]
|
|
}
|
|
|
|
export type ContractUncheckedUpdateManyWithoutBillingAddressNestedInput = {
|
|
create?: XOR<ContractCreateWithoutBillingAddressInput, ContractUncheckedCreateWithoutBillingAddressInput> | ContractCreateWithoutBillingAddressInput[] | ContractUncheckedCreateWithoutBillingAddressInput[]
|
|
connectOrCreate?: ContractCreateOrConnectWithoutBillingAddressInput | ContractCreateOrConnectWithoutBillingAddressInput[]
|
|
upsert?: ContractUpsertWithWhereUniqueWithoutBillingAddressInput | ContractUpsertWithWhereUniqueWithoutBillingAddressInput[]
|
|
createMany?: ContractCreateManyBillingAddressInputEnvelope
|
|
set?: ContractWhereUniqueInput | ContractWhereUniqueInput[]
|
|
disconnect?: ContractWhereUniqueInput | ContractWhereUniqueInput[]
|
|
delete?: ContractWhereUniqueInput | ContractWhereUniqueInput[]
|
|
connect?: ContractWhereUniqueInput | ContractWhereUniqueInput[]
|
|
update?: ContractUpdateWithWhereUniqueWithoutBillingAddressInput | ContractUpdateWithWhereUniqueWithoutBillingAddressInput[]
|
|
updateMany?: ContractUpdateManyWithWhereWithoutBillingAddressInput | ContractUpdateManyWithWhereWithoutBillingAddressInput[]
|
|
deleteMany?: ContractScalarWhereInput | ContractScalarWhereInput[]
|
|
}
|
|
|
|
export type CustomerCreateNestedOneWithoutBankCardsInput = {
|
|
create?: XOR<CustomerCreateWithoutBankCardsInput, CustomerUncheckedCreateWithoutBankCardsInput>
|
|
connectOrCreate?: CustomerCreateOrConnectWithoutBankCardsInput
|
|
connect?: CustomerWhereUniqueInput
|
|
}
|
|
|
|
export type ContractCreateNestedManyWithoutBankCardInput = {
|
|
create?: XOR<ContractCreateWithoutBankCardInput, ContractUncheckedCreateWithoutBankCardInput> | ContractCreateWithoutBankCardInput[] | ContractUncheckedCreateWithoutBankCardInput[]
|
|
connectOrCreate?: ContractCreateOrConnectWithoutBankCardInput | ContractCreateOrConnectWithoutBankCardInput[]
|
|
createMany?: ContractCreateManyBankCardInputEnvelope
|
|
connect?: ContractWhereUniqueInput | ContractWhereUniqueInput[]
|
|
}
|
|
|
|
export type ContractUncheckedCreateNestedManyWithoutBankCardInput = {
|
|
create?: XOR<ContractCreateWithoutBankCardInput, ContractUncheckedCreateWithoutBankCardInput> | ContractCreateWithoutBankCardInput[] | ContractUncheckedCreateWithoutBankCardInput[]
|
|
connectOrCreate?: ContractCreateOrConnectWithoutBankCardInput | ContractCreateOrConnectWithoutBankCardInput[]
|
|
createMany?: ContractCreateManyBankCardInputEnvelope
|
|
connect?: ContractWhereUniqueInput | ContractWhereUniqueInput[]
|
|
}
|
|
|
|
export type CustomerUpdateOneRequiredWithoutBankCardsNestedInput = {
|
|
create?: XOR<CustomerCreateWithoutBankCardsInput, CustomerUncheckedCreateWithoutBankCardsInput>
|
|
connectOrCreate?: CustomerCreateOrConnectWithoutBankCardsInput
|
|
upsert?: CustomerUpsertWithoutBankCardsInput
|
|
connect?: CustomerWhereUniqueInput
|
|
update?: XOR<XOR<CustomerUpdateToOneWithWhereWithoutBankCardsInput, CustomerUpdateWithoutBankCardsInput>, CustomerUncheckedUpdateWithoutBankCardsInput>
|
|
}
|
|
|
|
export type ContractUpdateManyWithoutBankCardNestedInput = {
|
|
create?: XOR<ContractCreateWithoutBankCardInput, ContractUncheckedCreateWithoutBankCardInput> | ContractCreateWithoutBankCardInput[] | ContractUncheckedCreateWithoutBankCardInput[]
|
|
connectOrCreate?: ContractCreateOrConnectWithoutBankCardInput | ContractCreateOrConnectWithoutBankCardInput[]
|
|
upsert?: ContractUpsertWithWhereUniqueWithoutBankCardInput | ContractUpsertWithWhereUniqueWithoutBankCardInput[]
|
|
createMany?: ContractCreateManyBankCardInputEnvelope
|
|
set?: ContractWhereUniqueInput | ContractWhereUniqueInput[]
|
|
disconnect?: ContractWhereUniqueInput | ContractWhereUniqueInput[]
|
|
delete?: ContractWhereUniqueInput | ContractWhereUniqueInput[]
|
|
connect?: ContractWhereUniqueInput | ContractWhereUniqueInput[]
|
|
update?: ContractUpdateWithWhereUniqueWithoutBankCardInput | ContractUpdateWithWhereUniqueWithoutBankCardInput[]
|
|
updateMany?: ContractUpdateManyWithWhereWithoutBankCardInput | ContractUpdateManyWithWhereWithoutBankCardInput[]
|
|
deleteMany?: ContractScalarWhereInput | ContractScalarWhereInput[]
|
|
}
|
|
|
|
export type ContractUncheckedUpdateManyWithoutBankCardNestedInput = {
|
|
create?: XOR<ContractCreateWithoutBankCardInput, ContractUncheckedCreateWithoutBankCardInput> | ContractCreateWithoutBankCardInput[] | ContractUncheckedCreateWithoutBankCardInput[]
|
|
connectOrCreate?: ContractCreateOrConnectWithoutBankCardInput | ContractCreateOrConnectWithoutBankCardInput[]
|
|
upsert?: ContractUpsertWithWhereUniqueWithoutBankCardInput | ContractUpsertWithWhereUniqueWithoutBankCardInput[]
|
|
createMany?: ContractCreateManyBankCardInputEnvelope
|
|
set?: ContractWhereUniqueInput | ContractWhereUniqueInput[]
|
|
disconnect?: ContractWhereUniqueInput | ContractWhereUniqueInput[]
|
|
delete?: ContractWhereUniqueInput | ContractWhereUniqueInput[]
|
|
connect?: ContractWhereUniqueInput | ContractWhereUniqueInput[]
|
|
update?: ContractUpdateWithWhereUniqueWithoutBankCardInput | ContractUpdateWithWhereUniqueWithoutBankCardInput[]
|
|
updateMany?: ContractUpdateManyWithWhereWithoutBankCardInput | ContractUpdateManyWithWhereWithoutBankCardInput[]
|
|
deleteMany?: ContractScalarWhereInput | ContractScalarWhereInput[]
|
|
}
|
|
|
|
export type CustomerCreateNestedOneWithoutIdentityDocumentsInput = {
|
|
create?: XOR<CustomerCreateWithoutIdentityDocumentsInput, CustomerUncheckedCreateWithoutIdentityDocumentsInput>
|
|
connectOrCreate?: CustomerCreateOrConnectWithoutIdentityDocumentsInput
|
|
connect?: CustomerWhereUniqueInput
|
|
}
|
|
|
|
export type ContractCreateNestedManyWithoutIdentityDocumentInput = {
|
|
create?: XOR<ContractCreateWithoutIdentityDocumentInput, ContractUncheckedCreateWithoutIdentityDocumentInput> | ContractCreateWithoutIdentityDocumentInput[] | ContractUncheckedCreateWithoutIdentityDocumentInput[]
|
|
connectOrCreate?: ContractCreateOrConnectWithoutIdentityDocumentInput | ContractCreateOrConnectWithoutIdentityDocumentInput[]
|
|
createMany?: ContractCreateManyIdentityDocumentInputEnvelope
|
|
connect?: ContractWhereUniqueInput | ContractWhereUniqueInput[]
|
|
}
|
|
|
|
export type ContractUncheckedCreateNestedManyWithoutIdentityDocumentInput = {
|
|
create?: XOR<ContractCreateWithoutIdentityDocumentInput, ContractUncheckedCreateWithoutIdentityDocumentInput> | ContractCreateWithoutIdentityDocumentInput[] | ContractUncheckedCreateWithoutIdentityDocumentInput[]
|
|
connectOrCreate?: ContractCreateOrConnectWithoutIdentityDocumentInput | ContractCreateOrConnectWithoutIdentityDocumentInput[]
|
|
createMany?: ContractCreateManyIdentityDocumentInputEnvelope
|
|
connect?: ContractWhereUniqueInput | ContractWhereUniqueInput[]
|
|
}
|
|
|
|
export type EnumDocumentTypeFieldUpdateOperationsInput = {
|
|
set?: $Enums.DocumentType
|
|
}
|
|
|
|
export type CustomerUpdateOneRequiredWithoutIdentityDocumentsNestedInput = {
|
|
create?: XOR<CustomerCreateWithoutIdentityDocumentsInput, CustomerUncheckedCreateWithoutIdentityDocumentsInput>
|
|
connectOrCreate?: CustomerCreateOrConnectWithoutIdentityDocumentsInput
|
|
upsert?: CustomerUpsertWithoutIdentityDocumentsInput
|
|
connect?: CustomerWhereUniqueInput
|
|
update?: XOR<XOR<CustomerUpdateToOneWithWhereWithoutIdentityDocumentsInput, CustomerUpdateWithoutIdentityDocumentsInput>, CustomerUncheckedUpdateWithoutIdentityDocumentsInput>
|
|
}
|
|
|
|
export type ContractUpdateManyWithoutIdentityDocumentNestedInput = {
|
|
create?: XOR<ContractCreateWithoutIdentityDocumentInput, ContractUncheckedCreateWithoutIdentityDocumentInput> | ContractCreateWithoutIdentityDocumentInput[] | ContractUncheckedCreateWithoutIdentityDocumentInput[]
|
|
connectOrCreate?: ContractCreateOrConnectWithoutIdentityDocumentInput | ContractCreateOrConnectWithoutIdentityDocumentInput[]
|
|
upsert?: ContractUpsertWithWhereUniqueWithoutIdentityDocumentInput | ContractUpsertWithWhereUniqueWithoutIdentityDocumentInput[]
|
|
createMany?: ContractCreateManyIdentityDocumentInputEnvelope
|
|
set?: ContractWhereUniqueInput | ContractWhereUniqueInput[]
|
|
disconnect?: ContractWhereUniqueInput | ContractWhereUniqueInput[]
|
|
delete?: ContractWhereUniqueInput | ContractWhereUniqueInput[]
|
|
connect?: ContractWhereUniqueInput | ContractWhereUniqueInput[]
|
|
update?: ContractUpdateWithWhereUniqueWithoutIdentityDocumentInput | ContractUpdateWithWhereUniqueWithoutIdentityDocumentInput[]
|
|
updateMany?: ContractUpdateManyWithWhereWithoutIdentityDocumentInput | ContractUpdateManyWithWhereWithoutIdentityDocumentInput[]
|
|
deleteMany?: ContractScalarWhereInput | ContractScalarWhereInput[]
|
|
}
|
|
|
|
export type ContractUncheckedUpdateManyWithoutIdentityDocumentNestedInput = {
|
|
create?: XOR<ContractCreateWithoutIdentityDocumentInput, ContractUncheckedCreateWithoutIdentityDocumentInput> | ContractCreateWithoutIdentityDocumentInput[] | ContractUncheckedCreateWithoutIdentityDocumentInput[]
|
|
connectOrCreate?: ContractCreateOrConnectWithoutIdentityDocumentInput | ContractCreateOrConnectWithoutIdentityDocumentInput[]
|
|
upsert?: ContractUpsertWithWhereUniqueWithoutIdentityDocumentInput | ContractUpsertWithWhereUniqueWithoutIdentityDocumentInput[]
|
|
createMany?: ContractCreateManyIdentityDocumentInputEnvelope
|
|
set?: ContractWhereUniqueInput | ContractWhereUniqueInput[]
|
|
disconnect?: ContractWhereUniqueInput | ContractWhereUniqueInput[]
|
|
delete?: ContractWhereUniqueInput | ContractWhereUniqueInput[]
|
|
connect?: ContractWhereUniqueInput | ContractWhereUniqueInput[]
|
|
update?: ContractUpdateWithWhereUniqueWithoutIdentityDocumentInput | ContractUpdateWithWhereUniqueWithoutIdentityDocumentInput[]
|
|
updateMany?: ContractUpdateManyWithWhereWithoutIdentityDocumentInput | ContractUpdateManyWithWhereWithoutIdentityDocumentInput[]
|
|
deleteMany?: ContractScalarWhereInput | ContractScalarWhereInput[]
|
|
}
|
|
|
|
export type EnumEmailProviderTypeFieldUpdateOperationsInput = {
|
|
set?: $Enums.EmailProviderType
|
|
}
|
|
|
|
export type EnumMailEncryptionFieldUpdateOperationsInput = {
|
|
set?: $Enums.MailEncryption
|
|
}
|
|
|
|
export type CustomerCreateNestedOneWithoutStressfreiEmailsInput = {
|
|
create?: XOR<CustomerCreateWithoutStressfreiEmailsInput, CustomerUncheckedCreateWithoutStressfreiEmailsInput>
|
|
connectOrCreate?: CustomerCreateOrConnectWithoutStressfreiEmailsInput
|
|
connect?: CustomerWhereUniqueInput
|
|
}
|
|
|
|
export type ContractCreateNestedManyWithoutStressfreiEmailInput = {
|
|
create?: XOR<ContractCreateWithoutStressfreiEmailInput, ContractUncheckedCreateWithoutStressfreiEmailInput> | ContractCreateWithoutStressfreiEmailInput[] | ContractUncheckedCreateWithoutStressfreiEmailInput[]
|
|
connectOrCreate?: ContractCreateOrConnectWithoutStressfreiEmailInput | ContractCreateOrConnectWithoutStressfreiEmailInput[]
|
|
createMany?: ContractCreateManyStressfreiEmailInputEnvelope
|
|
connect?: ContractWhereUniqueInput | ContractWhereUniqueInput[]
|
|
}
|
|
|
|
export type CachedEmailCreateNestedManyWithoutStressfreiEmailInput = {
|
|
create?: XOR<CachedEmailCreateWithoutStressfreiEmailInput, CachedEmailUncheckedCreateWithoutStressfreiEmailInput> | CachedEmailCreateWithoutStressfreiEmailInput[] | CachedEmailUncheckedCreateWithoutStressfreiEmailInput[]
|
|
connectOrCreate?: CachedEmailCreateOrConnectWithoutStressfreiEmailInput | CachedEmailCreateOrConnectWithoutStressfreiEmailInput[]
|
|
createMany?: CachedEmailCreateManyStressfreiEmailInputEnvelope
|
|
connect?: CachedEmailWhereUniqueInput | CachedEmailWhereUniqueInput[]
|
|
}
|
|
|
|
export type ContractUncheckedCreateNestedManyWithoutStressfreiEmailInput = {
|
|
create?: XOR<ContractCreateWithoutStressfreiEmailInput, ContractUncheckedCreateWithoutStressfreiEmailInput> | ContractCreateWithoutStressfreiEmailInput[] | ContractUncheckedCreateWithoutStressfreiEmailInput[]
|
|
connectOrCreate?: ContractCreateOrConnectWithoutStressfreiEmailInput | ContractCreateOrConnectWithoutStressfreiEmailInput[]
|
|
createMany?: ContractCreateManyStressfreiEmailInputEnvelope
|
|
connect?: ContractWhereUniqueInput | ContractWhereUniqueInput[]
|
|
}
|
|
|
|
export type CachedEmailUncheckedCreateNestedManyWithoutStressfreiEmailInput = {
|
|
create?: XOR<CachedEmailCreateWithoutStressfreiEmailInput, CachedEmailUncheckedCreateWithoutStressfreiEmailInput> | CachedEmailCreateWithoutStressfreiEmailInput[] | CachedEmailUncheckedCreateWithoutStressfreiEmailInput[]
|
|
connectOrCreate?: CachedEmailCreateOrConnectWithoutStressfreiEmailInput | CachedEmailCreateOrConnectWithoutStressfreiEmailInput[]
|
|
createMany?: CachedEmailCreateManyStressfreiEmailInputEnvelope
|
|
connect?: CachedEmailWhereUniqueInput | CachedEmailWhereUniqueInput[]
|
|
}
|
|
|
|
export type CustomerUpdateOneRequiredWithoutStressfreiEmailsNestedInput = {
|
|
create?: XOR<CustomerCreateWithoutStressfreiEmailsInput, CustomerUncheckedCreateWithoutStressfreiEmailsInput>
|
|
connectOrCreate?: CustomerCreateOrConnectWithoutStressfreiEmailsInput
|
|
upsert?: CustomerUpsertWithoutStressfreiEmailsInput
|
|
connect?: CustomerWhereUniqueInput
|
|
update?: XOR<XOR<CustomerUpdateToOneWithWhereWithoutStressfreiEmailsInput, CustomerUpdateWithoutStressfreiEmailsInput>, CustomerUncheckedUpdateWithoutStressfreiEmailsInput>
|
|
}
|
|
|
|
export type ContractUpdateManyWithoutStressfreiEmailNestedInput = {
|
|
create?: XOR<ContractCreateWithoutStressfreiEmailInput, ContractUncheckedCreateWithoutStressfreiEmailInput> | ContractCreateWithoutStressfreiEmailInput[] | ContractUncheckedCreateWithoutStressfreiEmailInput[]
|
|
connectOrCreate?: ContractCreateOrConnectWithoutStressfreiEmailInput | ContractCreateOrConnectWithoutStressfreiEmailInput[]
|
|
upsert?: ContractUpsertWithWhereUniqueWithoutStressfreiEmailInput | ContractUpsertWithWhereUniqueWithoutStressfreiEmailInput[]
|
|
createMany?: ContractCreateManyStressfreiEmailInputEnvelope
|
|
set?: ContractWhereUniqueInput | ContractWhereUniqueInput[]
|
|
disconnect?: ContractWhereUniqueInput | ContractWhereUniqueInput[]
|
|
delete?: ContractWhereUniqueInput | ContractWhereUniqueInput[]
|
|
connect?: ContractWhereUniqueInput | ContractWhereUniqueInput[]
|
|
update?: ContractUpdateWithWhereUniqueWithoutStressfreiEmailInput | ContractUpdateWithWhereUniqueWithoutStressfreiEmailInput[]
|
|
updateMany?: ContractUpdateManyWithWhereWithoutStressfreiEmailInput | ContractUpdateManyWithWhereWithoutStressfreiEmailInput[]
|
|
deleteMany?: ContractScalarWhereInput | ContractScalarWhereInput[]
|
|
}
|
|
|
|
export type CachedEmailUpdateManyWithoutStressfreiEmailNestedInput = {
|
|
create?: XOR<CachedEmailCreateWithoutStressfreiEmailInput, CachedEmailUncheckedCreateWithoutStressfreiEmailInput> | CachedEmailCreateWithoutStressfreiEmailInput[] | CachedEmailUncheckedCreateWithoutStressfreiEmailInput[]
|
|
connectOrCreate?: CachedEmailCreateOrConnectWithoutStressfreiEmailInput | CachedEmailCreateOrConnectWithoutStressfreiEmailInput[]
|
|
upsert?: CachedEmailUpsertWithWhereUniqueWithoutStressfreiEmailInput | CachedEmailUpsertWithWhereUniqueWithoutStressfreiEmailInput[]
|
|
createMany?: CachedEmailCreateManyStressfreiEmailInputEnvelope
|
|
set?: CachedEmailWhereUniqueInput | CachedEmailWhereUniqueInput[]
|
|
disconnect?: CachedEmailWhereUniqueInput | CachedEmailWhereUniqueInput[]
|
|
delete?: CachedEmailWhereUniqueInput | CachedEmailWhereUniqueInput[]
|
|
connect?: CachedEmailWhereUniqueInput | CachedEmailWhereUniqueInput[]
|
|
update?: CachedEmailUpdateWithWhereUniqueWithoutStressfreiEmailInput | CachedEmailUpdateWithWhereUniqueWithoutStressfreiEmailInput[]
|
|
updateMany?: CachedEmailUpdateManyWithWhereWithoutStressfreiEmailInput | CachedEmailUpdateManyWithWhereWithoutStressfreiEmailInput[]
|
|
deleteMany?: CachedEmailScalarWhereInput | CachedEmailScalarWhereInput[]
|
|
}
|
|
|
|
export type ContractUncheckedUpdateManyWithoutStressfreiEmailNestedInput = {
|
|
create?: XOR<ContractCreateWithoutStressfreiEmailInput, ContractUncheckedCreateWithoutStressfreiEmailInput> | ContractCreateWithoutStressfreiEmailInput[] | ContractUncheckedCreateWithoutStressfreiEmailInput[]
|
|
connectOrCreate?: ContractCreateOrConnectWithoutStressfreiEmailInput | ContractCreateOrConnectWithoutStressfreiEmailInput[]
|
|
upsert?: ContractUpsertWithWhereUniqueWithoutStressfreiEmailInput | ContractUpsertWithWhereUniqueWithoutStressfreiEmailInput[]
|
|
createMany?: ContractCreateManyStressfreiEmailInputEnvelope
|
|
set?: ContractWhereUniqueInput | ContractWhereUniqueInput[]
|
|
disconnect?: ContractWhereUniqueInput | ContractWhereUniqueInput[]
|
|
delete?: ContractWhereUniqueInput | ContractWhereUniqueInput[]
|
|
connect?: ContractWhereUniqueInput | ContractWhereUniqueInput[]
|
|
update?: ContractUpdateWithWhereUniqueWithoutStressfreiEmailInput | ContractUpdateWithWhereUniqueWithoutStressfreiEmailInput[]
|
|
updateMany?: ContractUpdateManyWithWhereWithoutStressfreiEmailInput | ContractUpdateManyWithWhereWithoutStressfreiEmailInput[]
|
|
deleteMany?: ContractScalarWhereInput | ContractScalarWhereInput[]
|
|
}
|
|
|
|
export type CachedEmailUncheckedUpdateManyWithoutStressfreiEmailNestedInput = {
|
|
create?: XOR<CachedEmailCreateWithoutStressfreiEmailInput, CachedEmailUncheckedCreateWithoutStressfreiEmailInput> | CachedEmailCreateWithoutStressfreiEmailInput[] | CachedEmailUncheckedCreateWithoutStressfreiEmailInput[]
|
|
connectOrCreate?: CachedEmailCreateOrConnectWithoutStressfreiEmailInput | CachedEmailCreateOrConnectWithoutStressfreiEmailInput[]
|
|
upsert?: CachedEmailUpsertWithWhereUniqueWithoutStressfreiEmailInput | CachedEmailUpsertWithWhereUniqueWithoutStressfreiEmailInput[]
|
|
createMany?: CachedEmailCreateManyStressfreiEmailInputEnvelope
|
|
set?: CachedEmailWhereUniqueInput | CachedEmailWhereUniqueInput[]
|
|
disconnect?: CachedEmailWhereUniqueInput | CachedEmailWhereUniqueInput[]
|
|
delete?: CachedEmailWhereUniqueInput | CachedEmailWhereUniqueInput[]
|
|
connect?: CachedEmailWhereUniqueInput | CachedEmailWhereUniqueInput[]
|
|
update?: CachedEmailUpdateWithWhereUniqueWithoutStressfreiEmailInput | CachedEmailUpdateWithWhereUniqueWithoutStressfreiEmailInput[]
|
|
updateMany?: CachedEmailUpdateManyWithWhereWithoutStressfreiEmailInput | CachedEmailUpdateManyWithWhereWithoutStressfreiEmailInput[]
|
|
deleteMany?: CachedEmailScalarWhereInput | CachedEmailScalarWhereInput[]
|
|
}
|
|
|
|
export type StressfreiEmailCreateNestedOneWithoutCachedEmailsInput = {
|
|
create?: XOR<StressfreiEmailCreateWithoutCachedEmailsInput, StressfreiEmailUncheckedCreateWithoutCachedEmailsInput>
|
|
connectOrCreate?: StressfreiEmailCreateOrConnectWithoutCachedEmailsInput
|
|
connect?: StressfreiEmailWhereUniqueInput
|
|
}
|
|
|
|
export type ContractCreateNestedOneWithoutAssignedEmailsInput = {
|
|
create?: XOR<ContractCreateWithoutAssignedEmailsInput, ContractUncheckedCreateWithoutAssignedEmailsInput>
|
|
connectOrCreate?: ContractCreateOrConnectWithoutAssignedEmailsInput
|
|
connect?: ContractWhereUniqueInput
|
|
}
|
|
|
|
export type EnumEmailFolderFieldUpdateOperationsInput = {
|
|
set?: $Enums.EmailFolder
|
|
}
|
|
|
|
export type StressfreiEmailUpdateOneRequiredWithoutCachedEmailsNestedInput = {
|
|
create?: XOR<StressfreiEmailCreateWithoutCachedEmailsInput, StressfreiEmailUncheckedCreateWithoutCachedEmailsInput>
|
|
connectOrCreate?: StressfreiEmailCreateOrConnectWithoutCachedEmailsInput
|
|
upsert?: StressfreiEmailUpsertWithoutCachedEmailsInput
|
|
connect?: StressfreiEmailWhereUniqueInput
|
|
update?: XOR<XOR<StressfreiEmailUpdateToOneWithWhereWithoutCachedEmailsInput, StressfreiEmailUpdateWithoutCachedEmailsInput>, StressfreiEmailUncheckedUpdateWithoutCachedEmailsInput>
|
|
}
|
|
|
|
export type ContractUpdateOneWithoutAssignedEmailsNestedInput = {
|
|
create?: XOR<ContractCreateWithoutAssignedEmailsInput, ContractUncheckedCreateWithoutAssignedEmailsInput>
|
|
connectOrCreate?: ContractCreateOrConnectWithoutAssignedEmailsInput
|
|
upsert?: ContractUpsertWithoutAssignedEmailsInput
|
|
disconnect?: ContractWhereInput | boolean
|
|
delete?: ContractWhereInput | boolean
|
|
connect?: ContractWhereUniqueInput
|
|
update?: XOR<XOR<ContractUpdateToOneWithWhereWithoutAssignedEmailsInput, ContractUpdateWithoutAssignedEmailsInput>, ContractUncheckedUpdateWithoutAssignedEmailsInput>
|
|
}
|
|
|
|
export type CustomerCreateNestedOneWithoutMetersInput = {
|
|
create?: XOR<CustomerCreateWithoutMetersInput, CustomerUncheckedCreateWithoutMetersInput>
|
|
connectOrCreate?: CustomerCreateOrConnectWithoutMetersInput
|
|
connect?: CustomerWhereUniqueInput
|
|
}
|
|
|
|
export type MeterReadingCreateNestedManyWithoutMeterInput = {
|
|
create?: XOR<MeterReadingCreateWithoutMeterInput, MeterReadingUncheckedCreateWithoutMeterInput> | MeterReadingCreateWithoutMeterInput[] | MeterReadingUncheckedCreateWithoutMeterInput[]
|
|
connectOrCreate?: MeterReadingCreateOrConnectWithoutMeterInput | MeterReadingCreateOrConnectWithoutMeterInput[]
|
|
createMany?: MeterReadingCreateManyMeterInputEnvelope
|
|
connect?: MeterReadingWhereUniqueInput | MeterReadingWhereUniqueInput[]
|
|
}
|
|
|
|
export type EnergyContractDetailsCreateNestedManyWithoutMeterInput = {
|
|
create?: XOR<EnergyContractDetailsCreateWithoutMeterInput, EnergyContractDetailsUncheckedCreateWithoutMeterInput> | EnergyContractDetailsCreateWithoutMeterInput[] | EnergyContractDetailsUncheckedCreateWithoutMeterInput[]
|
|
connectOrCreate?: EnergyContractDetailsCreateOrConnectWithoutMeterInput | EnergyContractDetailsCreateOrConnectWithoutMeterInput[]
|
|
createMany?: EnergyContractDetailsCreateManyMeterInputEnvelope
|
|
connect?: EnergyContractDetailsWhereUniqueInput | EnergyContractDetailsWhereUniqueInput[]
|
|
}
|
|
|
|
export type MeterReadingUncheckedCreateNestedManyWithoutMeterInput = {
|
|
create?: XOR<MeterReadingCreateWithoutMeterInput, MeterReadingUncheckedCreateWithoutMeterInput> | MeterReadingCreateWithoutMeterInput[] | MeterReadingUncheckedCreateWithoutMeterInput[]
|
|
connectOrCreate?: MeterReadingCreateOrConnectWithoutMeterInput | MeterReadingCreateOrConnectWithoutMeterInput[]
|
|
createMany?: MeterReadingCreateManyMeterInputEnvelope
|
|
connect?: MeterReadingWhereUniqueInput | MeterReadingWhereUniqueInput[]
|
|
}
|
|
|
|
export type EnergyContractDetailsUncheckedCreateNestedManyWithoutMeterInput = {
|
|
create?: XOR<EnergyContractDetailsCreateWithoutMeterInput, EnergyContractDetailsUncheckedCreateWithoutMeterInput> | EnergyContractDetailsCreateWithoutMeterInput[] | EnergyContractDetailsUncheckedCreateWithoutMeterInput[]
|
|
connectOrCreate?: EnergyContractDetailsCreateOrConnectWithoutMeterInput | EnergyContractDetailsCreateOrConnectWithoutMeterInput[]
|
|
createMany?: EnergyContractDetailsCreateManyMeterInputEnvelope
|
|
connect?: EnergyContractDetailsWhereUniqueInput | EnergyContractDetailsWhereUniqueInput[]
|
|
}
|
|
|
|
export type EnumMeterTypeFieldUpdateOperationsInput = {
|
|
set?: $Enums.MeterType
|
|
}
|
|
|
|
export type CustomerUpdateOneRequiredWithoutMetersNestedInput = {
|
|
create?: XOR<CustomerCreateWithoutMetersInput, CustomerUncheckedCreateWithoutMetersInput>
|
|
connectOrCreate?: CustomerCreateOrConnectWithoutMetersInput
|
|
upsert?: CustomerUpsertWithoutMetersInput
|
|
connect?: CustomerWhereUniqueInput
|
|
update?: XOR<XOR<CustomerUpdateToOneWithWhereWithoutMetersInput, CustomerUpdateWithoutMetersInput>, CustomerUncheckedUpdateWithoutMetersInput>
|
|
}
|
|
|
|
export type MeterReadingUpdateManyWithoutMeterNestedInput = {
|
|
create?: XOR<MeterReadingCreateWithoutMeterInput, MeterReadingUncheckedCreateWithoutMeterInput> | MeterReadingCreateWithoutMeterInput[] | MeterReadingUncheckedCreateWithoutMeterInput[]
|
|
connectOrCreate?: MeterReadingCreateOrConnectWithoutMeterInput | MeterReadingCreateOrConnectWithoutMeterInput[]
|
|
upsert?: MeterReadingUpsertWithWhereUniqueWithoutMeterInput | MeterReadingUpsertWithWhereUniqueWithoutMeterInput[]
|
|
createMany?: MeterReadingCreateManyMeterInputEnvelope
|
|
set?: MeterReadingWhereUniqueInput | MeterReadingWhereUniqueInput[]
|
|
disconnect?: MeterReadingWhereUniqueInput | MeterReadingWhereUniqueInput[]
|
|
delete?: MeterReadingWhereUniqueInput | MeterReadingWhereUniqueInput[]
|
|
connect?: MeterReadingWhereUniqueInput | MeterReadingWhereUniqueInput[]
|
|
update?: MeterReadingUpdateWithWhereUniqueWithoutMeterInput | MeterReadingUpdateWithWhereUniqueWithoutMeterInput[]
|
|
updateMany?: MeterReadingUpdateManyWithWhereWithoutMeterInput | MeterReadingUpdateManyWithWhereWithoutMeterInput[]
|
|
deleteMany?: MeterReadingScalarWhereInput | MeterReadingScalarWhereInput[]
|
|
}
|
|
|
|
export type EnergyContractDetailsUpdateManyWithoutMeterNestedInput = {
|
|
create?: XOR<EnergyContractDetailsCreateWithoutMeterInput, EnergyContractDetailsUncheckedCreateWithoutMeterInput> | EnergyContractDetailsCreateWithoutMeterInput[] | EnergyContractDetailsUncheckedCreateWithoutMeterInput[]
|
|
connectOrCreate?: EnergyContractDetailsCreateOrConnectWithoutMeterInput | EnergyContractDetailsCreateOrConnectWithoutMeterInput[]
|
|
upsert?: EnergyContractDetailsUpsertWithWhereUniqueWithoutMeterInput | EnergyContractDetailsUpsertWithWhereUniqueWithoutMeterInput[]
|
|
createMany?: EnergyContractDetailsCreateManyMeterInputEnvelope
|
|
set?: EnergyContractDetailsWhereUniqueInput | EnergyContractDetailsWhereUniqueInput[]
|
|
disconnect?: EnergyContractDetailsWhereUniqueInput | EnergyContractDetailsWhereUniqueInput[]
|
|
delete?: EnergyContractDetailsWhereUniqueInput | EnergyContractDetailsWhereUniqueInput[]
|
|
connect?: EnergyContractDetailsWhereUniqueInput | EnergyContractDetailsWhereUniqueInput[]
|
|
update?: EnergyContractDetailsUpdateWithWhereUniqueWithoutMeterInput | EnergyContractDetailsUpdateWithWhereUniqueWithoutMeterInput[]
|
|
updateMany?: EnergyContractDetailsUpdateManyWithWhereWithoutMeterInput | EnergyContractDetailsUpdateManyWithWhereWithoutMeterInput[]
|
|
deleteMany?: EnergyContractDetailsScalarWhereInput | EnergyContractDetailsScalarWhereInput[]
|
|
}
|
|
|
|
export type MeterReadingUncheckedUpdateManyWithoutMeterNestedInput = {
|
|
create?: XOR<MeterReadingCreateWithoutMeterInput, MeterReadingUncheckedCreateWithoutMeterInput> | MeterReadingCreateWithoutMeterInput[] | MeterReadingUncheckedCreateWithoutMeterInput[]
|
|
connectOrCreate?: MeterReadingCreateOrConnectWithoutMeterInput | MeterReadingCreateOrConnectWithoutMeterInput[]
|
|
upsert?: MeterReadingUpsertWithWhereUniqueWithoutMeterInput | MeterReadingUpsertWithWhereUniqueWithoutMeterInput[]
|
|
createMany?: MeterReadingCreateManyMeterInputEnvelope
|
|
set?: MeterReadingWhereUniqueInput | MeterReadingWhereUniqueInput[]
|
|
disconnect?: MeterReadingWhereUniqueInput | MeterReadingWhereUniqueInput[]
|
|
delete?: MeterReadingWhereUniqueInput | MeterReadingWhereUniqueInput[]
|
|
connect?: MeterReadingWhereUniqueInput | MeterReadingWhereUniqueInput[]
|
|
update?: MeterReadingUpdateWithWhereUniqueWithoutMeterInput | MeterReadingUpdateWithWhereUniqueWithoutMeterInput[]
|
|
updateMany?: MeterReadingUpdateManyWithWhereWithoutMeterInput | MeterReadingUpdateManyWithWhereWithoutMeterInput[]
|
|
deleteMany?: MeterReadingScalarWhereInput | MeterReadingScalarWhereInput[]
|
|
}
|
|
|
|
export type EnergyContractDetailsUncheckedUpdateManyWithoutMeterNestedInput = {
|
|
create?: XOR<EnergyContractDetailsCreateWithoutMeterInput, EnergyContractDetailsUncheckedCreateWithoutMeterInput> | EnergyContractDetailsCreateWithoutMeterInput[] | EnergyContractDetailsUncheckedCreateWithoutMeterInput[]
|
|
connectOrCreate?: EnergyContractDetailsCreateOrConnectWithoutMeterInput | EnergyContractDetailsCreateOrConnectWithoutMeterInput[]
|
|
upsert?: EnergyContractDetailsUpsertWithWhereUniqueWithoutMeterInput | EnergyContractDetailsUpsertWithWhereUniqueWithoutMeterInput[]
|
|
createMany?: EnergyContractDetailsCreateManyMeterInputEnvelope
|
|
set?: EnergyContractDetailsWhereUniqueInput | EnergyContractDetailsWhereUniqueInput[]
|
|
disconnect?: EnergyContractDetailsWhereUniqueInput | EnergyContractDetailsWhereUniqueInput[]
|
|
delete?: EnergyContractDetailsWhereUniqueInput | EnergyContractDetailsWhereUniqueInput[]
|
|
connect?: EnergyContractDetailsWhereUniqueInput | EnergyContractDetailsWhereUniqueInput[]
|
|
update?: EnergyContractDetailsUpdateWithWhereUniqueWithoutMeterInput | EnergyContractDetailsUpdateWithWhereUniqueWithoutMeterInput[]
|
|
updateMany?: EnergyContractDetailsUpdateManyWithWhereWithoutMeterInput | EnergyContractDetailsUpdateManyWithWhereWithoutMeterInput[]
|
|
deleteMany?: EnergyContractDetailsScalarWhereInput | EnergyContractDetailsScalarWhereInput[]
|
|
}
|
|
|
|
export type MeterCreateNestedOneWithoutReadingsInput = {
|
|
create?: XOR<MeterCreateWithoutReadingsInput, MeterUncheckedCreateWithoutReadingsInput>
|
|
connectOrCreate?: MeterCreateOrConnectWithoutReadingsInput
|
|
connect?: MeterWhereUniqueInput
|
|
}
|
|
|
|
export type FloatFieldUpdateOperationsInput = {
|
|
set?: number
|
|
increment?: number
|
|
decrement?: number
|
|
multiply?: number
|
|
divide?: number
|
|
}
|
|
|
|
export type MeterUpdateOneRequiredWithoutReadingsNestedInput = {
|
|
create?: XOR<MeterCreateWithoutReadingsInput, MeterUncheckedCreateWithoutReadingsInput>
|
|
connectOrCreate?: MeterCreateOrConnectWithoutReadingsInput
|
|
upsert?: MeterUpsertWithoutReadingsInput
|
|
connect?: MeterWhereUniqueInput
|
|
update?: XOR<XOR<MeterUpdateToOneWithWhereWithoutReadingsInput, MeterUpdateWithoutReadingsInput>, MeterUncheckedUpdateWithoutReadingsInput>
|
|
}
|
|
|
|
export type ContractCreateNestedManyWithoutSalesPlatformInput = {
|
|
create?: XOR<ContractCreateWithoutSalesPlatformInput, ContractUncheckedCreateWithoutSalesPlatformInput> | ContractCreateWithoutSalesPlatformInput[] | ContractUncheckedCreateWithoutSalesPlatformInput[]
|
|
connectOrCreate?: ContractCreateOrConnectWithoutSalesPlatformInput | ContractCreateOrConnectWithoutSalesPlatformInput[]
|
|
createMany?: ContractCreateManySalesPlatformInputEnvelope
|
|
connect?: ContractWhereUniqueInput | ContractWhereUniqueInput[]
|
|
}
|
|
|
|
export type ContractUncheckedCreateNestedManyWithoutSalesPlatformInput = {
|
|
create?: XOR<ContractCreateWithoutSalesPlatformInput, ContractUncheckedCreateWithoutSalesPlatformInput> | ContractCreateWithoutSalesPlatformInput[] | ContractUncheckedCreateWithoutSalesPlatformInput[]
|
|
connectOrCreate?: ContractCreateOrConnectWithoutSalesPlatformInput | ContractCreateOrConnectWithoutSalesPlatformInput[]
|
|
createMany?: ContractCreateManySalesPlatformInputEnvelope
|
|
connect?: ContractWhereUniqueInput | ContractWhereUniqueInput[]
|
|
}
|
|
|
|
export type ContractUpdateManyWithoutSalesPlatformNestedInput = {
|
|
create?: XOR<ContractCreateWithoutSalesPlatformInput, ContractUncheckedCreateWithoutSalesPlatformInput> | ContractCreateWithoutSalesPlatformInput[] | ContractUncheckedCreateWithoutSalesPlatformInput[]
|
|
connectOrCreate?: ContractCreateOrConnectWithoutSalesPlatformInput | ContractCreateOrConnectWithoutSalesPlatformInput[]
|
|
upsert?: ContractUpsertWithWhereUniqueWithoutSalesPlatformInput | ContractUpsertWithWhereUniqueWithoutSalesPlatformInput[]
|
|
createMany?: ContractCreateManySalesPlatformInputEnvelope
|
|
set?: ContractWhereUniqueInput | ContractWhereUniqueInput[]
|
|
disconnect?: ContractWhereUniqueInput | ContractWhereUniqueInput[]
|
|
delete?: ContractWhereUniqueInput | ContractWhereUniqueInput[]
|
|
connect?: ContractWhereUniqueInput | ContractWhereUniqueInput[]
|
|
update?: ContractUpdateWithWhereUniqueWithoutSalesPlatformInput | ContractUpdateWithWhereUniqueWithoutSalesPlatformInput[]
|
|
updateMany?: ContractUpdateManyWithWhereWithoutSalesPlatformInput | ContractUpdateManyWithWhereWithoutSalesPlatformInput[]
|
|
deleteMany?: ContractScalarWhereInput | ContractScalarWhereInput[]
|
|
}
|
|
|
|
export type ContractUncheckedUpdateManyWithoutSalesPlatformNestedInput = {
|
|
create?: XOR<ContractCreateWithoutSalesPlatformInput, ContractUncheckedCreateWithoutSalesPlatformInput> | ContractCreateWithoutSalesPlatformInput[] | ContractUncheckedCreateWithoutSalesPlatformInput[]
|
|
connectOrCreate?: ContractCreateOrConnectWithoutSalesPlatformInput | ContractCreateOrConnectWithoutSalesPlatformInput[]
|
|
upsert?: ContractUpsertWithWhereUniqueWithoutSalesPlatformInput | ContractUpsertWithWhereUniqueWithoutSalesPlatformInput[]
|
|
createMany?: ContractCreateManySalesPlatformInputEnvelope
|
|
set?: ContractWhereUniqueInput | ContractWhereUniqueInput[]
|
|
disconnect?: ContractWhereUniqueInput | ContractWhereUniqueInput[]
|
|
delete?: ContractWhereUniqueInput | ContractWhereUniqueInput[]
|
|
connect?: ContractWhereUniqueInput | ContractWhereUniqueInput[]
|
|
update?: ContractUpdateWithWhereUniqueWithoutSalesPlatformInput | ContractUpdateWithWhereUniqueWithoutSalesPlatformInput[]
|
|
updateMany?: ContractUpdateManyWithWhereWithoutSalesPlatformInput | ContractUpdateManyWithWhereWithoutSalesPlatformInput[]
|
|
deleteMany?: ContractScalarWhereInput | ContractScalarWhereInput[]
|
|
}
|
|
|
|
export type ContractCreateNestedManyWithoutCancellationPeriodInput = {
|
|
create?: XOR<ContractCreateWithoutCancellationPeriodInput, ContractUncheckedCreateWithoutCancellationPeriodInput> | ContractCreateWithoutCancellationPeriodInput[] | ContractUncheckedCreateWithoutCancellationPeriodInput[]
|
|
connectOrCreate?: ContractCreateOrConnectWithoutCancellationPeriodInput | ContractCreateOrConnectWithoutCancellationPeriodInput[]
|
|
createMany?: ContractCreateManyCancellationPeriodInputEnvelope
|
|
connect?: ContractWhereUniqueInput | ContractWhereUniqueInput[]
|
|
}
|
|
|
|
export type ContractUncheckedCreateNestedManyWithoutCancellationPeriodInput = {
|
|
create?: XOR<ContractCreateWithoutCancellationPeriodInput, ContractUncheckedCreateWithoutCancellationPeriodInput> | ContractCreateWithoutCancellationPeriodInput[] | ContractUncheckedCreateWithoutCancellationPeriodInput[]
|
|
connectOrCreate?: ContractCreateOrConnectWithoutCancellationPeriodInput | ContractCreateOrConnectWithoutCancellationPeriodInput[]
|
|
createMany?: ContractCreateManyCancellationPeriodInputEnvelope
|
|
connect?: ContractWhereUniqueInput | ContractWhereUniqueInput[]
|
|
}
|
|
|
|
export type ContractUpdateManyWithoutCancellationPeriodNestedInput = {
|
|
create?: XOR<ContractCreateWithoutCancellationPeriodInput, ContractUncheckedCreateWithoutCancellationPeriodInput> | ContractCreateWithoutCancellationPeriodInput[] | ContractUncheckedCreateWithoutCancellationPeriodInput[]
|
|
connectOrCreate?: ContractCreateOrConnectWithoutCancellationPeriodInput | ContractCreateOrConnectWithoutCancellationPeriodInput[]
|
|
upsert?: ContractUpsertWithWhereUniqueWithoutCancellationPeriodInput | ContractUpsertWithWhereUniqueWithoutCancellationPeriodInput[]
|
|
createMany?: ContractCreateManyCancellationPeriodInputEnvelope
|
|
set?: ContractWhereUniqueInput | ContractWhereUniqueInput[]
|
|
disconnect?: ContractWhereUniqueInput | ContractWhereUniqueInput[]
|
|
delete?: ContractWhereUniqueInput | ContractWhereUniqueInput[]
|
|
connect?: ContractWhereUniqueInput | ContractWhereUniqueInput[]
|
|
update?: ContractUpdateWithWhereUniqueWithoutCancellationPeriodInput | ContractUpdateWithWhereUniqueWithoutCancellationPeriodInput[]
|
|
updateMany?: ContractUpdateManyWithWhereWithoutCancellationPeriodInput | ContractUpdateManyWithWhereWithoutCancellationPeriodInput[]
|
|
deleteMany?: ContractScalarWhereInput | ContractScalarWhereInput[]
|
|
}
|
|
|
|
export type ContractUncheckedUpdateManyWithoutCancellationPeriodNestedInput = {
|
|
create?: XOR<ContractCreateWithoutCancellationPeriodInput, ContractUncheckedCreateWithoutCancellationPeriodInput> | ContractCreateWithoutCancellationPeriodInput[] | ContractUncheckedCreateWithoutCancellationPeriodInput[]
|
|
connectOrCreate?: ContractCreateOrConnectWithoutCancellationPeriodInput | ContractCreateOrConnectWithoutCancellationPeriodInput[]
|
|
upsert?: ContractUpsertWithWhereUniqueWithoutCancellationPeriodInput | ContractUpsertWithWhereUniqueWithoutCancellationPeriodInput[]
|
|
createMany?: ContractCreateManyCancellationPeriodInputEnvelope
|
|
set?: ContractWhereUniqueInput | ContractWhereUniqueInput[]
|
|
disconnect?: ContractWhereUniqueInput | ContractWhereUniqueInput[]
|
|
delete?: ContractWhereUniqueInput | ContractWhereUniqueInput[]
|
|
connect?: ContractWhereUniqueInput | ContractWhereUniqueInput[]
|
|
update?: ContractUpdateWithWhereUniqueWithoutCancellationPeriodInput | ContractUpdateWithWhereUniqueWithoutCancellationPeriodInput[]
|
|
updateMany?: ContractUpdateManyWithWhereWithoutCancellationPeriodInput | ContractUpdateManyWithWhereWithoutCancellationPeriodInput[]
|
|
deleteMany?: ContractScalarWhereInput | ContractScalarWhereInput[]
|
|
}
|
|
|
|
export type ContractCreateNestedManyWithoutContractDurationInput = {
|
|
create?: XOR<ContractCreateWithoutContractDurationInput, ContractUncheckedCreateWithoutContractDurationInput> | ContractCreateWithoutContractDurationInput[] | ContractUncheckedCreateWithoutContractDurationInput[]
|
|
connectOrCreate?: ContractCreateOrConnectWithoutContractDurationInput | ContractCreateOrConnectWithoutContractDurationInput[]
|
|
createMany?: ContractCreateManyContractDurationInputEnvelope
|
|
connect?: ContractWhereUniqueInput | ContractWhereUniqueInput[]
|
|
}
|
|
|
|
export type ContractUncheckedCreateNestedManyWithoutContractDurationInput = {
|
|
create?: XOR<ContractCreateWithoutContractDurationInput, ContractUncheckedCreateWithoutContractDurationInput> | ContractCreateWithoutContractDurationInput[] | ContractUncheckedCreateWithoutContractDurationInput[]
|
|
connectOrCreate?: ContractCreateOrConnectWithoutContractDurationInput | ContractCreateOrConnectWithoutContractDurationInput[]
|
|
createMany?: ContractCreateManyContractDurationInputEnvelope
|
|
connect?: ContractWhereUniqueInput | ContractWhereUniqueInput[]
|
|
}
|
|
|
|
export type ContractUpdateManyWithoutContractDurationNestedInput = {
|
|
create?: XOR<ContractCreateWithoutContractDurationInput, ContractUncheckedCreateWithoutContractDurationInput> | ContractCreateWithoutContractDurationInput[] | ContractUncheckedCreateWithoutContractDurationInput[]
|
|
connectOrCreate?: ContractCreateOrConnectWithoutContractDurationInput | ContractCreateOrConnectWithoutContractDurationInput[]
|
|
upsert?: ContractUpsertWithWhereUniqueWithoutContractDurationInput | ContractUpsertWithWhereUniqueWithoutContractDurationInput[]
|
|
createMany?: ContractCreateManyContractDurationInputEnvelope
|
|
set?: ContractWhereUniqueInput | ContractWhereUniqueInput[]
|
|
disconnect?: ContractWhereUniqueInput | ContractWhereUniqueInput[]
|
|
delete?: ContractWhereUniqueInput | ContractWhereUniqueInput[]
|
|
connect?: ContractWhereUniqueInput | ContractWhereUniqueInput[]
|
|
update?: ContractUpdateWithWhereUniqueWithoutContractDurationInput | ContractUpdateWithWhereUniqueWithoutContractDurationInput[]
|
|
updateMany?: ContractUpdateManyWithWhereWithoutContractDurationInput | ContractUpdateManyWithWhereWithoutContractDurationInput[]
|
|
deleteMany?: ContractScalarWhereInput | ContractScalarWhereInput[]
|
|
}
|
|
|
|
export type ContractUncheckedUpdateManyWithoutContractDurationNestedInput = {
|
|
create?: XOR<ContractCreateWithoutContractDurationInput, ContractUncheckedCreateWithoutContractDurationInput> | ContractCreateWithoutContractDurationInput[] | ContractUncheckedCreateWithoutContractDurationInput[]
|
|
connectOrCreate?: ContractCreateOrConnectWithoutContractDurationInput | ContractCreateOrConnectWithoutContractDurationInput[]
|
|
upsert?: ContractUpsertWithWhereUniqueWithoutContractDurationInput | ContractUpsertWithWhereUniqueWithoutContractDurationInput[]
|
|
createMany?: ContractCreateManyContractDurationInputEnvelope
|
|
set?: ContractWhereUniqueInput | ContractWhereUniqueInput[]
|
|
disconnect?: ContractWhereUniqueInput | ContractWhereUniqueInput[]
|
|
delete?: ContractWhereUniqueInput | ContractWhereUniqueInput[]
|
|
connect?: ContractWhereUniqueInput | ContractWhereUniqueInput[]
|
|
update?: ContractUpdateWithWhereUniqueWithoutContractDurationInput | ContractUpdateWithWhereUniqueWithoutContractDurationInput[]
|
|
updateMany?: ContractUpdateManyWithWhereWithoutContractDurationInput | ContractUpdateManyWithWhereWithoutContractDurationInput[]
|
|
deleteMany?: ContractScalarWhereInput | ContractScalarWhereInput[]
|
|
}
|
|
|
|
export type TariffCreateNestedManyWithoutProviderInput = {
|
|
create?: XOR<TariffCreateWithoutProviderInput, TariffUncheckedCreateWithoutProviderInput> | TariffCreateWithoutProviderInput[] | TariffUncheckedCreateWithoutProviderInput[]
|
|
connectOrCreate?: TariffCreateOrConnectWithoutProviderInput | TariffCreateOrConnectWithoutProviderInput[]
|
|
createMany?: TariffCreateManyProviderInputEnvelope
|
|
connect?: TariffWhereUniqueInput | TariffWhereUniqueInput[]
|
|
}
|
|
|
|
export type ContractCreateNestedManyWithoutProviderInput = {
|
|
create?: XOR<ContractCreateWithoutProviderInput, ContractUncheckedCreateWithoutProviderInput> | ContractCreateWithoutProviderInput[] | ContractUncheckedCreateWithoutProviderInput[]
|
|
connectOrCreate?: ContractCreateOrConnectWithoutProviderInput | ContractCreateOrConnectWithoutProviderInput[]
|
|
createMany?: ContractCreateManyProviderInputEnvelope
|
|
connect?: ContractWhereUniqueInput | ContractWhereUniqueInput[]
|
|
}
|
|
|
|
export type TariffUncheckedCreateNestedManyWithoutProviderInput = {
|
|
create?: XOR<TariffCreateWithoutProviderInput, TariffUncheckedCreateWithoutProviderInput> | TariffCreateWithoutProviderInput[] | TariffUncheckedCreateWithoutProviderInput[]
|
|
connectOrCreate?: TariffCreateOrConnectWithoutProviderInput | TariffCreateOrConnectWithoutProviderInput[]
|
|
createMany?: TariffCreateManyProviderInputEnvelope
|
|
connect?: TariffWhereUniqueInput | TariffWhereUniqueInput[]
|
|
}
|
|
|
|
export type ContractUncheckedCreateNestedManyWithoutProviderInput = {
|
|
create?: XOR<ContractCreateWithoutProviderInput, ContractUncheckedCreateWithoutProviderInput> | ContractCreateWithoutProviderInput[] | ContractUncheckedCreateWithoutProviderInput[]
|
|
connectOrCreate?: ContractCreateOrConnectWithoutProviderInput | ContractCreateOrConnectWithoutProviderInput[]
|
|
createMany?: ContractCreateManyProviderInputEnvelope
|
|
connect?: ContractWhereUniqueInput | ContractWhereUniqueInput[]
|
|
}
|
|
|
|
export type TariffUpdateManyWithoutProviderNestedInput = {
|
|
create?: XOR<TariffCreateWithoutProviderInput, TariffUncheckedCreateWithoutProviderInput> | TariffCreateWithoutProviderInput[] | TariffUncheckedCreateWithoutProviderInput[]
|
|
connectOrCreate?: TariffCreateOrConnectWithoutProviderInput | TariffCreateOrConnectWithoutProviderInput[]
|
|
upsert?: TariffUpsertWithWhereUniqueWithoutProviderInput | TariffUpsertWithWhereUniqueWithoutProviderInput[]
|
|
createMany?: TariffCreateManyProviderInputEnvelope
|
|
set?: TariffWhereUniqueInput | TariffWhereUniqueInput[]
|
|
disconnect?: TariffWhereUniqueInput | TariffWhereUniqueInput[]
|
|
delete?: TariffWhereUniqueInput | TariffWhereUniqueInput[]
|
|
connect?: TariffWhereUniqueInput | TariffWhereUniqueInput[]
|
|
update?: TariffUpdateWithWhereUniqueWithoutProviderInput | TariffUpdateWithWhereUniqueWithoutProviderInput[]
|
|
updateMany?: TariffUpdateManyWithWhereWithoutProviderInput | TariffUpdateManyWithWhereWithoutProviderInput[]
|
|
deleteMany?: TariffScalarWhereInput | TariffScalarWhereInput[]
|
|
}
|
|
|
|
export type ContractUpdateManyWithoutProviderNestedInput = {
|
|
create?: XOR<ContractCreateWithoutProviderInput, ContractUncheckedCreateWithoutProviderInput> | ContractCreateWithoutProviderInput[] | ContractUncheckedCreateWithoutProviderInput[]
|
|
connectOrCreate?: ContractCreateOrConnectWithoutProviderInput | ContractCreateOrConnectWithoutProviderInput[]
|
|
upsert?: ContractUpsertWithWhereUniqueWithoutProviderInput | ContractUpsertWithWhereUniqueWithoutProviderInput[]
|
|
createMany?: ContractCreateManyProviderInputEnvelope
|
|
set?: ContractWhereUniqueInput | ContractWhereUniqueInput[]
|
|
disconnect?: ContractWhereUniqueInput | ContractWhereUniqueInput[]
|
|
delete?: ContractWhereUniqueInput | ContractWhereUniqueInput[]
|
|
connect?: ContractWhereUniqueInput | ContractWhereUniqueInput[]
|
|
update?: ContractUpdateWithWhereUniqueWithoutProviderInput | ContractUpdateWithWhereUniqueWithoutProviderInput[]
|
|
updateMany?: ContractUpdateManyWithWhereWithoutProviderInput | ContractUpdateManyWithWhereWithoutProviderInput[]
|
|
deleteMany?: ContractScalarWhereInput | ContractScalarWhereInput[]
|
|
}
|
|
|
|
export type TariffUncheckedUpdateManyWithoutProviderNestedInput = {
|
|
create?: XOR<TariffCreateWithoutProviderInput, TariffUncheckedCreateWithoutProviderInput> | TariffCreateWithoutProviderInput[] | TariffUncheckedCreateWithoutProviderInput[]
|
|
connectOrCreate?: TariffCreateOrConnectWithoutProviderInput | TariffCreateOrConnectWithoutProviderInput[]
|
|
upsert?: TariffUpsertWithWhereUniqueWithoutProviderInput | TariffUpsertWithWhereUniqueWithoutProviderInput[]
|
|
createMany?: TariffCreateManyProviderInputEnvelope
|
|
set?: TariffWhereUniqueInput | TariffWhereUniqueInput[]
|
|
disconnect?: TariffWhereUniqueInput | TariffWhereUniqueInput[]
|
|
delete?: TariffWhereUniqueInput | TariffWhereUniqueInput[]
|
|
connect?: TariffWhereUniqueInput | TariffWhereUniqueInput[]
|
|
update?: TariffUpdateWithWhereUniqueWithoutProviderInput | TariffUpdateWithWhereUniqueWithoutProviderInput[]
|
|
updateMany?: TariffUpdateManyWithWhereWithoutProviderInput | TariffUpdateManyWithWhereWithoutProviderInput[]
|
|
deleteMany?: TariffScalarWhereInput | TariffScalarWhereInput[]
|
|
}
|
|
|
|
export type ContractUncheckedUpdateManyWithoutProviderNestedInput = {
|
|
create?: XOR<ContractCreateWithoutProviderInput, ContractUncheckedCreateWithoutProviderInput> | ContractCreateWithoutProviderInput[] | ContractUncheckedCreateWithoutProviderInput[]
|
|
connectOrCreate?: ContractCreateOrConnectWithoutProviderInput | ContractCreateOrConnectWithoutProviderInput[]
|
|
upsert?: ContractUpsertWithWhereUniqueWithoutProviderInput | ContractUpsertWithWhereUniqueWithoutProviderInput[]
|
|
createMany?: ContractCreateManyProviderInputEnvelope
|
|
set?: ContractWhereUniqueInput | ContractWhereUniqueInput[]
|
|
disconnect?: ContractWhereUniqueInput | ContractWhereUniqueInput[]
|
|
delete?: ContractWhereUniqueInput | ContractWhereUniqueInput[]
|
|
connect?: ContractWhereUniqueInput | ContractWhereUniqueInput[]
|
|
update?: ContractUpdateWithWhereUniqueWithoutProviderInput | ContractUpdateWithWhereUniqueWithoutProviderInput[]
|
|
updateMany?: ContractUpdateManyWithWhereWithoutProviderInput | ContractUpdateManyWithWhereWithoutProviderInput[]
|
|
deleteMany?: ContractScalarWhereInput | ContractScalarWhereInput[]
|
|
}
|
|
|
|
export type ProviderCreateNestedOneWithoutTariffsInput = {
|
|
create?: XOR<ProviderCreateWithoutTariffsInput, ProviderUncheckedCreateWithoutTariffsInput>
|
|
connectOrCreate?: ProviderCreateOrConnectWithoutTariffsInput
|
|
connect?: ProviderWhereUniqueInput
|
|
}
|
|
|
|
export type ContractCreateNestedManyWithoutTariffInput = {
|
|
create?: XOR<ContractCreateWithoutTariffInput, ContractUncheckedCreateWithoutTariffInput> | ContractCreateWithoutTariffInput[] | ContractUncheckedCreateWithoutTariffInput[]
|
|
connectOrCreate?: ContractCreateOrConnectWithoutTariffInput | ContractCreateOrConnectWithoutTariffInput[]
|
|
createMany?: ContractCreateManyTariffInputEnvelope
|
|
connect?: ContractWhereUniqueInput | ContractWhereUniqueInput[]
|
|
}
|
|
|
|
export type ContractUncheckedCreateNestedManyWithoutTariffInput = {
|
|
create?: XOR<ContractCreateWithoutTariffInput, ContractUncheckedCreateWithoutTariffInput> | ContractCreateWithoutTariffInput[] | ContractUncheckedCreateWithoutTariffInput[]
|
|
connectOrCreate?: ContractCreateOrConnectWithoutTariffInput | ContractCreateOrConnectWithoutTariffInput[]
|
|
createMany?: ContractCreateManyTariffInputEnvelope
|
|
connect?: ContractWhereUniqueInput | ContractWhereUniqueInput[]
|
|
}
|
|
|
|
export type ProviderUpdateOneRequiredWithoutTariffsNestedInput = {
|
|
create?: XOR<ProviderCreateWithoutTariffsInput, ProviderUncheckedCreateWithoutTariffsInput>
|
|
connectOrCreate?: ProviderCreateOrConnectWithoutTariffsInput
|
|
upsert?: ProviderUpsertWithoutTariffsInput
|
|
connect?: ProviderWhereUniqueInput
|
|
update?: XOR<XOR<ProviderUpdateToOneWithWhereWithoutTariffsInput, ProviderUpdateWithoutTariffsInput>, ProviderUncheckedUpdateWithoutTariffsInput>
|
|
}
|
|
|
|
export type ContractUpdateManyWithoutTariffNestedInput = {
|
|
create?: XOR<ContractCreateWithoutTariffInput, ContractUncheckedCreateWithoutTariffInput> | ContractCreateWithoutTariffInput[] | ContractUncheckedCreateWithoutTariffInput[]
|
|
connectOrCreate?: ContractCreateOrConnectWithoutTariffInput | ContractCreateOrConnectWithoutTariffInput[]
|
|
upsert?: ContractUpsertWithWhereUniqueWithoutTariffInput | ContractUpsertWithWhereUniqueWithoutTariffInput[]
|
|
createMany?: ContractCreateManyTariffInputEnvelope
|
|
set?: ContractWhereUniqueInput | ContractWhereUniqueInput[]
|
|
disconnect?: ContractWhereUniqueInput | ContractWhereUniqueInput[]
|
|
delete?: ContractWhereUniqueInput | ContractWhereUniqueInput[]
|
|
connect?: ContractWhereUniqueInput | ContractWhereUniqueInput[]
|
|
update?: ContractUpdateWithWhereUniqueWithoutTariffInput | ContractUpdateWithWhereUniqueWithoutTariffInput[]
|
|
updateMany?: ContractUpdateManyWithWhereWithoutTariffInput | ContractUpdateManyWithWhereWithoutTariffInput[]
|
|
deleteMany?: ContractScalarWhereInput | ContractScalarWhereInput[]
|
|
}
|
|
|
|
export type ContractUncheckedUpdateManyWithoutTariffNestedInput = {
|
|
create?: XOR<ContractCreateWithoutTariffInput, ContractUncheckedCreateWithoutTariffInput> | ContractCreateWithoutTariffInput[] | ContractUncheckedCreateWithoutTariffInput[]
|
|
connectOrCreate?: ContractCreateOrConnectWithoutTariffInput | ContractCreateOrConnectWithoutTariffInput[]
|
|
upsert?: ContractUpsertWithWhereUniqueWithoutTariffInput | ContractUpsertWithWhereUniqueWithoutTariffInput[]
|
|
createMany?: ContractCreateManyTariffInputEnvelope
|
|
set?: ContractWhereUniqueInput | ContractWhereUniqueInput[]
|
|
disconnect?: ContractWhereUniqueInput | ContractWhereUniqueInput[]
|
|
delete?: ContractWhereUniqueInput | ContractWhereUniqueInput[]
|
|
connect?: ContractWhereUniqueInput | ContractWhereUniqueInput[]
|
|
update?: ContractUpdateWithWhereUniqueWithoutTariffInput | ContractUpdateWithWhereUniqueWithoutTariffInput[]
|
|
updateMany?: ContractUpdateManyWithWhereWithoutTariffInput | ContractUpdateManyWithWhereWithoutTariffInput[]
|
|
deleteMany?: ContractScalarWhereInput | ContractScalarWhereInput[]
|
|
}
|
|
|
|
export type ContractCreateNestedManyWithoutContractCategoryInput = {
|
|
create?: XOR<ContractCreateWithoutContractCategoryInput, ContractUncheckedCreateWithoutContractCategoryInput> | ContractCreateWithoutContractCategoryInput[] | ContractUncheckedCreateWithoutContractCategoryInput[]
|
|
connectOrCreate?: ContractCreateOrConnectWithoutContractCategoryInput | ContractCreateOrConnectWithoutContractCategoryInput[]
|
|
createMany?: ContractCreateManyContractCategoryInputEnvelope
|
|
connect?: ContractWhereUniqueInput | ContractWhereUniqueInput[]
|
|
}
|
|
|
|
export type ContractUncheckedCreateNestedManyWithoutContractCategoryInput = {
|
|
create?: XOR<ContractCreateWithoutContractCategoryInput, ContractUncheckedCreateWithoutContractCategoryInput> | ContractCreateWithoutContractCategoryInput[] | ContractUncheckedCreateWithoutContractCategoryInput[]
|
|
connectOrCreate?: ContractCreateOrConnectWithoutContractCategoryInput | ContractCreateOrConnectWithoutContractCategoryInput[]
|
|
createMany?: ContractCreateManyContractCategoryInputEnvelope
|
|
connect?: ContractWhereUniqueInput | ContractWhereUniqueInput[]
|
|
}
|
|
|
|
export type ContractUpdateManyWithoutContractCategoryNestedInput = {
|
|
create?: XOR<ContractCreateWithoutContractCategoryInput, ContractUncheckedCreateWithoutContractCategoryInput> | ContractCreateWithoutContractCategoryInput[] | ContractUncheckedCreateWithoutContractCategoryInput[]
|
|
connectOrCreate?: ContractCreateOrConnectWithoutContractCategoryInput | ContractCreateOrConnectWithoutContractCategoryInput[]
|
|
upsert?: ContractUpsertWithWhereUniqueWithoutContractCategoryInput | ContractUpsertWithWhereUniqueWithoutContractCategoryInput[]
|
|
createMany?: ContractCreateManyContractCategoryInputEnvelope
|
|
set?: ContractWhereUniqueInput | ContractWhereUniqueInput[]
|
|
disconnect?: ContractWhereUniqueInput | ContractWhereUniqueInput[]
|
|
delete?: ContractWhereUniqueInput | ContractWhereUniqueInput[]
|
|
connect?: ContractWhereUniqueInput | ContractWhereUniqueInput[]
|
|
update?: ContractUpdateWithWhereUniqueWithoutContractCategoryInput | ContractUpdateWithWhereUniqueWithoutContractCategoryInput[]
|
|
updateMany?: ContractUpdateManyWithWhereWithoutContractCategoryInput | ContractUpdateManyWithWhereWithoutContractCategoryInput[]
|
|
deleteMany?: ContractScalarWhereInput | ContractScalarWhereInput[]
|
|
}
|
|
|
|
export type ContractUncheckedUpdateManyWithoutContractCategoryNestedInput = {
|
|
create?: XOR<ContractCreateWithoutContractCategoryInput, ContractUncheckedCreateWithoutContractCategoryInput> | ContractCreateWithoutContractCategoryInput[] | ContractUncheckedCreateWithoutContractCategoryInput[]
|
|
connectOrCreate?: ContractCreateOrConnectWithoutContractCategoryInput | ContractCreateOrConnectWithoutContractCategoryInput[]
|
|
upsert?: ContractUpsertWithWhereUniqueWithoutContractCategoryInput | ContractUpsertWithWhereUniqueWithoutContractCategoryInput[]
|
|
createMany?: ContractCreateManyContractCategoryInputEnvelope
|
|
set?: ContractWhereUniqueInput | ContractWhereUniqueInput[]
|
|
disconnect?: ContractWhereUniqueInput | ContractWhereUniqueInput[]
|
|
delete?: ContractWhereUniqueInput | ContractWhereUniqueInput[]
|
|
connect?: ContractWhereUniqueInput | ContractWhereUniqueInput[]
|
|
update?: ContractUpdateWithWhereUniqueWithoutContractCategoryInput | ContractUpdateWithWhereUniqueWithoutContractCategoryInput[]
|
|
updateMany?: ContractUpdateManyWithWhereWithoutContractCategoryInput | ContractUpdateManyWithWhereWithoutContractCategoryInput[]
|
|
deleteMany?: ContractScalarWhereInput | ContractScalarWhereInput[]
|
|
}
|
|
|
|
export type CustomerCreateNestedOneWithoutContractsInput = {
|
|
create?: XOR<CustomerCreateWithoutContractsInput, CustomerUncheckedCreateWithoutContractsInput>
|
|
connectOrCreate?: CustomerCreateOrConnectWithoutContractsInput
|
|
connect?: CustomerWhereUniqueInput
|
|
}
|
|
|
|
export type ContractCategoryCreateNestedOneWithoutContractsInput = {
|
|
create?: XOR<ContractCategoryCreateWithoutContractsInput, ContractCategoryUncheckedCreateWithoutContractsInput>
|
|
connectOrCreate?: ContractCategoryCreateOrConnectWithoutContractsInput
|
|
connect?: ContractCategoryWhereUniqueInput
|
|
}
|
|
|
|
export type AddressCreateNestedOneWithoutContractsAsDeliveryInput = {
|
|
create?: XOR<AddressCreateWithoutContractsAsDeliveryInput, AddressUncheckedCreateWithoutContractsAsDeliveryInput>
|
|
connectOrCreate?: AddressCreateOrConnectWithoutContractsAsDeliveryInput
|
|
connect?: AddressWhereUniqueInput
|
|
}
|
|
|
|
export type AddressCreateNestedOneWithoutContractsAsBillingInput = {
|
|
create?: XOR<AddressCreateWithoutContractsAsBillingInput, AddressUncheckedCreateWithoutContractsAsBillingInput>
|
|
connectOrCreate?: AddressCreateOrConnectWithoutContractsAsBillingInput
|
|
connect?: AddressWhereUniqueInput
|
|
}
|
|
|
|
export type BankCardCreateNestedOneWithoutContractsInput = {
|
|
create?: XOR<BankCardCreateWithoutContractsInput, BankCardUncheckedCreateWithoutContractsInput>
|
|
connectOrCreate?: BankCardCreateOrConnectWithoutContractsInput
|
|
connect?: BankCardWhereUniqueInput
|
|
}
|
|
|
|
export type IdentityDocumentCreateNestedOneWithoutContractsInput = {
|
|
create?: XOR<IdentityDocumentCreateWithoutContractsInput, IdentityDocumentUncheckedCreateWithoutContractsInput>
|
|
connectOrCreate?: IdentityDocumentCreateOrConnectWithoutContractsInput
|
|
connect?: IdentityDocumentWhereUniqueInput
|
|
}
|
|
|
|
export type SalesPlatformCreateNestedOneWithoutContractsInput = {
|
|
create?: XOR<SalesPlatformCreateWithoutContractsInput, SalesPlatformUncheckedCreateWithoutContractsInput>
|
|
connectOrCreate?: SalesPlatformCreateOrConnectWithoutContractsInput
|
|
connect?: SalesPlatformWhereUniqueInput
|
|
}
|
|
|
|
export type CancellationPeriodCreateNestedOneWithoutContractsInput = {
|
|
create?: XOR<CancellationPeriodCreateWithoutContractsInput, CancellationPeriodUncheckedCreateWithoutContractsInput>
|
|
connectOrCreate?: CancellationPeriodCreateOrConnectWithoutContractsInput
|
|
connect?: CancellationPeriodWhereUniqueInput
|
|
}
|
|
|
|
export type ContractDurationCreateNestedOneWithoutContractsInput = {
|
|
create?: XOR<ContractDurationCreateWithoutContractsInput, ContractDurationUncheckedCreateWithoutContractsInput>
|
|
connectOrCreate?: ContractDurationCreateOrConnectWithoutContractsInput
|
|
connect?: ContractDurationWhereUniqueInput
|
|
}
|
|
|
|
export type ContractCreateNestedOneWithoutFollowUpContractInput = {
|
|
create?: XOR<ContractCreateWithoutFollowUpContractInput, ContractUncheckedCreateWithoutFollowUpContractInput>
|
|
connectOrCreate?: ContractCreateOrConnectWithoutFollowUpContractInput
|
|
connect?: ContractWhereUniqueInput
|
|
}
|
|
|
|
export type ContractCreateNestedOneWithoutPreviousContractInput = {
|
|
create?: XOR<ContractCreateWithoutPreviousContractInput, ContractUncheckedCreateWithoutPreviousContractInput>
|
|
connectOrCreate?: ContractCreateOrConnectWithoutPreviousContractInput
|
|
connect?: ContractWhereUniqueInput
|
|
}
|
|
|
|
export type ProviderCreateNestedOneWithoutContractsInput = {
|
|
create?: XOR<ProviderCreateWithoutContractsInput, ProviderUncheckedCreateWithoutContractsInput>
|
|
connectOrCreate?: ProviderCreateOrConnectWithoutContractsInput
|
|
connect?: ProviderWhereUniqueInput
|
|
}
|
|
|
|
export type TariffCreateNestedOneWithoutContractsInput = {
|
|
create?: XOR<TariffCreateWithoutContractsInput, TariffUncheckedCreateWithoutContractsInput>
|
|
connectOrCreate?: TariffCreateOrConnectWithoutContractsInput
|
|
connect?: TariffWhereUniqueInput
|
|
}
|
|
|
|
export type StressfreiEmailCreateNestedOneWithoutContractsInput = {
|
|
create?: XOR<StressfreiEmailCreateWithoutContractsInput, StressfreiEmailUncheckedCreateWithoutContractsInput>
|
|
connectOrCreate?: StressfreiEmailCreateOrConnectWithoutContractsInput
|
|
connect?: StressfreiEmailWhereUniqueInput
|
|
}
|
|
|
|
export type EnergyContractDetailsCreateNestedOneWithoutContractInput = {
|
|
create?: XOR<EnergyContractDetailsCreateWithoutContractInput, EnergyContractDetailsUncheckedCreateWithoutContractInput>
|
|
connectOrCreate?: EnergyContractDetailsCreateOrConnectWithoutContractInput
|
|
connect?: EnergyContractDetailsWhereUniqueInput
|
|
}
|
|
|
|
export type InternetContractDetailsCreateNestedOneWithoutContractInput = {
|
|
create?: XOR<InternetContractDetailsCreateWithoutContractInput, InternetContractDetailsUncheckedCreateWithoutContractInput>
|
|
connectOrCreate?: InternetContractDetailsCreateOrConnectWithoutContractInput
|
|
connect?: InternetContractDetailsWhereUniqueInput
|
|
}
|
|
|
|
export type MobileContractDetailsCreateNestedOneWithoutContractInput = {
|
|
create?: XOR<MobileContractDetailsCreateWithoutContractInput, MobileContractDetailsUncheckedCreateWithoutContractInput>
|
|
connectOrCreate?: MobileContractDetailsCreateOrConnectWithoutContractInput
|
|
connect?: MobileContractDetailsWhereUniqueInput
|
|
}
|
|
|
|
export type TvContractDetailsCreateNestedOneWithoutContractInput = {
|
|
create?: XOR<TvContractDetailsCreateWithoutContractInput, TvContractDetailsUncheckedCreateWithoutContractInput>
|
|
connectOrCreate?: TvContractDetailsCreateOrConnectWithoutContractInput
|
|
connect?: TvContractDetailsWhereUniqueInput
|
|
}
|
|
|
|
export type CarInsuranceDetailsCreateNestedOneWithoutContractInput = {
|
|
create?: XOR<CarInsuranceDetailsCreateWithoutContractInput, CarInsuranceDetailsUncheckedCreateWithoutContractInput>
|
|
connectOrCreate?: CarInsuranceDetailsCreateOrConnectWithoutContractInput
|
|
connect?: CarInsuranceDetailsWhereUniqueInput
|
|
}
|
|
|
|
export type ContractTaskCreateNestedManyWithoutContractInput = {
|
|
create?: XOR<ContractTaskCreateWithoutContractInput, ContractTaskUncheckedCreateWithoutContractInput> | ContractTaskCreateWithoutContractInput[] | ContractTaskUncheckedCreateWithoutContractInput[]
|
|
connectOrCreate?: ContractTaskCreateOrConnectWithoutContractInput | ContractTaskCreateOrConnectWithoutContractInput[]
|
|
createMany?: ContractTaskCreateManyContractInputEnvelope
|
|
connect?: ContractTaskWhereUniqueInput | ContractTaskWhereUniqueInput[]
|
|
}
|
|
|
|
export type CachedEmailCreateNestedManyWithoutContractInput = {
|
|
create?: XOR<CachedEmailCreateWithoutContractInput, CachedEmailUncheckedCreateWithoutContractInput> | CachedEmailCreateWithoutContractInput[] | CachedEmailUncheckedCreateWithoutContractInput[]
|
|
connectOrCreate?: CachedEmailCreateOrConnectWithoutContractInput | CachedEmailCreateOrConnectWithoutContractInput[]
|
|
createMany?: CachedEmailCreateManyContractInputEnvelope
|
|
connect?: CachedEmailWhereUniqueInput | CachedEmailWhereUniqueInput[]
|
|
}
|
|
|
|
export type ContractUncheckedCreateNestedOneWithoutPreviousContractInput = {
|
|
create?: XOR<ContractCreateWithoutPreviousContractInput, ContractUncheckedCreateWithoutPreviousContractInput>
|
|
connectOrCreate?: ContractCreateOrConnectWithoutPreviousContractInput
|
|
connect?: ContractWhereUniqueInput
|
|
}
|
|
|
|
export type EnergyContractDetailsUncheckedCreateNestedOneWithoutContractInput = {
|
|
create?: XOR<EnergyContractDetailsCreateWithoutContractInput, EnergyContractDetailsUncheckedCreateWithoutContractInput>
|
|
connectOrCreate?: EnergyContractDetailsCreateOrConnectWithoutContractInput
|
|
connect?: EnergyContractDetailsWhereUniqueInput
|
|
}
|
|
|
|
export type InternetContractDetailsUncheckedCreateNestedOneWithoutContractInput = {
|
|
create?: XOR<InternetContractDetailsCreateWithoutContractInput, InternetContractDetailsUncheckedCreateWithoutContractInput>
|
|
connectOrCreate?: InternetContractDetailsCreateOrConnectWithoutContractInput
|
|
connect?: InternetContractDetailsWhereUniqueInput
|
|
}
|
|
|
|
export type MobileContractDetailsUncheckedCreateNestedOneWithoutContractInput = {
|
|
create?: XOR<MobileContractDetailsCreateWithoutContractInput, MobileContractDetailsUncheckedCreateWithoutContractInput>
|
|
connectOrCreate?: MobileContractDetailsCreateOrConnectWithoutContractInput
|
|
connect?: MobileContractDetailsWhereUniqueInput
|
|
}
|
|
|
|
export type TvContractDetailsUncheckedCreateNestedOneWithoutContractInput = {
|
|
create?: XOR<TvContractDetailsCreateWithoutContractInput, TvContractDetailsUncheckedCreateWithoutContractInput>
|
|
connectOrCreate?: TvContractDetailsCreateOrConnectWithoutContractInput
|
|
connect?: TvContractDetailsWhereUniqueInput
|
|
}
|
|
|
|
export type CarInsuranceDetailsUncheckedCreateNestedOneWithoutContractInput = {
|
|
create?: XOR<CarInsuranceDetailsCreateWithoutContractInput, CarInsuranceDetailsUncheckedCreateWithoutContractInput>
|
|
connectOrCreate?: CarInsuranceDetailsCreateOrConnectWithoutContractInput
|
|
connect?: CarInsuranceDetailsWhereUniqueInput
|
|
}
|
|
|
|
export type ContractTaskUncheckedCreateNestedManyWithoutContractInput = {
|
|
create?: XOR<ContractTaskCreateWithoutContractInput, ContractTaskUncheckedCreateWithoutContractInput> | ContractTaskCreateWithoutContractInput[] | ContractTaskUncheckedCreateWithoutContractInput[]
|
|
connectOrCreate?: ContractTaskCreateOrConnectWithoutContractInput | ContractTaskCreateOrConnectWithoutContractInput[]
|
|
createMany?: ContractTaskCreateManyContractInputEnvelope
|
|
connect?: ContractTaskWhereUniqueInput | ContractTaskWhereUniqueInput[]
|
|
}
|
|
|
|
export type CachedEmailUncheckedCreateNestedManyWithoutContractInput = {
|
|
create?: XOR<CachedEmailCreateWithoutContractInput, CachedEmailUncheckedCreateWithoutContractInput> | CachedEmailCreateWithoutContractInput[] | CachedEmailUncheckedCreateWithoutContractInput[]
|
|
connectOrCreate?: CachedEmailCreateOrConnectWithoutContractInput | CachedEmailCreateOrConnectWithoutContractInput[]
|
|
createMany?: CachedEmailCreateManyContractInputEnvelope
|
|
connect?: CachedEmailWhereUniqueInput | CachedEmailWhereUniqueInput[]
|
|
}
|
|
|
|
export type EnumContractTypeFieldUpdateOperationsInput = {
|
|
set?: $Enums.ContractType
|
|
}
|
|
|
|
export type EnumContractStatusFieldUpdateOperationsInput = {
|
|
set?: $Enums.ContractStatus
|
|
}
|
|
|
|
export type NullableFloatFieldUpdateOperationsInput = {
|
|
set?: number | null
|
|
increment?: number
|
|
decrement?: number
|
|
multiply?: number
|
|
divide?: number
|
|
}
|
|
|
|
export type CustomerUpdateOneRequiredWithoutContractsNestedInput = {
|
|
create?: XOR<CustomerCreateWithoutContractsInput, CustomerUncheckedCreateWithoutContractsInput>
|
|
connectOrCreate?: CustomerCreateOrConnectWithoutContractsInput
|
|
upsert?: CustomerUpsertWithoutContractsInput
|
|
connect?: CustomerWhereUniqueInput
|
|
update?: XOR<XOR<CustomerUpdateToOneWithWhereWithoutContractsInput, CustomerUpdateWithoutContractsInput>, CustomerUncheckedUpdateWithoutContractsInput>
|
|
}
|
|
|
|
export type ContractCategoryUpdateOneWithoutContractsNestedInput = {
|
|
create?: XOR<ContractCategoryCreateWithoutContractsInput, ContractCategoryUncheckedCreateWithoutContractsInput>
|
|
connectOrCreate?: ContractCategoryCreateOrConnectWithoutContractsInput
|
|
upsert?: ContractCategoryUpsertWithoutContractsInput
|
|
disconnect?: ContractCategoryWhereInput | boolean
|
|
delete?: ContractCategoryWhereInput | boolean
|
|
connect?: ContractCategoryWhereUniqueInput
|
|
update?: XOR<XOR<ContractCategoryUpdateToOneWithWhereWithoutContractsInput, ContractCategoryUpdateWithoutContractsInput>, ContractCategoryUncheckedUpdateWithoutContractsInput>
|
|
}
|
|
|
|
export type AddressUpdateOneWithoutContractsAsDeliveryNestedInput = {
|
|
create?: XOR<AddressCreateWithoutContractsAsDeliveryInput, AddressUncheckedCreateWithoutContractsAsDeliveryInput>
|
|
connectOrCreate?: AddressCreateOrConnectWithoutContractsAsDeliveryInput
|
|
upsert?: AddressUpsertWithoutContractsAsDeliveryInput
|
|
disconnect?: AddressWhereInput | boolean
|
|
delete?: AddressWhereInput | boolean
|
|
connect?: AddressWhereUniqueInput
|
|
update?: XOR<XOR<AddressUpdateToOneWithWhereWithoutContractsAsDeliveryInput, AddressUpdateWithoutContractsAsDeliveryInput>, AddressUncheckedUpdateWithoutContractsAsDeliveryInput>
|
|
}
|
|
|
|
export type AddressUpdateOneWithoutContractsAsBillingNestedInput = {
|
|
create?: XOR<AddressCreateWithoutContractsAsBillingInput, AddressUncheckedCreateWithoutContractsAsBillingInput>
|
|
connectOrCreate?: AddressCreateOrConnectWithoutContractsAsBillingInput
|
|
upsert?: AddressUpsertWithoutContractsAsBillingInput
|
|
disconnect?: AddressWhereInput | boolean
|
|
delete?: AddressWhereInput | boolean
|
|
connect?: AddressWhereUniqueInput
|
|
update?: XOR<XOR<AddressUpdateToOneWithWhereWithoutContractsAsBillingInput, AddressUpdateWithoutContractsAsBillingInput>, AddressUncheckedUpdateWithoutContractsAsBillingInput>
|
|
}
|
|
|
|
export type BankCardUpdateOneWithoutContractsNestedInput = {
|
|
create?: XOR<BankCardCreateWithoutContractsInput, BankCardUncheckedCreateWithoutContractsInput>
|
|
connectOrCreate?: BankCardCreateOrConnectWithoutContractsInput
|
|
upsert?: BankCardUpsertWithoutContractsInput
|
|
disconnect?: BankCardWhereInput | boolean
|
|
delete?: BankCardWhereInput | boolean
|
|
connect?: BankCardWhereUniqueInput
|
|
update?: XOR<XOR<BankCardUpdateToOneWithWhereWithoutContractsInput, BankCardUpdateWithoutContractsInput>, BankCardUncheckedUpdateWithoutContractsInput>
|
|
}
|
|
|
|
export type IdentityDocumentUpdateOneWithoutContractsNestedInput = {
|
|
create?: XOR<IdentityDocumentCreateWithoutContractsInput, IdentityDocumentUncheckedCreateWithoutContractsInput>
|
|
connectOrCreate?: IdentityDocumentCreateOrConnectWithoutContractsInput
|
|
upsert?: IdentityDocumentUpsertWithoutContractsInput
|
|
disconnect?: IdentityDocumentWhereInput | boolean
|
|
delete?: IdentityDocumentWhereInput | boolean
|
|
connect?: IdentityDocumentWhereUniqueInput
|
|
update?: XOR<XOR<IdentityDocumentUpdateToOneWithWhereWithoutContractsInput, IdentityDocumentUpdateWithoutContractsInput>, IdentityDocumentUncheckedUpdateWithoutContractsInput>
|
|
}
|
|
|
|
export type SalesPlatformUpdateOneWithoutContractsNestedInput = {
|
|
create?: XOR<SalesPlatformCreateWithoutContractsInput, SalesPlatformUncheckedCreateWithoutContractsInput>
|
|
connectOrCreate?: SalesPlatformCreateOrConnectWithoutContractsInput
|
|
upsert?: SalesPlatformUpsertWithoutContractsInput
|
|
disconnect?: SalesPlatformWhereInput | boolean
|
|
delete?: SalesPlatformWhereInput | boolean
|
|
connect?: SalesPlatformWhereUniqueInput
|
|
update?: XOR<XOR<SalesPlatformUpdateToOneWithWhereWithoutContractsInput, SalesPlatformUpdateWithoutContractsInput>, SalesPlatformUncheckedUpdateWithoutContractsInput>
|
|
}
|
|
|
|
export type CancellationPeriodUpdateOneWithoutContractsNestedInput = {
|
|
create?: XOR<CancellationPeriodCreateWithoutContractsInput, CancellationPeriodUncheckedCreateWithoutContractsInput>
|
|
connectOrCreate?: CancellationPeriodCreateOrConnectWithoutContractsInput
|
|
upsert?: CancellationPeriodUpsertWithoutContractsInput
|
|
disconnect?: CancellationPeriodWhereInput | boolean
|
|
delete?: CancellationPeriodWhereInput | boolean
|
|
connect?: CancellationPeriodWhereUniqueInput
|
|
update?: XOR<XOR<CancellationPeriodUpdateToOneWithWhereWithoutContractsInput, CancellationPeriodUpdateWithoutContractsInput>, CancellationPeriodUncheckedUpdateWithoutContractsInput>
|
|
}
|
|
|
|
export type ContractDurationUpdateOneWithoutContractsNestedInput = {
|
|
create?: XOR<ContractDurationCreateWithoutContractsInput, ContractDurationUncheckedCreateWithoutContractsInput>
|
|
connectOrCreate?: ContractDurationCreateOrConnectWithoutContractsInput
|
|
upsert?: ContractDurationUpsertWithoutContractsInput
|
|
disconnect?: ContractDurationWhereInput | boolean
|
|
delete?: ContractDurationWhereInput | boolean
|
|
connect?: ContractDurationWhereUniqueInput
|
|
update?: XOR<XOR<ContractDurationUpdateToOneWithWhereWithoutContractsInput, ContractDurationUpdateWithoutContractsInput>, ContractDurationUncheckedUpdateWithoutContractsInput>
|
|
}
|
|
|
|
export type ContractUpdateOneWithoutFollowUpContractNestedInput = {
|
|
create?: XOR<ContractCreateWithoutFollowUpContractInput, ContractUncheckedCreateWithoutFollowUpContractInput>
|
|
connectOrCreate?: ContractCreateOrConnectWithoutFollowUpContractInput
|
|
upsert?: ContractUpsertWithoutFollowUpContractInput
|
|
disconnect?: ContractWhereInput | boolean
|
|
delete?: ContractWhereInput | boolean
|
|
connect?: ContractWhereUniqueInput
|
|
update?: XOR<XOR<ContractUpdateToOneWithWhereWithoutFollowUpContractInput, ContractUpdateWithoutFollowUpContractInput>, ContractUncheckedUpdateWithoutFollowUpContractInput>
|
|
}
|
|
|
|
export type ContractUpdateOneWithoutPreviousContractNestedInput = {
|
|
create?: XOR<ContractCreateWithoutPreviousContractInput, ContractUncheckedCreateWithoutPreviousContractInput>
|
|
connectOrCreate?: ContractCreateOrConnectWithoutPreviousContractInput
|
|
upsert?: ContractUpsertWithoutPreviousContractInput
|
|
disconnect?: ContractWhereInput | boolean
|
|
delete?: ContractWhereInput | boolean
|
|
connect?: ContractWhereUniqueInput
|
|
update?: XOR<XOR<ContractUpdateToOneWithWhereWithoutPreviousContractInput, ContractUpdateWithoutPreviousContractInput>, ContractUncheckedUpdateWithoutPreviousContractInput>
|
|
}
|
|
|
|
export type ProviderUpdateOneWithoutContractsNestedInput = {
|
|
create?: XOR<ProviderCreateWithoutContractsInput, ProviderUncheckedCreateWithoutContractsInput>
|
|
connectOrCreate?: ProviderCreateOrConnectWithoutContractsInput
|
|
upsert?: ProviderUpsertWithoutContractsInput
|
|
disconnect?: ProviderWhereInput | boolean
|
|
delete?: ProviderWhereInput | boolean
|
|
connect?: ProviderWhereUniqueInput
|
|
update?: XOR<XOR<ProviderUpdateToOneWithWhereWithoutContractsInput, ProviderUpdateWithoutContractsInput>, ProviderUncheckedUpdateWithoutContractsInput>
|
|
}
|
|
|
|
export type TariffUpdateOneWithoutContractsNestedInput = {
|
|
create?: XOR<TariffCreateWithoutContractsInput, TariffUncheckedCreateWithoutContractsInput>
|
|
connectOrCreate?: TariffCreateOrConnectWithoutContractsInput
|
|
upsert?: TariffUpsertWithoutContractsInput
|
|
disconnect?: TariffWhereInput | boolean
|
|
delete?: TariffWhereInput | boolean
|
|
connect?: TariffWhereUniqueInput
|
|
update?: XOR<XOR<TariffUpdateToOneWithWhereWithoutContractsInput, TariffUpdateWithoutContractsInput>, TariffUncheckedUpdateWithoutContractsInput>
|
|
}
|
|
|
|
export type StressfreiEmailUpdateOneWithoutContractsNestedInput = {
|
|
create?: XOR<StressfreiEmailCreateWithoutContractsInput, StressfreiEmailUncheckedCreateWithoutContractsInput>
|
|
connectOrCreate?: StressfreiEmailCreateOrConnectWithoutContractsInput
|
|
upsert?: StressfreiEmailUpsertWithoutContractsInput
|
|
disconnect?: StressfreiEmailWhereInput | boolean
|
|
delete?: StressfreiEmailWhereInput | boolean
|
|
connect?: StressfreiEmailWhereUniqueInput
|
|
update?: XOR<XOR<StressfreiEmailUpdateToOneWithWhereWithoutContractsInput, StressfreiEmailUpdateWithoutContractsInput>, StressfreiEmailUncheckedUpdateWithoutContractsInput>
|
|
}
|
|
|
|
export type EnergyContractDetailsUpdateOneWithoutContractNestedInput = {
|
|
create?: XOR<EnergyContractDetailsCreateWithoutContractInput, EnergyContractDetailsUncheckedCreateWithoutContractInput>
|
|
connectOrCreate?: EnergyContractDetailsCreateOrConnectWithoutContractInput
|
|
upsert?: EnergyContractDetailsUpsertWithoutContractInput
|
|
disconnect?: EnergyContractDetailsWhereInput | boolean
|
|
delete?: EnergyContractDetailsWhereInput | boolean
|
|
connect?: EnergyContractDetailsWhereUniqueInput
|
|
update?: XOR<XOR<EnergyContractDetailsUpdateToOneWithWhereWithoutContractInput, EnergyContractDetailsUpdateWithoutContractInput>, EnergyContractDetailsUncheckedUpdateWithoutContractInput>
|
|
}
|
|
|
|
export type InternetContractDetailsUpdateOneWithoutContractNestedInput = {
|
|
create?: XOR<InternetContractDetailsCreateWithoutContractInput, InternetContractDetailsUncheckedCreateWithoutContractInput>
|
|
connectOrCreate?: InternetContractDetailsCreateOrConnectWithoutContractInput
|
|
upsert?: InternetContractDetailsUpsertWithoutContractInput
|
|
disconnect?: InternetContractDetailsWhereInput | boolean
|
|
delete?: InternetContractDetailsWhereInput | boolean
|
|
connect?: InternetContractDetailsWhereUniqueInput
|
|
update?: XOR<XOR<InternetContractDetailsUpdateToOneWithWhereWithoutContractInput, InternetContractDetailsUpdateWithoutContractInput>, InternetContractDetailsUncheckedUpdateWithoutContractInput>
|
|
}
|
|
|
|
export type MobileContractDetailsUpdateOneWithoutContractNestedInput = {
|
|
create?: XOR<MobileContractDetailsCreateWithoutContractInput, MobileContractDetailsUncheckedCreateWithoutContractInput>
|
|
connectOrCreate?: MobileContractDetailsCreateOrConnectWithoutContractInput
|
|
upsert?: MobileContractDetailsUpsertWithoutContractInput
|
|
disconnect?: MobileContractDetailsWhereInput | boolean
|
|
delete?: MobileContractDetailsWhereInput | boolean
|
|
connect?: MobileContractDetailsWhereUniqueInput
|
|
update?: XOR<XOR<MobileContractDetailsUpdateToOneWithWhereWithoutContractInput, MobileContractDetailsUpdateWithoutContractInput>, MobileContractDetailsUncheckedUpdateWithoutContractInput>
|
|
}
|
|
|
|
export type TvContractDetailsUpdateOneWithoutContractNestedInput = {
|
|
create?: XOR<TvContractDetailsCreateWithoutContractInput, TvContractDetailsUncheckedCreateWithoutContractInput>
|
|
connectOrCreate?: TvContractDetailsCreateOrConnectWithoutContractInput
|
|
upsert?: TvContractDetailsUpsertWithoutContractInput
|
|
disconnect?: TvContractDetailsWhereInput | boolean
|
|
delete?: TvContractDetailsWhereInput | boolean
|
|
connect?: TvContractDetailsWhereUniqueInput
|
|
update?: XOR<XOR<TvContractDetailsUpdateToOneWithWhereWithoutContractInput, TvContractDetailsUpdateWithoutContractInput>, TvContractDetailsUncheckedUpdateWithoutContractInput>
|
|
}
|
|
|
|
export type CarInsuranceDetailsUpdateOneWithoutContractNestedInput = {
|
|
create?: XOR<CarInsuranceDetailsCreateWithoutContractInput, CarInsuranceDetailsUncheckedCreateWithoutContractInput>
|
|
connectOrCreate?: CarInsuranceDetailsCreateOrConnectWithoutContractInput
|
|
upsert?: CarInsuranceDetailsUpsertWithoutContractInput
|
|
disconnect?: CarInsuranceDetailsWhereInput | boolean
|
|
delete?: CarInsuranceDetailsWhereInput | boolean
|
|
connect?: CarInsuranceDetailsWhereUniqueInput
|
|
update?: XOR<XOR<CarInsuranceDetailsUpdateToOneWithWhereWithoutContractInput, CarInsuranceDetailsUpdateWithoutContractInput>, CarInsuranceDetailsUncheckedUpdateWithoutContractInput>
|
|
}
|
|
|
|
export type ContractTaskUpdateManyWithoutContractNestedInput = {
|
|
create?: XOR<ContractTaskCreateWithoutContractInput, ContractTaskUncheckedCreateWithoutContractInput> | ContractTaskCreateWithoutContractInput[] | ContractTaskUncheckedCreateWithoutContractInput[]
|
|
connectOrCreate?: ContractTaskCreateOrConnectWithoutContractInput | ContractTaskCreateOrConnectWithoutContractInput[]
|
|
upsert?: ContractTaskUpsertWithWhereUniqueWithoutContractInput | ContractTaskUpsertWithWhereUniqueWithoutContractInput[]
|
|
createMany?: ContractTaskCreateManyContractInputEnvelope
|
|
set?: ContractTaskWhereUniqueInput | ContractTaskWhereUniqueInput[]
|
|
disconnect?: ContractTaskWhereUniqueInput | ContractTaskWhereUniqueInput[]
|
|
delete?: ContractTaskWhereUniqueInput | ContractTaskWhereUniqueInput[]
|
|
connect?: ContractTaskWhereUniqueInput | ContractTaskWhereUniqueInput[]
|
|
update?: ContractTaskUpdateWithWhereUniqueWithoutContractInput | ContractTaskUpdateWithWhereUniqueWithoutContractInput[]
|
|
updateMany?: ContractTaskUpdateManyWithWhereWithoutContractInput | ContractTaskUpdateManyWithWhereWithoutContractInput[]
|
|
deleteMany?: ContractTaskScalarWhereInput | ContractTaskScalarWhereInput[]
|
|
}
|
|
|
|
export type CachedEmailUpdateManyWithoutContractNestedInput = {
|
|
create?: XOR<CachedEmailCreateWithoutContractInput, CachedEmailUncheckedCreateWithoutContractInput> | CachedEmailCreateWithoutContractInput[] | CachedEmailUncheckedCreateWithoutContractInput[]
|
|
connectOrCreate?: CachedEmailCreateOrConnectWithoutContractInput | CachedEmailCreateOrConnectWithoutContractInput[]
|
|
upsert?: CachedEmailUpsertWithWhereUniqueWithoutContractInput | CachedEmailUpsertWithWhereUniqueWithoutContractInput[]
|
|
createMany?: CachedEmailCreateManyContractInputEnvelope
|
|
set?: CachedEmailWhereUniqueInput | CachedEmailWhereUniqueInput[]
|
|
disconnect?: CachedEmailWhereUniqueInput | CachedEmailWhereUniqueInput[]
|
|
delete?: CachedEmailWhereUniqueInput | CachedEmailWhereUniqueInput[]
|
|
connect?: CachedEmailWhereUniqueInput | CachedEmailWhereUniqueInput[]
|
|
update?: CachedEmailUpdateWithWhereUniqueWithoutContractInput | CachedEmailUpdateWithWhereUniqueWithoutContractInput[]
|
|
updateMany?: CachedEmailUpdateManyWithWhereWithoutContractInput | CachedEmailUpdateManyWithWhereWithoutContractInput[]
|
|
deleteMany?: CachedEmailScalarWhereInput | CachedEmailScalarWhereInput[]
|
|
}
|
|
|
|
export type ContractUncheckedUpdateOneWithoutPreviousContractNestedInput = {
|
|
create?: XOR<ContractCreateWithoutPreviousContractInput, ContractUncheckedCreateWithoutPreviousContractInput>
|
|
connectOrCreate?: ContractCreateOrConnectWithoutPreviousContractInput
|
|
upsert?: ContractUpsertWithoutPreviousContractInput
|
|
disconnect?: ContractWhereInput | boolean
|
|
delete?: ContractWhereInput | boolean
|
|
connect?: ContractWhereUniqueInput
|
|
update?: XOR<XOR<ContractUpdateToOneWithWhereWithoutPreviousContractInput, ContractUpdateWithoutPreviousContractInput>, ContractUncheckedUpdateWithoutPreviousContractInput>
|
|
}
|
|
|
|
export type EnergyContractDetailsUncheckedUpdateOneWithoutContractNestedInput = {
|
|
create?: XOR<EnergyContractDetailsCreateWithoutContractInput, EnergyContractDetailsUncheckedCreateWithoutContractInput>
|
|
connectOrCreate?: EnergyContractDetailsCreateOrConnectWithoutContractInput
|
|
upsert?: EnergyContractDetailsUpsertWithoutContractInput
|
|
disconnect?: EnergyContractDetailsWhereInput | boolean
|
|
delete?: EnergyContractDetailsWhereInput | boolean
|
|
connect?: EnergyContractDetailsWhereUniqueInput
|
|
update?: XOR<XOR<EnergyContractDetailsUpdateToOneWithWhereWithoutContractInput, EnergyContractDetailsUpdateWithoutContractInput>, EnergyContractDetailsUncheckedUpdateWithoutContractInput>
|
|
}
|
|
|
|
export type InternetContractDetailsUncheckedUpdateOneWithoutContractNestedInput = {
|
|
create?: XOR<InternetContractDetailsCreateWithoutContractInput, InternetContractDetailsUncheckedCreateWithoutContractInput>
|
|
connectOrCreate?: InternetContractDetailsCreateOrConnectWithoutContractInput
|
|
upsert?: InternetContractDetailsUpsertWithoutContractInput
|
|
disconnect?: InternetContractDetailsWhereInput | boolean
|
|
delete?: InternetContractDetailsWhereInput | boolean
|
|
connect?: InternetContractDetailsWhereUniqueInput
|
|
update?: XOR<XOR<InternetContractDetailsUpdateToOneWithWhereWithoutContractInput, InternetContractDetailsUpdateWithoutContractInput>, InternetContractDetailsUncheckedUpdateWithoutContractInput>
|
|
}
|
|
|
|
export type MobileContractDetailsUncheckedUpdateOneWithoutContractNestedInput = {
|
|
create?: XOR<MobileContractDetailsCreateWithoutContractInput, MobileContractDetailsUncheckedCreateWithoutContractInput>
|
|
connectOrCreate?: MobileContractDetailsCreateOrConnectWithoutContractInput
|
|
upsert?: MobileContractDetailsUpsertWithoutContractInput
|
|
disconnect?: MobileContractDetailsWhereInput | boolean
|
|
delete?: MobileContractDetailsWhereInput | boolean
|
|
connect?: MobileContractDetailsWhereUniqueInput
|
|
update?: XOR<XOR<MobileContractDetailsUpdateToOneWithWhereWithoutContractInput, MobileContractDetailsUpdateWithoutContractInput>, MobileContractDetailsUncheckedUpdateWithoutContractInput>
|
|
}
|
|
|
|
export type TvContractDetailsUncheckedUpdateOneWithoutContractNestedInput = {
|
|
create?: XOR<TvContractDetailsCreateWithoutContractInput, TvContractDetailsUncheckedCreateWithoutContractInput>
|
|
connectOrCreate?: TvContractDetailsCreateOrConnectWithoutContractInput
|
|
upsert?: TvContractDetailsUpsertWithoutContractInput
|
|
disconnect?: TvContractDetailsWhereInput | boolean
|
|
delete?: TvContractDetailsWhereInput | boolean
|
|
connect?: TvContractDetailsWhereUniqueInput
|
|
update?: XOR<XOR<TvContractDetailsUpdateToOneWithWhereWithoutContractInput, TvContractDetailsUpdateWithoutContractInput>, TvContractDetailsUncheckedUpdateWithoutContractInput>
|
|
}
|
|
|
|
export type CarInsuranceDetailsUncheckedUpdateOneWithoutContractNestedInput = {
|
|
create?: XOR<CarInsuranceDetailsCreateWithoutContractInput, CarInsuranceDetailsUncheckedCreateWithoutContractInput>
|
|
connectOrCreate?: CarInsuranceDetailsCreateOrConnectWithoutContractInput
|
|
upsert?: CarInsuranceDetailsUpsertWithoutContractInput
|
|
disconnect?: CarInsuranceDetailsWhereInput | boolean
|
|
delete?: CarInsuranceDetailsWhereInput | boolean
|
|
connect?: CarInsuranceDetailsWhereUniqueInput
|
|
update?: XOR<XOR<CarInsuranceDetailsUpdateToOneWithWhereWithoutContractInput, CarInsuranceDetailsUpdateWithoutContractInput>, CarInsuranceDetailsUncheckedUpdateWithoutContractInput>
|
|
}
|
|
|
|
export type ContractTaskUncheckedUpdateManyWithoutContractNestedInput = {
|
|
create?: XOR<ContractTaskCreateWithoutContractInput, ContractTaskUncheckedCreateWithoutContractInput> | ContractTaskCreateWithoutContractInput[] | ContractTaskUncheckedCreateWithoutContractInput[]
|
|
connectOrCreate?: ContractTaskCreateOrConnectWithoutContractInput | ContractTaskCreateOrConnectWithoutContractInput[]
|
|
upsert?: ContractTaskUpsertWithWhereUniqueWithoutContractInput | ContractTaskUpsertWithWhereUniqueWithoutContractInput[]
|
|
createMany?: ContractTaskCreateManyContractInputEnvelope
|
|
set?: ContractTaskWhereUniqueInput | ContractTaskWhereUniqueInput[]
|
|
disconnect?: ContractTaskWhereUniqueInput | ContractTaskWhereUniqueInput[]
|
|
delete?: ContractTaskWhereUniqueInput | ContractTaskWhereUniqueInput[]
|
|
connect?: ContractTaskWhereUniqueInput | ContractTaskWhereUniqueInput[]
|
|
update?: ContractTaskUpdateWithWhereUniqueWithoutContractInput | ContractTaskUpdateWithWhereUniqueWithoutContractInput[]
|
|
updateMany?: ContractTaskUpdateManyWithWhereWithoutContractInput | ContractTaskUpdateManyWithWhereWithoutContractInput[]
|
|
deleteMany?: ContractTaskScalarWhereInput | ContractTaskScalarWhereInput[]
|
|
}
|
|
|
|
export type CachedEmailUncheckedUpdateManyWithoutContractNestedInput = {
|
|
create?: XOR<CachedEmailCreateWithoutContractInput, CachedEmailUncheckedCreateWithoutContractInput> | CachedEmailCreateWithoutContractInput[] | CachedEmailUncheckedCreateWithoutContractInput[]
|
|
connectOrCreate?: CachedEmailCreateOrConnectWithoutContractInput | CachedEmailCreateOrConnectWithoutContractInput[]
|
|
upsert?: CachedEmailUpsertWithWhereUniqueWithoutContractInput | CachedEmailUpsertWithWhereUniqueWithoutContractInput[]
|
|
createMany?: CachedEmailCreateManyContractInputEnvelope
|
|
set?: CachedEmailWhereUniqueInput | CachedEmailWhereUniqueInput[]
|
|
disconnect?: CachedEmailWhereUniqueInput | CachedEmailWhereUniqueInput[]
|
|
delete?: CachedEmailWhereUniqueInput | CachedEmailWhereUniqueInput[]
|
|
connect?: CachedEmailWhereUniqueInput | CachedEmailWhereUniqueInput[]
|
|
update?: CachedEmailUpdateWithWhereUniqueWithoutContractInput | CachedEmailUpdateWithWhereUniqueWithoutContractInput[]
|
|
updateMany?: CachedEmailUpdateManyWithWhereWithoutContractInput | CachedEmailUpdateManyWithWhereWithoutContractInput[]
|
|
deleteMany?: CachedEmailScalarWhereInput | CachedEmailScalarWhereInput[]
|
|
}
|
|
|
|
export type ContractCreateNestedOneWithoutTasksInput = {
|
|
create?: XOR<ContractCreateWithoutTasksInput, ContractUncheckedCreateWithoutTasksInput>
|
|
connectOrCreate?: ContractCreateOrConnectWithoutTasksInput
|
|
connect?: ContractWhereUniqueInput
|
|
}
|
|
|
|
export type ContractTaskSubtaskCreateNestedManyWithoutTaskInput = {
|
|
create?: XOR<ContractTaskSubtaskCreateWithoutTaskInput, ContractTaskSubtaskUncheckedCreateWithoutTaskInput> | ContractTaskSubtaskCreateWithoutTaskInput[] | ContractTaskSubtaskUncheckedCreateWithoutTaskInput[]
|
|
connectOrCreate?: ContractTaskSubtaskCreateOrConnectWithoutTaskInput | ContractTaskSubtaskCreateOrConnectWithoutTaskInput[]
|
|
createMany?: ContractTaskSubtaskCreateManyTaskInputEnvelope
|
|
connect?: ContractTaskSubtaskWhereUniqueInput | ContractTaskSubtaskWhereUniqueInput[]
|
|
}
|
|
|
|
export type ContractTaskSubtaskUncheckedCreateNestedManyWithoutTaskInput = {
|
|
create?: XOR<ContractTaskSubtaskCreateWithoutTaskInput, ContractTaskSubtaskUncheckedCreateWithoutTaskInput> | ContractTaskSubtaskCreateWithoutTaskInput[] | ContractTaskSubtaskUncheckedCreateWithoutTaskInput[]
|
|
connectOrCreate?: ContractTaskSubtaskCreateOrConnectWithoutTaskInput | ContractTaskSubtaskCreateOrConnectWithoutTaskInput[]
|
|
createMany?: ContractTaskSubtaskCreateManyTaskInputEnvelope
|
|
connect?: ContractTaskSubtaskWhereUniqueInput | ContractTaskSubtaskWhereUniqueInput[]
|
|
}
|
|
|
|
export type EnumContractTaskStatusFieldUpdateOperationsInput = {
|
|
set?: $Enums.ContractTaskStatus
|
|
}
|
|
|
|
export type ContractUpdateOneRequiredWithoutTasksNestedInput = {
|
|
create?: XOR<ContractCreateWithoutTasksInput, ContractUncheckedCreateWithoutTasksInput>
|
|
connectOrCreate?: ContractCreateOrConnectWithoutTasksInput
|
|
upsert?: ContractUpsertWithoutTasksInput
|
|
connect?: ContractWhereUniqueInput
|
|
update?: XOR<XOR<ContractUpdateToOneWithWhereWithoutTasksInput, ContractUpdateWithoutTasksInput>, ContractUncheckedUpdateWithoutTasksInput>
|
|
}
|
|
|
|
export type ContractTaskSubtaskUpdateManyWithoutTaskNestedInput = {
|
|
create?: XOR<ContractTaskSubtaskCreateWithoutTaskInput, ContractTaskSubtaskUncheckedCreateWithoutTaskInput> | ContractTaskSubtaskCreateWithoutTaskInput[] | ContractTaskSubtaskUncheckedCreateWithoutTaskInput[]
|
|
connectOrCreate?: ContractTaskSubtaskCreateOrConnectWithoutTaskInput | ContractTaskSubtaskCreateOrConnectWithoutTaskInput[]
|
|
upsert?: ContractTaskSubtaskUpsertWithWhereUniqueWithoutTaskInput | ContractTaskSubtaskUpsertWithWhereUniqueWithoutTaskInput[]
|
|
createMany?: ContractTaskSubtaskCreateManyTaskInputEnvelope
|
|
set?: ContractTaskSubtaskWhereUniqueInput | ContractTaskSubtaskWhereUniqueInput[]
|
|
disconnect?: ContractTaskSubtaskWhereUniqueInput | ContractTaskSubtaskWhereUniqueInput[]
|
|
delete?: ContractTaskSubtaskWhereUniqueInput | ContractTaskSubtaskWhereUniqueInput[]
|
|
connect?: ContractTaskSubtaskWhereUniqueInput | ContractTaskSubtaskWhereUniqueInput[]
|
|
update?: ContractTaskSubtaskUpdateWithWhereUniqueWithoutTaskInput | ContractTaskSubtaskUpdateWithWhereUniqueWithoutTaskInput[]
|
|
updateMany?: ContractTaskSubtaskUpdateManyWithWhereWithoutTaskInput | ContractTaskSubtaskUpdateManyWithWhereWithoutTaskInput[]
|
|
deleteMany?: ContractTaskSubtaskScalarWhereInput | ContractTaskSubtaskScalarWhereInput[]
|
|
}
|
|
|
|
export type ContractTaskSubtaskUncheckedUpdateManyWithoutTaskNestedInput = {
|
|
create?: XOR<ContractTaskSubtaskCreateWithoutTaskInput, ContractTaskSubtaskUncheckedCreateWithoutTaskInput> | ContractTaskSubtaskCreateWithoutTaskInput[] | ContractTaskSubtaskUncheckedCreateWithoutTaskInput[]
|
|
connectOrCreate?: ContractTaskSubtaskCreateOrConnectWithoutTaskInput | ContractTaskSubtaskCreateOrConnectWithoutTaskInput[]
|
|
upsert?: ContractTaskSubtaskUpsertWithWhereUniqueWithoutTaskInput | ContractTaskSubtaskUpsertWithWhereUniqueWithoutTaskInput[]
|
|
createMany?: ContractTaskSubtaskCreateManyTaskInputEnvelope
|
|
set?: ContractTaskSubtaskWhereUniqueInput | ContractTaskSubtaskWhereUniqueInput[]
|
|
disconnect?: ContractTaskSubtaskWhereUniqueInput | ContractTaskSubtaskWhereUniqueInput[]
|
|
delete?: ContractTaskSubtaskWhereUniqueInput | ContractTaskSubtaskWhereUniqueInput[]
|
|
connect?: ContractTaskSubtaskWhereUniqueInput | ContractTaskSubtaskWhereUniqueInput[]
|
|
update?: ContractTaskSubtaskUpdateWithWhereUniqueWithoutTaskInput | ContractTaskSubtaskUpdateWithWhereUniqueWithoutTaskInput[]
|
|
updateMany?: ContractTaskSubtaskUpdateManyWithWhereWithoutTaskInput | ContractTaskSubtaskUpdateManyWithWhereWithoutTaskInput[]
|
|
deleteMany?: ContractTaskSubtaskScalarWhereInput | ContractTaskSubtaskScalarWhereInput[]
|
|
}
|
|
|
|
export type ContractTaskCreateNestedOneWithoutSubtasksInput = {
|
|
create?: XOR<ContractTaskCreateWithoutSubtasksInput, ContractTaskUncheckedCreateWithoutSubtasksInput>
|
|
connectOrCreate?: ContractTaskCreateOrConnectWithoutSubtasksInput
|
|
connect?: ContractTaskWhereUniqueInput
|
|
}
|
|
|
|
export type ContractTaskUpdateOneRequiredWithoutSubtasksNestedInput = {
|
|
create?: XOR<ContractTaskCreateWithoutSubtasksInput, ContractTaskUncheckedCreateWithoutSubtasksInput>
|
|
connectOrCreate?: ContractTaskCreateOrConnectWithoutSubtasksInput
|
|
upsert?: ContractTaskUpsertWithoutSubtasksInput
|
|
connect?: ContractTaskWhereUniqueInput
|
|
update?: XOR<XOR<ContractTaskUpdateToOneWithWhereWithoutSubtasksInput, ContractTaskUpdateWithoutSubtasksInput>, ContractTaskUncheckedUpdateWithoutSubtasksInput>
|
|
}
|
|
|
|
export type ContractCreateNestedOneWithoutEnergyDetailsInput = {
|
|
create?: XOR<ContractCreateWithoutEnergyDetailsInput, ContractUncheckedCreateWithoutEnergyDetailsInput>
|
|
connectOrCreate?: ContractCreateOrConnectWithoutEnergyDetailsInput
|
|
connect?: ContractWhereUniqueInput
|
|
}
|
|
|
|
export type MeterCreateNestedOneWithoutEnergyDetailsInput = {
|
|
create?: XOR<MeterCreateWithoutEnergyDetailsInput, MeterUncheckedCreateWithoutEnergyDetailsInput>
|
|
connectOrCreate?: MeterCreateOrConnectWithoutEnergyDetailsInput
|
|
connect?: MeterWhereUniqueInput
|
|
}
|
|
|
|
export type ContractUpdateOneRequiredWithoutEnergyDetailsNestedInput = {
|
|
create?: XOR<ContractCreateWithoutEnergyDetailsInput, ContractUncheckedCreateWithoutEnergyDetailsInput>
|
|
connectOrCreate?: ContractCreateOrConnectWithoutEnergyDetailsInput
|
|
upsert?: ContractUpsertWithoutEnergyDetailsInput
|
|
connect?: ContractWhereUniqueInput
|
|
update?: XOR<XOR<ContractUpdateToOneWithWhereWithoutEnergyDetailsInput, ContractUpdateWithoutEnergyDetailsInput>, ContractUncheckedUpdateWithoutEnergyDetailsInput>
|
|
}
|
|
|
|
export type MeterUpdateOneWithoutEnergyDetailsNestedInput = {
|
|
create?: XOR<MeterCreateWithoutEnergyDetailsInput, MeterUncheckedCreateWithoutEnergyDetailsInput>
|
|
connectOrCreate?: MeterCreateOrConnectWithoutEnergyDetailsInput
|
|
upsert?: MeterUpsertWithoutEnergyDetailsInput
|
|
disconnect?: MeterWhereInput | boolean
|
|
delete?: MeterWhereInput | boolean
|
|
connect?: MeterWhereUniqueInput
|
|
update?: XOR<XOR<MeterUpdateToOneWithWhereWithoutEnergyDetailsInput, MeterUpdateWithoutEnergyDetailsInput>, MeterUncheckedUpdateWithoutEnergyDetailsInput>
|
|
}
|
|
|
|
export type ContractCreateNestedOneWithoutInternetDetailsInput = {
|
|
create?: XOR<ContractCreateWithoutInternetDetailsInput, ContractUncheckedCreateWithoutInternetDetailsInput>
|
|
connectOrCreate?: ContractCreateOrConnectWithoutInternetDetailsInput
|
|
connect?: ContractWhereUniqueInput
|
|
}
|
|
|
|
export type PhoneNumberCreateNestedManyWithoutInternetDetailsInput = {
|
|
create?: XOR<PhoneNumberCreateWithoutInternetDetailsInput, PhoneNumberUncheckedCreateWithoutInternetDetailsInput> | PhoneNumberCreateWithoutInternetDetailsInput[] | PhoneNumberUncheckedCreateWithoutInternetDetailsInput[]
|
|
connectOrCreate?: PhoneNumberCreateOrConnectWithoutInternetDetailsInput | PhoneNumberCreateOrConnectWithoutInternetDetailsInput[]
|
|
createMany?: PhoneNumberCreateManyInternetDetailsInputEnvelope
|
|
connect?: PhoneNumberWhereUniqueInput | PhoneNumberWhereUniqueInput[]
|
|
}
|
|
|
|
export type PhoneNumberUncheckedCreateNestedManyWithoutInternetDetailsInput = {
|
|
create?: XOR<PhoneNumberCreateWithoutInternetDetailsInput, PhoneNumberUncheckedCreateWithoutInternetDetailsInput> | PhoneNumberCreateWithoutInternetDetailsInput[] | PhoneNumberUncheckedCreateWithoutInternetDetailsInput[]
|
|
connectOrCreate?: PhoneNumberCreateOrConnectWithoutInternetDetailsInput | PhoneNumberCreateOrConnectWithoutInternetDetailsInput[]
|
|
createMany?: PhoneNumberCreateManyInternetDetailsInputEnvelope
|
|
connect?: PhoneNumberWhereUniqueInput | PhoneNumberWhereUniqueInput[]
|
|
}
|
|
|
|
export type ContractUpdateOneRequiredWithoutInternetDetailsNestedInput = {
|
|
create?: XOR<ContractCreateWithoutInternetDetailsInput, ContractUncheckedCreateWithoutInternetDetailsInput>
|
|
connectOrCreate?: ContractCreateOrConnectWithoutInternetDetailsInput
|
|
upsert?: ContractUpsertWithoutInternetDetailsInput
|
|
connect?: ContractWhereUniqueInput
|
|
update?: XOR<XOR<ContractUpdateToOneWithWhereWithoutInternetDetailsInput, ContractUpdateWithoutInternetDetailsInput>, ContractUncheckedUpdateWithoutInternetDetailsInput>
|
|
}
|
|
|
|
export type PhoneNumberUpdateManyWithoutInternetDetailsNestedInput = {
|
|
create?: XOR<PhoneNumberCreateWithoutInternetDetailsInput, PhoneNumberUncheckedCreateWithoutInternetDetailsInput> | PhoneNumberCreateWithoutInternetDetailsInput[] | PhoneNumberUncheckedCreateWithoutInternetDetailsInput[]
|
|
connectOrCreate?: PhoneNumberCreateOrConnectWithoutInternetDetailsInput | PhoneNumberCreateOrConnectWithoutInternetDetailsInput[]
|
|
upsert?: PhoneNumberUpsertWithWhereUniqueWithoutInternetDetailsInput | PhoneNumberUpsertWithWhereUniqueWithoutInternetDetailsInput[]
|
|
createMany?: PhoneNumberCreateManyInternetDetailsInputEnvelope
|
|
set?: PhoneNumberWhereUniqueInput | PhoneNumberWhereUniqueInput[]
|
|
disconnect?: PhoneNumberWhereUniqueInput | PhoneNumberWhereUniqueInput[]
|
|
delete?: PhoneNumberWhereUniqueInput | PhoneNumberWhereUniqueInput[]
|
|
connect?: PhoneNumberWhereUniqueInput | PhoneNumberWhereUniqueInput[]
|
|
update?: PhoneNumberUpdateWithWhereUniqueWithoutInternetDetailsInput | PhoneNumberUpdateWithWhereUniqueWithoutInternetDetailsInput[]
|
|
updateMany?: PhoneNumberUpdateManyWithWhereWithoutInternetDetailsInput | PhoneNumberUpdateManyWithWhereWithoutInternetDetailsInput[]
|
|
deleteMany?: PhoneNumberScalarWhereInput | PhoneNumberScalarWhereInput[]
|
|
}
|
|
|
|
export type PhoneNumberUncheckedUpdateManyWithoutInternetDetailsNestedInput = {
|
|
create?: XOR<PhoneNumberCreateWithoutInternetDetailsInput, PhoneNumberUncheckedCreateWithoutInternetDetailsInput> | PhoneNumberCreateWithoutInternetDetailsInput[] | PhoneNumberUncheckedCreateWithoutInternetDetailsInput[]
|
|
connectOrCreate?: PhoneNumberCreateOrConnectWithoutInternetDetailsInput | PhoneNumberCreateOrConnectWithoutInternetDetailsInput[]
|
|
upsert?: PhoneNumberUpsertWithWhereUniqueWithoutInternetDetailsInput | PhoneNumberUpsertWithWhereUniqueWithoutInternetDetailsInput[]
|
|
createMany?: PhoneNumberCreateManyInternetDetailsInputEnvelope
|
|
set?: PhoneNumberWhereUniqueInput | PhoneNumberWhereUniqueInput[]
|
|
disconnect?: PhoneNumberWhereUniqueInput | PhoneNumberWhereUniqueInput[]
|
|
delete?: PhoneNumberWhereUniqueInput | PhoneNumberWhereUniqueInput[]
|
|
connect?: PhoneNumberWhereUniqueInput | PhoneNumberWhereUniqueInput[]
|
|
update?: PhoneNumberUpdateWithWhereUniqueWithoutInternetDetailsInput | PhoneNumberUpdateWithWhereUniqueWithoutInternetDetailsInput[]
|
|
updateMany?: PhoneNumberUpdateManyWithWhereWithoutInternetDetailsInput | PhoneNumberUpdateManyWithWhereWithoutInternetDetailsInput[]
|
|
deleteMany?: PhoneNumberScalarWhereInput | PhoneNumberScalarWhereInput[]
|
|
}
|
|
|
|
export type InternetContractDetailsCreateNestedOneWithoutPhoneNumbersInput = {
|
|
create?: XOR<InternetContractDetailsCreateWithoutPhoneNumbersInput, InternetContractDetailsUncheckedCreateWithoutPhoneNumbersInput>
|
|
connectOrCreate?: InternetContractDetailsCreateOrConnectWithoutPhoneNumbersInput
|
|
connect?: InternetContractDetailsWhereUniqueInput
|
|
}
|
|
|
|
export type InternetContractDetailsUpdateOneRequiredWithoutPhoneNumbersNestedInput = {
|
|
create?: XOR<InternetContractDetailsCreateWithoutPhoneNumbersInput, InternetContractDetailsUncheckedCreateWithoutPhoneNumbersInput>
|
|
connectOrCreate?: InternetContractDetailsCreateOrConnectWithoutPhoneNumbersInput
|
|
upsert?: InternetContractDetailsUpsertWithoutPhoneNumbersInput
|
|
connect?: InternetContractDetailsWhereUniqueInput
|
|
update?: XOR<XOR<InternetContractDetailsUpdateToOneWithWhereWithoutPhoneNumbersInput, InternetContractDetailsUpdateWithoutPhoneNumbersInput>, InternetContractDetailsUncheckedUpdateWithoutPhoneNumbersInput>
|
|
}
|
|
|
|
export type ContractCreateNestedOneWithoutMobileDetailsInput = {
|
|
create?: XOR<ContractCreateWithoutMobileDetailsInput, ContractUncheckedCreateWithoutMobileDetailsInput>
|
|
connectOrCreate?: ContractCreateOrConnectWithoutMobileDetailsInput
|
|
connect?: ContractWhereUniqueInput
|
|
}
|
|
|
|
export type SimCardCreateNestedManyWithoutMobileDetailsInput = {
|
|
create?: XOR<SimCardCreateWithoutMobileDetailsInput, SimCardUncheckedCreateWithoutMobileDetailsInput> | SimCardCreateWithoutMobileDetailsInput[] | SimCardUncheckedCreateWithoutMobileDetailsInput[]
|
|
connectOrCreate?: SimCardCreateOrConnectWithoutMobileDetailsInput | SimCardCreateOrConnectWithoutMobileDetailsInput[]
|
|
createMany?: SimCardCreateManyMobileDetailsInputEnvelope
|
|
connect?: SimCardWhereUniqueInput | SimCardWhereUniqueInput[]
|
|
}
|
|
|
|
export type SimCardUncheckedCreateNestedManyWithoutMobileDetailsInput = {
|
|
create?: XOR<SimCardCreateWithoutMobileDetailsInput, SimCardUncheckedCreateWithoutMobileDetailsInput> | SimCardCreateWithoutMobileDetailsInput[] | SimCardUncheckedCreateWithoutMobileDetailsInput[]
|
|
connectOrCreate?: SimCardCreateOrConnectWithoutMobileDetailsInput | SimCardCreateOrConnectWithoutMobileDetailsInput[]
|
|
createMany?: SimCardCreateManyMobileDetailsInputEnvelope
|
|
connect?: SimCardWhereUniqueInput | SimCardWhereUniqueInput[]
|
|
}
|
|
|
|
export type ContractUpdateOneRequiredWithoutMobileDetailsNestedInput = {
|
|
create?: XOR<ContractCreateWithoutMobileDetailsInput, ContractUncheckedCreateWithoutMobileDetailsInput>
|
|
connectOrCreate?: ContractCreateOrConnectWithoutMobileDetailsInput
|
|
upsert?: ContractUpsertWithoutMobileDetailsInput
|
|
connect?: ContractWhereUniqueInput
|
|
update?: XOR<XOR<ContractUpdateToOneWithWhereWithoutMobileDetailsInput, ContractUpdateWithoutMobileDetailsInput>, ContractUncheckedUpdateWithoutMobileDetailsInput>
|
|
}
|
|
|
|
export type SimCardUpdateManyWithoutMobileDetailsNestedInput = {
|
|
create?: XOR<SimCardCreateWithoutMobileDetailsInput, SimCardUncheckedCreateWithoutMobileDetailsInput> | SimCardCreateWithoutMobileDetailsInput[] | SimCardUncheckedCreateWithoutMobileDetailsInput[]
|
|
connectOrCreate?: SimCardCreateOrConnectWithoutMobileDetailsInput | SimCardCreateOrConnectWithoutMobileDetailsInput[]
|
|
upsert?: SimCardUpsertWithWhereUniqueWithoutMobileDetailsInput | SimCardUpsertWithWhereUniqueWithoutMobileDetailsInput[]
|
|
createMany?: SimCardCreateManyMobileDetailsInputEnvelope
|
|
set?: SimCardWhereUniqueInput | SimCardWhereUniqueInput[]
|
|
disconnect?: SimCardWhereUniqueInput | SimCardWhereUniqueInput[]
|
|
delete?: SimCardWhereUniqueInput | SimCardWhereUniqueInput[]
|
|
connect?: SimCardWhereUniqueInput | SimCardWhereUniqueInput[]
|
|
update?: SimCardUpdateWithWhereUniqueWithoutMobileDetailsInput | SimCardUpdateWithWhereUniqueWithoutMobileDetailsInput[]
|
|
updateMany?: SimCardUpdateManyWithWhereWithoutMobileDetailsInput | SimCardUpdateManyWithWhereWithoutMobileDetailsInput[]
|
|
deleteMany?: SimCardScalarWhereInput | SimCardScalarWhereInput[]
|
|
}
|
|
|
|
export type SimCardUncheckedUpdateManyWithoutMobileDetailsNestedInput = {
|
|
create?: XOR<SimCardCreateWithoutMobileDetailsInput, SimCardUncheckedCreateWithoutMobileDetailsInput> | SimCardCreateWithoutMobileDetailsInput[] | SimCardUncheckedCreateWithoutMobileDetailsInput[]
|
|
connectOrCreate?: SimCardCreateOrConnectWithoutMobileDetailsInput | SimCardCreateOrConnectWithoutMobileDetailsInput[]
|
|
upsert?: SimCardUpsertWithWhereUniqueWithoutMobileDetailsInput | SimCardUpsertWithWhereUniqueWithoutMobileDetailsInput[]
|
|
createMany?: SimCardCreateManyMobileDetailsInputEnvelope
|
|
set?: SimCardWhereUniqueInput | SimCardWhereUniqueInput[]
|
|
disconnect?: SimCardWhereUniqueInput | SimCardWhereUniqueInput[]
|
|
delete?: SimCardWhereUniqueInput | SimCardWhereUniqueInput[]
|
|
connect?: SimCardWhereUniqueInput | SimCardWhereUniqueInput[]
|
|
update?: SimCardUpdateWithWhereUniqueWithoutMobileDetailsInput | SimCardUpdateWithWhereUniqueWithoutMobileDetailsInput[]
|
|
updateMany?: SimCardUpdateManyWithWhereWithoutMobileDetailsInput | SimCardUpdateManyWithWhereWithoutMobileDetailsInput[]
|
|
deleteMany?: SimCardScalarWhereInput | SimCardScalarWhereInput[]
|
|
}
|
|
|
|
export type MobileContractDetailsCreateNestedOneWithoutSimCardsInput = {
|
|
create?: XOR<MobileContractDetailsCreateWithoutSimCardsInput, MobileContractDetailsUncheckedCreateWithoutSimCardsInput>
|
|
connectOrCreate?: MobileContractDetailsCreateOrConnectWithoutSimCardsInput
|
|
connect?: MobileContractDetailsWhereUniqueInput
|
|
}
|
|
|
|
export type MobileContractDetailsUpdateOneRequiredWithoutSimCardsNestedInput = {
|
|
create?: XOR<MobileContractDetailsCreateWithoutSimCardsInput, MobileContractDetailsUncheckedCreateWithoutSimCardsInput>
|
|
connectOrCreate?: MobileContractDetailsCreateOrConnectWithoutSimCardsInput
|
|
upsert?: MobileContractDetailsUpsertWithoutSimCardsInput
|
|
connect?: MobileContractDetailsWhereUniqueInput
|
|
update?: XOR<XOR<MobileContractDetailsUpdateToOneWithWhereWithoutSimCardsInput, MobileContractDetailsUpdateWithoutSimCardsInput>, MobileContractDetailsUncheckedUpdateWithoutSimCardsInput>
|
|
}
|
|
|
|
export type ContractCreateNestedOneWithoutTvDetailsInput = {
|
|
create?: XOR<ContractCreateWithoutTvDetailsInput, ContractUncheckedCreateWithoutTvDetailsInput>
|
|
connectOrCreate?: ContractCreateOrConnectWithoutTvDetailsInput
|
|
connect?: ContractWhereUniqueInput
|
|
}
|
|
|
|
export type ContractUpdateOneRequiredWithoutTvDetailsNestedInput = {
|
|
create?: XOR<ContractCreateWithoutTvDetailsInput, ContractUncheckedCreateWithoutTvDetailsInput>
|
|
connectOrCreate?: ContractCreateOrConnectWithoutTvDetailsInput
|
|
upsert?: ContractUpsertWithoutTvDetailsInput
|
|
connect?: ContractWhereUniqueInput
|
|
update?: XOR<XOR<ContractUpdateToOneWithWhereWithoutTvDetailsInput, ContractUpdateWithoutTvDetailsInput>, ContractUncheckedUpdateWithoutTvDetailsInput>
|
|
}
|
|
|
|
export type ContractCreateNestedOneWithoutCarInsuranceDetailsInput = {
|
|
create?: XOR<ContractCreateWithoutCarInsuranceDetailsInput, ContractUncheckedCreateWithoutCarInsuranceDetailsInput>
|
|
connectOrCreate?: ContractCreateOrConnectWithoutCarInsuranceDetailsInput
|
|
connect?: ContractWhereUniqueInput
|
|
}
|
|
|
|
export type EnumInsuranceTypeFieldUpdateOperationsInput = {
|
|
set?: $Enums.InsuranceType
|
|
}
|
|
|
|
export type ContractUpdateOneRequiredWithoutCarInsuranceDetailsNestedInput = {
|
|
create?: XOR<ContractCreateWithoutCarInsuranceDetailsInput, ContractUncheckedCreateWithoutCarInsuranceDetailsInput>
|
|
connectOrCreate?: ContractCreateOrConnectWithoutCarInsuranceDetailsInput
|
|
upsert?: ContractUpsertWithoutCarInsuranceDetailsInput
|
|
connect?: ContractWhereUniqueInput
|
|
update?: XOR<XOR<ContractUpdateToOneWithWhereWithoutCarInsuranceDetailsInput, ContractUpdateWithoutCarInsuranceDetailsInput>, ContractUncheckedUpdateWithoutCarInsuranceDetailsInput>
|
|
}
|
|
|
|
export type NestedIntFilter<$PrismaModel = never> = {
|
|
equals?: number | IntFieldRefInput<$PrismaModel>
|
|
in?: number[]
|
|
notIn?: number[]
|
|
lt?: number | IntFieldRefInput<$PrismaModel>
|
|
lte?: number | IntFieldRefInput<$PrismaModel>
|
|
gt?: number | IntFieldRefInput<$PrismaModel>
|
|
gte?: number | IntFieldRefInput<$PrismaModel>
|
|
not?: NestedIntFilter<$PrismaModel> | number
|
|
}
|
|
|
|
export type NestedStringFilter<$PrismaModel = never> = {
|
|
equals?: string | StringFieldRefInput<$PrismaModel>
|
|
in?: string[]
|
|
notIn?: string[]
|
|
lt?: string | StringFieldRefInput<$PrismaModel>
|
|
lte?: string | StringFieldRefInput<$PrismaModel>
|
|
gt?: string | StringFieldRefInput<$PrismaModel>
|
|
gte?: string | StringFieldRefInput<$PrismaModel>
|
|
contains?: string | StringFieldRefInput<$PrismaModel>
|
|
startsWith?: string | StringFieldRefInput<$PrismaModel>
|
|
endsWith?: string | StringFieldRefInput<$PrismaModel>
|
|
not?: NestedStringFilter<$PrismaModel> | string
|
|
}
|
|
|
|
export type NestedDateTimeFilter<$PrismaModel = never> = {
|
|
equals?: Date | string | DateTimeFieldRefInput<$PrismaModel>
|
|
in?: Date[] | string[]
|
|
notIn?: Date[] | string[]
|
|
lt?: Date | string | DateTimeFieldRefInput<$PrismaModel>
|
|
lte?: Date | string | DateTimeFieldRefInput<$PrismaModel>
|
|
gt?: Date | string | DateTimeFieldRefInput<$PrismaModel>
|
|
gte?: Date | string | DateTimeFieldRefInput<$PrismaModel>
|
|
not?: NestedDateTimeFilter<$PrismaModel> | Date | string
|
|
}
|
|
|
|
export type NestedIntWithAggregatesFilter<$PrismaModel = never> = {
|
|
equals?: number | IntFieldRefInput<$PrismaModel>
|
|
in?: number[]
|
|
notIn?: number[]
|
|
lt?: number | IntFieldRefInput<$PrismaModel>
|
|
lte?: number | IntFieldRefInput<$PrismaModel>
|
|
gt?: number | IntFieldRefInput<$PrismaModel>
|
|
gte?: number | IntFieldRefInput<$PrismaModel>
|
|
not?: NestedIntWithAggregatesFilter<$PrismaModel> | number
|
|
_count?: NestedIntFilter<$PrismaModel>
|
|
_avg?: NestedFloatFilter<$PrismaModel>
|
|
_sum?: NestedIntFilter<$PrismaModel>
|
|
_min?: NestedIntFilter<$PrismaModel>
|
|
_max?: NestedIntFilter<$PrismaModel>
|
|
}
|
|
|
|
export type NestedFloatFilter<$PrismaModel = never> = {
|
|
equals?: number | FloatFieldRefInput<$PrismaModel>
|
|
in?: number[]
|
|
notIn?: number[]
|
|
lt?: number | FloatFieldRefInput<$PrismaModel>
|
|
lte?: number | FloatFieldRefInput<$PrismaModel>
|
|
gt?: number | FloatFieldRefInput<$PrismaModel>
|
|
gte?: number | FloatFieldRefInput<$PrismaModel>
|
|
not?: NestedFloatFilter<$PrismaModel> | number
|
|
}
|
|
|
|
export type NestedStringWithAggregatesFilter<$PrismaModel = never> = {
|
|
equals?: string | StringFieldRefInput<$PrismaModel>
|
|
in?: string[]
|
|
notIn?: string[]
|
|
lt?: string | StringFieldRefInput<$PrismaModel>
|
|
lte?: string | StringFieldRefInput<$PrismaModel>
|
|
gt?: string | StringFieldRefInput<$PrismaModel>
|
|
gte?: string | StringFieldRefInput<$PrismaModel>
|
|
contains?: string | StringFieldRefInput<$PrismaModel>
|
|
startsWith?: string | StringFieldRefInput<$PrismaModel>
|
|
endsWith?: string | StringFieldRefInput<$PrismaModel>
|
|
not?: NestedStringWithAggregatesFilter<$PrismaModel> | string
|
|
_count?: NestedIntFilter<$PrismaModel>
|
|
_min?: NestedStringFilter<$PrismaModel>
|
|
_max?: NestedStringFilter<$PrismaModel>
|
|
}
|
|
|
|
export type NestedDateTimeWithAggregatesFilter<$PrismaModel = never> = {
|
|
equals?: Date | string | DateTimeFieldRefInput<$PrismaModel>
|
|
in?: Date[] | string[]
|
|
notIn?: Date[] | string[]
|
|
lt?: Date | string | DateTimeFieldRefInput<$PrismaModel>
|
|
lte?: Date | string | DateTimeFieldRefInput<$PrismaModel>
|
|
gt?: Date | string | DateTimeFieldRefInput<$PrismaModel>
|
|
gte?: Date | string | DateTimeFieldRefInput<$PrismaModel>
|
|
not?: NestedDateTimeWithAggregatesFilter<$PrismaModel> | Date | string
|
|
_count?: NestedIntFilter<$PrismaModel>
|
|
_min?: NestedDateTimeFilter<$PrismaModel>
|
|
_max?: NestedDateTimeFilter<$PrismaModel>
|
|
}
|
|
|
|
export type NestedBoolFilter<$PrismaModel = never> = {
|
|
equals?: boolean | BooleanFieldRefInput<$PrismaModel>
|
|
not?: NestedBoolFilter<$PrismaModel> | boolean
|
|
}
|
|
|
|
export type NestedDateTimeNullableFilter<$PrismaModel = never> = {
|
|
equals?: Date | string | DateTimeFieldRefInput<$PrismaModel> | null
|
|
in?: Date[] | string[] | null
|
|
notIn?: Date[] | string[] | null
|
|
lt?: Date | string | DateTimeFieldRefInput<$PrismaModel>
|
|
lte?: Date | string | DateTimeFieldRefInput<$PrismaModel>
|
|
gt?: Date | string | DateTimeFieldRefInput<$PrismaModel>
|
|
gte?: Date | string | DateTimeFieldRefInput<$PrismaModel>
|
|
not?: NestedDateTimeNullableFilter<$PrismaModel> | Date | string | null
|
|
}
|
|
|
|
export type NestedIntNullableFilter<$PrismaModel = never> = {
|
|
equals?: number | IntFieldRefInput<$PrismaModel> | null
|
|
in?: number[] | null
|
|
notIn?: number[] | null
|
|
lt?: number | IntFieldRefInput<$PrismaModel>
|
|
lte?: number | IntFieldRefInput<$PrismaModel>
|
|
gt?: number | IntFieldRefInput<$PrismaModel>
|
|
gte?: number | IntFieldRefInput<$PrismaModel>
|
|
not?: NestedIntNullableFilter<$PrismaModel> | number | null
|
|
}
|
|
|
|
export type NestedBoolWithAggregatesFilter<$PrismaModel = never> = {
|
|
equals?: boolean | BooleanFieldRefInput<$PrismaModel>
|
|
not?: NestedBoolWithAggregatesFilter<$PrismaModel> | boolean
|
|
_count?: NestedIntFilter<$PrismaModel>
|
|
_min?: NestedBoolFilter<$PrismaModel>
|
|
_max?: NestedBoolFilter<$PrismaModel>
|
|
}
|
|
|
|
export type NestedDateTimeNullableWithAggregatesFilter<$PrismaModel = never> = {
|
|
equals?: Date | string | DateTimeFieldRefInput<$PrismaModel> | null
|
|
in?: Date[] | string[] | null
|
|
notIn?: Date[] | string[] | null
|
|
lt?: Date | string | DateTimeFieldRefInput<$PrismaModel>
|
|
lte?: Date | string | DateTimeFieldRefInput<$PrismaModel>
|
|
gt?: Date | string | DateTimeFieldRefInput<$PrismaModel>
|
|
gte?: Date | string | DateTimeFieldRefInput<$PrismaModel>
|
|
not?: NestedDateTimeNullableWithAggregatesFilter<$PrismaModel> | Date | string | null
|
|
_count?: NestedIntNullableFilter<$PrismaModel>
|
|
_min?: NestedDateTimeNullableFilter<$PrismaModel>
|
|
_max?: NestedDateTimeNullableFilter<$PrismaModel>
|
|
}
|
|
|
|
export type NestedIntNullableWithAggregatesFilter<$PrismaModel = never> = {
|
|
equals?: number | IntFieldRefInput<$PrismaModel> | null
|
|
in?: number[] | null
|
|
notIn?: number[] | null
|
|
lt?: number | IntFieldRefInput<$PrismaModel>
|
|
lte?: number | IntFieldRefInput<$PrismaModel>
|
|
gt?: number | IntFieldRefInput<$PrismaModel>
|
|
gte?: number | IntFieldRefInput<$PrismaModel>
|
|
not?: NestedIntNullableWithAggregatesFilter<$PrismaModel> | number | null
|
|
_count?: NestedIntNullableFilter<$PrismaModel>
|
|
_avg?: NestedFloatNullableFilter<$PrismaModel>
|
|
_sum?: NestedIntNullableFilter<$PrismaModel>
|
|
_min?: NestedIntNullableFilter<$PrismaModel>
|
|
_max?: NestedIntNullableFilter<$PrismaModel>
|
|
}
|
|
|
|
export type NestedFloatNullableFilter<$PrismaModel = never> = {
|
|
equals?: number | FloatFieldRefInput<$PrismaModel> | null
|
|
in?: number[] | null
|
|
notIn?: number[] | null
|
|
lt?: number | FloatFieldRefInput<$PrismaModel>
|
|
lte?: number | FloatFieldRefInput<$PrismaModel>
|
|
gt?: number | FloatFieldRefInput<$PrismaModel>
|
|
gte?: number | FloatFieldRefInput<$PrismaModel>
|
|
not?: NestedFloatNullableFilter<$PrismaModel> | number | null
|
|
}
|
|
|
|
export type NestedStringNullableFilter<$PrismaModel = never> = {
|
|
equals?: string | StringFieldRefInput<$PrismaModel> | null
|
|
in?: string[] | null
|
|
notIn?: string[] | null
|
|
lt?: string | StringFieldRefInput<$PrismaModel>
|
|
lte?: string | StringFieldRefInput<$PrismaModel>
|
|
gt?: string | StringFieldRefInput<$PrismaModel>
|
|
gte?: string | StringFieldRefInput<$PrismaModel>
|
|
contains?: string | StringFieldRefInput<$PrismaModel>
|
|
startsWith?: string | StringFieldRefInput<$PrismaModel>
|
|
endsWith?: string | StringFieldRefInput<$PrismaModel>
|
|
not?: NestedStringNullableFilter<$PrismaModel> | string | null
|
|
}
|
|
|
|
export type NestedStringNullableWithAggregatesFilter<$PrismaModel = never> = {
|
|
equals?: string | StringFieldRefInput<$PrismaModel> | null
|
|
in?: string[] | null
|
|
notIn?: string[] | null
|
|
lt?: string | StringFieldRefInput<$PrismaModel>
|
|
lte?: string | StringFieldRefInput<$PrismaModel>
|
|
gt?: string | StringFieldRefInput<$PrismaModel>
|
|
gte?: string | StringFieldRefInput<$PrismaModel>
|
|
contains?: string | StringFieldRefInput<$PrismaModel>
|
|
startsWith?: string | StringFieldRefInput<$PrismaModel>
|
|
endsWith?: string | StringFieldRefInput<$PrismaModel>
|
|
not?: NestedStringNullableWithAggregatesFilter<$PrismaModel> | string | null
|
|
_count?: NestedIntNullableFilter<$PrismaModel>
|
|
_min?: NestedStringNullableFilter<$PrismaModel>
|
|
_max?: NestedStringNullableFilter<$PrismaModel>
|
|
}
|
|
|
|
export type NestedEnumCustomerTypeFilter<$PrismaModel = never> = {
|
|
equals?: $Enums.CustomerType | EnumCustomerTypeFieldRefInput<$PrismaModel>
|
|
in?: $Enums.CustomerType[]
|
|
notIn?: $Enums.CustomerType[]
|
|
not?: NestedEnumCustomerTypeFilter<$PrismaModel> | $Enums.CustomerType
|
|
}
|
|
|
|
export type NestedEnumCustomerTypeWithAggregatesFilter<$PrismaModel = never> = {
|
|
equals?: $Enums.CustomerType | EnumCustomerTypeFieldRefInput<$PrismaModel>
|
|
in?: $Enums.CustomerType[]
|
|
notIn?: $Enums.CustomerType[]
|
|
not?: NestedEnumCustomerTypeWithAggregatesFilter<$PrismaModel> | $Enums.CustomerType
|
|
_count?: NestedIntFilter<$PrismaModel>
|
|
_min?: NestedEnumCustomerTypeFilter<$PrismaModel>
|
|
_max?: NestedEnumCustomerTypeFilter<$PrismaModel>
|
|
}
|
|
|
|
export type NestedEnumAddressTypeFilter<$PrismaModel = never> = {
|
|
equals?: $Enums.AddressType | EnumAddressTypeFieldRefInput<$PrismaModel>
|
|
in?: $Enums.AddressType[]
|
|
notIn?: $Enums.AddressType[]
|
|
not?: NestedEnumAddressTypeFilter<$PrismaModel> | $Enums.AddressType
|
|
}
|
|
|
|
export type NestedEnumAddressTypeWithAggregatesFilter<$PrismaModel = never> = {
|
|
equals?: $Enums.AddressType | EnumAddressTypeFieldRefInput<$PrismaModel>
|
|
in?: $Enums.AddressType[]
|
|
notIn?: $Enums.AddressType[]
|
|
not?: NestedEnumAddressTypeWithAggregatesFilter<$PrismaModel> | $Enums.AddressType
|
|
_count?: NestedIntFilter<$PrismaModel>
|
|
_min?: NestedEnumAddressTypeFilter<$PrismaModel>
|
|
_max?: NestedEnumAddressTypeFilter<$PrismaModel>
|
|
}
|
|
|
|
export type NestedEnumDocumentTypeFilter<$PrismaModel = never> = {
|
|
equals?: $Enums.DocumentType | EnumDocumentTypeFieldRefInput<$PrismaModel>
|
|
in?: $Enums.DocumentType[]
|
|
notIn?: $Enums.DocumentType[]
|
|
not?: NestedEnumDocumentTypeFilter<$PrismaModel> | $Enums.DocumentType
|
|
}
|
|
|
|
export type NestedEnumDocumentTypeWithAggregatesFilter<$PrismaModel = never> = {
|
|
equals?: $Enums.DocumentType | EnumDocumentTypeFieldRefInput<$PrismaModel>
|
|
in?: $Enums.DocumentType[]
|
|
notIn?: $Enums.DocumentType[]
|
|
not?: NestedEnumDocumentTypeWithAggregatesFilter<$PrismaModel> | $Enums.DocumentType
|
|
_count?: NestedIntFilter<$PrismaModel>
|
|
_min?: NestedEnumDocumentTypeFilter<$PrismaModel>
|
|
_max?: NestedEnumDocumentTypeFilter<$PrismaModel>
|
|
}
|
|
|
|
export type NestedEnumEmailProviderTypeFilter<$PrismaModel = never> = {
|
|
equals?: $Enums.EmailProviderType | EnumEmailProviderTypeFieldRefInput<$PrismaModel>
|
|
in?: $Enums.EmailProviderType[]
|
|
notIn?: $Enums.EmailProviderType[]
|
|
not?: NestedEnumEmailProviderTypeFilter<$PrismaModel> | $Enums.EmailProviderType
|
|
}
|
|
|
|
export type NestedEnumMailEncryptionFilter<$PrismaModel = never> = {
|
|
equals?: $Enums.MailEncryption | EnumMailEncryptionFieldRefInput<$PrismaModel>
|
|
in?: $Enums.MailEncryption[]
|
|
notIn?: $Enums.MailEncryption[]
|
|
not?: NestedEnumMailEncryptionFilter<$PrismaModel> | $Enums.MailEncryption
|
|
}
|
|
|
|
export type NestedEnumEmailProviderTypeWithAggregatesFilter<$PrismaModel = never> = {
|
|
equals?: $Enums.EmailProviderType | EnumEmailProviderTypeFieldRefInput<$PrismaModel>
|
|
in?: $Enums.EmailProviderType[]
|
|
notIn?: $Enums.EmailProviderType[]
|
|
not?: NestedEnumEmailProviderTypeWithAggregatesFilter<$PrismaModel> | $Enums.EmailProviderType
|
|
_count?: NestedIntFilter<$PrismaModel>
|
|
_min?: NestedEnumEmailProviderTypeFilter<$PrismaModel>
|
|
_max?: NestedEnumEmailProviderTypeFilter<$PrismaModel>
|
|
}
|
|
|
|
export type NestedEnumMailEncryptionWithAggregatesFilter<$PrismaModel = never> = {
|
|
equals?: $Enums.MailEncryption | EnumMailEncryptionFieldRefInput<$PrismaModel>
|
|
in?: $Enums.MailEncryption[]
|
|
notIn?: $Enums.MailEncryption[]
|
|
not?: NestedEnumMailEncryptionWithAggregatesFilter<$PrismaModel> | $Enums.MailEncryption
|
|
_count?: NestedIntFilter<$PrismaModel>
|
|
_min?: NestedEnumMailEncryptionFilter<$PrismaModel>
|
|
_max?: NestedEnumMailEncryptionFilter<$PrismaModel>
|
|
}
|
|
|
|
export type NestedEnumEmailFolderFilter<$PrismaModel = never> = {
|
|
equals?: $Enums.EmailFolder | EnumEmailFolderFieldRefInput<$PrismaModel>
|
|
in?: $Enums.EmailFolder[]
|
|
notIn?: $Enums.EmailFolder[]
|
|
not?: NestedEnumEmailFolderFilter<$PrismaModel> | $Enums.EmailFolder
|
|
}
|
|
|
|
export type NestedEnumEmailFolderWithAggregatesFilter<$PrismaModel = never> = {
|
|
equals?: $Enums.EmailFolder | EnumEmailFolderFieldRefInput<$PrismaModel>
|
|
in?: $Enums.EmailFolder[]
|
|
notIn?: $Enums.EmailFolder[]
|
|
not?: NestedEnumEmailFolderWithAggregatesFilter<$PrismaModel> | $Enums.EmailFolder
|
|
_count?: NestedIntFilter<$PrismaModel>
|
|
_min?: NestedEnumEmailFolderFilter<$PrismaModel>
|
|
_max?: NestedEnumEmailFolderFilter<$PrismaModel>
|
|
}
|
|
|
|
export type NestedEnumMeterTypeFilter<$PrismaModel = never> = {
|
|
equals?: $Enums.MeterType | EnumMeterTypeFieldRefInput<$PrismaModel>
|
|
in?: $Enums.MeterType[]
|
|
notIn?: $Enums.MeterType[]
|
|
not?: NestedEnumMeterTypeFilter<$PrismaModel> | $Enums.MeterType
|
|
}
|
|
|
|
export type NestedEnumMeterTypeWithAggregatesFilter<$PrismaModel = never> = {
|
|
equals?: $Enums.MeterType | EnumMeterTypeFieldRefInput<$PrismaModel>
|
|
in?: $Enums.MeterType[]
|
|
notIn?: $Enums.MeterType[]
|
|
not?: NestedEnumMeterTypeWithAggregatesFilter<$PrismaModel> | $Enums.MeterType
|
|
_count?: NestedIntFilter<$PrismaModel>
|
|
_min?: NestedEnumMeterTypeFilter<$PrismaModel>
|
|
_max?: NestedEnumMeterTypeFilter<$PrismaModel>
|
|
}
|
|
|
|
export type NestedFloatWithAggregatesFilter<$PrismaModel = never> = {
|
|
equals?: number | FloatFieldRefInput<$PrismaModel>
|
|
in?: number[]
|
|
notIn?: number[]
|
|
lt?: number | FloatFieldRefInput<$PrismaModel>
|
|
lte?: number | FloatFieldRefInput<$PrismaModel>
|
|
gt?: number | FloatFieldRefInput<$PrismaModel>
|
|
gte?: number | FloatFieldRefInput<$PrismaModel>
|
|
not?: NestedFloatWithAggregatesFilter<$PrismaModel> | number
|
|
_count?: NestedIntFilter<$PrismaModel>
|
|
_avg?: NestedFloatFilter<$PrismaModel>
|
|
_sum?: NestedFloatFilter<$PrismaModel>
|
|
_min?: NestedFloatFilter<$PrismaModel>
|
|
_max?: NestedFloatFilter<$PrismaModel>
|
|
}
|
|
|
|
export type NestedEnumContractTypeFilter<$PrismaModel = never> = {
|
|
equals?: $Enums.ContractType | EnumContractTypeFieldRefInput<$PrismaModel>
|
|
in?: $Enums.ContractType[]
|
|
notIn?: $Enums.ContractType[]
|
|
not?: NestedEnumContractTypeFilter<$PrismaModel> | $Enums.ContractType
|
|
}
|
|
|
|
export type NestedEnumContractStatusFilter<$PrismaModel = never> = {
|
|
equals?: $Enums.ContractStatus | EnumContractStatusFieldRefInput<$PrismaModel>
|
|
in?: $Enums.ContractStatus[]
|
|
notIn?: $Enums.ContractStatus[]
|
|
not?: NestedEnumContractStatusFilter<$PrismaModel> | $Enums.ContractStatus
|
|
}
|
|
|
|
export type NestedEnumContractTypeWithAggregatesFilter<$PrismaModel = never> = {
|
|
equals?: $Enums.ContractType | EnumContractTypeFieldRefInput<$PrismaModel>
|
|
in?: $Enums.ContractType[]
|
|
notIn?: $Enums.ContractType[]
|
|
not?: NestedEnumContractTypeWithAggregatesFilter<$PrismaModel> | $Enums.ContractType
|
|
_count?: NestedIntFilter<$PrismaModel>
|
|
_min?: NestedEnumContractTypeFilter<$PrismaModel>
|
|
_max?: NestedEnumContractTypeFilter<$PrismaModel>
|
|
}
|
|
|
|
export type NestedEnumContractStatusWithAggregatesFilter<$PrismaModel = never> = {
|
|
equals?: $Enums.ContractStatus | EnumContractStatusFieldRefInput<$PrismaModel>
|
|
in?: $Enums.ContractStatus[]
|
|
notIn?: $Enums.ContractStatus[]
|
|
not?: NestedEnumContractStatusWithAggregatesFilter<$PrismaModel> | $Enums.ContractStatus
|
|
_count?: NestedIntFilter<$PrismaModel>
|
|
_min?: NestedEnumContractStatusFilter<$PrismaModel>
|
|
_max?: NestedEnumContractStatusFilter<$PrismaModel>
|
|
}
|
|
|
|
export type NestedFloatNullableWithAggregatesFilter<$PrismaModel = never> = {
|
|
equals?: number | FloatFieldRefInput<$PrismaModel> | null
|
|
in?: number[] | null
|
|
notIn?: number[] | null
|
|
lt?: number | FloatFieldRefInput<$PrismaModel>
|
|
lte?: number | FloatFieldRefInput<$PrismaModel>
|
|
gt?: number | FloatFieldRefInput<$PrismaModel>
|
|
gte?: number | FloatFieldRefInput<$PrismaModel>
|
|
not?: NestedFloatNullableWithAggregatesFilter<$PrismaModel> | number | null
|
|
_count?: NestedIntNullableFilter<$PrismaModel>
|
|
_avg?: NestedFloatNullableFilter<$PrismaModel>
|
|
_sum?: NestedFloatNullableFilter<$PrismaModel>
|
|
_min?: NestedFloatNullableFilter<$PrismaModel>
|
|
_max?: NestedFloatNullableFilter<$PrismaModel>
|
|
}
|
|
|
|
export type NestedEnumContractTaskStatusFilter<$PrismaModel = never> = {
|
|
equals?: $Enums.ContractTaskStatus | EnumContractTaskStatusFieldRefInput<$PrismaModel>
|
|
in?: $Enums.ContractTaskStatus[]
|
|
notIn?: $Enums.ContractTaskStatus[]
|
|
not?: NestedEnumContractTaskStatusFilter<$PrismaModel> | $Enums.ContractTaskStatus
|
|
}
|
|
|
|
export type NestedEnumContractTaskStatusWithAggregatesFilter<$PrismaModel = never> = {
|
|
equals?: $Enums.ContractTaskStatus | EnumContractTaskStatusFieldRefInput<$PrismaModel>
|
|
in?: $Enums.ContractTaskStatus[]
|
|
notIn?: $Enums.ContractTaskStatus[]
|
|
not?: NestedEnumContractTaskStatusWithAggregatesFilter<$PrismaModel> | $Enums.ContractTaskStatus
|
|
_count?: NestedIntFilter<$PrismaModel>
|
|
_min?: NestedEnumContractTaskStatusFilter<$PrismaModel>
|
|
_max?: NestedEnumContractTaskStatusFilter<$PrismaModel>
|
|
}
|
|
|
|
export type NestedEnumInsuranceTypeFilter<$PrismaModel = never> = {
|
|
equals?: $Enums.InsuranceType | EnumInsuranceTypeFieldRefInput<$PrismaModel>
|
|
in?: $Enums.InsuranceType[]
|
|
notIn?: $Enums.InsuranceType[]
|
|
not?: NestedEnumInsuranceTypeFilter<$PrismaModel> | $Enums.InsuranceType
|
|
}
|
|
|
|
export type NestedEnumInsuranceTypeWithAggregatesFilter<$PrismaModel = never> = {
|
|
equals?: $Enums.InsuranceType | EnumInsuranceTypeFieldRefInput<$PrismaModel>
|
|
in?: $Enums.InsuranceType[]
|
|
notIn?: $Enums.InsuranceType[]
|
|
not?: NestedEnumInsuranceTypeWithAggregatesFilter<$PrismaModel> | $Enums.InsuranceType
|
|
_count?: NestedIntFilter<$PrismaModel>
|
|
_min?: NestedEnumInsuranceTypeFilter<$PrismaModel>
|
|
_max?: NestedEnumInsuranceTypeFilter<$PrismaModel>
|
|
}
|
|
|
|
export type CustomerCreateWithoutUserInput = {
|
|
customerNumber: string
|
|
type?: $Enums.CustomerType
|
|
salutation?: string | null
|
|
firstName: string
|
|
lastName: string
|
|
companyName?: string | null
|
|
foundingDate?: Date | string | null
|
|
birthDate?: Date | string | null
|
|
birthPlace?: string | null
|
|
email?: string | null
|
|
phone?: string | null
|
|
mobile?: string | null
|
|
taxNumber?: string | null
|
|
businessRegistrationPath?: string | null
|
|
commercialRegisterPath?: string | null
|
|
commercialRegisterNumber?: string | null
|
|
privacyPolicyPath?: string | null
|
|
notes?: string | null
|
|
portalEnabled?: boolean
|
|
portalEmail?: string | null
|
|
portalPasswordHash?: string | null
|
|
portalPasswordEncrypted?: string | null
|
|
portalLastLogin?: Date | string | null
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
addresses?: AddressCreateNestedManyWithoutCustomerInput
|
|
bankCards?: BankCardCreateNestedManyWithoutCustomerInput
|
|
identityDocuments?: IdentityDocumentCreateNestedManyWithoutCustomerInput
|
|
meters?: MeterCreateNestedManyWithoutCustomerInput
|
|
stressfreiEmails?: StressfreiEmailCreateNestedManyWithoutCustomerInput
|
|
contracts?: ContractCreateNestedManyWithoutCustomerInput
|
|
representingFor?: CustomerRepresentativeCreateNestedManyWithoutRepresentativeInput
|
|
representedBy?: CustomerRepresentativeCreateNestedManyWithoutCustomerInput
|
|
}
|
|
|
|
export type CustomerUncheckedCreateWithoutUserInput = {
|
|
id?: number
|
|
customerNumber: string
|
|
type?: $Enums.CustomerType
|
|
salutation?: string | null
|
|
firstName: string
|
|
lastName: string
|
|
companyName?: string | null
|
|
foundingDate?: Date | string | null
|
|
birthDate?: Date | string | null
|
|
birthPlace?: string | null
|
|
email?: string | null
|
|
phone?: string | null
|
|
mobile?: string | null
|
|
taxNumber?: string | null
|
|
businessRegistrationPath?: string | null
|
|
commercialRegisterPath?: string | null
|
|
commercialRegisterNumber?: string | null
|
|
privacyPolicyPath?: string | null
|
|
notes?: string | null
|
|
portalEnabled?: boolean
|
|
portalEmail?: string | null
|
|
portalPasswordHash?: string | null
|
|
portalPasswordEncrypted?: string | null
|
|
portalLastLogin?: Date | string | null
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
addresses?: AddressUncheckedCreateNestedManyWithoutCustomerInput
|
|
bankCards?: BankCardUncheckedCreateNestedManyWithoutCustomerInput
|
|
identityDocuments?: IdentityDocumentUncheckedCreateNestedManyWithoutCustomerInput
|
|
meters?: MeterUncheckedCreateNestedManyWithoutCustomerInput
|
|
stressfreiEmails?: StressfreiEmailUncheckedCreateNestedManyWithoutCustomerInput
|
|
contracts?: ContractUncheckedCreateNestedManyWithoutCustomerInput
|
|
representingFor?: CustomerRepresentativeUncheckedCreateNestedManyWithoutRepresentativeInput
|
|
representedBy?: CustomerRepresentativeUncheckedCreateNestedManyWithoutCustomerInput
|
|
}
|
|
|
|
export type CustomerCreateOrConnectWithoutUserInput = {
|
|
where: CustomerWhereUniqueInput
|
|
create: XOR<CustomerCreateWithoutUserInput, CustomerUncheckedCreateWithoutUserInput>
|
|
}
|
|
|
|
export type UserRoleCreateWithoutUserInput = {
|
|
role: RoleCreateNestedOneWithoutUsersInput
|
|
}
|
|
|
|
export type UserRoleUncheckedCreateWithoutUserInput = {
|
|
roleId: number
|
|
}
|
|
|
|
export type UserRoleCreateOrConnectWithoutUserInput = {
|
|
where: UserRoleWhereUniqueInput
|
|
create: XOR<UserRoleCreateWithoutUserInput, UserRoleUncheckedCreateWithoutUserInput>
|
|
}
|
|
|
|
export type UserRoleCreateManyUserInputEnvelope = {
|
|
data: UserRoleCreateManyUserInput | UserRoleCreateManyUserInput[]
|
|
skipDuplicates?: boolean
|
|
}
|
|
|
|
export type CustomerUpsertWithoutUserInput = {
|
|
update: XOR<CustomerUpdateWithoutUserInput, CustomerUncheckedUpdateWithoutUserInput>
|
|
create: XOR<CustomerCreateWithoutUserInput, CustomerUncheckedCreateWithoutUserInput>
|
|
where?: CustomerWhereInput
|
|
}
|
|
|
|
export type CustomerUpdateToOneWithWhereWithoutUserInput = {
|
|
where?: CustomerWhereInput
|
|
data: XOR<CustomerUpdateWithoutUserInput, CustomerUncheckedUpdateWithoutUserInput>
|
|
}
|
|
|
|
export type CustomerUpdateWithoutUserInput = {
|
|
customerNumber?: StringFieldUpdateOperationsInput | string
|
|
type?: EnumCustomerTypeFieldUpdateOperationsInput | $Enums.CustomerType
|
|
salutation?: NullableStringFieldUpdateOperationsInput | string | null
|
|
firstName?: StringFieldUpdateOperationsInput | string
|
|
lastName?: StringFieldUpdateOperationsInput | string
|
|
companyName?: NullableStringFieldUpdateOperationsInput | string | null
|
|
foundingDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
birthDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
birthPlace?: NullableStringFieldUpdateOperationsInput | string | null
|
|
email?: NullableStringFieldUpdateOperationsInput | string | null
|
|
phone?: NullableStringFieldUpdateOperationsInput | string | null
|
|
mobile?: NullableStringFieldUpdateOperationsInput | string | null
|
|
taxNumber?: NullableStringFieldUpdateOperationsInput | string | null
|
|
businessRegistrationPath?: NullableStringFieldUpdateOperationsInput | string | null
|
|
commercialRegisterPath?: NullableStringFieldUpdateOperationsInput | string | null
|
|
commercialRegisterNumber?: NullableStringFieldUpdateOperationsInput | string | null
|
|
privacyPolicyPath?: NullableStringFieldUpdateOperationsInput | string | null
|
|
notes?: NullableStringFieldUpdateOperationsInput | string | null
|
|
portalEnabled?: BoolFieldUpdateOperationsInput | boolean
|
|
portalEmail?: NullableStringFieldUpdateOperationsInput | string | null
|
|
portalPasswordHash?: NullableStringFieldUpdateOperationsInput | string | null
|
|
portalPasswordEncrypted?: NullableStringFieldUpdateOperationsInput | string | null
|
|
portalLastLogin?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
addresses?: AddressUpdateManyWithoutCustomerNestedInput
|
|
bankCards?: BankCardUpdateManyWithoutCustomerNestedInput
|
|
identityDocuments?: IdentityDocumentUpdateManyWithoutCustomerNestedInput
|
|
meters?: MeterUpdateManyWithoutCustomerNestedInput
|
|
stressfreiEmails?: StressfreiEmailUpdateManyWithoutCustomerNestedInput
|
|
contracts?: ContractUpdateManyWithoutCustomerNestedInput
|
|
representingFor?: CustomerRepresentativeUpdateManyWithoutRepresentativeNestedInput
|
|
representedBy?: CustomerRepresentativeUpdateManyWithoutCustomerNestedInput
|
|
}
|
|
|
|
export type CustomerUncheckedUpdateWithoutUserInput = {
|
|
id?: IntFieldUpdateOperationsInput | number
|
|
customerNumber?: StringFieldUpdateOperationsInput | string
|
|
type?: EnumCustomerTypeFieldUpdateOperationsInput | $Enums.CustomerType
|
|
salutation?: NullableStringFieldUpdateOperationsInput | string | null
|
|
firstName?: StringFieldUpdateOperationsInput | string
|
|
lastName?: StringFieldUpdateOperationsInput | string
|
|
companyName?: NullableStringFieldUpdateOperationsInput | string | null
|
|
foundingDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
birthDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
birthPlace?: NullableStringFieldUpdateOperationsInput | string | null
|
|
email?: NullableStringFieldUpdateOperationsInput | string | null
|
|
phone?: NullableStringFieldUpdateOperationsInput | string | null
|
|
mobile?: NullableStringFieldUpdateOperationsInput | string | null
|
|
taxNumber?: NullableStringFieldUpdateOperationsInput | string | null
|
|
businessRegistrationPath?: NullableStringFieldUpdateOperationsInput | string | null
|
|
commercialRegisterPath?: NullableStringFieldUpdateOperationsInput | string | null
|
|
commercialRegisterNumber?: NullableStringFieldUpdateOperationsInput | string | null
|
|
privacyPolicyPath?: NullableStringFieldUpdateOperationsInput | string | null
|
|
notes?: NullableStringFieldUpdateOperationsInput | string | null
|
|
portalEnabled?: BoolFieldUpdateOperationsInput | boolean
|
|
portalEmail?: NullableStringFieldUpdateOperationsInput | string | null
|
|
portalPasswordHash?: NullableStringFieldUpdateOperationsInput | string | null
|
|
portalPasswordEncrypted?: NullableStringFieldUpdateOperationsInput | string | null
|
|
portalLastLogin?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
addresses?: AddressUncheckedUpdateManyWithoutCustomerNestedInput
|
|
bankCards?: BankCardUncheckedUpdateManyWithoutCustomerNestedInput
|
|
identityDocuments?: IdentityDocumentUncheckedUpdateManyWithoutCustomerNestedInput
|
|
meters?: MeterUncheckedUpdateManyWithoutCustomerNestedInput
|
|
stressfreiEmails?: StressfreiEmailUncheckedUpdateManyWithoutCustomerNestedInput
|
|
contracts?: ContractUncheckedUpdateManyWithoutCustomerNestedInput
|
|
representingFor?: CustomerRepresentativeUncheckedUpdateManyWithoutRepresentativeNestedInput
|
|
representedBy?: CustomerRepresentativeUncheckedUpdateManyWithoutCustomerNestedInput
|
|
}
|
|
|
|
export type UserRoleUpsertWithWhereUniqueWithoutUserInput = {
|
|
where: UserRoleWhereUniqueInput
|
|
update: XOR<UserRoleUpdateWithoutUserInput, UserRoleUncheckedUpdateWithoutUserInput>
|
|
create: XOR<UserRoleCreateWithoutUserInput, UserRoleUncheckedCreateWithoutUserInput>
|
|
}
|
|
|
|
export type UserRoleUpdateWithWhereUniqueWithoutUserInput = {
|
|
where: UserRoleWhereUniqueInput
|
|
data: XOR<UserRoleUpdateWithoutUserInput, UserRoleUncheckedUpdateWithoutUserInput>
|
|
}
|
|
|
|
export type UserRoleUpdateManyWithWhereWithoutUserInput = {
|
|
where: UserRoleScalarWhereInput
|
|
data: XOR<UserRoleUpdateManyMutationInput, UserRoleUncheckedUpdateManyWithoutUserInput>
|
|
}
|
|
|
|
export type UserRoleScalarWhereInput = {
|
|
AND?: UserRoleScalarWhereInput | UserRoleScalarWhereInput[]
|
|
OR?: UserRoleScalarWhereInput[]
|
|
NOT?: UserRoleScalarWhereInput | UserRoleScalarWhereInput[]
|
|
userId?: IntFilter<"UserRole"> | number
|
|
roleId?: IntFilter<"UserRole"> | number
|
|
}
|
|
|
|
export type RolePermissionCreateWithoutRoleInput = {
|
|
permission: PermissionCreateNestedOneWithoutRolesInput
|
|
}
|
|
|
|
export type RolePermissionUncheckedCreateWithoutRoleInput = {
|
|
permissionId: number
|
|
}
|
|
|
|
export type RolePermissionCreateOrConnectWithoutRoleInput = {
|
|
where: RolePermissionWhereUniqueInput
|
|
create: XOR<RolePermissionCreateWithoutRoleInput, RolePermissionUncheckedCreateWithoutRoleInput>
|
|
}
|
|
|
|
export type RolePermissionCreateManyRoleInputEnvelope = {
|
|
data: RolePermissionCreateManyRoleInput | RolePermissionCreateManyRoleInput[]
|
|
skipDuplicates?: boolean
|
|
}
|
|
|
|
export type UserRoleCreateWithoutRoleInput = {
|
|
user: UserCreateNestedOneWithoutRolesInput
|
|
}
|
|
|
|
export type UserRoleUncheckedCreateWithoutRoleInput = {
|
|
userId: number
|
|
}
|
|
|
|
export type UserRoleCreateOrConnectWithoutRoleInput = {
|
|
where: UserRoleWhereUniqueInput
|
|
create: XOR<UserRoleCreateWithoutRoleInput, UserRoleUncheckedCreateWithoutRoleInput>
|
|
}
|
|
|
|
export type UserRoleCreateManyRoleInputEnvelope = {
|
|
data: UserRoleCreateManyRoleInput | UserRoleCreateManyRoleInput[]
|
|
skipDuplicates?: boolean
|
|
}
|
|
|
|
export type RolePermissionUpsertWithWhereUniqueWithoutRoleInput = {
|
|
where: RolePermissionWhereUniqueInput
|
|
update: XOR<RolePermissionUpdateWithoutRoleInput, RolePermissionUncheckedUpdateWithoutRoleInput>
|
|
create: XOR<RolePermissionCreateWithoutRoleInput, RolePermissionUncheckedCreateWithoutRoleInput>
|
|
}
|
|
|
|
export type RolePermissionUpdateWithWhereUniqueWithoutRoleInput = {
|
|
where: RolePermissionWhereUniqueInput
|
|
data: XOR<RolePermissionUpdateWithoutRoleInput, RolePermissionUncheckedUpdateWithoutRoleInput>
|
|
}
|
|
|
|
export type RolePermissionUpdateManyWithWhereWithoutRoleInput = {
|
|
where: RolePermissionScalarWhereInput
|
|
data: XOR<RolePermissionUpdateManyMutationInput, RolePermissionUncheckedUpdateManyWithoutRoleInput>
|
|
}
|
|
|
|
export type RolePermissionScalarWhereInput = {
|
|
AND?: RolePermissionScalarWhereInput | RolePermissionScalarWhereInput[]
|
|
OR?: RolePermissionScalarWhereInput[]
|
|
NOT?: RolePermissionScalarWhereInput | RolePermissionScalarWhereInput[]
|
|
roleId?: IntFilter<"RolePermission"> | number
|
|
permissionId?: IntFilter<"RolePermission"> | number
|
|
}
|
|
|
|
export type UserRoleUpsertWithWhereUniqueWithoutRoleInput = {
|
|
where: UserRoleWhereUniqueInput
|
|
update: XOR<UserRoleUpdateWithoutRoleInput, UserRoleUncheckedUpdateWithoutRoleInput>
|
|
create: XOR<UserRoleCreateWithoutRoleInput, UserRoleUncheckedCreateWithoutRoleInput>
|
|
}
|
|
|
|
export type UserRoleUpdateWithWhereUniqueWithoutRoleInput = {
|
|
where: UserRoleWhereUniqueInput
|
|
data: XOR<UserRoleUpdateWithoutRoleInput, UserRoleUncheckedUpdateWithoutRoleInput>
|
|
}
|
|
|
|
export type UserRoleUpdateManyWithWhereWithoutRoleInput = {
|
|
where: UserRoleScalarWhereInput
|
|
data: XOR<UserRoleUpdateManyMutationInput, UserRoleUncheckedUpdateManyWithoutRoleInput>
|
|
}
|
|
|
|
export type RolePermissionCreateWithoutPermissionInput = {
|
|
role: RoleCreateNestedOneWithoutPermissionsInput
|
|
}
|
|
|
|
export type RolePermissionUncheckedCreateWithoutPermissionInput = {
|
|
roleId: number
|
|
}
|
|
|
|
export type RolePermissionCreateOrConnectWithoutPermissionInput = {
|
|
where: RolePermissionWhereUniqueInput
|
|
create: XOR<RolePermissionCreateWithoutPermissionInput, RolePermissionUncheckedCreateWithoutPermissionInput>
|
|
}
|
|
|
|
export type RolePermissionCreateManyPermissionInputEnvelope = {
|
|
data: RolePermissionCreateManyPermissionInput | RolePermissionCreateManyPermissionInput[]
|
|
skipDuplicates?: boolean
|
|
}
|
|
|
|
export type RolePermissionUpsertWithWhereUniqueWithoutPermissionInput = {
|
|
where: RolePermissionWhereUniqueInput
|
|
update: XOR<RolePermissionUpdateWithoutPermissionInput, RolePermissionUncheckedUpdateWithoutPermissionInput>
|
|
create: XOR<RolePermissionCreateWithoutPermissionInput, RolePermissionUncheckedCreateWithoutPermissionInput>
|
|
}
|
|
|
|
export type RolePermissionUpdateWithWhereUniqueWithoutPermissionInput = {
|
|
where: RolePermissionWhereUniqueInput
|
|
data: XOR<RolePermissionUpdateWithoutPermissionInput, RolePermissionUncheckedUpdateWithoutPermissionInput>
|
|
}
|
|
|
|
export type RolePermissionUpdateManyWithWhereWithoutPermissionInput = {
|
|
where: RolePermissionScalarWhereInput
|
|
data: XOR<RolePermissionUpdateManyMutationInput, RolePermissionUncheckedUpdateManyWithoutPermissionInput>
|
|
}
|
|
|
|
export type RoleCreateWithoutPermissionsInput = {
|
|
name: string
|
|
description?: string | null
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
users?: UserRoleCreateNestedManyWithoutRoleInput
|
|
}
|
|
|
|
export type RoleUncheckedCreateWithoutPermissionsInput = {
|
|
id?: number
|
|
name: string
|
|
description?: string | null
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
users?: UserRoleUncheckedCreateNestedManyWithoutRoleInput
|
|
}
|
|
|
|
export type RoleCreateOrConnectWithoutPermissionsInput = {
|
|
where: RoleWhereUniqueInput
|
|
create: XOR<RoleCreateWithoutPermissionsInput, RoleUncheckedCreateWithoutPermissionsInput>
|
|
}
|
|
|
|
export type PermissionCreateWithoutRolesInput = {
|
|
resource: string
|
|
action: string
|
|
}
|
|
|
|
export type PermissionUncheckedCreateWithoutRolesInput = {
|
|
id?: number
|
|
resource: string
|
|
action: string
|
|
}
|
|
|
|
export type PermissionCreateOrConnectWithoutRolesInput = {
|
|
where: PermissionWhereUniqueInput
|
|
create: XOR<PermissionCreateWithoutRolesInput, PermissionUncheckedCreateWithoutRolesInput>
|
|
}
|
|
|
|
export type RoleUpsertWithoutPermissionsInput = {
|
|
update: XOR<RoleUpdateWithoutPermissionsInput, RoleUncheckedUpdateWithoutPermissionsInput>
|
|
create: XOR<RoleCreateWithoutPermissionsInput, RoleUncheckedCreateWithoutPermissionsInput>
|
|
where?: RoleWhereInput
|
|
}
|
|
|
|
export type RoleUpdateToOneWithWhereWithoutPermissionsInput = {
|
|
where?: RoleWhereInput
|
|
data: XOR<RoleUpdateWithoutPermissionsInput, RoleUncheckedUpdateWithoutPermissionsInput>
|
|
}
|
|
|
|
export type RoleUpdateWithoutPermissionsInput = {
|
|
name?: StringFieldUpdateOperationsInput | string
|
|
description?: NullableStringFieldUpdateOperationsInput | string | null
|
|
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
users?: UserRoleUpdateManyWithoutRoleNestedInput
|
|
}
|
|
|
|
export type RoleUncheckedUpdateWithoutPermissionsInput = {
|
|
id?: IntFieldUpdateOperationsInput | number
|
|
name?: StringFieldUpdateOperationsInput | string
|
|
description?: NullableStringFieldUpdateOperationsInput | string | null
|
|
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
users?: UserRoleUncheckedUpdateManyWithoutRoleNestedInput
|
|
}
|
|
|
|
export type PermissionUpsertWithoutRolesInput = {
|
|
update: XOR<PermissionUpdateWithoutRolesInput, PermissionUncheckedUpdateWithoutRolesInput>
|
|
create: XOR<PermissionCreateWithoutRolesInput, PermissionUncheckedCreateWithoutRolesInput>
|
|
where?: PermissionWhereInput
|
|
}
|
|
|
|
export type PermissionUpdateToOneWithWhereWithoutRolesInput = {
|
|
where?: PermissionWhereInput
|
|
data: XOR<PermissionUpdateWithoutRolesInput, PermissionUncheckedUpdateWithoutRolesInput>
|
|
}
|
|
|
|
export type PermissionUpdateWithoutRolesInput = {
|
|
resource?: StringFieldUpdateOperationsInput | string
|
|
action?: StringFieldUpdateOperationsInput | string
|
|
}
|
|
|
|
export type PermissionUncheckedUpdateWithoutRolesInput = {
|
|
id?: IntFieldUpdateOperationsInput | number
|
|
resource?: StringFieldUpdateOperationsInput | string
|
|
action?: StringFieldUpdateOperationsInput | string
|
|
}
|
|
|
|
export type UserCreateWithoutRolesInput = {
|
|
email: string
|
|
password: string
|
|
firstName: string
|
|
lastName: string
|
|
isActive?: boolean
|
|
tokenInvalidatedAt?: Date | string | null
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
customer?: CustomerCreateNestedOneWithoutUserInput
|
|
}
|
|
|
|
export type UserUncheckedCreateWithoutRolesInput = {
|
|
id?: number
|
|
email: string
|
|
password: string
|
|
firstName: string
|
|
lastName: string
|
|
isActive?: boolean
|
|
tokenInvalidatedAt?: Date | string | null
|
|
customerId?: number | null
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
}
|
|
|
|
export type UserCreateOrConnectWithoutRolesInput = {
|
|
where: UserWhereUniqueInput
|
|
create: XOR<UserCreateWithoutRolesInput, UserUncheckedCreateWithoutRolesInput>
|
|
}
|
|
|
|
export type RoleCreateWithoutUsersInput = {
|
|
name: string
|
|
description?: string | null
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
permissions?: RolePermissionCreateNestedManyWithoutRoleInput
|
|
}
|
|
|
|
export type RoleUncheckedCreateWithoutUsersInput = {
|
|
id?: number
|
|
name: string
|
|
description?: string | null
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
permissions?: RolePermissionUncheckedCreateNestedManyWithoutRoleInput
|
|
}
|
|
|
|
export type RoleCreateOrConnectWithoutUsersInput = {
|
|
where: RoleWhereUniqueInput
|
|
create: XOR<RoleCreateWithoutUsersInput, RoleUncheckedCreateWithoutUsersInput>
|
|
}
|
|
|
|
export type UserUpsertWithoutRolesInput = {
|
|
update: XOR<UserUpdateWithoutRolesInput, UserUncheckedUpdateWithoutRolesInput>
|
|
create: XOR<UserCreateWithoutRolesInput, UserUncheckedCreateWithoutRolesInput>
|
|
where?: UserWhereInput
|
|
}
|
|
|
|
export type UserUpdateToOneWithWhereWithoutRolesInput = {
|
|
where?: UserWhereInput
|
|
data: XOR<UserUpdateWithoutRolesInput, UserUncheckedUpdateWithoutRolesInput>
|
|
}
|
|
|
|
export type UserUpdateWithoutRolesInput = {
|
|
email?: StringFieldUpdateOperationsInput | string
|
|
password?: StringFieldUpdateOperationsInput | string
|
|
firstName?: StringFieldUpdateOperationsInput | string
|
|
lastName?: StringFieldUpdateOperationsInput | string
|
|
isActive?: BoolFieldUpdateOperationsInput | boolean
|
|
tokenInvalidatedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
customer?: CustomerUpdateOneWithoutUserNestedInput
|
|
}
|
|
|
|
export type UserUncheckedUpdateWithoutRolesInput = {
|
|
id?: IntFieldUpdateOperationsInput | number
|
|
email?: StringFieldUpdateOperationsInput | string
|
|
password?: StringFieldUpdateOperationsInput | string
|
|
firstName?: StringFieldUpdateOperationsInput | string
|
|
lastName?: StringFieldUpdateOperationsInput | string
|
|
isActive?: BoolFieldUpdateOperationsInput | boolean
|
|
tokenInvalidatedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
customerId?: NullableIntFieldUpdateOperationsInput | number | null
|
|
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
}
|
|
|
|
export type RoleUpsertWithoutUsersInput = {
|
|
update: XOR<RoleUpdateWithoutUsersInput, RoleUncheckedUpdateWithoutUsersInput>
|
|
create: XOR<RoleCreateWithoutUsersInput, RoleUncheckedCreateWithoutUsersInput>
|
|
where?: RoleWhereInput
|
|
}
|
|
|
|
export type RoleUpdateToOneWithWhereWithoutUsersInput = {
|
|
where?: RoleWhereInput
|
|
data: XOR<RoleUpdateWithoutUsersInput, RoleUncheckedUpdateWithoutUsersInput>
|
|
}
|
|
|
|
export type RoleUpdateWithoutUsersInput = {
|
|
name?: StringFieldUpdateOperationsInput | string
|
|
description?: NullableStringFieldUpdateOperationsInput | string | null
|
|
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
permissions?: RolePermissionUpdateManyWithoutRoleNestedInput
|
|
}
|
|
|
|
export type RoleUncheckedUpdateWithoutUsersInput = {
|
|
id?: IntFieldUpdateOperationsInput | number
|
|
name?: StringFieldUpdateOperationsInput | string
|
|
description?: NullableStringFieldUpdateOperationsInput | string | null
|
|
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
permissions?: RolePermissionUncheckedUpdateManyWithoutRoleNestedInput
|
|
}
|
|
|
|
export type UserCreateWithoutCustomerInput = {
|
|
email: string
|
|
password: string
|
|
firstName: string
|
|
lastName: string
|
|
isActive?: boolean
|
|
tokenInvalidatedAt?: Date | string | null
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
roles?: UserRoleCreateNestedManyWithoutUserInput
|
|
}
|
|
|
|
export type UserUncheckedCreateWithoutCustomerInput = {
|
|
id?: number
|
|
email: string
|
|
password: string
|
|
firstName: string
|
|
lastName: string
|
|
isActive?: boolean
|
|
tokenInvalidatedAt?: Date | string | null
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
roles?: UserRoleUncheckedCreateNestedManyWithoutUserInput
|
|
}
|
|
|
|
export type UserCreateOrConnectWithoutCustomerInput = {
|
|
where: UserWhereUniqueInput
|
|
create: XOR<UserCreateWithoutCustomerInput, UserUncheckedCreateWithoutCustomerInput>
|
|
}
|
|
|
|
export type AddressCreateWithoutCustomerInput = {
|
|
type?: $Enums.AddressType
|
|
street: string
|
|
houseNumber: string
|
|
postalCode: string
|
|
city: string
|
|
country?: string
|
|
isDefault?: boolean
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
contractsAsDelivery?: ContractCreateNestedManyWithoutAddressInput
|
|
contractsAsBilling?: ContractCreateNestedManyWithoutBillingAddressInput
|
|
}
|
|
|
|
export type AddressUncheckedCreateWithoutCustomerInput = {
|
|
id?: number
|
|
type?: $Enums.AddressType
|
|
street: string
|
|
houseNumber: string
|
|
postalCode: string
|
|
city: string
|
|
country?: string
|
|
isDefault?: boolean
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
contractsAsDelivery?: ContractUncheckedCreateNestedManyWithoutAddressInput
|
|
contractsAsBilling?: ContractUncheckedCreateNestedManyWithoutBillingAddressInput
|
|
}
|
|
|
|
export type AddressCreateOrConnectWithoutCustomerInput = {
|
|
where: AddressWhereUniqueInput
|
|
create: XOR<AddressCreateWithoutCustomerInput, AddressUncheckedCreateWithoutCustomerInput>
|
|
}
|
|
|
|
export type AddressCreateManyCustomerInputEnvelope = {
|
|
data: AddressCreateManyCustomerInput | AddressCreateManyCustomerInput[]
|
|
skipDuplicates?: boolean
|
|
}
|
|
|
|
export type BankCardCreateWithoutCustomerInput = {
|
|
accountHolder: string
|
|
iban: string
|
|
bic?: string | null
|
|
bankName?: string | null
|
|
expiryDate?: Date | string | null
|
|
documentPath?: string | null
|
|
isActive?: boolean
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
contracts?: ContractCreateNestedManyWithoutBankCardInput
|
|
}
|
|
|
|
export type BankCardUncheckedCreateWithoutCustomerInput = {
|
|
id?: number
|
|
accountHolder: string
|
|
iban: string
|
|
bic?: string | null
|
|
bankName?: string | null
|
|
expiryDate?: Date | string | null
|
|
documentPath?: string | null
|
|
isActive?: boolean
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
contracts?: ContractUncheckedCreateNestedManyWithoutBankCardInput
|
|
}
|
|
|
|
export type BankCardCreateOrConnectWithoutCustomerInput = {
|
|
where: BankCardWhereUniqueInput
|
|
create: XOR<BankCardCreateWithoutCustomerInput, BankCardUncheckedCreateWithoutCustomerInput>
|
|
}
|
|
|
|
export type BankCardCreateManyCustomerInputEnvelope = {
|
|
data: BankCardCreateManyCustomerInput | BankCardCreateManyCustomerInput[]
|
|
skipDuplicates?: boolean
|
|
}
|
|
|
|
export type IdentityDocumentCreateWithoutCustomerInput = {
|
|
type?: $Enums.DocumentType
|
|
documentNumber: string
|
|
issuingAuthority?: string | null
|
|
issueDate?: Date | string | null
|
|
expiryDate?: Date | string | null
|
|
documentPath?: string | null
|
|
isActive?: boolean
|
|
licenseClasses?: string | null
|
|
licenseIssueDate?: Date | string | null
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
contracts?: ContractCreateNestedManyWithoutIdentityDocumentInput
|
|
}
|
|
|
|
export type IdentityDocumentUncheckedCreateWithoutCustomerInput = {
|
|
id?: number
|
|
type?: $Enums.DocumentType
|
|
documentNumber: string
|
|
issuingAuthority?: string | null
|
|
issueDate?: Date | string | null
|
|
expiryDate?: Date | string | null
|
|
documentPath?: string | null
|
|
isActive?: boolean
|
|
licenseClasses?: string | null
|
|
licenseIssueDate?: Date | string | null
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
contracts?: ContractUncheckedCreateNestedManyWithoutIdentityDocumentInput
|
|
}
|
|
|
|
export type IdentityDocumentCreateOrConnectWithoutCustomerInput = {
|
|
where: IdentityDocumentWhereUniqueInput
|
|
create: XOR<IdentityDocumentCreateWithoutCustomerInput, IdentityDocumentUncheckedCreateWithoutCustomerInput>
|
|
}
|
|
|
|
export type IdentityDocumentCreateManyCustomerInputEnvelope = {
|
|
data: IdentityDocumentCreateManyCustomerInput | IdentityDocumentCreateManyCustomerInput[]
|
|
skipDuplicates?: boolean
|
|
}
|
|
|
|
export type MeterCreateWithoutCustomerInput = {
|
|
meterNumber: string
|
|
type: $Enums.MeterType
|
|
location?: string | null
|
|
isActive?: boolean
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
readings?: MeterReadingCreateNestedManyWithoutMeterInput
|
|
energyDetails?: EnergyContractDetailsCreateNestedManyWithoutMeterInput
|
|
}
|
|
|
|
export type MeterUncheckedCreateWithoutCustomerInput = {
|
|
id?: number
|
|
meterNumber: string
|
|
type: $Enums.MeterType
|
|
location?: string | null
|
|
isActive?: boolean
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
readings?: MeterReadingUncheckedCreateNestedManyWithoutMeterInput
|
|
energyDetails?: EnergyContractDetailsUncheckedCreateNestedManyWithoutMeterInput
|
|
}
|
|
|
|
export type MeterCreateOrConnectWithoutCustomerInput = {
|
|
where: MeterWhereUniqueInput
|
|
create: XOR<MeterCreateWithoutCustomerInput, MeterUncheckedCreateWithoutCustomerInput>
|
|
}
|
|
|
|
export type MeterCreateManyCustomerInputEnvelope = {
|
|
data: MeterCreateManyCustomerInput | MeterCreateManyCustomerInput[]
|
|
skipDuplicates?: boolean
|
|
}
|
|
|
|
export type StressfreiEmailCreateWithoutCustomerInput = {
|
|
email: string
|
|
platform?: string | null
|
|
notes?: string | null
|
|
isActive?: boolean
|
|
isProvisioned?: boolean
|
|
provisionedAt?: Date | string | null
|
|
provisionError?: string | null
|
|
hasMailbox?: boolean
|
|
emailPasswordEncrypted?: string | null
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
contracts?: ContractCreateNestedManyWithoutStressfreiEmailInput
|
|
cachedEmails?: CachedEmailCreateNestedManyWithoutStressfreiEmailInput
|
|
}
|
|
|
|
export type StressfreiEmailUncheckedCreateWithoutCustomerInput = {
|
|
id?: number
|
|
email: string
|
|
platform?: string | null
|
|
notes?: string | null
|
|
isActive?: boolean
|
|
isProvisioned?: boolean
|
|
provisionedAt?: Date | string | null
|
|
provisionError?: string | null
|
|
hasMailbox?: boolean
|
|
emailPasswordEncrypted?: string | null
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
contracts?: ContractUncheckedCreateNestedManyWithoutStressfreiEmailInput
|
|
cachedEmails?: CachedEmailUncheckedCreateNestedManyWithoutStressfreiEmailInput
|
|
}
|
|
|
|
export type StressfreiEmailCreateOrConnectWithoutCustomerInput = {
|
|
where: StressfreiEmailWhereUniqueInput
|
|
create: XOR<StressfreiEmailCreateWithoutCustomerInput, StressfreiEmailUncheckedCreateWithoutCustomerInput>
|
|
}
|
|
|
|
export type StressfreiEmailCreateManyCustomerInputEnvelope = {
|
|
data: StressfreiEmailCreateManyCustomerInput | StressfreiEmailCreateManyCustomerInput[]
|
|
skipDuplicates?: boolean
|
|
}
|
|
|
|
export type ContractCreateWithoutCustomerInput = {
|
|
contractNumber: string
|
|
type: $Enums.ContractType
|
|
status?: $Enums.ContractStatus
|
|
providerName?: string | null
|
|
tariffName?: string | null
|
|
customerNumberAtProvider?: string | null
|
|
priceFirst12Months?: string | null
|
|
priceFrom13Months?: string | null
|
|
priceAfter24Months?: string | null
|
|
startDate?: Date | string | null
|
|
endDate?: Date | string | null
|
|
commission?: number | null
|
|
cancellationLetterPath?: string | null
|
|
cancellationConfirmationPath?: string | null
|
|
cancellationLetterOptionsPath?: string | null
|
|
cancellationConfirmationOptionsPath?: string | null
|
|
cancellationConfirmationDate?: Date | string | null
|
|
cancellationConfirmationOptionsDate?: Date | string | null
|
|
wasSpecialCancellation?: boolean
|
|
portalUsername?: string | null
|
|
portalPasswordEncrypted?: string | null
|
|
notes?: string | null
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
contractCategory?: ContractCategoryCreateNestedOneWithoutContractsInput
|
|
address?: AddressCreateNestedOneWithoutContractsAsDeliveryInput
|
|
billingAddress?: AddressCreateNestedOneWithoutContractsAsBillingInput
|
|
bankCard?: BankCardCreateNestedOneWithoutContractsInput
|
|
identityDocument?: IdentityDocumentCreateNestedOneWithoutContractsInput
|
|
salesPlatform?: SalesPlatformCreateNestedOneWithoutContractsInput
|
|
cancellationPeriod?: CancellationPeriodCreateNestedOneWithoutContractsInput
|
|
contractDuration?: ContractDurationCreateNestedOneWithoutContractsInput
|
|
previousContract?: ContractCreateNestedOneWithoutFollowUpContractInput
|
|
followUpContract?: ContractCreateNestedOneWithoutPreviousContractInput
|
|
provider?: ProviderCreateNestedOneWithoutContractsInput
|
|
tariff?: TariffCreateNestedOneWithoutContractsInput
|
|
stressfreiEmail?: StressfreiEmailCreateNestedOneWithoutContractsInput
|
|
energyDetails?: EnergyContractDetailsCreateNestedOneWithoutContractInput
|
|
internetDetails?: InternetContractDetailsCreateNestedOneWithoutContractInput
|
|
mobileDetails?: MobileContractDetailsCreateNestedOneWithoutContractInput
|
|
tvDetails?: TvContractDetailsCreateNestedOneWithoutContractInput
|
|
carInsuranceDetails?: CarInsuranceDetailsCreateNestedOneWithoutContractInput
|
|
tasks?: ContractTaskCreateNestedManyWithoutContractInput
|
|
assignedEmails?: CachedEmailCreateNestedManyWithoutContractInput
|
|
}
|
|
|
|
export type ContractUncheckedCreateWithoutCustomerInput = {
|
|
id?: number
|
|
contractNumber: string
|
|
type: $Enums.ContractType
|
|
status?: $Enums.ContractStatus
|
|
contractCategoryId?: number | null
|
|
addressId?: number | null
|
|
billingAddressId?: number | null
|
|
bankCardId?: number | null
|
|
identityDocumentId?: number | null
|
|
salesPlatformId?: number | null
|
|
cancellationPeriodId?: number | null
|
|
contractDurationId?: number | null
|
|
previousContractId?: number | null
|
|
providerId?: number | null
|
|
tariffId?: number | null
|
|
providerName?: string | null
|
|
tariffName?: string | null
|
|
customerNumberAtProvider?: string | null
|
|
priceFirst12Months?: string | null
|
|
priceFrom13Months?: string | null
|
|
priceAfter24Months?: string | null
|
|
startDate?: Date | string | null
|
|
endDate?: Date | string | null
|
|
commission?: number | null
|
|
cancellationLetterPath?: string | null
|
|
cancellationConfirmationPath?: string | null
|
|
cancellationLetterOptionsPath?: string | null
|
|
cancellationConfirmationOptionsPath?: string | null
|
|
cancellationConfirmationDate?: Date | string | null
|
|
cancellationConfirmationOptionsDate?: Date | string | null
|
|
wasSpecialCancellation?: boolean
|
|
portalUsername?: string | null
|
|
portalPasswordEncrypted?: string | null
|
|
stressfreiEmailId?: number | null
|
|
notes?: string | null
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
followUpContract?: ContractUncheckedCreateNestedOneWithoutPreviousContractInput
|
|
energyDetails?: EnergyContractDetailsUncheckedCreateNestedOneWithoutContractInput
|
|
internetDetails?: InternetContractDetailsUncheckedCreateNestedOneWithoutContractInput
|
|
mobileDetails?: MobileContractDetailsUncheckedCreateNestedOneWithoutContractInput
|
|
tvDetails?: TvContractDetailsUncheckedCreateNestedOneWithoutContractInput
|
|
carInsuranceDetails?: CarInsuranceDetailsUncheckedCreateNestedOneWithoutContractInput
|
|
tasks?: ContractTaskUncheckedCreateNestedManyWithoutContractInput
|
|
assignedEmails?: CachedEmailUncheckedCreateNestedManyWithoutContractInput
|
|
}
|
|
|
|
export type ContractCreateOrConnectWithoutCustomerInput = {
|
|
where: ContractWhereUniqueInput
|
|
create: XOR<ContractCreateWithoutCustomerInput, ContractUncheckedCreateWithoutCustomerInput>
|
|
}
|
|
|
|
export type ContractCreateManyCustomerInputEnvelope = {
|
|
data: ContractCreateManyCustomerInput | ContractCreateManyCustomerInput[]
|
|
skipDuplicates?: boolean
|
|
}
|
|
|
|
export type CustomerRepresentativeCreateWithoutRepresentativeInput = {
|
|
notes?: string | null
|
|
isActive?: boolean
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
customer: CustomerCreateNestedOneWithoutRepresentedByInput
|
|
}
|
|
|
|
export type CustomerRepresentativeUncheckedCreateWithoutRepresentativeInput = {
|
|
id?: number
|
|
customerId: number
|
|
notes?: string | null
|
|
isActive?: boolean
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
}
|
|
|
|
export type CustomerRepresentativeCreateOrConnectWithoutRepresentativeInput = {
|
|
where: CustomerRepresentativeWhereUniqueInput
|
|
create: XOR<CustomerRepresentativeCreateWithoutRepresentativeInput, CustomerRepresentativeUncheckedCreateWithoutRepresentativeInput>
|
|
}
|
|
|
|
export type CustomerRepresentativeCreateManyRepresentativeInputEnvelope = {
|
|
data: CustomerRepresentativeCreateManyRepresentativeInput | CustomerRepresentativeCreateManyRepresentativeInput[]
|
|
skipDuplicates?: boolean
|
|
}
|
|
|
|
export type CustomerRepresentativeCreateWithoutCustomerInput = {
|
|
notes?: string | null
|
|
isActive?: boolean
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
representative: CustomerCreateNestedOneWithoutRepresentingForInput
|
|
}
|
|
|
|
export type CustomerRepresentativeUncheckedCreateWithoutCustomerInput = {
|
|
id?: number
|
|
representativeId: number
|
|
notes?: string | null
|
|
isActive?: boolean
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
}
|
|
|
|
export type CustomerRepresentativeCreateOrConnectWithoutCustomerInput = {
|
|
where: CustomerRepresentativeWhereUniqueInput
|
|
create: XOR<CustomerRepresentativeCreateWithoutCustomerInput, CustomerRepresentativeUncheckedCreateWithoutCustomerInput>
|
|
}
|
|
|
|
export type CustomerRepresentativeCreateManyCustomerInputEnvelope = {
|
|
data: CustomerRepresentativeCreateManyCustomerInput | CustomerRepresentativeCreateManyCustomerInput[]
|
|
skipDuplicates?: boolean
|
|
}
|
|
|
|
export type UserUpsertWithoutCustomerInput = {
|
|
update: XOR<UserUpdateWithoutCustomerInput, UserUncheckedUpdateWithoutCustomerInput>
|
|
create: XOR<UserCreateWithoutCustomerInput, UserUncheckedCreateWithoutCustomerInput>
|
|
where?: UserWhereInput
|
|
}
|
|
|
|
export type UserUpdateToOneWithWhereWithoutCustomerInput = {
|
|
where?: UserWhereInput
|
|
data: XOR<UserUpdateWithoutCustomerInput, UserUncheckedUpdateWithoutCustomerInput>
|
|
}
|
|
|
|
export type UserUpdateWithoutCustomerInput = {
|
|
email?: StringFieldUpdateOperationsInput | string
|
|
password?: StringFieldUpdateOperationsInput | string
|
|
firstName?: StringFieldUpdateOperationsInput | string
|
|
lastName?: StringFieldUpdateOperationsInput | string
|
|
isActive?: BoolFieldUpdateOperationsInput | boolean
|
|
tokenInvalidatedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
roles?: UserRoleUpdateManyWithoutUserNestedInput
|
|
}
|
|
|
|
export type UserUncheckedUpdateWithoutCustomerInput = {
|
|
id?: IntFieldUpdateOperationsInput | number
|
|
email?: StringFieldUpdateOperationsInput | string
|
|
password?: StringFieldUpdateOperationsInput | string
|
|
firstName?: StringFieldUpdateOperationsInput | string
|
|
lastName?: StringFieldUpdateOperationsInput | string
|
|
isActive?: BoolFieldUpdateOperationsInput | boolean
|
|
tokenInvalidatedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
roles?: UserRoleUncheckedUpdateManyWithoutUserNestedInput
|
|
}
|
|
|
|
export type AddressUpsertWithWhereUniqueWithoutCustomerInput = {
|
|
where: AddressWhereUniqueInput
|
|
update: XOR<AddressUpdateWithoutCustomerInput, AddressUncheckedUpdateWithoutCustomerInput>
|
|
create: XOR<AddressCreateWithoutCustomerInput, AddressUncheckedCreateWithoutCustomerInput>
|
|
}
|
|
|
|
export type AddressUpdateWithWhereUniqueWithoutCustomerInput = {
|
|
where: AddressWhereUniqueInput
|
|
data: XOR<AddressUpdateWithoutCustomerInput, AddressUncheckedUpdateWithoutCustomerInput>
|
|
}
|
|
|
|
export type AddressUpdateManyWithWhereWithoutCustomerInput = {
|
|
where: AddressScalarWhereInput
|
|
data: XOR<AddressUpdateManyMutationInput, AddressUncheckedUpdateManyWithoutCustomerInput>
|
|
}
|
|
|
|
export type AddressScalarWhereInput = {
|
|
AND?: AddressScalarWhereInput | AddressScalarWhereInput[]
|
|
OR?: AddressScalarWhereInput[]
|
|
NOT?: AddressScalarWhereInput | AddressScalarWhereInput[]
|
|
id?: IntFilter<"Address"> | number
|
|
customerId?: IntFilter<"Address"> | number
|
|
type?: EnumAddressTypeFilter<"Address"> | $Enums.AddressType
|
|
street?: StringFilter<"Address"> | string
|
|
houseNumber?: StringFilter<"Address"> | string
|
|
postalCode?: StringFilter<"Address"> | string
|
|
city?: StringFilter<"Address"> | string
|
|
country?: StringFilter<"Address"> | string
|
|
isDefault?: BoolFilter<"Address"> | boolean
|
|
createdAt?: DateTimeFilter<"Address"> | Date | string
|
|
updatedAt?: DateTimeFilter<"Address"> | Date | string
|
|
}
|
|
|
|
export type BankCardUpsertWithWhereUniqueWithoutCustomerInput = {
|
|
where: BankCardWhereUniqueInput
|
|
update: XOR<BankCardUpdateWithoutCustomerInput, BankCardUncheckedUpdateWithoutCustomerInput>
|
|
create: XOR<BankCardCreateWithoutCustomerInput, BankCardUncheckedCreateWithoutCustomerInput>
|
|
}
|
|
|
|
export type BankCardUpdateWithWhereUniqueWithoutCustomerInput = {
|
|
where: BankCardWhereUniqueInput
|
|
data: XOR<BankCardUpdateWithoutCustomerInput, BankCardUncheckedUpdateWithoutCustomerInput>
|
|
}
|
|
|
|
export type BankCardUpdateManyWithWhereWithoutCustomerInput = {
|
|
where: BankCardScalarWhereInput
|
|
data: XOR<BankCardUpdateManyMutationInput, BankCardUncheckedUpdateManyWithoutCustomerInput>
|
|
}
|
|
|
|
export type BankCardScalarWhereInput = {
|
|
AND?: BankCardScalarWhereInput | BankCardScalarWhereInput[]
|
|
OR?: BankCardScalarWhereInput[]
|
|
NOT?: BankCardScalarWhereInput | BankCardScalarWhereInput[]
|
|
id?: IntFilter<"BankCard"> | number
|
|
customerId?: IntFilter<"BankCard"> | number
|
|
accountHolder?: StringFilter<"BankCard"> | string
|
|
iban?: StringFilter<"BankCard"> | string
|
|
bic?: StringNullableFilter<"BankCard"> | string | null
|
|
bankName?: StringNullableFilter<"BankCard"> | string | null
|
|
expiryDate?: DateTimeNullableFilter<"BankCard"> | Date | string | null
|
|
documentPath?: StringNullableFilter<"BankCard"> | string | null
|
|
isActive?: BoolFilter<"BankCard"> | boolean
|
|
createdAt?: DateTimeFilter<"BankCard"> | Date | string
|
|
updatedAt?: DateTimeFilter<"BankCard"> | Date | string
|
|
}
|
|
|
|
export type IdentityDocumentUpsertWithWhereUniqueWithoutCustomerInput = {
|
|
where: IdentityDocumentWhereUniqueInput
|
|
update: XOR<IdentityDocumentUpdateWithoutCustomerInput, IdentityDocumentUncheckedUpdateWithoutCustomerInput>
|
|
create: XOR<IdentityDocumentCreateWithoutCustomerInput, IdentityDocumentUncheckedCreateWithoutCustomerInput>
|
|
}
|
|
|
|
export type IdentityDocumentUpdateWithWhereUniqueWithoutCustomerInput = {
|
|
where: IdentityDocumentWhereUniqueInput
|
|
data: XOR<IdentityDocumentUpdateWithoutCustomerInput, IdentityDocumentUncheckedUpdateWithoutCustomerInput>
|
|
}
|
|
|
|
export type IdentityDocumentUpdateManyWithWhereWithoutCustomerInput = {
|
|
where: IdentityDocumentScalarWhereInput
|
|
data: XOR<IdentityDocumentUpdateManyMutationInput, IdentityDocumentUncheckedUpdateManyWithoutCustomerInput>
|
|
}
|
|
|
|
export type IdentityDocumentScalarWhereInput = {
|
|
AND?: IdentityDocumentScalarWhereInput | IdentityDocumentScalarWhereInput[]
|
|
OR?: IdentityDocumentScalarWhereInput[]
|
|
NOT?: IdentityDocumentScalarWhereInput | IdentityDocumentScalarWhereInput[]
|
|
id?: IntFilter<"IdentityDocument"> | number
|
|
customerId?: IntFilter<"IdentityDocument"> | number
|
|
type?: EnumDocumentTypeFilter<"IdentityDocument"> | $Enums.DocumentType
|
|
documentNumber?: StringFilter<"IdentityDocument"> | string
|
|
issuingAuthority?: StringNullableFilter<"IdentityDocument"> | string | null
|
|
issueDate?: DateTimeNullableFilter<"IdentityDocument"> | Date | string | null
|
|
expiryDate?: DateTimeNullableFilter<"IdentityDocument"> | Date | string | null
|
|
documentPath?: StringNullableFilter<"IdentityDocument"> | string | null
|
|
isActive?: BoolFilter<"IdentityDocument"> | boolean
|
|
licenseClasses?: StringNullableFilter<"IdentityDocument"> | string | null
|
|
licenseIssueDate?: DateTimeNullableFilter<"IdentityDocument"> | Date | string | null
|
|
createdAt?: DateTimeFilter<"IdentityDocument"> | Date | string
|
|
updatedAt?: DateTimeFilter<"IdentityDocument"> | Date | string
|
|
}
|
|
|
|
export type MeterUpsertWithWhereUniqueWithoutCustomerInput = {
|
|
where: MeterWhereUniqueInput
|
|
update: XOR<MeterUpdateWithoutCustomerInput, MeterUncheckedUpdateWithoutCustomerInput>
|
|
create: XOR<MeterCreateWithoutCustomerInput, MeterUncheckedCreateWithoutCustomerInput>
|
|
}
|
|
|
|
export type MeterUpdateWithWhereUniqueWithoutCustomerInput = {
|
|
where: MeterWhereUniqueInput
|
|
data: XOR<MeterUpdateWithoutCustomerInput, MeterUncheckedUpdateWithoutCustomerInput>
|
|
}
|
|
|
|
export type MeterUpdateManyWithWhereWithoutCustomerInput = {
|
|
where: MeterScalarWhereInput
|
|
data: XOR<MeterUpdateManyMutationInput, MeterUncheckedUpdateManyWithoutCustomerInput>
|
|
}
|
|
|
|
export type MeterScalarWhereInput = {
|
|
AND?: MeterScalarWhereInput | MeterScalarWhereInput[]
|
|
OR?: MeterScalarWhereInput[]
|
|
NOT?: MeterScalarWhereInput | MeterScalarWhereInput[]
|
|
id?: IntFilter<"Meter"> | number
|
|
customerId?: IntFilter<"Meter"> | number
|
|
meterNumber?: StringFilter<"Meter"> | string
|
|
type?: EnumMeterTypeFilter<"Meter"> | $Enums.MeterType
|
|
location?: StringNullableFilter<"Meter"> | string | null
|
|
isActive?: BoolFilter<"Meter"> | boolean
|
|
createdAt?: DateTimeFilter<"Meter"> | Date | string
|
|
updatedAt?: DateTimeFilter<"Meter"> | Date | string
|
|
}
|
|
|
|
export type StressfreiEmailUpsertWithWhereUniqueWithoutCustomerInput = {
|
|
where: StressfreiEmailWhereUniqueInput
|
|
update: XOR<StressfreiEmailUpdateWithoutCustomerInput, StressfreiEmailUncheckedUpdateWithoutCustomerInput>
|
|
create: XOR<StressfreiEmailCreateWithoutCustomerInput, StressfreiEmailUncheckedCreateWithoutCustomerInput>
|
|
}
|
|
|
|
export type StressfreiEmailUpdateWithWhereUniqueWithoutCustomerInput = {
|
|
where: StressfreiEmailWhereUniqueInput
|
|
data: XOR<StressfreiEmailUpdateWithoutCustomerInput, StressfreiEmailUncheckedUpdateWithoutCustomerInput>
|
|
}
|
|
|
|
export type StressfreiEmailUpdateManyWithWhereWithoutCustomerInput = {
|
|
where: StressfreiEmailScalarWhereInput
|
|
data: XOR<StressfreiEmailUpdateManyMutationInput, StressfreiEmailUncheckedUpdateManyWithoutCustomerInput>
|
|
}
|
|
|
|
export type StressfreiEmailScalarWhereInput = {
|
|
AND?: StressfreiEmailScalarWhereInput | StressfreiEmailScalarWhereInput[]
|
|
OR?: StressfreiEmailScalarWhereInput[]
|
|
NOT?: StressfreiEmailScalarWhereInput | StressfreiEmailScalarWhereInput[]
|
|
id?: IntFilter<"StressfreiEmail"> | number
|
|
customerId?: IntFilter<"StressfreiEmail"> | number
|
|
email?: StringFilter<"StressfreiEmail"> | string
|
|
platform?: StringNullableFilter<"StressfreiEmail"> | string | null
|
|
notes?: StringNullableFilter<"StressfreiEmail"> | string | null
|
|
isActive?: BoolFilter<"StressfreiEmail"> | boolean
|
|
isProvisioned?: BoolFilter<"StressfreiEmail"> | boolean
|
|
provisionedAt?: DateTimeNullableFilter<"StressfreiEmail"> | Date | string | null
|
|
provisionError?: StringNullableFilter<"StressfreiEmail"> | string | null
|
|
hasMailbox?: BoolFilter<"StressfreiEmail"> | boolean
|
|
emailPasswordEncrypted?: StringNullableFilter<"StressfreiEmail"> | string | null
|
|
createdAt?: DateTimeFilter<"StressfreiEmail"> | Date | string
|
|
updatedAt?: DateTimeFilter<"StressfreiEmail"> | Date | string
|
|
}
|
|
|
|
export type ContractUpsertWithWhereUniqueWithoutCustomerInput = {
|
|
where: ContractWhereUniqueInput
|
|
update: XOR<ContractUpdateWithoutCustomerInput, ContractUncheckedUpdateWithoutCustomerInput>
|
|
create: XOR<ContractCreateWithoutCustomerInput, ContractUncheckedCreateWithoutCustomerInput>
|
|
}
|
|
|
|
export type ContractUpdateWithWhereUniqueWithoutCustomerInput = {
|
|
where: ContractWhereUniqueInput
|
|
data: XOR<ContractUpdateWithoutCustomerInput, ContractUncheckedUpdateWithoutCustomerInput>
|
|
}
|
|
|
|
export type ContractUpdateManyWithWhereWithoutCustomerInput = {
|
|
where: ContractScalarWhereInput
|
|
data: XOR<ContractUpdateManyMutationInput, ContractUncheckedUpdateManyWithoutCustomerInput>
|
|
}
|
|
|
|
export type ContractScalarWhereInput = {
|
|
AND?: ContractScalarWhereInput | ContractScalarWhereInput[]
|
|
OR?: ContractScalarWhereInput[]
|
|
NOT?: ContractScalarWhereInput | ContractScalarWhereInput[]
|
|
id?: IntFilter<"Contract"> | number
|
|
contractNumber?: StringFilter<"Contract"> | string
|
|
customerId?: IntFilter<"Contract"> | number
|
|
type?: EnumContractTypeFilter<"Contract"> | $Enums.ContractType
|
|
status?: EnumContractStatusFilter<"Contract"> | $Enums.ContractStatus
|
|
contractCategoryId?: IntNullableFilter<"Contract"> | number | null
|
|
addressId?: IntNullableFilter<"Contract"> | number | null
|
|
billingAddressId?: IntNullableFilter<"Contract"> | number | null
|
|
bankCardId?: IntNullableFilter<"Contract"> | number | null
|
|
identityDocumentId?: IntNullableFilter<"Contract"> | number | null
|
|
salesPlatformId?: IntNullableFilter<"Contract"> | number | null
|
|
cancellationPeriodId?: IntNullableFilter<"Contract"> | number | null
|
|
contractDurationId?: IntNullableFilter<"Contract"> | number | null
|
|
previousContractId?: IntNullableFilter<"Contract"> | number | null
|
|
providerId?: IntNullableFilter<"Contract"> | number | null
|
|
tariffId?: IntNullableFilter<"Contract"> | number | null
|
|
providerName?: StringNullableFilter<"Contract"> | string | null
|
|
tariffName?: StringNullableFilter<"Contract"> | string | null
|
|
customerNumberAtProvider?: StringNullableFilter<"Contract"> | string | null
|
|
priceFirst12Months?: StringNullableFilter<"Contract"> | string | null
|
|
priceFrom13Months?: StringNullableFilter<"Contract"> | string | null
|
|
priceAfter24Months?: StringNullableFilter<"Contract"> | string | null
|
|
startDate?: DateTimeNullableFilter<"Contract"> | Date | string | null
|
|
endDate?: DateTimeNullableFilter<"Contract"> | Date | string | null
|
|
commission?: FloatNullableFilter<"Contract"> | number | null
|
|
cancellationLetterPath?: StringNullableFilter<"Contract"> | string | null
|
|
cancellationConfirmationPath?: StringNullableFilter<"Contract"> | string | null
|
|
cancellationLetterOptionsPath?: StringNullableFilter<"Contract"> | string | null
|
|
cancellationConfirmationOptionsPath?: StringNullableFilter<"Contract"> | string | null
|
|
cancellationConfirmationDate?: DateTimeNullableFilter<"Contract"> | Date | string | null
|
|
cancellationConfirmationOptionsDate?: DateTimeNullableFilter<"Contract"> | Date | string | null
|
|
wasSpecialCancellation?: BoolFilter<"Contract"> | boolean
|
|
portalUsername?: StringNullableFilter<"Contract"> | string | null
|
|
portalPasswordEncrypted?: StringNullableFilter<"Contract"> | string | null
|
|
stressfreiEmailId?: IntNullableFilter<"Contract"> | number | null
|
|
notes?: StringNullableFilter<"Contract"> | string | null
|
|
createdAt?: DateTimeFilter<"Contract"> | Date | string
|
|
updatedAt?: DateTimeFilter<"Contract"> | Date | string
|
|
}
|
|
|
|
export type CustomerRepresentativeUpsertWithWhereUniqueWithoutRepresentativeInput = {
|
|
where: CustomerRepresentativeWhereUniqueInput
|
|
update: XOR<CustomerRepresentativeUpdateWithoutRepresentativeInput, CustomerRepresentativeUncheckedUpdateWithoutRepresentativeInput>
|
|
create: XOR<CustomerRepresentativeCreateWithoutRepresentativeInput, CustomerRepresentativeUncheckedCreateWithoutRepresentativeInput>
|
|
}
|
|
|
|
export type CustomerRepresentativeUpdateWithWhereUniqueWithoutRepresentativeInput = {
|
|
where: CustomerRepresentativeWhereUniqueInput
|
|
data: XOR<CustomerRepresentativeUpdateWithoutRepresentativeInput, CustomerRepresentativeUncheckedUpdateWithoutRepresentativeInput>
|
|
}
|
|
|
|
export type CustomerRepresentativeUpdateManyWithWhereWithoutRepresentativeInput = {
|
|
where: CustomerRepresentativeScalarWhereInput
|
|
data: XOR<CustomerRepresentativeUpdateManyMutationInput, CustomerRepresentativeUncheckedUpdateManyWithoutRepresentativeInput>
|
|
}
|
|
|
|
export type CustomerRepresentativeScalarWhereInput = {
|
|
AND?: CustomerRepresentativeScalarWhereInput | CustomerRepresentativeScalarWhereInput[]
|
|
OR?: CustomerRepresentativeScalarWhereInput[]
|
|
NOT?: CustomerRepresentativeScalarWhereInput | CustomerRepresentativeScalarWhereInput[]
|
|
id?: IntFilter<"CustomerRepresentative"> | number
|
|
customerId?: IntFilter<"CustomerRepresentative"> | number
|
|
representativeId?: IntFilter<"CustomerRepresentative"> | number
|
|
notes?: StringNullableFilter<"CustomerRepresentative"> | string | null
|
|
isActive?: BoolFilter<"CustomerRepresentative"> | boolean
|
|
createdAt?: DateTimeFilter<"CustomerRepresentative"> | Date | string
|
|
updatedAt?: DateTimeFilter<"CustomerRepresentative"> | Date | string
|
|
}
|
|
|
|
export type CustomerRepresentativeUpsertWithWhereUniqueWithoutCustomerInput = {
|
|
where: CustomerRepresentativeWhereUniqueInput
|
|
update: XOR<CustomerRepresentativeUpdateWithoutCustomerInput, CustomerRepresentativeUncheckedUpdateWithoutCustomerInput>
|
|
create: XOR<CustomerRepresentativeCreateWithoutCustomerInput, CustomerRepresentativeUncheckedCreateWithoutCustomerInput>
|
|
}
|
|
|
|
export type CustomerRepresentativeUpdateWithWhereUniqueWithoutCustomerInput = {
|
|
where: CustomerRepresentativeWhereUniqueInput
|
|
data: XOR<CustomerRepresentativeUpdateWithoutCustomerInput, CustomerRepresentativeUncheckedUpdateWithoutCustomerInput>
|
|
}
|
|
|
|
export type CustomerRepresentativeUpdateManyWithWhereWithoutCustomerInput = {
|
|
where: CustomerRepresentativeScalarWhereInput
|
|
data: XOR<CustomerRepresentativeUpdateManyMutationInput, CustomerRepresentativeUncheckedUpdateManyWithoutCustomerInput>
|
|
}
|
|
|
|
export type CustomerCreateWithoutRepresentedByInput = {
|
|
customerNumber: string
|
|
type?: $Enums.CustomerType
|
|
salutation?: string | null
|
|
firstName: string
|
|
lastName: string
|
|
companyName?: string | null
|
|
foundingDate?: Date | string | null
|
|
birthDate?: Date | string | null
|
|
birthPlace?: string | null
|
|
email?: string | null
|
|
phone?: string | null
|
|
mobile?: string | null
|
|
taxNumber?: string | null
|
|
businessRegistrationPath?: string | null
|
|
commercialRegisterPath?: string | null
|
|
commercialRegisterNumber?: string | null
|
|
privacyPolicyPath?: string | null
|
|
notes?: string | null
|
|
portalEnabled?: boolean
|
|
portalEmail?: string | null
|
|
portalPasswordHash?: string | null
|
|
portalPasswordEncrypted?: string | null
|
|
portalLastLogin?: Date | string | null
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
user?: UserCreateNestedOneWithoutCustomerInput
|
|
addresses?: AddressCreateNestedManyWithoutCustomerInput
|
|
bankCards?: BankCardCreateNestedManyWithoutCustomerInput
|
|
identityDocuments?: IdentityDocumentCreateNestedManyWithoutCustomerInput
|
|
meters?: MeterCreateNestedManyWithoutCustomerInput
|
|
stressfreiEmails?: StressfreiEmailCreateNestedManyWithoutCustomerInput
|
|
contracts?: ContractCreateNestedManyWithoutCustomerInput
|
|
representingFor?: CustomerRepresentativeCreateNestedManyWithoutRepresentativeInput
|
|
}
|
|
|
|
export type CustomerUncheckedCreateWithoutRepresentedByInput = {
|
|
id?: number
|
|
customerNumber: string
|
|
type?: $Enums.CustomerType
|
|
salutation?: string | null
|
|
firstName: string
|
|
lastName: string
|
|
companyName?: string | null
|
|
foundingDate?: Date | string | null
|
|
birthDate?: Date | string | null
|
|
birthPlace?: string | null
|
|
email?: string | null
|
|
phone?: string | null
|
|
mobile?: string | null
|
|
taxNumber?: string | null
|
|
businessRegistrationPath?: string | null
|
|
commercialRegisterPath?: string | null
|
|
commercialRegisterNumber?: string | null
|
|
privacyPolicyPath?: string | null
|
|
notes?: string | null
|
|
portalEnabled?: boolean
|
|
portalEmail?: string | null
|
|
portalPasswordHash?: string | null
|
|
portalPasswordEncrypted?: string | null
|
|
portalLastLogin?: Date | string | null
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
user?: UserUncheckedCreateNestedOneWithoutCustomerInput
|
|
addresses?: AddressUncheckedCreateNestedManyWithoutCustomerInput
|
|
bankCards?: BankCardUncheckedCreateNestedManyWithoutCustomerInput
|
|
identityDocuments?: IdentityDocumentUncheckedCreateNestedManyWithoutCustomerInput
|
|
meters?: MeterUncheckedCreateNestedManyWithoutCustomerInput
|
|
stressfreiEmails?: StressfreiEmailUncheckedCreateNestedManyWithoutCustomerInput
|
|
contracts?: ContractUncheckedCreateNestedManyWithoutCustomerInput
|
|
representingFor?: CustomerRepresentativeUncheckedCreateNestedManyWithoutRepresentativeInput
|
|
}
|
|
|
|
export type CustomerCreateOrConnectWithoutRepresentedByInput = {
|
|
where: CustomerWhereUniqueInput
|
|
create: XOR<CustomerCreateWithoutRepresentedByInput, CustomerUncheckedCreateWithoutRepresentedByInput>
|
|
}
|
|
|
|
export type CustomerCreateWithoutRepresentingForInput = {
|
|
customerNumber: string
|
|
type?: $Enums.CustomerType
|
|
salutation?: string | null
|
|
firstName: string
|
|
lastName: string
|
|
companyName?: string | null
|
|
foundingDate?: Date | string | null
|
|
birthDate?: Date | string | null
|
|
birthPlace?: string | null
|
|
email?: string | null
|
|
phone?: string | null
|
|
mobile?: string | null
|
|
taxNumber?: string | null
|
|
businessRegistrationPath?: string | null
|
|
commercialRegisterPath?: string | null
|
|
commercialRegisterNumber?: string | null
|
|
privacyPolicyPath?: string | null
|
|
notes?: string | null
|
|
portalEnabled?: boolean
|
|
portalEmail?: string | null
|
|
portalPasswordHash?: string | null
|
|
portalPasswordEncrypted?: string | null
|
|
portalLastLogin?: Date | string | null
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
user?: UserCreateNestedOneWithoutCustomerInput
|
|
addresses?: AddressCreateNestedManyWithoutCustomerInput
|
|
bankCards?: BankCardCreateNestedManyWithoutCustomerInput
|
|
identityDocuments?: IdentityDocumentCreateNestedManyWithoutCustomerInput
|
|
meters?: MeterCreateNestedManyWithoutCustomerInput
|
|
stressfreiEmails?: StressfreiEmailCreateNestedManyWithoutCustomerInput
|
|
contracts?: ContractCreateNestedManyWithoutCustomerInput
|
|
representedBy?: CustomerRepresentativeCreateNestedManyWithoutCustomerInput
|
|
}
|
|
|
|
export type CustomerUncheckedCreateWithoutRepresentingForInput = {
|
|
id?: number
|
|
customerNumber: string
|
|
type?: $Enums.CustomerType
|
|
salutation?: string | null
|
|
firstName: string
|
|
lastName: string
|
|
companyName?: string | null
|
|
foundingDate?: Date | string | null
|
|
birthDate?: Date | string | null
|
|
birthPlace?: string | null
|
|
email?: string | null
|
|
phone?: string | null
|
|
mobile?: string | null
|
|
taxNumber?: string | null
|
|
businessRegistrationPath?: string | null
|
|
commercialRegisterPath?: string | null
|
|
commercialRegisterNumber?: string | null
|
|
privacyPolicyPath?: string | null
|
|
notes?: string | null
|
|
portalEnabled?: boolean
|
|
portalEmail?: string | null
|
|
portalPasswordHash?: string | null
|
|
portalPasswordEncrypted?: string | null
|
|
portalLastLogin?: Date | string | null
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
user?: UserUncheckedCreateNestedOneWithoutCustomerInput
|
|
addresses?: AddressUncheckedCreateNestedManyWithoutCustomerInput
|
|
bankCards?: BankCardUncheckedCreateNestedManyWithoutCustomerInput
|
|
identityDocuments?: IdentityDocumentUncheckedCreateNestedManyWithoutCustomerInput
|
|
meters?: MeterUncheckedCreateNestedManyWithoutCustomerInput
|
|
stressfreiEmails?: StressfreiEmailUncheckedCreateNestedManyWithoutCustomerInput
|
|
contracts?: ContractUncheckedCreateNestedManyWithoutCustomerInput
|
|
representedBy?: CustomerRepresentativeUncheckedCreateNestedManyWithoutCustomerInput
|
|
}
|
|
|
|
export type CustomerCreateOrConnectWithoutRepresentingForInput = {
|
|
where: CustomerWhereUniqueInput
|
|
create: XOR<CustomerCreateWithoutRepresentingForInput, CustomerUncheckedCreateWithoutRepresentingForInput>
|
|
}
|
|
|
|
export type CustomerUpsertWithoutRepresentedByInput = {
|
|
update: XOR<CustomerUpdateWithoutRepresentedByInput, CustomerUncheckedUpdateWithoutRepresentedByInput>
|
|
create: XOR<CustomerCreateWithoutRepresentedByInput, CustomerUncheckedCreateWithoutRepresentedByInput>
|
|
where?: CustomerWhereInput
|
|
}
|
|
|
|
export type CustomerUpdateToOneWithWhereWithoutRepresentedByInput = {
|
|
where?: CustomerWhereInput
|
|
data: XOR<CustomerUpdateWithoutRepresentedByInput, CustomerUncheckedUpdateWithoutRepresentedByInput>
|
|
}
|
|
|
|
export type CustomerUpdateWithoutRepresentedByInput = {
|
|
customerNumber?: StringFieldUpdateOperationsInput | string
|
|
type?: EnumCustomerTypeFieldUpdateOperationsInput | $Enums.CustomerType
|
|
salutation?: NullableStringFieldUpdateOperationsInput | string | null
|
|
firstName?: StringFieldUpdateOperationsInput | string
|
|
lastName?: StringFieldUpdateOperationsInput | string
|
|
companyName?: NullableStringFieldUpdateOperationsInput | string | null
|
|
foundingDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
birthDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
birthPlace?: NullableStringFieldUpdateOperationsInput | string | null
|
|
email?: NullableStringFieldUpdateOperationsInput | string | null
|
|
phone?: NullableStringFieldUpdateOperationsInput | string | null
|
|
mobile?: NullableStringFieldUpdateOperationsInput | string | null
|
|
taxNumber?: NullableStringFieldUpdateOperationsInput | string | null
|
|
businessRegistrationPath?: NullableStringFieldUpdateOperationsInput | string | null
|
|
commercialRegisterPath?: NullableStringFieldUpdateOperationsInput | string | null
|
|
commercialRegisterNumber?: NullableStringFieldUpdateOperationsInput | string | null
|
|
privacyPolicyPath?: NullableStringFieldUpdateOperationsInput | string | null
|
|
notes?: NullableStringFieldUpdateOperationsInput | string | null
|
|
portalEnabled?: BoolFieldUpdateOperationsInput | boolean
|
|
portalEmail?: NullableStringFieldUpdateOperationsInput | string | null
|
|
portalPasswordHash?: NullableStringFieldUpdateOperationsInput | string | null
|
|
portalPasswordEncrypted?: NullableStringFieldUpdateOperationsInput | string | null
|
|
portalLastLogin?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
user?: UserUpdateOneWithoutCustomerNestedInput
|
|
addresses?: AddressUpdateManyWithoutCustomerNestedInput
|
|
bankCards?: BankCardUpdateManyWithoutCustomerNestedInput
|
|
identityDocuments?: IdentityDocumentUpdateManyWithoutCustomerNestedInput
|
|
meters?: MeterUpdateManyWithoutCustomerNestedInput
|
|
stressfreiEmails?: StressfreiEmailUpdateManyWithoutCustomerNestedInput
|
|
contracts?: ContractUpdateManyWithoutCustomerNestedInput
|
|
representingFor?: CustomerRepresentativeUpdateManyWithoutRepresentativeNestedInput
|
|
}
|
|
|
|
export type CustomerUncheckedUpdateWithoutRepresentedByInput = {
|
|
id?: IntFieldUpdateOperationsInput | number
|
|
customerNumber?: StringFieldUpdateOperationsInput | string
|
|
type?: EnumCustomerTypeFieldUpdateOperationsInput | $Enums.CustomerType
|
|
salutation?: NullableStringFieldUpdateOperationsInput | string | null
|
|
firstName?: StringFieldUpdateOperationsInput | string
|
|
lastName?: StringFieldUpdateOperationsInput | string
|
|
companyName?: NullableStringFieldUpdateOperationsInput | string | null
|
|
foundingDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
birthDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
birthPlace?: NullableStringFieldUpdateOperationsInput | string | null
|
|
email?: NullableStringFieldUpdateOperationsInput | string | null
|
|
phone?: NullableStringFieldUpdateOperationsInput | string | null
|
|
mobile?: NullableStringFieldUpdateOperationsInput | string | null
|
|
taxNumber?: NullableStringFieldUpdateOperationsInput | string | null
|
|
businessRegistrationPath?: NullableStringFieldUpdateOperationsInput | string | null
|
|
commercialRegisterPath?: NullableStringFieldUpdateOperationsInput | string | null
|
|
commercialRegisterNumber?: NullableStringFieldUpdateOperationsInput | string | null
|
|
privacyPolicyPath?: NullableStringFieldUpdateOperationsInput | string | null
|
|
notes?: NullableStringFieldUpdateOperationsInput | string | null
|
|
portalEnabled?: BoolFieldUpdateOperationsInput | boolean
|
|
portalEmail?: NullableStringFieldUpdateOperationsInput | string | null
|
|
portalPasswordHash?: NullableStringFieldUpdateOperationsInput | string | null
|
|
portalPasswordEncrypted?: NullableStringFieldUpdateOperationsInput | string | null
|
|
portalLastLogin?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
user?: UserUncheckedUpdateOneWithoutCustomerNestedInput
|
|
addresses?: AddressUncheckedUpdateManyWithoutCustomerNestedInput
|
|
bankCards?: BankCardUncheckedUpdateManyWithoutCustomerNestedInput
|
|
identityDocuments?: IdentityDocumentUncheckedUpdateManyWithoutCustomerNestedInput
|
|
meters?: MeterUncheckedUpdateManyWithoutCustomerNestedInput
|
|
stressfreiEmails?: StressfreiEmailUncheckedUpdateManyWithoutCustomerNestedInput
|
|
contracts?: ContractUncheckedUpdateManyWithoutCustomerNestedInput
|
|
representingFor?: CustomerRepresentativeUncheckedUpdateManyWithoutRepresentativeNestedInput
|
|
}
|
|
|
|
export type CustomerUpsertWithoutRepresentingForInput = {
|
|
update: XOR<CustomerUpdateWithoutRepresentingForInput, CustomerUncheckedUpdateWithoutRepresentingForInput>
|
|
create: XOR<CustomerCreateWithoutRepresentingForInput, CustomerUncheckedCreateWithoutRepresentingForInput>
|
|
where?: CustomerWhereInput
|
|
}
|
|
|
|
export type CustomerUpdateToOneWithWhereWithoutRepresentingForInput = {
|
|
where?: CustomerWhereInput
|
|
data: XOR<CustomerUpdateWithoutRepresentingForInput, CustomerUncheckedUpdateWithoutRepresentingForInput>
|
|
}
|
|
|
|
export type CustomerUpdateWithoutRepresentingForInput = {
|
|
customerNumber?: StringFieldUpdateOperationsInput | string
|
|
type?: EnumCustomerTypeFieldUpdateOperationsInput | $Enums.CustomerType
|
|
salutation?: NullableStringFieldUpdateOperationsInput | string | null
|
|
firstName?: StringFieldUpdateOperationsInput | string
|
|
lastName?: StringFieldUpdateOperationsInput | string
|
|
companyName?: NullableStringFieldUpdateOperationsInput | string | null
|
|
foundingDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
birthDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
birthPlace?: NullableStringFieldUpdateOperationsInput | string | null
|
|
email?: NullableStringFieldUpdateOperationsInput | string | null
|
|
phone?: NullableStringFieldUpdateOperationsInput | string | null
|
|
mobile?: NullableStringFieldUpdateOperationsInput | string | null
|
|
taxNumber?: NullableStringFieldUpdateOperationsInput | string | null
|
|
businessRegistrationPath?: NullableStringFieldUpdateOperationsInput | string | null
|
|
commercialRegisterPath?: NullableStringFieldUpdateOperationsInput | string | null
|
|
commercialRegisterNumber?: NullableStringFieldUpdateOperationsInput | string | null
|
|
privacyPolicyPath?: NullableStringFieldUpdateOperationsInput | string | null
|
|
notes?: NullableStringFieldUpdateOperationsInput | string | null
|
|
portalEnabled?: BoolFieldUpdateOperationsInput | boolean
|
|
portalEmail?: NullableStringFieldUpdateOperationsInput | string | null
|
|
portalPasswordHash?: NullableStringFieldUpdateOperationsInput | string | null
|
|
portalPasswordEncrypted?: NullableStringFieldUpdateOperationsInput | string | null
|
|
portalLastLogin?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
user?: UserUpdateOneWithoutCustomerNestedInput
|
|
addresses?: AddressUpdateManyWithoutCustomerNestedInput
|
|
bankCards?: BankCardUpdateManyWithoutCustomerNestedInput
|
|
identityDocuments?: IdentityDocumentUpdateManyWithoutCustomerNestedInput
|
|
meters?: MeterUpdateManyWithoutCustomerNestedInput
|
|
stressfreiEmails?: StressfreiEmailUpdateManyWithoutCustomerNestedInput
|
|
contracts?: ContractUpdateManyWithoutCustomerNestedInput
|
|
representedBy?: CustomerRepresentativeUpdateManyWithoutCustomerNestedInput
|
|
}
|
|
|
|
export type CustomerUncheckedUpdateWithoutRepresentingForInput = {
|
|
id?: IntFieldUpdateOperationsInput | number
|
|
customerNumber?: StringFieldUpdateOperationsInput | string
|
|
type?: EnumCustomerTypeFieldUpdateOperationsInput | $Enums.CustomerType
|
|
salutation?: NullableStringFieldUpdateOperationsInput | string | null
|
|
firstName?: StringFieldUpdateOperationsInput | string
|
|
lastName?: StringFieldUpdateOperationsInput | string
|
|
companyName?: NullableStringFieldUpdateOperationsInput | string | null
|
|
foundingDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
birthDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
birthPlace?: NullableStringFieldUpdateOperationsInput | string | null
|
|
email?: NullableStringFieldUpdateOperationsInput | string | null
|
|
phone?: NullableStringFieldUpdateOperationsInput | string | null
|
|
mobile?: NullableStringFieldUpdateOperationsInput | string | null
|
|
taxNumber?: NullableStringFieldUpdateOperationsInput | string | null
|
|
businessRegistrationPath?: NullableStringFieldUpdateOperationsInput | string | null
|
|
commercialRegisterPath?: NullableStringFieldUpdateOperationsInput | string | null
|
|
commercialRegisterNumber?: NullableStringFieldUpdateOperationsInput | string | null
|
|
privacyPolicyPath?: NullableStringFieldUpdateOperationsInput | string | null
|
|
notes?: NullableStringFieldUpdateOperationsInput | string | null
|
|
portalEnabled?: BoolFieldUpdateOperationsInput | boolean
|
|
portalEmail?: NullableStringFieldUpdateOperationsInput | string | null
|
|
portalPasswordHash?: NullableStringFieldUpdateOperationsInput | string | null
|
|
portalPasswordEncrypted?: NullableStringFieldUpdateOperationsInput | string | null
|
|
portalLastLogin?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
user?: UserUncheckedUpdateOneWithoutCustomerNestedInput
|
|
addresses?: AddressUncheckedUpdateManyWithoutCustomerNestedInput
|
|
bankCards?: BankCardUncheckedUpdateManyWithoutCustomerNestedInput
|
|
identityDocuments?: IdentityDocumentUncheckedUpdateManyWithoutCustomerNestedInput
|
|
meters?: MeterUncheckedUpdateManyWithoutCustomerNestedInput
|
|
stressfreiEmails?: StressfreiEmailUncheckedUpdateManyWithoutCustomerNestedInput
|
|
contracts?: ContractUncheckedUpdateManyWithoutCustomerNestedInput
|
|
representedBy?: CustomerRepresentativeUncheckedUpdateManyWithoutCustomerNestedInput
|
|
}
|
|
|
|
export type CustomerCreateWithoutAddressesInput = {
|
|
customerNumber: string
|
|
type?: $Enums.CustomerType
|
|
salutation?: string | null
|
|
firstName: string
|
|
lastName: string
|
|
companyName?: string | null
|
|
foundingDate?: Date | string | null
|
|
birthDate?: Date | string | null
|
|
birthPlace?: string | null
|
|
email?: string | null
|
|
phone?: string | null
|
|
mobile?: string | null
|
|
taxNumber?: string | null
|
|
businessRegistrationPath?: string | null
|
|
commercialRegisterPath?: string | null
|
|
commercialRegisterNumber?: string | null
|
|
privacyPolicyPath?: string | null
|
|
notes?: string | null
|
|
portalEnabled?: boolean
|
|
portalEmail?: string | null
|
|
portalPasswordHash?: string | null
|
|
portalPasswordEncrypted?: string | null
|
|
portalLastLogin?: Date | string | null
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
user?: UserCreateNestedOneWithoutCustomerInput
|
|
bankCards?: BankCardCreateNestedManyWithoutCustomerInput
|
|
identityDocuments?: IdentityDocumentCreateNestedManyWithoutCustomerInput
|
|
meters?: MeterCreateNestedManyWithoutCustomerInput
|
|
stressfreiEmails?: StressfreiEmailCreateNestedManyWithoutCustomerInput
|
|
contracts?: ContractCreateNestedManyWithoutCustomerInput
|
|
representingFor?: CustomerRepresentativeCreateNestedManyWithoutRepresentativeInput
|
|
representedBy?: CustomerRepresentativeCreateNestedManyWithoutCustomerInput
|
|
}
|
|
|
|
export type CustomerUncheckedCreateWithoutAddressesInput = {
|
|
id?: number
|
|
customerNumber: string
|
|
type?: $Enums.CustomerType
|
|
salutation?: string | null
|
|
firstName: string
|
|
lastName: string
|
|
companyName?: string | null
|
|
foundingDate?: Date | string | null
|
|
birthDate?: Date | string | null
|
|
birthPlace?: string | null
|
|
email?: string | null
|
|
phone?: string | null
|
|
mobile?: string | null
|
|
taxNumber?: string | null
|
|
businessRegistrationPath?: string | null
|
|
commercialRegisterPath?: string | null
|
|
commercialRegisterNumber?: string | null
|
|
privacyPolicyPath?: string | null
|
|
notes?: string | null
|
|
portalEnabled?: boolean
|
|
portalEmail?: string | null
|
|
portalPasswordHash?: string | null
|
|
portalPasswordEncrypted?: string | null
|
|
portalLastLogin?: Date | string | null
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
user?: UserUncheckedCreateNestedOneWithoutCustomerInput
|
|
bankCards?: BankCardUncheckedCreateNestedManyWithoutCustomerInput
|
|
identityDocuments?: IdentityDocumentUncheckedCreateNestedManyWithoutCustomerInput
|
|
meters?: MeterUncheckedCreateNestedManyWithoutCustomerInput
|
|
stressfreiEmails?: StressfreiEmailUncheckedCreateNestedManyWithoutCustomerInput
|
|
contracts?: ContractUncheckedCreateNestedManyWithoutCustomerInput
|
|
representingFor?: CustomerRepresentativeUncheckedCreateNestedManyWithoutRepresentativeInput
|
|
representedBy?: CustomerRepresentativeUncheckedCreateNestedManyWithoutCustomerInput
|
|
}
|
|
|
|
export type CustomerCreateOrConnectWithoutAddressesInput = {
|
|
where: CustomerWhereUniqueInput
|
|
create: XOR<CustomerCreateWithoutAddressesInput, CustomerUncheckedCreateWithoutAddressesInput>
|
|
}
|
|
|
|
export type ContractCreateWithoutAddressInput = {
|
|
contractNumber: string
|
|
type: $Enums.ContractType
|
|
status?: $Enums.ContractStatus
|
|
providerName?: string | null
|
|
tariffName?: string | null
|
|
customerNumberAtProvider?: string | null
|
|
priceFirst12Months?: string | null
|
|
priceFrom13Months?: string | null
|
|
priceAfter24Months?: string | null
|
|
startDate?: Date | string | null
|
|
endDate?: Date | string | null
|
|
commission?: number | null
|
|
cancellationLetterPath?: string | null
|
|
cancellationConfirmationPath?: string | null
|
|
cancellationLetterOptionsPath?: string | null
|
|
cancellationConfirmationOptionsPath?: string | null
|
|
cancellationConfirmationDate?: Date | string | null
|
|
cancellationConfirmationOptionsDate?: Date | string | null
|
|
wasSpecialCancellation?: boolean
|
|
portalUsername?: string | null
|
|
portalPasswordEncrypted?: string | null
|
|
notes?: string | null
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
customer: CustomerCreateNestedOneWithoutContractsInput
|
|
contractCategory?: ContractCategoryCreateNestedOneWithoutContractsInput
|
|
billingAddress?: AddressCreateNestedOneWithoutContractsAsBillingInput
|
|
bankCard?: BankCardCreateNestedOneWithoutContractsInput
|
|
identityDocument?: IdentityDocumentCreateNestedOneWithoutContractsInput
|
|
salesPlatform?: SalesPlatformCreateNestedOneWithoutContractsInput
|
|
cancellationPeriod?: CancellationPeriodCreateNestedOneWithoutContractsInput
|
|
contractDuration?: ContractDurationCreateNestedOneWithoutContractsInput
|
|
previousContract?: ContractCreateNestedOneWithoutFollowUpContractInput
|
|
followUpContract?: ContractCreateNestedOneWithoutPreviousContractInput
|
|
provider?: ProviderCreateNestedOneWithoutContractsInput
|
|
tariff?: TariffCreateNestedOneWithoutContractsInput
|
|
stressfreiEmail?: StressfreiEmailCreateNestedOneWithoutContractsInput
|
|
energyDetails?: EnergyContractDetailsCreateNestedOneWithoutContractInput
|
|
internetDetails?: InternetContractDetailsCreateNestedOneWithoutContractInput
|
|
mobileDetails?: MobileContractDetailsCreateNestedOneWithoutContractInput
|
|
tvDetails?: TvContractDetailsCreateNestedOneWithoutContractInput
|
|
carInsuranceDetails?: CarInsuranceDetailsCreateNestedOneWithoutContractInput
|
|
tasks?: ContractTaskCreateNestedManyWithoutContractInput
|
|
assignedEmails?: CachedEmailCreateNestedManyWithoutContractInput
|
|
}
|
|
|
|
export type ContractUncheckedCreateWithoutAddressInput = {
|
|
id?: number
|
|
contractNumber: string
|
|
customerId: number
|
|
type: $Enums.ContractType
|
|
status?: $Enums.ContractStatus
|
|
contractCategoryId?: number | null
|
|
billingAddressId?: number | null
|
|
bankCardId?: number | null
|
|
identityDocumentId?: number | null
|
|
salesPlatformId?: number | null
|
|
cancellationPeriodId?: number | null
|
|
contractDurationId?: number | null
|
|
previousContractId?: number | null
|
|
providerId?: number | null
|
|
tariffId?: number | null
|
|
providerName?: string | null
|
|
tariffName?: string | null
|
|
customerNumberAtProvider?: string | null
|
|
priceFirst12Months?: string | null
|
|
priceFrom13Months?: string | null
|
|
priceAfter24Months?: string | null
|
|
startDate?: Date | string | null
|
|
endDate?: Date | string | null
|
|
commission?: number | null
|
|
cancellationLetterPath?: string | null
|
|
cancellationConfirmationPath?: string | null
|
|
cancellationLetterOptionsPath?: string | null
|
|
cancellationConfirmationOptionsPath?: string | null
|
|
cancellationConfirmationDate?: Date | string | null
|
|
cancellationConfirmationOptionsDate?: Date | string | null
|
|
wasSpecialCancellation?: boolean
|
|
portalUsername?: string | null
|
|
portalPasswordEncrypted?: string | null
|
|
stressfreiEmailId?: number | null
|
|
notes?: string | null
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
followUpContract?: ContractUncheckedCreateNestedOneWithoutPreviousContractInput
|
|
energyDetails?: EnergyContractDetailsUncheckedCreateNestedOneWithoutContractInput
|
|
internetDetails?: InternetContractDetailsUncheckedCreateNestedOneWithoutContractInput
|
|
mobileDetails?: MobileContractDetailsUncheckedCreateNestedOneWithoutContractInput
|
|
tvDetails?: TvContractDetailsUncheckedCreateNestedOneWithoutContractInput
|
|
carInsuranceDetails?: CarInsuranceDetailsUncheckedCreateNestedOneWithoutContractInput
|
|
tasks?: ContractTaskUncheckedCreateNestedManyWithoutContractInput
|
|
assignedEmails?: CachedEmailUncheckedCreateNestedManyWithoutContractInput
|
|
}
|
|
|
|
export type ContractCreateOrConnectWithoutAddressInput = {
|
|
where: ContractWhereUniqueInput
|
|
create: XOR<ContractCreateWithoutAddressInput, ContractUncheckedCreateWithoutAddressInput>
|
|
}
|
|
|
|
export type ContractCreateManyAddressInputEnvelope = {
|
|
data: ContractCreateManyAddressInput | ContractCreateManyAddressInput[]
|
|
skipDuplicates?: boolean
|
|
}
|
|
|
|
export type ContractCreateWithoutBillingAddressInput = {
|
|
contractNumber: string
|
|
type: $Enums.ContractType
|
|
status?: $Enums.ContractStatus
|
|
providerName?: string | null
|
|
tariffName?: string | null
|
|
customerNumberAtProvider?: string | null
|
|
priceFirst12Months?: string | null
|
|
priceFrom13Months?: string | null
|
|
priceAfter24Months?: string | null
|
|
startDate?: Date | string | null
|
|
endDate?: Date | string | null
|
|
commission?: number | null
|
|
cancellationLetterPath?: string | null
|
|
cancellationConfirmationPath?: string | null
|
|
cancellationLetterOptionsPath?: string | null
|
|
cancellationConfirmationOptionsPath?: string | null
|
|
cancellationConfirmationDate?: Date | string | null
|
|
cancellationConfirmationOptionsDate?: Date | string | null
|
|
wasSpecialCancellation?: boolean
|
|
portalUsername?: string | null
|
|
portalPasswordEncrypted?: string | null
|
|
notes?: string | null
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
customer: CustomerCreateNestedOneWithoutContractsInput
|
|
contractCategory?: ContractCategoryCreateNestedOneWithoutContractsInput
|
|
address?: AddressCreateNestedOneWithoutContractsAsDeliveryInput
|
|
bankCard?: BankCardCreateNestedOneWithoutContractsInput
|
|
identityDocument?: IdentityDocumentCreateNestedOneWithoutContractsInput
|
|
salesPlatform?: SalesPlatformCreateNestedOneWithoutContractsInput
|
|
cancellationPeriod?: CancellationPeriodCreateNestedOneWithoutContractsInput
|
|
contractDuration?: ContractDurationCreateNestedOneWithoutContractsInput
|
|
previousContract?: ContractCreateNestedOneWithoutFollowUpContractInput
|
|
followUpContract?: ContractCreateNestedOneWithoutPreviousContractInput
|
|
provider?: ProviderCreateNestedOneWithoutContractsInput
|
|
tariff?: TariffCreateNestedOneWithoutContractsInput
|
|
stressfreiEmail?: StressfreiEmailCreateNestedOneWithoutContractsInput
|
|
energyDetails?: EnergyContractDetailsCreateNestedOneWithoutContractInput
|
|
internetDetails?: InternetContractDetailsCreateNestedOneWithoutContractInput
|
|
mobileDetails?: MobileContractDetailsCreateNestedOneWithoutContractInput
|
|
tvDetails?: TvContractDetailsCreateNestedOneWithoutContractInput
|
|
carInsuranceDetails?: CarInsuranceDetailsCreateNestedOneWithoutContractInput
|
|
tasks?: ContractTaskCreateNestedManyWithoutContractInput
|
|
assignedEmails?: CachedEmailCreateNestedManyWithoutContractInput
|
|
}
|
|
|
|
export type ContractUncheckedCreateWithoutBillingAddressInput = {
|
|
id?: number
|
|
contractNumber: string
|
|
customerId: number
|
|
type: $Enums.ContractType
|
|
status?: $Enums.ContractStatus
|
|
contractCategoryId?: number | null
|
|
addressId?: number | null
|
|
bankCardId?: number | null
|
|
identityDocumentId?: number | null
|
|
salesPlatformId?: number | null
|
|
cancellationPeriodId?: number | null
|
|
contractDurationId?: number | null
|
|
previousContractId?: number | null
|
|
providerId?: number | null
|
|
tariffId?: number | null
|
|
providerName?: string | null
|
|
tariffName?: string | null
|
|
customerNumberAtProvider?: string | null
|
|
priceFirst12Months?: string | null
|
|
priceFrom13Months?: string | null
|
|
priceAfter24Months?: string | null
|
|
startDate?: Date | string | null
|
|
endDate?: Date | string | null
|
|
commission?: number | null
|
|
cancellationLetterPath?: string | null
|
|
cancellationConfirmationPath?: string | null
|
|
cancellationLetterOptionsPath?: string | null
|
|
cancellationConfirmationOptionsPath?: string | null
|
|
cancellationConfirmationDate?: Date | string | null
|
|
cancellationConfirmationOptionsDate?: Date | string | null
|
|
wasSpecialCancellation?: boolean
|
|
portalUsername?: string | null
|
|
portalPasswordEncrypted?: string | null
|
|
stressfreiEmailId?: number | null
|
|
notes?: string | null
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
followUpContract?: ContractUncheckedCreateNestedOneWithoutPreviousContractInput
|
|
energyDetails?: EnergyContractDetailsUncheckedCreateNestedOneWithoutContractInput
|
|
internetDetails?: InternetContractDetailsUncheckedCreateNestedOneWithoutContractInput
|
|
mobileDetails?: MobileContractDetailsUncheckedCreateNestedOneWithoutContractInput
|
|
tvDetails?: TvContractDetailsUncheckedCreateNestedOneWithoutContractInput
|
|
carInsuranceDetails?: CarInsuranceDetailsUncheckedCreateNestedOneWithoutContractInput
|
|
tasks?: ContractTaskUncheckedCreateNestedManyWithoutContractInput
|
|
assignedEmails?: CachedEmailUncheckedCreateNestedManyWithoutContractInput
|
|
}
|
|
|
|
export type ContractCreateOrConnectWithoutBillingAddressInput = {
|
|
where: ContractWhereUniqueInput
|
|
create: XOR<ContractCreateWithoutBillingAddressInput, ContractUncheckedCreateWithoutBillingAddressInput>
|
|
}
|
|
|
|
export type ContractCreateManyBillingAddressInputEnvelope = {
|
|
data: ContractCreateManyBillingAddressInput | ContractCreateManyBillingAddressInput[]
|
|
skipDuplicates?: boolean
|
|
}
|
|
|
|
export type CustomerUpsertWithoutAddressesInput = {
|
|
update: XOR<CustomerUpdateWithoutAddressesInput, CustomerUncheckedUpdateWithoutAddressesInput>
|
|
create: XOR<CustomerCreateWithoutAddressesInput, CustomerUncheckedCreateWithoutAddressesInput>
|
|
where?: CustomerWhereInput
|
|
}
|
|
|
|
export type CustomerUpdateToOneWithWhereWithoutAddressesInput = {
|
|
where?: CustomerWhereInput
|
|
data: XOR<CustomerUpdateWithoutAddressesInput, CustomerUncheckedUpdateWithoutAddressesInput>
|
|
}
|
|
|
|
export type CustomerUpdateWithoutAddressesInput = {
|
|
customerNumber?: StringFieldUpdateOperationsInput | string
|
|
type?: EnumCustomerTypeFieldUpdateOperationsInput | $Enums.CustomerType
|
|
salutation?: NullableStringFieldUpdateOperationsInput | string | null
|
|
firstName?: StringFieldUpdateOperationsInput | string
|
|
lastName?: StringFieldUpdateOperationsInput | string
|
|
companyName?: NullableStringFieldUpdateOperationsInput | string | null
|
|
foundingDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
birthDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
birthPlace?: NullableStringFieldUpdateOperationsInput | string | null
|
|
email?: NullableStringFieldUpdateOperationsInput | string | null
|
|
phone?: NullableStringFieldUpdateOperationsInput | string | null
|
|
mobile?: NullableStringFieldUpdateOperationsInput | string | null
|
|
taxNumber?: NullableStringFieldUpdateOperationsInput | string | null
|
|
businessRegistrationPath?: NullableStringFieldUpdateOperationsInput | string | null
|
|
commercialRegisterPath?: NullableStringFieldUpdateOperationsInput | string | null
|
|
commercialRegisterNumber?: NullableStringFieldUpdateOperationsInput | string | null
|
|
privacyPolicyPath?: NullableStringFieldUpdateOperationsInput | string | null
|
|
notes?: NullableStringFieldUpdateOperationsInput | string | null
|
|
portalEnabled?: BoolFieldUpdateOperationsInput | boolean
|
|
portalEmail?: NullableStringFieldUpdateOperationsInput | string | null
|
|
portalPasswordHash?: NullableStringFieldUpdateOperationsInput | string | null
|
|
portalPasswordEncrypted?: NullableStringFieldUpdateOperationsInput | string | null
|
|
portalLastLogin?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
user?: UserUpdateOneWithoutCustomerNestedInput
|
|
bankCards?: BankCardUpdateManyWithoutCustomerNestedInput
|
|
identityDocuments?: IdentityDocumentUpdateManyWithoutCustomerNestedInput
|
|
meters?: MeterUpdateManyWithoutCustomerNestedInput
|
|
stressfreiEmails?: StressfreiEmailUpdateManyWithoutCustomerNestedInput
|
|
contracts?: ContractUpdateManyWithoutCustomerNestedInput
|
|
representingFor?: CustomerRepresentativeUpdateManyWithoutRepresentativeNestedInput
|
|
representedBy?: CustomerRepresentativeUpdateManyWithoutCustomerNestedInput
|
|
}
|
|
|
|
export type CustomerUncheckedUpdateWithoutAddressesInput = {
|
|
id?: IntFieldUpdateOperationsInput | number
|
|
customerNumber?: StringFieldUpdateOperationsInput | string
|
|
type?: EnumCustomerTypeFieldUpdateOperationsInput | $Enums.CustomerType
|
|
salutation?: NullableStringFieldUpdateOperationsInput | string | null
|
|
firstName?: StringFieldUpdateOperationsInput | string
|
|
lastName?: StringFieldUpdateOperationsInput | string
|
|
companyName?: NullableStringFieldUpdateOperationsInput | string | null
|
|
foundingDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
birthDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
birthPlace?: NullableStringFieldUpdateOperationsInput | string | null
|
|
email?: NullableStringFieldUpdateOperationsInput | string | null
|
|
phone?: NullableStringFieldUpdateOperationsInput | string | null
|
|
mobile?: NullableStringFieldUpdateOperationsInput | string | null
|
|
taxNumber?: NullableStringFieldUpdateOperationsInput | string | null
|
|
businessRegistrationPath?: NullableStringFieldUpdateOperationsInput | string | null
|
|
commercialRegisterPath?: NullableStringFieldUpdateOperationsInput | string | null
|
|
commercialRegisterNumber?: NullableStringFieldUpdateOperationsInput | string | null
|
|
privacyPolicyPath?: NullableStringFieldUpdateOperationsInput | string | null
|
|
notes?: NullableStringFieldUpdateOperationsInput | string | null
|
|
portalEnabled?: BoolFieldUpdateOperationsInput | boolean
|
|
portalEmail?: NullableStringFieldUpdateOperationsInput | string | null
|
|
portalPasswordHash?: NullableStringFieldUpdateOperationsInput | string | null
|
|
portalPasswordEncrypted?: NullableStringFieldUpdateOperationsInput | string | null
|
|
portalLastLogin?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
user?: UserUncheckedUpdateOneWithoutCustomerNestedInput
|
|
bankCards?: BankCardUncheckedUpdateManyWithoutCustomerNestedInput
|
|
identityDocuments?: IdentityDocumentUncheckedUpdateManyWithoutCustomerNestedInput
|
|
meters?: MeterUncheckedUpdateManyWithoutCustomerNestedInput
|
|
stressfreiEmails?: StressfreiEmailUncheckedUpdateManyWithoutCustomerNestedInput
|
|
contracts?: ContractUncheckedUpdateManyWithoutCustomerNestedInput
|
|
representingFor?: CustomerRepresentativeUncheckedUpdateManyWithoutRepresentativeNestedInput
|
|
representedBy?: CustomerRepresentativeUncheckedUpdateManyWithoutCustomerNestedInput
|
|
}
|
|
|
|
export type ContractUpsertWithWhereUniqueWithoutAddressInput = {
|
|
where: ContractWhereUniqueInput
|
|
update: XOR<ContractUpdateWithoutAddressInput, ContractUncheckedUpdateWithoutAddressInput>
|
|
create: XOR<ContractCreateWithoutAddressInput, ContractUncheckedCreateWithoutAddressInput>
|
|
}
|
|
|
|
export type ContractUpdateWithWhereUniqueWithoutAddressInput = {
|
|
where: ContractWhereUniqueInput
|
|
data: XOR<ContractUpdateWithoutAddressInput, ContractUncheckedUpdateWithoutAddressInput>
|
|
}
|
|
|
|
export type ContractUpdateManyWithWhereWithoutAddressInput = {
|
|
where: ContractScalarWhereInput
|
|
data: XOR<ContractUpdateManyMutationInput, ContractUncheckedUpdateManyWithoutAddressInput>
|
|
}
|
|
|
|
export type ContractUpsertWithWhereUniqueWithoutBillingAddressInput = {
|
|
where: ContractWhereUniqueInput
|
|
update: XOR<ContractUpdateWithoutBillingAddressInput, ContractUncheckedUpdateWithoutBillingAddressInput>
|
|
create: XOR<ContractCreateWithoutBillingAddressInput, ContractUncheckedCreateWithoutBillingAddressInput>
|
|
}
|
|
|
|
export type ContractUpdateWithWhereUniqueWithoutBillingAddressInput = {
|
|
where: ContractWhereUniqueInput
|
|
data: XOR<ContractUpdateWithoutBillingAddressInput, ContractUncheckedUpdateWithoutBillingAddressInput>
|
|
}
|
|
|
|
export type ContractUpdateManyWithWhereWithoutBillingAddressInput = {
|
|
where: ContractScalarWhereInput
|
|
data: XOR<ContractUpdateManyMutationInput, ContractUncheckedUpdateManyWithoutBillingAddressInput>
|
|
}
|
|
|
|
export type CustomerCreateWithoutBankCardsInput = {
|
|
customerNumber: string
|
|
type?: $Enums.CustomerType
|
|
salutation?: string | null
|
|
firstName: string
|
|
lastName: string
|
|
companyName?: string | null
|
|
foundingDate?: Date | string | null
|
|
birthDate?: Date | string | null
|
|
birthPlace?: string | null
|
|
email?: string | null
|
|
phone?: string | null
|
|
mobile?: string | null
|
|
taxNumber?: string | null
|
|
businessRegistrationPath?: string | null
|
|
commercialRegisterPath?: string | null
|
|
commercialRegisterNumber?: string | null
|
|
privacyPolicyPath?: string | null
|
|
notes?: string | null
|
|
portalEnabled?: boolean
|
|
portalEmail?: string | null
|
|
portalPasswordHash?: string | null
|
|
portalPasswordEncrypted?: string | null
|
|
portalLastLogin?: Date | string | null
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
user?: UserCreateNestedOneWithoutCustomerInput
|
|
addresses?: AddressCreateNestedManyWithoutCustomerInput
|
|
identityDocuments?: IdentityDocumentCreateNestedManyWithoutCustomerInput
|
|
meters?: MeterCreateNestedManyWithoutCustomerInput
|
|
stressfreiEmails?: StressfreiEmailCreateNestedManyWithoutCustomerInput
|
|
contracts?: ContractCreateNestedManyWithoutCustomerInput
|
|
representingFor?: CustomerRepresentativeCreateNestedManyWithoutRepresentativeInput
|
|
representedBy?: CustomerRepresentativeCreateNestedManyWithoutCustomerInput
|
|
}
|
|
|
|
export type CustomerUncheckedCreateWithoutBankCardsInput = {
|
|
id?: number
|
|
customerNumber: string
|
|
type?: $Enums.CustomerType
|
|
salutation?: string | null
|
|
firstName: string
|
|
lastName: string
|
|
companyName?: string | null
|
|
foundingDate?: Date | string | null
|
|
birthDate?: Date | string | null
|
|
birthPlace?: string | null
|
|
email?: string | null
|
|
phone?: string | null
|
|
mobile?: string | null
|
|
taxNumber?: string | null
|
|
businessRegistrationPath?: string | null
|
|
commercialRegisterPath?: string | null
|
|
commercialRegisterNumber?: string | null
|
|
privacyPolicyPath?: string | null
|
|
notes?: string | null
|
|
portalEnabled?: boolean
|
|
portalEmail?: string | null
|
|
portalPasswordHash?: string | null
|
|
portalPasswordEncrypted?: string | null
|
|
portalLastLogin?: Date | string | null
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
user?: UserUncheckedCreateNestedOneWithoutCustomerInput
|
|
addresses?: AddressUncheckedCreateNestedManyWithoutCustomerInput
|
|
identityDocuments?: IdentityDocumentUncheckedCreateNestedManyWithoutCustomerInput
|
|
meters?: MeterUncheckedCreateNestedManyWithoutCustomerInput
|
|
stressfreiEmails?: StressfreiEmailUncheckedCreateNestedManyWithoutCustomerInput
|
|
contracts?: ContractUncheckedCreateNestedManyWithoutCustomerInput
|
|
representingFor?: CustomerRepresentativeUncheckedCreateNestedManyWithoutRepresentativeInput
|
|
representedBy?: CustomerRepresentativeUncheckedCreateNestedManyWithoutCustomerInput
|
|
}
|
|
|
|
export type CustomerCreateOrConnectWithoutBankCardsInput = {
|
|
where: CustomerWhereUniqueInput
|
|
create: XOR<CustomerCreateWithoutBankCardsInput, CustomerUncheckedCreateWithoutBankCardsInput>
|
|
}
|
|
|
|
export type ContractCreateWithoutBankCardInput = {
|
|
contractNumber: string
|
|
type: $Enums.ContractType
|
|
status?: $Enums.ContractStatus
|
|
providerName?: string | null
|
|
tariffName?: string | null
|
|
customerNumberAtProvider?: string | null
|
|
priceFirst12Months?: string | null
|
|
priceFrom13Months?: string | null
|
|
priceAfter24Months?: string | null
|
|
startDate?: Date | string | null
|
|
endDate?: Date | string | null
|
|
commission?: number | null
|
|
cancellationLetterPath?: string | null
|
|
cancellationConfirmationPath?: string | null
|
|
cancellationLetterOptionsPath?: string | null
|
|
cancellationConfirmationOptionsPath?: string | null
|
|
cancellationConfirmationDate?: Date | string | null
|
|
cancellationConfirmationOptionsDate?: Date | string | null
|
|
wasSpecialCancellation?: boolean
|
|
portalUsername?: string | null
|
|
portalPasswordEncrypted?: string | null
|
|
notes?: string | null
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
customer: CustomerCreateNestedOneWithoutContractsInput
|
|
contractCategory?: ContractCategoryCreateNestedOneWithoutContractsInput
|
|
address?: AddressCreateNestedOneWithoutContractsAsDeliveryInput
|
|
billingAddress?: AddressCreateNestedOneWithoutContractsAsBillingInput
|
|
identityDocument?: IdentityDocumentCreateNestedOneWithoutContractsInput
|
|
salesPlatform?: SalesPlatformCreateNestedOneWithoutContractsInput
|
|
cancellationPeriod?: CancellationPeriodCreateNestedOneWithoutContractsInput
|
|
contractDuration?: ContractDurationCreateNestedOneWithoutContractsInput
|
|
previousContract?: ContractCreateNestedOneWithoutFollowUpContractInput
|
|
followUpContract?: ContractCreateNestedOneWithoutPreviousContractInput
|
|
provider?: ProviderCreateNestedOneWithoutContractsInput
|
|
tariff?: TariffCreateNestedOneWithoutContractsInput
|
|
stressfreiEmail?: StressfreiEmailCreateNestedOneWithoutContractsInput
|
|
energyDetails?: EnergyContractDetailsCreateNestedOneWithoutContractInput
|
|
internetDetails?: InternetContractDetailsCreateNestedOneWithoutContractInput
|
|
mobileDetails?: MobileContractDetailsCreateNestedOneWithoutContractInput
|
|
tvDetails?: TvContractDetailsCreateNestedOneWithoutContractInput
|
|
carInsuranceDetails?: CarInsuranceDetailsCreateNestedOneWithoutContractInput
|
|
tasks?: ContractTaskCreateNestedManyWithoutContractInput
|
|
assignedEmails?: CachedEmailCreateNestedManyWithoutContractInput
|
|
}
|
|
|
|
export type ContractUncheckedCreateWithoutBankCardInput = {
|
|
id?: number
|
|
contractNumber: string
|
|
customerId: number
|
|
type: $Enums.ContractType
|
|
status?: $Enums.ContractStatus
|
|
contractCategoryId?: number | null
|
|
addressId?: number | null
|
|
billingAddressId?: number | null
|
|
identityDocumentId?: number | null
|
|
salesPlatformId?: number | null
|
|
cancellationPeriodId?: number | null
|
|
contractDurationId?: number | null
|
|
previousContractId?: number | null
|
|
providerId?: number | null
|
|
tariffId?: number | null
|
|
providerName?: string | null
|
|
tariffName?: string | null
|
|
customerNumberAtProvider?: string | null
|
|
priceFirst12Months?: string | null
|
|
priceFrom13Months?: string | null
|
|
priceAfter24Months?: string | null
|
|
startDate?: Date | string | null
|
|
endDate?: Date | string | null
|
|
commission?: number | null
|
|
cancellationLetterPath?: string | null
|
|
cancellationConfirmationPath?: string | null
|
|
cancellationLetterOptionsPath?: string | null
|
|
cancellationConfirmationOptionsPath?: string | null
|
|
cancellationConfirmationDate?: Date | string | null
|
|
cancellationConfirmationOptionsDate?: Date | string | null
|
|
wasSpecialCancellation?: boolean
|
|
portalUsername?: string | null
|
|
portalPasswordEncrypted?: string | null
|
|
stressfreiEmailId?: number | null
|
|
notes?: string | null
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
followUpContract?: ContractUncheckedCreateNestedOneWithoutPreviousContractInput
|
|
energyDetails?: EnergyContractDetailsUncheckedCreateNestedOneWithoutContractInput
|
|
internetDetails?: InternetContractDetailsUncheckedCreateNestedOneWithoutContractInput
|
|
mobileDetails?: MobileContractDetailsUncheckedCreateNestedOneWithoutContractInput
|
|
tvDetails?: TvContractDetailsUncheckedCreateNestedOneWithoutContractInput
|
|
carInsuranceDetails?: CarInsuranceDetailsUncheckedCreateNestedOneWithoutContractInput
|
|
tasks?: ContractTaskUncheckedCreateNestedManyWithoutContractInput
|
|
assignedEmails?: CachedEmailUncheckedCreateNestedManyWithoutContractInput
|
|
}
|
|
|
|
export type ContractCreateOrConnectWithoutBankCardInput = {
|
|
where: ContractWhereUniqueInput
|
|
create: XOR<ContractCreateWithoutBankCardInput, ContractUncheckedCreateWithoutBankCardInput>
|
|
}
|
|
|
|
export type ContractCreateManyBankCardInputEnvelope = {
|
|
data: ContractCreateManyBankCardInput | ContractCreateManyBankCardInput[]
|
|
skipDuplicates?: boolean
|
|
}
|
|
|
|
export type CustomerUpsertWithoutBankCardsInput = {
|
|
update: XOR<CustomerUpdateWithoutBankCardsInput, CustomerUncheckedUpdateWithoutBankCardsInput>
|
|
create: XOR<CustomerCreateWithoutBankCardsInput, CustomerUncheckedCreateWithoutBankCardsInput>
|
|
where?: CustomerWhereInput
|
|
}
|
|
|
|
export type CustomerUpdateToOneWithWhereWithoutBankCardsInput = {
|
|
where?: CustomerWhereInput
|
|
data: XOR<CustomerUpdateWithoutBankCardsInput, CustomerUncheckedUpdateWithoutBankCardsInput>
|
|
}
|
|
|
|
export type CustomerUpdateWithoutBankCardsInput = {
|
|
customerNumber?: StringFieldUpdateOperationsInput | string
|
|
type?: EnumCustomerTypeFieldUpdateOperationsInput | $Enums.CustomerType
|
|
salutation?: NullableStringFieldUpdateOperationsInput | string | null
|
|
firstName?: StringFieldUpdateOperationsInput | string
|
|
lastName?: StringFieldUpdateOperationsInput | string
|
|
companyName?: NullableStringFieldUpdateOperationsInput | string | null
|
|
foundingDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
birthDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
birthPlace?: NullableStringFieldUpdateOperationsInput | string | null
|
|
email?: NullableStringFieldUpdateOperationsInput | string | null
|
|
phone?: NullableStringFieldUpdateOperationsInput | string | null
|
|
mobile?: NullableStringFieldUpdateOperationsInput | string | null
|
|
taxNumber?: NullableStringFieldUpdateOperationsInput | string | null
|
|
businessRegistrationPath?: NullableStringFieldUpdateOperationsInput | string | null
|
|
commercialRegisterPath?: NullableStringFieldUpdateOperationsInput | string | null
|
|
commercialRegisterNumber?: NullableStringFieldUpdateOperationsInput | string | null
|
|
privacyPolicyPath?: NullableStringFieldUpdateOperationsInput | string | null
|
|
notes?: NullableStringFieldUpdateOperationsInput | string | null
|
|
portalEnabled?: BoolFieldUpdateOperationsInput | boolean
|
|
portalEmail?: NullableStringFieldUpdateOperationsInput | string | null
|
|
portalPasswordHash?: NullableStringFieldUpdateOperationsInput | string | null
|
|
portalPasswordEncrypted?: NullableStringFieldUpdateOperationsInput | string | null
|
|
portalLastLogin?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
user?: UserUpdateOneWithoutCustomerNestedInput
|
|
addresses?: AddressUpdateManyWithoutCustomerNestedInput
|
|
identityDocuments?: IdentityDocumentUpdateManyWithoutCustomerNestedInput
|
|
meters?: MeterUpdateManyWithoutCustomerNestedInput
|
|
stressfreiEmails?: StressfreiEmailUpdateManyWithoutCustomerNestedInput
|
|
contracts?: ContractUpdateManyWithoutCustomerNestedInput
|
|
representingFor?: CustomerRepresentativeUpdateManyWithoutRepresentativeNestedInput
|
|
representedBy?: CustomerRepresentativeUpdateManyWithoutCustomerNestedInput
|
|
}
|
|
|
|
export type CustomerUncheckedUpdateWithoutBankCardsInput = {
|
|
id?: IntFieldUpdateOperationsInput | number
|
|
customerNumber?: StringFieldUpdateOperationsInput | string
|
|
type?: EnumCustomerTypeFieldUpdateOperationsInput | $Enums.CustomerType
|
|
salutation?: NullableStringFieldUpdateOperationsInput | string | null
|
|
firstName?: StringFieldUpdateOperationsInput | string
|
|
lastName?: StringFieldUpdateOperationsInput | string
|
|
companyName?: NullableStringFieldUpdateOperationsInput | string | null
|
|
foundingDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
birthDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
birthPlace?: NullableStringFieldUpdateOperationsInput | string | null
|
|
email?: NullableStringFieldUpdateOperationsInput | string | null
|
|
phone?: NullableStringFieldUpdateOperationsInput | string | null
|
|
mobile?: NullableStringFieldUpdateOperationsInput | string | null
|
|
taxNumber?: NullableStringFieldUpdateOperationsInput | string | null
|
|
businessRegistrationPath?: NullableStringFieldUpdateOperationsInput | string | null
|
|
commercialRegisterPath?: NullableStringFieldUpdateOperationsInput | string | null
|
|
commercialRegisterNumber?: NullableStringFieldUpdateOperationsInput | string | null
|
|
privacyPolicyPath?: NullableStringFieldUpdateOperationsInput | string | null
|
|
notes?: NullableStringFieldUpdateOperationsInput | string | null
|
|
portalEnabled?: BoolFieldUpdateOperationsInput | boolean
|
|
portalEmail?: NullableStringFieldUpdateOperationsInput | string | null
|
|
portalPasswordHash?: NullableStringFieldUpdateOperationsInput | string | null
|
|
portalPasswordEncrypted?: NullableStringFieldUpdateOperationsInput | string | null
|
|
portalLastLogin?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
user?: UserUncheckedUpdateOneWithoutCustomerNestedInput
|
|
addresses?: AddressUncheckedUpdateManyWithoutCustomerNestedInput
|
|
identityDocuments?: IdentityDocumentUncheckedUpdateManyWithoutCustomerNestedInput
|
|
meters?: MeterUncheckedUpdateManyWithoutCustomerNestedInput
|
|
stressfreiEmails?: StressfreiEmailUncheckedUpdateManyWithoutCustomerNestedInput
|
|
contracts?: ContractUncheckedUpdateManyWithoutCustomerNestedInput
|
|
representingFor?: CustomerRepresentativeUncheckedUpdateManyWithoutRepresentativeNestedInput
|
|
representedBy?: CustomerRepresentativeUncheckedUpdateManyWithoutCustomerNestedInput
|
|
}
|
|
|
|
export type ContractUpsertWithWhereUniqueWithoutBankCardInput = {
|
|
where: ContractWhereUniqueInput
|
|
update: XOR<ContractUpdateWithoutBankCardInput, ContractUncheckedUpdateWithoutBankCardInput>
|
|
create: XOR<ContractCreateWithoutBankCardInput, ContractUncheckedCreateWithoutBankCardInput>
|
|
}
|
|
|
|
export type ContractUpdateWithWhereUniqueWithoutBankCardInput = {
|
|
where: ContractWhereUniqueInput
|
|
data: XOR<ContractUpdateWithoutBankCardInput, ContractUncheckedUpdateWithoutBankCardInput>
|
|
}
|
|
|
|
export type ContractUpdateManyWithWhereWithoutBankCardInput = {
|
|
where: ContractScalarWhereInput
|
|
data: XOR<ContractUpdateManyMutationInput, ContractUncheckedUpdateManyWithoutBankCardInput>
|
|
}
|
|
|
|
export type CustomerCreateWithoutIdentityDocumentsInput = {
|
|
customerNumber: string
|
|
type?: $Enums.CustomerType
|
|
salutation?: string | null
|
|
firstName: string
|
|
lastName: string
|
|
companyName?: string | null
|
|
foundingDate?: Date | string | null
|
|
birthDate?: Date | string | null
|
|
birthPlace?: string | null
|
|
email?: string | null
|
|
phone?: string | null
|
|
mobile?: string | null
|
|
taxNumber?: string | null
|
|
businessRegistrationPath?: string | null
|
|
commercialRegisterPath?: string | null
|
|
commercialRegisterNumber?: string | null
|
|
privacyPolicyPath?: string | null
|
|
notes?: string | null
|
|
portalEnabled?: boolean
|
|
portalEmail?: string | null
|
|
portalPasswordHash?: string | null
|
|
portalPasswordEncrypted?: string | null
|
|
portalLastLogin?: Date | string | null
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
user?: UserCreateNestedOneWithoutCustomerInput
|
|
addresses?: AddressCreateNestedManyWithoutCustomerInput
|
|
bankCards?: BankCardCreateNestedManyWithoutCustomerInput
|
|
meters?: MeterCreateNestedManyWithoutCustomerInput
|
|
stressfreiEmails?: StressfreiEmailCreateNestedManyWithoutCustomerInput
|
|
contracts?: ContractCreateNestedManyWithoutCustomerInput
|
|
representingFor?: CustomerRepresentativeCreateNestedManyWithoutRepresentativeInput
|
|
representedBy?: CustomerRepresentativeCreateNestedManyWithoutCustomerInput
|
|
}
|
|
|
|
export type CustomerUncheckedCreateWithoutIdentityDocumentsInput = {
|
|
id?: number
|
|
customerNumber: string
|
|
type?: $Enums.CustomerType
|
|
salutation?: string | null
|
|
firstName: string
|
|
lastName: string
|
|
companyName?: string | null
|
|
foundingDate?: Date | string | null
|
|
birthDate?: Date | string | null
|
|
birthPlace?: string | null
|
|
email?: string | null
|
|
phone?: string | null
|
|
mobile?: string | null
|
|
taxNumber?: string | null
|
|
businessRegistrationPath?: string | null
|
|
commercialRegisterPath?: string | null
|
|
commercialRegisterNumber?: string | null
|
|
privacyPolicyPath?: string | null
|
|
notes?: string | null
|
|
portalEnabled?: boolean
|
|
portalEmail?: string | null
|
|
portalPasswordHash?: string | null
|
|
portalPasswordEncrypted?: string | null
|
|
portalLastLogin?: Date | string | null
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
user?: UserUncheckedCreateNestedOneWithoutCustomerInput
|
|
addresses?: AddressUncheckedCreateNestedManyWithoutCustomerInput
|
|
bankCards?: BankCardUncheckedCreateNestedManyWithoutCustomerInput
|
|
meters?: MeterUncheckedCreateNestedManyWithoutCustomerInput
|
|
stressfreiEmails?: StressfreiEmailUncheckedCreateNestedManyWithoutCustomerInput
|
|
contracts?: ContractUncheckedCreateNestedManyWithoutCustomerInput
|
|
representingFor?: CustomerRepresentativeUncheckedCreateNestedManyWithoutRepresentativeInput
|
|
representedBy?: CustomerRepresentativeUncheckedCreateNestedManyWithoutCustomerInput
|
|
}
|
|
|
|
export type CustomerCreateOrConnectWithoutIdentityDocumentsInput = {
|
|
where: CustomerWhereUniqueInput
|
|
create: XOR<CustomerCreateWithoutIdentityDocumentsInput, CustomerUncheckedCreateWithoutIdentityDocumentsInput>
|
|
}
|
|
|
|
export type ContractCreateWithoutIdentityDocumentInput = {
|
|
contractNumber: string
|
|
type: $Enums.ContractType
|
|
status?: $Enums.ContractStatus
|
|
providerName?: string | null
|
|
tariffName?: string | null
|
|
customerNumberAtProvider?: string | null
|
|
priceFirst12Months?: string | null
|
|
priceFrom13Months?: string | null
|
|
priceAfter24Months?: string | null
|
|
startDate?: Date | string | null
|
|
endDate?: Date | string | null
|
|
commission?: number | null
|
|
cancellationLetterPath?: string | null
|
|
cancellationConfirmationPath?: string | null
|
|
cancellationLetterOptionsPath?: string | null
|
|
cancellationConfirmationOptionsPath?: string | null
|
|
cancellationConfirmationDate?: Date | string | null
|
|
cancellationConfirmationOptionsDate?: Date | string | null
|
|
wasSpecialCancellation?: boolean
|
|
portalUsername?: string | null
|
|
portalPasswordEncrypted?: string | null
|
|
notes?: string | null
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
customer: CustomerCreateNestedOneWithoutContractsInput
|
|
contractCategory?: ContractCategoryCreateNestedOneWithoutContractsInput
|
|
address?: AddressCreateNestedOneWithoutContractsAsDeliveryInput
|
|
billingAddress?: AddressCreateNestedOneWithoutContractsAsBillingInput
|
|
bankCard?: BankCardCreateNestedOneWithoutContractsInput
|
|
salesPlatform?: SalesPlatformCreateNestedOneWithoutContractsInput
|
|
cancellationPeriod?: CancellationPeriodCreateNestedOneWithoutContractsInput
|
|
contractDuration?: ContractDurationCreateNestedOneWithoutContractsInput
|
|
previousContract?: ContractCreateNestedOneWithoutFollowUpContractInput
|
|
followUpContract?: ContractCreateNestedOneWithoutPreviousContractInput
|
|
provider?: ProviderCreateNestedOneWithoutContractsInput
|
|
tariff?: TariffCreateNestedOneWithoutContractsInput
|
|
stressfreiEmail?: StressfreiEmailCreateNestedOneWithoutContractsInput
|
|
energyDetails?: EnergyContractDetailsCreateNestedOneWithoutContractInput
|
|
internetDetails?: InternetContractDetailsCreateNestedOneWithoutContractInput
|
|
mobileDetails?: MobileContractDetailsCreateNestedOneWithoutContractInput
|
|
tvDetails?: TvContractDetailsCreateNestedOneWithoutContractInput
|
|
carInsuranceDetails?: CarInsuranceDetailsCreateNestedOneWithoutContractInput
|
|
tasks?: ContractTaskCreateNestedManyWithoutContractInput
|
|
assignedEmails?: CachedEmailCreateNestedManyWithoutContractInput
|
|
}
|
|
|
|
export type ContractUncheckedCreateWithoutIdentityDocumentInput = {
|
|
id?: number
|
|
contractNumber: string
|
|
customerId: number
|
|
type: $Enums.ContractType
|
|
status?: $Enums.ContractStatus
|
|
contractCategoryId?: number | null
|
|
addressId?: number | null
|
|
billingAddressId?: number | null
|
|
bankCardId?: number | null
|
|
salesPlatformId?: number | null
|
|
cancellationPeriodId?: number | null
|
|
contractDurationId?: number | null
|
|
previousContractId?: number | null
|
|
providerId?: number | null
|
|
tariffId?: number | null
|
|
providerName?: string | null
|
|
tariffName?: string | null
|
|
customerNumberAtProvider?: string | null
|
|
priceFirst12Months?: string | null
|
|
priceFrom13Months?: string | null
|
|
priceAfter24Months?: string | null
|
|
startDate?: Date | string | null
|
|
endDate?: Date | string | null
|
|
commission?: number | null
|
|
cancellationLetterPath?: string | null
|
|
cancellationConfirmationPath?: string | null
|
|
cancellationLetterOptionsPath?: string | null
|
|
cancellationConfirmationOptionsPath?: string | null
|
|
cancellationConfirmationDate?: Date | string | null
|
|
cancellationConfirmationOptionsDate?: Date | string | null
|
|
wasSpecialCancellation?: boolean
|
|
portalUsername?: string | null
|
|
portalPasswordEncrypted?: string | null
|
|
stressfreiEmailId?: number | null
|
|
notes?: string | null
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
followUpContract?: ContractUncheckedCreateNestedOneWithoutPreviousContractInput
|
|
energyDetails?: EnergyContractDetailsUncheckedCreateNestedOneWithoutContractInput
|
|
internetDetails?: InternetContractDetailsUncheckedCreateNestedOneWithoutContractInput
|
|
mobileDetails?: MobileContractDetailsUncheckedCreateNestedOneWithoutContractInput
|
|
tvDetails?: TvContractDetailsUncheckedCreateNestedOneWithoutContractInput
|
|
carInsuranceDetails?: CarInsuranceDetailsUncheckedCreateNestedOneWithoutContractInput
|
|
tasks?: ContractTaskUncheckedCreateNestedManyWithoutContractInput
|
|
assignedEmails?: CachedEmailUncheckedCreateNestedManyWithoutContractInput
|
|
}
|
|
|
|
export type ContractCreateOrConnectWithoutIdentityDocumentInput = {
|
|
where: ContractWhereUniqueInput
|
|
create: XOR<ContractCreateWithoutIdentityDocumentInput, ContractUncheckedCreateWithoutIdentityDocumentInput>
|
|
}
|
|
|
|
export type ContractCreateManyIdentityDocumentInputEnvelope = {
|
|
data: ContractCreateManyIdentityDocumentInput | ContractCreateManyIdentityDocumentInput[]
|
|
skipDuplicates?: boolean
|
|
}
|
|
|
|
export type CustomerUpsertWithoutIdentityDocumentsInput = {
|
|
update: XOR<CustomerUpdateWithoutIdentityDocumentsInput, CustomerUncheckedUpdateWithoutIdentityDocumentsInput>
|
|
create: XOR<CustomerCreateWithoutIdentityDocumentsInput, CustomerUncheckedCreateWithoutIdentityDocumentsInput>
|
|
where?: CustomerWhereInput
|
|
}
|
|
|
|
export type CustomerUpdateToOneWithWhereWithoutIdentityDocumentsInput = {
|
|
where?: CustomerWhereInput
|
|
data: XOR<CustomerUpdateWithoutIdentityDocumentsInput, CustomerUncheckedUpdateWithoutIdentityDocumentsInput>
|
|
}
|
|
|
|
export type CustomerUpdateWithoutIdentityDocumentsInput = {
|
|
customerNumber?: StringFieldUpdateOperationsInput | string
|
|
type?: EnumCustomerTypeFieldUpdateOperationsInput | $Enums.CustomerType
|
|
salutation?: NullableStringFieldUpdateOperationsInput | string | null
|
|
firstName?: StringFieldUpdateOperationsInput | string
|
|
lastName?: StringFieldUpdateOperationsInput | string
|
|
companyName?: NullableStringFieldUpdateOperationsInput | string | null
|
|
foundingDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
birthDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
birthPlace?: NullableStringFieldUpdateOperationsInput | string | null
|
|
email?: NullableStringFieldUpdateOperationsInput | string | null
|
|
phone?: NullableStringFieldUpdateOperationsInput | string | null
|
|
mobile?: NullableStringFieldUpdateOperationsInput | string | null
|
|
taxNumber?: NullableStringFieldUpdateOperationsInput | string | null
|
|
businessRegistrationPath?: NullableStringFieldUpdateOperationsInput | string | null
|
|
commercialRegisterPath?: NullableStringFieldUpdateOperationsInput | string | null
|
|
commercialRegisterNumber?: NullableStringFieldUpdateOperationsInput | string | null
|
|
privacyPolicyPath?: NullableStringFieldUpdateOperationsInput | string | null
|
|
notes?: NullableStringFieldUpdateOperationsInput | string | null
|
|
portalEnabled?: BoolFieldUpdateOperationsInput | boolean
|
|
portalEmail?: NullableStringFieldUpdateOperationsInput | string | null
|
|
portalPasswordHash?: NullableStringFieldUpdateOperationsInput | string | null
|
|
portalPasswordEncrypted?: NullableStringFieldUpdateOperationsInput | string | null
|
|
portalLastLogin?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
user?: UserUpdateOneWithoutCustomerNestedInput
|
|
addresses?: AddressUpdateManyWithoutCustomerNestedInput
|
|
bankCards?: BankCardUpdateManyWithoutCustomerNestedInput
|
|
meters?: MeterUpdateManyWithoutCustomerNestedInput
|
|
stressfreiEmails?: StressfreiEmailUpdateManyWithoutCustomerNestedInput
|
|
contracts?: ContractUpdateManyWithoutCustomerNestedInput
|
|
representingFor?: CustomerRepresentativeUpdateManyWithoutRepresentativeNestedInput
|
|
representedBy?: CustomerRepresentativeUpdateManyWithoutCustomerNestedInput
|
|
}
|
|
|
|
export type CustomerUncheckedUpdateWithoutIdentityDocumentsInput = {
|
|
id?: IntFieldUpdateOperationsInput | number
|
|
customerNumber?: StringFieldUpdateOperationsInput | string
|
|
type?: EnumCustomerTypeFieldUpdateOperationsInput | $Enums.CustomerType
|
|
salutation?: NullableStringFieldUpdateOperationsInput | string | null
|
|
firstName?: StringFieldUpdateOperationsInput | string
|
|
lastName?: StringFieldUpdateOperationsInput | string
|
|
companyName?: NullableStringFieldUpdateOperationsInput | string | null
|
|
foundingDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
birthDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
birthPlace?: NullableStringFieldUpdateOperationsInput | string | null
|
|
email?: NullableStringFieldUpdateOperationsInput | string | null
|
|
phone?: NullableStringFieldUpdateOperationsInput | string | null
|
|
mobile?: NullableStringFieldUpdateOperationsInput | string | null
|
|
taxNumber?: NullableStringFieldUpdateOperationsInput | string | null
|
|
businessRegistrationPath?: NullableStringFieldUpdateOperationsInput | string | null
|
|
commercialRegisterPath?: NullableStringFieldUpdateOperationsInput | string | null
|
|
commercialRegisterNumber?: NullableStringFieldUpdateOperationsInput | string | null
|
|
privacyPolicyPath?: NullableStringFieldUpdateOperationsInput | string | null
|
|
notes?: NullableStringFieldUpdateOperationsInput | string | null
|
|
portalEnabled?: BoolFieldUpdateOperationsInput | boolean
|
|
portalEmail?: NullableStringFieldUpdateOperationsInput | string | null
|
|
portalPasswordHash?: NullableStringFieldUpdateOperationsInput | string | null
|
|
portalPasswordEncrypted?: NullableStringFieldUpdateOperationsInput | string | null
|
|
portalLastLogin?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
user?: UserUncheckedUpdateOneWithoutCustomerNestedInput
|
|
addresses?: AddressUncheckedUpdateManyWithoutCustomerNestedInput
|
|
bankCards?: BankCardUncheckedUpdateManyWithoutCustomerNestedInput
|
|
meters?: MeterUncheckedUpdateManyWithoutCustomerNestedInput
|
|
stressfreiEmails?: StressfreiEmailUncheckedUpdateManyWithoutCustomerNestedInput
|
|
contracts?: ContractUncheckedUpdateManyWithoutCustomerNestedInput
|
|
representingFor?: CustomerRepresentativeUncheckedUpdateManyWithoutRepresentativeNestedInput
|
|
representedBy?: CustomerRepresentativeUncheckedUpdateManyWithoutCustomerNestedInput
|
|
}
|
|
|
|
export type ContractUpsertWithWhereUniqueWithoutIdentityDocumentInput = {
|
|
where: ContractWhereUniqueInput
|
|
update: XOR<ContractUpdateWithoutIdentityDocumentInput, ContractUncheckedUpdateWithoutIdentityDocumentInput>
|
|
create: XOR<ContractCreateWithoutIdentityDocumentInput, ContractUncheckedCreateWithoutIdentityDocumentInput>
|
|
}
|
|
|
|
export type ContractUpdateWithWhereUniqueWithoutIdentityDocumentInput = {
|
|
where: ContractWhereUniqueInput
|
|
data: XOR<ContractUpdateWithoutIdentityDocumentInput, ContractUncheckedUpdateWithoutIdentityDocumentInput>
|
|
}
|
|
|
|
export type ContractUpdateManyWithWhereWithoutIdentityDocumentInput = {
|
|
where: ContractScalarWhereInput
|
|
data: XOR<ContractUpdateManyMutationInput, ContractUncheckedUpdateManyWithoutIdentityDocumentInput>
|
|
}
|
|
|
|
export type CustomerCreateWithoutStressfreiEmailsInput = {
|
|
customerNumber: string
|
|
type?: $Enums.CustomerType
|
|
salutation?: string | null
|
|
firstName: string
|
|
lastName: string
|
|
companyName?: string | null
|
|
foundingDate?: Date | string | null
|
|
birthDate?: Date | string | null
|
|
birthPlace?: string | null
|
|
email?: string | null
|
|
phone?: string | null
|
|
mobile?: string | null
|
|
taxNumber?: string | null
|
|
businessRegistrationPath?: string | null
|
|
commercialRegisterPath?: string | null
|
|
commercialRegisterNumber?: string | null
|
|
privacyPolicyPath?: string | null
|
|
notes?: string | null
|
|
portalEnabled?: boolean
|
|
portalEmail?: string | null
|
|
portalPasswordHash?: string | null
|
|
portalPasswordEncrypted?: string | null
|
|
portalLastLogin?: Date | string | null
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
user?: UserCreateNestedOneWithoutCustomerInput
|
|
addresses?: AddressCreateNestedManyWithoutCustomerInput
|
|
bankCards?: BankCardCreateNestedManyWithoutCustomerInput
|
|
identityDocuments?: IdentityDocumentCreateNestedManyWithoutCustomerInput
|
|
meters?: MeterCreateNestedManyWithoutCustomerInput
|
|
contracts?: ContractCreateNestedManyWithoutCustomerInput
|
|
representingFor?: CustomerRepresentativeCreateNestedManyWithoutRepresentativeInput
|
|
representedBy?: CustomerRepresentativeCreateNestedManyWithoutCustomerInput
|
|
}
|
|
|
|
export type CustomerUncheckedCreateWithoutStressfreiEmailsInput = {
|
|
id?: number
|
|
customerNumber: string
|
|
type?: $Enums.CustomerType
|
|
salutation?: string | null
|
|
firstName: string
|
|
lastName: string
|
|
companyName?: string | null
|
|
foundingDate?: Date | string | null
|
|
birthDate?: Date | string | null
|
|
birthPlace?: string | null
|
|
email?: string | null
|
|
phone?: string | null
|
|
mobile?: string | null
|
|
taxNumber?: string | null
|
|
businessRegistrationPath?: string | null
|
|
commercialRegisterPath?: string | null
|
|
commercialRegisterNumber?: string | null
|
|
privacyPolicyPath?: string | null
|
|
notes?: string | null
|
|
portalEnabled?: boolean
|
|
portalEmail?: string | null
|
|
portalPasswordHash?: string | null
|
|
portalPasswordEncrypted?: string | null
|
|
portalLastLogin?: Date | string | null
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
user?: UserUncheckedCreateNestedOneWithoutCustomerInput
|
|
addresses?: AddressUncheckedCreateNestedManyWithoutCustomerInput
|
|
bankCards?: BankCardUncheckedCreateNestedManyWithoutCustomerInput
|
|
identityDocuments?: IdentityDocumentUncheckedCreateNestedManyWithoutCustomerInput
|
|
meters?: MeterUncheckedCreateNestedManyWithoutCustomerInput
|
|
contracts?: ContractUncheckedCreateNestedManyWithoutCustomerInput
|
|
representingFor?: CustomerRepresentativeUncheckedCreateNestedManyWithoutRepresentativeInput
|
|
representedBy?: CustomerRepresentativeUncheckedCreateNestedManyWithoutCustomerInput
|
|
}
|
|
|
|
export type CustomerCreateOrConnectWithoutStressfreiEmailsInput = {
|
|
where: CustomerWhereUniqueInput
|
|
create: XOR<CustomerCreateWithoutStressfreiEmailsInput, CustomerUncheckedCreateWithoutStressfreiEmailsInput>
|
|
}
|
|
|
|
export type ContractCreateWithoutStressfreiEmailInput = {
|
|
contractNumber: string
|
|
type: $Enums.ContractType
|
|
status?: $Enums.ContractStatus
|
|
providerName?: string | null
|
|
tariffName?: string | null
|
|
customerNumberAtProvider?: string | null
|
|
priceFirst12Months?: string | null
|
|
priceFrom13Months?: string | null
|
|
priceAfter24Months?: string | null
|
|
startDate?: Date | string | null
|
|
endDate?: Date | string | null
|
|
commission?: number | null
|
|
cancellationLetterPath?: string | null
|
|
cancellationConfirmationPath?: string | null
|
|
cancellationLetterOptionsPath?: string | null
|
|
cancellationConfirmationOptionsPath?: string | null
|
|
cancellationConfirmationDate?: Date | string | null
|
|
cancellationConfirmationOptionsDate?: Date | string | null
|
|
wasSpecialCancellation?: boolean
|
|
portalUsername?: string | null
|
|
portalPasswordEncrypted?: string | null
|
|
notes?: string | null
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
customer: CustomerCreateNestedOneWithoutContractsInput
|
|
contractCategory?: ContractCategoryCreateNestedOneWithoutContractsInput
|
|
address?: AddressCreateNestedOneWithoutContractsAsDeliveryInput
|
|
billingAddress?: AddressCreateNestedOneWithoutContractsAsBillingInput
|
|
bankCard?: BankCardCreateNestedOneWithoutContractsInput
|
|
identityDocument?: IdentityDocumentCreateNestedOneWithoutContractsInput
|
|
salesPlatform?: SalesPlatformCreateNestedOneWithoutContractsInput
|
|
cancellationPeriod?: CancellationPeriodCreateNestedOneWithoutContractsInput
|
|
contractDuration?: ContractDurationCreateNestedOneWithoutContractsInput
|
|
previousContract?: ContractCreateNestedOneWithoutFollowUpContractInput
|
|
followUpContract?: ContractCreateNestedOneWithoutPreviousContractInput
|
|
provider?: ProviderCreateNestedOneWithoutContractsInput
|
|
tariff?: TariffCreateNestedOneWithoutContractsInput
|
|
energyDetails?: EnergyContractDetailsCreateNestedOneWithoutContractInput
|
|
internetDetails?: InternetContractDetailsCreateNestedOneWithoutContractInput
|
|
mobileDetails?: MobileContractDetailsCreateNestedOneWithoutContractInput
|
|
tvDetails?: TvContractDetailsCreateNestedOneWithoutContractInput
|
|
carInsuranceDetails?: CarInsuranceDetailsCreateNestedOneWithoutContractInput
|
|
tasks?: ContractTaskCreateNestedManyWithoutContractInput
|
|
assignedEmails?: CachedEmailCreateNestedManyWithoutContractInput
|
|
}
|
|
|
|
export type ContractUncheckedCreateWithoutStressfreiEmailInput = {
|
|
id?: number
|
|
contractNumber: string
|
|
customerId: number
|
|
type: $Enums.ContractType
|
|
status?: $Enums.ContractStatus
|
|
contractCategoryId?: number | null
|
|
addressId?: number | null
|
|
billingAddressId?: number | null
|
|
bankCardId?: number | null
|
|
identityDocumentId?: number | null
|
|
salesPlatformId?: number | null
|
|
cancellationPeriodId?: number | null
|
|
contractDurationId?: number | null
|
|
previousContractId?: number | null
|
|
providerId?: number | null
|
|
tariffId?: number | null
|
|
providerName?: string | null
|
|
tariffName?: string | null
|
|
customerNumberAtProvider?: string | null
|
|
priceFirst12Months?: string | null
|
|
priceFrom13Months?: string | null
|
|
priceAfter24Months?: string | null
|
|
startDate?: Date | string | null
|
|
endDate?: Date | string | null
|
|
commission?: number | null
|
|
cancellationLetterPath?: string | null
|
|
cancellationConfirmationPath?: string | null
|
|
cancellationLetterOptionsPath?: string | null
|
|
cancellationConfirmationOptionsPath?: string | null
|
|
cancellationConfirmationDate?: Date | string | null
|
|
cancellationConfirmationOptionsDate?: Date | string | null
|
|
wasSpecialCancellation?: boolean
|
|
portalUsername?: string | null
|
|
portalPasswordEncrypted?: string | null
|
|
notes?: string | null
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
followUpContract?: ContractUncheckedCreateNestedOneWithoutPreviousContractInput
|
|
energyDetails?: EnergyContractDetailsUncheckedCreateNestedOneWithoutContractInput
|
|
internetDetails?: InternetContractDetailsUncheckedCreateNestedOneWithoutContractInput
|
|
mobileDetails?: MobileContractDetailsUncheckedCreateNestedOneWithoutContractInput
|
|
tvDetails?: TvContractDetailsUncheckedCreateNestedOneWithoutContractInput
|
|
carInsuranceDetails?: CarInsuranceDetailsUncheckedCreateNestedOneWithoutContractInput
|
|
tasks?: ContractTaskUncheckedCreateNestedManyWithoutContractInput
|
|
assignedEmails?: CachedEmailUncheckedCreateNestedManyWithoutContractInput
|
|
}
|
|
|
|
export type ContractCreateOrConnectWithoutStressfreiEmailInput = {
|
|
where: ContractWhereUniqueInput
|
|
create: XOR<ContractCreateWithoutStressfreiEmailInput, ContractUncheckedCreateWithoutStressfreiEmailInput>
|
|
}
|
|
|
|
export type ContractCreateManyStressfreiEmailInputEnvelope = {
|
|
data: ContractCreateManyStressfreiEmailInput | ContractCreateManyStressfreiEmailInput[]
|
|
skipDuplicates?: boolean
|
|
}
|
|
|
|
export type CachedEmailCreateWithoutStressfreiEmailInput = {
|
|
folder?: $Enums.EmailFolder
|
|
messageId: string
|
|
uid: number
|
|
subject?: string | null
|
|
fromAddress: string
|
|
fromName?: string | null
|
|
toAddresses: string
|
|
ccAddresses?: string | null
|
|
receivedAt: Date | string
|
|
textBody?: string | null
|
|
htmlBody?: string | null
|
|
hasAttachments?: boolean
|
|
attachmentNames?: string | null
|
|
assignedAt?: Date | string | null
|
|
assignedBy?: number | null
|
|
isAutoAssigned?: boolean
|
|
isRead?: boolean
|
|
isStarred?: boolean
|
|
isDeleted?: boolean
|
|
deletedAt?: Date | string | null
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
contract?: ContractCreateNestedOneWithoutAssignedEmailsInput
|
|
}
|
|
|
|
export type CachedEmailUncheckedCreateWithoutStressfreiEmailInput = {
|
|
id?: number
|
|
folder?: $Enums.EmailFolder
|
|
messageId: string
|
|
uid: number
|
|
subject?: string | null
|
|
fromAddress: string
|
|
fromName?: string | null
|
|
toAddresses: string
|
|
ccAddresses?: string | null
|
|
receivedAt: Date | string
|
|
textBody?: string | null
|
|
htmlBody?: string | null
|
|
hasAttachments?: boolean
|
|
attachmentNames?: string | null
|
|
contractId?: number | null
|
|
assignedAt?: Date | string | null
|
|
assignedBy?: number | null
|
|
isAutoAssigned?: boolean
|
|
isRead?: boolean
|
|
isStarred?: boolean
|
|
isDeleted?: boolean
|
|
deletedAt?: Date | string | null
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
}
|
|
|
|
export type CachedEmailCreateOrConnectWithoutStressfreiEmailInput = {
|
|
where: CachedEmailWhereUniqueInput
|
|
create: XOR<CachedEmailCreateWithoutStressfreiEmailInput, CachedEmailUncheckedCreateWithoutStressfreiEmailInput>
|
|
}
|
|
|
|
export type CachedEmailCreateManyStressfreiEmailInputEnvelope = {
|
|
data: CachedEmailCreateManyStressfreiEmailInput | CachedEmailCreateManyStressfreiEmailInput[]
|
|
skipDuplicates?: boolean
|
|
}
|
|
|
|
export type CustomerUpsertWithoutStressfreiEmailsInput = {
|
|
update: XOR<CustomerUpdateWithoutStressfreiEmailsInput, CustomerUncheckedUpdateWithoutStressfreiEmailsInput>
|
|
create: XOR<CustomerCreateWithoutStressfreiEmailsInput, CustomerUncheckedCreateWithoutStressfreiEmailsInput>
|
|
where?: CustomerWhereInput
|
|
}
|
|
|
|
export type CustomerUpdateToOneWithWhereWithoutStressfreiEmailsInput = {
|
|
where?: CustomerWhereInput
|
|
data: XOR<CustomerUpdateWithoutStressfreiEmailsInput, CustomerUncheckedUpdateWithoutStressfreiEmailsInput>
|
|
}
|
|
|
|
export type CustomerUpdateWithoutStressfreiEmailsInput = {
|
|
customerNumber?: StringFieldUpdateOperationsInput | string
|
|
type?: EnumCustomerTypeFieldUpdateOperationsInput | $Enums.CustomerType
|
|
salutation?: NullableStringFieldUpdateOperationsInput | string | null
|
|
firstName?: StringFieldUpdateOperationsInput | string
|
|
lastName?: StringFieldUpdateOperationsInput | string
|
|
companyName?: NullableStringFieldUpdateOperationsInput | string | null
|
|
foundingDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
birthDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
birthPlace?: NullableStringFieldUpdateOperationsInput | string | null
|
|
email?: NullableStringFieldUpdateOperationsInput | string | null
|
|
phone?: NullableStringFieldUpdateOperationsInput | string | null
|
|
mobile?: NullableStringFieldUpdateOperationsInput | string | null
|
|
taxNumber?: NullableStringFieldUpdateOperationsInput | string | null
|
|
businessRegistrationPath?: NullableStringFieldUpdateOperationsInput | string | null
|
|
commercialRegisterPath?: NullableStringFieldUpdateOperationsInput | string | null
|
|
commercialRegisterNumber?: NullableStringFieldUpdateOperationsInput | string | null
|
|
privacyPolicyPath?: NullableStringFieldUpdateOperationsInput | string | null
|
|
notes?: NullableStringFieldUpdateOperationsInput | string | null
|
|
portalEnabled?: BoolFieldUpdateOperationsInput | boolean
|
|
portalEmail?: NullableStringFieldUpdateOperationsInput | string | null
|
|
portalPasswordHash?: NullableStringFieldUpdateOperationsInput | string | null
|
|
portalPasswordEncrypted?: NullableStringFieldUpdateOperationsInput | string | null
|
|
portalLastLogin?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
user?: UserUpdateOneWithoutCustomerNestedInput
|
|
addresses?: AddressUpdateManyWithoutCustomerNestedInput
|
|
bankCards?: BankCardUpdateManyWithoutCustomerNestedInput
|
|
identityDocuments?: IdentityDocumentUpdateManyWithoutCustomerNestedInput
|
|
meters?: MeterUpdateManyWithoutCustomerNestedInput
|
|
contracts?: ContractUpdateManyWithoutCustomerNestedInput
|
|
representingFor?: CustomerRepresentativeUpdateManyWithoutRepresentativeNestedInput
|
|
representedBy?: CustomerRepresentativeUpdateManyWithoutCustomerNestedInput
|
|
}
|
|
|
|
export type CustomerUncheckedUpdateWithoutStressfreiEmailsInput = {
|
|
id?: IntFieldUpdateOperationsInput | number
|
|
customerNumber?: StringFieldUpdateOperationsInput | string
|
|
type?: EnumCustomerTypeFieldUpdateOperationsInput | $Enums.CustomerType
|
|
salutation?: NullableStringFieldUpdateOperationsInput | string | null
|
|
firstName?: StringFieldUpdateOperationsInput | string
|
|
lastName?: StringFieldUpdateOperationsInput | string
|
|
companyName?: NullableStringFieldUpdateOperationsInput | string | null
|
|
foundingDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
birthDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
birthPlace?: NullableStringFieldUpdateOperationsInput | string | null
|
|
email?: NullableStringFieldUpdateOperationsInput | string | null
|
|
phone?: NullableStringFieldUpdateOperationsInput | string | null
|
|
mobile?: NullableStringFieldUpdateOperationsInput | string | null
|
|
taxNumber?: NullableStringFieldUpdateOperationsInput | string | null
|
|
businessRegistrationPath?: NullableStringFieldUpdateOperationsInput | string | null
|
|
commercialRegisterPath?: NullableStringFieldUpdateOperationsInput | string | null
|
|
commercialRegisterNumber?: NullableStringFieldUpdateOperationsInput | string | null
|
|
privacyPolicyPath?: NullableStringFieldUpdateOperationsInput | string | null
|
|
notes?: NullableStringFieldUpdateOperationsInput | string | null
|
|
portalEnabled?: BoolFieldUpdateOperationsInput | boolean
|
|
portalEmail?: NullableStringFieldUpdateOperationsInput | string | null
|
|
portalPasswordHash?: NullableStringFieldUpdateOperationsInput | string | null
|
|
portalPasswordEncrypted?: NullableStringFieldUpdateOperationsInput | string | null
|
|
portalLastLogin?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
user?: UserUncheckedUpdateOneWithoutCustomerNestedInput
|
|
addresses?: AddressUncheckedUpdateManyWithoutCustomerNestedInput
|
|
bankCards?: BankCardUncheckedUpdateManyWithoutCustomerNestedInput
|
|
identityDocuments?: IdentityDocumentUncheckedUpdateManyWithoutCustomerNestedInput
|
|
meters?: MeterUncheckedUpdateManyWithoutCustomerNestedInput
|
|
contracts?: ContractUncheckedUpdateManyWithoutCustomerNestedInput
|
|
representingFor?: CustomerRepresentativeUncheckedUpdateManyWithoutRepresentativeNestedInput
|
|
representedBy?: CustomerRepresentativeUncheckedUpdateManyWithoutCustomerNestedInput
|
|
}
|
|
|
|
export type ContractUpsertWithWhereUniqueWithoutStressfreiEmailInput = {
|
|
where: ContractWhereUniqueInput
|
|
update: XOR<ContractUpdateWithoutStressfreiEmailInput, ContractUncheckedUpdateWithoutStressfreiEmailInput>
|
|
create: XOR<ContractCreateWithoutStressfreiEmailInput, ContractUncheckedCreateWithoutStressfreiEmailInput>
|
|
}
|
|
|
|
export type ContractUpdateWithWhereUniqueWithoutStressfreiEmailInput = {
|
|
where: ContractWhereUniqueInput
|
|
data: XOR<ContractUpdateWithoutStressfreiEmailInput, ContractUncheckedUpdateWithoutStressfreiEmailInput>
|
|
}
|
|
|
|
export type ContractUpdateManyWithWhereWithoutStressfreiEmailInput = {
|
|
where: ContractScalarWhereInput
|
|
data: XOR<ContractUpdateManyMutationInput, ContractUncheckedUpdateManyWithoutStressfreiEmailInput>
|
|
}
|
|
|
|
export type CachedEmailUpsertWithWhereUniqueWithoutStressfreiEmailInput = {
|
|
where: CachedEmailWhereUniqueInput
|
|
update: XOR<CachedEmailUpdateWithoutStressfreiEmailInput, CachedEmailUncheckedUpdateWithoutStressfreiEmailInput>
|
|
create: XOR<CachedEmailCreateWithoutStressfreiEmailInput, CachedEmailUncheckedCreateWithoutStressfreiEmailInput>
|
|
}
|
|
|
|
export type CachedEmailUpdateWithWhereUniqueWithoutStressfreiEmailInput = {
|
|
where: CachedEmailWhereUniqueInput
|
|
data: XOR<CachedEmailUpdateWithoutStressfreiEmailInput, CachedEmailUncheckedUpdateWithoutStressfreiEmailInput>
|
|
}
|
|
|
|
export type CachedEmailUpdateManyWithWhereWithoutStressfreiEmailInput = {
|
|
where: CachedEmailScalarWhereInput
|
|
data: XOR<CachedEmailUpdateManyMutationInput, CachedEmailUncheckedUpdateManyWithoutStressfreiEmailInput>
|
|
}
|
|
|
|
export type CachedEmailScalarWhereInput = {
|
|
AND?: CachedEmailScalarWhereInput | CachedEmailScalarWhereInput[]
|
|
OR?: CachedEmailScalarWhereInput[]
|
|
NOT?: CachedEmailScalarWhereInput | CachedEmailScalarWhereInput[]
|
|
id?: IntFilter<"CachedEmail"> | number
|
|
stressfreiEmailId?: IntFilter<"CachedEmail"> | number
|
|
folder?: EnumEmailFolderFilter<"CachedEmail"> | $Enums.EmailFolder
|
|
messageId?: StringFilter<"CachedEmail"> | string
|
|
uid?: IntFilter<"CachedEmail"> | number
|
|
subject?: StringNullableFilter<"CachedEmail"> | string | null
|
|
fromAddress?: StringFilter<"CachedEmail"> | string
|
|
fromName?: StringNullableFilter<"CachedEmail"> | string | null
|
|
toAddresses?: StringFilter<"CachedEmail"> | string
|
|
ccAddresses?: StringNullableFilter<"CachedEmail"> | string | null
|
|
receivedAt?: DateTimeFilter<"CachedEmail"> | Date | string
|
|
textBody?: StringNullableFilter<"CachedEmail"> | string | null
|
|
htmlBody?: StringNullableFilter<"CachedEmail"> | string | null
|
|
hasAttachments?: BoolFilter<"CachedEmail"> | boolean
|
|
attachmentNames?: StringNullableFilter<"CachedEmail"> | string | null
|
|
contractId?: IntNullableFilter<"CachedEmail"> | number | null
|
|
assignedAt?: DateTimeNullableFilter<"CachedEmail"> | Date | string | null
|
|
assignedBy?: IntNullableFilter<"CachedEmail"> | number | null
|
|
isAutoAssigned?: BoolFilter<"CachedEmail"> | boolean
|
|
isRead?: BoolFilter<"CachedEmail"> | boolean
|
|
isStarred?: BoolFilter<"CachedEmail"> | boolean
|
|
isDeleted?: BoolFilter<"CachedEmail"> | boolean
|
|
deletedAt?: DateTimeNullableFilter<"CachedEmail"> | Date | string | null
|
|
createdAt?: DateTimeFilter<"CachedEmail"> | Date | string
|
|
updatedAt?: DateTimeFilter<"CachedEmail"> | Date | string
|
|
}
|
|
|
|
export type StressfreiEmailCreateWithoutCachedEmailsInput = {
|
|
email: string
|
|
platform?: string | null
|
|
notes?: string | null
|
|
isActive?: boolean
|
|
isProvisioned?: boolean
|
|
provisionedAt?: Date | string | null
|
|
provisionError?: string | null
|
|
hasMailbox?: boolean
|
|
emailPasswordEncrypted?: string | null
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
customer: CustomerCreateNestedOneWithoutStressfreiEmailsInput
|
|
contracts?: ContractCreateNestedManyWithoutStressfreiEmailInput
|
|
}
|
|
|
|
export type StressfreiEmailUncheckedCreateWithoutCachedEmailsInput = {
|
|
id?: number
|
|
customerId: number
|
|
email: string
|
|
platform?: string | null
|
|
notes?: string | null
|
|
isActive?: boolean
|
|
isProvisioned?: boolean
|
|
provisionedAt?: Date | string | null
|
|
provisionError?: string | null
|
|
hasMailbox?: boolean
|
|
emailPasswordEncrypted?: string | null
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
contracts?: ContractUncheckedCreateNestedManyWithoutStressfreiEmailInput
|
|
}
|
|
|
|
export type StressfreiEmailCreateOrConnectWithoutCachedEmailsInput = {
|
|
where: StressfreiEmailWhereUniqueInput
|
|
create: XOR<StressfreiEmailCreateWithoutCachedEmailsInput, StressfreiEmailUncheckedCreateWithoutCachedEmailsInput>
|
|
}
|
|
|
|
export type ContractCreateWithoutAssignedEmailsInput = {
|
|
contractNumber: string
|
|
type: $Enums.ContractType
|
|
status?: $Enums.ContractStatus
|
|
providerName?: string | null
|
|
tariffName?: string | null
|
|
customerNumberAtProvider?: string | null
|
|
priceFirst12Months?: string | null
|
|
priceFrom13Months?: string | null
|
|
priceAfter24Months?: string | null
|
|
startDate?: Date | string | null
|
|
endDate?: Date | string | null
|
|
commission?: number | null
|
|
cancellationLetterPath?: string | null
|
|
cancellationConfirmationPath?: string | null
|
|
cancellationLetterOptionsPath?: string | null
|
|
cancellationConfirmationOptionsPath?: string | null
|
|
cancellationConfirmationDate?: Date | string | null
|
|
cancellationConfirmationOptionsDate?: Date | string | null
|
|
wasSpecialCancellation?: boolean
|
|
portalUsername?: string | null
|
|
portalPasswordEncrypted?: string | null
|
|
notes?: string | null
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
customer: CustomerCreateNestedOneWithoutContractsInput
|
|
contractCategory?: ContractCategoryCreateNestedOneWithoutContractsInput
|
|
address?: AddressCreateNestedOneWithoutContractsAsDeliveryInput
|
|
billingAddress?: AddressCreateNestedOneWithoutContractsAsBillingInput
|
|
bankCard?: BankCardCreateNestedOneWithoutContractsInput
|
|
identityDocument?: IdentityDocumentCreateNestedOneWithoutContractsInput
|
|
salesPlatform?: SalesPlatformCreateNestedOneWithoutContractsInput
|
|
cancellationPeriod?: CancellationPeriodCreateNestedOneWithoutContractsInput
|
|
contractDuration?: ContractDurationCreateNestedOneWithoutContractsInput
|
|
previousContract?: ContractCreateNestedOneWithoutFollowUpContractInput
|
|
followUpContract?: ContractCreateNestedOneWithoutPreviousContractInput
|
|
provider?: ProviderCreateNestedOneWithoutContractsInput
|
|
tariff?: TariffCreateNestedOneWithoutContractsInput
|
|
stressfreiEmail?: StressfreiEmailCreateNestedOneWithoutContractsInput
|
|
energyDetails?: EnergyContractDetailsCreateNestedOneWithoutContractInput
|
|
internetDetails?: InternetContractDetailsCreateNestedOneWithoutContractInput
|
|
mobileDetails?: MobileContractDetailsCreateNestedOneWithoutContractInput
|
|
tvDetails?: TvContractDetailsCreateNestedOneWithoutContractInput
|
|
carInsuranceDetails?: CarInsuranceDetailsCreateNestedOneWithoutContractInput
|
|
tasks?: ContractTaskCreateNestedManyWithoutContractInput
|
|
}
|
|
|
|
export type ContractUncheckedCreateWithoutAssignedEmailsInput = {
|
|
id?: number
|
|
contractNumber: string
|
|
customerId: number
|
|
type: $Enums.ContractType
|
|
status?: $Enums.ContractStatus
|
|
contractCategoryId?: number | null
|
|
addressId?: number | null
|
|
billingAddressId?: number | null
|
|
bankCardId?: number | null
|
|
identityDocumentId?: number | null
|
|
salesPlatformId?: number | null
|
|
cancellationPeriodId?: number | null
|
|
contractDurationId?: number | null
|
|
previousContractId?: number | null
|
|
providerId?: number | null
|
|
tariffId?: number | null
|
|
providerName?: string | null
|
|
tariffName?: string | null
|
|
customerNumberAtProvider?: string | null
|
|
priceFirst12Months?: string | null
|
|
priceFrom13Months?: string | null
|
|
priceAfter24Months?: string | null
|
|
startDate?: Date | string | null
|
|
endDate?: Date | string | null
|
|
commission?: number | null
|
|
cancellationLetterPath?: string | null
|
|
cancellationConfirmationPath?: string | null
|
|
cancellationLetterOptionsPath?: string | null
|
|
cancellationConfirmationOptionsPath?: string | null
|
|
cancellationConfirmationDate?: Date | string | null
|
|
cancellationConfirmationOptionsDate?: Date | string | null
|
|
wasSpecialCancellation?: boolean
|
|
portalUsername?: string | null
|
|
portalPasswordEncrypted?: string | null
|
|
stressfreiEmailId?: number | null
|
|
notes?: string | null
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
followUpContract?: ContractUncheckedCreateNestedOneWithoutPreviousContractInput
|
|
energyDetails?: EnergyContractDetailsUncheckedCreateNestedOneWithoutContractInput
|
|
internetDetails?: InternetContractDetailsUncheckedCreateNestedOneWithoutContractInput
|
|
mobileDetails?: MobileContractDetailsUncheckedCreateNestedOneWithoutContractInput
|
|
tvDetails?: TvContractDetailsUncheckedCreateNestedOneWithoutContractInput
|
|
carInsuranceDetails?: CarInsuranceDetailsUncheckedCreateNestedOneWithoutContractInput
|
|
tasks?: ContractTaskUncheckedCreateNestedManyWithoutContractInput
|
|
}
|
|
|
|
export type ContractCreateOrConnectWithoutAssignedEmailsInput = {
|
|
where: ContractWhereUniqueInput
|
|
create: XOR<ContractCreateWithoutAssignedEmailsInput, ContractUncheckedCreateWithoutAssignedEmailsInput>
|
|
}
|
|
|
|
export type StressfreiEmailUpsertWithoutCachedEmailsInput = {
|
|
update: XOR<StressfreiEmailUpdateWithoutCachedEmailsInput, StressfreiEmailUncheckedUpdateWithoutCachedEmailsInput>
|
|
create: XOR<StressfreiEmailCreateWithoutCachedEmailsInput, StressfreiEmailUncheckedCreateWithoutCachedEmailsInput>
|
|
where?: StressfreiEmailWhereInput
|
|
}
|
|
|
|
export type StressfreiEmailUpdateToOneWithWhereWithoutCachedEmailsInput = {
|
|
where?: StressfreiEmailWhereInput
|
|
data: XOR<StressfreiEmailUpdateWithoutCachedEmailsInput, StressfreiEmailUncheckedUpdateWithoutCachedEmailsInput>
|
|
}
|
|
|
|
export type StressfreiEmailUpdateWithoutCachedEmailsInput = {
|
|
email?: StringFieldUpdateOperationsInput | string
|
|
platform?: NullableStringFieldUpdateOperationsInput | string | null
|
|
notes?: NullableStringFieldUpdateOperationsInput | string | null
|
|
isActive?: BoolFieldUpdateOperationsInput | boolean
|
|
isProvisioned?: BoolFieldUpdateOperationsInput | boolean
|
|
provisionedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
provisionError?: NullableStringFieldUpdateOperationsInput | string | null
|
|
hasMailbox?: BoolFieldUpdateOperationsInput | boolean
|
|
emailPasswordEncrypted?: NullableStringFieldUpdateOperationsInput | string | null
|
|
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
customer?: CustomerUpdateOneRequiredWithoutStressfreiEmailsNestedInput
|
|
contracts?: ContractUpdateManyWithoutStressfreiEmailNestedInput
|
|
}
|
|
|
|
export type StressfreiEmailUncheckedUpdateWithoutCachedEmailsInput = {
|
|
id?: IntFieldUpdateOperationsInput | number
|
|
customerId?: IntFieldUpdateOperationsInput | number
|
|
email?: StringFieldUpdateOperationsInput | string
|
|
platform?: NullableStringFieldUpdateOperationsInput | string | null
|
|
notes?: NullableStringFieldUpdateOperationsInput | string | null
|
|
isActive?: BoolFieldUpdateOperationsInput | boolean
|
|
isProvisioned?: BoolFieldUpdateOperationsInput | boolean
|
|
provisionedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
provisionError?: NullableStringFieldUpdateOperationsInput | string | null
|
|
hasMailbox?: BoolFieldUpdateOperationsInput | boolean
|
|
emailPasswordEncrypted?: NullableStringFieldUpdateOperationsInput | string | null
|
|
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
contracts?: ContractUncheckedUpdateManyWithoutStressfreiEmailNestedInput
|
|
}
|
|
|
|
export type ContractUpsertWithoutAssignedEmailsInput = {
|
|
update: XOR<ContractUpdateWithoutAssignedEmailsInput, ContractUncheckedUpdateWithoutAssignedEmailsInput>
|
|
create: XOR<ContractCreateWithoutAssignedEmailsInput, ContractUncheckedCreateWithoutAssignedEmailsInput>
|
|
where?: ContractWhereInput
|
|
}
|
|
|
|
export type ContractUpdateToOneWithWhereWithoutAssignedEmailsInput = {
|
|
where?: ContractWhereInput
|
|
data: XOR<ContractUpdateWithoutAssignedEmailsInput, ContractUncheckedUpdateWithoutAssignedEmailsInput>
|
|
}
|
|
|
|
export type ContractUpdateWithoutAssignedEmailsInput = {
|
|
contractNumber?: StringFieldUpdateOperationsInput | string
|
|
type?: EnumContractTypeFieldUpdateOperationsInput | $Enums.ContractType
|
|
status?: EnumContractStatusFieldUpdateOperationsInput | $Enums.ContractStatus
|
|
providerName?: NullableStringFieldUpdateOperationsInput | string | null
|
|
tariffName?: NullableStringFieldUpdateOperationsInput | string | null
|
|
customerNumberAtProvider?: NullableStringFieldUpdateOperationsInput | string | null
|
|
priceFirst12Months?: NullableStringFieldUpdateOperationsInput | string | null
|
|
priceFrom13Months?: NullableStringFieldUpdateOperationsInput | string | null
|
|
priceAfter24Months?: NullableStringFieldUpdateOperationsInput | string | null
|
|
startDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
endDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
commission?: NullableFloatFieldUpdateOperationsInput | number | null
|
|
cancellationLetterPath?: NullableStringFieldUpdateOperationsInput | string | null
|
|
cancellationConfirmationPath?: NullableStringFieldUpdateOperationsInput | string | null
|
|
cancellationLetterOptionsPath?: NullableStringFieldUpdateOperationsInput | string | null
|
|
cancellationConfirmationOptionsPath?: NullableStringFieldUpdateOperationsInput | string | null
|
|
cancellationConfirmationDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
cancellationConfirmationOptionsDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
wasSpecialCancellation?: BoolFieldUpdateOperationsInput | boolean
|
|
portalUsername?: NullableStringFieldUpdateOperationsInput | string | null
|
|
portalPasswordEncrypted?: NullableStringFieldUpdateOperationsInput | string | null
|
|
notes?: NullableStringFieldUpdateOperationsInput | string | null
|
|
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
customer?: CustomerUpdateOneRequiredWithoutContractsNestedInput
|
|
contractCategory?: ContractCategoryUpdateOneWithoutContractsNestedInput
|
|
address?: AddressUpdateOneWithoutContractsAsDeliveryNestedInput
|
|
billingAddress?: AddressUpdateOneWithoutContractsAsBillingNestedInput
|
|
bankCard?: BankCardUpdateOneWithoutContractsNestedInput
|
|
identityDocument?: IdentityDocumentUpdateOneWithoutContractsNestedInput
|
|
salesPlatform?: SalesPlatformUpdateOneWithoutContractsNestedInput
|
|
cancellationPeriod?: CancellationPeriodUpdateOneWithoutContractsNestedInput
|
|
contractDuration?: ContractDurationUpdateOneWithoutContractsNestedInput
|
|
previousContract?: ContractUpdateOneWithoutFollowUpContractNestedInput
|
|
followUpContract?: ContractUpdateOneWithoutPreviousContractNestedInput
|
|
provider?: ProviderUpdateOneWithoutContractsNestedInput
|
|
tariff?: TariffUpdateOneWithoutContractsNestedInput
|
|
stressfreiEmail?: StressfreiEmailUpdateOneWithoutContractsNestedInput
|
|
energyDetails?: EnergyContractDetailsUpdateOneWithoutContractNestedInput
|
|
internetDetails?: InternetContractDetailsUpdateOneWithoutContractNestedInput
|
|
mobileDetails?: MobileContractDetailsUpdateOneWithoutContractNestedInput
|
|
tvDetails?: TvContractDetailsUpdateOneWithoutContractNestedInput
|
|
carInsuranceDetails?: CarInsuranceDetailsUpdateOneWithoutContractNestedInput
|
|
tasks?: ContractTaskUpdateManyWithoutContractNestedInput
|
|
}
|
|
|
|
export type ContractUncheckedUpdateWithoutAssignedEmailsInput = {
|
|
id?: IntFieldUpdateOperationsInput | number
|
|
contractNumber?: StringFieldUpdateOperationsInput | string
|
|
customerId?: IntFieldUpdateOperationsInput | number
|
|
type?: EnumContractTypeFieldUpdateOperationsInput | $Enums.ContractType
|
|
status?: EnumContractStatusFieldUpdateOperationsInput | $Enums.ContractStatus
|
|
contractCategoryId?: NullableIntFieldUpdateOperationsInput | number | null
|
|
addressId?: NullableIntFieldUpdateOperationsInput | number | null
|
|
billingAddressId?: NullableIntFieldUpdateOperationsInput | number | null
|
|
bankCardId?: NullableIntFieldUpdateOperationsInput | number | null
|
|
identityDocumentId?: NullableIntFieldUpdateOperationsInput | number | null
|
|
salesPlatformId?: NullableIntFieldUpdateOperationsInput | number | null
|
|
cancellationPeriodId?: NullableIntFieldUpdateOperationsInput | number | null
|
|
contractDurationId?: NullableIntFieldUpdateOperationsInput | number | null
|
|
previousContractId?: NullableIntFieldUpdateOperationsInput | number | null
|
|
providerId?: NullableIntFieldUpdateOperationsInput | number | null
|
|
tariffId?: NullableIntFieldUpdateOperationsInput | number | null
|
|
providerName?: NullableStringFieldUpdateOperationsInput | string | null
|
|
tariffName?: NullableStringFieldUpdateOperationsInput | string | null
|
|
customerNumberAtProvider?: NullableStringFieldUpdateOperationsInput | string | null
|
|
priceFirst12Months?: NullableStringFieldUpdateOperationsInput | string | null
|
|
priceFrom13Months?: NullableStringFieldUpdateOperationsInput | string | null
|
|
priceAfter24Months?: NullableStringFieldUpdateOperationsInput | string | null
|
|
startDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
endDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
commission?: NullableFloatFieldUpdateOperationsInput | number | null
|
|
cancellationLetterPath?: NullableStringFieldUpdateOperationsInput | string | null
|
|
cancellationConfirmationPath?: NullableStringFieldUpdateOperationsInput | string | null
|
|
cancellationLetterOptionsPath?: NullableStringFieldUpdateOperationsInput | string | null
|
|
cancellationConfirmationOptionsPath?: NullableStringFieldUpdateOperationsInput | string | null
|
|
cancellationConfirmationDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
cancellationConfirmationOptionsDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
wasSpecialCancellation?: BoolFieldUpdateOperationsInput | boolean
|
|
portalUsername?: NullableStringFieldUpdateOperationsInput | string | null
|
|
portalPasswordEncrypted?: NullableStringFieldUpdateOperationsInput | string | null
|
|
stressfreiEmailId?: NullableIntFieldUpdateOperationsInput | number | null
|
|
notes?: NullableStringFieldUpdateOperationsInput | string | null
|
|
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
followUpContract?: ContractUncheckedUpdateOneWithoutPreviousContractNestedInput
|
|
energyDetails?: EnergyContractDetailsUncheckedUpdateOneWithoutContractNestedInput
|
|
internetDetails?: InternetContractDetailsUncheckedUpdateOneWithoutContractNestedInput
|
|
mobileDetails?: MobileContractDetailsUncheckedUpdateOneWithoutContractNestedInput
|
|
tvDetails?: TvContractDetailsUncheckedUpdateOneWithoutContractNestedInput
|
|
carInsuranceDetails?: CarInsuranceDetailsUncheckedUpdateOneWithoutContractNestedInput
|
|
tasks?: ContractTaskUncheckedUpdateManyWithoutContractNestedInput
|
|
}
|
|
|
|
export type CustomerCreateWithoutMetersInput = {
|
|
customerNumber: string
|
|
type?: $Enums.CustomerType
|
|
salutation?: string | null
|
|
firstName: string
|
|
lastName: string
|
|
companyName?: string | null
|
|
foundingDate?: Date | string | null
|
|
birthDate?: Date | string | null
|
|
birthPlace?: string | null
|
|
email?: string | null
|
|
phone?: string | null
|
|
mobile?: string | null
|
|
taxNumber?: string | null
|
|
businessRegistrationPath?: string | null
|
|
commercialRegisterPath?: string | null
|
|
commercialRegisterNumber?: string | null
|
|
privacyPolicyPath?: string | null
|
|
notes?: string | null
|
|
portalEnabled?: boolean
|
|
portalEmail?: string | null
|
|
portalPasswordHash?: string | null
|
|
portalPasswordEncrypted?: string | null
|
|
portalLastLogin?: Date | string | null
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
user?: UserCreateNestedOneWithoutCustomerInput
|
|
addresses?: AddressCreateNestedManyWithoutCustomerInput
|
|
bankCards?: BankCardCreateNestedManyWithoutCustomerInput
|
|
identityDocuments?: IdentityDocumentCreateNestedManyWithoutCustomerInput
|
|
stressfreiEmails?: StressfreiEmailCreateNestedManyWithoutCustomerInput
|
|
contracts?: ContractCreateNestedManyWithoutCustomerInput
|
|
representingFor?: CustomerRepresentativeCreateNestedManyWithoutRepresentativeInput
|
|
representedBy?: CustomerRepresentativeCreateNestedManyWithoutCustomerInput
|
|
}
|
|
|
|
export type CustomerUncheckedCreateWithoutMetersInput = {
|
|
id?: number
|
|
customerNumber: string
|
|
type?: $Enums.CustomerType
|
|
salutation?: string | null
|
|
firstName: string
|
|
lastName: string
|
|
companyName?: string | null
|
|
foundingDate?: Date | string | null
|
|
birthDate?: Date | string | null
|
|
birthPlace?: string | null
|
|
email?: string | null
|
|
phone?: string | null
|
|
mobile?: string | null
|
|
taxNumber?: string | null
|
|
businessRegistrationPath?: string | null
|
|
commercialRegisterPath?: string | null
|
|
commercialRegisterNumber?: string | null
|
|
privacyPolicyPath?: string | null
|
|
notes?: string | null
|
|
portalEnabled?: boolean
|
|
portalEmail?: string | null
|
|
portalPasswordHash?: string | null
|
|
portalPasswordEncrypted?: string | null
|
|
portalLastLogin?: Date | string | null
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
user?: UserUncheckedCreateNestedOneWithoutCustomerInput
|
|
addresses?: AddressUncheckedCreateNestedManyWithoutCustomerInput
|
|
bankCards?: BankCardUncheckedCreateNestedManyWithoutCustomerInput
|
|
identityDocuments?: IdentityDocumentUncheckedCreateNestedManyWithoutCustomerInput
|
|
stressfreiEmails?: StressfreiEmailUncheckedCreateNestedManyWithoutCustomerInput
|
|
contracts?: ContractUncheckedCreateNestedManyWithoutCustomerInput
|
|
representingFor?: CustomerRepresentativeUncheckedCreateNestedManyWithoutRepresentativeInput
|
|
representedBy?: CustomerRepresentativeUncheckedCreateNestedManyWithoutCustomerInput
|
|
}
|
|
|
|
export type CustomerCreateOrConnectWithoutMetersInput = {
|
|
where: CustomerWhereUniqueInput
|
|
create: XOR<CustomerCreateWithoutMetersInput, CustomerUncheckedCreateWithoutMetersInput>
|
|
}
|
|
|
|
export type MeterReadingCreateWithoutMeterInput = {
|
|
readingDate: Date | string
|
|
value: number
|
|
unit?: string
|
|
notes?: string | null
|
|
createdAt?: Date | string
|
|
}
|
|
|
|
export type MeterReadingUncheckedCreateWithoutMeterInput = {
|
|
id?: number
|
|
readingDate: Date | string
|
|
value: number
|
|
unit?: string
|
|
notes?: string | null
|
|
createdAt?: Date | string
|
|
}
|
|
|
|
export type MeterReadingCreateOrConnectWithoutMeterInput = {
|
|
where: MeterReadingWhereUniqueInput
|
|
create: XOR<MeterReadingCreateWithoutMeterInput, MeterReadingUncheckedCreateWithoutMeterInput>
|
|
}
|
|
|
|
export type MeterReadingCreateManyMeterInputEnvelope = {
|
|
data: MeterReadingCreateManyMeterInput | MeterReadingCreateManyMeterInput[]
|
|
skipDuplicates?: boolean
|
|
}
|
|
|
|
export type EnergyContractDetailsCreateWithoutMeterInput = {
|
|
maloId?: string | null
|
|
annualConsumption?: number | null
|
|
annualConsumptionKwh?: number | null
|
|
basePrice?: number | null
|
|
unitPrice?: number | null
|
|
bonus?: number | null
|
|
previousProviderName?: string | null
|
|
previousCustomerNumber?: string | null
|
|
contract: ContractCreateNestedOneWithoutEnergyDetailsInput
|
|
}
|
|
|
|
export type EnergyContractDetailsUncheckedCreateWithoutMeterInput = {
|
|
id?: number
|
|
contractId: number
|
|
maloId?: string | null
|
|
annualConsumption?: number | null
|
|
annualConsumptionKwh?: number | null
|
|
basePrice?: number | null
|
|
unitPrice?: number | null
|
|
bonus?: number | null
|
|
previousProviderName?: string | null
|
|
previousCustomerNumber?: string | null
|
|
}
|
|
|
|
export type EnergyContractDetailsCreateOrConnectWithoutMeterInput = {
|
|
where: EnergyContractDetailsWhereUniqueInput
|
|
create: XOR<EnergyContractDetailsCreateWithoutMeterInput, EnergyContractDetailsUncheckedCreateWithoutMeterInput>
|
|
}
|
|
|
|
export type EnergyContractDetailsCreateManyMeterInputEnvelope = {
|
|
data: EnergyContractDetailsCreateManyMeterInput | EnergyContractDetailsCreateManyMeterInput[]
|
|
skipDuplicates?: boolean
|
|
}
|
|
|
|
export type CustomerUpsertWithoutMetersInput = {
|
|
update: XOR<CustomerUpdateWithoutMetersInput, CustomerUncheckedUpdateWithoutMetersInput>
|
|
create: XOR<CustomerCreateWithoutMetersInput, CustomerUncheckedCreateWithoutMetersInput>
|
|
where?: CustomerWhereInput
|
|
}
|
|
|
|
export type CustomerUpdateToOneWithWhereWithoutMetersInput = {
|
|
where?: CustomerWhereInput
|
|
data: XOR<CustomerUpdateWithoutMetersInput, CustomerUncheckedUpdateWithoutMetersInput>
|
|
}
|
|
|
|
export type CustomerUpdateWithoutMetersInput = {
|
|
customerNumber?: StringFieldUpdateOperationsInput | string
|
|
type?: EnumCustomerTypeFieldUpdateOperationsInput | $Enums.CustomerType
|
|
salutation?: NullableStringFieldUpdateOperationsInput | string | null
|
|
firstName?: StringFieldUpdateOperationsInput | string
|
|
lastName?: StringFieldUpdateOperationsInput | string
|
|
companyName?: NullableStringFieldUpdateOperationsInput | string | null
|
|
foundingDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
birthDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
birthPlace?: NullableStringFieldUpdateOperationsInput | string | null
|
|
email?: NullableStringFieldUpdateOperationsInput | string | null
|
|
phone?: NullableStringFieldUpdateOperationsInput | string | null
|
|
mobile?: NullableStringFieldUpdateOperationsInput | string | null
|
|
taxNumber?: NullableStringFieldUpdateOperationsInput | string | null
|
|
businessRegistrationPath?: NullableStringFieldUpdateOperationsInput | string | null
|
|
commercialRegisterPath?: NullableStringFieldUpdateOperationsInput | string | null
|
|
commercialRegisterNumber?: NullableStringFieldUpdateOperationsInput | string | null
|
|
privacyPolicyPath?: NullableStringFieldUpdateOperationsInput | string | null
|
|
notes?: NullableStringFieldUpdateOperationsInput | string | null
|
|
portalEnabled?: BoolFieldUpdateOperationsInput | boolean
|
|
portalEmail?: NullableStringFieldUpdateOperationsInput | string | null
|
|
portalPasswordHash?: NullableStringFieldUpdateOperationsInput | string | null
|
|
portalPasswordEncrypted?: NullableStringFieldUpdateOperationsInput | string | null
|
|
portalLastLogin?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
user?: UserUpdateOneWithoutCustomerNestedInput
|
|
addresses?: AddressUpdateManyWithoutCustomerNestedInput
|
|
bankCards?: BankCardUpdateManyWithoutCustomerNestedInput
|
|
identityDocuments?: IdentityDocumentUpdateManyWithoutCustomerNestedInput
|
|
stressfreiEmails?: StressfreiEmailUpdateManyWithoutCustomerNestedInput
|
|
contracts?: ContractUpdateManyWithoutCustomerNestedInput
|
|
representingFor?: CustomerRepresentativeUpdateManyWithoutRepresentativeNestedInput
|
|
representedBy?: CustomerRepresentativeUpdateManyWithoutCustomerNestedInput
|
|
}
|
|
|
|
export type CustomerUncheckedUpdateWithoutMetersInput = {
|
|
id?: IntFieldUpdateOperationsInput | number
|
|
customerNumber?: StringFieldUpdateOperationsInput | string
|
|
type?: EnumCustomerTypeFieldUpdateOperationsInput | $Enums.CustomerType
|
|
salutation?: NullableStringFieldUpdateOperationsInput | string | null
|
|
firstName?: StringFieldUpdateOperationsInput | string
|
|
lastName?: StringFieldUpdateOperationsInput | string
|
|
companyName?: NullableStringFieldUpdateOperationsInput | string | null
|
|
foundingDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
birthDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
birthPlace?: NullableStringFieldUpdateOperationsInput | string | null
|
|
email?: NullableStringFieldUpdateOperationsInput | string | null
|
|
phone?: NullableStringFieldUpdateOperationsInput | string | null
|
|
mobile?: NullableStringFieldUpdateOperationsInput | string | null
|
|
taxNumber?: NullableStringFieldUpdateOperationsInput | string | null
|
|
businessRegistrationPath?: NullableStringFieldUpdateOperationsInput | string | null
|
|
commercialRegisterPath?: NullableStringFieldUpdateOperationsInput | string | null
|
|
commercialRegisterNumber?: NullableStringFieldUpdateOperationsInput | string | null
|
|
privacyPolicyPath?: NullableStringFieldUpdateOperationsInput | string | null
|
|
notes?: NullableStringFieldUpdateOperationsInput | string | null
|
|
portalEnabled?: BoolFieldUpdateOperationsInput | boolean
|
|
portalEmail?: NullableStringFieldUpdateOperationsInput | string | null
|
|
portalPasswordHash?: NullableStringFieldUpdateOperationsInput | string | null
|
|
portalPasswordEncrypted?: NullableStringFieldUpdateOperationsInput | string | null
|
|
portalLastLogin?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
user?: UserUncheckedUpdateOneWithoutCustomerNestedInput
|
|
addresses?: AddressUncheckedUpdateManyWithoutCustomerNestedInput
|
|
bankCards?: BankCardUncheckedUpdateManyWithoutCustomerNestedInput
|
|
identityDocuments?: IdentityDocumentUncheckedUpdateManyWithoutCustomerNestedInput
|
|
stressfreiEmails?: StressfreiEmailUncheckedUpdateManyWithoutCustomerNestedInput
|
|
contracts?: ContractUncheckedUpdateManyWithoutCustomerNestedInput
|
|
representingFor?: CustomerRepresentativeUncheckedUpdateManyWithoutRepresentativeNestedInput
|
|
representedBy?: CustomerRepresentativeUncheckedUpdateManyWithoutCustomerNestedInput
|
|
}
|
|
|
|
export type MeterReadingUpsertWithWhereUniqueWithoutMeterInput = {
|
|
where: MeterReadingWhereUniqueInput
|
|
update: XOR<MeterReadingUpdateWithoutMeterInput, MeterReadingUncheckedUpdateWithoutMeterInput>
|
|
create: XOR<MeterReadingCreateWithoutMeterInput, MeterReadingUncheckedCreateWithoutMeterInput>
|
|
}
|
|
|
|
export type MeterReadingUpdateWithWhereUniqueWithoutMeterInput = {
|
|
where: MeterReadingWhereUniqueInput
|
|
data: XOR<MeterReadingUpdateWithoutMeterInput, MeterReadingUncheckedUpdateWithoutMeterInput>
|
|
}
|
|
|
|
export type MeterReadingUpdateManyWithWhereWithoutMeterInput = {
|
|
where: MeterReadingScalarWhereInput
|
|
data: XOR<MeterReadingUpdateManyMutationInput, MeterReadingUncheckedUpdateManyWithoutMeterInput>
|
|
}
|
|
|
|
export type MeterReadingScalarWhereInput = {
|
|
AND?: MeterReadingScalarWhereInput | MeterReadingScalarWhereInput[]
|
|
OR?: MeterReadingScalarWhereInput[]
|
|
NOT?: MeterReadingScalarWhereInput | MeterReadingScalarWhereInput[]
|
|
id?: IntFilter<"MeterReading"> | number
|
|
meterId?: IntFilter<"MeterReading"> | number
|
|
readingDate?: DateTimeFilter<"MeterReading"> | Date | string
|
|
value?: FloatFilter<"MeterReading"> | number
|
|
unit?: StringFilter<"MeterReading"> | string
|
|
notes?: StringNullableFilter<"MeterReading"> | string | null
|
|
createdAt?: DateTimeFilter<"MeterReading"> | Date | string
|
|
}
|
|
|
|
export type EnergyContractDetailsUpsertWithWhereUniqueWithoutMeterInput = {
|
|
where: EnergyContractDetailsWhereUniqueInput
|
|
update: XOR<EnergyContractDetailsUpdateWithoutMeterInput, EnergyContractDetailsUncheckedUpdateWithoutMeterInput>
|
|
create: XOR<EnergyContractDetailsCreateWithoutMeterInput, EnergyContractDetailsUncheckedCreateWithoutMeterInput>
|
|
}
|
|
|
|
export type EnergyContractDetailsUpdateWithWhereUniqueWithoutMeterInput = {
|
|
where: EnergyContractDetailsWhereUniqueInput
|
|
data: XOR<EnergyContractDetailsUpdateWithoutMeterInput, EnergyContractDetailsUncheckedUpdateWithoutMeterInput>
|
|
}
|
|
|
|
export type EnergyContractDetailsUpdateManyWithWhereWithoutMeterInput = {
|
|
where: EnergyContractDetailsScalarWhereInput
|
|
data: XOR<EnergyContractDetailsUpdateManyMutationInput, EnergyContractDetailsUncheckedUpdateManyWithoutMeterInput>
|
|
}
|
|
|
|
export type EnergyContractDetailsScalarWhereInput = {
|
|
AND?: EnergyContractDetailsScalarWhereInput | EnergyContractDetailsScalarWhereInput[]
|
|
OR?: EnergyContractDetailsScalarWhereInput[]
|
|
NOT?: EnergyContractDetailsScalarWhereInput | EnergyContractDetailsScalarWhereInput[]
|
|
id?: IntFilter<"EnergyContractDetails"> | number
|
|
contractId?: IntFilter<"EnergyContractDetails"> | number
|
|
meterId?: IntNullableFilter<"EnergyContractDetails"> | number | null
|
|
maloId?: StringNullableFilter<"EnergyContractDetails"> | string | null
|
|
annualConsumption?: FloatNullableFilter<"EnergyContractDetails"> | number | null
|
|
annualConsumptionKwh?: FloatNullableFilter<"EnergyContractDetails"> | number | null
|
|
basePrice?: FloatNullableFilter<"EnergyContractDetails"> | number | null
|
|
unitPrice?: FloatNullableFilter<"EnergyContractDetails"> | number | null
|
|
bonus?: FloatNullableFilter<"EnergyContractDetails"> | number | null
|
|
previousProviderName?: StringNullableFilter<"EnergyContractDetails"> | string | null
|
|
previousCustomerNumber?: StringNullableFilter<"EnergyContractDetails"> | string | null
|
|
}
|
|
|
|
export type MeterCreateWithoutReadingsInput = {
|
|
meterNumber: string
|
|
type: $Enums.MeterType
|
|
location?: string | null
|
|
isActive?: boolean
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
customer: CustomerCreateNestedOneWithoutMetersInput
|
|
energyDetails?: EnergyContractDetailsCreateNestedManyWithoutMeterInput
|
|
}
|
|
|
|
export type MeterUncheckedCreateWithoutReadingsInput = {
|
|
id?: number
|
|
customerId: number
|
|
meterNumber: string
|
|
type: $Enums.MeterType
|
|
location?: string | null
|
|
isActive?: boolean
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
energyDetails?: EnergyContractDetailsUncheckedCreateNestedManyWithoutMeterInput
|
|
}
|
|
|
|
export type MeterCreateOrConnectWithoutReadingsInput = {
|
|
where: MeterWhereUniqueInput
|
|
create: XOR<MeterCreateWithoutReadingsInput, MeterUncheckedCreateWithoutReadingsInput>
|
|
}
|
|
|
|
export type MeterUpsertWithoutReadingsInput = {
|
|
update: XOR<MeterUpdateWithoutReadingsInput, MeterUncheckedUpdateWithoutReadingsInput>
|
|
create: XOR<MeterCreateWithoutReadingsInput, MeterUncheckedCreateWithoutReadingsInput>
|
|
where?: MeterWhereInput
|
|
}
|
|
|
|
export type MeterUpdateToOneWithWhereWithoutReadingsInput = {
|
|
where?: MeterWhereInput
|
|
data: XOR<MeterUpdateWithoutReadingsInput, MeterUncheckedUpdateWithoutReadingsInput>
|
|
}
|
|
|
|
export type MeterUpdateWithoutReadingsInput = {
|
|
meterNumber?: StringFieldUpdateOperationsInput | string
|
|
type?: EnumMeterTypeFieldUpdateOperationsInput | $Enums.MeterType
|
|
location?: NullableStringFieldUpdateOperationsInput | string | null
|
|
isActive?: BoolFieldUpdateOperationsInput | boolean
|
|
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
customer?: CustomerUpdateOneRequiredWithoutMetersNestedInput
|
|
energyDetails?: EnergyContractDetailsUpdateManyWithoutMeterNestedInput
|
|
}
|
|
|
|
export type MeterUncheckedUpdateWithoutReadingsInput = {
|
|
id?: IntFieldUpdateOperationsInput | number
|
|
customerId?: IntFieldUpdateOperationsInput | number
|
|
meterNumber?: StringFieldUpdateOperationsInput | string
|
|
type?: EnumMeterTypeFieldUpdateOperationsInput | $Enums.MeterType
|
|
location?: NullableStringFieldUpdateOperationsInput | string | null
|
|
isActive?: BoolFieldUpdateOperationsInput | boolean
|
|
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
energyDetails?: EnergyContractDetailsUncheckedUpdateManyWithoutMeterNestedInput
|
|
}
|
|
|
|
export type ContractCreateWithoutSalesPlatformInput = {
|
|
contractNumber: string
|
|
type: $Enums.ContractType
|
|
status?: $Enums.ContractStatus
|
|
providerName?: string | null
|
|
tariffName?: string | null
|
|
customerNumberAtProvider?: string | null
|
|
priceFirst12Months?: string | null
|
|
priceFrom13Months?: string | null
|
|
priceAfter24Months?: string | null
|
|
startDate?: Date | string | null
|
|
endDate?: Date | string | null
|
|
commission?: number | null
|
|
cancellationLetterPath?: string | null
|
|
cancellationConfirmationPath?: string | null
|
|
cancellationLetterOptionsPath?: string | null
|
|
cancellationConfirmationOptionsPath?: string | null
|
|
cancellationConfirmationDate?: Date | string | null
|
|
cancellationConfirmationOptionsDate?: Date | string | null
|
|
wasSpecialCancellation?: boolean
|
|
portalUsername?: string | null
|
|
portalPasswordEncrypted?: string | null
|
|
notes?: string | null
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
customer: CustomerCreateNestedOneWithoutContractsInput
|
|
contractCategory?: ContractCategoryCreateNestedOneWithoutContractsInput
|
|
address?: AddressCreateNestedOneWithoutContractsAsDeliveryInput
|
|
billingAddress?: AddressCreateNestedOneWithoutContractsAsBillingInput
|
|
bankCard?: BankCardCreateNestedOneWithoutContractsInput
|
|
identityDocument?: IdentityDocumentCreateNestedOneWithoutContractsInput
|
|
cancellationPeriod?: CancellationPeriodCreateNestedOneWithoutContractsInput
|
|
contractDuration?: ContractDurationCreateNestedOneWithoutContractsInput
|
|
previousContract?: ContractCreateNestedOneWithoutFollowUpContractInput
|
|
followUpContract?: ContractCreateNestedOneWithoutPreviousContractInput
|
|
provider?: ProviderCreateNestedOneWithoutContractsInput
|
|
tariff?: TariffCreateNestedOneWithoutContractsInput
|
|
stressfreiEmail?: StressfreiEmailCreateNestedOneWithoutContractsInput
|
|
energyDetails?: EnergyContractDetailsCreateNestedOneWithoutContractInput
|
|
internetDetails?: InternetContractDetailsCreateNestedOneWithoutContractInput
|
|
mobileDetails?: MobileContractDetailsCreateNestedOneWithoutContractInput
|
|
tvDetails?: TvContractDetailsCreateNestedOneWithoutContractInput
|
|
carInsuranceDetails?: CarInsuranceDetailsCreateNestedOneWithoutContractInput
|
|
tasks?: ContractTaskCreateNestedManyWithoutContractInput
|
|
assignedEmails?: CachedEmailCreateNestedManyWithoutContractInput
|
|
}
|
|
|
|
export type ContractUncheckedCreateWithoutSalesPlatformInput = {
|
|
id?: number
|
|
contractNumber: string
|
|
customerId: number
|
|
type: $Enums.ContractType
|
|
status?: $Enums.ContractStatus
|
|
contractCategoryId?: number | null
|
|
addressId?: number | null
|
|
billingAddressId?: number | null
|
|
bankCardId?: number | null
|
|
identityDocumentId?: number | null
|
|
cancellationPeriodId?: number | null
|
|
contractDurationId?: number | null
|
|
previousContractId?: number | null
|
|
providerId?: number | null
|
|
tariffId?: number | null
|
|
providerName?: string | null
|
|
tariffName?: string | null
|
|
customerNumberAtProvider?: string | null
|
|
priceFirst12Months?: string | null
|
|
priceFrom13Months?: string | null
|
|
priceAfter24Months?: string | null
|
|
startDate?: Date | string | null
|
|
endDate?: Date | string | null
|
|
commission?: number | null
|
|
cancellationLetterPath?: string | null
|
|
cancellationConfirmationPath?: string | null
|
|
cancellationLetterOptionsPath?: string | null
|
|
cancellationConfirmationOptionsPath?: string | null
|
|
cancellationConfirmationDate?: Date | string | null
|
|
cancellationConfirmationOptionsDate?: Date | string | null
|
|
wasSpecialCancellation?: boolean
|
|
portalUsername?: string | null
|
|
portalPasswordEncrypted?: string | null
|
|
stressfreiEmailId?: number | null
|
|
notes?: string | null
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
followUpContract?: ContractUncheckedCreateNestedOneWithoutPreviousContractInput
|
|
energyDetails?: EnergyContractDetailsUncheckedCreateNestedOneWithoutContractInput
|
|
internetDetails?: InternetContractDetailsUncheckedCreateNestedOneWithoutContractInput
|
|
mobileDetails?: MobileContractDetailsUncheckedCreateNestedOneWithoutContractInput
|
|
tvDetails?: TvContractDetailsUncheckedCreateNestedOneWithoutContractInput
|
|
carInsuranceDetails?: CarInsuranceDetailsUncheckedCreateNestedOneWithoutContractInput
|
|
tasks?: ContractTaskUncheckedCreateNestedManyWithoutContractInput
|
|
assignedEmails?: CachedEmailUncheckedCreateNestedManyWithoutContractInput
|
|
}
|
|
|
|
export type ContractCreateOrConnectWithoutSalesPlatformInput = {
|
|
where: ContractWhereUniqueInput
|
|
create: XOR<ContractCreateWithoutSalesPlatformInput, ContractUncheckedCreateWithoutSalesPlatformInput>
|
|
}
|
|
|
|
export type ContractCreateManySalesPlatformInputEnvelope = {
|
|
data: ContractCreateManySalesPlatformInput | ContractCreateManySalesPlatformInput[]
|
|
skipDuplicates?: boolean
|
|
}
|
|
|
|
export type ContractUpsertWithWhereUniqueWithoutSalesPlatformInput = {
|
|
where: ContractWhereUniqueInput
|
|
update: XOR<ContractUpdateWithoutSalesPlatformInput, ContractUncheckedUpdateWithoutSalesPlatformInput>
|
|
create: XOR<ContractCreateWithoutSalesPlatformInput, ContractUncheckedCreateWithoutSalesPlatformInput>
|
|
}
|
|
|
|
export type ContractUpdateWithWhereUniqueWithoutSalesPlatformInput = {
|
|
where: ContractWhereUniqueInput
|
|
data: XOR<ContractUpdateWithoutSalesPlatformInput, ContractUncheckedUpdateWithoutSalesPlatformInput>
|
|
}
|
|
|
|
export type ContractUpdateManyWithWhereWithoutSalesPlatformInput = {
|
|
where: ContractScalarWhereInput
|
|
data: XOR<ContractUpdateManyMutationInput, ContractUncheckedUpdateManyWithoutSalesPlatformInput>
|
|
}
|
|
|
|
export type ContractCreateWithoutCancellationPeriodInput = {
|
|
contractNumber: string
|
|
type: $Enums.ContractType
|
|
status?: $Enums.ContractStatus
|
|
providerName?: string | null
|
|
tariffName?: string | null
|
|
customerNumberAtProvider?: string | null
|
|
priceFirst12Months?: string | null
|
|
priceFrom13Months?: string | null
|
|
priceAfter24Months?: string | null
|
|
startDate?: Date | string | null
|
|
endDate?: Date | string | null
|
|
commission?: number | null
|
|
cancellationLetterPath?: string | null
|
|
cancellationConfirmationPath?: string | null
|
|
cancellationLetterOptionsPath?: string | null
|
|
cancellationConfirmationOptionsPath?: string | null
|
|
cancellationConfirmationDate?: Date | string | null
|
|
cancellationConfirmationOptionsDate?: Date | string | null
|
|
wasSpecialCancellation?: boolean
|
|
portalUsername?: string | null
|
|
portalPasswordEncrypted?: string | null
|
|
notes?: string | null
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
customer: CustomerCreateNestedOneWithoutContractsInput
|
|
contractCategory?: ContractCategoryCreateNestedOneWithoutContractsInput
|
|
address?: AddressCreateNestedOneWithoutContractsAsDeliveryInput
|
|
billingAddress?: AddressCreateNestedOneWithoutContractsAsBillingInput
|
|
bankCard?: BankCardCreateNestedOneWithoutContractsInput
|
|
identityDocument?: IdentityDocumentCreateNestedOneWithoutContractsInput
|
|
salesPlatform?: SalesPlatformCreateNestedOneWithoutContractsInput
|
|
contractDuration?: ContractDurationCreateNestedOneWithoutContractsInput
|
|
previousContract?: ContractCreateNestedOneWithoutFollowUpContractInput
|
|
followUpContract?: ContractCreateNestedOneWithoutPreviousContractInput
|
|
provider?: ProviderCreateNestedOneWithoutContractsInput
|
|
tariff?: TariffCreateNestedOneWithoutContractsInput
|
|
stressfreiEmail?: StressfreiEmailCreateNestedOneWithoutContractsInput
|
|
energyDetails?: EnergyContractDetailsCreateNestedOneWithoutContractInput
|
|
internetDetails?: InternetContractDetailsCreateNestedOneWithoutContractInput
|
|
mobileDetails?: MobileContractDetailsCreateNestedOneWithoutContractInput
|
|
tvDetails?: TvContractDetailsCreateNestedOneWithoutContractInput
|
|
carInsuranceDetails?: CarInsuranceDetailsCreateNestedOneWithoutContractInput
|
|
tasks?: ContractTaskCreateNestedManyWithoutContractInput
|
|
assignedEmails?: CachedEmailCreateNestedManyWithoutContractInput
|
|
}
|
|
|
|
export type ContractUncheckedCreateWithoutCancellationPeriodInput = {
|
|
id?: number
|
|
contractNumber: string
|
|
customerId: number
|
|
type: $Enums.ContractType
|
|
status?: $Enums.ContractStatus
|
|
contractCategoryId?: number | null
|
|
addressId?: number | null
|
|
billingAddressId?: number | null
|
|
bankCardId?: number | null
|
|
identityDocumentId?: number | null
|
|
salesPlatformId?: number | null
|
|
contractDurationId?: number | null
|
|
previousContractId?: number | null
|
|
providerId?: number | null
|
|
tariffId?: number | null
|
|
providerName?: string | null
|
|
tariffName?: string | null
|
|
customerNumberAtProvider?: string | null
|
|
priceFirst12Months?: string | null
|
|
priceFrom13Months?: string | null
|
|
priceAfter24Months?: string | null
|
|
startDate?: Date | string | null
|
|
endDate?: Date | string | null
|
|
commission?: number | null
|
|
cancellationLetterPath?: string | null
|
|
cancellationConfirmationPath?: string | null
|
|
cancellationLetterOptionsPath?: string | null
|
|
cancellationConfirmationOptionsPath?: string | null
|
|
cancellationConfirmationDate?: Date | string | null
|
|
cancellationConfirmationOptionsDate?: Date | string | null
|
|
wasSpecialCancellation?: boolean
|
|
portalUsername?: string | null
|
|
portalPasswordEncrypted?: string | null
|
|
stressfreiEmailId?: number | null
|
|
notes?: string | null
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
followUpContract?: ContractUncheckedCreateNestedOneWithoutPreviousContractInput
|
|
energyDetails?: EnergyContractDetailsUncheckedCreateNestedOneWithoutContractInput
|
|
internetDetails?: InternetContractDetailsUncheckedCreateNestedOneWithoutContractInput
|
|
mobileDetails?: MobileContractDetailsUncheckedCreateNestedOneWithoutContractInput
|
|
tvDetails?: TvContractDetailsUncheckedCreateNestedOneWithoutContractInput
|
|
carInsuranceDetails?: CarInsuranceDetailsUncheckedCreateNestedOneWithoutContractInput
|
|
tasks?: ContractTaskUncheckedCreateNestedManyWithoutContractInput
|
|
assignedEmails?: CachedEmailUncheckedCreateNestedManyWithoutContractInput
|
|
}
|
|
|
|
export type ContractCreateOrConnectWithoutCancellationPeriodInput = {
|
|
where: ContractWhereUniqueInput
|
|
create: XOR<ContractCreateWithoutCancellationPeriodInput, ContractUncheckedCreateWithoutCancellationPeriodInput>
|
|
}
|
|
|
|
export type ContractCreateManyCancellationPeriodInputEnvelope = {
|
|
data: ContractCreateManyCancellationPeriodInput | ContractCreateManyCancellationPeriodInput[]
|
|
skipDuplicates?: boolean
|
|
}
|
|
|
|
export type ContractUpsertWithWhereUniqueWithoutCancellationPeriodInput = {
|
|
where: ContractWhereUniqueInput
|
|
update: XOR<ContractUpdateWithoutCancellationPeriodInput, ContractUncheckedUpdateWithoutCancellationPeriodInput>
|
|
create: XOR<ContractCreateWithoutCancellationPeriodInput, ContractUncheckedCreateWithoutCancellationPeriodInput>
|
|
}
|
|
|
|
export type ContractUpdateWithWhereUniqueWithoutCancellationPeriodInput = {
|
|
where: ContractWhereUniqueInput
|
|
data: XOR<ContractUpdateWithoutCancellationPeriodInput, ContractUncheckedUpdateWithoutCancellationPeriodInput>
|
|
}
|
|
|
|
export type ContractUpdateManyWithWhereWithoutCancellationPeriodInput = {
|
|
where: ContractScalarWhereInput
|
|
data: XOR<ContractUpdateManyMutationInput, ContractUncheckedUpdateManyWithoutCancellationPeriodInput>
|
|
}
|
|
|
|
export type ContractCreateWithoutContractDurationInput = {
|
|
contractNumber: string
|
|
type: $Enums.ContractType
|
|
status?: $Enums.ContractStatus
|
|
providerName?: string | null
|
|
tariffName?: string | null
|
|
customerNumberAtProvider?: string | null
|
|
priceFirst12Months?: string | null
|
|
priceFrom13Months?: string | null
|
|
priceAfter24Months?: string | null
|
|
startDate?: Date | string | null
|
|
endDate?: Date | string | null
|
|
commission?: number | null
|
|
cancellationLetterPath?: string | null
|
|
cancellationConfirmationPath?: string | null
|
|
cancellationLetterOptionsPath?: string | null
|
|
cancellationConfirmationOptionsPath?: string | null
|
|
cancellationConfirmationDate?: Date | string | null
|
|
cancellationConfirmationOptionsDate?: Date | string | null
|
|
wasSpecialCancellation?: boolean
|
|
portalUsername?: string | null
|
|
portalPasswordEncrypted?: string | null
|
|
notes?: string | null
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
customer: CustomerCreateNestedOneWithoutContractsInput
|
|
contractCategory?: ContractCategoryCreateNestedOneWithoutContractsInput
|
|
address?: AddressCreateNestedOneWithoutContractsAsDeliveryInput
|
|
billingAddress?: AddressCreateNestedOneWithoutContractsAsBillingInput
|
|
bankCard?: BankCardCreateNestedOneWithoutContractsInput
|
|
identityDocument?: IdentityDocumentCreateNestedOneWithoutContractsInput
|
|
salesPlatform?: SalesPlatformCreateNestedOneWithoutContractsInput
|
|
cancellationPeriod?: CancellationPeriodCreateNestedOneWithoutContractsInput
|
|
previousContract?: ContractCreateNestedOneWithoutFollowUpContractInput
|
|
followUpContract?: ContractCreateNestedOneWithoutPreviousContractInput
|
|
provider?: ProviderCreateNestedOneWithoutContractsInput
|
|
tariff?: TariffCreateNestedOneWithoutContractsInput
|
|
stressfreiEmail?: StressfreiEmailCreateNestedOneWithoutContractsInput
|
|
energyDetails?: EnergyContractDetailsCreateNestedOneWithoutContractInput
|
|
internetDetails?: InternetContractDetailsCreateNestedOneWithoutContractInput
|
|
mobileDetails?: MobileContractDetailsCreateNestedOneWithoutContractInput
|
|
tvDetails?: TvContractDetailsCreateNestedOneWithoutContractInput
|
|
carInsuranceDetails?: CarInsuranceDetailsCreateNestedOneWithoutContractInput
|
|
tasks?: ContractTaskCreateNestedManyWithoutContractInput
|
|
assignedEmails?: CachedEmailCreateNestedManyWithoutContractInput
|
|
}
|
|
|
|
export type ContractUncheckedCreateWithoutContractDurationInput = {
|
|
id?: number
|
|
contractNumber: string
|
|
customerId: number
|
|
type: $Enums.ContractType
|
|
status?: $Enums.ContractStatus
|
|
contractCategoryId?: number | null
|
|
addressId?: number | null
|
|
billingAddressId?: number | null
|
|
bankCardId?: number | null
|
|
identityDocumentId?: number | null
|
|
salesPlatformId?: number | null
|
|
cancellationPeriodId?: number | null
|
|
previousContractId?: number | null
|
|
providerId?: number | null
|
|
tariffId?: number | null
|
|
providerName?: string | null
|
|
tariffName?: string | null
|
|
customerNumberAtProvider?: string | null
|
|
priceFirst12Months?: string | null
|
|
priceFrom13Months?: string | null
|
|
priceAfter24Months?: string | null
|
|
startDate?: Date | string | null
|
|
endDate?: Date | string | null
|
|
commission?: number | null
|
|
cancellationLetterPath?: string | null
|
|
cancellationConfirmationPath?: string | null
|
|
cancellationLetterOptionsPath?: string | null
|
|
cancellationConfirmationOptionsPath?: string | null
|
|
cancellationConfirmationDate?: Date | string | null
|
|
cancellationConfirmationOptionsDate?: Date | string | null
|
|
wasSpecialCancellation?: boolean
|
|
portalUsername?: string | null
|
|
portalPasswordEncrypted?: string | null
|
|
stressfreiEmailId?: number | null
|
|
notes?: string | null
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
followUpContract?: ContractUncheckedCreateNestedOneWithoutPreviousContractInput
|
|
energyDetails?: EnergyContractDetailsUncheckedCreateNestedOneWithoutContractInput
|
|
internetDetails?: InternetContractDetailsUncheckedCreateNestedOneWithoutContractInput
|
|
mobileDetails?: MobileContractDetailsUncheckedCreateNestedOneWithoutContractInput
|
|
tvDetails?: TvContractDetailsUncheckedCreateNestedOneWithoutContractInput
|
|
carInsuranceDetails?: CarInsuranceDetailsUncheckedCreateNestedOneWithoutContractInput
|
|
tasks?: ContractTaskUncheckedCreateNestedManyWithoutContractInput
|
|
assignedEmails?: CachedEmailUncheckedCreateNestedManyWithoutContractInput
|
|
}
|
|
|
|
export type ContractCreateOrConnectWithoutContractDurationInput = {
|
|
where: ContractWhereUniqueInput
|
|
create: XOR<ContractCreateWithoutContractDurationInput, ContractUncheckedCreateWithoutContractDurationInput>
|
|
}
|
|
|
|
export type ContractCreateManyContractDurationInputEnvelope = {
|
|
data: ContractCreateManyContractDurationInput | ContractCreateManyContractDurationInput[]
|
|
skipDuplicates?: boolean
|
|
}
|
|
|
|
export type ContractUpsertWithWhereUniqueWithoutContractDurationInput = {
|
|
where: ContractWhereUniqueInput
|
|
update: XOR<ContractUpdateWithoutContractDurationInput, ContractUncheckedUpdateWithoutContractDurationInput>
|
|
create: XOR<ContractCreateWithoutContractDurationInput, ContractUncheckedCreateWithoutContractDurationInput>
|
|
}
|
|
|
|
export type ContractUpdateWithWhereUniqueWithoutContractDurationInput = {
|
|
where: ContractWhereUniqueInput
|
|
data: XOR<ContractUpdateWithoutContractDurationInput, ContractUncheckedUpdateWithoutContractDurationInput>
|
|
}
|
|
|
|
export type ContractUpdateManyWithWhereWithoutContractDurationInput = {
|
|
where: ContractScalarWhereInput
|
|
data: XOR<ContractUpdateManyMutationInput, ContractUncheckedUpdateManyWithoutContractDurationInput>
|
|
}
|
|
|
|
export type TariffCreateWithoutProviderInput = {
|
|
name: string
|
|
isActive?: boolean
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
contracts?: ContractCreateNestedManyWithoutTariffInput
|
|
}
|
|
|
|
export type TariffUncheckedCreateWithoutProviderInput = {
|
|
id?: number
|
|
name: string
|
|
isActive?: boolean
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
contracts?: ContractUncheckedCreateNestedManyWithoutTariffInput
|
|
}
|
|
|
|
export type TariffCreateOrConnectWithoutProviderInput = {
|
|
where: TariffWhereUniqueInput
|
|
create: XOR<TariffCreateWithoutProviderInput, TariffUncheckedCreateWithoutProviderInput>
|
|
}
|
|
|
|
export type TariffCreateManyProviderInputEnvelope = {
|
|
data: TariffCreateManyProviderInput | TariffCreateManyProviderInput[]
|
|
skipDuplicates?: boolean
|
|
}
|
|
|
|
export type ContractCreateWithoutProviderInput = {
|
|
contractNumber: string
|
|
type: $Enums.ContractType
|
|
status?: $Enums.ContractStatus
|
|
providerName?: string | null
|
|
tariffName?: string | null
|
|
customerNumberAtProvider?: string | null
|
|
priceFirst12Months?: string | null
|
|
priceFrom13Months?: string | null
|
|
priceAfter24Months?: string | null
|
|
startDate?: Date | string | null
|
|
endDate?: Date | string | null
|
|
commission?: number | null
|
|
cancellationLetterPath?: string | null
|
|
cancellationConfirmationPath?: string | null
|
|
cancellationLetterOptionsPath?: string | null
|
|
cancellationConfirmationOptionsPath?: string | null
|
|
cancellationConfirmationDate?: Date | string | null
|
|
cancellationConfirmationOptionsDate?: Date | string | null
|
|
wasSpecialCancellation?: boolean
|
|
portalUsername?: string | null
|
|
portalPasswordEncrypted?: string | null
|
|
notes?: string | null
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
customer: CustomerCreateNestedOneWithoutContractsInput
|
|
contractCategory?: ContractCategoryCreateNestedOneWithoutContractsInput
|
|
address?: AddressCreateNestedOneWithoutContractsAsDeliveryInput
|
|
billingAddress?: AddressCreateNestedOneWithoutContractsAsBillingInput
|
|
bankCard?: BankCardCreateNestedOneWithoutContractsInput
|
|
identityDocument?: IdentityDocumentCreateNestedOneWithoutContractsInput
|
|
salesPlatform?: SalesPlatformCreateNestedOneWithoutContractsInput
|
|
cancellationPeriod?: CancellationPeriodCreateNestedOneWithoutContractsInput
|
|
contractDuration?: ContractDurationCreateNestedOneWithoutContractsInput
|
|
previousContract?: ContractCreateNestedOneWithoutFollowUpContractInput
|
|
followUpContract?: ContractCreateNestedOneWithoutPreviousContractInput
|
|
tariff?: TariffCreateNestedOneWithoutContractsInput
|
|
stressfreiEmail?: StressfreiEmailCreateNestedOneWithoutContractsInput
|
|
energyDetails?: EnergyContractDetailsCreateNestedOneWithoutContractInput
|
|
internetDetails?: InternetContractDetailsCreateNestedOneWithoutContractInput
|
|
mobileDetails?: MobileContractDetailsCreateNestedOneWithoutContractInput
|
|
tvDetails?: TvContractDetailsCreateNestedOneWithoutContractInput
|
|
carInsuranceDetails?: CarInsuranceDetailsCreateNestedOneWithoutContractInput
|
|
tasks?: ContractTaskCreateNestedManyWithoutContractInput
|
|
assignedEmails?: CachedEmailCreateNestedManyWithoutContractInput
|
|
}
|
|
|
|
export type ContractUncheckedCreateWithoutProviderInput = {
|
|
id?: number
|
|
contractNumber: string
|
|
customerId: number
|
|
type: $Enums.ContractType
|
|
status?: $Enums.ContractStatus
|
|
contractCategoryId?: number | null
|
|
addressId?: number | null
|
|
billingAddressId?: number | null
|
|
bankCardId?: number | null
|
|
identityDocumentId?: number | null
|
|
salesPlatformId?: number | null
|
|
cancellationPeriodId?: number | null
|
|
contractDurationId?: number | null
|
|
previousContractId?: number | null
|
|
tariffId?: number | null
|
|
providerName?: string | null
|
|
tariffName?: string | null
|
|
customerNumberAtProvider?: string | null
|
|
priceFirst12Months?: string | null
|
|
priceFrom13Months?: string | null
|
|
priceAfter24Months?: string | null
|
|
startDate?: Date | string | null
|
|
endDate?: Date | string | null
|
|
commission?: number | null
|
|
cancellationLetterPath?: string | null
|
|
cancellationConfirmationPath?: string | null
|
|
cancellationLetterOptionsPath?: string | null
|
|
cancellationConfirmationOptionsPath?: string | null
|
|
cancellationConfirmationDate?: Date | string | null
|
|
cancellationConfirmationOptionsDate?: Date | string | null
|
|
wasSpecialCancellation?: boolean
|
|
portalUsername?: string | null
|
|
portalPasswordEncrypted?: string | null
|
|
stressfreiEmailId?: number | null
|
|
notes?: string | null
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
followUpContract?: ContractUncheckedCreateNestedOneWithoutPreviousContractInput
|
|
energyDetails?: EnergyContractDetailsUncheckedCreateNestedOneWithoutContractInput
|
|
internetDetails?: InternetContractDetailsUncheckedCreateNestedOneWithoutContractInput
|
|
mobileDetails?: MobileContractDetailsUncheckedCreateNestedOneWithoutContractInput
|
|
tvDetails?: TvContractDetailsUncheckedCreateNestedOneWithoutContractInput
|
|
carInsuranceDetails?: CarInsuranceDetailsUncheckedCreateNestedOneWithoutContractInput
|
|
tasks?: ContractTaskUncheckedCreateNestedManyWithoutContractInput
|
|
assignedEmails?: CachedEmailUncheckedCreateNestedManyWithoutContractInput
|
|
}
|
|
|
|
export type ContractCreateOrConnectWithoutProviderInput = {
|
|
where: ContractWhereUniqueInput
|
|
create: XOR<ContractCreateWithoutProviderInput, ContractUncheckedCreateWithoutProviderInput>
|
|
}
|
|
|
|
export type ContractCreateManyProviderInputEnvelope = {
|
|
data: ContractCreateManyProviderInput | ContractCreateManyProviderInput[]
|
|
skipDuplicates?: boolean
|
|
}
|
|
|
|
export type TariffUpsertWithWhereUniqueWithoutProviderInput = {
|
|
where: TariffWhereUniqueInput
|
|
update: XOR<TariffUpdateWithoutProviderInput, TariffUncheckedUpdateWithoutProviderInput>
|
|
create: XOR<TariffCreateWithoutProviderInput, TariffUncheckedCreateWithoutProviderInput>
|
|
}
|
|
|
|
export type TariffUpdateWithWhereUniqueWithoutProviderInput = {
|
|
where: TariffWhereUniqueInput
|
|
data: XOR<TariffUpdateWithoutProviderInput, TariffUncheckedUpdateWithoutProviderInput>
|
|
}
|
|
|
|
export type TariffUpdateManyWithWhereWithoutProviderInput = {
|
|
where: TariffScalarWhereInput
|
|
data: XOR<TariffUpdateManyMutationInput, TariffUncheckedUpdateManyWithoutProviderInput>
|
|
}
|
|
|
|
export type TariffScalarWhereInput = {
|
|
AND?: TariffScalarWhereInput | TariffScalarWhereInput[]
|
|
OR?: TariffScalarWhereInput[]
|
|
NOT?: TariffScalarWhereInput | TariffScalarWhereInput[]
|
|
id?: IntFilter<"Tariff"> | number
|
|
providerId?: IntFilter<"Tariff"> | number
|
|
name?: StringFilter<"Tariff"> | string
|
|
isActive?: BoolFilter<"Tariff"> | boolean
|
|
createdAt?: DateTimeFilter<"Tariff"> | Date | string
|
|
updatedAt?: DateTimeFilter<"Tariff"> | Date | string
|
|
}
|
|
|
|
export type ContractUpsertWithWhereUniqueWithoutProviderInput = {
|
|
where: ContractWhereUniqueInput
|
|
update: XOR<ContractUpdateWithoutProviderInput, ContractUncheckedUpdateWithoutProviderInput>
|
|
create: XOR<ContractCreateWithoutProviderInput, ContractUncheckedCreateWithoutProviderInput>
|
|
}
|
|
|
|
export type ContractUpdateWithWhereUniqueWithoutProviderInput = {
|
|
where: ContractWhereUniqueInput
|
|
data: XOR<ContractUpdateWithoutProviderInput, ContractUncheckedUpdateWithoutProviderInput>
|
|
}
|
|
|
|
export type ContractUpdateManyWithWhereWithoutProviderInput = {
|
|
where: ContractScalarWhereInput
|
|
data: XOR<ContractUpdateManyMutationInput, ContractUncheckedUpdateManyWithoutProviderInput>
|
|
}
|
|
|
|
export type ProviderCreateWithoutTariffsInput = {
|
|
name: string
|
|
portalUrl?: string | null
|
|
usernameFieldName?: string | null
|
|
passwordFieldName?: string | null
|
|
isActive?: boolean
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
contracts?: ContractCreateNestedManyWithoutProviderInput
|
|
}
|
|
|
|
export type ProviderUncheckedCreateWithoutTariffsInput = {
|
|
id?: number
|
|
name: string
|
|
portalUrl?: string | null
|
|
usernameFieldName?: string | null
|
|
passwordFieldName?: string | null
|
|
isActive?: boolean
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
contracts?: ContractUncheckedCreateNestedManyWithoutProviderInput
|
|
}
|
|
|
|
export type ProviderCreateOrConnectWithoutTariffsInput = {
|
|
where: ProviderWhereUniqueInput
|
|
create: XOR<ProviderCreateWithoutTariffsInput, ProviderUncheckedCreateWithoutTariffsInput>
|
|
}
|
|
|
|
export type ContractCreateWithoutTariffInput = {
|
|
contractNumber: string
|
|
type: $Enums.ContractType
|
|
status?: $Enums.ContractStatus
|
|
providerName?: string | null
|
|
tariffName?: string | null
|
|
customerNumberAtProvider?: string | null
|
|
priceFirst12Months?: string | null
|
|
priceFrom13Months?: string | null
|
|
priceAfter24Months?: string | null
|
|
startDate?: Date | string | null
|
|
endDate?: Date | string | null
|
|
commission?: number | null
|
|
cancellationLetterPath?: string | null
|
|
cancellationConfirmationPath?: string | null
|
|
cancellationLetterOptionsPath?: string | null
|
|
cancellationConfirmationOptionsPath?: string | null
|
|
cancellationConfirmationDate?: Date | string | null
|
|
cancellationConfirmationOptionsDate?: Date | string | null
|
|
wasSpecialCancellation?: boolean
|
|
portalUsername?: string | null
|
|
portalPasswordEncrypted?: string | null
|
|
notes?: string | null
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
customer: CustomerCreateNestedOneWithoutContractsInput
|
|
contractCategory?: ContractCategoryCreateNestedOneWithoutContractsInput
|
|
address?: AddressCreateNestedOneWithoutContractsAsDeliveryInput
|
|
billingAddress?: AddressCreateNestedOneWithoutContractsAsBillingInput
|
|
bankCard?: BankCardCreateNestedOneWithoutContractsInput
|
|
identityDocument?: IdentityDocumentCreateNestedOneWithoutContractsInput
|
|
salesPlatform?: SalesPlatformCreateNestedOneWithoutContractsInput
|
|
cancellationPeriod?: CancellationPeriodCreateNestedOneWithoutContractsInput
|
|
contractDuration?: ContractDurationCreateNestedOneWithoutContractsInput
|
|
previousContract?: ContractCreateNestedOneWithoutFollowUpContractInput
|
|
followUpContract?: ContractCreateNestedOneWithoutPreviousContractInput
|
|
provider?: ProviderCreateNestedOneWithoutContractsInput
|
|
stressfreiEmail?: StressfreiEmailCreateNestedOneWithoutContractsInput
|
|
energyDetails?: EnergyContractDetailsCreateNestedOneWithoutContractInput
|
|
internetDetails?: InternetContractDetailsCreateNestedOneWithoutContractInput
|
|
mobileDetails?: MobileContractDetailsCreateNestedOneWithoutContractInput
|
|
tvDetails?: TvContractDetailsCreateNestedOneWithoutContractInput
|
|
carInsuranceDetails?: CarInsuranceDetailsCreateNestedOneWithoutContractInput
|
|
tasks?: ContractTaskCreateNestedManyWithoutContractInput
|
|
assignedEmails?: CachedEmailCreateNestedManyWithoutContractInput
|
|
}
|
|
|
|
export type ContractUncheckedCreateWithoutTariffInput = {
|
|
id?: number
|
|
contractNumber: string
|
|
customerId: number
|
|
type: $Enums.ContractType
|
|
status?: $Enums.ContractStatus
|
|
contractCategoryId?: number | null
|
|
addressId?: number | null
|
|
billingAddressId?: number | null
|
|
bankCardId?: number | null
|
|
identityDocumentId?: number | null
|
|
salesPlatformId?: number | null
|
|
cancellationPeriodId?: number | null
|
|
contractDurationId?: number | null
|
|
previousContractId?: number | null
|
|
providerId?: number | null
|
|
providerName?: string | null
|
|
tariffName?: string | null
|
|
customerNumberAtProvider?: string | null
|
|
priceFirst12Months?: string | null
|
|
priceFrom13Months?: string | null
|
|
priceAfter24Months?: string | null
|
|
startDate?: Date | string | null
|
|
endDate?: Date | string | null
|
|
commission?: number | null
|
|
cancellationLetterPath?: string | null
|
|
cancellationConfirmationPath?: string | null
|
|
cancellationLetterOptionsPath?: string | null
|
|
cancellationConfirmationOptionsPath?: string | null
|
|
cancellationConfirmationDate?: Date | string | null
|
|
cancellationConfirmationOptionsDate?: Date | string | null
|
|
wasSpecialCancellation?: boolean
|
|
portalUsername?: string | null
|
|
portalPasswordEncrypted?: string | null
|
|
stressfreiEmailId?: number | null
|
|
notes?: string | null
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
followUpContract?: ContractUncheckedCreateNestedOneWithoutPreviousContractInput
|
|
energyDetails?: EnergyContractDetailsUncheckedCreateNestedOneWithoutContractInput
|
|
internetDetails?: InternetContractDetailsUncheckedCreateNestedOneWithoutContractInput
|
|
mobileDetails?: MobileContractDetailsUncheckedCreateNestedOneWithoutContractInput
|
|
tvDetails?: TvContractDetailsUncheckedCreateNestedOneWithoutContractInput
|
|
carInsuranceDetails?: CarInsuranceDetailsUncheckedCreateNestedOneWithoutContractInput
|
|
tasks?: ContractTaskUncheckedCreateNestedManyWithoutContractInput
|
|
assignedEmails?: CachedEmailUncheckedCreateNestedManyWithoutContractInput
|
|
}
|
|
|
|
export type ContractCreateOrConnectWithoutTariffInput = {
|
|
where: ContractWhereUniqueInput
|
|
create: XOR<ContractCreateWithoutTariffInput, ContractUncheckedCreateWithoutTariffInput>
|
|
}
|
|
|
|
export type ContractCreateManyTariffInputEnvelope = {
|
|
data: ContractCreateManyTariffInput | ContractCreateManyTariffInput[]
|
|
skipDuplicates?: boolean
|
|
}
|
|
|
|
export type ProviderUpsertWithoutTariffsInput = {
|
|
update: XOR<ProviderUpdateWithoutTariffsInput, ProviderUncheckedUpdateWithoutTariffsInput>
|
|
create: XOR<ProviderCreateWithoutTariffsInput, ProviderUncheckedCreateWithoutTariffsInput>
|
|
where?: ProviderWhereInput
|
|
}
|
|
|
|
export type ProviderUpdateToOneWithWhereWithoutTariffsInput = {
|
|
where?: ProviderWhereInput
|
|
data: XOR<ProviderUpdateWithoutTariffsInput, ProviderUncheckedUpdateWithoutTariffsInput>
|
|
}
|
|
|
|
export type ProviderUpdateWithoutTariffsInput = {
|
|
name?: StringFieldUpdateOperationsInput | string
|
|
portalUrl?: NullableStringFieldUpdateOperationsInput | string | null
|
|
usernameFieldName?: NullableStringFieldUpdateOperationsInput | string | null
|
|
passwordFieldName?: NullableStringFieldUpdateOperationsInput | string | null
|
|
isActive?: BoolFieldUpdateOperationsInput | boolean
|
|
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
contracts?: ContractUpdateManyWithoutProviderNestedInput
|
|
}
|
|
|
|
export type ProviderUncheckedUpdateWithoutTariffsInput = {
|
|
id?: IntFieldUpdateOperationsInput | number
|
|
name?: StringFieldUpdateOperationsInput | string
|
|
portalUrl?: NullableStringFieldUpdateOperationsInput | string | null
|
|
usernameFieldName?: NullableStringFieldUpdateOperationsInput | string | null
|
|
passwordFieldName?: NullableStringFieldUpdateOperationsInput | string | null
|
|
isActive?: BoolFieldUpdateOperationsInput | boolean
|
|
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
contracts?: ContractUncheckedUpdateManyWithoutProviderNestedInput
|
|
}
|
|
|
|
export type ContractUpsertWithWhereUniqueWithoutTariffInput = {
|
|
where: ContractWhereUniqueInput
|
|
update: XOR<ContractUpdateWithoutTariffInput, ContractUncheckedUpdateWithoutTariffInput>
|
|
create: XOR<ContractCreateWithoutTariffInput, ContractUncheckedCreateWithoutTariffInput>
|
|
}
|
|
|
|
export type ContractUpdateWithWhereUniqueWithoutTariffInput = {
|
|
where: ContractWhereUniqueInput
|
|
data: XOR<ContractUpdateWithoutTariffInput, ContractUncheckedUpdateWithoutTariffInput>
|
|
}
|
|
|
|
export type ContractUpdateManyWithWhereWithoutTariffInput = {
|
|
where: ContractScalarWhereInput
|
|
data: XOR<ContractUpdateManyMutationInput, ContractUncheckedUpdateManyWithoutTariffInput>
|
|
}
|
|
|
|
export type ContractCreateWithoutContractCategoryInput = {
|
|
contractNumber: string
|
|
type: $Enums.ContractType
|
|
status?: $Enums.ContractStatus
|
|
providerName?: string | null
|
|
tariffName?: string | null
|
|
customerNumberAtProvider?: string | null
|
|
priceFirst12Months?: string | null
|
|
priceFrom13Months?: string | null
|
|
priceAfter24Months?: string | null
|
|
startDate?: Date | string | null
|
|
endDate?: Date | string | null
|
|
commission?: number | null
|
|
cancellationLetterPath?: string | null
|
|
cancellationConfirmationPath?: string | null
|
|
cancellationLetterOptionsPath?: string | null
|
|
cancellationConfirmationOptionsPath?: string | null
|
|
cancellationConfirmationDate?: Date | string | null
|
|
cancellationConfirmationOptionsDate?: Date | string | null
|
|
wasSpecialCancellation?: boolean
|
|
portalUsername?: string | null
|
|
portalPasswordEncrypted?: string | null
|
|
notes?: string | null
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
customer: CustomerCreateNestedOneWithoutContractsInput
|
|
address?: AddressCreateNestedOneWithoutContractsAsDeliveryInput
|
|
billingAddress?: AddressCreateNestedOneWithoutContractsAsBillingInput
|
|
bankCard?: BankCardCreateNestedOneWithoutContractsInput
|
|
identityDocument?: IdentityDocumentCreateNestedOneWithoutContractsInput
|
|
salesPlatform?: SalesPlatformCreateNestedOneWithoutContractsInput
|
|
cancellationPeriod?: CancellationPeriodCreateNestedOneWithoutContractsInput
|
|
contractDuration?: ContractDurationCreateNestedOneWithoutContractsInput
|
|
previousContract?: ContractCreateNestedOneWithoutFollowUpContractInput
|
|
followUpContract?: ContractCreateNestedOneWithoutPreviousContractInput
|
|
provider?: ProviderCreateNestedOneWithoutContractsInput
|
|
tariff?: TariffCreateNestedOneWithoutContractsInput
|
|
stressfreiEmail?: StressfreiEmailCreateNestedOneWithoutContractsInput
|
|
energyDetails?: EnergyContractDetailsCreateNestedOneWithoutContractInput
|
|
internetDetails?: InternetContractDetailsCreateNestedOneWithoutContractInput
|
|
mobileDetails?: MobileContractDetailsCreateNestedOneWithoutContractInput
|
|
tvDetails?: TvContractDetailsCreateNestedOneWithoutContractInput
|
|
carInsuranceDetails?: CarInsuranceDetailsCreateNestedOneWithoutContractInput
|
|
tasks?: ContractTaskCreateNestedManyWithoutContractInput
|
|
assignedEmails?: CachedEmailCreateNestedManyWithoutContractInput
|
|
}
|
|
|
|
export type ContractUncheckedCreateWithoutContractCategoryInput = {
|
|
id?: number
|
|
contractNumber: string
|
|
customerId: number
|
|
type: $Enums.ContractType
|
|
status?: $Enums.ContractStatus
|
|
addressId?: number | null
|
|
billingAddressId?: number | null
|
|
bankCardId?: number | null
|
|
identityDocumentId?: number | null
|
|
salesPlatformId?: number | null
|
|
cancellationPeriodId?: number | null
|
|
contractDurationId?: number | null
|
|
previousContractId?: number | null
|
|
providerId?: number | null
|
|
tariffId?: number | null
|
|
providerName?: string | null
|
|
tariffName?: string | null
|
|
customerNumberAtProvider?: string | null
|
|
priceFirst12Months?: string | null
|
|
priceFrom13Months?: string | null
|
|
priceAfter24Months?: string | null
|
|
startDate?: Date | string | null
|
|
endDate?: Date | string | null
|
|
commission?: number | null
|
|
cancellationLetterPath?: string | null
|
|
cancellationConfirmationPath?: string | null
|
|
cancellationLetterOptionsPath?: string | null
|
|
cancellationConfirmationOptionsPath?: string | null
|
|
cancellationConfirmationDate?: Date | string | null
|
|
cancellationConfirmationOptionsDate?: Date | string | null
|
|
wasSpecialCancellation?: boolean
|
|
portalUsername?: string | null
|
|
portalPasswordEncrypted?: string | null
|
|
stressfreiEmailId?: number | null
|
|
notes?: string | null
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
followUpContract?: ContractUncheckedCreateNestedOneWithoutPreviousContractInput
|
|
energyDetails?: EnergyContractDetailsUncheckedCreateNestedOneWithoutContractInput
|
|
internetDetails?: InternetContractDetailsUncheckedCreateNestedOneWithoutContractInput
|
|
mobileDetails?: MobileContractDetailsUncheckedCreateNestedOneWithoutContractInput
|
|
tvDetails?: TvContractDetailsUncheckedCreateNestedOneWithoutContractInput
|
|
carInsuranceDetails?: CarInsuranceDetailsUncheckedCreateNestedOneWithoutContractInput
|
|
tasks?: ContractTaskUncheckedCreateNestedManyWithoutContractInput
|
|
assignedEmails?: CachedEmailUncheckedCreateNestedManyWithoutContractInput
|
|
}
|
|
|
|
export type ContractCreateOrConnectWithoutContractCategoryInput = {
|
|
where: ContractWhereUniqueInput
|
|
create: XOR<ContractCreateWithoutContractCategoryInput, ContractUncheckedCreateWithoutContractCategoryInput>
|
|
}
|
|
|
|
export type ContractCreateManyContractCategoryInputEnvelope = {
|
|
data: ContractCreateManyContractCategoryInput | ContractCreateManyContractCategoryInput[]
|
|
skipDuplicates?: boolean
|
|
}
|
|
|
|
export type ContractUpsertWithWhereUniqueWithoutContractCategoryInput = {
|
|
where: ContractWhereUniqueInput
|
|
update: XOR<ContractUpdateWithoutContractCategoryInput, ContractUncheckedUpdateWithoutContractCategoryInput>
|
|
create: XOR<ContractCreateWithoutContractCategoryInput, ContractUncheckedCreateWithoutContractCategoryInput>
|
|
}
|
|
|
|
export type ContractUpdateWithWhereUniqueWithoutContractCategoryInput = {
|
|
where: ContractWhereUniqueInput
|
|
data: XOR<ContractUpdateWithoutContractCategoryInput, ContractUncheckedUpdateWithoutContractCategoryInput>
|
|
}
|
|
|
|
export type ContractUpdateManyWithWhereWithoutContractCategoryInput = {
|
|
where: ContractScalarWhereInput
|
|
data: XOR<ContractUpdateManyMutationInput, ContractUncheckedUpdateManyWithoutContractCategoryInput>
|
|
}
|
|
|
|
export type CustomerCreateWithoutContractsInput = {
|
|
customerNumber: string
|
|
type?: $Enums.CustomerType
|
|
salutation?: string | null
|
|
firstName: string
|
|
lastName: string
|
|
companyName?: string | null
|
|
foundingDate?: Date | string | null
|
|
birthDate?: Date | string | null
|
|
birthPlace?: string | null
|
|
email?: string | null
|
|
phone?: string | null
|
|
mobile?: string | null
|
|
taxNumber?: string | null
|
|
businessRegistrationPath?: string | null
|
|
commercialRegisterPath?: string | null
|
|
commercialRegisterNumber?: string | null
|
|
privacyPolicyPath?: string | null
|
|
notes?: string | null
|
|
portalEnabled?: boolean
|
|
portalEmail?: string | null
|
|
portalPasswordHash?: string | null
|
|
portalPasswordEncrypted?: string | null
|
|
portalLastLogin?: Date | string | null
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
user?: UserCreateNestedOneWithoutCustomerInput
|
|
addresses?: AddressCreateNestedManyWithoutCustomerInput
|
|
bankCards?: BankCardCreateNestedManyWithoutCustomerInput
|
|
identityDocuments?: IdentityDocumentCreateNestedManyWithoutCustomerInput
|
|
meters?: MeterCreateNestedManyWithoutCustomerInput
|
|
stressfreiEmails?: StressfreiEmailCreateNestedManyWithoutCustomerInput
|
|
representingFor?: CustomerRepresentativeCreateNestedManyWithoutRepresentativeInput
|
|
representedBy?: CustomerRepresentativeCreateNestedManyWithoutCustomerInput
|
|
}
|
|
|
|
export type CustomerUncheckedCreateWithoutContractsInput = {
|
|
id?: number
|
|
customerNumber: string
|
|
type?: $Enums.CustomerType
|
|
salutation?: string | null
|
|
firstName: string
|
|
lastName: string
|
|
companyName?: string | null
|
|
foundingDate?: Date | string | null
|
|
birthDate?: Date | string | null
|
|
birthPlace?: string | null
|
|
email?: string | null
|
|
phone?: string | null
|
|
mobile?: string | null
|
|
taxNumber?: string | null
|
|
businessRegistrationPath?: string | null
|
|
commercialRegisterPath?: string | null
|
|
commercialRegisterNumber?: string | null
|
|
privacyPolicyPath?: string | null
|
|
notes?: string | null
|
|
portalEnabled?: boolean
|
|
portalEmail?: string | null
|
|
portalPasswordHash?: string | null
|
|
portalPasswordEncrypted?: string | null
|
|
portalLastLogin?: Date | string | null
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
user?: UserUncheckedCreateNestedOneWithoutCustomerInput
|
|
addresses?: AddressUncheckedCreateNestedManyWithoutCustomerInput
|
|
bankCards?: BankCardUncheckedCreateNestedManyWithoutCustomerInput
|
|
identityDocuments?: IdentityDocumentUncheckedCreateNestedManyWithoutCustomerInput
|
|
meters?: MeterUncheckedCreateNestedManyWithoutCustomerInput
|
|
stressfreiEmails?: StressfreiEmailUncheckedCreateNestedManyWithoutCustomerInput
|
|
representingFor?: CustomerRepresentativeUncheckedCreateNestedManyWithoutRepresentativeInput
|
|
representedBy?: CustomerRepresentativeUncheckedCreateNestedManyWithoutCustomerInput
|
|
}
|
|
|
|
export type CustomerCreateOrConnectWithoutContractsInput = {
|
|
where: CustomerWhereUniqueInput
|
|
create: XOR<CustomerCreateWithoutContractsInput, CustomerUncheckedCreateWithoutContractsInput>
|
|
}
|
|
|
|
export type ContractCategoryCreateWithoutContractsInput = {
|
|
code: string
|
|
name: string
|
|
icon?: string | null
|
|
color?: string | null
|
|
sortOrder?: number
|
|
isActive?: boolean
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
}
|
|
|
|
export type ContractCategoryUncheckedCreateWithoutContractsInput = {
|
|
id?: number
|
|
code: string
|
|
name: string
|
|
icon?: string | null
|
|
color?: string | null
|
|
sortOrder?: number
|
|
isActive?: boolean
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
}
|
|
|
|
export type ContractCategoryCreateOrConnectWithoutContractsInput = {
|
|
where: ContractCategoryWhereUniqueInput
|
|
create: XOR<ContractCategoryCreateWithoutContractsInput, ContractCategoryUncheckedCreateWithoutContractsInput>
|
|
}
|
|
|
|
export type AddressCreateWithoutContractsAsDeliveryInput = {
|
|
type?: $Enums.AddressType
|
|
street: string
|
|
houseNumber: string
|
|
postalCode: string
|
|
city: string
|
|
country?: string
|
|
isDefault?: boolean
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
customer: CustomerCreateNestedOneWithoutAddressesInput
|
|
contractsAsBilling?: ContractCreateNestedManyWithoutBillingAddressInput
|
|
}
|
|
|
|
export type AddressUncheckedCreateWithoutContractsAsDeliveryInput = {
|
|
id?: number
|
|
customerId: number
|
|
type?: $Enums.AddressType
|
|
street: string
|
|
houseNumber: string
|
|
postalCode: string
|
|
city: string
|
|
country?: string
|
|
isDefault?: boolean
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
contractsAsBilling?: ContractUncheckedCreateNestedManyWithoutBillingAddressInput
|
|
}
|
|
|
|
export type AddressCreateOrConnectWithoutContractsAsDeliveryInput = {
|
|
where: AddressWhereUniqueInput
|
|
create: XOR<AddressCreateWithoutContractsAsDeliveryInput, AddressUncheckedCreateWithoutContractsAsDeliveryInput>
|
|
}
|
|
|
|
export type AddressCreateWithoutContractsAsBillingInput = {
|
|
type?: $Enums.AddressType
|
|
street: string
|
|
houseNumber: string
|
|
postalCode: string
|
|
city: string
|
|
country?: string
|
|
isDefault?: boolean
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
customer: CustomerCreateNestedOneWithoutAddressesInput
|
|
contractsAsDelivery?: ContractCreateNestedManyWithoutAddressInput
|
|
}
|
|
|
|
export type AddressUncheckedCreateWithoutContractsAsBillingInput = {
|
|
id?: number
|
|
customerId: number
|
|
type?: $Enums.AddressType
|
|
street: string
|
|
houseNumber: string
|
|
postalCode: string
|
|
city: string
|
|
country?: string
|
|
isDefault?: boolean
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
contractsAsDelivery?: ContractUncheckedCreateNestedManyWithoutAddressInput
|
|
}
|
|
|
|
export type AddressCreateOrConnectWithoutContractsAsBillingInput = {
|
|
where: AddressWhereUniqueInput
|
|
create: XOR<AddressCreateWithoutContractsAsBillingInput, AddressUncheckedCreateWithoutContractsAsBillingInput>
|
|
}
|
|
|
|
export type BankCardCreateWithoutContractsInput = {
|
|
accountHolder: string
|
|
iban: string
|
|
bic?: string | null
|
|
bankName?: string | null
|
|
expiryDate?: Date | string | null
|
|
documentPath?: string | null
|
|
isActive?: boolean
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
customer: CustomerCreateNestedOneWithoutBankCardsInput
|
|
}
|
|
|
|
export type BankCardUncheckedCreateWithoutContractsInput = {
|
|
id?: number
|
|
customerId: number
|
|
accountHolder: string
|
|
iban: string
|
|
bic?: string | null
|
|
bankName?: string | null
|
|
expiryDate?: Date | string | null
|
|
documentPath?: string | null
|
|
isActive?: boolean
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
}
|
|
|
|
export type BankCardCreateOrConnectWithoutContractsInput = {
|
|
where: BankCardWhereUniqueInput
|
|
create: XOR<BankCardCreateWithoutContractsInput, BankCardUncheckedCreateWithoutContractsInput>
|
|
}
|
|
|
|
export type IdentityDocumentCreateWithoutContractsInput = {
|
|
type?: $Enums.DocumentType
|
|
documentNumber: string
|
|
issuingAuthority?: string | null
|
|
issueDate?: Date | string | null
|
|
expiryDate?: Date | string | null
|
|
documentPath?: string | null
|
|
isActive?: boolean
|
|
licenseClasses?: string | null
|
|
licenseIssueDate?: Date | string | null
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
customer: CustomerCreateNestedOneWithoutIdentityDocumentsInput
|
|
}
|
|
|
|
export type IdentityDocumentUncheckedCreateWithoutContractsInput = {
|
|
id?: number
|
|
customerId: number
|
|
type?: $Enums.DocumentType
|
|
documentNumber: string
|
|
issuingAuthority?: string | null
|
|
issueDate?: Date | string | null
|
|
expiryDate?: Date | string | null
|
|
documentPath?: string | null
|
|
isActive?: boolean
|
|
licenseClasses?: string | null
|
|
licenseIssueDate?: Date | string | null
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
}
|
|
|
|
export type IdentityDocumentCreateOrConnectWithoutContractsInput = {
|
|
where: IdentityDocumentWhereUniqueInput
|
|
create: XOR<IdentityDocumentCreateWithoutContractsInput, IdentityDocumentUncheckedCreateWithoutContractsInput>
|
|
}
|
|
|
|
export type SalesPlatformCreateWithoutContractsInput = {
|
|
name: string
|
|
contactInfo?: string | null
|
|
isActive?: boolean
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
}
|
|
|
|
export type SalesPlatformUncheckedCreateWithoutContractsInput = {
|
|
id?: number
|
|
name: string
|
|
contactInfo?: string | null
|
|
isActive?: boolean
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
}
|
|
|
|
export type SalesPlatformCreateOrConnectWithoutContractsInput = {
|
|
where: SalesPlatformWhereUniqueInput
|
|
create: XOR<SalesPlatformCreateWithoutContractsInput, SalesPlatformUncheckedCreateWithoutContractsInput>
|
|
}
|
|
|
|
export type CancellationPeriodCreateWithoutContractsInput = {
|
|
code: string
|
|
description: string
|
|
isActive?: boolean
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
}
|
|
|
|
export type CancellationPeriodUncheckedCreateWithoutContractsInput = {
|
|
id?: number
|
|
code: string
|
|
description: string
|
|
isActive?: boolean
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
}
|
|
|
|
export type CancellationPeriodCreateOrConnectWithoutContractsInput = {
|
|
where: CancellationPeriodWhereUniqueInput
|
|
create: XOR<CancellationPeriodCreateWithoutContractsInput, CancellationPeriodUncheckedCreateWithoutContractsInput>
|
|
}
|
|
|
|
export type ContractDurationCreateWithoutContractsInput = {
|
|
code: string
|
|
description: string
|
|
isActive?: boolean
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
}
|
|
|
|
export type ContractDurationUncheckedCreateWithoutContractsInput = {
|
|
id?: number
|
|
code: string
|
|
description: string
|
|
isActive?: boolean
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
}
|
|
|
|
export type ContractDurationCreateOrConnectWithoutContractsInput = {
|
|
where: ContractDurationWhereUniqueInput
|
|
create: XOR<ContractDurationCreateWithoutContractsInput, ContractDurationUncheckedCreateWithoutContractsInput>
|
|
}
|
|
|
|
export type ContractCreateWithoutFollowUpContractInput = {
|
|
contractNumber: string
|
|
type: $Enums.ContractType
|
|
status?: $Enums.ContractStatus
|
|
providerName?: string | null
|
|
tariffName?: string | null
|
|
customerNumberAtProvider?: string | null
|
|
priceFirst12Months?: string | null
|
|
priceFrom13Months?: string | null
|
|
priceAfter24Months?: string | null
|
|
startDate?: Date | string | null
|
|
endDate?: Date | string | null
|
|
commission?: number | null
|
|
cancellationLetterPath?: string | null
|
|
cancellationConfirmationPath?: string | null
|
|
cancellationLetterOptionsPath?: string | null
|
|
cancellationConfirmationOptionsPath?: string | null
|
|
cancellationConfirmationDate?: Date | string | null
|
|
cancellationConfirmationOptionsDate?: Date | string | null
|
|
wasSpecialCancellation?: boolean
|
|
portalUsername?: string | null
|
|
portalPasswordEncrypted?: string | null
|
|
notes?: string | null
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
customer: CustomerCreateNestedOneWithoutContractsInput
|
|
contractCategory?: ContractCategoryCreateNestedOneWithoutContractsInput
|
|
address?: AddressCreateNestedOneWithoutContractsAsDeliveryInput
|
|
billingAddress?: AddressCreateNestedOneWithoutContractsAsBillingInput
|
|
bankCard?: BankCardCreateNestedOneWithoutContractsInput
|
|
identityDocument?: IdentityDocumentCreateNestedOneWithoutContractsInput
|
|
salesPlatform?: SalesPlatformCreateNestedOneWithoutContractsInput
|
|
cancellationPeriod?: CancellationPeriodCreateNestedOneWithoutContractsInput
|
|
contractDuration?: ContractDurationCreateNestedOneWithoutContractsInput
|
|
previousContract?: ContractCreateNestedOneWithoutFollowUpContractInput
|
|
provider?: ProviderCreateNestedOneWithoutContractsInput
|
|
tariff?: TariffCreateNestedOneWithoutContractsInput
|
|
stressfreiEmail?: StressfreiEmailCreateNestedOneWithoutContractsInput
|
|
energyDetails?: EnergyContractDetailsCreateNestedOneWithoutContractInput
|
|
internetDetails?: InternetContractDetailsCreateNestedOneWithoutContractInput
|
|
mobileDetails?: MobileContractDetailsCreateNestedOneWithoutContractInput
|
|
tvDetails?: TvContractDetailsCreateNestedOneWithoutContractInput
|
|
carInsuranceDetails?: CarInsuranceDetailsCreateNestedOneWithoutContractInput
|
|
tasks?: ContractTaskCreateNestedManyWithoutContractInput
|
|
assignedEmails?: CachedEmailCreateNestedManyWithoutContractInput
|
|
}
|
|
|
|
export type ContractUncheckedCreateWithoutFollowUpContractInput = {
|
|
id?: number
|
|
contractNumber: string
|
|
customerId: number
|
|
type: $Enums.ContractType
|
|
status?: $Enums.ContractStatus
|
|
contractCategoryId?: number | null
|
|
addressId?: number | null
|
|
billingAddressId?: number | null
|
|
bankCardId?: number | null
|
|
identityDocumentId?: number | null
|
|
salesPlatformId?: number | null
|
|
cancellationPeriodId?: number | null
|
|
contractDurationId?: number | null
|
|
previousContractId?: number | null
|
|
providerId?: number | null
|
|
tariffId?: number | null
|
|
providerName?: string | null
|
|
tariffName?: string | null
|
|
customerNumberAtProvider?: string | null
|
|
priceFirst12Months?: string | null
|
|
priceFrom13Months?: string | null
|
|
priceAfter24Months?: string | null
|
|
startDate?: Date | string | null
|
|
endDate?: Date | string | null
|
|
commission?: number | null
|
|
cancellationLetterPath?: string | null
|
|
cancellationConfirmationPath?: string | null
|
|
cancellationLetterOptionsPath?: string | null
|
|
cancellationConfirmationOptionsPath?: string | null
|
|
cancellationConfirmationDate?: Date | string | null
|
|
cancellationConfirmationOptionsDate?: Date | string | null
|
|
wasSpecialCancellation?: boolean
|
|
portalUsername?: string | null
|
|
portalPasswordEncrypted?: string | null
|
|
stressfreiEmailId?: number | null
|
|
notes?: string | null
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
energyDetails?: EnergyContractDetailsUncheckedCreateNestedOneWithoutContractInput
|
|
internetDetails?: InternetContractDetailsUncheckedCreateNestedOneWithoutContractInput
|
|
mobileDetails?: MobileContractDetailsUncheckedCreateNestedOneWithoutContractInput
|
|
tvDetails?: TvContractDetailsUncheckedCreateNestedOneWithoutContractInput
|
|
carInsuranceDetails?: CarInsuranceDetailsUncheckedCreateNestedOneWithoutContractInput
|
|
tasks?: ContractTaskUncheckedCreateNestedManyWithoutContractInput
|
|
assignedEmails?: CachedEmailUncheckedCreateNestedManyWithoutContractInput
|
|
}
|
|
|
|
export type ContractCreateOrConnectWithoutFollowUpContractInput = {
|
|
where: ContractWhereUniqueInput
|
|
create: XOR<ContractCreateWithoutFollowUpContractInput, ContractUncheckedCreateWithoutFollowUpContractInput>
|
|
}
|
|
|
|
export type ContractCreateWithoutPreviousContractInput = {
|
|
contractNumber: string
|
|
type: $Enums.ContractType
|
|
status?: $Enums.ContractStatus
|
|
providerName?: string | null
|
|
tariffName?: string | null
|
|
customerNumberAtProvider?: string | null
|
|
priceFirst12Months?: string | null
|
|
priceFrom13Months?: string | null
|
|
priceAfter24Months?: string | null
|
|
startDate?: Date | string | null
|
|
endDate?: Date | string | null
|
|
commission?: number | null
|
|
cancellationLetterPath?: string | null
|
|
cancellationConfirmationPath?: string | null
|
|
cancellationLetterOptionsPath?: string | null
|
|
cancellationConfirmationOptionsPath?: string | null
|
|
cancellationConfirmationDate?: Date | string | null
|
|
cancellationConfirmationOptionsDate?: Date | string | null
|
|
wasSpecialCancellation?: boolean
|
|
portalUsername?: string | null
|
|
portalPasswordEncrypted?: string | null
|
|
notes?: string | null
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
customer: CustomerCreateNestedOneWithoutContractsInput
|
|
contractCategory?: ContractCategoryCreateNestedOneWithoutContractsInput
|
|
address?: AddressCreateNestedOneWithoutContractsAsDeliveryInput
|
|
billingAddress?: AddressCreateNestedOneWithoutContractsAsBillingInput
|
|
bankCard?: BankCardCreateNestedOneWithoutContractsInput
|
|
identityDocument?: IdentityDocumentCreateNestedOneWithoutContractsInput
|
|
salesPlatform?: SalesPlatformCreateNestedOneWithoutContractsInput
|
|
cancellationPeriod?: CancellationPeriodCreateNestedOneWithoutContractsInput
|
|
contractDuration?: ContractDurationCreateNestedOneWithoutContractsInput
|
|
followUpContract?: ContractCreateNestedOneWithoutPreviousContractInput
|
|
provider?: ProviderCreateNestedOneWithoutContractsInput
|
|
tariff?: TariffCreateNestedOneWithoutContractsInput
|
|
stressfreiEmail?: StressfreiEmailCreateNestedOneWithoutContractsInput
|
|
energyDetails?: EnergyContractDetailsCreateNestedOneWithoutContractInput
|
|
internetDetails?: InternetContractDetailsCreateNestedOneWithoutContractInput
|
|
mobileDetails?: MobileContractDetailsCreateNestedOneWithoutContractInput
|
|
tvDetails?: TvContractDetailsCreateNestedOneWithoutContractInput
|
|
carInsuranceDetails?: CarInsuranceDetailsCreateNestedOneWithoutContractInput
|
|
tasks?: ContractTaskCreateNestedManyWithoutContractInput
|
|
assignedEmails?: CachedEmailCreateNestedManyWithoutContractInput
|
|
}
|
|
|
|
export type ContractUncheckedCreateWithoutPreviousContractInput = {
|
|
id?: number
|
|
contractNumber: string
|
|
customerId: number
|
|
type: $Enums.ContractType
|
|
status?: $Enums.ContractStatus
|
|
contractCategoryId?: number | null
|
|
addressId?: number | null
|
|
billingAddressId?: number | null
|
|
bankCardId?: number | null
|
|
identityDocumentId?: number | null
|
|
salesPlatformId?: number | null
|
|
cancellationPeriodId?: number | null
|
|
contractDurationId?: number | null
|
|
providerId?: number | null
|
|
tariffId?: number | null
|
|
providerName?: string | null
|
|
tariffName?: string | null
|
|
customerNumberAtProvider?: string | null
|
|
priceFirst12Months?: string | null
|
|
priceFrom13Months?: string | null
|
|
priceAfter24Months?: string | null
|
|
startDate?: Date | string | null
|
|
endDate?: Date | string | null
|
|
commission?: number | null
|
|
cancellationLetterPath?: string | null
|
|
cancellationConfirmationPath?: string | null
|
|
cancellationLetterOptionsPath?: string | null
|
|
cancellationConfirmationOptionsPath?: string | null
|
|
cancellationConfirmationDate?: Date | string | null
|
|
cancellationConfirmationOptionsDate?: Date | string | null
|
|
wasSpecialCancellation?: boolean
|
|
portalUsername?: string | null
|
|
portalPasswordEncrypted?: string | null
|
|
stressfreiEmailId?: number | null
|
|
notes?: string | null
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
followUpContract?: ContractUncheckedCreateNestedOneWithoutPreviousContractInput
|
|
energyDetails?: EnergyContractDetailsUncheckedCreateNestedOneWithoutContractInput
|
|
internetDetails?: InternetContractDetailsUncheckedCreateNestedOneWithoutContractInput
|
|
mobileDetails?: MobileContractDetailsUncheckedCreateNestedOneWithoutContractInput
|
|
tvDetails?: TvContractDetailsUncheckedCreateNestedOneWithoutContractInput
|
|
carInsuranceDetails?: CarInsuranceDetailsUncheckedCreateNestedOneWithoutContractInput
|
|
tasks?: ContractTaskUncheckedCreateNestedManyWithoutContractInput
|
|
assignedEmails?: CachedEmailUncheckedCreateNestedManyWithoutContractInput
|
|
}
|
|
|
|
export type ContractCreateOrConnectWithoutPreviousContractInput = {
|
|
where: ContractWhereUniqueInput
|
|
create: XOR<ContractCreateWithoutPreviousContractInput, ContractUncheckedCreateWithoutPreviousContractInput>
|
|
}
|
|
|
|
export type ProviderCreateWithoutContractsInput = {
|
|
name: string
|
|
portalUrl?: string | null
|
|
usernameFieldName?: string | null
|
|
passwordFieldName?: string | null
|
|
isActive?: boolean
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
tariffs?: TariffCreateNestedManyWithoutProviderInput
|
|
}
|
|
|
|
export type ProviderUncheckedCreateWithoutContractsInput = {
|
|
id?: number
|
|
name: string
|
|
portalUrl?: string | null
|
|
usernameFieldName?: string | null
|
|
passwordFieldName?: string | null
|
|
isActive?: boolean
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
tariffs?: TariffUncheckedCreateNestedManyWithoutProviderInput
|
|
}
|
|
|
|
export type ProviderCreateOrConnectWithoutContractsInput = {
|
|
where: ProviderWhereUniqueInput
|
|
create: XOR<ProviderCreateWithoutContractsInput, ProviderUncheckedCreateWithoutContractsInput>
|
|
}
|
|
|
|
export type TariffCreateWithoutContractsInput = {
|
|
name: string
|
|
isActive?: boolean
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
provider: ProviderCreateNestedOneWithoutTariffsInput
|
|
}
|
|
|
|
export type TariffUncheckedCreateWithoutContractsInput = {
|
|
id?: number
|
|
providerId: number
|
|
name: string
|
|
isActive?: boolean
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
}
|
|
|
|
export type TariffCreateOrConnectWithoutContractsInput = {
|
|
where: TariffWhereUniqueInput
|
|
create: XOR<TariffCreateWithoutContractsInput, TariffUncheckedCreateWithoutContractsInput>
|
|
}
|
|
|
|
export type StressfreiEmailCreateWithoutContractsInput = {
|
|
email: string
|
|
platform?: string | null
|
|
notes?: string | null
|
|
isActive?: boolean
|
|
isProvisioned?: boolean
|
|
provisionedAt?: Date | string | null
|
|
provisionError?: string | null
|
|
hasMailbox?: boolean
|
|
emailPasswordEncrypted?: string | null
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
customer: CustomerCreateNestedOneWithoutStressfreiEmailsInput
|
|
cachedEmails?: CachedEmailCreateNestedManyWithoutStressfreiEmailInput
|
|
}
|
|
|
|
export type StressfreiEmailUncheckedCreateWithoutContractsInput = {
|
|
id?: number
|
|
customerId: number
|
|
email: string
|
|
platform?: string | null
|
|
notes?: string | null
|
|
isActive?: boolean
|
|
isProvisioned?: boolean
|
|
provisionedAt?: Date | string | null
|
|
provisionError?: string | null
|
|
hasMailbox?: boolean
|
|
emailPasswordEncrypted?: string | null
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
cachedEmails?: CachedEmailUncheckedCreateNestedManyWithoutStressfreiEmailInput
|
|
}
|
|
|
|
export type StressfreiEmailCreateOrConnectWithoutContractsInput = {
|
|
where: StressfreiEmailWhereUniqueInput
|
|
create: XOR<StressfreiEmailCreateWithoutContractsInput, StressfreiEmailUncheckedCreateWithoutContractsInput>
|
|
}
|
|
|
|
export type EnergyContractDetailsCreateWithoutContractInput = {
|
|
maloId?: string | null
|
|
annualConsumption?: number | null
|
|
annualConsumptionKwh?: number | null
|
|
basePrice?: number | null
|
|
unitPrice?: number | null
|
|
bonus?: number | null
|
|
previousProviderName?: string | null
|
|
previousCustomerNumber?: string | null
|
|
meter?: MeterCreateNestedOneWithoutEnergyDetailsInput
|
|
}
|
|
|
|
export type EnergyContractDetailsUncheckedCreateWithoutContractInput = {
|
|
id?: number
|
|
meterId?: number | null
|
|
maloId?: string | null
|
|
annualConsumption?: number | null
|
|
annualConsumptionKwh?: number | null
|
|
basePrice?: number | null
|
|
unitPrice?: number | null
|
|
bonus?: number | null
|
|
previousProviderName?: string | null
|
|
previousCustomerNumber?: string | null
|
|
}
|
|
|
|
export type EnergyContractDetailsCreateOrConnectWithoutContractInput = {
|
|
where: EnergyContractDetailsWhereUniqueInput
|
|
create: XOR<EnergyContractDetailsCreateWithoutContractInput, EnergyContractDetailsUncheckedCreateWithoutContractInput>
|
|
}
|
|
|
|
export type InternetContractDetailsCreateWithoutContractInput = {
|
|
downloadSpeed?: number | null
|
|
uploadSpeed?: number | null
|
|
routerModel?: string | null
|
|
routerSerialNumber?: string | null
|
|
installationDate?: Date | string | null
|
|
internetUsername?: string | null
|
|
internetPasswordEncrypted?: string | null
|
|
homeId?: string | null
|
|
activationCode?: string | null
|
|
phoneNumbers?: PhoneNumberCreateNestedManyWithoutInternetDetailsInput
|
|
}
|
|
|
|
export type InternetContractDetailsUncheckedCreateWithoutContractInput = {
|
|
id?: number
|
|
downloadSpeed?: number | null
|
|
uploadSpeed?: number | null
|
|
routerModel?: string | null
|
|
routerSerialNumber?: string | null
|
|
installationDate?: Date | string | null
|
|
internetUsername?: string | null
|
|
internetPasswordEncrypted?: string | null
|
|
homeId?: string | null
|
|
activationCode?: string | null
|
|
phoneNumbers?: PhoneNumberUncheckedCreateNestedManyWithoutInternetDetailsInput
|
|
}
|
|
|
|
export type InternetContractDetailsCreateOrConnectWithoutContractInput = {
|
|
where: InternetContractDetailsWhereUniqueInput
|
|
create: XOR<InternetContractDetailsCreateWithoutContractInput, InternetContractDetailsUncheckedCreateWithoutContractInput>
|
|
}
|
|
|
|
export type MobileContractDetailsCreateWithoutContractInput = {
|
|
requiresMultisim?: boolean
|
|
dataVolume?: number | null
|
|
includedMinutes?: number | null
|
|
includedSMS?: number | null
|
|
deviceModel?: string | null
|
|
deviceImei?: string | null
|
|
phoneNumber?: string | null
|
|
simCardNumber?: string | null
|
|
simCards?: SimCardCreateNestedManyWithoutMobileDetailsInput
|
|
}
|
|
|
|
export type MobileContractDetailsUncheckedCreateWithoutContractInput = {
|
|
id?: number
|
|
requiresMultisim?: boolean
|
|
dataVolume?: number | null
|
|
includedMinutes?: number | null
|
|
includedSMS?: number | null
|
|
deviceModel?: string | null
|
|
deviceImei?: string | null
|
|
phoneNumber?: string | null
|
|
simCardNumber?: string | null
|
|
simCards?: SimCardUncheckedCreateNestedManyWithoutMobileDetailsInput
|
|
}
|
|
|
|
export type MobileContractDetailsCreateOrConnectWithoutContractInput = {
|
|
where: MobileContractDetailsWhereUniqueInput
|
|
create: XOR<MobileContractDetailsCreateWithoutContractInput, MobileContractDetailsUncheckedCreateWithoutContractInput>
|
|
}
|
|
|
|
export type TvContractDetailsCreateWithoutContractInput = {
|
|
receiverModel?: string | null
|
|
smartcardNumber?: string | null
|
|
package?: string | null
|
|
}
|
|
|
|
export type TvContractDetailsUncheckedCreateWithoutContractInput = {
|
|
id?: number
|
|
receiverModel?: string | null
|
|
smartcardNumber?: string | null
|
|
package?: string | null
|
|
}
|
|
|
|
export type TvContractDetailsCreateOrConnectWithoutContractInput = {
|
|
where: TvContractDetailsWhereUniqueInput
|
|
create: XOR<TvContractDetailsCreateWithoutContractInput, TvContractDetailsUncheckedCreateWithoutContractInput>
|
|
}
|
|
|
|
export type CarInsuranceDetailsCreateWithoutContractInput = {
|
|
licensePlate?: string | null
|
|
hsn?: string | null
|
|
tsn?: string | null
|
|
vin?: string | null
|
|
vehicleType?: string | null
|
|
firstRegistration?: Date | string | null
|
|
noClaimsClass?: string | null
|
|
insuranceType?: $Enums.InsuranceType
|
|
deductiblePartial?: number | null
|
|
deductibleFull?: number | null
|
|
policyNumber?: string | null
|
|
previousInsurer?: string | null
|
|
}
|
|
|
|
export type CarInsuranceDetailsUncheckedCreateWithoutContractInput = {
|
|
id?: number
|
|
licensePlate?: string | null
|
|
hsn?: string | null
|
|
tsn?: string | null
|
|
vin?: string | null
|
|
vehicleType?: string | null
|
|
firstRegistration?: Date | string | null
|
|
noClaimsClass?: string | null
|
|
insuranceType?: $Enums.InsuranceType
|
|
deductiblePartial?: number | null
|
|
deductibleFull?: number | null
|
|
policyNumber?: string | null
|
|
previousInsurer?: string | null
|
|
}
|
|
|
|
export type CarInsuranceDetailsCreateOrConnectWithoutContractInput = {
|
|
where: CarInsuranceDetailsWhereUniqueInput
|
|
create: XOR<CarInsuranceDetailsCreateWithoutContractInput, CarInsuranceDetailsUncheckedCreateWithoutContractInput>
|
|
}
|
|
|
|
export type ContractTaskCreateWithoutContractInput = {
|
|
title: string
|
|
description?: string | null
|
|
status?: $Enums.ContractTaskStatus
|
|
visibleInPortal?: boolean
|
|
createdBy?: string | null
|
|
completedAt?: Date | string | null
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
subtasks?: ContractTaskSubtaskCreateNestedManyWithoutTaskInput
|
|
}
|
|
|
|
export type ContractTaskUncheckedCreateWithoutContractInput = {
|
|
id?: number
|
|
title: string
|
|
description?: string | null
|
|
status?: $Enums.ContractTaskStatus
|
|
visibleInPortal?: boolean
|
|
createdBy?: string | null
|
|
completedAt?: Date | string | null
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
subtasks?: ContractTaskSubtaskUncheckedCreateNestedManyWithoutTaskInput
|
|
}
|
|
|
|
export type ContractTaskCreateOrConnectWithoutContractInput = {
|
|
where: ContractTaskWhereUniqueInput
|
|
create: XOR<ContractTaskCreateWithoutContractInput, ContractTaskUncheckedCreateWithoutContractInput>
|
|
}
|
|
|
|
export type ContractTaskCreateManyContractInputEnvelope = {
|
|
data: ContractTaskCreateManyContractInput | ContractTaskCreateManyContractInput[]
|
|
skipDuplicates?: boolean
|
|
}
|
|
|
|
export type CachedEmailCreateWithoutContractInput = {
|
|
folder?: $Enums.EmailFolder
|
|
messageId: string
|
|
uid: number
|
|
subject?: string | null
|
|
fromAddress: string
|
|
fromName?: string | null
|
|
toAddresses: string
|
|
ccAddresses?: string | null
|
|
receivedAt: Date | string
|
|
textBody?: string | null
|
|
htmlBody?: string | null
|
|
hasAttachments?: boolean
|
|
attachmentNames?: string | null
|
|
assignedAt?: Date | string | null
|
|
assignedBy?: number | null
|
|
isAutoAssigned?: boolean
|
|
isRead?: boolean
|
|
isStarred?: boolean
|
|
isDeleted?: boolean
|
|
deletedAt?: Date | string | null
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
stressfreiEmail: StressfreiEmailCreateNestedOneWithoutCachedEmailsInput
|
|
}
|
|
|
|
export type CachedEmailUncheckedCreateWithoutContractInput = {
|
|
id?: number
|
|
stressfreiEmailId: number
|
|
folder?: $Enums.EmailFolder
|
|
messageId: string
|
|
uid: number
|
|
subject?: string | null
|
|
fromAddress: string
|
|
fromName?: string | null
|
|
toAddresses: string
|
|
ccAddresses?: string | null
|
|
receivedAt: Date | string
|
|
textBody?: string | null
|
|
htmlBody?: string | null
|
|
hasAttachments?: boolean
|
|
attachmentNames?: string | null
|
|
assignedAt?: Date | string | null
|
|
assignedBy?: number | null
|
|
isAutoAssigned?: boolean
|
|
isRead?: boolean
|
|
isStarred?: boolean
|
|
isDeleted?: boolean
|
|
deletedAt?: Date | string | null
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
}
|
|
|
|
export type CachedEmailCreateOrConnectWithoutContractInput = {
|
|
where: CachedEmailWhereUniqueInput
|
|
create: XOR<CachedEmailCreateWithoutContractInput, CachedEmailUncheckedCreateWithoutContractInput>
|
|
}
|
|
|
|
export type CachedEmailCreateManyContractInputEnvelope = {
|
|
data: CachedEmailCreateManyContractInput | CachedEmailCreateManyContractInput[]
|
|
skipDuplicates?: boolean
|
|
}
|
|
|
|
export type CustomerUpsertWithoutContractsInput = {
|
|
update: XOR<CustomerUpdateWithoutContractsInput, CustomerUncheckedUpdateWithoutContractsInput>
|
|
create: XOR<CustomerCreateWithoutContractsInput, CustomerUncheckedCreateWithoutContractsInput>
|
|
where?: CustomerWhereInput
|
|
}
|
|
|
|
export type CustomerUpdateToOneWithWhereWithoutContractsInput = {
|
|
where?: CustomerWhereInput
|
|
data: XOR<CustomerUpdateWithoutContractsInput, CustomerUncheckedUpdateWithoutContractsInput>
|
|
}
|
|
|
|
export type CustomerUpdateWithoutContractsInput = {
|
|
customerNumber?: StringFieldUpdateOperationsInput | string
|
|
type?: EnumCustomerTypeFieldUpdateOperationsInput | $Enums.CustomerType
|
|
salutation?: NullableStringFieldUpdateOperationsInput | string | null
|
|
firstName?: StringFieldUpdateOperationsInput | string
|
|
lastName?: StringFieldUpdateOperationsInput | string
|
|
companyName?: NullableStringFieldUpdateOperationsInput | string | null
|
|
foundingDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
birthDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
birthPlace?: NullableStringFieldUpdateOperationsInput | string | null
|
|
email?: NullableStringFieldUpdateOperationsInput | string | null
|
|
phone?: NullableStringFieldUpdateOperationsInput | string | null
|
|
mobile?: NullableStringFieldUpdateOperationsInput | string | null
|
|
taxNumber?: NullableStringFieldUpdateOperationsInput | string | null
|
|
businessRegistrationPath?: NullableStringFieldUpdateOperationsInput | string | null
|
|
commercialRegisterPath?: NullableStringFieldUpdateOperationsInput | string | null
|
|
commercialRegisterNumber?: NullableStringFieldUpdateOperationsInput | string | null
|
|
privacyPolicyPath?: NullableStringFieldUpdateOperationsInput | string | null
|
|
notes?: NullableStringFieldUpdateOperationsInput | string | null
|
|
portalEnabled?: BoolFieldUpdateOperationsInput | boolean
|
|
portalEmail?: NullableStringFieldUpdateOperationsInput | string | null
|
|
portalPasswordHash?: NullableStringFieldUpdateOperationsInput | string | null
|
|
portalPasswordEncrypted?: NullableStringFieldUpdateOperationsInput | string | null
|
|
portalLastLogin?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
user?: UserUpdateOneWithoutCustomerNestedInput
|
|
addresses?: AddressUpdateManyWithoutCustomerNestedInput
|
|
bankCards?: BankCardUpdateManyWithoutCustomerNestedInput
|
|
identityDocuments?: IdentityDocumentUpdateManyWithoutCustomerNestedInput
|
|
meters?: MeterUpdateManyWithoutCustomerNestedInput
|
|
stressfreiEmails?: StressfreiEmailUpdateManyWithoutCustomerNestedInput
|
|
representingFor?: CustomerRepresentativeUpdateManyWithoutRepresentativeNestedInput
|
|
representedBy?: CustomerRepresentativeUpdateManyWithoutCustomerNestedInput
|
|
}
|
|
|
|
export type CustomerUncheckedUpdateWithoutContractsInput = {
|
|
id?: IntFieldUpdateOperationsInput | number
|
|
customerNumber?: StringFieldUpdateOperationsInput | string
|
|
type?: EnumCustomerTypeFieldUpdateOperationsInput | $Enums.CustomerType
|
|
salutation?: NullableStringFieldUpdateOperationsInput | string | null
|
|
firstName?: StringFieldUpdateOperationsInput | string
|
|
lastName?: StringFieldUpdateOperationsInput | string
|
|
companyName?: NullableStringFieldUpdateOperationsInput | string | null
|
|
foundingDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
birthDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
birthPlace?: NullableStringFieldUpdateOperationsInput | string | null
|
|
email?: NullableStringFieldUpdateOperationsInput | string | null
|
|
phone?: NullableStringFieldUpdateOperationsInput | string | null
|
|
mobile?: NullableStringFieldUpdateOperationsInput | string | null
|
|
taxNumber?: NullableStringFieldUpdateOperationsInput | string | null
|
|
businessRegistrationPath?: NullableStringFieldUpdateOperationsInput | string | null
|
|
commercialRegisterPath?: NullableStringFieldUpdateOperationsInput | string | null
|
|
commercialRegisterNumber?: NullableStringFieldUpdateOperationsInput | string | null
|
|
privacyPolicyPath?: NullableStringFieldUpdateOperationsInput | string | null
|
|
notes?: NullableStringFieldUpdateOperationsInput | string | null
|
|
portalEnabled?: BoolFieldUpdateOperationsInput | boolean
|
|
portalEmail?: NullableStringFieldUpdateOperationsInput | string | null
|
|
portalPasswordHash?: NullableStringFieldUpdateOperationsInput | string | null
|
|
portalPasswordEncrypted?: NullableStringFieldUpdateOperationsInput | string | null
|
|
portalLastLogin?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
user?: UserUncheckedUpdateOneWithoutCustomerNestedInput
|
|
addresses?: AddressUncheckedUpdateManyWithoutCustomerNestedInput
|
|
bankCards?: BankCardUncheckedUpdateManyWithoutCustomerNestedInput
|
|
identityDocuments?: IdentityDocumentUncheckedUpdateManyWithoutCustomerNestedInput
|
|
meters?: MeterUncheckedUpdateManyWithoutCustomerNestedInput
|
|
stressfreiEmails?: StressfreiEmailUncheckedUpdateManyWithoutCustomerNestedInput
|
|
representingFor?: CustomerRepresentativeUncheckedUpdateManyWithoutRepresentativeNestedInput
|
|
representedBy?: CustomerRepresentativeUncheckedUpdateManyWithoutCustomerNestedInput
|
|
}
|
|
|
|
export type ContractCategoryUpsertWithoutContractsInput = {
|
|
update: XOR<ContractCategoryUpdateWithoutContractsInput, ContractCategoryUncheckedUpdateWithoutContractsInput>
|
|
create: XOR<ContractCategoryCreateWithoutContractsInput, ContractCategoryUncheckedCreateWithoutContractsInput>
|
|
where?: ContractCategoryWhereInput
|
|
}
|
|
|
|
export type ContractCategoryUpdateToOneWithWhereWithoutContractsInput = {
|
|
where?: ContractCategoryWhereInput
|
|
data: XOR<ContractCategoryUpdateWithoutContractsInput, ContractCategoryUncheckedUpdateWithoutContractsInput>
|
|
}
|
|
|
|
export type ContractCategoryUpdateWithoutContractsInput = {
|
|
code?: StringFieldUpdateOperationsInput | string
|
|
name?: StringFieldUpdateOperationsInput | string
|
|
icon?: NullableStringFieldUpdateOperationsInput | string | null
|
|
color?: NullableStringFieldUpdateOperationsInput | string | null
|
|
sortOrder?: IntFieldUpdateOperationsInput | number
|
|
isActive?: BoolFieldUpdateOperationsInput | boolean
|
|
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
}
|
|
|
|
export type ContractCategoryUncheckedUpdateWithoutContractsInput = {
|
|
id?: IntFieldUpdateOperationsInput | number
|
|
code?: StringFieldUpdateOperationsInput | string
|
|
name?: StringFieldUpdateOperationsInput | string
|
|
icon?: NullableStringFieldUpdateOperationsInput | string | null
|
|
color?: NullableStringFieldUpdateOperationsInput | string | null
|
|
sortOrder?: IntFieldUpdateOperationsInput | number
|
|
isActive?: BoolFieldUpdateOperationsInput | boolean
|
|
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
}
|
|
|
|
export type AddressUpsertWithoutContractsAsDeliveryInput = {
|
|
update: XOR<AddressUpdateWithoutContractsAsDeliveryInput, AddressUncheckedUpdateWithoutContractsAsDeliveryInput>
|
|
create: XOR<AddressCreateWithoutContractsAsDeliveryInput, AddressUncheckedCreateWithoutContractsAsDeliveryInput>
|
|
where?: AddressWhereInput
|
|
}
|
|
|
|
export type AddressUpdateToOneWithWhereWithoutContractsAsDeliveryInput = {
|
|
where?: AddressWhereInput
|
|
data: XOR<AddressUpdateWithoutContractsAsDeliveryInput, AddressUncheckedUpdateWithoutContractsAsDeliveryInput>
|
|
}
|
|
|
|
export type AddressUpdateWithoutContractsAsDeliveryInput = {
|
|
type?: EnumAddressTypeFieldUpdateOperationsInput | $Enums.AddressType
|
|
street?: StringFieldUpdateOperationsInput | string
|
|
houseNumber?: StringFieldUpdateOperationsInput | string
|
|
postalCode?: StringFieldUpdateOperationsInput | string
|
|
city?: StringFieldUpdateOperationsInput | string
|
|
country?: StringFieldUpdateOperationsInput | string
|
|
isDefault?: BoolFieldUpdateOperationsInput | boolean
|
|
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
customer?: CustomerUpdateOneRequiredWithoutAddressesNestedInput
|
|
contractsAsBilling?: ContractUpdateManyWithoutBillingAddressNestedInput
|
|
}
|
|
|
|
export type AddressUncheckedUpdateWithoutContractsAsDeliveryInput = {
|
|
id?: IntFieldUpdateOperationsInput | number
|
|
customerId?: IntFieldUpdateOperationsInput | number
|
|
type?: EnumAddressTypeFieldUpdateOperationsInput | $Enums.AddressType
|
|
street?: StringFieldUpdateOperationsInput | string
|
|
houseNumber?: StringFieldUpdateOperationsInput | string
|
|
postalCode?: StringFieldUpdateOperationsInput | string
|
|
city?: StringFieldUpdateOperationsInput | string
|
|
country?: StringFieldUpdateOperationsInput | string
|
|
isDefault?: BoolFieldUpdateOperationsInput | boolean
|
|
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
contractsAsBilling?: ContractUncheckedUpdateManyWithoutBillingAddressNestedInput
|
|
}
|
|
|
|
export type AddressUpsertWithoutContractsAsBillingInput = {
|
|
update: XOR<AddressUpdateWithoutContractsAsBillingInput, AddressUncheckedUpdateWithoutContractsAsBillingInput>
|
|
create: XOR<AddressCreateWithoutContractsAsBillingInput, AddressUncheckedCreateWithoutContractsAsBillingInput>
|
|
where?: AddressWhereInput
|
|
}
|
|
|
|
export type AddressUpdateToOneWithWhereWithoutContractsAsBillingInput = {
|
|
where?: AddressWhereInput
|
|
data: XOR<AddressUpdateWithoutContractsAsBillingInput, AddressUncheckedUpdateWithoutContractsAsBillingInput>
|
|
}
|
|
|
|
export type AddressUpdateWithoutContractsAsBillingInput = {
|
|
type?: EnumAddressTypeFieldUpdateOperationsInput | $Enums.AddressType
|
|
street?: StringFieldUpdateOperationsInput | string
|
|
houseNumber?: StringFieldUpdateOperationsInput | string
|
|
postalCode?: StringFieldUpdateOperationsInput | string
|
|
city?: StringFieldUpdateOperationsInput | string
|
|
country?: StringFieldUpdateOperationsInput | string
|
|
isDefault?: BoolFieldUpdateOperationsInput | boolean
|
|
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
customer?: CustomerUpdateOneRequiredWithoutAddressesNestedInput
|
|
contractsAsDelivery?: ContractUpdateManyWithoutAddressNestedInput
|
|
}
|
|
|
|
export type AddressUncheckedUpdateWithoutContractsAsBillingInput = {
|
|
id?: IntFieldUpdateOperationsInput | number
|
|
customerId?: IntFieldUpdateOperationsInput | number
|
|
type?: EnumAddressTypeFieldUpdateOperationsInput | $Enums.AddressType
|
|
street?: StringFieldUpdateOperationsInput | string
|
|
houseNumber?: StringFieldUpdateOperationsInput | string
|
|
postalCode?: StringFieldUpdateOperationsInput | string
|
|
city?: StringFieldUpdateOperationsInput | string
|
|
country?: StringFieldUpdateOperationsInput | string
|
|
isDefault?: BoolFieldUpdateOperationsInput | boolean
|
|
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
contractsAsDelivery?: ContractUncheckedUpdateManyWithoutAddressNestedInput
|
|
}
|
|
|
|
export type BankCardUpsertWithoutContractsInput = {
|
|
update: XOR<BankCardUpdateWithoutContractsInput, BankCardUncheckedUpdateWithoutContractsInput>
|
|
create: XOR<BankCardCreateWithoutContractsInput, BankCardUncheckedCreateWithoutContractsInput>
|
|
where?: BankCardWhereInput
|
|
}
|
|
|
|
export type BankCardUpdateToOneWithWhereWithoutContractsInput = {
|
|
where?: BankCardWhereInput
|
|
data: XOR<BankCardUpdateWithoutContractsInput, BankCardUncheckedUpdateWithoutContractsInput>
|
|
}
|
|
|
|
export type BankCardUpdateWithoutContractsInput = {
|
|
accountHolder?: StringFieldUpdateOperationsInput | string
|
|
iban?: StringFieldUpdateOperationsInput | string
|
|
bic?: NullableStringFieldUpdateOperationsInput | string | null
|
|
bankName?: NullableStringFieldUpdateOperationsInput | string | null
|
|
expiryDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
documentPath?: NullableStringFieldUpdateOperationsInput | string | null
|
|
isActive?: BoolFieldUpdateOperationsInput | boolean
|
|
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
customer?: CustomerUpdateOneRequiredWithoutBankCardsNestedInput
|
|
}
|
|
|
|
export type BankCardUncheckedUpdateWithoutContractsInput = {
|
|
id?: IntFieldUpdateOperationsInput | number
|
|
customerId?: IntFieldUpdateOperationsInput | number
|
|
accountHolder?: StringFieldUpdateOperationsInput | string
|
|
iban?: StringFieldUpdateOperationsInput | string
|
|
bic?: NullableStringFieldUpdateOperationsInput | string | null
|
|
bankName?: NullableStringFieldUpdateOperationsInput | string | null
|
|
expiryDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
documentPath?: NullableStringFieldUpdateOperationsInput | string | null
|
|
isActive?: BoolFieldUpdateOperationsInput | boolean
|
|
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
}
|
|
|
|
export type IdentityDocumentUpsertWithoutContractsInput = {
|
|
update: XOR<IdentityDocumentUpdateWithoutContractsInput, IdentityDocumentUncheckedUpdateWithoutContractsInput>
|
|
create: XOR<IdentityDocumentCreateWithoutContractsInput, IdentityDocumentUncheckedCreateWithoutContractsInput>
|
|
where?: IdentityDocumentWhereInput
|
|
}
|
|
|
|
export type IdentityDocumentUpdateToOneWithWhereWithoutContractsInput = {
|
|
where?: IdentityDocumentWhereInput
|
|
data: XOR<IdentityDocumentUpdateWithoutContractsInput, IdentityDocumentUncheckedUpdateWithoutContractsInput>
|
|
}
|
|
|
|
export type IdentityDocumentUpdateWithoutContractsInput = {
|
|
type?: EnumDocumentTypeFieldUpdateOperationsInput | $Enums.DocumentType
|
|
documentNumber?: StringFieldUpdateOperationsInput | string
|
|
issuingAuthority?: NullableStringFieldUpdateOperationsInput | string | null
|
|
issueDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
expiryDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
documentPath?: NullableStringFieldUpdateOperationsInput | string | null
|
|
isActive?: BoolFieldUpdateOperationsInput | boolean
|
|
licenseClasses?: NullableStringFieldUpdateOperationsInput | string | null
|
|
licenseIssueDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
customer?: CustomerUpdateOneRequiredWithoutIdentityDocumentsNestedInput
|
|
}
|
|
|
|
export type IdentityDocumentUncheckedUpdateWithoutContractsInput = {
|
|
id?: IntFieldUpdateOperationsInput | number
|
|
customerId?: IntFieldUpdateOperationsInput | number
|
|
type?: EnumDocumentTypeFieldUpdateOperationsInput | $Enums.DocumentType
|
|
documentNumber?: StringFieldUpdateOperationsInput | string
|
|
issuingAuthority?: NullableStringFieldUpdateOperationsInput | string | null
|
|
issueDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
expiryDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
documentPath?: NullableStringFieldUpdateOperationsInput | string | null
|
|
isActive?: BoolFieldUpdateOperationsInput | boolean
|
|
licenseClasses?: NullableStringFieldUpdateOperationsInput | string | null
|
|
licenseIssueDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
}
|
|
|
|
export type SalesPlatformUpsertWithoutContractsInput = {
|
|
update: XOR<SalesPlatformUpdateWithoutContractsInput, SalesPlatformUncheckedUpdateWithoutContractsInput>
|
|
create: XOR<SalesPlatformCreateWithoutContractsInput, SalesPlatformUncheckedCreateWithoutContractsInput>
|
|
where?: SalesPlatformWhereInput
|
|
}
|
|
|
|
export type SalesPlatformUpdateToOneWithWhereWithoutContractsInput = {
|
|
where?: SalesPlatformWhereInput
|
|
data: XOR<SalesPlatformUpdateWithoutContractsInput, SalesPlatformUncheckedUpdateWithoutContractsInput>
|
|
}
|
|
|
|
export type SalesPlatformUpdateWithoutContractsInput = {
|
|
name?: StringFieldUpdateOperationsInput | string
|
|
contactInfo?: NullableStringFieldUpdateOperationsInput | string | null
|
|
isActive?: BoolFieldUpdateOperationsInput | boolean
|
|
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
}
|
|
|
|
export type SalesPlatformUncheckedUpdateWithoutContractsInput = {
|
|
id?: IntFieldUpdateOperationsInput | number
|
|
name?: StringFieldUpdateOperationsInput | string
|
|
contactInfo?: NullableStringFieldUpdateOperationsInput | string | null
|
|
isActive?: BoolFieldUpdateOperationsInput | boolean
|
|
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
}
|
|
|
|
export type CancellationPeriodUpsertWithoutContractsInput = {
|
|
update: XOR<CancellationPeriodUpdateWithoutContractsInput, CancellationPeriodUncheckedUpdateWithoutContractsInput>
|
|
create: XOR<CancellationPeriodCreateWithoutContractsInput, CancellationPeriodUncheckedCreateWithoutContractsInput>
|
|
where?: CancellationPeriodWhereInput
|
|
}
|
|
|
|
export type CancellationPeriodUpdateToOneWithWhereWithoutContractsInput = {
|
|
where?: CancellationPeriodWhereInput
|
|
data: XOR<CancellationPeriodUpdateWithoutContractsInput, CancellationPeriodUncheckedUpdateWithoutContractsInput>
|
|
}
|
|
|
|
export type CancellationPeriodUpdateWithoutContractsInput = {
|
|
code?: StringFieldUpdateOperationsInput | string
|
|
description?: StringFieldUpdateOperationsInput | string
|
|
isActive?: BoolFieldUpdateOperationsInput | boolean
|
|
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
}
|
|
|
|
export type CancellationPeriodUncheckedUpdateWithoutContractsInput = {
|
|
id?: IntFieldUpdateOperationsInput | number
|
|
code?: StringFieldUpdateOperationsInput | string
|
|
description?: StringFieldUpdateOperationsInput | string
|
|
isActive?: BoolFieldUpdateOperationsInput | boolean
|
|
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
}
|
|
|
|
export type ContractDurationUpsertWithoutContractsInput = {
|
|
update: XOR<ContractDurationUpdateWithoutContractsInput, ContractDurationUncheckedUpdateWithoutContractsInput>
|
|
create: XOR<ContractDurationCreateWithoutContractsInput, ContractDurationUncheckedCreateWithoutContractsInput>
|
|
where?: ContractDurationWhereInput
|
|
}
|
|
|
|
export type ContractDurationUpdateToOneWithWhereWithoutContractsInput = {
|
|
where?: ContractDurationWhereInput
|
|
data: XOR<ContractDurationUpdateWithoutContractsInput, ContractDurationUncheckedUpdateWithoutContractsInput>
|
|
}
|
|
|
|
export type ContractDurationUpdateWithoutContractsInput = {
|
|
code?: StringFieldUpdateOperationsInput | string
|
|
description?: StringFieldUpdateOperationsInput | string
|
|
isActive?: BoolFieldUpdateOperationsInput | boolean
|
|
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
}
|
|
|
|
export type ContractDurationUncheckedUpdateWithoutContractsInput = {
|
|
id?: IntFieldUpdateOperationsInput | number
|
|
code?: StringFieldUpdateOperationsInput | string
|
|
description?: StringFieldUpdateOperationsInput | string
|
|
isActive?: BoolFieldUpdateOperationsInput | boolean
|
|
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
}
|
|
|
|
export type ContractUpsertWithoutFollowUpContractInput = {
|
|
update: XOR<ContractUpdateWithoutFollowUpContractInput, ContractUncheckedUpdateWithoutFollowUpContractInput>
|
|
create: XOR<ContractCreateWithoutFollowUpContractInput, ContractUncheckedCreateWithoutFollowUpContractInput>
|
|
where?: ContractWhereInput
|
|
}
|
|
|
|
export type ContractUpdateToOneWithWhereWithoutFollowUpContractInput = {
|
|
where?: ContractWhereInput
|
|
data: XOR<ContractUpdateWithoutFollowUpContractInput, ContractUncheckedUpdateWithoutFollowUpContractInput>
|
|
}
|
|
|
|
export type ContractUpdateWithoutFollowUpContractInput = {
|
|
contractNumber?: StringFieldUpdateOperationsInput | string
|
|
type?: EnumContractTypeFieldUpdateOperationsInput | $Enums.ContractType
|
|
status?: EnumContractStatusFieldUpdateOperationsInput | $Enums.ContractStatus
|
|
providerName?: NullableStringFieldUpdateOperationsInput | string | null
|
|
tariffName?: NullableStringFieldUpdateOperationsInput | string | null
|
|
customerNumberAtProvider?: NullableStringFieldUpdateOperationsInput | string | null
|
|
priceFirst12Months?: NullableStringFieldUpdateOperationsInput | string | null
|
|
priceFrom13Months?: NullableStringFieldUpdateOperationsInput | string | null
|
|
priceAfter24Months?: NullableStringFieldUpdateOperationsInput | string | null
|
|
startDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
endDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
commission?: NullableFloatFieldUpdateOperationsInput | number | null
|
|
cancellationLetterPath?: NullableStringFieldUpdateOperationsInput | string | null
|
|
cancellationConfirmationPath?: NullableStringFieldUpdateOperationsInput | string | null
|
|
cancellationLetterOptionsPath?: NullableStringFieldUpdateOperationsInput | string | null
|
|
cancellationConfirmationOptionsPath?: NullableStringFieldUpdateOperationsInput | string | null
|
|
cancellationConfirmationDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
cancellationConfirmationOptionsDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
wasSpecialCancellation?: BoolFieldUpdateOperationsInput | boolean
|
|
portalUsername?: NullableStringFieldUpdateOperationsInput | string | null
|
|
portalPasswordEncrypted?: NullableStringFieldUpdateOperationsInput | string | null
|
|
notes?: NullableStringFieldUpdateOperationsInput | string | null
|
|
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
customer?: CustomerUpdateOneRequiredWithoutContractsNestedInput
|
|
contractCategory?: ContractCategoryUpdateOneWithoutContractsNestedInput
|
|
address?: AddressUpdateOneWithoutContractsAsDeliveryNestedInput
|
|
billingAddress?: AddressUpdateOneWithoutContractsAsBillingNestedInput
|
|
bankCard?: BankCardUpdateOneWithoutContractsNestedInput
|
|
identityDocument?: IdentityDocumentUpdateOneWithoutContractsNestedInput
|
|
salesPlatform?: SalesPlatformUpdateOneWithoutContractsNestedInput
|
|
cancellationPeriod?: CancellationPeriodUpdateOneWithoutContractsNestedInput
|
|
contractDuration?: ContractDurationUpdateOneWithoutContractsNestedInput
|
|
previousContract?: ContractUpdateOneWithoutFollowUpContractNestedInput
|
|
provider?: ProviderUpdateOneWithoutContractsNestedInput
|
|
tariff?: TariffUpdateOneWithoutContractsNestedInput
|
|
stressfreiEmail?: StressfreiEmailUpdateOneWithoutContractsNestedInput
|
|
energyDetails?: EnergyContractDetailsUpdateOneWithoutContractNestedInput
|
|
internetDetails?: InternetContractDetailsUpdateOneWithoutContractNestedInput
|
|
mobileDetails?: MobileContractDetailsUpdateOneWithoutContractNestedInput
|
|
tvDetails?: TvContractDetailsUpdateOneWithoutContractNestedInput
|
|
carInsuranceDetails?: CarInsuranceDetailsUpdateOneWithoutContractNestedInput
|
|
tasks?: ContractTaskUpdateManyWithoutContractNestedInput
|
|
assignedEmails?: CachedEmailUpdateManyWithoutContractNestedInput
|
|
}
|
|
|
|
export type ContractUncheckedUpdateWithoutFollowUpContractInput = {
|
|
id?: IntFieldUpdateOperationsInput | number
|
|
contractNumber?: StringFieldUpdateOperationsInput | string
|
|
customerId?: IntFieldUpdateOperationsInput | number
|
|
type?: EnumContractTypeFieldUpdateOperationsInput | $Enums.ContractType
|
|
status?: EnumContractStatusFieldUpdateOperationsInput | $Enums.ContractStatus
|
|
contractCategoryId?: NullableIntFieldUpdateOperationsInput | number | null
|
|
addressId?: NullableIntFieldUpdateOperationsInput | number | null
|
|
billingAddressId?: NullableIntFieldUpdateOperationsInput | number | null
|
|
bankCardId?: NullableIntFieldUpdateOperationsInput | number | null
|
|
identityDocumentId?: NullableIntFieldUpdateOperationsInput | number | null
|
|
salesPlatformId?: NullableIntFieldUpdateOperationsInput | number | null
|
|
cancellationPeriodId?: NullableIntFieldUpdateOperationsInput | number | null
|
|
contractDurationId?: NullableIntFieldUpdateOperationsInput | number | null
|
|
previousContractId?: NullableIntFieldUpdateOperationsInput | number | null
|
|
providerId?: NullableIntFieldUpdateOperationsInput | number | null
|
|
tariffId?: NullableIntFieldUpdateOperationsInput | number | null
|
|
providerName?: NullableStringFieldUpdateOperationsInput | string | null
|
|
tariffName?: NullableStringFieldUpdateOperationsInput | string | null
|
|
customerNumberAtProvider?: NullableStringFieldUpdateOperationsInput | string | null
|
|
priceFirst12Months?: NullableStringFieldUpdateOperationsInput | string | null
|
|
priceFrom13Months?: NullableStringFieldUpdateOperationsInput | string | null
|
|
priceAfter24Months?: NullableStringFieldUpdateOperationsInput | string | null
|
|
startDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
endDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
commission?: NullableFloatFieldUpdateOperationsInput | number | null
|
|
cancellationLetterPath?: NullableStringFieldUpdateOperationsInput | string | null
|
|
cancellationConfirmationPath?: NullableStringFieldUpdateOperationsInput | string | null
|
|
cancellationLetterOptionsPath?: NullableStringFieldUpdateOperationsInput | string | null
|
|
cancellationConfirmationOptionsPath?: NullableStringFieldUpdateOperationsInput | string | null
|
|
cancellationConfirmationDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
cancellationConfirmationOptionsDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
wasSpecialCancellation?: BoolFieldUpdateOperationsInput | boolean
|
|
portalUsername?: NullableStringFieldUpdateOperationsInput | string | null
|
|
portalPasswordEncrypted?: NullableStringFieldUpdateOperationsInput | string | null
|
|
stressfreiEmailId?: NullableIntFieldUpdateOperationsInput | number | null
|
|
notes?: NullableStringFieldUpdateOperationsInput | string | null
|
|
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
energyDetails?: EnergyContractDetailsUncheckedUpdateOneWithoutContractNestedInput
|
|
internetDetails?: InternetContractDetailsUncheckedUpdateOneWithoutContractNestedInput
|
|
mobileDetails?: MobileContractDetailsUncheckedUpdateOneWithoutContractNestedInput
|
|
tvDetails?: TvContractDetailsUncheckedUpdateOneWithoutContractNestedInput
|
|
carInsuranceDetails?: CarInsuranceDetailsUncheckedUpdateOneWithoutContractNestedInput
|
|
tasks?: ContractTaskUncheckedUpdateManyWithoutContractNestedInput
|
|
assignedEmails?: CachedEmailUncheckedUpdateManyWithoutContractNestedInput
|
|
}
|
|
|
|
export type ContractUpsertWithoutPreviousContractInput = {
|
|
update: XOR<ContractUpdateWithoutPreviousContractInput, ContractUncheckedUpdateWithoutPreviousContractInput>
|
|
create: XOR<ContractCreateWithoutPreviousContractInput, ContractUncheckedCreateWithoutPreviousContractInput>
|
|
where?: ContractWhereInput
|
|
}
|
|
|
|
export type ContractUpdateToOneWithWhereWithoutPreviousContractInput = {
|
|
where?: ContractWhereInput
|
|
data: XOR<ContractUpdateWithoutPreviousContractInput, ContractUncheckedUpdateWithoutPreviousContractInput>
|
|
}
|
|
|
|
export type ContractUpdateWithoutPreviousContractInput = {
|
|
contractNumber?: StringFieldUpdateOperationsInput | string
|
|
type?: EnumContractTypeFieldUpdateOperationsInput | $Enums.ContractType
|
|
status?: EnumContractStatusFieldUpdateOperationsInput | $Enums.ContractStatus
|
|
providerName?: NullableStringFieldUpdateOperationsInput | string | null
|
|
tariffName?: NullableStringFieldUpdateOperationsInput | string | null
|
|
customerNumberAtProvider?: NullableStringFieldUpdateOperationsInput | string | null
|
|
priceFirst12Months?: NullableStringFieldUpdateOperationsInput | string | null
|
|
priceFrom13Months?: NullableStringFieldUpdateOperationsInput | string | null
|
|
priceAfter24Months?: NullableStringFieldUpdateOperationsInput | string | null
|
|
startDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
endDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
commission?: NullableFloatFieldUpdateOperationsInput | number | null
|
|
cancellationLetterPath?: NullableStringFieldUpdateOperationsInput | string | null
|
|
cancellationConfirmationPath?: NullableStringFieldUpdateOperationsInput | string | null
|
|
cancellationLetterOptionsPath?: NullableStringFieldUpdateOperationsInput | string | null
|
|
cancellationConfirmationOptionsPath?: NullableStringFieldUpdateOperationsInput | string | null
|
|
cancellationConfirmationDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
cancellationConfirmationOptionsDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
wasSpecialCancellation?: BoolFieldUpdateOperationsInput | boolean
|
|
portalUsername?: NullableStringFieldUpdateOperationsInput | string | null
|
|
portalPasswordEncrypted?: NullableStringFieldUpdateOperationsInput | string | null
|
|
notes?: NullableStringFieldUpdateOperationsInput | string | null
|
|
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
customer?: CustomerUpdateOneRequiredWithoutContractsNestedInput
|
|
contractCategory?: ContractCategoryUpdateOneWithoutContractsNestedInput
|
|
address?: AddressUpdateOneWithoutContractsAsDeliveryNestedInput
|
|
billingAddress?: AddressUpdateOneWithoutContractsAsBillingNestedInput
|
|
bankCard?: BankCardUpdateOneWithoutContractsNestedInput
|
|
identityDocument?: IdentityDocumentUpdateOneWithoutContractsNestedInput
|
|
salesPlatform?: SalesPlatformUpdateOneWithoutContractsNestedInput
|
|
cancellationPeriod?: CancellationPeriodUpdateOneWithoutContractsNestedInput
|
|
contractDuration?: ContractDurationUpdateOneWithoutContractsNestedInput
|
|
followUpContract?: ContractUpdateOneWithoutPreviousContractNestedInput
|
|
provider?: ProviderUpdateOneWithoutContractsNestedInput
|
|
tariff?: TariffUpdateOneWithoutContractsNestedInput
|
|
stressfreiEmail?: StressfreiEmailUpdateOneWithoutContractsNestedInput
|
|
energyDetails?: EnergyContractDetailsUpdateOneWithoutContractNestedInput
|
|
internetDetails?: InternetContractDetailsUpdateOneWithoutContractNestedInput
|
|
mobileDetails?: MobileContractDetailsUpdateOneWithoutContractNestedInput
|
|
tvDetails?: TvContractDetailsUpdateOneWithoutContractNestedInput
|
|
carInsuranceDetails?: CarInsuranceDetailsUpdateOneWithoutContractNestedInput
|
|
tasks?: ContractTaskUpdateManyWithoutContractNestedInput
|
|
assignedEmails?: CachedEmailUpdateManyWithoutContractNestedInput
|
|
}
|
|
|
|
export type ContractUncheckedUpdateWithoutPreviousContractInput = {
|
|
id?: IntFieldUpdateOperationsInput | number
|
|
contractNumber?: StringFieldUpdateOperationsInput | string
|
|
customerId?: IntFieldUpdateOperationsInput | number
|
|
type?: EnumContractTypeFieldUpdateOperationsInput | $Enums.ContractType
|
|
status?: EnumContractStatusFieldUpdateOperationsInput | $Enums.ContractStatus
|
|
contractCategoryId?: NullableIntFieldUpdateOperationsInput | number | null
|
|
addressId?: NullableIntFieldUpdateOperationsInput | number | null
|
|
billingAddressId?: NullableIntFieldUpdateOperationsInput | number | null
|
|
bankCardId?: NullableIntFieldUpdateOperationsInput | number | null
|
|
identityDocumentId?: NullableIntFieldUpdateOperationsInput | number | null
|
|
salesPlatformId?: NullableIntFieldUpdateOperationsInput | number | null
|
|
cancellationPeriodId?: NullableIntFieldUpdateOperationsInput | number | null
|
|
contractDurationId?: NullableIntFieldUpdateOperationsInput | number | null
|
|
providerId?: NullableIntFieldUpdateOperationsInput | number | null
|
|
tariffId?: NullableIntFieldUpdateOperationsInput | number | null
|
|
providerName?: NullableStringFieldUpdateOperationsInput | string | null
|
|
tariffName?: NullableStringFieldUpdateOperationsInput | string | null
|
|
customerNumberAtProvider?: NullableStringFieldUpdateOperationsInput | string | null
|
|
priceFirst12Months?: NullableStringFieldUpdateOperationsInput | string | null
|
|
priceFrom13Months?: NullableStringFieldUpdateOperationsInput | string | null
|
|
priceAfter24Months?: NullableStringFieldUpdateOperationsInput | string | null
|
|
startDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
endDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
commission?: NullableFloatFieldUpdateOperationsInput | number | null
|
|
cancellationLetterPath?: NullableStringFieldUpdateOperationsInput | string | null
|
|
cancellationConfirmationPath?: NullableStringFieldUpdateOperationsInput | string | null
|
|
cancellationLetterOptionsPath?: NullableStringFieldUpdateOperationsInput | string | null
|
|
cancellationConfirmationOptionsPath?: NullableStringFieldUpdateOperationsInput | string | null
|
|
cancellationConfirmationDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
cancellationConfirmationOptionsDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
wasSpecialCancellation?: BoolFieldUpdateOperationsInput | boolean
|
|
portalUsername?: NullableStringFieldUpdateOperationsInput | string | null
|
|
portalPasswordEncrypted?: NullableStringFieldUpdateOperationsInput | string | null
|
|
stressfreiEmailId?: NullableIntFieldUpdateOperationsInput | number | null
|
|
notes?: NullableStringFieldUpdateOperationsInput | string | null
|
|
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
followUpContract?: ContractUncheckedUpdateOneWithoutPreviousContractNestedInput
|
|
energyDetails?: EnergyContractDetailsUncheckedUpdateOneWithoutContractNestedInput
|
|
internetDetails?: InternetContractDetailsUncheckedUpdateOneWithoutContractNestedInput
|
|
mobileDetails?: MobileContractDetailsUncheckedUpdateOneWithoutContractNestedInput
|
|
tvDetails?: TvContractDetailsUncheckedUpdateOneWithoutContractNestedInput
|
|
carInsuranceDetails?: CarInsuranceDetailsUncheckedUpdateOneWithoutContractNestedInput
|
|
tasks?: ContractTaskUncheckedUpdateManyWithoutContractNestedInput
|
|
assignedEmails?: CachedEmailUncheckedUpdateManyWithoutContractNestedInput
|
|
}
|
|
|
|
export type ProviderUpsertWithoutContractsInput = {
|
|
update: XOR<ProviderUpdateWithoutContractsInput, ProviderUncheckedUpdateWithoutContractsInput>
|
|
create: XOR<ProviderCreateWithoutContractsInput, ProviderUncheckedCreateWithoutContractsInput>
|
|
where?: ProviderWhereInput
|
|
}
|
|
|
|
export type ProviderUpdateToOneWithWhereWithoutContractsInput = {
|
|
where?: ProviderWhereInput
|
|
data: XOR<ProviderUpdateWithoutContractsInput, ProviderUncheckedUpdateWithoutContractsInput>
|
|
}
|
|
|
|
export type ProviderUpdateWithoutContractsInput = {
|
|
name?: StringFieldUpdateOperationsInput | string
|
|
portalUrl?: NullableStringFieldUpdateOperationsInput | string | null
|
|
usernameFieldName?: NullableStringFieldUpdateOperationsInput | string | null
|
|
passwordFieldName?: NullableStringFieldUpdateOperationsInput | string | null
|
|
isActive?: BoolFieldUpdateOperationsInput | boolean
|
|
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
tariffs?: TariffUpdateManyWithoutProviderNestedInput
|
|
}
|
|
|
|
export type ProviderUncheckedUpdateWithoutContractsInput = {
|
|
id?: IntFieldUpdateOperationsInput | number
|
|
name?: StringFieldUpdateOperationsInput | string
|
|
portalUrl?: NullableStringFieldUpdateOperationsInput | string | null
|
|
usernameFieldName?: NullableStringFieldUpdateOperationsInput | string | null
|
|
passwordFieldName?: NullableStringFieldUpdateOperationsInput | string | null
|
|
isActive?: BoolFieldUpdateOperationsInput | boolean
|
|
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
tariffs?: TariffUncheckedUpdateManyWithoutProviderNestedInput
|
|
}
|
|
|
|
export type TariffUpsertWithoutContractsInput = {
|
|
update: XOR<TariffUpdateWithoutContractsInput, TariffUncheckedUpdateWithoutContractsInput>
|
|
create: XOR<TariffCreateWithoutContractsInput, TariffUncheckedCreateWithoutContractsInput>
|
|
where?: TariffWhereInput
|
|
}
|
|
|
|
export type TariffUpdateToOneWithWhereWithoutContractsInput = {
|
|
where?: TariffWhereInput
|
|
data: XOR<TariffUpdateWithoutContractsInput, TariffUncheckedUpdateWithoutContractsInput>
|
|
}
|
|
|
|
export type TariffUpdateWithoutContractsInput = {
|
|
name?: StringFieldUpdateOperationsInput | string
|
|
isActive?: BoolFieldUpdateOperationsInput | boolean
|
|
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
provider?: ProviderUpdateOneRequiredWithoutTariffsNestedInput
|
|
}
|
|
|
|
export type TariffUncheckedUpdateWithoutContractsInput = {
|
|
id?: IntFieldUpdateOperationsInput | number
|
|
providerId?: IntFieldUpdateOperationsInput | number
|
|
name?: StringFieldUpdateOperationsInput | string
|
|
isActive?: BoolFieldUpdateOperationsInput | boolean
|
|
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
}
|
|
|
|
export type StressfreiEmailUpsertWithoutContractsInput = {
|
|
update: XOR<StressfreiEmailUpdateWithoutContractsInput, StressfreiEmailUncheckedUpdateWithoutContractsInput>
|
|
create: XOR<StressfreiEmailCreateWithoutContractsInput, StressfreiEmailUncheckedCreateWithoutContractsInput>
|
|
where?: StressfreiEmailWhereInput
|
|
}
|
|
|
|
export type StressfreiEmailUpdateToOneWithWhereWithoutContractsInput = {
|
|
where?: StressfreiEmailWhereInput
|
|
data: XOR<StressfreiEmailUpdateWithoutContractsInput, StressfreiEmailUncheckedUpdateWithoutContractsInput>
|
|
}
|
|
|
|
export type StressfreiEmailUpdateWithoutContractsInput = {
|
|
email?: StringFieldUpdateOperationsInput | string
|
|
platform?: NullableStringFieldUpdateOperationsInput | string | null
|
|
notes?: NullableStringFieldUpdateOperationsInput | string | null
|
|
isActive?: BoolFieldUpdateOperationsInput | boolean
|
|
isProvisioned?: BoolFieldUpdateOperationsInput | boolean
|
|
provisionedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
provisionError?: NullableStringFieldUpdateOperationsInput | string | null
|
|
hasMailbox?: BoolFieldUpdateOperationsInput | boolean
|
|
emailPasswordEncrypted?: NullableStringFieldUpdateOperationsInput | string | null
|
|
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
customer?: CustomerUpdateOneRequiredWithoutStressfreiEmailsNestedInput
|
|
cachedEmails?: CachedEmailUpdateManyWithoutStressfreiEmailNestedInput
|
|
}
|
|
|
|
export type StressfreiEmailUncheckedUpdateWithoutContractsInput = {
|
|
id?: IntFieldUpdateOperationsInput | number
|
|
customerId?: IntFieldUpdateOperationsInput | number
|
|
email?: StringFieldUpdateOperationsInput | string
|
|
platform?: NullableStringFieldUpdateOperationsInput | string | null
|
|
notes?: NullableStringFieldUpdateOperationsInput | string | null
|
|
isActive?: BoolFieldUpdateOperationsInput | boolean
|
|
isProvisioned?: BoolFieldUpdateOperationsInput | boolean
|
|
provisionedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
provisionError?: NullableStringFieldUpdateOperationsInput | string | null
|
|
hasMailbox?: BoolFieldUpdateOperationsInput | boolean
|
|
emailPasswordEncrypted?: NullableStringFieldUpdateOperationsInput | string | null
|
|
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
cachedEmails?: CachedEmailUncheckedUpdateManyWithoutStressfreiEmailNestedInput
|
|
}
|
|
|
|
export type EnergyContractDetailsUpsertWithoutContractInput = {
|
|
update: XOR<EnergyContractDetailsUpdateWithoutContractInput, EnergyContractDetailsUncheckedUpdateWithoutContractInput>
|
|
create: XOR<EnergyContractDetailsCreateWithoutContractInput, EnergyContractDetailsUncheckedCreateWithoutContractInput>
|
|
where?: EnergyContractDetailsWhereInput
|
|
}
|
|
|
|
export type EnergyContractDetailsUpdateToOneWithWhereWithoutContractInput = {
|
|
where?: EnergyContractDetailsWhereInput
|
|
data: XOR<EnergyContractDetailsUpdateWithoutContractInput, EnergyContractDetailsUncheckedUpdateWithoutContractInput>
|
|
}
|
|
|
|
export type EnergyContractDetailsUpdateWithoutContractInput = {
|
|
maloId?: NullableStringFieldUpdateOperationsInput | string | null
|
|
annualConsumption?: NullableFloatFieldUpdateOperationsInput | number | null
|
|
annualConsumptionKwh?: NullableFloatFieldUpdateOperationsInput | number | null
|
|
basePrice?: NullableFloatFieldUpdateOperationsInput | number | null
|
|
unitPrice?: NullableFloatFieldUpdateOperationsInput | number | null
|
|
bonus?: NullableFloatFieldUpdateOperationsInput | number | null
|
|
previousProviderName?: NullableStringFieldUpdateOperationsInput | string | null
|
|
previousCustomerNumber?: NullableStringFieldUpdateOperationsInput | string | null
|
|
meter?: MeterUpdateOneWithoutEnergyDetailsNestedInput
|
|
}
|
|
|
|
export type EnergyContractDetailsUncheckedUpdateWithoutContractInput = {
|
|
id?: IntFieldUpdateOperationsInput | number
|
|
meterId?: NullableIntFieldUpdateOperationsInput | number | null
|
|
maloId?: NullableStringFieldUpdateOperationsInput | string | null
|
|
annualConsumption?: NullableFloatFieldUpdateOperationsInput | number | null
|
|
annualConsumptionKwh?: NullableFloatFieldUpdateOperationsInput | number | null
|
|
basePrice?: NullableFloatFieldUpdateOperationsInput | number | null
|
|
unitPrice?: NullableFloatFieldUpdateOperationsInput | number | null
|
|
bonus?: NullableFloatFieldUpdateOperationsInput | number | null
|
|
previousProviderName?: NullableStringFieldUpdateOperationsInput | string | null
|
|
previousCustomerNumber?: NullableStringFieldUpdateOperationsInput | string | null
|
|
}
|
|
|
|
export type InternetContractDetailsUpsertWithoutContractInput = {
|
|
update: XOR<InternetContractDetailsUpdateWithoutContractInput, InternetContractDetailsUncheckedUpdateWithoutContractInput>
|
|
create: XOR<InternetContractDetailsCreateWithoutContractInput, InternetContractDetailsUncheckedCreateWithoutContractInput>
|
|
where?: InternetContractDetailsWhereInput
|
|
}
|
|
|
|
export type InternetContractDetailsUpdateToOneWithWhereWithoutContractInput = {
|
|
where?: InternetContractDetailsWhereInput
|
|
data: XOR<InternetContractDetailsUpdateWithoutContractInput, InternetContractDetailsUncheckedUpdateWithoutContractInput>
|
|
}
|
|
|
|
export type InternetContractDetailsUpdateWithoutContractInput = {
|
|
downloadSpeed?: NullableIntFieldUpdateOperationsInput | number | null
|
|
uploadSpeed?: NullableIntFieldUpdateOperationsInput | number | null
|
|
routerModel?: NullableStringFieldUpdateOperationsInput | string | null
|
|
routerSerialNumber?: NullableStringFieldUpdateOperationsInput | string | null
|
|
installationDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
internetUsername?: NullableStringFieldUpdateOperationsInput | string | null
|
|
internetPasswordEncrypted?: NullableStringFieldUpdateOperationsInput | string | null
|
|
homeId?: NullableStringFieldUpdateOperationsInput | string | null
|
|
activationCode?: NullableStringFieldUpdateOperationsInput | string | null
|
|
phoneNumbers?: PhoneNumberUpdateManyWithoutInternetDetailsNestedInput
|
|
}
|
|
|
|
export type InternetContractDetailsUncheckedUpdateWithoutContractInput = {
|
|
id?: IntFieldUpdateOperationsInput | number
|
|
downloadSpeed?: NullableIntFieldUpdateOperationsInput | number | null
|
|
uploadSpeed?: NullableIntFieldUpdateOperationsInput | number | null
|
|
routerModel?: NullableStringFieldUpdateOperationsInput | string | null
|
|
routerSerialNumber?: NullableStringFieldUpdateOperationsInput | string | null
|
|
installationDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
internetUsername?: NullableStringFieldUpdateOperationsInput | string | null
|
|
internetPasswordEncrypted?: NullableStringFieldUpdateOperationsInput | string | null
|
|
homeId?: NullableStringFieldUpdateOperationsInput | string | null
|
|
activationCode?: NullableStringFieldUpdateOperationsInput | string | null
|
|
phoneNumbers?: PhoneNumberUncheckedUpdateManyWithoutInternetDetailsNestedInput
|
|
}
|
|
|
|
export type MobileContractDetailsUpsertWithoutContractInput = {
|
|
update: XOR<MobileContractDetailsUpdateWithoutContractInput, MobileContractDetailsUncheckedUpdateWithoutContractInput>
|
|
create: XOR<MobileContractDetailsCreateWithoutContractInput, MobileContractDetailsUncheckedCreateWithoutContractInput>
|
|
where?: MobileContractDetailsWhereInput
|
|
}
|
|
|
|
export type MobileContractDetailsUpdateToOneWithWhereWithoutContractInput = {
|
|
where?: MobileContractDetailsWhereInput
|
|
data: XOR<MobileContractDetailsUpdateWithoutContractInput, MobileContractDetailsUncheckedUpdateWithoutContractInput>
|
|
}
|
|
|
|
export type MobileContractDetailsUpdateWithoutContractInput = {
|
|
requiresMultisim?: BoolFieldUpdateOperationsInput | boolean
|
|
dataVolume?: NullableFloatFieldUpdateOperationsInput | number | null
|
|
includedMinutes?: NullableIntFieldUpdateOperationsInput | number | null
|
|
includedSMS?: NullableIntFieldUpdateOperationsInput | number | null
|
|
deviceModel?: NullableStringFieldUpdateOperationsInput | string | null
|
|
deviceImei?: NullableStringFieldUpdateOperationsInput | string | null
|
|
phoneNumber?: NullableStringFieldUpdateOperationsInput | string | null
|
|
simCardNumber?: NullableStringFieldUpdateOperationsInput | string | null
|
|
simCards?: SimCardUpdateManyWithoutMobileDetailsNestedInput
|
|
}
|
|
|
|
export type MobileContractDetailsUncheckedUpdateWithoutContractInput = {
|
|
id?: IntFieldUpdateOperationsInput | number
|
|
requiresMultisim?: BoolFieldUpdateOperationsInput | boolean
|
|
dataVolume?: NullableFloatFieldUpdateOperationsInput | number | null
|
|
includedMinutes?: NullableIntFieldUpdateOperationsInput | number | null
|
|
includedSMS?: NullableIntFieldUpdateOperationsInput | number | null
|
|
deviceModel?: NullableStringFieldUpdateOperationsInput | string | null
|
|
deviceImei?: NullableStringFieldUpdateOperationsInput | string | null
|
|
phoneNumber?: NullableStringFieldUpdateOperationsInput | string | null
|
|
simCardNumber?: NullableStringFieldUpdateOperationsInput | string | null
|
|
simCards?: SimCardUncheckedUpdateManyWithoutMobileDetailsNestedInput
|
|
}
|
|
|
|
export type TvContractDetailsUpsertWithoutContractInput = {
|
|
update: XOR<TvContractDetailsUpdateWithoutContractInput, TvContractDetailsUncheckedUpdateWithoutContractInput>
|
|
create: XOR<TvContractDetailsCreateWithoutContractInput, TvContractDetailsUncheckedCreateWithoutContractInput>
|
|
where?: TvContractDetailsWhereInput
|
|
}
|
|
|
|
export type TvContractDetailsUpdateToOneWithWhereWithoutContractInput = {
|
|
where?: TvContractDetailsWhereInput
|
|
data: XOR<TvContractDetailsUpdateWithoutContractInput, TvContractDetailsUncheckedUpdateWithoutContractInput>
|
|
}
|
|
|
|
export type TvContractDetailsUpdateWithoutContractInput = {
|
|
receiverModel?: NullableStringFieldUpdateOperationsInput | string | null
|
|
smartcardNumber?: NullableStringFieldUpdateOperationsInput | string | null
|
|
package?: NullableStringFieldUpdateOperationsInput | string | null
|
|
}
|
|
|
|
export type TvContractDetailsUncheckedUpdateWithoutContractInput = {
|
|
id?: IntFieldUpdateOperationsInput | number
|
|
receiverModel?: NullableStringFieldUpdateOperationsInput | string | null
|
|
smartcardNumber?: NullableStringFieldUpdateOperationsInput | string | null
|
|
package?: NullableStringFieldUpdateOperationsInput | string | null
|
|
}
|
|
|
|
export type CarInsuranceDetailsUpsertWithoutContractInput = {
|
|
update: XOR<CarInsuranceDetailsUpdateWithoutContractInput, CarInsuranceDetailsUncheckedUpdateWithoutContractInput>
|
|
create: XOR<CarInsuranceDetailsCreateWithoutContractInput, CarInsuranceDetailsUncheckedCreateWithoutContractInput>
|
|
where?: CarInsuranceDetailsWhereInput
|
|
}
|
|
|
|
export type CarInsuranceDetailsUpdateToOneWithWhereWithoutContractInput = {
|
|
where?: CarInsuranceDetailsWhereInput
|
|
data: XOR<CarInsuranceDetailsUpdateWithoutContractInput, CarInsuranceDetailsUncheckedUpdateWithoutContractInput>
|
|
}
|
|
|
|
export type CarInsuranceDetailsUpdateWithoutContractInput = {
|
|
licensePlate?: NullableStringFieldUpdateOperationsInput | string | null
|
|
hsn?: NullableStringFieldUpdateOperationsInput | string | null
|
|
tsn?: NullableStringFieldUpdateOperationsInput | string | null
|
|
vin?: NullableStringFieldUpdateOperationsInput | string | null
|
|
vehicleType?: NullableStringFieldUpdateOperationsInput | string | null
|
|
firstRegistration?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
noClaimsClass?: NullableStringFieldUpdateOperationsInput | string | null
|
|
insuranceType?: EnumInsuranceTypeFieldUpdateOperationsInput | $Enums.InsuranceType
|
|
deductiblePartial?: NullableFloatFieldUpdateOperationsInput | number | null
|
|
deductibleFull?: NullableFloatFieldUpdateOperationsInput | number | null
|
|
policyNumber?: NullableStringFieldUpdateOperationsInput | string | null
|
|
previousInsurer?: NullableStringFieldUpdateOperationsInput | string | null
|
|
}
|
|
|
|
export type CarInsuranceDetailsUncheckedUpdateWithoutContractInput = {
|
|
id?: IntFieldUpdateOperationsInput | number
|
|
licensePlate?: NullableStringFieldUpdateOperationsInput | string | null
|
|
hsn?: NullableStringFieldUpdateOperationsInput | string | null
|
|
tsn?: NullableStringFieldUpdateOperationsInput | string | null
|
|
vin?: NullableStringFieldUpdateOperationsInput | string | null
|
|
vehicleType?: NullableStringFieldUpdateOperationsInput | string | null
|
|
firstRegistration?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
noClaimsClass?: NullableStringFieldUpdateOperationsInput | string | null
|
|
insuranceType?: EnumInsuranceTypeFieldUpdateOperationsInput | $Enums.InsuranceType
|
|
deductiblePartial?: NullableFloatFieldUpdateOperationsInput | number | null
|
|
deductibleFull?: NullableFloatFieldUpdateOperationsInput | number | null
|
|
policyNumber?: NullableStringFieldUpdateOperationsInput | string | null
|
|
previousInsurer?: NullableStringFieldUpdateOperationsInput | string | null
|
|
}
|
|
|
|
export type ContractTaskUpsertWithWhereUniqueWithoutContractInput = {
|
|
where: ContractTaskWhereUniqueInput
|
|
update: XOR<ContractTaskUpdateWithoutContractInput, ContractTaskUncheckedUpdateWithoutContractInput>
|
|
create: XOR<ContractTaskCreateWithoutContractInput, ContractTaskUncheckedCreateWithoutContractInput>
|
|
}
|
|
|
|
export type ContractTaskUpdateWithWhereUniqueWithoutContractInput = {
|
|
where: ContractTaskWhereUniqueInput
|
|
data: XOR<ContractTaskUpdateWithoutContractInput, ContractTaskUncheckedUpdateWithoutContractInput>
|
|
}
|
|
|
|
export type ContractTaskUpdateManyWithWhereWithoutContractInput = {
|
|
where: ContractTaskScalarWhereInput
|
|
data: XOR<ContractTaskUpdateManyMutationInput, ContractTaskUncheckedUpdateManyWithoutContractInput>
|
|
}
|
|
|
|
export type ContractTaskScalarWhereInput = {
|
|
AND?: ContractTaskScalarWhereInput | ContractTaskScalarWhereInput[]
|
|
OR?: ContractTaskScalarWhereInput[]
|
|
NOT?: ContractTaskScalarWhereInput | ContractTaskScalarWhereInput[]
|
|
id?: IntFilter<"ContractTask"> | number
|
|
contractId?: IntFilter<"ContractTask"> | number
|
|
title?: StringFilter<"ContractTask"> | string
|
|
description?: StringNullableFilter<"ContractTask"> | string | null
|
|
status?: EnumContractTaskStatusFilter<"ContractTask"> | $Enums.ContractTaskStatus
|
|
visibleInPortal?: BoolFilter<"ContractTask"> | boolean
|
|
createdBy?: StringNullableFilter<"ContractTask"> | string | null
|
|
completedAt?: DateTimeNullableFilter<"ContractTask"> | Date | string | null
|
|
createdAt?: DateTimeFilter<"ContractTask"> | Date | string
|
|
updatedAt?: DateTimeFilter<"ContractTask"> | Date | string
|
|
}
|
|
|
|
export type CachedEmailUpsertWithWhereUniqueWithoutContractInput = {
|
|
where: CachedEmailWhereUniqueInput
|
|
update: XOR<CachedEmailUpdateWithoutContractInput, CachedEmailUncheckedUpdateWithoutContractInput>
|
|
create: XOR<CachedEmailCreateWithoutContractInput, CachedEmailUncheckedCreateWithoutContractInput>
|
|
}
|
|
|
|
export type CachedEmailUpdateWithWhereUniqueWithoutContractInput = {
|
|
where: CachedEmailWhereUniqueInput
|
|
data: XOR<CachedEmailUpdateWithoutContractInput, CachedEmailUncheckedUpdateWithoutContractInput>
|
|
}
|
|
|
|
export type CachedEmailUpdateManyWithWhereWithoutContractInput = {
|
|
where: CachedEmailScalarWhereInput
|
|
data: XOR<CachedEmailUpdateManyMutationInput, CachedEmailUncheckedUpdateManyWithoutContractInput>
|
|
}
|
|
|
|
export type ContractCreateWithoutTasksInput = {
|
|
contractNumber: string
|
|
type: $Enums.ContractType
|
|
status?: $Enums.ContractStatus
|
|
providerName?: string | null
|
|
tariffName?: string | null
|
|
customerNumberAtProvider?: string | null
|
|
priceFirst12Months?: string | null
|
|
priceFrom13Months?: string | null
|
|
priceAfter24Months?: string | null
|
|
startDate?: Date | string | null
|
|
endDate?: Date | string | null
|
|
commission?: number | null
|
|
cancellationLetterPath?: string | null
|
|
cancellationConfirmationPath?: string | null
|
|
cancellationLetterOptionsPath?: string | null
|
|
cancellationConfirmationOptionsPath?: string | null
|
|
cancellationConfirmationDate?: Date | string | null
|
|
cancellationConfirmationOptionsDate?: Date | string | null
|
|
wasSpecialCancellation?: boolean
|
|
portalUsername?: string | null
|
|
portalPasswordEncrypted?: string | null
|
|
notes?: string | null
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
customer: CustomerCreateNestedOneWithoutContractsInput
|
|
contractCategory?: ContractCategoryCreateNestedOneWithoutContractsInput
|
|
address?: AddressCreateNestedOneWithoutContractsAsDeliveryInput
|
|
billingAddress?: AddressCreateNestedOneWithoutContractsAsBillingInput
|
|
bankCard?: BankCardCreateNestedOneWithoutContractsInput
|
|
identityDocument?: IdentityDocumentCreateNestedOneWithoutContractsInput
|
|
salesPlatform?: SalesPlatformCreateNestedOneWithoutContractsInput
|
|
cancellationPeriod?: CancellationPeriodCreateNestedOneWithoutContractsInput
|
|
contractDuration?: ContractDurationCreateNestedOneWithoutContractsInput
|
|
previousContract?: ContractCreateNestedOneWithoutFollowUpContractInput
|
|
followUpContract?: ContractCreateNestedOneWithoutPreviousContractInput
|
|
provider?: ProviderCreateNestedOneWithoutContractsInput
|
|
tariff?: TariffCreateNestedOneWithoutContractsInput
|
|
stressfreiEmail?: StressfreiEmailCreateNestedOneWithoutContractsInput
|
|
energyDetails?: EnergyContractDetailsCreateNestedOneWithoutContractInput
|
|
internetDetails?: InternetContractDetailsCreateNestedOneWithoutContractInput
|
|
mobileDetails?: MobileContractDetailsCreateNestedOneWithoutContractInput
|
|
tvDetails?: TvContractDetailsCreateNestedOneWithoutContractInput
|
|
carInsuranceDetails?: CarInsuranceDetailsCreateNestedOneWithoutContractInput
|
|
assignedEmails?: CachedEmailCreateNestedManyWithoutContractInput
|
|
}
|
|
|
|
export type ContractUncheckedCreateWithoutTasksInput = {
|
|
id?: number
|
|
contractNumber: string
|
|
customerId: number
|
|
type: $Enums.ContractType
|
|
status?: $Enums.ContractStatus
|
|
contractCategoryId?: number | null
|
|
addressId?: number | null
|
|
billingAddressId?: number | null
|
|
bankCardId?: number | null
|
|
identityDocumentId?: number | null
|
|
salesPlatformId?: number | null
|
|
cancellationPeriodId?: number | null
|
|
contractDurationId?: number | null
|
|
previousContractId?: number | null
|
|
providerId?: number | null
|
|
tariffId?: number | null
|
|
providerName?: string | null
|
|
tariffName?: string | null
|
|
customerNumberAtProvider?: string | null
|
|
priceFirst12Months?: string | null
|
|
priceFrom13Months?: string | null
|
|
priceAfter24Months?: string | null
|
|
startDate?: Date | string | null
|
|
endDate?: Date | string | null
|
|
commission?: number | null
|
|
cancellationLetterPath?: string | null
|
|
cancellationConfirmationPath?: string | null
|
|
cancellationLetterOptionsPath?: string | null
|
|
cancellationConfirmationOptionsPath?: string | null
|
|
cancellationConfirmationDate?: Date | string | null
|
|
cancellationConfirmationOptionsDate?: Date | string | null
|
|
wasSpecialCancellation?: boolean
|
|
portalUsername?: string | null
|
|
portalPasswordEncrypted?: string | null
|
|
stressfreiEmailId?: number | null
|
|
notes?: string | null
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
followUpContract?: ContractUncheckedCreateNestedOneWithoutPreviousContractInput
|
|
energyDetails?: EnergyContractDetailsUncheckedCreateNestedOneWithoutContractInput
|
|
internetDetails?: InternetContractDetailsUncheckedCreateNestedOneWithoutContractInput
|
|
mobileDetails?: MobileContractDetailsUncheckedCreateNestedOneWithoutContractInput
|
|
tvDetails?: TvContractDetailsUncheckedCreateNestedOneWithoutContractInput
|
|
carInsuranceDetails?: CarInsuranceDetailsUncheckedCreateNestedOneWithoutContractInput
|
|
assignedEmails?: CachedEmailUncheckedCreateNestedManyWithoutContractInput
|
|
}
|
|
|
|
export type ContractCreateOrConnectWithoutTasksInput = {
|
|
where: ContractWhereUniqueInput
|
|
create: XOR<ContractCreateWithoutTasksInput, ContractUncheckedCreateWithoutTasksInput>
|
|
}
|
|
|
|
export type ContractTaskSubtaskCreateWithoutTaskInput = {
|
|
title: string
|
|
status?: $Enums.ContractTaskStatus
|
|
createdBy?: string | null
|
|
completedAt?: Date | string | null
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
}
|
|
|
|
export type ContractTaskSubtaskUncheckedCreateWithoutTaskInput = {
|
|
id?: number
|
|
title: string
|
|
status?: $Enums.ContractTaskStatus
|
|
createdBy?: string | null
|
|
completedAt?: Date | string | null
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
}
|
|
|
|
export type ContractTaskSubtaskCreateOrConnectWithoutTaskInput = {
|
|
where: ContractTaskSubtaskWhereUniqueInput
|
|
create: XOR<ContractTaskSubtaskCreateWithoutTaskInput, ContractTaskSubtaskUncheckedCreateWithoutTaskInput>
|
|
}
|
|
|
|
export type ContractTaskSubtaskCreateManyTaskInputEnvelope = {
|
|
data: ContractTaskSubtaskCreateManyTaskInput | ContractTaskSubtaskCreateManyTaskInput[]
|
|
skipDuplicates?: boolean
|
|
}
|
|
|
|
export type ContractUpsertWithoutTasksInput = {
|
|
update: XOR<ContractUpdateWithoutTasksInput, ContractUncheckedUpdateWithoutTasksInput>
|
|
create: XOR<ContractCreateWithoutTasksInput, ContractUncheckedCreateWithoutTasksInput>
|
|
where?: ContractWhereInput
|
|
}
|
|
|
|
export type ContractUpdateToOneWithWhereWithoutTasksInput = {
|
|
where?: ContractWhereInput
|
|
data: XOR<ContractUpdateWithoutTasksInput, ContractUncheckedUpdateWithoutTasksInput>
|
|
}
|
|
|
|
export type ContractUpdateWithoutTasksInput = {
|
|
contractNumber?: StringFieldUpdateOperationsInput | string
|
|
type?: EnumContractTypeFieldUpdateOperationsInput | $Enums.ContractType
|
|
status?: EnumContractStatusFieldUpdateOperationsInput | $Enums.ContractStatus
|
|
providerName?: NullableStringFieldUpdateOperationsInput | string | null
|
|
tariffName?: NullableStringFieldUpdateOperationsInput | string | null
|
|
customerNumberAtProvider?: NullableStringFieldUpdateOperationsInput | string | null
|
|
priceFirst12Months?: NullableStringFieldUpdateOperationsInput | string | null
|
|
priceFrom13Months?: NullableStringFieldUpdateOperationsInput | string | null
|
|
priceAfter24Months?: NullableStringFieldUpdateOperationsInput | string | null
|
|
startDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
endDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
commission?: NullableFloatFieldUpdateOperationsInput | number | null
|
|
cancellationLetterPath?: NullableStringFieldUpdateOperationsInput | string | null
|
|
cancellationConfirmationPath?: NullableStringFieldUpdateOperationsInput | string | null
|
|
cancellationLetterOptionsPath?: NullableStringFieldUpdateOperationsInput | string | null
|
|
cancellationConfirmationOptionsPath?: NullableStringFieldUpdateOperationsInput | string | null
|
|
cancellationConfirmationDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
cancellationConfirmationOptionsDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
wasSpecialCancellation?: BoolFieldUpdateOperationsInput | boolean
|
|
portalUsername?: NullableStringFieldUpdateOperationsInput | string | null
|
|
portalPasswordEncrypted?: NullableStringFieldUpdateOperationsInput | string | null
|
|
notes?: NullableStringFieldUpdateOperationsInput | string | null
|
|
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
customer?: CustomerUpdateOneRequiredWithoutContractsNestedInput
|
|
contractCategory?: ContractCategoryUpdateOneWithoutContractsNestedInput
|
|
address?: AddressUpdateOneWithoutContractsAsDeliveryNestedInput
|
|
billingAddress?: AddressUpdateOneWithoutContractsAsBillingNestedInput
|
|
bankCard?: BankCardUpdateOneWithoutContractsNestedInput
|
|
identityDocument?: IdentityDocumentUpdateOneWithoutContractsNestedInput
|
|
salesPlatform?: SalesPlatformUpdateOneWithoutContractsNestedInput
|
|
cancellationPeriod?: CancellationPeriodUpdateOneWithoutContractsNestedInput
|
|
contractDuration?: ContractDurationUpdateOneWithoutContractsNestedInput
|
|
previousContract?: ContractUpdateOneWithoutFollowUpContractNestedInput
|
|
followUpContract?: ContractUpdateOneWithoutPreviousContractNestedInput
|
|
provider?: ProviderUpdateOneWithoutContractsNestedInput
|
|
tariff?: TariffUpdateOneWithoutContractsNestedInput
|
|
stressfreiEmail?: StressfreiEmailUpdateOneWithoutContractsNestedInput
|
|
energyDetails?: EnergyContractDetailsUpdateOneWithoutContractNestedInput
|
|
internetDetails?: InternetContractDetailsUpdateOneWithoutContractNestedInput
|
|
mobileDetails?: MobileContractDetailsUpdateOneWithoutContractNestedInput
|
|
tvDetails?: TvContractDetailsUpdateOneWithoutContractNestedInput
|
|
carInsuranceDetails?: CarInsuranceDetailsUpdateOneWithoutContractNestedInput
|
|
assignedEmails?: CachedEmailUpdateManyWithoutContractNestedInput
|
|
}
|
|
|
|
export type ContractUncheckedUpdateWithoutTasksInput = {
|
|
id?: IntFieldUpdateOperationsInput | number
|
|
contractNumber?: StringFieldUpdateOperationsInput | string
|
|
customerId?: IntFieldUpdateOperationsInput | number
|
|
type?: EnumContractTypeFieldUpdateOperationsInput | $Enums.ContractType
|
|
status?: EnumContractStatusFieldUpdateOperationsInput | $Enums.ContractStatus
|
|
contractCategoryId?: NullableIntFieldUpdateOperationsInput | number | null
|
|
addressId?: NullableIntFieldUpdateOperationsInput | number | null
|
|
billingAddressId?: NullableIntFieldUpdateOperationsInput | number | null
|
|
bankCardId?: NullableIntFieldUpdateOperationsInput | number | null
|
|
identityDocumentId?: NullableIntFieldUpdateOperationsInput | number | null
|
|
salesPlatformId?: NullableIntFieldUpdateOperationsInput | number | null
|
|
cancellationPeriodId?: NullableIntFieldUpdateOperationsInput | number | null
|
|
contractDurationId?: NullableIntFieldUpdateOperationsInput | number | null
|
|
previousContractId?: NullableIntFieldUpdateOperationsInput | number | null
|
|
providerId?: NullableIntFieldUpdateOperationsInput | number | null
|
|
tariffId?: NullableIntFieldUpdateOperationsInput | number | null
|
|
providerName?: NullableStringFieldUpdateOperationsInput | string | null
|
|
tariffName?: NullableStringFieldUpdateOperationsInput | string | null
|
|
customerNumberAtProvider?: NullableStringFieldUpdateOperationsInput | string | null
|
|
priceFirst12Months?: NullableStringFieldUpdateOperationsInput | string | null
|
|
priceFrom13Months?: NullableStringFieldUpdateOperationsInput | string | null
|
|
priceAfter24Months?: NullableStringFieldUpdateOperationsInput | string | null
|
|
startDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
endDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
commission?: NullableFloatFieldUpdateOperationsInput | number | null
|
|
cancellationLetterPath?: NullableStringFieldUpdateOperationsInput | string | null
|
|
cancellationConfirmationPath?: NullableStringFieldUpdateOperationsInput | string | null
|
|
cancellationLetterOptionsPath?: NullableStringFieldUpdateOperationsInput | string | null
|
|
cancellationConfirmationOptionsPath?: NullableStringFieldUpdateOperationsInput | string | null
|
|
cancellationConfirmationDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
cancellationConfirmationOptionsDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
wasSpecialCancellation?: BoolFieldUpdateOperationsInput | boolean
|
|
portalUsername?: NullableStringFieldUpdateOperationsInput | string | null
|
|
portalPasswordEncrypted?: NullableStringFieldUpdateOperationsInput | string | null
|
|
stressfreiEmailId?: NullableIntFieldUpdateOperationsInput | number | null
|
|
notes?: NullableStringFieldUpdateOperationsInput | string | null
|
|
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
followUpContract?: ContractUncheckedUpdateOneWithoutPreviousContractNestedInput
|
|
energyDetails?: EnergyContractDetailsUncheckedUpdateOneWithoutContractNestedInput
|
|
internetDetails?: InternetContractDetailsUncheckedUpdateOneWithoutContractNestedInput
|
|
mobileDetails?: MobileContractDetailsUncheckedUpdateOneWithoutContractNestedInput
|
|
tvDetails?: TvContractDetailsUncheckedUpdateOneWithoutContractNestedInput
|
|
carInsuranceDetails?: CarInsuranceDetailsUncheckedUpdateOneWithoutContractNestedInput
|
|
assignedEmails?: CachedEmailUncheckedUpdateManyWithoutContractNestedInput
|
|
}
|
|
|
|
export type ContractTaskSubtaskUpsertWithWhereUniqueWithoutTaskInput = {
|
|
where: ContractTaskSubtaskWhereUniqueInput
|
|
update: XOR<ContractTaskSubtaskUpdateWithoutTaskInput, ContractTaskSubtaskUncheckedUpdateWithoutTaskInput>
|
|
create: XOR<ContractTaskSubtaskCreateWithoutTaskInput, ContractTaskSubtaskUncheckedCreateWithoutTaskInput>
|
|
}
|
|
|
|
export type ContractTaskSubtaskUpdateWithWhereUniqueWithoutTaskInput = {
|
|
where: ContractTaskSubtaskWhereUniqueInput
|
|
data: XOR<ContractTaskSubtaskUpdateWithoutTaskInput, ContractTaskSubtaskUncheckedUpdateWithoutTaskInput>
|
|
}
|
|
|
|
export type ContractTaskSubtaskUpdateManyWithWhereWithoutTaskInput = {
|
|
where: ContractTaskSubtaskScalarWhereInput
|
|
data: XOR<ContractTaskSubtaskUpdateManyMutationInput, ContractTaskSubtaskUncheckedUpdateManyWithoutTaskInput>
|
|
}
|
|
|
|
export type ContractTaskSubtaskScalarWhereInput = {
|
|
AND?: ContractTaskSubtaskScalarWhereInput | ContractTaskSubtaskScalarWhereInput[]
|
|
OR?: ContractTaskSubtaskScalarWhereInput[]
|
|
NOT?: ContractTaskSubtaskScalarWhereInput | ContractTaskSubtaskScalarWhereInput[]
|
|
id?: IntFilter<"ContractTaskSubtask"> | number
|
|
taskId?: IntFilter<"ContractTaskSubtask"> | number
|
|
title?: StringFilter<"ContractTaskSubtask"> | string
|
|
status?: EnumContractTaskStatusFilter<"ContractTaskSubtask"> | $Enums.ContractTaskStatus
|
|
createdBy?: StringNullableFilter<"ContractTaskSubtask"> | string | null
|
|
completedAt?: DateTimeNullableFilter<"ContractTaskSubtask"> | Date | string | null
|
|
createdAt?: DateTimeFilter<"ContractTaskSubtask"> | Date | string
|
|
updatedAt?: DateTimeFilter<"ContractTaskSubtask"> | Date | string
|
|
}
|
|
|
|
export type ContractTaskCreateWithoutSubtasksInput = {
|
|
title: string
|
|
description?: string | null
|
|
status?: $Enums.ContractTaskStatus
|
|
visibleInPortal?: boolean
|
|
createdBy?: string | null
|
|
completedAt?: Date | string | null
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
contract: ContractCreateNestedOneWithoutTasksInput
|
|
}
|
|
|
|
export type ContractTaskUncheckedCreateWithoutSubtasksInput = {
|
|
id?: number
|
|
contractId: number
|
|
title: string
|
|
description?: string | null
|
|
status?: $Enums.ContractTaskStatus
|
|
visibleInPortal?: boolean
|
|
createdBy?: string | null
|
|
completedAt?: Date | string | null
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
}
|
|
|
|
export type ContractTaskCreateOrConnectWithoutSubtasksInput = {
|
|
where: ContractTaskWhereUniqueInput
|
|
create: XOR<ContractTaskCreateWithoutSubtasksInput, ContractTaskUncheckedCreateWithoutSubtasksInput>
|
|
}
|
|
|
|
export type ContractTaskUpsertWithoutSubtasksInput = {
|
|
update: XOR<ContractTaskUpdateWithoutSubtasksInput, ContractTaskUncheckedUpdateWithoutSubtasksInput>
|
|
create: XOR<ContractTaskCreateWithoutSubtasksInput, ContractTaskUncheckedCreateWithoutSubtasksInput>
|
|
where?: ContractTaskWhereInput
|
|
}
|
|
|
|
export type ContractTaskUpdateToOneWithWhereWithoutSubtasksInput = {
|
|
where?: ContractTaskWhereInput
|
|
data: XOR<ContractTaskUpdateWithoutSubtasksInput, ContractTaskUncheckedUpdateWithoutSubtasksInput>
|
|
}
|
|
|
|
export type ContractTaskUpdateWithoutSubtasksInput = {
|
|
title?: StringFieldUpdateOperationsInput | string
|
|
description?: NullableStringFieldUpdateOperationsInput | string | null
|
|
status?: EnumContractTaskStatusFieldUpdateOperationsInput | $Enums.ContractTaskStatus
|
|
visibleInPortal?: BoolFieldUpdateOperationsInput | boolean
|
|
createdBy?: NullableStringFieldUpdateOperationsInput | string | null
|
|
completedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
contract?: ContractUpdateOneRequiredWithoutTasksNestedInput
|
|
}
|
|
|
|
export type ContractTaskUncheckedUpdateWithoutSubtasksInput = {
|
|
id?: IntFieldUpdateOperationsInput | number
|
|
contractId?: IntFieldUpdateOperationsInput | number
|
|
title?: StringFieldUpdateOperationsInput | string
|
|
description?: NullableStringFieldUpdateOperationsInput | string | null
|
|
status?: EnumContractTaskStatusFieldUpdateOperationsInput | $Enums.ContractTaskStatus
|
|
visibleInPortal?: BoolFieldUpdateOperationsInput | boolean
|
|
createdBy?: NullableStringFieldUpdateOperationsInput | string | null
|
|
completedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
}
|
|
|
|
export type ContractCreateWithoutEnergyDetailsInput = {
|
|
contractNumber: string
|
|
type: $Enums.ContractType
|
|
status?: $Enums.ContractStatus
|
|
providerName?: string | null
|
|
tariffName?: string | null
|
|
customerNumberAtProvider?: string | null
|
|
priceFirst12Months?: string | null
|
|
priceFrom13Months?: string | null
|
|
priceAfter24Months?: string | null
|
|
startDate?: Date | string | null
|
|
endDate?: Date | string | null
|
|
commission?: number | null
|
|
cancellationLetterPath?: string | null
|
|
cancellationConfirmationPath?: string | null
|
|
cancellationLetterOptionsPath?: string | null
|
|
cancellationConfirmationOptionsPath?: string | null
|
|
cancellationConfirmationDate?: Date | string | null
|
|
cancellationConfirmationOptionsDate?: Date | string | null
|
|
wasSpecialCancellation?: boolean
|
|
portalUsername?: string | null
|
|
portalPasswordEncrypted?: string | null
|
|
notes?: string | null
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
customer: CustomerCreateNestedOneWithoutContractsInput
|
|
contractCategory?: ContractCategoryCreateNestedOneWithoutContractsInput
|
|
address?: AddressCreateNestedOneWithoutContractsAsDeliveryInput
|
|
billingAddress?: AddressCreateNestedOneWithoutContractsAsBillingInput
|
|
bankCard?: BankCardCreateNestedOneWithoutContractsInput
|
|
identityDocument?: IdentityDocumentCreateNestedOneWithoutContractsInput
|
|
salesPlatform?: SalesPlatformCreateNestedOneWithoutContractsInput
|
|
cancellationPeriod?: CancellationPeriodCreateNestedOneWithoutContractsInput
|
|
contractDuration?: ContractDurationCreateNestedOneWithoutContractsInput
|
|
previousContract?: ContractCreateNestedOneWithoutFollowUpContractInput
|
|
followUpContract?: ContractCreateNestedOneWithoutPreviousContractInput
|
|
provider?: ProviderCreateNestedOneWithoutContractsInput
|
|
tariff?: TariffCreateNestedOneWithoutContractsInput
|
|
stressfreiEmail?: StressfreiEmailCreateNestedOneWithoutContractsInput
|
|
internetDetails?: InternetContractDetailsCreateNestedOneWithoutContractInput
|
|
mobileDetails?: MobileContractDetailsCreateNestedOneWithoutContractInput
|
|
tvDetails?: TvContractDetailsCreateNestedOneWithoutContractInput
|
|
carInsuranceDetails?: CarInsuranceDetailsCreateNestedOneWithoutContractInput
|
|
tasks?: ContractTaskCreateNestedManyWithoutContractInput
|
|
assignedEmails?: CachedEmailCreateNestedManyWithoutContractInput
|
|
}
|
|
|
|
export type ContractUncheckedCreateWithoutEnergyDetailsInput = {
|
|
id?: number
|
|
contractNumber: string
|
|
customerId: number
|
|
type: $Enums.ContractType
|
|
status?: $Enums.ContractStatus
|
|
contractCategoryId?: number | null
|
|
addressId?: number | null
|
|
billingAddressId?: number | null
|
|
bankCardId?: number | null
|
|
identityDocumentId?: number | null
|
|
salesPlatformId?: number | null
|
|
cancellationPeriodId?: number | null
|
|
contractDurationId?: number | null
|
|
previousContractId?: number | null
|
|
providerId?: number | null
|
|
tariffId?: number | null
|
|
providerName?: string | null
|
|
tariffName?: string | null
|
|
customerNumberAtProvider?: string | null
|
|
priceFirst12Months?: string | null
|
|
priceFrom13Months?: string | null
|
|
priceAfter24Months?: string | null
|
|
startDate?: Date | string | null
|
|
endDate?: Date | string | null
|
|
commission?: number | null
|
|
cancellationLetterPath?: string | null
|
|
cancellationConfirmationPath?: string | null
|
|
cancellationLetterOptionsPath?: string | null
|
|
cancellationConfirmationOptionsPath?: string | null
|
|
cancellationConfirmationDate?: Date | string | null
|
|
cancellationConfirmationOptionsDate?: Date | string | null
|
|
wasSpecialCancellation?: boolean
|
|
portalUsername?: string | null
|
|
portalPasswordEncrypted?: string | null
|
|
stressfreiEmailId?: number | null
|
|
notes?: string | null
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
followUpContract?: ContractUncheckedCreateNestedOneWithoutPreviousContractInput
|
|
internetDetails?: InternetContractDetailsUncheckedCreateNestedOneWithoutContractInput
|
|
mobileDetails?: MobileContractDetailsUncheckedCreateNestedOneWithoutContractInput
|
|
tvDetails?: TvContractDetailsUncheckedCreateNestedOneWithoutContractInput
|
|
carInsuranceDetails?: CarInsuranceDetailsUncheckedCreateNestedOneWithoutContractInput
|
|
tasks?: ContractTaskUncheckedCreateNestedManyWithoutContractInput
|
|
assignedEmails?: CachedEmailUncheckedCreateNestedManyWithoutContractInput
|
|
}
|
|
|
|
export type ContractCreateOrConnectWithoutEnergyDetailsInput = {
|
|
where: ContractWhereUniqueInput
|
|
create: XOR<ContractCreateWithoutEnergyDetailsInput, ContractUncheckedCreateWithoutEnergyDetailsInput>
|
|
}
|
|
|
|
export type MeterCreateWithoutEnergyDetailsInput = {
|
|
meterNumber: string
|
|
type: $Enums.MeterType
|
|
location?: string | null
|
|
isActive?: boolean
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
customer: CustomerCreateNestedOneWithoutMetersInput
|
|
readings?: MeterReadingCreateNestedManyWithoutMeterInput
|
|
}
|
|
|
|
export type MeterUncheckedCreateWithoutEnergyDetailsInput = {
|
|
id?: number
|
|
customerId: number
|
|
meterNumber: string
|
|
type: $Enums.MeterType
|
|
location?: string | null
|
|
isActive?: boolean
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
readings?: MeterReadingUncheckedCreateNestedManyWithoutMeterInput
|
|
}
|
|
|
|
export type MeterCreateOrConnectWithoutEnergyDetailsInput = {
|
|
where: MeterWhereUniqueInput
|
|
create: XOR<MeterCreateWithoutEnergyDetailsInput, MeterUncheckedCreateWithoutEnergyDetailsInput>
|
|
}
|
|
|
|
export type ContractUpsertWithoutEnergyDetailsInput = {
|
|
update: XOR<ContractUpdateWithoutEnergyDetailsInput, ContractUncheckedUpdateWithoutEnergyDetailsInput>
|
|
create: XOR<ContractCreateWithoutEnergyDetailsInput, ContractUncheckedCreateWithoutEnergyDetailsInput>
|
|
where?: ContractWhereInput
|
|
}
|
|
|
|
export type ContractUpdateToOneWithWhereWithoutEnergyDetailsInput = {
|
|
where?: ContractWhereInput
|
|
data: XOR<ContractUpdateWithoutEnergyDetailsInput, ContractUncheckedUpdateWithoutEnergyDetailsInput>
|
|
}
|
|
|
|
export type ContractUpdateWithoutEnergyDetailsInput = {
|
|
contractNumber?: StringFieldUpdateOperationsInput | string
|
|
type?: EnumContractTypeFieldUpdateOperationsInput | $Enums.ContractType
|
|
status?: EnumContractStatusFieldUpdateOperationsInput | $Enums.ContractStatus
|
|
providerName?: NullableStringFieldUpdateOperationsInput | string | null
|
|
tariffName?: NullableStringFieldUpdateOperationsInput | string | null
|
|
customerNumberAtProvider?: NullableStringFieldUpdateOperationsInput | string | null
|
|
priceFirst12Months?: NullableStringFieldUpdateOperationsInput | string | null
|
|
priceFrom13Months?: NullableStringFieldUpdateOperationsInput | string | null
|
|
priceAfter24Months?: NullableStringFieldUpdateOperationsInput | string | null
|
|
startDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
endDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
commission?: NullableFloatFieldUpdateOperationsInput | number | null
|
|
cancellationLetterPath?: NullableStringFieldUpdateOperationsInput | string | null
|
|
cancellationConfirmationPath?: NullableStringFieldUpdateOperationsInput | string | null
|
|
cancellationLetterOptionsPath?: NullableStringFieldUpdateOperationsInput | string | null
|
|
cancellationConfirmationOptionsPath?: NullableStringFieldUpdateOperationsInput | string | null
|
|
cancellationConfirmationDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
cancellationConfirmationOptionsDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
wasSpecialCancellation?: BoolFieldUpdateOperationsInput | boolean
|
|
portalUsername?: NullableStringFieldUpdateOperationsInput | string | null
|
|
portalPasswordEncrypted?: NullableStringFieldUpdateOperationsInput | string | null
|
|
notes?: NullableStringFieldUpdateOperationsInput | string | null
|
|
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
customer?: CustomerUpdateOneRequiredWithoutContractsNestedInput
|
|
contractCategory?: ContractCategoryUpdateOneWithoutContractsNestedInput
|
|
address?: AddressUpdateOneWithoutContractsAsDeliveryNestedInput
|
|
billingAddress?: AddressUpdateOneWithoutContractsAsBillingNestedInput
|
|
bankCard?: BankCardUpdateOneWithoutContractsNestedInput
|
|
identityDocument?: IdentityDocumentUpdateOneWithoutContractsNestedInput
|
|
salesPlatform?: SalesPlatformUpdateOneWithoutContractsNestedInput
|
|
cancellationPeriod?: CancellationPeriodUpdateOneWithoutContractsNestedInput
|
|
contractDuration?: ContractDurationUpdateOneWithoutContractsNestedInput
|
|
previousContract?: ContractUpdateOneWithoutFollowUpContractNestedInput
|
|
followUpContract?: ContractUpdateOneWithoutPreviousContractNestedInput
|
|
provider?: ProviderUpdateOneWithoutContractsNestedInput
|
|
tariff?: TariffUpdateOneWithoutContractsNestedInput
|
|
stressfreiEmail?: StressfreiEmailUpdateOneWithoutContractsNestedInput
|
|
internetDetails?: InternetContractDetailsUpdateOneWithoutContractNestedInput
|
|
mobileDetails?: MobileContractDetailsUpdateOneWithoutContractNestedInput
|
|
tvDetails?: TvContractDetailsUpdateOneWithoutContractNestedInput
|
|
carInsuranceDetails?: CarInsuranceDetailsUpdateOneWithoutContractNestedInput
|
|
tasks?: ContractTaskUpdateManyWithoutContractNestedInput
|
|
assignedEmails?: CachedEmailUpdateManyWithoutContractNestedInput
|
|
}
|
|
|
|
export type ContractUncheckedUpdateWithoutEnergyDetailsInput = {
|
|
id?: IntFieldUpdateOperationsInput | number
|
|
contractNumber?: StringFieldUpdateOperationsInput | string
|
|
customerId?: IntFieldUpdateOperationsInput | number
|
|
type?: EnumContractTypeFieldUpdateOperationsInput | $Enums.ContractType
|
|
status?: EnumContractStatusFieldUpdateOperationsInput | $Enums.ContractStatus
|
|
contractCategoryId?: NullableIntFieldUpdateOperationsInput | number | null
|
|
addressId?: NullableIntFieldUpdateOperationsInput | number | null
|
|
billingAddressId?: NullableIntFieldUpdateOperationsInput | number | null
|
|
bankCardId?: NullableIntFieldUpdateOperationsInput | number | null
|
|
identityDocumentId?: NullableIntFieldUpdateOperationsInput | number | null
|
|
salesPlatformId?: NullableIntFieldUpdateOperationsInput | number | null
|
|
cancellationPeriodId?: NullableIntFieldUpdateOperationsInput | number | null
|
|
contractDurationId?: NullableIntFieldUpdateOperationsInput | number | null
|
|
previousContractId?: NullableIntFieldUpdateOperationsInput | number | null
|
|
providerId?: NullableIntFieldUpdateOperationsInput | number | null
|
|
tariffId?: NullableIntFieldUpdateOperationsInput | number | null
|
|
providerName?: NullableStringFieldUpdateOperationsInput | string | null
|
|
tariffName?: NullableStringFieldUpdateOperationsInput | string | null
|
|
customerNumberAtProvider?: NullableStringFieldUpdateOperationsInput | string | null
|
|
priceFirst12Months?: NullableStringFieldUpdateOperationsInput | string | null
|
|
priceFrom13Months?: NullableStringFieldUpdateOperationsInput | string | null
|
|
priceAfter24Months?: NullableStringFieldUpdateOperationsInput | string | null
|
|
startDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
endDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
commission?: NullableFloatFieldUpdateOperationsInput | number | null
|
|
cancellationLetterPath?: NullableStringFieldUpdateOperationsInput | string | null
|
|
cancellationConfirmationPath?: NullableStringFieldUpdateOperationsInput | string | null
|
|
cancellationLetterOptionsPath?: NullableStringFieldUpdateOperationsInput | string | null
|
|
cancellationConfirmationOptionsPath?: NullableStringFieldUpdateOperationsInput | string | null
|
|
cancellationConfirmationDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
cancellationConfirmationOptionsDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
wasSpecialCancellation?: BoolFieldUpdateOperationsInput | boolean
|
|
portalUsername?: NullableStringFieldUpdateOperationsInput | string | null
|
|
portalPasswordEncrypted?: NullableStringFieldUpdateOperationsInput | string | null
|
|
stressfreiEmailId?: NullableIntFieldUpdateOperationsInput | number | null
|
|
notes?: NullableStringFieldUpdateOperationsInput | string | null
|
|
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
followUpContract?: ContractUncheckedUpdateOneWithoutPreviousContractNestedInput
|
|
internetDetails?: InternetContractDetailsUncheckedUpdateOneWithoutContractNestedInput
|
|
mobileDetails?: MobileContractDetailsUncheckedUpdateOneWithoutContractNestedInput
|
|
tvDetails?: TvContractDetailsUncheckedUpdateOneWithoutContractNestedInput
|
|
carInsuranceDetails?: CarInsuranceDetailsUncheckedUpdateOneWithoutContractNestedInput
|
|
tasks?: ContractTaskUncheckedUpdateManyWithoutContractNestedInput
|
|
assignedEmails?: CachedEmailUncheckedUpdateManyWithoutContractNestedInput
|
|
}
|
|
|
|
export type MeterUpsertWithoutEnergyDetailsInput = {
|
|
update: XOR<MeterUpdateWithoutEnergyDetailsInput, MeterUncheckedUpdateWithoutEnergyDetailsInput>
|
|
create: XOR<MeterCreateWithoutEnergyDetailsInput, MeterUncheckedCreateWithoutEnergyDetailsInput>
|
|
where?: MeterWhereInput
|
|
}
|
|
|
|
export type MeterUpdateToOneWithWhereWithoutEnergyDetailsInput = {
|
|
where?: MeterWhereInput
|
|
data: XOR<MeterUpdateWithoutEnergyDetailsInput, MeterUncheckedUpdateWithoutEnergyDetailsInput>
|
|
}
|
|
|
|
export type MeterUpdateWithoutEnergyDetailsInput = {
|
|
meterNumber?: StringFieldUpdateOperationsInput | string
|
|
type?: EnumMeterTypeFieldUpdateOperationsInput | $Enums.MeterType
|
|
location?: NullableStringFieldUpdateOperationsInput | string | null
|
|
isActive?: BoolFieldUpdateOperationsInput | boolean
|
|
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
customer?: CustomerUpdateOneRequiredWithoutMetersNestedInput
|
|
readings?: MeterReadingUpdateManyWithoutMeterNestedInput
|
|
}
|
|
|
|
export type MeterUncheckedUpdateWithoutEnergyDetailsInput = {
|
|
id?: IntFieldUpdateOperationsInput | number
|
|
customerId?: IntFieldUpdateOperationsInput | number
|
|
meterNumber?: StringFieldUpdateOperationsInput | string
|
|
type?: EnumMeterTypeFieldUpdateOperationsInput | $Enums.MeterType
|
|
location?: NullableStringFieldUpdateOperationsInput | string | null
|
|
isActive?: BoolFieldUpdateOperationsInput | boolean
|
|
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
readings?: MeterReadingUncheckedUpdateManyWithoutMeterNestedInput
|
|
}
|
|
|
|
export type ContractCreateWithoutInternetDetailsInput = {
|
|
contractNumber: string
|
|
type: $Enums.ContractType
|
|
status?: $Enums.ContractStatus
|
|
providerName?: string | null
|
|
tariffName?: string | null
|
|
customerNumberAtProvider?: string | null
|
|
priceFirst12Months?: string | null
|
|
priceFrom13Months?: string | null
|
|
priceAfter24Months?: string | null
|
|
startDate?: Date | string | null
|
|
endDate?: Date | string | null
|
|
commission?: number | null
|
|
cancellationLetterPath?: string | null
|
|
cancellationConfirmationPath?: string | null
|
|
cancellationLetterOptionsPath?: string | null
|
|
cancellationConfirmationOptionsPath?: string | null
|
|
cancellationConfirmationDate?: Date | string | null
|
|
cancellationConfirmationOptionsDate?: Date | string | null
|
|
wasSpecialCancellation?: boolean
|
|
portalUsername?: string | null
|
|
portalPasswordEncrypted?: string | null
|
|
notes?: string | null
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
customer: CustomerCreateNestedOneWithoutContractsInput
|
|
contractCategory?: ContractCategoryCreateNestedOneWithoutContractsInput
|
|
address?: AddressCreateNestedOneWithoutContractsAsDeliveryInput
|
|
billingAddress?: AddressCreateNestedOneWithoutContractsAsBillingInput
|
|
bankCard?: BankCardCreateNestedOneWithoutContractsInput
|
|
identityDocument?: IdentityDocumentCreateNestedOneWithoutContractsInput
|
|
salesPlatform?: SalesPlatformCreateNestedOneWithoutContractsInput
|
|
cancellationPeriod?: CancellationPeriodCreateNestedOneWithoutContractsInput
|
|
contractDuration?: ContractDurationCreateNestedOneWithoutContractsInput
|
|
previousContract?: ContractCreateNestedOneWithoutFollowUpContractInput
|
|
followUpContract?: ContractCreateNestedOneWithoutPreviousContractInput
|
|
provider?: ProviderCreateNestedOneWithoutContractsInput
|
|
tariff?: TariffCreateNestedOneWithoutContractsInput
|
|
stressfreiEmail?: StressfreiEmailCreateNestedOneWithoutContractsInput
|
|
energyDetails?: EnergyContractDetailsCreateNestedOneWithoutContractInput
|
|
mobileDetails?: MobileContractDetailsCreateNestedOneWithoutContractInput
|
|
tvDetails?: TvContractDetailsCreateNestedOneWithoutContractInput
|
|
carInsuranceDetails?: CarInsuranceDetailsCreateNestedOneWithoutContractInput
|
|
tasks?: ContractTaskCreateNestedManyWithoutContractInput
|
|
assignedEmails?: CachedEmailCreateNestedManyWithoutContractInput
|
|
}
|
|
|
|
export type ContractUncheckedCreateWithoutInternetDetailsInput = {
|
|
id?: number
|
|
contractNumber: string
|
|
customerId: number
|
|
type: $Enums.ContractType
|
|
status?: $Enums.ContractStatus
|
|
contractCategoryId?: number | null
|
|
addressId?: number | null
|
|
billingAddressId?: number | null
|
|
bankCardId?: number | null
|
|
identityDocumentId?: number | null
|
|
salesPlatformId?: number | null
|
|
cancellationPeriodId?: number | null
|
|
contractDurationId?: number | null
|
|
previousContractId?: number | null
|
|
providerId?: number | null
|
|
tariffId?: number | null
|
|
providerName?: string | null
|
|
tariffName?: string | null
|
|
customerNumberAtProvider?: string | null
|
|
priceFirst12Months?: string | null
|
|
priceFrom13Months?: string | null
|
|
priceAfter24Months?: string | null
|
|
startDate?: Date | string | null
|
|
endDate?: Date | string | null
|
|
commission?: number | null
|
|
cancellationLetterPath?: string | null
|
|
cancellationConfirmationPath?: string | null
|
|
cancellationLetterOptionsPath?: string | null
|
|
cancellationConfirmationOptionsPath?: string | null
|
|
cancellationConfirmationDate?: Date | string | null
|
|
cancellationConfirmationOptionsDate?: Date | string | null
|
|
wasSpecialCancellation?: boolean
|
|
portalUsername?: string | null
|
|
portalPasswordEncrypted?: string | null
|
|
stressfreiEmailId?: number | null
|
|
notes?: string | null
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
followUpContract?: ContractUncheckedCreateNestedOneWithoutPreviousContractInput
|
|
energyDetails?: EnergyContractDetailsUncheckedCreateNestedOneWithoutContractInput
|
|
mobileDetails?: MobileContractDetailsUncheckedCreateNestedOneWithoutContractInput
|
|
tvDetails?: TvContractDetailsUncheckedCreateNestedOneWithoutContractInput
|
|
carInsuranceDetails?: CarInsuranceDetailsUncheckedCreateNestedOneWithoutContractInput
|
|
tasks?: ContractTaskUncheckedCreateNestedManyWithoutContractInput
|
|
assignedEmails?: CachedEmailUncheckedCreateNestedManyWithoutContractInput
|
|
}
|
|
|
|
export type ContractCreateOrConnectWithoutInternetDetailsInput = {
|
|
where: ContractWhereUniqueInput
|
|
create: XOR<ContractCreateWithoutInternetDetailsInput, ContractUncheckedCreateWithoutInternetDetailsInput>
|
|
}
|
|
|
|
export type PhoneNumberCreateWithoutInternetDetailsInput = {
|
|
phoneNumber: string
|
|
isMain?: boolean
|
|
sipUsername?: string | null
|
|
sipPasswordEncrypted?: string | null
|
|
sipServer?: string | null
|
|
}
|
|
|
|
export type PhoneNumberUncheckedCreateWithoutInternetDetailsInput = {
|
|
id?: number
|
|
phoneNumber: string
|
|
isMain?: boolean
|
|
sipUsername?: string | null
|
|
sipPasswordEncrypted?: string | null
|
|
sipServer?: string | null
|
|
}
|
|
|
|
export type PhoneNumberCreateOrConnectWithoutInternetDetailsInput = {
|
|
where: PhoneNumberWhereUniqueInput
|
|
create: XOR<PhoneNumberCreateWithoutInternetDetailsInput, PhoneNumberUncheckedCreateWithoutInternetDetailsInput>
|
|
}
|
|
|
|
export type PhoneNumberCreateManyInternetDetailsInputEnvelope = {
|
|
data: PhoneNumberCreateManyInternetDetailsInput | PhoneNumberCreateManyInternetDetailsInput[]
|
|
skipDuplicates?: boolean
|
|
}
|
|
|
|
export type ContractUpsertWithoutInternetDetailsInput = {
|
|
update: XOR<ContractUpdateWithoutInternetDetailsInput, ContractUncheckedUpdateWithoutInternetDetailsInput>
|
|
create: XOR<ContractCreateWithoutInternetDetailsInput, ContractUncheckedCreateWithoutInternetDetailsInput>
|
|
where?: ContractWhereInput
|
|
}
|
|
|
|
export type ContractUpdateToOneWithWhereWithoutInternetDetailsInput = {
|
|
where?: ContractWhereInput
|
|
data: XOR<ContractUpdateWithoutInternetDetailsInput, ContractUncheckedUpdateWithoutInternetDetailsInput>
|
|
}
|
|
|
|
export type ContractUpdateWithoutInternetDetailsInput = {
|
|
contractNumber?: StringFieldUpdateOperationsInput | string
|
|
type?: EnumContractTypeFieldUpdateOperationsInput | $Enums.ContractType
|
|
status?: EnumContractStatusFieldUpdateOperationsInput | $Enums.ContractStatus
|
|
providerName?: NullableStringFieldUpdateOperationsInput | string | null
|
|
tariffName?: NullableStringFieldUpdateOperationsInput | string | null
|
|
customerNumberAtProvider?: NullableStringFieldUpdateOperationsInput | string | null
|
|
priceFirst12Months?: NullableStringFieldUpdateOperationsInput | string | null
|
|
priceFrom13Months?: NullableStringFieldUpdateOperationsInput | string | null
|
|
priceAfter24Months?: NullableStringFieldUpdateOperationsInput | string | null
|
|
startDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
endDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
commission?: NullableFloatFieldUpdateOperationsInput | number | null
|
|
cancellationLetterPath?: NullableStringFieldUpdateOperationsInput | string | null
|
|
cancellationConfirmationPath?: NullableStringFieldUpdateOperationsInput | string | null
|
|
cancellationLetterOptionsPath?: NullableStringFieldUpdateOperationsInput | string | null
|
|
cancellationConfirmationOptionsPath?: NullableStringFieldUpdateOperationsInput | string | null
|
|
cancellationConfirmationDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
cancellationConfirmationOptionsDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
wasSpecialCancellation?: BoolFieldUpdateOperationsInput | boolean
|
|
portalUsername?: NullableStringFieldUpdateOperationsInput | string | null
|
|
portalPasswordEncrypted?: NullableStringFieldUpdateOperationsInput | string | null
|
|
notes?: NullableStringFieldUpdateOperationsInput | string | null
|
|
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
customer?: CustomerUpdateOneRequiredWithoutContractsNestedInput
|
|
contractCategory?: ContractCategoryUpdateOneWithoutContractsNestedInput
|
|
address?: AddressUpdateOneWithoutContractsAsDeliveryNestedInput
|
|
billingAddress?: AddressUpdateOneWithoutContractsAsBillingNestedInput
|
|
bankCard?: BankCardUpdateOneWithoutContractsNestedInput
|
|
identityDocument?: IdentityDocumentUpdateOneWithoutContractsNestedInput
|
|
salesPlatform?: SalesPlatformUpdateOneWithoutContractsNestedInput
|
|
cancellationPeriod?: CancellationPeriodUpdateOneWithoutContractsNestedInput
|
|
contractDuration?: ContractDurationUpdateOneWithoutContractsNestedInput
|
|
previousContract?: ContractUpdateOneWithoutFollowUpContractNestedInput
|
|
followUpContract?: ContractUpdateOneWithoutPreviousContractNestedInput
|
|
provider?: ProviderUpdateOneWithoutContractsNestedInput
|
|
tariff?: TariffUpdateOneWithoutContractsNestedInput
|
|
stressfreiEmail?: StressfreiEmailUpdateOneWithoutContractsNestedInput
|
|
energyDetails?: EnergyContractDetailsUpdateOneWithoutContractNestedInput
|
|
mobileDetails?: MobileContractDetailsUpdateOneWithoutContractNestedInput
|
|
tvDetails?: TvContractDetailsUpdateOneWithoutContractNestedInput
|
|
carInsuranceDetails?: CarInsuranceDetailsUpdateOneWithoutContractNestedInput
|
|
tasks?: ContractTaskUpdateManyWithoutContractNestedInput
|
|
assignedEmails?: CachedEmailUpdateManyWithoutContractNestedInput
|
|
}
|
|
|
|
export type ContractUncheckedUpdateWithoutInternetDetailsInput = {
|
|
id?: IntFieldUpdateOperationsInput | number
|
|
contractNumber?: StringFieldUpdateOperationsInput | string
|
|
customerId?: IntFieldUpdateOperationsInput | number
|
|
type?: EnumContractTypeFieldUpdateOperationsInput | $Enums.ContractType
|
|
status?: EnumContractStatusFieldUpdateOperationsInput | $Enums.ContractStatus
|
|
contractCategoryId?: NullableIntFieldUpdateOperationsInput | number | null
|
|
addressId?: NullableIntFieldUpdateOperationsInput | number | null
|
|
billingAddressId?: NullableIntFieldUpdateOperationsInput | number | null
|
|
bankCardId?: NullableIntFieldUpdateOperationsInput | number | null
|
|
identityDocumentId?: NullableIntFieldUpdateOperationsInput | number | null
|
|
salesPlatformId?: NullableIntFieldUpdateOperationsInput | number | null
|
|
cancellationPeriodId?: NullableIntFieldUpdateOperationsInput | number | null
|
|
contractDurationId?: NullableIntFieldUpdateOperationsInput | number | null
|
|
previousContractId?: NullableIntFieldUpdateOperationsInput | number | null
|
|
providerId?: NullableIntFieldUpdateOperationsInput | number | null
|
|
tariffId?: NullableIntFieldUpdateOperationsInput | number | null
|
|
providerName?: NullableStringFieldUpdateOperationsInput | string | null
|
|
tariffName?: NullableStringFieldUpdateOperationsInput | string | null
|
|
customerNumberAtProvider?: NullableStringFieldUpdateOperationsInput | string | null
|
|
priceFirst12Months?: NullableStringFieldUpdateOperationsInput | string | null
|
|
priceFrom13Months?: NullableStringFieldUpdateOperationsInput | string | null
|
|
priceAfter24Months?: NullableStringFieldUpdateOperationsInput | string | null
|
|
startDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
endDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
commission?: NullableFloatFieldUpdateOperationsInput | number | null
|
|
cancellationLetterPath?: NullableStringFieldUpdateOperationsInput | string | null
|
|
cancellationConfirmationPath?: NullableStringFieldUpdateOperationsInput | string | null
|
|
cancellationLetterOptionsPath?: NullableStringFieldUpdateOperationsInput | string | null
|
|
cancellationConfirmationOptionsPath?: NullableStringFieldUpdateOperationsInput | string | null
|
|
cancellationConfirmationDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
cancellationConfirmationOptionsDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
wasSpecialCancellation?: BoolFieldUpdateOperationsInput | boolean
|
|
portalUsername?: NullableStringFieldUpdateOperationsInput | string | null
|
|
portalPasswordEncrypted?: NullableStringFieldUpdateOperationsInput | string | null
|
|
stressfreiEmailId?: NullableIntFieldUpdateOperationsInput | number | null
|
|
notes?: NullableStringFieldUpdateOperationsInput | string | null
|
|
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
followUpContract?: ContractUncheckedUpdateOneWithoutPreviousContractNestedInput
|
|
energyDetails?: EnergyContractDetailsUncheckedUpdateOneWithoutContractNestedInput
|
|
mobileDetails?: MobileContractDetailsUncheckedUpdateOneWithoutContractNestedInput
|
|
tvDetails?: TvContractDetailsUncheckedUpdateOneWithoutContractNestedInput
|
|
carInsuranceDetails?: CarInsuranceDetailsUncheckedUpdateOneWithoutContractNestedInput
|
|
tasks?: ContractTaskUncheckedUpdateManyWithoutContractNestedInput
|
|
assignedEmails?: CachedEmailUncheckedUpdateManyWithoutContractNestedInput
|
|
}
|
|
|
|
export type PhoneNumberUpsertWithWhereUniqueWithoutInternetDetailsInput = {
|
|
where: PhoneNumberWhereUniqueInput
|
|
update: XOR<PhoneNumberUpdateWithoutInternetDetailsInput, PhoneNumberUncheckedUpdateWithoutInternetDetailsInput>
|
|
create: XOR<PhoneNumberCreateWithoutInternetDetailsInput, PhoneNumberUncheckedCreateWithoutInternetDetailsInput>
|
|
}
|
|
|
|
export type PhoneNumberUpdateWithWhereUniqueWithoutInternetDetailsInput = {
|
|
where: PhoneNumberWhereUniqueInput
|
|
data: XOR<PhoneNumberUpdateWithoutInternetDetailsInput, PhoneNumberUncheckedUpdateWithoutInternetDetailsInput>
|
|
}
|
|
|
|
export type PhoneNumberUpdateManyWithWhereWithoutInternetDetailsInput = {
|
|
where: PhoneNumberScalarWhereInput
|
|
data: XOR<PhoneNumberUpdateManyMutationInput, PhoneNumberUncheckedUpdateManyWithoutInternetDetailsInput>
|
|
}
|
|
|
|
export type PhoneNumberScalarWhereInput = {
|
|
AND?: PhoneNumberScalarWhereInput | PhoneNumberScalarWhereInput[]
|
|
OR?: PhoneNumberScalarWhereInput[]
|
|
NOT?: PhoneNumberScalarWhereInput | PhoneNumberScalarWhereInput[]
|
|
id?: IntFilter<"PhoneNumber"> | number
|
|
internetContractDetailsId?: IntFilter<"PhoneNumber"> | number
|
|
phoneNumber?: StringFilter<"PhoneNumber"> | string
|
|
isMain?: BoolFilter<"PhoneNumber"> | boolean
|
|
sipUsername?: StringNullableFilter<"PhoneNumber"> | string | null
|
|
sipPasswordEncrypted?: StringNullableFilter<"PhoneNumber"> | string | null
|
|
sipServer?: StringNullableFilter<"PhoneNumber"> | string | null
|
|
}
|
|
|
|
export type InternetContractDetailsCreateWithoutPhoneNumbersInput = {
|
|
downloadSpeed?: number | null
|
|
uploadSpeed?: number | null
|
|
routerModel?: string | null
|
|
routerSerialNumber?: string | null
|
|
installationDate?: Date | string | null
|
|
internetUsername?: string | null
|
|
internetPasswordEncrypted?: string | null
|
|
homeId?: string | null
|
|
activationCode?: string | null
|
|
contract: ContractCreateNestedOneWithoutInternetDetailsInput
|
|
}
|
|
|
|
export type InternetContractDetailsUncheckedCreateWithoutPhoneNumbersInput = {
|
|
id?: number
|
|
contractId: number
|
|
downloadSpeed?: number | null
|
|
uploadSpeed?: number | null
|
|
routerModel?: string | null
|
|
routerSerialNumber?: string | null
|
|
installationDate?: Date | string | null
|
|
internetUsername?: string | null
|
|
internetPasswordEncrypted?: string | null
|
|
homeId?: string | null
|
|
activationCode?: string | null
|
|
}
|
|
|
|
export type InternetContractDetailsCreateOrConnectWithoutPhoneNumbersInput = {
|
|
where: InternetContractDetailsWhereUniqueInput
|
|
create: XOR<InternetContractDetailsCreateWithoutPhoneNumbersInput, InternetContractDetailsUncheckedCreateWithoutPhoneNumbersInput>
|
|
}
|
|
|
|
export type InternetContractDetailsUpsertWithoutPhoneNumbersInput = {
|
|
update: XOR<InternetContractDetailsUpdateWithoutPhoneNumbersInput, InternetContractDetailsUncheckedUpdateWithoutPhoneNumbersInput>
|
|
create: XOR<InternetContractDetailsCreateWithoutPhoneNumbersInput, InternetContractDetailsUncheckedCreateWithoutPhoneNumbersInput>
|
|
where?: InternetContractDetailsWhereInput
|
|
}
|
|
|
|
export type InternetContractDetailsUpdateToOneWithWhereWithoutPhoneNumbersInput = {
|
|
where?: InternetContractDetailsWhereInput
|
|
data: XOR<InternetContractDetailsUpdateWithoutPhoneNumbersInput, InternetContractDetailsUncheckedUpdateWithoutPhoneNumbersInput>
|
|
}
|
|
|
|
export type InternetContractDetailsUpdateWithoutPhoneNumbersInput = {
|
|
downloadSpeed?: NullableIntFieldUpdateOperationsInput | number | null
|
|
uploadSpeed?: NullableIntFieldUpdateOperationsInput | number | null
|
|
routerModel?: NullableStringFieldUpdateOperationsInput | string | null
|
|
routerSerialNumber?: NullableStringFieldUpdateOperationsInput | string | null
|
|
installationDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
internetUsername?: NullableStringFieldUpdateOperationsInput | string | null
|
|
internetPasswordEncrypted?: NullableStringFieldUpdateOperationsInput | string | null
|
|
homeId?: NullableStringFieldUpdateOperationsInput | string | null
|
|
activationCode?: NullableStringFieldUpdateOperationsInput | string | null
|
|
contract?: ContractUpdateOneRequiredWithoutInternetDetailsNestedInput
|
|
}
|
|
|
|
export type InternetContractDetailsUncheckedUpdateWithoutPhoneNumbersInput = {
|
|
id?: IntFieldUpdateOperationsInput | number
|
|
contractId?: IntFieldUpdateOperationsInput | number
|
|
downloadSpeed?: NullableIntFieldUpdateOperationsInput | number | null
|
|
uploadSpeed?: NullableIntFieldUpdateOperationsInput | number | null
|
|
routerModel?: NullableStringFieldUpdateOperationsInput | string | null
|
|
routerSerialNumber?: NullableStringFieldUpdateOperationsInput | string | null
|
|
installationDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
internetUsername?: NullableStringFieldUpdateOperationsInput | string | null
|
|
internetPasswordEncrypted?: NullableStringFieldUpdateOperationsInput | string | null
|
|
homeId?: NullableStringFieldUpdateOperationsInput | string | null
|
|
activationCode?: NullableStringFieldUpdateOperationsInput | string | null
|
|
}
|
|
|
|
export type ContractCreateWithoutMobileDetailsInput = {
|
|
contractNumber: string
|
|
type: $Enums.ContractType
|
|
status?: $Enums.ContractStatus
|
|
providerName?: string | null
|
|
tariffName?: string | null
|
|
customerNumberAtProvider?: string | null
|
|
priceFirst12Months?: string | null
|
|
priceFrom13Months?: string | null
|
|
priceAfter24Months?: string | null
|
|
startDate?: Date | string | null
|
|
endDate?: Date | string | null
|
|
commission?: number | null
|
|
cancellationLetterPath?: string | null
|
|
cancellationConfirmationPath?: string | null
|
|
cancellationLetterOptionsPath?: string | null
|
|
cancellationConfirmationOptionsPath?: string | null
|
|
cancellationConfirmationDate?: Date | string | null
|
|
cancellationConfirmationOptionsDate?: Date | string | null
|
|
wasSpecialCancellation?: boolean
|
|
portalUsername?: string | null
|
|
portalPasswordEncrypted?: string | null
|
|
notes?: string | null
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
customer: CustomerCreateNestedOneWithoutContractsInput
|
|
contractCategory?: ContractCategoryCreateNestedOneWithoutContractsInput
|
|
address?: AddressCreateNestedOneWithoutContractsAsDeliveryInput
|
|
billingAddress?: AddressCreateNestedOneWithoutContractsAsBillingInput
|
|
bankCard?: BankCardCreateNestedOneWithoutContractsInput
|
|
identityDocument?: IdentityDocumentCreateNestedOneWithoutContractsInput
|
|
salesPlatform?: SalesPlatformCreateNestedOneWithoutContractsInput
|
|
cancellationPeriod?: CancellationPeriodCreateNestedOneWithoutContractsInput
|
|
contractDuration?: ContractDurationCreateNestedOneWithoutContractsInput
|
|
previousContract?: ContractCreateNestedOneWithoutFollowUpContractInput
|
|
followUpContract?: ContractCreateNestedOneWithoutPreviousContractInput
|
|
provider?: ProviderCreateNestedOneWithoutContractsInput
|
|
tariff?: TariffCreateNestedOneWithoutContractsInput
|
|
stressfreiEmail?: StressfreiEmailCreateNestedOneWithoutContractsInput
|
|
energyDetails?: EnergyContractDetailsCreateNestedOneWithoutContractInput
|
|
internetDetails?: InternetContractDetailsCreateNestedOneWithoutContractInput
|
|
tvDetails?: TvContractDetailsCreateNestedOneWithoutContractInput
|
|
carInsuranceDetails?: CarInsuranceDetailsCreateNestedOneWithoutContractInput
|
|
tasks?: ContractTaskCreateNestedManyWithoutContractInput
|
|
assignedEmails?: CachedEmailCreateNestedManyWithoutContractInput
|
|
}
|
|
|
|
export type ContractUncheckedCreateWithoutMobileDetailsInput = {
|
|
id?: number
|
|
contractNumber: string
|
|
customerId: number
|
|
type: $Enums.ContractType
|
|
status?: $Enums.ContractStatus
|
|
contractCategoryId?: number | null
|
|
addressId?: number | null
|
|
billingAddressId?: number | null
|
|
bankCardId?: number | null
|
|
identityDocumentId?: number | null
|
|
salesPlatformId?: number | null
|
|
cancellationPeriodId?: number | null
|
|
contractDurationId?: number | null
|
|
previousContractId?: number | null
|
|
providerId?: number | null
|
|
tariffId?: number | null
|
|
providerName?: string | null
|
|
tariffName?: string | null
|
|
customerNumberAtProvider?: string | null
|
|
priceFirst12Months?: string | null
|
|
priceFrom13Months?: string | null
|
|
priceAfter24Months?: string | null
|
|
startDate?: Date | string | null
|
|
endDate?: Date | string | null
|
|
commission?: number | null
|
|
cancellationLetterPath?: string | null
|
|
cancellationConfirmationPath?: string | null
|
|
cancellationLetterOptionsPath?: string | null
|
|
cancellationConfirmationOptionsPath?: string | null
|
|
cancellationConfirmationDate?: Date | string | null
|
|
cancellationConfirmationOptionsDate?: Date | string | null
|
|
wasSpecialCancellation?: boolean
|
|
portalUsername?: string | null
|
|
portalPasswordEncrypted?: string | null
|
|
stressfreiEmailId?: number | null
|
|
notes?: string | null
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
followUpContract?: ContractUncheckedCreateNestedOneWithoutPreviousContractInput
|
|
energyDetails?: EnergyContractDetailsUncheckedCreateNestedOneWithoutContractInput
|
|
internetDetails?: InternetContractDetailsUncheckedCreateNestedOneWithoutContractInput
|
|
tvDetails?: TvContractDetailsUncheckedCreateNestedOneWithoutContractInput
|
|
carInsuranceDetails?: CarInsuranceDetailsUncheckedCreateNestedOneWithoutContractInput
|
|
tasks?: ContractTaskUncheckedCreateNestedManyWithoutContractInput
|
|
assignedEmails?: CachedEmailUncheckedCreateNestedManyWithoutContractInput
|
|
}
|
|
|
|
export type ContractCreateOrConnectWithoutMobileDetailsInput = {
|
|
where: ContractWhereUniqueInput
|
|
create: XOR<ContractCreateWithoutMobileDetailsInput, ContractUncheckedCreateWithoutMobileDetailsInput>
|
|
}
|
|
|
|
export type SimCardCreateWithoutMobileDetailsInput = {
|
|
phoneNumber?: string | null
|
|
simCardNumber?: string | null
|
|
pin?: string | null
|
|
puk?: string | null
|
|
isMultisim?: boolean
|
|
isMain?: boolean
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
}
|
|
|
|
export type SimCardUncheckedCreateWithoutMobileDetailsInput = {
|
|
id?: number
|
|
phoneNumber?: string | null
|
|
simCardNumber?: string | null
|
|
pin?: string | null
|
|
puk?: string | null
|
|
isMultisim?: boolean
|
|
isMain?: boolean
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
}
|
|
|
|
export type SimCardCreateOrConnectWithoutMobileDetailsInput = {
|
|
where: SimCardWhereUniqueInput
|
|
create: XOR<SimCardCreateWithoutMobileDetailsInput, SimCardUncheckedCreateWithoutMobileDetailsInput>
|
|
}
|
|
|
|
export type SimCardCreateManyMobileDetailsInputEnvelope = {
|
|
data: SimCardCreateManyMobileDetailsInput | SimCardCreateManyMobileDetailsInput[]
|
|
skipDuplicates?: boolean
|
|
}
|
|
|
|
export type ContractUpsertWithoutMobileDetailsInput = {
|
|
update: XOR<ContractUpdateWithoutMobileDetailsInput, ContractUncheckedUpdateWithoutMobileDetailsInput>
|
|
create: XOR<ContractCreateWithoutMobileDetailsInput, ContractUncheckedCreateWithoutMobileDetailsInput>
|
|
where?: ContractWhereInput
|
|
}
|
|
|
|
export type ContractUpdateToOneWithWhereWithoutMobileDetailsInput = {
|
|
where?: ContractWhereInput
|
|
data: XOR<ContractUpdateWithoutMobileDetailsInput, ContractUncheckedUpdateWithoutMobileDetailsInput>
|
|
}
|
|
|
|
export type ContractUpdateWithoutMobileDetailsInput = {
|
|
contractNumber?: StringFieldUpdateOperationsInput | string
|
|
type?: EnumContractTypeFieldUpdateOperationsInput | $Enums.ContractType
|
|
status?: EnumContractStatusFieldUpdateOperationsInput | $Enums.ContractStatus
|
|
providerName?: NullableStringFieldUpdateOperationsInput | string | null
|
|
tariffName?: NullableStringFieldUpdateOperationsInput | string | null
|
|
customerNumberAtProvider?: NullableStringFieldUpdateOperationsInput | string | null
|
|
priceFirst12Months?: NullableStringFieldUpdateOperationsInput | string | null
|
|
priceFrom13Months?: NullableStringFieldUpdateOperationsInput | string | null
|
|
priceAfter24Months?: NullableStringFieldUpdateOperationsInput | string | null
|
|
startDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
endDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
commission?: NullableFloatFieldUpdateOperationsInput | number | null
|
|
cancellationLetterPath?: NullableStringFieldUpdateOperationsInput | string | null
|
|
cancellationConfirmationPath?: NullableStringFieldUpdateOperationsInput | string | null
|
|
cancellationLetterOptionsPath?: NullableStringFieldUpdateOperationsInput | string | null
|
|
cancellationConfirmationOptionsPath?: NullableStringFieldUpdateOperationsInput | string | null
|
|
cancellationConfirmationDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
cancellationConfirmationOptionsDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
wasSpecialCancellation?: BoolFieldUpdateOperationsInput | boolean
|
|
portalUsername?: NullableStringFieldUpdateOperationsInput | string | null
|
|
portalPasswordEncrypted?: NullableStringFieldUpdateOperationsInput | string | null
|
|
notes?: NullableStringFieldUpdateOperationsInput | string | null
|
|
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
customer?: CustomerUpdateOneRequiredWithoutContractsNestedInput
|
|
contractCategory?: ContractCategoryUpdateOneWithoutContractsNestedInput
|
|
address?: AddressUpdateOneWithoutContractsAsDeliveryNestedInput
|
|
billingAddress?: AddressUpdateOneWithoutContractsAsBillingNestedInput
|
|
bankCard?: BankCardUpdateOneWithoutContractsNestedInput
|
|
identityDocument?: IdentityDocumentUpdateOneWithoutContractsNestedInput
|
|
salesPlatform?: SalesPlatformUpdateOneWithoutContractsNestedInput
|
|
cancellationPeriod?: CancellationPeriodUpdateOneWithoutContractsNestedInput
|
|
contractDuration?: ContractDurationUpdateOneWithoutContractsNestedInput
|
|
previousContract?: ContractUpdateOneWithoutFollowUpContractNestedInput
|
|
followUpContract?: ContractUpdateOneWithoutPreviousContractNestedInput
|
|
provider?: ProviderUpdateOneWithoutContractsNestedInput
|
|
tariff?: TariffUpdateOneWithoutContractsNestedInput
|
|
stressfreiEmail?: StressfreiEmailUpdateOneWithoutContractsNestedInput
|
|
energyDetails?: EnergyContractDetailsUpdateOneWithoutContractNestedInput
|
|
internetDetails?: InternetContractDetailsUpdateOneWithoutContractNestedInput
|
|
tvDetails?: TvContractDetailsUpdateOneWithoutContractNestedInput
|
|
carInsuranceDetails?: CarInsuranceDetailsUpdateOneWithoutContractNestedInput
|
|
tasks?: ContractTaskUpdateManyWithoutContractNestedInput
|
|
assignedEmails?: CachedEmailUpdateManyWithoutContractNestedInput
|
|
}
|
|
|
|
export type ContractUncheckedUpdateWithoutMobileDetailsInput = {
|
|
id?: IntFieldUpdateOperationsInput | number
|
|
contractNumber?: StringFieldUpdateOperationsInput | string
|
|
customerId?: IntFieldUpdateOperationsInput | number
|
|
type?: EnumContractTypeFieldUpdateOperationsInput | $Enums.ContractType
|
|
status?: EnumContractStatusFieldUpdateOperationsInput | $Enums.ContractStatus
|
|
contractCategoryId?: NullableIntFieldUpdateOperationsInput | number | null
|
|
addressId?: NullableIntFieldUpdateOperationsInput | number | null
|
|
billingAddressId?: NullableIntFieldUpdateOperationsInput | number | null
|
|
bankCardId?: NullableIntFieldUpdateOperationsInput | number | null
|
|
identityDocumentId?: NullableIntFieldUpdateOperationsInput | number | null
|
|
salesPlatformId?: NullableIntFieldUpdateOperationsInput | number | null
|
|
cancellationPeriodId?: NullableIntFieldUpdateOperationsInput | number | null
|
|
contractDurationId?: NullableIntFieldUpdateOperationsInput | number | null
|
|
previousContractId?: NullableIntFieldUpdateOperationsInput | number | null
|
|
providerId?: NullableIntFieldUpdateOperationsInput | number | null
|
|
tariffId?: NullableIntFieldUpdateOperationsInput | number | null
|
|
providerName?: NullableStringFieldUpdateOperationsInput | string | null
|
|
tariffName?: NullableStringFieldUpdateOperationsInput | string | null
|
|
customerNumberAtProvider?: NullableStringFieldUpdateOperationsInput | string | null
|
|
priceFirst12Months?: NullableStringFieldUpdateOperationsInput | string | null
|
|
priceFrom13Months?: NullableStringFieldUpdateOperationsInput | string | null
|
|
priceAfter24Months?: NullableStringFieldUpdateOperationsInput | string | null
|
|
startDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
endDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
commission?: NullableFloatFieldUpdateOperationsInput | number | null
|
|
cancellationLetterPath?: NullableStringFieldUpdateOperationsInput | string | null
|
|
cancellationConfirmationPath?: NullableStringFieldUpdateOperationsInput | string | null
|
|
cancellationLetterOptionsPath?: NullableStringFieldUpdateOperationsInput | string | null
|
|
cancellationConfirmationOptionsPath?: NullableStringFieldUpdateOperationsInput | string | null
|
|
cancellationConfirmationDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
cancellationConfirmationOptionsDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
wasSpecialCancellation?: BoolFieldUpdateOperationsInput | boolean
|
|
portalUsername?: NullableStringFieldUpdateOperationsInput | string | null
|
|
portalPasswordEncrypted?: NullableStringFieldUpdateOperationsInput | string | null
|
|
stressfreiEmailId?: NullableIntFieldUpdateOperationsInput | number | null
|
|
notes?: NullableStringFieldUpdateOperationsInput | string | null
|
|
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
followUpContract?: ContractUncheckedUpdateOneWithoutPreviousContractNestedInput
|
|
energyDetails?: EnergyContractDetailsUncheckedUpdateOneWithoutContractNestedInput
|
|
internetDetails?: InternetContractDetailsUncheckedUpdateOneWithoutContractNestedInput
|
|
tvDetails?: TvContractDetailsUncheckedUpdateOneWithoutContractNestedInput
|
|
carInsuranceDetails?: CarInsuranceDetailsUncheckedUpdateOneWithoutContractNestedInput
|
|
tasks?: ContractTaskUncheckedUpdateManyWithoutContractNestedInput
|
|
assignedEmails?: CachedEmailUncheckedUpdateManyWithoutContractNestedInput
|
|
}
|
|
|
|
export type SimCardUpsertWithWhereUniqueWithoutMobileDetailsInput = {
|
|
where: SimCardWhereUniqueInput
|
|
update: XOR<SimCardUpdateWithoutMobileDetailsInput, SimCardUncheckedUpdateWithoutMobileDetailsInput>
|
|
create: XOR<SimCardCreateWithoutMobileDetailsInput, SimCardUncheckedCreateWithoutMobileDetailsInput>
|
|
}
|
|
|
|
export type SimCardUpdateWithWhereUniqueWithoutMobileDetailsInput = {
|
|
where: SimCardWhereUniqueInput
|
|
data: XOR<SimCardUpdateWithoutMobileDetailsInput, SimCardUncheckedUpdateWithoutMobileDetailsInput>
|
|
}
|
|
|
|
export type SimCardUpdateManyWithWhereWithoutMobileDetailsInput = {
|
|
where: SimCardScalarWhereInput
|
|
data: XOR<SimCardUpdateManyMutationInput, SimCardUncheckedUpdateManyWithoutMobileDetailsInput>
|
|
}
|
|
|
|
export type SimCardScalarWhereInput = {
|
|
AND?: SimCardScalarWhereInput | SimCardScalarWhereInput[]
|
|
OR?: SimCardScalarWhereInput[]
|
|
NOT?: SimCardScalarWhereInput | SimCardScalarWhereInput[]
|
|
id?: IntFilter<"SimCard"> | number
|
|
mobileDetailsId?: IntFilter<"SimCard"> | number
|
|
phoneNumber?: StringNullableFilter<"SimCard"> | string | null
|
|
simCardNumber?: StringNullableFilter<"SimCard"> | string | null
|
|
pin?: StringNullableFilter<"SimCard"> | string | null
|
|
puk?: StringNullableFilter<"SimCard"> | string | null
|
|
isMultisim?: BoolFilter<"SimCard"> | boolean
|
|
isMain?: BoolFilter<"SimCard"> | boolean
|
|
createdAt?: DateTimeFilter<"SimCard"> | Date | string
|
|
updatedAt?: DateTimeFilter<"SimCard"> | Date | string
|
|
}
|
|
|
|
export type MobileContractDetailsCreateWithoutSimCardsInput = {
|
|
requiresMultisim?: boolean
|
|
dataVolume?: number | null
|
|
includedMinutes?: number | null
|
|
includedSMS?: number | null
|
|
deviceModel?: string | null
|
|
deviceImei?: string | null
|
|
phoneNumber?: string | null
|
|
simCardNumber?: string | null
|
|
contract: ContractCreateNestedOneWithoutMobileDetailsInput
|
|
}
|
|
|
|
export type MobileContractDetailsUncheckedCreateWithoutSimCardsInput = {
|
|
id?: number
|
|
contractId: number
|
|
requiresMultisim?: boolean
|
|
dataVolume?: number | null
|
|
includedMinutes?: number | null
|
|
includedSMS?: number | null
|
|
deviceModel?: string | null
|
|
deviceImei?: string | null
|
|
phoneNumber?: string | null
|
|
simCardNumber?: string | null
|
|
}
|
|
|
|
export type MobileContractDetailsCreateOrConnectWithoutSimCardsInput = {
|
|
where: MobileContractDetailsWhereUniqueInput
|
|
create: XOR<MobileContractDetailsCreateWithoutSimCardsInput, MobileContractDetailsUncheckedCreateWithoutSimCardsInput>
|
|
}
|
|
|
|
export type MobileContractDetailsUpsertWithoutSimCardsInput = {
|
|
update: XOR<MobileContractDetailsUpdateWithoutSimCardsInput, MobileContractDetailsUncheckedUpdateWithoutSimCardsInput>
|
|
create: XOR<MobileContractDetailsCreateWithoutSimCardsInput, MobileContractDetailsUncheckedCreateWithoutSimCardsInput>
|
|
where?: MobileContractDetailsWhereInput
|
|
}
|
|
|
|
export type MobileContractDetailsUpdateToOneWithWhereWithoutSimCardsInput = {
|
|
where?: MobileContractDetailsWhereInput
|
|
data: XOR<MobileContractDetailsUpdateWithoutSimCardsInput, MobileContractDetailsUncheckedUpdateWithoutSimCardsInput>
|
|
}
|
|
|
|
export type MobileContractDetailsUpdateWithoutSimCardsInput = {
|
|
requiresMultisim?: BoolFieldUpdateOperationsInput | boolean
|
|
dataVolume?: NullableFloatFieldUpdateOperationsInput | number | null
|
|
includedMinutes?: NullableIntFieldUpdateOperationsInput | number | null
|
|
includedSMS?: NullableIntFieldUpdateOperationsInput | number | null
|
|
deviceModel?: NullableStringFieldUpdateOperationsInput | string | null
|
|
deviceImei?: NullableStringFieldUpdateOperationsInput | string | null
|
|
phoneNumber?: NullableStringFieldUpdateOperationsInput | string | null
|
|
simCardNumber?: NullableStringFieldUpdateOperationsInput | string | null
|
|
contract?: ContractUpdateOneRequiredWithoutMobileDetailsNestedInput
|
|
}
|
|
|
|
export type MobileContractDetailsUncheckedUpdateWithoutSimCardsInput = {
|
|
id?: IntFieldUpdateOperationsInput | number
|
|
contractId?: IntFieldUpdateOperationsInput | number
|
|
requiresMultisim?: BoolFieldUpdateOperationsInput | boolean
|
|
dataVolume?: NullableFloatFieldUpdateOperationsInput | number | null
|
|
includedMinutes?: NullableIntFieldUpdateOperationsInput | number | null
|
|
includedSMS?: NullableIntFieldUpdateOperationsInput | number | null
|
|
deviceModel?: NullableStringFieldUpdateOperationsInput | string | null
|
|
deviceImei?: NullableStringFieldUpdateOperationsInput | string | null
|
|
phoneNumber?: NullableStringFieldUpdateOperationsInput | string | null
|
|
simCardNumber?: NullableStringFieldUpdateOperationsInput | string | null
|
|
}
|
|
|
|
export type ContractCreateWithoutTvDetailsInput = {
|
|
contractNumber: string
|
|
type: $Enums.ContractType
|
|
status?: $Enums.ContractStatus
|
|
providerName?: string | null
|
|
tariffName?: string | null
|
|
customerNumberAtProvider?: string | null
|
|
priceFirst12Months?: string | null
|
|
priceFrom13Months?: string | null
|
|
priceAfter24Months?: string | null
|
|
startDate?: Date | string | null
|
|
endDate?: Date | string | null
|
|
commission?: number | null
|
|
cancellationLetterPath?: string | null
|
|
cancellationConfirmationPath?: string | null
|
|
cancellationLetterOptionsPath?: string | null
|
|
cancellationConfirmationOptionsPath?: string | null
|
|
cancellationConfirmationDate?: Date | string | null
|
|
cancellationConfirmationOptionsDate?: Date | string | null
|
|
wasSpecialCancellation?: boolean
|
|
portalUsername?: string | null
|
|
portalPasswordEncrypted?: string | null
|
|
notes?: string | null
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
customer: CustomerCreateNestedOneWithoutContractsInput
|
|
contractCategory?: ContractCategoryCreateNestedOneWithoutContractsInput
|
|
address?: AddressCreateNestedOneWithoutContractsAsDeliveryInput
|
|
billingAddress?: AddressCreateNestedOneWithoutContractsAsBillingInput
|
|
bankCard?: BankCardCreateNestedOneWithoutContractsInput
|
|
identityDocument?: IdentityDocumentCreateNestedOneWithoutContractsInput
|
|
salesPlatform?: SalesPlatformCreateNestedOneWithoutContractsInput
|
|
cancellationPeriod?: CancellationPeriodCreateNestedOneWithoutContractsInput
|
|
contractDuration?: ContractDurationCreateNestedOneWithoutContractsInput
|
|
previousContract?: ContractCreateNestedOneWithoutFollowUpContractInput
|
|
followUpContract?: ContractCreateNestedOneWithoutPreviousContractInput
|
|
provider?: ProviderCreateNestedOneWithoutContractsInput
|
|
tariff?: TariffCreateNestedOneWithoutContractsInput
|
|
stressfreiEmail?: StressfreiEmailCreateNestedOneWithoutContractsInput
|
|
energyDetails?: EnergyContractDetailsCreateNestedOneWithoutContractInput
|
|
internetDetails?: InternetContractDetailsCreateNestedOneWithoutContractInput
|
|
mobileDetails?: MobileContractDetailsCreateNestedOneWithoutContractInput
|
|
carInsuranceDetails?: CarInsuranceDetailsCreateNestedOneWithoutContractInput
|
|
tasks?: ContractTaskCreateNestedManyWithoutContractInput
|
|
assignedEmails?: CachedEmailCreateNestedManyWithoutContractInput
|
|
}
|
|
|
|
export type ContractUncheckedCreateWithoutTvDetailsInput = {
|
|
id?: number
|
|
contractNumber: string
|
|
customerId: number
|
|
type: $Enums.ContractType
|
|
status?: $Enums.ContractStatus
|
|
contractCategoryId?: number | null
|
|
addressId?: number | null
|
|
billingAddressId?: number | null
|
|
bankCardId?: number | null
|
|
identityDocumentId?: number | null
|
|
salesPlatformId?: number | null
|
|
cancellationPeriodId?: number | null
|
|
contractDurationId?: number | null
|
|
previousContractId?: number | null
|
|
providerId?: number | null
|
|
tariffId?: number | null
|
|
providerName?: string | null
|
|
tariffName?: string | null
|
|
customerNumberAtProvider?: string | null
|
|
priceFirst12Months?: string | null
|
|
priceFrom13Months?: string | null
|
|
priceAfter24Months?: string | null
|
|
startDate?: Date | string | null
|
|
endDate?: Date | string | null
|
|
commission?: number | null
|
|
cancellationLetterPath?: string | null
|
|
cancellationConfirmationPath?: string | null
|
|
cancellationLetterOptionsPath?: string | null
|
|
cancellationConfirmationOptionsPath?: string | null
|
|
cancellationConfirmationDate?: Date | string | null
|
|
cancellationConfirmationOptionsDate?: Date | string | null
|
|
wasSpecialCancellation?: boolean
|
|
portalUsername?: string | null
|
|
portalPasswordEncrypted?: string | null
|
|
stressfreiEmailId?: number | null
|
|
notes?: string | null
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
followUpContract?: ContractUncheckedCreateNestedOneWithoutPreviousContractInput
|
|
energyDetails?: EnergyContractDetailsUncheckedCreateNestedOneWithoutContractInput
|
|
internetDetails?: InternetContractDetailsUncheckedCreateNestedOneWithoutContractInput
|
|
mobileDetails?: MobileContractDetailsUncheckedCreateNestedOneWithoutContractInput
|
|
carInsuranceDetails?: CarInsuranceDetailsUncheckedCreateNestedOneWithoutContractInput
|
|
tasks?: ContractTaskUncheckedCreateNestedManyWithoutContractInput
|
|
assignedEmails?: CachedEmailUncheckedCreateNestedManyWithoutContractInput
|
|
}
|
|
|
|
export type ContractCreateOrConnectWithoutTvDetailsInput = {
|
|
where: ContractWhereUniqueInput
|
|
create: XOR<ContractCreateWithoutTvDetailsInput, ContractUncheckedCreateWithoutTvDetailsInput>
|
|
}
|
|
|
|
export type ContractUpsertWithoutTvDetailsInput = {
|
|
update: XOR<ContractUpdateWithoutTvDetailsInput, ContractUncheckedUpdateWithoutTvDetailsInput>
|
|
create: XOR<ContractCreateWithoutTvDetailsInput, ContractUncheckedCreateWithoutTvDetailsInput>
|
|
where?: ContractWhereInput
|
|
}
|
|
|
|
export type ContractUpdateToOneWithWhereWithoutTvDetailsInput = {
|
|
where?: ContractWhereInput
|
|
data: XOR<ContractUpdateWithoutTvDetailsInput, ContractUncheckedUpdateWithoutTvDetailsInput>
|
|
}
|
|
|
|
export type ContractUpdateWithoutTvDetailsInput = {
|
|
contractNumber?: StringFieldUpdateOperationsInput | string
|
|
type?: EnumContractTypeFieldUpdateOperationsInput | $Enums.ContractType
|
|
status?: EnumContractStatusFieldUpdateOperationsInput | $Enums.ContractStatus
|
|
providerName?: NullableStringFieldUpdateOperationsInput | string | null
|
|
tariffName?: NullableStringFieldUpdateOperationsInput | string | null
|
|
customerNumberAtProvider?: NullableStringFieldUpdateOperationsInput | string | null
|
|
priceFirst12Months?: NullableStringFieldUpdateOperationsInput | string | null
|
|
priceFrom13Months?: NullableStringFieldUpdateOperationsInput | string | null
|
|
priceAfter24Months?: NullableStringFieldUpdateOperationsInput | string | null
|
|
startDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
endDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
commission?: NullableFloatFieldUpdateOperationsInput | number | null
|
|
cancellationLetterPath?: NullableStringFieldUpdateOperationsInput | string | null
|
|
cancellationConfirmationPath?: NullableStringFieldUpdateOperationsInput | string | null
|
|
cancellationLetterOptionsPath?: NullableStringFieldUpdateOperationsInput | string | null
|
|
cancellationConfirmationOptionsPath?: NullableStringFieldUpdateOperationsInput | string | null
|
|
cancellationConfirmationDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
cancellationConfirmationOptionsDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
wasSpecialCancellation?: BoolFieldUpdateOperationsInput | boolean
|
|
portalUsername?: NullableStringFieldUpdateOperationsInput | string | null
|
|
portalPasswordEncrypted?: NullableStringFieldUpdateOperationsInput | string | null
|
|
notes?: NullableStringFieldUpdateOperationsInput | string | null
|
|
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
customer?: CustomerUpdateOneRequiredWithoutContractsNestedInput
|
|
contractCategory?: ContractCategoryUpdateOneWithoutContractsNestedInput
|
|
address?: AddressUpdateOneWithoutContractsAsDeliveryNestedInput
|
|
billingAddress?: AddressUpdateOneWithoutContractsAsBillingNestedInput
|
|
bankCard?: BankCardUpdateOneWithoutContractsNestedInput
|
|
identityDocument?: IdentityDocumentUpdateOneWithoutContractsNestedInput
|
|
salesPlatform?: SalesPlatformUpdateOneWithoutContractsNestedInput
|
|
cancellationPeriod?: CancellationPeriodUpdateOneWithoutContractsNestedInput
|
|
contractDuration?: ContractDurationUpdateOneWithoutContractsNestedInput
|
|
previousContract?: ContractUpdateOneWithoutFollowUpContractNestedInput
|
|
followUpContract?: ContractUpdateOneWithoutPreviousContractNestedInput
|
|
provider?: ProviderUpdateOneWithoutContractsNestedInput
|
|
tariff?: TariffUpdateOneWithoutContractsNestedInput
|
|
stressfreiEmail?: StressfreiEmailUpdateOneWithoutContractsNestedInput
|
|
energyDetails?: EnergyContractDetailsUpdateOneWithoutContractNestedInput
|
|
internetDetails?: InternetContractDetailsUpdateOneWithoutContractNestedInput
|
|
mobileDetails?: MobileContractDetailsUpdateOneWithoutContractNestedInput
|
|
carInsuranceDetails?: CarInsuranceDetailsUpdateOneWithoutContractNestedInput
|
|
tasks?: ContractTaskUpdateManyWithoutContractNestedInput
|
|
assignedEmails?: CachedEmailUpdateManyWithoutContractNestedInput
|
|
}
|
|
|
|
export type ContractUncheckedUpdateWithoutTvDetailsInput = {
|
|
id?: IntFieldUpdateOperationsInput | number
|
|
contractNumber?: StringFieldUpdateOperationsInput | string
|
|
customerId?: IntFieldUpdateOperationsInput | number
|
|
type?: EnumContractTypeFieldUpdateOperationsInput | $Enums.ContractType
|
|
status?: EnumContractStatusFieldUpdateOperationsInput | $Enums.ContractStatus
|
|
contractCategoryId?: NullableIntFieldUpdateOperationsInput | number | null
|
|
addressId?: NullableIntFieldUpdateOperationsInput | number | null
|
|
billingAddressId?: NullableIntFieldUpdateOperationsInput | number | null
|
|
bankCardId?: NullableIntFieldUpdateOperationsInput | number | null
|
|
identityDocumentId?: NullableIntFieldUpdateOperationsInput | number | null
|
|
salesPlatformId?: NullableIntFieldUpdateOperationsInput | number | null
|
|
cancellationPeriodId?: NullableIntFieldUpdateOperationsInput | number | null
|
|
contractDurationId?: NullableIntFieldUpdateOperationsInput | number | null
|
|
previousContractId?: NullableIntFieldUpdateOperationsInput | number | null
|
|
providerId?: NullableIntFieldUpdateOperationsInput | number | null
|
|
tariffId?: NullableIntFieldUpdateOperationsInput | number | null
|
|
providerName?: NullableStringFieldUpdateOperationsInput | string | null
|
|
tariffName?: NullableStringFieldUpdateOperationsInput | string | null
|
|
customerNumberAtProvider?: NullableStringFieldUpdateOperationsInput | string | null
|
|
priceFirst12Months?: NullableStringFieldUpdateOperationsInput | string | null
|
|
priceFrom13Months?: NullableStringFieldUpdateOperationsInput | string | null
|
|
priceAfter24Months?: NullableStringFieldUpdateOperationsInput | string | null
|
|
startDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
endDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
commission?: NullableFloatFieldUpdateOperationsInput | number | null
|
|
cancellationLetterPath?: NullableStringFieldUpdateOperationsInput | string | null
|
|
cancellationConfirmationPath?: NullableStringFieldUpdateOperationsInput | string | null
|
|
cancellationLetterOptionsPath?: NullableStringFieldUpdateOperationsInput | string | null
|
|
cancellationConfirmationOptionsPath?: NullableStringFieldUpdateOperationsInput | string | null
|
|
cancellationConfirmationDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
cancellationConfirmationOptionsDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
wasSpecialCancellation?: BoolFieldUpdateOperationsInput | boolean
|
|
portalUsername?: NullableStringFieldUpdateOperationsInput | string | null
|
|
portalPasswordEncrypted?: NullableStringFieldUpdateOperationsInput | string | null
|
|
stressfreiEmailId?: NullableIntFieldUpdateOperationsInput | number | null
|
|
notes?: NullableStringFieldUpdateOperationsInput | string | null
|
|
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
followUpContract?: ContractUncheckedUpdateOneWithoutPreviousContractNestedInput
|
|
energyDetails?: EnergyContractDetailsUncheckedUpdateOneWithoutContractNestedInput
|
|
internetDetails?: InternetContractDetailsUncheckedUpdateOneWithoutContractNestedInput
|
|
mobileDetails?: MobileContractDetailsUncheckedUpdateOneWithoutContractNestedInput
|
|
carInsuranceDetails?: CarInsuranceDetailsUncheckedUpdateOneWithoutContractNestedInput
|
|
tasks?: ContractTaskUncheckedUpdateManyWithoutContractNestedInput
|
|
assignedEmails?: CachedEmailUncheckedUpdateManyWithoutContractNestedInput
|
|
}
|
|
|
|
export type ContractCreateWithoutCarInsuranceDetailsInput = {
|
|
contractNumber: string
|
|
type: $Enums.ContractType
|
|
status?: $Enums.ContractStatus
|
|
providerName?: string | null
|
|
tariffName?: string | null
|
|
customerNumberAtProvider?: string | null
|
|
priceFirst12Months?: string | null
|
|
priceFrom13Months?: string | null
|
|
priceAfter24Months?: string | null
|
|
startDate?: Date | string | null
|
|
endDate?: Date | string | null
|
|
commission?: number | null
|
|
cancellationLetterPath?: string | null
|
|
cancellationConfirmationPath?: string | null
|
|
cancellationLetterOptionsPath?: string | null
|
|
cancellationConfirmationOptionsPath?: string | null
|
|
cancellationConfirmationDate?: Date | string | null
|
|
cancellationConfirmationOptionsDate?: Date | string | null
|
|
wasSpecialCancellation?: boolean
|
|
portalUsername?: string | null
|
|
portalPasswordEncrypted?: string | null
|
|
notes?: string | null
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
customer: CustomerCreateNestedOneWithoutContractsInput
|
|
contractCategory?: ContractCategoryCreateNestedOneWithoutContractsInput
|
|
address?: AddressCreateNestedOneWithoutContractsAsDeliveryInput
|
|
billingAddress?: AddressCreateNestedOneWithoutContractsAsBillingInput
|
|
bankCard?: BankCardCreateNestedOneWithoutContractsInput
|
|
identityDocument?: IdentityDocumentCreateNestedOneWithoutContractsInput
|
|
salesPlatform?: SalesPlatformCreateNestedOneWithoutContractsInput
|
|
cancellationPeriod?: CancellationPeriodCreateNestedOneWithoutContractsInput
|
|
contractDuration?: ContractDurationCreateNestedOneWithoutContractsInput
|
|
previousContract?: ContractCreateNestedOneWithoutFollowUpContractInput
|
|
followUpContract?: ContractCreateNestedOneWithoutPreviousContractInput
|
|
provider?: ProviderCreateNestedOneWithoutContractsInput
|
|
tariff?: TariffCreateNestedOneWithoutContractsInput
|
|
stressfreiEmail?: StressfreiEmailCreateNestedOneWithoutContractsInput
|
|
energyDetails?: EnergyContractDetailsCreateNestedOneWithoutContractInput
|
|
internetDetails?: InternetContractDetailsCreateNestedOneWithoutContractInput
|
|
mobileDetails?: MobileContractDetailsCreateNestedOneWithoutContractInput
|
|
tvDetails?: TvContractDetailsCreateNestedOneWithoutContractInput
|
|
tasks?: ContractTaskCreateNestedManyWithoutContractInput
|
|
assignedEmails?: CachedEmailCreateNestedManyWithoutContractInput
|
|
}
|
|
|
|
export type ContractUncheckedCreateWithoutCarInsuranceDetailsInput = {
|
|
id?: number
|
|
contractNumber: string
|
|
customerId: number
|
|
type: $Enums.ContractType
|
|
status?: $Enums.ContractStatus
|
|
contractCategoryId?: number | null
|
|
addressId?: number | null
|
|
billingAddressId?: number | null
|
|
bankCardId?: number | null
|
|
identityDocumentId?: number | null
|
|
salesPlatformId?: number | null
|
|
cancellationPeriodId?: number | null
|
|
contractDurationId?: number | null
|
|
previousContractId?: number | null
|
|
providerId?: number | null
|
|
tariffId?: number | null
|
|
providerName?: string | null
|
|
tariffName?: string | null
|
|
customerNumberAtProvider?: string | null
|
|
priceFirst12Months?: string | null
|
|
priceFrom13Months?: string | null
|
|
priceAfter24Months?: string | null
|
|
startDate?: Date | string | null
|
|
endDate?: Date | string | null
|
|
commission?: number | null
|
|
cancellationLetterPath?: string | null
|
|
cancellationConfirmationPath?: string | null
|
|
cancellationLetterOptionsPath?: string | null
|
|
cancellationConfirmationOptionsPath?: string | null
|
|
cancellationConfirmationDate?: Date | string | null
|
|
cancellationConfirmationOptionsDate?: Date | string | null
|
|
wasSpecialCancellation?: boolean
|
|
portalUsername?: string | null
|
|
portalPasswordEncrypted?: string | null
|
|
stressfreiEmailId?: number | null
|
|
notes?: string | null
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
followUpContract?: ContractUncheckedCreateNestedOneWithoutPreviousContractInput
|
|
energyDetails?: EnergyContractDetailsUncheckedCreateNestedOneWithoutContractInput
|
|
internetDetails?: InternetContractDetailsUncheckedCreateNestedOneWithoutContractInput
|
|
mobileDetails?: MobileContractDetailsUncheckedCreateNestedOneWithoutContractInput
|
|
tvDetails?: TvContractDetailsUncheckedCreateNestedOneWithoutContractInput
|
|
tasks?: ContractTaskUncheckedCreateNestedManyWithoutContractInput
|
|
assignedEmails?: CachedEmailUncheckedCreateNestedManyWithoutContractInput
|
|
}
|
|
|
|
export type ContractCreateOrConnectWithoutCarInsuranceDetailsInput = {
|
|
where: ContractWhereUniqueInput
|
|
create: XOR<ContractCreateWithoutCarInsuranceDetailsInput, ContractUncheckedCreateWithoutCarInsuranceDetailsInput>
|
|
}
|
|
|
|
export type ContractUpsertWithoutCarInsuranceDetailsInput = {
|
|
update: XOR<ContractUpdateWithoutCarInsuranceDetailsInput, ContractUncheckedUpdateWithoutCarInsuranceDetailsInput>
|
|
create: XOR<ContractCreateWithoutCarInsuranceDetailsInput, ContractUncheckedCreateWithoutCarInsuranceDetailsInput>
|
|
where?: ContractWhereInput
|
|
}
|
|
|
|
export type ContractUpdateToOneWithWhereWithoutCarInsuranceDetailsInput = {
|
|
where?: ContractWhereInput
|
|
data: XOR<ContractUpdateWithoutCarInsuranceDetailsInput, ContractUncheckedUpdateWithoutCarInsuranceDetailsInput>
|
|
}
|
|
|
|
export type ContractUpdateWithoutCarInsuranceDetailsInput = {
|
|
contractNumber?: StringFieldUpdateOperationsInput | string
|
|
type?: EnumContractTypeFieldUpdateOperationsInput | $Enums.ContractType
|
|
status?: EnumContractStatusFieldUpdateOperationsInput | $Enums.ContractStatus
|
|
providerName?: NullableStringFieldUpdateOperationsInput | string | null
|
|
tariffName?: NullableStringFieldUpdateOperationsInput | string | null
|
|
customerNumberAtProvider?: NullableStringFieldUpdateOperationsInput | string | null
|
|
priceFirst12Months?: NullableStringFieldUpdateOperationsInput | string | null
|
|
priceFrom13Months?: NullableStringFieldUpdateOperationsInput | string | null
|
|
priceAfter24Months?: NullableStringFieldUpdateOperationsInput | string | null
|
|
startDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
endDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
commission?: NullableFloatFieldUpdateOperationsInput | number | null
|
|
cancellationLetterPath?: NullableStringFieldUpdateOperationsInput | string | null
|
|
cancellationConfirmationPath?: NullableStringFieldUpdateOperationsInput | string | null
|
|
cancellationLetterOptionsPath?: NullableStringFieldUpdateOperationsInput | string | null
|
|
cancellationConfirmationOptionsPath?: NullableStringFieldUpdateOperationsInput | string | null
|
|
cancellationConfirmationDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
cancellationConfirmationOptionsDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
wasSpecialCancellation?: BoolFieldUpdateOperationsInput | boolean
|
|
portalUsername?: NullableStringFieldUpdateOperationsInput | string | null
|
|
portalPasswordEncrypted?: NullableStringFieldUpdateOperationsInput | string | null
|
|
notes?: NullableStringFieldUpdateOperationsInput | string | null
|
|
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
customer?: CustomerUpdateOneRequiredWithoutContractsNestedInput
|
|
contractCategory?: ContractCategoryUpdateOneWithoutContractsNestedInput
|
|
address?: AddressUpdateOneWithoutContractsAsDeliveryNestedInput
|
|
billingAddress?: AddressUpdateOneWithoutContractsAsBillingNestedInput
|
|
bankCard?: BankCardUpdateOneWithoutContractsNestedInput
|
|
identityDocument?: IdentityDocumentUpdateOneWithoutContractsNestedInput
|
|
salesPlatform?: SalesPlatformUpdateOneWithoutContractsNestedInput
|
|
cancellationPeriod?: CancellationPeriodUpdateOneWithoutContractsNestedInput
|
|
contractDuration?: ContractDurationUpdateOneWithoutContractsNestedInput
|
|
previousContract?: ContractUpdateOneWithoutFollowUpContractNestedInput
|
|
followUpContract?: ContractUpdateOneWithoutPreviousContractNestedInput
|
|
provider?: ProviderUpdateOneWithoutContractsNestedInput
|
|
tariff?: TariffUpdateOneWithoutContractsNestedInput
|
|
stressfreiEmail?: StressfreiEmailUpdateOneWithoutContractsNestedInput
|
|
energyDetails?: EnergyContractDetailsUpdateOneWithoutContractNestedInput
|
|
internetDetails?: InternetContractDetailsUpdateOneWithoutContractNestedInput
|
|
mobileDetails?: MobileContractDetailsUpdateOneWithoutContractNestedInput
|
|
tvDetails?: TvContractDetailsUpdateOneWithoutContractNestedInput
|
|
tasks?: ContractTaskUpdateManyWithoutContractNestedInput
|
|
assignedEmails?: CachedEmailUpdateManyWithoutContractNestedInput
|
|
}
|
|
|
|
export type ContractUncheckedUpdateWithoutCarInsuranceDetailsInput = {
|
|
id?: IntFieldUpdateOperationsInput | number
|
|
contractNumber?: StringFieldUpdateOperationsInput | string
|
|
customerId?: IntFieldUpdateOperationsInput | number
|
|
type?: EnumContractTypeFieldUpdateOperationsInput | $Enums.ContractType
|
|
status?: EnumContractStatusFieldUpdateOperationsInput | $Enums.ContractStatus
|
|
contractCategoryId?: NullableIntFieldUpdateOperationsInput | number | null
|
|
addressId?: NullableIntFieldUpdateOperationsInput | number | null
|
|
billingAddressId?: NullableIntFieldUpdateOperationsInput | number | null
|
|
bankCardId?: NullableIntFieldUpdateOperationsInput | number | null
|
|
identityDocumentId?: NullableIntFieldUpdateOperationsInput | number | null
|
|
salesPlatformId?: NullableIntFieldUpdateOperationsInput | number | null
|
|
cancellationPeriodId?: NullableIntFieldUpdateOperationsInput | number | null
|
|
contractDurationId?: NullableIntFieldUpdateOperationsInput | number | null
|
|
previousContractId?: NullableIntFieldUpdateOperationsInput | number | null
|
|
providerId?: NullableIntFieldUpdateOperationsInput | number | null
|
|
tariffId?: NullableIntFieldUpdateOperationsInput | number | null
|
|
providerName?: NullableStringFieldUpdateOperationsInput | string | null
|
|
tariffName?: NullableStringFieldUpdateOperationsInput | string | null
|
|
customerNumberAtProvider?: NullableStringFieldUpdateOperationsInput | string | null
|
|
priceFirst12Months?: NullableStringFieldUpdateOperationsInput | string | null
|
|
priceFrom13Months?: NullableStringFieldUpdateOperationsInput | string | null
|
|
priceAfter24Months?: NullableStringFieldUpdateOperationsInput | string | null
|
|
startDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
endDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
commission?: NullableFloatFieldUpdateOperationsInput | number | null
|
|
cancellationLetterPath?: NullableStringFieldUpdateOperationsInput | string | null
|
|
cancellationConfirmationPath?: NullableStringFieldUpdateOperationsInput | string | null
|
|
cancellationLetterOptionsPath?: NullableStringFieldUpdateOperationsInput | string | null
|
|
cancellationConfirmationOptionsPath?: NullableStringFieldUpdateOperationsInput | string | null
|
|
cancellationConfirmationDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
cancellationConfirmationOptionsDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
wasSpecialCancellation?: BoolFieldUpdateOperationsInput | boolean
|
|
portalUsername?: NullableStringFieldUpdateOperationsInput | string | null
|
|
portalPasswordEncrypted?: NullableStringFieldUpdateOperationsInput | string | null
|
|
stressfreiEmailId?: NullableIntFieldUpdateOperationsInput | number | null
|
|
notes?: NullableStringFieldUpdateOperationsInput | string | null
|
|
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
followUpContract?: ContractUncheckedUpdateOneWithoutPreviousContractNestedInput
|
|
energyDetails?: EnergyContractDetailsUncheckedUpdateOneWithoutContractNestedInput
|
|
internetDetails?: InternetContractDetailsUncheckedUpdateOneWithoutContractNestedInput
|
|
mobileDetails?: MobileContractDetailsUncheckedUpdateOneWithoutContractNestedInput
|
|
tvDetails?: TvContractDetailsUncheckedUpdateOneWithoutContractNestedInput
|
|
tasks?: ContractTaskUncheckedUpdateManyWithoutContractNestedInput
|
|
assignedEmails?: CachedEmailUncheckedUpdateManyWithoutContractNestedInput
|
|
}
|
|
|
|
export type UserRoleCreateManyUserInput = {
|
|
roleId: number
|
|
}
|
|
|
|
export type UserRoleUpdateWithoutUserInput = {
|
|
role?: RoleUpdateOneRequiredWithoutUsersNestedInput
|
|
}
|
|
|
|
export type UserRoleUncheckedUpdateWithoutUserInput = {
|
|
roleId?: IntFieldUpdateOperationsInput | number
|
|
}
|
|
|
|
export type UserRoleUncheckedUpdateManyWithoutUserInput = {
|
|
roleId?: IntFieldUpdateOperationsInput | number
|
|
}
|
|
|
|
export type RolePermissionCreateManyRoleInput = {
|
|
permissionId: number
|
|
}
|
|
|
|
export type UserRoleCreateManyRoleInput = {
|
|
userId: number
|
|
}
|
|
|
|
export type RolePermissionUpdateWithoutRoleInput = {
|
|
permission?: PermissionUpdateOneRequiredWithoutRolesNestedInput
|
|
}
|
|
|
|
export type RolePermissionUncheckedUpdateWithoutRoleInput = {
|
|
permissionId?: IntFieldUpdateOperationsInput | number
|
|
}
|
|
|
|
export type RolePermissionUncheckedUpdateManyWithoutRoleInput = {
|
|
permissionId?: IntFieldUpdateOperationsInput | number
|
|
}
|
|
|
|
export type UserRoleUpdateWithoutRoleInput = {
|
|
user?: UserUpdateOneRequiredWithoutRolesNestedInput
|
|
}
|
|
|
|
export type UserRoleUncheckedUpdateWithoutRoleInput = {
|
|
userId?: IntFieldUpdateOperationsInput | number
|
|
}
|
|
|
|
export type UserRoleUncheckedUpdateManyWithoutRoleInput = {
|
|
userId?: IntFieldUpdateOperationsInput | number
|
|
}
|
|
|
|
export type RolePermissionCreateManyPermissionInput = {
|
|
roleId: number
|
|
}
|
|
|
|
export type RolePermissionUpdateWithoutPermissionInput = {
|
|
role?: RoleUpdateOneRequiredWithoutPermissionsNestedInput
|
|
}
|
|
|
|
export type RolePermissionUncheckedUpdateWithoutPermissionInput = {
|
|
roleId?: IntFieldUpdateOperationsInput | number
|
|
}
|
|
|
|
export type RolePermissionUncheckedUpdateManyWithoutPermissionInput = {
|
|
roleId?: IntFieldUpdateOperationsInput | number
|
|
}
|
|
|
|
export type AddressCreateManyCustomerInput = {
|
|
id?: number
|
|
type?: $Enums.AddressType
|
|
street: string
|
|
houseNumber: string
|
|
postalCode: string
|
|
city: string
|
|
country?: string
|
|
isDefault?: boolean
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
}
|
|
|
|
export type BankCardCreateManyCustomerInput = {
|
|
id?: number
|
|
accountHolder: string
|
|
iban: string
|
|
bic?: string | null
|
|
bankName?: string | null
|
|
expiryDate?: Date | string | null
|
|
documentPath?: string | null
|
|
isActive?: boolean
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
}
|
|
|
|
export type IdentityDocumentCreateManyCustomerInput = {
|
|
id?: number
|
|
type?: $Enums.DocumentType
|
|
documentNumber: string
|
|
issuingAuthority?: string | null
|
|
issueDate?: Date | string | null
|
|
expiryDate?: Date | string | null
|
|
documentPath?: string | null
|
|
isActive?: boolean
|
|
licenseClasses?: string | null
|
|
licenseIssueDate?: Date | string | null
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
}
|
|
|
|
export type MeterCreateManyCustomerInput = {
|
|
id?: number
|
|
meterNumber: string
|
|
type: $Enums.MeterType
|
|
location?: string | null
|
|
isActive?: boolean
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
}
|
|
|
|
export type StressfreiEmailCreateManyCustomerInput = {
|
|
id?: number
|
|
email: string
|
|
platform?: string | null
|
|
notes?: string | null
|
|
isActive?: boolean
|
|
isProvisioned?: boolean
|
|
provisionedAt?: Date | string | null
|
|
provisionError?: string | null
|
|
hasMailbox?: boolean
|
|
emailPasswordEncrypted?: string | null
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
}
|
|
|
|
export type ContractCreateManyCustomerInput = {
|
|
id?: number
|
|
contractNumber: string
|
|
type: $Enums.ContractType
|
|
status?: $Enums.ContractStatus
|
|
contractCategoryId?: number | null
|
|
addressId?: number | null
|
|
billingAddressId?: number | null
|
|
bankCardId?: number | null
|
|
identityDocumentId?: number | null
|
|
salesPlatformId?: number | null
|
|
cancellationPeriodId?: number | null
|
|
contractDurationId?: number | null
|
|
previousContractId?: number | null
|
|
providerId?: number | null
|
|
tariffId?: number | null
|
|
providerName?: string | null
|
|
tariffName?: string | null
|
|
customerNumberAtProvider?: string | null
|
|
priceFirst12Months?: string | null
|
|
priceFrom13Months?: string | null
|
|
priceAfter24Months?: string | null
|
|
startDate?: Date | string | null
|
|
endDate?: Date | string | null
|
|
commission?: number | null
|
|
cancellationLetterPath?: string | null
|
|
cancellationConfirmationPath?: string | null
|
|
cancellationLetterOptionsPath?: string | null
|
|
cancellationConfirmationOptionsPath?: string | null
|
|
cancellationConfirmationDate?: Date | string | null
|
|
cancellationConfirmationOptionsDate?: Date | string | null
|
|
wasSpecialCancellation?: boolean
|
|
portalUsername?: string | null
|
|
portalPasswordEncrypted?: string | null
|
|
stressfreiEmailId?: number | null
|
|
notes?: string | null
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
}
|
|
|
|
export type CustomerRepresentativeCreateManyRepresentativeInput = {
|
|
id?: number
|
|
customerId: number
|
|
notes?: string | null
|
|
isActive?: boolean
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
}
|
|
|
|
export type CustomerRepresentativeCreateManyCustomerInput = {
|
|
id?: number
|
|
representativeId: number
|
|
notes?: string | null
|
|
isActive?: boolean
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
}
|
|
|
|
export type AddressUpdateWithoutCustomerInput = {
|
|
type?: EnumAddressTypeFieldUpdateOperationsInput | $Enums.AddressType
|
|
street?: StringFieldUpdateOperationsInput | string
|
|
houseNumber?: StringFieldUpdateOperationsInput | string
|
|
postalCode?: StringFieldUpdateOperationsInput | string
|
|
city?: StringFieldUpdateOperationsInput | string
|
|
country?: StringFieldUpdateOperationsInput | string
|
|
isDefault?: BoolFieldUpdateOperationsInput | boolean
|
|
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
contractsAsDelivery?: ContractUpdateManyWithoutAddressNestedInput
|
|
contractsAsBilling?: ContractUpdateManyWithoutBillingAddressNestedInput
|
|
}
|
|
|
|
export type AddressUncheckedUpdateWithoutCustomerInput = {
|
|
id?: IntFieldUpdateOperationsInput | number
|
|
type?: EnumAddressTypeFieldUpdateOperationsInput | $Enums.AddressType
|
|
street?: StringFieldUpdateOperationsInput | string
|
|
houseNumber?: StringFieldUpdateOperationsInput | string
|
|
postalCode?: StringFieldUpdateOperationsInput | string
|
|
city?: StringFieldUpdateOperationsInput | string
|
|
country?: StringFieldUpdateOperationsInput | string
|
|
isDefault?: BoolFieldUpdateOperationsInput | boolean
|
|
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
contractsAsDelivery?: ContractUncheckedUpdateManyWithoutAddressNestedInput
|
|
contractsAsBilling?: ContractUncheckedUpdateManyWithoutBillingAddressNestedInput
|
|
}
|
|
|
|
export type AddressUncheckedUpdateManyWithoutCustomerInput = {
|
|
id?: IntFieldUpdateOperationsInput | number
|
|
type?: EnumAddressTypeFieldUpdateOperationsInput | $Enums.AddressType
|
|
street?: StringFieldUpdateOperationsInput | string
|
|
houseNumber?: StringFieldUpdateOperationsInput | string
|
|
postalCode?: StringFieldUpdateOperationsInput | string
|
|
city?: StringFieldUpdateOperationsInput | string
|
|
country?: StringFieldUpdateOperationsInput | string
|
|
isDefault?: BoolFieldUpdateOperationsInput | boolean
|
|
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
}
|
|
|
|
export type BankCardUpdateWithoutCustomerInput = {
|
|
accountHolder?: StringFieldUpdateOperationsInput | string
|
|
iban?: StringFieldUpdateOperationsInput | string
|
|
bic?: NullableStringFieldUpdateOperationsInput | string | null
|
|
bankName?: NullableStringFieldUpdateOperationsInput | string | null
|
|
expiryDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
documentPath?: NullableStringFieldUpdateOperationsInput | string | null
|
|
isActive?: BoolFieldUpdateOperationsInput | boolean
|
|
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
contracts?: ContractUpdateManyWithoutBankCardNestedInput
|
|
}
|
|
|
|
export type BankCardUncheckedUpdateWithoutCustomerInput = {
|
|
id?: IntFieldUpdateOperationsInput | number
|
|
accountHolder?: StringFieldUpdateOperationsInput | string
|
|
iban?: StringFieldUpdateOperationsInput | string
|
|
bic?: NullableStringFieldUpdateOperationsInput | string | null
|
|
bankName?: NullableStringFieldUpdateOperationsInput | string | null
|
|
expiryDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
documentPath?: NullableStringFieldUpdateOperationsInput | string | null
|
|
isActive?: BoolFieldUpdateOperationsInput | boolean
|
|
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
contracts?: ContractUncheckedUpdateManyWithoutBankCardNestedInput
|
|
}
|
|
|
|
export type BankCardUncheckedUpdateManyWithoutCustomerInput = {
|
|
id?: IntFieldUpdateOperationsInput | number
|
|
accountHolder?: StringFieldUpdateOperationsInput | string
|
|
iban?: StringFieldUpdateOperationsInput | string
|
|
bic?: NullableStringFieldUpdateOperationsInput | string | null
|
|
bankName?: NullableStringFieldUpdateOperationsInput | string | null
|
|
expiryDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
documentPath?: NullableStringFieldUpdateOperationsInput | string | null
|
|
isActive?: BoolFieldUpdateOperationsInput | boolean
|
|
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
}
|
|
|
|
export type IdentityDocumentUpdateWithoutCustomerInput = {
|
|
type?: EnumDocumentTypeFieldUpdateOperationsInput | $Enums.DocumentType
|
|
documentNumber?: StringFieldUpdateOperationsInput | string
|
|
issuingAuthority?: NullableStringFieldUpdateOperationsInput | string | null
|
|
issueDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
expiryDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
documentPath?: NullableStringFieldUpdateOperationsInput | string | null
|
|
isActive?: BoolFieldUpdateOperationsInput | boolean
|
|
licenseClasses?: NullableStringFieldUpdateOperationsInput | string | null
|
|
licenseIssueDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
contracts?: ContractUpdateManyWithoutIdentityDocumentNestedInput
|
|
}
|
|
|
|
export type IdentityDocumentUncheckedUpdateWithoutCustomerInput = {
|
|
id?: IntFieldUpdateOperationsInput | number
|
|
type?: EnumDocumentTypeFieldUpdateOperationsInput | $Enums.DocumentType
|
|
documentNumber?: StringFieldUpdateOperationsInput | string
|
|
issuingAuthority?: NullableStringFieldUpdateOperationsInput | string | null
|
|
issueDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
expiryDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
documentPath?: NullableStringFieldUpdateOperationsInput | string | null
|
|
isActive?: BoolFieldUpdateOperationsInput | boolean
|
|
licenseClasses?: NullableStringFieldUpdateOperationsInput | string | null
|
|
licenseIssueDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
contracts?: ContractUncheckedUpdateManyWithoutIdentityDocumentNestedInput
|
|
}
|
|
|
|
export type IdentityDocumentUncheckedUpdateManyWithoutCustomerInput = {
|
|
id?: IntFieldUpdateOperationsInput | number
|
|
type?: EnumDocumentTypeFieldUpdateOperationsInput | $Enums.DocumentType
|
|
documentNumber?: StringFieldUpdateOperationsInput | string
|
|
issuingAuthority?: NullableStringFieldUpdateOperationsInput | string | null
|
|
issueDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
expiryDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
documentPath?: NullableStringFieldUpdateOperationsInput | string | null
|
|
isActive?: BoolFieldUpdateOperationsInput | boolean
|
|
licenseClasses?: NullableStringFieldUpdateOperationsInput | string | null
|
|
licenseIssueDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
}
|
|
|
|
export type MeterUpdateWithoutCustomerInput = {
|
|
meterNumber?: StringFieldUpdateOperationsInput | string
|
|
type?: EnumMeterTypeFieldUpdateOperationsInput | $Enums.MeterType
|
|
location?: NullableStringFieldUpdateOperationsInput | string | null
|
|
isActive?: BoolFieldUpdateOperationsInput | boolean
|
|
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
readings?: MeterReadingUpdateManyWithoutMeterNestedInput
|
|
energyDetails?: EnergyContractDetailsUpdateManyWithoutMeterNestedInput
|
|
}
|
|
|
|
export type MeterUncheckedUpdateWithoutCustomerInput = {
|
|
id?: IntFieldUpdateOperationsInput | number
|
|
meterNumber?: StringFieldUpdateOperationsInput | string
|
|
type?: EnumMeterTypeFieldUpdateOperationsInput | $Enums.MeterType
|
|
location?: NullableStringFieldUpdateOperationsInput | string | null
|
|
isActive?: BoolFieldUpdateOperationsInput | boolean
|
|
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
readings?: MeterReadingUncheckedUpdateManyWithoutMeterNestedInput
|
|
energyDetails?: EnergyContractDetailsUncheckedUpdateManyWithoutMeterNestedInput
|
|
}
|
|
|
|
export type MeterUncheckedUpdateManyWithoutCustomerInput = {
|
|
id?: IntFieldUpdateOperationsInput | number
|
|
meterNumber?: StringFieldUpdateOperationsInput | string
|
|
type?: EnumMeterTypeFieldUpdateOperationsInput | $Enums.MeterType
|
|
location?: NullableStringFieldUpdateOperationsInput | string | null
|
|
isActive?: BoolFieldUpdateOperationsInput | boolean
|
|
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
}
|
|
|
|
export type StressfreiEmailUpdateWithoutCustomerInput = {
|
|
email?: StringFieldUpdateOperationsInput | string
|
|
platform?: NullableStringFieldUpdateOperationsInput | string | null
|
|
notes?: NullableStringFieldUpdateOperationsInput | string | null
|
|
isActive?: BoolFieldUpdateOperationsInput | boolean
|
|
isProvisioned?: BoolFieldUpdateOperationsInput | boolean
|
|
provisionedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
provisionError?: NullableStringFieldUpdateOperationsInput | string | null
|
|
hasMailbox?: BoolFieldUpdateOperationsInput | boolean
|
|
emailPasswordEncrypted?: NullableStringFieldUpdateOperationsInput | string | null
|
|
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
contracts?: ContractUpdateManyWithoutStressfreiEmailNestedInput
|
|
cachedEmails?: CachedEmailUpdateManyWithoutStressfreiEmailNestedInput
|
|
}
|
|
|
|
export type StressfreiEmailUncheckedUpdateWithoutCustomerInput = {
|
|
id?: IntFieldUpdateOperationsInput | number
|
|
email?: StringFieldUpdateOperationsInput | string
|
|
platform?: NullableStringFieldUpdateOperationsInput | string | null
|
|
notes?: NullableStringFieldUpdateOperationsInput | string | null
|
|
isActive?: BoolFieldUpdateOperationsInput | boolean
|
|
isProvisioned?: BoolFieldUpdateOperationsInput | boolean
|
|
provisionedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
provisionError?: NullableStringFieldUpdateOperationsInput | string | null
|
|
hasMailbox?: BoolFieldUpdateOperationsInput | boolean
|
|
emailPasswordEncrypted?: NullableStringFieldUpdateOperationsInput | string | null
|
|
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
contracts?: ContractUncheckedUpdateManyWithoutStressfreiEmailNestedInput
|
|
cachedEmails?: CachedEmailUncheckedUpdateManyWithoutStressfreiEmailNestedInput
|
|
}
|
|
|
|
export type StressfreiEmailUncheckedUpdateManyWithoutCustomerInput = {
|
|
id?: IntFieldUpdateOperationsInput | number
|
|
email?: StringFieldUpdateOperationsInput | string
|
|
platform?: NullableStringFieldUpdateOperationsInput | string | null
|
|
notes?: NullableStringFieldUpdateOperationsInput | string | null
|
|
isActive?: BoolFieldUpdateOperationsInput | boolean
|
|
isProvisioned?: BoolFieldUpdateOperationsInput | boolean
|
|
provisionedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
provisionError?: NullableStringFieldUpdateOperationsInput | string | null
|
|
hasMailbox?: BoolFieldUpdateOperationsInput | boolean
|
|
emailPasswordEncrypted?: NullableStringFieldUpdateOperationsInput | string | null
|
|
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
}
|
|
|
|
export type ContractUpdateWithoutCustomerInput = {
|
|
contractNumber?: StringFieldUpdateOperationsInput | string
|
|
type?: EnumContractTypeFieldUpdateOperationsInput | $Enums.ContractType
|
|
status?: EnumContractStatusFieldUpdateOperationsInput | $Enums.ContractStatus
|
|
providerName?: NullableStringFieldUpdateOperationsInput | string | null
|
|
tariffName?: NullableStringFieldUpdateOperationsInput | string | null
|
|
customerNumberAtProvider?: NullableStringFieldUpdateOperationsInput | string | null
|
|
priceFirst12Months?: NullableStringFieldUpdateOperationsInput | string | null
|
|
priceFrom13Months?: NullableStringFieldUpdateOperationsInput | string | null
|
|
priceAfter24Months?: NullableStringFieldUpdateOperationsInput | string | null
|
|
startDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
endDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
commission?: NullableFloatFieldUpdateOperationsInput | number | null
|
|
cancellationLetterPath?: NullableStringFieldUpdateOperationsInput | string | null
|
|
cancellationConfirmationPath?: NullableStringFieldUpdateOperationsInput | string | null
|
|
cancellationLetterOptionsPath?: NullableStringFieldUpdateOperationsInput | string | null
|
|
cancellationConfirmationOptionsPath?: NullableStringFieldUpdateOperationsInput | string | null
|
|
cancellationConfirmationDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
cancellationConfirmationOptionsDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
wasSpecialCancellation?: BoolFieldUpdateOperationsInput | boolean
|
|
portalUsername?: NullableStringFieldUpdateOperationsInput | string | null
|
|
portalPasswordEncrypted?: NullableStringFieldUpdateOperationsInput | string | null
|
|
notes?: NullableStringFieldUpdateOperationsInput | string | null
|
|
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
contractCategory?: ContractCategoryUpdateOneWithoutContractsNestedInput
|
|
address?: AddressUpdateOneWithoutContractsAsDeliveryNestedInput
|
|
billingAddress?: AddressUpdateOneWithoutContractsAsBillingNestedInput
|
|
bankCard?: BankCardUpdateOneWithoutContractsNestedInput
|
|
identityDocument?: IdentityDocumentUpdateOneWithoutContractsNestedInput
|
|
salesPlatform?: SalesPlatformUpdateOneWithoutContractsNestedInput
|
|
cancellationPeriod?: CancellationPeriodUpdateOneWithoutContractsNestedInput
|
|
contractDuration?: ContractDurationUpdateOneWithoutContractsNestedInput
|
|
previousContract?: ContractUpdateOneWithoutFollowUpContractNestedInput
|
|
followUpContract?: ContractUpdateOneWithoutPreviousContractNestedInput
|
|
provider?: ProviderUpdateOneWithoutContractsNestedInput
|
|
tariff?: TariffUpdateOneWithoutContractsNestedInput
|
|
stressfreiEmail?: StressfreiEmailUpdateOneWithoutContractsNestedInput
|
|
energyDetails?: EnergyContractDetailsUpdateOneWithoutContractNestedInput
|
|
internetDetails?: InternetContractDetailsUpdateOneWithoutContractNestedInput
|
|
mobileDetails?: MobileContractDetailsUpdateOneWithoutContractNestedInput
|
|
tvDetails?: TvContractDetailsUpdateOneWithoutContractNestedInput
|
|
carInsuranceDetails?: CarInsuranceDetailsUpdateOneWithoutContractNestedInput
|
|
tasks?: ContractTaskUpdateManyWithoutContractNestedInput
|
|
assignedEmails?: CachedEmailUpdateManyWithoutContractNestedInput
|
|
}
|
|
|
|
export type ContractUncheckedUpdateWithoutCustomerInput = {
|
|
id?: IntFieldUpdateOperationsInput | number
|
|
contractNumber?: StringFieldUpdateOperationsInput | string
|
|
type?: EnumContractTypeFieldUpdateOperationsInput | $Enums.ContractType
|
|
status?: EnumContractStatusFieldUpdateOperationsInput | $Enums.ContractStatus
|
|
contractCategoryId?: NullableIntFieldUpdateOperationsInput | number | null
|
|
addressId?: NullableIntFieldUpdateOperationsInput | number | null
|
|
billingAddressId?: NullableIntFieldUpdateOperationsInput | number | null
|
|
bankCardId?: NullableIntFieldUpdateOperationsInput | number | null
|
|
identityDocumentId?: NullableIntFieldUpdateOperationsInput | number | null
|
|
salesPlatformId?: NullableIntFieldUpdateOperationsInput | number | null
|
|
cancellationPeriodId?: NullableIntFieldUpdateOperationsInput | number | null
|
|
contractDurationId?: NullableIntFieldUpdateOperationsInput | number | null
|
|
previousContractId?: NullableIntFieldUpdateOperationsInput | number | null
|
|
providerId?: NullableIntFieldUpdateOperationsInput | number | null
|
|
tariffId?: NullableIntFieldUpdateOperationsInput | number | null
|
|
providerName?: NullableStringFieldUpdateOperationsInput | string | null
|
|
tariffName?: NullableStringFieldUpdateOperationsInput | string | null
|
|
customerNumberAtProvider?: NullableStringFieldUpdateOperationsInput | string | null
|
|
priceFirst12Months?: NullableStringFieldUpdateOperationsInput | string | null
|
|
priceFrom13Months?: NullableStringFieldUpdateOperationsInput | string | null
|
|
priceAfter24Months?: NullableStringFieldUpdateOperationsInput | string | null
|
|
startDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
endDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
commission?: NullableFloatFieldUpdateOperationsInput | number | null
|
|
cancellationLetterPath?: NullableStringFieldUpdateOperationsInput | string | null
|
|
cancellationConfirmationPath?: NullableStringFieldUpdateOperationsInput | string | null
|
|
cancellationLetterOptionsPath?: NullableStringFieldUpdateOperationsInput | string | null
|
|
cancellationConfirmationOptionsPath?: NullableStringFieldUpdateOperationsInput | string | null
|
|
cancellationConfirmationDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
cancellationConfirmationOptionsDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
wasSpecialCancellation?: BoolFieldUpdateOperationsInput | boolean
|
|
portalUsername?: NullableStringFieldUpdateOperationsInput | string | null
|
|
portalPasswordEncrypted?: NullableStringFieldUpdateOperationsInput | string | null
|
|
stressfreiEmailId?: NullableIntFieldUpdateOperationsInput | number | null
|
|
notes?: NullableStringFieldUpdateOperationsInput | string | null
|
|
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
followUpContract?: ContractUncheckedUpdateOneWithoutPreviousContractNestedInput
|
|
energyDetails?: EnergyContractDetailsUncheckedUpdateOneWithoutContractNestedInput
|
|
internetDetails?: InternetContractDetailsUncheckedUpdateOneWithoutContractNestedInput
|
|
mobileDetails?: MobileContractDetailsUncheckedUpdateOneWithoutContractNestedInput
|
|
tvDetails?: TvContractDetailsUncheckedUpdateOneWithoutContractNestedInput
|
|
carInsuranceDetails?: CarInsuranceDetailsUncheckedUpdateOneWithoutContractNestedInput
|
|
tasks?: ContractTaskUncheckedUpdateManyWithoutContractNestedInput
|
|
assignedEmails?: CachedEmailUncheckedUpdateManyWithoutContractNestedInput
|
|
}
|
|
|
|
export type ContractUncheckedUpdateManyWithoutCustomerInput = {
|
|
id?: IntFieldUpdateOperationsInput | number
|
|
contractNumber?: StringFieldUpdateOperationsInput | string
|
|
type?: EnumContractTypeFieldUpdateOperationsInput | $Enums.ContractType
|
|
status?: EnumContractStatusFieldUpdateOperationsInput | $Enums.ContractStatus
|
|
contractCategoryId?: NullableIntFieldUpdateOperationsInput | number | null
|
|
addressId?: NullableIntFieldUpdateOperationsInput | number | null
|
|
billingAddressId?: NullableIntFieldUpdateOperationsInput | number | null
|
|
bankCardId?: NullableIntFieldUpdateOperationsInput | number | null
|
|
identityDocumentId?: NullableIntFieldUpdateOperationsInput | number | null
|
|
salesPlatformId?: NullableIntFieldUpdateOperationsInput | number | null
|
|
cancellationPeriodId?: NullableIntFieldUpdateOperationsInput | number | null
|
|
contractDurationId?: NullableIntFieldUpdateOperationsInput | number | null
|
|
previousContractId?: NullableIntFieldUpdateOperationsInput | number | null
|
|
providerId?: NullableIntFieldUpdateOperationsInput | number | null
|
|
tariffId?: NullableIntFieldUpdateOperationsInput | number | null
|
|
providerName?: NullableStringFieldUpdateOperationsInput | string | null
|
|
tariffName?: NullableStringFieldUpdateOperationsInput | string | null
|
|
customerNumberAtProvider?: NullableStringFieldUpdateOperationsInput | string | null
|
|
priceFirst12Months?: NullableStringFieldUpdateOperationsInput | string | null
|
|
priceFrom13Months?: NullableStringFieldUpdateOperationsInput | string | null
|
|
priceAfter24Months?: NullableStringFieldUpdateOperationsInput | string | null
|
|
startDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
endDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
commission?: NullableFloatFieldUpdateOperationsInput | number | null
|
|
cancellationLetterPath?: NullableStringFieldUpdateOperationsInput | string | null
|
|
cancellationConfirmationPath?: NullableStringFieldUpdateOperationsInput | string | null
|
|
cancellationLetterOptionsPath?: NullableStringFieldUpdateOperationsInput | string | null
|
|
cancellationConfirmationOptionsPath?: NullableStringFieldUpdateOperationsInput | string | null
|
|
cancellationConfirmationDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
cancellationConfirmationOptionsDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
wasSpecialCancellation?: BoolFieldUpdateOperationsInput | boolean
|
|
portalUsername?: NullableStringFieldUpdateOperationsInput | string | null
|
|
portalPasswordEncrypted?: NullableStringFieldUpdateOperationsInput | string | null
|
|
stressfreiEmailId?: NullableIntFieldUpdateOperationsInput | number | null
|
|
notes?: NullableStringFieldUpdateOperationsInput | string | null
|
|
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
}
|
|
|
|
export type CustomerRepresentativeUpdateWithoutRepresentativeInput = {
|
|
notes?: NullableStringFieldUpdateOperationsInput | string | null
|
|
isActive?: BoolFieldUpdateOperationsInput | boolean
|
|
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
customer?: CustomerUpdateOneRequiredWithoutRepresentedByNestedInput
|
|
}
|
|
|
|
export type CustomerRepresentativeUncheckedUpdateWithoutRepresentativeInput = {
|
|
id?: IntFieldUpdateOperationsInput | number
|
|
customerId?: IntFieldUpdateOperationsInput | number
|
|
notes?: NullableStringFieldUpdateOperationsInput | string | null
|
|
isActive?: BoolFieldUpdateOperationsInput | boolean
|
|
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
}
|
|
|
|
export type CustomerRepresentativeUncheckedUpdateManyWithoutRepresentativeInput = {
|
|
id?: IntFieldUpdateOperationsInput | number
|
|
customerId?: IntFieldUpdateOperationsInput | number
|
|
notes?: NullableStringFieldUpdateOperationsInput | string | null
|
|
isActive?: BoolFieldUpdateOperationsInput | boolean
|
|
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
}
|
|
|
|
export type CustomerRepresentativeUpdateWithoutCustomerInput = {
|
|
notes?: NullableStringFieldUpdateOperationsInput | string | null
|
|
isActive?: BoolFieldUpdateOperationsInput | boolean
|
|
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
representative?: CustomerUpdateOneRequiredWithoutRepresentingForNestedInput
|
|
}
|
|
|
|
export type CustomerRepresentativeUncheckedUpdateWithoutCustomerInput = {
|
|
id?: IntFieldUpdateOperationsInput | number
|
|
representativeId?: IntFieldUpdateOperationsInput | number
|
|
notes?: NullableStringFieldUpdateOperationsInput | string | null
|
|
isActive?: BoolFieldUpdateOperationsInput | boolean
|
|
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
}
|
|
|
|
export type CustomerRepresentativeUncheckedUpdateManyWithoutCustomerInput = {
|
|
id?: IntFieldUpdateOperationsInput | number
|
|
representativeId?: IntFieldUpdateOperationsInput | number
|
|
notes?: NullableStringFieldUpdateOperationsInput | string | null
|
|
isActive?: BoolFieldUpdateOperationsInput | boolean
|
|
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
}
|
|
|
|
export type ContractCreateManyAddressInput = {
|
|
id?: number
|
|
contractNumber: string
|
|
customerId: number
|
|
type: $Enums.ContractType
|
|
status?: $Enums.ContractStatus
|
|
contractCategoryId?: number | null
|
|
billingAddressId?: number | null
|
|
bankCardId?: number | null
|
|
identityDocumentId?: number | null
|
|
salesPlatformId?: number | null
|
|
cancellationPeriodId?: number | null
|
|
contractDurationId?: number | null
|
|
previousContractId?: number | null
|
|
providerId?: number | null
|
|
tariffId?: number | null
|
|
providerName?: string | null
|
|
tariffName?: string | null
|
|
customerNumberAtProvider?: string | null
|
|
priceFirst12Months?: string | null
|
|
priceFrom13Months?: string | null
|
|
priceAfter24Months?: string | null
|
|
startDate?: Date | string | null
|
|
endDate?: Date | string | null
|
|
commission?: number | null
|
|
cancellationLetterPath?: string | null
|
|
cancellationConfirmationPath?: string | null
|
|
cancellationLetterOptionsPath?: string | null
|
|
cancellationConfirmationOptionsPath?: string | null
|
|
cancellationConfirmationDate?: Date | string | null
|
|
cancellationConfirmationOptionsDate?: Date | string | null
|
|
wasSpecialCancellation?: boolean
|
|
portalUsername?: string | null
|
|
portalPasswordEncrypted?: string | null
|
|
stressfreiEmailId?: number | null
|
|
notes?: string | null
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
}
|
|
|
|
export type ContractCreateManyBillingAddressInput = {
|
|
id?: number
|
|
contractNumber: string
|
|
customerId: number
|
|
type: $Enums.ContractType
|
|
status?: $Enums.ContractStatus
|
|
contractCategoryId?: number | null
|
|
addressId?: number | null
|
|
bankCardId?: number | null
|
|
identityDocumentId?: number | null
|
|
salesPlatformId?: number | null
|
|
cancellationPeriodId?: number | null
|
|
contractDurationId?: number | null
|
|
previousContractId?: number | null
|
|
providerId?: number | null
|
|
tariffId?: number | null
|
|
providerName?: string | null
|
|
tariffName?: string | null
|
|
customerNumberAtProvider?: string | null
|
|
priceFirst12Months?: string | null
|
|
priceFrom13Months?: string | null
|
|
priceAfter24Months?: string | null
|
|
startDate?: Date | string | null
|
|
endDate?: Date | string | null
|
|
commission?: number | null
|
|
cancellationLetterPath?: string | null
|
|
cancellationConfirmationPath?: string | null
|
|
cancellationLetterOptionsPath?: string | null
|
|
cancellationConfirmationOptionsPath?: string | null
|
|
cancellationConfirmationDate?: Date | string | null
|
|
cancellationConfirmationOptionsDate?: Date | string | null
|
|
wasSpecialCancellation?: boolean
|
|
portalUsername?: string | null
|
|
portalPasswordEncrypted?: string | null
|
|
stressfreiEmailId?: number | null
|
|
notes?: string | null
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
}
|
|
|
|
export type ContractUpdateWithoutAddressInput = {
|
|
contractNumber?: StringFieldUpdateOperationsInput | string
|
|
type?: EnumContractTypeFieldUpdateOperationsInput | $Enums.ContractType
|
|
status?: EnumContractStatusFieldUpdateOperationsInput | $Enums.ContractStatus
|
|
providerName?: NullableStringFieldUpdateOperationsInput | string | null
|
|
tariffName?: NullableStringFieldUpdateOperationsInput | string | null
|
|
customerNumberAtProvider?: NullableStringFieldUpdateOperationsInput | string | null
|
|
priceFirst12Months?: NullableStringFieldUpdateOperationsInput | string | null
|
|
priceFrom13Months?: NullableStringFieldUpdateOperationsInput | string | null
|
|
priceAfter24Months?: NullableStringFieldUpdateOperationsInput | string | null
|
|
startDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
endDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
commission?: NullableFloatFieldUpdateOperationsInput | number | null
|
|
cancellationLetterPath?: NullableStringFieldUpdateOperationsInput | string | null
|
|
cancellationConfirmationPath?: NullableStringFieldUpdateOperationsInput | string | null
|
|
cancellationLetterOptionsPath?: NullableStringFieldUpdateOperationsInput | string | null
|
|
cancellationConfirmationOptionsPath?: NullableStringFieldUpdateOperationsInput | string | null
|
|
cancellationConfirmationDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
cancellationConfirmationOptionsDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
wasSpecialCancellation?: BoolFieldUpdateOperationsInput | boolean
|
|
portalUsername?: NullableStringFieldUpdateOperationsInput | string | null
|
|
portalPasswordEncrypted?: NullableStringFieldUpdateOperationsInput | string | null
|
|
notes?: NullableStringFieldUpdateOperationsInput | string | null
|
|
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
customer?: CustomerUpdateOneRequiredWithoutContractsNestedInput
|
|
contractCategory?: ContractCategoryUpdateOneWithoutContractsNestedInput
|
|
billingAddress?: AddressUpdateOneWithoutContractsAsBillingNestedInput
|
|
bankCard?: BankCardUpdateOneWithoutContractsNestedInput
|
|
identityDocument?: IdentityDocumentUpdateOneWithoutContractsNestedInput
|
|
salesPlatform?: SalesPlatformUpdateOneWithoutContractsNestedInput
|
|
cancellationPeriod?: CancellationPeriodUpdateOneWithoutContractsNestedInput
|
|
contractDuration?: ContractDurationUpdateOneWithoutContractsNestedInput
|
|
previousContract?: ContractUpdateOneWithoutFollowUpContractNestedInput
|
|
followUpContract?: ContractUpdateOneWithoutPreviousContractNestedInput
|
|
provider?: ProviderUpdateOneWithoutContractsNestedInput
|
|
tariff?: TariffUpdateOneWithoutContractsNestedInput
|
|
stressfreiEmail?: StressfreiEmailUpdateOneWithoutContractsNestedInput
|
|
energyDetails?: EnergyContractDetailsUpdateOneWithoutContractNestedInput
|
|
internetDetails?: InternetContractDetailsUpdateOneWithoutContractNestedInput
|
|
mobileDetails?: MobileContractDetailsUpdateOneWithoutContractNestedInput
|
|
tvDetails?: TvContractDetailsUpdateOneWithoutContractNestedInput
|
|
carInsuranceDetails?: CarInsuranceDetailsUpdateOneWithoutContractNestedInput
|
|
tasks?: ContractTaskUpdateManyWithoutContractNestedInput
|
|
assignedEmails?: CachedEmailUpdateManyWithoutContractNestedInput
|
|
}
|
|
|
|
export type ContractUncheckedUpdateWithoutAddressInput = {
|
|
id?: IntFieldUpdateOperationsInput | number
|
|
contractNumber?: StringFieldUpdateOperationsInput | string
|
|
customerId?: IntFieldUpdateOperationsInput | number
|
|
type?: EnumContractTypeFieldUpdateOperationsInput | $Enums.ContractType
|
|
status?: EnumContractStatusFieldUpdateOperationsInput | $Enums.ContractStatus
|
|
contractCategoryId?: NullableIntFieldUpdateOperationsInput | number | null
|
|
billingAddressId?: NullableIntFieldUpdateOperationsInput | number | null
|
|
bankCardId?: NullableIntFieldUpdateOperationsInput | number | null
|
|
identityDocumentId?: NullableIntFieldUpdateOperationsInput | number | null
|
|
salesPlatformId?: NullableIntFieldUpdateOperationsInput | number | null
|
|
cancellationPeriodId?: NullableIntFieldUpdateOperationsInput | number | null
|
|
contractDurationId?: NullableIntFieldUpdateOperationsInput | number | null
|
|
previousContractId?: NullableIntFieldUpdateOperationsInput | number | null
|
|
providerId?: NullableIntFieldUpdateOperationsInput | number | null
|
|
tariffId?: NullableIntFieldUpdateOperationsInput | number | null
|
|
providerName?: NullableStringFieldUpdateOperationsInput | string | null
|
|
tariffName?: NullableStringFieldUpdateOperationsInput | string | null
|
|
customerNumberAtProvider?: NullableStringFieldUpdateOperationsInput | string | null
|
|
priceFirst12Months?: NullableStringFieldUpdateOperationsInput | string | null
|
|
priceFrom13Months?: NullableStringFieldUpdateOperationsInput | string | null
|
|
priceAfter24Months?: NullableStringFieldUpdateOperationsInput | string | null
|
|
startDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
endDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
commission?: NullableFloatFieldUpdateOperationsInput | number | null
|
|
cancellationLetterPath?: NullableStringFieldUpdateOperationsInput | string | null
|
|
cancellationConfirmationPath?: NullableStringFieldUpdateOperationsInput | string | null
|
|
cancellationLetterOptionsPath?: NullableStringFieldUpdateOperationsInput | string | null
|
|
cancellationConfirmationOptionsPath?: NullableStringFieldUpdateOperationsInput | string | null
|
|
cancellationConfirmationDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
cancellationConfirmationOptionsDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
wasSpecialCancellation?: BoolFieldUpdateOperationsInput | boolean
|
|
portalUsername?: NullableStringFieldUpdateOperationsInput | string | null
|
|
portalPasswordEncrypted?: NullableStringFieldUpdateOperationsInput | string | null
|
|
stressfreiEmailId?: NullableIntFieldUpdateOperationsInput | number | null
|
|
notes?: NullableStringFieldUpdateOperationsInput | string | null
|
|
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
followUpContract?: ContractUncheckedUpdateOneWithoutPreviousContractNestedInput
|
|
energyDetails?: EnergyContractDetailsUncheckedUpdateOneWithoutContractNestedInput
|
|
internetDetails?: InternetContractDetailsUncheckedUpdateOneWithoutContractNestedInput
|
|
mobileDetails?: MobileContractDetailsUncheckedUpdateOneWithoutContractNestedInput
|
|
tvDetails?: TvContractDetailsUncheckedUpdateOneWithoutContractNestedInput
|
|
carInsuranceDetails?: CarInsuranceDetailsUncheckedUpdateOneWithoutContractNestedInput
|
|
tasks?: ContractTaskUncheckedUpdateManyWithoutContractNestedInput
|
|
assignedEmails?: CachedEmailUncheckedUpdateManyWithoutContractNestedInput
|
|
}
|
|
|
|
export type ContractUncheckedUpdateManyWithoutAddressInput = {
|
|
id?: IntFieldUpdateOperationsInput | number
|
|
contractNumber?: StringFieldUpdateOperationsInput | string
|
|
customerId?: IntFieldUpdateOperationsInput | number
|
|
type?: EnumContractTypeFieldUpdateOperationsInput | $Enums.ContractType
|
|
status?: EnumContractStatusFieldUpdateOperationsInput | $Enums.ContractStatus
|
|
contractCategoryId?: NullableIntFieldUpdateOperationsInput | number | null
|
|
billingAddressId?: NullableIntFieldUpdateOperationsInput | number | null
|
|
bankCardId?: NullableIntFieldUpdateOperationsInput | number | null
|
|
identityDocumentId?: NullableIntFieldUpdateOperationsInput | number | null
|
|
salesPlatformId?: NullableIntFieldUpdateOperationsInput | number | null
|
|
cancellationPeriodId?: NullableIntFieldUpdateOperationsInput | number | null
|
|
contractDurationId?: NullableIntFieldUpdateOperationsInput | number | null
|
|
previousContractId?: NullableIntFieldUpdateOperationsInput | number | null
|
|
providerId?: NullableIntFieldUpdateOperationsInput | number | null
|
|
tariffId?: NullableIntFieldUpdateOperationsInput | number | null
|
|
providerName?: NullableStringFieldUpdateOperationsInput | string | null
|
|
tariffName?: NullableStringFieldUpdateOperationsInput | string | null
|
|
customerNumberAtProvider?: NullableStringFieldUpdateOperationsInput | string | null
|
|
priceFirst12Months?: NullableStringFieldUpdateOperationsInput | string | null
|
|
priceFrom13Months?: NullableStringFieldUpdateOperationsInput | string | null
|
|
priceAfter24Months?: NullableStringFieldUpdateOperationsInput | string | null
|
|
startDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
endDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
commission?: NullableFloatFieldUpdateOperationsInput | number | null
|
|
cancellationLetterPath?: NullableStringFieldUpdateOperationsInput | string | null
|
|
cancellationConfirmationPath?: NullableStringFieldUpdateOperationsInput | string | null
|
|
cancellationLetterOptionsPath?: NullableStringFieldUpdateOperationsInput | string | null
|
|
cancellationConfirmationOptionsPath?: NullableStringFieldUpdateOperationsInput | string | null
|
|
cancellationConfirmationDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
cancellationConfirmationOptionsDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
wasSpecialCancellation?: BoolFieldUpdateOperationsInput | boolean
|
|
portalUsername?: NullableStringFieldUpdateOperationsInput | string | null
|
|
portalPasswordEncrypted?: NullableStringFieldUpdateOperationsInput | string | null
|
|
stressfreiEmailId?: NullableIntFieldUpdateOperationsInput | number | null
|
|
notes?: NullableStringFieldUpdateOperationsInput | string | null
|
|
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
}
|
|
|
|
export type ContractUpdateWithoutBillingAddressInput = {
|
|
contractNumber?: StringFieldUpdateOperationsInput | string
|
|
type?: EnumContractTypeFieldUpdateOperationsInput | $Enums.ContractType
|
|
status?: EnumContractStatusFieldUpdateOperationsInput | $Enums.ContractStatus
|
|
providerName?: NullableStringFieldUpdateOperationsInput | string | null
|
|
tariffName?: NullableStringFieldUpdateOperationsInput | string | null
|
|
customerNumberAtProvider?: NullableStringFieldUpdateOperationsInput | string | null
|
|
priceFirst12Months?: NullableStringFieldUpdateOperationsInput | string | null
|
|
priceFrom13Months?: NullableStringFieldUpdateOperationsInput | string | null
|
|
priceAfter24Months?: NullableStringFieldUpdateOperationsInput | string | null
|
|
startDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
endDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
commission?: NullableFloatFieldUpdateOperationsInput | number | null
|
|
cancellationLetterPath?: NullableStringFieldUpdateOperationsInput | string | null
|
|
cancellationConfirmationPath?: NullableStringFieldUpdateOperationsInput | string | null
|
|
cancellationLetterOptionsPath?: NullableStringFieldUpdateOperationsInput | string | null
|
|
cancellationConfirmationOptionsPath?: NullableStringFieldUpdateOperationsInput | string | null
|
|
cancellationConfirmationDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
cancellationConfirmationOptionsDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
wasSpecialCancellation?: BoolFieldUpdateOperationsInput | boolean
|
|
portalUsername?: NullableStringFieldUpdateOperationsInput | string | null
|
|
portalPasswordEncrypted?: NullableStringFieldUpdateOperationsInput | string | null
|
|
notes?: NullableStringFieldUpdateOperationsInput | string | null
|
|
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
customer?: CustomerUpdateOneRequiredWithoutContractsNestedInput
|
|
contractCategory?: ContractCategoryUpdateOneWithoutContractsNestedInput
|
|
address?: AddressUpdateOneWithoutContractsAsDeliveryNestedInput
|
|
bankCard?: BankCardUpdateOneWithoutContractsNestedInput
|
|
identityDocument?: IdentityDocumentUpdateOneWithoutContractsNestedInput
|
|
salesPlatform?: SalesPlatformUpdateOneWithoutContractsNestedInput
|
|
cancellationPeriod?: CancellationPeriodUpdateOneWithoutContractsNestedInput
|
|
contractDuration?: ContractDurationUpdateOneWithoutContractsNestedInput
|
|
previousContract?: ContractUpdateOneWithoutFollowUpContractNestedInput
|
|
followUpContract?: ContractUpdateOneWithoutPreviousContractNestedInput
|
|
provider?: ProviderUpdateOneWithoutContractsNestedInput
|
|
tariff?: TariffUpdateOneWithoutContractsNestedInput
|
|
stressfreiEmail?: StressfreiEmailUpdateOneWithoutContractsNestedInput
|
|
energyDetails?: EnergyContractDetailsUpdateOneWithoutContractNestedInput
|
|
internetDetails?: InternetContractDetailsUpdateOneWithoutContractNestedInput
|
|
mobileDetails?: MobileContractDetailsUpdateOneWithoutContractNestedInput
|
|
tvDetails?: TvContractDetailsUpdateOneWithoutContractNestedInput
|
|
carInsuranceDetails?: CarInsuranceDetailsUpdateOneWithoutContractNestedInput
|
|
tasks?: ContractTaskUpdateManyWithoutContractNestedInput
|
|
assignedEmails?: CachedEmailUpdateManyWithoutContractNestedInput
|
|
}
|
|
|
|
export type ContractUncheckedUpdateWithoutBillingAddressInput = {
|
|
id?: IntFieldUpdateOperationsInput | number
|
|
contractNumber?: StringFieldUpdateOperationsInput | string
|
|
customerId?: IntFieldUpdateOperationsInput | number
|
|
type?: EnumContractTypeFieldUpdateOperationsInput | $Enums.ContractType
|
|
status?: EnumContractStatusFieldUpdateOperationsInput | $Enums.ContractStatus
|
|
contractCategoryId?: NullableIntFieldUpdateOperationsInput | number | null
|
|
addressId?: NullableIntFieldUpdateOperationsInput | number | null
|
|
bankCardId?: NullableIntFieldUpdateOperationsInput | number | null
|
|
identityDocumentId?: NullableIntFieldUpdateOperationsInput | number | null
|
|
salesPlatformId?: NullableIntFieldUpdateOperationsInput | number | null
|
|
cancellationPeriodId?: NullableIntFieldUpdateOperationsInput | number | null
|
|
contractDurationId?: NullableIntFieldUpdateOperationsInput | number | null
|
|
previousContractId?: NullableIntFieldUpdateOperationsInput | number | null
|
|
providerId?: NullableIntFieldUpdateOperationsInput | number | null
|
|
tariffId?: NullableIntFieldUpdateOperationsInput | number | null
|
|
providerName?: NullableStringFieldUpdateOperationsInput | string | null
|
|
tariffName?: NullableStringFieldUpdateOperationsInput | string | null
|
|
customerNumberAtProvider?: NullableStringFieldUpdateOperationsInput | string | null
|
|
priceFirst12Months?: NullableStringFieldUpdateOperationsInput | string | null
|
|
priceFrom13Months?: NullableStringFieldUpdateOperationsInput | string | null
|
|
priceAfter24Months?: NullableStringFieldUpdateOperationsInput | string | null
|
|
startDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
endDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
commission?: NullableFloatFieldUpdateOperationsInput | number | null
|
|
cancellationLetterPath?: NullableStringFieldUpdateOperationsInput | string | null
|
|
cancellationConfirmationPath?: NullableStringFieldUpdateOperationsInput | string | null
|
|
cancellationLetterOptionsPath?: NullableStringFieldUpdateOperationsInput | string | null
|
|
cancellationConfirmationOptionsPath?: NullableStringFieldUpdateOperationsInput | string | null
|
|
cancellationConfirmationDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
cancellationConfirmationOptionsDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
wasSpecialCancellation?: BoolFieldUpdateOperationsInput | boolean
|
|
portalUsername?: NullableStringFieldUpdateOperationsInput | string | null
|
|
portalPasswordEncrypted?: NullableStringFieldUpdateOperationsInput | string | null
|
|
stressfreiEmailId?: NullableIntFieldUpdateOperationsInput | number | null
|
|
notes?: NullableStringFieldUpdateOperationsInput | string | null
|
|
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
followUpContract?: ContractUncheckedUpdateOneWithoutPreviousContractNestedInput
|
|
energyDetails?: EnergyContractDetailsUncheckedUpdateOneWithoutContractNestedInput
|
|
internetDetails?: InternetContractDetailsUncheckedUpdateOneWithoutContractNestedInput
|
|
mobileDetails?: MobileContractDetailsUncheckedUpdateOneWithoutContractNestedInput
|
|
tvDetails?: TvContractDetailsUncheckedUpdateOneWithoutContractNestedInput
|
|
carInsuranceDetails?: CarInsuranceDetailsUncheckedUpdateOneWithoutContractNestedInput
|
|
tasks?: ContractTaskUncheckedUpdateManyWithoutContractNestedInput
|
|
assignedEmails?: CachedEmailUncheckedUpdateManyWithoutContractNestedInput
|
|
}
|
|
|
|
export type ContractUncheckedUpdateManyWithoutBillingAddressInput = {
|
|
id?: IntFieldUpdateOperationsInput | number
|
|
contractNumber?: StringFieldUpdateOperationsInput | string
|
|
customerId?: IntFieldUpdateOperationsInput | number
|
|
type?: EnumContractTypeFieldUpdateOperationsInput | $Enums.ContractType
|
|
status?: EnumContractStatusFieldUpdateOperationsInput | $Enums.ContractStatus
|
|
contractCategoryId?: NullableIntFieldUpdateOperationsInput | number | null
|
|
addressId?: NullableIntFieldUpdateOperationsInput | number | null
|
|
bankCardId?: NullableIntFieldUpdateOperationsInput | number | null
|
|
identityDocumentId?: NullableIntFieldUpdateOperationsInput | number | null
|
|
salesPlatformId?: NullableIntFieldUpdateOperationsInput | number | null
|
|
cancellationPeriodId?: NullableIntFieldUpdateOperationsInput | number | null
|
|
contractDurationId?: NullableIntFieldUpdateOperationsInput | number | null
|
|
previousContractId?: NullableIntFieldUpdateOperationsInput | number | null
|
|
providerId?: NullableIntFieldUpdateOperationsInput | number | null
|
|
tariffId?: NullableIntFieldUpdateOperationsInput | number | null
|
|
providerName?: NullableStringFieldUpdateOperationsInput | string | null
|
|
tariffName?: NullableStringFieldUpdateOperationsInput | string | null
|
|
customerNumberAtProvider?: NullableStringFieldUpdateOperationsInput | string | null
|
|
priceFirst12Months?: NullableStringFieldUpdateOperationsInput | string | null
|
|
priceFrom13Months?: NullableStringFieldUpdateOperationsInput | string | null
|
|
priceAfter24Months?: NullableStringFieldUpdateOperationsInput | string | null
|
|
startDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
endDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
commission?: NullableFloatFieldUpdateOperationsInput | number | null
|
|
cancellationLetterPath?: NullableStringFieldUpdateOperationsInput | string | null
|
|
cancellationConfirmationPath?: NullableStringFieldUpdateOperationsInput | string | null
|
|
cancellationLetterOptionsPath?: NullableStringFieldUpdateOperationsInput | string | null
|
|
cancellationConfirmationOptionsPath?: NullableStringFieldUpdateOperationsInput | string | null
|
|
cancellationConfirmationDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
cancellationConfirmationOptionsDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
wasSpecialCancellation?: BoolFieldUpdateOperationsInput | boolean
|
|
portalUsername?: NullableStringFieldUpdateOperationsInput | string | null
|
|
portalPasswordEncrypted?: NullableStringFieldUpdateOperationsInput | string | null
|
|
stressfreiEmailId?: NullableIntFieldUpdateOperationsInput | number | null
|
|
notes?: NullableStringFieldUpdateOperationsInput | string | null
|
|
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
}
|
|
|
|
export type ContractCreateManyBankCardInput = {
|
|
id?: number
|
|
contractNumber: string
|
|
customerId: number
|
|
type: $Enums.ContractType
|
|
status?: $Enums.ContractStatus
|
|
contractCategoryId?: number | null
|
|
addressId?: number | null
|
|
billingAddressId?: number | null
|
|
identityDocumentId?: number | null
|
|
salesPlatformId?: number | null
|
|
cancellationPeriodId?: number | null
|
|
contractDurationId?: number | null
|
|
previousContractId?: number | null
|
|
providerId?: number | null
|
|
tariffId?: number | null
|
|
providerName?: string | null
|
|
tariffName?: string | null
|
|
customerNumberAtProvider?: string | null
|
|
priceFirst12Months?: string | null
|
|
priceFrom13Months?: string | null
|
|
priceAfter24Months?: string | null
|
|
startDate?: Date | string | null
|
|
endDate?: Date | string | null
|
|
commission?: number | null
|
|
cancellationLetterPath?: string | null
|
|
cancellationConfirmationPath?: string | null
|
|
cancellationLetterOptionsPath?: string | null
|
|
cancellationConfirmationOptionsPath?: string | null
|
|
cancellationConfirmationDate?: Date | string | null
|
|
cancellationConfirmationOptionsDate?: Date | string | null
|
|
wasSpecialCancellation?: boolean
|
|
portalUsername?: string | null
|
|
portalPasswordEncrypted?: string | null
|
|
stressfreiEmailId?: number | null
|
|
notes?: string | null
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
}
|
|
|
|
export type ContractUpdateWithoutBankCardInput = {
|
|
contractNumber?: StringFieldUpdateOperationsInput | string
|
|
type?: EnumContractTypeFieldUpdateOperationsInput | $Enums.ContractType
|
|
status?: EnumContractStatusFieldUpdateOperationsInput | $Enums.ContractStatus
|
|
providerName?: NullableStringFieldUpdateOperationsInput | string | null
|
|
tariffName?: NullableStringFieldUpdateOperationsInput | string | null
|
|
customerNumberAtProvider?: NullableStringFieldUpdateOperationsInput | string | null
|
|
priceFirst12Months?: NullableStringFieldUpdateOperationsInput | string | null
|
|
priceFrom13Months?: NullableStringFieldUpdateOperationsInput | string | null
|
|
priceAfter24Months?: NullableStringFieldUpdateOperationsInput | string | null
|
|
startDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
endDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
commission?: NullableFloatFieldUpdateOperationsInput | number | null
|
|
cancellationLetterPath?: NullableStringFieldUpdateOperationsInput | string | null
|
|
cancellationConfirmationPath?: NullableStringFieldUpdateOperationsInput | string | null
|
|
cancellationLetterOptionsPath?: NullableStringFieldUpdateOperationsInput | string | null
|
|
cancellationConfirmationOptionsPath?: NullableStringFieldUpdateOperationsInput | string | null
|
|
cancellationConfirmationDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
cancellationConfirmationOptionsDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
wasSpecialCancellation?: BoolFieldUpdateOperationsInput | boolean
|
|
portalUsername?: NullableStringFieldUpdateOperationsInput | string | null
|
|
portalPasswordEncrypted?: NullableStringFieldUpdateOperationsInput | string | null
|
|
notes?: NullableStringFieldUpdateOperationsInput | string | null
|
|
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
customer?: CustomerUpdateOneRequiredWithoutContractsNestedInput
|
|
contractCategory?: ContractCategoryUpdateOneWithoutContractsNestedInput
|
|
address?: AddressUpdateOneWithoutContractsAsDeliveryNestedInput
|
|
billingAddress?: AddressUpdateOneWithoutContractsAsBillingNestedInput
|
|
identityDocument?: IdentityDocumentUpdateOneWithoutContractsNestedInput
|
|
salesPlatform?: SalesPlatformUpdateOneWithoutContractsNestedInput
|
|
cancellationPeriod?: CancellationPeriodUpdateOneWithoutContractsNestedInput
|
|
contractDuration?: ContractDurationUpdateOneWithoutContractsNestedInput
|
|
previousContract?: ContractUpdateOneWithoutFollowUpContractNestedInput
|
|
followUpContract?: ContractUpdateOneWithoutPreviousContractNestedInput
|
|
provider?: ProviderUpdateOneWithoutContractsNestedInput
|
|
tariff?: TariffUpdateOneWithoutContractsNestedInput
|
|
stressfreiEmail?: StressfreiEmailUpdateOneWithoutContractsNestedInput
|
|
energyDetails?: EnergyContractDetailsUpdateOneWithoutContractNestedInput
|
|
internetDetails?: InternetContractDetailsUpdateOneWithoutContractNestedInput
|
|
mobileDetails?: MobileContractDetailsUpdateOneWithoutContractNestedInput
|
|
tvDetails?: TvContractDetailsUpdateOneWithoutContractNestedInput
|
|
carInsuranceDetails?: CarInsuranceDetailsUpdateOneWithoutContractNestedInput
|
|
tasks?: ContractTaskUpdateManyWithoutContractNestedInput
|
|
assignedEmails?: CachedEmailUpdateManyWithoutContractNestedInput
|
|
}
|
|
|
|
export type ContractUncheckedUpdateWithoutBankCardInput = {
|
|
id?: IntFieldUpdateOperationsInput | number
|
|
contractNumber?: StringFieldUpdateOperationsInput | string
|
|
customerId?: IntFieldUpdateOperationsInput | number
|
|
type?: EnumContractTypeFieldUpdateOperationsInput | $Enums.ContractType
|
|
status?: EnumContractStatusFieldUpdateOperationsInput | $Enums.ContractStatus
|
|
contractCategoryId?: NullableIntFieldUpdateOperationsInput | number | null
|
|
addressId?: NullableIntFieldUpdateOperationsInput | number | null
|
|
billingAddressId?: NullableIntFieldUpdateOperationsInput | number | null
|
|
identityDocumentId?: NullableIntFieldUpdateOperationsInput | number | null
|
|
salesPlatformId?: NullableIntFieldUpdateOperationsInput | number | null
|
|
cancellationPeriodId?: NullableIntFieldUpdateOperationsInput | number | null
|
|
contractDurationId?: NullableIntFieldUpdateOperationsInput | number | null
|
|
previousContractId?: NullableIntFieldUpdateOperationsInput | number | null
|
|
providerId?: NullableIntFieldUpdateOperationsInput | number | null
|
|
tariffId?: NullableIntFieldUpdateOperationsInput | number | null
|
|
providerName?: NullableStringFieldUpdateOperationsInput | string | null
|
|
tariffName?: NullableStringFieldUpdateOperationsInput | string | null
|
|
customerNumberAtProvider?: NullableStringFieldUpdateOperationsInput | string | null
|
|
priceFirst12Months?: NullableStringFieldUpdateOperationsInput | string | null
|
|
priceFrom13Months?: NullableStringFieldUpdateOperationsInput | string | null
|
|
priceAfter24Months?: NullableStringFieldUpdateOperationsInput | string | null
|
|
startDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
endDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
commission?: NullableFloatFieldUpdateOperationsInput | number | null
|
|
cancellationLetterPath?: NullableStringFieldUpdateOperationsInput | string | null
|
|
cancellationConfirmationPath?: NullableStringFieldUpdateOperationsInput | string | null
|
|
cancellationLetterOptionsPath?: NullableStringFieldUpdateOperationsInput | string | null
|
|
cancellationConfirmationOptionsPath?: NullableStringFieldUpdateOperationsInput | string | null
|
|
cancellationConfirmationDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
cancellationConfirmationOptionsDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
wasSpecialCancellation?: BoolFieldUpdateOperationsInput | boolean
|
|
portalUsername?: NullableStringFieldUpdateOperationsInput | string | null
|
|
portalPasswordEncrypted?: NullableStringFieldUpdateOperationsInput | string | null
|
|
stressfreiEmailId?: NullableIntFieldUpdateOperationsInput | number | null
|
|
notes?: NullableStringFieldUpdateOperationsInput | string | null
|
|
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
followUpContract?: ContractUncheckedUpdateOneWithoutPreviousContractNestedInput
|
|
energyDetails?: EnergyContractDetailsUncheckedUpdateOneWithoutContractNestedInput
|
|
internetDetails?: InternetContractDetailsUncheckedUpdateOneWithoutContractNestedInput
|
|
mobileDetails?: MobileContractDetailsUncheckedUpdateOneWithoutContractNestedInput
|
|
tvDetails?: TvContractDetailsUncheckedUpdateOneWithoutContractNestedInput
|
|
carInsuranceDetails?: CarInsuranceDetailsUncheckedUpdateOneWithoutContractNestedInput
|
|
tasks?: ContractTaskUncheckedUpdateManyWithoutContractNestedInput
|
|
assignedEmails?: CachedEmailUncheckedUpdateManyWithoutContractNestedInput
|
|
}
|
|
|
|
export type ContractUncheckedUpdateManyWithoutBankCardInput = {
|
|
id?: IntFieldUpdateOperationsInput | number
|
|
contractNumber?: StringFieldUpdateOperationsInput | string
|
|
customerId?: IntFieldUpdateOperationsInput | number
|
|
type?: EnumContractTypeFieldUpdateOperationsInput | $Enums.ContractType
|
|
status?: EnumContractStatusFieldUpdateOperationsInput | $Enums.ContractStatus
|
|
contractCategoryId?: NullableIntFieldUpdateOperationsInput | number | null
|
|
addressId?: NullableIntFieldUpdateOperationsInput | number | null
|
|
billingAddressId?: NullableIntFieldUpdateOperationsInput | number | null
|
|
identityDocumentId?: NullableIntFieldUpdateOperationsInput | number | null
|
|
salesPlatformId?: NullableIntFieldUpdateOperationsInput | number | null
|
|
cancellationPeriodId?: NullableIntFieldUpdateOperationsInput | number | null
|
|
contractDurationId?: NullableIntFieldUpdateOperationsInput | number | null
|
|
previousContractId?: NullableIntFieldUpdateOperationsInput | number | null
|
|
providerId?: NullableIntFieldUpdateOperationsInput | number | null
|
|
tariffId?: NullableIntFieldUpdateOperationsInput | number | null
|
|
providerName?: NullableStringFieldUpdateOperationsInput | string | null
|
|
tariffName?: NullableStringFieldUpdateOperationsInput | string | null
|
|
customerNumberAtProvider?: NullableStringFieldUpdateOperationsInput | string | null
|
|
priceFirst12Months?: NullableStringFieldUpdateOperationsInput | string | null
|
|
priceFrom13Months?: NullableStringFieldUpdateOperationsInput | string | null
|
|
priceAfter24Months?: NullableStringFieldUpdateOperationsInput | string | null
|
|
startDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
endDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
commission?: NullableFloatFieldUpdateOperationsInput | number | null
|
|
cancellationLetterPath?: NullableStringFieldUpdateOperationsInput | string | null
|
|
cancellationConfirmationPath?: NullableStringFieldUpdateOperationsInput | string | null
|
|
cancellationLetterOptionsPath?: NullableStringFieldUpdateOperationsInput | string | null
|
|
cancellationConfirmationOptionsPath?: NullableStringFieldUpdateOperationsInput | string | null
|
|
cancellationConfirmationDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
cancellationConfirmationOptionsDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
wasSpecialCancellation?: BoolFieldUpdateOperationsInput | boolean
|
|
portalUsername?: NullableStringFieldUpdateOperationsInput | string | null
|
|
portalPasswordEncrypted?: NullableStringFieldUpdateOperationsInput | string | null
|
|
stressfreiEmailId?: NullableIntFieldUpdateOperationsInput | number | null
|
|
notes?: NullableStringFieldUpdateOperationsInput | string | null
|
|
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
}
|
|
|
|
export type ContractCreateManyIdentityDocumentInput = {
|
|
id?: number
|
|
contractNumber: string
|
|
customerId: number
|
|
type: $Enums.ContractType
|
|
status?: $Enums.ContractStatus
|
|
contractCategoryId?: number | null
|
|
addressId?: number | null
|
|
billingAddressId?: number | null
|
|
bankCardId?: number | null
|
|
salesPlatformId?: number | null
|
|
cancellationPeriodId?: number | null
|
|
contractDurationId?: number | null
|
|
previousContractId?: number | null
|
|
providerId?: number | null
|
|
tariffId?: number | null
|
|
providerName?: string | null
|
|
tariffName?: string | null
|
|
customerNumberAtProvider?: string | null
|
|
priceFirst12Months?: string | null
|
|
priceFrom13Months?: string | null
|
|
priceAfter24Months?: string | null
|
|
startDate?: Date | string | null
|
|
endDate?: Date | string | null
|
|
commission?: number | null
|
|
cancellationLetterPath?: string | null
|
|
cancellationConfirmationPath?: string | null
|
|
cancellationLetterOptionsPath?: string | null
|
|
cancellationConfirmationOptionsPath?: string | null
|
|
cancellationConfirmationDate?: Date | string | null
|
|
cancellationConfirmationOptionsDate?: Date | string | null
|
|
wasSpecialCancellation?: boolean
|
|
portalUsername?: string | null
|
|
portalPasswordEncrypted?: string | null
|
|
stressfreiEmailId?: number | null
|
|
notes?: string | null
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
}
|
|
|
|
export type ContractUpdateWithoutIdentityDocumentInput = {
|
|
contractNumber?: StringFieldUpdateOperationsInput | string
|
|
type?: EnumContractTypeFieldUpdateOperationsInput | $Enums.ContractType
|
|
status?: EnumContractStatusFieldUpdateOperationsInput | $Enums.ContractStatus
|
|
providerName?: NullableStringFieldUpdateOperationsInput | string | null
|
|
tariffName?: NullableStringFieldUpdateOperationsInput | string | null
|
|
customerNumberAtProvider?: NullableStringFieldUpdateOperationsInput | string | null
|
|
priceFirst12Months?: NullableStringFieldUpdateOperationsInput | string | null
|
|
priceFrom13Months?: NullableStringFieldUpdateOperationsInput | string | null
|
|
priceAfter24Months?: NullableStringFieldUpdateOperationsInput | string | null
|
|
startDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
endDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
commission?: NullableFloatFieldUpdateOperationsInput | number | null
|
|
cancellationLetterPath?: NullableStringFieldUpdateOperationsInput | string | null
|
|
cancellationConfirmationPath?: NullableStringFieldUpdateOperationsInput | string | null
|
|
cancellationLetterOptionsPath?: NullableStringFieldUpdateOperationsInput | string | null
|
|
cancellationConfirmationOptionsPath?: NullableStringFieldUpdateOperationsInput | string | null
|
|
cancellationConfirmationDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
cancellationConfirmationOptionsDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
wasSpecialCancellation?: BoolFieldUpdateOperationsInput | boolean
|
|
portalUsername?: NullableStringFieldUpdateOperationsInput | string | null
|
|
portalPasswordEncrypted?: NullableStringFieldUpdateOperationsInput | string | null
|
|
notes?: NullableStringFieldUpdateOperationsInput | string | null
|
|
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
customer?: CustomerUpdateOneRequiredWithoutContractsNestedInput
|
|
contractCategory?: ContractCategoryUpdateOneWithoutContractsNestedInput
|
|
address?: AddressUpdateOneWithoutContractsAsDeliveryNestedInput
|
|
billingAddress?: AddressUpdateOneWithoutContractsAsBillingNestedInput
|
|
bankCard?: BankCardUpdateOneWithoutContractsNestedInput
|
|
salesPlatform?: SalesPlatformUpdateOneWithoutContractsNestedInput
|
|
cancellationPeriod?: CancellationPeriodUpdateOneWithoutContractsNestedInput
|
|
contractDuration?: ContractDurationUpdateOneWithoutContractsNestedInput
|
|
previousContract?: ContractUpdateOneWithoutFollowUpContractNestedInput
|
|
followUpContract?: ContractUpdateOneWithoutPreviousContractNestedInput
|
|
provider?: ProviderUpdateOneWithoutContractsNestedInput
|
|
tariff?: TariffUpdateOneWithoutContractsNestedInput
|
|
stressfreiEmail?: StressfreiEmailUpdateOneWithoutContractsNestedInput
|
|
energyDetails?: EnergyContractDetailsUpdateOneWithoutContractNestedInput
|
|
internetDetails?: InternetContractDetailsUpdateOneWithoutContractNestedInput
|
|
mobileDetails?: MobileContractDetailsUpdateOneWithoutContractNestedInput
|
|
tvDetails?: TvContractDetailsUpdateOneWithoutContractNestedInput
|
|
carInsuranceDetails?: CarInsuranceDetailsUpdateOneWithoutContractNestedInput
|
|
tasks?: ContractTaskUpdateManyWithoutContractNestedInput
|
|
assignedEmails?: CachedEmailUpdateManyWithoutContractNestedInput
|
|
}
|
|
|
|
export type ContractUncheckedUpdateWithoutIdentityDocumentInput = {
|
|
id?: IntFieldUpdateOperationsInput | number
|
|
contractNumber?: StringFieldUpdateOperationsInput | string
|
|
customerId?: IntFieldUpdateOperationsInput | number
|
|
type?: EnumContractTypeFieldUpdateOperationsInput | $Enums.ContractType
|
|
status?: EnumContractStatusFieldUpdateOperationsInput | $Enums.ContractStatus
|
|
contractCategoryId?: NullableIntFieldUpdateOperationsInput | number | null
|
|
addressId?: NullableIntFieldUpdateOperationsInput | number | null
|
|
billingAddressId?: NullableIntFieldUpdateOperationsInput | number | null
|
|
bankCardId?: NullableIntFieldUpdateOperationsInput | number | null
|
|
salesPlatformId?: NullableIntFieldUpdateOperationsInput | number | null
|
|
cancellationPeriodId?: NullableIntFieldUpdateOperationsInput | number | null
|
|
contractDurationId?: NullableIntFieldUpdateOperationsInput | number | null
|
|
previousContractId?: NullableIntFieldUpdateOperationsInput | number | null
|
|
providerId?: NullableIntFieldUpdateOperationsInput | number | null
|
|
tariffId?: NullableIntFieldUpdateOperationsInput | number | null
|
|
providerName?: NullableStringFieldUpdateOperationsInput | string | null
|
|
tariffName?: NullableStringFieldUpdateOperationsInput | string | null
|
|
customerNumberAtProvider?: NullableStringFieldUpdateOperationsInput | string | null
|
|
priceFirst12Months?: NullableStringFieldUpdateOperationsInput | string | null
|
|
priceFrom13Months?: NullableStringFieldUpdateOperationsInput | string | null
|
|
priceAfter24Months?: NullableStringFieldUpdateOperationsInput | string | null
|
|
startDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
endDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
commission?: NullableFloatFieldUpdateOperationsInput | number | null
|
|
cancellationLetterPath?: NullableStringFieldUpdateOperationsInput | string | null
|
|
cancellationConfirmationPath?: NullableStringFieldUpdateOperationsInput | string | null
|
|
cancellationLetterOptionsPath?: NullableStringFieldUpdateOperationsInput | string | null
|
|
cancellationConfirmationOptionsPath?: NullableStringFieldUpdateOperationsInput | string | null
|
|
cancellationConfirmationDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
cancellationConfirmationOptionsDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
wasSpecialCancellation?: BoolFieldUpdateOperationsInput | boolean
|
|
portalUsername?: NullableStringFieldUpdateOperationsInput | string | null
|
|
portalPasswordEncrypted?: NullableStringFieldUpdateOperationsInput | string | null
|
|
stressfreiEmailId?: NullableIntFieldUpdateOperationsInput | number | null
|
|
notes?: NullableStringFieldUpdateOperationsInput | string | null
|
|
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
followUpContract?: ContractUncheckedUpdateOneWithoutPreviousContractNestedInput
|
|
energyDetails?: EnergyContractDetailsUncheckedUpdateOneWithoutContractNestedInput
|
|
internetDetails?: InternetContractDetailsUncheckedUpdateOneWithoutContractNestedInput
|
|
mobileDetails?: MobileContractDetailsUncheckedUpdateOneWithoutContractNestedInput
|
|
tvDetails?: TvContractDetailsUncheckedUpdateOneWithoutContractNestedInput
|
|
carInsuranceDetails?: CarInsuranceDetailsUncheckedUpdateOneWithoutContractNestedInput
|
|
tasks?: ContractTaskUncheckedUpdateManyWithoutContractNestedInput
|
|
assignedEmails?: CachedEmailUncheckedUpdateManyWithoutContractNestedInput
|
|
}
|
|
|
|
export type ContractUncheckedUpdateManyWithoutIdentityDocumentInput = {
|
|
id?: IntFieldUpdateOperationsInput | number
|
|
contractNumber?: StringFieldUpdateOperationsInput | string
|
|
customerId?: IntFieldUpdateOperationsInput | number
|
|
type?: EnumContractTypeFieldUpdateOperationsInput | $Enums.ContractType
|
|
status?: EnumContractStatusFieldUpdateOperationsInput | $Enums.ContractStatus
|
|
contractCategoryId?: NullableIntFieldUpdateOperationsInput | number | null
|
|
addressId?: NullableIntFieldUpdateOperationsInput | number | null
|
|
billingAddressId?: NullableIntFieldUpdateOperationsInput | number | null
|
|
bankCardId?: NullableIntFieldUpdateOperationsInput | number | null
|
|
salesPlatformId?: NullableIntFieldUpdateOperationsInput | number | null
|
|
cancellationPeriodId?: NullableIntFieldUpdateOperationsInput | number | null
|
|
contractDurationId?: NullableIntFieldUpdateOperationsInput | number | null
|
|
previousContractId?: NullableIntFieldUpdateOperationsInput | number | null
|
|
providerId?: NullableIntFieldUpdateOperationsInput | number | null
|
|
tariffId?: NullableIntFieldUpdateOperationsInput | number | null
|
|
providerName?: NullableStringFieldUpdateOperationsInput | string | null
|
|
tariffName?: NullableStringFieldUpdateOperationsInput | string | null
|
|
customerNumberAtProvider?: NullableStringFieldUpdateOperationsInput | string | null
|
|
priceFirst12Months?: NullableStringFieldUpdateOperationsInput | string | null
|
|
priceFrom13Months?: NullableStringFieldUpdateOperationsInput | string | null
|
|
priceAfter24Months?: NullableStringFieldUpdateOperationsInput | string | null
|
|
startDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
endDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
commission?: NullableFloatFieldUpdateOperationsInput | number | null
|
|
cancellationLetterPath?: NullableStringFieldUpdateOperationsInput | string | null
|
|
cancellationConfirmationPath?: NullableStringFieldUpdateOperationsInput | string | null
|
|
cancellationLetterOptionsPath?: NullableStringFieldUpdateOperationsInput | string | null
|
|
cancellationConfirmationOptionsPath?: NullableStringFieldUpdateOperationsInput | string | null
|
|
cancellationConfirmationDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
cancellationConfirmationOptionsDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
wasSpecialCancellation?: BoolFieldUpdateOperationsInput | boolean
|
|
portalUsername?: NullableStringFieldUpdateOperationsInput | string | null
|
|
portalPasswordEncrypted?: NullableStringFieldUpdateOperationsInput | string | null
|
|
stressfreiEmailId?: NullableIntFieldUpdateOperationsInput | number | null
|
|
notes?: NullableStringFieldUpdateOperationsInput | string | null
|
|
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
}
|
|
|
|
export type ContractCreateManyStressfreiEmailInput = {
|
|
id?: number
|
|
contractNumber: string
|
|
customerId: number
|
|
type: $Enums.ContractType
|
|
status?: $Enums.ContractStatus
|
|
contractCategoryId?: number | null
|
|
addressId?: number | null
|
|
billingAddressId?: number | null
|
|
bankCardId?: number | null
|
|
identityDocumentId?: number | null
|
|
salesPlatformId?: number | null
|
|
cancellationPeriodId?: number | null
|
|
contractDurationId?: number | null
|
|
previousContractId?: number | null
|
|
providerId?: number | null
|
|
tariffId?: number | null
|
|
providerName?: string | null
|
|
tariffName?: string | null
|
|
customerNumberAtProvider?: string | null
|
|
priceFirst12Months?: string | null
|
|
priceFrom13Months?: string | null
|
|
priceAfter24Months?: string | null
|
|
startDate?: Date | string | null
|
|
endDate?: Date | string | null
|
|
commission?: number | null
|
|
cancellationLetterPath?: string | null
|
|
cancellationConfirmationPath?: string | null
|
|
cancellationLetterOptionsPath?: string | null
|
|
cancellationConfirmationOptionsPath?: string | null
|
|
cancellationConfirmationDate?: Date | string | null
|
|
cancellationConfirmationOptionsDate?: Date | string | null
|
|
wasSpecialCancellation?: boolean
|
|
portalUsername?: string | null
|
|
portalPasswordEncrypted?: string | null
|
|
notes?: string | null
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
}
|
|
|
|
export type CachedEmailCreateManyStressfreiEmailInput = {
|
|
id?: number
|
|
folder?: $Enums.EmailFolder
|
|
messageId: string
|
|
uid: number
|
|
subject?: string | null
|
|
fromAddress: string
|
|
fromName?: string | null
|
|
toAddresses: string
|
|
ccAddresses?: string | null
|
|
receivedAt: Date | string
|
|
textBody?: string | null
|
|
htmlBody?: string | null
|
|
hasAttachments?: boolean
|
|
attachmentNames?: string | null
|
|
contractId?: number | null
|
|
assignedAt?: Date | string | null
|
|
assignedBy?: number | null
|
|
isAutoAssigned?: boolean
|
|
isRead?: boolean
|
|
isStarred?: boolean
|
|
isDeleted?: boolean
|
|
deletedAt?: Date | string | null
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
}
|
|
|
|
export type ContractUpdateWithoutStressfreiEmailInput = {
|
|
contractNumber?: StringFieldUpdateOperationsInput | string
|
|
type?: EnumContractTypeFieldUpdateOperationsInput | $Enums.ContractType
|
|
status?: EnumContractStatusFieldUpdateOperationsInput | $Enums.ContractStatus
|
|
providerName?: NullableStringFieldUpdateOperationsInput | string | null
|
|
tariffName?: NullableStringFieldUpdateOperationsInput | string | null
|
|
customerNumberAtProvider?: NullableStringFieldUpdateOperationsInput | string | null
|
|
priceFirst12Months?: NullableStringFieldUpdateOperationsInput | string | null
|
|
priceFrom13Months?: NullableStringFieldUpdateOperationsInput | string | null
|
|
priceAfter24Months?: NullableStringFieldUpdateOperationsInput | string | null
|
|
startDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
endDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
commission?: NullableFloatFieldUpdateOperationsInput | number | null
|
|
cancellationLetterPath?: NullableStringFieldUpdateOperationsInput | string | null
|
|
cancellationConfirmationPath?: NullableStringFieldUpdateOperationsInput | string | null
|
|
cancellationLetterOptionsPath?: NullableStringFieldUpdateOperationsInput | string | null
|
|
cancellationConfirmationOptionsPath?: NullableStringFieldUpdateOperationsInput | string | null
|
|
cancellationConfirmationDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
cancellationConfirmationOptionsDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
wasSpecialCancellation?: BoolFieldUpdateOperationsInput | boolean
|
|
portalUsername?: NullableStringFieldUpdateOperationsInput | string | null
|
|
portalPasswordEncrypted?: NullableStringFieldUpdateOperationsInput | string | null
|
|
notes?: NullableStringFieldUpdateOperationsInput | string | null
|
|
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
customer?: CustomerUpdateOneRequiredWithoutContractsNestedInput
|
|
contractCategory?: ContractCategoryUpdateOneWithoutContractsNestedInput
|
|
address?: AddressUpdateOneWithoutContractsAsDeliveryNestedInput
|
|
billingAddress?: AddressUpdateOneWithoutContractsAsBillingNestedInput
|
|
bankCard?: BankCardUpdateOneWithoutContractsNestedInput
|
|
identityDocument?: IdentityDocumentUpdateOneWithoutContractsNestedInput
|
|
salesPlatform?: SalesPlatformUpdateOneWithoutContractsNestedInput
|
|
cancellationPeriod?: CancellationPeriodUpdateOneWithoutContractsNestedInput
|
|
contractDuration?: ContractDurationUpdateOneWithoutContractsNestedInput
|
|
previousContract?: ContractUpdateOneWithoutFollowUpContractNestedInput
|
|
followUpContract?: ContractUpdateOneWithoutPreviousContractNestedInput
|
|
provider?: ProviderUpdateOneWithoutContractsNestedInput
|
|
tariff?: TariffUpdateOneWithoutContractsNestedInput
|
|
energyDetails?: EnergyContractDetailsUpdateOneWithoutContractNestedInput
|
|
internetDetails?: InternetContractDetailsUpdateOneWithoutContractNestedInput
|
|
mobileDetails?: MobileContractDetailsUpdateOneWithoutContractNestedInput
|
|
tvDetails?: TvContractDetailsUpdateOneWithoutContractNestedInput
|
|
carInsuranceDetails?: CarInsuranceDetailsUpdateOneWithoutContractNestedInput
|
|
tasks?: ContractTaskUpdateManyWithoutContractNestedInput
|
|
assignedEmails?: CachedEmailUpdateManyWithoutContractNestedInput
|
|
}
|
|
|
|
export type ContractUncheckedUpdateWithoutStressfreiEmailInput = {
|
|
id?: IntFieldUpdateOperationsInput | number
|
|
contractNumber?: StringFieldUpdateOperationsInput | string
|
|
customerId?: IntFieldUpdateOperationsInput | number
|
|
type?: EnumContractTypeFieldUpdateOperationsInput | $Enums.ContractType
|
|
status?: EnumContractStatusFieldUpdateOperationsInput | $Enums.ContractStatus
|
|
contractCategoryId?: NullableIntFieldUpdateOperationsInput | number | null
|
|
addressId?: NullableIntFieldUpdateOperationsInput | number | null
|
|
billingAddressId?: NullableIntFieldUpdateOperationsInput | number | null
|
|
bankCardId?: NullableIntFieldUpdateOperationsInput | number | null
|
|
identityDocumentId?: NullableIntFieldUpdateOperationsInput | number | null
|
|
salesPlatformId?: NullableIntFieldUpdateOperationsInput | number | null
|
|
cancellationPeriodId?: NullableIntFieldUpdateOperationsInput | number | null
|
|
contractDurationId?: NullableIntFieldUpdateOperationsInput | number | null
|
|
previousContractId?: NullableIntFieldUpdateOperationsInput | number | null
|
|
providerId?: NullableIntFieldUpdateOperationsInput | number | null
|
|
tariffId?: NullableIntFieldUpdateOperationsInput | number | null
|
|
providerName?: NullableStringFieldUpdateOperationsInput | string | null
|
|
tariffName?: NullableStringFieldUpdateOperationsInput | string | null
|
|
customerNumberAtProvider?: NullableStringFieldUpdateOperationsInput | string | null
|
|
priceFirst12Months?: NullableStringFieldUpdateOperationsInput | string | null
|
|
priceFrom13Months?: NullableStringFieldUpdateOperationsInput | string | null
|
|
priceAfter24Months?: NullableStringFieldUpdateOperationsInput | string | null
|
|
startDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
endDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
commission?: NullableFloatFieldUpdateOperationsInput | number | null
|
|
cancellationLetterPath?: NullableStringFieldUpdateOperationsInput | string | null
|
|
cancellationConfirmationPath?: NullableStringFieldUpdateOperationsInput | string | null
|
|
cancellationLetterOptionsPath?: NullableStringFieldUpdateOperationsInput | string | null
|
|
cancellationConfirmationOptionsPath?: NullableStringFieldUpdateOperationsInput | string | null
|
|
cancellationConfirmationDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
cancellationConfirmationOptionsDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
wasSpecialCancellation?: BoolFieldUpdateOperationsInput | boolean
|
|
portalUsername?: NullableStringFieldUpdateOperationsInput | string | null
|
|
portalPasswordEncrypted?: NullableStringFieldUpdateOperationsInput | string | null
|
|
notes?: NullableStringFieldUpdateOperationsInput | string | null
|
|
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
followUpContract?: ContractUncheckedUpdateOneWithoutPreviousContractNestedInput
|
|
energyDetails?: EnergyContractDetailsUncheckedUpdateOneWithoutContractNestedInput
|
|
internetDetails?: InternetContractDetailsUncheckedUpdateOneWithoutContractNestedInput
|
|
mobileDetails?: MobileContractDetailsUncheckedUpdateOneWithoutContractNestedInput
|
|
tvDetails?: TvContractDetailsUncheckedUpdateOneWithoutContractNestedInput
|
|
carInsuranceDetails?: CarInsuranceDetailsUncheckedUpdateOneWithoutContractNestedInput
|
|
tasks?: ContractTaskUncheckedUpdateManyWithoutContractNestedInput
|
|
assignedEmails?: CachedEmailUncheckedUpdateManyWithoutContractNestedInput
|
|
}
|
|
|
|
export type ContractUncheckedUpdateManyWithoutStressfreiEmailInput = {
|
|
id?: IntFieldUpdateOperationsInput | number
|
|
contractNumber?: StringFieldUpdateOperationsInput | string
|
|
customerId?: IntFieldUpdateOperationsInput | number
|
|
type?: EnumContractTypeFieldUpdateOperationsInput | $Enums.ContractType
|
|
status?: EnumContractStatusFieldUpdateOperationsInput | $Enums.ContractStatus
|
|
contractCategoryId?: NullableIntFieldUpdateOperationsInput | number | null
|
|
addressId?: NullableIntFieldUpdateOperationsInput | number | null
|
|
billingAddressId?: NullableIntFieldUpdateOperationsInput | number | null
|
|
bankCardId?: NullableIntFieldUpdateOperationsInput | number | null
|
|
identityDocumentId?: NullableIntFieldUpdateOperationsInput | number | null
|
|
salesPlatformId?: NullableIntFieldUpdateOperationsInput | number | null
|
|
cancellationPeriodId?: NullableIntFieldUpdateOperationsInput | number | null
|
|
contractDurationId?: NullableIntFieldUpdateOperationsInput | number | null
|
|
previousContractId?: NullableIntFieldUpdateOperationsInput | number | null
|
|
providerId?: NullableIntFieldUpdateOperationsInput | number | null
|
|
tariffId?: NullableIntFieldUpdateOperationsInput | number | null
|
|
providerName?: NullableStringFieldUpdateOperationsInput | string | null
|
|
tariffName?: NullableStringFieldUpdateOperationsInput | string | null
|
|
customerNumberAtProvider?: NullableStringFieldUpdateOperationsInput | string | null
|
|
priceFirst12Months?: NullableStringFieldUpdateOperationsInput | string | null
|
|
priceFrom13Months?: NullableStringFieldUpdateOperationsInput | string | null
|
|
priceAfter24Months?: NullableStringFieldUpdateOperationsInput | string | null
|
|
startDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
endDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
commission?: NullableFloatFieldUpdateOperationsInput | number | null
|
|
cancellationLetterPath?: NullableStringFieldUpdateOperationsInput | string | null
|
|
cancellationConfirmationPath?: NullableStringFieldUpdateOperationsInput | string | null
|
|
cancellationLetterOptionsPath?: NullableStringFieldUpdateOperationsInput | string | null
|
|
cancellationConfirmationOptionsPath?: NullableStringFieldUpdateOperationsInput | string | null
|
|
cancellationConfirmationDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
cancellationConfirmationOptionsDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
wasSpecialCancellation?: BoolFieldUpdateOperationsInput | boolean
|
|
portalUsername?: NullableStringFieldUpdateOperationsInput | string | null
|
|
portalPasswordEncrypted?: NullableStringFieldUpdateOperationsInput | string | null
|
|
notes?: NullableStringFieldUpdateOperationsInput | string | null
|
|
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
}
|
|
|
|
export type CachedEmailUpdateWithoutStressfreiEmailInput = {
|
|
folder?: EnumEmailFolderFieldUpdateOperationsInput | $Enums.EmailFolder
|
|
messageId?: StringFieldUpdateOperationsInput | string
|
|
uid?: IntFieldUpdateOperationsInput | number
|
|
subject?: NullableStringFieldUpdateOperationsInput | string | null
|
|
fromAddress?: StringFieldUpdateOperationsInput | string
|
|
fromName?: NullableStringFieldUpdateOperationsInput | string | null
|
|
toAddresses?: StringFieldUpdateOperationsInput | string
|
|
ccAddresses?: NullableStringFieldUpdateOperationsInput | string | null
|
|
receivedAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
textBody?: NullableStringFieldUpdateOperationsInput | string | null
|
|
htmlBody?: NullableStringFieldUpdateOperationsInput | string | null
|
|
hasAttachments?: BoolFieldUpdateOperationsInput | boolean
|
|
attachmentNames?: NullableStringFieldUpdateOperationsInput | string | null
|
|
assignedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
assignedBy?: NullableIntFieldUpdateOperationsInput | number | null
|
|
isAutoAssigned?: BoolFieldUpdateOperationsInput | boolean
|
|
isRead?: BoolFieldUpdateOperationsInput | boolean
|
|
isStarred?: BoolFieldUpdateOperationsInput | boolean
|
|
isDeleted?: BoolFieldUpdateOperationsInput | boolean
|
|
deletedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
contract?: ContractUpdateOneWithoutAssignedEmailsNestedInput
|
|
}
|
|
|
|
export type CachedEmailUncheckedUpdateWithoutStressfreiEmailInput = {
|
|
id?: IntFieldUpdateOperationsInput | number
|
|
folder?: EnumEmailFolderFieldUpdateOperationsInput | $Enums.EmailFolder
|
|
messageId?: StringFieldUpdateOperationsInput | string
|
|
uid?: IntFieldUpdateOperationsInput | number
|
|
subject?: NullableStringFieldUpdateOperationsInput | string | null
|
|
fromAddress?: StringFieldUpdateOperationsInput | string
|
|
fromName?: NullableStringFieldUpdateOperationsInput | string | null
|
|
toAddresses?: StringFieldUpdateOperationsInput | string
|
|
ccAddresses?: NullableStringFieldUpdateOperationsInput | string | null
|
|
receivedAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
textBody?: NullableStringFieldUpdateOperationsInput | string | null
|
|
htmlBody?: NullableStringFieldUpdateOperationsInput | string | null
|
|
hasAttachments?: BoolFieldUpdateOperationsInput | boolean
|
|
attachmentNames?: NullableStringFieldUpdateOperationsInput | string | null
|
|
contractId?: NullableIntFieldUpdateOperationsInput | number | null
|
|
assignedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
assignedBy?: NullableIntFieldUpdateOperationsInput | number | null
|
|
isAutoAssigned?: BoolFieldUpdateOperationsInput | boolean
|
|
isRead?: BoolFieldUpdateOperationsInput | boolean
|
|
isStarred?: BoolFieldUpdateOperationsInput | boolean
|
|
isDeleted?: BoolFieldUpdateOperationsInput | boolean
|
|
deletedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
}
|
|
|
|
export type CachedEmailUncheckedUpdateManyWithoutStressfreiEmailInput = {
|
|
id?: IntFieldUpdateOperationsInput | number
|
|
folder?: EnumEmailFolderFieldUpdateOperationsInput | $Enums.EmailFolder
|
|
messageId?: StringFieldUpdateOperationsInput | string
|
|
uid?: IntFieldUpdateOperationsInput | number
|
|
subject?: NullableStringFieldUpdateOperationsInput | string | null
|
|
fromAddress?: StringFieldUpdateOperationsInput | string
|
|
fromName?: NullableStringFieldUpdateOperationsInput | string | null
|
|
toAddresses?: StringFieldUpdateOperationsInput | string
|
|
ccAddresses?: NullableStringFieldUpdateOperationsInput | string | null
|
|
receivedAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
textBody?: NullableStringFieldUpdateOperationsInput | string | null
|
|
htmlBody?: NullableStringFieldUpdateOperationsInput | string | null
|
|
hasAttachments?: BoolFieldUpdateOperationsInput | boolean
|
|
attachmentNames?: NullableStringFieldUpdateOperationsInput | string | null
|
|
contractId?: NullableIntFieldUpdateOperationsInput | number | null
|
|
assignedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
assignedBy?: NullableIntFieldUpdateOperationsInput | number | null
|
|
isAutoAssigned?: BoolFieldUpdateOperationsInput | boolean
|
|
isRead?: BoolFieldUpdateOperationsInput | boolean
|
|
isStarred?: BoolFieldUpdateOperationsInput | boolean
|
|
isDeleted?: BoolFieldUpdateOperationsInput | boolean
|
|
deletedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
}
|
|
|
|
export type MeterReadingCreateManyMeterInput = {
|
|
id?: number
|
|
readingDate: Date | string
|
|
value: number
|
|
unit?: string
|
|
notes?: string | null
|
|
createdAt?: Date | string
|
|
}
|
|
|
|
export type EnergyContractDetailsCreateManyMeterInput = {
|
|
id?: number
|
|
contractId: number
|
|
maloId?: string | null
|
|
annualConsumption?: number | null
|
|
annualConsumptionKwh?: number | null
|
|
basePrice?: number | null
|
|
unitPrice?: number | null
|
|
bonus?: number | null
|
|
previousProviderName?: string | null
|
|
previousCustomerNumber?: string | null
|
|
}
|
|
|
|
export type MeterReadingUpdateWithoutMeterInput = {
|
|
readingDate?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
value?: FloatFieldUpdateOperationsInput | number
|
|
unit?: StringFieldUpdateOperationsInput | string
|
|
notes?: NullableStringFieldUpdateOperationsInput | string | null
|
|
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
}
|
|
|
|
export type MeterReadingUncheckedUpdateWithoutMeterInput = {
|
|
id?: IntFieldUpdateOperationsInput | number
|
|
readingDate?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
value?: FloatFieldUpdateOperationsInput | number
|
|
unit?: StringFieldUpdateOperationsInput | string
|
|
notes?: NullableStringFieldUpdateOperationsInput | string | null
|
|
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
}
|
|
|
|
export type MeterReadingUncheckedUpdateManyWithoutMeterInput = {
|
|
id?: IntFieldUpdateOperationsInput | number
|
|
readingDate?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
value?: FloatFieldUpdateOperationsInput | number
|
|
unit?: StringFieldUpdateOperationsInput | string
|
|
notes?: NullableStringFieldUpdateOperationsInput | string | null
|
|
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
}
|
|
|
|
export type EnergyContractDetailsUpdateWithoutMeterInput = {
|
|
maloId?: NullableStringFieldUpdateOperationsInput | string | null
|
|
annualConsumption?: NullableFloatFieldUpdateOperationsInput | number | null
|
|
annualConsumptionKwh?: NullableFloatFieldUpdateOperationsInput | number | null
|
|
basePrice?: NullableFloatFieldUpdateOperationsInput | number | null
|
|
unitPrice?: NullableFloatFieldUpdateOperationsInput | number | null
|
|
bonus?: NullableFloatFieldUpdateOperationsInput | number | null
|
|
previousProviderName?: NullableStringFieldUpdateOperationsInput | string | null
|
|
previousCustomerNumber?: NullableStringFieldUpdateOperationsInput | string | null
|
|
contract?: ContractUpdateOneRequiredWithoutEnergyDetailsNestedInput
|
|
}
|
|
|
|
export type EnergyContractDetailsUncheckedUpdateWithoutMeterInput = {
|
|
id?: IntFieldUpdateOperationsInput | number
|
|
contractId?: IntFieldUpdateOperationsInput | number
|
|
maloId?: NullableStringFieldUpdateOperationsInput | string | null
|
|
annualConsumption?: NullableFloatFieldUpdateOperationsInput | number | null
|
|
annualConsumptionKwh?: NullableFloatFieldUpdateOperationsInput | number | null
|
|
basePrice?: NullableFloatFieldUpdateOperationsInput | number | null
|
|
unitPrice?: NullableFloatFieldUpdateOperationsInput | number | null
|
|
bonus?: NullableFloatFieldUpdateOperationsInput | number | null
|
|
previousProviderName?: NullableStringFieldUpdateOperationsInput | string | null
|
|
previousCustomerNumber?: NullableStringFieldUpdateOperationsInput | string | null
|
|
}
|
|
|
|
export type EnergyContractDetailsUncheckedUpdateManyWithoutMeterInput = {
|
|
id?: IntFieldUpdateOperationsInput | number
|
|
contractId?: IntFieldUpdateOperationsInput | number
|
|
maloId?: NullableStringFieldUpdateOperationsInput | string | null
|
|
annualConsumption?: NullableFloatFieldUpdateOperationsInput | number | null
|
|
annualConsumptionKwh?: NullableFloatFieldUpdateOperationsInput | number | null
|
|
basePrice?: NullableFloatFieldUpdateOperationsInput | number | null
|
|
unitPrice?: NullableFloatFieldUpdateOperationsInput | number | null
|
|
bonus?: NullableFloatFieldUpdateOperationsInput | number | null
|
|
previousProviderName?: NullableStringFieldUpdateOperationsInput | string | null
|
|
previousCustomerNumber?: NullableStringFieldUpdateOperationsInput | string | null
|
|
}
|
|
|
|
export type ContractCreateManySalesPlatformInput = {
|
|
id?: number
|
|
contractNumber: string
|
|
customerId: number
|
|
type: $Enums.ContractType
|
|
status?: $Enums.ContractStatus
|
|
contractCategoryId?: number | null
|
|
addressId?: number | null
|
|
billingAddressId?: number | null
|
|
bankCardId?: number | null
|
|
identityDocumentId?: number | null
|
|
cancellationPeriodId?: number | null
|
|
contractDurationId?: number | null
|
|
previousContractId?: number | null
|
|
providerId?: number | null
|
|
tariffId?: number | null
|
|
providerName?: string | null
|
|
tariffName?: string | null
|
|
customerNumberAtProvider?: string | null
|
|
priceFirst12Months?: string | null
|
|
priceFrom13Months?: string | null
|
|
priceAfter24Months?: string | null
|
|
startDate?: Date | string | null
|
|
endDate?: Date | string | null
|
|
commission?: number | null
|
|
cancellationLetterPath?: string | null
|
|
cancellationConfirmationPath?: string | null
|
|
cancellationLetterOptionsPath?: string | null
|
|
cancellationConfirmationOptionsPath?: string | null
|
|
cancellationConfirmationDate?: Date | string | null
|
|
cancellationConfirmationOptionsDate?: Date | string | null
|
|
wasSpecialCancellation?: boolean
|
|
portalUsername?: string | null
|
|
portalPasswordEncrypted?: string | null
|
|
stressfreiEmailId?: number | null
|
|
notes?: string | null
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
}
|
|
|
|
export type ContractUpdateWithoutSalesPlatformInput = {
|
|
contractNumber?: StringFieldUpdateOperationsInput | string
|
|
type?: EnumContractTypeFieldUpdateOperationsInput | $Enums.ContractType
|
|
status?: EnumContractStatusFieldUpdateOperationsInput | $Enums.ContractStatus
|
|
providerName?: NullableStringFieldUpdateOperationsInput | string | null
|
|
tariffName?: NullableStringFieldUpdateOperationsInput | string | null
|
|
customerNumberAtProvider?: NullableStringFieldUpdateOperationsInput | string | null
|
|
priceFirst12Months?: NullableStringFieldUpdateOperationsInput | string | null
|
|
priceFrom13Months?: NullableStringFieldUpdateOperationsInput | string | null
|
|
priceAfter24Months?: NullableStringFieldUpdateOperationsInput | string | null
|
|
startDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
endDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
commission?: NullableFloatFieldUpdateOperationsInput | number | null
|
|
cancellationLetterPath?: NullableStringFieldUpdateOperationsInput | string | null
|
|
cancellationConfirmationPath?: NullableStringFieldUpdateOperationsInput | string | null
|
|
cancellationLetterOptionsPath?: NullableStringFieldUpdateOperationsInput | string | null
|
|
cancellationConfirmationOptionsPath?: NullableStringFieldUpdateOperationsInput | string | null
|
|
cancellationConfirmationDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
cancellationConfirmationOptionsDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
wasSpecialCancellation?: BoolFieldUpdateOperationsInput | boolean
|
|
portalUsername?: NullableStringFieldUpdateOperationsInput | string | null
|
|
portalPasswordEncrypted?: NullableStringFieldUpdateOperationsInput | string | null
|
|
notes?: NullableStringFieldUpdateOperationsInput | string | null
|
|
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
customer?: CustomerUpdateOneRequiredWithoutContractsNestedInput
|
|
contractCategory?: ContractCategoryUpdateOneWithoutContractsNestedInput
|
|
address?: AddressUpdateOneWithoutContractsAsDeliveryNestedInput
|
|
billingAddress?: AddressUpdateOneWithoutContractsAsBillingNestedInput
|
|
bankCard?: BankCardUpdateOneWithoutContractsNestedInput
|
|
identityDocument?: IdentityDocumentUpdateOneWithoutContractsNestedInput
|
|
cancellationPeriod?: CancellationPeriodUpdateOneWithoutContractsNestedInput
|
|
contractDuration?: ContractDurationUpdateOneWithoutContractsNestedInput
|
|
previousContract?: ContractUpdateOneWithoutFollowUpContractNestedInput
|
|
followUpContract?: ContractUpdateOneWithoutPreviousContractNestedInput
|
|
provider?: ProviderUpdateOneWithoutContractsNestedInput
|
|
tariff?: TariffUpdateOneWithoutContractsNestedInput
|
|
stressfreiEmail?: StressfreiEmailUpdateOneWithoutContractsNestedInput
|
|
energyDetails?: EnergyContractDetailsUpdateOneWithoutContractNestedInput
|
|
internetDetails?: InternetContractDetailsUpdateOneWithoutContractNestedInput
|
|
mobileDetails?: MobileContractDetailsUpdateOneWithoutContractNestedInput
|
|
tvDetails?: TvContractDetailsUpdateOneWithoutContractNestedInput
|
|
carInsuranceDetails?: CarInsuranceDetailsUpdateOneWithoutContractNestedInput
|
|
tasks?: ContractTaskUpdateManyWithoutContractNestedInput
|
|
assignedEmails?: CachedEmailUpdateManyWithoutContractNestedInput
|
|
}
|
|
|
|
export type ContractUncheckedUpdateWithoutSalesPlatformInput = {
|
|
id?: IntFieldUpdateOperationsInput | number
|
|
contractNumber?: StringFieldUpdateOperationsInput | string
|
|
customerId?: IntFieldUpdateOperationsInput | number
|
|
type?: EnumContractTypeFieldUpdateOperationsInput | $Enums.ContractType
|
|
status?: EnumContractStatusFieldUpdateOperationsInput | $Enums.ContractStatus
|
|
contractCategoryId?: NullableIntFieldUpdateOperationsInput | number | null
|
|
addressId?: NullableIntFieldUpdateOperationsInput | number | null
|
|
billingAddressId?: NullableIntFieldUpdateOperationsInput | number | null
|
|
bankCardId?: NullableIntFieldUpdateOperationsInput | number | null
|
|
identityDocumentId?: NullableIntFieldUpdateOperationsInput | number | null
|
|
cancellationPeriodId?: NullableIntFieldUpdateOperationsInput | number | null
|
|
contractDurationId?: NullableIntFieldUpdateOperationsInput | number | null
|
|
previousContractId?: NullableIntFieldUpdateOperationsInput | number | null
|
|
providerId?: NullableIntFieldUpdateOperationsInput | number | null
|
|
tariffId?: NullableIntFieldUpdateOperationsInput | number | null
|
|
providerName?: NullableStringFieldUpdateOperationsInput | string | null
|
|
tariffName?: NullableStringFieldUpdateOperationsInput | string | null
|
|
customerNumberAtProvider?: NullableStringFieldUpdateOperationsInput | string | null
|
|
priceFirst12Months?: NullableStringFieldUpdateOperationsInput | string | null
|
|
priceFrom13Months?: NullableStringFieldUpdateOperationsInput | string | null
|
|
priceAfter24Months?: NullableStringFieldUpdateOperationsInput | string | null
|
|
startDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
endDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
commission?: NullableFloatFieldUpdateOperationsInput | number | null
|
|
cancellationLetterPath?: NullableStringFieldUpdateOperationsInput | string | null
|
|
cancellationConfirmationPath?: NullableStringFieldUpdateOperationsInput | string | null
|
|
cancellationLetterOptionsPath?: NullableStringFieldUpdateOperationsInput | string | null
|
|
cancellationConfirmationOptionsPath?: NullableStringFieldUpdateOperationsInput | string | null
|
|
cancellationConfirmationDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
cancellationConfirmationOptionsDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
wasSpecialCancellation?: BoolFieldUpdateOperationsInput | boolean
|
|
portalUsername?: NullableStringFieldUpdateOperationsInput | string | null
|
|
portalPasswordEncrypted?: NullableStringFieldUpdateOperationsInput | string | null
|
|
stressfreiEmailId?: NullableIntFieldUpdateOperationsInput | number | null
|
|
notes?: NullableStringFieldUpdateOperationsInput | string | null
|
|
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
followUpContract?: ContractUncheckedUpdateOneWithoutPreviousContractNestedInput
|
|
energyDetails?: EnergyContractDetailsUncheckedUpdateOneWithoutContractNestedInput
|
|
internetDetails?: InternetContractDetailsUncheckedUpdateOneWithoutContractNestedInput
|
|
mobileDetails?: MobileContractDetailsUncheckedUpdateOneWithoutContractNestedInput
|
|
tvDetails?: TvContractDetailsUncheckedUpdateOneWithoutContractNestedInput
|
|
carInsuranceDetails?: CarInsuranceDetailsUncheckedUpdateOneWithoutContractNestedInput
|
|
tasks?: ContractTaskUncheckedUpdateManyWithoutContractNestedInput
|
|
assignedEmails?: CachedEmailUncheckedUpdateManyWithoutContractNestedInput
|
|
}
|
|
|
|
export type ContractUncheckedUpdateManyWithoutSalesPlatformInput = {
|
|
id?: IntFieldUpdateOperationsInput | number
|
|
contractNumber?: StringFieldUpdateOperationsInput | string
|
|
customerId?: IntFieldUpdateOperationsInput | number
|
|
type?: EnumContractTypeFieldUpdateOperationsInput | $Enums.ContractType
|
|
status?: EnumContractStatusFieldUpdateOperationsInput | $Enums.ContractStatus
|
|
contractCategoryId?: NullableIntFieldUpdateOperationsInput | number | null
|
|
addressId?: NullableIntFieldUpdateOperationsInput | number | null
|
|
billingAddressId?: NullableIntFieldUpdateOperationsInput | number | null
|
|
bankCardId?: NullableIntFieldUpdateOperationsInput | number | null
|
|
identityDocumentId?: NullableIntFieldUpdateOperationsInput | number | null
|
|
cancellationPeriodId?: NullableIntFieldUpdateOperationsInput | number | null
|
|
contractDurationId?: NullableIntFieldUpdateOperationsInput | number | null
|
|
previousContractId?: NullableIntFieldUpdateOperationsInput | number | null
|
|
providerId?: NullableIntFieldUpdateOperationsInput | number | null
|
|
tariffId?: NullableIntFieldUpdateOperationsInput | number | null
|
|
providerName?: NullableStringFieldUpdateOperationsInput | string | null
|
|
tariffName?: NullableStringFieldUpdateOperationsInput | string | null
|
|
customerNumberAtProvider?: NullableStringFieldUpdateOperationsInput | string | null
|
|
priceFirst12Months?: NullableStringFieldUpdateOperationsInput | string | null
|
|
priceFrom13Months?: NullableStringFieldUpdateOperationsInput | string | null
|
|
priceAfter24Months?: NullableStringFieldUpdateOperationsInput | string | null
|
|
startDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
endDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
commission?: NullableFloatFieldUpdateOperationsInput | number | null
|
|
cancellationLetterPath?: NullableStringFieldUpdateOperationsInput | string | null
|
|
cancellationConfirmationPath?: NullableStringFieldUpdateOperationsInput | string | null
|
|
cancellationLetterOptionsPath?: NullableStringFieldUpdateOperationsInput | string | null
|
|
cancellationConfirmationOptionsPath?: NullableStringFieldUpdateOperationsInput | string | null
|
|
cancellationConfirmationDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
cancellationConfirmationOptionsDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
wasSpecialCancellation?: BoolFieldUpdateOperationsInput | boolean
|
|
portalUsername?: NullableStringFieldUpdateOperationsInput | string | null
|
|
portalPasswordEncrypted?: NullableStringFieldUpdateOperationsInput | string | null
|
|
stressfreiEmailId?: NullableIntFieldUpdateOperationsInput | number | null
|
|
notes?: NullableStringFieldUpdateOperationsInput | string | null
|
|
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
}
|
|
|
|
export type ContractCreateManyCancellationPeriodInput = {
|
|
id?: number
|
|
contractNumber: string
|
|
customerId: number
|
|
type: $Enums.ContractType
|
|
status?: $Enums.ContractStatus
|
|
contractCategoryId?: number | null
|
|
addressId?: number | null
|
|
billingAddressId?: number | null
|
|
bankCardId?: number | null
|
|
identityDocumentId?: number | null
|
|
salesPlatformId?: number | null
|
|
contractDurationId?: number | null
|
|
previousContractId?: number | null
|
|
providerId?: number | null
|
|
tariffId?: number | null
|
|
providerName?: string | null
|
|
tariffName?: string | null
|
|
customerNumberAtProvider?: string | null
|
|
priceFirst12Months?: string | null
|
|
priceFrom13Months?: string | null
|
|
priceAfter24Months?: string | null
|
|
startDate?: Date | string | null
|
|
endDate?: Date | string | null
|
|
commission?: number | null
|
|
cancellationLetterPath?: string | null
|
|
cancellationConfirmationPath?: string | null
|
|
cancellationLetterOptionsPath?: string | null
|
|
cancellationConfirmationOptionsPath?: string | null
|
|
cancellationConfirmationDate?: Date | string | null
|
|
cancellationConfirmationOptionsDate?: Date | string | null
|
|
wasSpecialCancellation?: boolean
|
|
portalUsername?: string | null
|
|
portalPasswordEncrypted?: string | null
|
|
stressfreiEmailId?: number | null
|
|
notes?: string | null
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
}
|
|
|
|
export type ContractUpdateWithoutCancellationPeriodInput = {
|
|
contractNumber?: StringFieldUpdateOperationsInput | string
|
|
type?: EnumContractTypeFieldUpdateOperationsInput | $Enums.ContractType
|
|
status?: EnumContractStatusFieldUpdateOperationsInput | $Enums.ContractStatus
|
|
providerName?: NullableStringFieldUpdateOperationsInput | string | null
|
|
tariffName?: NullableStringFieldUpdateOperationsInput | string | null
|
|
customerNumberAtProvider?: NullableStringFieldUpdateOperationsInput | string | null
|
|
priceFirst12Months?: NullableStringFieldUpdateOperationsInput | string | null
|
|
priceFrom13Months?: NullableStringFieldUpdateOperationsInput | string | null
|
|
priceAfter24Months?: NullableStringFieldUpdateOperationsInput | string | null
|
|
startDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
endDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
commission?: NullableFloatFieldUpdateOperationsInput | number | null
|
|
cancellationLetterPath?: NullableStringFieldUpdateOperationsInput | string | null
|
|
cancellationConfirmationPath?: NullableStringFieldUpdateOperationsInput | string | null
|
|
cancellationLetterOptionsPath?: NullableStringFieldUpdateOperationsInput | string | null
|
|
cancellationConfirmationOptionsPath?: NullableStringFieldUpdateOperationsInput | string | null
|
|
cancellationConfirmationDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
cancellationConfirmationOptionsDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
wasSpecialCancellation?: BoolFieldUpdateOperationsInput | boolean
|
|
portalUsername?: NullableStringFieldUpdateOperationsInput | string | null
|
|
portalPasswordEncrypted?: NullableStringFieldUpdateOperationsInput | string | null
|
|
notes?: NullableStringFieldUpdateOperationsInput | string | null
|
|
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
customer?: CustomerUpdateOneRequiredWithoutContractsNestedInput
|
|
contractCategory?: ContractCategoryUpdateOneWithoutContractsNestedInput
|
|
address?: AddressUpdateOneWithoutContractsAsDeliveryNestedInput
|
|
billingAddress?: AddressUpdateOneWithoutContractsAsBillingNestedInput
|
|
bankCard?: BankCardUpdateOneWithoutContractsNestedInput
|
|
identityDocument?: IdentityDocumentUpdateOneWithoutContractsNestedInput
|
|
salesPlatform?: SalesPlatformUpdateOneWithoutContractsNestedInput
|
|
contractDuration?: ContractDurationUpdateOneWithoutContractsNestedInput
|
|
previousContract?: ContractUpdateOneWithoutFollowUpContractNestedInput
|
|
followUpContract?: ContractUpdateOneWithoutPreviousContractNestedInput
|
|
provider?: ProviderUpdateOneWithoutContractsNestedInput
|
|
tariff?: TariffUpdateOneWithoutContractsNestedInput
|
|
stressfreiEmail?: StressfreiEmailUpdateOneWithoutContractsNestedInput
|
|
energyDetails?: EnergyContractDetailsUpdateOneWithoutContractNestedInput
|
|
internetDetails?: InternetContractDetailsUpdateOneWithoutContractNestedInput
|
|
mobileDetails?: MobileContractDetailsUpdateOneWithoutContractNestedInput
|
|
tvDetails?: TvContractDetailsUpdateOneWithoutContractNestedInput
|
|
carInsuranceDetails?: CarInsuranceDetailsUpdateOneWithoutContractNestedInput
|
|
tasks?: ContractTaskUpdateManyWithoutContractNestedInput
|
|
assignedEmails?: CachedEmailUpdateManyWithoutContractNestedInput
|
|
}
|
|
|
|
export type ContractUncheckedUpdateWithoutCancellationPeriodInput = {
|
|
id?: IntFieldUpdateOperationsInput | number
|
|
contractNumber?: StringFieldUpdateOperationsInput | string
|
|
customerId?: IntFieldUpdateOperationsInput | number
|
|
type?: EnumContractTypeFieldUpdateOperationsInput | $Enums.ContractType
|
|
status?: EnumContractStatusFieldUpdateOperationsInput | $Enums.ContractStatus
|
|
contractCategoryId?: NullableIntFieldUpdateOperationsInput | number | null
|
|
addressId?: NullableIntFieldUpdateOperationsInput | number | null
|
|
billingAddressId?: NullableIntFieldUpdateOperationsInput | number | null
|
|
bankCardId?: NullableIntFieldUpdateOperationsInput | number | null
|
|
identityDocumentId?: NullableIntFieldUpdateOperationsInput | number | null
|
|
salesPlatformId?: NullableIntFieldUpdateOperationsInput | number | null
|
|
contractDurationId?: NullableIntFieldUpdateOperationsInput | number | null
|
|
previousContractId?: NullableIntFieldUpdateOperationsInput | number | null
|
|
providerId?: NullableIntFieldUpdateOperationsInput | number | null
|
|
tariffId?: NullableIntFieldUpdateOperationsInput | number | null
|
|
providerName?: NullableStringFieldUpdateOperationsInput | string | null
|
|
tariffName?: NullableStringFieldUpdateOperationsInput | string | null
|
|
customerNumberAtProvider?: NullableStringFieldUpdateOperationsInput | string | null
|
|
priceFirst12Months?: NullableStringFieldUpdateOperationsInput | string | null
|
|
priceFrom13Months?: NullableStringFieldUpdateOperationsInput | string | null
|
|
priceAfter24Months?: NullableStringFieldUpdateOperationsInput | string | null
|
|
startDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
endDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
commission?: NullableFloatFieldUpdateOperationsInput | number | null
|
|
cancellationLetterPath?: NullableStringFieldUpdateOperationsInput | string | null
|
|
cancellationConfirmationPath?: NullableStringFieldUpdateOperationsInput | string | null
|
|
cancellationLetterOptionsPath?: NullableStringFieldUpdateOperationsInput | string | null
|
|
cancellationConfirmationOptionsPath?: NullableStringFieldUpdateOperationsInput | string | null
|
|
cancellationConfirmationDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
cancellationConfirmationOptionsDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
wasSpecialCancellation?: BoolFieldUpdateOperationsInput | boolean
|
|
portalUsername?: NullableStringFieldUpdateOperationsInput | string | null
|
|
portalPasswordEncrypted?: NullableStringFieldUpdateOperationsInput | string | null
|
|
stressfreiEmailId?: NullableIntFieldUpdateOperationsInput | number | null
|
|
notes?: NullableStringFieldUpdateOperationsInput | string | null
|
|
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
followUpContract?: ContractUncheckedUpdateOneWithoutPreviousContractNestedInput
|
|
energyDetails?: EnergyContractDetailsUncheckedUpdateOneWithoutContractNestedInput
|
|
internetDetails?: InternetContractDetailsUncheckedUpdateOneWithoutContractNestedInput
|
|
mobileDetails?: MobileContractDetailsUncheckedUpdateOneWithoutContractNestedInput
|
|
tvDetails?: TvContractDetailsUncheckedUpdateOneWithoutContractNestedInput
|
|
carInsuranceDetails?: CarInsuranceDetailsUncheckedUpdateOneWithoutContractNestedInput
|
|
tasks?: ContractTaskUncheckedUpdateManyWithoutContractNestedInput
|
|
assignedEmails?: CachedEmailUncheckedUpdateManyWithoutContractNestedInput
|
|
}
|
|
|
|
export type ContractUncheckedUpdateManyWithoutCancellationPeriodInput = {
|
|
id?: IntFieldUpdateOperationsInput | number
|
|
contractNumber?: StringFieldUpdateOperationsInput | string
|
|
customerId?: IntFieldUpdateOperationsInput | number
|
|
type?: EnumContractTypeFieldUpdateOperationsInput | $Enums.ContractType
|
|
status?: EnumContractStatusFieldUpdateOperationsInput | $Enums.ContractStatus
|
|
contractCategoryId?: NullableIntFieldUpdateOperationsInput | number | null
|
|
addressId?: NullableIntFieldUpdateOperationsInput | number | null
|
|
billingAddressId?: NullableIntFieldUpdateOperationsInput | number | null
|
|
bankCardId?: NullableIntFieldUpdateOperationsInput | number | null
|
|
identityDocumentId?: NullableIntFieldUpdateOperationsInput | number | null
|
|
salesPlatformId?: NullableIntFieldUpdateOperationsInput | number | null
|
|
contractDurationId?: NullableIntFieldUpdateOperationsInput | number | null
|
|
previousContractId?: NullableIntFieldUpdateOperationsInput | number | null
|
|
providerId?: NullableIntFieldUpdateOperationsInput | number | null
|
|
tariffId?: NullableIntFieldUpdateOperationsInput | number | null
|
|
providerName?: NullableStringFieldUpdateOperationsInput | string | null
|
|
tariffName?: NullableStringFieldUpdateOperationsInput | string | null
|
|
customerNumberAtProvider?: NullableStringFieldUpdateOperationsInput | string | null
|
|
priceFirst12Months?: NullableStringFieldUpdateOperationsInput | string | null
|
|
priceFrom13Months?: NullableStringFieldUpdateOperationsInput | string | null
|
|
priceAfter24Months?: NullableStringFieldUpdateOperationsInput | string | null
|
|
startDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
endDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
commission?: NullableFloatFieldUpdateOperationsInput | number | null
|
|
cancellationLetterPath?: NullableStringFieldUpdateOperationsInput | string | null
|
|
cancellationConfirmationPath?: NullableStringFieldUpdateOperationsInput | string | null
|
|
cancellationLetterOptionsPath?: NullableStringFieldUpdateOperationsInput | string | null
|
|
cancellationConfirmationOptionsPath?: NullableStringFieldUpdateOperationsInput | string | null
|
|
cancellationConfirmationDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
cancellationConfirmationOptionsDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
wasSpecialCancellation?: BoolFieldUpdateOperationsInput | boolean
|
|
portalUsername?: NullableStringFieldUpdateOperationsInput | string | null
|
|
portalPasswordEncrypted?: NullableStringFieldUpdateOperationsInput | string | null
|
|
stressfreiEmailId?: NullableIntFieldUpdateOperationsInput | number | null
|
|
notes?: NullableStringFieldUpdateOperationsInput | string | null
|
|
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
}
|
|
|
|
export type ContractCreateManyContractDurationInput = {
|
|
id?: number
|
|
contractNumber: string
|
|
customerId: number
|
|
type: $Enums.ContractType
|
|
status?: $Enums.ContractStatus
|
|
contractCategoryId?: number | null
|
|
addressId?: number | null
|
|
billingAddressId?: number | null
|
|
bankCardId?: number | null
|
|
identityDocumentId?: number | null
|
|
salesPlatformId?: number | null
|
|
cancellationPeriodId?: number | null
|
|
previousContractId?: number | null
|
|
providerId?: number | null
|
|
tariffId?: number | null
|
|
providerName?: string | null
|
|
tariffName?: string | null
|
|
customerNumberAtProvider?: string | null
|
|
priceFirst12Months?: string | null
|
|
priceFrom13Months?: string | null
|
|
priceAfter24Months?: string | null
|
|
startDate?: Date | string | null
|
|
endDate?: Date | string | null
|
|
commission?: number | null
|
|
cancellationLetterPath?: string | null
|
|
cancellationConfirmationPath?: string | null
|
|
cancellationLetterOptionsPath?: string | null
|
|
cancellationConfirmationOptionsPath?: string | null
|
|
cancellationConfirmationDate?: Date | string | null
|
|
cancellationConfirmationOptionsDate?: Date | string | null
|
|
wasSpecialCancellation?: boolean
|
|
portalUsername?: string | null
|
|
portalPasswordEncrypted?: string | null
|
|
stressfreiEmailId?: number | null
|
|
notes?: string | null
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
}
|
|
|
|
export type ContractUpdateWithoutContractDurationInput = {
|
|
contractNumber?: StringFieldUpdateOperationsInput | string
|
|
type?: EnumContractTypeFieldUpdateOperationsInput | $Enums.ContractType
|
|
status?: EnumContractStatusFieldUpdateOperationsInput | $Enums.ContractStatus
|
|
providerName?: NullableStringFieldUpdateOperationsInput | string | null
|
|
tariffName?: NullableStringFieldUpdateOperationsInput | string | null
|
|
customerNumberAtProvider?: NullableStringFieldUpdateOperationsInput | string | null
|
|
priceFirst12Months?: NullableStringFieldUpdateOperationsInput | string | null
|
|
priceFrom13Months?: NullableStringFieldUpdateOperationsInput | string | null
|
|
priceAfter24Months?: NullableStringFieldUpdateOperationsInput | string | null
|
|
startDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
endDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
commission?: NullableFloatFieldUpdateOperationsInput | number | null
|
|
cancellationLetterPath?: NullableStringFieldUpdateOperationsInput | string | null
|
|
cancellationConfirmationPath?: NullableStringFieldUpdateOperationsInput | string | null
|
|
cancellationLetterOptionsPath?: NullableStringFieldUpdateOperationsInput | string | null
|
|
cancellationConfirmationOptionsPath?: NullableStringFieldUpdateOperationsInput | string | null
|
|
cancellationConfirmationDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
cancellationConfirmationOptionsDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
wasSpecialCancellation?: BoolFieldUpdateOperationsInput | boolean
|
|
portalUsername?: NullableStringFieldUpdateOperationsInput | string | null
|
|
portalPasswordEncrypted?: NullableStringFieldUpdateOperationsInput | string | null
|
|
notes?: NullableStringFieldUpdateOperationsInput | string | null
|
|
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
customer?: CustomerUpdateOneRequiredWithoutContractsNestedInput
|
|
contractCategory?: ContractCategoryUpdateOneWithoutContractsNestedInput
|
|
address?: AddressUpdateOneWithoutContractsAsDeliveryNestedInput
|
|
billingAddress?: AddressUpdateOneWithoutContractsAsBillingNestedInput
|
|
bankCard?: BankCardUpdateOneWithoutContractsNestedInput
|
|
identityDocument?: IdentityDocumentUpdateOneWithoutContractsNestedInput
|
|
salesPlatform?: SalesPlatformUpdateOneWithoutContractsNestedInput
|
|
cancellationPeriod?: CancellationPeriodUpdateOneWithoutContractsNestedInput
|
|
previousContract?: ContractUpdateOneWithoutFollowUpContractNestedInput
|
|
followUpContract?: ContractUpdateOneWithoutPreviousContractNestedInput
|
|
provider?: ProviderUpdateOneWithoutContractsNestedInput
|
|
tariff?: TariffUpdateOneWithoutContractsNestedInput
|
|
stressfreiEmail?: StressfreiEmailUpdateOneWithoutContractsNestedInput
|
|
energyDetails?: EnergyContractDetailsUpdateOneWithoutContractNestedInput
|
|
internetDetails?: InternetContractDetailsUpdateOneWithoutContractNestedInput
|
|
mobileDetails?: MobileContractDetailsUpdateOneWithoutContractNestedInput
|
|
tvDetails?: TvContractDetailsUpdateOneWithoutContractNestedInput
|
|
carInsuranceDetails?: CarInsuranceDetailsUpdateOneWithoutContractNestedInput
|
|
tasks?: ContractTaskUpdateManyWithoutContractNestedInput
|
|
assignedEmails?: CachedEmailUpdateManyWithoutContractNestedInput
|
|
}
|
|
|
|
export type ContractUncheckedUpdateWithoutContractDurationInput = {
|
|
id?: IntFieldUpdateOperationsInput | number
|
|
contractNumber?: StringFieldUpdateOperationsInput | string
|
|
customerId?: IntFieldUpdateOperationsInput | number
|
|
type?: EnumContractTypeFieldUpdateOperationsInput | $Enums.ContractType
|
|
status?: EnumContractStatusFieldUpdateOperationsInput | $Enums.ContractStatus
|
|
contractCategoryId?: NullableIntFieldUpdateOperationsInput | number | null
|
|
addressId?: NullableIntFieldUpdateOperationsInput | number | null
|
|
billingAddressId?: NullableIntFieldUpdateOperationsInput | number | null
|
|
bankCardId?: NullableIntFieldUpdateOperationsInput | number | null
|
|
identityDocumentId?: NullableIntFieldUpdateOperationsInput | number | null
|
|
salesPlatformId?: NullableIntFieldUpdateOperationsInput | number | null
|
|
cancellationPeriodId?: NullableIntFieldUpdateOperationsInput | number | null
|
|
previousContractId?: NullableIntFieldUpdateOperationsInput | number | null
|
|
providerId?: NullableIntFieldUpdateOperationsInput | number | null
|
|
tariffId?: NullableIntFieldUpdateOperationsInput | number | null
|
|
providerName?: NullableStringFieldUpdateOperationsInput | string | null
|
|
tariffName?: NullableStringFieldUpdateOperationsInput | string | null
|
|
customerNumberAtProvider?: NullableStringFieldUpdateOperationsInput | string | null
|
|
priceFirst12Months?: NullableStringFieldUpdateOperationsInput | string | null
|
|
priceFrom13Months?: NullableStringFieldUpdateOperationsInput | string | null
|
|
priceAfter24Months?: NullableStringFieldUpdateOperationsInput | string | null
|
|
startDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
endDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
commission?: NullableFloatFieldUpdateOperationsInput | number | null
|
|
cancellationLetterPath?: NullableStringFieldUpdateOperationsInput | string | null
|
|
cancellationConfirmationPath?: NullableStringFieldUpdateOperationsInput | string | null
|
|
cancellationLetterOptionsPath?: NullableStringFieldUpdateOperationsInput | string | null
|
|
cancellationConfirmationOptionsPath?: NullableStringFieldUpdateOperationsInput | string | null
|
|
cancellationConfirmationDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
cancellationConfirmationOptionsDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
wasSpecialCancellation?: BoolFieldUpdateOperationsInput | boolean
|
|
portalUsername?: NullableStringFieldUpdateOperationsInput | string | null
|
|
portalPasswordEncrypted?: NullableStringFieldUpdateOperationsInput | string | null
|
|
stressfreiEmailId?: NullableIntFieldUpdateOperationsInput | number | null
|
|
notes?: NullableStringFieldUpdateOperationsInput | string | null
|
|
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
followUpContract?: ContractUncheckedUpdateOneWithoutPreviousContractNestedInput
|
|
energyDetails?: EnergyContractDetailsUncheckedUpdateOneWithoutContractNestedInput
|
|
internetDetails?: InternetContractDetailsUncheckedUpdateOneWithoutContractNestedInput
|
|
mobileDetails?: MobileContractDetailsUncheckedUpdateOneWithoutContractNestedInput
|
|
tvDetails?: TvContractDetailsUncheckedUpdateOneWithoutContractNestedInput
|
|
carInsuranceDetails?: CarInsuranceDetailsUncheckedUpdateOneWithoutContractNestedInput
|
|
tasks?: ContractTaskUncheckedUpdateManyWithoutContractNestedInput
|
|
assignedEmails?: CachedEmailUncheckedUpdateManyWithoutContractNestedInput
|
|
}
|
|
|
|
export type ContractUncheckedUpdateManyWithoutContractDurationInput = {
|
|
id?: IntFieldUpdateOperationsInput | number
|
|
contractNumber?: StringFieldUpdateOperationsInput | string
|
|
customerId?: IntFieldUpdateOperationsInput | number
|
|
type?: EnumContractTypeFieldUpdateOperationsInput | $Enums.ContractType
|
|
status?: EnumContractStatusFieldUpdateOperationsInput | $Enums.ContractStatus
|
|
contractCategoryId?: NullableIntFieldUpdateOperationsInput | number | null
|
|
addressId?: NullableIntFieldUpdateOperationsInput | number | null
|
|
billingAddressId?: NullableIntFieldUpdateOperationsInput | number | null
|
|
bankCardId?: NullableIntFieldUpdateOperationsInput | number | null
|
|
identityDocumentId?: NullableIntFieldUpdateOperationsInput | number | null
|
|
salesPlatformId?: NullableIntFieldUpdateOperationsInput | number | null
|
|
cancellationPeriodId?: NullableIntFieldUpdateOperationsInput | number | null
|
|
previousContractId?: NullableIntFieldUpdateOperationsInput | number | null
|
|
providerId?: NullableIntFieldUpdateOperationsInput | number | null
|
|
tariffId?: NullableIntFieldUpdateOperationsInput | number | null
|
|
providerName?: NullableStringFieldUpdateOperationsInput | string | null
|
|
tariffName?: NullableStringFieldUpdateOperationsInput | string | null
|
|
customerNumberAtProvider?: NullableStringFieldUpdateOperationsInput | string | null
|
|
priceFirst12Months?: NullableStringFieldUpdateOperationsInput | string | null
|
|
priceFrom13Months?: NullableStringFieldUpdateOperationsInput | string | null
|
|
priceAfter24Months?: NullableStringFieldUpdateOperationsInput | string | null
|
|
startDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
endDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
commission?: NullableFloatFieldUpdateOperationsInput | number | null
|
|
cancellationLetterPath?: NullableStringFieldUpdateOperationsInput | string | null
|
|
cancellationConfirmationPath?: NullableStringFieldUpdateOperationsInput | string | null
|
|
cancellationLetterOptionsPath?: NullableStringFieldUpdateOperationsInput | string | null
|
|
cancellationConfirmationOptionsPath?: NullableStringFieldUpdateOperationsInput | string | null
|
|
cancellationConfirmationDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
cancellationConfirmationOptionsDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
wasSpecialCancellation?: BoolFieldUpdateOperationsInput | boolean
|
|
portalUsername?: NullableStringFieldUpdateOperationsInput | string | null
|
|
portalPasswordEncrypted?: NullableStringFieldUpdateOperationsInput | string | null
|
|
stressfreiEmailId?: NullableIntFieldUpdateOperationsInput | number | null
|
|
notes?: NullableStringFieldUpdateOperationsInput | string | null
|
|
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
}
|
|
|
|
export type TariffCreateManyProviderInput = {
|
|
id?: number
|
|
name: string
|
|
isActive?: boolean
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
}
|
|
|
|
export type ContractCreateManyProviderInput = {
|
|
id?: number
|
|
contractNumber: string
|
|
customerId: number
|
|
type: $Enums.ContractType
|
|
status?: $Enums.ContractStatus
|
|
contractCategoryId?: number | null
|
|
addressId?: number | null
|
|
billingAddressId?: number | null
|
|
bankCardId?: number | null
|
|
identityDocumentId?: number | null
|
|
salesPlatformId?: number | null
|
|
cancellationPeriodId?: number | null
|
|
contractDurationId?: number | null
|
|
previousContractId?: number | null
|
|
tariffId?: number | null
|
|
providerName?: string | null
|
|
tariffName?: string | null
|
|
customerNumberAtProvider?: string | null
|
|
priceFirst12Months?: string | null
|
|
priceFrom13Months?: string | null
|
|
priceAfter24Months?: string | null
|
|
startDate?: Date | string | null
|
|
endDate?: Date | string | null
|
|
commission?: number | null
|
|
cancellationLetterPath?: string | null
|
|
cancellationConfirmationPath?: string | null
|
|
cancellationLetterOptionsPath?: string | null
|
|
cancellationConfirmationOptionsPath?: string | null
|
|
cancellationConfirmationDate?: Date | string | null
|
|
cancellationConfirmationOptionsDate?: Date | string | null
|
|
wasSpecialCancellation?: boolean
|
|
portalUsername?: string | null
|
|
portalPasswordEncrypted?: string | null
|
|
stressfreiEmailId?: number | null
|
|
notes?: string | null
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
}
|
|
|
|
export type TariffUpdateWithoutProviderInput = {
|
|
name?: StringFieldUpdateOperationsInput | string
|
|
isActive?: BoolFieldUpdateOperationsInput | boolean
|
|
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
contracts?: ContractUpdateManyWithoutTariffNestedInput
|
|
}
|
|
|
|
export type TariffUncheckedUpdateWithoutProviderInput = {
|
|
id?: IntFieldUpdateOperationsInput | number
|
|
name?: StringFieldUpdateOperationsInput | string
|
|
isActive?: BoolFieldUpdateOperationsInput | boolean
|
|
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
contracts?: ContractUncheckedUpdateManyWithoutTariffNestedInput
|
|
}
|
|
|
|
export type TariffUncheckedUpdateManyWithoutProviderInput = {
|
|
id?: IntFieldUpdateOperationsInput | number
|
|
name?: StringFieldUpdateOperationsInput | string
|
|
isActive?: BoolFieldUpdateOperationsInput | boolean
|
|
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
}
|
|
|
|
export type ContractUpdateWithoutProviderInput = {
|
|
contractNumber?: StringFieldUpdateOperationsInput | string
|
|
type?: EnumContractTypeFieldUpdateOperationsInput | $Enums.ContractType
|
|
status?: EnumContractStatusFieldUpdateOperationsInput | $Enums.ContractStatus
|
|
providerName?: NullableStringFieldUpdateOperationsInput | string | null
|
|
tariffName?: NullableStringFieldUpdateOperationsInput | string | null
|
|
customerNumberAtProvider?: NullableStringFieldUpdateOperationsInput | string | null
|
|
priceFirst12Months?: NullableStringFieldUpdateOperationsInput | string | null
|
|
priceFrom13Months?: NullableStringFieldUpdateOperationsInput | string | null
|
|
priceAfter24Months?: NullableStringFieldUpdateOperationsInput | string | null
|
|
startDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
endDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
commission?: NullableFloatFieldUpdateOperationsInput | number | null
|
|
cancellationLetterPath?: NullableStringFieldUpdateOperationsInput | string | null
|
|
cancellationConfirmationPath?: NullableStringFieldUpdateOperationsInput | string | null
|
|
cancellationLetterOptionsPath?: NullableStringFieldUpdateOperationsInput | string | null
|
|
cancellationConfirmationOptionsPath?: NullableStringFieldUpdateOperationsInput | string | null
|
|
cancellationConfirmationDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
cancellationConfirmationOptionsDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
wasSpecialCancellation?: BoolFieldUpdateOperationsInput | boolean
|
|
portalUsername?: NullableStringFieldUpdateOperationsInput | string | null
|
|
portalPasswordEncrypted?: NullableStringFieldUpdateOperationsInput | string | null
|
|
notes?: NullableStringFieldUpdateOperationsInput | string | null
|
|
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
customer?: CustomerUpdateOneRequiredWithoutContractsNestedInput
|
|
contractCategory?: ContractCategoryUpdateOneWithoutContractsNestedInput
|
|
address?: AddressUpdateOneWithoutContractsAsDeliveryNestedInput
|
|
billingAddress?: AddressUpdateOneWithoutContractsAsBillingNestedInput
|
|
bankCard?: BankCardUpdateOneWithoutContractsNestedInput
|
|
identityDocument?: IdentityDocumentUpdateOneWithoutContractsNestedInput
|
|
salesPlatform?: SalesPlatformUpdateOneWithoutContractsNestedInput
|
|
cancellationPeriod?: CancellationPeriodUpdateOneWithoutContractsNestedInput
|
|
contractDuration?: ContractDurationUpdateOneWithoutContractsNestedInput
|
|
previousContract?: ContractUpdateOneWithoutFollowUpContractNestedInput
|
|
followUpContract?: ContractUpdateOneWithoutPreviousContractNestedInput
|
|
tariff?: TariffUpdateOneWithoutContractsNestedInput
|
|
stressfreiEmail?: StressfreiEmailUpdateOneWithoutContractsNestedInput
|
|
energyDetails?: EnergyContractDetailsUpdateOneWithoutContractNestedInput
|
|
internetDetails?: InternetContractDetailsUpdateOneWithoutContractNestedInput
|
|
mobileDetails?: MobileContractDetailsUpdateOneWithoutContractNestedInput
|
|
tvDetails?: TvContractDetailsUpdateOneWithoutContractNestedInput
|
|
carInsuranceDetails?: CarInsuranceDetailsUpdateOneWithoutContractNestedInput
|
|
tasks?: ContractTaskUpdateManyWithoutContractNestedInput
|
|
assignedEmails?: CachedEmailUpdateManyWithoutContractNestedInput
|
|
}
|
|
|
|
export type ContractUncheckedUpdateWithoutProviderInput = {
|
|
id?: IntFieldUpdateOperationsInput | number
|
|
contractNumber?: StringFieldUpdateOperationsInput | string
|
|
customerId?: IntFieldUpdateOperationsInput | number
|
|
type?: EnumContractTypeFieldUpdateOperationsInput | $Enums.ContractType
|
|
status?: EnumContractStatusFieldUpdateOperationsInput | $Enums.ContractStatus
|
|
contractCategoryId?: NullableIntFieldUpdateOperationsInput | number | null
|
|
addressId?: NullableIntFieldUpdateOperationsInput | number | null
|
|
billingAddressId?: NullableIntFieldUpdateOperationsInput | number | null
|
|
bankCardId?: NullableIntFieldUpdateOperationsInput | number | null
|
|
identityDocumentId?: NullableIntFieldUpdateOperationsInput | number | null
|
|
salesPlatformId?: NullableIntFieldUpdateOperationsInput | number | null
|
|
cancellationPeriodId?: NullableIntFieldUpdateOperationsInput | number | null
|
|
contractDurationId?: NullableIntFieldUpdateOperationsInput | number | null
|
|
previousContractId?: NullableIntFieldUpdateOperationsInput | number | null
|
|
tariffId?: NullableIntFieldUpdateOperationsInput | number | null
|
|
providerName?: NullableStringFieldUpdateOperationsInput | string | null
|
|
tariffName?: NullableStringFieldUpdateOperationsInput | string | null
|
|
customerNumberAtProvider?: NullableStringFieldUpdateOperationsInput | string | null
|
|
priceFirst12Months?: NullableStringFieldUpdateOperationsInput | string | null
|
|
priceFrom13Months?: NullableStringFieldUpdateOperationsInput | string | null
|
|
priceAfter24Months?: NullableStringFieldUpdateOperationsInput | string | null
|
|
startDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
endDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
commission?: NullableFloatFieldUpdateOperationsInput | number | null
|
|
cancellationLetterPath?: NullableStringFieldUpdateOperationsInput | string | null
|
|
cancellationConfirmationPath?: NullableStringFieldUpdateOperationsInput | string | null
|
|
cancellationLetterOptionsPath?: NullableStringFieldUpdateOperationsInput | string | null
|
|
cancellationConfirmationOptionsPath?: NullableStringFieldUpdateOperationsInput | string | null
|
|
cancellationConfirmationDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
cancellationConfirmationOptionsDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
wasSpecialCancellation?: BoolFieldUpdateOperationsInput | boolean
|
|
portalUsername?: NullableStringFieldUpdateOperationsInput | string | null
|
|
portalPasswordEncrypted?: NullableStringFieldUpdateOperationsInput | string | null
|
|
stressfreiEmailId?: NullableIntFieldUpdateOperationsInput | number | null
|
|
notes?: NullableStringFieldUpdateOperationsInput | string | null
|
|
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
followUpContract?: ContractUncheckedUpdateOneWithoutPreviousContractNestedInput
|
|
energyDetails?: EnergyContractDetailsUncheckedUpdateOneWithoutContractNestedInput
|
|
internetDetails?: InternetContractDetailsUncheckedUpdateOneWithoutContractNestedInput
|
|
mobileDetails?: MobileContractDetailsUncheckedUpdateOneWithoutContractNestedInput
|
|
tvDetails?: TvContractDetailsUncheckedUpdateOneWithoutContractNestedInput
|
|
carInsuranceDetails?: CarInsuranceDetailsUncheckedUpdateOneWithoutContractNestedInput
|
|
tasks?: ContractTaskUncheckedUpdateManyWithoutContractNestedInput
|
|
assignedEmails?: CachedEmailUncheckedUpdateManyWithoutContractNestedInput
|
|
}
|
|
|
|
export type ContractUncheckedUpdateManyWithoutProviderInput = {
|
|
id?: IntFieldUpdateOperationsInput | number
|
|
contractNumber?: StringFieldUpdateOperationsInput | string
|
|
customerId?: IntFieldUpdateOperationsInput | number
|
|
type?: EnumContractTypeFieldUpdateOperationsInput | $Enums.ContractType
|
|
status?: EnumContractStatusFieldUpdateOperationsInput | $Enums.ContractStatus
|
|
contractCategoryId?: NullableIntFieldUpdateOperationsInput | number | null
|
|
addressId?: NullableIntFieldUpdateOperationsInput | number | null
|
|
billingAddressId?: NullableIntFieldUpdateOperationsInput | number | null
|
|
bankCardId?: NullableIntFieldUpdateOperationsInput | number | null
|
|
identityDocumentId?: NullableIntFieldUpdateOperationsInput | number | null
|
|
salesPlatformId?: NullableIntFieldUpdateOperationsInput | number | null
|
|
cancellationPeriodId?: NullableIntFieldUpdateOperationsInput | number | null
|
|
contractDurationId?: NullableIntFieldUpdateOperationsInput | number | null
|
|
previousContractId?: NullableIntFieldUpdateOperationsInput | number | null
|
|
tariffId?: NullableIntFieldUpdateOperationsInput | number | null
|
|
providerName?: NullableStringFieldUpdateOperationsInput | string | null
|
|
tariffName?: NullableStringFieldUpdateOperationsInput | string | null
|
|
customerNumberAtProvider?: NullableStringFieldUpdateOperationsInput | string | null
|
|
priceFirst12Months?: NullableStringFieldUpdateOperationsInput | string | null
|
|
priceFrom13Months?: NullableStringFieldUpdateOperationsInput | string | null
|
|
priceAfter24Months?: NullableStringFieldUpdateOperationsInput | string | null
|
|
startDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
endDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
commission?: NullableFloatFieldUpdateOperationsInput | number | null
|
|
cancellationLetterPath?: NullableStringFieldUpdateOperationsInput | string | null
|
|
cancellationConfirmationPath?: NullableStringFieldUpdateOperationsInput | string | null
|
|
cancellationLetterOptionsPath?: NullableStringFieldUpdateOperationsInput | string | null
|
|
cancellationConfirmationOptionsPath?: NullableStringFieldUpdateOperationsInput | string | null
|
|
cancellationConfirmationDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
cancellationConfirmationOptionsDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
wasSpecialCancellation?: BoolFieldUpdateOperationsInput | boolean
|
|
portalUsername?: NullableStringFieldUpdateOperationsInput | string | null
|
|
portalPasswordEncrypted?: NullableStringFieldUpdateOperationsInput | string | null
|
|
stressfreiEmailId?: NullableIntFieldUpdateOperationsInput | number | null
|
|
notes?: NullableStringFieldUpdateOperationsInput | string | null
|
|
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
}
|
|
|
|
export type ContractCreateManyTariffInput = {
|
|
id?: number
|
|
contractNumber: string
|
|
customerId: number
|
|
type: $Enums.ContractType
|
|
status?: $Enums.ContractStatus
|
|
contractCategoryId?: number | null
|
|
addressId?: number | null
|
|
billingAddressId?: number | null
|
|
bankCardId?: number | null
|
|
identityDocumentId?: number | null
|
|
salesPlatformId?: number | null
|
|
cancellationPeriodId?: number | null
|
|
contractDurationId?: number | null
|
|
previousContractId?: number | null
|
|
providerId?: number | null
|
|
providerName?: string | null
|
|
tariffName?: string | null
|
|
customerNumberAtProvider?: string | null
|
|
priceFirst12Months?: string | null
|
|
priceFrom13Months?: string | null
|
|
priceAfter24Months?: string | null
|
|
startDate?: Date | string | null
|
|
endDate?: Date | string | null
|
|
commission?: number | null
|
|
cancellationLetterPath?: string | null
|
|
cancellationConfirmationPath?: string | null
|
|
cancellationLetterOptionsPath?: string | null
|
|
cancellationConfirmationOptionsPath?: string | null
|
|
cancellationConfirmationDate?: Date | string | null
|
|
cancellationConfirmationOptionsDate?: Date | string | null
|
|
wasSpecialCancellation?: boolean
|
|
portalUsername?: string | null
|
|
portalPasswordEncrypted?: string | null
|
|
stressfreiEmailId?: number | null
|
|
notes?: string | null
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
}
|
|
|
|
export type ContractUpdateWithoutTariffInput = {
|
|
contractNumber?: StringFieldUpdateOperationsInput | string
|
|
type?: EnumContractTypeFieldUpdateOperationsInput | $Enums.ContractType
|
|
status?: EnumContractStatusFieldUpdateOperationsInput | $Enums.ContractStatus
|
|
providerName?: NullableStringFieldUpdateOperationsInput | string | null
|
|
tariffName?: NullableStringFieldUpdateOperationsInput | string | null
|
|
customerNumberAtProvider?: NullableStringFieldUpdateOperationsInput | string | null
|
|
priceFirst12Months?: NullableStringFieldUpdateOperationsInput | string | null
|
|
priceFrom13Months?: NullableStringFieldUpdateOperationsInput | string | null
|
|
priceAfter24Months?: NullableStringFieldUpdateOperationsInput | string | null
|
|
startDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
endDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
commission?: NullableFloatFieldUpdateOperationsInput | number | null
|
|
cancellationLetterPath?: NullableStringFieldUpdateOperationsInput | string | null
|
|
cancellationConfirmationPath?: NullableStringFieldUpdateOperationsInput | string | null
|
|
cancellationLetterOptionsPath?: NullableStringFieldUpdateOperationsInput | string | null
|
|
cancellationConfirmationOptionsPath?: NullableStringFieldUpdateOperationsInput | string | null
|
|
cancellationConfirmationDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
cancellationConfirmationOptionsDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
wasSpecialCancellation?: BoolFieldUpdateOperationsInput | boolean
|
|
portalUsername?: NullableStringFieldUpdateOperationsInput | string | null
|
|
portalPasswordEncrypted?: NullableStringFieldUpdateOperationsInput | string | null
|
|
notes?: NullableStringFieldUpdateOperationsInput | string | null
|
|
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
customer?: CustomerUpdateOneRequiredWithoutContractsNestedInput
|
|
contractCategory?: ContractCategoryUpdateOneWithoutContractsNestedInput
|
|
address?: AddressUpdateOneWithoutContractsAsDeliveryNestedInput
|
|
billingAddress?: AddressUpdateOneWithoutContractsAsBillingNestedInput
|
|
bankCard?: BankCardUpdateOneWithoutContractsNestedInput
|
|
identityDocument?: IdentityDocumentUpdateOneWithoutContractsNestedInput
|
|
salesPlatform?: SalesPlatformUpdateOneWithoutContractsNestedInput
|
|
cancellationPeriod?: CancellationPeriodUpdateOneWithoutContractsNestedInput
|
|
contractDuration?: ContractDurationUpdateOneWithoutContractsNestedInput
|
|
previousContract?: ContractUpdateOneWithoutFollowUpContractNestedInput
|
|
followUpContract?: ContractUpdateOneWithoutPreviousContractNestedInput
|
|
provider?: ProviderUpdateOneWithoutContractsNestedInput
|
|
stressfreiEmail?: StressfreiEmailUpdateOneWithoutContractsNestedInput
|
|
energyDetails?: EnergyContractDetailsUpdateOneWithoutContractNestedInput
|
|
internetDetails?: InternetContractDetailsUpdateOneWithoutContractNestedInput
|
|
mobileDetails?: MobileContractDetailsUpdateOneWithoutContractNestedInput
|
|
tvDetails?: TvContractDetailsUpdateOneWithoutContractNestedInput
|
|
carInsuranceDetails?: CarInsuranceDetailsUpdateOneWithoutContractNestedInput
|
|
tasks?: ContractTaskUpdateManyWithoutContractNestedInput
|
|
assignedEmails?: CachedEmailUpdateManyWithoutContractNestedInput
|
|
}
|
|
|
|
export type ContractUncheckedUpdateWithoutTariffInput = {
|
|
id?: IntFieldUpdateOperationsInput | number
|
|
contractNumber?: StringFieldUpdateOperationsInput | string
|
|
customerId?: IntFieldUpdateOperationsInput | number
|
|
type?: EnumContractTypeFieldUpdateOperationsInput | $Enums.ContractType
|
|
status?: EnumContractStatusFieldUpdateOperationsInput | $Enums.ContractStatus
|
|
contractCategoryId?: NullableIntFieldUpdateOperationsInput | number | null
|
|
addressId?: NullableIntFieldUpdateOperationsInput | number | null
|
|
billingAddressId?: NullableIntFieldUpdateOperationsInput | number | null
|
|
bankCardId?: NullableIntFieldUpdateOperationsInput | number | null
|
|
identityDocumentId?: NullableIntFieldUpdateOperationsInput | number | null
|
|
salesPlatformId?: NullableIntFieldUpdateOperationsInput | number | null
|
|
cancellationPeriodId?: NullableIntFieldUpdateOperationsInput | number | null
|
|
contractDurationId?: NullableIntFieldUpdateOperationsInput | number | null
|
|
previousContractId?: NullableIntFieldUpdateOperationsInput | number | null
|
|
providerId?: NullableIntFieldUpdateOperationsInput | number | null
|
|
providerName?: NullableStringFieldUpdateOperationsInput | string | null
|
|
tariffName?: NullableStringFieldUpdateOperationsInput | string | null
|
|
customerNumberAtProvider?: NullableStringFieldUpdateOperationsInput | string | null
|
|
priceFirst12Months?: NullableStringFieldUpdateOperationsInput | string | null
|
|
priceFrom13Months?: NullableStringFieldUpdateOperationsInput | string | null
|
|
priceAfter24Months?: NullableStringFieldUpdateOperationsInput | string | null
|
|
startDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
endDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
commission?: NullableFloatFieldUpdateOperationsInput | number | null
|
|
cancellationLetterPath?: NullableStringFieldUpdateOperationsInput | string | null
|
|
cancellationConfirmationPath?: NullableStringFieldUpdateOperationsInput | string | null
|
|
cancellationLetterOptionsPath?: NullableStringFieldUpdateOperationsInput | string | null
|
|
cancellationConfirmationOptionsPath?: NullableStringFieldUpdateOperationsInput | string | null
|
|
cancellationConfirmationDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
cancellationConfirmationOptionsDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
wasSpecialCancellation?: BoolFieldUpdateOperationsInput | boolean
|
|
portalUsername?: NullableStringFieldUpdateOperationsInput | string | null
|
|
portalPasswordEncrypted?: NullableStringFieldUpdateOperationsInput | string | null
|
|
stressfreiEmailId?: NullableIntFieldUpdateOperationsInput | number | null
|
|
notes?: NullableStringFieldUpdateOperationsInput | string | null
|
|
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
followUpContract?: ContractUncheckedUpdateOneWithoutPreviousContractNestedInput
|
|
energyDetails?: EnergyContractDetailsUncheckedUpdateOneWithoutContractNestedInput
|
|
internetDetails?: InternetContractDetailsUncheckedUpdateOneWithoutContractNestedInput
|
|
mobileDetails?: MobileContractDetailsUncheckedUpdateOneWithoutContractNestedInput
|
|
tvDetails?: TvContractDetailsUncheckedUpdateOneWithoutContractNestedInput
|
|
carInsuranceDetails?: CarInsuranceDetailsUncheckedUpdateOneWithoutContractNestedInput
|
|
tasks?: ContractTaskUncheckedUpdateManyWithoutContractNestedInput
|
|
assignedEmails?: CachedEmailUncheckedUpdateManyWithoutContractNestedInput
|
|
}
|
|
|
|
export type ContractUncheckedUpdateManyWithoutTariffInput = {
|
|
id?: IntFieldUpdateOperationsInput | number
|
|
contractNumber?: StringFieldUpdateOperationsInput | string
|
|
customerId?: IntFieldUpdateOperationsInput | number
|
|
type?: EnumContractTypeFieldUpdateOperationsInput | $Enums.ContractType
|
|
status?: EnumContractStatusFieldUpdateOperationsInput | $Enums.ContractStatus
|
|
contractCategoryId?: NullableIntFieldUpdateOperationsInput | number | null
|
|
addressId?: NullableIntFieldUpdateOperationsInput | number | null
|
|
billingAddressId?: NullableIntFieldUpdateOperationsInput | number | null
|
|
bankCardId?: NullableIntFieldUpdateOperationsInput | number | null
|
|
identityDocumentId?: NullableIntFieldUpdateOperationsInput | number | null
|
|
salesPlatformId?: NullableIntFieldUpdateOperationsInput | number | null
|
|
cancellationPeriodId?: NullableIntFieldUpdateOperationsInput | number | null
|
|
contractDurationId?: NullableIntFieldUpdateOperationsInput | number | null
|
|
previousContractId?: NullableIntFieldUpdateOperationsInput | number | null
|
|
providerId?: NullableIntFieldUpdateOperationsInput | number | null
|
|
providerName?: NullableStringFieldUpdateOperationsInput | string | null
|
|
tariffName?: NullableStringFieldUpdateOperationsInput | string | null
|
|
customerNumberAtProvider?: NullableStringFieldUpdateOperationsInput | string | null
|
|
priceFirst12Months?: NullableStringFieldUpdateOperationsInput | string | null
|
|
priceFrom13Months?: NullableStringFieldUpdateOperationsInput | string | null
|
|
priceAfter24Months?: NullableStringFieldUpdateOperationsInput | string | null
|
|
startDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
endDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
commission?: NullableFloatFieldUpdateOperationsInput | number | null
|
|
cancellationLetterPath?: NullableStringFieldUpdateOperationsInput | string | null
|
|
cancellationConfirmationPath?: NullableStringFieldUpdateOperationsInput | string | null
|
|
cancellationLetterOptionsPath?: NullableStringFieldUpdateOperationsInput | string | null
|
|
cancellationConfirmationOptionsPath?: NullableStringFieldUpdateOperationsInput | string | null
|
|
cancellationConfirmationDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
cancellationConfirmationOptionsDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
wasSpecialCancellation?: BoolFieldUpdateOperationsInput | boolean
|
|
portalUsername?: NullableStringFieldUpdateOperationsInput | string | null
|
|
portalPasswordEncrypted?: NullableStringFieldUpdateOperationsInput | string | null
|
|
stressfreiEmailId?: NullableIntFieldUpdateOperationsInput | number | null
|
|
notes?: NullableStringFieldUpdateOperationsInput | string | null
|
|
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
}
|
|
|
|
export type ContractCreateManyContractCategoryInput = {
|
|
id?: number
|
|
contractNumber: string
|
|
customerId: number
|
|
type: $Enums.ContractType
|
|
status?: $Enums.ContractStatus
|
|
addressId?: number | null
|
|
billingAddressId?: number | null
|
|
bankCardId?: number | null
|
|
identityDocumentId?: number | null
|
|
salesPlatformId?: number | null
|
|
cancellationPeriodId?: number | null
|
|
contractDurationId?: number | null
|
|
previousContractId?: number | null
|
|
providerId?: number | null
|
|
tariffId?: number | null
|
|
providerName?: string | null
|
|
tariffName?: string | null
|
|
customerNumberAtProvider?: string | null
|
|
priceFirst12Months?: string | null
|
|
priceFrom13Months?: string | null
|
|
priceAfter24Months?: string | null
|
|
startDate?: Date | string | null
|
|
endDate?: Date | string | null
|
|
commission?: number | null
|
|
cancellationLetterPath?: string | null
|
|
cancellationConfirmationPath?: string | null
|
|
cancellationLetterOptionsPath?: string | null
|
|
cancellationConfirmationOptionsPath?: string | null
|
|
cancellationConfirmationDate?: Date | string | null
|
|
cancellationConfirmationOptionsDate?: Date | string | null
|
|
wasSpecialCancellation?: boolean
|
|
portalUsername?: string | null
|
|
portalPasswordEncrypted?: string | null
|
|
stressfreiEmailId?: number | null
|
|
notes?: string | null
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
}
|
|
|
|
export type ContractUpdateWithoutContractCategoryInput = {
|
|
contractNumber?: StringFieldUpdateOperationsInput | string
|
|
type?: EnumContractTypeFieldUpdateOperationsInput | $Enums.ContractType
|
|
status?: EnumContractStatusFieldUpdateOperationsInput | $Enums.ContractStatus
|
|
providerName?: NullableStringFieldUpdateOperationsInput | string | null
|
|
tariffName?: NullableStringFieldUpdateOperationsInput | string | null
|
|
customerNumberAtProvider?: NullableStringFieldUpdateOperationsInput | string | null
|
|
priceFirst12Months?: NullableStringFieldUpdateOperationsInput | string | null
|
|
priceFrom13Months?: NullableStringFieldUpdateOperationsInput | string | null
|
|
priceAfter24Months?: NullableStringFieldUpdateOperationsInput | string | null
|
|
startDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
endDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
commission?: NullableFloatFieldUpdateOperationsInput | number | null
|
|
cancellationLetterPath?: NullableStringFieldUpdateOperationsInput | string | null
|
|
cancellationConfirmationPath?: NullableStringFieldUpdateOperationsInput | string | null
|
|
cancellationLetterOptionsPath?: NullableStringFieldUpdateOperationsInput | string | null
|
|
cancellationConfirmationOptionsPath?: NullableStringFieldUpdateOperationsInput | string | null
|
|
cancellationConfirmationDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
cancellationConfirmationOptionsDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
wasSpecialCancellation?: BoolFieldUpdateOperationsInput | boolean
|
|
portalUsername?: NullableStringFieldUpdateOperationsInput | string | null
|
|
portalPasswordEncrypted?: NullableStringFieldUpdateOperationsInput | string | null
|
|
notes?: NullableStringFieldUpdateOperationsInput | string | null
|
|
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
customer?: CustomerUpdateOneRequiredWithoutContractsNestedInput
|
|
address?: AddressUpdateOneWithoutContractsAsDeliveryNestedInput
|
|
billingAddress?: AddressUpdateOneWithoutContractsAsBillingNestedInput
|
|
bankCard?: BankCardUpdateOneWithoutContractsNestedInput
|
|
identityDocument?: IdentityDocumentUpdateOneWithoutContractsNestedInput
|
|
salesPlatform?: SalesPlatformUpdateOneWithoutContractsNestedInput
|
|
cancellationPeriod?: CancellationPeriodUpdateOneWithoutContractsNestedInput
|
|
contractDuration?: ContractDurationUpdateOneWithoutContractsNestedInput
|
|
previousContract?: ContractUpdateOneWithoutFollowUpContractNestedInput
|
|
followUpContract?: ContractUpdateOneWithoutPreviousContractNestedInput
|
|
provider?: ProviderUpdateOneWithoutContractsNestedInput
|
|
tariff?: TariffUpdateOneWithoutContractsNestedInput
|
|
stressfreiEmail?: StressfreiEmailUpdateOneWithoutContractsNestedInput
|
|
energyDetails?: EnergyContractDetailsUpdateOneWithoutContractNestedInput
|
|
internetDetails?: InternetContractDetailsUpdateOneWithoutContractNestedInput
|
|
mobileDetails?: MobileContractDetailsUpdateOneWithoutContractNestedInput
|
|
tvDetails?: TvContractDetailsUpdateOneWithoutContractNestedInput
|
|
carInsuranceDetails?: CarInsuranceDetailsUpdateOneWithoutContractNestedInput
|
|
tasks?: ContractTaskUpdateManyWithoutContractNestedInput
|
|
assignedEmails?: CachedEmailUpdateManyWithoutContractNestedInput
|
|
}
|
|
|
|
export type ContractUncheckedUpdateWithoutContractCategoryInput = {
|
|
id?: IntFieldUpdateOperationsInput | number
|
|
contractNumber?: StringFieldUpdateOperationsInput | string
|
|
customerId?: IntFieldUpdateOperationsInput | number
|
|
type?: EnumContractTypeFieldUpdateOperationsInput | $Enums.ContractType
|
|
status?: EnumContractStatusFieldUpdateOperationsInput | $Enums.ContractStatus
|
|
addressId?: NullableIntFieldUpdateOperationsInput | number | null
|
|
billingAddressId?: NullableIntFieldUpdateOperationsInput | number | null
|
|
bankCardId?: NullableIntFieldUpdateOperationsInput | number | null
|
|
identityDocumentId?: NullableIntFieldUpdateOperationsInput | number | null
|
|
salesPlatformId?: NullableIntFieldUpdateOperationsInput | number | null
|
|
cancellationPeriodId?: NullableIntFieldUpdateOperationsInput | number | null
|
|
contractDurationId?: NullableIntFieldUpdateOperationsInput | number | null
|
|
previousContractId?: NullableIntFieldUpdateOperationsInput | number | null
|
|
providerId?: NullableIntFieldUpdateOperationsInput | number | null
|
|
tariffId?: NullableIntFieldUpdateOperationsInput | number | null
|
|
providerName?: NullableStringFieldUpdateOperationsInput | string | null
|
|
tariffName?: NullableStringFieldUpdateOperationsInput | string | null
|
|
customerNumberAtProvider?: NullableStringFieldUpdateOperationsInput | string | null
|
|
priceFirst12Months?: NullableStringFieldUpdateOperationsInput | string | null
|
|
priceFrom13Months?: NullableStringFieldUpdateOperationsInput | string | null
|
|
priceAfter24Months?: NullableStringFieldUpdateOperationsInput | string | null
|
|
startDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
endDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
commission?: NullableFloatFieldUpdateOperationsInput | number | null
|
|
cancellationLetterPath?: NullableStringFieldUpdateOperationsInput | string | null
|
|
cancellationConfirmationPath?: NullableStringFieldUpdateOperationsInput | string | null
|
|
cancellationLetterOptionsPath?: NullableStringFieldUpdateOperationsInput | string | null
|
|
cancellationConfirmationOptionsPath?: NullableStringFieldUpdateOperationsInput | string | null
|
|
cancellationConfirmationDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
cancellationConfirmationOptionsDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
wasSpecialCancellation?: BoolFieldUpdateOperationsInput | boolean
|
|
portalUsername?: NullableStringFieldUpdateOperationsInput | string | null
|
|
portalPasswordEncrypted?: NullableStringFieldUpdateOperationsInput | string | null
|
|
stressfreiEmailId?: NullableIntFieldUpdateOperationsInput | number | null
|
|
notes?: NullableStringFieldUpdateOperationsInput | string | null
|
|
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
followUpContract?: ContractUncheckedUpdateOneWithoutPreviousContractNestedInput
|
|
energyDetails?: EnergyContractDetailsUncheckedUpdateOneWithoutContractNestedInput
|
|
internetDetails?: InternetContractDetailsUncheckedUpdateOneWithoutContractNestedInput
|
|
mobileDetails?: MobileContractDetailsUncheckedUpdateOneWithoutContractNestedInput
|
|
tvDetails?: TvContractDetailsUncheckedUpdateOneWithoutContractNestedInput
|
|
carInsuranceDetails?: CarInsuranceDetailsUncheckedUpdateOneWithoutContractNestedInput
|
|
tasks?: ContractTaskUncheckedUpdateManyWithoutContractNestedInput
|
|
assignedEmails?: CachedEmailUncheckedUpdateManyWithoutContractNestedInput
|
|
}
|
|
|
|
export type ContractUncheckedUpdateManyWithoutContractCategoryInput = {
|
|
id?: IntFieldUpdateOperationsInput | number
|
|
contractNumber?: StringFieldUpdateOperationsInput | string
|
|
customerId?: IntFieldUpdateOperationsInput | number
|
|
type?: EnumContractTypeFieldUpdateOperationsInput | $Enums.ContractType
|
|
status?: EnumContractStatusFieldUpdateOperationsInput | $Enums.ContractStatus
|
|
addressId?: NullableIntFieldUpdateOperationsInput | number | null
|
|
billingAddressId?: NullableIntFieldUpdateOperationsInput | number | null
|
|
bankCardId?: NullableIntFieldUpdateOperationsInput | number | null
|
|
identityDocumentId?: NullableIntFieldUpdateOperationsInput | number | null
|
|
salesPlatformId?: NullableIntFieldUpdateOperationsInput | number | null
|
|
cancellationPeriodId?: NullableIntFieldUpdateOperationsInput | number | null
|
|
contractDurationId?: NullableIntFieldUpdateOperationsInput | number | null
|
|
previousContractId?: NullableIntFieldUpdateOperationsInput | number | null
|
|
providerId?: NullableIntFieldUpdateOperationsInput | number | null
|
|
tariffId?: NullableIntFieldUpdateOperationsInput | number | null
|
|
providerName?: NullableStringFieldUpdateOperationsInput | string | null
|
|
tariffName?: NullableStringFieldUpdateOperationsInput | string | null
|
|
customerNumberAtProvider?: NullableStringFieldUpdateOperationsInput | string | null
|
|
priceFirst12Months?: NullableStringFieldUpdateOperationsInput | string | null
|
|
priceFrom13Months?: NullableStringFieldUpdateOperationsInput | string | null
|
|
priceAfter24Months?: NullableStringFieldUpdateOperationsInput | string | null
|
|
startDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
endDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
commission?: NullableFloatFieldUpdateOperationsInput | number | null
|
|
cancellationLetterPath?: NullableStringFieldUpdateOperationsInput | string | null
|
|
cancellationConfirmationPath?: NullableStringFieldUpdateOperationsInput | string | null
|
|
cancellationLetterOptionsPath?: NullableStringFieldUpdateOperationsInput | string | null
|
|
cancellationConfirmationOptionsPath?: NullableStringFieldUpdateOperationsInput | string | null
|
|
cancellationConfirmationDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
cancellationConfirmationOptionsDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
wasSpecialCancellation?: BoolFieldUpdateOperationsInput | boolean
|
|
portalUsername?: NullableStringFieldUpdateOperationsInput | string | null
|
|
portalPasswordEncrypted?: NullableStringFieldUpdateOperationsInput | string | null
|
|
stressfreiEmailId?: NullableIntFieldUpdateOperationsInput | number | null
|
|
notes?: NullableStringFieldUpdateOperationsInput | string | null
|
|
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
}
|
|
|
|
export type ContractTaskCreateManyContractInput = {
|
|
id?: number
|
|
title: string
|
|
description?: string | null
|
|
status?: $Enums.ContractTaskStatus
|
|
visibleInPortal?: boolean
|
|
createdBy?: string | null
|
|
completedAt?: Date | string | null
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
}
|
|
|
|
export type CachedEmailCreateManyContractInput = {
|
|
id?: number
|
|
stressfreiEmailId: number
|
|
folder?: $Enums.EmailFolder
|
|
messageId: string
|
|
uid: number
|
|
subject?: string | null
|
|
fromAddress: string
|
|
fromName?: string | null
|
|
toAddresses: string
|
|
ccAddresses?: string | null
|
|
receivedAt: Date | string
|
|
textBody?: string | null
|
|
htmlBody?: string | null
|
|
hasAttachments?: boolean
|
|
attachmentNames?: string | null
|
|
assignedAt?: Date | string | null
|
|
assignedBy?: number | null
|
|
isAutoAssigned?: boolean
|
|
isRead?: boolean
|
|
isStarred?: boolean
|
|
isDeleted?: boolean
|
|
deletedAt?: Date | string | null
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
}
|
|
|
|
export type ContractTaskUpdateWithoutContractInput = {
|
|
title?: StringFieldUpdateOperationsInput | string
|
|
description?: NullableStringFieldUpdateOperationsInput | string | null
|
|
status?: EnumContractTaskStatusFieldUpdateOperationsInput | $Enums.ContractTaskStatus
|
|
visibleInPortal?: BoolFieldUpdateOperationsInput | boolean
|
|
createdBy?: NullableStringFieldUpdateOperationsInput | string | null
|
|
completedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
subtasks?: ContractTaskSubtaskUpdateManyWithoutTaskNestedInput
|
|
}
|
|
|
|
export type ContractTaskUncheckedUpdateWithoutContractInput = {
|
|
id?: IntFieldUpdateOperationsInput | number
|
|
title?: StringFieldUpdateOperationsInput | string
|
|
description?: NullableStringFieldUpdateOperationsInput | string | null
|
|
status?: EnumContractTaskStatusFieldUpdateOperationsInput | $Enums.ContractTaskStatus
|
|
visibleInPortal?: BoolFieldUpdateOperationsInput | boolean
|
|
createdBy?: NullableStringFieldUpdateOperationsInput | string | null
|
|
completedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
subtasks?: ContractTaskSubtaskUncheckedUpdateManyWithoutTaskNestedInput
|
|
}
|
|
|
|
export type ContractTaskUncheckedUpdateManyWithoutContractInput = {
|
|
id?: IntFieldUpdateOperationsInput | number
|
|
title?: StringFieldUpdateOperationsInput | string
|
|
description?: NullableStringFieldUpdateOperationsInput | string | null
|
|
status?: EnumContractTaskStatusFieldUpdateOperationsInput | $Enums.ContractTaskStatus
|
|
visibleInPortal?: BoolFieldUpdateOperationsInput | boolean
|
|
createdBy?: NullableStringFieldUpdateOperationsInput | string | null
|
|
completedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
}
|
|
|
|
export type CachedEmailUpdateWithoutContractInput = {
|
|
folder?: EnumEmailFolderFieldUpdateOperationsInput | $Enums.EmailFolder
|
|
messageId?: StringFieldUpdateOperationsInput | string
|
|
uid?: IntFieldUpdateOperationsInput | number
|
|
subject?: NullableStringFieldUpdateOperationsInput | string | null
|
|
fromAddress?: StringFieldUpdateOperationsInput | string
|
|
fromName?: NullableStringFieldUpdateOperationsInput | string | null
|
|
toAddresses?: StringFieldUpdateOperationsInput | string
|
|
ccAddresses?: NullableStringFieldUpdateOperationsInput | string | null
|
|
receivedAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
textBody?: NullableStringFieldUpdateOperationsInput | string | null
|
|
htmlBody?: NullableStringFieldUpdateOperationsInput | string | null
|
|
hasAttachments?: BoolFieldUpdateOperationsInput | boolean
|
|
attachmentNames?: NullableStringFieldUpdateOperationsInput | string | null
|
|
assignedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
assignedBy?: NullableIntFieldUpdateOperationsInput | number | null
|
|
isAutoAssigned?: BoolFieldUpdateOperationsInput | boolean
|
|
isRead?: BoolFieldUpdateOperationsInput | boolean
|
|
isStarred?: BoolFieldUpdateOperationsInput | boolean
|
|
isDeleted?: BoolFieldUpdateOperationsInput | boolean
|
|
deletedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
stressfreiEmail?: StressfreiEmailUpdateOneRequiredWithoutCachedEmailsNestedInput
|
|
}
|
|
|
|
export type CachedEmailUncheckedUpdateWithoutContractInput = {
|
|
id?: IntFieldUpdateOperationsInput | number
|
|
stressfreiEmailId?: IntFieldUpdateOperationsInput | number
|
|
folder?: EnumEmailFolderFieldUpdateOperationsInput | $Enums.EmailFolder
|
|
messageId?: StringFieldUpdateOperationsInput | string
|
|
uid?: IntFieldUpdateOperationsInput | number
|
|
subject?: NullableStringFieldUpdateOperationsInput | string | null
|
|
fromAddress?: StringFieldUpdateOperationsInput | string
|
|
fromName?: NullableStringFieldUpdateOperationsInput | string | null
|
|
toAddresses?: StringFieldUpdateOperationsInput | string
|
|
ccAddresses?: NullableStringFieldUpdateOperationsInput | string | null
|
|
receivedAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
textBody?: NullableStringFieldUpdateOperationsInput | string | null
|
|
htmlBody?: NullableStringFieldUpdateOperationsInput | string | null
|
|
hasAttachments?: BoolFieldUpdateOperationsInput | boolean
|
|
attachmentNames?: NullableStringFieldUpdateOperationsInput | string | null
|
|
assignedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
assignedBy?: NullableIntFieldUpdateOperationsInput | number | null
|
|
isAutoAssigned?: BoolFieldUpdateOperationsInput | boolean
|
|
isRead?: BoolFieldUpdateOperationsInput | boolean
|
|
isStarred?: BoolFieldUpdateOperationsInput | boolean
|
|
isDeleted?: BoolFieldUpdateOperationsInput | boolean
|
|
deletedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
}
|
|
|
|
export type CachedEmailUncheckedUpdateManyWithoutContractInput = {
|
|
id?: IntFieldUpdateOperationsInput | number
|
|
stressfreiEmailId?: IntFieldUpdateOperationsInput | number
|
|
folder?: EnumEmailFolderFieldUpdateOperationsInput | $Enums.EmailFolder
|
|
messageId?: StringFieldUpdateOperationsInput | string
|
|
uid?: IntFieldUpdateOperationsInput | number
|
|
subject?: NullableStringFieldUpdateOperationsInput | string | null
|
|
fromAddress?: StringFieldUpdateOperationsInput | string
|
|
fromName?: NullableStringFieldUpdateOperationsInput | string | null
|
|
toAddresses?: StringFieldUpdateOperationsInput | string
|
|
ccAddresses?: NullableStringFieldUpdateOperationsInput | string | null
|
|
receivedAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
textBody?: NullableStringFieldUpdateOperationsInput | string | null
|
|
htmlBody?: NullableStringFieldUpdateOperationsInput | string | null
|
|
hasAttachments?: BoolFieldUpdateOperationsInput | boolean
|
|
attachmentNames?: NullableStringFieldUpdateOperationsInput | string | null
|
|
assignedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
assignedBy?: NullableIntFieldUpdateOperationsInput | number | null
|
|
isAutoAssigned?: BoolFieldUpdateOperationsInput | boolean
|
|
isRead?: BoolFieldUpdateOperationsInput | boolean
|
|
isStarred?: BoolFieldUpdateOperationsInput | boolean
|
|
isDeleted?: BoolFieldUpdateOperationsInput | boolean
|
|
deletedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
}
|
|
|
|
export type ContractTaskSubtaskCreateManyTaskInput = {
|
|
id?: number
|
|
title: string
|
|
status?: $Enums.ContractTaskStatus
|
|
createdBy?: string | null
|
|
completedAt?: Date | string | null
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
}
|
|
|
|
export type ContractTaskSubtaskUpdateWithoutTaskInput = {
|
|
title?: StringFieldUpdateOperationsInput | string
|
|
status?: EnumContractTaskStatusFieldUpdateOperationsInput | $Enums.ContractTaskStatus
|
|
createdBy?: NullableStringFieldUpdateOperationsInput | string | null
|
|
completedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
}
|
|
|
|
export type ContractTaskSubtaskUncheckedUpdateWithoutTaskInput = {
|
|
id?: IntFieldUpdateOperationsInput | number
|
|
title?: StringFieldUpdateOperationsInput | string
|
|
status?: EnumContractTaskStatusFieldUpdateOperationsInput | $Enums.ContractTaskStatus
|
|
createdBy?: NullableStringFieldUpdateOperationsInput | string | null
|
|
completedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
}
|
|
|
|
export type ContractTaskSubtaskUncheckedUpdateManyWithoutTaskInput = {
|
|
id?: IntFieldUpdateOperationsInput | number
|
|
title?: StringFieldUpdateOperationsInput | string
|
|
status?: EnumContractTaskStatusFieldUpdateOperationsInput | $Enums.ContractTaskStatus
|
|
createdBy?: NullableStringFieldUpdateOperationsInput | string | null
|
|
completedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
}
|
|
|
|
export type PhoneNumberCreateManyInternetDetailsInput = {
|
|
id?: number
|
|
phoneNumber: string
|
|
isMain?: boolean
|
|
sipUsername?: string | null
|
|
sipPasswordEncrypted?: string | null
|
|
sipServer?: string | null
|
|
}
|
|
|
|
export type PhoneNumberUpdateWithoutInternetDetailsInput = {
|
|
phoneNumber?: StringFieldUpdateOperationsInput | string
|
|
isMain?: BoolFieldUpdateOperationsInput | boolean
|
|
sipUsername?: NullableStringFieldUpdateOperationsInput | string | null
|
|
sipPasswordEncrypted?: NullableStringFieldUpdateOperationsInput | string | null
|
|
sipServer?: NullableStringFieldUpdateOperationsInput | string | null
|
|
}
|
|
|
|
export type PhoneNumberUncheckedUpdateWithoutInternetDetailsInput = {
|
|
id?: IntFieldUpdateOperationsInput | number
|
|
phoneNumber?: StringFieldUpdateOperationsInput | string
|
|
isMain?: BoolFieldUpdateOperationsInput | boolean
|
|
sipUsername?: NullableStringFieldUpdateOperationsInput | string | null
|
|
sipPasswordEncrypted?: NullableStringFieldUpdateOperationsInput | string | null
|
|
sipServer?: NullableStringFieldUpdateOperationsInput | string | null
|
|
}
|
|
|
|
export type PhoneNumberUncheckedUpdateManyWithoutInternetDetailsInput = {
|
|
id?: IntFieldUpdateOperationsInput | number
|
|
phoneNumber?: StringFieldUpdateOperationsInput | string
|
|
isMain?: BoolFieldUpdateOperationsInput | boolean
|
|
sipUsername?: NullableStringFieldUpdateOperationsInput | string | null
|
|
sipPasswordEncrypted?: NullableStringFieldUpdateOperationsInput | string | null
|
|
sipServer?: NullableStringFieldUpdateOperationsInput | string | null
|
|
}
|
|
|
|
export type SimCardCreateManyMobileDetailsInput = {
|
|
id?: number
|
|
phoneNumber?: string | null
|
|
simCardNumber?: string | null
|
|
pin?: string | null
|
|
puk?: string | null
|
|
isMultisim?: boolean
|
|
isMain?: boolean
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
}
|
|
|
|
export type SimCardUpdateWithoutMobileDetailsInput = {
|
|
phoneNumber?: NullableStringFieldUpdateOperationsInput | string | null
|
|
simCardNumber?: NullableStringFieldUpdateOperationsInput | string | null
|
|
pin?: NullableStringFieldUpdateOperationsInput | string | null
|
|
puk?: NullableStringFieldUpdateOperationsInput | string | null
|
|
isMultisim?: BoolFieldUpdateOperationsInput | boolean
|
|
isMain?: BoolFieldUpdateOperationsInput | boolean
|
|
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
}
|
|
|
|
export type SimCardUncheckedUpdateWithoutMobileDetailsInput = {
|
|
id?: IntFieldUpdateOperationsInput | number
|
|
phoneNumber?: NullableStringFieldUpdateOperationsInput | string | null
|
|
simCardNumber?: NullableStringFieldUpdateOperationsInput | string | null
|
|
pin?: NullableStringFieldUpdateOperationsInput | string | null
|
|
puk?: NullableStringFieldUpdateOperationsInput | string | null
|
|
isMultisim?: BoolFieldUpdateOperationsInput | boolean
|
|
isMain?: BoolFieldUpdateOperationsInput | boolean
|
|
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
}
|
|
|
|
export type SimCardUncheckedUpdateManyWithoutMobileDetailsInput = {
|
|
id?: IntFieldUpdateOperationsInput | number
|
|
phoneNumber?: NullableStringFieldUpdateOperationsInput | string | null
|
|
simCardNumber?: NullableStringFieldUpdateOperationsInput | string | null
|
|
pin?: NullableStringFieldUpdateOperationsInput | string | null
|
|
puk?: NullableStringFieldUpdateOperationsInput | string | null
|
|
isMultisim?: BoolFieldUpdateOperationsInput | boolean
|
|
isMain?: BoolFieldUpdateOperationsInput | boolean
|
|
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
* Aliases for legacy arg types
|
|
*/
|
|
/**
|
|
* @deprecated Use UserCountOutputTypeDefaultArgs instead
|
|
*/
|
|
export type UserCountOutputTypeArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = UserCountOutputTypeDefaultArgs<ExtArgs>
|
|
/**
|
|
* @deprecated Use RoleCountOutputTypeDefaultArgs instead
|
|
*/
|
|
export type RoleCountOutputTypeArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = RoleCountOutputTypeDefaultArgs<ExtArgs>
|
|
/**
|
|
* @deprecated Use PermissionCountOutputTypeDefaultArgs instead
|
|
*/
|
|
export type PermissionCountOutputTypeArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = PermissionCountOutputTypeDefaultArgs<ExtArgs>
|
|
/**
|
|
* @deprecated Use CustomerCountOutputTypeDefaultArgs instead
|
|
*/
|
|
export type CustomerCountOutputTypeArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = CustomerCountOutputTypeDefaultArgs<ExtArgs>
|
|
/**
|
|
* @deprecated Use AddressCountOutputTypeDefaultArgs instead
|
|
*/
|
|
export type AddressCountOutputTypeArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = AddressCountOutputTypeDefaultArgs<ExtArgs>
|
|
/**
|
|
* @deprecated Use BankCardCountOutputTypeDefaultArgs instead
|
|
*/
|
|
export type BankCardCountOutputTypeArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = BankCardCountOutputTypeDefaultArgs<ExtArgs>
|
|
/**
|
|
* @deprecated Use IdentityDocumentCountOutputTypeDefaultArgs instead
|
|
*/
|
|
export type IdentityDocumentCountOutputTypeArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = IdentityDocumentCountOutputTypeDefaultArgs<ExtArgs>
|
|
/**
|
|
* @deprecated Use StressfreiEmailCountOutputTypeDefaultArgs instead
|
|
*/
|
|
export type StressfreiEmailCountOutputTypeArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = StressfreiEmailCountOutputTypeDefaultArgs<ExtArgs>
|
|
/**
|
|
* @deprecated Use MeterCountOutputTypeDefaultArgs instead
|
|
*/
|
|
export type MeterCountOutputTypeArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = MeterCountOutputTypeDefaultArgs<ExtArgs>
|
|
/**
|
|
* @deprecated Use SalesPlatformCountOutputTypeDefaultArgs instead
|
|
*/
|
|
export type SalesPlatformCountOutputTypeArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = SalesPlatformCountOutputTypeDefaultArgs<ExtArgs>
|
|
/**
|
|
* @deprecated Use CancellationPeriodCountOutputTypeDefaultArgs instead
|
|
*/
|
|
export type CancellationPeriodCountOutputTypeArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = CancellationPeriodCountOutputTypeDefaultArgs<ExtArgs>
|
|
/**
|
|
* @deprecated Use ContractDurationCountOutputTypeDefaultArgs instead
|
|
*/
|
|
export type ContractDurationCountOutputTypeArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = ContractDurationCountOutputTypeDefaultArgs<ExtArgs>
|
|
/**
|
|
* @deprecated Use ProviderCountOutputTypeDefaultArgs instead
|
|
*/
|
|
export type ProviderCountOutputTypeArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = ProviderCountOutputTypeDefaultArgs<ExtArgs>
|
|
/**
|
|
* @deprecated Use TariffCountOutputTypeDefaultArgs instead
|
|
*/
|
|
export type TariffCountOutputTypeArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = TariffCountOutputTypeDefaultArgs<ExtArgs>
|
|
/**
|
|
* @deprecated Use ContractCategoryCountOutputTypeDefaultArgs instead
|
|
*/
|
|
export type ContractCategoryCountOutputTypeArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = ContractCategoryCountOutputTypeDefaultArgs<ExtArgs>
|
|
/**
|
|
* @deprecated Use ContractCountOutputTypeDefaultArgs instead
|
|
*/
|
|
export type ContractCountOutputTypeArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = ContractCountOutputTypeDefaultArgs<ExtArgs>
|
|
/**
|
|
* @deprecated Use ContractTaskCountOutputTypeDefaultArgs instead
|
|
*/
|
|
export type ContractTaskCountOutputTypeArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = ContractTaskCountOutputTypeDefaultArgs<ExtArgs>
|
|
/**
|
|
* @deprecated Use InternetContractDetailsCountOutputTypeDefaultArgs instead
|
|
*/
|
|
export type InternetContractDetailsCountOutputTypeArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = InternetContractDetailsCountOutputTypeDefaultArgs<ExtArgs>
|
|
/**
|
|
* @deprecated Use MobileContractDetailsCountOutputTypeDefaultArgs instead
|
|
*/
|
|
export type MobileContractDetailsCountOutputTypeArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = MobileContractDetailsCountOutputTypeDefaultArgs<ExtArgs>
|
|
/**
|
|
* @deprecated Use AppSettingDefaultArgs instead
|
|
*/
|
|
export type AppSettingArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = AppSettingDefaultArgs<ExtArgs>
|
|
/**
|
|
* @deprecated Use UserDefaultArgs instead
|
|
*/
|
|
export type UserArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = UserDefaultArgs<ExtArgs>
|
|
/**
|
|
* @deprecated Use RoleDefaultArgs instead
|
|
*/
|
|
export type RoleArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = RoleDefaultArgs<ExtArgs>
|
|
/**
|
|
* @deprecated Use PermissionDefaultArgs instead
|
|
*/
|
|
export type PermissionArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = PermissionDefaultArgs<ExtArgs>
|
|
/**
|
|
* @deprecated Use RolePermissionDefaultArgs instead
|
|
*/
|
|
export type RolePermissionArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = RolePermissionDefaultArgs<ExtArgs>
|
|
/**
|
|
* @deprecated Use UserRoleDefaultArgs instead
|
|
*/
|
|
export type UserRoleArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = UserRoleDefaultArgs<ExtArgs>
|
|
/**
|
|
* @deprecated Use CustomerDefaultArgs instead
|
|
*/
|
|
export type CustomerArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = CustomerDefaultArgs<ExtArgs>
|
|
/**
|
|
* @deprecated Use CustomerRepresentativeDefaultArgs instead
|
|
*/
|
|
export type CustomerRepresentativeArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = CustomerRepresentativeDefaultArgs<ExtArgs>
|
|
/**
|
|
* @deprecated Use AddressDefaultArgs instead
|
|
*/
|
|
export type AddressArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = AddressDefaultArgs<ExtArgs>
|
|
/**
|
|
* @deprecated Use BankCardDefaultArgs instead
|
|
*/
|
|
export type BankCardArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = BankCardDefaultArgs<ExtArgs>
|
|
/**
|
|
* @deprecated Use IdentityDocumentDefaultArgs instead
|
|
*/
|
|
export type IdentityDocumentArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = IdentityDocumentDefaultArgs<ExtArgs>
|
|
/**
|
|
* @deprecated Use EmailProviderConfigDefaultArgs instead
|
|
*/
|
|
export type EmailProviderConfigArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = EmailProviderConfigDefaultArgs<ExtArgs>
|
|
/**
|
|
* @deprecated Use StressfreiEmailDefaultArgs instead
|
|
*/
|
|
export type StressfreiEmailArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = StressfreiEmailDefaultArgs<ExtArgs>
|
|
/**
|
|
* @deprecated Use CachedEmailDefaultArgs instead
|
|
*/
|
|
export type CachedEmailArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = CachedEmailDefaultArgs<ExtArgs>
|
|
/**
|
|
* @deprecated Use MeterDefaultArgs instead
|
|
*/
|
|
export type MeterArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = MeterDefaultArgs<ExtArgs>
|
|
/**
|
|
* @deprecated Use MeterReadingDefaultArgs instead
|
|
*/
|
|
export type MeterReadingArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = MeterReadingDefaultArgs<ExtArgs>
|
|
/**
|
|
* @deprecated Use SalesPlatformDefaultArgs instead
|
|
*/
|
|
export type SalesPlatformArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = SalesPlatformDefaultArgs<ExtArgs>
|
|
/**
|
|
* @deprecated Use CancellationPeriodDefaultArgs instead
|
|
*/
|
|
export type CancellationPeriodArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = CancellationPeriodDefaultArgs<ExtArgs>
|
|
/**
|
|
* @deprecated Use ContractDurationDefaultArgs instead
|
|
*/
|
|
export type ContractDurationArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = ContractDurationDefaultArgs<ExtArgs>
|
|
/**
|
|
* @deprecated Use ProviderDefaultArgs instead
|
|
*/
|
|
export type ProviderArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = ProviderDefaultArgs<ExtArgs>
|
|
/**
|
|
* @deprecated Use TariffDefaultArgs instead
|
|
*/
|
|
export type TariffArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = TariffDefaultArgs<ExtArgs>
|
|
/**
|
|
* @deprecated Use ContractCategoryDefaultArgs instead
|
|
*/
|
|
export type ContractCategoryArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = ContractCategoryDefaultArgs<ExtArgs>
|
|
/**
|
|
* @deprecated Use ContractDefaultArgs instead
|
|
*/
|
|
export type ContractArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = ContractDefaultArgs<ExtArgs>
|
|
/**
|
|
* @deprecated Use ContractTaskDefaultArgs instead
|
|
*/
|
|
export type ContractTaskArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = ContractTaskDefaultArgs<ExtArgs>
|
|
/**
|
|
* @deprecated Use ContractTaskSubtaskDefaultArgs instead
|
|
*/
|
|
export type ContractTaskSubtaskArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = ContractTaskSubtaskDefaultArgs<ExtArgs>
|
|
/**
|
|
* @deprecated Use EnergyContractDetailsDefaultArgs instead
|
|
*/
|
|
export type EnergyContractDetailsArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = EnergyContractDetailsDefaultArgs<ExtArgs>
|
|
/**
|
|
* @deprecated Use InternetContractDetailsDefaultArgs instead
|
|
*/
|
|
export type InternetContractDetailsArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = InternetContractDetailsDefaultArgs<ExtArgs>
|
|
/**
|
|
* @deprecated Use PhoneNumberDefaultArgs instead
|
|
*/
|
|
export type PhoneNumberArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = PhoneNumberDefaultArgs<ExtArgs>
|
|
/**
|
|
* @deprecated Use MobileContractDetailsDefaultArgs instead
|
|
*/
|
|
export type MobileContractDetailsArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = MobileContractDetailsDefaultArgs<ExtArgs>
|
|
/**
|
|
* @deprecated Use SimCardDefaultArgs instead
|
|
*/
|
|
export type SimCardArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = SimCardDefaultArgs<ExtArgs>
|
|
/**
|
|
* @deprecated Use TvContractDetailsDefaultArgs instead
|
|
*/
|
|
export type TvContractDetailsArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = TvContractDetailsDefaultArgs<ExtArgs>
|
|
/**
|
|
* @deprecated Use CarInsuranceDetailsDefaultArgs instead
|
|
*/
|
|
export type CarInsuranceDetailsArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = CarInsuranceDetailsDefaultArgs<ExtArgs>
|
|
|
|
/**
|
|
* Batch Payload for updateMany & deleteMany & createMany
|
|
*/
|
|
|
|
export type BatchPayload = {
|
|
count: number
|
|
}
|
|
|
|
/**
|
|
* DMMF
|
|
*/
|
|
export const dmmf: runtime.BaseDMMF
|
|
} |