2026-03-07 11:25:11 +03:30
|
|
|
|
|
|
|
|
/* !!! This is code generated by Prisma. Do not edit directly. !!! */
|
|
|
|
|
/* eslint-disable */
|
|
|
|
|
// biome-ignore-all lint: generated file
|
|
|
|
|
// @ts-nocheck
|
|
|
|
|
/*
|
|
|
|
|
* This file exports the `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
|
2026-03-07 11:25:11 +03:30
|
|
|
}
|
|
|
|
|
|
|
|
|
|
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
|
2026-03-07 11:25:11 +03:30
|
|
|
}
|
|
|
|
|
|
|
|
|
|
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
|
2026-03-07 11:25:11 +03:30
|
|
|
_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
|
2026-03-07 11:25:11 +03:30
|
|
|
}
|
|
|
|
|
|
|
|
|
|
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
|
2026-03-07 11:25:11 +03:30
|
|
|
}
|
|
|
|
|
|
|
|
|
|
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
|
2026-03-07 11:25:11 +03:30
|
|
|
_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
|
2026-03-07 11:25:11 +03:30
|
|
|
_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<
|
2026-03-07 11:25:11 +03:30
|
|
|
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
|
2026-04-11 14:47:05 +03:30
|
|
|
partner_accounts?: Prisma.PartnerAccountListRelationFilter
|
2026-04-16 22:19:20 +03:30
|
|
|
chargedLicenseTransactions?: Prisma.ChargedLicenseTransactionsListRelationFilter
|
2026-03-07 11:25:11 +03:30
|
|
|
}
|
|
|
|
|
|
|
|
|
|
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
|
2026-04-11 14:47:05 +03:30
|
|
|
partner_accounts?: Prisma.PartnerAccountOrderByRelationAggregateInput
|
2026-04-16 22:19:20 +03:30
|
|
|
chargedLicenseTransactions?: Prisma.ChargedLicenseTransactionsOrderByRelationAggregateInput
|
2026-03-07 11:25:11 +03:30
|
|
|
_relevance?: Prisma.PartnerOrderByRelevanceInput
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type PartnerWhereUniqueInput = Prisma.AtLeast<{
|
|
|
|
|
id?: string
|
2026-03-16 00:33:40 +03:30
|
|
|
code?: string
|
2026-03-07 11:25:11 +03:30
|
|
|
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
|
2026-04-11 14:47:05 +03:30
|
|
|
partner_accounts?: Prisma.PartnerAccountListRelationFilter
|
2026-04-16 22:19:20 +03:30
|
|
|
chargedLicenseTransactions?: Prisma.ChargedLicenseTransactionsListRelationFilter
|
2026-03-16 00:33:40 +03:30
|
|
|
}, "id" | "code">
|
2026-03-07 11:25:11 +03:30
|
|
|
|
|
|
|
|
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
|
2026-03-07 11:25:11 +03:30
|
|
|
_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
|
2026-03-07 11:25:11 +03:30
|
|
|
}
|
|
|
|
|
|
|
|
|
|
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
|
2026-04-11 14:47:05 +03:30
|
|
|
partner_accounts?: Prisma.PartnerAccountCreateNestedManyWithoutPartnerInput
|
2026-04-16 22:19:20 +03:30
|
|
|
chargedLicenseTransactions?: Prisma.ChargedLicenseTransactionsCreateNestedManyWithoutPartnerInput
|
2026-03-07 11:25:11 +03:30
|
|
|
}
|
|
|
|
|
|
|
|
|
|
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
|
2026-04-11 14:47:05 +03:30
|
|
|
partner_accounts?: Prisma.PartnerAccountUncheckedCreateNestedManyWithoutPartnerInput
|
2026-04-16 22:19:20 +03:30
|
|
|
chargedLicenseTransactions?: Prisma.ChargedLicenseTransactionsUncheckedCreateNestedManyWithoutPartnerInput
|
2026-03-07 11:25:11 +03:30
|
|
|
}
|
|
|
|
|
|
|
|
|
|
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
|
2026-04-11 14:47:05 +03:30
|
|
|
partner_accounts?: Prisma.PartnerAccountUpdateManyWithoutPartnerNestedInput
|
2026-04-16 22:19:20 +03:30
|
|
|
chargedLicenseTransactions?: Prisma.ChargedLicenseTransactionsUpdateManyWithoutPartnerNestedInput
|
2026-03-07 11:25:11 +03:30
|
|
|
}
|
|
|
|
|
|
|
|
|
|
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
|
2026-04-11 14:47:05 +03:30
|
|
|
partner_accounts?: Prisma.PartnerAccountUncheckedUpdateManyWithoutPartnerNestedInput
|
2026-04-16 22:19:20 +03:30
|
|
|
chargedLicenseTransactions?: Prisma.ChargedLicenseTransactionsUncheckedUpdateManyWithoutPartnerNestedInput
|
2026-03-07 11:25:11 +03:30
|
|
|
}
|
|
|
|
|
|
|
|
|
|
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
|
2026-03-07 11:25:11 +03:30
|
|
|
}
|
|
|
|
|
|
|
|
|
|
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
|
2026-03-07 11:25:11 +03:30
|
|
|
}
|
|
|
|
|
|
|
|
|
|
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
|
2026-03-07 11:25:11 +03:30
|
|
|
}
|
|
|
|
|
|
2026-04-11 14:47:05 +03:30
|
|
|
export type PartnerScalarRelationFilter = {
|
|
|
|
|
is?: Prisma.PartnerWhereInput
|
|
|
|
|
isNot?: Prisma.PartnerWhereInput
|
|
|
|
|
}
|
|
|
|
|
|
2026-03-07 11:25:11 +03:30
|
|
|
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
|
|
|
|
|
}
|
|
|
|
|
|
2026-03-07 11:25:11 +03:30
|
|
|
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
|
2026-03-07 11:25:11 +03:30
|
|
|
}
|
|
|
|
|
|
|
|
|
|
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
|
|
|
|
|
}
|
|
|
|
|
|
2026-04-16 22:19:20 +03:30
|
|
|
export type PartnerCreateNestedOneWithoutChargedLicenseTransactionsInput = {
|
|
|
|
|
create?: Prisma.XOR<Prisma.PartnerCreateWithoutChargedLicenseTransactionsInput, Prisma.PartnerUncheckedCreateWithoutChargedLicenseTransactionsInput>
|
|
|
|
|
connectOrCreate?: Prisma.PartnerCreateOrConnectWithoutChargedLicenseTransactionsInput
|
2026-03-07 11:25:11 +03:30
|
|
|
connect?: Prisma.PartnerWhereUniqueInput
|
|
|
|
|
}
|
|
|
|
|
|
2026-04-16 22:19:20 +03:30
|
|
|
export type PartnerUpdateOneRequiredWithoutChargedLicenseTransactionsNestedInput = {
|
|
|
|
|
create?: Prisma.XOR<Prisma.PartnerCreateWithoutChargedLicenseTransactionsInput, Prisma.PartnerUncheckedCreateWithoutChargedLicenseTransactionsInput>
|
|
|
|
|
connectOrCreate?: Prisma.PartnerCreateOrConnectWithoutChargedLicenseTransactionsInput
|
|
|
|
|
upsert?: Prisma.PartnerUpsertWithoutChargedLicenseTransactionsInput
|
2026-03-07 11:25:11 +03:30
|
|
|
connect?: Prisma.PartnerWhereUniqueInput
|
2026-04-16 22:19:20 +03:30
|
|
|
update?: Prisma.XOR<Prisma.XOR<Prisma.PartnerUpdateToOneWithWhereWithoutChargedLicenseTransactionsInput, Prisma.PartnerUpdateWithoutChargedLicenseTransactionsInput>, Prisma.PartnerUncheckedUpdateWithoutChargedLicenseTransactionsInput>
|
2026-03-07 11:25:11 +03:30
|
|
|
}
|
|
|
|
|
|
2026-04-11 14:47:05 +03:30
|
|
|
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
|
|
|
|
|
}
|
|
|
|
|
|
2026-04-16 22:19:20 +03:30
|
|
|
export type PartnerCreateWithoutChargedLicenseTransactionsInput = {
|
2026-03-07 11:25:11 +03:30
|
|
|
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
|
2026-04-11 14:47:05 +03:30
|
|
|
partner_accounts?: Prisma.PartnerAccountCreateNestedManyWithoutPartnerInput
|
2026-03-07 11:25:11 +03:30
|
|
|
}
|
|
|
|
|
|
2026-04-16 22:19:20 +03:30
|
|
|
export type PartnerUncheckedCreateWithoutChargedLicenseTransactionsInput = {
|
2026-03-07 11:25:11 +03:30
|
|
|
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
|
2026-04-11 14:47:05 +03:30
|
|
|
partner_accounts?: Prisma.PartnerAccountUncheckedCreateNestedManyWithoutPartnerInput
|
2026-03-07 11:25:11 +03:30
|
|
|
}
|
|
|
|
|
|
2026-04-16 22:19:20 +03:30
|
|
|
export type PartnerCreateOrConnectWithoutChargedLicenseTransactionsInput = {
|
2026-03-07 11:25:11 +03:30
|
|
|
where: Prisma.PartnerWhereUniqueInput
|
2026-04-16 22:19:20 +03:30
|
|
|
create: Prisma.XOR<Prisma.PartnerCreateWithoutChargedLicenseTransactionsInput, Prisma.PartnerUncheckedCreateWithoutChargedLicenseTransactionsInput>
|
2026-03-07 11:25:11 +03:30
|
|
|
}
|
|
|
|
|
|
2026-04-16 22:19:20 +03:30
|
|
|
export type PartnerUpsertWithoutChargedLicenseTransactionsInput = {
|
|
|
|
|
update: Prisma.XOR<Prisma.PartnerUpdateWithoutChargedLicenseTransactionsInput, Prisma.PartnerUncheckedUpdateWithoutChargedLicenseTransactionsInput>
|
|
|
|
|
create: Prisma.XOR<Prisma.PartnerCreateWithoutChargedLicenseTransactionsInput, Prisma.PartnerUncheckedCreateWithoutChargedLicenseTransactionsInput>
|
2026-03-07 11:25:11 +03:30
|
|
|
where?: Prisma.PartnerWhereInput
|
|
|
|
|
}
|
|
|
|
|
|
2026-04-16 22:19:20 +03:30
|
|
|
export type PartnerUpdateToOneWithWhereWithoutChargedLicenseTransactionsInput = {
|
2026-03-07 11:25:11 +03:30
|
|
|
where?: Prisma.PartnerWhereInput
|
2026-04-16 22:19:20 +03:30
|
|
|
data: Prisma.XOR<Prisma.PartnerUpdateWithoutChargedLicenseTransactionsInput, Prisma.PartnerUncheckedUpdateWithoutChargedLicenseTransactionsInput>
|
2026-03-07 11:25:11 +03:30
|
|
|
}
|
|
|
|
|
|
2026-04-16 22:19:20 +03:30
|
|
|
export type PartnerUpdateWithoutChargedLicenseTransactionsInput = {
|
2026-03-07 11:25:11 +03:30
|
|
|
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
|
2026-04-11 14:47:05 +03:30
|
|
|
partner_accounts?: Prisma.PartnerAccountUpdateManyWithoutPartnerNestedInput
|
2026-03-07 11:25:11 +03:30
|
|
|
}
|
|
|
|
|
|
2026-04-16 22:19:20 +03:30
|
|
|
export type PartnerUncheckedUpdateWithoutChargedLicenseTransactionsInput = {
|
2026-03-07 11:25:11 +03:30
|
|
|
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
|
2026-04-11 14:47:05 +03:30
|
|
|
partner_accounts?: Prisma.PartnerAccountUncheckedUpdateManyWithoutPartnerNestedInput
|
2026-03-07 11:25:11 +03:30
|
|
|
}
|
|
|
|
|
|
2026-04-11 14:47:05 +03:30
|
|
|
export type PartnerCreateWithoutPartner_accountsInput = {
|
2026-03-07 11:25:11 +03:30
|
|
|
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
|
2026-04-16 22:19:20 +03:30
|
|
|
chargedLicenseTransactions?: Prisma.ChargedLicenseTransactionsCreateNestedManyWithoutPartnerInput
|
2026-03-07 11:25:11 +03:30
|
|
|
}
|
|
|
|
|
|
2026-04-11 14:47:05 +03:30
|
|
|
export type PartnerUncheckedCreateWithoutPartner_accountsInput = {
|
2026-03-07 11:25:11 +03:30
|
|
|
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
|
2026-04-16 22:19:20 +03:30
|
|
|
chargedLicenseTransactions?: Prisma.ChargedLicenseTransactionsUncheckedCreateNestedManyWithoutPartnerInput
|
2026-03-07 11:25:11 +03:30
|
|
|
}
|
|
|
|
|
|
2026-04-11 14:47:05 +03:30
|
|
|
export type PartnerCreateOrConnectWithoutPartner_accountsInput = {
|
2026-03-07 11:25:11 +03:30
|
|
|
where: Prisma.PartnerWhereUniqueInput
|
2026-04-11 14:47:05 +03:30
|
|
|
create: Prisma.XOR<Prisma.PartnerCreateWithoutPartner_accountsInput, Prisma.PartnerUncheckedCreateWithoutPartner_accountsInput>
|
2026-03-07 11:25:11 +03:30
|
|
|
}
|
|
|
|
|
|
2026-04-11 14:47:05 +03:30
|
|
|
export type PartnerUpsertWithoutPartner_accountsInput = {
|
|
|
|
|
update: Prisma.XOR<Prisma.PartnerUpdateWithoutPartner_accountsInput, Prisma.PartnerUncheckedUpdateWithoutPartner_accountsInput>
|
|
|
|
|
create: Prisma.XOR<Prisma.PartnerCreateWithoutPartner_accountsInput, Prisma.PartnerUncheckedCreateWithoutPartner_accountsInput>
|
2026-03-07 11:25:11 +03:30
|
|
|
where?: Prisma.PartnerWhereInput
|
|
|
|
|
}
|
|
|
|
|
|
2026-04-11 14:47:05 +03:30
|
|
|
export type PartnerUpdateToOneWithWhereWithoutPartner_accountsInput = {
|
2026-03-07 11:25:11 +03:30
|
|
|
where?: Prisma.PartnerWhereInput
|
2026-04-11 14:47:05 +03:30
|
|
|
data: Prisma.XOR<Prisma.PartnerUpdateWithoutPartner_accountsInput, Prisma.PartnerUncheckedUpdateWithoutPartner_accountsInput>
|
2026-03-07 11:25:11 +03:30
|
|
|
}
|
|
|
|
|
|
2026-04-11 14:47:05 +03:30
|
|
|
export type PartnerUpdateWithoutPartner_accountsInput = {
|
2026-03-07 11:25:11 +03:30
|
|
|
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
|
2026-04-16 22:19:20 +03:30
|
|
|
chargedLicenseTransactions?: Prisma.ChargedLicenseTransactionsUpdateManyWithoutPartnerNestedInput
|
2026-03-07 11:25:11 +03:30
|
|
|
}
|
|
|
|
|
|
2026-04-11 14:47:05 +03:30
|
|
|
export type PartnerUncheckedUpdateWithoutPartner_accountsInput = {
|
2026-03-07 11:25:11 +03:30
|
|
|
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
|
2026-04-16 22:19:20 +03:30
|
|
|
chargedLicenseTransactions?: Prisma.ChargedLicenseTransactionsUncheckedUpdateManyWithoutPartnerNestedInput
|
2026-03-07 11:25:11 +03:30
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Count Type PartnerCountOutputType
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
export type PartnerCountOutputType = {
|
2026-04-11 14:47:05 +03:30
|
|
|
partner_accounts: number
|
2026-04-16 22:19:20 +03:30
|
|
|
chargedLicenseTransactions: number
|
2026-03-07 11:25:11 +03:30
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type PartnerCountOutputTypeSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
2026-04-11 14:47:05 +03:30
|
|
|
partner_accounts?: boolean | PartnerCountOutputTypeCountPartner_accountsArgs
|
2026-04-16 22:19:20 +03:30
|
|
|
chargedLicenseTransactions?: boolean | PartnerCountOutputTypeCountChargedLicenseTransactionsArgs
|
2026-03-07 11:25:11 +03:30
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 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
|
|
|
|
|
*/
|
2026-04-16 22:19:20 +03:30
|
|
|
export type PartnerCountOutputTypeCountPartner_accountsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
|
|
|
where?: Prisma.PartnerAccountWhereInput
|
2026-03-07 11:25:11 +03:30
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* PartnerCountOutputType without action
|
|
|
|
|
*/
|
2026-04-16 22:19:20 +03:30
|
|
|
export type PartnerCountOutputTypeCountChargedLicenseTransactionsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
|
|
|
where?: Prisma.ChargedLicenseTransactionsWhereInput
|
2026-03-07 11:25:11 +03:30
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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
|
2026-04-11 14:47:05 +03:30
|
|
|
partner_accounts?: boolean | Prisma.Partner$partner_accountsArgs<ExtArgs>
|
2026-04-16 22:19:20 +03:30
|
|
|
chargedLicenseTransactions?: boolean | Prisma.Partner$chargedLicenseTransactionsArgs<ExtArgs>
|
2026-03-07 11:25:11 +03:30
|
|
|
_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
|
2026-03-07 11:25:11 +03:30
|
|
|
}
|
|
|
|
|
|
2026-04-16 22:19:20 +03:30
|
|
|
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"]>
|
2026-03-07 11:25:11 +03:30
|
|
|
export type PartnerInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
2026-04-11 14:47:05 +03:30
|
|
|
partner_accounts?: boolean | Prisma.Partner$partner_accountsArgs<ExtArgs>
|
2026-04-16 22:19:20 +03:30
|
|
|
chargedLicenseTransactions?: boolean | Prisma.Partner$chargedLicenseTransactionsArgs<ExtArgs>
|
2026-03-07 11:25:11 +03:30
|
|
|
_count?: boolean | Prisma.PartnerCountOutputTypeDefaultArgs<ExtArgs>
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type $PartnerPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
|
|
|
name: "Partner"
|
|
|
|
|
objects: {
|
2026-04-11 14:47:05 +03:30
|
|
|
partner_accounts: Prisma.$PartnerAccountPayload<ExtArgs>[]
|
2026-04-16 22:19:20 +03:30
|
|
|
chargedLicenseTransactions: Prisma.$ChargedLicenseTransactionsPayload<ExtArgs>[]
|
2026-03-07 11:25:11 +03:30
|
|
|
}
|
|
|
|
|
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
|
2026-03-07 11:25:11 +03:30
|
|
|
}, 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"
|
2026-04-11 14:47:05 +03:30
|
|
|
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>
|
2026-04-16 22:19:20 +03:30
|
|
|
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>
|
2026-03-07 11:25:11 +03:30
|
|
|
/**
|
|
|
|
|
* Attaches callbacks for the resolution and/or rejection of the Promise.
|
|
|
|
|
* @param onfulfilled The callback to execute when the Promise is resolved.
|
|
|
|
|
* @param onrejected The callback to execute when the Promise is rejected.
|
|
|
|
|
* @returns A Promise for the completion of which ever callback is executed.
|
|
|
|
|
*/
|
|
|
|
|
then<TResult1 = T, TResult2 = never>(onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined | null): runtime.Types.Utils.JsPromise<TResult1 | TResult2>
|
|
|
|
|
/**
|
|
|
|
|
* Attaches a callback for only the rejection of the Promise.
|
|
|
|
|
* @param onrejected The callback to execute when the Promise is rejected.
|
|
|
|
|
* @returns A Promise for the completion of the callback.
|
|
|
|
|
*/
|
|
|
|
|
catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): runtime.Types.Utils.JsPromise<T | TResult>
|
|
|
|
|
/**
|
|
|
|
|
* Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
|
|
|
|
|
* resolved value cannot be modified from the callback.
|
|
|
|
|
* @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
|
|
|
|
|
* @returns A Promise for the completion of the callback.
|
|
|
|
|
*/
|
|
|
|
|
finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise<T>
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Fields of the 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'>
|
2026-03-07 11:25:11 +03:30
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 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.
|
|
|
|
|
*/
|
2026-03-07 11:25:11 +03:30
|
|
|
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
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
2026-04-16 22:19:20 +03:30
|
|
|
* Partner.partner_accounts
|
2026-03-07 11:25:11 +03:30
|
|
|
*/
|
2026-04-16 22:19:20 +03:30
|
|
|
export type Partner$partner_accountsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
2026-03-07 11:25:11 +03:30
|
|
|
/**
|
2026-04-16 22:19:20 +03:30
|
|
|
* Select specific fields to fetch from the PartnerAccount
|
2026-03-07 11:25:11 +03:30
|
|
|
*/
|
2026-04-16 22:19:20 +03:30
|
|
|
select?: Prisma.PartnerAccountSelect<ExtArgs> | null
|
2026-03-07 11:25:11 +03:30
|
|
|
/**
|
2026-04-16 22:19:20 +03:30
|
|
|
* Omit specific fields from the PartnerAccount
|
2026-03-07 11:25:11 +03:30
|
|
|
*/
|
2026-04-16 22:19:20 +03:30
|
|
|
omit?: Prisma.PartnerAccountOmit<ExtArgs> | null
|
2026-03-07 11:25:11 +03:30
|
|
|
/**
|
|
|
|
|
* Choose, which related nodes to fetch as well
|
|
|
|
|
*/
|
2026-04-16 22:19:20 +03:30
|
|
|
include?: Prisma.PartnerAccountInclude<ExtArgs> | null
|
|
|
|
|
where?: Prisma.PartnerAccountWhereInput
|
|
|
|
|
orderBy?: Prisma.PartnerAccountOrderByWithRelationInput | Prisma.PartnerAccountOrderByWithRelationInput[]
|
|
|
|
|
cursor?: Prisma.PartnerAccountWhereUniqueInput
|
2026-03-07 11:25:11 +03:30
|
|
|
take?: number
|
|
|
|
|
skip?: number
|
2026-04-16 22:19:20 +03:30
|
|
|
distinct?: Prisma.PartnerAccountScalarFieldEnum | Prisma.PartnerAccountScalarFieldEnum[]
|
2026-03-07 11:25:11 +03:30
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
2026-04-16 22:19:20 +03:30
|
|
|
* Partner.chargedLicenseTransactions
|
2026-03-07 11:25:11 +03:30
|
|
|
*/
|
2026-04-16 22:19:20 +03:30
|
|
|
export type Partner$chargedLicenseTransactionsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
2026-03-07 11:25:11 +03:30
|
|
|
/**
|
2026-04-16 22:19:20 +03:30
|
|
|
* Select specific fields to fetch from the ChargedLicenseTransactions
|
2026-03-07 11:25:11 +03:30
|
|
|
*/
|
2026-04-16 22:19:20 +03:30
|
|
|
select?: Prisma.ChargedLicenseTransactionsSelect<ExtArgs> | null
|
2026-03-07 11:25:11 +03:30
|
|
|
/**
|
2026-04-16 22:19:20 +03:30
|
|
|
* Omit specific fields from the ChargedLicenseTransactions
|
2026-03-07 11:25:11 +03:30
|
|
|
*/
|
2026-04-16 22:19:20 +03:30
|
|
|
omit?: Prisma.ChargedLicenseTransactionsOmit<ExtArgs> | null
|
2026-03-07 11:25:11 +03:30
|
|
|
/**
|
|
|
|
|
* Choose, which related nodes to fetch as well
|
|
|
|
|
*/
|
2026-04-16 22:19:20 +03:30
|
|
|
include?: Prisma.ChargedLicenseTransactionsInclude<ExtArgs> | null
|
|
|
|
|
where?: Prisma.ChargedLicenseTransactionsWhereInput
|
|
|
|
|
orderBy?: Prisma.ChargedLicenseTransactionsOrderByWithRelationInput | Prisma.ChargedLicenseTransactionsOrderByWithRelationInput[]
|
|
|
|
|
cursor?: Prisma.ChargedLicenseTransactionsWhereUniqueInput
|
2026-03-07 11:25:11 +03:30
|
|
|
take?: number
|
|
|
|
|
skip?: number
|
2026-04-16 22:19:20 +03:30
|
|
|
distinct?: Prisma.ChargedLicenseTransactionsScalarFieldEnum | Prisma.ChargedLicenseTransactionsScalarFieldEnum[]
|
2026-03-07 11:25:11 +03:30
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 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
|
|
|
|
|
}
|