/* !!! This is code generated by Prisma. Do not edit directly. !!! */ /* eslint-disable */ // biome-ignore-all lint: generated file // @ts-nocheck /* * This file exports the `SubscriptionPrice` 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 SubscriptionPrice * */ export type SubscriptionPriceModel = runtime.Types.Result.DefaultSelection export type AggregateSubscriptionPrice = { _count: SubscriptionPriceCountAggregateOutputType | null _avg: SubscriptionPriceAvgAggregateOutputType | null _sum: SubscriptionPriceSumAggregateOutputType | null _min: SubscriptionPriceMinAggregateOutputType | null _max: SubscriptionPriceMaxAggregateOutputType | null } export type SubscriptionPriceAvgAggregateOutputType = { type: number | null billingPeriod: number | null price: runtime.Decimal | null trialDays: number | null } export type SubscriptionPriceSumAggregateOutputType = { type: number | null billingPeriod: number | null price: runtime.Decimal | null trialDays: number | null } export type SubscriptionPriceMinAggregateOutputType = { id: string | null subscriptionProductId: string | null stripeId: string | null type: number | null billingPeriod: number | null price: runtime.Decimal | null currency: string | null trialDays: number | null active: boolean | null } export type SubscriptionPriceMaxAggregateOutputType = { id: string | null subscriptionProductId: string | null stripeId: string | null type: number | null billingPeriod: number | null price: runtime.Decimal | null currency: string | null trialDays: number | null active: boolean | null } export type SubscriptionPriceCountAggregateOutputType = { id: number subscriptionProductId: number stripeId: number type: number billingPeriod: number price: number currency: number trialDays: number active: number _all: number } export type SubscriptionPriceAvgAggregateInputType = { type?: true billingPeriod?: true price?: true trialDays?: true } export type SubscriptionPriceSumAggregateInputType = { type?: true billingPeriod?: true price?: true trialDays?: true } export type SubscriptionPriceMinAggregateInputType = { id?: true subscriptionProductId?: true stripeId?: true type?: true billingPeriod?: true price?: true currency?: true trialDays?: true active?: true } export type SubscriptionPriceMaxAggregateInputType = { id?: true subscriptionProductId?: true stripeId?: true type?: true billingPeriod?: true price?: true currency?: true trialDays?: true active?: true } export type SubscriptionPriceCountAggregateInputType = { id?: true subscriptionProductId?: true stripeId?: true type?: true billingPeriod?: true price?: true currency?: true trialDays?: true active?: true _all?: true } export type SubscriptionPriceAggregateArgs = { /** * Filter which SubscriptionPrice to aggregate. */ where?: Prisma.SubscriptionPriceWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of SubscriptionPrices to fetch. */ orderBy?: Prisma.SubscriptionPriceOrderByWithRelationInput | Prisma.SubscriptionPriceOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the start position */ cursor?: Prisma.SubscriptionPriceWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` SubscriptionPrices 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` SubscriptionPrices. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Count returned SubscriptionPrices **/ _count?: true | SubscriptionPriceCountAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to average **/ _avg?: SubscriptionPriceAvgAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to sum **/ _sum?: SubscriptionPriceSumAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the minimum value **/ _min?: SubscriptionPriceMinAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the maximum value **/ _max?: SubscriptionPriceMaxAggregateInputType } export type GetSubscriptionPriceAggregateType = { [P in keyof T & keyof AggregateSubscriptionPrice]: P extends '_count' | 'count' ? T[P] extends true ? number : Prisma.GetScalarType : Prisma.GetScalarType } export type SubscriptionPriceGroupByArgs = { where?: Prisma.SubscriptionPriceWhereInput orderBy?: Prisma.SubscriptionPriceOrderByWithAggregationInput | Prisma.SubscriptionPriceOrderByWithAggregationInput[] by: Prisma.SubscriptionPriceScalarFieldEnum[] | Prisma.SubscriptionPriceScalarFieldEnum having?: Prisma.SubscriptionPriceScalarWhereWithAggregatesInput take?: number skip?: number _count?: SubscriptionPriceCountAggregateInputType | true _avg?: SubscriptionPriceAvgAggregateInputType _sum?: SubscriptionPriceSumAggregateInputType _min?: SubscriptionPriceMinAggregateInputType _max?: SubscriptionPriceMaxAggregateInputType } export type SubscriptionPriceGroupByOutputType = { id: string subscriptionProductId: string stripeId: string type: number billingPeriod: number price: runtime.Decimal currency: string trialDays: number active: boolean _count: SubscriptionPriceCountAggregateOutputType | null _avg: SubscriptionPriceAvgAggregateOutputType | null _sum: SubscriptionPriceSumAggregateOutputType | null _min: SubscriptionPriceMinAggregateOutputType | null _max: SubscriptionPriceMaxAggregateOutputType | null } export type GetSubscriptionPriceGroupByPayload = Prisma.PrismaPromise< Array< Prisma.PickEnumerable & { [P in ((keyof T) & (keyof SubscriptionPriceGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : Prisma.GetScalarType : Prisma.GetScalarType } > > export type SubscriptionPriceWhereInput = { AND?: Prisma.SubscriptionPriceWhereInput | Prisma.SubscriptionPriceWhereInput[] OR?: Prisma.SubscriptionPriceWhereInput[] NOT?: Prisma.SubscriptionPriceWhereInput | Prisma.SubscriptionPriceWhereInput[] id?: Prisma.StringFilter<"SubscriptionPrice"> | string subscriptionProductId?: Prisma.StringFilter<"SubscriptionPrice"> | string stripeId?: Prisma.StringFilter<"SubscriptionPrice"> | string type?: Prisma.IntFilter<"SubscriptionPrice"> | number billingPeriod?: Prisma.IntFilter<"SubscriptionPrice"> | number price?: Prisma.DecimalFilter<"SubscriptionPrice"> | runtime.Decimal | runtime.DecimalJsLike | number | string currency?: Prisma.StringFilter<"SubscriptionPrice"> | string trialDays?: Prisma.IntFilter<"SubscriptionPrice"> | number active?: Prisma.BoolFilter<"SubscriptionPrice"> | boolean subscriptionProduct?: Prisma.XOR tenantProductPrices?: Prisma.TenantSubscriptionProductPriceListRelationFilter } export type SubscriptionPriceOrderByWithRelationInput = { id?: Prisma.SortOrder subscriptionProductId?: Prisma.SortOrder stripeId?: Prisma.SortOrder type?: Prisma.SortOrder billingPeriod?: Prisma.SortOrder price?: Prisma.SortOrder currency?: Prisma.SortOrder trialDays?: Prisma.SortOrder active?: Prisma.SortOrder subscriptionProduct?: Prisma.SubscriptionProductOrderByWithRelationInput tenantProductPrices?: Prisma.TenantSubscriptionProductPriceOrderByRelationAggregateInput } export type SubscriptionPriceWhereUniqueInput = Prisma.AtLeast<{ id?: string AND?: Prisma.SubscriptionPriceWhereInput | Prisma.SubscriptionPriceWhereInput[] OR?: Prisma.SubscriptionPriceWhereInput[] NOT?: Prisma.SubscriptionPriceWhereInput | Prisma.SubscriptionPriceWhereInput[] subscriptionProductId?: Prisma.StringFilter<"SubscriptionPrice"> | string stripeId?: Prisma.StringFilter<"SubscriptionPrice"> | string type?: Prisma.IntFilter<"SubscriptionPrice"> | number billingPeriod?: Prisma.IntFilter<"SubscriptionPrice"> | number price?: Prisma.DecimalFilter<"SubscriptionPrice"> | runtime.Decimal | runtime.DecimalJsLike | number | string currency?: Prisma.StringFilter<"SubscriptionPrice"> | string trialDays?: Prisma.IntFilter<"SubscriptionPrice"> | number active?: Prisma.BoolFilter<"SubscriptionPrice"> | boolean subscriptionProduct?: Prisma.XOR tenantProductPrices?: Prisma.TenantSubscriptionProductPriceListRelationFilter }, "id"> export type SubscriptionPriceOrderByWithAggregationInput = { id?: Prisma.SortOrder subscriptionProductId?: Prisma.SortOrder stripeId?: Prisma.SortOrder type?: Prisma.SortOrder billingPeriod?: Prisma.SortOrder price?: Prisma.SortOrder currency?: Prisma.SortOrder trialDays?: Prisma.SortOrder active?: Prisma.SortOrder _count?: Prisma.SubscriptionPriceCountOrderByAggregateInput _avg?: Prisma.SubscriptionPriceAvgOrderByAggregateInput _max?: Prisma.SubscriptionPriceMaxOrderByAggregateInput _min?: Prisma.SubscriptionPriceMinOrderByAggregateInput _sum?: Prisma.SubscriptionPriceSumOrderByAggregateInput } export type SubscriptionPriceScalarWhereWithAggregatesInput = { AND?: Prisma.SubscriptionPriceScalarWhereWithAggregatesInput | Prisma.SubscriptionPriceScalarWhereWithAggregatesInput[] OR?: Prisma.SubscriptionPriceScalarWhereWithAggregatesInput[] NOT?: Prisma.SubscriptionPriceScalarWhereWithAggregatesInput | Prisma.SubscriptionPriceScalarWhereWithAggregatesInput[] id?: Prisma.StringWithAggregatesFilter<"SubscriptionPrice"> | string subscriptionProductId?: Prisma.StringWithAggregatesFilter<"SubscriptionPrice"> | string stripeId?: Prisma.StringWithAggregatesFilter<"SubscriptionPrice"> | string type?: Prisma.IntWithAggregatesFilter<"SubscriptionPrice"> | number billingPeriod?: Prisma.IntWithAggregatesFilter<"SubscriptionPrice"> | number price?: Prisma.DecimalWithAggregatesFilter<"SubscriptionPrice"> | runtime.Decimal | runtime.DecimalJsLike | number | string currency?: Prisma.StringWithAggregatesFilter<"SubscriptionPrice"> | string trialDays?: Prisma.IntWithAggregatesFilter<"SubscriptionPrice"> | number active?: Prisma.BoolWithAggregatesFilter<"SubscriptionPrice"> | boolean } export type SubscriptionPriceCreateInput = { id?: string stripeId: string type: number billingPeriod: number price: runtime.Decimal | runtime.DecimalJsLike | number | string currency: string trialDays: number active: boolean subscriptionProduct: Prisma.SubscriptionProductCreateNestedOneWithoutPricesInput tenantProductPrices?: Prisma.TenantSubscriptionProductPriceCreateNestedManyWithoutSubscriptionPriceInput } export type SubscriptionPriceUncheckedCreateInput = { id?: string subscriptionProductId: string stripeId: string type: number billingPeriod: number price: runtime.Decimal | runtime.DecimalJsLike | number | string currency: string trialDays: number active: boolean tenantProductPrices?: Prisma.TenantSubscriptionProductPriceUncheckedCreateNestedManyWithoutSubscriptionPriceInput } export type SubscriptionPriceUpdateInput = { id?: Prisma.StringFieldUpdateOperationsInput | string stripeId?: Prisma.StringFieldUpdateOperationsInput | string type?: Prisma.IntFieldUpdateOperationsInput | number billingPeriod?: Prisma.IntFieldUpdateOperationsInput | number price?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string currency?: Prisma.StringFieldUpdateOperationsInput | string trialDays?: Prisma.IntFieldUpdateOperationsInput | number active?: Prisma.BoolFieldUpdateOperationsInput | boolean subscriptionProduct?: Prisma.SubscriptionProductUpdateOneRequiredWithoutPricesNestedInput tenantProductPrices?: Prisma.TenantSubscriptionProductPriceUpdateManyWithoutSubscriptionPriceNestedInput } export type SubscriptionPriceUncheckedUpdateInput = { id?: Prisma.StringFieldUpdateOperationsInput | string subscriptionProductId?: Prisma.StringFieldUpdateOperationsInput | string stripeId?: Prisma.StringFieldUpdateOperationsInput | string type?: Prisma.IntFieldUpdateOperationsInput | number billingPeriod?: Prisma.IntFieldUpdateOperationsInput | number price?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string currency?: Prisma.StringFieldUpdateOperationsInput | string trialDays?: Prisma.IntFieldUpdateOperationsInput | number active?: Prisma.BoolFieldUpdateOperationsInput | boolean tenantProductPrices?: Prisma.TenantSubscriptionProductPriceUncheckedUpdateManyWithoutSubscriptionPriceNestedInput } export type SubscriptionPriceCreateManyInput = { id?: string subscriptionProductId: string stripeId: string type: number billingPeriod: number price: runtime.Decimal | runtime.DecimalJsLike | number | string currency: string trialDays: number active: boolean } export type SubscriptionPriceUpdateManyMutationInput = { id?: Prisma.StringFieldUpdateOperationsInput | string stripeId?: Prisma.StringFieldUpdateOperationsInput | string type?: Prisma.IntFieldUpdateOperationsInput | number billingPeriod?: Prisma.IntFieldUpdateOperationsInput | number price?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string currency?: Prisma.StringFieldUpdateOperationsInput | string trialDays?: Prisma.IntFieldUpdateOperationsInput | number active?: Prisma.BoolFieldUpdateOperationsInput | boolean } export type SubscriptionPriceUncheckedUpdateManyInput = { id?: Prisma.StringFieldUpdateOperationsInput | string subscriptionProductId?: Prisma.StringFieldUpdateOperationsInput | string stripeId?: Prisma.StringFieldUpdateOperationsInput | string type?: Prisma.IntFieldUpdateOperationsInput | number billingPeriod?: Prisma.IntFieldUpdateOperationsInput | number price?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string currency?: Prisma.StringFieldUpdateOperationsInput | string trialDays?: Prisma.IntFieldUpdateOperationsInput | number active?: Prisma.BoolFieldUpdateOperationsInput | boolean } export type SubscriptionPriceListRelationFilter = { every?: Prisma.SubscriptionPriceWhereInput some?: Prisma.SubscriptionPriceWhereInput none?: Prisma.SubscriptionPriceWhereInput } export type SubscriptionPriceOrderByRelationAggregateInput = { _count?: Prisma.SortOrder } export type SubscriptionPriceCountOrderByAggregateInput = { id?: Prisma.SortOrder subscriptionProductId?: Prisma.SortOrder stripeId?: Prisma.SortOrder type?: Prisma.SortOrder billingPeriod?: Prisma.SortOrder price?: Prisma.SortOrder currency?: Prisma.SortOrder trialDays?: Prisma.SortOrder active?: Prisma.SortOrder } export type SubscriptionPriceAvgOrderByAggregateInput = { type?: Prisma.SortOrder billingPeriod?: Prisma.SortOrder price?: Prisma.SortOrder trialDays?: Prisma.SortOrder } export type SubscriptionPriceMaxOrderByAggregateInput = { id?: Prisma.SortOrder subscriptionProductId?: Prisma.SortOrder stripeId?: Prisma.SortOrder type?: Prisma.SortOrder billingPeriod?: Prisma.SortOrder price?: Prisma.SortOrder currency?: Prisma.SortOrder trialDays?: Prisma.SortOrder active?: Prisma.SortOrder } export type SubscriptionPriceMinOrderByAggregateInput = { id?: Prisma.SortOrder subscriptionProductId?: Prisma.SortOrder stripeId?: Prisma.SortOrder type?: Prisma.SortOrder billingPeriod?: Prisma.SortOrder price?: Prisma.SortOrder currency?: Prisma.SortOrder trialDays?: Prisma.SortOrder active?: Prisma.SortOrder } export type SubscriptionPriceSumOrderByAggregateInput = { type?: Prisma.SortOrder billingPeriod?: Prisma.SortOrder price?: Prisma.SortOrder trialDays?: Prisma.SortOrder } export type SubscriptionPriceNullableScalarRelationFilter = { is?: Prisma.SubscriptionPriceWhereInput | null isNot?: Prisma.SubscriptionPriceWhereInput | null } export type SubscriptionPriceCreateNestedManyWithoutSubscriptionProductInput = { create?: Prisma.XOR | Prisma.SubscriptionPriceCreateWithoutSubscriptionProductInput[] | Prisma.SubscriptionPriceUncheckedCreateWithoutSubscriptionProductInput[] connectOrCreate?: Prisma.SubscriptionPriceCreateOrConnectWithoutSubscriptionProductInput | Prisma.SubscriptionPriceCreateOrConnectWithoutSubscriptionProductInput[] createMany?: Prisma.SubscriptionPriceCreateManySubscriptionProductInputEnvelope connect?: Prisma.SubscriptionPriceWhereUniqueInput | Prisma.SubscriptionPriceWhereUniqueInput[] } export type SubscriptionPriceUncheckedCreateNestedManyWithoutSubscriptionProductInput = { create?: Prisma.XOR | Prisma.SubscriptionPriceCreateWithoutSubscriptionProductInput[] | Prisma.SubscriptionPriceUncheckedCreateWithoutSubscriptionProductInput[] connectOrCreate?: Prisma.SubscriptionPriceCreateOrConnectWithoutSubscriptionProductInput | Prisma.SubscriptionPriceCreateOrConnectWithoutSubscriptionProductInput[] createMany?: Prisma.SubscriptionPriceCreateManySubscriptionProductInputEnvelope connect?: Prisma.SubscriptionPriceWhereUniqueInput | Prisma.SubscriptionPriceWhereUniqueInput[] } export type SubscriptionPriceUpdateManyWithoutSubscriptionProductNestedInput = { create?: Prisma.XOR | Prisma.SubscriptionPriceCreateWithoutSubscriptionProductInput[] | Prisma.SubscriptionPriceUncheckedCreateWithoutSubscriptionProductInput[] connectOrCreate?: Prisma.SubscriptionPriceCreateOrConnectWithoutSubscriptionProductInput | Prisma.SubscriptionPriceCreateOrConnectWithoutSubscriptionProductInput[] upsert?: Prisma.SubscriptionPriceUpsertWithWhereUniqueWithoutSubscriptionProductInput | Prisma.SubscriptionPriceUpsertWithWhereUniqueWithoutSubscriptionProductInput[] createMany?: Prisma.SubscriptionPriceCreateManySubscriptionProductInputEnvelope set?: Prisma.SubscriptionPriceWhereUniqueInput | Prisma.SubscriptionPriceWhereUniqueInput[] disconnect?: Prisma.SubscriptionPriceWhereUniqueInput | Prisma.SubscriptionPriceWhereUniqueInput[] delete?: Prisma.SubscriptionPriceWhereUniqueInput | Prisma.SubscriptionPriceWhereUniqueInput[] connect?: Prisma.SubscriptionPriceWhereUniqueInput | Prisma.SubscriptionPriceWhereUniqueInput[] update?: Prisma.SubscriptionPriceUpdateWithWhereUniqueWithoutSubscriptionProductInput | Prisma.SubscriptionPriceUpdateWithWhereUniqueWithoutSubscriptionProductInput[] updateMany?: Prisma.SubscriptionPriceUpdateManyWithWhereWithoutSubscriptionProductInput | Prisma.SubscriptionPriceUpdateManyWithWhereWithoutSubscriptionProductInput[] deleteMany?: Prisma.SubscriptionPriceScalarWhereInput | Prisma.SubscriptionPriceScalarWhereInput[] } export type SubscriptionPriceUncheckedUpdateManyWithoutSubscriptionProductNestedInput = { create?: Prisma.XOR | Prisma.SubscriptionPriceCreateWithoutSubscriptionProductInput[] | Prisma.SubscriptionPriceUncheckedCreateWithoutSubscriptionProductInput[] connectOrCreate?: Prisma.SubscriptionPriceCreateOrConnectWithoutSubscriptionProductInput | Prisma.SubscriptionPriceCreateOrConnectWithoutSubscriptionProductInput[] upsert?: Prisma.SubscriptionPriceUpsertWithWhereUniqueWithoutSubscriptionProductInput | Prisma.SubscriptionPriceUpsertWithWhereUniqueWithoutSubscriptionProductInput[] createMany?: Prisma.SubscriptionPriceCreateManySubscriptionProductInputEnvelope set?: Prisma.SubscriptionPriceWhereUniqueInput | Prisma.SubscriptionPriceWhereUniqueInput[] disconnect?: Prisma.SubscriptionPriceWhereUniqueInput | Prisma.SubscriptionPriceWhereUniqueInput[] delete?: Prisma.SubscriptionPriceWhereUniqueInput | Prisma.SubscriptionPriceWhereUniqueInput[] connect?: Prisma.SubscriptionPriceWhereUniqueInput | Prisma.SubscriptionPriceWhereUniqueInput[] update?: Prisma.SubscriptionPriceUpdateWithWhereUniqueWithoutSubscriptionProductInput | Prisma.SubscriptionPriceUpdateWithWhereUniqueWithoutSubscriptionProductInput[] updateMany?: Prisma.SubscriptionPriceUpdateManyWithWhereWithoutSubscriptionProductInput | Prisma.SubscriptionPriceUpdateManyWithWhereWithoutSubscriptionProductInput[] deleteMany?: Prisma.SubscriptionPriceScalarWhereInput | Prisma.SubscriptionPriceScalarWhereInput[] } export type SubscriptionPriceCreateNestedOneWithoutTenantProductPricesInput = { create?: Prisma.XOR connectOrCreate?: Prisma.SubscriptionPriceCreateOrConnectWithoutTenantProductPricesInput connect?: Prisma.SubscriptionPriceWhereUniqueInput } export type SubscriptionPriceUpdateOneWithoutTenantProductPricesNestedInput = { create?: Prisma.XOR connectOrCreate?: Prisma.SubscriptionPriceCreateOrConnectWithoutTenantProductPricesInput upsert?: Prisma.SubscriptionPriceUpsertWithoutTenantProductPricesInput disconnect?: Prisma.SubscriptionPriceWhereInput | boolean delete?: Prisma.SubscriptionPriceWhereInput | boolean connect?: Prisma.SubscriptionPriceWhereUniqueInput update?: Prisma.XOR, Prisma.SubscriptionPriceUncheckedUpdateWithoutTenantProductPricesInput> } export type SubscriptionPriceCreateWithoutSubscriptionProductInput = { id?: string stripeId: string type: number billingPeriod: number price: runtime.Decimal | runtime.DecimalJsLike | number | string currency: string trialDays: number active: boolean tenantProductPrices?: Prisma.TenantSubscriptionProductPriceCreateNestedManyWithoutSubscriptionPriceInput } export type SubscriptionPriceUncheckedCreateWithoutSubscriptionProductInput = { id?: string stripeId: string type: number billingPeriod: number price: runtime.Decimal | runtime.DecimalJsLike | number | string currency: string trialDays: number active: boolean tenantProductPrices?: Prisma.TenantSubscriptionProductPriceUncheckedCreateNestedManyWithoutSubscriptionPriceInput } export type SubscriptionPriceCreateOrConnectWithoutSubscriptionProductInput = { where: Prisma.SubscriptionPriceWhereUniqueInput create: Prisma.XOR } export type SubscriptionPriceCreateManySubscriptionProductInputEnvelope = { data: Prisma.SubscriptionPriceCreateManySubscriptionProductInput | Prisma.SubscriptionPriceCreateManySubscriptionProductInput[] skipDuplicates?: boolean } export type SubscriptionPriceUpsertWithWhereUniqueWithoutSubscriptionProductInput = { where: Prisma.SubscriptionPriceWhereUniqueInput update: Prisma.XOR create: Prisma.XOR } export type SubscriptionPriceUpdateWithWhereUniqueWithoutSubscriptionProductInput = { where: Prisma.SubscriptionPriceWhereUniqueInput data: Prisma.XOR } export type SubscriptionPriceUpdateManyWithWhereWithoutSubscriptionProductInput = { where: Prisma.SubscriptionPriceScalarWhereInput data: Prisma.XOR } export type SubscriptionPriceScalarWhereInput = { AND?: Prisma.SubscriptionPriceScalarWhereInput | Prisma.SubscriptionPriceScalarWhereInput[] OR?: Prisma.SubscriptionPriceScalarWhereInput[] NOT?: Prisma.SubscriptionPriceScalarWhereInput | Prisma.SubscriptionPriceScalarWhereInput[] id?: Prisma.StringFilter<"SubscriptionPrice"> | string subscriptionProductId?: Prisma.StringFilter<"SubscriptionPrice"> | string stripeId?: Prisma.StringFilter<"SubscriptionPrice"> | string type?: Prisma.IntFilter<"SubscriptionPrice"> | number billingPeriod?: Prisma.IntFilter<"SubscriptionPrice"> | number price?: Prisma.DecimalFilter<"SubscriptionPrice"> | runtime.Decimal | runtime.DecimalJsLike | number | string currency?: Prisma.StringFilter<"SubscriptionPrice"> | string trialDays?: Prisma.IntFilter<"SubscriptionPrice"> | number active?: Prisma.BoolFilter<"SubscriptionPrice"> | boolean } export type SubscriptionPriceCreateWithoutTenantProductPricesInput = { id?: string stripeId: string type: number billingPeriod: number price: runtime.Decimal | runtime.DecimalJsLike | number | string currency: string trialDays: number active: boolean subscriptionProduct: Prisma.SubscriptionProductCreateNestedOneWithoutPricesInput } export type SubscriptionPriceUncheckedCreateWithoutTenantProductPricesInput = { id?: string subscriptionProductId: string stripeId: string type: number billingPeriod: number price: runtime.Decimal | runtime.DecimalJsLike | number | string currency: string trialDays: number active: boolean } export type SubscriptionPriceCreateOrConnectWithoutTenantProductPricesInput = { where: Prisma.SubscriptionPriceWhereUniqueInput create: Prisma.XOR } export type SubscriptionPriceUpsertWithoutTenantProductPricesInput = { update: Prisma.XOR create: Prisma.XOR where?: Prisma.SubscriptionPriceWhereInput } export type SubscriptionPriceUpdateToOneWithWhereWithoutTenantProductPricesInput = { where?: Prisma.SubscriptionPriceWhereInput data: Prisma.XOR } export type SubscriptionPriceUpdateWithoutTenantProductPricesInput = { id?: Prisma.StringFieldUpdateOperationsInput | string stripeId?: Prisma.StringFieldUpdateOperationsInput | string type?: Prisma.IntFieldUpdateOperationsInput | number billingPeriod?: Prisma.IntFieldUpdateOperationsInput | number price?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string currency?: Prisma.StringFieldUpdateOperationsInput | string trialDays?: Prisma.IntFieldUpdateOperationsInput | number active?: Prisma.BoolFieldUpdateOperationsInput | boolean subscriptionProduct?: Prisma.SubscriptionProductUpdateOneRequiredWithoutPricesNestedInput } export type SubscriptionPriceUncheckedUpdateWithoutTenantProductPricesInput = { id?: Prisma.StringFieldUpdateOperationsInput | string subscriptionProductId?: Prisma.StringFieldUpdateOperationsInput | string stripeId?: Prisma.StringFieldUpdateOperationsInput | string type?: Prisma.IntFieldUpdateOperationsInput | number billingPeriod?: Prisma.IntFieldUpdateOperationsInput | number price?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string currency?: Prisma.StringFieldUpdateOperationsInput | string trialDays?: Prisma.IntFieldUpdateOperationsInput | number active?: Prisma.BoolFieldUpdateOperationsInput | boolean } export type SubscriptionPriceCreateManySubscriptionProductInput = { id?: string stripeId: string type: number billingPeriod: number price: runtime.Decimal | runtime.DecimalJsLike | number | string currency: string trialDays: number active: boolean } export type SubscriptionPriceUpdateWithoutSubscriptionProductInput = { id?: Prisma.StringFieldUpdateOperationsInput | string stripeId?: Prisma.StringFieldUpdateOperationsInput | string type?: Prisma.IntFieldUpdateOperationsInput | number billingPeriod?: Prisma.IntFieldUpdateOperationsInput | number price?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string currency?: Prisma.StringFieldUpdateOperationsInput | string trialDays?: Prisma.IntFieldUpdateOperationsInput | number active?: Prisma.BoolFieldUpdateOperationsInput | boolean tenantProductPrices?: Prisma.TenantSubscriptionProductPriceUpdateManyWithoutSubscriptionPriceNestedInput } export type SubscriptionPriceUncheckedUpdateWithoutSubscriptionProductInput = { id?: Prisma.StringFieldUpdateOperationsInput | string stripeId?: Prisma.StringFieldUpdateOperationsInput | string type?: Prisma.IntFieldUpdateOperationsInput | number billingPeriod?: Prisma.IntFieldUpdateOperationsInput | number price?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string currency?: Prisma.StringFieldUpdateOperationsInput | string trialDays?: Prisma.IntFieldUpdateOperationsInput | number active?: Prisma.BoolFieldUpdateOperationsInput | boolean tenantProductPrices?: Prisma.TenantSubscriptionProductPriceUncheckedUpdateManyWithoutSubscriptionPriceNestedInput } export type SubscriptionPriceUncheckedUpdateManyWithoutSubscriptionProductInput = { id?: Prisma.StringFieldUpdateOperationsInput | string stripeId?: Prisma.StringFieldUpdateOperationsInput | string type?: Prisma.IntFieldUpdateOperationsInput | number billingPeriod?: Prisma.IntFieldUpdateOperationsInput | number price?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string currency?: Prisma.StringFieldUpdateOperationsInput | string trialDays?: Prisma.IntFieldUpdateOperationsInput | number active?: Prisma.BoolFieldUpdateOperationsInput | boolean } /** * Count Type SubscriptionPriceCountOutputType */ export type SubscriptionPriceCountOutputType = { tenantProductPrices: number } export type SubscriptionPriceCountOutputTypeSelect = { tenantProductPrices?: boolean | SubscriptionPriceCountOutputTypeCountTenantProductPricesArgs } /** * SubscriptionPriceCountOutputType without action */ export type SubscriptionPriceCountOutputTypeDefaultArgs = { /** * Select specific fields to fetch from the SubscriptionPriceCountOutputType */ select?: Prisma.SubscriptionPriceCountOutputTypeSelect | null } /** * SubscriptionPriceCountOutputType without action */ export type SubscriptionPriceCountOutputTypeCountTenantProductPricesArgs = { where?: Prisma.TenantSubscriptionProductPriceWhereInput } export type SubscriptionPriceSelect = runtime.Types.Extensions.GetSelect<{ id?: boolean subscriptionProductId?: boolean stripeId?: boolean type?: boolean billingPeriod?: boolean price?: boolean currency?: boolean trialDays?: boolean active?: boolean subscriptionProduct?: boolean | Prisma.SubscriptionProductDefaultArgs tenantProductPrices?: boolean | Prisma.SubscriptionPrice$tenantProductPricesArgs _count?: boolean | Prisma.SubscriptionPriceCountOutputTypeDefaultArgs }, ExtArgs["result"]["subscriptionPrice"]> export type SubscriptionPriceSelectCreateManyAndReturn = runtime.Types.Extensions.GetSelect<{ id?: boolean subscriptionProductId?: boolean stripeId?: boolean type?: boolean billingPeriod?: boolean price?: boolean currency?: boolean trialDays?: boolean active?: boolean subscriptionProduct?: boolean | Prisma.SubscriptionProductDefaultArgs }, ExtArgs["result"]["subscriptionPrice"]> export type SubscriptionPriceSelectUpdateManyAndReturn = runtime.Types.Extensions.GetSelect<{ id?: boolean subscriptionProductId?: boolean stripeId?: boolean type?: boolean billingPeriod?: boolean price?: boolean currency?: boolean trialDays?: boolean active?: boolean subscriptionProduct?: boolean | Prisma.SubscriptionProductDefaultArgs }, ExtArgs["result"]["subscriptionPrice"]> export type SubscriptionPriceSelectScalar = { id?: boolean subscriptionProductId?: boolean stripeId?: boolean type?: boolean billingPeriod?: boolean price?: boolean currency?: boolean trialDays?: boolean active?: boolean } export type SubscriptionPriceOmit = runtime.Types.Extensions.GetOmit<"id" | "subscriptionProductId" | "stripeId" | "type" | "billingPeriod" | "price" | "currency" | "trialDays" | "active", ExtArgs["result"]["subscriptionPrice"]> export type SubscriptionPriceInclude = { subscriptionProduct?: boolean | Prisma.SubscriptionProductDefaultArgs tenantProductPrices?: boolean | Prisma.SubscriptionPrice$tenantProductPricesArgs _count?: boolean | Prisma.SubscriptionPriceCountOutputTypeDefaultArgs } export type SubscriptionPriceIncludeCreateManyAndReturn = { subscriptionProduct?: boolean | Prisma.SubscriptionProductDefaultArgs } export type SubscriptionPriceIncludeUpdateManyAndReturn = { subscriptionProduct?: boolean | Prisma.SubscriptionProductDefaultArgs } export type $SubscriptionPricePayload = { name: "SubscriptionPrice" objects: { subscriptionProduct: Prisma.$SubscriptionProductPayload tenantProductPrices: Prisma.$TenantSubscriptionProductPricePayload[] } scalars: runtime.Types.Extensions.GetPayloadResult<{ id: string subscriptionProductId: string stripeId: string type: number billingPeriod: number price: runtime.Decimal currency: string trialDays: number active: boolean }, ExtArgs["result"]["subscriptionPrice"]> composites: {} } export type SubscriptionPriceGetPayload = runtime.Types.Result.GetResult export type SubscriptionPriceCountArgs = Omit & { select?: SubscriptionPriceCountAggregateInputType | true } export interface SubscriptionPriceDelegate { [K: symbol]: { types: Prisma.TypeMap['model']['SubscriptionPrice'], meta: { name: 'SubscriptionPrice' } } /** * Find zero or one SubscriptionPrice that matches the filter. * @param {SubscriptionPriceFindUniqueArgs} args - Arguments to find a SubscriptionPrice * @example * // Get one SubscriptionPrice * const subscriptionPrice = await prisma.subscriptionPrice.findUnique({ * where: { * // ... provide filter here * } * }) */ findUnique(args: Prisma.SelectSubset>): Prisma.Prisma__SubscriptionPriceClient, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find one SubscriptionPrice that matches the filter or throw an error with `error.code='P2025'` * if no matches were found. * @param {SubscriptionPriceFindUniqueOrThrowArgs} args - Arguments to find a SubscriptionPrice * @example * // Get one SubscriptionPrice * const subscriptionPrice = await prisma.subscriptionPrice.findUniqueOrThrow({ * where: { * // ... provide filter here * } * }) */ findUniqueOrThrow(args: Prisma.SelectSubset>): Prisma.Prisma__SubscriptionPriceClient, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find the first SubscriptionPrice 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 {SubscriptionPriceFindFirstArgs} args - Arguments to find a SubscriptionPrice * @example * // Get one SubscriptionPrice * const subscriptionPrice = await prisma.subscriptionPrice.findFirst({ * where: { * // ... provide filter here * } * }) */ findFirst(args?: Prisma.SelectSubset>): Prisma.Prisma__SubscriptionPriceClient, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find the first SubscriptionPrice 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 {SubscriptionPriceFindFirstOrThrowArgs} args - Arguments to find a SubscriptionPrice * @example * // Get one SubscriptionPrice * const subscriptionPrice = await prisma.subscriptionPrice.findFirstOrThrow({ * where: { * // ... provide filter here * } * }) */ findFirstOrThrow(args?: Prisma.SelectSubset>): Prisma.Prisma__SubscriptionPriceClient, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find zero or more SubscriptionPrices 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 {SubscriptionPriceFindManyArgs} args - Arguments to filter and select certain fields only. * @example * // Get all SubscriptionPrices * const subscriptionPrices = await prisma.subscriptionPrice.findMany() * * // Get first 10 SubscriptionPrices * const subscriptionPrices = await prisma.subscriptionPrice.findMany({ take: 10 }) * * // Only select the `id` * const subscriptionPriceWithIdOnly = await prisma.subscriptionPrice.findMany({ select: { id: true } }) * */ findMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>> /** * Create a SubscriptionPrice. * @param {SubscriptionPriceCreateArgs} args - Arguments to create a SubscriptionPrice. * @example * // Create one SubscriptionPrice * const SubscriptionPrice = await prisma.subscriptionPrice.create({ * data: { * // ... data to create a SubscriptionPrice * } * }) * */ create(args: Prisma.SelectSubset>): Prisma.Prisma__SubscriptionPriceClient, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Create many SubscriptionPrices. * @param {SubscriptionPriceCreateManyArgs} args - Arguments to create many SubscriptionPrices. * @example * // Create many SubscriptionPrices * const subscriptionPrice = await prisma.subscriptionPrice.createMany({ * data: [ * // ... provide data here * ] * }) * */ createMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Create many SubscriptionPrices and returns the data saved in the database. * @param {SubscriptionPriceCreateManyAndReturnArgs} args - Arguments to create many SubscriptionPrices. * @example * // Create many SubscriptionPrices * const subscriptionPrice = await prisma.subscriptionPrice.createManyAndReturn({ * data: [ * // ... provide data here * ] * }) * * // Create many SubscriptionPrices and only return the `id` * const subscriptionPriceWithIdOnly = await prisma.subscriptionPrice.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(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "createManyAndReturn", GlobalOmitOptions>> /** * Delete a SubscriptionPrice. * @param {SubscriptionPriceDeleteArgs} args - Arguments to delete one SubscriptionPrice. * @example * // Delete one SubscriptionPrice * const SubscriptionPrice = await prisma.subscriptionPrice.delete({ * where: { * // ... filter to delete one SubscriptionPrice * } * }) * */ delete(args: Prisma.SelectSubset>): Prisma.Prisma__SubscriptionPriceClient, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Update one SubscriptionPrice. * @param {SubscriptionPriceUpdateArgs} args - Arguments to update one SubscriptionPrice. * @example * // Update one SubscriptionPrice * const subscriptionPrice = await prisma.subscriptionPrice.update({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ update(args: Prisma.SelectSubset>): Prisma.Prisma__SubscriptionPriceClient, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Delete zero or more SubscriptionPrices. * @param {SubscriptionPriceDeleteManyArgs} args - Arguments to filter SubscriptionPrices to delete. * @example * // Delete a few SubscriptionPrices * const { count } = await prisma.subscriptionPrice.deleteMany({ * where: { * // ... provide filter here * } * }) * */ deleteMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Update zero or more SubscriptionPrices. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {SubscriptionPriceUpdateManyArgs} args - Arguments to update one or more rows. * @example * // Update many SubscriptionPrices * const subscriptionPrice = await prisma.subscriptionPrice.updateMany({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ updateMany(args: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Update zero or more SubscriptionPrices and returns the data updated in the database. * @param {SubscriptionPriceUpdateManyAndReturnArgs} args - Arguments to update many SubscriptionPrices. * @example * // Update many SubscriptionPrices * const subscriptionPrice = await prisma.subscriptionPrice.updateManyAndReturn({ * where: { * // ... provide filter here * }, * data: [ * // ... provide data here * ] * }) * * // Update zero or more SubscriptionPrices and only return the `id` * const subscriptionPriceWithIdOnly = await prisma.subscriptionPrice.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(args: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "updateManyAndReturn", GlobalOmitOptions>> /** * Create or update one SubscriptionPrice. * @param {SubscriptionPriceUpsertArgs} args - Arguments to update or create a SubscriptionPrice. * @example * // Update or create a SubscriptionPrice * const subscriptionPrice = await prisma.subscriptionPrice.upsert({ * create: { * // ... data to create a SubscriptionPrice * }, * update: { * // ... in case it already exists, update * }, * where: { * // ... the filter for the SubscriptionPrice we want to update * } * }) */ upsert(args: Prisma.SelectSubset>): Prisma.Prisma__SubscriptionPriceClient, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Count the number of SubscriptionPrices. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {SubscriptionPriceCountArgs} args - Arguments to filter SubscriptionPrices to count. * @example * // Count the number of SubscriptionPrices * const count = await prisma.subscriptionPrice.count({ * where: { * // ... the filter for the SubscriptionPrices we want to count * } * }) **/ count( args?: Prisma.Subset, ): Prisma.PrismaPromise< T extends runtime.Types.Utils.Record<'select', any> ? T['select'] extends true ? number : Prisma.GetScalarType : number > /** * Allows you to perform aggregations operations on a SubscriptionPrice. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {SubscriptionPriceAggregateArgs} 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(args: Prisma.Subset): Prisma.PrismaPromise> /** * Group by SubscriptionPrice. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {SubscriptionPriceGroupByArgs} 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 SubscriptionPriceGroupByArgs, HasSelectOrTake extends Prisma.Or< Prisma.Extends<'skip', Prisma.Keys>, Prisma.Extends<'take', Prisma.Keys> >, OrderByArg extends Prisma.True extends HasSelectOrTake ? { orderBy: SubscriptionPriceGroupByArgs['orderBy'] } : { orderBy?: SubscriptionPriceGroupByArgs['orderBy'] }, OrderFields extends Prisma.ExcludeUnderscoreKeys>>, ByFields extends Prisma.MaybeTupleToUnion, ByValid extends Prisma.Has, HavingFields extends Prisma.GetHavingFields, HavingValid extends Prisma.Has, 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 ? 'orderBy' extends Prisma.Keys ? 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 ? 'orderBy' extends Prisma.Keys ? 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 & InputErrors): {} extends InputErrors ? GetSubscriptionPriceGroupByPayload : Prisma.PrismaPromise /** * Fields of the SubscriptionPrice model */ readonly fields: SubscriptionPriceFieldRefs; } /** * The delegate class that acts as a "Promise-like" for SubscriptionPrice. * 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__SubscriptionPriceClient extends Prisma.PrismaPromise { readonly [Symbol.toStringTag]: "PrismaPromise" subscriptionProduct = {}>(args?: Prisma.Subset>): Prisma.Prisma__SubscriptionProductClient, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions> tenantProductPrices = {}>(args?: Prisma.Subset>): Prisma.PrismaPromise, 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(onfulfilled?: ((value: T) => TResult1 | PromiseLike) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike) | undefined | null): runtime.Types.Utils.JsPromise /** * 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(onrejected?: ((reason: any) => TResult | PromiseLike) | undefined | null): runtime.Types.Utils.JsPromise /** * 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 } /** * Fields of the SubscriptionPrice model */ export interface SubscriptionPriceFieldRefs { readonly id: Prisma.FieldRef<"SubscriptionPrice", 'String'> readonly subscriptionProductId: Prisma.FieldRef<"SubscriptionPrice", 'String'> readonly stripeId: Prisma.FieldRef<"SubscriptionPrice", 'String'> readonly type: Prisma.FieldRef<"SubscriptionPrice", 'Int'> readonly billingPeriod: Prisma.FieldRef<"SubscriptionPrice", 'Int'> readonly price: Prisma.FieldRef<"SubscriptionPrice", 'Decimal'> readonly currency: Prisma.FieldRef<"SubscriptionPrice", 'String'> readonly trialDays: Prisma.FieldRef<"SubscriptionPrice", 'Int'> readonly active: Prisma.FieldRef<"SubscriptionPrice", 'Boolean'> } // Custom InputTypes /** * SubscriptionPrice findUnique */ export type SubscriptionPriceFindUniqueArgs = { /** * Select specific fields to fetch from the SubscriptionPrice */ select?: Prisma.SubscriptionPriceSelect | null /** * Omit specific fields from the SubscriptionPrice */ omit?: Prisma.SubscriptionPriceOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.SubscriptionPriceInclude | null /** * Filter, which SubscriptionPrice to fetch. */ where: Prisma.SubscriptionPriceWhereUniqueInput } /** * SubscriptionPrice findUniqueOrThrow */ export type SubscriptionPriceFindUniqueOrThrowArgs = { /** * Select specific fields to fetch from the SubscriptionPrice */ select?: Prisma.SubscriptionPriceSelect | null /** * Omit specific fields from the SubscriptionPrice */ omit?: Prisma.SubscriptionPriceOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.SubscriptionPriceInclude | null /** * Filter, which SubscriptionPrice to fetch. */ where: Prisma.SubscriptionPriceWhereUniqueInput } /** * SubscriptionPrice findFirst */ export type SubscriptionPriceFindFirstArgs = { /** * Select specific fields to fetch from the SubscriptionPrice */ select?: Prisma.SubscriptionPriceSelect | null /** * Omit specific fields from the SubscriptionPrice */ omit?: Prisma.SubscriptionPriceOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.SubscriptionPriceInclude | null /** * Filter, which SubscriptionPrice to fetch. */ where?: Prisma.SubscriptionPriceWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of SubscriptionPrices to fetch. */ orderBy?: Prisma.SubscriptionPriceOrderByWithRelationInput | Prisma.SubscriptionPriceOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for SubscriptionPrices. */ cursor?: Prisma.SubscriptionPriceWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` SubscriptionPrices 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` SubscriptionPrices. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of SubscriptionPrices. */ distinct?: Prisma.SubscriptionPriceScalarFieldEnum | Prisma.SubscriptionPriceScalarFieldEnum[] } /** * SubscriptionPrice findFirstOrThrow */ export type SubscriptionPriceFindFirstOrThrowArgs = { /** * Select specific fields to fetch from the SubscriptionPrice */ select?: Prisma.SubscriptionPriceSelect | null /** * Omit specific fields from the SubscriptionPrice */ omit?: Prisma.SubscriptionPriceOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.SubscriptionPriceInclude | null /** * Filter, which SubscriptionPrice to fetch. */ where?: Prisma.SubscriptionPriceWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of SubscriptionPrices to fetch. */ orderBy?: Prisma.SubscriptionPriceOrderByWithRelationInput | Prisma.SubscriptionPriceOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for SubscriptionPrices. */ cursor?: Prisma.SubscriptionPriceWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` SubscriptionPrices 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` SubscriptionPrices. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of SubscriptionPrices. */ distinct?: Prisma.SubscriptionPriceScalarFieldEnum | Prisma.SubscriptionPriceScalarFieldEnum[] } /** * SubscriptionPrice findMany */ export type SubscriptionPriceFindManyArgs = { /** * Select specific fields to fetch from the SubscriptionPrice */ select?: Prisma.SubscriptionPriceSelect | null /** * Omit specific fields from the SubscriptionPrice */ omit?: Prisma.SubscriptionPriceOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.SubscriptionPriceInclude | null /** * Filter, which SubscriptionPrices to fetch. */ where?: Prisma.SubscriptionPriceWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of SubscriptionPrices to fetch. */ orderBy?: Prisma.SubscriptionPriceOrderByWithRelationInput | Prisma.SubscriptionPriceOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for listing SubscriptionPrices. */ cursor?: Prisma.SubscriptionPriceWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` SubscriptionPrices 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` SubscriptionPrices. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of SubscriptionPrices. */ distinct?: Prisma.SubscriptionPriceScalarFieldEnum | Prisma.SubscriptionPriceScalarFieldEnum[] } /** * SubscriptionPrice create */ export type SubscriptionPriceCreateArgs = { /** * Select specific fields to fetch from the SubscriptionPrice */ select?: Prisma.SubscriptionPriceSelect | null /** * Omit specific fields from the SubscriptionPrice */ omit?: Prisma.SubscriptionPriceOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.SubscriptionPriceInclude | null /** * The data needed to create a SubscriptionPrice. */ data: Prisma.XOR } /** * SubscriptionPrice createMany */ export type SubscriptionPriceCreateManyArgs = { /** * The data used to create many SubscriptionPrices. */ data: Prisma.SubscriptionPriceCreateManyInput | Prisma.SubscriptionPriceCreateManyInput[] skipDuplicates?: boolean } /** * SubscriptionPrice createManyAndReturn */ export type SubscriptionPriceCreateManyAndReturnArgs = { /** * Select specific fields to fetch from the SubscriptionPrice */ select?: Prisma.SubscriptionPriceSelectCreateManyAndReturn | null /** * Omit specific fields from the SubscriptionPrice */ omit?: Prisma.SubscriptionPriceOmit | null /** * The data used to create many SubscriptionPrices. */ data: Prisma.SubscriptionPriceCreateManyInput | Prisma.SubscriptionPriceCreateManyInput[] skipDuplicates?: boolean /** * Choose, which related nodes to fetch as well */ include?: Prisma.SubscriptionPriceIncludeCreateManyAndReturn | null } /** * SubscriptionPrice update */ export type SubscriptionPriceUpdateArgs = { /** * Select specific fields to fetch from the SubscriptionPrice */ select?: Prisma.SubscriptionPriceSelect | null /** * Omit specific fields from the SubscriptionPrice */ omit?: Prisma.SubscriptionPriceOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.SubscriptionPriceInclude | null /** * The data needed to update a SubscriptionPrice. */ data: Prisma.XOR /** * Choose, which SubscriptionPrice to update. */ where: Prisma.SubscriptionPriceWhereUniqueInput } /** * SubscriptionPrice updateMany */ export type SubscriptionPriceUpdateManyArgs = { /** * The data used to update SubscriptionPrices. */ data: Prisma.XOR /** * Filter which SubscriptionPrices to update */ where?: Prisma.SubscriptionPriceWhereInput /** * Limit how many SubscriptionPrices to update. */ limit?: number } /** * SubscriptionPrice updateManyAndReturn */ export type SubscriptionPriceUpdateManyAndReturnArgs = { /** * Select specific fields to fetch from the SubscriptionPrice */ select?: Prisma.SubscriptionPriceSelectUpdateManyAndReturn | null /** * Omit specific fields from the SubscriptionPrice */ omit?: Prisma.SubscriptionPriceOmit | null /** * The data used to update SubscriptionPrices. */ data: Prisma.XOR /** * Filter which SubscriptionPrices to update */ where?: Prisma.SubscriptionPriceWhereInput /** * Limit how many SubscriptionPrices to update. */ limit?: number /** * Choose, which related nodes to fetch as well */ include?: Prisma.SubscriptionPriceIncludeUpdateManyAndReturn | null } /** * SubscriptionPrice upsert */ export type SubscriptionPriceUpsertArgs = { /** * Select specific fields to fetch from the SubscriptionPrice */ select?: Prisma.SubscriptionPriceSelect | null /** * Omit specific fields from the SubscriptionPrice */ omit?: Prisma.SubscriptionPriceOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.SubscriptionPriceInclude | null /** * The filter to search for the SubscriptionPrice to update in case it exists. */ where: Prisma.SubscriptionPriceWhereUniqueInput /** * In case the SubscriptionPrice found by the `where` argument doesn't exist, create a new SubscriptionPrice with this data. */ create: Prisma.XOR /** * In case the SubscriptionPrice was found with the provided `where` argument, update it with this data. */ update: Prisma.XOR } /** * SubscriptionPrice delete */ export type SubscriptionPriceDeleteArgs = { /** * Select specific fields to fetch from the SubscriptionPrice */ select?: Prisma.SubscriptionPriceSelect | null /** * Omit specific fields from the SubscriptionPrice */ omit?: Prisma.SubscriptionPriceOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.SubscriptionPriceInclude | null /** * Filter which SubscriptionPrice to delete. */ where: Prisma.SubscriptionPriceWhereUniqueInput } /** * SubscriptionPrice deleteMany */ export type SubscriptionPriceDeleteManyArgs = { /** * Filter which SubscriptionPrices to delete */ where?: Prisma.SubscriptionPriceWhereInput /** * Limit how many SubscriptionPrices to delete. */ limit?: number } /** * SubscriptionPrice.tenantProductPrices */ export type SubscriptionPrice$tenantProductPricesArgs = { /** * Select specific fields to fetch from the TenantSubscriptionProductPrice */ select?: Prisma.TenantSubscriptionProductPriceSelect | null /** * Omit specific fields from the TenantSubscriptionProductPrice */ omit?: Prisma.TenantSubscriptionProductPriceOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.TenantSubscriptionProductPriceInclude | null where?: Prisma.TenantSubscriptionProductPriceWhereInput orderBy?: Prisma.TenantSubscriptionProductPriceOrderByWithRelationInput | Prisma.TenantSubscriptionProductPriceOrderByWithRelationInput[] cursor?: Prisma.TenantSubscriptionProductPriceWhereUniqueInput take?: number skip?: number distinct?: Prisma.TenantSubscriptionProductPriceScalarFieldEnum | Prisma.TenantSubscriptionProductPriceScalarFieldEnum[] } /** * SubscriptionPrice without action */ export type SubscriptionPriceDefaultArgs = { /** * Select specific fields to fetch from the SubscriptionPrice */ select?: Prisma.SubscriptionPriceSelect | null /** * Omit specific fields from the SubscriptionPrice */ omit?: Prisma.SubscriptionPriceOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.SubscriptionPriceInclude | null }