/* !!! This is code generated by Prisma. Do not edit directly. !!! */ /* eslint-disable */ // biome-ignore-all lint: generated file // @ts-nocheck /* * This file exports the `SubscriptionUsageBasedTier` 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 SubscriptionUsageBasedTier * */ export type SubscriptionUsageBasedTierModel = runtime.Types.Result.DefaultSelection export type AggregateSubscriptionUsageBasedTier = { _count: SubscriptionUsageBasedTierCountAggregateOutputType | null _avg: SubscriptionUsageBasedTierAvgAggregateOutputType | null _sum: SubscriptionUsageBasedTierSumAggregateOutputType | null _min: SubscriptionUsageBasedTierMinAggregateOutputType | null _max: SubscriptionUsageBasedTierMaxAggregateOutputType | null } export type SubscriptionUsageBasedTierAvgAggregateOutputType = { from: number | null to: number | null perUnitPrice: runtime.Decimal | null flatFeePrice: runtime.Decimal | null } export type SubscriptionUsageBasedTierSumAggregateOutputType = { from: number | null to: number | null perUnitPrice: runtime.Decimal | null flatFeePrice: runtime.Decimal | null } export type SubscriptionUsageBasedTierMinAggregateOutputType = { id: string | null subscriptionUsageBasedPriceId: string | null from: number | null to: number | null perUnitPrice: runtime.Decimal | null flatFeePrice: runtime.Decimal | null } export type SubscriptionUsageBasedTierMaxAggregateOutputType = { id: string | null subscriptionUsageBasedPriceId: string | null from: number | null to: number | null perUnitPrice: runtime.Decimal | null flatFeePrice: runtime.Decimal | null } export type SubscriptionUsageBasedTierCountAggregateOutputType = { id: number subscriptionUsageBasedPriceId: number from: number to: number perUnitPrice: number flatFeePrice: number _all: number } export type SubscriptionUsageBasedTierAvgAggregateInputType = { from?: true to?: true perUnitPrice?: true flatFeePrice?: true } export type SubscriptionUsageBasedTierSumAggregateInputType = { from?: true to?: true perUnitPrice?: true flatFeePrice?: true } export type SubscriptionUsageBasedTierMinAggregateInputType = { id?: true subscriptionUsageBasedPriceId?: true from?: true to?: true perUnitPrice?: true flatFeePrice?: true } export type SubscriptionUsageBasedTierMaxAggregateInputType = { id?: true subscriptionUsageBasedPriceId?: true from?: true to?: true perUnitPrice?: true flatFeePrice?: true } export type SubscriptionUsageBasedTierCountAggregateInputType = { id?: true subscriptionUsageBasedPriceId?: true from?: true to?: true perUnitPrice?: true flatFeePrice?: true _all?: true } export type SubscriptionUsageBasedTierAggregateArgs = { /** * Filter which SubscriptionUsageBasedTier to aggregate. */ where?: Prisma.SubscriptionUsageBasedTierWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of SubscriptionUsageBasedTiers to fetch. */ orderBy?: Prisma.SubscriptionUsageBasedTierOrderByWithRelationInput | Prisma.SubscriptionUsageBasedTierOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the start position */ cursor?: Prisma.SubscriptionUsageBasedTierWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` SubscriptionUsageBasedTiers 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` SubscriptionUsageBasedTiers. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Count returned SubscriptionUsageBasedTiers **/ _count?: true | SubscriptionUsageBasedTierCountAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to average **/ _avg?: SubscriptionUsageBasedTierAvgAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to sum **/ _sum?: SubscriptionUsageBasedTierSumAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the minimum value **/ _min?: SubscriptionUsageBasedTierMinAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the maximum value **/ _max?: SubscriptionUsageBasedTierMaxAggregateInputType } export type GetSubscriptionUsageBasedTierAggregateType = { [P in keyof T & keyof AggregateSubscriptionUsageBasedTier]: P extends '_count' | 'count' ? T[P] extends true ? number : Prisma.GetScalarType : Prisma.GetScalarType } export type SubscriptionUsageBasedTierGroupByArgs = { where?: Prisma.SubscriptionUsageBasedTierWhereInput orderBy?: Prisma.SubscriptionUsageBasedTierOrderByWithAggregationInput | Prisma.SubscriptionUsageBasedTierOrderByWithAggregationInput[] by: Prisma.SubscriptionUsageBasedTierScalarFieldEnum[] | Prisma.SubscriptionUsageBasedTierScalarFieldEnum having?: Prisma.SubscriptionUsageBasedTierScalarWhereWithAggregatesInput take?: number skip?: number _count?: SubscriptionUsageBasedTierCountAggregateInputType | true _avg?: SubscriptionUsageBasedTierAvgAggregateInputType _sum?: SubscriptionUsageBasedTierSumAggregateInputType _min?: SubscriptionUsageBasedTierMinAggregateInputType _max?: SubscriptionUsageBasedTierMaxAggregateInputType } export type SubscriptionUsageBasedTierGroupByOutputType = { id: string subscriptionUsageBasedPriceId: string from: number to: number | null perUnitPrice: runtime.Decimal | null flatFeePrice: runtime.Decimal | null _count: SubscriptionUsageBasedTierCountAggregateOutputType | null _avg: SubscriptionUsageBasedTierAvgAggregateOutputType | null _sum: SubscriptionUsageBasedTierSumAggregateOutputType | null _min: SubscriptionUsageBasedTierMinAggregateOutputType | null _max: SubscriptionUsageBasedTierMaxAggregateOutputType | null } export type GetSubscriptionUsageBasedTierGroupByPayload = Prisma.PrismaPromise< Array< Prisma.PickEnumerable & { [P in ((keyof T) & (keyof SubscriptionUsageBasedTierGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : Prisma.GetScalarType : Prisma.GetScalarType } > > export type SubscriptionUsageBasedTierWhereInput = { AND?: Prisma.SubscriptionUsageBasedTierWhereInput | Prisma.SubscriptionUsageBasedTierWhereInput[] OR?: Prisma.SubscriptionUsageBasedTierWhereInput[] NOT?: Prisma.SubscriptionUsageBasedTierWhereInput | Prisma.SubscriptionUsageBasedTierWhereInput[] id?: Prisma.StringFilter<"SubscriptionUsageBasedTier"> | string subscriptionUsageBasedPriceId?: Prisma.StringFilter<"SubscriptionUsageBasedTier"> | string from?: Prisma.IntFilter<"SubscriptionUsageBasedTier"> | number to?: Prisma.IntNullableFilter<"SubscriptionUsageBasedTier"> | number | null perUnitPrice?: Prisma.DecimalNullableFilter<"SubscriptionUsageBasedTier"> | runtime.Decimal | runtime.DecimalJsLike | number | string | null flatFeePrice?: Prisma.DecimalNullableFilter<"SubscriptionUsageBasedTier"> | runtime.Decimal | runtime.DecimalJsLike | number | string | null subscriptionUsageBasedPrice?: Prisma.XOR } export type SubscriptionUsageBasedTierOrderByWithRelationInput = { id?: Prisma.SortOrder subscriptionUsageBasedPriceId?: Prisma.SortOrder from?: Prisma.SortOrder to?: Prisma.SortOrderInput | Prisma.SortOrder perUnitPrice?: Prisma.SortOrderInput | Prisma.SortOrder flatFeePrice?: Prisma.SortOrderInput | Prisma.SortOrder subscriptionUsageBasedPrice?: Prisma.SubscriptionUsageBasedPriceOrderByWithRelationInput } export type SubscriptionUsageBasedTierWhereUniqueInput = Prisma.AtLeast<{ id?: string AND?: Prisma.SubscriptionUsageBasedTierWhereInput | Prisma.SubscriptionUsageBasedTierWhereInput[] OR?: Prisma.SubscriptionUsageBasedTierWhereInput[] NOT?: Prisma.SubscriptionUsageBasedTierWhereInput | Prisma.SubscriptionUsageBasedTierWhereInput[] subscriptionUsageBasedPriceId?: Prisma.StringFilter<"SubscriptionUsageBasedTier"> | string from?: Prisma.IntFilter<"SubscriptionUsageBasedTier"> | number to?: Prisma.IntNullableFilter<"SubscriptionUsageBasedTier"> | number | null perUnitPrice?: Prisma.DecimalNullableFilter<"SubscriptionUsageBasedTier"> | runtime.Decimal | runtime.DecimalJsLike | number | string | null flatFeePrice?: Prisma.DecimalNullableFilter<"SubscriptionUsageBasedTier"> | runtime.Decimal | runtime.DecimalJsLike | number | string | null subscriptionUsageBasedPrice?: Prisma.XOR }, "id"> export type SubscriptionUsageBasedTierOrderByWithAggregationInput = { id?: Prisma.SortOrder subscriptionUsageBasedPriceId?: Prisma.SortOrder from?: Prisma.SortOrder to?: Prisma.SortOrderInput | Prisma.SortOrder perUnitPrice?: Prisma.SortOrderInput | Prisma.SortOrder flatFeePrice?: Prisma.SortOrderInput | Prisma.SortOrder _count?: Prisma.SubscriptionUsageBasedTierCountOrderByAggregateInput _avg?: Prisma.SubscriptionUsageBasedTierAvgOrderByAggregateInput _max?: Prisma.SubscriptionUsageBasedTierMaxOrderByAggregateInput _min?: Prisma.SubscriptionUsageBasedTierMinOrderByAggregateInput _sum?: Prisma.SubscriptionUsageBasedTierSumOrderByAggregateInput } export type SubscriptionUsageBasedTierScalarWhereWithAggregatesInput = { AND?: Prisma.SubscriptionUsageBasedTierScalarWhereWithAggregatesInput | Prisma.SubscriptionUsageBasedTierScalarWhereWithAggregatesInput[] OR?: Prisma.SubscriptionUsageBasedTierScalarWhereWithAggregatesInput[] NOT?: Prisma.SubscriptionUsageBasedTierScalarWhereWithAggregatesInput | Prisma.SubscriptionUsageBasedTierScalarWhereWithAggregatesInput[] id?: Prisma.StringWithAggregatesFilter<"SubscriptionUsageBasedTier"> | string subscriptionUsageBasedPriceId?: Prisma.StringWithAggregatesFilter<"SubscriptionUsageBasedTier"> | string from?: Prisma.IntWithAggregatesFilter<"SubscriptionUsageBasedTier"> | number to?: Prisma.IntNullableWithAggregatesFilter<"SubscriptionUsageBasedTier"> | number | null perUnitPrice?: Prisma.DecimalNullableWithAggregatesFilter<"SubscriptionUsageBasedTier"> | runtime.Decimal | runtime.DecimalJsLike | number | string | null flatFeePrice?: Prisma.DecimalNullableWithAggregatesFilter<"SubscriptionUsageBasedTier"> | runtime.Decimal | runtime.DecimalJsLike | number | string | null } export type SubscriptionUsageBasedTierCreateInput = { id?: string from: number to?: number | null perUnitPrice?: runtime.Decimal | runtime.DecimalJsLike | number | string | null flatFeePrice?: runtime.Decimal | runtime.DecimalJsLike | number | string | null subscriptionUsageBasedPrice: Prisma.SubscriptionUsageBasedPriceCreateNestedOneWithoutTiersInput } export type SubscriptionUsageBasedTierUncheckedCreateInput = { id?: string subscriptionUsageBasedPriceId: string from: number to?: number | null perUnitPrice?: runtime.Decimal | runtime.DecimalJsLike | number | string | null flatFeePrice?: runtime.Decimal | runtime.DecimalJsLike | number | string | null } export type SubscriptionUsageBasedTierUpdateInput = { id?: Prisma.StringFieldUpdateOperationsInput | string from?: Prisma.IntFieldUpdateOperationsInput | number to?: Prisma.NullableIntFieldUpdateOperationsInput | number | null perUnitPrice?: Prisma.NullableDecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string | null flatFeePrice?: Prisma.NullableDecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string | null subscriptionUsageBasedPrice?: Prisma.SubscriptionUsageBasedPriceUpdateOneRequiredWithoutTiersNestedInput } export type SubscriptionUsageBasedTierUncheckedUpdateInput = { id?: Prisma.StringFieldUpdateOperationsInput | string subscriptionUsageBasedPriceId?: Prisma.StringFieldUpdateOperationsInput | string from?: Prisma.IntFieldUpdateOperationsInput | number to?: Prisma.NullableIntFieldUpdateOperationsInput | number | null perUnitPrice?: Prisma.NullableDecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string | null flatFeePrice?: Prisma.NullableDecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string | null } export type SubscriptionUsageBasedTierCreateManyInput = { id?: string subscriptionUsageBasedPriceId: string from: number to?: number | null perUnitPrice?: runtime.Decimal | runtime.DecimalJsLike | number | string | null flatFeePrice?: runtime.Decimal | runtime.DecimalJsLike | number | string | null } export type SubscriptionUsageBasedTierUpdateManyMutationInput = { id?: Prisma.StringFieldUpdateOperationsInput | string from?: Prisma.IntFieldUpdateOperationsInput | number to?: Prisma.NullableIntFieldUpdateOperationsInput | number | null perUnitPrice?: Prisma.NullableDecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string | null flatFeePrice?: Prisma.NullableDecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string | null } export type SubscriptionUsageBasedTierUncheckedUpdateManyInput = { id?: Prisma.StringFieldUpdateOperationsInput | string subscriptionUsageBasedPriceId?: Prisma.StringFieldUpdateOperationsInput | string from?: Prisma.IntFieldUpdateOperationsInput | number to?: Prisma.NullableIntFieldUpdateOperationsInput | number | null perUnitPrice?: Prisma.NullableDecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string | null flatFeePrice?: Prisma.NullableDecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string | null } export type SubscriptionUsageBasedTierListRelationFilter = { every?: Prisma.SubscriptionUsageBasedTierWhereInput some?: Prisma.SubscriptionUsageBasedTierWhereInput none?: Prisma.SubscriptionUsageBasedTierWhereInput } export type SubscriptionUsageBasedTierOrderByRelationAggregateInput = { _count?: Prisma.SortOrder } export type SubscriptionUsageBasedTierCountOrderByAggregateInput = { id?: Prisma.SortOrder subscriptionUsageBasedPriceId?: Prisma.SortOrder from?: Prisma.SortOrder to?: Prisma.SortOrder perUnitPrice?: Prisma.SortOrder flatFeePrice?: Prisma.SortOrder } export type SubscriptionUsageBasedTierAvgOrderByAggregateInput = { from?: Prisma.SortOrder to?: Prisma.SortOrder perUnitPrice?: Prisma.SortOrder flatFeePrice?: Prisma.SortOrder } export type SubscriptionUsageBasedTierMaxOrderByAggregateInput = { id?: Prisma.SortOrder subscriptionUsageBasedPriceId?: Prisma.SortOrder from?: Prisma.SortOrder to?: Prisma.SortOrder perUnitPrice?: Prisma.SortOrder flatFeePrice?: Prisma.SortOrder } export type SubscriptionUsageBasedTierMinOrderByAggregateInput = { id?: Prisma.SortOrder subscriptionUsageBasedPriceId?: Prisma.SortOrder from?: Prisma.SortOrder to?: Prisma.SortOrder perUnitPrice?: Prisma.SortOrder flatFeePrice?: Prisma.SortOrder } export type SubscriptionUsageBasedTierSumOrderByAggregateInput = { from?: Prisma.SortOrder to?: Prisma.SortOrder perUnitPrice?: Prisma.SortOrder flatFeePrice?: Prisma.SortOrder } export type SubscriptionUsageBasedTierCreateNestedManyWithoutSubscriptionUsageBasedPriceInput = { create?: Prisma.XOR | Prisma.SubscriptionUsageBasedTierCreateWithoutSubscriptionUsageBasedPriceInput[] | Prisma.SubscriptionUsageBasedTierUncheckedCreateWithoutSubscriptionUsageBasedPriceInput[] connectOrCreate?: Prisma.SubscriptionUsageBasedTierCreateOrConnectWithoutSubscriptionUsageBasedPriceInput | Prisma.SubscriptionUsageBasedTierCreateOrConnectWithoutSubscriptionUsageBasedPriceInput[] createMany?: Prisma.SubscriptionUsageBasedTierCreateManySubscriptionUsageBasedPriceInputEnvelope connect?: Prisma.SubscriptionUsageBasedTierWhereUniqueInput | Prisma.SubscriptionUsageBasedTierWhereUniqueInput[] } export type SubscriptionUsageBasedTierUncheckedCreateNestedManyWithoutSubscriptionUsageBasedPriceInput = { create?: Prisma.XOR | Prisma.SubscriptionUsageBasedTierCreateWithoutSubscriptionUsageBasedPriceInput[] | Prisma.SubscriptionUsageBasedTierUncheckedCreateWithoutSubscriptionUsageBasedPriceInput[] connectOrCreate?: Prisma.SubscriptionUsageBasedTierCreateOrConnectWithoutSubscriptionUsageBasedPriceInput | Prisma.SubscriptionUsageBasedTierCreateOrConnectWithoutSubscriptionUsageBasedPriceInput[] createMany?: Prisma.SubscriptionUsageBasedTierCreateManySubscriptionUsageBasedPriceInputEnvelope connect?: Prisma.SubscriptionUsageBasedTierWhereUniqueInput | Prisma.SubscriptionUsageBasedTierWhereUniqueInput[] } export type SubscriptionUsageBasedTierUpdateManyWithoutSubscriptionUsageBasedPriceNestedInput = { create?: Prisma.XOR | Prisma.SubscriptionUsageBasedTierCreateWithoutSubscriptionUsageBasedPriceInput[] | Prisma.SubscriptionUsageBasedTierUncheckedCreateWithoutSubscriptionUsageBasedPriceInput[] connectOrCreate?: Prisma.SubscriptionUsageBasedTierCreateOrConnectWithoutSubscriptionUsageBasedPriceInput | Prisma.SubscriptionUsageBasedTierCreateOrConnectWithoutSubscriptionUsageBasedPriceInput[] upsert?: Prisma.SubscriptionUsageBasedTierUpsertWithWhereUniqueWithoutSubscriptionUsageBasedPriceInput | Prisma.SubscriptionUsageBasedTierUpsertWithWhereUniqueWithoutSubscriptionUsageBasedPriceInput[] createMany?: Prisma.SubscriptionUsageBasedTierCreateManySubscriptionUsageBasedPriceInputEnvelope set?: Prisma.SubscriptionUsageBasedTierWhereUniqueInput | Prisma.SubscriptionUsageBasedTierWhereUniqueInput[] disconnect?: Prisma.SubscriptionUsageBasedTierWhereUniqueInput | Prisma.SubscriptionUsageBasedTierWhereUniqueInput[] delete?: Prisma.SubscriptionUsageBasedTierWhereUniqueInput | Prisma.SubscriptionUsageBasedTierWhereUniqueInput[] connect?: Prisma.SubscriptionUsageBasedTierWhereUniqueInput | Prisma.SubscriptionUsageBasedTierWhereUniqueInput[] update?: Prisma.SubscriptionUsageBasedTierUpdateWithWhereUniqueWithoutSubscriptionUsageBasedPriceInput | Prisma.SubscriptionUsageBasedTierUpdateWithWhereUniqueWithoutSubscriptionUsageBasedPriceInput[] updateMany?: Prisma.SubscriptionUsageBasedTierUpdateManyWithWhereWithoutSubscriptionUsageBasedPriceInput | Prisma.SubscriptionUsageBasedTierUpdateManyWithWhereWithoutSubscriptionUsageBasedPriceInput[] deleteMany?: Prisma.SubscriptionUsageBasedTierScalarWhereInput | Prisma.SubscriptionUsageBasedTierScalarWhereInput[] } export type SubscriptionUsageBasedTierUncheckedUpdateManyWithoutSubscriptionUsageBasedPriceNestedInput = { create?: Prisma.XOR | Prisma.SubscriptionUsageBasedTierCreateWithoutSubscriptionUsageBasedPriceInput[] | Prisma.SubscriptionUsageBasedTierUncheckedCreateWithoutSubscriptionUsageBasedPriceInput[] connectOrCreate?: Prisma.SubscriptionUsageBasedTierCreateOrConnectWithoutSubscriptionUsageBasedPriceInput | Prisma.SubscriptionUsageBasedTierCreateOrConnectWithoutSubscriptionUsageBasedPriceInput[] upsert?: Prisma.SubscriptionUsageBasedTierUpsertWithWhereUniqueWithoutSubscriptionUsageBasedPriceInput | Prisma.SubscriptionUsageBasedTierUpsertWithWhereUniqueWithoutSubscriptionUsageBasedPriceInput[] createMany?: Prisma.SubscriptionUsageBasedTierCreateManySubscriptionUsageBasedPriceInputEnvelope set?: Prisma.SubscriptionUsageBasedTierWhereUniqueInput | Prisma.SubscriptionUsageBasedTierWhereUniqueInput[] disconnect?: Prisma.SubscriptionUsageBasedTierWhereUniqueInput | Prisma.SubscriptionUsageBasedTierWhereUniqueInput[] delete?: Prisma.SubscriptionUsageBasedTierWhereUniqueInput | Prisma.SubscriptionUsageBasedTierWhereUniqueInput[] connect?: Prisma.SubscriptionUsageBasedTierWhereUniqueInput | Prisma.SubscriptionUsageBasedTierWhereUniqueInput[] update?: Prisma.SubscriptionUsageBasedTierUpdateWithWhereUniqueWithoutSubscriptionUsageBasedPriceInput | Prisma.SubscriptionUsageBasedTierUpdateWithWhereUniqueWithoutSubscriptionUsageBasedPriceInput[] updateMany?: Prisma.SubscriptionUsageBasedTierUpdateManyWithWhereWithoutSubscriptionUsageBasedPriceInput | Prisma.SubscriptionUsageBasedTierUpdateManyWithWhereWithoutSubscriptionUsageBasedPriceInput[] deleteMany?: Prisma.SubscriptionUsageBasedTierScalarWhereInput | Prisma.SubscriptionUsageBasedTierScalarWhereInput[] } export type SubscriptionUsageBasedTierCreateWithoutSubscriptionUsageBasedPriceInput = { id?: string from: number to?: number | null perUnitPrice?: runtime.Decimal | runtime.DecimalJsLike | number | string | null flatFeePrice?: runtime.Decimal | runtime.DecimalJsLike | number | string | null } export type SubscriptionUsageBasedTierUncheckedCreateWithoutSubscriptionUsageBasedPriceInput = { id?: string from: number to?: number | null perUnitPrice?: runtime.Decimal | runtime.DecimalJsLike | number | string | null flatFeePrice?: runtime.Decimal | runtime.DecimalJsLike | number | string | null } export type SubscriptionUsageBasedTierCreateOrConnectWithoutSubscriptionUsageBasedPriceInput = { where: Prisma.SubscriptionUsageBasedTierWhereUniqueInput create: Prisma.XOR } export type SubscriptionUsageBasedTierCreateManySubscriptionUsageBasedPriceInputEnvelope = { data: Prisma.SubscriptionUsageBasedTierCreateManySubscriptionUsageBasedPriceInput | Prisma.SubscriptionUsageBasedTierCreateManySubscriptionUsageBasedPriceInput[] skipDuplicates?: boolean } export type SubscriptionUsageBasedTierUpsertWithWhereUniqueWithoutSubscriptionUsageBasedPriceInput = { where: Prisma.SubscriptionUsageBasedTierWhereUniqueInput update: Prisma.XOR create: Prisma.XOR } export type SubscriptionUsageBasedTierUpdateWithWhereUniqueWithoutSubscriptionUsageBasedPriceInput = { where: Prisma.SubscriptionUsageBasedTierWhereUniqueInput data: Prisma.XOR } export type SubscriptionUsageBasedTierUpdateManyWithWhereWithoutSubscriptionUsageBasedPriceInput = { where: Prisma.SubscriptionUsageBasedTierScalarWhereInput data: Prisma.XOR } export type SubscriptionUsageBasedTierScalarWhereInput = { AND?: Prisma.SubscriptionUsageBasedTierScalarWhereInput | Prisma.SubscriptionUsageBasedTierScalarWhereInput[] OR?: Prisma.SubscriptionUsageBasedTierScalarWhereInput[] NOT?: Prisma.SubscriptionUsageBasedTierScalarWhereInput | Prisma.SubscriptionUsageBasedTierScalarWhereInput[] id?: Prisma.StringFilter<"SubscriptionUsageBasedTier"> | string subscriptionUsageBasedPriceId?: Prisma.StringFilter<"SubscriptionUsageBasedTier"> | string from?: Prisma.IntFilter<"SubscriptionUsageBasedTier"> | number to?: Prisma.IntNullableFilter<"SubscriptionUsageBasedTier"> | number | null perUnitPrice?: Prisma.DecimalNullableFilter<"SubscriptionUsageBasedTier"> | runtime.Decimal | runtime.DecimalJsLike | number | string | null flatFeePrice?: Prisma.DecimalNullableFilter<"SubscriptionUsageBasedTier"> | runtime.Decimal | runtime.DecimalJsLike | number | string | null } export type SubscriptionUsageBasedTierCreateManySubscriptionUsageBasedPriceInput = { id?: string from: number to?: number | null perUnitPrice?: runtime.Decimal | runtime.DecimalJsLike | number | string | null flatFeePrice?: runtime.Decimal | runtime.DecimalJsLike | number | string | null } export type SubscriptionUsageBasedTierUpdateWithoutSubscriptionUsageBasedPriceInput = { id?: Prisma.StringFieldUpdateOperationsInput | string from?: Prisma.IntFieldUpdateOperationsInput | number to?: Prisma.NullableIntFieldUpdateOperationsInput | number | null perUnitPrice?: Prisma.NullableDecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string | null flatFeePrice?: Prisma.NullableDecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string | null } export type SubscriptionUsageBasedTierUncheckedUpdateWithoutSubscriptionUsageBasedPriceInput = { id?: Prisma.StringFieldUpdateOperationsInput | string from?: Prisma.IntFieldUpdateOperationsInput | number to?: Prisma.NullableIntFieldUpdateOperationsInput | number | null perUnitPrice?: Prisma.NullableDecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string | null flatFeePrice?: Prisma.NullableDecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string | null } export type SubscriptionUsageBasedTierUncheckedUpdateManyWithoutSubscriptionUsageBasedPriceInput = { id?: Prisma.StringFieldUpdateOperationsInput | string from?: Prisma.IntFieldUpdateOperationsInput | number to?: Prisma.NullableIntFieldUpdateOperationsInput | number | null perUnitPrice?: Prisma.NullableDecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string | null flatFeePrice?: Prisma.NullableDecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string | null } export type SubscriptionUsageBasedTierSelect = runtime.Types.Extensions.GetSelect<{ id?: boolean subscriptionUsageBasedPriceId?: boolean from?: boolean to?: boolean perUnitPrice?: boolean flatFeePrice?: boolean subscriptionUsageBasedPrice?: boolean | Prisma.SubscriptionUsageBasedPriceDefaultArgs }, ExtArgs["result"]["subscriptionUsageBasedTier"]> export type SubscriptionUsageBasedTierSelectCreateManyAndReturn = runtime.Types.Extensions.GetSelect<{ id?: boolean subscriptionUsageBasedPriceId?: boolean from?: boolean to?: boolean perUnitPrice?: boolean flatFeePrice?: boolean subscriptionUsageBasedPrice?: boolean | Prisma.SubscriptionUsageBasedPriceDefaultArgs }, ExtArgs["result"]["subscriptionUsageBasedTier"]> export type SubscriptionUsageBasedTierSelectUpdateManyAndReturn = runtime.Types.Extensions.GetSelect<{ id?: boolean subscriptionUsageBasedPriceId?: boolean from?: boolean to?: boolean perUnitPrice?: boolean flatFeePrice?: boolean subscriptionUsageBasedPrice?: boolean | Prisma.SubscriptionUsageBasedPriceDefaultArgs }, ExtArgs["result"]["subscriptionUsageBasedTier"]> export type SubscriptionUsageBasedTierSelectScalar = { id?: boolean subscriptionUsageBasedPriceId?: boolean from?: boolean to?: boolean perUnitPrice?: boolean flatFeePrice?: boolean } export type SubscriptionUsageBasedTierOmit = runtime.Types.Extensions.GetOmit<"id" | "subscriptionUsageBasedPriceId" | "from" | "to" | "perUnitPrice" | "flatFeePrice", ExtArgs["result"]["subscriptionUsageBasedTier"]> export type SubscriptionUsageBasedTierInclude = { subscriptionUsageBasedPrice?: boolean | Prisma.SubscriptionUsageBasedPriceDefaultArgs } export type SubscriptionUsageBasedTierIncludeCreateManyAndReturn = { subscriptionUsageBasedPrice?: boolean | Prisma.SubscriptionUsageBasedPriceDefaultArgs } export type SubscriptionUsageBasedTierIncludeUpdateManyAndReturn = { subscriptionUsageBasedPrice?: boolean | Prisma.SubscriptionUsageBasedPriceDefaultArgs } export type $SubscriptionUsageBasedTierPayload = { name: "SubscriptionUsageBasedTier" objects: { subscriptionUsageBasedPrice: Prisma.$SubscriptionUsageBasedPricePayload } scalars: runtime.Types.Extensions.GetPayloadResult<{ id: string subscriptionUsageBasedPriceId: string from: number to: number | null perUnitPrice: runtime.Decimal | null flatFeePrice: runtime.Decimal | null }, ExtArgs["result"]["subscriptionUsageBasedTier"]> composites: {} } export type SubscriptionUsageBasedTierGetPayload = runtime.Types.Result.GetResult export type SubscriptionUsageBasedTierCountArgs = Omit & { select?: SubscriptionUsageBasedTierCountAggregateInputType | true } export interface SubscriptionUsageBasedTierDelegate { [K: symbol]: { types: Prisma.TypeMap['model']['SubscriptionUsageBasedTier'], meta: { name: 'SubscriptionUsageBasedTier' } } /** * Find zero or one SubscriptionUsageBasedTier that matches the filter. * @param {SubscriptionUsageBasedTierFindUniqueArgs} args - Arguments to find a SubscriptionUsageBasedTier * @example * // Get one SubscriptionUsageBasedTier * const subscriptionUsageBasedTier = await prisma.subscriptionUsageBasedTier.findUnique({ * where: { * // ... provide filter here * } * }) */ findUnique(args: Prisma.SelectSubset>): Prisma.Prisma__SubscriptionUsageBasedTierClient, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find one SubscriptionUsageBasedTier that matches the filter or throw an error with `error.code='P2025'` * if no matches were found. * @param {SubscriptionUsageBasedTierFindUniqueOrThrowArgs} args - Arguments to find a SubscriptionUsageBasedTier * @example * // Get one SubscriptionUsageBasedTier * const subscriptionUsageBasedTier = await prisma.subscriptionUsageBasedTier.findUniqueOrThrow({ * where: { * // ... provide filter here * } * }) */ findUniqueOrThrow(args: Prisma.SelectSubset>): Prisma.Prisma__SubscriptionUsageBasedTierClient, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find the first SubscriptionUsageBasedTier 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 {SubscriptionUsageBasedTierFindFirstArgs} args - Arguments to find a SubscriptionUsageBasedTier * @example * // Get one SubscriptionUsageBasedTier * const subscriptionUsageBasedTier = await prisma.subscriptionUsageBasedTier.findFirst({ * where: { * // ... provide filter here * } * }) */ findFirst(args?: Prisma.SelectSubset>): Prisma.Prisma__SubscriptionUsageBasedTierClient, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find the first SubscriptionUsageBasedTier 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 {SubscriptionUsageBasedTierFindFirstOrThrowArgs} args - Arguments to find a SubscriptionUsageBasedTier * @example * // Get one SubscriptionUsageBasedTier * const subscriptionUsageBasedTier = await prisma.subscriptionUsageBasedTier.findFirstOrThrow({ * where: { * // ... provide filter here * } * }) */ findFirstOrThrow(args?: Prisma.SelectSubset>): Prisma.Prisma__SubscriptionUsageBasedTierClient, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find zero or more SubscriptionUsageBasedTiers 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 {SubscriptionUsageBasedTierFindManyArgs} args - Arguments to filter and select certain fields only. * @example * // Get all SubscriptionUsageBasedTiers * const subscriptionUsageBasedTiers = await prisma.subscriptionUsageBasedTier.findMany() * * // Get first 10 SubscriptionUsageBasedTiers * const subscriptionUsageBasedTiers = await prisma.subscriptionUsageBasedTier.findMany({ take: 10 }) * * // Only select the `id` * const subscriptionUsageBasedTierWithIdOnly = await prisma.subscriptionUsageBasedTier.findMany({ select: { id: true } }) * */ findMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>> /** * Create a SubscriptionUsageBasedTier. * @param {SubscriptionUsageBasedTierCreateArgs} args - Arguments to create a SubscriptionUsageBasedTier. * @example * // Create one SubscriptionUsageBasedTier * const SubscriptionUsageBasedTier = await prisma.subscriptionUsageBasedTier.create({ * data: { * // ... data to create a SubscriptionUsageBasedTier * } * }) * */ create(args: Prisma.SelectSubset>): Prisma.Prisma__SubscriptionUsageBasedTierClient, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Create many SubscriptionUsageBasedTiers. * @param {SubscriptionUsageBasedTierCreateManyArgs} args - Arguments to create many SubscriptionUsageBasedTiers. * @example * // Create many SubscriptionUsageBasedTiers * const subscriptionUsageBasedTier = await prisma.subscriptionUsageBasedTier.createMany({ * data: [ * // ... provide data here * ] * }) * */ createMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Create many SubscriptionUsageBasedTiers and returns the data saved in the database. * @param {SubscriptionUsageBasedTierCreateManyAndReturnArgs} args - Arguments to create many SubscriptionUsageBasedTiers. * @example * // Create many SubscriptionUsageBasedTiers * const subscriptionUsageBasedTier = await prisma.subscriptionUsageBasedTier.createManyAndReturn({ * data: [ * // ... provide data here * ] * }) * * // Create many SubscriptionUsageBasedTiers and only return the `id` * const subscriptionUsageBasedTierWithIdOnly = await prisma.subscriptionUsageBasedTier.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 SubscriptionUsageBasedTier. * @param {SubscriptionUsageBasedTierDeleteArgs} args - Arguments to delete one SubscriptionUsageBasedTier. * @example * // Delete one SubscriptionUsageBasedTier * const SubscriptionUsageBasedTier = await prisma.subscriptionUsageBasedTier.delete({ * where: { * // ... filter to delete one SubscriptionUsageBasedTier * } * }) * */ delete(args: Prisma.SelectSubset>): Prisma.Prisma__SubscriptionUsageBasedTierClient, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Update one SubscriptionUsageBasedTier. * @param {SubscriptionUsageBasedTierUpdateArgs} args - Arguments to update one SubscriptionUsageBasedTier. * @example * // Update one SubscriptionUsageBasedTier * const subscriptionUsageBasedTier = await prisma.subscriptionUsageBasedTier.update({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ update(args: Prisma.SelectSubset>): Prisma.Prisma__SubscriptionUsageBasedTierClient, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Delete zero or more SubscriptionUsageBasedTiers. * @param {SubscriptionUsageBasedTierDeleteManyArgs} args - Arguments to filter SubscriptionUsageBasedTiers to delete. * @example * // Delete a few SubscriptionUsageBasedTiers * const { count } = await prisma.subscriptionUsageBasedTier.deleteMany({ * where: { * // ... provide filter here * } * }) * */ deleteMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Update zero or more SubscriptionUsageBasedTiers. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {SubscriptionUsageBasedTierUpdateManyArgs} args - Arguments to update one or more rows. * @example * // Update many SubscriptionUsageBasedTiers * const subscriptionUsageBasedTier = await prisma.subscriptionUsageBasedTier.updateMany({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ updateMany(args: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Update zero or more SubscriptionUsageBasedTiers and returns the data updated in the database. * @param {SubscriptionUsageBasedTierUpdateManyAndReturnArgs} args - Arguments to update many SubscriptionUsageBasedTiers. * @example * // Update many SubscriptionUsageBasedTiers * const subscriptionUsageBasedTier = await prisma.subscriptionUsageBasedTier.updateManyAndReturn({ * where: { * // ... provide filter here * }, * data: [ * // ... provide data here * ] * }) * * // Update zero or more SubscriptionUsageBasedTiers and only return the `id` * const subscriptionUsageBasedTierWithIdOnly = await prisma.subscriptionUsageBasedTier.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 SubscriptionUsageBasedTier. * @param {SubscriptionUsageBasedTierUpsertArgs} args - Arguments to update or create a SubscriptionUsageBasedTier. * @example * // Update or create a SubscriptionUsageBasedTier * const subscriptionUsageBasedTier = await prisma.subscriptionUsageBasedTier.upsert({ * create: { * // ... data to create a SubscriptionUsageBasedTier * }, * update: { * // ... in case it already exists, update * }, * where: { * // ... the filter for the SubscriptionUsageBasedTier we want to update * } * }) */ upsert(args: Prisma.SelectSubset>): Prisma.Prisma__SubscriptionUsageBasedTierClient, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Count the number of SubscriptionUsageBasedTiers. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {SubscriptionUsageBasedTierCountArgs} args - Arguments to filter SubscriptionUsageBasedTiers to count. * @example * // Count the number of SubscriptionUsageBasedTiers * const count = await prisma.subscriptionUsageBasedTier.count({ * where: { * // ... the filter for the SubscriptionUsageBasedTiers 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 SubscriptionUsageBasedTier. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {SubscriptionUsageBasedTierAggregateArgs} 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 SubscriptionUsageBasedTier. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {SubscriptionUsageBasedTierGroupByArgs} 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 SubscriptionUsageBasedTierGroupByArgs, HasSelectOrTake extends Prisma.Or< Prisma.Extends<'skip', Prisma.Keys>, Prisma.Extends<'take', Prisma.Keys> >, OrderByArg extends Prisma.True extends HasSelectOrTake ? { orderBy: SubscriptionUsageBasedTierGroupByArgs['orderBy'] } : { orderBy?: SubscriptionUsageBasedTierGroupByArgs['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 ? GetSubscriptionUsageBasedTierGroupByPayload : Prisma.PrismaPromise /** * Fields of the SubscriptionUsageBasedTier model */ readonly fields: SubscriptionUsageBasedTierFieldRefs; } /** * The delegate class that acts as a "Promise-like" for SubscriptionUsageBasedTier. * 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__SubscriptionUsageBasedTierClient extends Prisma.PrismaPromise { readonly [Symbol.toStringTag]: "PrismaPromise" subscriptionUsageBasedPrice = {}>(args?: Prisma.Subset>): Prisma.Prisma__SubscriptionUsageBasedPriceClient, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions> /** * Attaches callbacks for the resolution and/or rejection of the Promise. * @param onfulfilled The callback to execute when the Promise is resolved. * @param onrejected The callback to execute when the Promise is rejected. * @returns A Promise for the completion of which ever callback is executed. */ then(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 SubscriptionUsageBasedTier model */ export interface SubscriptionUsageBasedTierFieldRefs { readonly id: Prisma.FieldRef<"SubscriptionUsageBasedTier", 'String'> readonly subscriptionUsageBasedPriceId: Prisma.FieldRef<"SubscriptionUsageBasedTier", 'String'> readonly from: Prisma.FieldRef<"SubscriptionUsageBasedTier", 'Int'> readonly to: Prisma.FieldRef<"SubscriptionUsageBasedTier", 'Int'> readonly perUnitPrice: Prisma.FieldRef<"SubscriptionUsageBasedTier", 'Decimal'> readonly flatFeePrice: Prisma.FieldRef<"SubscriptionUsageBasedTier", 'Decimal'> } // Custom InputTypes /** * SubscriptionUsageBasedTier findUnique */ export type SubscriptionUsageBasedTierFindUniqueArgs = { /** * Select specific fields to fetch from the SubscriptionUsageBasedTier */ select?: Prisma.SubscriptionUsageBasedTierSelect | null /** * Omit specific fields from the SubscriptionUsageBasedTier */ omit?: Prisma.SubscriptionUsageBasedTierOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.SubscriptionUsageBasedTierInclude | null /** * Filter, which SubscriptionUsageBasedTier to fetch. */ where: Prisma.SubscriptionUsageBasedTierWhereUniqueInput } /** * SubscriptionUsageBasedTier findUniqueOrThrow */ export type SubscriptionUsageBasedTierFindUniqueOrThrowArgs = { /** * Select specific fields to fetch from the SubscriptionUsageBasedTier */ select?: Prisma.SubscriptionUsageBasedTierSelect | null /** * Omit specific fields from the SubscriptionUsageBasedTier */ omit?: Prisma.SubscriptionUsageBasedTierOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.SubscriptionUsageBasedTierInclude | null /** * Filter, which SubscriptionUsageBasedTier to fetch. */ where: Prisma.SubscriptionUsageBasedTierWhereUniqueInput } /** * SubscriptionUsageBasedTier findFirst */ export type SubscriptionUsageBasedTierFindFirstArgs = { /** * Select specific fields to fetch from the SubscriptionUsageBasedTier */ select?: Prisma.SubscriptionUsageBasedTierSelect | null /** * Omit specific fields from the SubscriptionUsageBasedTier */ omit?: Prisma.SubscriptionUsageBasedTierOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.SubscriptionUsageBasedTierInclude | null /** * Filter, which SubscriptionUsageBasedTier to fetch. */ where?: Prisma.SubscriptionUsageBasedTierWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of SubscriptionUsageBasedTiers to fetch. */ orderBy?: Prisma.SubscriptionUsageBasedTierOrderByWithRelationInput | Prisma.SubscriptionUsageBasedTierOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for SubscriptionUsageBasedTiers. */ cursor?: Prisma.SubscriptionUsageBasedTierWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` SubscriptionUsageBasedTiers 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` SubscriptionUsageBasedTiers. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of SubscriptionUsageBasedTiers. */ distinct?: Prisma.SubscriptionUsageBasedTierScalarFieldEnum | Prisma.SubscriptionUsageBasedTierScalarFieldEnum[] } /** * SubscriptionUsageBasedTier findFirstOrThrow */ export type SubscriptionUsageBasedTierFindFirstOrThrowArgs = { /** * Select specific fields to fetch from the SubscriptionUsageBasedTier */ select?: Prisma.SubscriptionUsageBasedTierSelect | null /** * Omit specific fields from the SubscriptionUsageBasedTier */ omit?: Prisma.SubscriptionUsageBasedTierOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.SubscriptionUsageBasedTierInclude | null /** * Filter, which SubscriptionUsageBasedTier to fetch. */ where?: Prisma.SubscriptionUsageBasedTierWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of SubscriptionUsageBasedTiers to fetch. */ orderBy?: Prisma.SubscriptionUsageBasedTierOrderByWithRelationInput | Prisma.SubscriptionUsageBasedTierOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for SubscriptionUsageBasedTiers. */ cursor?: Prisma.SubscriptionUsageBasedTierWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` SubscriptionUsageBasedTiers 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` SubscriptionUsageBasedTiers. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of SubscriptionUsageBasedTiers. */ distinct?: Prisma.SubscriptionUsageBasedTierScalarFieldEnum | Prisma.SubscriptionUsageBasedTierScalarFieldEnum[] } /** * SubscriptionUsageBasedTier findMany */ export type SubscriptionUsageBasedTierFindManyArgs = { /** * Select specific fields to fetch from the SubscriptionUsageBasedTier */ select?: Prisma.SubscriptionUsageBasedTierSelect | null /** * Omit specific fields from the SubscriptionUsageBasedTier */ omit?: Prisma.SubscriptionUsageBasedTierOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.SubscriptionUsageBasedTierInclude | null /** * Filter, which SubscriptionUsageBasedTiers to fetch. */ where?: Prisma.SubscriptionUsageBasedTierWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of SubscriptionUsageBasedTiers to fetch. */ orderBy?: Prisma.SubscriptionUsageBasedTierOrderByWithRelationInput | Prisma.SubscriptionUsageBasedTierOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for listing SubscriptionUsageBasedTiers. */ cursor?: Prisma.SubscriptionUsageBasedTierWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` SubscriptionUsageBasedTiers 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` SubscriptionUsageBasedTiers. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of SubscriptionUsageBasedTiers. */ distinct?: Prisma.SubscriptionUsageBasedTierScalarFieldEnum | Prisma.SubscriptionUsageBasedTierScalarFieldEnum[] } /** * SubscriptionUsageBasedTier create */ export type SubscriptionUsageBasedTierCreateArgs = { /** * Select specific fields to fetch from the SubscriptionUsageBasedTier */ select?: Prisma.SubscriptionUsageBasedTierSelect | null /** * Omit specific fields from the SubscriptionUsageBasedTier */ omit?: Prisma.SubscriptionUsageBasedTierOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.SubscriptionUsageBasedTierInclude | null /** * The data needed to create a SubscriptionUsageBasedTier. */ data: Prisma.XOR } /** * SubscriptionUsageBasedTier createMany */ export type SubscriptionUsageBasedTierCreateManyArgs = { /** * The data used to create many SubscriptionUsageBasedTiers. */ data: Prisma.SubscriptionUsageBasedTierCreateManyInput | Prisma.SubscriptionUsageBasedTierCreateManyInput[] skipDuplicates?: boolean } /** * SubscriptionUsageBasedTier createManyAndReturn */ export type SubscriptionUsageBasedTierCreateManyAndReturnArgs = { /** * Select specific fields to fetch from the SubscriptionUsageBasedTier */ select?: Prisma.SubscriptionUsageBasedTierSelectCreateManyAndReturn | null /** * Omit specific fields from the SubscriptionUsageBasedTier */ omit?: Prisma.SubscriptionUsageBasedTierOmit | null /** * The data used to create many SubscriptionUsageBasedTiers. */ data: Prisma.SubscriptionUsageBasedTierCreateManyInput | Prisma.SubscriptionUsageBasedTierCreateManyInput[] skipDuplicates?: boolean /** * Choose, which related nodes to fetch as well */ include?: Prisma.SubscriptionUsageBasedTierIncludeCreateManyAndReturn | null } /** * SubscriptionUsageBasedTier update */ export type SubscriptionUsageBasedTierUpdateArgs = { /** * Select specific fields to fetch from the SubscriptionUsageBasedTier */ select?: Prisma.SubscriptionUsageBasedTierSelect | null /** * Omit specific fields from the SubscriptionUsageBasedTier */ omit?: Prisma.SubscriptionUsageBasedTierOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.SubscriptionUsageBasedTierInclude | null /** * The data needed to update a SubscriptionUsageBasedTier. */ data: Prisma.XOR /** * Choose, which SubscriptionUsageBasedTier to update. */ where: Prisma.SubscriptionUsageBasedTierWhereUniqueInput } /** * SubscriptionUsageBasedTier updateMany */ export type SubscriptionUsageBasedTierUpdateManyArgs = { /** * The data used to update SubscriptionUsageBasedTiers. */ data: Prisma.XOR /** * Filter which SubscriptionUsageBasedTiers to update */ where?: Prisma.SubscriptionUsageBasedTierWhereInput /** * Limit how many SubscriptionUsageBasedTiers to update. */ limit?: number } /** * SubscriptionUsageBasedTier updateManyAndReturn */ export type SubscriptionUsageBasedTierUpdateManyAndReturnArgs = { /** * Select specific fields to fetch from the SubscriptionUsageBasedTier */ select?: Prisma.SubscriptionUsageBasedTierSelectUpdateManyAndReturn | null /** * Omit specific fields from the SubscriptionUsageBasedTier */ omit?: Prisma.SubscriptionUsageBasedTierOmit | null /** * The data used to update SubscriptionUsageBasedTiers. */ data: Prisma.XOR /** * Filter which SubscriptionUsageBasedTiers to update */ where?: Prisma.SubscriptionUsageBasedTierWhereInput /** * Limit how many SubscriptionUsageBasedTiers to update. */ limit?: number /** * Choose, which related nodes to fetch as well */ include?: Prisma.SubscriptionUsageBasedTierIncludeUpdateManyAndReturn | null } /** * SubscriptionUsageBasedTier upsert */ export type SubscriptionUsageBasedTierUpsertArgs = { /** * Select specific fields to fetch from the SubscriptionUsageBasedTier */ select?: Prisma.SubscriptionUsageBasedTierSelect | null /** * Omit specific fields from the SubscriptionUsageBasedTier */ omit?: Prisma.SubscriptionUsageBasedTierOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.SubscriptionUsageBasedTierInclude | null /** * The filter to search for the SubscriptionUsageBasedTier to update in case it exists. */ where: Prisma.SubscriptionUsageBasedTierWhereUniqueInput /** * In case the SubscriptionUsageBasedTier found by the `where` argument doesn't exist, create a new SubscriptionUsageBasedTier with this data. */ create: Prisma.XOR /** * In case the SubscriptionUsageBasedTier was found with the provided `where` argument, update it with this data. */ update: Prisma.XOR } /** * SubscriptionUsageBasedTier delete */ export type SubscriptionUsageBasedTierDeleteArgs = { /** * Select specific fields to fetch from the SubscriptionUsageBasedTier */ select?: Prisma.SubscriptionUsageBasedTierSelect | null /** * Omit specific fields from the SubscriptionUsageBasedTier */ omit?: Prisma.SubscriptionUsageBasedTierOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.SubscriptionUsageBasedTierInclude | null /** * Filter which SubscriptionUsageBasedTier to delete. */ where: Prisma.SubscriptionUsageBasedTierWhereUniqueInput } /** * SubscriptionUsageBasedTier deleteMany */ export type SubscriptionUsageBasedTierDeleteManyArgs = { /** * Filter which SubscriptionUsageBasedTiers to delete */ where?: Prisma.SubscriptionUsageBasedTierWhereInput /** * Limit how many SubscriptionUsageBasedTiers to delete. */ limit?: number } /** * SubscriptionUsageBasedTier without action */ export type SubscriptionUsageBasedTierDefaultArgs = { /** * Select specific fields to fetch from the SubscriptionUsageBasedTier */ select?: Prisma.SubscriptionUsageBasedTierSelect | null /** * Omit specific fields from the SubscriptionUsageBasedTier */ omit?: Prisma.SubscriptionUsageBasedTierOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.SubscriptionUsageBasedTierInclude | null }