1953 lines
89 KiB
TypeScript
1953 lines
89 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 `SubscriptionUsageBasedPrice` 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 SubscriptionUsageBasedPrice
|
|
*
|
|
*/
|
|
export type SubscriptionUsageBasedPriceModel = runtime.Types.Result.DefaultSelection<Prisma.$SubscriptionUsageBasedPricePayload>
|
|
|
|
export type AggregateSubscriptionUsageBasedPrice = {
|
|
_count: SubscriptionUsageBasedPriceCountAggregateOutputType | null
|
|
_avg: SubscriptionUsageBasedPriceAvgAggregateOutputType | null
|
|
_sum: SubscriptionUsageBasedPriceSumAggregateOutputType | null
|
|
_min: SubscriptionUsageBasedPriceMinAggregateOutputType | null
|
|
_max: SubscriptionUsageBasedPriceMaxAggregateOutputType | null
|
|
}
|
|
|
|
export type SubscriptionUsageBasedPriceAvgAggregateOutputType = {
|
|
billingPeriod: number | null
|
|
}
|
|
|
|
export type SubscriptionUsageBasedPriceSumAggregateOutputType = {
|
|
billingPeriod: number | null
|
|
}
|
|
|
|
export type SubscriptionUsageBasedPriceMinAggregateOutputType = {
|
|
id: string | null
|
|
subscriptionProductId: string | null
|
|
stripeId: string | null
|
|
billingPeriod: number | null
|
|
currency: string | null
|
|
unit: string | null
|
|
unitTitle: string | null
|
|
unitTitlePlural: string | null
|
|
usageType: string | null
|
|
aggregateUsage: string | null
|
|
tiersMode: string | null
|
|
billingScheme: string | null
|
|
}
|
|
|
|
export type SubscriptionUsageBasedPriceMaxAggregateOutputType = {
|
|
id: string | null
|
|
subscriptionProductId: string | null
|
|
stripeId: string | null
|
|
billingPeriod: number | null
|
|
currency: string | null
|
|
unit: string | null
|
|
unitTitle: string | null
|
|
unitTitlePlural: string | null
|
|
usageType: string | null
|
|
aggregateUsage: string | null
|
|
tiersMode: string | null
|
|
billingScheme: string | null
|
|
}
|
|
|
|
export type SubscriptionUsageBasedPriceCountAggregateOutputType = {
|
|
id: number
|
|
subscriptionProductId: number
|
|
stripeId: number
|
|
billingPeriod: number
|
|
currency: number
|
|
unit: number
|
|
unitTitle: number
|
|
unitTitlePlural: number
|
|
usageType: number
|
|
aggregateUsage: number
|
|
tiersMode: number
|
|
billingScheme: number
|
|
_all: number
|
|
}
|
|
|
|
|
|
export type SubscriptionUsageBasedPriceAvgAggregateInputType = {
|
|
billingPeriod?: true
|
|
}
|
|
|
|
export type SubscriptionUsageBasedPriceSumAggregateInputType = {
|
|
billingPeriod?: true
|
|
}
|
|
|
|
export type SubscriptionUsageBasedPriceMinAggregateInputType = {
|
|
id?: true
|
|
subscriptionProductId?: true
|
|
stripeId?: true
|
|
billingPeriod?: true
|
|
currency?: true
|
|
unit?: true
|
|
unitTitle?: true
|
|
unitTitlePlural?: true
|
|
usageType?: true
|
|
aggregateUsage?: true
|
|
tiersMode?: true
|
|
billingScheme?: true
|
|
}
|
|
|
|
export type SubscriptionUsageBasedPriceMaxAggregateInputType = {
|
|
id?: true
|
|
subscriptionProductId?: true
|
|
stripeId?: true
|
|
billingPeriod?: true
|
|
currency?: true
|
|
unit?: true
|
|
unitTitle?: true
|
|
unitTitlePlural?: true
|
|
usageType?: true
|
|
aggregateUsage?: true
|
|
tiersMode?: true
|
|
billingScheme?: true
|
|
}
|
|
|
|
export type SubscriptionUsageBasedPriceCountAggregateInputType = {
|
|
id?: true
|
|
subscriptionProductId?: true
|
|
stripeId?: true
|
|
billingPeriod?: true
|
|
currency?: true
|
|
unit?: true
|
|
unitTitle?: true
|
|
unitTitlePlural?: true
|
|
usageType?: true
|
|
aggregateUsage?: true
|
|
tiersMode?: true
|
|
billingScheme?: true
|
|
_all?: true
|
|
}
|
|
|
|
export type SubscriptionUsageBasedPriceAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Filter which SubscriptionUsageBasedPrice to aggregate.
|
|
*/
|
|
where?: Prisma.SubscriptionUsageBasedPriceWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of SubscriptionUsageBasedPrices to fetch.
|
|
*/
|
|
orderBy?: Prisma.SubscriptionUsageBasedPriceOrderByWithRelationInput | Prisma.SubscriptionUsageBasedPriceOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the start position
|
|
*/
|
|
cursor?: Prisma.SubscriptionUsageBasedPriceWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` SubscriptionUsageBasedPrices 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` SubscriptionUsageBasedPrices.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Count returned SubscriptionUsageBasedPrices
|
|
**/
|
|
_count?: true | SubscriptionUsageBasedPriceCountAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to average
|
|
**/
|
|
_avg?: SubscriptionUsageBasedPriceAvgAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to sum
|
|
**/
|
|
_sum?: SubscriptionUsageBasedPriceSumAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to find the minimum value
|
|
**/
|
|
_min?: SubscriptionUsageBasedPriceMinAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to find the maximum value
|
|
**/
|
|
_max?: SubscriptionUsageBasedPriceMaxAggregateInputType
|
|
}
|
|
|
|
export type GetSubscriptionUsageBasedPriceAggregateType<T extends SubscriptionUsageBasedPriceAggregateArgs> = {
|
|
[P in keyof T & keyof AggregateSubscriptionUsageBasedPrice]: P extends '_count' | 'count'
|
|
? T[P] extends true
|
|
? number
|
|
: Prisma.GetScalarType<T[P], AggregateSubscriptionUsageBasedPrice[P]>
|
|
: Prisma.GetScalarType<T[P], AggregateSubscriptionUsageBasedPrice[P]>
|
|
}
|
|
|
|
|
|
|
|
|
|
export type SubscriptionUsageBasedPriceGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
where?: Prisma.SubscriptionUsageBasedPriceWhereInput
|
|
orderBy?: Prisma.SubscriptionUsageBasedPriceOrderByWithAggregationInput | Prisma.SubscriptionUsageBasedPriceOrderByWithAggregationInput[]
|
|
by: Prisma.SubscriptionUsageBasedPriceScalarFieldEnum[] | Prisma.SubscriptionUsageBasedPriceScalarFieldEnum
|
|
having?: Prisma.SubscriptionUsageBasedPriceScalarWhereWithAggregatesInput
|
|
take?: number
|
|
skip?: number
|
|
_count?: SubscriptionUsageBasedPriceCountAggregateInputType | true
|
|
_avg?: SubscriptionUsageBasedPriceAvgAggregateInputType
|
|
_sum?: SubscriptionUsageBasedPriceSumAggregateInputType
|
|
_min?: SubscriptionUsageBasedPriceMinAggregateInputType
|
|
_max?: SubscriptionUsageBasedPriceMaxAggregateInputType
|
|
}
|
|
|
|
export type SubscriptionUsageBasedPriceGroupByOutputType = {
|
|
id: string
|
|
subscriptionProductId: string
|
|
stripeId: string
|
|
billingPeriod: number
|
|
currency: string
|
|
unit: string
|
|
unitTitle: string
|
|
unitTitlePlural: string
|
|
usageType: string
|
|
aggregateUsage: string
|
|
tiersMode: string
|
|
billingScheme: string
|
|
_count: SubscriptionUsageBasedPriceCountAggregateOutputType | null
|
|
_avg: SubscriptionUsageBasedPriceAvgAggregateOutputType | null
|
|
_sum: SubscriptionUsageBasedPriceSumAggregateOutputType | null
|
|
_min: SubscriptionUsageBasedPriceMinAggregateOutputType | null
|
|
_max: SubscriptionUsageBasedPriceMaxAggregateOutputType | null
|
|
}
|
|
|
|
export type GetSubscriptionUsageBasedPriceGroupByPayload<T extends SubscriptionUsageBasedPriceGroupByArgs> = Prisma.PrismaPromise<
|
|
Array<
|
|
Prisma.PickEnumerable<SubscriptionUsageBasedPriceGroupByOutputType, T['by']> &
|
|
{
|
|
[P in ((keyof T) & (keyof SubscriptionUsageBasedPriceGroupByOutputType))]: P extends '_count'
|
|
? T[P] extends boolean
|
|
? number
|
|
: Prisma.GetScalarType<T[P], SubscriptionUsageBasedPriceGroupByOutputType[P]>
|
|
: Prisma.GetScalarType<T[P], SubscriptionUsageBasedPriceGroupByOutputType[P]>
|
|
}
|
|
>
|
|
>
|
|
|
|
|
|
|
|
export type SubscriptionUsageBasedPriceWhereInput = {
|
|
AND?: Prisma.SubscriptionUsageBasedPriceWhereInput | Prisma.SubscriptionUsageBasedPriceWhereInput[]
|
|
OR?: Prisma.SubscriptionUsageBasedPriceWhereInput[]
|
|
NOT?: Prisma.SubscriptionUsageBasedPriceWhereInput | Prisma.SubscriptionUsageBasedPriceWhereInput[]
|
|
id?: Prisma.StringFilter<"SubscriptionUsageBasedPrice"> | string
|
|
subscriptionProductId?: Prisma.StringFilter<"SubscriptionUsageBasedPrice"> | string
|
|
stripeId?: Prisma.StringFilter<"SubscriptionUsageBasedPrice"> | string
|
|
billingPeriod?: Prisma.IntFilter<"SubscriptionUsageBasedPrice"> | number
|
|
currency?: Prisma.StringFilter<"SubscriptionUsageBasedPrice"> | string
|
|
unit?: Prisma.StringFilter<"SubscriptionUsageBasedPrice"> | string
|
|
unitTitle?: Prisma.StringFilter<"SubscriptionUsageBasedPrice"> | string
|
|
unitTitlePlural?: Prisma.StringFilter<"SubscriptionUsageBasedPrice"> | string
|
|
usageType?: Prisma.StringFilter<"SubscriptionUsageBasedPrice"> | string
|
|
aggregateUsage?: Prisma.StringFilter<"SubscriptionUsageBasedPrice"> | string
|
|
tiersMode?: Prisma.StringFilter<"SubscriptionUsageBasedPrice"> | string
|
|
billingScheme?: Prisma.StringFilter<"SubscriptionUsageBasedPrice"> | string
|
|
subscriptionProduct?: Prisma.XOR<Prisma.SubscriptionProductScalarRelationFilter, Prisma.SubscriptionProductWhereInput>
|
|
tiers?: Prisma.SubscriptionUsageBasedTierListRelationFilter
|
|
tenantProductPrices?: Prisma.TenantSubscriptionProductPriceListRelationFilter
|
|
}
|
|
|
|
export type SubscriptionUsageBasedPriceOrderByWithRelationInput = {
|
|
id?: Prisma.SortOrder
|
|
subscriptionProductId?: Prisma.SortOrder
|
|
stripeId?: Prisma.SortOrder
|
|
billingPeriod?: Prisma.SortOrder
|
|
currency?: Prisma.SortOrder
|
|
unit?: Prisma.SortOrder
|
|
unitTitle?: Prisma.SortOrder
|
|
unitTitlePlural?: Prisma.SortOrder
|
|
usageType?: Prisma.SortOrder
|
|
aggregateUsage?: Prisma.SortOrder
|
|
tiersMode?: Prisma.SortOrder
|
|
billingScheme?: Prisma.SortOrder
|
|
subscriptionProduct?: Prisma.SubscriptionProductOrderByWithRelationInput
|
|
tiers?: Prisma.SubscriptionUsageBasedTierOrderByRelationAggregateInput
|
|
tenantProductPrices?: Prisma.TenantSubscriptionProductPriceOrderByRelationAggregateInput
|
|
}
|
|
|
|
export type SubscriptionUsageBasedPriceWhereUniqueInput = Prisma.AtLeast<{
|
|
id?: string
|
|
AND?: Prisma.SubscriptionUsageBasedPriceWhereInput | Prisma.SubscriptionUsageBasedPriceWhereInput[]
|
|
OR?: Prisma.SubscriptionUsageBasedPriceWhereInput[]
|
|
NOT?: Prisma.SubscriptionUsageBasedPriceWhereInput | Prisma.SubscriptionUsageBasedPriceWhereInput[]
|
|
subscriptionProductId?: Prisma.StringFilter<"SubscriptionUsageBasedPrice"> | string
|
|
stripeId?: Prisma.StringFilter<"SubscriptionUsageBasedPrice"> | string
|
|
billingPeriod?: Prisma.IntFilter<"SubscriptionUsageBasedPrice"> | number
|
|
currency?: Prisma.StringFilter<"SubscriptionUsageBasedPrice"> | string
|
|
unit?: Prisma.StringFilter<"SubscriptionUsageBasedPrice"> | string
|
|
unitTitle?: Prisma.StringFilter<"SubscriptionUsageBasedPrice"> | string
|
|
unitTitlePlural?: Prisma.StringFilter<"SubscriptionUsageBasedPrice"> | string
|
|
usageType?: Prisma.StringFilter<"SubscriptionUsageBasedPrice"> | string
|
|
aggregateUsage?: Prisma.StringFilter<"SubscriptionUsageBasedPrice"> | string
|
|
tiersMode?: Prisma.StringFilter<"SubscriptionUsageBasedPrice"> | string
|
|
billingScheme?: Prisma.StringFilter<"SubscriptionUsageBasedPrice"> | string
|
|
subscriptionProduct?: Prisma.XOR<Prisma.SubscriptionProductScalarRelationFilter, Prisma.SubscriptionProductWhereInput>
|
|
tiers?: Prisma.SubscriptionUsageBasedTierListRelationFilter
|
|
tenantProductPrices?: Prisma.TenantSubscriptionProductPriceListRelationFilter
|
|
}, "id">
|
|
|
|
export type SubscriptionUsageBasedPriceOrderByWithAggregationInput = {
|
|
id?: Prisma.SortOrder
|
|
subscriptionProductId?: Prisma.SortOrder
|
|
stripeId?: Prisma.SortOrder
|
|
billingPeriod?: Prisma.SortOrder
|
|
currency?: Prisma.SortOrder
|
|
unit?: Prisma.SortOrder
|
|
unitTitle?: Prisma.SortOrder
|
|
unitTitlePlural?: Prisma.SortOrder
|
|
usageType?: Prisma.SortOrder
|
|
aggregateUsage?: Prisma.SortOrder
|
|
tiersMode?: Prisma.SortOrder
|
|
billingScheme?: Prisma.SortOrder
|
|
_count?: Prisma.SubscriptionUsageBasedPriceCountOrderByAggregateInput
|
|
_avg?: Prisma.SubscriptionUsageBasedPriceAvgOrderByAggregateInput
|
|
_max?: Prisma.SubscriptionUsageBasedPriceMaxOrderByAggregateInput
|
|
_min?: Prisma.SubscriptionUsageBasedPriceMinOrderByAggregateInput
|
|
_sum?: Prisma.SubscriptionUsageBasedPriceSumOrderByAggregateInput
|
|
}
|
|
|
|
export type SubscriptionUsageBasedPriceScalarWhereWithAggregatesInput = {
|
|
AND?: Prisma.SubscriptionUsageBasedPriceScalarWhereWithAggregatesInput | Prisma.SubscriptionUsageBasedPriceScalarWhereWithAggregatesInput[]
|
|
OR?: Prisma.SubscriptionUsageBasedPriceScalarWhereWithAggregatesInput[]
|
|
NOT?: Prisma.SubscriptionUsageBasedPriceScalarWhereWithAggregatesInput | Prisma.SubscriptionUsageBasedPriceScalarWhereWithAggregatesInput[]
|
|
id?: Prisma.StringWithAggregatesFilter<"SubscriptionUsageBasedPrice"> | string
|
|
subscriptionProductId?: Prisma.StringWithAggregatesFilter<"SubscriptionUsageBasedPrice"> | string
|
|
stripeId?: Prisma.StringWithAggregatesFilter<"SubscriptionUsageBasedPrice"> | string
|
|
billingPeriod?: Prisma.IntWithAggregatesFilter<"SubscriptionUsageBasedPrice"> | number
|
|
currency?: Prisma.StringWithAggregatesFilter<"SubscriptionUsageBasedPrice"> | string
|
|
unit?: Prisma.StringWithAggregatesFilter<"SubscriptionUsageBasedPrice"> | string
|
|
unitTitle?: Prisma.StringWithAggregatesFilter<"SubscriptionUsageBasedPrice"> | string
|
|
unitTitlePlural?: Prisma.StringWithAggregatesFilter<"SubscriptionUsageBasedPrice"> | string
|
|
usageType?: Prisma.StringWithAggregatesFilter<"SubscriptionUsageBasedPrice"> | string
|
|
aggregateUsage?: Prisma.StringWithAggregatesFilter<"SubscriptionUsageBasedPrice"> | string
|
|
tiersMode?: Prisma.StringWithAggregatesFilter<"SubscriptionUsageBasedPrice"> | string
|
|
billingScheme?: Prisma.StringWithAggregatesFilter<"SubscriptionUsageBasedPrice"> | string
|
|
}
|
|
|
|
export type SubscriptionUsageBasedPriceCreateInput = {
|
|
id?: string
|
|
stripeId: string
|
|
billingPeriod: number
|
|
currency: string
|
|
unit: string
|
|
unitTitle: string
|
|
unitTitlePlural: string
|
|
usageType: string
|
|
aggregateUsage: string
|
|
tiersMode: string
|
|
billingScheme: string
|
|
subscriptionProduct: Prisma.SubscriptionProductCreateNestedOneWithoutUsageBasedPricesInput
|
|
tiers?: Prisma.SubscriptionUsageBasedTierCreateNestedManyWithoutSubscriptionUsageBasedPriceInput
|
|
tenantProductPrices?: Prisma.TenantSubscriptionProductPriceCreateNestedManyWithoutSubscriptionUsageBasedPriceInput
|
|
}
|
|
|
|
export type SubscriptionUsageBasedPriceUncheckedCreateInput = {
|
|
id?: string
|
|
subscriptionProductId: string
|
|
stripeId: string
|
|
billingPeriod: number
|
|
currency: string
|
|
unit: string
|
|
unitTitle: string
|
|
unitTitlePlural: string
|
|
usageType: string
|
|
aggregateUsage: string
|
|
tiersMode: string
|
|
billingScheme: string
|
|
tiers?: Prisma.SubscriptionUsageBasedTierUncheckedCreateNestedManyWithoutSubscriptionUsageBasedPriceInput
|
|
tenantProductPrices?: Prisma.TenantSubscriptionProductPriceUncheckedCreateNestedManyWithoutSubscriptionUsageBasedPriceInput
|
|
}
|
|
|
|
export type SubscriptionUsageBasedPriceUpdateInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
stripeId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
billingPeriod?: Prisma.IntFieldUpdateOperationsInput | number
|
|
currency?: Prisma.StringFieldUpdateOperationsInput | string
|
|
unit?: Prisma.StringFieldUpdateOperationsInput | string
|
|
unitTitle?: Prisma.StringFieldUpdateOperationsInput | string
|
|
unitTitlePlural?: Prisma.StringFieldUpdateOperationsInput | string
|
|
usageType?: Prisma.StringFieldUpdateOperationsInput | string
|
|
aggregateUsage?: Prisma.StringFieldUpdateOperationsInput | string
|
|
tiersMode?: Prisma.StringFieldUpdateOperationsInput | string
|
|
billingScheme?: Prisma.StringFieldUpdateOperationsInput | string
|
|
subscriptionProduct?: Prisma.SubscriptionProductUpdateOneRequiredWithoutUsageBasedPricesNestedInput
|
|
tiers?: Prisma.SubscriptionUsageBasedTierUpdateManyWithoutSubscriptionUsageBasedPriceNestedInput
|
|
tenantProductPrices?: Prisma.TenantSubscriptionProductPriceUpdateManyWithoutSubscriptionUsageBasedPriceNestedInput
|
|
}
|
|
|
|
export type SubscriptionUsageBasedPriceUncheckedUpdateInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
subscriptionProductId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
stripeId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
billingPeriod?: Prisma.IntFieldUpdateOperationsInput | number
|
|
currency?: Prisma.StringFieldUpdateOperationsInput | string
|
|
unit?: Prisma.StringFieldUpdateOperationsInput | string
|
|
unitTitle?: Prisma.StringFieldUpdateOperationsInput | string
|
|
unitTitlePlural?: Prisma.StringFieldUpdateOperationsInput | string
|
|
usageType?: Prisma.StringFieldUpdateOperationsInput | string
|
|
aggregateUsage?: Prisma.StringFieldUpdateOperationsInput | string
|
|
tiersMode?: Prisma.StringFieldUpdateOperationsInput | string
|
|
billingScheme?: Prisma.StringFieldUpdateOperationsInput | string
|
|
tiers?: Prisma.SubscriptionUsageBasedTierUncheckedUpdateManyWithoutSubscriptionUsageBasedPriceNestedInput
|
|
tenantProductPrices?: Prisma.TenantSubscriptionProductPriceUncheckedUpdateManyWithoutSubscriptionUsageBasedPriceNestedInput
|
|
}
|
|
|
|
export type SubscriptionUsageBasedPriceCreateManyInput = {
|
|
id?: string
|
|
subscriptionProductId: string
|
|
stripeId: string
|
|
billingPeriod: number
|
|
currency: string
|
|
unit: string
|
|
unitTitle: string
|
|
unitTitlePlural: string
|
|
usageType: string
|
|
aggregateUsage: string
|
|
tiersMode: string
|
|
billingScheme: string
|
|
}
|
|
|
|
export type SubscriptionUsageBasedPriceUpdateManyMutationInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
stripeId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
billingPeriod?: Prisma.IntFieldUpdateOperationsInput | number
|
|
currency?: Prisma.StringFieldUpdateOperationsInput | string
|
|
unit?: Prisma.StringFieldUpdateOperationsInput | string
|
|
unitTitle?: Prisma.StringFieldUpdateOperationsInput | string
|
|
unitTitlePlural?: Prisma.StringFieldUpdateOperationsInput | string
|
|
usageType?: Prisma.StringFieldUpdateOperationsInput | string
|
|
aggregateUsage?: Prisma.StringFieldUpdateOperationsInput | string
|
|
tiersMode?: Prisma.StringFieldUpdateOperationsInput | string
|
|
billingScheme?: Prisma.StringFieldUpdateOperationsInput | string
|
|
}
|
|
|
|
export type SubscriptionUsageBasedPriceUncheckedUpdateManyInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
subscriptionProductId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
stripeId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
billingPeriod?: Prisma.IntFieldUpdateOperationsInput | number
|
|
currency?: Prisma.StringFieldUpdateOperationsInput | string
|
|
unit?: Prisma.StringFieldUpdateOperationsInput | string
|
|
unitTitle?: Prisma.StringFieldUpdateOperationsInput | string
|
|
unitTitlePlural?: Prisma.StringFieldUpdateOperationsInput | string
|
|
usageType?: Prisma.StringFieldUpdateOperationsInput | string
|
|
aggregateUsage?: Prisma.StringFieldUpdateOperationsInput | string
|
|
tiersMode?: Prisma.StringFieldUpdateOperationsInput | string
|
|
billingScheme?: Prisma.StringFieldUpdateOperationsInput | string
|
|
}
|
|
|
|
export type SubscriptionUsageBasedPriceListRelationFilter = {
|
|
every?: Prisma.SubscriptionUsageBasedPriceWhereInput
|
|
some?: Prisma.SubscriptionUsageBasedPriceWhereInput
|
|
none?: Prisma.SubscriptionUsageBasedPriceWhereInput
|
|
}
|
|
|
|
export type SubscriptionUsageBasedPriceOrderByRelationAggregateInput = {
|
|
_count?: Prisma.SortOrder
|
|
}
|
|
|
|
export type SubscriptionUsageBasedPriceCountOrderByAggregateInput = {
|
|
id?: Prisma.SortOrder
|
|
subscriptionProductId?: Prisma.SortOrder
|
|
stripeId?: Prisma.SortOrder
|
|
billingPeriod?: Prisma.SortOrder
|
|
currency?: Prisma.SortOrder
|
|
unit?: Prisma.SortOrder
|
|
unitTitle?: Prisma.SortOrder
|
|
unitTitlePlural?: Prisma.SortOrder
|
|
usageType?: Prisma.SortOrder
|
|
aggregateUsage?: Prisma.SortOrder
|
|
tiersMode?: Prisma.SortOrder
|
|
billingScheme?: Prisma.SortOrder
|
|
}
|
|
|
|
export type SubscriptionUsageBasedPriceAvgOrderByAggregateInput = {
|
|
billingPeriod?: Prisma.SortOrder
|
|
}
|
|
|
|
export type SubscriptionUsageBasedPriceMaxOrderByAggregateInput = {
|
|
id?: Prisma.SortOrder
|
|
subscriptionProductId?: Prisma.SortOrder
|
|
stripeId?: Prisma.SortOrder
|
|
billingPeriod?: Prisma.SortOrder
|
|
currency?: Prisma.SortOrder
|
|
unit?: Prisma.SortOrder
|
|
unitTitle?: Prisma.SortOrder
|
|
unitTitlePlural?: Prisma.SortOrder
|
|
usageType?: Prisma.SortOrder
|
|
aggregateUsage?: Prisma.SortOrder
|
|
tiersMode?: Prisma.SortOrder
|
|
billingScheme?: Prisma.SortOrder
|
|
}
|
|
|
|
export type SubscriptionUsageBasedPriceMinOrderByAggregateInput = {
|
|
id?: Prisma.SortOrder
|
|
subscriptionProductId?: Prisma.SortOrder
|
|
stripeId?: Prisma.SortOrder
|
|
billingPeriod?: Prisma.SortOrder
|
|
currency?: Prisma.SortOrder
|
|
unit?: Prisma.SortOrder
|
|
unitTitle?: Prisma.SortOrder
|
|
unitTitlePlural?: Prisma.SortOrder
|
|
usageType?: Prisma.SortOrder
|
|
aggregateUsage?: Prisma.SortOrder
|
|
tiersMode?: Prisma.SortOrder
|
|
billingScheme?: Prisma.SortOrder
|
|
}
|
|
|
|
export type SubscriptionUsageBasedPriceSumOrderByAggregateInput = {
|
|
billingPeriod?: Prisma.SortOrder
|
|
}
|
|
|
|
export type SubscriptionUsageBasedPriceScalarRelationFilter = {
|
|
is?: Prisma.SubscriptionUsageBasedPriceWhereInput
|
|
isNot?: Prisma.SubscriptionUsageBasedPriceWhereInput
|
|
}
|
|
|
|
export type SubscriptionUsageBasedPriceNullableScalarRelationFilter = {
|
|
is?: Prisma.SubscriptionUsageBasedPriceWhereInput | null
|
|
isNot?: Prisma.SubscriptionUsageBasedPriceWhereInput | null
|
|
}
|
|
|
|
export type SubscriptionUsageBasedPriceCreateNestedManyWithoutSubscriptionProductInput = {
|
|
create?: Prisma.XOR<Prisma.SubscriptionUsageBasedPriceCreateWithoutSubscriptionProductInput, Prisma.SubscriptionUsageBasedPriceUncheckedCreateWithoutSubscriptionProductInput> | Prisma.SubscriptionUsageBasedPriceCreateWithoutSubscriptionProductInput[] | Prisma.SubscriptionUsageBasedPriceUncheckedCreateWithoutSubscriptionProductInput[]
|
|
connectOrCreate?: Prisma.SubscriptionUsageBasedPriceCreateOrConnectWithoutSubscriptionProductInput | Prisma.SubscriptionUsageBasedPriceCreateOrConnectWithoutSubscriptionProductInput[]
|
|
createMany?: Prisma.SubscriptionUsageBasedPriceCreateManySubscriptionProductInputEnvelope
|
|
connect?: Prisma.SubscriptionUsageBasedPriceWhereUniqueInput | Prisma.SubscriptionUsageBasedPriceWhereUniqueInput[]
|
|
}
|
|
|
|
export type SubscriptionUsageBasedPriceUncheckedCreateNestedManyWithoutSubscriptionProductInput = {
|
|
create?: Prisma.XOR<Prisma.SubscriptionUsageBasedPriceCreateWithoutSubscriptionProductInput, Prisma.SubscriptionUsageBasedPriceUncheckedCreateWithoutSubscriptionProductInput> | Prisma.SubscriptionUsageBasedPriceCreateWithoutSubscriptionProductInput[] | Prisma.SubscriptionUsageBasedPriceUncheckedCreateWithoutSubscriptionProductInput[]
|
|
connectOrCreate?: Prisma.SubscriptionUsageBasedPriceCreateOrConnectWithoutSubscriptionProductInput | Prisma.SubscriptionUsageBasedPriceCreateOrConnectWithoutSubscriptionProductInput[]
|
|
createMany?: Prisma.SubscriptionUsageBasedPriceCreateManySubscriptionProductInputEnvelope
|
|
connect?: Prisma.SubscriptionUsageBasedPriceWhereUniqueInput | Prisma.SubscriptionUsageBasedPriceWhereUniqueInput[]
|
|
}
|
|
|
|
export type SubscriptionUsageBasedPriceUpdateManyWithoutSubscriptionProductNestedInput = {
|
|
create?: Prisma.XOR<Prisma.SubscriptionUsageBasedPriceCreateWithoutSubscriptionProductInput, Prisma.SubscriptionUsageBasedPriceUncheckedCreateWithoutSubscriptionProductInput> | Prisma.SubscriptionUsageBasedPriceCreateWithoutSubscriptionProductInput[] | Prisma.SubscriptionUsageBasedPriceUncheckedCreateWithoutSubscriptionProductInput[]
|
|
connectOrCreate?: Prisma.SubscriptionUsageBasedPriceCreateOrConnectWithoutSubscriptionProductInput | Prisma.SubscriptionUsageBasedPriceCreateOrConnectWithoutSubscriptionProductInput[]
|
|
upsert?: Prisma.SubscriptionUsageBasedPriceUpsertWithWhereUniqueWithoutSubscriptionProductInput | Prisma.SubscriptionUsageBasedPriceUpsertWithWhereUniqueWithoutSubscriptionProductInput[]
|
|
createMany?: Prisma.SubscriptionUsageBasedPriceCreateManySubscriptionProductInputEnvelope
|
|
set?: Prisma.SubscriptionUsageBasedPriceWhereUniqueInput | Prisma.SubscriptionUsageBasedPriceWhereUniqueInput[]
|
|
disconnect?: Prisma.SubscriptionUsageBasedPriceWhereUniqueInput | Prisma.SubscriptionUsageBasedPriceWhereUniqueInput[]
|
|
delete?: Prisma.SubscriptionUsageBasedPriceWhereUniqueInput | Prisma.SubscriptionUsageBasedPriceWhereUniqueInput[]
|
|
connect?: Prisma.SubscriptionUsageBasedPriceWhereUniqueInput | Prisma.SubscriptionUsageBasedPriceWhereUniqueInput[]
|
|
update?: Prisma.SubscriptionUsageBasedPriceUpdateWithWhereUniqueWithoutSubscriptionProductInput | Prisma.SubscriptionUsageBasedPriceUpdateWithWhereUniqueWithoutSubscriptionProductInput[]
|
|
updateMany?: Prisma.SubscriptionUsageBasedPriceUpdateManyWithWhereWithoutSubscriptionProductInput | Prisma.SubscriptionUsageBasedPriceUpdateManyWithWhereWithoutSubscriptionProductInput[]
|
|
deleteMany?: Prisma.SubscriptionUsageBasedPriceScalarWhereInput | Prisma.SubscriptionUsageBasedPriceScalarWhereInput[]
|
|
}
|
|
|
|
export type SubscriptionUsageBasedPriceUncheckedUpdateManyWithoutSubscriptionProductNestedInput = {
|
|
create?: Prisma.XOR<Prisma.SubscriptionUsageBasedPriceCreateWithoutSubscriptionProductInput, Prisma.SubscriptionUsageBasedPriceUncheckedCreateWithoutSubscriptionProductInput> | Prisma.SubscriptionUsageBasedPriceCreateWithoutSubscriptionProductInput[] | Prisma.SubscriptionUsageBasedPriceUncheckedCreateWithoutSubscriptionProductInput[]
|
|
connectOrCreate?: Prisma.SubscriptionUsageBasedPriceCreateOrConnectWithoutSubscriptionProductInput | Prisma.SubscriptionUsageBasedPriceCreateOrConnectWithoutSubscriptionProductInput[]
|
|
upsert?: Prisma.SubscriptionUsageBasedPriceUpsertWithWhereUniqueWithoutSubscriptionProductInput | Prisma.SubscriptionUsageBasedPriceUpsertWithWhereUniqueWithoutSubscriptionProductInput[]
|
|
createMany?: Prisma.SubscriptionUsageBasedPriceCreateManySubscriptionProductInputEnvelope
|
|
set?: Prisma.SubscriptionUsageBasedPriceWhereUniqueInput | Prisma.SubscriptionUsageBasedPriceWhereUniqueInput[]
|
|
disconnect?: Prisma.SubscriptionUsageBasedPriceWhereUniqueInput | Prisma.SubscriptionUsageBasedPriceWhereUniqueInput[]
|
|
delete?: Prisma.SubscriptionUsageBasedPriceWhereUniqueInput | Prisma.SubscriptionUsageBasedPriceWhereUniqueInput[]
|
|
connect?: Prisma.SubscriptionUsageBasedPriceWhereUniqueInput | Prisma.SubscriptionUsageBasedPriceWhereUniqueInput[]
|
|
update?: Prisma.SubscriptionUsageBasedPriceUpdateWithWhereUniqueWithoutSubscriptionProductInput | Prisma.SubscriptionUsageBasedPriceUpdateWithWhereUniqueWithoutSubscriptionProductInput[]
|
|
updateMany?: Prisma.SubscriptionUsageBasedPriceUpdateManyWithWhereWithoutSubscriptionProductInput | Prisma.SubscriptionUsageBasedPriceUpdateManyWithWhereWithoutSubscriptionProductInput[]
|
|
deleteMany?: Prisma.SubscriptionUsageBasedPriceScalarWhereInput | Prisma.SubscriptionUsageBasedPriceScalarWhereInput[]
|
|
}
|
|
|
|
export type SubscriptionUsageBasedPriceCreateNestedOneWithoutTiersInput = {
|
|
create?: Prisma.XOR<Prisma.SubscriptionUsageBasedPriceCreateWithoutTiersInput, Prisma.SubscriptionUsageBasedPriceUncheckedCreateWithoutTiersInput>
|
|
connectOrCreate?: Prisma.SubscriptionUsageBasedPriceCreateOrConnectWithoutTiersInput
|
|
connect?: Prisma.SubscriptionUsageBasedPriceWhereUniqueInput
|
|
}
|
|
|
|
export type SubscriptionUsageBasedPriceUpdateOneRequiredWithoutTiersNestedInput = {
|
|
create?: Prisma.XOR<Prisma.SubscriptionUsageBasedPriceCreateWithoutTiersInput, Prisma.SubscriptionUsageBasedPriceUncheckedCreateWithoutTiersInput>
|
|
connectOrCreate?: Prisma.SubscriptionUsageBasedPriceCreateOrConnectWithoutTiersInput
|
|
upsert?: Prisma.SubscriptionUsageBasedPriceUpsertWithoutTiersInput
|
|
connect?: Prisma.SubscriptionUsageBasedPriceWhereUniqueInput
|
|
update?: Prisma.XOR<Prisma.XOR<Prisma.SubscriptionUsageBasedPriceUpdateToOneWithWhereWithoutTiersInput, Prisma.SubscriptionUsageBasedPriceUpdateWithoutTiersInput>, Prisma.SubscriptionUsageBasedPriceUncheckedUpdateWithoutTiersInput>
|
|
}
|
|
|
|
export type SubscriptionUsageBasedPriceCreateNestedOneWithoutTenantProductPricesInput = {
|
|
create?: Prisma.XOR<Prisma.SubscriptionUsageBasedPriceCreateWithoutTenantProductPricesInput, Prisma.SubscriptionUsageBasedPriceUncheckedCreateWithoutTenantProductPricesInput>
|
|
connectOrCreate?: Prisma.SubscriptionUsageBasedPriceCreateOrConnectWithoutTenantProductPricesInput
|
|
connect?: Prisma.SubscriptionUsageBasedPriceWhereUniqueInput
|
|
}
|
|
|
|
export type SubscriptionUsageBasedPriceUpdateOneWithoutTenantProductPricesNestedInput = {
|
|
create?: Prisma.XOR<Prisma.SubscriptionUsageBasedPriceCreateWithoutTenantProductPricesInput, Prisma.SubscriptionUsageBasedPriceUncheckedCreateWithoutTenantProductPricesInput>
|
|
connectOrCreate?: Prisma.SubscriptionUsageBasedPriceCreateOrConnectWithoutTenantProductPricesInput
|
|
upsert?: Prisma.SubscriptionUsageBasedPriceUpsertWithoutTenantProductPricesInput
|
|
disconnect?: Prisma.SubscriptionUsageBasedPriceWhereInput | boolean
|
|
delete?: Prisma.SubscriptionUsageBasedPriceWhereInput | boolean
|
|
connect?: Prisma.SubscriptionUsageBasedPriceWhereUniqueInput
|
|
update?: Prisma.XOR<Prisma.XOR<Prisma.SubscriptionUsageBasedPriceUpdateToOneWithWhereWithoutTenantProductPricesInput, Prisma.SubscriptionUsageBasedPriceUpdateWithoutTenantProductPricesInput>, Prisma.SubscriptionUsageBasedPriceUncheckedUpdateWithoutTenantProductPricesInput>
|
|
}
|
|
|
|
export type SubscriptionUsageBasedPriceCreateWithoutSubscriptionProductInput = {
|
|
id?: string
|
|
stripeId: string
|
|
billingPeriod: number
|
|
currency: string
|
|
unit: string
|
|
unitTitle: string
|
|
unitTitlePlural: string
|
|
usageType: string
|
|
aggregateUsage: string
|
|
tiersMode: string
|
|
billingScheme: string
|
|
tiers?: Prisma.SubscriptionUsageBasedTierCreateNestedManyWithoutSubscriptionUsageBasedPriceInput
|
|
tenantProductPrices?: Prisma.TenantSubscriptionProductPriceCreateNestedManyWithoutSubscriptionUsageBasedPriceInput
|
|
}
|
|
|
|
export type SubscriptionUsageBasedPriceUncheckedCreateWithoutSubscriptionProductInput = {
|
|
id?: string
|
|
stripeId: string
|
|
billingPeriod: number
|
|
currency: string
|
|
unit: string
|
|
unitTitle: string
|
|
unitTitlePlural: string
|
|
usageType: string
|
|
aggregateUsage: string
|
|
tiersMode: string
|
|
billingScheme: string
|
|
tiers?: Prisma.SubscriptionUsageBasedTierUncheckedCreateNestedManyWithoutSubscriptionUsageBasedPriceInput
|
|
tenantProductPrices?: Prisma.TenantSubscriptionProductPriceUncheckedCreateNestedManyWithoutSubscriptionUsageBasedPriceInput
|
|
}
|
|
|
|
export type SubscriptionUsageBasedPriceCreateOrConnectWithoutSubscriptionProductInput = {
|
|
where: Prisma.SubscriptionUsageBasedPriceWhereUniqueInput
|
|
create: Prisma.XOR<Prisma.SubscriptionUsageBasedPriceCreateWithoutSubscriptionProductInput, Prisma.SubscriptionUsageBasedPriceUncheckedCreateWithoutSubscriptionProductInput>
|
|
}
|
|
|
|
export type SubscriptionUsageBasedPriceCreateManySubscriptionProductInputEnvelope = {
|
|
data: Prisma.SubscriptionUsageBasedPriceCreateManySubscriptionProductInput | Prisma.SubscriptionUsageBasedPriceCreateManySubscriptionProductInput[]
|
|
skipDuplicates?: boolean
|
|
}
|
|
|
|
export type SubscriptionUsageBasedPriceUpsertWithWhereUniqueWithoutSubscriptionProductInput = {
|
|
where: Prisma.SubscriptionUsageBasedPriceWhereUniqueInput
|
|
update: Prisma.XOR<Prisma.SubscriptionUsageBasedPriceUpdateWithoutSubscriptionProductInput, Prisma.SubscriptionUsageBasedPriceUncheckedUpdateWithoutSubscriptionProductInput>
|
|
create: Prisma.XOR<Prisma.SubscriptionUsageBasedPriceCreateWithoutSubscriptionProductInput, Prisma.SubscriptionUsageBasedPriceUncheckedCreateWithoutSubscriptionProductInput>
|
|
}
|
|
|
|
export type SubscriptionUsageBasedPriceUpdateWithWhereUniqueWithoutSubscriptionProductInput = {
|
|
where: Prisma.SubscriptionUsageBasedPriceWhereUniqueInput
|
|
data: Prisma.XOR<Prisma.SubscriptionUsageBasedPriceUpdateWithoutSubscriptionProductInput, Prisma.SubscriptionUsageBasedPriceUncheckedUpdateWithoutSubscriptionProductInput>
|
|
}
|
|
|
|
export type SubscriptionUsageBasedPriceUpdateManyWithWhereWithoutSubscriptionProductInput = {
|
|
where: Prisma.SubscriptionUsageBasedPriceScalarWhereInput
|
|
data: Prisma.XOR<Prisma.SubscriptionUsageBasedPriceUpdateManyMutationInput, Prisma.SubscriptionUsageBasedPriceUncheckedUpdateManyWithoutSubscriptionProductInput>
|
|
}
|
|
|
|
export type SubscriptionUsageBasedPriceScalarWhereInput = {
|
|
AND?: Prisma.SubscriptionUsageBasedPriceScalarWhereInput | Prisma.SubscriptionUsageBasedPriceScalarWhereInput[]
|
|
OR?: Prisma.SubscriptionUsageBasedPriceScalarWhereInput[]
|
|
NOT?: Prisma.SubscriptionUsageBasedPriceScalarWhereInput | Prisma.SubscriptionUsageBasedPriceScalarWhereInput[]
|
|
id?: Prisma.StringFilter<"SubscriptionUsageBasedPrice"> | string
|
|
subscriptionProductId?: Prisma.StringFilter<"SubscriptionUsageBasedPrice"> | string
|
|
stripeId?: Prisma.StringFilter<"SubscriptionUsageBasedPrice"> | string
|
|
billingPeriod?: Prisma.IntFilter<"SubscriptionUsageBasedPrice"> | number
|
|
currency?: Prisma.StringFilter<"SubscriptionUsageBasedPrice"> | string
|
|
unit?: Prisma.StringFilter<"SubscriptionUsageBasedPrice"> | string
|
|
unitTitle?: Prisma.StringFilter<"SubscriptionUsageBasedPrice"> | string
|
|
unitTitlePlural?: Prisma.StringFilter<"SubscriptionUsageBasedPrice"> | string
|
|
usageType?: Prisma.StringFilter<"SubscriptionUsageBasedPrice"> | string
|
|
aggregateUsage?: Prisma.StringFilter<"SubscriptionUsageBasedPrice"> | string
|
|
tiersMode?: Prisma.StringFilter<"SubscriptionUsageBasedPrice"> | string
|
|
billingScheme?: Prisma.StringFilter<"SubscriptionUsageBasedPrice"> | string
|
|
}
|
|
|
|
export type SubscriptionUsageBasedPriceCreateWithoutTiersInput = {
|
|
id?: string
|
|
stripeId: string
|
|
billingPeriod: number
|
|
currency: string
|
|
unit: string
|
|
unitTitle: string
|
|
unitTitlePlural: string
|
|
usageType: string
|
|
aggregateUsage: string
|
|
tiersMode: string
|
|
billingScheme: string
|
|
subscriptionProduct: Prisma.SubscriptionProductCreateNestedOneWithoutUsageBasedPricesInput
|
|
tenantProductPrices?: Prisma.TenantSubscriptionProductPriceCreateNestedManyWithoutSubscriptionUsageBasedPriceInput
|
|
}
|
|
|
|
export type SubscriptionUsageBasedPriceUncheckedCreateWithoutTiersInput = {
|
|
id?: string
|
|
subscriptionProductId: string
|
|
stripeId: string
|
|
billingPeriod: number
|
|
currency: string
|
|
unit: string
|
|
unitTitle: string
|
|
unitTitlePlural: string
|
|
usageType: string
|
|
aggregateUsage: string
|
|
tiersMode: string
|
|
billingScheme: string
|
|
tenantProductPrices?: Prisma.TenantSubscriptionProductPriceUncheckedCreateNestedManyWithoutSubscriptionUsageBasedPriceInput
|
|
}
|
|
|
|
export type SubscriptionUsageBasedPriceCreateOrConnectWithoutTiersInput = {
|
|
where: Prisma.SubscriptionUsageBasedPriceWhereUniqueInput
|
|
create: Prisma.XOR<Prisma.SubscriptionUsageBasedPriceCreateWithoutTiersInput, Prisma.SubscriptionUsageBasedPriceUncheckedCreateWithoutTiersInput>
|
|
}
|
|
|
|
export type SubscriptionUsageBasedPriceUpsertWithoutTiersInput = {
|
|
update: Prisma.XOR<Prisma.SubscriptionUsageBasedPriceUpdateWithoutTiersInput, Prisma.SubscriptionUsageBasedPriceUncheckedUpdateWithoutTiersInput>
|
|
create: Prisma.XOR<Prisma.SubscriptionUsageBasedPriceCreateWithoutTiersInput, Prisma.SubscriptionUsageBasedPriceUncheckedCreateWithoutTiersInput>
|
|
where?: Prisma.SubscriptionUsageBasedPriceWhereInput
|
|
}
|
|
|
|
export type SubscriptionUsageBasedPriceUpdateToOneWithWhereWithoutTiersInput = {
|
|
where?: Prisma.SubscriptionUsageBasedPriceWhereInput
|
|
data: Prisma.XOR<Prisma.SubscriptionUsageBasedPriceUpdateWithoutTiersInput, Prisma.SubscriptionUsageBasedPriceUncheckedUpdateWithoutTiersInput>
|
|
}
|
|
|
|
export type SubscriptionUsageBasedPriceUpdateWithoutTiersInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
stripeId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
billingPeriod?: Prisma.IntFieldUpdateOperationsInput | number
|
|
currency?: Prisma.StringFieldUpdateOperationsInput | string
|
|
unit?: Prisma.StringFieldUpdateOperationsInput | string
|
|
unitTitle?: Prisma.StringFieldUpdateOperationsInput | string
|
|
unitTitlePlural?: Prisma.StringFieldUpdateOperationsInput | string
|
|
usageType?: Prisma.StringFieldUpdateOperationsInput | string
|
|
aggregateUsage?: Prisma.StringFieldUpdateOperationsInput | string
|
|
tiersMode?: Prisma.StringFieldUpdateOperationsInput | string
|
|
billingScheme?: Prisma.StringFieldUpdateOperationsInput | string
|
|
subscriptionProduct?: Prisma.SubscriptionProductUpdateOneRequiredWithoutUsageBasedPricesNestedInput
|
|
tenantProductPrices?: Prisma.TenantSubscriptionProductPriceUpdateManyWithoutSubscriptionUsageBasedPriceNestedInput
|
|
}
|
|
|
|
export type SubscriptionUsageBasedPriceUncheckedUpdateWithoutTiersInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
subscriptionProductId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
stripeId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
billingPeriod?: Prisma.IntFieldUpdateOperationsInput | number
|
|
currency?: Prisma.StringFieldUpdateOperationsInput | string
|
|
unit?: Prisma.StringFieldUpdateOperationsInput | string
|
|
unitTitle?: Prisma.StringFieldUpdateOperationsInput | string
|
|
unitTitlePlural?: Prisma.StringFieldUpdateOperationsInput | string
|
|
usageType?: Prisma.StringFieldUpdateOperationsInput | string
|
|
aggregateUsage?: Prisma.StringFieldUpdateOperationsInput | string
|
|
tiersMode?: Prisma.StringFieldUpdateOperationsInput | string
|
|
billingScheme?: Prisma.StringFieldUpdateOperationsInput | string
|
|
tenantProductPrices?: Prisma.TenantSubscriptionProductPriceUncheckedUpdateManyWithoutSubscriptionUsageBasedPriceNestedInput
|
|
}
|
|
|
|
export type SubscriptionUsageBasedPriceCreateWithoutTenantProductPricesInput = {
|
|
id?: string
|
|
stripeId: string
|
|
billingPeriod: number
|
|
currency: string
|
|
unit: string
|
|
unitTitle: string
|
|
unitTitlePlural: string
|
|
usageType: string
|
|
aggregateUsage: string
|
|
tiersMode: string
|
|
billingScheme: string
|
|
subscriptionProduct: Prisma.SubscriptionProductCreateNestedOneWithoutUsageBasedPricesInput
|
|
tiers?: Prisma.SubscriptionUsageBasedTierCreateNestedManyWithoutSubscriptionUsageBasedPriceInput
|
|
}
|
|
|
|
export type SubscriptionUsageBasedPriceUncheckedCreateWithoutTenantProductPricesInput = {
|
|
id?: string
|
|
subscriptionProductId: string
|
|
stripeId: string
|
|
billingPeriod: number
|
|
currency: string
|
|
unit: string
|
|
unitTitle: string
|
|
unitTitlePlural: string
|
|
usageType: string
|
|
aggregateUsage: string
|
|
tiersMode: string
|
|
billingScheme: string
|
|
tiers?: Prisma.SubscriptionUsageBasedTierUncheckedCreateNestedManyWithoutSubscriptionUsageBasedPriceInput
|
|
}
|
|
|
|
export type SubscriptionUsageBasedPriceCreateOrConnectWithoutTenantProductPricesInput = {
|
|
where: Prisma.SubscriptionUsageBasedPriceWhereUniqueInput
|
|
create: Prisma.XOR<Prisma.SubscriptionUsageBasedPriceCreateWithoutTenantProductPricesInput, Prisma.SubscriptionUsageBasedPriceUncheckedCreateWithoutTenantProductPricesInput>
|
|
}
|
|
|
|
export type SubscriptionUsageBasedPriceUpsertWithoutTenantProductPricesInput = {
|
|
update: Prisma.XOR<Prisma.SubscriptionUsageBasedPriceUpdateWithoutTenantProductPricesInput, Prisma.SubscriptionUsageBasedPriceUncheckedUpdateWithoutTenantProductPricesInput>
|
|
create: Prisma.XOR<Prisma.SubscriptionUsageBasedPriceCreateWithoutTenantProductPricesInput, Prisma.SubscriptionUsageBasedPriceUncheckedCreateWithoutTenantProductPricesInput>
|
|
where?: Prisma.SubscriptionUsageBasedPriceWhereInput
|
|
}
|
|
|
|
export type SubscriptionUsageBasedPriceUpdateToOneWithWhereWithoutTenantProductPricesInput = {
|
|
where?: Prisma.SubscriptionUsageBasedPriceWhereInput
|
|
data: Prisma.XOR<Prisma.SubscriptionUsageBasedPriceUpdateWithoutTenantProductPricesInput, Prisma.SubscriptionUsageBasedPriceUncheckedUpdateWithoutTenantProductPricesInput>
|
|
}
|
|
|
|
export type SubscriptionUsageBasedPriceUpdateWithoutTenantProductPricesInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
stripeId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
billingPeriod?: Prisma.IntFieldUpdateOperationsInput | number
|
|
currency?: Prisma.StringFieldUpdateOperationsInput | string
|
|
unit?: Prisma.StringFieldUpdateOperationsInput | string
|
|
unitTitle?: Prisma.StringFieldUpdateOperationsInput | string
|
|
unitTitlePlural?: Prisma.StringFieldUpdateOperationsInput | string
|
|
usageType?: Prisma.StringFieldUpdateOperationsInput | string
|
|
aggregateUsage?: Prisma.StringFieldUpdateOperationsInput | string
|
|
tiersMode?: Prisma.StringFieldUpdateOperationsInput | string
|
|
billingScheme?: Prisma.StringFieldUpdateOperationsInput | string
|
|
subscriptionProduct?: Prisma.SubscriptionProductUpdateOneRequiredWithoutUsageBasedPricesNestedInput
|
|
tiers?: Prisma.SubscriptionUsageBasedTierUpdateManyWithoutSubscriptionUsageBasedPriceNestedInput
|
|
}
|
|
|
|
export type SubscriptionUsageBasedPriceUncheckedUpdateWithoutTenantProductPricesInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
subscriptionProductId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
stripeId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
billingPeriod?: Prisma.IntFieldUpdateOperationsInput | number
|
|
currency?: Prisma.StringFieldUpdateOperationsInput | string
|
|
unit?: Prisma.StringFieldUpdateOperationsInput | string
|
|
unitTitle?: Prisma.StringFieldUpdateOperationsInput | string
|
|
unitTitlePlural?: Prisma.StringFieldUpdateOperationsInput | string
|
|
usageType?: Prisma.StringFieldUpdateOperationsInput | string
|
|
aggregateUsage?: Prisma.StringFieldUpdateOperationsInput | string
|
|
tiersMode?: Prisma.StringFieldUpdateOperationsInput | string
|
|
billingScheme?: Prisma.StringFieldUpdateOperationsInput | string
|
|
tiers?: Prisma.SubscriptionUsageBasedTierUncheckedUpdateManyWithoutSubscriptionUsageBasedPriceNestedInput
|
|
}
|
|
|
|
export type SubscriptionUsageBasedPriceCreateManySubscriptionProductInput = {
|
|
id?: string
|
|
stripeId: string
|
|
billingPeriod: number
|
|
currency: string
|
|
unit: string
|
|
unitTitle: string
|
|
unitTitlePlural: string
|
|
usageType: string
|
|
aggregateUsage: string
|
|
tiersMode: string
|
|
billingScheme: string
|
|
}
|
|
|
|
export type SubscriptionUsageBasedPriceUpdateWithoutSubscriptionProductInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
stripeId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
billingPeriod?: Prisma.IntFieldUpdateOperationsInput | number
|
|
currency?: Prisma.StringFieldUpdateOperationsInput | string
|
|
unit?: Prisma.StringFieldUpdateOperationsInput | string
|
|
unitTitle?: Prisma.StringFieldUpdateOperationsInput | string
|
|
unitTitlePlural?: Prisma.StringFieldUpdateOperationsInput | string
|
|
usageType?: Prisma.StringFieldUpdateOperationsInput | string
|
|
aggregateUsage?: Prisma.StringFieldUpdateOperationsInput | string
|
|
tiersMode?: Prisma.StringFieldUpdateOperationsInput | string
|
|
billingScheme?: Prisma.StringFieldUpdateOperationsInput | string
|
|
tiers?: Prisma.SubscriptionUsageBasedTierUpdateManyWithoutSubscriptionUsageBasedPriceNestedInput
|
|
tenantProductPrices?: Prisma.TenantSubscriptionProductPriceUpdateManyWithoutSubscriptionUsageBasedPriceNestedInput
|
|
}
|
|
|
|
export type SubscriptionUsageBasedPriceUncheckedUpdateWithoutSubscriptionProductInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
stripeId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
billingPeriod?: Prisma.IntFieldUpdateOperationsInput | number
|
|
currency?: Prisma.StringFieldUpdateOperationsInput | string
|
|
unit?: Prisma.StringFieldUpdateOperationsInput | string
|
|
unitTitle?: Prisma.StringFieldUpdateOperationsInput | string
|
|
unitTitlePlural?: Prisma.StringFieldUpdateOperationsInput | string
|
|
usageType?: Prisma.StringFieldUpdateOperationsInput | string
|
|
aggregateUsage?: Prisma.StringFieldUpdateOperationsInput | string
|
|
tiersMode?: Prisma.StringFieldUpdateOperationsInput | string
|
|
billingScheme?: Prisma.StringFieldUpdateOperationsInput | string
|
|
tiers?: Prisma.SubscriptionUsageBasedTierUncheckedUpdateManyWithoutSubscriptionUsageBasedPriceNestedInput
|
|
tenantProductPrices?: Prisma.TenantSubscriptionProductPriceUncheckedUpdateManyWithoutSubscriptionUsageBasedPriceNestedInput
|
|
}
|
|
|
|
export type SubscriptionUsageBasedPriceUncheckedUpdateManyWithoutSubscriptionProductInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
stripeId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
billingPeriod?: Prisma.IntFieldUpdateOperationsInput | number
|
|
currency?: Prisma.StringFieldUpdateOperationsInput | string
|
|
unit?: Prisma.StringFieldUpdateOperationsInput | string
|
|
unitTitle?: Prisma.StringFieldUpdateOperationsInput | string
|
|
unitTitlePlural?: Prisma.StringFieldUpdateOperationsInput | string
|
|
usageType?: Prisma.StringFieldUpdateOperationsInput | string
|
|
aggregateUsage?: Prisma.StringFieldUpdateOperationsInput | string
|
|
tiersMode?: Prisma.StringFieldUpdateOperationsInput | string
|
|
billingScheme?: Prisma.StringFieldUpdateOperationsInput | string
|
|
}
|
|
|
|
|
|
/**
|
|
* Count Type SubscriptionUsageBasedPriceCountOutputType
|
|
*/
|
|
|
|
export type SubscriptionUsageBasedPriceCountOutputType = {
|
|
tiers: number
|
|
tenantProductPrices: number
|
|
}
|
|
|
|
export type SubscriptionUsageBasedPriceCountOutputTypeSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
tiers?: boolean | SubscriptionUsageBasedPriceCountOutputTypeCountTiersArgs
|
|
tenantProductPrices?: boolean | SubscriptionUsageBasedPriceCountOutputTypeCountTenantProductPricesArgs
|
|
}
|
|
|
|
/**
|
|
* SubscriptionUsageBasedPriceCountOutputType without action
|
|
*/
|
|
export type SubscriptionUsageBasedPriceCountOutputTypeDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the SubscriptionUsageBasedPriceCountOutputType
|
|
*/
|
|
select?: Prisma.SubscriptionUsageBasedPriceCountOutputTypeSelect<ExtArgs> | null
|
|
}
|
|
|
|
/**
|
|
* SubscriptionUsageBasedPriceCountOutputType without action
|
|
*/
|
|
export type SubscriptionUsageBasedPriceCountOutputTypeCountTiersArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
where?: Prisma.SubscriptionUsageBasedTierWhereInput
|
|
}
|
|
|
|
/**
|
|
* SubscriptionUsageBasedPriceCountOutputType without action
|
|
*/
|
|
export type SubscriptionUsageBasedPriceCountOutputTypeCountTenantProductPricesArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
where?: Prisma.TenantSubscriptionProductPriceWhereInput
|
|
}
|
|
|
|
|
|
export type SubscriptionUsageBasedPriceSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
id?: boolean
|
|
subscriptionProductId?: boolean
|
|
stripeId?: boolean
|
|
billingPeriod?: boolean
|
|
currency?: boolean
|
|
unit?: boolean
|
|
unitTitle?: boolean
|
|
unitTitlePlural?: boolean
|
|
usageType?: boolean
|
|
aggregateUsage?: boolean
|
|
tiersMode?: boolean
|
|
billingScheme?: boolean
|
|
subscriptionProduct?: boolean | Prisma.SubscriptionProductDefaultArgs<ExtArgs>
|
|
tiers?: boolean | Prisma.SubscriptionUsageBasedPrice$tiersArgs<ExtArgs>
|
|
tenantProductPrices?: boolean | Prisma.SubscriptionUsageBasedPrice$tenantProductPricesArgs<ExtArgs>
|
|
_count?: boolean | Prisma.SubscriptionUsageBasedPriceCountOutputTypeDefaultArgs<ExtArgs>
|
|
}, ExtArgs["result"]["subscriptionUsageBasedPrice"]>
|
|
|
|
export type SubscriptionUsageBasedPriceSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
id?: boolean
|
|
subscriptionProductId?: boolean
|
|
stripeId?: boolean
|
|
billingPeriod?: boolean
|
|
currency?: boolean
|
|
unit?: boolean
|
|
unitTitle?: boolean
|
|
unitTitlePlural?: boolean
|
|
usageType?: boolean
|
|
aggregateUsage?: boolean
|
|
tiersMode?: boolean
|
|
billingScheme?: boolean
|
|
subscriptionProduct?: boolean | Prisma.SubscriptionProductDefaultArgs<ExtArgs>
|
|
}, ExtArgs["result"]["subscriptionUsageBasedPrice"]>
|
|
|
|
export type SubscriptionUsageBasedPriceSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
id?: boolean
|
|
subscriptionProductId?: boolean
|
|
stripeId?: boolean
|
|
billingPeriod?: boolean
|
|
currency?: boolean
|
|
unit?: boolean
|
|
unitTitle?: boolean
|
|
unitTitlePlural?: boolean
|
|
usageType?: boolean
|
|
aggregateUsage?: boolean
|
|
tiersMode?: boolean
|
|
billingScheme?: boolean
|
|
subscriptionProduct?: boolean | Prisma.SubscriptionProductDefaultArgs<ExtArgs>
|
|
}, ExtArgs["result"]["subscriptionUsageBasedPrice"]>
|
|
|
|
export type SubscriptionUsageBasedPriceSelectScalar = {
|
|
id?: boolean
|
|
subscriptionProductId?: boolean
|
|
stripeId?: boolean
|
|
billingPeriod?: boolean
|
|
currency?: boolean
|
|
unit?: boolean
|
|
unitTitle?: boolean
|
|
unitTitlePlural?: boolean
|
|
usageType?: boolean
|
|
aggregateUsage?: boolean
|
|
tiersMode?: boolean
|
|
billingScheme?: boolean
|
|
}
|
|
|
|
export type SubscriptionUsageBasedPriceOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "subscriptionProductId" | "stripeId" | "billingPeriod" | "currency" | "unit" | "unitTitle" | "unitTitlePlural" | "usageType" | "aggregateUsage" | "tiersMode" | "billingScheme", ExtArgs["result"]["subscriptionUsageBasedPrice"]>
|
|
export type SubscriptionUsageBasedPriceInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
subscriptionProduct?: boolean | Prisma.SubscriptionProductDefaultArgs<ExtArgs>
|
|
tiers?: boolean | Prisma.SubscriptionUsageBasedPrice$tiersArgs<ExtArgs>
|
|
tenantProductPrices?: boolean | Prisma.SubscriptionUsageBasedPrice$tenantProductPricesArgs<ExtArgs>
|
|
_count?: boolean | Prisma.SubscriptionUsageBasedPriceCountOutputTypeDefaultArgs<ExtArgs>
|
|
}
|
|
export type SubscriptionUsageBasedPriceIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
subscriptionProduct?: boolean | Prisma.SubscriptionProductDefaultArgs<ExtArgs>
|
|
}
|
|
export type SubscriptionUsageBasedPriceIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
subscriptionProduct?: boolean | Prisma.SubscriptionProductDefaultArgs<ExtArgs>
|
|
}
|
|
|
|
export type $SubscriptionUsageBasedPricePayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
name: "SubscriptionUsageBasedPrice"
|
|
objects: {
|
|
subscriptionProduct: Prisma.$SubscriptionProductPayload<ExtArgs>
|
|
tiers: Prisma.$SubscriptionUsageBasedTierPayload<ExtArgs>[]
|
|
tenantProductPrices: Prisma.$TenantSubscriptionProductPricePayload<ExtArgs>[]
|
|
}
|
|
scalars: runtime.Types.Extensions.GetPayloadResult<{
|
|
id: string
|
|
subscriptionProductId: string
|
|
stripeId: string
|
|
billingPeriod: number
|
|
currency: string
|
|
unit: string
|
|
unitTitle: string
|
|
unitTitlePlural: string
|
|
usageType: string
|
|
aggregateUsage: string
|
|
tiersMode: string
|
|
billingScheme: string
|
|
}, ExtArgs["result"]["subscriptionUsageBasedPrice"]>
|
|
composites: {}
|
|
}
|
|
|
|
export type SubscriptionUsageBasedPriceGetPayload<S extends boolean | null | undefined | SubscriptionUsageBasedPriceDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$SubscriptionUsageBasedPricePayload, S>
|
|
|
|
export type SubscriptionUsageBasedPriceCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> =
|
|
Omit<SubscriptionUsageBasedPriceFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
|
|
select?: SubscriptionUsageBasedPriceCountAggregateInputType | true
|
|
}
|
|
|
|
export interface SubscriptionUsageBasedPriceDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
|
|
[K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['SubscriptionUsageBasedPrice'], meta: { name: 'SubscriptionUsageBasedPrice' } }
|
|
/**
|
|
* Find zero or one SubscriptionUsageBasedPrice that matches the filter.
|
|
* @param {SubscriptionUsageBasedPriceFindUniqueArgs} args - Arguments to find a SubscriptionUsageBasedPrice
|
|
* @example
|
|
* // Get one SubscriptionUsageBasedPrice
|
|
* const subscriptionUsageBasedPrice = await prisma.subscriptionUsageBasedPrice.findUnique({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findUnique<T extends SubscriptionUsageBasedPriceFindUniqueArgs>(args: Prisma.SelectSubset<T, SubscriptionUsageBasedPriceFindUniqueArgs<ExtArgs>>): Prisma.Prisma__SubscriptionUsageBasedPriceClient<runtime.Types.Result.GetResult<Prisma.$SubscriptionUsageBasedPricePayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Find one SubscriptionUsageBasedPrice that matches the filter or throw an error with `error.code='P2025'`
|
|
* if no matches were found.
|
|
* @param {SubscriptionUsageBasedPriceFindUniqueOrThrowArgs} args - Arguments to find a SubscriptionUsageBasedPrice
|
|
* @example
|
|
* // Get one SubscriptionUsageBasedPrice
|
|
* const subscriptionUsageBasedPrice = await prisma.subscriptionUsageBasedPrice.findUniqueOrThrow({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findUniqueOrThrow<T extends SubscriptionUsageBasedPriceFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, SubscriptionUsageBasedPriceFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__SubscriptionUsageBasedPriceClient<runtime.Types.Result.GetResult<Prisma.$SubscriptionUsageBasedPricePayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Find the first SubscriptionUsageBasedPrice 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 {SubscriptionUsageBasedPriceFindFirstArgs} args - Arguments to find a SubscriptionUsageBasedPrice
|
|
* @example
|
|
* // Get one SubscriptionUsageBasedPrice
|
|
* const subscriptionUsageBasedPrice = await prisma.subscriptionUsageBasedPrice.findFirst({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findFirst<T extends SubscriptionUsageBasedPriceFindFirstArgs>(args?: Prisma.SelectSubset<T, SubscriptionUsageBasedPriceFindFirstArgs<ExtArgs>>): Prisma.Prisma__SubscriptionUsageBasedPriceClient<runtime.Types.Result.GetResult<Prisma.$SubscriptionUsageBasedPricePayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Find the first SubscriptionUsageBasedPrice 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 {SubscriptionUsageBasedPriceFindFirstOrThrowArgs} args - Arguments to find a SubscriptionUsageBasedPrice
|
|
* @example
|
|
* // Get one SubscriptionUsageBasedPrice
|
|
* const subscriptionUsageBasedPrice = await prisma.subscriptionUsageBasedPrice.findFirstOrThrow({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findFirstOrThrow<T extends SubscriptionUsageBasedPriceFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, SubscriptionUsageBasedPriceFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__SubscriptionUsageBasedPriceClient<runtime.Types.Result.GetResult<Prisma.$SubscriptionUsageBasedPricePayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Find zero or more SubscriptionUsageBasedPrices 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 {SubscriptionUsageBasedPriceFindManyArgs} args - Arguments to filter and select certain fields only.
|
|
* @example
|
|
* // Get all SubscriptionUsageBasedPrices
|
|
* const subscriptionUsageBasedPrices = await prisma.subscriptionUsageBasedPrice.findMany()
|
|
*
|
|
* // Get first 10 SubscriptionUsageBasedPrices
|
|
* const subscriptionUsageBasedPrices = await prisma.subscriptionUsageBasedPrice.findMany({ take: 10 })
|
|
*
|
|
* // Only select the `id`
|
|
* const subscriptionUsageBasedPriceWithIdOnly = await prisma.subscriptionUsageBasedPrice.findMany({ select: { id: true } })
|
|
*
|
|
*/
|
|
findMany<T extends SubscriptionUsageBasedPriceFindManyArgs>(args?: Prisma.SelectSubset<T, SubscriptionUsageBasedPriceFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$SubscriptionUsageBasedPricePayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
|
|
|
|
/**
|
|
* Create a SubscriptionUsageBasedPrice.
|
|
* @param {SubscriptionUsageBasedPriceCreateArgs} args - Arguments to create a SubscriptionUsageBasedPrice.
|
|
* @example
|
|
* // Create one SubscriptionUsageBasedPrice
|
|
* const SubscriptionUsageBasedPrice = await prisma.subscriptionUsageBasedPrice.create({
|
|
* data: {
|
|
* // ... data to create a SubscriptionUsageBasedPrice
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
create<T extends SubscriptionUsageBasedPriceCreateArgs>(args: Prisma.SelectSubset<T, SubscriptionUsageBasedPriceCreateArgs<ExtArgs>>): Prisma.Prisma__SubscriptionUsageBasedPriceClient<runtime.Types.Result.GetResult<Prisma.$SubscriptionUsageBasedPricePayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Create many SubscriptionUsageBasedPrices.
|
|
* @param {SubscriptionUsageBasedPriceCreateManyArgs} args - Arguments to create many SubscriptionUsageBasedPrices.
|
|
* @example
|
|
* // Create many SubscriptionUsageBasedPrices
|
|
* const subscriptionUsageBasedPrice = await prisma.subscriptionUsageBasedPrice.createMany({
|
|
* data: [
|
|
* // ... provide data here
|
|
* ]
|
|
* })
|
|
*
|
|
*/
|
|
createMany<T extends SubscriptionUsageBasedPriceCreateManyArgs>(args?: Prisma.SelectSubset<T, SubscriptionUsageBasedPriceCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
|
|
|
/**
|
|
* Create many SubscriptionUsageBasedPrices and returns the data saved in the database.
|
|
* @param {SubscriptionUsageBasedPriceCreateManyAndReturnArgs} args - Arguments to create many SubscriptionUsageBasedPrices.
|
|
* @example
|
|
* // Create many SubscriptionUsageBasedPrices
|
|
* const subscriptionUsageBasedPrice = await prisma.subscriptionUsageBasedPrice.createManyAndReturn({
|
|
* data: [
|
|
* // ... provide data here
|
|
* ]
|
|
* })
|
|
*
|
|
* // Create many SubscriptionUsageBasedPrices and only return the `id`
|
|
* const subscriptionUsageBasedPriceWithIdOnly = await prisma.subscriptionUsageBasedPrice.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 SubscriptionUsageBasedPriceCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, SubscriptionUsageBasedPriceCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$SubscriptionUsageBasedPricePayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>
|
|
|
|
/**
|
|
* Delete a SubscriptionUsageBasedPrice.
|
|
* @param {SubscriptionUsageBasedPriceDeleteArgs} args - Arguments to delete one SubscriptionUsageBasedPrice.
|
|
* @example
|
|
* // Delete one SubscriptionUsageBasedPrice
|
|
* const SubscriptionUsageBasedPrice = await prisma.subscriptionUsageBasedPrice.delete({
|
|
* where: {
|
|
* // ... filter to delete one SubscriptionUsageBasedPrice
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
delete<T extends SubscriptionUsageBasedPriceDeleteArgs>(args: Prisma.SelectSubset<T, SubscriptionUsageBasedPriceDeleteArgs<ExtArgs>>): Prisma.Prisma__SubscriptionUsageBasedPriceClient<runtime.Types.Result.GetResult<Prisma.$SubscriptionUsageBasedPricePayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Update one SubscriptionUsageBasedPrice.
|
|
* @param {SubscriptionUsageBasedPriceUpdateArgs} args - Arguments to update one SubscriptionUsageBasedPrice.
|
|
* @example
|
|
* // Update one SubscriptionUsageBasedPrice
|
|
* const subscriptionUsageBasedPrice = await prisma.subscriptionUsageBasedPrice.update({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* },
|
|
* data: {
|
|
* // ... provide data here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
update<T extends SubscriptionUsageBasedPriceUpdateArgs>(args: Prisma.SelectSubset<T, SubscriptionUsageBasedPriceUpdateArgs<ExtArgs>>): Prisma.Prisma__SubscriptionUsageBasedPriceClient<runtime.Types.Result.GetResult<Prisma.$SubscriptionUsageBasedPricePayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Delete zero or more SubscriptionUsageBasedPrices.
|
|
* @param {SubscriptionUsageBasedPriceDeleteManyArgs} args - Arguments to filter SubscriptionUsageBasedPrices to delete.
|
|
* @example
|
|
* // Delete a few SubscriptionUsageBasedPrices
|
|
* const { count } = await prisma.subscriptionUsageBasedPrice.deleteMany({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
deleteMany<T extends SubscriptionUsageBasedPriceDeleteManyArgs>(args?: Prisma.SelectSubset<T, SubscriptionUsageBasedPriceDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
|
|
|
/**
|
|
* Update zero or more SubscriptionUsageBasedPrices.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {SubscriptionUsageBasedPriceUpdateManyArgs} args - Arguments to update one or more rows.
|
|
* @example
|
|
* // Update many SubscriptionUsageBasedPrices
|
|
* const subscriptionUsageBasedPrice = await prisma.subscriptionUsageBasedPrice.updateMany({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* },
|
|
* data: {
|
|
* // ... provide data here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
updateMany<T extends SubscriptionUsageBasedPriceUpdateManyArgs>(args: Prisma.SelectSubset<T, SubscriptionUsageBasedPriceUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
|
|
|
/**
|
|
* Update zero or more SubscriptionUsageBasedPrices and returns the data updated in the database.
|
|
* @param {SubscriptionUsageBasedPriceUpdateManyAndReturnArgs} args - Arguments to update many SubscriptionUsageBasedPrices.
|
|
* @example
|
|
* // Update many SubscriptionUsageBasedPrices
|
|
* const subscriptionUsageBasedPrice = await prisma.subscriptionUsageBasedPrice.updateManyAndReturn({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* },
|
|
* data: [
|
|
* // ... provide data here
|
|
* ]
|
|
* })
|
|
*
|
|
* // Update zero or more SubscriptionUsageBasedPrices and only return the `id`
|
|
* const subscriptionUsageBasedPriceWithIdOnly = await prisma.subscriptionUsageBasedPrice.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 SubscriptionUsageBasedPriceUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, SubscriptionUsageBasedPriceUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$SubscriptionUsageBasedPricePayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>
|
|
|
|
/**
|
|
* Create or update one SubscriptionUsageBasedPrice.
|
|
* @param {SubscriptionUsageBasedPriceUpsertArgs} args - Arguments to update or create a SubscriptionUsageBasedPrice.
|
|
* @example
|
|
* // Update or create a SubscriptionUsageBasedPrice
|
|
* const subscriptionUsageBasedPrice = await prisma.subscriptionUsageBasedPrice.upsert({
|
|
* create: {
|
|
* // ... data to create a SubscriptionUsageBasedPrice
|
|
* },
|
|
* update: {
|
|
* // ... in case it already exists, update
|
|
* },
|
|
* where: {
|
|
* // ... the filter for the SubscriptionUsageBasedPrice we want to update
|
|
* }
|
|
* })
|
|
*/
|
|
upsert<T extends SubscriptionUsageBasedPriceUpsertArgs>(args: Prisma.SelectSubset<T, SubscriptionUsageBasedPriceUpsertArgs<ExtArgs>>): Prisma.Prisma__SubscriptionUsageBasedPriceClient<runtime.Types.Result.GetResult<Prisma.$SubscriptionUsageBasedPricePayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
|
|
/**
|
|
* Count the number of SubscriptionUsageBasedPrices.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {SubscriptionUsageBasedPriceCountArgs} args - Arguments to filter SubscriptionUsageBasedPrices to count.
|
|
* @example
|
|
* // Count the number of SubscriptionUsageBasedPrices
|
|
* const count = await prisma.subscriptionUsageBasedPrice.count({
|
|
* where: {
|
|
* // ... the filter for the SubscriptionUsageBasedPrices we want to count
|
|
* }
|
|
* })
|
|
**/
|
|
count<T extends SubscriptionUsageBasedPriceCountArgs>(
|
|
args?: Prisma.Subset<T, SubscriptionUsageBasedPriceCountArgs>,
|
|
): Prisma.PrismaPromise<
|
|
T extends runtime.Types.Utils.Record<'select', any>
|
|
? T['select'] extends true
|
|
? number
|
|
: Prisma.GetScalarType<T['select'], SubscriptionUsageBasedPriceCountAggregateOutputType>
|
|
: number
|
|
>
|
|
|
|
/**
|
|
* Allows you to perform aggregations operations on a SubscriptionUsageBasedPrice.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {SubscriptionUsageBasedPriceAggregateArgs} 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 SubscriptionUsageBasedPriceAggregateArgs>(args: Prisma.Subset<T, SubscriptionUsageBasedPriceAggregateArgs>): Prisma.PrismaPromise<GetSubscriptionUsageBasedPriceAggregateType<T>>
|
|
|
|
/**
|
|
* Group by SubscriptionUsageBasedPrice.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {SubscriptionUsageBasedPriceGroupByArgs} 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 SubscriptionUsageBasedPriceGroupByArgs,
|
|
HasSelectOrTake extends Prisma.Or<
|
|
Prisma.Extends<'skip', Prisma.Keys<T>>,
|
|
Prisma.Extends<'take', Prisma.Keys<T>>
|
|
>,
|
|
OrderByArg extends Prisma.True extends HasSelectOrTake
|
|
? { orderBy: SubscriptionUsageBasedPriceGroupByArgs['orderBy'] }
|
|
: { orderBy?: SubscriptionUsageBasedPriceGroupByArgs['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, SubscriptionUsageBasedPriceGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetSubscriptionUsageBasedPriceGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
|
|
/**
|
|
* Fields of the SubscriptionUsageBasedPrice model
|
|
*/
|
|
readonly fields: SubscriptionUsageBasedPriceFieldRefs;
|
|
}
|
|
|
|
/**
|
|
* The delegate class that acts as a "Promise-like" for SubscriptionUsageBasedPrice.
|
|
* 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__SubscriptionUsageBasedPriceClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
|
|
readonly [Symbol.toStringTag]: "PrismaPromise"
|
|
subscriptionProduct<T extends Prisma.SubscriptionProductDefaultArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.SubscriptionProductDefaultArgs<ExtArgs>>): Prisma.Prisma__SubscriptionProductClient<runtime.Types.Result.GetResult<Prisma.$SubscriptionProductPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>
|
|
tiers<T extends Prisma.SubscriptionUsageBasedPrice$tiersArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.SubscriptionUsageBasedPrice$tiersArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$SubscriptionUsageBasedTierPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
|
|
tenantProductPrices<T extends Prisma.SubscriptionUsageBasedPrice$tenantProductPricesArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.SubscriptionUsageBasedPrice$tenantProductPricesArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$TenantSubscriptionProductPricePayload<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 SubscriptionUsageBasedPrice model
|
|
*/
|
|
export interface SubscriptionUsageBasedPriceFieldRefs {
|
|
readonly id: Prisma.FieldRef<"SubscriptionUsageBasedPrice", 'String'>
|
|
readonly subscriptionProductId: Prisma.FieldRef<"SubscriptionUsageBasedPrice", 'String'>
|
|
readonly stripeId: Prisma.FieldRef<"SubscriptionUsageBasedPrice", 'String'>
|
|
readonly billingPeriod: Prisma.FieldRef<"SubscriptionUsageBasedPrice", 'Int'>
|
|
readonly currency: Prisma.FieldRef<"SubscriptionUsageBasedPrice", 'String'>
|
|
readonly unit: Prisma.FieldRef<"SubscriptionUsageBasedPrice", 'String'>
|
|
readonly unitTitle: Prisma.FieldRef<"SubscriptionUsageBasedPrice", 'String'>
|
|
readonly unitTitlePlural: Prisma.FieldRef<"SubscriptionUsageBasedPrice", 'String'>
|
|
readonly usageType: Prisma.FieldRef<"SubscriptionUsageBasedPrice", 'String'>
|
|
readonly aggregateUsage: Prisma.FieldRef<"SubscriptionUsageBasedPrice", 'String'>
|
|
readonly tiersMode: Prisma.FieldRef<"SubscriptionUsageBasedPrice", 'String'>
|
|
readonly billingScheme: Prisma.FieldRef<"SubscriptionUsageBasedPrice", 'String'>
|
|
}
|
|
|
|
|
|
// Custom InputTypes
|
|
/**
|
|
* SubscriptionUsageBasedPrice findUnique
|
|
*/
|
|
export type SubscriptionUsageBasedPriceFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the SubscriptionUsageBasedPrice
|
|
*/
|
|
select?: Prisma.SubscriptionUsageBasedPriceSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the SubscriptionUsageBasedPrice
|
|
*/
|
|
omit?: Prisma.SubscriptionUsageBasedPriceOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.SubscriptionUsageBasedPriceInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which SubscriptionUsageBasedPrice to fetch.
|
|
*/
|
|
where: Prisma.SubscriptionUsageBasedPriceWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* SubscriptionUsageBasedPrice findUniqueOrThrow
|
|
*/
|
|
export type SubscriptionUsageBasedPriceFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the SubscriptionUsageBasedPrice
|
|
*/
|
|
select?: Prisma.SubscriptionUsageBasedPriceSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the SubscriptionUsageBasedPrice
|
|
*/
|
|
omit?: Prisma.SubscriptionUsageBasedPriceOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.SubscriptionUsageBasedPriceInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which SubscriptionUsageBasedPrice to fetch.
|
|
*/
|
|
where: Prisma.SubscriptionUsageBasedPriceWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* SubscriptionUsageBasedPrice findFirst
|
|
*/
|
|
export type SubscriptionUsageBasedPriceFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the SubscriptionUsageBasedPrice
|
|
*/
|
|
select?: Prisma.SubscriptionUsageBasedPriceSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the SubscriptionUsageBasedPrice
|
|
*/
|
|
omit?: Prisma.SubscriptionUsageBasedPriceOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.SubscriptionUsageBasedPriceInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which SubscriptionUsageBasedPrice to fetch.
|
|
*/
|
|
where?: Prisma.SubscriptionUsageBasedPriceWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of SubscriptionUsageBasedPrices to fetch.
|
|
*/
|
|
orderBy?: Prisma.SubscriptionUsageBasedPriceOrderByWithRelationInput | Prisma.SubscriptionUsageBasedPriceOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for searching for SubscriptionUsageBasedPrices.
|
|
*/
|
|
cursor?: Prisma.SubscriptionUsageBasedPriceWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` SubscriptionUsageBasedPrices 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` SubscriptionUsageBasedPrices.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
*
|
|
* Filter by unique combinations of SubscriptionUsageBasedPrices.
|
|
*/
|
|
distinct?: Prisma.SubscriptionUsageBasedPriceScalarFieldEnum | Prisma.SubscriptionUsageBasedPriceScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* SubscriptionUsageBasedPrice findFirstOrThrow
|
|
*/
|
|
export type SubscriptionUsageBasedPriceFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the SubscriptionUsageBasedPrice
|
|
*/
|
|
select?: Prisma.SubscriptionUsageBasedPriceSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the SubscriptionUsageBasedPrice
|
|
*/
|
|
omit?: Prisma.SubscriptionUsageBasedPriceOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.SubscriptionUsageBasedPriceInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which SubscriptionUsageBasedPrice to fetch.
|
|
*/
|
|
where?: Prisma.SubscriptionUsageBasedPriceWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of SubscriptionUsageBasedPrices to fetch.
|
|
*/
|
|
orderBy?: Prisma.SubscriptionUsageBasedPriceOrderByWithRelationInput | Prisma.SubscriptionUsageBasedPriceOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for searching for SubscriptionUsageBasedPrices.
|
|
*/
|
|
cursor?: Prisma.SubscriptionUsageBasedPriceWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` SubscriptionUsageBasedPrices 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` SubscriptionUsageBasedPrices.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
*
|
|
* Filter by unique combinations of SubscriptionUsageBasedPrices.
|
|
*/
|
|
distinct?: Prisma.SubscriptionUsageBasedPriceScalarFieldEnum | Prisma.SubscriptionUsageBasedPriceScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* SubscriptionUsageBasedPrice findMany
|
|
*/
|
|
export type SubscriptionUsageBasedPriceFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the SubscriptionUsageBasedPrice
|
|
*/
|
|
select?: Prisma.SubscriptionUsageBasedPriceSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the SubscriptionUsageBasedPrice
|
|
*/
|
|
omit?: Prisma.SubscriptionUsageBasedPriceOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.SubscriptionUsageBasedPriceInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which SubscriptionUsageBasedPrices to fetch.
|
|
*/
|
|
where?: Prisma.SubscriptionUsageBasedPriceWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of SubscriptionUsageBasedPrices to fetch.
|
|
*/
|
|
orderBy?: Prisma.SubscriptionUsageBasedPriceOrderByWithRelationInput | Prisma.SubscriptionUsageBasedPriceOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for listing SubscriptionUsageBasedPrices.
|
|
*/
|
|
cursor?: Prisma.SubscriptionUsageBasedPriceWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` SubscriptionUsageBasedPrices 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` SubscriptionUsageBasedPrices.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
*
|
|
* Filter by unique combinations of SubscriptionUsageBasedPrices.
|
|
*/
|
|
distinct?: Prisma.SubscriptionUsageBasedPriceScalarFieldEnum | Prisma.SubscriptionUsageBasedPriceScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* SubscriptionUsageBasedPrice create
|
|
*/
|
|
export type SubscriptionUsageBasedPriceCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the SubscriptionUsageBasedPrice
|
|
*/
|
|
select?: Prisma.SubscriptionUsageBasedPriceSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the SubscriptionUsageBasedPrice
|
|
*/
|
|
omit?: Prisma.SubscriptionUsageBasedPriceOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.SubscriptionUsageBasedPriceInclude<ExtArgs> | null
|
|
/**
|
|
* The data needed to create a SubscriptionUsageBasedPrice.
|
|
*/
|
|
data: Prisma.XOR<Prisma.SubscriptionUsageBasedPriceCreateInput, Prisma.SubscriptionUsageBasedPriceUncheckedCreateInput>
|
|
}
|
|
|
|
/**
|
|
* SubscriptionUsageBasedPrice createMany
|
|
*/
|
|
export type SubscriptionUsageBasedPriceCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* The data used to create many SubscriptionUsageBasedPrices.
|
|
*/
|
|
data: Prisma.SubscriptionUsageBasedPriceCreateManyInput | Prisma.SubscriptionUsageBasedPriceCreateManyInput[]
|
|
skipDuplicates?: boolean
|
|
}
|
|
|
|
/**
|
|
* SubscriptionUsageBasedPrice createManyAndReturn
|
|
*/
|
|
export type SubscriptionUsageBasedPriceCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the SubscriptionUsageBasedPrice
|
|
*/
|
|
select?: Prisma.SubscriptionUsageBasedPriceSelectCreateManyAndReturn<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the SubscriptionUsageBasedPrice
|
|
*/
|
|
omit?: Prisma.SubscriptionUsageBasedPriceOmit<ExtArgs> | null
|
|
/**
|
|
* The data used to create many SubscriptionUsageBasedPrices.
|
|
*/
|
|
data: Prisma.SubscriptionUsageBasedPriceCreateManyInput | Prisma.SubscriptionUsageBasedPriceCreateManyInput[]
|
|
skipDuplicates?: boolean
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.SubscriptionUsageBasedPriceIncludeCreateManyAndReturn<ExtArgs> | null
|
|
}
|
|
|
|
/**
|
|
* SubscriptionUsageBasedPrice update
|
|
*/
|
|
export type SubscriptionUsageBasedPriceUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the SubscriptionUsageBasedPrice
|
|
*/
|
|
select?: Prisma.SubscriptionUsageBasedPriceSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the SubscriptionUsageBasedPrice
|
|
*/
|
|
omit?: Prisma.SubscriptionUsageBasedPriceOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.SubscriptionUsageBasedPriceInclude<ExtArgs> | null
|
|
/**
|
|
* The data needed to update a SubscriptionUsageBasedPrice.
|
|
*/
|
|
data: Prisma.XOR<Prisma.SubscriptionUsageBasedPriceUpdateInput, Prisma.SubscriptionUsageBasedPriceUncheckedUpdateInput>
|
|
/**
|
|
* Choose, which SubscriptionUsageBasedPrice to update.
|
|
*/
|
|
where: Prisma.SubscriptionUsageBasedPriceWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* SubscriptionUsageBasedPrice updateMany
|
|
*/
|
|
export type SubscriptionUsageBasedPriceUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* The data used to update SubscriptionUsageBasedPrices.
|
|
*/
|
|
data: Prisma.XOR<Prisma.SubscriptionUsageBasedPriceUpdateManyMutationInput, Prisma.SubscriptionUsageBasedPriceUncheckedUpdateManyInput>
|
|
/**
|
|
* Filter which SubscriptionUsageBasedPrices to update
|
|
*/
|
|
where?: Prisma.SubscriptionUsageBasedPriceWhereInput
|
|
/**
|
|
* Limit how many SubscriptionUsageBasedPrices to update.
|
|
*/
|
|
limit?: number
|
|
}
|
|
|
|
/**
|
|
* SubscriptionUsageBasedPrice updateManyAndReturn
|
|
*/
|
|
export type SubscriptionUsageBasedPriceUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the SubscriptionUsageBasedPrice
|
|
*/
|
|
select?: Prisma.SubscriptionUsageBasedPriceSelectUpdateManyAndReturn<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the SubscriptionUsageBasedPrice
|
|
*/
|
|
omit?: Prisma.SubscriptionUsageBasedPriceOmit<ExtArgs> | null
|
|
/**
|
|
* The data used to update SubscriptionUsageBasedPrices.
|
|
*/
|
|
data: Prisma.XOR<Prisma.SubscriptionUsageBasedPriceUpdateManyMutationInput, Prisma.SubscriptionUsageBasedPriceUncheckedUpdateManyInput>
|
|
/**
|
|
* Filter which SubscriptionUsageBasedPrices to update
|
|
*/
|
|
where?: Prisma.SubscriptionUsageBasedPriceWhereInput
|
|
/**
|
|
* Limit how many SubscriptionUsageBasedPrices to update.
|
|
*/
|
|
limit?: number
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.SubscriptionUsageBasedPriceIncludeUpdateManyAndReturn<ExtArgs> | null
|
|
}
|
|
|
|
/**
|
|
* SubscriptionUsageBasedPrice upsert
|
|
*/
|
|
export type SubscriptionUsageBasedPriceUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the SubscriptionUsageBasedPrice
|
|
*/
|
|
select?: Prisma.SubscriptionUsageBasedPriceSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the SubscriptionUsageBasedPrice
|
|
*/
|
|
omit?: Prisma.SubscriptionUsageBasedPriceOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.SubscriptionUsageBasedPriceInclude<ExtArgs> | null
|
|
/**
|
|
* The filter to search for the SubscriptionUsageBasedPrice to update in case it exists.
|
|
*/
|
|
where: Prisma.SubscriptionUsageBasedPriceWhereUniqueInput
|
|
/**
|
|
* In case the SubscriptionUsageBasedPrice found by the `where` argument doesn't exist, create a new SubscriptionUsageBasedPrice with this data.
|
|
*/
|
|
create: Prisma.XOR<Prisma.SubscriptionUsageBasedPriceCreateInput, Prisma.SubscriptionUsageBasedPriceUncheckedCreateInput>
|
|
/**
|
|
* In case the SubscriptionUsageBasedPrice was found with the provided `where` argument, update it with this data.
|
|
*/
|
|
update: Prisma.XOR<Prisma.SubscriptionUsageBasedPriceUpdateInput, Prisma.SubscriptionUsageBasedPriceUncheckedUpdateInput>
|
|
}
|
|
|
|
/**
|
|
* SubscriptionUsageBasedPrice delete
|
|
*/
|
|
export type SubscriptionUsageBasedPriceDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the SubscriptionUsageBasedPrice
|
|
*/
|
|
select?: Prisma.SubscriptionUsageBasedPriceSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the SubscriptionUsageBasedPrice
|
|
*/
|
|
omit?: Prisma.SubscriptionUsageBasedPriceOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.SubscriptionUsageBasedPriceInclude<ExtArgs> | null
|
|
/**
|
|
* Filter which SubscriptionUsageBasedPrice to delete.
|
|
*/
|
|
where: Prisma.SubscriptionUsageBasedPriceWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* SubscriptionUsageBasedPrice deleteMany
|
|
*/
|
|
export type SubscriptionUsageBasedPriceDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Filter which SubscriptionUsageBasedPrices to delete
|
|
*/
|
|
where?: Prisma.SubscriptionUsageBasedPriceWhereInput
|
|
/**
|
|
* Limit how many SubscriptionUsageBasedPrices to delete.
|
|
*/
|
|
limit?: number
|
|
}
|
|
|
|
/**
|
|
* SubscriptionUsageBasedPrice.tiers
|
|
*/
|
|
export type SubscriptionUsageBasedPrice$tiersArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the SubscriptionUsageBasedTier
|
|
*/
|
|
select?: Prisma.SubscriptionUsageBasedTierSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the SubscriptionUsageBasedTier
|
|
*/
|
|
omit?: Prisma.SubscriptionUsageBasedTierOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.SubscriptionUsageBasedTierInclude<ExtArgs> | null
|
|
where?: Prisma.SubscriptionUsageBasedTierWhereInput
|
|
orderBy?: Prisma.SubscriptionUsageBasedTierOrderByWithRelationInput | Prisma.SubscriptionUsageBasedTierOrderByWithRelationInput[]
|
|
cursor?: Prisma.SubscriptionUsageBasedTierWhereUniqueInput
|
|
take?: number
|
|
skip?: number
|
|
distinct?: Prisma.SubscriptionUsageBasedTierScalarFieldEnum | Prisma.SubscriptionUsageBasedTierScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* SubscriptionUsageBasedPrice.tenantProductPrices
|
|
*/
|
|
export type SubscriptionUsageBasedPrice$tenantProductPricesArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the TenantSubscriptionProductPrice
|
|
*/
|
|
select?: Prisma.TenantSubscriptionProductPriceSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the TenantSubscriptionProductPrice
|
|
*/
|
|
omit?: Prisma.TenantSubscriptionProductPriceOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.TenantSubscriptionProductPriceInclude<ExtArgs> | null
|
|
where?: Prisma.TenantSubscriptionProductPriceWhereInput
|
|
orderBy?: Prisma.TenantSubscriptionProductPriceOrderByWithRelationInput | Prisma.TenantSubscriptionProductPriceOrderByWithRelationInput[]
|
|
cursor?: Prisma.TenantSubscriptionProductPriceWhereUniqueInput
|
|
take?: number
|
|
skip?: number
|
|
distinct?: Prisma.TenantSubscriptionProductPriceScalarFieldEnum | Prisma.TenantSubscriptionProductPriceScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* SubscriptionUsageBasedPrice without action
|
|
*/
|
|
export type SubscriptionUsageBasedPriceDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the SubscriptionUsageBasedPrice
|
|
*/
|
|
select?: Prisma.SubscriptionUsageBasedPriceSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the SubscriptionUsageBasedPrice
|
|
*/
|
|
omit?: Prisma.SubscriptionUsageBasedPriceOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.SubscriptionUsageBasedPriceInclude<ExtArgs> | null
|
|
}
|