1896 lines
86 KiB
TypeScript
1896 lines
86 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 `PortalSubscriptionPrice` 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.ts"
|
|
import type * as Prisma from "../internal/prismaNamespace.ts"
|
|
|
|
/**
|
|
* Model PortalSubscriptionPrice
|
|
*
|
|
*/
|
|
export type PortalSubscriptionPriceModel = runtime.Types.Result.DefaultSelection<Prisma.$PortalSubscriptionPricePayload>
|
|
|
|
export type AggregatePortalSubscriptionPrice = {
|
|
_count: PortalSubscriptionPriceCountAggregateOutputType | null
|
|
_avg: PortalSubscriptionPriceAvgAggregateOutputType | null
|
|
_sum: PortalSubscriptionPriceSumAggregateOutputType | null
|
|
_min: PortalSubscriptionPriceMinAggregateOutputType | null
|
|
_max: PortalSubscriptionPriceMaxAggregateOutputType | null
|
|
}
|
|
|
|
export type PortalSubscriptionPriceAvgAggregateOutputType = {
|
|
type: number | null
|
|
billingPeriod: number | null
|
|
price: runtime.Decimal | null
|
|
trialDays: number | null
|
|
}
|
|
|
|
export type PortalSubscriptionPriceSumAggregateOutputType = {
|
|
type: number | null
|
|
billingPeriod: number | null
|
|
price: runtime.Decimal | null
|
|
trialDays: number | null
|
|
}
|
|
|
|
export type PortalSubscriptionPriceMinAggregateOutputType = {
|
|
id: string | null
|
|
portalId: string | null
|
|
subscriptionProductId: string | null
|
|
stripeId: string | null
|
|
type: number | null
|
|
billingPeriod: number | null
|
|
price: runtime.Decimal | null
|
|
currency: string | null
|
|
trialDays: number | null
|
|
active: boolean | null
|
|
}
|
|
|
|
export type PortalSubscriptionPriceMaxAggregateOutputType = {
|
|
id: string | null
|
|
portalId: string | null
|
|
subscriptionProductId: string | null
|
|
stripeId: string | null
|
|
type: number | null
|
|
billingPeriod: number | null
|
|
price: runtime.Decimal | null
|
|
currency: string | null
|
|
trialDays: number | null
|
|
active: boolean | null
|
|
}
|
|
|
|
export type PortalSubscriptionPriceCountAggregateOutputType = {
|
|
id: number
|
|
portalId: number
|
|
subscriptionProductId: number
|
|
stripeId: number
|
|
type: number
|
|
billingPeriod: number
|
|
price: number
|
|
currency: number
|
|
trialDays: number
|
|
active: number
|
|
_all: number
|
|
}
|
|
|
|
|
|
export type PortalSubscriptionPriceAvgAggregateInputType = {
|
|
type?: true
|
|
billingPeriod?: true
|
|
price?: true
|
|
trialDays?: true
|
|
}
|
|
|
|
export type PortalSubscriptionPriceSumAggregateInputType = {
|
|
type?: true
|
|
billingPeriod?: true
|
|
price?: true
|
|
trialDays?: true
|
|
}
|
|
|
|
export type PortalSubscriptionPriceMinAggregateInputType = {
|
|
id?: true
|
|
portalId?: true
|
|
subscriptionProductId?: true
|
|
stripeId?: true
|
|
type?: true
|
|
billingPeriod?: true
|
|
price?: true
|
|
currency?: true
|
|
trialDays?: true
|
|
active?: true
|
|
}
|
|
|
|
export type PortalSubscriptionPriceMaxAggregateInputType = {
|
|
id?: true
|
|
portalId?: true
|
|
subscriptionProductId?: true
|
|
stripeId?: true
|
|
type?: true
|
|
billingPeriod?: true
|
|
price?: true
|
|
currency?: true
|
|
trialDays?: true
|
|
active?: true
|
|
}
|
|
|
|
export type PortalSubscriptionPriceCountAggregateInputType = {
|
|
id?: true
|
|
portalId?: true
|
|
subscriptionProductId?: true
|
|
stripeId?: true
|
|
type?: true
|
|
billingPeriod?: true
|
|
price?: true
|
|
currency?: true
|
|
trialDays?: true
|
|
active?: true
|
|
_all?: true
|
|
}
|
|
|
|
export type PortalSubscriptionPriceAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Filter which PortalSubscriptionPrice to aggregate.
|
|
*/
|
|
where?: Prisma.PortalSubscriptionPriceWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of PortalSubscriptionPrices to fetch.
|
|
*/
|
|
orderBy?: Prisma.PortalSubscriptionPriceOrderByWithRelationInput | Prisma.PortalSubscriptionPriceOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the start position
|
|
*/
|
|
cursor?: Prisma.PortalSubscriptionPriceWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` PortalSubscriptionPrices 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` PortalSubscriptionPrices.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Count returned PortalSubscriptionPrices
|
|
**/
|
|
_count?: true | PortalSubscriptionPriceCountAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to average
|
|
**/
|
|
_avg?: PortalSubscriptionPriceAvgAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to sum
|
|
**/
|
|
_sum?: PortalSubscriptionPriceSumAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to find the minimum value
|
|
**/
|
|
_min?: PortalSubscriptionPriceMinAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to find the maximum value
|
|
**/
|
|
_max?: PortalSubscriptionPriceMaxAggregateInputType
|
|
}
|
|
|
|
export type GetPortalSubscriptionPriceAggregateType<T extends PortalSubscriptionPriceAggregateArgs> = {
|
|
[P in keyof T & keyof AggregatePortalSubscriptionPrice]: P extends '_count' | 'count'
|
|
? T[P] extends true
|
|
? number
|
|
: Prisma.GetScalarType<T[P], AggregatePortalSubscriptionPrice[P]>
|
|
: Prisma.GetScalarType<T[P], AggregatePortalSubscriptionPrice[P]>
|
|
}
|
|
|
|
|
|
|
|
|
|
export type PortalSubscriptionPriceGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
where?: Prisma.PortalSubscriptionPriceWhereInput
|
|
orderBy?: Prisma.PortalSubscriptionPriceOrderByWithAggregationInput | Prisma.PortalSubscriptionPriceOrderByWithAggregationInput[]
|
|
by: Prisma.PortalSubscriptionPriceScalarFieldEnum[] | Prisma.PortalSubscriptionPriceScalarFieldEnum
|
|
having?: Prisma.PortalSubscriptionPriceScalarWhereWithAggregatesInput
|
|
take?: number
|
|
skip?: number
|
|
_count?: PortalSubscriptionPriceCountAggregateInputType | true
|
|
_avg?: PortalSubscriptionPriceAvgAggregateInputType
|
|
_sum?: PortalSubscriptionPriceSumAggregateInputType
|
|
_min?: PortalSubscriptionPriceMinAggregateInputType
|
|
_max?: PortalSubscriptionPriceMaxAggregateInputType
|
|
}
|
|
|
|
export type PortalSubscriptionPriceGroupByOutputType = {
|
|
id: string
|
|
portalId: string
|
|
subscriptionProductId: string
|
|
stripeId: string
|
|
type: number
|
|
billingPeriod: number
|
|
price: runtime.Decimal
|
|
currency: string
|
|
trialDays: number
|
|
active: boolean
|
|
_count: PortalSubscriptionPriceCountAggregateOutputType | null
|
|
_avg: PortalSubscriptionPriceAvgAggregateOutputType | null
|
|
_sum: PortalSubscriptionPriceSumAggregateOutputType | null
|
|
_min: PortalSubscriptionPriceMinAggregateOutputType | null
|
|
_max: PortalSubscriptionPriceMaxAggregateOutputType | null
|
|
}
|
|
|
|
export type GetPortalSubscriptionPriceGroupByPayload<T extends PortalSubscriptionPriceGroupByArgs> = Prisma.PrismaPromise<
|
|
Array<
|
|
Prisma.PickEnumerable<PortalSubscriptionPriceGroupByOutputType, T['by']> &
|
|
{
|
|
[P in ((keyof T) & (keyof PortalSubscriptionPriceGroupByOutputType))]: P extends '_count'
|
|
? T[P] extends boolean
|
|
? number
|
|
: Prisma.GetScalarType<T[P], PortalSubscriptionPriceGroupByOutputType[P]>
|
|
: Prisma.GetScalarType<T[P], PortalSubscriptionPriceGroupByOutputType[P]>
|
|
}
|
|
>
|
|
>
|
|
|
|
|
|
|
|
export type PortalSubscriptionPriceWhereInput = {
|
|
AND?: Prisma.PortalSubscriptionPriceWhereInput | Prisma.PortalSubscriptionPriceWhereInput[]
|
|
OR?: Prisma.PortalSubscriptionPriceWhereInput[]
|
|
NOT?: Prisma.PortalSubscriptionPriceWhereInput | Prisma.PortalSubscriptionPriceWhereInput[]
|
|
id?: Prisma.StringFilter<"PortalSubscriptionPrice"> | string
|
|
portalId?: Prisma.StringFilter<"PortalSubscriptionPrice"> | string
|
|
subscriptionProductId?: Prisma.StringFilter<"PortalSubscriptionPrice"> | string
|
|
stripeId?: Prisma.StringFilter<"PortalSubscriptionPrice"> | string
|
|
type?: Prisma.IntFilter<"PortalSubscriptionPrice"> | number
|
|
billingPeriod?: Prisma.IntFilter<"PortalSubscriptionPrice"> | number
|
|
price?: Prisma.DecimalFilter<"PortalSubscriptionPrice"> | runtime.Decimal | runtime.DecimalJsLike | number | string
|
|
currency?: Prisma.StringFilter<"PortalSubscriptionPrice"> | string
|
|
trialDays?: Prisma.IntFilter<"PortalSubscriptionPrice"> | number
|
|
active?: Prisma.BoolFilter<"PortalSubscriptionPrice"> | boolean
|
|
portal?: Prisma.XOR<Prisma.PortalScalarRelationFilter, Prisma.PortalWhereInput>
|
|
subscriptionProduct?: Prisma.XOR<Prisma.PortalSubscriptionProductScalarRelationFilter, Prisma.PortalSubscriptionProductWhereInput>
|
|
portalUserProductPrices?: Prisma.PortalUserSubscriptionProductPriceListRelationFilter
|
|
}
|
|
|
|
export type PortalSubscriptionPriceOrderByWithRelationInput = {
|
|
id?: Prisma.SortOrder
|
|
portalId?: Prisma.SortOrder
|
|
subscriptionProductId?: Prisma.SortOrder
|
|
stripeId?: Prisma.SortOrder
|
|
type?: Prisma.SortOrder
|
|
billingPeriod?: Prisma.SortOrder
|
|
price?: Prisma.SortOrder
|
|
currency?: Prisma.SortOrder
|
|
trialDays?: Prisma.SortOrder
|
|
active?: Prisma.SortOrder
|
|
portal?: Prisma.PortalOrderByWithRelationInput
|
|
subscriptionProduct?: Prisma.PortalSubscriptionProductOrderByWithRelationInput
|
|
portalUserProductPrices?: Prisma.PortalUserSubscriptionProductPriceOrderByRelationAggregateInput
|
|
}
|
|
|
|
export type PortalSubscriptionPriceWhereUniqueInput = Prisma.AtLeast<{
|
|
id?: string
|
|
AND?: Prisma.PortalSubscriptionPriceWhereInput | Prisma.PortalSubscriptionPriceWhereInput[]
|
|
OR?: Prisma.PortalSubscriptionPriceWhereInput[]
|
|
NOT?: Prisma.PortalSubscriptionPriceWhereInput | Prisma.PortalSubscriptionPriceWhereInput[]
|
|
portalId?: Prisma.StringFilter<"PortalSubscriptionPrice"> | string
|
|
subscriptionProductId?: Prisma.StringFilter<"PortalSubscriptionPrice"> | string
|
|
stripeId?: Prisma.StringFilter<"PortalSubscriptionPrice"> | string
|
|
type?: Prisma.IntFilter<"PortalSubscriptionPrice"> | number
|
|
billingPeriod?: Prisma.IntFilter<"PortalSubscriptionPrice"> | number
|
|
price?: Prisma.DecimalFilter<"PortalSubscriptionPrice"> | runtime.Decimal | runtime.DecimalJsLike | number | string
|
|
currency?: Prisma.StringFilter<"PortalSubscriptionPrice"> | string
|
|
trialDays?: Prisma.IntFilter<"PortalSubscriptionPrice"> | number
|
|
active?: Prisma.BoolFilter<"PortalSubscriptionPrice"> | boolean
|
|
portal?: Prisma.XOR<Prisma.PortalScalarRelationFilter, Prisma.PortalWhereInput>
|
|
subscriptionProduct?: Prisma.XOR<Prisma.PortalSubscriptionProductScalarRelationFilter, Prisma.PortalSubscriptionProductWhereInput>
|
|
portalUserProductPrices?: Prisma.PortalUserSubscriptionProductPriceListRelationFilter
|
|
}, "id">
|
|
|
|
export type PortalSubscriptionPriceOrderByWithAggregationInput = {
|
|
id?: Prisma.SortOrder
|
|
portalId?: Prisma.SortOrder
|
|
subscriptionProductId?: Prisma.SortOrder
|
|
stripeId?: Prisma.SortOrder
|
|
type?: Prisma.SortOrder
|
|
billingPeriod?: Prisma.SortOrder
|
|
price?: Prisma.SortOrder
|
|
currency?: Prisma.SortOrder
|
|
trialDays?: Prisma.SortOrder
|
|
active?: Prisma.SortOrder
|
|
_count?: Prisma.PortalSubscriptionPriceCountOrderByAggregateInput
|
|
_avg?: Prisma.PortalSubscriptionPriceAvgOrderByAggregateInput
|
|
_max?: Prisma.PortalSubscriptionPriceMaxOrderByAggregateInput
|
|
_min?: Prisma.PortalSubscriptionPriceMinOrderByAggregateInput
|
|
_sum?: Prisma.PortalSubscriptionPriceSumOrderByAggregateInput
|
|
}
|
|
|
|
export type PortalSubscriptionPriceScalarWhereWithAggregatesInput = {
|
|
AND?: Prisma.PortalSubscriptionPriceScalarWhereWithAggregatesInput | Prisma.PortalSubscriptionPriceScalarWhereWithAggregatesInput[]
|
|
OR?: Prisma.PortalSubscriptionPriceScalarWhereWithAggregatesInput[]
|
|
NOT?: Prisma.PortalSubscriptionPriceScalarWhereWithAggregatesInput | Prisma.PortalSubscriptionPriceScalarWhereWithAggregatesInput[]
|
|
id?: Prisma.StringWithAggregatesFilter<"PortalSubscriptionPrice"> | string
|
|
portalId?: Prisma.StringWithAggregatesFilter<"PortalSubscriptionPrice"> | string
|
|
subscriptionProductId?: Prisma.StringWithAggregatesFilter<"PortalSubscriptionPrice"> | string
|
|
stripeId?: Prisma.StringWithAggregatesFilter<"PortalSubscriptionPrice"> | string
|
|
type?: Prisma.IntWithAggregatesFilter<"PortalSubscriptionPrice"> | number
|
|
billingPeriod?: Prisma.IntWithAggregatesFilter<"PortalSubscriptionPrice"> | number
|
|
price?: Prisma.DecimalWithAggregatesFilter<"PortalSubscriptionPrice"> | runtime.Decimal | runtime.DecimalJsLike | number | string
|
|
currency?: Prisma.StringWithAggregatesFilter<"PortalSubscriptionPrice"> | string
|
|
trialDays?: Prisma.IntWithAggregatesFilter<"PortalSubscriptionPrice"> | number
|
|
active?: Prisma.BoolWithAggregatesFilter<"PortalSubscriptionPrice"> | boolean
|
|
}
|
|
|
|
export type PortalSubscriptionPriceCreateInput = {
|
|
id?: string
|
|
stripeId: string
|
|
type: number
|
|
billingPeriod: number
|
|
price: runtime.Decimal | runtime.DecimalJsLike | number | string
|
|
currency: string
|
|
trialDays: number
|
|
active: boolean
|
|
portal: Prisma.PortalCreateNestedOneWithoutSubscriptionPricesInput
|
|
subscriptionProduct: Prisma.PortalSubscriptionProductCreateNestedOneWithoutPricesInput
|
|
portalUserProductPrices?: Prisma.PortalUserSubscriptionProductPriceCreateNestedManyWithoutSubscriptionPriceInput
|
|
}
|
|
|
|
export type PortalSubscriptionPriceUncheckedCreateInput = {
|
|
id?: string
|
|
portalId: string
|
|
subscriptionProductId: string
|
|
stripeId: string
|
|
type: number
|
|
billingPeriod: number
|
|
price: runtime.Decimal | runtime.DecimalJsLike | number | string
|
|
currency: string
|
|
trialDays: number
|
|
active: boolean
|
|
portalUserProductPrices?: Prisma.PortalUserSubscriptionProductPriceUncheckedCreateNestedManyWithoutSubscriptionPriceInput
|
|
}
|
|
|
|
export type PortalSubscriptionPriceUpdateInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
stripeId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
type?: Prisma.IntFieldUpdateOperationsInput | number
|
|
billingPeriod?: Prisma.IntFieldUpdateOperationsInput | number
|
|
price?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
|
currency?: Prisma.StringFieldUpdateOperationsInput | string
|
|
trialDays?: Prisma.IntFieldUpdateOperationsInput | number
|
|
active?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
|
portal?: Prisma.PortalUpdateOneRequiredWithoutSubscriptionPricesNestedInput
|
|
subscriptionProduct?: Prisma.PortalSubscriptionProductUpdateOneRequiredWithoutPricesNestedInput
|
|
portalUserProductPrices?: Prisma.PortalUserSubscriptionProductPriceUpdateManyWithoutSubscriptionPriceNestedInput
|
|
}
|
|
|
|
export type PortalSubscriptionPriceUncheckedUpdateInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
portalId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
subscriptionProductId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
stripeId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
type?: Prisma.IntFieldUpdateOperationsInput | number
|
|
billingPeriod?: Prisma.IntFieldUpdateOperationsInput | number
|
|
price?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
|
currency?: Prisma.StringFieldUpdateOperationsInput | string
|
|
trialDays?: Prisma.IntFieldUpdateOperationsInput | number
|
|
active?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
|
portalUserProductPrices?: Prisma.PortalUserSubscriptionProductPriceUncheckedUpdateManyWithoutSubscriptionPriceNestedInput
|
|
}
|
|
|
|
export type PortalSubscriptionPriceCreateManyInput = {
|
|
id?: string
|
|
portalId: string
|
|
subscriptionProductId: string
|
|
stripeId: string
|
|
type: number
|
|
billingPeriod: number
|
|
price: runtime.Decimal | runtime.DecimalJsLike | number | string
|
|
currency: string
|
|
trialDays: number
|
|
active: boolean
|
|
}
|
|
|
|
export type PortalSubscriptionPriceUpdateManyMutationInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
stripeId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
type?: Prisma.IntFieldUpdateOperationsInput | number
|
|
billingPeriod?: Prisma.IntFieldUpdateOperationsInput | number
|
|
price?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
|
currency?: Prisma.StringFieldUpdateOperationsInput | string
|
|
trialDays?: Prisma.IntFieldUpdateOperationsInput | number
|
|
active?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
|
}
|
|
|
|
export type PortalSubscriptionPriceUncheckedUpdateManyInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
portalId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
subscriptionProductId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
stripeId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
type?: Prisma.IntFieldUpdateOperationsInput | number
|
|
billingPeriod?: Prisma.IntFieldUpdateOperationsInput | number
|
|
price?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
|
currency?: Prisma.StringFieldUpdateOperationsInput | string
|
|
trialDays?: Prisma.IntFieldUpdateOperationsInput | number
|
|
active?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
|
}
|
|
|
|
export type PortalSubscriptionPriceListRelationFilter = {
|
|
every?: Prisma.PortalSubscriptionPriceWhereInput
|
|
some?: Prisma.PortalSubscriptionPriceWhereInput
|
|
none?: Prisma.PortalSubscriptionPriceWhereInput
|
|
}
|
|
|
|
export type PortalSubscriptionPriceOrderByRelationAggregateInput = {
|
|
_count?: Prisma.SortOrder
|
|
}
|
|
|
|
export type PortalSubscriptionPriceCountOrderByAggregateInput = {
|
|
id?: Prisma.SortOrder
|
|
portalId?: Prisma.SortOrder
|
|
subscriptionProductId?: Prisma.SortOrder
|
|
stripeId?: Prisma.SortOrder
|
|
type?: Prisma.SortOrder
|
|
billingPeriod?: Prisma.SortOrder
|
|
price?: Prisma.SortOrder
|
|
currency?: Prisma.SortOrder
|
|
trialDays?: Prisma.SortOrder
|
|
active?: Prisma.SortOrder
|
|
}
|
|
|
|
export type PortalSubscriptionPriceAvgOrderByAggregateInput = {
|
|
type?: Prisma.SortOrder
|
|
billingPeriod?: Prisma.SortOrder
|
|
price?: Prisma.SortOrder
|
|
trialDays?: Prisma.SortOrder
|
|
}
|
|
|
|
export type PortalSubscriptionPriceMaxOrderByAggregateInput = {
|
|
id?: Prisma.SortOrder
|
|
portalId?: Prisma.SortOrder
|
|
subscriptionProductId?: Prisma.SortOrder
|
|
stripeId?: Prisma.SortOrder
|
|
type?: Prisma.SortOrder
|
|
billingPeriod?: Prisma.SortOrder
|
|
price?: Prisma.SortOrder
|
|
currency?: Prisma.SortOrder
|
|
trialDays?: Prisma.SortOrder
|
|
active?: Prisma.SortOrder
|
|
}
|
|
|
|
export type PortalSubscriptionPriceMinOrderByAggregateInput = {
|
|
id?: Prisma.SortOrder
|
|
portalId?: Prisma.SortOrder
|
|
subscriptionProductId?: Prisma.SortOrder
|
|
stripeId?: Prisma.SortOrder
|
|
type?: Prisma.SortOrder
|
|
billingPeriod?: Prisma.SortOrder
|
|
price?: Prisma.SortOrder
|
|
currency?: Prisma.SortOrder
|
|
trialDays?: Prisma.SortOrder
|
|
active?: Prisma.SortOrder
|
|
}
|
|
|
|
export type PortalSubscriptionPriceSumOrderByAggregateInput = {
|
|
type?: Prisma.SortOrder
|
|
billingPeriod?: Prisma.SortOrder
|
|
price?: Prisma.SortOrder
|
|
trialDays?: Prisma.SortOrder
|
|
}
|
|
|
|
export type PortalSubscriptionPriceNullableScalarRelationFilter = {
|
|
is?: Prisma.PortalSubscriptionPriceWhereInput | null
|
|
isNot?: Prisma.PortalSubscriptionPriceWhereInput | null
|
|
}
|
|
|
|
export type PortalSubscriptionPriceCreateNestedManyWithoutPortalInput = {
|
|
create?: Prisma.XOR<Prisma.PortalSubscriptionPriceCreateWithoutPortalInput, Prisma.PortalSubscriptionPriceUncheckedCreateWithoutPortalInput> | Prisma.PortalSubscriptionPriceCreateWithoutPortalInput[] | Prisma.PortalSubscriptionPriceUncheckedCreateWithoutPortalInput[]
|
|
connectOrCreate?: Prisma.PortalSubscriptionPriceCreateOrConnectWithoutPortalInput | Prisma.PortalSubscriptionPriceCreateOrConnectWithoutPortalInput[]
|
|
createMany?: Prisma.PortalSubscriptionPriceCreateManyPortalInputEnvelope
|
|
connect?: Prisma.PortalSubscriptionPriceWhereUniqueInput | Prisma.PortalSubscriptionPriceWhereUniqueInput[]
|
|
}
|
|
|
|
export type PortalSubscriptionPriceUncheckedCreateNestedManyWithoutPortalInput = {
|
|
create?: Prisma.XOR<Prisma.PortalSubscriptionPriceCreateWithoutPortalInput, Prisma.PortalSubscriptionPriceUncheckedCreateWithoutPortalInput> | Prisma.PortalSubscriptionPriceCreateWithoutPortalInput[] | Prisma.PortalSubscriptionPriceUncheckedCreateWithoutPortalInput[]
|
|
connectOrCreate?: Prisma.PortalSubscriptionPriceCreateOrConnectWithoutPortalInput | Prisma.PortalSubscriptionPriceCreateOrConnectWithoutPortalInput[]
|
|
createMany?: Prisma.PortalSubscriptionPriceCreateManyPortalInputEnvelope
|
|
connect?: Prisma.PortalSubscriptionPriceWhereUniqueInput | Prisma.PortalSubscriptionPriceWhereUniqueInput[]
|
|
}
|
|
|
|
export type PortalSubscriptionPriceUpdateManyWithoutPortalNestedInput = {
|
|
create?: Prisma.XOR<Prisma.PortalSubscriptionPriceCreateWithoutPortalInput, Prisma.PortalSubscriptionPriceUncheckedCreateWithoutPortalInput> | Prisma.PortalSubscriptionPriceCreateWithoutPortalInput[] | Prisma.PortalSubscriptionPriceUncheckedCreateWithoutPortalInput[]
|
|
connectOrCreate?: Prisma.PortalSubscriptionPriceCreateOrConnectWithoutPortalInput | Prisma.PortalSubscriptionPriceCreateOrConnectWithoutPortalInput[]
|
|
upsert?: Prisma.PortalSubscriptionPriceUpsertWithWhereUniqueWithoutPortalInput | Prisma.PortalSubscriptionPriceUpsertWithWhereUniqueWithoutPortalInput[]
|
|
createMany?: Prisma.PortalSubscriptionPriceCreateManyPortalInputEnvelope
|
|
set?: Prisma.PortalSubscriptionPriceWhereUniqueInput | Prisma.PortalSubscriptionPriceWhereUniqueInput[]
|
|
disconnect?: Prisma.PortalSubscriptionPriceWhereUniqueInput | Prisma.PortalSubscriptionPriceWhereUniqueInput[]
|
|
delete?: Prisma.PortalSubscriptionPriceWhereUniqueInput | Prisma.PortalSubscriptionPriceWhereUniqueInput[]
|
|
connect?: Prisma.PortalSubscriptionPriceWhereUniqueInput | Prisma.PortalSubscriptionPriceWhereUniqueInput[]
|
|
update?: Prisma.PortalSubscriptionPriceUpdateWithWhereUniqueWithoutPortalInput | Prisma.PortalSubscriptionPriceUpdateWithWhereUniqueWithoutPortalInput[]
|
|
updateMany?: Prisma.PortalSubscriptionPriceUpdateManyWithWhereWithoutPortalInput | Prisma.PortalSubscriptionPriceUpdateManyWithWhereWithoutPortalInput[]
|
|
deleteMany?: Prisma.PortalSubscriptionPriceScalarWhereInput | Prisma.PortalSubscriptionPriceScalarWhereInput[]
|
|
}
|
|
|
|
export type PortalSubscriptionPriceUncheckedUpdateManyWithoutPortalNestedInput = {
|
|
create?: Prisma.XOR<Prisma.PortalSubscriptionPriceCreateWithoutPortalInput, Prisma.PortalSubscriptionPriceUncheckedCreateWithoutPortalInput> | Prisma.PortalSubscriptionPriceCreateWithoutPortalInput[] | Prisma.PortalSubscriptionPriceUncheckedCreateWithoutPortalInput[]
|
|
connectOrCreate?: Prisma.PortalSubscriptionPriceCreateOrConnectWithoutPortalInput | Prisma.PortalSubscriptionPriceCreateOrConnectWithoutPortalInput[]
|
|
upsert?: Prisma.PortalSubscriptionPriceUpsertWithWhereUniqueWithoutPortalInput | Prisma.PortalSubscriptionPriceUpsertWithWhereUniqueWithoutPortalInput[]
|
|
createMany?: Prisma.PortalSubscriptionPriceCreateManyPortalInputEnvelope
|
|
set?: Prisma.PortalSubscriptionPriceWhereUniqueInput | Prisma.PortalSubscriptionPriceWhereUniqueInput[]
|
|
disconnect?: Prisma.PortalSubscriptionPriceWhereUniqueInput | Prisma.PortalSubscriptionPriceWhereUniqueInput[]
|
|
delete?: Prisma.PortalSubscriptionPriceWhereUniqueInput | Prisma.PortalSubscriptionPriceWhereUniqueInput[]
|
|
connect?: Prisma.PortalSubscriptionPriceWhereUniqueInput | Prisma.PortalSubscriptionPriceWhereUniqueInput[]
|
|
update?: Prisma.PortalSubscriptionPriceUpdateWithWhereUniqueWithoutPortalInput | Prisma.PortalSubscriptionPriceUpdateWithWhereUniqueWithoutPortalInput[]
|
|
updateMany?: Prisma.PortalSubscriptionPriceUpdateManyWithWhereWithoutPortalInput | Prisma.PortalSubscriptionPriceUpdateManyWithWhereWithoutPortalInput[]
|
|
deleteMany?: Prisma.PortalSubscriptionPriceScalarWhereInput | Prisma.PortalSubscriptionPriceScalarWhereInput[]
|
|
}
|
|
|
|
export type PortalSubscriptionPriceCreateNestedManyWithoutSubscriptionProductInput = {
|
|
create?: Prisma.XOR<Prisma.PortalSubscriptionPriceCreateWithoutSubscriptionProductInput, Prisma.PortalSubscriptionPriceUncheckedCreateWithoutSubscriptionProductInput> | Prisma.PortalSubscriptionPriceCreateWithoutSubscriptionProductInput[] | Prisma.PortalSubscriptionPriceUncheckedCreateWithoutSubscriptionProductInput[]
|
|
connectOrCreate?: Prisma.PortalSubscriptionPriceCreateOrConnectWithoutSubscriptionProductInput | Prisma.PortalSubscriptionPriceCreateOrConnectWithoutSubscriptionProductInput[]
|
|
createMany?: Prisma.PortalSubscriptionPriceCreateManySubscriptionProductInputEnvelope
|
|
connect?: Prisma.PortalSubscriptionPriceWhereUniqueInput | Prisma.PortalSubscriptionPriceWhereUniqueInput[]
|
|
}
|
|
|
|
export type PortalSubscriptionPriceUncheckedCreateNestedManyWithoutSubscriptionProductInput = {
|
|
create?: Prisma.XOR<Prisma.PortalSubscriptionPriceCreateWithoutSubscriptionProductInput, Prisma.PortalSubscriptionPriceUncheckedCreateWithoutSubscriptionProductInput> | Prisma.PortalSubscriptionPriceCreateWithoutSubscriptionProductInput[] | Prisma.PortalSubscriptionPriceUncheckedCreateWithoutSubscriptionProductInput[]
|
|
connectOrCreate?: Prisma.PortalSubscriptionPriceCreateOrConnectWithoutSubscriptionProductInput | Prisma.PortalSubscriptionPriceCreateOrConnectWithoutSubscriptionProductInput[]
|
|
createMany?: Prisma.PortalSubscriptionPriceCreateManySubscriptionProductInputEnvelope
|
|
connect?: Prisma.PortalSubscriptionPriceWhereUniqueInput | Prisma.PortalSubscriptionPriceWhereUniqueInput[]
|
|
}
|
|
|
|
export type PortalSubscriptionPriceUpdateManyWithoutSubscriptionProductNestedInput = {
|
|
create?: Prisma.XOR<Prisma.PortalSubscriptionPriceCreateWithoutSubscriptionProductInput, Prisma.PortalSubscriptionPriceUncheckedCreateWithoutSubscriptionProductInput> | Prisma.PortalSubscriptionPriceCreateWithoutSubscriptionProductInput[] | Prisma.PortalSubscriptionPriceUncheckedCreateWithoutSubscriptionProductInput[]
|
|
connectOrCreate?: Prisma.PortalSubscriptionPriceCreateOrConnectWithoutSubscriptionProductInput | Prisma.PortalSubscriptionPriceCreateOrConnectWithoutSubscriptionProductInput[]
|
|
upsert?: Prisma.PortalSubscriptionPriceUpsertWithWhereUniqueWithoutSubscriptionProductInput | Prisma.PortalSubscriptionPriceUpsertWithWhereUniqueWithoutSubscriptionProductInput[]
|
|
createMany?: Prisma.PortalSubscriptionPriceCreateManySubscriptionProductInputEnvelope
|
|
set?: Prisma.PortalSubscriptionPriceWhereUniqueInput | Prisma.PortalSubscriptionPriceWhereUniqueInput[]
|
|
disconnect?: Prisma.PortalSubscriptionPriceWhereUniqueInput | Prisma.PortalSubscriptionPriceWhereUniqueInput[]
|
|
delete?: Prisma.PortalSubscriptionPriceWhereUniqueInput | Prisma.PortalSubscriptionPriceWhereUniqueInput[]
|
|
connect?: Prisma.PortalSubscriptionPriceWhereUniqueInput | Prisma.PortalSubscriptionPriceWhereUniqueInput[]
|
|
update?: Prisma.PortalSubscriptionPriceUpdateWithWhereUniqueWithoutSubscriptionProductInput | Prisma.PortalSubscriptionPriceUpdateWithWhereUniqueWithoutSubscriptionProductInput[]
|
|
updateMany?: Prisma.PortalSubscriptionPriceUpdateManyWithWhereWithoutSubscriptionProductInput | Prisma.PortalSubscriptionPriceUpdateManyWithWhereWithoutSubscriptionProductInput[]
|
|
deleteMany?: Prisma.PortalSubscriptionPriceScalarWhereInput | Prisma.PortalSubscriptionPriceScalarWhereInput[]
|
|
}
|
|
|
|
export type PortalSubscriptionPriceUncheckedUpdateManyWithoutSubscriptionProductNestedInput = {
|
|
create?: Prisma.XOR<Prisma.PortalSubscriptionPriceCreateWithoutSubscriptionProductInput, Prisma.PortalSubscriptionPriceUncheckedCreateWithoutSubscriptionProductInput> | Prisma.PortalSubscriptionPriceCreateWithoutSubscriptionProductInput[] | Prisma.PortalSubscriptionPriceUncheckedCreateWithoutSubscriptionProductInput[]
|
|
connectOrCreate?: Prisma.PortalSubscriptionPriceCreateOrConnectWithoutSubscriptionProductInput | Prisma.PortalSubscriptionPriceCreateOrConnectWithoutSubscriptionProductInput[]
|
|
upsert?: Prisma.PortalSubscriptionPriceUpsertWithWhereUniqueWithoutSubscriptionProductInput | Prisma.PortalSubscriptionPriceUpsertWithWhereUniqueWithoutSubscriptionProductInput[]
|
|
createMany?: Prisma.PortalSubscriptionPriceCreateManySubscriptionProductInputEnvelope
|
|
set?: Prisma.PortalSubscriptionPriceWhereUniqueInput | Prisma.PortalSubscriptionPriceWhereUniqueInput[]
|
|
disconnect?: Prisma.PortalSubscriptionPriceWhereUniqueInput | Prisma.PortalSubscriptionPriceWhereUniqueInput[]
|
|
delete?: Prisma.PortalSubscriptionPriceWhereUniqueInput | Prisma.PortalSubscriptionPriceWhereUniqueInput[]
|
|
connect?: Prisma.PortalSubscriptionPriceWhereUniqueInput | Prisma.PortalSubscriptionPriceWhereUniqueInput[]
|
|
update?: Prisma.PortalSubscriptionPriceUpdateWithWhereUniqueWithoutSubscriptionProductInput | Prisma.PortalSubscriptionPriceUpdateWithWhereUniqueWithoutSubscriptionProductInput[]
|
|
updateMany?: Prisma.PortalSubscriptionPriceUpdateManyWithWhereWithoutSubscriptionProductInput | Prisma.PortalSubscriptionPriceUpdateManyWithWhereWithoutSubscriptionProductInput[]
|
|
deleteMany?: Prisma.PortalSubscriptionPriceScalarWhereInput | Prisma.PortalSubscriptionPriceScalarWhereInput[]
|
|
}
|
|
|
|
export type PortalSubscriptionPriceCreateNestedOneWithoutPortalUserProductPricesInput = {
|
|
create?: Prisma.XOR<Prisma.PortalSubscriptionPriceCreateWithoutPortalUserProductPricesInput, Prisma.PortalSubscriptionPriceUncheckedCreateWithoutPortalUserProductPricesInput>
|
|
connectOrCreate?: Prisma.PortalSubscriptionPriceCreateOrConnectWithoutPortalUserProductPricesInput
|
|
connect?: Prisma.PortalSubscriptionPriceWhereUniqueInput
|
|
}
|
|
|
|
export type PortalSubscriptionPriceUpdateOneWithoutPortalUserProductPricesNestedInput = {
|
|
create?: Prisma.XOR<Prisma.PortalSubscriptionPriceCreateWithoutPortalUserProductPricesInput, Prisma.PortalSubscriptionPriceUncheckedCreateWithoutPortalUserProductPricesInput>
|
|
connectOrCreate?: Prisma.PortalSubscriptionPriceCreateOrConnectWithoutPortalUserProductPricesInput
|
|
upsert?: Prisma.PortalSubscriptionPriceUpsertWithoutPortalUserProductPricesInput
|
|
disconnect?: Prisma.PortalSubscriptionPriceWhereInput | boolean
|
|
delete?: Prisma.PortalSubscriptionPriceWhereInput | boolean
|
|
connect?: Prisma.PortalSubscriptionPriceWhereUniqueInput
|
|
update?: Prisma.XOR<Prisma.XOR<Prisma.PortalSubscriptionPriceUpdateToOneWithWhereWithoutPortalUserProductPricesInput, Prisma.PortalSubscriptionPriceUpdateWithoutPortalUserProductPricesInput>, Prisma.PortalSubscriptionPriceUncheckedUpdateWithoutPortalUserProductPricesInput>
|
|
}
|
|
|
|
export type PortalSubscriptionPriceCreateWithoutPortalInput = {
|
|
id?: string
|
|
stripeId: string
|
|
type: number
|
|
billingPeriod: number
|
|
price: runtime.Decimal | runtime.DecimalJsLike | number | string
|
|
currency: string
|
|
trialDays: number
|
|
active: boolean
|
|
subscriptionProduct: Prisma.PortalSubscriptionProductCreateNestedOneWithoutPricesInput
|
|
portalUserProductPrices?: Prisma.PortalUserSubscriptionProductPriceCreateNestedManyWithoutSubscriptionPriceInput
|
|
}
|
|
|
|
export type PortalSubscriptionPriceUncheckedCreateWithoutPortalInput = {
|
|
id?: string
|
|
subscriptionProductId: string
|
|
stripeId: string
|
|
type: number
|
|
billingPeriod: number
|
|
price: runtime.Decimal | runtime.DecimalJsLike | number | string
|
|
currency: string
|
|
trialDays: number
|
|
active: boolean
|
|
portalUserProductPrices?: Prisma.PortalUserSubscriptionProductPriceUncheckedCreateNestedManyWithoutSubscriptionPriceInput
|
|
}
|
|
|
|
export type PortalSubscriptionPriceCreateOrConnectWithoutPortalInput = {
|
|
where: Prisma.PortalSubscriptionPriceWhereUniqueInput
|
|
create: Prisma.XOR<Prisma.PortalSubscriptionPriceCreateWithoutPortalInput, Prisma.PortalSubscriptionPriceUncheckedCreateWithoutPortalInput>
|
|
}
|
|
|
|
export type PortalSubscriptionPriceCreateManyPortalInputEnvelope = {
|
|
data: Prisma.PortalSubscriptionPriceCreateManyPortalInput | Prisma.PortalSubscriptionPriceCreateManyPortalInput[]
|
|
skipDuplicates?: boolean
|
|
}
|
|
|
|
export type PortalSubscriptionPriceUpsertWithWhereUniqueWithoutPortalInput = {
|
|
where: Prisma.PortalSubscriptionPriceWhereUniqueInput
|
|
update: Prisma.XOR<Prisma.PortalSubscriptionPriceUpdateWithoutPortalInput, Prisma.PortalSubscriptionPriceUncheckedUpdateWithoutPortalInput>
|
|
create: Prisma.XOR<Prisma.PortalSubscriptionPriceCreateWithoutPortalInput, Prisma.PortalSubscriptionPriceUncheckedCreateWithoutPortalInput>
|
|
}
|
|
|
|
export type PortalSubscriptionPriceUpdateWithWhereUniqueWithoutPortalInput = {
|
|
where: Prisma.PortalSubscriptionPriceWhereUniqueInput
|
|
data: Prisma.XOR<Prisma.PortalSubscriptionPriceUpdateWithoutPortalInput, Prisma.PortalSubscriptionPriceUncheckedUpdateWithoutPortalInput>
|
|
}
|
|
|
|
export type PortalSubscriptionPriceUpdateManyWithWhereWithoutPortalInput = {
|
|
where: Prisma.PortalSubscriptionPriceScalarWhereInput
|
|
data: Prisma.XOR<Prisma.PortalSubscriptionPriceUpdateManyMutationInput, Prisma.PortalSubscriptionPriceUncheckedUpdateManyWithoutPortalInput>
|
|
}
|
|
|
|
export type PortalSubscriptionPriceScalarWhereInput = {
|
|
AND?: Prisma.PortalSubscriptionPriceScalarWhereInput | Prisma.PortalSubscriptionPriceScalarWhereInput[]
|
|
OR?: Prisma.PortalSubscriptionPriceScalarWhereInput[]
|
|
NOT?: Prisma.PortalSubscriptionPriceScalarWhereInput | Prisma.PortalSubscriptionPriceScalarWhereInput[]
|
|
id?: Prisma.StringFilter<"PortalSubscriptionPrice"> | string
|
|
portalId?: Prisma.StringFilter<"PortalSubscriptionPrice"> | string
|
|
subscriptionProductId?: Prisma.StringFilter<"PortalSubscriptionPrice"> | string
|
|
stripeId?: Prisma.StringFilter<"PortalSubscriptionPrice"> | string
|
|
type?: Prisma.IntFilter<"PortalSubscriptionPrice"> | number
|
|
billingPeriod?: Prisma.IntFilter<"PortalSubscriptionPrice"> | number
|
|
price?: Prisma.DecimalFilter<"PortalSubscriptionPrice"> | runtime.Decimal | runtime.DecimalJsLike | number | string
|
|
currency?: Prisma.StringFilter<"PortalSubscriptionPrice"> | string
|
|
trialDays?: Prisma.IntFilter<"PortalSubscriptionPrice"> | number
|
|
active?: Prisma.BoolFilter<"PortalSubscriptionPrice"> | boolean
|
|
}
|
|
|
|
export type PortalSubscriptionPriceCreateWithoutSubscriptionProductInput = {
|
|
id?: string
|
|
stripeId: string
|
|
type: number
|
|
billingPeriod: number
|
|
price: runtime.Decimal | runtime.DecimalJsLike | number | string
|
|
currency: string
|
|
trialDays: number
|
|
active: boolean
|
|
portal: Prisma.PortalCreateNestedOneWithoutSubscriptionPricesInput
|
|
portalUserProductPrices?: Prisma.PortalUserSubscriptionProductPriceCreateNestedManyWithoutSubscriptionPriceInput
|
|
}
|
|
|
|
export type PortalSubscriptionPriceUncheckedCreateWithoutSubscriptionProductInput = {
|
|
id?: string
|
|
portalId: string
|
|
stripeId: string
|
|
type: number
|
|
billingPeriod: number
|
|
price: runtime.Decimal | runtime.DecimalJsLike | number | string
|
|
currency: string
|
|
trialDays: number
|
|
active: boolean
|
|
portalUserProductPrices?: Prisma.PortalUserSubscriptionProductPriceUncheckedCreateNestedManyWithoutSubscriptionPriceInput
|
|
}
|
|
|
|
export type PortalSubscriptionPriceCreateOrConnectWithoutSubscriptionProductInput = {
|
|
where: Prisma.PortalSubscriptionPriceWhereUniqueInput
|
|
create: Prisma.XOR<Prisma.PortalSubscriptionPriceCreateWithoutSubscriptionProductInput, Prisma.PortalSubscriptionPriceUncheckedCreateWithoutSubscriptionProductInput>
|
|
}
|
|
|
|
export type PortalSubscriptionPriceCreateManySubscriptionProductInputEnvelope = {
|
|
data: Prisma.PortalSubscriptionPriceCreateManySubscriptionProductInput | Prisma.PortalSubscriptionPriceCreateManySubscriptionProductInput[]
|
|
skipDuplicates?: boolean
|
|
}
|
|
|
|
export type PortalSubscriptionPriceUpsertWithWhereUniqueWithoutSubscriptionProductInput = {
|
|
where: Prisma.PortalSubscriptionPriceWhereUniqueInput
|
|
update: Prisma.XOR<Prisma.PortalSubscriptionPriceUpdateWithoutSubscriptionProductInput, Prisma.PortalSubscriptionPriceUncheckedUpdateWithoutSubscriptionProductInput>
|
|
create: Prisma.XOR<Prisma.PortalSubscriptionPriceCreateWithoutSubscriptionProductInput, Prisma.PortalSubscriptionPriceUncheckedCreateWithoutSubscriptionProductInput>
|
|
}
|
|
|
|
export type PortalSubscriptionPriceUpdateWithWhereUniqueWithoutSubscriptionProductInput = {
|
|
where: Prisma.PortalSubscriptionPriceWhereUniqueInput
|
|
data: Prisma.XOR<Prisma.PortalSubscriptionPriceUpdateWithoutSubscriptionProductInput, Prisma.PortalSubscriptionPriceUncheckedUpdateWithoutSubscriptionProductInput>
|
|
}
|
|
|
|
export type PortalSubscriptionPriceUpdateManyWithWhereWithoutSubscriptionProductInput = {
|
|
where: Prisma.PortalSubscriptionPriceScalarWhereInput
|
|
data: Prisma.XOR<Prisma.PortalSubscriptionPriceUpdateManyMutationInput, Prisma.PortalSubscriptionPriceUncheckedUpdateManyWithoutSubscriptionProductInput>
|
|
}
|
|
|
|
export type PortalSubscriptionPriceCreateWithoutPortalUserProductPricesInput = {
|
|
id?: string
|
|
stripeId: string
|
|
type: number
|
|
billingPeriod: number
|
|
price: runtime.Decimal | runtime.DecimalJsLike | number | string
|
|
currency: string
|
|
trialDays: number
|
|
active: boolean
|
|
portal: Prisma.PortalCreateNestedOneWithoutSubscriptionPricesInput
|
|
subscriptionProduct: Prisma.PortalSubscriptionProductCreateNestedOneWithoutPricesInput
|
|
}
|
|
|
|
export type PortalSubscriptionPriceUncheckedCreateWithoutPortalUserProductPricesInput = {
|
|
id?: string
|
|
portalId: string
|
|
subscriptionProductId: string
|
|
stripeId: string
|
|
type: number
|
|
billingPeriod: number
|
|
price: runtime.Decimal | runtime.DecimalJsLike | number | string
|
|
currency: string
|
|
trialDays: number
|
|
active: boolean
|
|
}
|
|
|
|
export type PortalSubscriptionPriceCreateOrConnectWithoutPortalUserProductPricesInput = {
|
|
where: Prisma.PortalSubscriptionPriceWhereUniqueInput
|
|
create: Prisma.XOR<Prisma.PortalSubscriptionPriceCreateWithoutPortalUserProductPricesInput, Prisma.PortalSubscriptionPriceUncheckedCreateWithoutPortalUserProductPricesInput>
|
|
}
|
|
|
|
export type PortalSubscriptionPriceUpsertWithoutPortalUserProductPricesInput = {
|
|
update: Prisma.XOR<Prisma.PortalSubscriptionPriceUpdateWithoutPortalUserProductPricesInput, Prisma.PortalSubscriptionPriceUncheckedUpdateWithoutPortalUserProductPricesInput>
|
|
create: Prisma.XOR<Prisma.PortalSubscriptionPriceCreateWithoutPortalUserProductPricesInput, Prisma.PortalSubscriptionPriceUncheckedCreateWithoutPortalUserProductPricesInput>
|
|
where?: Prisma.PortalSubscriptionPriceWhereInput
|
|
}
|
|
|
|
export type PortalSubscriptionPriceUpdateToOneWithWhereWithoutPortalUserProductPricesInput = {
|
|
where?: Prisma.PortalSubscriptionPriceWhereInput
|
|
data: Prisma.XOR<Prisma.PortalSubscriptionPriceUpdateWithoutPortalUserProductPricesInput, Prisma.PortalSubscriptionPriceUncheckedUpdateWithoutPortalUserProductPricesInput>
|
|
}
|
|
|
|
export type PortalSubscriptionPriceUpdateWithoutPortalUserProductPricesInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
stripeId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
type?: Prisma.IntFieldUpdateOperationsInput | number
|
|
billingPeriod?: Prisma.IntFieldUpdateOperationsInput | number
|
|
price?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
|
currency?: Prisma.StringFieldUpdateOperationsInput | string
|
|
trialDays?: Prisma.IntFieldUpdateOperationsInput | number
|
|
active?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
|
portal?: Prisma.PortalUpdateOneRequiredWithoutSubscriptionPricesNestedInput
|
|
subscriptionProduct?: Prisma.PortalSubscriptionProductUpdateOneRequiredWithoutPricesNestedInput
|
|
}
|
|
|
|
export type PortalSubscriptionPriceUncheckedUpdateWithoutPortalUserProductPricesInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
portalId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
subscriptionProductId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
stripeId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
type?: Prisma.IntFieldUpdateOperationsInput | number
|
|
billingPeriod?: Prisma.IntFieldUpdateOperationsInput | number
|
|
price?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
|
currency?: Prisma.StringFieldUpdateOperationsInput | string
|
|
trialDays?: Prisma.IntFieldUpdateOperationsInput | number
|
|
active?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
|
}
|
|
|
|
export type PortalSubscriptionPriceCreateManyPortalInput = {
|
|
id?: string
|
|
subscriptionProductId: string
|
|
stripeId: string
|
|
type: number
|
|
billingPeriod: number
|
|
price: runtime.Decimal | runtime.DecimalJsLike | number | string
|
|
currency: string
|
|
trialDays: number
|
|
active: boolean
|
|
}
|
|
|
|
export type PortalSubscriptionPriceUpdateWithoutPortalInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
stripeId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
type?: Prisma.IntFieldUpdateOperationsInput | number
|
|
billingPeriod?: Prisma.IntFieldUpdateOperationsInput | number
|
|
price?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
|
currency?: Prisma.StringFieldUpdateOperationsInput | string
|
|
trialDays?: Prisma.IntFieldUpdateOperationsInput | number
|
|
active?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
|
subscriptionProduct?: Prisma.PortalSubscriptionProductUpdateOneRequiredWithoutPricesNestedInput
|
|
portalUserProductPrices?: Prisma.PortalUserSubscriptionProductPriceUpdateManyWithoutSubscriptionPriceNestedInput
|
|
}
|
|
|
|
export type PortalSubscriptionPriceUncheckedUpdateWithoutPortalInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
subscriptionProductId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
stripeId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
type?: Prisma.IntFieldUpdateOperationsInput | number
|
|
billingPeriod?: Prisma.IntFieldUpdateOperationsInput | number
|
|
price?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
|
currency?: Prisma.StringFieldUpdateOperationsInput | string
|
|
trialDays?: Prisma.IntFieldUpdateOperationsInput | number
|
|
active?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
|
portalUserProductPrices?: Prisma.PortalUserSubscriptionProductPriceUncheckedUpdateManyWithoutSubscriptionPriceNestedInput
|
|
}
|
|
|
|
export type PortalSubscriptionPriceUncheckedUpdateManyWithoutPortalInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
subscriptionProductId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
stripeId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
type?: Prisma.IntFieldUpdateOperationsInput | number
|
|
billingPeriod?: Prisma.IntFieldUpdateOperationsInput | number
|
|
price?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
|
currency?: Prisma.StringFieldUpdateOperationsInput | string
|
|
trialDays?: Prisma.IntFieldUpdateOperationsInput | number
|
|
active?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
|
}
|
|
|
|
export type PortalSubscriptionPriceCreateManySubscriptionProductInput = {
|
|
id?: string
|
|
portalId: string
|
|
stripeId: string
|
|
type: number
|
|
billingPeriod: number
|
|
price: runtime.Decimal | runtime.DecimalJsLike | number | string
|
|
currency: string
|
|
trialDays: number
|
|
active: boolean
|
|
}
|
|
|
|
export type PortalSubscriptionPriceUpdateWithoutSubscriptionProductInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
stripeId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
type?: Prisma.IntFieldUpdateOperationsInput | number
|
|
billingPeriod?: Prisma.IntFieldUpdateOperationsInput | number
|
|
price?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
|
currency?: Prisma.StringFieldUpdateOperationsInput | string
|
|
trialDays?: Prisma.IntFieldUpdateOperationsInput | number
|
|
active?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
|
portal?: Prisma.PortalUpdateOneRequiredWithoutSubscriptionPricesNestedInput
|
|
portalUserProductPrices?: Prisma.PortalUserSubscriptionProductPriceUpdateManyWithoutSubscriptionPriceNestedInput
|
|
}
|
|
|
|
export type PortalSubscriptionPriceUncheckedUpdateWithoutSubscriptionProductInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
portalId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
stripeId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
type?: Prisma.IntFieldUpdateOperationsInput | number
|
|
billingPeriod?: Prisma.IntFieldUpdateOperationsInput | number
|
|
price?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
|
currency?: Prisma.StringFieldUpdateOperationsInput | string
|
|
trialDays?: Prisma.IntFieldUpdateOperationsInput | number
|
|
active?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
|
portalUserProductPrices?: Prisma.PortalUserSubscriptionProductPriceUncheckedUpdateManyWithoutSubscriptionPriceNestedInput
|
|
}
|
|
|
|
export type PortalSubscriptionPriceUncheckedUpdateManyWithoutSubscriptionProductInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
portalId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
stripeId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
type?: Prisma.IntFieldUpdateOperationsInput | number
|
|
billingPeriod?: Prisma.IntFieldUpdateOperationsInput | number
|
|
price?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
|
currency?: Prisma.StringFieldUpdateOperationsInput | string
|
|
trialDays?: Prisma.IntFieldUpdateOperationsInput | number
|
|
active?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
|
}
|
|
|
|
|
|
/**
|
|
* Count Type PortalSubscriptionPriceCountOutputType
|
|
*/
|
|
|
|
export type PortalSubscriptionPriceCountOutputType = {
|
|
portalUserProductPrices: number
|
|
}
|
|
|
|
export type PortalSubscriptionPriceCountOutputTypeSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
portalUserProductPrices?: boolean | PortalSubscriptionPriceCountOutputTypeCountPortalUserProductPricesArgs
|
|
}
|
|
|
|
/**
|
|
* PortalSubscriptionPriceCountOutputType without action
|
|
*/
|
|
export type PortalSubscriptionPriceCountOutputTypeDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the PortalSubscriptionPriceCountOutputType
|
|
*/
|
|
select?: Prisma.PortalSubscriptionPriceCountOutputTypeSelect<ExtArgs> | null
|
|
}
|
|
|
|
/**
|
|
* PortalSubscriptionPriceCountOutputType without action
|
|
*/
|
|
export type PortalSubscriptionPriceCountOutputTypeCountPortalUserProductPricesArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
where?: Prisma.PortalUserSubscriptionProductPriceWhereInput
|
|
}
|
|
|
|
|
|
export type PortalSubscriptionPriceSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
id?: boolean
|
|
portalId?: boolean
|
|
subscriptionProductId?: boolean
|
|
stripeId?: boolean
|
|
type?: boolean
|
|
billingPeriod?: boolean
|
|
price?: boolean
|
|
currency?: boolean
|
|
trialDays?: boolean
|
|
active?: boolean
|
|
portal?: boolean | Prisma.PortalDefaultArgs<ExtArgs>
|
|
subscriptionProduct?: boolean | Prisma.PortalSubscriptionProductDefaultArgs<ExtArgs>
|
|
portalUserProductPrices?: boolean | Prisma.PortalSubscriptionPrice$portalUserProductPricesArgs<ExtArgs>
|
|
_count?: boolean | Prisma.PortalSubscriptionPriceCountOutputTypeDefaultArgs<ExtArgs>
|
|
}, ExtArgs["result"]["portalSubscriptionPrice"]>
|
|
|
|
export type PortalSubscriptionPriceSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
id?: boolean
|
|
portalId?: boolean
|
|
subscriptionProductId?: boolean
|
|
stripeId?: boolean
|
|
type?: boolean
|
|
billingPeriod?: boolean
|
|
price?: boolean
|
|
currency?: boolean
|
|
trialDays?: boolean
|
|
active?: boolean
|
|
portal?: boolean | Prisma.PortalDefaultArgs<ExtArgs>
|
|
subscriptionProduct?: boolean | Prisma.PortalSubscriptionProductDefaultArgs<ExtArgs>
|
|
}, ExtArgs["result"]["portalSubscriptionPrice"]>
|
|
|
|
export type PortalSubscriptionPriceSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
id?: boolean
|
|
portalId?: boolean
|
|
subscriptionProductId?: boolean
|
|
stripeId?: boolean
|
|
type?: boolean
|
|
billingPeriod?: boolean
|
|
price?: boolean
|
|
currency?: boolean
|
|
trialDays?: boolean
|
|
active?: boolean
|
|
portal?: boolean | Prisma.PortalDefaultArgs<ExtArgs>
|
|
subscriptionProduct?: boolean | Prisma.PortalSubscriptionProductDefaultArgs<ExtArgs>
|
|
}, ExtArgs["result"]["portalSubscriptionPrice"]>
|
|
|
|
export type PortalSubscriptionPriceSelectScalar = {
|
|
id?: boolean
|
|
portalId?: boolean
|
|
subscriptionProductId?: boolean
|
|
stripeId?: boolean
|
|
type?: boolean
|
|
billingPeriod?: boolean
|
|
price?: boolean
|
|
currency?: boolean
|
|
trialDays?: boolean
|
|
active?: boolean
|
|
}
|
|
|
|
export type PortalSubscriptionPriceOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "portalId" | "subscriptionProductId" | "stripeId" | "type" | "billingPeriod" | "price" | "currency" | "trialDays" | "active", ExtArgs["result"]["portalSubscriptionPrice"]>
|
|
export type PortalSubscriptionPriceInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
portal?: boolean | Prisma.PortalDefaultArgs<ExtArgs>
|
|
subscriptionProduct?: boolean | Prisma.PortalSubscriptionProductDefaultArgs<ExtArgs>
|
|
portalUserProductPrices?: boolean | Prisma.PortalSubscriptionPrice$portalUserProductPricesArgs<ExtArgs>
|
|
_count?: boolean | Prisma.PortalSubscriptionPriceCountOutputTypeDefaultArgs<ExtArgs>
|
|
}
|
|
export type PortalSubscriptionPriceIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
portal?: boolean | Prisma.PortalDefaultArgs<ExtArgs>
|
|
subscriptionProduct?: boolean | Prisma.PortalSubscriptionProductDefaultArgs<ExtArgs>
|
|
}
|
|
export type PortalSubscriptionPriceIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
portal?: boolean | Prisma.PortalDefaultArgs<ExtArgs>
|
|
subscriptionProduct?: boolean | Prisma.PortalSubscriptionProductDefaultArgs<ExtArgs>
|
|
}
|
|
|
|
export type $PortalSubscriptionPricePayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
name: "PortalSubscriptionPrice"
|
|
objects: {
|
|
portal: Prisma.$PortalPayload<ExtArgs>
|
|
subscriptionProduct: Prisma.$PortalSubscriptionProductPayload<ExtArgs>
|
|
portalUserProductPrices: Prisma.$PortalUserSubscriptionProductPricePayload<ExtArgs>[]
|
|
}
|
|
scalars: runtime.Types.Extensions.GetPayloadResult<{
|
|
id: string
|
|
portalId: string
|
|
subscriptionProductId: string
|
|
stripeId: string
|
|
type: number
|
|
billingPeriod: number
|
|
price: runtime.Decimal
|
|
currency: string
|
|
trialDays: number
|
|
active: boolean
|
|
}, ExtArgs["result"]["portalSubscriptionPrice"]>
|
|
composites: {}
|
|
}
|
|
|
|
export type PortalSubscriptionPriceGetPayload<S extends boolean | null | undefined | PortalSubscriptionPriceDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$PortalSubscriptionPricePayload, S>
|
|
|
|
export type PortalSubscriptionPriceCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> =
|
|
Omit<PortalSubscriptionPriceFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
|
|
select?: PortalSubscriptionPriceCountAggregateInputType | true
|
|
}
|
|
|
|
export interface PortalSubscriptionPriceDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
|
|
[K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['PortalSubscriptionPrice'], meta: { name: 'PortalSubscriptionPrice' } }
|
|
/**
|
|
* Find zero or one PortalSubscriptionPrice that matches the filter.
|
|
* @param {PortalSubscriptionPriceFindUniqueArgs} args - Arguments to find a PortalSubscriptionPrice
|
|
* @example
|
|
* // Get one PortalSubscriptionPrice
|
|
* const portalSubscriptionPrice = await prisma.portalSubscriptionPrice.findUnique({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findUnique<T extends PortalSubscriptionPriceFindUniqueArgs>(args: Prisma.SelectSubset<T, PortalSubscriptionPriceFindUniqueArgs<ExtArgs>>): Prisma.Prisma__PortalSubscriptionPriceClient<runtime.Types.Result.GetResult<Prisma.$PortalSubscriptionPricePayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Find one PortalSubscriptionPrice that matches the filter or throw an error with `error.code='P2025'`
|
|
* if no matches were found.
|
|
* @param {PortalSubscriptionPriceFindUniqueOrThrowArgs} args - Arguments to find a PortalSubscriptionPrice
|
|
* @example
|
|
* // Get one PortalSubscriptionPrice
|
|
* const portalSubscriptionPrice = await prisma.portalSubscriptionPrice.findUniqueOrThrow({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findUniqueOrThrow<T extends PortalSubscriptionPriceFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, PortalSubscriptionPriceFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__PortalSubscriptionPriceClient<runtime.Types.Result.GetResult<Prisma.$PortalSubscriptionPricePayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Find the first PortalSubscriptionPrice 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 {PortalSubscriptionPriceFindFirstArgs} args - Arguments to find a PortalSubscriptionPrice
|
|
* @example
|
|
* // Get one PortalSubscriptionPrice
|
|
* const portalSubscriptionPrice = await prisma.portalSubscriptionPrice.findFirst({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findFirst<T extends PortalSubscriptionPriceFindFirstArgs>(args?: Prisma.SelectSubset<T, PortalSubscriptionPriceFindFirstArgs<ExtArgs>>): Prisma.Prisma__PortalSubscriptionPriceClient<runtime.Types.Result.GetResult<Prisma.$PortalSubscriptionPricePayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Find the first PortalSubscriptionPrice 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 {PortalSubscriptionPriceFindFirstOrThrowArgs} args - Arguments to find a PortalSubscriptionPrice
|
|
* @example
|
|
* // Get one PortalSubscriptionPrice
|
|
* const portalSubscriptionPrice = await prisma.portalSubscriptionPrice.findFirstOrThrow({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findFirstOrThrow<T extends PortalSubscriptionPriceFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, PortalSubscriptionPriceFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__PortalSubscriptionPriceClient<runtime.Types.Result.GetResult<Prisma.$PortalSubscriptionPricePayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Find zero or more PortalSubscriptionPrices 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 {PortalSubscriptionPriceFindManyArgs} args - Arguments to filter and select certain fields only.
|
|
* @example
|
|
* // Get all PortalSubscriptionPrices
|
|
* const portalSubscriptionPrices = await prisma.portalSubscriptionPrice.findMany()
|
|
*
|
|
* // Get first 10 PortalSubscriptionPrices
|
|
* const portalSubscriptionPrices = await prisma.portalSubscriptionPrice.findMany({ take: 10 })
|
|
*
|
|
* // Only select the `id`
|
|
* const portalSubscriptionPriceWithIdOnly = await prisma.portalSubscriptionPrice.findMany({ select: { id: true } })
|
|
*
|
|
*/
|
|
findMany<T extends PortalSubscriptionPriceFindManyArgs>(args?: Prisma.SelectSubset<T, PortalSubscriptionPriceFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$PortalSubscriptionPricePayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
|
|
|
|
/**
|
|
* Create a PortalSubscriptionPrice.
|
|
* @param {PortalSubscriptionPriceCreateArgs} args - Arguments to create a PortalSubscriptionPrice.
|
|
* @example
|
|
* // Create one PortalSubscriptionPrice
|
|
* const PortalSubscriptionPrice = await prisma.portalSubscriptionPrice.create({
|
|
* data: {
|
|
* // ... data to create a PortalSubscriptionPrice
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
create<T extends PortalSubscriptionPriceCreateArgs>(args: Prisma.SelectSubset<T, PortalSubscriptionPriceCreateArgs<ExtArgs>>): Prisma.Prisma__PortalSubscriptionPriceClient<runtime.Types.Result.GetResult<Prisma.$PortalSubscriptionPricePayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Create many PortalSubscriptionPrices.
|
|
* @param {PortalSubscriptionPriceCreateManyArgs} args - Arguments to create many PortalSubscriptionPrices.
|
|
* @example
|
|
* // Create many PortalSubscriptionPrices
|
|
* const portalSubscriptionPrice = await prisma.portalSubscriptionPrice.createMany({
|
|
* data: [
|
|
* // ... provide data here
|
|
* ]
|
|
* })
|
|
*
|
|
*/
|
|
createMany<T extends PortalSubscriptionPriceCreateManyArgs>(args?: Prisma.SelectSubset<T, PortalSubscriptionPriceCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
|
|
|
/**
|
|
* Create many PortalSubscriptionPrices and returns the data saved in the database.
|
|
* @param {PortalSubscriptionPriceCreateManyAndReturnArgs} args - Arguments to create many PortalSubscriptionPrices.
|
|
* @example
|
|
* // Create many PortalSubscriptionPrices
|
|
* const portalSubscriptionPrice = await prisma.portalSubscriptionPrice.createManyAndReturn({
|
|
* data: [
|
|
* // ... provide data here
|
|
* ]
|
|
* })
|
|
*
|
|
* // Create many PortalSubscriptionPrices and only return the `id`
|
|
* const portalSubscriptionPriceWithIdOnly = await prisma.portalSubscriptionPrice.createManyAndReturn({
|
|
* select: { id: true },
|
|
* data: [
|
|
* // ... provide data here
|
|
* ]
|
|
* })
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
*
|
|
*/
|
|
createManyAndReturn<T extends PortalSubscriptionPriceCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, PortalSubscriptionPriceCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$PortalSubscriptionPricePayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>
|
|
|
|
/**
|
|
* Delete a PortalSubscriptionPrice.
|
|
* @param {PortalSubscriptionPriceDeleteArgs} args - Arguments to delete one PortalSubscriptionPrice.
|
|
* @example
|
|
* // Delete one PortalSubscriptionPrice
|
|
* const PortalSubscriptionPrice = await prisma.portalSubscriptionPrice.delete({
|
|
* where: {
|
|
* // ... filter to delete one PortalSubscriptionPrice
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
delete<T extends PortalSubscriptionPriceDeleteArgs>(args: Prisma.SelectSubset<T, PortalSubscriptionPriceDeleteArgs<ExtArgs>>): Prisma.Prisma__PortalSubscriptionPriceClient<runtime.Types.Result.GetResult<Prisma.$PortalSubscriptionPricePayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Update one PortalSubscriptionPrice.
|
|
* @param {PortalSubscriptionPriceUpdateArgs} args - Arguments to update one PortalSubscriptionPrice.
|
|
* @example
|
|
* // Update one PortalSubscriptionPrice
|
|
* const portalSubscriptionPrice = await prisma.portalSubscriptionPrice.update({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* },
|
|
* data: {
|
|
* // ... provide data here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
update<T extends PortalSubscriptionPriceUpdateArgs>(args: Prisma.SelectSubset<T, PortalSubscriptionPriceUpdateArgs<ExtArgs>>): Prisma.Prisma__PortalSubscriptionPriceClient<runtime.Types.Result.GetResult<Prisma.$PortalSubscriptionPricePayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Delete zero or more PortalSubscriptionPrices.
|
|
* @param {PortalSubscriptionPriceDeleteManyArgs} args - Arguments to filter PortalSubscriptionPrices to delete.
|
|
* @example
|
|
* // Delete a few PortalSubscriptionPrices
|
|
* const { count } = await prisma.portalSubscriptionPrice.deleteMany({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
deleteMany<T extends PortalSubscriptionPriceDeleteManyArgs>(args?: Prisma.SelectSubset<T, PortalSubscriptionPriceDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
|
|
|
/**
|
|
* Update zero or more PortalSubscriptionPrices.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {PortalSubscriptionPriceUpdateManyArgs} args - Arguments to update one or more rows.
|
|
* @example
|
|
* // Update many PortalSubscriptionPrices
|
|
* const portalSubscriptionPrice = await prisma.portalSubscriptionPrice.updateMany({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* },
|
|
* data: {
|
|
* // ... provide data here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
updateMany<T extends PortalSubscriptionPriceUpdateManyArgs>(args: Prisma.SelectSubset<T, PortalSubscriptionPriceUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
|
|
|
/**
|
|
* Update zero or more PortalSubscriptionPrices and returns the data updated in the database.
|
|
* @param {PortalSubscriptionPriceUpdateManyAndReturnArgs} args - Arguments to update many PortalSubscriptionPrices.
|
|
* @example
|
|
* // Update many PortalSubscriptionPrices
|
|
* const portalSubscriptionPrice = await prisma.portalSubscriptionPrice.updateManyAndReturn({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* },
|
|
* data: [
|
|
* // ... provide data here
|
|
* ]
|
|
* })
|
|
*
|
|
* // Update zero or more PortalSubscriptionPrices and only return the `id`
|
|
* const portalSubscriptionPriceWithIdOnly = await prisma.portalSubscriptionPrice.updateManyAndReturn({
|
|
* select: { id: true },
|
|
* where: {
|
|
* // ... provide filter here
|
|
* },
|
|
* data: [
|
|
* // ... provide data here
|
|
* ]
|
|
* })
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
*
|
|
*/
|
|
updateManyAndReturn<T extends PortalSubscriptionPriceUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, PortalSubscriptionPriceUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$PortalSubscriptionPricePayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>
|
|
|
|
/**
|
|
* Create or update one PortalSubscriptionPrice.
|
|
* @param {PortalSubscriptionPriceUpsertArgs} args - Arguments to update or create a PortalSubscriptionPrice.
|
|
* @example
|
|
* // Update or create a PortalSubscriptionPrice
|
|
* const portalSubscriptionPrice = await prisma.portalSubscriptionPrice.upsert({
|
|
* create: {
|
|
* // ... data to create a PortalSubscriptionPrice
|
|
* },
|
|
* update: {
|
|
* // ... in case it already exists, update
|
|
* },
|
|
* where: {
|
|
* // ... the filter for the PortalSubscriptionPrice we want to update
|
|
* }
|
|
* })
|
|
*/
|
|
upsert<T extends PortalSubscriptionPriceUpsertArgs>(args: Prisma.SelectSubset<T, PortalSubscriptionPriceUpsertArgs<ExtArgs>>): Prisma.Prisma__PortalSubscriptionPriceClient<runtime.Types.Result.GetResult<Prisma.$PortalSubscriptionPricePayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
|
|
/**
|
|
* Count the number of PortalSubscriptionPrices.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {PortalSubscriptionPriceCountArgs} args - Arguments to filter PortalSubscriptionPrices to count.
|
|
* @example
|
|
* // Count the number of PortalSubscriptionPrices
|
|
* const count = await prisma.portalSubscriptionPrice.count({
|
|
* where: {
|
|
* // ... the filter for the PortalSubscriptionPrices we want to count
|
|
* }
|
|
* })
|
|
**/
|
|
count<T extends PortalSubscriptionPriceCountArgs>(
|
|
args?: Prisma.Subset<T, PortalSubscriptionPriceCountArgs>,
|
|
): Prisma.PrismaPromise<
|
|
T extends runtime.Types.Utils.Record<'select', any>
|
|
? T['select'] extends true
|
|
? number
|
|
: Prisma.GetScalarType<T['select'], PortalSubscriptionPriceCountAggregateOutputType>
|
|
: number
|
|
>
|
|
|
|
/**
|
|
* Allows you to perform aggregations operations on a PortalSubscriptionPrice.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {PortalSubscriptionPriceAggregateArgs} 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 PortalSubscriptionPriceAggregateArgs>(args: Prisma.Subset<T, PortalSubscriptionPriceAggregateArgs>): Prisma.PrismaPromise<GetPortalSubscriptionPriceAggregateType<T>>
|
|
|
|
/**
|
|
* Group by PortalSubscriptionPrice.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {PortalSubscriptionPriceGroupByArgs} 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 PortalSubscriptionPriceGroupByArgs,
|
|
HasSelectOrTake extends Prisma.Or<
|
|
Prisma.Extends<'skip', Prisma.Keys<T>>,
|
|
Prisma.Extends<'take', Prisma.Keys<T>>
|
|
>,
|
|
OrderByArg extends Prisma.True extends HasSelectOrTake
|
|
? { orderBy: PortalSubscriptionPriceGroupByArgs['orderBy'] }
|
|
: { orderBy?: PortalSubscriptionPriceGroupByArgs['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, PortalSubscriptionPriceGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetPortalSubscriptionPriceGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
|
|
/**
|
|
* Fields of the PortalSubscriptionPrice model
|
|
*/
|
|
readonly fields: PortalSubscriptionPriceFieldRefs;
|
|
}
|
|
|
|
/**
|
|
* The delegate class that acts as a "Promise-like" for PortalSubscriptionPrice.
|
|
* 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__PortalSubscriptionPriceClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
|
|
readonly [Symbol.toStringTag]: "PrismaPromise"
|
|
portal<T extends Prisma.PortalDefaultArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.PortalDefaultArgs<ExtArgs>>): Prisma.Prisma__PortalClient<runtime.Types.Result.GetResult<Prisma.$PortalPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>
|
|
subscriptionProduct<T extends Prisma.PortalSubscriptionProductDefaultArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.PortalSubscriptionProductDefaultArgs<ExtArgs>>): Prisma.Prisma__PortalSubscriptionProductClient<runtime.Types.Result.GetResult<Prisma.$PortalSubscriptionProductPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>
|
|
portalUserProductPrices<T extends Prisma.PortalSubscriptionPrice$portalUserProductPricesArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.PortalSubscriptionPrice$portalUserProductPricesArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$PortalUserSubscriptionProductPricePayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
|
|
/**
|
|
* Attaches callbacks for the resolution and/or rejection of the Promise.
|
|
* @param onfulfilled The callback to execute when the Promise is resolved.
|
|
* @param onrejected The callback to execute when the Promise is rejected.
|
|
* @returns A Promise for the completion of which ever callback is executed.
|
|
*/
|
|
then<TResult1 = T, TResult2 = never>(onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined | null): runtime.Types.Utils.JsPromise<TResult1 | TResult2>
|
|
/**
|
|
* Attaches a callback for only the rejection of the Promise.
|
|
* @param onrejected The callback to execute when the Promise is rejected.
|
|
* @returns A Promise for the completion of the callback.
|
|
*/
|
|
catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): runtime.Types.Utils.JsPromise<T | TResult>
|
|
/**
|
|
* Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
|
|
* resolved value cannot be modified from the callback.
|
|
* @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
|
|
* @returns A Promise for the completion of the callback.
|
|
*/
|
|
finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise<T>
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
* Fields of the PortalSubscriptionPrice model
|
|
*/
|
|
export interface PortalSubscriptionPriceFieldRefs {
|
|
readonly id: Prisma.FieldRef<"PortalSubscriptionPrice", 'String'>
|
|
readonly portalId: Prisma.FieldRef<"PortalSubscriptionPrice", 'String'>
|
|
readonly subscriptionProductId: Prisma.FieldRef<"PortalSubscriptionPrice", 'String'>
|
|
readonly stripeId: Prisma.FieldRef<"PortalSubscriptionPrice", 'String'>
|
|
readonly type: Prisma.FieldRef<"PortalSubscriptionPrice", 'Int'>
|
|
readonly billingPeriod: Prisma.FieldRef<"PortalSubscriptionPrice", 'Int'>
|
|
readonly price: Prisma.FieldRef<"PortalSubscriptionPrice", 'Decimal'>
|
|
readonly currency: Prisma.FieldRef<"PortalSubscriptionPrice", 'String'>
|
|
readonly trialDays: Prisma.FieldRef<"PortalSubscriptionPrice", 'Int'>
|
|
readonly active: Prisma.FieldRef<"PortalSubscriptionPrice", 'Boolean'>
|
|
}
|
|
|
|
|
|
// Custom InputTypes
|
|
/**
|
|
* PortalSubscriptionPrice findUnique
|
|
*/
|
|
export type PortalSubscriptionPriceFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the PortalSubscriptionPrice
|
|
*/
|
|
select?: Prisma.PortalSubscriptionPriceSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the PortalSubscriptionPrice
|
|
*/
|
|
omit?: Prisma.PortalSubscriptionPriceOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.PortalSubscriptionPriceInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which PortalSubscriptionPrice to fetch.
|
|
*/
|
|
where: Prisma.PortalSubscriptionPriceWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* PortalSubscriptionPrice findUniqueOrThrow
|
|
*/
|
|
export type PortalSubscriptionPriceFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the PortalSubscriptionPrice
|
|
*/
|
|
select?: Prisma.PortalSubscriptionPriceSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the PortalSubscriptionPrice
|
|
*/
|
|
omit?: Prisma.PortalSubscriptionPriceOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.PortalSubscriptionPriceInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which PortalSubscriptionPrice to fetch.
|
|
*/
|
|
where: Prisma.PortalSubscriptionPriceWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* PortalSubscriptionPrice findFirst
|
|
*/
|
|
export type PortalSubscriptionPriceFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the PortalSubscriptionPrice
|
|
*/
|
|
select?: Prisma.PortalSubscriptionPriceSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the PortalSubscriptionPrice
|
|
*/
|
|
omit?: Prisma.PortalSubscriptionPriceOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.PortalSubscriptionPriceInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which PortalSubscriptionPrice to fetch.
|
|
*/
|
|
where?: Prisma.PortalSubscriptionPriceWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of PortalSubscriptionPrices to fetch.
|
|
*/
|
|
orderBy?: Prisma.PortalSubscriptionPriceOrderByWithRelationInput | Prisma.PortalSubscriptionPriceOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for searching for PortalSubscriptionPrices.
|
|
*/
|
|
cursor?: Prisma.PortalSubscriptionPriceWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` PortalSubscriptionPrices 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` PortalSubscriptionPrices.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
*
|
|
* Filter by unique combinations of PortalSubscriptionPrices.
|
|
*/
|
|
distinct?: Prisma.PortalSubscriptionPriceScalarFieldEnum | Prisma.PortalSubscriptionPriceScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* PortalSubscriptionPrice findFirstOrThrow
|
|
*/
|
|
export type PortalSubscriptionPriceFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the PortalSubscriptionPrice
|
|
*/
|
|
select?: Prisma.PortalSubscriptionPriceSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the PortalSubscriptionPrice
|
|
*/
|
|
omit?: Prisma.PortalSubscriptionPriceOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.PortalSubscriptionPriceInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which PortalSubscriptionPrice to fetch.
|
|
*/
|
|
where?: Prisma.PortalSubscriptionPriceWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of PortalSubscriptionPrices to fetch.
|
|
*/
|
|
orderBy?: Prisma.PortalSubscriptionPriceOrderByWithRelationInput | Prisma.PortalSubscriptionPriceOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for searching for PortalSubscriptionPrices.
|
|
*/
|
|
cursor?: Prisma.PortalSubscriptionPriceWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` PortalSubscriptionPrices 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` PortalSubscriptionPrices.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
*
|
|
* Filter by unique combinations of PortalSubscriptionPrices.
|
|
*/
|
|
distinct?: Prisma.PortalSubscriptionPriceScalarFieldEnum | Prisma.PortalSubscriptionPriceScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* PortalSubscriptionPrice findMany
|
|
*/
|
|
export type PortalSubscriptionPriceFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the PortalSubscriptionPrice
|
|
*/
|
|
select?: Prisma.PortalSubscriptionPriceSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the PortalSubscriptionPrice
|
|
*/
|
|
omit?: Prisma.PortalSubscriptionPriceOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.PortalSubscriptionPriceInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which PortalSubscriptionPrices to fetch.
|
|
*/
|
|
where?: Prisma.PortalSubscriptionPriceWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of PortalSubscriptionPrices to fetch.
|
|
*/
|
|
orderBy?: Prisma.PortalSubscriptionPriceOrderByWithRelationInput | Prisma.PortalSubscriptionPriceOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for listing PortalSubscriptionPrices.
|
|
*/
|
|
cursor?: Prisma.PortalSubscriptionPriceWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` PortalSubscriptionPrices 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` PortalSubscriptionPrices.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
*
|
|
* Filter by unique combinations of PortalSubscriptionPrices.
|
|
*/
|
|
distinct?: Prisma.PortalSubscriptionPriceScalarFieldEnum | Prisma.PortalSubscriptionPriceScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* PortalSubscriptionPrice create
|
|
*/
|
|
export type PortalSubscriptionPriceCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the PortalSubscriptionPrice
|
|
*/
|
|
select?: Prisma.PortalSubscriptionPriceSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the PortalSubscriptionPrice
|
|
*/
|
|
omit?: Prisma.PortalSubscriptionPriceOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.PortalSubscriptionPriceInclude<ExtArgs> | null
|
|
/**
|
|
* The data needed to create a PortalSubscriptionPrice.
|
|
*/
|
|
data: Prisma.XOR<Prisma.PortalSubscriptionPriceCreateInput, Prisma.PortalSubscriptionPriceUncheckedCreateInput>
|
|
}
|
|
|
|
/**
|
|
* PortalSubscriptionPrice createMany
|
|
*/
|
|
export type PortalSubscriptionPriceCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* The data used to create many PortalSubscriptionPrices.
|
|
*/
|
|
data: Prisma.PortalSubscriptionPriceCreateManyInput | Prisma.PortalSubscriptionPriceCreateManyInput[]
|
|
skipDuplicates?: boolean
|
|
}
|
|
|
|
/**
|
|
* PortalSubscriptionPrice createManyAndReturn
|
|
*/
|
|
export type PortalSubscriptionPriceCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the PortalSubscriptionPrice
|
|
*/
|
|
select?: Prisma.PortalSubscriptionPriceSelectCreateManyAndReturn<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the PortalSubscriptionPrice
|
|
*/
|
|
omit?: Prisma.PortalSubscriptionPriceOmit<ExtArgs> | null
|
|
/**
|
|
* The data used to create many PortalSubscriptionPrices.
|
|
*/
|
|
data: Prisma.PortalSubscriptionPriceCreateManyInput | Prisma.PortalSubscriptionPriceCreateManyInput[]
|
|
skipDuplicates?: boolean
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.PortalSubscriptionPriceIncludeCreateManyAndReturn<ExtArgs> | null
|
|
}
|
|
|
|
/**
|
|
* PortalSubscriptionPrice update
|
|
*/
|
|
export type PortalSubscriptionPriceUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the PortalSubscriptionPrice
|
|
*/
|
|
select?: Prisma.PortalSubscriptionPriceSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the PortalSubscriptionPrice
|
|
*/
|
|
omit?: Prisma.PortalSubscriptionPriceOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.PortalSubscriptionPriceInclude<ExtArgs> | null
|
|
/**
|
|
* The data needed to update a PortalSubscriptionPrice.
|
|
*/
|
|
data: Prisma.XOR<Prisma.PortalSubscriptionPriceUpdateInput, Prisma.PortalSubscriptionPriceUncheckedUpdateInput>
|
|
/**
|
|
* Choose, which PortalSubscriptionPrice to update.
|
|
*/
|
|
where: Prisma.PortalSubscriptionPriceWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* PortalSubscriptionPrice updateMany
|
|
*/
|
|
export type PortalSubscriptionPriceUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* The data used to update PortalSubscriptionPrices.
|
|
*/
|
|
data: Prisma.XOR<Prisma.PortalSubscriptionPriceUpdateManyMutationInput, Prisma.PortalSubscriptionPriceUncheckedUpdateManyInput>
|
|
/**
|
|
* Filter which PortalSubscriptionPrices to update
|
|
*/
|
|
where?: Prisma.PortalSubscriptionPriceWhereInput
|
|
/**
|
|
* Limit how many PortalSubscriptionPrices to update.
|
|
*/
|
|
limit?: number
|
|
}
|
|
|
|
/**
|
|
* PortalSubscriptionPrice updateManyAndReturn
|
|
*/
|
|
export type PortalSubscriptionPriceUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the PortalSubscriptionPrice
|
|
*/
|
|
select?: Prisma.PortalSubscriptionPriceSelectUpdateManyAndReturn<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the PortalSubscriptionPrice
|
|
*/
|
|
omit?: Prisma.PortalSubscriptionPriceOmit<ExtArgs> | null
|
|
/**
|
|
* The data used to update PortalSubscriptionPrices.
|
|
*/
|
|
data: Prisma.XOR<Prisma.PortalSubscriptionPriceUpdateManyMutationInput, Prisma.PortalSubscriptionPriceUncheckedUpdateManyInput>
|
|
/**
|
|
* Filter which PortalSubscriptionPrices to update
|
|
*/
|
|
where?: Prisma.PortalSubscriptionPriceWhereInput
|
|
/**
|
|
* Limit how many PortalSubscriptionPrices to update.
|
|
*/
|
|
limit?: number
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.PortalSubscriptionPriceIncludeUpdateManyAndReturn<ExtArgs> | null
|
|
}
|
|
|
|
/**
|
|
* PortalSubscriptionPrice upsert
|
|
*/
|
|
export type PortalSubscriptionPriceUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the PortalSubscriptionPrice
|
|
*/
|
|
select?: Prisma.PortalSubscriptionPriceSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the PortalSubscriptionPrice
|
|
*/
|
|
omit?: Prisma.PortalSubscriptionPriceOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.PortalSubscriptionPriceInclude<ExtArgs> | null
|
|
/**
|
|
* The filter to search for the PortalSubscriptionPrice to update in case it exists.
|
|
*/
|
|
where: Prisma.PortalSubscriptionPriceWhereUniqueInput
|
|
/**
|
|
* In case the PortalSubscriptionPrice found by the `where` argument doesn't exist, create a new PortalSubscriptionPrice with this data.
|
|
*/
|
|
create: Prisma.XOR<Prisma.PortalSubscriptionPriceCreateInput, Prisma.PortalSubscriptionPriceUncheckedCreateInput>
|
|
/**
|
|
* In case the PortalSubscriptionPrice was found with the provided `where` argument, update it with this data.
|
|
*/
|
|
update: Prisma.XOR<Prisma.PortalSubscriptionPriceUpdateInput, Prisma.PortalSubscriptionPriceUncheckedUpdateInput>
|
|
}
|
|
|
|
/**
|
|
* PortalSubscriptionPrice delete
|
|
*/
|
|
export type PortalSubscriptionPriceDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the PortalSubscriptionPrice
|
|
*/
|
|
select?: Prisma.PortalSubscriptionPriceSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the PortalSubscriptionPrice
|
|
*/
|
|
omit?: Prisma.PortalSubscriptionPriceOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.PortalSubscriptionPriceInclude<ExtArgs> | null
|
|
/**
|
|
* Filter which PortalSubscriptionPrice to delete.
|
|
*/
|
|
where: Prisma.PortalSubscriptionPriceWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* PortalSubscriptionPrice deleteMany
|
|
*/
|
|
export type PortalSubscriptionPriceDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Filter which PortalSubscriptionPrices to delete
|
|
*/
|
|
where?: Prisma.PortalSubscriptionPriceWhereInput
|
|
/**
|
|
* Limit how many PortalSubscriptionPrices to delete.
|
|
*/
|
|
limit?: number
|
|
}
|
|
|
|
/**
|
|
* PortalSubscriptionPrice.portalUserProductPrices
|
|
*/
|
|
export type PortalSubscriptionPrice$portalUserProductPricesArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the PortalUserSubscriptionProductPrice
|
|
*/
|
|
select?: Prisma.PortalUserSubscriptionProductPriceSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the PortalUserSubscriptionProductPrice
|
|
*/
|
|
omit?: Prisma.PortalUserSubscriptionProductPriceOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.PortalUserSubscriptionProductPriceInclude<ExtArgs> | null
|
|
where?: Prisma.PortalUserSubscriptionProductPriceWhereInput
|
|
orderBy?: Prisma.PortalUserSubscriptionProductPriceOrderByWithRelationInput | Prisma.PortalUserSubscriptionProductPriceOrderByWithRelationInput[]
|
|
cursor?: Prisma.PortalUserSubscriptionProductPriceWhereUniqueInput
|
|
take?: number
|
|
skip?: number
|
|
distinct?: Prisma.PortalUserSubscriptionProductPriceScalarFieldEnum | Prisma.PortalUserSubscriptionProductPriceScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* PortalSubscriptionPrice without action
|
|
*/
|
|
export type PortalSubscriptionPriceDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the PortalSubscriptionPrice
|
|
*/
|
|
select?: Prisma.PortalSubscriptionPriceSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the PortalSubscriptionPrice
|
|
*/
|
|
omit?: Prisma.PortalSubscriptionPriceOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.PortalSubscriptionPriceInclude<ExtArgs> | null
|
|
}
|