Files
psp_api/src/generated/prisma/models/CustomerLegal.ts
T

1354 lines
55 KiB
TypeScript
Raw Normal View History

/* !!! 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 = {
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
business_activity_id: string | null
}
export type CustomerLegalMaxAggregateOutputType = {
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
business_activity_id: string | null
}
export type CustomerLegalCountAggregateOutputType = {
name: number
economic_code: number
registration_number: number
postal_code: number
2026-04-08 18:15:44 +03:30
customer_id: number
business_activity_id: number
_all: number
}
export type CustomerLegalMinAggregateInputType = {
name?: true
economic_code?: true
registration_number?: true
postal_code?: true
2026-04-08 18:15:44 +03:30
customer_id?: true
business_activity_id?: true
}
export type CustomerLegalMaxAggregateInputType = {
name?: true
economic_code?: true
registration_number?: true
postal_code?: true
2026-04-08 18:15:44 +03:30
customer_id?: true
business_activity_id?: true
}
export type CustomerLegalCountAggregateInputType = {
name?: true
economic_code?: true
registration_number?: true
postal_code?: true
2026-04-08 18:15:44 +03:30
customer_id?: true
business_activity_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 = {
name: string
economic_code: string
registration_number: string | null
postal_code: string
2026-04-08 18:15:44 +03:30
customer_id: string
business_activity_id: string
_count: CustomerLegalCountAggregateOutputType | null
_min: CustomerLegalMinAggregateOutputType | null
_max: CustomerLegalMaxAggregateOutputType | null
}
2026-04-22 21:55:40 +03:30
export 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[]
name?: Prisma.StringFilter<"CustomerLegal"> | string
economic_code?: Prisma.StringFilter<"CustomerLegal"> | string
registration_number?: Prisma.StringNullableFilter<"CustomerLegal"> | string | null
postal_code?: Prisma.StringFilter<"CustomerLegal"> | string
2026-04-08 18:15:44 +03:30
customer_id?: Prisma.StringFilter<"CustomerLegal"> | string
business_activity_id?: Prisma.StringFilter<"CustomerLegal"> | string
customer?: Prisma.XOR<Prisma.CustomerScalarRelationFilter, Prisma.CustomerWhereInput>
business_activity?: Prisma.XOR<Prisma.BusinessActivityScalarRelationFilter, Prisma.BusinessActivityWhereInput>
}
export type CustomerLegalOrderByWithRelationInput = {
name?: Prisma.SortOrder
economic_code?: Prisma.SortOrder
registration_number?: Prisma.SortOrderInput | Prisma.SortOrder
postal_code?: Prisma.SortOrder
2026-04-08 18:15:44 +03:30
customer_id?: Prisma.SortOrder
business_activity_id?: Prisma.SortOrder
customer?: Prisma.CustomerOrderByWithRelationInput
business_activity?: Prisma.BusinessActivityOrderByWithRelationInput
_relevance?: Prisma.CustomerLegalOrderByRelevanceInput
}
export type CustomerLegalWhereUniqueInput = Prisma.AtLeast<{
customer_id?: string
business_activity_id_economic_code?: Prisma.CustomerLegalBusiness_activity_idEconomic_codeCompoundUniqueInput
AND?: Prisma.CustomerLegalWhereInput | Prisma.CustomerLegalWhereInput[]
OR?: Prisma.CustomerLegalWhereInput[]
NOT?: Prisma.CustomerLegalWhereInput | Prisma.CustomerLegalWhereInput[]
name?: Prisma.StringFilter<"CustomerLegal"> | string
economic_code?: Prisma.StringFilter<"CustomerLegal"> | string
registration_number?: Prisma.StringNullableFilter<"CustomerLegal"> | string | null
postal_code?: Prisma.StringFilter<"CustomerLegal"> | string
business_activity_id?: Prisma.StringFilter<"CustomerLegal"> | string
customer?: Prisma.XOR<Prisma.CustomerScalarRelationFilter, Prisma.CustomerWhereInput>
business_activity?: Prisma.XOR<Prisma.BusinessActivityScalarRelationFilter, Prisma.BusinessActivityWhereInput>
}, "customer_id" | "business_activity_id_economic_code">
export type CustomerLegalOrderByWithAggregationInput = {
name?: Prisma.SortOrder
economic_code?: Prisma.SortOrder
registration_number?: Prisma.SortOrderInput | Prisma.SortOrder
postal_code?: Prisma.SortOrder
2026-04-08 18:15:44 +03:30
customer_id?: Prisma.SortOrder
business_activity_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[]
name?: Prisma.StringWithAggregatesFilter<"CustomerLegal"> | string
economic_code?: Prisma.StringWithAggregatesFilter<"CustomerLegal"> | string
registration_number?: Prisma.StringNullableWithAggregatesFilter<"CustomerLegal"> | string | null
postal_code?: Prisma.StringWithAggregatesFilter<"CustomerLegal"> | string
2026-04-08 18:15:44 +03:30
customer_id?: Prisma.StringWithAggregatesFilter<"CustomerLegal"> | string
business_activity_id?: Prisma.StringWithAggregatesFilter<"CustomerLegal"> | string
}
export type CustomerLegalCreateInput = {
name: string
economic_code: string
registration_number?: string | null
postal_code: string
customer: Prisma.CustomerCreateNestedOneWithoutLegalInput
business_activity: Prisma.BusinessActivityCreateNestedOneWithoutCustomer_legalsInput
}
export type CustomerLegalUncheckedCreateInput = {
name: string
economic_code: string
registration_number?: string | null
postal_code: string
2026-04-08 18:15:44 +03:30
customer_id: string
business_activity_id: string
}
export type CustomerLegalUpdateInput = {
name?: Prisma.StringFieldUpdateOperationsInput | string
economic_code?: Prisma.StringFieldUpdateOperationsInput | string
registration_number?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
postal_code?: Prisma.StringFieldUpdateOperationsInput | string
customer?: Prisma.CustomerUpdateOneRequiredWithoutLegalNestedInput
business_activity?: Prisma.BusinessActivityUpdateOneRequiredWithoutCustomer_legalsNestedInput
}
export type CustomerLegalUncheckedUpdateInput = {
name?: Prisma.StringFieldUpdateOperationsInput | string
economic_code?: Prisma.StringFieldUpdateOperationsInput | string
registration_number?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
postal_code?: Prisma.StringFieldUpdateOperationsInput | string
2026-04-08 18:15:44 +03:30
customer_id?: Prisma.StringFieldUpdateOperationsInput | string
business_activity_id?: Prisma.StringFieldUpdateOperationsInput | string
}
export type CustomerLegalCreateManyInput = {
name: string
economic_code: string
registration_number?: string | null
postal_code: string
2026-04-08 18:15:44 +03:30
customer_id: string
business_activity_id: string
}
export type CustomerLegalUpdateManyMutationInput = {
name?: Prisma.StringFieldUpdateOperationsInput | string
economic_code?: Prisma.StringFieldUpdateOperationsInput | string
registration_number?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
postal_code?: Prisma.StringFieldUpdateOperationsInput | string
}
export type CustomerLegalUncheckedUpdateManyInput = {
name?: Prisma.StringFieldUpdateOperationsInput | string
economic_code?: Prisma.StringFieldUpdateOperationsInput | string
registration_number?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
postal_code?: Prisma.StringFieldUpdateOperationsInput | string
2026-04-08 18:15:44 +03:30
customer_id?: Prisma.StringFieldUpdateOperationsInput | string
business_activity_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
}
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 CustomerLegalBusiness_activity_idEconomic_codeCompoundUniqueInput = {
business_activity_id: string
economic_code: string
}
export type CustomerLegalCountOrderByAggregateInput = {
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
business_activity_id?: Prisma.SortOrder
}
export type CustomerLegalMaxOrderByAggregateInput = {
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
business_activity_id?: Prisma.SortOrder
}
export type CustomerLegalMinOrderByAggregateInput = {
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
business_activity_id?: Prisma.SortOrder
}
export type CustomerLegalCreateNestedManyWithoutBusiness_activityInput = {
create?: Prisma.XOR<Prisma.CustomerLegalCreateWithoutBusiness_activityInput, Prisma.CustomerLegalUncheckedCreateWithoutBusiness_activityInput> | Prisma.CustomerLegalCreateWithoutBusiness_activityInput[] | Prisma.CustomerLegalUncheckedCreateWithoutBusiness_activityInput[]
connectOrCreate?: Prisma.CustomerLegalCreateOrConnectWithoutBusiness_activityInput | Prisma.CustomerLegalCreateOrConnectWithoutBusiness_activityInput[]
createMany?: Prisma.CustomerLegalCreateManyBusiness_activityInputEnvelope
2026-03-29 18:06:41 +03:30
connect?: Prisma.CustomerLegalWhereUniqueInput | Prisma.CustomerLegalWhereUniqueInput[]
}
export type CustomerLegalUncheckedCreateNestedManyWithoutBusiness_activityInput = {
create?: Prisma.XOR<Prisma.CustomerLegalCreateWithoutBusiness_activityInput, Prisma.CustomerLegalUncheckedCreateWithoutBusiness_activityInput> | Prisma.CustomerLegalCreateWithoutBusiness_activityInput[] | Prisma.CustomerLegalUncheckedCreateWithoutBusiness_activityInput[]
connectOrCreate?: Prisma.CustomerLegalCreateOrConnectWithoutBusiness_activityInput | Prisma.CustomerLegalCreateOrConnectWithoutBusiness_activityInput[]
createMany?: Prisma.CustomerLegalCreateManyBusiness_activityInputEnvelope
2026-03-29 18:06:41 +03:30
connect?: Prisma.CustomerLegalWhereUniqueInput | Prisma.CustomerLegalWhereUniqueInput[]
}
export type CustomerLegalUpdateManyWithoutBusiness_activityNestedInput = {
create?: Prisma.XOR<Prisma.CustomerLegalCreateWithoutBusiness_activityInput, Prisma.CustomerLegalUncheckedCreateWithoutBusiness_activityInput> | Prisma.CustomerLegalCreateWithoutBusiness_activityInput[] | Prisma.CustomerLegalUncheckedCreateWithoutBusiness_activityInput[]
connectOrCreate?: Prisma.CustomerLegalCreateOrConnectWithoutBusiness_activityInput | Prisma.CustomerLegalCreateOrConnectWithoutBusiness_activityInput[]
upsert?: Prisma.CustomerLegalUpsertWithWhereUniqueWithoutBusiness_activityInput | Prisma.CustomerLegalUpsertWithWhereUniqueWithoutBusiness_activityInput[]
createMany?: Prisma.CustomerLegalCreateManyBusiness_activityInputEnvelope
2026-03-29 18:06:41 +03:30
set?: Prisma.CustomerLegalWhereUniqueInput | Prisma.CustomerLegalWhereUniqueInput[]
disconnect?: Prisma.CustomerLegalWhereUniqueInput | Prisma.CustomerLegalWhereUniqueInput[]
delete?: Prisma.CustomerLegalWhereUniqueInput | Prisma.CustomerLegalWhereUniqueInput[]
connect?: Prisma.CustomerLegalWhereUniqueInput | Prisma.CustomerLegalWhereUniqueInput[]
update?: Prisma.CustomerLegalUpdateWithWhereUniqueWithoutBusiness_activityInput | Prisma.CustomerLegalUpdateWithWhereUniqueWithoutBusiness_activityInput[]
updateMany?: Prisma.CustomerLegalUpdateManyWithWhereWithoutBusiness_activityInput | Prisma.CustomerLegalUpdateManyWithWhereWithoutBusiness_activityInput[]
2026-03-29 18:06:41 +03:30
deleteMany?: Prisma.CustomerLegalScalarWhereInput | Prisma.CustomerLegalScalarWhereInput[]
}
export type CustomerLegalUncheckedUpdateManyWithoutBusiness_activityNestedInput = {
create?: Prisma.XOR<Prisma.CustomerLegalCreateWithoutBusiness_activityInput, Prisma.CustomerLegalUncheckedCreateWithoutBusiness_activityInput> | Prisma.CustomerLegalCreateWithoutBusiness_activityInput[] | Prisma.CustomerLegalUncheckedCreateWithoutBusiness_activityInput[]
connectOrCreate?: Prisma.CustomerLegalCreateOrConnectWithoutBusiness_activityInput | Prisma.CustomerLegalCreateOrConnectWithoutBusiness_activityInput[]
upsert?: Prisma.CustomerLegalUpsertWithWhereUniqueWithoutBusiness_activityInput | Prisma.CustomerLegalUpsertWithWhereUniqueWithoutBusiness_activityInput[]
createMany?: Prisma.CustomerLegalCreateManyBusiness_activityInputEnvelope
2026-03-29 18:06:41 +03:30
set?: Prisma.CustomerLegalWhereUniqueInput | Prisma.CustomerLegalWhereUniqueInput[]
disconnect?: Prisma.CustomerLegalWhereUniqueInput | Prisma.CustomerLegalWhereUniqueInput[]
delete?: Prisma.CustomerLegalWhereUniqueInput | Prisma.CustomerLegalWhereUniqueInput[]
connect?: Prisma.CustomerLegalWhereUniqueInput | Prisma.CustomerLegalWhereUniqueInput[]
update?: Prisma.CustomerLegalUpdateWithWhereUniqueWithoutBusiness_activityInput | Prisma.CustomerLegalUpdateWithWhereUniqueWithoutBusiness_activityInput[]
updateMany?: Prisma.CustomerLegalUpdateManyWithWhereWithoutBusiness_activityInput | Prisma.CustomerLegalUpdateManyWithWhereWithoutBusiness_activityInput[]
2026-03-29 18:06:41 +03:30
deleteMany?: Prisma.CustomerLegalScalarWhereInput | Prisma.CustomerLegalScalarWhereInput[]
}
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>
}
export type CustomerLegalCreateWithoutBusiness_activityInput = {
name: string
2026-03-29 18:06:41 +03:30
economic_code: string
registration_number?: string | null
2026-03-29 18:06:41 +03:30
postal_code: string
customer: Prisma.CustomerCreateNestedOneWithoutLegalInput
2026-03-29 18:06:41 +03:30
}
export type CustomerLegalUncheckedCreateWithoutBusiness_activityInput = {
name: string
2026-03-29 18:06:41 +03:30
economic_code: string
registration_number?: string | null
2026-03-29 18:06:41 +03:30
postal_code: string
2026-04-08 18:15:44 +03:30
customer_id: string
2026-03-29 18:06:41 +03:30
}
export type CustomerLegalCreateOrConnectWithoutBusiness_activityInput = {
2026-03-29 18:06:41 +03:30
where: Prisma.CustomerLegalWhereUniqueInput
create: Prisma.XOR<Prisma.CustomerLegalCreateWithoutBusiness_activityInput, Prisma.CustomerLegalUncheckedCreateWithoutBusiness_activityInput>
2026-03-29 18:06:41 +03:30
}
export type CustomerLegalCreateManyBusiness_activityInputEnvelope = {
data: Prisma.CustomerLegalCreateManyBusiness_activityInput | Prisma.CustomerLegalCreateManyBusiness_activityInput[]
2026-03-29 18:06:41 +03:30
skipDuplicates?: boolean
}
export type CustomerLegalUpsertWithWhereUniqueWithoutBusiness_activityInput = {
2026-03-29 18:06:41 +03:30
where: Prisma.CustomerLegalWhereUniqueInput
update: Prisma.XOR<Prisma.CustomerLegalUpdateWithoutBusiness_activityInput, Prisma.CustomerLegalUncheckedUpdateWithoutBusiness_activityInput>
create: Prisma.XOR<Prisma.CustomerLegalCreateWithoutBusiness_activityInput, Prisma.CustomerLegalUncheckedCreateWithoutBusiness_activityInput>
2026-03-29 18:06:41 +03:30
}
export type CustomerLegalUpdateWithWhereUniqueWithoutBusiness_activityInput = {
2026-03-29 18:06:41 +03:30
where: Prisma.CustomerLegalWhereUniqueInput
data: Prisma.XOR<Prisma.CustomerLegalUpdateWithoutBusiness_activityInput, Prisma.CustomerLegalUncheckedUpdateWithoutBusiness_activityInput>
2026-03-29 18:06:41 +03:30
}
export type CustomerLegalUpdateManyWithWhereWithoutBusiness_activityInput = {
2026-03-29 18:06:41 +03:30
where: Prisma.CustomerLegalScalarWhereInput
data: Prisma.XOR<Prisma.CustomerLegalUpdateManyMutationInput, Prisma.CustomerLegalUncheckedUpdateManyWithoutBusiness_activityInput>
2026-03-29 18:06:41 +03:30
}
export type CustomerLegalScalarWhereInput = {
AND?: Prisma.CustomerLegalScalarWhereInput | Prisma.CustomerLegalScalarWhereInput[]
OR?: Prisma.CustomerLegalScalarWhereInput[]
NOT?: Prisma.CustomerLegalScalarWhereInput | Prisma.CustomerLegalScalarWhereInput[]
name?: Prisma.StringFilter<"CustomerLegal"> | string
2026-03-29 18:06:41 +03:30
economic_code?: Prisma.StringFilter<"CustomerLegal"> | string
registration_number?: Prisma.StringNullableFilter<"CustomerLegal"> | string | null
2026-03-29 18:06:41 +03:30
postal_code?: Prisma.StringFilter<"CustomerLegal"> | string
2026-04-08 18:15:44 +03:30
customer_id?: Prisma.StringFilter<"CustomerLegal"> | string
business_activity_id?: Prisma.StringFilter<"CustomerLegal"> | string
2026-03-29 18:06:41 +03:30
}
export type CustomerLegalCreateWithoutCustomerInput = {
name: string
economic_code: string
registration_number?: string | null
postal_code: string
business_activity: Prisma.BusinessActivityCreateNestedOneWithoutCustomer_legalsInput
}
export type CustomerLegalUncheckedCreateWithoutCustomerInput = {
name: string
economic_code: string
registration_number?: string | null
postal_code: string
business_activity_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 = {
name?: Prisma.StringFieldUpdateOperationsInput | string
economic_code?: Prisma.StringFieldUpdateOperationsInput | string
registration_number?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
postal_code?: Prisma.StringFieldUpdateOperationsInput | string
business_activity?: Prisma.BusinessActivityUpdateOneRequiredWithoutCustomer_legalsNestedInput
}
export type CustomerLegalUncheckedUpdateWithoutCustomerInput = {
name?: Prisma.StringFieldUpdateOperationsInput | string
economic_code?: Prisma.StringFieldUpdateOperationsInput | string
registration_number?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
postal_code?: Prisma.StringFieldUpdateOperationsInput | string
business_activity_id?: Prisma.StringFieldUpdateOperationsInput | string
}
export type CustomerLegalCreateManyBusiness_activityInput = {
name: string
2026-03-29 18:06:41 +03:30
economic_code: string
registration_number?: string | null
2026-03-29 18:06:41 +03:30
postal_code: string
2026-04-08 18:15:44 +03:30
customer_id: string
2026-03-29 18:06:41 +03:30
}
export type CustomerLegalUpdateWithoutBusiness_activityInput = {
name?: Prisma.StringFieldUpdateOperationsInput | string
2026-03-29 18:06:41 +03:30
economic_code?: Prisma.StringFieldUpdateOperationsInput | string
registration_number?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
2026-03-29 18:06:41 +03:30
postal_code?: Prisma.StringFieldUpdateOperationsInput | string
customer?: Prisma.CustomerUpdateOneRequiredWithoutLegalNestedInput
2026-03-29 18:06:41 +03:30
}
export type CustomerLegalUncheckedUpdateWithoutBusiness_activityInput = {
name?: Prisma.StringFieldUpdateOperationsInput | string
2026-03-29 18:06:41 +03:30
economic_code?: Prisma.StringFieldUpdateOperationsInput | string
registration_number?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
2026-03-29 18:06:41 +03:30
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 CustomerLegalUncheckedUpdateManyWithoutBusiness_activityInput = {
name?: Prisma.StringFieldUpdateOperationsInput | string
2026-03-29 18:06:41 +03:30
economic_code?: Prisma.StringFieldUpdateOperationsInput | string
registration_number?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
2026-03-29 18:06:41 +03:30
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 CustomerLegalSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
name?: boolean
economic_code?: boolean
registration_number?: boolean
postal_code?: boolean
2026-04-08 18:15:44 +03:30
customer_id?: boolean
business_activity_id?: boolean
customer?: boolean | Prisma.CustomerDefaultArgs<ExtArgs>
business_activity?: boolean | Prisma.BusinessActivityDefaultArgs<ExtArgs>
}, ExtArgs["result"]["customerLegal"]>
export type CustomerLegalSelectScalar = {
name?: boolean
economic_code?: boolean
registration_number?: boolean
postal_code?: boolean
2026-04-08 18:15:44 +03:30
customer_id?: boolean
business_activity_id?: boolean
}
export type CustomerLegalOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"name" | "economic_code" | "registration_number" | "postal_code" | "customer_id" | "business_activity_id", ExtArgs["result"]["customerLegal"]>
export type CustomerLegalInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
customer?: boolean | Prisma.CustomerDefaultArgs<ExtArgs>
business_activity?: boolean | Prisma.BusinessActivityDefaultArgs<ExtArgs>
}
export type $CustomerLegalPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
name: "CustomerLegal"
objects: {
customer: Prisma.$CustomerPayload<ExtArgs>
business_activity: Prisma.$BusinessActivityPayload<ExtArgs>
}
scalars: runtime.Types.Extensions.GetPayloadResult<{
name: string
economic_code: string
registration_number: string | null
postal_code: string
2026-04-08 18:15:44 +03:30
customer_id: string
business_activity_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 })
*
* // Only select the `name`
* const customerLegalWithNameOnly = await prisma.customerLegal.findMany({ select: { name: true } })
*
*/
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>
business_activity<T extends Prisma.BusinessActivityDefaultArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.BusinessActivityDefaultArgs<ExtArgs>>): Prisma.Prisma__BusinessActivityClient<runtime.Types.Result.GetResult<Prisma.$BusinessActivityPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>
/**
* 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 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'>
readonly business_activity_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
2026-04-22 21:55:40 +03:30
/**
* {@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 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
}