/* !!! This is code generated by Prisma. Do not edit directly. !!! */ /* eslint-disable */ // biome-ignore-all lint: generated file // @ts-nocheck /* * This file exports the `TenantSubscription` 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 TenantSubscription * */ export type TenantSubscriptionModel = runtime.Types.Result.DefaultSelection export type AggregateTenantSubscription = { _count: TenantSubscriptionCountAggregateOutputType | null _avg: TenantSubscriptionAvgAggregateOutputType | null _sum: TenantSubscriptionSumAggregateOutputType | null _min: TenantSubscriptionMinAggregateOutputType | null _max: TenantSubscriptionMaxAggregateOutputType | null } export type TenantSubscriptionAvgAggregateOutputType = { seatQuantity: number | null officeSeatQuantity: number | null fieldSeatQuantity: number | null dunningAttemptCount: number | null } export type TenantSubscriptionSumAggregateOutputType = { seatQuantity: number | null officeSeatQuantity: number | null fieldSeatQuantity: number | null dunningAttemptCount: number | null } export type TenantSubscriptionMinAggregateOutputType = { id: string | null tenantId: string | null billingProviderCustomerId: string | null lagoCustomerId: string | null mollieCustomerId: string | null planCode: string | null seatQuantity: number | null officeSeatQuantity: number | null fieldSeatQuantity: number | null billingCadence: string | null commitmentEndsAt: Date | null lastInvoiceExternalId: string | null lastPaymentExternalId: string | null status: string | null trialStartsAt: Date | null trialEndsAt: Date | null pastDueSince: Date | null frozenAt: Date | null cancelledAt: Date | null dunningAttemptCount: number | null lastDunningSentAt: Date | null } export type TenantSubscriptionMaxAggregateOutputType = { id: string | null tenantId: string | null billingProviderCustomerId: string | null lagoCustomerId: string | null mollieCustomerId: string | null planCode: string | null seatQuantity: number | null officeSeatQuantity: number | null fieldSeatQuantity: number | null billingCadence: string | null commitmentEndsAt: Date | null lastInvoiceExternalId: string | null lastPaymentExternalId: string | null status: string | null trialStartsAt: Date | null trialEndsAt: Date | null pastDueSince: Date | null frozenAt: Date | null cancelledAt: Date | null dunningAttemptCount: number | null lastDunningSentAt: Date | null } export type TenantSubscriptionCountAggregateOutputType = { id: number tenantId: number billingProviderCustomerId: number lagoCustomerId: number mollieCustomerId: number planCode: number seatQuantity: number officeSeatQuantity: number fieldSeatQuantity: number billingCadence: number commitmentEndsAt: number storageAddOnCodes: number lastInvoiceExternalId: number lastPaymentExternalId: number status: number trialStartsAt: number trialEndsAt: number pastDueSince: number frozenAt: number cancelledAt: number dunningAttemptCount: number lastDunningSentAt: number _all: number } export type TenantSubscriptionAvgAggregateInputType = { seatQuantity?: true officeSeatQuantity?: true fieldSeatQuantity?: true dunningAttemptCount?: true } export type TenantSubscriptionSumAggregateInputType = { seatQuantity?: true officeSeatQuantity?: true fieldSeatQuantity?: true dunningAttemptCount?: true } export type TenantSubscriptionMinAggregateInputType = { id?: true tenantId?: true billingProviderCustomerId?: true lagoCustomerId?: true mollieCustomerId?: true planCode?: true seatQuantity?: true officeSeatQuantity?: true fieldSeatQuantity?: true billingCadence?: true commitmentEndsAt?: true lastInvoiceExternalId?: true lastPaymentExternalId?: true status?: true trialStartsAt?: true trialEndsAt?: true pastDueSince?: true frozenAt?: true cancelledAt?: true dunningAttemptCount?: true lastDunningSentAt?: true } export type TenantSubscriptionMaxAggregateInputType = { id?: true tenantId?: true billingProviderCustomerId?: true lagoCustomerId?: true mollieCustomerId?: true planCode?: true seatQuantity?: true officeSeatQuantity?: true fieldSeatQuantity?: true billingCadence?: true commitmentEndsAt?: true lastInvoiceExternalId?: true lastPaymentExternalId?: true status?: true trialStartsAt?: true trialEndsAt?: true pastDueSince?: true frozenAt?: true cancelledAt?: true dunningAttemptCount?: true lastDunningSentAt?: true } export type TenantSubscriptionCountAggregateInputType = { id?: true tenantId?: true billingProviderCustomerId?: true lagoCustomerId?: true mollieCustomerId?: true planCode?: true seatQuantity?: true officeSeatQuantity?: true fieldSeatQuantity?: true billingCadence?: true commitmentEndsAt?: true storageAddOnCodes?: true lastInvoiceExternalId?: true lastPaymentExternalId?: true status?: true trialStartsAt?: true trialEndsAt?: true pastDueSince?: true frozenAt?: true cancelledAt?: true dunningAttemptCount?: true lastDunningSentAt?: true _all?: true } export type TenantSubscriptionAggregateArgs = { /** * Filter which TenantSubscription to aggregate. */ where?: Prisma.TenantSubscriptionWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of TenantSubscriptions to fetch. */ orderBy?: Prisma.TenantSubscriptionOrderByWithRelationInput | Prisma.TenantSubscriptionOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the start position */ cursor?: Prisma.TenantSubscriptionWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` TenantSubscriptions 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` TenantSubscriptions. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Count returned TenantSubscriptions **/ _count?: true | TenantSubscriptionCountAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to average **/ _avg?: TenantSubscriptionAvgAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to sum **/ _sum?: TenantSubscriptionSumAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the minimum value **/ _min?: TenantSubscriptionMinAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the maximum value **/ _max?: TenantSubscriptionMaxAggregateInputType } export type GetTenantSubscriptionAggregateType = { [P in keyof T & keyof AggregateTenantSubscription]: P extends '_count' | 'count' ? T[P] extends true ? number : Prisma.GetScalarType : Prisma.GetScalarType } export type TenantSubscriptionGroupByArgs = { where?: Prisma.TenantSubscriptionWhereInput orderBy?: Prisma.TenantSubscriptionOrderByWithAggregationInput | Prisma.TenantSubscriptionOrderByWithAggregationInput[] by: Prisma.TenantSubscriptionScalarFieldEnum[] | Prisma.TenantSubscriptionScalarFieldEnum having?: Prisma.TenantSubscriptionScalarWhereWithAggregatesInput take?: number skip?: number _count?: TenantSubscriptionCountAggregateInputType | true _avg?: TenantSubscriptionAvgAggregateInputType _sum?: TenantSubscriptionSumAggregateInputType _min?: TenantSubscriptionMinAggregateInputType _max?: TenantSubscriptionMaxAggregateInputType } export type TenantSubscriptionGroupByOutputType = { id: string tenantId: string billingProviderCustomerId: string | null lagoCustomerId: string | null mollieCustomerId: string | null planCode: string | null seatQuantity: number officeSeatQuantity: number fieldSeatQuantity: number billingCadence: string commitmentEndsAt: Date | null storageAddOnCodes: string[] lastInvoiceExternalId: string | null lastPaymentExternalId: string | null status: string trialStartsAt: Date | null trialEndsAt: Date | null pastDueSince: Date | null frozenAt: Date | null cancelledAt: Date | null dunningAttemptCount: number lastDunningSentAt: Date | null _count: TenantSubscriptionCountAggregateOutputType | null _avg: TenantSubscriptionAvgAggregateOutputType | null _sum: TenantSubscriptionSumAggregateOutputType | null _min: TenantSubscriptionMinAggregateOutputType | null _max: TenantSubscriptionMaxAggregateOutputType | null } export type GetTenantSubscriptionGroupByPayload = Prisma.PrismaPromise< Array< Prisma.PickEnumerable & { [P in ((keyof T) & (keyof TenantSubscriptionGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : Prisma.GetScalarType : Prisma.GetScalarType } > > export type TenantSubscriptionWhereInput = { AND?: Prisma.TenantSubscriptionWhereInput | Prisma.TenantSubscriptionWhereInput[] OR?: Prisma.TenantSubscriptionWhereInput[] NOT?: Prisma.TenantSubscriptionWhereInput | Prisma.TenantSubscriptionWhereInput[] id?: Prisma.StringFilter<"TenantSubscription"> | string tenantId?: Prisma.StringFilter<"TenantSubscription"> | string billingProviderCustomerId?: Prisma.StringNullableFilter<"TenantSubscription"> | string | null lagoCustomerId?: Prisma.StringNullableFilter<"TenantSubscription"> | string | null mollieCustomerId?: Prisma.StringNullableFilter<"TenantSubscription"> | string | null planCode?: Prisma.StringNullableFilter<"TenantSubscription"> | string | null seatQuantity?: Prisma.IntFilter<"TenantSubscription"> | number officeSeatQuantity?: Prisma.IntFilter<"TenantSubscription"> | number fieldSeatQuantity?: Prisma.IntFilter<"TenantSubscription"> | number billingCadence?: Prisma.StringFilter<"TenantSubscription"> | string commitmentEndsAt?: Prisma.DateTimeNullableFilter<"TenantSubscription"> | Date | string | null storageAddOnCodes?: Prisma.StringNullableListFilter<"TenantSubscription"> lastInvoiceExternalId?: Prisma.StringNullableFilter<"TenantSubscription"> | string | null lastPaymentExternalId?: Prisma.StringNullableFilter<"TenantSubscription"> | string | null status?: Prisma.StringFilter<"TenantSubscription"> | string trialStartsAt?: Prisma.DateTimeNullableFilter<"TenantSubscription"> | Date | string | null trialEndsAt?: Prisma.DateTimeNullableFilter<"TenantSubscription"> | Date | string | null pastDueSince?: Prisma.DateTimeNullableFilter<"TenantSubscription"> | Date | string | null frozenAt?: Prisma.DateTimeNullableFilter<"TenantSubscription"> | Date | string | null cancelledAt?: Prisma.DateTimeNullableFilter<"TenantSubscription"> | Date | string | null dunningAttemptCount?: Prisma.IntFilter<"TenantSubscription"> | number lastDunningSentAt?: Prisma.DateTimeNullableFilter<"TenantSubscription"> | Date | string | null tenant?: Prisma.XOR products?: Prisma.TenantSubscriptionProductListRelationFilter usageRecords?: Prisma.TenantSubscriptionUsageRecordListRelationFilter } export type TenantSubscriptionOrderByWithRelationInput = { id?: Prisma.SortOrder tenantId?: Prisma.SortOrder billingProviderCustomerId?: Prisma.SortOrderInput | Prisma.SortOrder lagoCustomerId?: Prisma.SortOrderInput | Prisma.SortOrder mollieCustomerId?: Prisma.SortOrderInput | Prisma.SortOrder planCode?: Prisma.SortOrderInput | Prisma.SortOrder seatQuantity?: Prisma.SortOrder officeSeatQuantity?: Prisma.SortOrder fieldSeatQuantity?: Prisma.SortOrder billingCadence?: Prisma.SortOrder commitmentEndsAt?: Prisma.SortOrderInput | Prisma.SortOrder storageAddOnCodes?: Prisma.SortOrder lastInvoiceExternalId?: Prisma.SortOrderInput | Prisma.SortOrder lastPaymentExternalId?: Prisma.SortOrderInput | Prisma.SortOrder status?: Prisma.SortOrder trialStartsAt?: Prisma.SortOrderInput | Prisma.SortOrder trialEndsAt?: Prisma.SortOrderInput | Prisma.SortOrder pastDueSince?: Prisma.SortOrderInput | Prisma.SortOrder frozenAt?: Prisma.SortOrderInput | Prisma.SortOrder cancelledAt?: Prisma.SortOrderInput | Prisma.SortOrder dunningAttemptCount?: Prisma.SortOrder lastDunningSentAt?: Prisma.SortOrderInput | Prisma.SortOrder tenant?: Prisma.TenantOrderByWithRelationInput products?: Prisma.TenantSubscriptionProductOrderByRelationAggregateInput usageRecords?: Prisma.TenantSubscriptionUsageRecordOrderByRelationAggregateInput } export type TenantSubscriptionWhereUniqueInput = Prisma.AtLeast<{ id?: string tenantId?: string AND?: Prisma.TenantSubscriptionWhereInput | Prisma.TenantSubscriptionWhereInput[] OR?: Prisma.TenantSubscriptionWhereInput[] NOT?: Prisma.TenantSubscriptionWhereInput | Prisma.TenantSubscriptionWhereInput[] billingProviderCustomerId?: Prisma.StringNullableFilter<"TenantSubscription"> | string | null lagoCustomerId?: Prisma.StringNullableFilter<"TenantSubscription"> | string | null mollieCustomerId?: Prisma.StringNullableFilter<"TenantSubscription"> | string | null planCode?: Prisma.StringNullableFilter<"TenantSubscription"> | string | null seatQuantity?: Prisma.IntFilter<"TenantSubscription"> | number officeSeatQuantity?: Prisma.IntFilter<"TenantSubscription"> | number fieldSeatQuantity?: Prisma.IntFilter<"TenantSubscription"> | number billingCadence?: Prisma.StringFilter<"TenantSubscription"> | string commitmentEndsAt?: Prisma.DateTimeNullableFilter<"TenantSubscription"> | Date | string | null storageAddOnCodes?: Prisma.StringNullableListFilter<"TenantSubscription"> lastInvoiceExternalId?: Prisma.StringNullableFilter<"TenantSubscription"> | string | null lastPaymentExternalId?: Prisma.StringNullableFilter<"TenantSubscription"> | string | null status?: Prisma.StringFilter<"TenantSubscription"> | string trialStartsAt?: Prisma.DateTimeNullableFilter<"TenantSubscription"> | Date | string | null trialEndsAt?: Prisma.DateTimeNullableFilter<"TenantSubscription"> | Date | string | null pastDueSince?: Prisma.DateTimeNullableFilter<"TenantSubscription"> | Date | string | null frozenAt?: Prisma.DateTimeNullableFilter<"TenantSubscription"> | Date | string | null cancelledAt?: Prisma.DateTimeNullableFilter<"TenantSubscription"> | Date | string | null dunningAttemptCount?: Prisma.IntFilter<"TenantSubscription"> | number lastDunningSentAt?: Prisma.DateTimeNullableFilter<"TenantSubscription"> | Date | string | null tenant?: Prisma.XOR products?: Prisma.TenantSubscriptionProductListRelationFilter usageRecords?: Prisma.TenantSubscriptionUsageRecordListRelationFilter }, "id" | "tenantId"> export type TenantSubscriptionOrderByWithAggregationInput = { id?: Prisma.SortOrder tenantId?: Prisma.SortOrder billingProviderCustomerId?: Prisma.SortOrderInput | Prisma.SortOrder lagoCustomerId?: Prisma.SortOrderInput | Prisma.SortOrder mollieCustomerId?: Prisma.SortOrderInput | Prisma.SortOrder planCode?: Prisma.SortOrderInput | Prisma.SortOrder seatQuantity?: Prisma.SortOrder officeSeatQuantity?: Prisma.SortOrder fieldSeatQuantity?: Prisma.SortOrder billingCadence?: Prisma.SortOrder commitmentEndsAt?: Prisma.SortOrderInput | Prisma.SortOrder storageAddOnCodes?: Prisma.SortOrder lastInvoiceExternalId?: Prisma.SortOrderInput | Prisma.SortOrder lastPaymentExternalId?: Prisma.SortOrderInput | Prisma.SortOrder status?: Prisma.SortOrder trialStartsAt?: Prisma.SortOrderInput | Prisma.SortOrder trialEndsAt?: Prisma.SortOrderInput | Prisma.SortOrder pastDueSince?: Prisma.SortOrderInput | Prisma.SortOrder frozenAt?: Prisma.SortOrderInput | Prisma.SortOrder cancelledAt?: Prisma.SortOrderInput | Prisma.SortOrder dunningAttemptCount?: Prisma.SortOrder lastDunningSentAt?: Prisma.SortOrderInput | Prisma.SortOrder _count?: Prisma.TenantSubscriptionCountOrderByAggregateInput _avg?: Prisma.TenantSubscriptionAvgOrderByAggregateInput _max?: Prisma.TenantSubscriptionMaxOrderByAggregateInput _min?: Prisma.TenantSubscriptionMinOrderByAggregateInput _sum?: Prisma.TenantSubscriptionSumOrderByAggregateInput } export type TenantSubscriptionScalarWhereWithAggregatesInput = { AND?: Prisma.TenantSubscriptionScalarWhereWithAggregatesInput | Prisma.TenantSubscriptionScalarWhereWithAggregatesInput[] OR?: Prisma.TenantSubscriptionScalarWhereWithAggregatesInput[] NOT?: Prisma.TenantSubscriptionScalarWhereWithAggregatesInput | Prisma.TenantSubscriptionScalarWhereWithAggregatesInput[] id?: Prisma.StringWithAggregatesFilter<"TenantSubscription"> | string tenantId?: Prisma.StringWithAggregatesFilter<"TenantSubscription"> | string billingProviderCustomerId?: Prisma.StringNullableWithAggregatesFilter<"TenantSubscription"> | string | null lagoCustomerId?: Prisma.StringNullableWithAggregatesFilter<"TenantSubscription"> | string | null mollieCustomerId?: Prisma.StringNullableWithAggregatesFilter<"TenantSubscription"> | string | null planCode?: Prisma.StringNullableWithAggregatesFilter<"TenantSubscription"> | string | null seatQuantity?: Prisma.IntWithAggregatesFilter<"TenantSubscription"> | number officeSeatQuantity?: Prisma.IntWithAggregatesFilter<"TenantSubscription"> | number fieldSeatQuantity?: Prisma.IntWithAggregatesFilter<"TenantSubscription"> | number billingCadence?: Prisma.StringWithAggregatesFilter<"TenantSubscription"> | string commitmentEndsAt?: Prisma.DateTimeNullableWithAggregatesFilter<"TenantSubscription"> | Date | string | null storageAddOnCodes?: Prisma.StringNullableListFilter<"TenantSubscription"> lastInvoiceExternalId?: Prisma.StringNullableWithAggregatesFilter<"TenantSubscription"> | string | null lastPaymentExternalId?: Prisma.StringNullableWithAggregatesFilter<"TenantSubscription"> | string | null status?: Prisma.StringWithAggregatesFilter<"TenantSubscription"> | string trialStartsAt?: Prisma.DateTimeNullableWithAggregatesFilter<"TenantSubscription"> | Date | string | null trialEndsAt?: Prisma.DateTimeNullableWithAggregatesFilter<"TenantSubscription"> | Date | string | null pastDueSince?: Prisma.DateTimeNullableWithAggregatesFilter<"TenantSubscription"> | Date | string | null frozenAt?: Prisma.DateTimeNullableWithAggregatesFilter<"TenantSubscription"> | Date | string | null cancelledAt?: Prisma.DateTimeNullableWithAggregatesFilter<"TenantSubscription"> | Date | string | null dunningAttemptCount?: Prisma.IntWithAggregatesFilter<"TenantSubscription"> | number lastDunningSentAt?: Prisma.DateTimeNullableWithAggregatesFilter<"TenantSubscription"> | Date | string | null } export type TenantSubscriptionCreateInput = { id?: string billingProviderCustomerId?: string | null lagoCustomerId?: string | null mollieCustomerId?: string | null planCode?: string | null seatQuantity?: number officeSeatQuantity?: number fieldSeatQuantity?: number billingCadence?: string commitmentEndsAt?: Date | string | null storageAddOnCodes?: Prisma.TenantSubscriptionCreatestorageAddOnCodesInput | string[] lastInvoiceExternalId?: string | null lastPaymentExternalId?: string | null status?: string trialStartsAt?: Date | string | null trialEndsAt?: Date | string | null pastDueSince?: Date | string | null frozenAt?: Date | string | null cancelledAt?: Date | string | null dunningAttemptCount?: number lastDunningSentAt?: Date | string | null tenant: Prisma.TenantCreateNestedOneWithoutSubscriptionInput products?: Prisma.TenantSubscriptionProductCreateNestedManyWithoutTenantSubscriptionInput usageRecords?: Prisma.TenantSubscriptionUsageRecordCreateNestedManyWithoutTenantSubscriptionInput } export type TenantSubscriptionUncheckedCreateInput = { id?: string tenantId: string billingProviderCustomerId?: string | null lagoCustomerId?: string | null mollieCustomerId?: string | null planCode?: string | null seatQuantity?: number officeSeatQuantity?: number fieldSeatQuantity?: number billingCadence?: string commitmentEndsAt?: Date | string | null storageAddOnCodes?: Prisma.TenantSubscriptionCreatestorageAddOnCodesInput | string[] lastInvoiceExternalId?: string | null lastPaymentExternalId?: string | null status?: string trialStartsAt?: Date | string | null trialEndsAt?: Date | string | null pastDueSince?: Date | string | null frozenAt?: Date | string | null cancelledAt?: Date | string | null dunningAttemptCount?: number lastDunningSentAt?: Date | string | null products?: Prisma.TenantSubscriptionProductUncheckedCreateNestedManyWithoutTenantSubscriptionInput usageRecords?: Prisma.TenantSubscriptionUsageRecordUncheckedCreateNestedManyWithoutTenantSubscriptionInput } export type TenantSubscriptionUpdateInput = { id?: Prisma.StringFieldUpdateOperationsInput | string billingProviderCustomerId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null lagoCustomerId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null mollieCustomerId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null planCode?: Prisma.NullableStringFieldUpdateOperationsInput | string | null seatQuantity?: Prisma.IntFieldUpdateOperationsInput | number officeSeatQuantity?: Prisma.IntFieldUpdateOperationsInput | number fieldSeatQuantity?: Prisma.IntFieldUpdateOperationsInput | number billingCadence?: Prisma.StringFieldUpdateOperationsInput | string commitmentEndsAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null storageAddOnCodes?: Prisma.TenantSubscriptionUpdatestorageAddOnCodesInput | string[] lastInvoiceExternalId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null lastPaymentExternalId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null status?: Prisma.StringFieldUpdateOperationsInput | string trialStartsAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null trialEndsAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null pastDueSince?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null frozenAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null cancelledAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null dunningAttemptCount?: Prisma.IntFieldUpdateOperationsInput | number lastDunningSentAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null tenant?: Prisma.TenantUpdateOneRequiredWithoutSubscriptionNestedInput products?: Prisma.TenantSubscriptionProductUpdateManyWithoutTenantSubscriptionNestedInput usageRecords?: Prisma.TenantSubscriptionUsageRecordUpdateManyWithoutTenantSubscriptionNestedInput } export type TenantSubscriptionUncheckedUpdateInput = { id?: Prisma.StringFieldUpdateOperationsInput | string tenantId?: Prisma.StringFieldUpdateOperationsInput | string billingProviderCustomerId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null lagoCustomerId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null mollieCustomerId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null planCode?: Prisma.NullableStringFieldUpdateOperationsInput | string | null seatQuantity?: Prisma.IntFieldUpdateOperationsInput | number officeSeatQuantity?: Prisma.IntFieldUpdateOperationsInput | number fieldSeatQuantity?: Prisma.IntFieldUpdateOperationsInput | number billingCadence?: Prisma.StringFieldUpdateOperationsInput | string commitmentEndsAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null storageAddOnCodes?: Prisma.TenantSubscriptionUpdatestorageAddOnCodesInput | string[] lastInvoiceExternalId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null lastPaymentExternalId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null status?: Prisma.StringFieldUpdateOperationsInput | string trialStartsAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null trialEndsAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null pastDueSince?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null frozenAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null cancelledAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null dunningAttemptCount?: Prisma.IntFieldUpdateOperationsInput | number lastDunningSentAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null products?: Prisma.TenantSubscriptionProductUncheckedUpdateManyWithoutTenantSubscriptionNestedInput usageRecords?: Prisma.TenantSubscriptionUsageRecordUncheckedUpdateManyWithoutTenantSubscriptionNestedInput } export type TenantSubscriptionCreateManyInput = { id?: string tenantId: string billingProviderCustomerId?: string | null lagoCustomerId?: string | null mollieCustomerId?: string | null planCode?: string | null seatQuantity?: number officeSeatQuantity?: number fieldSeatQuantity?: number billingCadence?: string commitmentEndsAt?: Date | string | null storageAddOnCodes?: Prisma.TenantSubscriptionCreatestorageAddOnCodesInput | string[] lastInvoiceExternalId?: string | null lastPaymentExternalId?: string | null status?: string trialStartsAt?: Date | string | null trialEndsAt?: Date | string | null pastDueSince?: Date | string | null frozenAt?: Date | string | null cancelledAt?: Date | string | null dunningAttemptCount?: number lastDunningSentAt?: Date | string | null } export type TenantSubscriptionUpdateManyMutationInput = { id?: Prisma.StringFieldUpdateOperationsInput | string billingProviderCustomerId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null lagoCustomerId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null mollieCustomerId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null planCode?: Prisma.NullableStringFieldUpdateOperationsInput | string | null seatQuantity?: Prisma.IntFieldUpdateOperationsInput | number officeSeatQuantity?: Prisma.IntFieldUpdateOperationsInput | number fieldSeatQuantity?: Prisma.IntFieldUpdateOperationsInput | number billingCadence?: Prisma.StringFieldUpdateOperationsInput | string commitmentEndsAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null storageAddOnCodes?: Prisma.TenantSubscriptionUpdatestorageAddOnCodesInput | string[] lastInvoiceExternalId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null lastPaymentExternalId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null status?: Prisma.StringFieldUpdateOperationsInput | string trialStartsAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null trialEndsAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null pastDueSince?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null frozenAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null cancelledAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null dunningAttemptCount?: Prisma.IntFieldUpdateOperationsInput | number lastDunningSentAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null } export type TenantSubscriptionUncheckedUpdateManyInput = { id?: Prisma.StringFieldUpdateOperationsInput | string tenantId?: Prisma.StringFieldUpdateOperationsInput | string billingProviderCustomerId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null lagoCustomerId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null mollieCustomerId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null planCode?: Prisma.NullableStringFieldUpdateOperationsInput | string | null seatQuantity?: Prisma.IntFieldUpdateOperationsInput | number officeSeatQuantity?: Prisma.IntFieldUpdateOperationsInput | number fieldSeatQuantity?: Prisma.IntFieldUpdateOperationsInput | number billingCadence?: Prisma.StringFieldUpdateOperationsInput | string commitmentEndsAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null storageAddOnCodes?: Prisma.TenantSubscriptionUpdatestorageAddOnCodesInput | string[] lastInvoiceExternalId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null lastPaymentExternalId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null status?: Prisma.StringFieldUpdateOperationsInput | string trialStartsAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null trialEndsAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null pastDueSince?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null frozenAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null cancelledAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null dunningAttemptCount?: Prisma.IntFieldUpdateOperationsInput | number lastDunningSentAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null } export type TenantSubscriptionNullableScalarRelationFilter = { is?: Prisma.TenantSubscriptionWhereInput | null isNot?: Prisma.TenantSubscriptionWhereInput | null } export type TenantSubscriptionCountOrderByAggregateInput = { id?: Prisma.SortOrder tenantId?: Prisma.SortOrder billingProviderCustomerId?: Prisma.SortOrder lagoCustomerId?: Prisma.SortOrder mollieCustomerId?: Prisma.SortOrder planCode?: Prisma.SortOrder seatQuantity?: Prisma.SortOrder officeSeatQuantity?: Prisma.SortOrder fieldSeatQuantity?: Prisma.SortOrder billingCadence?: Prisma.SortOrder commitmentEndsAt?: Prisma.SortOrder storageAddOnCodes?: Prisma.SortOrder lastInvoiceExternalId?: Prisma.SortOrder lastPaymentExternalId?: Prisma.SortOrder status?: Prisma.SortOrder trialStartsAt?: Prisma.SortOrder trialEndsAt?: Prisma.SortOrder pastDueSince?: Prisma.SortOrder frozenAt?: Prisma.SortOrder cancelledAt?: Prisma.SortOrder dunningAttemptCount?: Prisma.SortOrder lastDunningSentAt?: Prisma.SortOrder } export type TenantSubscriptionAvgOrderByAggregateInput = { seatQuantity?: Prisma.SortOrder officeSeatQuantity?: Prisma.SortOrder fieldSeatQuantity?: Prisma.SortOrder dunningAttemptCount?: Prisma.SortOrder } export type TenantSubscriptionMaxOrderByAggregateInput = { id?: Prisma.SortOrder tenantId?: Prisma.SortOrder billingProviderCustomerId?: Prisma.SortOrder lagoCustomerId?: Prisma.SortOrder mollieCustomerId?: Prisma.SortOrder planCode?: Prisma.SortOrder seatQuantity?: Prisma.SortOrder officeSeatQuantity?: Prisma.SortOrder fieldSeatQuantity?: Prisma.SortOrder billingCadence?: Prisma.SortOrder commitmentEndsAt?: Prisma.SortOrder lastInvoiceExternalId?: Prisma.SortOrder lastPaymentExternalId?: Prisma.SortOrder status?: Prisma.SortOrder trialStartsAt?: Prisma.SortOrder trialEndsAt?: Prisma.SortOrder pastDueSince?: Prisma.SortOrder frozenAt?: Prisma.SortOrder cancelledAt?: Prisma.SortOrder dunningAttemptCount?: Prisma.SortOrder lastDunningSentAt?: Prisma.SortOrder } export type TenantSubscriptionMinOrderByAggregateInput = { id?: Prisma.SortOrder tenantId?: Prisma.SortOrder billingProviderCustomerId?: Prisma.SortOrder lagoCustomerId?: Prisma.SortOrder mollieCustomerId?: Prisma.SortOrder planCode?: Prisma.SortOrder seatQuantity?: Prisma.SortOrder officeSeatQuantity?: Prisma.SortOrder fieldSeatQuantity?: Prisma.SortOrder billingCadence?: Prisma.SortOrder commitmentEndsAt?: Prisma.SortOrder lastInvoiceExternalId?: Prisma.SortOrder lastPaymentExternalId?: Prisma.SortOrder status?: Prisma.SortOrder trialStartsAt?: Prisma.SortOrder trialEndsAt?: Prisma.SortOrder pastDueSince?: Prisma.SortOrder frozenAt?: Prisma.SortOrder cancelledAt?: Prisma.SortOrder dunningAttemptCount?: Prisma.SortOrder lastDunningSentAt?: Prisma.SortOrder } export type TenantSubscriptionSumOrderByAggregateInput = { seatQuantity?: Prisma.SortOrder officeSeatQuantity?: Prisma.SortOrder fieldSeatQuantity?: Prisma.SortOrder dunningAttemptCount?: Prisma.SortOrder } export type TenantSubscriptionScalarRelationFilter = { is?: Prisma.TenantSubscriptionWhereInput isNot?: Prisma.TenantSubscriptionWhereInput } export type TenantSubscriptionCreateNestedOneWithoutTenantInput = { create?: Prisma.XOR connectOrCreate?: Prisma.TenantSubscriptionCreateOrConnectWithoutTenantInput connect?: Prisma.TenantSubscriptionWhereUniqueInput } export type TenantSubscriptionUncheckedCreateNestedOneWithoutTenantInput = { create?: Prisma.XOR connectOrCreate?: Prisma.TenantSubscriptionCreateOrConnectWithoutTenantInput connect?: Prisma.TenantSubscriptionWhereUniqueInput } export type TenantSubscriptionUpdateOneWithoutTenantNestedInput = { create?: Prisma.XOR connectOrCreate?: Prisma.TenantSubscriptionCreateOrConnectWithoutTenantInput upsert?: Prisma.TenantSubscriptionUpsertWithoutTenantInput disconnect?: Prisma.TenantSubscriptionWhereInput | boolean delete?: Prisma.TenantSubscriptionWhereInput | boolean connect?: Prisma.TenantSubscriptionWhereUniqueInput update?: Prisma.XOR, Prisma.TenantSubscriptionUncheckedUpdateWithoutTenantInput> } export type TenantSubscriptionUncheckedUpdateOneWithoutTenantNestedInput = { create?: Prisma.XOR connectOrCreate?: Prisma.TenantSubscriptionCreateOrConnectWithoutTenantInput upsert?: Prisma.TenantSubscriptionUpsertWithoutTenantInput disconnect?: Prisma.TenantSubscriptionWhereInput | boolean delete?: Prisma.TenantSubscriptionWhereInput | boolean connect?: Prisma.TenantSubscriptionWhereUniqueInput update?: Prisma.XOR, Prisma.TenantSubscriptionUncheckedUpdateWithoutTenantInput> } export type TenantSubscriptionCreatestorageAddOnCodesInput = { set: string[] } export type TenantSubscriptionUpdatestorageAddOnCodesInput = { set?: string[] push?: string | string[] } export type TenantSubscriptionCreateNestedOneWithoutProductsInput = { create?: Prisma.XOR connectOrCreate?: Prisma.TenantSubscriptionCreateOrConnectWithoutProductsInput connect?: Prisma.TenantSubscriptionWhereUniqueInput } export type TenantSubscriptionUpdateOneRequiredWithoutProductsNestedInput = { create?: Prisma.XOR connectOrCreate?: Prisma.TenantSubscriptionCreateOrConnectWithoutProductsInput upsert?: Prisma.TenantSubscriptionUpsertWithoutProductsInput connect?: Prisma.TenantSubscriptionWhereUniqueInput update?: Prisma.XOR, Prisma.TenantSubscriptionUncheckedUpdateWithoutProductsInput> } export type TenantSubscriptionCreateNestedOneWithoutUsageRecordsInput = { create?: Prisma.XOR connectOrCreate?: Prisma.TenantSubscriptionCreateOrConnectWithoutUsageRecordsInput connect?: Prisma.TenantSubscriptionWhereUniqueInput } export type TenantSubscriptionUpdateOneRequiredWithoutUsageRecordsNestedInput = { create?: Prisma.XOR connectOrCreate?: Prisma.TenantSubscriptionCreateOrConnectWithoutUsageRecordsInput upsert?: Prisma.TenantSubscriptionUpsertWithoutUsageRecordsInput connect?: Prisma.TenantSubscriptionWhereUniqueInput update?: Prisma.XOR, Prisma.TenantSubscriptionUncheckedUpdateWithoutUsageRecordsInput> } export type TenantSubscriptionCreateWithoutTenantInput = { id?: string billingProviderCustomerId?: string | null lagoCustomerId?: string | null mollieCustomerId?: string | null planCode?: string | null seatQuantity?: number officeSeatQuantity?: number fieldSeatQuantity?: number billingCadence?: string commitmentEndsAt?: Date | string | null storageAddOnCodes?: Prisma.TenantSubscriptionCreatestorageAddOnCodesInput | string[] lastInvoiceExternalId?: string | null lastPaymentExternalId?: string | null status?: string trialStartsAt?: Date | string | null trialEndsAt?: Date | string | null pastDueSince?: Date | string | null frozenAt?: Date | string | null cancelledAt?: Date | string | null dunningAttemptCount?: number lastDunningSentAt?: Date | string | null products?: Prisma.TenantSubscriptionProductCreateNestedManyWithoutTenantSubscriptionInput usageRecords?: Prisma.TenantSubscriptionUsageRecordCreateNestedManyWithoutTenantSubscriptionInput } export type TenantSubscriptionUncheckedCreateWithoutTenantInput = { id?: string billingProviderCustomerId?: string | null lagoCustomerId?: string | null mollieCustomerId?: string | null planCode?: string | null seatQuantity?: number officeSeatQuantity?: number fieldSeatQuantity?: number billingCadence?: string commitmentEndsAt?: Date | string | null storageAddOnCodes?: Prisma.TenantSubscriptionCreatestorageAddOnCodesInput | string[] lastInvoiceExternalId?: string | null lastPaymentExternalId?: string | null status?: string trialStartsAt?: Date | string | null trialEndsAt?: Date | string | null pastDueSince?: Date | string | null frozenAt?: Date | string | null cancelledAt?: Date | string | null dunningAttemptCount?: number lastDunningSentAt?: Date | string | null products?: Prisma.TenantSubscriptionProductUncheckedCreateNestedManyWithoutTenantSubscriptionInput usageRecords?: Prisma.TenantSubscriptionUsageRecordUncheckedCreateNestedManyWithoutTenantSubscriptionInput } export type TenantSubscriptionCreateOrConnectWithoutTenantInput = { where: Prisma.TenantSubscriptionWhereUniqueInput create: Prisma.XOR } export type TenantSubscriptionUpsertWithoutTenantInput = { update: Prisma.XOR create: Prisma.XOR where?: Prisma.TenantSubscriptionWhereInput } export type TenantSubscriptionUpdateToOneWithWhereWithoutTenantInput = { where?: Prisma.TenantSubscriptionWhereInput data: Prisma.XOR } export type TenantSubscriptionUpdateWithoutTenantInput = { id?: Prisma.StringFieldUpdateOperationsInput | string billingProviderCustomerId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null lagoCustomerId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null mollieCustomerId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null planCode?: Prisma.NullableStringFieldUpdateOperationsInput | string | null seatQuantity?: Prisma.IntFieldUpdateOperationsInput | number officeSeatQuantity?: Prisma.IntFieldUpdateOperationsInput | number fieldSeatQuantity?: Prisma.IntFieldUpdateOperationsInput | number billingCadence?: Prisma.StringFieldUpdateOperationsInput | string commitmentEndsAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null storageAddOnCodes?: Prisma.TenantSubscriptionUpdatestorageAddOnCodesInput | string[] lastInvoiceExternalId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null lastPaymentExternalId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null status?: Prisma.StringFieldUpdateOperationsInput | string trialStartsAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null trialEndsAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null pastDueSince?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null frozenAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null cancelledAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null dunningAttemptCount?: Prisma.IntFieldUpdateOperationsInput | number lastDunningSentAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null products?: Prisma.TenantSubscriptionProductUpdateManyWithoutTenantSubscriptionNestedInput usageRecords?: Prisma.TenantSubscriptionUsageRecordUpdateManyWithoutTenantSubscriptionNestedInput } export type TenantSubscriptionUncheckedUpdateWithoutTenantInput = { id?: Prisma.StringFieldUpdateOperationsInput | string billingProviderCustomerId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null lagoCustomerId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null mollieCustomerId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null planCode?: Prisma.NullableStringFieldUpdateOperationsInput | string | null seatQuantity?: Prisma.IntFieldUpdateOperationsInput | number officeSeatQuantity?: Prisma.IntFieldUpdateOperationsInput | number fieldSeatQuantity?: Prisma.IntFieldUpdateOperationsInput | number billingCadence?: Prisma.StringFieldUpdateOperationsInput | string commitmentEndsAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null storageAddOnCodes?: Prisma.TenantSubscriptionUpdatestorageAddOnCodesInput | string[] lastInvoiceExternalId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null lastPaymentExternalId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null status?: Prisma.StringFieldUpdateOperationsInput | string trialStartsAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null trialEndsAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null pastDueSince?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null frozenAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null cancelledAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null dunningAttemptCount?: Prisma.IntFieldUpdateOperationsInput | number lastDunningSentAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null products?: Prisma.TenantSubscriptionProductUncheckedUpdateManyWithoutTenantSubscriptionNestedInput usageRecords?: Prisma.TenantSubscriptionUsageRecordUncheckedUpdateManyWithoutTenantSubscriptionNestedInput } export type TenantSubscriptionCreateWithoutProductsInput = { id?: string billingProviderCustomerId?: string | null lagoCustomerId?: string | null mollieCustomerId?: string | null planCode?: string | null seatQuantity?: number officeSeatQuantity?: number fieldSeatQuantity?: number billingCadence?: string commitmentEndsAt?: Date | string | null storageAddOnCodes?: Prisma.TenantSubscriptionCreatestorageAddOnCodesInput | string[] lastInvoiceExternalId?: string | null lastPaymentExternalId?: string | null status?: string trialStartsAt?: Date | string | null trialEndsAt?: Date | string | null pastDueSince?: Date | string | null frozenAt?: Date | string | null cancelledAt?: Date | string | null dunningAttemptCount?: number lastDunningSentAt?: Date | string | null tenant: Prisma.TenantCreateNestedOneWithoutSubscriptionInput usageRecords?: Prisma.TenantSubscriptionUsageRecordCreateNestedManyWithoutTenantSubscriptionInput } export type TenantSubscriptionUncheckedCreateWithoutProductsInput = { id?: string tenantId: string billingProviderCustomerId?: string | null lagoCustomerId?: string | null mollieCustomerId?: string | null planCode?: string | null seatQuantity?: number officeSeatQuantity?: number fieldSeatQuantity?: number billingCadence?: string commitmentEndsAt?: Date | string | null storageAddOnCodes?: Prisma.TenantSubscriptionCreatestorageAddOnCodesInput | string[] lastInvoiceExternalId?: string | null lastPaymentExternalId?: string | null status?: string trialStartsAt?: Date | string | null trialEndsAt?: Date | string | null pastDueSince?: Date | string | null frozenAt?: Date | string | null cancelledAt?: Date | string | null dunningAttemptCount?: number lastDunningSentAt?: Date | string | null usageRecords?: Prisma.TenantSubscriptionUsageRecordUncheckedCreateNestedManyWithoutTenantSubscriptionInput } export type TenantSubscriptionCreateOrConnectWithoutProductsInput = { where: Prisma.TenantSubscriptionWhereUniqueInput create: Prisma.XOR } export type TenantSubscriptionUpsertWithoutProductsInput = { update: Prisma.XOR create: Prisma.XOR where?: Prisma.TenantSubscriptionWhereInput } export type TenantSubscriptionUpdateToOneWithWhereWithoutProductsInput = { where?: Prisma.TenantSubscriptionWhereInput data: Prisma.XOR } export type TenantSubscriptionUpdateWithoutProductsInput = { id?: Prisma.StringFieldUpdateOperationsInput | string billingProviderCustomerId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null lagoCustomerId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null mollieCustomerId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null planCode?: Prisma.NullableStringFieldUpdateOperationsInput | string | null seatQuantity?: Prisma.IntFieldUpdateOperationsInput | number officeSeatQuantity?: Prisma.IntFieldUpdateOperationsInput | number fieldSeatQuantity?: Prisma.IntFieldUpdateOperationsInput | number billingCadence?: Prisma.StringFieldUpdateOperationsInput | string commitmentEndsAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null storageAddOnCodes?: Prisma.TenantSubscriptionUpdatestorageAddOnCodesInput | string[] lastInvoiceExternalId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null lastPaymentExternalId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null status?: Prisma.StringFieldUpdateOperationsInput | string trialStartsAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null trialEndsAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null pastDueSince?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null frozenAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null cancelledAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null dunningAttemptCount?: Prisma.IntFieldUpdateOperationsInput | number lastDunningSentAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null tenant?: Prisma.TenantUpdateOneRequiredWithoutSubscriptionNestedInput usageRecords?: Prisma.TenantSubscriptionUsageRecordUpdateManyWithoutTenantSubscriptionNestedInput } export type TenantSubscriptionUncheckedUpdateWithoutProductsInput = { id?: Prisma.StringFieldUpdateOperationsInput | string tenantId?: Prisma.StringFieldUpdateOperationsInput | string billingProviderCustomerId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null lagoCustomerId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null mollieCustomerId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null planCode?: Prisma.NullableStringFieldUpdateOperationsInput | string | null seatQuantity?: Prisma.IntFieldUpdateOperationsInput | number officeSeatQuantity?: Prisma.IntFieldUpdateOperationsInput | number fieldSeatQuantity?: Prisma.IntFieldUpdateOperationsInput | number billingCadence?: Prisma.StringFieldUpdateOperationsInput | string commitmentEndsAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null storageAddOnCodes?: Prisma.TenantSubscriptionUpdatestorageAddOnCodesInput | string[] lastInvoiceExternalId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null lastPaymentExternalId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null status?: Prisma.StringFieldUpdateOperationsInput | string trialStartsAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null trialEndsAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null pastDueSince?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null frozenAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null cancelledAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null dunningAttemptCount?: Prisma.IntFieldUpdateOperationsInput | number lastDunningSentAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null usageRecords?: Prisma.TenantSubscriptionUsageRecordUncheckedUpdateManyWithoutTenantSubscriptionNestedInput } export type TenantSubscriptionCreateWithoutUsageRecordsInput = { id?: string billingProviderCustomerId?: string | null lagoCustomerId?: string | null mollieCustomerId?: string | null planCode?: string | null seatQuantity?: number officeSeatQuantity?: number fieldSeatQuantity?: number billingCadence?: string commitmentEndsAt?: Date | string | null storageAddOnCodes?: Prisma.TenantSubscriptionCreatestorageAddOnCodesInput | string[] lastInvoiceExternalId?: string | null lastPaymentExternalId?: string | null status?: string trialStartsAt?: Date | string | null trialEndsAt?: Date | string | null pastDueSince?: Date | string | null frozenAt?: Date | string | null cancelledAt?: Date | string | null dunningAttemptCount?: number lastDunningSentAt?: Date | string | null tenant: Prisma.TenantCreateNestedOneWithoutSubscriptionInput products?: Prisma.TenantSubscriptionProductCreateNestedManyWithoutTenantSubscriptionInput } export type TenantSubscriptionUncheckedCreateWithoutUsageRecordsInput = { id?: string tenantId: string billingProviderCustomerId?: string | null lagoCustomerId?: string | null mollieCustomerId?: string | null planCode?: string | null seatQuantity?: number officeSeatQuantity?: number fieldSeatQuantity?: number billingCadence?: string commitmentEndsAt?: Date | string | null storageAddOnCodes?: Prisma.TenantSubscriptionCreatestorageAddOnCodesInput | string[] lastInvoiceExternalId?: string | null lastPaymentExternalId?: string | null status?: string trialStartsAt?: Date | string | null trialEndsAt?: Date | string | null pastDueSince?: Date | string | null frozenAt?: Date | string | null cancelledAt?: Date | string | null dunningAttemptCount?: number lastDunningSentAt?: Date | string | null products?: Prisma.TenantSubscriptionProductUncheckedCreateNestedManyWithoutTenantSubscriptionInput } export type TenantSubscriptionCreateOrConnectWithoutUsageRecordsInput = { where: Prisma.TenantSubscriptionWhereUniqueInput create: Prisma.XOR } export type TenantSubscriptionUpsertWithoutUsageRecordsInput = { update: Prisma.XOR create: Prisma.XOR where?: Prisma.TenantSubscriptionWhereInput } export type TenantSubscriptionUpdateToOneWithWhereWithoutUsageRecordsInput = { where?: Prisma.TenantSubscriptionWhereInput data: Prisma.XOR } export type TenantSubscriptionUpdateWithoutUsageRecordsInput = { id?: Prisma.StringFieldUpdateOperationsInput | string billingProviderCustomerId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null lagoCustomerId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null mollieCustomerId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null planCode?: Prisma.NullableStringFieldUpdateOperationsInput | string | null seatQuantity?: Prisma.IntFieldUpdateOperationsInput | number officeSeatQuantity?: Prisma.IntFieldUpdateOperationsInput | number fieldSeatQuantity?: Prisma.IntFieldUpdateOperationsInput | number billingCadence?: Prisma.StringFieldUpdateOperationsInput | string commitmentEndsAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null storageAddOnCodes?: Prisma.TenantSubscriptionUpdatestorageAddOnCodesInput | string[] lastInvoiceExternalId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null lastPaymentExternalId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null status?: Prisma.StringFieldUpdateOperationsInput | string trialStartsAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null trialEndsAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null pastDueSince?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null frozenAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null cancelledAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null dunningAttemptCount?: Prisma.IntFieldUpdateOperationsInput | number lastDunningSentAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null tenant?: Prisma.TenantUpdateOneRequiredWithoutSubscriptionNestedInput products?: Prisma.TenantSubscriptionProductUpdateManyWithoutTenantSubscriptionNestedInput } export type TenantSubscriptionUncheckedUpdateWithoutUsageRecordsInput = { id?: Prisma.StringFieldUpdateOperationsInput | string tenantId?: Prisma.StringFieldUpdateOperationsInput | string billingProviderCustomerId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null lagoCustomerId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null mollieCustomerId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null planCode?: Prisma.NullableStringFieldUpdateOperationsInput | string | null seatQuantity?: Prisma.IntFieldUpdateOperationsInput | number officeSeatQuantity?: Prisma.IntFieldUpdateOperationsInput | number fieldSeatQuantity?: Prisma.IntFieldUpdateOperationsInput | number billingCadence?: Prisma.StringFieldUpdateOperationsInput | string commitmentEndsAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null storageAddOnCodes?: Prisma.TenantSubscriptionUpdatestorageAddOnCodesInput | string[] lastInvoiceExternalId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null lastPaymentExternalId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null status?: Prisma.StringFieldUpdateOperationsInput | string trialStartsAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null trialEndsAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null pastDueSince?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null frozenAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null cancelledAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null dunningAttemptCount?: Prisma.IntFieldUpdateOperationsInput | number lastDunningSentAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null products?: Prisma.TenantSubscriptionProductUncheckedUpdateManyWithoutTenantSubscriptionNestedInput } /** * Count Type TenantSubscriptionCountOutputType */ export type TenantSubscriptionCountOutputType = { products: number usageRecords: number } export type TenantSubscriptionCountOutputTypeSelect = { products?: boolean | TenantSubscriptionCountOutputTypeCountProductsArgs usageRecords?: boolean | TenantSubscriptionCountOutputTypeCountUsageRecordsArgs } /** * TenantSubscriptionCountOutputType without action */ export type TenantSubscriptionCountOutputTypeDefaultArgs = { /** * Select specific fields to fetch from the TenantSubscriptionCountOutputType */ select?: Prisma.TenantSubscriptionCountOutputTypeSelect | null } /** * TenantSubscriptionCountOutputType without action */ export type TenantSubscriptionCountOutputTypeCountProductsArgs = { where?: Prisma.TenantSubscriptionProductWhereInput } /** * TenantSubscriptionCountOutputType without action */ export type TenantSubscriptionCountOutputTypeCountUsageRecordsArgs = { where?: Prisma.TenantSubscriptionUsageRecordWhereInput } export type TenantSubscriptionSelect = runtime.Types.Extensions.GetSelect<{ id?: boolean tenantId?: boolean billingProviderCustomerId?: boolean lagoCustomerId?: boolean mollieCustomerId?: boolean planCode?: boolean seatQuantity?: boolean officeSeatQuantity?: boolean fieldSeatQuantity?: boolean billingCadence?: boolean commitmentEndsAt?: boolean storageAddOnCodes?: boolean lastInvoiceExternalId?: boolean lastPaymentExternalId?: boolean status?: boolean trialStartsAt?: boolean trialEndsAt?: boolean pastDueSince?: boolean frozenAt?: boolean cancelledAt?: boolean dunningAttemptCount?: boolean lastDunningSentAt?: boolean tenant?: boolean | Prisma.TenantDefaultArgs products?: boolean | Prisma.TenantSubscription$productsArgs usageRecords?: boolean | Prisma.TenantSubscription$usageRecordsArgs _count?: boolean | Prisma.TenantSubscriptionCountOutputTypeDefaultArgs }, ExtArgs["result"]["tenantSubscription"]> export type TenantSubscriptionSelectCreateManyAndReturn = runtime.Types.Extensions.GetSelect<{ id?: boolean tenantId?: boolean billingProviderCustomerId?: boolean lagoCustomerId?: boolean mollieCustomerId?: boolean planCode?: boolean seatQuantity?: boolean officeSeatQuantity?: boolean fieldSeatQuantity?: boolean billingCadence?: boolean commitmentEndsAt?: boolean storageAddOnCodes?: boolean lastInvoiceExternalId?: boolean lastPaymentExternalId?: boolean status?: boolean trialStartsAt?: boolean trialEndsAt?: boolean pastDueSince?: boolean frozenAt?: boolean cancelledAt?: boolean dunningAttemptCount?: boolean lastDunningSentAt?: boolean tenant?: boolean | Prisma.TenantDefaultArgs }, ExtArgs["result"]["tenantSubscription"]> export type TenantSubscriptionSelectUpdateManyAndReturn = runtime.Types.Extensions.GetSelect<{ id?: boolean tenantId?: boolean billingProviderCustomerId?: boolean lagoCustomerId?: boolean mollieCustomerId?: boolean planCode?: boolean seatQuantity?: boolean officeSeatQuantity?: boolean fieldSeatQuantity?: boolean billingCadence?: boolean commitmentEndsAt?: boolean storageAddOnCodes?: boolean lastInvoiceExternalId?: boolean lastPaymentExternalId?: boolean status?: boolean trialStartsAt?: boolean trialEndsAt?: boolean pastDueSince?: boolean frozenAt?: boolean cancelledAt?: boolean dunningAttemptCount?: boolean lastDunningSentAt?: boolean tenant?: boolean | Prisma.TenantDefaultArgs }, ExtArgs["result"]["tenantSubscription"]> export type TenantSubscriptionSelectScalar = { id?: boolean tenantId?: boolean billingProviderCustomerId?: boolean lagoCustomerId?: boolean mollieCustomerId?: boolean planCode?: boolean seatQuantity?: boolean officeSeatQuantity?: boolean fieldSeatQuantity?: boolean billingCadence?: boolean commitmentEndsAt?: boolean storageAddOnCodes?: boolean lastInvoiceExternalId?: boolean lastPaymentExternalId?: boolean status?: boolean trialStartsAt?: boolean trialEndsAt?: boolean pastDueSince?: boolean frozenAt?: boolean cancelledAt?: boolean dunningAttemptCount?: boolean lastDunningSentAt?: boolean } export type TenantSubscriptionOmit = runtime.Types.Extensions.GetOmit<"id" | "tenantId" | "billingProviderCustomerId" | "lagoCustomerId" | "mollieCustomerId" | "planCode" | "seatQuantity" | "officeSeatQuantity" | "fieldSeatQuantity" | "billingCadence" | "commitmentEndsAt" | "storageAddOnCodes" | "lastInvoiceExternalId" | "lastPaymentExternalId" | "status" | "trialStartsAt" | "trialEndsAt" | "pastDueSince" | "frozenAt" | "cancelledAt" | "dunningAttemptCount" | "lastDunningSentAt", ExtArgs["result"]["tenantSubscription"]> export type TenantSubscriptionInclude = { tenant?: boolean | Prisma.TenantDefaultArgs products?: boolean | Prisma.TenantSubscription$productsArgs usageRecords?: boolean | Prisma.TenantSubscription$usageRecordsArgs _count?: boolean | Prisma.TenantSubscriptionCountOutputTypeDefaultArgs } export type TenantSubscriptionIncludeCreateManyAndReturn = { tenant?: boolean | Prisma.TenantDefaultArgs } export type TenantSubscriptionIncludeUpdateManyAndReturn = { tenant?: boolean | Prisma.TenantDefaultArgs } export type $TenantSubscriptionPayload = { name: "TenantSubscription" objects: { tenant: Prisma.$TenantPayload products: Prisma.$TenantSubscriptionProductPayload[] usageRecords: Prisma.$TenantSubscriptionUsageRecordPayload[] } scalars: runtime.Types.Extensions.GetPayloadResult<{ id: string tenantId: string billingProviderCustomerId: string | null lagoCustomerId: string | null mollieCustomerId: string | null planCode: string | null seatQuantity: number officeSeatQuantity: number fieldSeatQuantity: number billingCadence: string commitmentEndsAt: Date | null storageAddOnCodes: string[] lastInvoiceExternalId: string | null lastPaymentExternalId: string | null status: string trialStartsAt: Date | null trialEndsAt: Date | null pastDueSince: Date | null frozenAt: Date | null cancelledAt: Date | null dunningAttemptCount: number lastDunningSentAt: Date | null }, ExtArgs["result"]["tenantSubscription"]> composites: {} } export type TenantSubscriptionGetPayload = runtime.Types.Result.GetResult export type TenantSubscriptionCountArgs = Omit & { select?: TenantSubscriptionCountAggregateInputType | true } export interface TenantSubscriptionDelegate { [K: symbol]: { types: Prisma.TypeMap['model']['TenantSubscription'], meta: { name: 'TenantSubscription' } } /** * Find zero or one TenantSubscription that matches the filter. * @param {TenantSubscriptionFindUniqueArgs} args - Arguments to find a TenantSubscription * @example * // Get one TenantSubscription * const tenantSubscription = await prisma.tenantSubscription.findUnique({ * where: { * // ... provide filter here * } * }) */ findUnique(args: Prisma.SelectSubset>): Prisma.Prisma__TenantSubscriptionClient, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find one TenantSubscription that matches the filter or throw an error with `error.code='P2025'` * if no matches were found. * @param {TenantSubscriptionFindUniqueOrThrowArgs} args - Arguments to find a TenantSubscription * @example * // Get one TenantSubscription * const tenantSubscription = await prisma.tenantSubscription.findUniqueOrThrow({ * where: { * // ... provide filter here * } * }) */ findUniqueOrThrow(args: Prisma.SelectSubset>): Prisma.Prisma__TenantSubscriptionClient, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find the first TenantSubscription 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 {TenantSubscriptionFindFirstArgs} args - Arguments to find a TenantSubscription * @example * // Get one TenantSubscription * const tenantSubscription = await prisma.tenantSubscription.findFirst({ * where: { * // ... provide filter here * } * }) */ findFirst(args?: Prisma.SelectSubset>): Prisma.Prisma__TenantSubscriptionClient, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find the first TenantSubscription 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 {TenantSubscriptionFindFirstOrThrowArgs} args - Arguments to find a TenantSubscription * @example * // Get one TenantSubscription * const tenantSubscription = await prisma.tenantSubscription.findFirstOrThrow({ * where: { * // ... provide filter here * } * }) */ findFirstOrThrow(args?: Prisma.SelectSubset>): Prisma.Prisma__TenantSubscriptionClient, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find zero or more TenantSubscriptions 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 {TenantSubscriptionFindManyArgs} args - Arguments to filter and select certain fields only. * @example * // Get all TenantSubscriptions * const tenantSubscriptions = await prisma.tenantSubscription.findMany() * * // Get first 10 TenantSubscriptions * const tenantSubscriptions = await prisma.tenantSubscription.findMany({ take: 10 }) * * // Only select the `id` * const tenantSubscriptionWithIdOnly = await prisma.tenantSubscription.findMany({ select: { id: true } }) * */ findMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>> /** * Create a TenantSubscription. * @param {TenantSubscriptionCreateArgs} args - Arguments to create a TenantSubscription. * @example * // Create one TenantSubscription * const TenantSubscription = await prisma.tenantSubscription.create({ * data: { * // ... data to create a TenantSubscription * } * }) * */ create(args: Prisma.SelectSubset>): Prisma.Prisma__TenantSubscriptionClient, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Create many TenantSubscriptions. * @param {TenantSubscriptionCreateManyArgs} args - Arguments to create many TenantSubscriptions. * @example * // Create many TenantSubscriptions * const tenantSubscription = await prisma.tenantSubscription.createMany({ * data: [ * // ... provide data here * ] * }) * */ createMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Create many TenantSubscriptions and returns the data saved in the database. * @param {TenantSubscriptionCreateManyAndReturnArgs} args - Arguments to create many TenantSubscriptions. * @example * // Create many TenantSubscriptions * const tenantSubscription = await prisma.tenantSubscription.createManyAndReturn({ * data: [ * // ... provide data here * ] * }) * * // Create many TenantSubscriptions and only return the `id` * const tenantSubscriptionWithIdOnly = await prisma.tenantSubscription.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 TenantSubscription. * @param {TenantSubscriptionDeleteArgs} args - Arguments to delete one TenantSubscription. * @example * // Delete one TenantSubscription * const TenantSubscription = await prisma.tenantSubscription.delete({ * where: { * // ... filter to delete one TenantSubscription * } * }) * */ delete(args: Prisma.SelectSubset>): Prisma.Prisma__TenantSubscriptionClient, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Update one TenantSubscription. * @param {TenantSubscriptionUpdateArgs} args - Arguments to update one TenantSubscription. * @example * // Update one TenantSubscription * const tenantSubscription = await prisma.tenantSubscription.update({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ update(args: Prisma.SelectSubset>): Prisma.Prisma__TenantSubscriptionClient, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Delete zero or more TenantSubscriptions. * @param {TenantSubscriptionDeleteManyArgs} args - Arguments to filter TenantSubscriptions to delete. * @example * // Delete a few TenantSubscriptions * const { count } = await prisma.tenantSubscription.deleteMany({ * where: { * // ... provide filter here * } * }) * */ deleteMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Update zero or more TenantSubscriptions. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {TenantSubscriptionUpdateManyArgs} args - Arguments to update one or more rows. * @example * // Update many TenantSubscriptions * const tenantSubscription = await prisma.tenantSubscription.updateMany({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ updateMany(args: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Update zero or more TenantSubscriptions and returns the data updated in the database. * @param {TenantSubscriptionUpdateManyAndReturnArgs} args - Arguments to update many TenantSubscriptions. * @example * // Update many TenantSubscriptions * const tenantSubscription = await prisma.tenantSubscription.updateManyAndReturn({ * where: { * // ... provide filter here * }, * data: [ * // ... provide data here * ] * }) * * // Update zero or more TenantSubscriptions and only return the `id` * const tenantSubscriptionWithIdOnly = await prisma.tenantSubscription.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 TenantSubscription. * @param {TenantSubscriptionUpsertArgs} args - Arguments to update or create a TenantSubscription. * @example * // Update or create a TenantSubscription * const tenantSubscription = await prisma.tenantSubscription.upsert({ * create: { * // ... data to create a TenantSubscription * }, * update: { * // ... in case it already exists, update * }, * where: { * // ... the filter for the TenantSubscription we want to update * } * }) */ upsert(args: Prisma.SelectSubset>): Prisma.Prisma__TenantSubscriptionClient, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Count the number of TenantSubscriptions. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {TenantSubscriptionCountArgs} args - Arguments to filter TenantSubscriptions to count. * @example * // Count the number of TenantSubscriptions * const count = await prisma.tenantSubscription.count({ * where: { * // ... the filter for the TenantSubscriptions 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 TenantSubscription. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {TenantSubscriptionAggregateArgs} 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 TenantSubscription. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {TenantSubscriptionGroupByArgs} 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 TenantSubscriptionGroupByArgs, HasSelectOrTake extends Prisma.Or< Prisma.Extends<'skip', Prisma.Keys>, Prisma.Extends<'take', Prisma.Keys> >, OrderByArg extends Prisma.True extends HasSelectOrTake ? { orderBy: TenantSubscriptionGroupByArgs['orderBy'] } : { orderBy?: TenantSubscriptionGroupByArgs['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 ? GetTenantSubscriptionGroupByPayload : Prisma.PrismaPromise /** * Fields of the TenantSubscription model */ readonly fields: TenantSubscriptionFieldRefs; } /** * The delegate class that acts as a "Promise-like" for TenantSubscription. * 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__TenantSubscriptionClient extends Prisma.PrismaPromise { readonly [Symbol.toStringTag]: "PrismaPromise" tenant = {}>(args?: Prisma.Subset>): Prisma.Prisma__TenantClient, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions> products = {}>(args?: Prisma.Subset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions> | Null> usageRecords = {}>(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 TenantSubscription model */ export interface TenantSubscriptionFieldRefs { readonly id: Prisma.FieldRef<"TenantSubscription", 'String'> readonly tenantId: Prisma.FieldRef<"TenantSubscription", 'String'> readonly billingProviderCustomerId: Prisma.FieldRef<"TenantSubscription", 'String'> readonly lagoCustomerId: Prisma.FieldRef<"TenantSubscription", 'String'> readonly mollieCustomerId: Prisma.FieldRef<"TenantSubscription", 'String'> readonly planCode: Prisma.FieldRef<"TenantSubscription", 'String'> readonly seatQuantity: Prisma.FieldRef<"TenantSubscription", 'Int'> readonly officeSeatQuantity: Prisma.FieldRef<"TenantSubscription", 'Int'> readonly fieldSeatQuantity: Prisma.FieldRef<"TenantSubscription", 'Int'> readonly billingCadence: Prisma.FieldRef<"TenantSubscription", 'String'> readonly commitmentEndsAt: Prisma.FieldRef<"TenantSubscription", 'DateTime'> readonly storageAddOnCodes: Prisma.FieldRef<"TenantSubscription", 'String[]'> readonly lastInvoiceExternalId: Prisma.FieldRef<"TenantSubscription", 'String'> readonly lastPaymentExternalId: Prisma.FieldRef<"TenantSubscription", 'String'> readonly status: Prisma.FieldRef<"TenantSubscription", 'String'> readonly trialStartsAt: Prisma.FieldRef<"TenantSubscription", 'DateTime'> readonly trialEndsAt: Prisma.FieldRef<"TenantSubscription", 'DateTime'> readonly pastDueSince: Prisma.FieldRef<"TenantSubscription", 'DateTime'> readonly frozenAt: Prisma.FieldRef<"TenantSubscription", 'DateTime'> readonly cancelledAt: Prisma.FieldRef<"TenantSubscription", 'DateTime'> readonly dunningAttemptCount: Prisma.FieldRef<"TenantSubscription", 'Int'> readonly lastDunningSentAt: Prisma.FieldRef<"TenantSubscription", 'DateTime'> } // Custom InputTypes /** * TenantSubscription findUnique */ export type TenantSubscriptionFindUniqueArgs = { /** * Select specific fields to fetch from the TenantSubscription */ select?: Prisma.TenantSubscriptionSelect | null /** * Omit specific fields from the TenantSubscription */ omit?: Prisma.TenantSubscriptionOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.TenantSubscriptionInclude | null /** * Filter, which TenantSubscription to fetch. */ where: Prisma.TenantSubscriptionWhereUniqueInput } /** * TenantSubscription findUniqueOrThrow */ export type TenantSubscriptionFindUniqueOrThrowArgs = { /** * Select specific fields to fetch from the TenantSubscription */ select?: Prisma.TenantSubscriptionSelect | null /** * Omit specific fields from the TenantSubscription */ omit?: Prisma.TenantSubscriptionOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.TenantSubscriptionInclude | null /** * Filter, which TenantSubscription to fetch. */ where: Prisma.TenantSubscriptionWhereUniqueInput } /** * TenantSubscription findFirst */ export type TenantSubscriptionFindFirstArgs = { /** * Select specific fields to fetch from the TenantSubscription */ select?: Prisma.TenantSubscriptionSelect | null /** * Omit specific fields from the TenantSubscription */ omit?: Prisma.TenantSubscriptionOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.TenantSubscriptionInclude | null /** * Filter, which TenantSubscription to fetch. */ where?: Prisma.TenantSubscriptionWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of TenantSubscriptions to fetch. */ orderBy?: Prisma.TenantSubscriptionOrderByWithRelationInput | Prisma.TenantSubscriptionOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for TenantSubscriptions. */ cursor?: Prisma.TenantSubscriptionWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` TenantSubscriptions 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` TenantSubscriptions. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of TenantSubscriptions. */ distinct?: Prisma.TenantSubscriptionScalarFieldEnum | Prisma.TenantSubscriptionScalarFieldEnum[] } /** * TenantSubscription findFirstOrThrow */ export type TenantSubscriptionFindFirstOrThrowArgs = { /** * Select specific fields to fetch from the TenantSubscription */ select?: Prisma.TenantSubscriptionSelect | null /** * Omit specific fields from the TenantSubscription */ omit?: Prisma.TenantSubscriptionOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.TenantSubscriptionInclude | null /** * Filter, which TenantSubscription to fetch. */ where?: Prisma.TenantSubscriptionWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of TenantSubscriptions to fetch. */ orderBy?: Prisma.TenantSubscriptionOrderByWithRelationInput | Prisma.TenantSubscriptionOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for TenantSubscriptions. */ cursor?: Prisma.TenantSubscriptionWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` TenantSubscriptions 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` TenantSubscriptions. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of TenantSubscriptions. */ distinct?: Prisma.TenantSubscriptionScalarFieldEnum | Prisma.TenantSubscriptionScalarFieldEnum[] } /** * TenantSubscription findMany */ export type TenantSubscriptionFindManyArgs = { /** * Select specific fields to fetch from the TenantSubscription */ select?: Prisma.TenantSubscriptionSelect | null /** * Omit specific fields from the TenantSubscription */ omit?: Prisma.TenantSubscriptionOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.TenantSubscriptionInclude | null /** * Filter, which TenantSubscriptions to fetch. */ where?: Prisma.TenantSubscriptionWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of TenantSubscriptions to fetch. */ orderBy?: Prisma.TenantSubscriptionOrderByWithRelationInput | Prisma.TenantSubscriptionOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for listing TenantSubscriptions. */ cursor?: Prisma.TenantSubscriptionWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` TenantSubscriptions 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` TenantSubscriptions. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of TenantSubscriptions. */ distinct?: Prisma.TenantSubscriptionScalarFieldEnum | Prisma.TenantSubscriptionScalarFieldEnum[] } /** * TenantSubscription create */ export type TenantSubscriptionCreateArgs = { /** * Select specific fields to fetch from the TenantSubscription */ select?: Prisma.TenantSubscriptionSelect | null /** * Omit specific fields from the TenantSubscription */ omit?: Prisma.TenantSubscriptionOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.TenantSubscriptionInclude | null /** * The data needed to create a TenantSubscription. */ data: Prisma.XOR } /** * TenantSubscription createMany */ export type TenantSubscriptionCreateManyArgs = { /** * The data used to create many TenantSubscriptions. */ data: Prisma.TenantSubscriptionCreateManyInput | Prisma.TenantSubscriptionCreateManyInput[] skipDuplicates?: boolean } /** * TenantSubscription createManyAndReturn */ export type TenantSubscriptionCreateManyAndReturnArgs = { /** * Select specific fields to fetch from the TenantSubscription */ select?: Prisma.TenantSubscriptionSelectCreateManyAndReturn | null /** * Omit specific fields from the TenantSubscription */ omit?: Prisma.TenantSubscriptionOmit | null /** * The data used to create many TenantSubscriptions. */ data: Prisma.TenantSubscriptionCreateManyInput | Prisma.TenantSubscriptionCreateManyInput[] skipDuplicates?: boolean /** * Choose, which related nodes to fetch as well */ include?: Prisma.TenantSubscriptionIncludeCreateManyAndReturn | null } /** * TenantSubscription update */ export type TenantSubscriptionUpdateArgs = { /** * Select specific fields to fetch from the TenantSubscription */ select?: Prisma.TenantSubscriptionSelect | null /** * Omit specific fields from the TenantSubscription */ omit?: Prisma.TenantSubscriptionOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.TenantSubscriptionInclude | null /** * The data needed to update a TenantSubscription. */ data: Prisma.XOR /** * Choose, which TenantSubscription to update. */ where: Prisma.TenantSubscriptionWhereUniqueInput } /** * TenantSubscription updateMany */ export type TenantSubscriptionUpdateManyArgs = { /** * The data used to update TenantSubscriptions. */ data: Prisma.XOR /** * Filter which TenantSubscriptions to update */ where?: Prisma.TenantSubscriptionWhereInput /** * Limit how many TenantSubscriptions to update. */ limit?: number } /** * TenantSubscription updateManyAndReturn */ export type TenantSubscriptionUpdateManyAndReturnArgs = { /** * Select specific fields to fetch from the TenantSubscription */ select?: Prisma.TenantSubscriptionSelectUpdateManyAndReturn | null /** * Omit specific fields from the TenantSubscription */ omit?: Prisma.TenantSubscriptionOmit | null /** * The data used to update TenantSubscriptions. */ data: Prisma.XOR /** * Filter which TenantSubscriptions to update */ where?: Prisma.TenantSubscriptionWhereInput /** * Limit how many TenantSubscriptions to update. */ limit?: number /** * Choose, which related nodes to fetch as well */ include?: Prisma.TenantSubscriptionIncludeUpdateManyAndReturn | null } /** * TenantSubscription upsert */ export type TenantSubscriptionUpsertArgs = { /** * Select specific fields to fetch from the TenantSubscription */ select?: Prisma.TenantSubscriptionSelect | null /** * Omit specific fields from the TenantSubscription */ omit?: Prisma.TenantSubscriptionOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.TenantSubscriptionInclude | null /** * The filter to search for the TenantSubscription to update in case it exists. */ where: Prisma.TenantSubscriptionWhereUniqueInput /** * In case the TenantSubscription found by the `where` argument doesn't exist, create a new TenantSubscription with this data. */ create: Prisma.XOR /** * In case the TenantSubscription was found with the provided `where` argument, update it with this data. */ update: Prisma.XOR } /** * TenantSubscription delete */ export type TenantSubscriptionDeleteArgs = { /** * Select specific fields to fetch from the TenantSubscription */ select?: Prisma.TenantSubscriptionSelect | null /** * Omit specific fields from the TenantSubscription */ omit?: Prisma.TenantSubscriptionOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.TenantSubscriptionInclude | null /** * Filter which TenantSubscription to delete. */ where: Prisma.TenantSubscriptionWhereUniqueInput } /** * TenantSubscription deleteMany */ export type TenantSubscriptionDeleteManyArgs = { /** * Filter which TenantSubscriptions to delete */ where?: Prisma.TenantSubscriptionWhereInput /** * Limit how many TenantSubscriptions to delete. */ limit?: number } /** * TenantSubscription.products */ export type TenantSubscription$productsArgs = { /** * Select specific fields to fetch from the TenantSubscriptionProduct */ select?: Prisma.TenantSubscriptionProductSelect | null /** * Omit specific fields from the TenantSubscriptionProduct */ omit?: Prisma.TenantSubscriptionProductOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.TenantSubscriptionProductInclude | null where?: Prisma.TenantSubscriptionProductWhereInput orderBy?: Prisma.TenantSubscriptionProductOrderByWithRelationInput | Prisma.TenantSubscriptionProductOrderByWithRelationInput[] cursor?: Prisma.TenantSubscriptionProductWhereUniqueInput take?: number skip?: number distinct?: Prisma.TenantSubscriptionProductScalarFieldEnum | Prisma.TenantSubscriptionProductScalarFieldEnum[] } /** * TenantSubscription.usageRecords */ export type TenantSubscription$usageRecordsArgs = { /** * Select specific fields to fetch from the TenantSubscriptionUsageRecord */ select?: Prisma.TenantSubscriptionUsageRecordSelect | null /** * Omit specific fields from the TenantSubscriptionUsageRecord */ omit?: Prisma.TenantSubscriptionUsageRecordOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.TenantSubscriptionUsageRecordInclude | null where?: Prisma.TenantSubscriptionUsageRecordWhereInput orderBy?: Prisma.TenantSubscriptionUsageRecordOrderByWithRelationInput | Prisma.TenantSubscriptionUsageRecordOrderByWithRelationInput[] cursor?: Prisma.TenantSubscriptionUsageRecordWhereUniqueInput take?: number skip?: number distinct?: Prisma.TenantSubscriptionUsageRecordScalarFieldEnum | Prisma.TenantSubscriptionUsageRecordScalarFieldEnum[] } /** * TenantSubscription without action */ export type TenantSubscriptionDefaultArgs = { /** * Select specific fields to fetch from the TenantSubscription */ select?: Prisma.TenantSubscriptionSelect | null /** * Omit specific fields from the TenantSubscription */ omit?: Prisma.TenantSubscriptionOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.TenantSubscriptionInclude | null }