2026-02-24 12:42:10 +03:30
|
|
|
|
|
|
|
|
/* !!! This is code generated by Prisma. Do not edit directly. !!! */
|
|
|
|
|
/* eslint-disable */
|
|
|
|
|
// biome-ignore-all lint: generated file
|
|
|
|
|
// @ts-nocheck
|
|
|
|
|
/*
|
|
|
|
|
* This file exports the `CustomerLegal` model and its related types.
|
|
|
|
|
*
|
|
|
|
|
* 🟢 You can import this file directly.
|
|
|
|
|
*/
|
|
|
|
|
import type * as runtime from "@prisma/client/runtime/client"
|
|
|
|
|
import type * as $Enums from "../enums.js"
|
|
|
|
|
import type * as Prisma from "../internal/prismaNamespace.js"
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Model CustomerLegal
|
|
|
|
|
*
|
|
|
|
|
*/
|
|
|
|
|
export type CustomerLegalModel = runtime.Types.Result.DefaultSelection<Prisma.$CustomerLegalPayload>
|
|
|
|
|
|
|
|
|
|
export type AggregateCustomerLegal = {
|
|
|
|
|
_count: CustomerLegalCountAggregateOutputType | null
|
|
|
|
|
_min: CustomerLegalMinAggregateOutputType | null
|
|
|
|
|
_max: CustomerLegalMaxAggregateOutputType | null
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type CustomerLegalMinAggregateOutputType = {
|
|
|
|
|
company_name: string | null
|
|
|
|
|
economic_code: string | null
|
|
|
|
|
registration_number: string | null
|
|
|
|
|
postal_code: string | null
|
2026-04-08 18:15:44 +03:30
|
|
|
customer_id: string | null
|
2026-02-24 12:42:10 +03:30
|
|
|
complex_id: string | null
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type CustomerLegalMaxAggregateOutputType = {
|
|
|
|
|
company_name: string | null
|
|
|
|
|
economic_code: string | null
|
|
|
|
|
registration_number: string | null
|
|
|
|
|
postal_code: string | null
|
2026-04-08 18:15:44 +03:30
|
|
|
customer_id: string | null
|
2026-02-24 12:42:10 +03:30
|
|
|
complex_id: string | null
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type CustomerLegalCountAggregateOutputType = {
|
|
|
|
|
company_name: number
|
|
|
|
|
economic_code: number
|
|
|
|
|
registration_number: number
|
|
|
|
|
postal_code: number
|
2026-04-08 18:15:44 +03:30
|
|
|
customer_id: number
|
2026-02-24 12:42:10 +03:30
|
|
|
complex_id: number
|
|
|
|
|
_all: number
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
export type CustomerLegalMinAggregateInputType = {
|
|
|
|
|
company_name?: true
|
|
|
|
|
economic_code?: true
|
|
|
|
|
registration_number?: true
|
|
|
|
|
postal_code?: true
|
2026-04-08 18:15:44 +03:30
|
|
|
customer_id?: true
|
2026-02-24 12:42:10 +03:30
|
|
|
complex_id?: true
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type CustomerLegalMaxAggregateInputType = {
|
|
|
|
|
company_name?: true
|
|
|
|
|
economic_code?: true
|
|
|
|
|
registration_number?: true
|
|
|
|
|
postal_code?: true
|
2026-04-08 18:15:44 +03:30
|
|
|
customer_id?: true
|
2026-02-24 12:42:10 +03:30
|
|
|
complex_id?: true
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type CustomerLegalCountAggregateInputType = {
|
|
|
|
|
company_name?: true
|
|
|
|
|
economic_code?: true
|
|
|
|
|
registration_number?: true
|
|
|
|
|
postal_code?: true
|
2026-04-08 18:15:44 +03:30
|
|
|
customer_id?: true
|
2026-02-24 12:42:10 +03:30
|
|
|
complex_id?: true
|
|
|
|
|
_all?: true
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type CustomerLegalAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
|
|
|
/**
|
|
|
|
|
* Filter which CustomerLegal to aggregate.
|
|
|
|
|
*/
|
|
|
|
|
where?: Prisma.CustomerLegalWhereInput
|
|
|
|
|
/**
|
|
|
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
|
|
|
*
|
|
|
|
|
* Determine the order of CustomerLegals to fetch.
|
|
|
|
|
*/
|
|
|
|
|
orderBy?: Prisma.CustomerLegalOrderByWithRelationInput | Prisma.CustomerLegalOrderByWithRelationInput[]
|
|
|
|
|
/**
|
|
|
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
|
|
|
*
|
|
|
|
|
* Sets the start position
|
|
|
|
|
*/
|
|
|
|
|
cursor?: Prisma.CustomerLegalWhereUniqueInput
|
|
|
|
|
/**
|
|
|
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
|
|
|
*
|
|
|
|
|
* Take `±n` CustomerLegals 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` CustomerLegals.
|
|
|
|
|
*/
|
|
|
|
|
skip?: number
|
|
|
|
|
/**
|
|
|
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
|
|
|
*
|
|
|
|
|
* Count returned CustomerLegals
|
|
|
|
|
**/
|
|
|
|
|
_count?: true | CustomerLegalCountAggregateInputType
|
|
|
|
|
/**
|
|
|
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
|
|
|
*
|
|
|
|
|
* Select which fields to find the minimum value
|
|
|
|
|
**/
|
|
|
|
|
_min?: CustomerLegalMinAggregateInputType
|
|
|
|
|
/**
|
|
|
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
|
|
|
*
|
|
|
|
|
* Select which fields to find the maximum value
|
|
|
|
|
**/
|
|
|
|
|
_max?: CustomerLegalMaxAggregateInputType
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type GetCustomerLegalAggregateType<T extends CustomerLegalAggregateArgs> = {
|
|
|
|
|
[P in keyof T & keyof AggregateCustomerLegal]: P extends '_count' | 'count'
|
|
|
|
|
? T[P] extends true
|
|
|
|
|
? number
|
|
|
|
|
: Prisma.GetScalarType<T[P], AggregateCustomerLegal[P]>
|
|
|
|
|
: Prisma.GetScalarType<T[P], AggregateCustomerLegal[P]>
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
export type CustomerLegalGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
|
|
|
where?: Prisma.CustomerLegalWhereInput
|
|
|
|
|
orderBy?: Prisma.CustomerLegalOrderByWithAggregationInput | Prisma.CustomerLegalOrderByWithAggregationInput[]
|
|
|
|
|
by: Prisma.CustomerLegalScalarFieldEnum[] | Prisma.CustomerLegalScalarFieldEnum
|
|
|
|
|
having?: Prisma.CustomerLegalScalarWhereWithAggregatesInput
|
|
|
|
|
take?: number
|
|
|
|
|
skip?: number
|
|
|
|
|
_count?: CustomerLegalCountAggregateInputType | true
|
|
|
|
|
_min?: CustomerLegalMinAggregateInputType
|
|
|
|
|
_max?: CustomerLegalMaxAggregateInputType
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type CustomerLegalGroupByOutputType = {
|
|
|
|
|
company_name: string
|
|
|
|
|
economic_code: string
|
|
|
|
|
registration_number: string
|
|
|
|
|
postal_code: string
|
2026-04-08 18:15:44 +03:30
|
|
|
customer_id: string
|
2026-02-24 12:42:10 +03:30
|
|
|
complex_id: string
|
|
|
|
|
_count: CustomerLegalCountAggregateOutputType | null
|
|
|
|
|
_min: CustomerLegalMinAggregateOutputType | null
|
|
|
|
|
_max: CustomerLegalMaxAggregateOutputType | null
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
type GetCustomerLegalGroupByPayload<T extends CustomerLegalGroupByArgs> = Prisma.PrismaPromise<
|
|
|
|
|
Array<
|
|
|
|
|
Prisma.PickEnumerable<CustomerLegalGroupByOutputType, T['by']> &
|
|
|
|
|
{
|
|
|
|
|
[P in ((keyof T) & (keyof CustomerLegalGroupByOutputType))]: P extends '_count'
|
|
|
|
|
? T[P] extends boolean
|
|
|
|
|
? number
|
|
|
|
|
: Prisma.GetScalarType<T[P], CustomerLegalGroupByOutputType[P]>
|
|
|
|
|
: Prisma.GetScalarType<T[P], CustomerLegalGroupByOutputType[P]>
|
|
|
|
|
}
|
|
|
|
|
>
|
|
|
|
|
>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
export type CustomerLegalWhereInput = {
|
|
|
|
|
AND?: Prisma.CustomerLegalWhereInput | Prisma.CustomerLegalWhereInput[]
|
|
|
|
|
OR?: Prisma.CustomerLegalWhereInput[]
|
|
|
|
|
NOT?: Prisma.CustomerLegalWhereInput | Prisma.CustomerLegalWhereInput[]
|
|
|
|
|
company_name?: Prisma.StringFilter<"CustomerLegal"> | string
|
|
|
|
|
economic_code?: Prisma.StringFilter<"CustomerLegal"> | string
|
|
|
|
|
registration_number?: Prisma.StringFilter<"CustomerLegal"> | string
|
|
|
|
|
postal_code?: Prisma.StringFilter<"CustomerLegal"> | string
|
2026-04-08 18:15:44 +03:30
|
|
|
customer_id?: Prisma.StringFilter<"CustomerLegal"> | string
|
2026-02-24 12:42:10 +03:30
|
|
|
complex_id?: Prisma.StringFilter<"CustomerLegal"> | string
|
|
|
|
|
customer?: Prisma.XOR<Prisma.CustomerScalarRelationFilter, Prisma.CustomerWhereInput>
|
2026-03-29 18:06:41 +03:30
|
|
|
complex?: Prisma.XOR<Prisma.ComplexScalarRelationFilter, Prisma.ComplexWhereInput>
|
2026-02-24 12:42:10 +03:30
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type CustomerLegalOrderByWithRelationInput = {
|
|
|
|
|
company_name?: Prisma.SortOrder
|
|
|
|
|
economic_code?: Prisma.SortOrder
|
|
|
|
|
registration_number?: Prisma.SortOrder
|
|
|
|
|
postal_code?: Prisma.SortOrder
|
2026-04-08 18:15:44 +03:30
|
|
|
customer_id?: Prisma.SortOrder
|
2026-02-24 12:42:10 +03:30
|
|
|
complex_id?: Prisma.SortOrder
|
|
|
|
|
customer?: Prisma.CustomerOrderByWithRelationInput
|
2026-03-29 18:06:41 +03:30
|
|
|
complex?: Prisma.ComplexOrderByWithRelationInput
|
2026-02-24 12:42:10 +03:30
|
|
|
_relevance?: Prisma.CustomerLegalOrderByRelevanceInput
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type CustomerLegalWhereUniqueInput = Prisma.AtLeast<{
|
|
|
|
|
customer_id?: string
|
|
|
|
|
complex_id_registration_number?: Prisma.CustomerLegalComplex_idRegistration_numberCompoundUniqueInput
|
|
|
|
|
AND?: Prisma.CustomerLegalWhereInput | Prisma.CustomerLegalWhereInput[]
|
|
|
|
|
OR?: Prisma.CustomerLegalWhereInput[]
|
|
|
|
|
NOT?: Prisma.CustomerLegalWhereInput | Prisma.CustomerLegalWhereInput[]
|
|
|
|
|
company_name?: Prisma.StringFilter<"CustomerLegal"> | string
|
|
|
|
|
economic_code?: Prisma.StringFilter<"CustomerLegal"> | string
|
2026-03-07 11:25:11 +03:30
|
|
|
registration_number?: Prisma.StringFilter<"CustomerLegal"> | string
|
2026-02-24 12:42:10 +03:30
|
|
|
postal_code?: Prisma.StringFilter<"CustomerLegal"> | string
|
|
|
|
|
complex_id?: Prisma.StringFilter<"CustomerLegal"> | string
|
|
|
|
|
customer?: Prisma.XOR<Prisma.CustomerScalarRelationFilter, Prisma.CustomerWhereInput>
|
2026-03-29 18:06:41 +03:30
|
|
|
complex?: Prisma.XOR<Prisma.ComplexScalarRelationFilter, Prisma.ComplexWhereInput>
|
2026-03-07 11:25:11 +03:30
|
|
|
}, "customer_id" | "complex_id_registration_number">
|
2026-02-24 12:42:10 +03:30
|
|
|
|
|
|
|
|
export type CustomerLegalOrderByWithAggregationInput = {
|
|
|
|
|
company_name?: Prisma.SortOrder
|
|
|
|
|
economic_code?: Prisma.SortOrder
|
|
|
|
|
registration_number?: Prisma.SortOrder
|
|
|
|
|
postal_code?: Prisma.SortOrder
|
2026-04-08 18:15:44 +03:30
|
|
|
customer_id?: Prisma.SortOrder
|
2026-02-24 12:42:10 +03:30
|
|
|
complex_id?: Prisma.SortOrder
|
|
|
|
|
_count?: Prisma.CustomerLegalCountOrderByAggregateInput
|
|
|
|
|
_max?: Prisma.CustomerLegalMaxOrderByAggregateInput
|
|
|
|
|
_min?: Prisma.CustomerLegalMinOrderByAggregateInput
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type CustomerLegalScalarWhereWithAggregatesInput = {
|
|
|
|
|
AND?: Prisma.CustomerLegalScalarWhereWithAggregatesInput | Prisma.CustomerLegalScalarWhereWithAggregatesInput[]
|
|
|
|
|
OR?: Prisma.CustomerLegalScalarWhereWithAggregatesInput[]
|
|
|
|
|
NOT?: Prisma.CustomerLegalScalarWhereWithAggregatesInput | Prisma.CustomerLegalScalarWhereWithAggregatesInput[]
|
|
|
|
|
company_name?: Prisma.StringWithAggregatesFilter<"CustomerLegal"> | string
|
|
|
|
|
economic_code?: Prisma.StringWithAggregatesFilter<"CustomerLegal"> | string
|
|
|
|
|
registration_number?: Prisma.StringWithAggregatesFilter<"CustomerLegal"> | string
|
|
|
|
|
postal_code?: Prisma.StringWithAggregatesFilter<"CustomerLegal"> | string
|
2026-04-08 18:15:44 +03:30
|
|
|
customer_id?: Prisma.StringWithAggregatesFilter<"CustomerLegal"> | string
|
2026-02-24 12:42:10 +03:30
|
|
|
complex_id?: Prisma.StringWithAggregatesFilter<"CustomerLegal"> | string
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type CustomerLegalCreateInput = {
|
|
|
|
|
company_name: string
|
|
|
|
|
economic_code: string
|
|
|
|
|
registration_number: string
|
|
|
|
|
postal_code: string
|
2026-04-08 18:15:44 +03:30
|
|
|
customer: Prisma.CustomerCreateNestedOneWithoutCustomer_legalInput
|
2026-04-11 14:47:05 +03:30
|
|
|
complex: Prisma.ComplexCreateNestedOneWithoutCustomer_legalsInput
|
2026-02-24 12:42:10 +03:30
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type CustomerLegalUncheckedCreateInput = {
|
|
|
|
|
company_name: string
|
|
|
|
|
economic_code: string
|
|
|
|
|
registration_number: string
|
|
|
|
|
postal_code: string
|
2026-04-08 18:15:44 +03:30
|
|
|
customer_id: string
|
2026-02-24 12:42:10 +03:30
|
|
|
complex_id: string
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type CustomerLegalUpdateInput = {
|
|
|
|
|
company_name?: Prisma.StringFieldUpdateOperationsInput | string
|
|
|
|
|
economic_code?: Prisma.StringFieldUpdateOperationsInput | string
|
|
|
|
|
registration_number?: Prisma.StringFieldUpdateOperationsInput | string
|
|
|
|
|
postal_code?: Prisma.StringFieldUpdateOperationsInput | string
|
2026-04-08 18:15:44 +03:30
|
|
|
customer?: Prisma.CustomerUpdateOneRequiredWithoutCustomer_legalNestedInput
|
2026-04-11 14:47:05 +03:30
|
|
|
complex?: Prisma.ComplexUpdateOneRequiredWithoutCustomer_legalsNestedInput
|
2026-02-24 12:42:10 +03:30
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type CustomerLegalUncheckedUpdateInput = {
|
|
|
|
|
company_name?: Prisma.StringFieldUpdateOperationsInput | string
|
|
|
|
|
economic_code?: Prisma.StringFieldUpdateOperationsInput | string
|
|
|
|
|
registration_number?: Prisma.StringFieldUpdateOperationsInput | string
|
|
|
|
|
postal_code?: Prisma.StringFieldUpdateOperationsInput | string
|
2026-04-08 18:15:44 +03:30
|
|
|
customer_id?: Prisma.StringFieldUpdateOperationsInput | string
|
2026-02-24 12:42:10 +03:30
|
|
|
complex_id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type CustomerLegalCreateManyInput = {
|
|
|
|
|
company_name: string
|
|
|
|
|
economic_code: string
|
|
|
|
|
registration_number: string
|
|
|
|
|
postal_code: string
|
2026-04-08 18:15:44 +03:30
|
|
|
customer_id: string
|
2026-02-24 12:42:10 +03:30
|
|
|
complex_id: string
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type CustomerLegalUpdateManyMutationInput = {
|
|
|
|
|
company_name?: Prisma.StringFieldUpdateOperationsInput | string
|
|
|
|
|
economic_code?: Prisma.StringFieldUpdateOperationsInput | string
|
|
|
|
|
registration_number?: Prisma.StringFieldUpdateOperationsInput | string
|
|
|
|
|
postal_code?: Prisma.StringFieldUpdateOperationsInput | string
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type CustomerLegalUncheckedUpdateManyInput = {
|
|
|
|
|
company_name?: Prisma.StringFieldUpdateOperationsInput | string
|
|
|
|
|
economic_code?: Prisma.StringFieldUpdateOperationsInput | string
|
|
|
|
|
registration_number?: Prisma.StringFieldUpdateOperationsInput | string
|
|
|
|
|
postal_code?: Prisma.StringFieldUpdateOperationsInput | string
|
2026-04-08 18:15:44 +03:30
|
|
|
customer_id?: Prisma.StringFieldUpdateOperationsInput | string
|
2026-02-24 12:42:10 +03:30
|
|
|
complex_id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
|
|
|
}
|
|
|
|
|
|
2026-03-29 18:06:41 +03:30
|
|
|
export type CustomerLegalListRelationFilter = {
|
|
|
|
|
every?: Prisma.CustomerLegalWhereInput
|
|
|
|
|
some?: Prisma.CustomerLegalWhereInput
|
|
|
|
|
none?: Prisma.CustomerLegalWhereInput
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type CustomerLegalOrderByRelationAggregateInput = {
|
|
|
|
|
_count?: Prisma.SortOrder
|
|
|
|
|
}
|
|
|
|
|
|
2026-02-24 12:42:10 +03:30
|
|
|
export type CustomerLegalNullableScalarRelationFilter = {
|
|
|
|
|
is?: Prisma.CustomerLegalWhereInput | null
|
|
|
|
|
isNot?: Prisma.CustomerLegalWhereInput | null
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type CustomerLegalOrderByRelevanceInput = {
|
|
|
|
|
fields: Prisma.CustomerLegalOrderByRelevanceFieldEnum | Prisma.CustomerLegalOrderByRelevanceFieldEnum[]
|
|
|
|
|
sort: Prisma.SortOrder
|
|
|
|
|
search: string
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type CustomerLegalComplex_idRegistration_numberCompoundUniqueInput = {
|
|
|
|
|
complex_id: string
|
|
|
|
|
registration_number: string
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type CustomerLegalCountOrderByAggregateInput = {
|
|
|
|
|
company_name?: Prisma.SortOrder
|
|
|
|
|
economic_code?: Prisma.SortOrder
|
|
|
|
|
registration_number?: Prisma.SortOrder
|
|
|
|
|
postal_code?: Prisma.SortOrder
|
2026-04-08 18:15:44 +03:30
|
|
|
customer_id?: Prisma.SortOrder
|
2026-02-24 12:42:10 +03:30
|
|
|
complex_id?: Prisma.SortOrder
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type CustomerLegalMaxOrderByAggregateInput = {
|
|
|
|
|
company_name?: Prisma.SortOrder
|
|
|
|
|
economic_code?: Prisma.SortOrder
|
|
|
|
|
registration_number?: Prisma.SortOrder
|
|
|
|
|
postal_code?: Prisma.SortOrder
|
2026-04-08 18:15:44 +03:30
|
|
|
customer_id?: Prisma.SortOrder
|
2026-02-24 12:42:10 +03:30
|
|
|
complex_id?: Prisma.SortOrder
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type CustomerLegalMinOrderByAggregateInput = {
|
|
|
|
|
company_name?: Prisma.SortOrder
|
|
|
|
|
economic_code?: Prisma.SortOrder
|
|
|
|
|
registration_number?: Prisma.SortOrder
|
|
|
|
|
postal_code?: Prisma.SortOrder
|
2026-04-08 18:15:44 +03:30
|
|
|
customer_id?: Prisma.SortOrder
|
2026-02-24 12:42:10 +03:30
|
|
|
complex_id?: Prisma.SortOrder
|
|
|
|
|
}
|
|
|
|
|
|
2026-03-29 18:06:41 +03:30
|
|
|
export type CustomerLegalCreateNestedManyWithoutComplexInput = {
|
|
|
|
|
create?: Prisma.XOR<Prisma.CustomerLegalCreateWithoutComplexInput, Prisma.CustomerLegalUncheckedCreateWithoutComplexInput> | Prisma.CustomerLegalCreateWithoutComplexInput[] | Prisma.CustomerLegalUncheckedCreateWithoutComplexInput[]
|
|
|
|
|
connectOrCreate?: Prisma.CustomerLegalCreateOrConnectWithoutComplexInput | Prisma.CustomerLegalCreateOrConnectWithoutComplexInput[]
|
|
|
|
|
createMany?: Prisma.CustomerLegalCreateManyComplexInputEnvelope
|
|
|
|
|
connect?: Prisma.CustomerLegalWhereUniqueInput | Prisma.CustomerLegalWhereUniqueInput[]
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type CustomerLegalUncheckedCreateNestedManyWithoutComplexInput = {
|
|
|
|
|
create?: Prisma.XOR<Prisma.CustomerLegalCreateWithoutComplexInput, Prisma.CustomerLegalUncheckedCreateWithoutComplexInput> | Prisma.CustomerLegalCreateWithoutComplexInput[] | Prisma.CustomerLegalUncheckedCreateWithoutComplexInput[]
|
|
|
|
|
connectOrCreate?: Prisma.CustomerLegalCreateOrConnectWithoutComplexInput | Prisma.CustomerLegalCreateOrConnectWithoutComplexInput[]
|
|
|
|
|
createMany?: Prisma.CustomerLegalCreateManyComplexInputEnvelope
|
|
|
|
|
connect?: Prisma.CustomerLegalWhereUniqueInput | Prisma.CustomerLegalWhereUniqueInput[]
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type CustomerLegalUpdateManyWithoutComplexNestedInput = {
|
|
|
|
|
create?: Prisma.XOR<Prisma.CustomerLegalCreateWithoutComplexInput, Prisma.CustomerLegalUncheckedCreateWithoutComplexInput> | Prisma.CustomerLegalCreateWithoutComplexInput[] | Prisma.CustomerLegalUncheckedCreateWithoutComplexInput[]
|
|
|
|
|
connectOrCreate?: Prisma.CustomerLegalCreateOrConnectWithoutComplexInput | Prisma.CustomerLegalCreateOrConnectWithoutComplexInput[]
|
|
|
|
|
upsert?: Prisma.CustomerLegalUpsertWithWhereUniqueWithoutComplexInput | Prisma.CustomerLegalUpsertWithWhereUniqueWithoutComplexInput[]
|
|
|
|
|
createMany?: Prisma.CustomerLegalCreateManyComplexInputEnvelope
|
|
|
|
|
set?: Prisma.CustomerLegalWhereUniqueInput | Prisma.CustomerLegalWhereUniqueInput[]
|
|
|
|
|
disconnect?: Prisma.CustomerLegalWhereUniqueInput | Prisma.CustomerLegalWhereUniqueInput[]
|
|
|
|
|
delete?: Prisma.CustomerLegalWhereUniqueInput | Prisma.CustomerLegalWhereUniqueInput[]
|
|
|
|
|
connect?: Prisma.CustomerLegalWhereUniqueInput | Prisma.CustomerLegalWhereUniqueInput[]
|
|
|
|
|
update?: Prisma.CustomerLegalUpdateWithWhereUniqueWithoutComplexInput | Prisma.CustomerLegalUpdateWithWhereUniqueWithoutComplexInput[]
|
|
|
|
|
updateMany?: Prisma.CustomerLegalUpdateManyWithWhereWithoutComplexInput | Prisma.CustomerLegalUpdateManyWithWhereWithoutComplexInput[]
|
|
|
|
|
deleteMany?: Prisma.CustomerLegalScalarWhereInput | Prisma.CustomerLegalScalarWhereInput[]
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type CustomerLegalUncheckedUpdateManyWithoutComplexNestedInput = {
|
|
|
|
|
create?: Prisma.XOR<Prisma.CustomerLegalCreateWithoutComplexInput, Prisma.CustomerLegalUncheckedCreateWithoutComplexInput> | Prisma.CustomerLegalCreateWithoutComplexInput[] | Prisma.CustomerLegalUncheckedCreateWithoutComplexInput[]
|
|
|
|
|
connectOrCreate?: Prisma.CustomerLegalCreateOrConnectWithoutComplexInput | Prisma.CustomerLegalCreateOrConnectWithoutComplexInput[]
|
|
|
|
|
upsert?: Prisma.CustomerLegalUpsertWithWhereUniqueWithoutComplexInput | Prisma.CustomerLegalUpsertWithWhereUniqueWithoutComplexInput[]
|
|
|
|
|
createMany?: Prisma.CustomerLegalCreateManyComplexInputEnvelope
|
|
|
|
|
set?: Prisma.CustomerLegalWhereUniqueInput | Prisma.CustomerLegalWhereUniqueInput[]
|
|
|
|
|
disconnect?: Prisma.CustomerLegalWhereUniqueInput | Prisma.CustomerLegalWhereUniqueInput[]
|
|
|
|
|
delete?: Prisma.CustomerLegalWhereUniqueInput | Prisma.CustomerLegalWhereUniqueInput[]
|
|
|
|
|
connect?: Prisma.CustomerLegalWhereUniqueInput | Prisma.CustomerLegalWhereUniqueInput[]
|
|
|
|
|
update?: Prisma.CustomerLegalUpdateWithWhereUniqueWithoutComplexInput | Prisma.CustomerLegalUpdateWithWhereUniqueWithoutComplexInput[]
|
|
|
|
|
updateMany?: Prisma.CustomerLegalUpdateManyWithWhereWithoutComplexInput | Prisma.CustomerLegalUpdateManyWithWhereWithoutComplexInput[]
|
|
|
|
|
deleteMany?: Prisma.CustomerLegalScalarWhereInput | Prisma.CustomerLegalScalarWhereInput[]
|
|
|
|
|
}
|
|
|
|
|
|
2026-02-24 12:42:10 +03:30
|
|
|
export type CustomerLegalCreateNestedOneWithoutCustomerInput = {
|
|
|
|
|
create?: Prisma.XOR<Prisma.CustomerLegalCreateWithoutCustomerInput, Prisma.CustomerLegalUncheckedCreateWithoutCustomerInput>
|
|
|
|
|
connectOrCreate?: Prisma.CustomerLegalCreateOrConnectWithoutCustomerInput
|
|
|
|
|
connect?: Prisma.CustomerLegalWhereUniqueInput
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type CustomerLegalUncheckedCreateNestedOneWithoutCustomerInput = {
|
|
|
|
|
create?: Prisma.XOR<Prisma.CustomerLegalCreateWithoutCustomerInput, Prisma.CustomerLegalUncheckedCreateWithoutCustomerInput>
|
|
|
|
|
connectOrCreate?: Prisma.CustomerLegalCreateOrConnectWithoutCustomerInput
|
|
|
|
|
connect?: Prisma.CustomerLegalWhereUniqueInput
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type CustomerLegalUpdateOneWithoutCustomerNestedInput = {
|
|
|
|
|
create?: Prisma.XOR<Prisma.CustomerLegalCreateWithoutCustomerInput, Prisma.CustomerLegalUncheckedCreateWithoutCustomerInput>
|
|
|
|
|
connectOrCreate?: Prisma.CustomerLegalCreateOrConnectWithoutCustomerInput
|
|
|
|
|
upsert?: Prisma.CustomerLegalUpsertWithoutCustomerInput
|
|
|
|
|
disconnect?: Prisma.CustomerLegalWhereInput | boolean
|
|
|
|
|
delete?: Prisma.CustomerLegalWhereInput | boolean
|
|
|
|
|
connect?: Prisma.CustomerLegalWhereUniqueInput
|
|
|
|
|
update?: Prisma.XOR<Prisma.XOR<Prisma.CustomerLegalUpdateToOneWithWhereWithoutCustomerInput, Prisma.CustomerLegalUpdateWithoutCustomerInput>, Prisma.CustomerLegalUncheckedUpdateWithoutCustomerInput>
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type CustomerLegalUncheckedUpdateOneWithoutCustomerNestedInput = {
|
|
|
|
|
create?: Prisma.XOR<Prisma.CustomerLegalCreateWithoutCustomerInput, Prisma.CustomerLegalUncheckedCreateWithoutCustomerInput>
|
|
|
|
|
connectOrCreate?: Prisma.CustomerLegalCreateOrConnectWithoutCustomerInput
|
|
|
|
|
upsert?: Prisma.CustomerLegalUpsertWithoutCustomerInput
|
|
|
|
|
disconnect?: Prisma.CustomerLegalWhereInput | boolean
|
|
|
|
|
delete?: Prisma.CustomerLegalWhereInput | boolean
|
|
|
|
|
connect?: Prisma.CustomerLegalWhereUniqueInput
|
|
|
|
|
update?: Prisma.XOR<Prisma.XOR<Prisma.CustomerLegalUpdateToOneWithWhereWithoutCustomerInput, Prisma.CustomerLegalUpdateWithoutCustomerInput>, Prisma.CustomerLegalUncheckedUpdateWithoutCustomerInput>
|
|
|
|
|
}
|
|
|
|
|
|
2026-03-29 18:06:41 +03:30
|
|
|
export type CustomerLegalCreateWithoutComplexInput = {
|
|
|
|
|
company_name: string
|
|
|
|
|
economic_code: string
|
|
|
|
|
registration_number: string
|
|
|
|
|
postal_code: string
|
2026-04-08 18:15:44 +03:30
|
|
|
customer: Prisma.CustomerCreateNestedOneWithoutCustomer_legalInput
|
2026-03-29 18:06:41 +03:30
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type CustomerLegalUncheckedCreateWithoutComplexInput = {
|
|
|
|
|
company_name: string
|
|
|
|
|
economic_code: string
|
|
|
|
|
registration_number: string
|
|
|
|
|
postal_code: string
|
2026-04-08 18:15:44 +03:30
|
|
|
customer_id: string
|
2026-03-29 18:06:41 +03:30
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type CustomerLegalCreateOrConnectWithoutComplexInput = {
|
|
|
|
|
where: Prisma.CustomerLegalWhereUniqueInput
|
|
|
|
|
create: Prisma.XOR<Prisma.CustomerLegalCreateWithoutComplexInput, Prisma.CustomerLegalUncheckedCreateWithoutComplexInput>
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type CustomerLegalCreateManyComplexInputEnvelope = {
|
|
|
|
|
data: Prisma.CustomerLegalCreateManyComplexInput | Prisma.CustomerLegalCreateManyComplexInput[]
|
|
|
|
|
skipDuplicates?: boolean
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type CustomerLegalUpsertWithWhereUniqueWithoutComplexInput = {
|
|
|
|
|
where: Prisma.CustomerLegalWhereUniqueInput
|
|
|
|
|
update: Prisma.XOR<Prisma.CustomerLegalUpdateWithoutComplexInput, Prisma.CustomerLegalUncheckedUpdateWithoutComplexInput>
|
|
|
|
|
create: Prisma.XOR<Prisma.CustomerLegalCreateWithoutComplexInput, Prisma.CustomerLegalUncheckedCreateWithoutComplexInput>
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type CustomerLegalUpdateWithWhereUniqueWithoutComplexInput = {
|
|
|
|
|
where: Prisma.CustomerLegalWhereUniqueInput
|
|
|
|
|
data: Prisma.XOR<Prisma.CustomerLegalUpdateWithoutComplexInput, Prisma.CustomerLegalUncheckedUpdateWithoutComplexInput>
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type CustomerLegalUpdateManyWithWhereWithoutComplexInput = {
|
|
|
|
|
where: Prisma.CustomerLegalScalarWhereInput
|
|
|
|
|
data: Prisma.XOR<Prisma.CustomerLegalUpdateManyMutationInput, Prisma.CustomerLegalUncheckedUpdateManyWithoutComplexInput>
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type CustomerLegalScalarWhereInput = {
|
|
|
|
|
AND?: Prisma.CustomerLegalScalarWhereInput | Prisma.CustomerLegalScalarWhereInput[]
|
|
|
|
|
OR?: Prisma.CustomerLegalScalarWhereInput[]
|
|
|
|
|
NOT?: Prisma.CustomerLegalScalarWhereInput | Prisma.CustomerLegalScalarWhereInput[]
|
|
|
|
|
company_name?: Prisma.StringFilter<"CustomerLegal"> | string
|
|
|
|
|
economic_code?: Prisma.StringFilter<"CustomerLegal"> | string
|
|
|
|
|
registration_number?: Prisma.StringFilter<"CustomerLegal"> | string
|
|
|
|
|
postal_code?: Prisma.StringFilter<"CustomerLegal"> | string
|
2026-04-08 18:15:44 +03:30
|
|
|
customer_id?: Prisma.StringFilter<"CustomerLegal"> | string
|
2026-03-29 18:06:41 +03:30
|
|
|
complex_id?: Prisma.StringFilter<"CustomerLegal"> | string
|
|
|
|
|
}
|
|
|
|
|
|
2026-02-24 12:42:10 +03:30
|
|
|
export type CustomerLegalCreateWithoutCustomerInput = {
|
|
|
|
|
company_name: string
|
|
|
|
|
economic_code: string
|
|
|
|
|
registration_number: string
|
|
|
|
|
postal_code: string
|
2026-04-11 14:47:05 +03:30
|
|
|
complex: Prisma.ComplexCreateNestedOneWithoutCustomer_legalsInput
|
2026-02-24 12:42:10 +03:30
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type CustomerLegalUncheckedCreateWithoutCustomerInput = {
|
|
|
|
|
company_name: string
|
|
|
|
|
economic_code: string
|
|
|
|
|
registration_number: string
|
|
|
|
|
postal_code: string
|
|
|
|
|
complex_id: string
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type CustomerLegalCreateOrConnectWithoutCustomerInput = {
|
|
|
|
|
where: Prisma.CustomerLegalWhereUniqueInput
|
|
|
|
|
create: Prisma.XOR<Prisma.CustomerLegalCreateWithoutCustomerInput, Prisma.CustomerLegalUncheckedCreateWithoutCustomerInput>
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type CustomerLegalUpsertWithoutCustomerInput = {
|
|
|
|
|
update: Prisma.XOR<Prisma.CustomerLegalUpdateWithoutCustomerInput, Prisma.CustomerLegalUncheckedUpdateWithoutCustomerInput>
|
|
|
|
|
create: Prisma.XOR<Prisma.CustomerLegalCreateWithoutCustomerInput, Prisma.CustomerLegalUncheckedCreateWithoutCustomerInput>
|
|
|
|
|
where?: Prisma.CustomerLegalWhereInput
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type CustomerLegalUpdateToOneWithWhereWithoutCustomerInput = {
|
|
|
|
|
where?: Prisma.CustomerLegalWhereInput
|
|
|
|
|
data: Prisma.XOR<Prisma.CustomerLegalUpdateWithoutCustomerInput, Prisma.CustomerLegalUncheckedUpdateWithoutCustomerInput>
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type CustomerLegalUpdateWithoutCustomerInput = {
|
|
|
|
|
company_name?: Prisma.StringFieldUpdateOperationsInput | string
|
|
|
|
|
economic_code?: Prisma.StringFieldUpdateOperationsInput | string
|
|
|
|
|
registration_number?: Prisma.StringFieldUpdateOperationsInput | string
|
|
|
|
|
postal_code?: Prisma.StringFieldUpdateOperationsInput | string
|
2026-04-11 14:47:05 +03:30
|
|
|
complex?: Prisma.ComplexUpdateOneRequiredWithoutCustomer_legalsNestedInput
|
2026-02-24 12:42:10 +03:30
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type CustomerLegalUncheckedUpdateWithoutCustomerInput = {
|
|
|
|
|
company_name?: Prisma.StringFieldUpdateOperationsInput | string
|
|
|
|
|
economic_code?: Prisma.StringFieldUpdateOperationsInput | string
|
|
|
|
|
registration_number?: Prisma.StringFieldUpdateOperationsInput | string
|
|
|
|
|
postal_code?: Prisma.StringFieldUpdateOperationsInput | string
|
|
|
|
|
complex_id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
|
|
|
}
|
|
|
|
|
|
2026-03-29 18:06:41 +03:30
|
|
|
export type CustomerLegalCreateManyComplexInput = {
|
|
|
|
|
company_name: string
|
|
|
|
|
economic_code: string
|
|
|
|
|
registration_number: string
|
|
|
|
|
postal_code: string
|
2026-04-08 18:15:44 +03:30
|
|
|
customer_id: string
|
2026-03-29 18:06:41 +03:30
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type CustomerLegalUpdateWithoutComplexInput = {
|
|
|
|
|
company_name?: Prisma.StringFieldUpdateOperationsInput | string
|
|
|
|
|
economic_code?: Prisma.StringFieldUpdateOperationsInput | string
|
|
|
|
|
registration_number?: Prisma.StringFieldUpdateOperationsInput | string
|
|
|
|
|
postal_code?: Prisma.StringFieldUpdateOperationsInput | string
|
2026-04-08 18:15:44 +03:30
|
|
|
customer?: Prisma.CustomerUpdateOneRequiredWithoutCustomer_legalNestedInput
|
2026-03-29 18:06:41 +03:30
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type CustomerLegalUncheckedUpdateWithoutComplexInput = {
|
|
|
|
|
company_name?: Prisma.StringFieldUpdateOperationsInput | string
|
|
|
|
|
economic_code?: Prisma.StringFieldUpdateOperationsInput | string
|
|
|
|
|
registration_number?: Prisma.StringFieldUpdateOperationsInput | string
|
|
|
|
|
postal_code?: Prisma.StringFieldUpdateOperationsInput | string
|
2026-04-08 18:15:44 +03:30
|
|
|
customer_id?: Prisma.StringFieldUpdateOperationsInput | string
|
2026-03-29 18:06:41 +03:30
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type CustomerLegalUncheckedUpdateManyWithoutComplexInput = {
|
|
|
|
|
company_name?: Prisma.StringFieldUpdateOperationsInput | string
|
|
|
|
|
economic_code?: Prisma.StringFieldUpdateOperationsInput | string
|
|
|
|
|
registration_number?: Prisma.StringFieldUpdateOperationsInput | string
|
|
|
|
|
postal_code?: Prisma.StringFieldUpdateOperationsInput | string
|
2026-04-08 18:15:44 +03:30
|
|
|
customer_id?: Prisma.StringFieldUpdateOperationsInput | string
|
2026-03-29 18:06:41 +03:30
|
|
|
}
|
|
|
|
|
|
2026-02-24 12:42:10 +03:30
|
|
|
|
|
|
|
|
|
|
|
|
|
export type CustomerLegalSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
|
|
|
company_name?: boolean
|
|
|
|
|
economic_code?: boolean
|
|
|
|
|
registration_number?: boolean
|
|
|
|
|
postal_code?: boolean
|
2026-04-08 18:15:44 +03:30
|
|
|
customer_id?: boolean
|
2026-02-24 12:42:10 +03:30
|
|
|
complex_id?: boolean
|
|
|
|
|
customer?: boolean | Prisma.CustomerDefaultArgs<ExtArgs>
|
2026-03-29 18:06:41 +03:30
|
|
|
complex?: boolean | Prisma.ComplexDefaultArgs<ExtArgs>
|
2026-02-24 12:42:10 +03:30
|
|
|
}, ExtArgs["result"]["customerLegal"]>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
export type CustomerLegalSelectScalar = {
|
|
|
|
|
company_name?: boolean
|
|
|
|
|
economic_code?: boolean
|
|
|
|
|
registration_number?: boolean
|
|
|
|
|
postal_code?: boolean
|
2026-04-08 18:15:44 +03:30
|
|
|
customer_id?: boolean
|
2026-02-24 12:42:10 +03:30
|
|
|
complex_id?: boolean
|
|
|
|
|
}
|
|
|
|
|
|
2026-04-08 18:15:44 +03:30
|
|
|
export type CustomerLegalOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"company_name" | "economic_code" | "registration_number" | "postal_code" | "customer_id" | "complex_id", ExtArgs["result"]["customerLegal"]>
|
2026-02-24 12:42:10 +03:30
|
|
|
export type CustomerLegalInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
|
|
|
customer?: boolean | Prisma.CustomerDefaultArgs<ExtArgs>
|
2026-03-29 18:06:41 +03:30
|
|
|
complex?: boolean | Prisma.ComplexDefaultArgs<ExtArgs>
|
2026-02-24 12:42:10 +03:30
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type $CustomerLegalPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
|
|
|
name: "CustomerLegal"
|
|
|
|
|
objects: {
|
|
|
|
|
customer: Prisma.$CustomerPayload<ExtArgs>
|
2026-03-29 18:06:41 +03:30
|
|
|
complex: Prisma.$ComplexPayload<ExtArgs>
|
2026-02-24 12:42:10 +03:30
|
|
|
}
|
|
|
|
|
scalars: runtime.Types.Extensions.GetPayloadResult<{
|
|
|
|
|
company_name: string
|
|
|
|
|
economic_code: string
|
|
|
|
|
registration_number: string
|
|
|
|
|
postal_code: string
|
2026-04-08 18:15:44 +03:30
|
|
|
customer_id: string
|
2026-02-24 12:42:10 +03:30
|
|
|
complex_id: string
|
|
|
|
|
}, ExtArgs["result"]["customerLegal"]>
|
|
|
|
|
composites: {}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type CustomerLegalGetPayload<S extends boolean | null | undefined | CustomerLegalDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$CustomerLegalPayload, S>
|
|
|
|
|
|
|
|
|
|
export type CustomerLegalCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> =
|
|
|
|
|
Omit<CustomerLegalFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
|
|
|
|
|
select?: CustomerLegalCountAggregateInputType | true
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export interface CustomerLegalDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
|
|
|
|
|
[K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['CustomerLegal'], meta: { name: 'CustomerLegal' } }
|
|
|
|
|
/**
|
|
|
|
|
* Find zero or one CustomerLegal that matches the filter.
|
|
|
|
|
* @param {CustomerLegalFindUniqueArgs} args - Arguments to find a CustomerLegal
|
|
|
|
|
* @example
|
|
|
|
|
* // Get one CustomerLegal
|
|
|
|
|
* const customerLegal = await prisma.customerLegal.findUnique({
|
|
|
|
|
* where: {
|
|
|
|
|
* // ... provide filter here
|
|
|
|
|
* }
|
|
|
|
|
* })
|
|
|
|
|
*/
|
|
|
|
|
findUnique<T extends CustomerLegalFindUniqueArgs>(args: Prisma.SelectSubset<T, CustomerLegalFindUniqueArgs<ExtArgs>>): Prisma.Prisma__CustomerLegalClient<runtime.Types.Result.GetResult<Prisma.$CustomerLegalPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Find one CustomerLegal that matches the filter or throw an error with `error.code='P2025'`
|
|
|
|
|
* if no matches were found.
|
|
|
|
|
* @param {CustomerLegalFindUniqueOrThrowArgs} args - Arguments to find a CustomerLegal
|
|
|
|
|
* @example
|
|
|
|
|
* // Get one CustomerLegal
|
|
|
|
|
* const customerLegal = await prisma.customerLegal.findUniqueOrThrow({
|
|
|
|
|
* where: {
|
|
|
|
|
* // ... provide filter here
|
|
|
|
|
* }
|
|
|
|
|
* })
|
|
|
|
|
*/
|
|
|
|
|
findUniqueOrThrow<T extends CustomerLegalFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, CustomerLegalFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__CustomerLegalClient<runtime.Types.Result.GetResult<Prisma.$CustomerLegalPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Find the first CustomerLegal 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 {CustomerLegalFindFirstArgs} args - Arguments to find a CustomerLegal
|
|
|
|
|
* @example
|
|
|
|
|
* // Get one CustomerLegal
|
|
|
|
|
* const customerLegal = await prisma.customerLegal.findFirst({
|
|
|
|
|
* where: {
|
|
|
|
|
* // ... provide filter here
|
|
|
|
|
* }
|
|
|
|
|
* })
|
|
|
|
|
*/
|
|
|
|
|
findFirst<T extends CustomerLegalFindFirstArgs>(args?: Prisma.SelectSubset<T, CustomerLegalFindFirstArgs<ExtArgs>>): Prisma.Prisma__CustomerLegalClient<runtime.Types.Result.GetResult<Prisma.$CustomerLegalPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Find the first CustomerLegal 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 {CustomerLegalFindFirstOrThrowArgs} args - Arguments to find a CustomerLegal
|
|
|
|
|
* @example
|
|
|
|
|
* // Get one CustomerLegal
|
|
|
|
|
* const customerLegal = await prisma.customerLegal.findFirstOrThrow({
|
|
|
|
|
* where: {
|
|
|
|
|
* // ... provide filter here
|
|
|
|
|
* }
|
|
|
|
|
* })
|
|
|
|
|
*/
|
|
|
|
|
findFirstOrThrow<T extends CustomerLegalFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, CustomerLegalFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__CustomerLegalClient<runtime.Types.Result.GetResult<Prisma.$CustomerLegalPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Find zero or more CustomerLegals 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 {CustomerLegalFindManyArgs} args - Arguments to filter and select certain fields only.
|
|
|
|
|
* @example
|
|
|
|
|
* // Get all CustomerLegals
|
|
|
|
|
* const customerLegals = await prisma.customerLegal.findMany()
|
|
|
|
|
*
|
|
|
|
|
* // Get first 10 CustomerLegals
|
|
|
|
|
* const customerLegals = await prisma.customerLegal.findMany({ take: 10 })
|
|
|
|
|
*
|
2026-04-08 18:15:44 +03:30
|
|
|
* // Only select the `company_name`
|
|
|
|
|
* const customerLegalWithCompany_nameOnly = await prisma.customerLegal.findMany({ select: { company_name: true } })
|
2026-02-24 12:42:10 +03:30
|
|
|
*
|
|
|
|
|
*/
|
|
|
|
|
findMany<T extends CustomerLegalFindManyArgs>(args?: Prisma.SelectSubset<T, CustomerLegalFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$CustomerLegalPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Create a CustomerLegal.
|
|
|
|
|
* @param {CustomerLegalCreateArgs} args - Arguments to create a CustomerLegal.
|
|
|
|
|
* @example
|
|
|
|
|
* // Create one CustomerLegal
|
|
|
|
|
* const CustomerLegal = await prisma.customerLegal.create({
|
|
|
|
|
* data: {
|
|
|
|
|
* // ... data to create a CustomerLegal
|
|
|
|
|
* }
|
|
|
|
|
* })
|
|
|
|
|
*
|
|
|
|
|
*/
|
|
|
|
|
create<T extends CustomerLegalCreateArgs>(args: Prisma.SelectSubset<T, CustomerLegalCreateArgs<ExtArgs>>): Prisma.Prisma__CustomerLegalClient<runtime.Types.Result.GetResult<Prisma.$CustomerLegalPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Create many CustomerLegals.
|
|
|
|
|
* @param {CustomerLegalCreateManyArgs} args - Arguments to create many CustomerLegals.
|
|
|
|
|
* @example
|
|
|
|
|
* // Create many CustomerLegals
|
|
|
|
|
* const customerLegal = await prisma.customerLegal.createMany({
|
|
|
|
|
* data: [
|
|
|
|
|
* // ... provide data here
|
|
|
|
|
* ]
|
|
|
|
|
* })
|
|
|
|
|
*
|
|
|
|
|
*/
|
|
|
|
|
createMany<T extends CustomerLegalCreateManyArgs>(args?: Prisma.SelectSubset<T, CustomerLegalCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Delete a CustomerLegal.
|
|
|
|
|
* @param {CustomerLegalDeleteArgs} args - Arguments to delete one CustomerLegal.
|
|
|
|
|
* @example
|
|
|
|
|
* // Delete one CustomerLegal
|
|
|
|
|
* const CustomerLegal = await prisma.customerLegal.delete({
|
|
|
|
|
* where: {
|
|
|
|
|
* // ... filter to delete one CustomerLegal
|
|
|
|
|
* }
|
|
|
|
|
* })
|
|
|
|
|
*
|
|
|
|
|
*/
|
|
|
|
|
delete<T extends CustomerLegalDeleteArgs>(args: Prisma.SelectSubset<T, CustomerLegalDeleteArgs<ExtArgs>>): Prisma.Prisma__CustomerLegalClient<runtime.Types.Result.GetResult<Prisma.$CustomerLegalPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Update one CustomerLegal.
|
|
|
|
|
* @param {CustomerLegalUpdateArgs} args - Arguments to update one CustomerLegal.
|
|
|
|
|
* @example
|
|
|
|
|
* // Update one CustomerLegal
|
|
|
|
|
* const customerLegal = await prisma.customerLegal.update({
|
|
|
|
|
* where: {
|
|
|
|
|
* // ... provide filter here
|
|
|
|
|
* },
|
|
|
|
|
* data: {
|
|
|
|
|
* // ... provide data here
|
|
|
|
|
* }
|
|
|
|
|
* })
|
|
|
|
|
*
|
|
|
|
|
*/
|
|
|
|
|
update<T extends CustomerLegalUpdateArgs>(args: Prisma.SelectSubset<T, CustomerLegalUpdateArgs<ExtArgs>>): Prisma.Prisma__CustomerLegalClient<runtime.Types.Result.GetResult<Prisma.$CustomerLegalPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Delete zero or more CustomerLegals.
|
|
|
|
|
* @param {CustomerLegalDeleteManyArgs} args - Arguments to filter CustomerLegals to delete.
|
|
|
|
|
* @example
|
|
|
|
|
* // Delete a few CustomerLegals
|
|
|
|
|
* const { count } = await prisma.customerLegal.deleteMany({
|
|
|
|
|
* where: {
|
|
|
|
|
* // ... provide filter here
|
|
|
|
|
* }
|
|
|
|
|
* })
|
|
|
|
|
*
|
|
|
|
|
*/
|
|
|
|
|
deleteMany<T extends CustomerLegalDeleteManyArgs>(args?: Prisma.SelectSubset<T, CustomerLegalDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Update zero or more CustomerLegals.
|
|
|
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
|
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
|
|
|
* @param {CustomerLegalUpdateManyArgs} args - Arguments to update one or more rows.
|
|
|
|
|
* @example
|
|
|
|
|
* // Update many CustomerLegals
|
|
|
|
|
* const customerLegal = await prisma.customerLegal.updateMany({
|
|
|
|
|
* where: {
|
|
|
|
|
* // ... provide filter here
|
|
|
|
|
* },
|
|
|
|
|
* data: {
|
|
|
|
|
* // ... provide data here
|
|
|
|
|
* }
|
|
|
|
|
* })
|
|
|
|
|
*
|
|
|
|
|
*/
|
|
|
|
|
updateMany<T extends CustomerLegalUpdateManyArgs>(args: Prisma.SelectSubset<T, CustomerLegalUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Create or update one CustomerLegal.
|
|
|
|
|
* @param {CustomerLegalUpsertArgs} args - Arguments to update or create a CustomerLegal.
|
|
|
|
|
* @example
|
|
|
|
|
* // Update or create a CustomerLegal
|
|
|
|
|
* const customerLegal = await prisma.customerLegal.upsert({
|
|
|
|
|
* create: {
|
|
|
|
|
* // ... data to create a CustomerLegal
|
|
|
|
|
* },
|
|
|
|
|
* update: {
|
|
|
|
|
* // ... in case it already exists, update
|
|
|
|
|
* },
|
|
|
|
|
* where: {
|
|
|
|
|
* // ... the filter for the CustomerLegal we want to update
|
|
|
|
|
* }
|
|
|
|
|
* })
|
|
|
|
|
*/
|
|
|
|
|
upsert<T extends CustomerLegalUpsertArgs>(args: Prisma.SelectSubset<T, CustomerLegalUpsertArgs<ExtArgs>>): Prisma.Prisma__CustomerLegalClient<runtime.Types.Result.GetResult<Prisma.$CustomerLegalPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Count the number of CustomerLegals.
|
|
|
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
|
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
|
|
|
* @param {CustomerLegalCountArgs} args - Arguments to filter CustomerLegals to count.
|
|
|
|
|
* @example
|
|
|
|
|
* // Count the number of CustomerLegals
|
|
|
|
|
* const count = await prisma.customerLegal.count({
|
|
|
|
|
* where: {
|
|
|
|
|
* // ... the filter for the CustomerLegals we want to count
|
|
|
|
|
* }
|
|
|
|
|
* })
|
|
|
|
|
**/
|
|
|
|
|
count<T extends CustomerLegalCountArgs>(
|
|
|
|
|
args?: Prisma.Subset<T, CustomerLegalCountArgs>,
|
|
|
|
|
): Prisma.PrismaPromise<
|
|
|
|
|
T extends runtime.Types.Utils.Record<'select', any>
|
|
|
|
|
? T['select'] extends true
|
|
|
|
|
? number
|
|
|
|
|
: Prisma.GetScalarType<T['select'], CustomerLegalCountAggregateOutputType>
|
|
|
|
|
: number
|
|
|
|
|
>
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Allows you to perform aggregations operations on a CustomerLegal.
|
|
|
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
|
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
|
|
|
* @param {CustomerLegalAggregateArgs} 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 CustomerLegalAggregateArgs>(args: Prisma.Subset<T, CustomerLegalAggregateArgs>): Prisma.PrismaPromise<GetCustomerLegalAggregateType<T>>
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Group by CustomerLegal.
|
|
|
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
|
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
|
|
|
* @param {CustomerLegalGroupByArgs} 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 CustomerLegalGroupByArgs,
|
|
|
|
|
HasSelectOrTake extends Prisma.Or<
|
|
|
|
|
Prisma.Extends<'skip', Prisma.Keys<T>>,
|
|
|
|
|
Prisma.Extends<'take', Prisma.Keys<T>>
|
|
|
|
|
>,
|
|
|
|
|
OrderByArg extends Prisma.True extends HasSelectOrTake
|
|
|
|
|
? { orderBy: CustomerLegalGroupByArgs['orderBy'] }
|
|
|
|
|
: { orderBy?: CustomerLegalGroupByArgs['orderBy'] },
|
|
|
|
|
OrderFields extends Prisma.ExcludeUnderscoreKeys<Prisma.Keys<Prisma.MaybeTupleToUnion<T['orderBy']>>>,
|
|
|
|
|
ByFields extends Prisma.MaybeTupleToUnion<T['by']>,
|
|
|
|
|
ByValid extends Prisma.Has<ByFields, OrderFields>,
|
|
|
|
|
HavingFields extends Prisma.GetHavingFields<T['having']>,
|
|
|
|
|
HavingValid extends Prisma.Has<ByFields, HavingFields>,
|
|
|
|
|
ByEmpty extends T['by'] extends never[] ? Prisma.True : Prisma.False,
|
|
|
|
|
InputErrors extends ByEmpty extends Prisma.True
|
|
|
|
|
? `Error: "by" must not be empty.`
|
|
|
|
|
: HavingValid extends Prisma.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 Prisma.Keys<T>
|
|
|
|
|
? 'orderBy' extends Prisma.Keys<T>
|
|
|
|
|
? ByValid extends Prisma.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 Prisma.Keys<T>
|
|
|
|
|
? 'orderBy' extends Prisma.Keys<T>
|
|
|
|
|
? ByValid extends Prisma.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 Prisma.True
|
|
|
|
|
? {}
|
|
|
|
|
: {
|
|
|
|
|
[P in OrderFields]: P extends ByFields
|
|
|
|
|
? never
|
|
|
|
|
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
|
|
|
|
|
}[OrderFields]
|
|
|
|
|
>(args: Prisma.SubsetIntersection<T, CustomerLegalGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetCustomerLegalGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
|
|
|
|
|
/**
|
|
|
|
|
* Fields of the CustomerLegal model
|
|
|
|
|
*/
|
|
|
|
|
readonly fields: CustomerLegalFieldRefs;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* The delegate class that acts as a "Promise-like" for CustomerLegal.
|
|
|
|
|
* 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__CustomerLegalClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
|
|
|
|
|
readonly [Symbol.toStringTag]: "PrismaPromise"
|
|
|
|
|
customer<T extends Prisma.CustomerDefaultArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.CustomerDefaultArgs<ExtArgs>>): Prisma.Prisma__CustomerClient<runtime.Types.Result.GetResult<Prisma.$CustomerPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>
|
2026-03-29 18:06:41 +03:30
|
|
|
complex<T extends Prisma.ComplexDefaultArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.ComplexDefaultArgs<ExtArgs>>): Prisma.Prisma__ComplexClient<runtime.Types.Result.GetResult<Prisma.$ComplexPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>
|
2026-02-24 12:42:10 +03:30
|
|
|
/**
|
|
|
|
|
* 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): runtime.Types.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): runtime.Types.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): runtime.Types.Utils.JsPromise<T>
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Fields of the CustomerLegal model
|
|
|
|
|
*/
|
|
|
|
|
export interface CustomerLegalFieldRefs {
|
|
|
|
|
readonly company_name: Prisma.FieldRef<"CustomerLegal", 'String'>
|
|
|
|
|
readonly economic_code: Prisma.FieldRef<"CustomerLegal", 'String'>
|
|
|
|
|
readonly registration_number: Prisma.FieldRef<"CustomerLegal", 'String'>
|
|
|
|
|
readonly postal_code: Prisma.FieldRef<"CustomerLegal", 'String'>
|
2026-04-08 18:15:44 +03:30
|
|
|
readonly customer_id: Prisma.FieldRef<"CustomerLegal", 'String'>
|
2026-02-24 12:42:10 +03:30
|
|
|
readonly complex_id: Prisma.FieldRef<"CustomerLegal", 'String'>
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// Custom InputTypes
|
|
|
|
|
/**
|
|
|
|
|
* CustomerLegal findUnique
|
|
|
|
|
*/
|
|
|
|
|
export type CustomerLegalFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
|
|
|
/**
|
|
|
|
|
* Select specific fields to fetch from the CustomerLegal
|
|
|
|
|
*/
|
|
|
|
|
select?: Prisma.CustomerLegalSelect<ExtArgs> | null
|
|
|
|
|
/**
|
|
|
|
|
* Omit specific fields from the CustomerLegal
|
|
|
|
|
*/
|
|
|
|
|
omit?: Prisma.CustomerLegalOmit<ExtArgs> | null
|
|
|
|
|
/**
|
|
|
|
|
* Choose, which related nodes to fetch as well
|
|
|
|
|
*/
|
|
|
|
|
include?: Prisma.CustomerLegalInclude<ExtArgs> | null
|
|
|
|
|
/**
|
|
|
|
|
* Filter, which CustomerLegal to fetch.
|
|
|
|
|
*/
|
|
|
|
|
where: Prisma.CustomerLegalWhereUniqueInput
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* CustomerLegal findUniqueOrThrow
|
|
|
|
|
*/
|
|
|
|
|
export type CustomerLegalFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
|
|
|
/**
|
|
|
|
|
* Select specific fields to fetch from the CustomerLegal
|
|
|
|
|
*/
|
|
|
|
|
select?: Prisma.CustomerLegalSelect<ExtArgs> | null
|
|
|
|
|
/**
|
|
|
|
|
* Omit specific fields from the CustomerLegal
|
|
|
|
|
*/
|
|
|
|
|
omit?: Prisma.CustomerLegalOmit<ExtArgs> | null
|
|
|
|
|
/**
|
|
|
|
|
* Choose, which related nodes to fetch as well
|
|
|
|
|
*/
|
|
|
|
|
include?: Prisma.CustomerLegalInclude<ExtArgs> | null
|
|
|
|
|
/**
|
|
|
|
|
* Filter, which CustomerLegal to fetch.
|
|
|
|
|
*/
|
|
|
|
|
where: Prisma.CustomerLegalWhereUniqueInput
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* CustomerLegal findFirst
|
|
|
|
|
*/
|
|
|
|
|
export type CustomerLegalFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
|
|
|
/**
|
|
|
|
|
* Select specific fields to fetch from the CustomerLegal
|
|
|
|
|
*/
|
|
|
|
|
select?: Prisma.CustomerLegalSelect<ExtArgs> | null
|
|
|
|
|
/**
|
|
|
|
|
* Omit specific fields from the CustomerLegal
|
|
|
|
|
*/
|
|
|
|
|
omit?: Prisma.CustomerLegalOmit<ExtArgs> | null
|
|
|
|
|
/**
|
|
|
|
|
* Choose, which related nodes to fetch as well
|
|
|
|
|
*/
|
|
|
|
|
include?: Prisma.CustomerLegalInclude<ExtArgs> | null
|
|
|
|
|
/**
|
|
|
|
|
* Filter, which CustomerLegal to fetch.
|
|
|
|
|
*/
|
|
|
|
|
where?: Prisma.CustomerLegalWhereInput
|
|
|
|
|
/**
|
|
|
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
|
|
|
*
|
|
|
|
|
* Determine the order of CustomerLegals to fetch.
|
|
|
|
|
*/
|
|
|
|
|
orderBy?: Prisma.CustomerLegalOrderByWithRelationInput | Prisma.CustomerLegalOrderByWithRelationInput[]
|
|
|
|
|
/**
|
|
|
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
|
|
|
*
|
|
|
|
|
* Sets the position for searching for CustomerLegals.
|
|
|
|
|
*/
|
|
|
|
|
cursor?: Prisma.CustomerLegalWhereUniqueInput
|
|
|
|
|
/**
|
|
|
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
|
|
|
*
|
|
|
|
|
* Take `±n` CustomerLegals 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` CustomerLegals.
|
|
|
|
|
*/
|
|
|
|
|
skip?: number
|
|
|
|
|
/**
|
|
|
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
|
|
|
*
|
|
|
|
|
* Filter by unique combinations of CustomerLegals.
|
|
|
|
|
*/
|
|
|
|
|
distinct?: Prisma.CustomerLegalScalarFieldEnum | Prisma.CustomerLegalScalarFieldEnum[]
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* CustomerLegal findFirstOrThrow
|
|
|
|
|
*/
|
|
|
|
|
export type CustomerLegalFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
|
|
|
/**
|
|
|
|
|
* Select specific fields to fetch from the CustomerLegal
|
|
|
|
|
*/
|
|
|
|
|
select?: Prisma.CustomerLegalSelect<ExtArgs> | null
|
|
|
|
|
/**
|
|
|
|
|
* Omit specific fields from the CustomerLegal
|
|
|
|
|
*/
|
|
|
|
|
omit?: Prisma.CustomerLegalOmit<ExtArgs> | null
|
|
|
|
|
/**
|
|
|
|
|
* Choose, which related nodes to fetch as well
|
|
|
|
|
*/
|
|
|
|
|
include?: Prisma.CustomerLegalInclude<ExtArgs> | null
|
|
|
|
|
/**
|
|
|
|
|
* Filter, which CustomerLegal to fetch.
|
|
|
|
|
*/
|
|
|
|
|
where?: Prisma.CustomerLegalWhereInput
|
|
|
|
|
/**
|
|
|
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
|
|
|
*
|
|
|
|
|
* Determine the order of CustomerLegals to fetch.
|
|
|
|
|
*/
|
|
|
|
|
orderBy?: Prisma.CustomerLegalOrderByWithRelationInput | Prisma.CustomerLegalOrderByWithRelationInput[]
|
|
|
|
|
/**
|
|
|
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
|
|
|
*
|
|
|
|
|
* Sets the position for searching for CustomerLegals.
|
|
|
|
|
*/
|
|
|
|
|
cursor?: Prisma.CustomerLegalWhereUniqueInput
|
|
|
|
|
/**
|
|
|
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
|
|
|
*
|
|
|
|
|
* Take `±n` CustomerLegals 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` CustomerLegals.
|
|
|
|
|
*/
|
|
|
|
|
skip?: number
|
|
|
|
|
/**
|
|
|
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
|
|
|
*
|
|
|
|
|
* Filter by unique combinations of CustomerLegals.
|
|
|
|
|
*/
|
|
|
|
|
distinct?: Prisma.CustomerLegalScalarFieldEnum | Prisma.CustomerLegalScalarFieldEnum[]
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* CustomerLegal findMany
|
|
|
|
|
*/
|
|
|
|
|
export type CustomerLegalFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
|
|
|
/**
|
|
|
|
|
* Select specific fields to fetch from the CustomerLegal
|
|
|
|
|
*/
|
|
|
|
|
select?: Prisma.CustomerLegalSelect<ExtArgs> | null
|
|
|
|
|
/**
|
|
|
|
|
* Omit specific fields from the CustomerLegal
|
|
|
|
|
*/
|
|
|
|
|
omit?: Prisma.CustomerLegalOmit<ExtArgs> | null
|
|
|
|
|
/**
|
|
|
|
|
* Choose, which related nodes to fetch as well
|
|
|
|
|
*/
|
|
|
|
|
include?: Prisma.CustomerLegalInclude<ExtArgs> | null
|
|
|
|
|
/**
|
|
|
|
|
* Filter, which CustomerLegals to fetch.
|
|
|
|
|
*/
|
|
|
|
|
where?: Prisma.CustomerLegalWhereInput
|
|
|
|
|
/**
|
|
|
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
|
|
|
*
|
|
|
|
|
* Determine the order of CustomerLegals to fetch.
|
|
|
|
|
*/
|
|
|
|
|
orderBy?: Prisma.CustomerLegalOrderByWithRelationInput | Prisma.CustomerLegalOrderByWithRelationInput[]
|
|
|
|
|
/**
|
|
|
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
|
|
|
*
|
|
|
|
|
* Sets the position for listing CustomerLegals.
|
|
|
|
|
*/
|
|
|
|
|
cursor?: Prisma.CustomerLegalWhereUniqueInput
|
|
|
|
|
/**
|
|
|
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
|
|
|
*
|
|
|
|
|
* Take `±n` CustomerLegals 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` CustomerLegals.
|
|
|
|
|
*/
|
|
|
|
|
skip?: number
|
|
|
|
|
distinct?: Prisma.CustomerLegalScalarFieldEnum | Prisma.CustomerLegalScalarFieldEnum[]
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* CustomerLegal create
|
|
|
|
|
*/
|
|
|
|
|
export type CustomerLegalCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
|
|
|
/**
|
|
|
|
|
* Select specific fields to fetch from the CustomerLegal
|
|
|
|
|
*/
|
|
|
|
|
select?: Prisma.CustomerLegalSelect<ExtArgs> | null
|
|
|
|
|
/**
|
|
|
|
|
* Omit specific fields from the CustomerLegal
|
|
|
|
|
*/
|
|
|
|
|
omit?: Prisma.CustomerLegalOmit<ExtArgs> | null
|
|
|
|
|
/**
|
|
|
|
|
* Choose, which related nodes to fetch as well
|
|
|
|
|
*/
|
|
|
|
|
include?: Prisma.CustomerLegalInclude<ExtArgs> | null
|
|
|
|
|
/**
|
|
|
|
|
* The data needed to create a CustomerLegal.
|
|
|
|
|
*/
|
|
|
|
|
data: Prisma.XOR<Prisma.CustomerLegalCreateInput, Prisma.CustomerLegalUncheckedCreateInput>
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* CustomerLegal createMany
|
|
|
|
|
*/
|
|
|
|
|
export type CustomerLegalCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
|
|
|
/**
|
|
|
|
|
* The data used to create many CustomerLegals.
|
|
|
|
|
*/
|
|
|
|
|
data: Prisma.CustomerLegalCreateManyInput | Prisma.CustomerLegalCreateManyInput[]
|
|
|
|
|
skipDuplicates?: boolean
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* CustomerLegal update
|
|
|
|
|
*/
|
|
|
|
|
export type CustomerLegalUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
|
|
|
/**
|
|
|
|
|
* Select specific fields to fetch from the CustomerLegal
|
|
|
|
|
*/
|
|
|
|
|
select?: Prisma.CustomerLegalSelect<ExtArgs> | null
|
|
|
|
|
/**
|
|
|
|
|
* Omit specific fields from the CustomerLegal
|
|
|
|
|
*/
|
|
|
|
|
omit?: Prisma.CustomerLegalOmit<ExtArgs> | null
|
|
|
|
|
/**
|
|
|
|
|
* Choose, which related nodes to fetch as well
|
|
|
|
|
*/
|
|
|
|
|
include?: Prisma.CustomerLegalInclude<ExtArgs> | null
|
|
|
|
|
/**
|
|
|
|
|
* The data needed to update a CustomerLegal.
|
|
|
|
|
*/
|
|
|
|
|
data: Prisma.XOR<Prisma.CustomerLegalUpdateInput, Prisma.CustomerLegalUncheckedUpdateInput>
|
|
|
|
|
/**
|
|
|
|
|
* Choose, which CustomerLegal to update.
|
|
|
|
|
*/
|
|
|
|
|
where: Prisma.CustomerLegalWhereUniqueInput
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* CustomerLegal updateMany
|
|
|
|
|
*/
|
|
|
|
|
export type CustomerLegalUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
|
|
|
/**
|
|
|
|
|
* The data used to update CustomerLegals.
|
|
|
|
|
*/
|
|
|
|
|
data: Prisma.XOR<Prisma.CustomerLegalUpdateManyMutationInput, Prisma.CustomerLegalUncheckedUpdateManyInput>
|
|
|
|
|
/**
|
|
|
|
|
* Filter which CustomerLegals to update
|
|
|
|
|
*/
|
|
|
|
|
where?: Prisma.CustomerLegalWhereInput
|
|
|
|
|
/**
|
|
|
|
|
* Limit how many CustomerLegals to update.
|
|
|
|
|
*/
|
|
|
|
|
limit?: number
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* CustomerLegal upsert
|
|
|
|
|
*/
|
|
|
|
|
export type CustomerLegalUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
|
|
|
/**
|
|
|
|
|
* Select specific fields to fetch from the CustomerLegal
|
|
|
|
|
*/
|
|
|
|
|
select?: Prisma.CustomerLegalSelect<ExtArgs> | null
|
|
|
|
|
/**
|
|
|
|
|
* Omit specific fields from the CustomerLegal
|
|
|
|
|
*/
|
|
|
|
|
omit?: Prisma.CustomerLegalOmit<ExtArgs> | null
|
|
|
|
|
/**
|
|
|
|
|
* Choose, which related nodes to fetch as well
|
|
|
|
|
*/
|
|
|
|
|
include?: Prisma.CustomerLegalInclude<ExtArgs> | null
|
|
|
|
|
/**
|
|
|
|
|
* The filter to search for the CustomerLegal to update in case it exists.
|
|
|
|
|
*/
|
|
|
|
|
where: Prisma.CustomerLegalWhereUniqueInput
|
|
|
|
|
/**
|
|
|
|
|
* In case the CustomerLegal found by the `where` argument doesn't exist, create a new CustomerLegal with this data.
|
|
|
|
|
*/
|
|
|
|
|
create: Prisma.XOR<Prisma.CustomerLegalCreateInput, Prisma.CustomerLegalUncheckedCreateInput>
|
|
|
|
|
/**
|
|
|
|
|
* In case the CustomerLegal was found with the provided `where` argument, update it with this data.
|
|
|
|
|
*/
|
|
|
|
|
update: Prisma.XOR<Prisma.CustomerLegalUpdateInput, Prisma.CustomerLegalUncheckedUpdateInput>
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* CustomerLegal delete
|
|
|
|
|
*/
|
|
|
|
|
export type CustomerLegalDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
|
|
|
/**
|
|
|
|
|
* Select specific fields to fetch from the CustomerLegal
|
|
|
|
|
*/
|
|
|
|
|
select?: Prisma.CustomerLegalSelect<ExtArgs> | null
|
|
|
|
|
/**
|
|
|
|
|
* Omit specific fields from the CustomerLegal
|
|
|
|
|
*/
|
|
|
|
|
omit?: Prisma.CustomerLegalOmit<ExtArgs> | null
|
|
|
|
|
/**
|
|
|
|
|
* Choose, which related nodes to fetch as well
|
|
|
|
|
*/
|
|
|
|
|
include?: Prisma.CustomerLegalInclude<ExtArgs> | null
|
|
|
|
|
/**
|
|
|
|
|
* Filter which CustomerLegal to delete.
|
|
|
|
|
*/
|
|
|
|
|
where: Prisma.CustomerLegalWhereUniqueInput
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* CustomerLegal deleteMany
|
|
|
|
|
*/
|
|
|
|
|
export type CustomerLegalDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
|
|
|
/**
|
|
|
|
|
* Filter which CustomerLegals to delete
|
|
|
|
|
*/
|
|
|
|
|
where?: Prisma.CustomerLegalWhereInput
|
|
|
|
|
/**
|
|
|
|
|
* Limit how many CustomerLegals to delete.
|
|
|
|
|
*/
|
|
|
|
|
limit?: number
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* CustomerLegal without action
|
|
|
|
|
*/
|
|
|
|
|
export type CustomerLegalDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
|
|
|
/**
|
|
|
|
|
* Select specific fields to fetch from the CustomerLegal
|
|
|
|
|
*/
|
|
|
|
|
select?: Prisma.CustomerLegalSelect<ExtArgs> | null
|
|
|
|
|
/**
|
|
|
|
|
* Omit specific fields from the CustomerLegal
|
|
|
|
|
*/
|
|
|
|
|
omit?: Prisma.CustomerLegalOmit<ExtArgs> | null
|
|
|
|
|
/**
|
|
|
|
|
* Choose, which related nodes to fetch as well
|
|
|
|
|
*/
|
|
|
|
|
include?: Prisma.CustomerLegalInclude<ExtArgs> | null
|
|
|
|
|
}
|