Files
psp_api/src/generated/prisma/models/LicenseRenew.ts
T
ahasani b72e6c7194 feat: refactor ComplexPosesService to remove unused defaultInsert method and improve findAll logic
fix: update PartnersService to use 'isNot' instead of 'not' for allocation checks

refactor: enhance BusinessActivityComplexesService to validate license activation before creating a complex

fix: adjust ComplexPosesService to ensure account allocation checks are accurate and handle errors properly

refactor: modify ConsumerMiddleware to set consumerData instead of partnerData for better clarity

feat: expand SaleInvoicesService to include additional fields in the invoice selection

chore: update business-activities module to include accounts-charge module for better organization

fix: ensure ComplexPosesService correctly handles account allocation during POS creation

feat: implement PartnerBusinessActivityAccountsCharge module with create functionality for account charges

refactor: streamline getPartnerBusinessActivityAllocationLimits utility for better clarity and functionality

chore: add migration script to update database schema with necessary constraints and foreign keys

feat: create DTO for accounts charge to validate incoming data
2026-04-25 15:16:59 +03:30

1398 lines
58 KiB
TypeScript

/* !!! This is code generated by Prisma. Do not edit directly. !!! */
/* eslint-disable */
// biome-ignore-all lint: generated file
// @ts-nocheck
/*
* This file exports the `LicenseRenew` 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 LicenseRenew
*
*/
export type LicenseRenewModel = runtime.Types.Result.DefaultSelection<Prisma.$LicenseRenewPayload>
export type AggregateLicenseRenew = {
_count: LicenseRenewCountAggregateOutputType | null
_min: LicenseRenewMinAggregateOutputType | null
_max: LicenseRenewMaxAggregateOutputType | null
}
export type LicenseRenewMinAggregateOutputType = {
id: string | null
expires_at: Date | null
created_at: Date | null
updated_at: Date | null
charge_transaction_id: string | null
activation_id: string | null
}
export type LicenseRenewMaxAggregateOutputType = {
id: string | null
expires_at: Date | null
created_at: Date | null
updated_at: Date | null
charge_transaction_id: string | null
activation_id: string | null
}
export type LicenseRenewCountAggregateOutputType = {
id: number
expires_at: number
created_at: number
updated_at: number
charge_transaction_id: number
activation_id: number
_all: number
}
export type LicenseRenewMinAggregateInputType = {
id?: true
expires_at?: true
created_at?: true
updated_at?: true
charge_transaction_id?: true
activation_id?: true
}
export type LicenseRenewMaxAggregateInputType = {
id?: true
expires_at?: true
created_at?: true
updated_at?: true
charge_transaction_id?: true
activation_id?: true
}
export type LicenseRenewCountAggregateInputType = {
id?: true
expires_at?: true
created_at?: true
updated_at?: true
charge_transaction_id?: true
activation_id?: true
_all?: true
}
export type LicenseRenewAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Filter which LicenseRenew to aggregate.
*/
where?: Prisma.LicenseRenewWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of LicenseRenews to fetch.
*/
orderBy?: Prisma.LicenseRenewOrderByWithRelationInput | Prisma.LicenseRenewOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the start position
*/
cursor?: Prisma.LicenseRenewWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` LicenseRenews 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` LicenseRenews.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Count returned LicenseRenews
**/
_count?: true | LicenseRenewCountAggregateInputType
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to find the minimum value
**/
_min?: LicenseRenewMinAggregateInputType
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to find the maximum value
**/
_max?: LicenseRenewMaxAggregateInputType
}
export type GetLicenseRenewAggregateType<T extends LicenseRenewAggregateArgs> = {
[P in keyof T & keyof AggregateLicenseRenew]: P extends '_count' | 'count'
? T[P] extends true
? number
: Prisma.GetScalarType<T[P], AggregateLicenseRenew[P]>
: Prisma.GetScalarType<T[P], AggregateLicenseRenew[P]>
}
export type LicenseRenewGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
where?: Prisma.LicenseRenewWhereInput
orderBy?: Prisma.LicenseRenewOrderByWithAggregationInput | Prisma.LicenseRenewOrderByWithAggregationInput[]
by: Prisma.LicenseRenewScalarFieldEnum[] | Prisma.LicenseRenewScalarFieldEnum
having?: Prisma.LicenseRenewScalarWhereWithAggregatesInput
take?: number
skip?: number
_count?: LicenseRenewCountAggregateInputType | true
_min?: LicenseRenewMinAggregateInputType
_max?: LicenseRenewMaxAggregateInputType
}
export type LicenseRenewGroupByOutputType = {
id: string
expires_at: Date
created_at: Date
updated_at: Date
charge_transaction_id: string
activation_id: string | null
_count: LicenseRenewCountAggregateOutputType | null
_min: LicenseRenewMinAggregateOutputType | null
_max: LicenseRenewMaxAggregateOutputType | null
}
export type GetLicenseRenewGroupByPayload<T extends LicenseRenewGroupByArgs> = Prisma.PrismaPromise<
Array<
Prisma.PickEnumerable<LicenseRenewGroupByOutputType, T['by']> &
{
[P in ((keyof T) & (keyof LicenseRenewGroupByOutputType))]: P extends '_count'
? T[P] extends boolean
? number
: Prisma.GetScalarType<T[P], LicenseRenewGroupByOutputType[P]>
: Prisma.GetScalarType<T[P], LicenseRenewGroupByOutputType[P]>
}
>
>
export type LicenseRenewWhereInput = {
AND?: Prisma.LicenseRenewWhereInput | Prisma.LicenseRenewWhereInput[]
OR?: Prisma.LicenseRenewWhereInput[]
NOT?: Prisma.LicenseRenewWhereInput | Prisma.LicenseRenewWhereInput[]
id?: Prisma.StringFilter<"LicenseRenew"> | string
expires_at?: Prisma.DateTimeFilter<"LicenseRenew"> | Date | string
created_at?: Prisma.DateTimeFilter<"LicenseRenew"> | Date | string
updated_at?: Prisma.DateTimeFilter<"LicenseRenew"> | Date | string
charge_transaction_id?: Prisma.StringFilter<"LicenseRenew"> | string
activation_id?: Prisma.StringNullableFilter<"LicenseRenew"> | string | null
charge_transaction?: Prisma.XOR<Prisma.LicenseRenewChargeTransactionScalarRelationFilter, Prisma.LicenseRenewChargeTransactionWhereInput>
activation?: Prisma.XOR<Prisma.LicenseActivationNullableScalarRelationFilter, Prisma.LicenseActivationWhereInput> | null
}
export type LicenseRenewOrderByWithRelationInput = {
id?: Prisma.SortOrder
expires_at?: Prisma.SortOrder
created_at?: Prisma.SortOrder
updated_at?: Prisma.SortOrder
charge_transaction_id?: Prisma.SortOrder
activation_id?: Prisma.SortOrderInput | Prisma.SortOrder
charge_transaction?: Prisma.LicenseRenewChargeTransactionOrderByWithRelationInput
activation?: Prisma.LicenseActivationOrderByWithRelationInput
_relevance?: Prisma.LicenseRenewOrderByRelevanceInput
}
export type LicenseRenewWhereUniqueInput = Prisma.AtLeast<{
id?: string
AND?: Prisma.LicenseRenewWhereInput | Prisma.LicenseRenewWhereInput[]
OR?: Prisma.LicenseRenewWhereInput[]
NOT?: Prisma.LicenseRenewWhereInput | Prisma.LicenseRenewWhereInput[]
expires_at?: Prisma.DateTimeFilter<"LicenseRenew"> | Date | string
created_at?: Prisma.DateTimeFilter<"LicenseRenew"> | Date | string
updated_at?: Prisma.DateTimeFilter<"LicenseRenew"> | Date | string
charge_transaction_id?: Prisma.StringFilter<"LicenseRenew"> | string
activation_id?: Prisma.StringNullableFilter<"LicenseRenew"> | string | null
charge_transaction?: Prisma.XOR<Prisma.LicenseRenewChargeTransactionScalarRelationFilter, Prisma.LicenseRenewChargeTransactionWhereInput>
activation?: Prisma.XOR<Prisma.LicenseActivationNullableScalarRelationFilter, Prisma.LicenseActivationWhereInput> | null
}, "id">
export type LicenseRenewOrderByWithAggregationInput = {
id?: Prisma.SortOrder
expires_at?: Prisma.SortOrder
created_at?: Prisma.SortOrder
updated_at?: Prisma.SortOrder
charge_transaction_id?: Prisma.SortOrder
activation_id?: Prisma.SortOrderInput | Prisma.SortOrder
_count?: Prisma.LicenseRenewCountOrderByAggregateInput
_max?: Prisma.LicenseRenewMaxOrderByAggregateInput
_min?: Prisma.LicenseRenewMinOrderByAggregateInput
}
export type LicenseRenewScalarWhereWithAggregatesInput = {
AND?: Prisma.LicenseRenewScalarWhereWithAggregatesInput | Prisma.LicenseRenewScalarWhereWithAggregatesInput[]
OR?: Prisma.LicenseRenewScalarWhereWithAggregatesInput[]
NOT?: Prisma.LicenseRenewScalarWhereWithAggregatesInput | Prisma.LicenseRenewScalarWhereWithAggregatesInput[]
id?: Prisma.StringWithAggregatesFilter<"LicenseRenew"> | string
expires_at?: Prisma.DateTimeWithAggregatesFilter<"LicenseRenew"> | Date | string
created_at?: Prisma.DateTimeWithAggregatesFilter<"LicenseRenew"> | Date | string
updated_at?: Prisma.DateTimeWithAggregatesFilter<"LicenseRenew"> | Date | string
charge_transaction_id?: Prisma.StringWithAggregatesFilter<"LicenseRenew"> | string
activation_id?: Prisma.StringNullableWithAggregatesFilter<"LicenseRenew"> | string | null
}
export type LicenseRenewCreateInput = {
id?: string
expires_at: Date | string
created_at?: Date | string
updated_at?: Date | string
charge_transaction: Prisma.LicenseRenewChargeTransactionCreateNestedOneWithoutLicense_renewsInput
activation?: Prisma.LicenseActivationCreateNestedOneWithoutLicense_renewsInput
}
export type LicenseRenewUncheckedCreateInput = {
id?: string
expires_at: Date | string
created_at?: Date | string
updated_at?: Date | string
charge_transaction_id: string
activation_id?: string | null
}
export type LicenseRenewUpdateInput = {
id?: Prisma.StringFieldUpdateOperationsInput | string
expires_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
charge_transaction?: Prisma.LicenseRenewChargeTransactionUpdateOneRequiredWithoutLicense_renewsNestedInput
activation?: Prisma.LicenseActivationUpdateOneWithoutLicense_renewsNestedInput
}
export type LicenseRenewUncheckedUpdateInput = {
id?: Prisma.StringFieldUpdateOperationsInput | string
expires_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
charge_transaction_id?: Prisma.StringFieldUpdateOperationsInput | string
activation_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
}
export type LicenseRenewCreateManyInput = {
id?: string
expires_at: Date | string
created_at?: Date | string
updated_at?: Date | string
charge_transaction_id: string
activation_id?: string | null
}
export type LicenseRenewUpdateManyMutationInput = {
id?: Prisma.StringFieldUpdateOperationsInput | string
expires_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
}
export type LicenseRenewUncheckedUpdateManyInput = {
id?: Prisma.StringFieldUpdateOperationsInput | string
expires_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
charge_transaction_id?: Prisma.StringFieldUpdateOperationsInput | string
activation_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
}
export type LicenseRenewListRelationFilter = {
every?: Prisma.LicenseRenewWhereInput
some?: Prisma.LicenseRenewWhereInput
none?: Prisma.LicenseRenewWhereInput
}
export type LicenseRenewOrderByRelationAggregateInput = {
_count?: Prisma.SortOrder
}
export type LicenseRenewOrderByRelevanceInput = {
fields: Prisma.LicenseRenewOrderByRelevanceFieldEnum | Prisma.LicenseRenewOrderByRelevanceFieldEnum[]
sort: Prisma.SortOrder
search: string
}
export type LicenseRenewCountOrderByAggregateInput = {
id?: Prisma.SortOrder
expires_at?: Prisma.SortOrder
created_at?: Prisma.SortOrder
updated_at?: Prisma.SortOrder
charge_transaction_id?: Prisma.SortOrder
activation_id?: Prisma.SortOrder
}
export type LicenseRenewMaxOrderByAggregateInput = {
id?: Prisma.SortOrder
expires_at?: Prisma.SortOrder
created_at?: Prisma.SortOrder
updated_at?: Prisma.SortOrder
charge_transaction_id?: Prisma.SortOrder
activation_id?: Prisma.SortOrder
}
export type LicenseRenewMinOrderByAggregateInput = {
id?: Prisma.SortOrder
expires_at?: Prisma.SortOrder
created_at?: Prisma.SortOrder
updated_at?: Prisma.SortOrder
charge_transaction_id?: Prisma.SortOrder
activation_id?: Prisma.SortOrder
}
export type LicenseRenewCreateNestedManyWithoutActivationInput = {
create?: Prisma.XOR<Prisma.LicenseRenewCreateWithoutActivationInput, Prisma.LicenseRenewUncheckedCreateWithoutActivationInput> | Prisma.LicenseRenewCreateWithoutActivationInput[] | Prisma.LicenseRenewUncheckedCreateWithoutActivationInput[]
connectOrCreate?: Prisma.LicenseRenewCreateOrConnectWithoutActivationInput | Prisma.LicenseRenewCreateOrConnectWithoutActivationInput[]
createMany?: Prisma.LicenseRenewCreateManyActivationInputEnvelope
connect?: Prisma.LicenseRenewWhereUniqueInput | Prisma.LicenseRenewWhereUniqueInput[]
}
export type LicenseRenewUncheckedCreateNestedManyWithoutActivationInput = {
create?: Prisma.XOR<Prisma.LicenseRenewCreateWithoutActivationInput, Prisma.LicenseRenewUncheckedCreateWithoutActivationInput> | Prisma.LicenseRenewCreateWithoutActivationInput[] | Prisma.LicenseRenewUncheckedCreateWithoutActivationInput[]
connectOrCreate?: Prisma.LicenseRenewCreateOrConnectWithoutActivationInput | Prisma.LicenseRenewCreateOrConnectWithoutActivationInput[]
createMany?: Prisma.LicenseRenewCreateManyActivationInputEnvelope
connect?: Prisma.LicenseRenewWhereUniqueInput | Prisma.LicenseRenewWhereUniqueInput[]
}
export type LicenseRenewUpdateManyWithoutActivationNestedInput = {
create?: Prisma.XOR<Prisma.LicenseRenewCreateWithoutActivationInput, Prisma.LicenseRenewUncheckedCreateWithoutActivationInput> | Prisma.LicenseRenewCreateWithoutActivationInput[] | Prisma.LicenseRenewUncheckedCreateWithoutActivationInput[]
connectOrCreate?: Prisma.LicenseRenewCreateOrConnectWithoutActivationInput | Prisma.LicenseRenewCreateOrConnectWithoutActivationInput[]
upsert?: Prisma.LicenseRenewUpsertWithWhereUniqueWithoutActivationInput | Prisma.LicenseRenewUpsertWithWhereUniqueWithoutActivationInput[]
createMany?: Prisma.LicenseRenewCreateManyActivationInputEnvelope
set?: Prisma.LicenseRenewWhereUniqueInput | Prisma.LicenseRenewWhereUniqueInput[]
disconnect?: Prisma.LicenseRenewWhereUniqueInput | Prisma.LicenseRenewWhereUniqueInput[]
delete?: Prisma.LicenseRenewWhereUniqueInput | Prisma.LicenseRenewWhereUniqueInput[]
connect?: Prisma.LicenseRenewWhereUniqueInput | Prisma.LicenseRenewWhereUniqueInput[]
update?: Prisma.LicenseRenewUpdateWithWhereUniqueWithoutActivationInput | Prisma.LicenseRenewUpdateWithWhereUniqueWithoutActivationInput[]
updateMany?: Prisma.LicenseRenewUpdateManyWithWhereWithoutActivationInput | Prisma.LicenseRenewUpdateManyWithWhereWithoutActivationInput[]
deleteMany?: Prisma.LicenseRenewScalarWhereInput | Prisma.LicenseRenewScalarWhereInput[]
}
export type LicenseRenewUncheckedUpdateManyWithoutActivationNestedInput = {
create?: Prisma.XOR<Prisma.LicenseRenewCreateWithoutActivationInput, Prisma.LicenseRenewUncheckedCreateWithoutActivationInput> | Prisma.LicenseRenewCreateWithoutActivationInput[] | Prisma.LicenseRenewUncheckedCreateWithoutActivationInput[]
connectOrCreate?: Prisma.LicenseRenewCreateOrConnectWithoutActivationInput | Prisma.LicenseRenewCreateOrConnectWithoutActivationInput[]
upsert?: Prisma.LicenseRenewUpsertWithWhereUniqueWithoutActivationInput | Prisma.LicenseRenewUpsertWithWhereUniqueWithoutActivationInput[]
createMany?: Prisma.LicenseRenewCreateManyActivationInputEnvelope
set?: Prisma.LicenseRenewWhereUniqueInput | Prisma.LicenseRenewWhereUniqueInput[]
disconnect?: Prisma.LicenseRenewWhereUniqueInput | Prisma.LicenseRenewWhereUniqueInput[]
delete?: Prisma.LicenseRenewWhereUniqueInput | Prisma.LicenseRenewWhereUniqueInput[]
connect?: Prisma.LicenseRenewWhereUniqueInput | Prisma.LicenseRenewWhereUniqueInput[]
update?: Prisma.LicenseRenewUpdateWithWhereUniqueWithoutActivationInput | Prisma.LicenseRenewUpdateWithWhereUniqueWithoutActivationInput[]
updateMany?: Prisma.LicenseRenewUpdateManyWithWhereWithoutActivationInput | Prisma.LicenseRenewUpdateManyWithWhereWithoutActivationInput[]
deleteMany?: Prisma.LicenseRenewScalarWhereInput | Prisma.LicenseRenewScalarWhereInput[]
}
export type LicenseRenewCreateNestedManyWithoutCharge_transactionInput = {
create?: Prisma.XOR<Prisma.LicenseRenewCreateWithoutCharge_transactionInput, Prisma.LicenseRenewUncheckedCreateWithoutCharge_transactionInput> | Prisma.LicenseRenewCreateWithoutCharge_transactionInput[] | Prisma.LicenseRenewUncheckedCreateWithoutCharge_transactionInput[]
connectOrCreate?: Prisma.LicenseRenewCreateOrConnectWithoutCharge_transactionInput | Prisma.LicenseRenewCreateOrConnectWithoutCharge_transactionInput[]
createMany?: Prisma.LicenseRenewCreateManyCharge_transactionInputEnvelope
connect?: Prisma.LicenseRenewWhereUniqueInput | Prisma.LicenseRenewWhereUniqueInput[]
}
export type LicenseRenewUncheckedCreateNestedManyWithoutCharge_transactionInput = {
create?: Prisma.XOR<Prisma.LicenseRenewCreateWithoutCharge_transactionInput, Prisma.LicenseRenewUncheckedCreateWithoutCharge_transactionInput> | Prisma.LicenseRenewCreateWithoutCharge_transactionInput[] | Prisma.LicenseRenewUncheckedCreateWithoutCharge_transactionInput[]
connectOrCreate?: Prisma.LicenseRenewCreateOrConnectWithoutCharge_transactionInput | Prisma.LicenseRenewCreateOrConnectWithoutCharge_transactionInput[]
createMany?: Prisma.LicenseRenewCreateManyCharge_transactionInputEnvelope
connect?: Prisma.LicenseRenewWhereUniqueInput | Prisma.LicenseRenewWhereUniqueInput[]
}
export type LicenseRenewUpdateManyWithoutCharge_transactionNestedInput = {
create?: Prisma.XOR<Prisma.LicenseRenewCreateWithoutCharge_transactionInput, Prisma.LicenseRenewUncheckedCreateWithoutCharge_transactionInput> | Prisma.LicenseRenewCreateWithoutCharge_transactionInput[] | Prisma.LicenseRenewUncheckedCreateWithoutCharge_transactionInput[]
connectOrCreate?: Prisma.LicenseRenewCreateOrConnectWithoutCharge_transactionInput | Prisma.LicenseRenewCreateOrConnectWithoutCharge_transactionInput[]
upsert?: Prisma.LicenseRenewUpsertWithWhereUniqueWithoutCharge_transactionInput | Prisma.LicenseRenewUpsertWithWhereUniqueWithoutCharge_transactionInput[]
createMany?: Prisma.LicenseRenewCreateManyCharge_transactionInputEnvelope
set?: Prisma.LicenseRenewWhereUniqueInput | Prisma.LicenseRenewWhereUniqueInput[]
disconnect?: Prisma.LicenseRenewWhereUniqueInput | Prisma.LicenseRenewWhereUniqueInput[]
delete?: Prisma.LicenseRenewWhereUniqueInput | Prisma.LicenseRenewWhereUniqueInput[]
connect?: Prisma.LicenseRenewWhereUniqueInput | Prisma.LicenseRenewWhereUniqueInput[]
update?: Prisma.LicenseRenewUpdateWithWhereUniqueWithoutCharge_transactionInput | Prisma.LicenseRenewUpdateWithWhereUniqueWithoutCharge_transactionInput[]
updateMany?: Prisma.LicenseRenewUpdateManyWithWhereWithoutCharge_transactionInput | Prisma.LicenseRenewUpdateManyWithWhereWithoutCharge_transactionInput[]
deleteMany?: Prisma.LicenseRenewScalarWhereInput | Prisma.LicenseRenewScalarWhereInput[]
}
export type LicenseRenewUncheckedUpdateManyWithoutCharge_transactionNestedInput = {
create?: Prisma.XOR<Prisma.LicenseRenewCreateWithoutCharge_transactionInput, Prisma.LicenseRenewUncheckedCreateWithoutCharge_transactionInput> | Prisma.LicenseRenewCreateWithoutCharge_transactionInput[] | Prisma.LicenseRenewUncheckedCreateWithoutCharge_transactionInput[]
connectOrCreate?: Prisma.LicenseRenewCreateOrConnectWithoutCharge_transactionInput | Prisma.LicenseRenewCreateOrConnectWithoutCharge_transactionInput[]
upsert?: Prisma.LicenseRenewUpsertWithWhereUniqueWithoutCharge_transactionInput | Prisma.LicenseRenewUpsertWithWhereUniqueWithoutCharge_transactionInput[]
createMany?: Prisma.LicenseRenewCreateManyCharge_transactionInputEnvelope
set?: Prisma.LicenseRenewWhereUniqueInput | Prisma.LicenseRenewWhereUniqueInput[]
disconnect?: Prisma.LicenseRenewWhereUniqueInput | Prisma.LicenseRenewWhereUniqueInput[]
delete?: Prisma.LicenseRenewWhereUniqueInput | Prisma.LicenseRenewWhereUniqueInput[]
connect?: Prisma.LicenseRenewWhereUniqueInput | Prisma.LicenseRenewWhereUniqueInput[]
update?: Prisma.LicenseRenewUpdateWithWhereUniqueWithoutCharge_transactionInput | Prisma.LicenseRenewUpdateWithWhereUniqueWithoutCharge_transactionInput[]
updateMany?: Prisma.LicenseRenewUpdateManyWithWhereWithoutCharge_transactionInput | Prisma.LicenseRenewUpdateManyWithWhereWithoutCharge_transactionInput[]
deleteMany?: Prisma.LicenseRenewScalarWhereInput | Prisma.LicenseRenewScalarWhereInput[]
}
export type LicenseRenewCreateWithoutActivationInput = {
id?: string
expires_at: Date | string
created_at?: Date | string
updated_at?: Date | string
charge_transaction: Prisma.LicenseRenewChargeTransactionCreateNestedOneWithoutLicense_renewsInput
}
export type LicenseRenewUncheckedCreateWithoutActivationInput = {
id?: string
expires_at: Date | string
created_at?: Date | string
updated_at?: Date | string
charge_transaction_id: string
}
export type LicenseRenewCreateOrConnectWithoutActivationInput = {
where: Prisma.LicenseRenewWhereUniqueInput
create: Prisma.XOR<Prisma.LicenseRenewCreateWithoutActivationInput, Prisma.LicenseRenewUncheckedCreateWithoutActivationInput>
}
export type LicenseRenewCreateManyActivationInputEnvelope = {
data: Prisma.LicenseRenewCreateManyActivationInput | Prisma.LicenseRenewCreateManyActivationInput[]
skipDuplicates?: boolean
}
export type LicenseRenewUpsertWithWhereUniqueWithoutActivationInput = {
where: Prisma.LicenseRenewWhereUniqueInput
update: Prisma.XOR<Prisma.LicenseRenewUpdateWithoutActivationInput, Prisma.LicenseRenewUncheckedUpdateWithoutActivationInput>
create: Prisma.XOR<Prisma.LicenseRenewCreateWithoutActivationInput, Prisma.LicenseRenewUncheckedCreateWithoutActivationInput>
}
export type LicenseRenewUpdateWithWhereUniqueWithoutActivationInput = {
where: Prisma.LicenseRenewWhereUniqueInput
data: Prisma.XOR<Prisma.LicenseRenewUpdateWithoutActivationInput, Prisma.LicenseRenewUncheckedUpdateWithoutActivationInput>
}
export type LicenseRenewUpdateManyWithWhereWithoutActivationInput = {
where: Prisma.LicenseRenewScalarWhereInput
data: Prisma.XOR<Prisma.LicenseRenewUpdateManyMutationInput, Prisma.LicenseRenewUncheckedUpdateManyWithoutActivationInput>
}
export type LicenseRenewScalarWhereInput = {
AND?: Prisma.LicenseRenewScalarWhereInput | Prisma.LicenseRenewScalarWhereInput[]
OR?: Prisma.LicenseRenewScalarWhereInput[]
NOT?: Prisma.LicenseRenewScalarWhereInput | Prisma.LicenseRenewScalarWhereInput[]
id?: Prisma.StringFilter<"LicenseRenew"> | string
expires_at?: Prisma.DateTimeFilter<"LicenseRenew"> | Date | string
created_at?: Prisma.DateTimeFilter<"LicenseRenew"> | Date | string
updated_at?: Prisma.DateTimeFilter<"LicenseRenew"> | Date | string
charge_transaction_id?: Prisma.StringFilter<"LicenseRenew"> | string
activation_id?: Prisma.StringNullableFilter<"LicenseRenew"> | string | null
}
export type LicenseRenewCreateWithoutCharge_transactionInput = {
id?: string
expires_at: Date | string
created_at?: Date | string
updated_at?: Date | string
activation?: Prisma.LicenseActivationCreateNestedOneWithoutLicense_renewsInput
}
export type LicenseRenewUncheckedCreateWithoutCharge_transactionInput = {
id?: string
expires_at: Date | string
created_at?: Date | string
updated_at?: Date | string
activation_id?: string | null
}
export type LicenseRenewCreateOrConnectWithoutCharge_transactionInput = {
where: Prisma.LicenseRenewWhereUniqueInput
create: Prisma.XOR<Prisma.LicenseRenewCreateWithoutCharge_transactionInput, Prisma.LicenseRenewUncheckedCreateWithoutCharge_transactionInput>
}
export type LicenseRenewCreateManyCharge_transactionInputEnvelope = {
data: Prisma.LicenseRenewCreateManyCharge_transactionInput | Prisma.LicenseRenewCreateManyCharge_transactionInput[]
skipDuplicates?: boolean
}
export type LicenseRenewUpsertWithWhereUniqueWithoutCharge_transactionInput = {
where: Prisma.LicenseRenewWhereUniqueInput
update: Prisma.XOR<Prisma.LicenseRenewUpdateWithoutCharge_transactionInput, Prisma.LicenseRenewUncheckedUpdateWithoutCharge_transactionInput>
create: Prisma.XOR<Prisma.LicenseRenewCreateWithoutCharge_transactionInput, Prisma.LicenseRenewUncheckedCreateWithoutCharge_transactionInput>
}
export type LicenseRenewUpdateWithWhereUniqueWithoutCharge_transactionInput = {
where: Prisma.LicenseRenewWhereUniqueInput
data: Prisma.XOR<Prisma.LicenseRenewUpdateWithoutCharge_transactionInput, Prisma.LicenseRenewUncheckedUpdateWithoutCharge_transactionInput>
}
export type LicenseRenewUpdateManyWithWhereWithoutCharge_transactionInput = {
where: Prisma.LicenseRenewScalarWhereInput
data: Prisma.XOR<Prisma.LicenseRenewUpdateManyMutationInput, Prisma.LicenseRenewUncheckedUpdateManyWithoutCharge_transactionInput>
}
export type LicenseRenewCreateManyActivationInput = {
id?: string
expires_at: Date | string
created_at?: Date | string
updated_at?: Date | string
charge_transaction_id: string
}
export type LicenseRenewUpdateWithoutActivationInput = {
id?: Prisma.StringFieldUpdateOperationsInput | string
expires_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
charge_transaction?: Prisma.LicenseRenewChargeTransactionUpdateOneRequiredWithoutLicense_renewsNestedInput
}
export type LicenseRenewUncheckedUpdateWithoutActivationInput = {
id?: Prisma.StringFieldUpdateOperationsInput | string
expires_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
charge_transaction_id?: Prisma.StringFieldUpdateOperationsInput | string
}
export type LicenseRenewUncheckedUpdateManyWithoutActivationInput = {
id?: Prisma.StringFieldUpdateOperationsInput | string
expires_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
charge_transaction_id?: Prisma.StringFieldUpdateOperationsInput | string
}
export type LicenseRenewCreateManyCharge_transactionInput = {
id?: string
expires_at: Date | string
created_at?: Date | string
updated_at?: Date | string
activation_id?: string | null
}
export type LicenseRenewUpdateWithoutCharge_transactionInput = {
id?: Prisma.StringFieldUpdateOperationsInput | string
expires_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
activation?: Prisma.LicenseActivationUpdateOneWithoutLicense_renewsNestedInput
}
export type LicenseRenewUncheckedUpdateWithoutCharge_transactionInput = {
id?: Prisma.StringFieldUpdateOperationsInput | string
expires_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
activation_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
}
export type LicenseRenewUncheckedUpdateManyWithoutCharge_transactionInput = {
id?: Prisma.StringFieldUpdateOperationsInput | string
expires_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
activation_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
}
export type LicenseRenewSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
id?: boolean
expires_at?: boolean
created_at?: boolean
updated_at?: boolean
charge_transaction_id?: boolean
activation_id?: boolean
charge_transaction?: boolean | Prisma.LicenseRenewChargeTransactionDefaultArgs<ExtArgs>
activation?: boolean | Prisma.LicenseRenew$activationArgs<ExtArgs>
}, ExtArgs["result"]["licenseRenew"]>
export type LicenseRenewSelectScalar = {
id?: boolean
expires_at?: boolean
created_at?: boolean
updated_at?: boolean
charge_transaction_id?: boolean
activation_id?: boolean
}
export type LicenseRenewOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "expires_at" | "created_at" | "updated_at" | "charge_transaction_id" | "activation_id", ExtArgs["result"]["licenseRenew"]>
export type LicenseRenewInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
charge_transaction?: boolean | Prisma.LicenseRenewChargeTransactionDefaultArgs<ExtArgs>
activation?: boolean | Prisma.LicenseRenew$activationArgs<ExtArgs>
}
export type $LicenseRenewPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
name: "LicenseRenew"
objects: {
charge_transaction: Prisma.$LicenseRenewChargeTransactionPayload<ExtArgs>
activation: Prisma.$LicenseActivationPayload<ExtArgs> | null
}
scalars: runtime.Types.Extensions.GetPayloadResult<{
id: string
expires_at: Date
created_at: Date
updated_at: Date
charge_transaction_id: string
activation_id: string | null
}, ExtArgs["result"]["licenseRenew"]>
composites: {}
}
export type LicenseRenewGetPayload<S extends boolean | null | undefined | LicenseRenewDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$LicenseRenewPayload, S>
export type LicenseRenewCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> =
Omit<LicenseRenewFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
select?: LicenseRenewCountAggregateInputType | true
}
export interface LicenseRenewDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
[K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['LicenseRenew'], meta: { name: 'LicenseRenew' } }
/**
* Find zero or one LicenseRenew that matches the filter.
* @param {LicenseRenewFindUniqueArgs} args - Arguments to find a LicenseRenew
* @example
* // Get one LicenseRenew
* const licenseRenew = await prisma.licenseRenew.findUnique({
* where: {
* // ... provide filter here
* }
* })
*/
findUnique<T extends LicenseRenewFindUniqueArgs>(args: Prisma.SelectSubset<T, LicenseRenewFindUniqueArgs<ExtArgs>>): Prisma.Prisma__LicenseRenewClient<runtime.Types.Result.GetResult<Prisma.$LicenseRenewPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
/**
* Find one LicenseRenew that matches the filter or throw an error with `error.code='P2025'`
* if no matches were found.
* @param {LicenseRenewFindUniqueOrThrowArgs} args - Arguments to find a LicenseRenew
* @example
* // Get one LicenseRenew
* const licenseRenew = await prisma.licenseRenew.findUniqueOrThrow({
* where: {
* // ... provide filter here
* }
* })
*/
findUniqueOrThrow<T extends LicenseRenewFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, LicenseRenewFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__LicenseRenewClient<runtime.Types.Result.GetResult<Prisma.$LicenseRenewPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Find the first LicenseRenew 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 {LicenseRenewFindFirstArgs} args - Arguments to find a LicenseRenew
* @example
* // Get one LicenseRenew
* const licenseRenew = await prisma.licenseRenew.findFirst({
* where: {
* // ... provide filter here
* }
* })
*/
findFirst<T extends LicenseRenewFindFirstArgs>(args?: Prisma.SelectSubset<T, LicenseRenewFindFirstArgs<ExtArgs>>): Prisma.Prisma__LicenseRenewClient<runtime.Types.Result.GetResult<Prisma.$LicenseRenewPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
/**
* Find the first LicenseRenew 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 {LicenseRenewFindFirstOrThrowArgs} args - Arguments to find a LicenseRenew
* @example
* // Get one LicenseRenew
* const licenseRenew = await prisma.licenseRenew.findFirstOrThrow({
* where: {
* // ... provide filter here
* }
* })
*/
findFirstOrThrow<T extends LicenseRenewFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, LicenseRenewFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__LicenseRenewClient<runtime.Types.Result.GetResult<Prisma.$LicenseRenewPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Find zero or more LicenseRenews 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 {LicenseRenewFindManyArgs} args - Arguments to filter and select certain fields only.
* @example
* // Get all LicenseRenews
* const licenseRenews = await prisma.licenseRenew.findMany()
*
* // Get first 10 LicenseRenews
* const licenseRenews = await prisma.licenseRenew.findMany({ take: 10 })
*
* // Only select the `id`
* const licenseRenewWithIdOnly = await prisma.licenseRenew.findMany({ select: { id: true } })
*
*/
findMany<T extends LicenseRenewFindManyArgs>(args?: Prisma.SelectSubset<T, LicenseRenewFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$LicenseRenewPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
/**
* Create a LicenseRenew.
* @param {LicenseRenewCreateArgs} args - Arguments to create a LicenseRenew.
* @example
* // Create one LicenseRenew
* const LicenseRenew = await prisma.licenseRenew.create({
* data: {
* // ... data to create a LicenseRenew
* }
* })
*
*/
create<T extends LicenseRenewCreateArgs>(args: Prisma.SelectSubset<T, LicenseRenewCreateArgs<ExtArgs>>): Prisma.Prisma__LicenseRenewClient<runtime.Types.Result.GetResult<Prisma.$LicenseRenewPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Create many LicenseRenews.
* @param {LicenseRenewCreateManyArgs} args - Arguments to create many LicenseRenews.
* @example
* // Create many LicenseRenews
* const licenseRenew = await prisma.licenseRenew.createMany({
* data: [
* // ... provide data here
* ]
* })
*
*/
createMany<T extends LicenseRenewCreateManyArgs>(args?: Prisma.SelectSubset<T, LicenseRenewCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
/**
* Delete a LicenseRenew.
* @param {LicenseRenewDeleteArgs} args - Arguments to delete one LicenseRenew.
* @example
* // Delete one LicenseRenew
* const LicenseRenew = await prisma.licenseRenew.delete({
* where: {
* // ... filter to delete one LicenseRenew
* }
* })
*
*/
delete<T extends LicenseRenewDeleteArgs>(args: Prisma.SelectSubset<T, LicenseRenewDeleteArgs<ExtArgs>>): Prisma.Prisma__LicenseRenewClient<runtime.Types.Result.GetResult<Prisma.$LicenseRenewPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Update one LicenseRenew.
* @param {LicenseRenewUpdateArgs} args - Arguments to update one LicenseRenew.
* @example
* // Update one LicenseRenew
* const licenseRenew = await prisma.licenseRenew.update({
* where: {
* // ... provide filter here
* },
* data: {
* // ... provide data here
* }
* })
*
*/
update<T extends LicenseRenewUpdateArgs>(args: Prisma.SelectSubset<T, LicenseRenewUpdateArgs<ExtArgs>>): Prisma.Prisma__LicenseRenewClient<runtime.Types.Result.GetResult<Prisma.$LicenseRenewPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Delete zero or more LicenseRenews.
* @param {LicenseRenewDeleteManyArgs} args - Arguments to filter LicenseRenews to delete.
* @example
* // Delete a few LicenseRenews
* const { count } = await prisma.licenseRenew.deleteMany({
* where: {
* // ... provide filter here
* }
* })
*
*/
deleteMany<T extends LicenseRenewDeleteManyArgs>(args?: Prisma.SelectSubset<T, LicenseRenewDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
/**
* Update zero or more LicenseRenews.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {LicenseRenewUpdateManyArgs} args - Arguments to update one or more rows.
* @example
* // Update many LicenseRenews
* const licenseRenew = await prisma.licenseRenew.updateMany({
* where: {
* // ... provide filter here
* },
* data: {
* // ... provide data here
* }
* })
*
*/
updateMany<T extends LicenseRenewUpdateManyArgs>(args: Prisma.SelectSubset<T, LicenseRenewUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
/**
* Create or update one LicenseRenew.
* @param {LicenseRenewUpsertArgs} args - Arguments to update or create a LicenseRenew.
* @example
* // Update or create a LicenseRenew
* const licenseRenew = await prisma.licenseRenew.upsert({
* create: {
* // ... data to create a LicenseRenew
* },
* update: {
* // ... in case it already exists, update
* },
* where: {
* // ... the filter for the LicenseRenew we want to update
* }
* })
*/
upsert<T extends LicenseRenewUpsertArgs>(args: Prisma.SelectSubset<T, LicenseRenewUpsertArgs<ExtArgs>>): Prisma.Prisma__LicenseRenewClient<runtime.Types.Result.GetResult<Prisma.$LicenseRenewPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Count the number of LicenseRenews.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {LicenseRenewCountArgs} args - Arguments to filter LicenseRenews to count.
* @example
* // Count the number of LicenseRenews
* const count = await prisma.licenseRenew.count({
* where: {
* // ... the filter for the LicenseRenews we want to count
* }
* })
**/
count<T extends LicenseRenewCountArgs>(
args?: Prisma.Subset<T, LicenseRenewCountArgs>,
): Prisma.PrismaPromise<
T extends runtime.Types.Utils.Record<'select', any>
? T['select'] extends true
? number
: Prisma.GetScalarType<T['select'], LicenseRenewCountAggregateOutputType>
: number
>
/**
* Allows you to perform aggregations operations on a LicenseRenew.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {LicenseRenewAggregateArgs} 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 LicenseRenewAggregateArgs>(args: Prisma.Subset<T, LicenseRenewAggregateArgs>): Prisma.PrismaPromise<GetLicenseRenewAggregateType<T>>
/**
* Group by LicenseRenew.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {LicenseRenewGroupByArgs} 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 LicenseRenewGroupByArgs,
HasSelectOrTake extends Prisma.Or<
Prisma.Extends<'skip', Prisma.Keys<T>>,
Prisma.Extends<'take', Prisma.Keys<T>>
>,
OrderByArg extends Prisma.True extends HasSelectOrTake
? { orderBy: LicenseRenewGroupByArgs['orderBy'] }
: { orderBy?: LicenseRenewGroupByArgs['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, LicenseRenewGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetLicenseRenewGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
/**
* Fields of the LicenseRenew model
*/
readonly fields: LicenseRenewFieldRefs;
}
/**
* The delegate class that acts as a "Promise-like" for LicenseRenew.
* 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__LicenseRenewClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
readonly [Symbol.toStringTag]: "PrismaPromise"
charge_transaction<T extends Prisma.LicenseRenewChargeTransactionDefaultArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.LicenseRenewChargeTransactionDefaultArgs<ExtArgs>>): Prisma.Prisma__LicenseRenewChargeTransactionClient<runtime.Types.Result.GetResult<Prisma.$LicenseRenewChargeTransactionPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>
activation<T extends Prisma.LicenseRenew$activationArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.LicenseRenew$activationArgs<ExtArgs>>): Prisma.Prisma__LicenseActivationClient<runtime.Types.Result.GetResult<Prisma.$LicenseActivationPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
/**
* Attaches callbacks for the resolution and/or rejection of the Promise.
* @param onfulfilled The callback to execute when the Promise is resolved.
* @param onrejected The callback to execute when the Promise is rejected.
* @returns A Promise for the completion of which ever callback is executed.
*/
then<TResult1 = T, TResult2 = never>(onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined | null): runtime.Types.Utils.JsPromise<TResult1 | TResult2>
/**
* Attaches a callback for only the rejection of the Promise.
* @param onrejected The callback to execute when the Promise is rejected.
* @returns A Promise for the completion of the callback.
*/
catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): runtime.Types.Utils.JsPromise<T | TResult>
/**
* Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
* resolved value cannot be modified from the callback.
* @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
* @returns A Promise for the completion of the callback.
*/
finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise<T>
}
/**
* Fields of the LicenseRenew model
*/
export interface LicenseRenewFieldRefs {
readonly id: Prisma.FieldRef<"LicenseRenew", 'String'>
readonly expires_at: Prisma.FieldRef<"LicenseRenew", 'DateTime'>
readonly created_at: Prisma.FieldRef<"LicenseRenew", 'DateTime'>
readonly updated_at: Prisma.FieldRef<"LicenseRenew", 'DateTime'>
readonly charge_transaction_id: Prisma.FieldRef<"LicenseRenew", 'String'>
readonly activation_id: Prisma.FieldRef<"LicenseRenew", 'String'>
}
// Custom InputTypes
/**
* LicenseRenew findUnique
*/
export type LicenseRenewFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the LicenseRenew
*/
select?: Prisma.LicenseRenewSelect<ExtArgs> | null
/**
* Omit specific fields from the LicenseRenew
*/
omit?: Prisma.LicenseRenewOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.LicenseRenewInclude<ExtArgs> | null
/**
* Filter, which LicenseRenew to fetch.
*/
where: Prisma.LicenseRenewWhereUniqueInput
}
/**
* LicenseRenew findUniqueOrThrow
*/
export type LicenseRenewFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the LicenseRenew
*/
select?: Prisma.LicenseRenewSelect<ExtArgs> | null
/**
* Omit specific fields from the LicenseRenew
*/
omit?: Prisma.LicenseRenewOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.LicenseRenewInclude<ExtArgs> | null
/**
* Filter, which LicenseRenew to fetch.
*/
where: Prisma.LicenseRenewWhereUniqueInput
}
/**
* LicenseRenew findFirst
*/
export type LicenseRenewFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the LicenseRenew
*/
select?: Prisma.LicenseRenewSelect<ExtArgs> | null
/**
* Omit specific fields from the LicenseRenew
*/
omit?: Prisma.LicenseRenewOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.LicenseRenewInclude<ExtArgs> | null
/**
* Filter, which LicenseRenew to fetch.
*/
where?: Prisma.LicenseRenewWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of LicenseRenews to fetch.
*/
orderBy?: Prisma.LicenseRenewOrderByWithRelationInput | Prisma.LicenseRenewOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the position for searching for LicenseRenews.
*/
cursor?: Prisma.LicenseRenewWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` LicenseRenews 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` LicenseRenews.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
*
* Filter by unique combinations of LicenseRenews.
*/
distinct?: Prisma.LicenseRenewScalarFieldEnum | Prisma.LicenseRenewScalarFieldEnum[]
}
/**
* LicenseRenew findFirstOrThrow
*/
export type LicenseRenewFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the LicenseRenew
*/
select?: Prisma.LicenseRenewSelect<ExtArgs> | null
/**
* Omit specific fields from the LicenseRenew
*/
omit?: Prisma.LicenseRenewOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.LicenseRenewInclude<ExtArgs> | null
/**
* Filter, which LicenseRenew to fetch.
*/
where?: Prisma.LicenseRenewWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of LicenseRenews to fetch.
*/
orderBy?: Prisma.LicenseRenewOrderByWithRelationInput | Prisma.LicenseRenewOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the position for searching for LicenseRenews.
*/
cursor?: Prisma.LicenseRenewWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` LicenseRenews 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` LicenseRenews.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
*
* Filter by unique combinations of LicenseRenews.
*/
distinct?: Prisma.LicenseRenewScalarFieldEnum | Prisma.LicenseRenewScalarFieldEnum[]
}
/**
* LicenseRenew findMany
*/
export type LicenseRenewFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the LicenseRenew
*/
select?: Prisma.LicenseRenewSelect<ExtArgs> | null
/**
* Omit specific fields from the LicenseRenew
*/
omit?: Prisma.LicenseRenewOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.LicenseRenewInclude<ExtArgs> | null
/**
* Filter, which LicenseRenews to fetch.
*/
where?: Prisma.LicenseRenewWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of LicenseRenews to fetch.
*/
orderBy?: Prisma.LicenseRenewOrderByWithRelationInput | Prisma.LicenseRenewOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the position for listing LicenseRenews.
*/
cursor?: Prisma.LicenseRenewWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` LicenseRenews 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` LicenseRenews.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
*
* Filter by unique combinations of LicenseRenews.
*/
distinct?: Prisma.LicenseRenewScalarFieldEnum | Prisma.LicenseRenewScalarFieldEnum[]
}
/**
* LicenseRenew create
*/
export type LicenseRenewCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the LicenseRenew
*/
select?: Prisma.LicenseRenewSelect<ExtArgs> | null
/**
* Omit specific fields from the LicenseRenew
*/
omit?: Prisma.LicenseRenewOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.LicenseRenewInclude<ExtArgs> | null
/**
* The data needed to create a LicenseRenew.
*/
data: Prisma.XOR<Prisma.LicenseRenewCreateInput, Prisma.LicenseRenewUncheckedCreateInput>
}
/**
* LicenseRenew createMany
*/
export type LicenseRenewCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* The data used to create many LicenseRenews.
*/
data: Prisma.LicenseRenewCreateManyInput | Prisma.LicenseRenewCreateManyInput[]
skipDuplicates?: boolean
}
/**
* LicenseRenew update
*/
export type LicenseRenewUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the LicenseRenew
*/
select?: Prisma.LicenseRenewSelect<ExtArgs> | null
/**
* Omit specific fields from the LicenseRenew
*/
omit?: Prisma.LicenseRenewOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.LicenseRenewInclude<ExtArgs> | null
/**
* The data needed to update a LicenseRenew.
*/
data: Prisma.XOR<Prisma.LicenseRenewUpdateInput, Prisma.LicenseRenewUncheckedUpdateInput>
/**
* Choose, which LicenseRenew to update.
*/
where: Prisma.LicenseRenewWhereUniqueInput
}
/**
* LicenseRenew updateMany
*/
export type LicenseRenewUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* The data used to update LicenseRenews.
*/
data: Prisma.XOR<Prisma.LicenseRenewUpdateManyMutationInput, Prisma.LicenseRenewUncheckedUpdateManyInput>
/**
* Filter which LicenseRenews to update
*/
where?: Prisma.LicenseRenewWhereInput
/**
* Limit how many LicenseRenews to update.
*/
limit?: number
}
/**
* LicenseRenew upsert
*/
export type LicenseRenewUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the LicenseRenew
*/
select?: Prisma.LicenseRenewSelect<ExtArgs> | null
/**
* Omit specific fields from the LicenseRenew
*/
omit?: Prisma.LicenseRenewOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.LicenseRenewInclude<ExtArgs> | null
/**
* The filter to search for the LicenseRenew to update in case it exists.
*/
where: Prisma.LicenseRenewWhereUniqueInput
/**
* In case the LicenseRenew found by the `where` argument doesn't exist, create a new LicenseRenew with this data.
*/
create: Prisma.XOR<Prisma.LicenseRenewCreateInput, Prisma.LicenseRenewUncheckedCreateInput>
/**
* In case the LicenseRenew was found with the provided `where` argument, update it with this data.
*/
update: Prisma.XOR<Prisma.LicenseRenewUpdateInput, Prisma.LicenseRenewUncheckedUpdateInput>
}
/**
* LicenseRenew delete
*/
export type LicenseRenewDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the LicenseRenew
*/
select?: Prisma.LicenseRenewSelect<ExtArgs> | null
/**
* Omit specific fields from the LicenseRenew
*/
omit?: Prisma.LicenseRenewOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.LicenseRenewInclude<ExtArgs> | null
/**
* Filter which LicenseRenew to delete.
*/
where: Prisma.LicenseRenewWhereUniqueInput
}
/**
* LicenseRenew deleteMany
*/
export type LicenseRenewDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Filter which LicenseRenews to delete
*/
where?: Prisma.LicenseRenewWhereInput
/**
* Limit how many LicenseRenews to delete.
*/
limit?: number
}
/**
* LicenseRenew.activation
*/
export type LicenseRenew$activationArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the LicenseActivation
*/
select?: Prisma.LicenseActivationSelect<ExtArgs> | null
/**
* Omit specific fields from the LicenseActivation
*/
omit?: Prisma.LicenseActivationOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.LicenseActivationInclude<ExtArgs> | null
where?: Prisma.LicenseActivationWhereInput
}
/**
* LicenseRenew without action
*/
export type LicenseRenewDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the LicenseRenew
*/
select?: Prisma.LicenseRenewSelect<ExtArgs> | null
/**
* Omit specific fields from the LicenseRenew
*/
omit?: Prisma.LicenseRenewOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.LicenseRenewInclude<ExtArgs> | null
}