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

1372 lines
50 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 `Partner` 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 Partner
*
*/
export type PartnerModel = runtime.Types.Result.DefaultSelection<Prisma.$PartnerPayload>
export type AggregatePartner = {
_count: PartnerCountAggregateOutputType | null
_min: PartnerMinAggregateOutputType | null
_max: PartnerMaxAggregateOutputType | null
}
export type PartnerMinAggregateOutputType = {
id: string | null
name: string | null
code: string | null
2026-03-16 00:33:40 +03:30
status: $Enums.PartnerStatus | null
2026-03-14 16:26:44 +03:30
created_at: Date | null
updated_at: Date | null
}
export type PartnerMaxAggregateOutputType = {
id: string | null
name: string | null
code: string | null
2026-03-16 00:33:40 +03:30
status: $Enums.PartnerStatus | null
2026-03-14 16:26:44 +03:30
created_at: Date | null
updated_at: Date | null
}
export type PartnerCountAggregateOutputType = {
id: number
name: number
code: number
2026-03-16 00:33:40 +03:30
status: number
2026-03-14 16:26:44 +03:30
created_at: number
updated_at: number
_all: number
}
export type PartnerMinAggregateInputType = {
id?: true
name?: true
code?: true
2026-03-16 00:33:40 +03:30
status?: true
2026-03-14 16:26:44 +03:30
created_at?: true
updated_at?: true
}
export type PartnerMaxAggregateInputType = {
id?: true
name?: true
code?: true
2026-03-16 00:33:40 +03:30
status?: true
2026-03-14 16:26:44 +03:30
created_at?: true
updated_at?: true
}
export type PartnerCountAggregateInputType = {
id?: true
name?: true
code?: true
2026-03-16 00:33:40 +03:30
status?: true
2026-03-14 16:26:44 +03:30
created_at?: true
updated_at?: true
_all?: true
}
export type PartnerAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Filter which Partner to aggregate.
*/
where?: Prisma.PartnerWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of Partners to fetch.
*/
orderBy?: Prisma.PartnerOrderByWithRelationInput | Prisma.PartnerOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the start position
*/
cursor?: Prisma.PartnerWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` Partners 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` Partners.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Count returned Partners
**/
_count?: true | PartnerCountAggregateInputType
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to find the minimum value
**/
_min?: PartnerMinAggregateInputType
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to find the maximum value
**/
_max?: PartnerMaxAggregateInputType
}
export type GetPartnerAggregateType<T extends PartnerAggregateArgs> = {
[P in keyof T & keyof AggregatePartner]: P extends '_count' | 'count'
? T[P] extends true
? number
: Prisma.GetScalarType<T[P], AggregatePartner[P]>
: Prisma.GetScalarType<T[P], AggregatePartner[P]>
}
export type PartnerGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
where?: Prisma.PartnerWhereInput
orderBy?: Prisma.PartnerOrderByWithAggregationInput | Prisma.PartnerOrderByWithAggregationInput[]
by: Prisma.PartnerScalarFieldEnum[] | Prisma.PartnerScalarFieldEnum
having?: Prisma.PartnerScalarWhereWithAggregatesInput
take?: number
skip?: number
_count?: PartnerCountAggregateInputType | true
_min?: PartnerMinAggregateInputType
_max?: PartnerMaxAggregateInputType
}
export type PartnerGroupByOutputType = {
id: string
name: string
2026-03-16 00:33:40 +03:30
code: string
status: $Enums.PartnerStatus
2026-03-14 16:26:44 +03:30
created_at: Date
updated_at: Date
_count: PartnerCountAggregateOutputType | null
_min: PartnerMinAggregateOutputType | null
_max: PartnerMaxAggregateOutputType | null
}
2026-04-22 21:55:40 +03:30
export type GetPartnerGroupByPayload<T extends PartnerGroupByArgs> = Prisma.PrismaPromise<
Array<
Prisma.PickEnumerable<PartnerGroupByOutputType, T['by']> &
{
[P in ((keyof T) & (keyof PartnerGroupByOutputType))]: P extends '_count'
? T[P] extends boolean
? number
: Prisma.GetScalarType<T[P], PartnerGroupByOutputType[P]>
: Prisma.GetScalarType<T[P], PartnerGroupByOutputType[P]>
}
>
>
export type PartnerWhereInput = {
AND?: Prisma.PartnerWhereInput | Prisma.PartnerWhereInput[]
OR?: Prisma.PartnerWhereInput[]
NOT?: Prisma.PartnerWhereInput | Prisma.PartnerWhereInput[]
id?: Prisma.StringFilter<"Partner"> | string
name?: Prisma.StringFilter<"Partner"> | string
2026-03-16 00:33:40 +03:30
code?: Prisma.StringFilter<"Partner"> | string
status?: Prisma.EnumPartnerStatusFilter<"Partner"> | $Enums.PartnerStatus
2026-03-14 16:26:44 +03:30
created_at?: Prisma.DateTimeFilter<"Partner"> | Date | string
updated_at?: Prisma.DateTimeFilter<"Partner"> | Date | string
partner_accounts?: Prisma.PartnerAccountListRelationFilter
chargedLicenseTransactions?: Prisma.ChargedLicenseTransactionsListRelationFilter
}
export type PartnerOrderByWithRelationInput = {
id?: Prisma.SortOrder
name?: Prisma.SortOrder
2026-03-16 00:33:40 +03:30
code?: Prisma.SortOrder
status?: Prisma.SortOrder
2026-03-14 16:26:44 +03:30
created_at?: Prisma.SortOrder
updated_at?: Prisma.SortOrder
partner_accounts?: Prisma.PartnerAccountOrderByRelationAggregateInput
chargedLicenseTransactions?: Prisma.ChargedLicenseTransactionsOrderByRelationAggregateInput
_relevance?: Prisma.PartnerOrderByRelevanceInput
}
export type PartnerWhereUniqueInput = Prisma.AtLeast<{
id?: string
2026-03-16 00:33:40 +03:30
code?: string
AND?: Prisma.PartnerWhereInput | Prisma.PartnerWhereInput[]
OR?: Prisma.PartnerWhereInput[]
NOT?: Prisma.PartnerWhereInput | Prisma.PartnerWhereInput[]
name?: Prisma.StringFilter<"Partner"> | string
2026-03-16 00:33:40 +03:30
status?: Prisma.EnumPartnerStatusFilter<"Partner"> | $Enums.PartnerStatus
2026-03-14 16:26:44 +03:30
created_at?: Prisma.DateTimeFilter<"Partner"> | Date | string
updated_at?: Prisma.DateTimeFilter<"Partner"> | Date | string
partner_accounts?: Prisma.PartnerAccountListRelationFilter
chargedLicenseTransactions?: Prisma.ChargedLicenseTransactionsListRelationFilter
2026-03-16 00:33:40 +03:30
}, "id" | "code">
export type PartnerOrderByWithAggregationInput = {
id?: Prisma.SortOrder
name?: Prisma.SortOrder
2026-03-16 00:33:40 +03:30
code?: Prisma.SortOrder
status?: Prisma.SortOrder
2026-03-14 16:26:44 +03:30
created_at?: Prisma.SortOrder
updated_at?: Prisma.SortOrder
_count?: Prisma.PartnerCountOrderByAggregateInput
_max?: Prisma.PartnerMaxOrderByAggregateInput
_min?: Prisma.PartnerMinOrderByAggregateInput
}
export type PartnerScalarWhereWithAggregatesInput = {
AND?: Prisma.PartnerScalarWhereWithAggregatesInput | Prisma.PartnerScalarWhereWithAggregatesInput[]
OR?: Prisma.PartnerScalarWhereWithAggregatesInput[]
NOT?: Prisma.PartnerScalarWhereWithAggregatesInput | Prisma.PartnerScalarWhereWithAggregatesInput[]
id?: Prisma.StringWithAggregatesFilter<"Partner"> | string
name?: Prisma.StringWithAggregatesFilter<"Partner"> | string
2026-03-16 00:33:40 +03:30
code?: Prisma.StringWithAggregatesFilter<"Partner"> | string
status?: Prisma.EnumPartnerStatusWithAggregatesFilter<"Partner"> | $Enums.PartnerStatus
2026-03-14 16:26:44 +03:30
created_at?: Prisma.DateTimeWithAggregatesFilter<"Partner"> | Date | string
updated_at?: Prisma.DateTimeWithAggregatesFilter<"Partner"> | Date | string
}
export type PartnerCreateInput = {
id?: string
name: string
2026-03-16 00:33:40 +03:30
code: string
status?: $Enums.PartnerStatus
2026-03-14 16:26:44 +03:30
created_at?: Date | string
updated_at?: Date | string
partner_accounts?: Prisma.PartnerAccountCreateNestedManyWithoutPartnerInput
chargedLicenseTransactions?: Prisma.ChargedLicenseTransactionsCreateNestedManyWithoutPartnerInput
}
export type PartnerUncheckedCreateInput = {
id?: string
name: string
2026-03-16 00:33:40 +03:30
code: string
status?: $Enums.PartnerStatus
2026-03-14 16:26:44 +03:30
created_at?: Date | string
updated_at?: Date | string
partner_accounts?: Prisma.PartnerAccountUncheckedCreateNestedManyWithoutPartnerInput
chargedLicenseTransactions?: Prisma.ChargedLicenseTransactionsUncheckedCreateNestedManyWithoutPartnerInput
}
export type PartnerUpdateInput = {
id?: Prisma.StringFieldUpdateOperationsInput | string
name?: Prisma.StringFieldUpdateOperationsInput | string
2026-03-16 00:33:40 +03:30
code?: Prisma.StringFieldUpdateOperationsInput | string
status?: Prisma.EnumPartnerStatusFieldUpdateOperationsInput | $Enums.PartnerStatus
2026-03-14 16:26:44 +03:30
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
partner_accounts?: Prisma.PartnerAccountUpdateManyWithoutPartnerNestedInput
chargedLicenseTransactions?: Prisma.ChargedLicenseTransactionsUpdateManyWithoutPartnerNestedInput
}
export type PartnerUncheckedUpdateInput = {
id?: Prisma.StringFieldUpdateOperationsInput | string
name?: Prisma.StringFieldUpdateOperationsInput | string
2026-03-16 00:33:40 +03:30
code?: Prisma.StringFieldUpdateOperationsInput | string
status?: Prisma.EnumPartnerStatusFieldUpdateOperationsInput | $Enums.PartnerStatus
2026-03-14 16:26:44 +03:30
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
partner_accounts?: Prisma.PartnerAccountUncheckedUpdateManyWithoutPartnerNestedInput
chargedLicenseTransactions?: Prisma.ChargedLicenseTransactionsUncheckedUpdateManyWithoutPartnerNestedInput
}
export type PartnerCreateManyInput = {
id?: string
name: string
2026-03-16 00:33:40 +03:30
code: string
status?: $Enums.PartnerStatus
2026-03-14 16:26:44 +03:30
created_at?: Date | string
updated_at?: Date | string
}
export type PartnerUpdateManyMutationInput = {
id?: Prisma.StringFieldUpdateOperationsInput | string
name?: Prisma.StringFieldUpdateOperationsInput | string
2026-03-16 00:33:40 +03:30
code?: Prisma.StringFieldUpdateOperationsInput | string
status?: Prisma.EnumPartnerStatusFieldUpdateOperationsInput | $Enums.PartnerStatus
2026-03-14 16:26:44 +03:30
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
}
export type PartnerUncheckedUpdateManyInput = {
id?: Prisma.StringFieldUpdateOperationsInput | string
name?: Prisma.StringFieldUpdateOperationsInput | string
2026-03-16 00:33:40 +03:30
code?: Prisma.StringFieldUpdateOperationsInput | string
status?: Prisma.EnumPartnerStatusFieldUpdateOperationsInput | $Enums.PartnerStatus
2026-03-14 16:26:44 +03:30
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
}
export type PartnerScalarRelationFilter = {
is?: Prisma.PartnerWhereInput
isNot?: Prisma.PartnerWhereInput
}
export type PartnerOrderByRelevanceInput = {
fields: Prisma.PartnerOrderByRelevanceFieldEnum | Prisma.PartnerOrderByRelevanceFieldEnum[]
sort: Prisma.SortOrder
search: string
}
export type PartnerCountOrderByAggregateInput = {
id?: Prisma.SortOrder
name?: Prisma.SortOrder
code?: Prisma.SortOrder
2026-03-16 00:33:40 +03:30
status?: Prisma.SortOrder
2026-03-14 16:26:44 +03:30
created_at?: Prisma.SortOrder
updated_at?: Prisma.SortOrder
}
export type PartnerMaxOrderByAggregateInput = {
id?: Prisma.SortOrder
name?: Prisma.SortOrder
code?: Prisma.SortOrder
2026-03-16 00:33:40 +03:30
status?: Prisma.SortOrder
2026-03-14 16:26:44 +03:30
created_at?: Prisma.SortOrder
updated_at?: Prisma.SortOrder
}
export type PartnerMinOrderByAggregateInput = {
id?: Prisma.SortOrder
name?: Prisma.SortOrder
code?: Prisma.SortOrder
2026-03-16 00:33:40 +03:30
status?: Prisma.SortOrder
2026-03-14 16:26:44 +03:30
created_at?: Prisma.SortOrder
updated_at?: Prisma.SortOrder
}
export type PartnerCreateNestedOneWithoutChargedLicenseTransactionsInput = {
create?: Prisma.XOR<Prisma.PartnerCreateWithoutChargedLicenseTransactionsInput, Prisma.PartnerUncheckedCreateWithoutChargedLicenseTransactionsInput>
connectOrCreate?: Prisma.PartnerCreateOrConnectWithoutChargedLicenseTransactionsInput
connect?: Prisma.PartnerWhereUniqueInput
}
export type PartnerUpdateOneRequiredWithoutChargedLicenseTransactionsNestedInput = {
create?: Prisma.XOR<Prisma.PartnerCreateWithoutChargedLicenseTransactionsInput, Prisma.PartnerUncheckedCreateWithoutChargedLicenseTransactionsInput>
connectOrCreate?: Prisma.PartnerCreateOrConnectWithoutChargedLicenseTransactionsInput
upsert?: Prisma.PartnerUpsertWithoutChargedLicenseTransactionsInput
connect?: Prisma.PartnerWhereUniqueInput
update?: Prisma.XOR<Prisma.XOR<Prisma.PartnerUpdateToOneWithWhereWithoutChargedLicenseTransactionsInput, Prisma.PartnerUpdateWithoutChargedLicenseTransactionsInput>, Prisma.PartnerUncheckedUpdateWithoutChargedLicenseTransactionsInput>
}
export type PartnerCreateNestedOneWithoutPartner_accountsInput = {
create?: Prisma.XOR<Prisma.PartnerCreateWithoutPartner_accountsInput, Prisma.PartnerUncheckedCreateWithoutPartner_accountsInput>
connectOrCreate?: Prisma.PartnerCreateOrConnectWithoutPartner_accountsInput
connect?: Prisma.PartnerWhereUniqueInput
}
export type PartnerUpdateOneRequiredWithoutPartner_accountsNestedInput = {
create?: Prisma.XOR<Prisma.PartnerCreateWithoutPartner_accountsInput, Prisma.PartnerUncheckedCreateWithoutPartner_accountsInput>
connectOrCreate?: Prisma.PartnerCreateOrConnectWithoutPartner_accountsInput
upsert?: Prisma.PartnerUpsertWithoutPartner_accountsInput
connect?: Prisma.PartnerWhereUniqueInput
update?: Prisma.XOR<Prisma.XOR<Prisma.PartnerUpdateToOneWithWhereWithoutPartner_accountsInput, Prisma.PartnerUpdateWithoutPartner_accountsInput>, Prisma.PartnerUncheckedUpdateWithoutPartner_accountsInput>
}
2026-03-16 00:33:40 +03:30
export type EnumPartnerStatusFieldUpdateOperationsInput = {
set?: $Enums.PartnerStatus
}
export type PartnerCreateWithoutChargedLicenseTransactionsInput = {
id?: string
name: string
2026-03-16 00:33:40 +03:30
code: string
status?: $Enums.PartnerStatus
2026-03-14 16:26:44 +03:30
created_at?: Date | string
updated_at?: Date | string
partner_accounts?: Prisma.PartnerAccountCreateNestedManyWithoutPartnerInput
}
export type PartnerUncheckedCreateWithoutChargedLicenseTransactionsInput = {
id?: string
name: string
2026-03-16 00:33:40 +03:30
code: string
status?: $Enums.PartnerStatus
2026-03-14 16:26:44 +03:30
created_at?: Date | string
updated_at?: Date | string
partner_accounts?: Prisma.PartnerAccountUncheckedCreateNestedManyWithoutPartnerInput
}
export type PartnerCreateOrConnectWithoutChargedLicenseTransactionsInput = {
where: Prisma.PartnerWhereUniqueInput
create: Prisma.XOR<Prisma.PartnerCreateWithoutChargedLicenseTransactionsInput, Prisma.PartnerUncheckedCreateWithoutChargedLicenseTransactionsInput>
}
export type PartnerUpsertWithoutChargedLicenseTransactionsInput = {
update: Prisma.XOR<Prisma.PartnerUpdateWithoutChargedLicenseTransactionsInput, Prisma.PartnerUncheckedUpdateWithoutChargedLicenseTransactionsInput>
create: Prisma.XOR<Prisma.PartnerCreateWithoutChargedLicenseTransactionsInput, Prisma.PartnerUncheckedCreateWithoutChargedLicenseTransactionsInput>
where?: Prisma.PartnerWhereInput
}
export type PartnerUpdateToOneWithWhereWithoutChargedLicenseTransactionsInput = {
where?: Prisma.PartnerWhereInput
data: Prisma.XOR<Prisma.PartnerUpdateWithoutChargedLicenseTransactionsInput, Prisma.PartnerUncheckedUpdateWithoutChargedLicenseTransactionsInput>
}
export type PartnerUpdateWithoutChargedLicenseTransactionsInput = {
id?: Prisma.StringFieldUpdateOperationsInput | string
name?: Prisma.StringFieldUpdateOperationsInput | string
2026-03-16 00:33:40 +03:30
code?: Prisma.StringFieldUpdateOperationsInput | string
status?: Prisma.EnumPartnerStatusFieldUpdateOperationsInput | $Enums.PartnerStatus
2026-03-14 16:26:44 +03:30
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
partner_accounts?: Prisma.PartnerAccountUpdateManyWithoutPartnerNestedInput
}
export type PartnerUncheckedUpdateWithoutChargedLicenseTransactionsInput = {
id?: Prisma.StringFieldUpdateOperationsInput | string
name?: Prisma.StringFieldUpdateOperationsInput | string
2026-03-16 00:33:40 +03:30
code?: Prisma.StringFieldUpdateOperationsInput | string
status?: Prisma.EnumPartnerStatusFieldUpdateOperationsInput | $Enums.PartnerStatus
2026-03-14 16:26:44 +03:30
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
partner_accounts?: Prisma.PartnerAccountUncheckedUpdateManyWithoutPartnerNestedInput
}
export type PartnerCreateWithoutPartner_accountsInput = {
id?: string
name: string
2026-03-16 00:33:40 +03:30
code: string
status?: $Enums.PartnerStatus
2026-03-14 16:26:44 +03:30
created_at?: Date | string
updated_at?: Date | string
chargedLicenseTransactions?: Prisma.ChargedLicenseTransactionsCreateNestedManyWithoutPartnerInput
}
export type PartnerUncheckedCreateWithoutPartner_accountsInput = {
id?: string
name: string
2026-03-16 00:33:40 +03:30
code: string
status?: $Enums.PartnerStatus
2026-03-14 16:26:44 +03:30
created_at?: Date | string
updated_at?: Date | string
chargedLicenseTransactions?: Prisma.ChargedLicenseTransactionsUncheckedCreateNestedManyWithoutPartnerInput
}
export type PartnerCreateOrConnectWithoutPartner_accountsInput = {
where: Prisma.PartnerWhereUniqueInput
create: Prisma.XOR<Prisma.PartnerCreateWithoutPartner_accountsInput, Prisma.PartnerUncheckedCreateWithoutPartner_accountsInput>
}
export type PartnerUpsertWithoutPartner_accountsInput = {
update: Prisma.XOR<Prisma.PartnerUpdateWithoutPartner_accountsInput, Prisma.PartnerUncheckedUpdateWithoutPartner_accountsInput>
create: Prisma.XOR<Prisma.PartnerCreateWithoutPartner_accountsInput, Prisma.PartnerUncheckedCreateWithoutPartner_accountsInput>
where?: Prisma.PartnerWhereInput
}
export type PartnerUpdateToOneWithWhereWithoutPartner_accountsInput = {
where?: Prisma.PartnerWhereInput
data: Prisma.XOR<Prisma.PartnerUpdateWithoutPartner_accountsInput, Prisma.PartnerUncheckedUpdateWithoutPartner_accountsInput>
}
export type PartnerUpdateWithoutPartner_accountsInput = {
id?: Prisma.StringFieldUpdateOperationsInput | string
name?: Prisma.StringFieldUpdateOperationsInput | string
2026-03-16 00:33:40 +03:30
code?: Prisma.StringFieldUpdateOperationsInput | string
status?: Prisma.EnumPartnerStatusFieldUpdateOperationsInput | $Enums.PartnerStatus
2026-03-14 16:26:44 +03:30
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
chargedLicenseTransactions?: Prisma.ChargedLicenseTransactionsUpdateManyWithoutPartnerNestedInput
}
export type PartnerUncheckedUpdateWithoutPartner_accountsInput = {
id?: Prisma.StringFieldUpdateOperationsInput | string
name?: Prisma.StringFieldUpdateOperationsInput | string
2026-03-16 00:33:40 +03:30
code?: Prisma.StringFieldUpdateOperationsInput | string
status?: Prisma.EnumPartnerStatusFieldUpdateOperationsInput | $Enums.PartnerStatus
2026-03-14 16:26:44 +03:30
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
chargedLicenseTransactions?: Prisma.ChargedLicenseTransactionsUncheckedUpdateManyWithoutPartnerNestedInput
}
/**
* Count Type PartnerCountOutputType
*/
export type PartnerCountOutputType = {
partner_accounts: number
chargedLicenseTransactions: number
}
export type PartnerCountOutputTypeSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
partner_accounts?: boolean | PartnerCountOutputTypeCountPartner_accountsArgs
chargedLicenseTransactions?: boolean | PartnerCountOutputTypeCountChargedLicenseTransactionsArgs
}
/**
* PartnerCountOutputType without action
*/
export type PartnerCountOutputTypeDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the PartnerCountOutputType
*/
select?: Prisma.PartnerCountOutputTypeSelect<ExtArgs> | null
}
/**
* PartnerCountOutputType without action
*/
export type PartnerCountOutputTypeCountPartner_accountsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
where?: Prisma.PartnerAccountWhereInput
}
/**
* PartnerCountOutputType without action
*/
export type PartnerCountOutputTypeCountChargedLicenseTransactionsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
where?: Prisma.ChargedLicenseTransactionsWhereInput
}
export type PartnerSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
id?: boolean
name?: boolean
code?: boolean
2026-03-16 00:33:40 +03:30
status?: boolean
2026-03-14 16:26:44 +03:30
created_at?: boolean
updated_at?: boolean
partner_accounts?: boolean | Prisma.Partner$partner_accountsArgs<ExtArgs>
chargedLicenseTransactions?: boolean | Prisma.Partner$chargedLicenseTransactionsArgs<ExtArgs>
_count?: boolean | Prisma.PartnerCountOutputTypeDefaultArgs<ExtArgs>
}, ExtArgs["result"]["partner"]>
export type PartnerSelectScalar = {
id?: boolean
name?: boolean
code?: boolean
2026-03-16 00:33:40 +03:30
status?: boolean
2026-03-14 16:26:44 +03:30
created_at?: boolean
updated_at?: boolean
}
export type PartnerOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "name" | "code" | "status" | "created_at" | "updated_at", ExtArgs["result"]["partner"]>
export type PartnerInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
partner_accounts?: boolean | Prisma.Partner$partner_accountsArgs<ExtArgs>
chargedLicenseTransactions?: boolean | Prisma.Partner$chargedLicenseTransactionsArgs<ExtArgs>
_count?: boolean | Prisma.PartnerCountOutputTypeDefaultArgs<ExtArgs>
}
export type $PartnerPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
name: "Partner"
objects: {
partner_accounts: Prisma.$PartnerAccountPayload<ExtArgs>[]
chargedLicenseTransactions: Prisma.$ChargedLicenseTransactionsPayload<ExtArgs>[]
}
scalars: runtime.Types.Extensions.GetPayloadResult<{
id: string
name: string
2026-03-16 00:33:40 +03:30
code: string
status: $Enums.PartnerStatus
2026-03-14 16:26:44 +03:30
created_at: Date
updated_at: Date
}, ExtArgs["result"]["partner"]>
composites: {}
}
export type PartnerGetPayload<S extends boolean | null | undefined | PartnerDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$PartnerPayload, S>
export type PartnerCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> =
Omit<PartnerFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
select?: PartnerCountAggregateInputType | true
}
export interface PartnerDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
[K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['Partner'], meta: { name: 'Partner' } }
/**
* Find zero or one Partner that matches the filter.
* @param {PartnerFindUniqueArgs} args - Arguments to find a Partner
* @example
* // Get one Partner
* const partner = await prisma.partner.findUnique({
* where: {
* // ... provide filter here
* }
* })
*/
findUnique<T extends PartnerFindUniqueArgs>(args: Prisma.SelectSubset<T, PartnerFindUniqueArgs<ExtArgs>>): Prisma.Prisma__PartnerClient<runtime.Types.Result.GetResult<Prisma.$PartnerPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
/**
* Find one Partner that matches the filter or throw an error with `error.code='P2025'`
* if no matches were found.
* @param {PartnerFindUniqueOrThrowArgs} args - Arguments to find a Partner
* @example
* // Get one Partner
* const partner = await prisma.partner.findUniqueOrThrow({
* where: {
* // ... provide filter here
* }
* })
*/
findUniqueOrThrow<T extends PartnerFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, PartnerFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__PartnerClient<runtime.Types.Result.GetResult<Prisma.$PartnerPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Find the first Partner 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 {PartnerFindFirstArgs} args - Arguments to find a Partner
* @example
* // Get one Partner
* const partner = await prisma.partner.findFirst({
* where: {
* // ... provide filter here
* }
* })
*/
findFirst<T extends PartnerFindFirstArgs>(args?: Prisma.SelectSubset<T, PartnerFindFirstArgs<ExtArgs>>): Prisma.Prisma__PartnerClient<runtime.Types.Result.GetResult<Prisma.$PartnerPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
/**
* Find the first Partner 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 {PartnerFindFirstOrThrowArgs} args - Arguments to find a Partner
* @example
* // Get one Partner
* const partner = await prisma.partner.findFirstOrThrow({
* where: {
* // ... provide filter here
* }
* })
*/
findFirstOrThrow<T extends PartnerFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, PartnerFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__PartnerClient<runtime.Types.Result.GetResult<Prisma.$PartnerPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Find zero or more Partners 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 {PartnerFindManyArgs} args - Arguments to filter and select certain fields only.
* @example
* // Get all Partners
* const partners = await prisma.partner.findMany()
*
* // Get first 10 Partners
* const partners = await prisma.partner.findMany({ take: 10 })
*
* // Only select the `id`
* const partnerWithIdOnly = await prisma.partner.findMany({ select: { id: true } })
*
*/
findMany<T extends PartnerFindManyArgs>(args?: Prisma.SelectSubset<T, PartnerFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$PartnerPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
/**
* Create a Partner.
* @param {PartnerCreateArgs} args - Arguments to create a Partner.
* @example
* // Create one Partner
* const Partner = await prisma.partner.create({
* data: {
* // ... data to create a Partner
* }
* })
*
*/
create<T extends PartnerCreateArgs>(args: Prisma.SelectSubset<T, PartnerCreateArgs<ExtArgs>>): Prisma.Prisma__PartnerClient<runtime.Types.Result.GetResult<Prisma.$PartnerPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Create many Partners.
* @param {PartnerCreateManyArgs} args - Arguments to create many Partners.
* @example
* // Create many Partners
* const partner = await prisma.partner.createMany({
* data: [
* // ... provide data here
* ]
* })
*
*/
createMany<T extends PartnerCreateManyArgs>(args?: Prisma.SelectSubset<T, PartnerCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
/**
* Delete a Partner.
* @param {PartnerDeleteArgs} args - Arguments to delete one Partner.
* @example
* // Delete one Partner
* const Partner = await prisma.partner.delete({
* where: {
* // ... filter to delete one Partner
* }
* })
*
*/
delete<T extends PartnerDeleteArgs>(args: Prisma.SelectSubset<T, PartnerDeleteArgs<ExtArgs>>): Prisma.Prisma__PartnerClient<runtime.Types.Result.GetResult<Prisma.$PartnerPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Update one Partner.
* @param {PartnerUpdateArgs} args - Arguments to update one Partner.
* @example
* // Update one Partner
* const partner = await prisma.partner.update({
* where: {
* // ... provide filter here
* },
* data: {
* // ... provide data here
* }
* })
*
*/
update<T extends PartnerUpdateArgs>(args: Prisma.SelectSubset<T, PartnerUpdateArgs<ExtArgs>>): Prisma.Prisma__PartnerClient<runtime.Types.Result.GetResult<Prisma.$PartnerPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Delete zero or more Partners.
* @param {PartnerDeleteManyArgs} args - Arguments to filter Partners to delete.
* @example
* // Delete a few Partners
* const { count } = await prisma.partner.deleteMany({
* where: {
* // ... provide filter here
* }
* })
*
*/
deleteMany<T extends PartnerDeleteManyArgs>(args?: Prisma.SelectSubset<T, PartnerDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
/**
* Update zero or more Partners.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {PartnerUpdateManyArgs} args - Arguments to update one or more rows.
* @example
* // Update many Partners
* const partner = await prisma.partner.updateMany({
* where: {
* // ... provide filter here
* },
* data: {
* // ... provide data here
* }
* })
*
*/
updateMany<T extends PartnerUpdateManyArgs>(args: Prisma.SelectSubset<T, PartnerUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
/**
* Create or update one Partner.
* @param {PartnerUpsertArgs} args - Arguments to update or create a Partner.
* @example
* // Update or create a Partner
* const partner = await prisma.partner.upsert({
* create: {
* // ... data to create a Partner
* },
* update: {
* // ... in case it already exists, update
* },
* where: {
* // ... the filter for the Partner we want to update
* }
* })
*/
upsert<T extends PartnerUpsertArgs>(args: Prisma.SelectSubset<T, PartnerUpsertArgs<ExtArgs>>): Prisma.Prisma__PartnerClient<runtime.Types.Result.GetResult<Prisma.$PartnerPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Count the number of Partners.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {PartnerCountArgs} args - Arguments to filter Partners to count.
* @example
* // Count the number of Partners
* const count = await prisma.partner.count({
* where: {
* // ... the filter for the Partners we want to count
* }
* })
**/
count<T extends PartnerCountArgs>(
args?: Prisma.Subset<T, PartnerCountArgs>,
): Prisma.PrismaPromise<
T extends runtime.Types.Utils.Record<'select', any>
? T['select'] extends true
? number
: Prisma.GetScalarType<T['select'], PartnerCountAggregateOutputType>
: number
>
/**
* Allows you to perform aggregations operations on a Partner.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {PartnerAggregateArgs} 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 PartnerAggregateArgs>(args: Prisma.Subset<T, PartnerAggregateArgs>): Prisma.PrismaPromise<GetPartnerAggregateType<T>>
/**
* Group by Partner.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {PartnerGroupByArgs} 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 PartnerGroupByArgs,
HasSelectOrTake extends Prisma.Or<
Prisma.Extends<'skip', Prisma.Keys<T>>,
Prisma.Extends<'take', Prisma.Keys<T>>
>,
OrderByArg extends Prisma.True extends HasSelectOrTake
? { orderBy: PartnerGroupByArgs['orderBy'] }
: { orderBy?: PartnerGroupByArgs['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, PartnerGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetPartnerGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
/**
* Fields of the Partner model
*/
readonly fields: PartnerFieldRefs;
}
/**
* The delegate class that acts as a "Promise-like" for Partner.
* 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__PartnerClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
readonly [Symbol.toStringTag]: "PrismaPromise"
partner_accounts<T extends Prisma.Partner$partner_accountsArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Partner$partner_accountsArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$PartnerAccountPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
chargedLicenseTransactions<T extends Prisma.Partner$chargedLicenseTransactionsArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Partner$chargedLicenseTransactionsArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$ChargedLicenseTransactionsPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
/**
* Attaches callbacks for the resolution and/or rejection of the Promise.
* @param onfulfilled The callback to execute when the Promise is resolved.
* @param onrejected The callback to execute when the Promise is rejected.
* @returns A Promise for the completion of which ever callback is executed.
*/
then<TResult1 = T, TResult2 = never>(onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined | null): 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 Partner model
*/
export interface PartnerFieldRefs {
readonly id: Prisma.FieldRef<"Partner", 'String'>
readonly name: Prisma.FieldRef<"Partner", 'String'>
readonly code: Prisma.FieldRef<"Partner", 'String'>
2026-03-16 00:33:40 +03:30
readonly status: Prisma.FieldRef<"Partner", 'PartnerStatus'>
2026-03-14 16:26:44 +03:30
readonly created_at: Prisma.FieldRef<"Partner", 'DateTime'>
readonly updated_at: Prisma.FieldRef<"Partner", 'DateTime'>
}
// Custom InputTypes
/**
* Partner findUnique
*/
export type PartnerFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the Partner
*/
select?: Prisma.PartnerSelect<ExtArgs> | null
/**
* Omit specific fields from the Partner
*/
omit?: Prisma.PartnerOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.PartnerInclude<ExtArgs> | null
/**
* Filter, which Partner to fetch.
*/
where: Prisma.PartnerWhereUniqueInput
}
/**
* Partner findUniqueOrThrow
*/
export type PartnerFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the Partner
*/
select?: Prisma.PartnerSelect<ExtArgs> | null
/**
* Omit specific fields from the Partner
*/
omit?: Prisma.PartnerOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.PartnerInclude<ExtArgs> | null
/**
* Filter, which Partner to fetch.
*/
where: Prisma.PartnerWhereUniqueInput
}
/**
* Partner findFirst
*/
export type PartnerFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the Partner
*/
select?: Prisma.PartnerSelect<ExtArgs> | null
/**
* Omit specific fields from the Partner
*/
omit?: Prisma.PartnerOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.PartnerInclude<ExtArgs> | null
/**
* Filter, which Partner to fetch.
*/
where?: Prisma.PartnerWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of Partners to fetch.
*/
orderBy?: Prisma.PartnerOrderByWithRelationInput | Prisma.PartnerOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the position for searching for Partners.
*/
cursor?: Prisma.PartnerWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` Partners 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` Partners.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
*
* Filter by unique combinations of Partners.
*/
distinct?: Prisma.PartnerScalarFieldEnum | Prisma.PartnerScalarFieldEnum[]
}
/**
* Partner findFirstOrThrow
*/
export type PartnerFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the Partner
*/
select?: Prisma.PartnerSelect<ExtArgs> | null
/**
* Omit specific fields from the Partner
*/
omit?: Prisma.PartnerOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.PartnerInclude<ExtArgs> | null
/**
* Filter, which Partner to fetch.
*/
where?: Prisma.PartnerWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of Partners to fetch.
*/
orderBy?: Prisma.PartnerOrderByWithRelationInput | Prisma.PartnerOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the position for searching for Partners.
*/
cursor?: Prisma.PartnerWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` Partners 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` Partners.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
*
* Filter by unique combinations of Partners.
*/
distinct?: Prisma.PartnerScalarFieldEnum | Prisma.PartnerScalarFieldEnum[]
}
/**
* Partner findMany
*/
export type PartnerFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the Partner
*/
select?: Prisma.PartnerSelect<ExtArgs> | null
/**
* Omit specific fields from the Partner
*/
omit?: Prisma.PartnerOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.PartnerInclude<ExtArgs> | null
/**
* Filter, which Partners to fetch.
*/
where?: Prisma.PartnerWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of Partners to fetch.
*/
orderBy?: Prisma.PartnerOrderByWithRelationInput | Prisma.PartnerOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the position for listing Partners.
*/
cursor?: Prisma.PartnerWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` Partners 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` Partners.
*/
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 Partners.
*/
distinct?: Prisma.PartnerScalarFieldEnum | Prisma.PartnerScalarFieldEnum[]
}
/**
* Partner create
*/
export type PartnerCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the Partner
*/
select?: Prisma.PartnerSelect<ExtArgs> | null
/**
* Omit specific fields from the Partner
*/
omit?: Prisma.PartnerOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.PartnerInclude<ExtArgs> | null
/**
* The data needed to create a Partner.
*/
data: Prisma.XOR<Prisma.PartnerCreateInput, Prisma.PartnerUncheckedCreateInput>
}
/**
* Partner createMany
*/
export type PartnerCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* The data used to create many Partners.
*/
data: Prisma.PartnerCreateManyInput | Prisma.PartnerCreateManyInput[]
skipDuplicates?: boolean
}
/**
* Partner update
*/
export type PartnerUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the Partner
*/
select?: Prisma.PartnerSelect<ExtArgs> | null
/**
* Omit specific fields from the Partner
*/
omit?: Prisma.PartnerOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.PartnerInclude<ExtArgs> | null
/**
* The data needed to update a Partner.
*/
data: Prisma.XOR<Prisma.PartnerUpdateInput, Prisma.PartnerUncheckedUpdateInput>
/**
* Choose, which Partner to update.
*/
where: Prisma.PartnerWhereUniqueInput
}
/**
* Partner updateMany
*/
export type PartnerUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* The data used to update Partners.
*/
data: Prisma.XOR<Prisma.PartnerUpdateManyMutationInput, Prisma.PartnerUncheckedUpdateManyInput>
/**
* Filter which Partners to update
*/
where?: Prisma.PartnerWhereInput
/**
* Limit how many Partners to update.
*/
limit?: number
}
/**
* Partner upsert
*/
export type PartnerUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the Partner
*/
select?: Prisma.PartnerSelect<ExtArgs> | null
/**
* Omit specific fields from the Partner
*/
omit?: Prisma.PartnerOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.PartnerInclude<ExtArgs> | null
/**
* The filter to search for the Partner to update in case it exists.
*/
where: Prisma.PartnerWhereUniqueInput
/**
* In case the Partner found by the `where` argument doesn't exist, create a new Partner with this data.
*/
create: Prisma.XOR<Prisma.PartnerCreateInput, Prisma.PartnerUncheckedCreateInput>
/**
* In case the Partner was found with the provided `where` argument, update it with this data.
*/
update: Prisma.XOR<Prisma.PartnerUpdateInput, Prisma.PartnerUncheckedUpdateInput>
}
/**
* Partner delete
*/
export type PartnerDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the Partner
*/
select?: Prisma.PartnerSelect<ExtArgs> | null
/**
* Omit specific fields from the Partner
*/
omit?: Prisma.PartnerOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.PartnerInclude<ExtArgs> | null
/**
* Filter which Partner to delete.
*/
where: Prisma.PartnerWhereUniqueInput
}
/**
* Partner deleteMany
*/
export type PartnerDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Filter which Partners to delete
*/
where?: Prisma.PartnerWhereInput
/**
* Limit how many Partners to delete.
*/
limit?: number
}
/**
* Partner.partner_accounts
*/
export type Partner$partner_accountsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the PartnerAccount
*/
select?: Prisma.PartnerAccountSelect<ExtArgs> | null
/**
* Omit specific fields from the PartnerAccount
*/
omit?: Prisma.PartnerAccountOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.PartnerAccountInclude<ExtArgs> | null
where?: Prisma.PartnerAccountWhereInput
orderBy?: Prisma.PartnerAccountOrderByWithRelationInput | Prisma.PartnerAccountOrderByWithRelationInput[]
cursor?: Prisma.PartnerAccountWhereUniqueInput
take?: number
skip?: number
distinct?: Prisma.PartnerAccountScalarFieldEnum | Prisma.PartnerAccountScalarFieldEnum[]
}
/**
* Partner.chargedLicenseTransactions
*/
export type Partner$chargedLicenseTransactionsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the ChargedLicenseTransactions
*/
select?: Prisma.ChargedLicenseTransactionsSelect<ExtArgs> | null
/**
* Omit specific fields from the ChargedLicenseTransactions
*/
omit?: Prisma.ChargedLicenseTransactionsOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.ChargedLicenseTransactionsInclude<ExtArgs> | null
where?: Prisma.ChargedLicenseTransactionsWhereInput
orderBy?: Prisma.ChargedLicenseTransactionsOrderByWithRelationInput | Prisma.ChargedLicenseTransactionsOrderByWithRelationInput[]
cursor?: Prisma.ChargedLicenseTransactionsWhereUniqueInput
take?: number
skip?: number
distinct?: Prisma.ChargedLicenseTransactionsScalarFieldEnum | Prisma.ChargedLicenseTransactionsScalarFieldEnum[]
}
/**
* Partner without action
*/
export type PartnerDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the Partner
*/
select?: Prisma.PartnerSelect<ExtArgs> | null
/**
* Omit specific fields from the Partner
*/
omit?: Prisma.PartnerOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.PartnerInclude<ExtArgs> | null
}