1290 lines
51 KiB
TypeScript
1290 lines
51 KiB
TypeScript
|
|
/* !!! This is code generated by Prisma. Do not edit directly. !!! */
|
|
/* eslint-disable */
|
|
// biome-ignore-all lint: generated file
|
|
// @ts-nocheck
|
|
/*
|
|
* This file exports the `CheckoutSessionStatus` 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 CheckoutSessionStatus
|
|
*
|
|
*/
|
|
export type CheckoutSessionStatusModel = runtime.Types.Result.DefaultSelection<Prisma.$CheckoutSessionStatusPayload>
|
|
|
|
export type AggregateCheckoutSessionStatus = {
|
|
_count: CheckoutSessionStatusCountAggregateOutputType | null
|
|
_min: CheckoutSessionStatusMinAggregateOutputType | null
|
|
_max: CheckoutSessionStatusMaxAggregateOutputType | null
|
|
}
|
|
|
|
export type CheckoutSessionStatusMinAggregateOutputType = {
|
|
createdAt: Date | null
|
|
updatedAt: Date | null
|
|
id: string | null
|
|
pending: boolean | null
|
|
email: string | null
|
|
fromUrl: string | null
|
|
fromUserId: string | null
|
|
fromTenantId: string | null
|
|
createdUserId: string | null
|
|
createdTenantId: string | null
|
|
}
|
|
|
|
export type CheckoutSessionStatusMaxAggregateOutputType = {
|
|
createdAt: Date | null
|
|
updatedAt: Date | null
|
|
id: string | null
|
|
pending: boolean | null
|
|
email: string | null
|
|
fromUrl: string | null
|
|
fromUserId: string | null
|
|
fromTenantId: string | null
|
|
createdUserId: string | null
|
|
createdTenantId: string | null
|
|
}
|
|
|
|
export type CheckoutSessionStatusCountAggregateOutputType = {
|
|
createdAt: number
|
|
updatedAt: number
|
|
id: number
|
|
pending: number
|
|
email: number
|
|
fromUrl: number
|
|
fromUserId: number
|
|
fromTenantId: number
|
|
createdUserId: number
|
|
createdTenantId: number
|
|
_all: number
|
|
}
|
|
|
|
|
|
export type CheckoutSessionStatusMinAggregateInputType = {
|
|
createdAt?: true
|
|
updatedAt?: true
|
|
id?: true
|
|
pending?: true
|
|
email?: true
|
|
fromUrl?: true
|
|
fromUserId?: true
|
|
fromTenantId?: true
|
|
createdUserId?: true
|
|
createdTenantId?: true
|
|
}
|
|
|
|
export type CheckoutSessionStatusMaxAggregateInputType = {
|
|
createdAt?: true
|
|
updatedAt?: true
|
|
id?: true
|
|
pending?: true
|
|
email?: true
|
|
fromUrl?: true
|
|
fromUserId?: true
|
|
fromTenantId?: true
|
|
createdUserId?: true
|
|
createdTenantId?: true
|
|
}
|
|
|
|
export type CheckoutSessionStatusCountAggregateInputType = {
|
|
createdAt?: true
|
|
updatedAt?: true
|
|
id?: true
|
|
pending?: true
|
|
email?: true
|
|
fromUrl?: true
|
|
fromUserId?: true
|
|
fromTenantId?: true
|
|
createdUserId?: true
|
|
createdTenantId?: true
|
|
_all?: true
|
|
}
|
|
|
|
export type CheckoutSessionStatusAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Filter which CheckoutSessionStatus to aggregate.
|
|
*/
|
|
where?: Prisma.CheckoutSessionStatusWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of CheckoutSessionStatuses to fetch.
|
|
*/
|
|
orderBy?: Prisma.CheckoutSessionStatusOrderByWithRelationInput | Prisma.CheckoutSessionStatusOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the start position
|
|
*/
|
|
cursor?: Prisma.CheckoutSessionStatusWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` CheckoutSessionStatuses 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` CheckoutSessionStatuses.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Count returned CheckoutSessionStatuses
|
|
**/
|
|
_count?: true | CheckoutSessionStatusCountAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to find the minimum value
|
|
**/
|
|
_min?: CheckoutSessionStatusMinAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to find the maximum value
|
|
**/
|
|
_max?: CheckoutSessionStatusMaxAggregateInputType
|
|
}
|
|
|
|
export type GetCheckoutSessionStatusAggregateType<T extends CheckoutSessionStatusAggregateArgs> = {
|
|
[P in keyof T & keyof AggregateCheckoutSessionStatus]: P extends '_count' | 'count'
|
|
? T[P] extends true
|
|
? number
|
|
: Prisma.GetScalarType<T[P], AggregateCheckoutSessionStatus[P]>
|
|
: Prisma.GetScalarType<T[P], AggregateCheckoutSessionStatus[P]>
|
|
}
|
|
|
|
|
|
|
|
|
|
export type CheckoutSessionStatusGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
where?: Prisma.CheckoutSessionStatusWhereInput
|
|
orderBy?: Prisma.CheckoutSessionStatusOrderByWithAggregationInput | Prisma.CheckoutSessionStatusOrderByWithAggregationInput[]
|
|
by: Prisma.CheckoutSessionStatusScalarFieldEnum[] | Prisma.CheckoutSessionStatusScalarFieldEnum
|
|
having?: Prisma.CheckoutSessionStatusScalarWhereWithAggregatesInput
|
|
take?: number
|
|
skip?: number
|
|
_count?: CheckoutSessionStatusCountAggregateInputType | true
|
|
_min?: CheckoutSessionStatusMinAggregateInputType
|
|
_max?: CheckoutSessionStatusMaxAggregateInputType
|
|
}
|
|
|
|
export type CheckoutSessionStatusGroupByOutputType = {
|
|
createdAt: Date
|
|
updatedAt: Date
|
|
id: string
|
|
pending: boolean
|
|
email: string
|
|
fromUrl: string
|
|
fromUserId: string | null
|
|
fromTenantId: string | null
|
|
createdUserId: string | null
|
|
createdTenantId: string | null
|
|
_count: CheckoutSessionStatusCountAggregateOutputType | null
|
|
_min: CheckoutSessionStatusMinAggregateOutputType | null
|
|
_max: CheckoutSessionStatusMaxAggregateOutputType | null
|
|
}
|
|
|
|
export type GetCheckoutSessionStatusGroupByPayload<T extends CheckoutSessionStatusGroupByArgs> = Prisma.PrismaPromise<
|
|
Array<
|
|
Prisma.PickEnumerable<CheckoutSessionStatusGroupByOutputType, T['by']> &
|
|
{
|
|
[P in ((keyof T) & (keyof CheckoutSessionStatusGroupByOutputType))]: P extends '_count'
|
|
? T[P] extends boolean
|
|
? number
|
|
: Prisma.GetScalarType<T[P], CheckoutSessionStatusGroupByOutputType[P]>
|
|
: Prisma.GetScalarType<T[P], CheckoutSessionStatusGroupByOutputType[P]>
|
|
}
|
|
>
|
|
>
|
|
|
|
|
|
|
|
export type CheckoutSessionStatusWhereInput = {
|
|
AND?: Prisma.CheckoutSessionStatusWhereInput | Prisma.CheckoutSessionStatusWhereInput[]
|
|
OR?: Prisma.CheckoutSessionStatusWhereInput[]
|
|
NOT?: Prisma.CheckoutSessionStatusWhereInput | Prisma.CheckoutSessionStatusWhereInput[]
|
|
createdAt?: Prisma.DateTimeFilter<"CheckoutSessionStatus"> | Date | string
|
|
updatedAt?: Prisma.DateTimeFilter<"CheckoutSessionStatus"> | Date | string
|
|
id?: Prisma.StringFilter<"CheckoutSessionStatus"> | string
|
|
pending?: Prisma.BoolFilter<"CheckoutSessionStatus"> | boolean
|
|
email?: Prisma.StringFilter<"CheckoutSessionStatus"> | string
|
|
fromUrl?: Prisma.StringFilter<"CheckoutSessionStatus"> | string
|
|
fromUserId?: Prisma.StringNullableFilter<"CheckoutSessionStatus"> | string | null
|
|
fromTenantId?: Prisma.StringNullableFilter<"CheckoutSessionStatus"> | string | null
|
|
createdUserId?: Prisma.StringNullableFilter<"CheckoutSessionStatus"> | string | null
|
|
createdTenantId?: Prisma.StringNullableFilter<"CheckoutSessionStatus"> | string | null
|
|
}
|
|
|
|
export type CheckoutSessionStatusOrderByWithRelationInput = {
|
|
createdAt?: Prisma.SortOrder
|
|
updatedAt?: Prisma.SortOrder
|
|
id?: Prisma.SortOrder
|
|
pending?: Prisma.SortOrder
|
|
email?: Prisma.SortOrder
|
|
fromUrl?: Prisma.SortOrder
|
|
fromUserId?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
fromTenantId?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
createdUserId?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
createdTenantId?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
}
|
|
|
|
export type CheckoutSessionStatusWhereUniqueInput = Prisma.AtLeast<{
|
|
id?: string
|
|
AND?: Prisma.CheckoutSessionStatusWhereInput | Prisma.CheckoutSessionStatusWhereInput[]
|
|
OR?: Prisma.CheckoutSessionStatusWhereInput[]
|
|
NOT?: Prisma.CheckoutSessionStatusWhereInput | Prisma.CheckoutSessionStatusWhereInput[]
|
|
createdAt?: Prisma.DateTimeFilter<"CheckoutSessionStatus"> | Date | string
|
|
updatedAt?: Prisma.DateTimeFilter<"CheckoutSessionStatus"> | Date | string
|
|
pending?: Prisma.BoolFilter<"CheckoutSessionStatus"> | boolean
|
|
email?: Prisma.StringFilter<"CheckoutSessionStatus"> | string
|
|
fromUrl?: Prisma.StringFilter<"CheckoutSessionStatus"> | string
|
|
fromUserId?: Prisma.StringNullableFilter<"CheckoutSessionStatus"> | string | null
|
|
fromTenantId?: Prisma.StringNullableFilter<"CheckoutSessionStatus"> | string | null
|
|
createdUserId?: Prisma.StringNullableFilter<"CheckoutSessionStatus"> | string | null
|
|
createdTenantId?: Prisma.StringNullableFilter<"CheckoutSessionStatus"> | string | null
|
|
}, "id">
|
|
|
|
export type CheckoutSessionStatusOrderByWithAggregationInput = {
|
|
createdAt?: Prisma.SortOrder
|
|
updatedAt?: Prisma.SortOrder
|
|
id?: Prisma.SortOrder
|
|
pending?: Prisma.SortOrder
|
|
email?: Prisma.SortOrder
|
|
fromUrl?: Prisma.SortOrder
|
|
fromUserId?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
fromTenantId?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
createdUserId?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
createdTenantId?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
_count?: Prisma.CheckoutSessionStatusCountOrderByAggregateInput
|
|
_max?: Prisma.CheckoutSessionStatusMaxOrderByAggregateInput
|
|
_min?: Prisma.CheckoutSessionStatusMinOrderByAggregateInput
|
|
}
|
|
|
|
export type CheckoutSessionStatusScalarWhereWithAggregatesInput = {
|
|
AND?: Prisma.CheckoutSessionStatusScalarWhereWithAggregatesInput | Prisma.CheckoutSessionStatusScalarWhereWithAggregatesInput[]
|
|
OR?: Prisma.CheckoutSessionStatusScalarWhereWithAggregatesInput[]
|
|
NOT?: Prisma.CheckoutSessionStatusScalarWhereWithAggregatesInput | Prisma.CheckoutSessionStatusScalarWhereWithAggregatesInput[]
|
|
createdAt?: Prisma.DateTimeWithAggregatesFilter<"CheckoutSessionStatus"> | Date | string
|
|
updatedAt?: Prisma.DateTimeWithAggregatesFilter<"CheckoutSessionStatus"> | Date | string
|
|
id?: Prisma.StringWithAggregatesFilter<"CheckoutSessionStatus"> | string
|
|
pending?: Prisma.BoolWithAggregatesFilter<"CheckoutSessionStatus"> | boolean
|
|
email?: Prisma.StringWithAggregatesFilter<"CheckoutSessionStatus"> | string
|
|
fromUrl?: Prisma.StringWithAggregatesFilter<"CheckoutSessionStatus"> | string
|
|
fromUserId?: Prisma.StringNullableWithAggregatesFilter<"CheckoutSessionStatus"> | string | null
|
|
fromTenantId?: Prisma.StringNullableWithAggregatesFilter<"CheckoutSessionStatus"> | string | null
|
|
createdUserId?: Prisma.StringNullableWithAggregatesFilter<"CheckoutSessionStatus"> | string | null
|
|
createdTenantId?: Prisma.StringNullableWithAggregatesFilter<"CheckoutSessionStatus"> | string | null
|
|
}
|
|
|
|
export type CheckoutSessionStatusCreateInput = {
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
id: string
|
|
pending?: boolean
|
|
email: string
|
|
fromUrl: string
|
|
fromUserId?: string | null
|
|
fromTenantId?: string | null
|
|
createdUserId?: string | null
|
|
createdTenantId?: string | null
|
|
}
|
|
|
|
export type CheckoutSessionStatusUncheckedCreateInput = {
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
id: string
|
|
pending?: boolean
|
|
email: string
|
|
fromUrl: string
|
|
fromUserId?: string | null
|
|
fromTenantId?: string | null
|
|
createdUserId?: string | null
|
|
createdTenantId?: string | null
|
|
}
|
|
|
|
export type CheckoutSessionStatusUpdateInput = {
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
pending?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
|
email?: Prisma.StringFieldUpdateOperationsInput | string
|
|
fromUrl?: Prisma.StringFieldUpdateOperationsInput | string
|
|
fromUserId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
fromTenantId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
createdUserId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
createdTenantId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
}
|
|
|
|
export type CheckoutSessionStatusUncheckedUpdateInput = {
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
pending?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
|
email?: Prisma.StringFieldUpdateOperationsInput | string
|
|
fromUrl?: Prisma.StringFieldUpdateOperationsInput | string
|
|
fromUserId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
fromTenantId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
createdUserId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
createdTenantId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
}
|
|
|
|
export type CheckoutSessionStatusCreateManyInput = {
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
id: string
|
|
pending?: boolean
|
|
email: string
|
|
fromUrl: string
|
|
fromUserId?: string | null
|
|
fromTenantId?: string | null
|
|
createdUserId?: string | null
|
|
createdTenantId?: string | null
|
|
}
|
|
|
|
export type CheckoutSessionStatusUpdateManyMutationInput = {
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
pending?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
|
email?: Prisma.StringFieldUpdateOperationsInput | string
|
|
fromUrl?: Prisma.StringFieldUpdateOperationsInput | string
|
|
fromUserId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
fromTenantId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
createdUserId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
createdTenantId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
}
|
|
|
|
export type CheckoutSessionStatusUncheckedUpdateManyInput = {
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
pending?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
|
email?: Prisma.StringFieldUpdateOperationsInput | string
|
|
fromUrl?: Prisma.StringFieldUpdateOperationsInput | string
|
|
fromUserId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
fromTenantId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
createdUserId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
createdTenantId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
}
|
|
|
|
export type CheckoutSessionStatusCountOrderByAggregateInput = {
|
|
createdAt?: Prisma.SortOrder
|
|
updatedAt?: Prisma.SortOrder
|
|
id?: Prisma.SortOrder
|
|
pending?: Prisma.SortOrder
|
|
email?: Prisma.SortOrder
|
|
fromUrl?: Prisma.SortOrder
|
|
fromUserId?: Prisma.SortOrder
|
|
fromTenantId?: Prisma.SortOrder
|
|
createdUserId?: Prisma.SortOrder
|
|
createdTenantId?: Prisma.SortOrder
|
|
}
|
|
|
|
export type CheckoutSessionStatusMaxOrderByAggregateInput = {
|
|
createdAt?: Prisma.SortOrder
|
|
updatedAt?: Prisma.SortOrder
|
|
id?: Prisma.SortOrder
|
|
pending?: Prisma.SortOrder
|
|
email?: Prisma.SortOrder
|
|
fromUrl?: Prisma.SortOrder
|
|
fromUserId?: Prisma.SortOrder
|
|
fromTenantId?: Prisma.SortOrder
|
|
createdUserId?: Prisma.SortOrder
|
|
createdTenantId?: Prisma.SortOrder
|
|
}
|
|
|
|
export type CheckoutSessionStatusMinOrderByAggregateInput = {
|
|
createdAt?: Prisma.SortOrder
|
|
updatedAt?: Prisma.SortOrder
|
|
id?: Prisma.SortOrder
|
|
pending?: Prisma.SortOrder
|
|
email?: Prisma.SortOrder
|
|
fromUrl?: Prisma.SortOrder
|
|
fromUserId?: Prisma.SortOrder
|
|
fromTenantId?: Prisma.SortOrder
|
|
createdUserId?: Prisma.SortOrder
|
|
createdTenantId?: Prisma.SortOrder
|
|
}
|
|
|
|
|
|
|
|
export type CheckoutSessionStatusSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
createdAt?: boolean
|
|
updatedAt?: boolean
|
|
id?: boolean
|
|
pending?: boolean
|
|
email?: boolean
|
|
fromUrl?: boolean
|
|
fromUserId?: boolean
|
|
fromTenantId?: boolean
|
|
createdUserId?: boolean
|
|
createdTenantId?: boolean
|
|
}, ExtArgs["result"]["checkoutSessionStatus"]>
|
|
|
|
export type CheckoutSessionStatusSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
createdAt?: boolean
|
|
updatedAt?: boolean
|
|
id?: boolean
|
|
pending?: boolean
|
|
email?: boolean
|
|
fromUrl?: boolean
|
|
fromUserId?: boolean
|
|
fromTenantId?: boolean
|
|
createdUserId?: boolean
|
|
createdTenantId?: boolean
|
|
}, ExtArgs["result"]["checkoutSessionStatus"]>
|
|
|
|
export type CheckoutSessionStatusSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
createdAt?: boolean
|
|
updatedAt?: boolean
|
|
id?: boolean
|
|
pending?: boolean
|
|
email?: boolean
|
|
fromUrl?: boolean
|
|
fromUserId?: boolean
|
|
fromTenantId?: boolean
|
|
createdUserId?: boolean
|
|
createdTenantId?: boolean
|
|
}, ExtArgs["result"]["checkoutSessionStatus"]>
|
|
|
|
export type CheckoutSessionStatusSelectScalar = {
|
|
createdAt?: boolean
|
|
updatedAt?: boolean
|
|
id?: boolean
|
|
pending?: boolean
|
|
email?: boolean
|
|
fromUrl?: boolean
|
|
fromUserId?: boolean
|
|
fromTenantId?: boolean
|
|
createdUserId?: boolean
|
|
createdTenantId?: boolean
|
|
}
|
|
|
|
export type CheckoutSessionStatusOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"createdAt" | "updatedAt" | "id" | "pending" | "email" | "fromUrl" | "fromUserId" | "fromTenantId" | "createdUserId" | "createdTenantId", ExtArgs["result"]["checkoutSessionStatus"]>
|
|
|
|
export type $CheckoutSessionStatusPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
name: "CheckoutSessionStatus"
|
|
objects: {}
|
|
scalars: runtime.Types.Extensions.GetPayloadResult<{
|
|
createdAt: Date
|
|
updatedAt: Date
|
|
id: string
|
|
pending: boolean
|
|
email: string
|
|
fromUrl: string
|
|
fromUserId: string | null
|
|
fromTenantId: string | null
|
|
createdUserId: string | null
|
|
createdTenantId: string | null
|
|
}, ExtArgs["result"]["checkoutSessionStatus"]>
|
|
composites: {}
|
|
}
|
|
|
|
export type CheckoutSessionStatusGetPayload<S extends boolean | null | undefined | CheckoutSessionStatusDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$CheckoutSessionStatusPayload, S>
|
|
|
|
export type CheckoutSessionStatusCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> =
|
|
Omit<CheckoutSessionStatusFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
|
|
select?: CheckoutSessionStatusCountAggregateInputType | true
|
|
}
|
|
|
|
export interface CheckoutSessionStatusDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
|
|
[K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['CheckoutSessionStatus'], meta: { name: 'CheckoutSessionStatus' } }
|
|
/**
|
|
* Find zero or one CheckoutSessionStatus that matches the filter.
|
|
* @param {CheckoutSessionStatusFindUniqueArgs} args - Arguments to find a CheckoutSessionStatus
|
|
* @example
|
|
* // Get one CheckoutSessionStatus
|
|
* const checkoutSessionStatus = await prisma.checkoutSessionStatus.findUnique({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findUnique<T extends CheckoutSessionStatusFindUniqueArgs>(args: Prisma.SelectSubset<T, CheckoutSessionStatusFindUniqueArgs<ExtArgs>>): Prisma.Prisma__CheckoutSessionStatusClient<runtime.Types.Result.GetResult<Prisma.$CheckoutSessionStatusPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Find one CheckoutSessionStatus that matches the filter or throw an error with `error.code='P2025'`
|
|
* if no matches were found.
|
|
* @param {CheckoutSessionStatusFindUniqueOrThrowArgs} args - Arguments to find a CheckoutSessionStatus
|
|
* @example
|
|
* // Get one CheckoutSessionStatus
|
|
* const checkoutSessionStatus = await prisma.checkoutSessionStatus.findUniqueOrThrow({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findUniqueOrThrow<T extends CheckoutSessionStatusFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, CheckoutSessionStatusFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__CheckoutSessionStatusClient<runtime.Types.Result.GetResult<Prisma.$CheckoutSessionStatusPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Find the first CheckoutSessionStatus 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 {CheckoutSessionStatusFindFirstArgs} args - Arguments to find a CheckoutSessionStatus
|
|
* @example
|
|
* // Get one CheckoutSessionStatus
|
|
* const checkoutSessionStatus = await prisma.checkoutSessionStatus.findFirst({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findFirst<T extends CheckoutSessionStatusFindFirstArgs>(args?: Prisma.SelectSubset<T, CheckoutSessionStatusFindFirstArgs<ExtArgs>>): Prisma.Prisma__CheckoutSessionStatusClient<runtime.Types.Result.GetResult<Prisma.$CheckoutSessionStatusPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Find the first CheckoutSessionStatus 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 {CheckoutSessionStatusFindFirstOrThrowArgs} args - Arguments to find a CheckoutSessionStatus
|
|
* @example
|
|
* // Get one CheckoutSessionStatus
|
|
* const checkoutSessionStatus = await prisma.checkoutSessionStatus.findFirstOrThrow({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findFirstOrThrow<T extends CheckoutSessionStatusFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, CheckoutSessionStatusFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__CheckoutSessionStatusClient<runtime.Types.Result.GetResult<Prisma.$CheckoutSessionStatusPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Find zero or more CheckoutSessionStatuses 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 {CheckoutSessionStatusFindManyArgs} args - Arguments to filter and select certain fields only.
|
|
* @example
|
|
* // Get all CheckoutSessionStatuses
|
|
* const checkoutSessionStatuses = await prisma.checkoutSessionStatus.findMany()
|
|
*
|
|
* // Get first 10 CheckoutSessionStatuses
|
|
* const checkoutSessionStatuses = await prisma.checkoutSessionStatus.findMany({ take: 10 })
|
|
*
|
|
* // Only select the `createdAt`
|
|
* const checkoutSessionStatusWithCreatedAtOnly = await prisma.checkoutSessionStatus.findMany({ select: { createdAt: true } })
|
|
*
|
|
*/
|
|
findMany<T extends CheckoutSessionStatusFindManyArgs>(args?: Prisma.SelectSubset<T, CheckoutSessionStatusFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$CheckoutSessionStatusPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
|
|
|
|
/**
|
|
* Create a CheckoutSessionStatus.
|
|
* @param {CheckoutSessionStatusCreateArgs} args - Arguments to create a CheckoutSessionStatus.
|
|
* @example
|
|
* // Create one CheckoutSessionStatus
|
|
* const CheckoutSessionStatus = await prisma.checkoutSessionStatus.create({
|
|
* data: {
|
|
* // ... data to create a CheckoutSessionStatus
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
create<T extends CheckoutSessionStatusCreateArgs>(args: Prisma.SelectSubset<T, CheckoutSessionStatusCreateArgs<ExtArgs>>): Prisma.Prisma__CheckoutSessionStatusClient<runtime.Types.Result.GetResult<Prisma.$CheckoutSessionStatusPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Create many CheckoutSessionStatuses.
|
|
* @param {CheckoutSessionStatusCreateManyArgs} args - Arguments to create many CheckoutSessionStatuses.
|
|
* @example
|
|
* // Create many CheckoutSessionStatuses
|
|
* const checkoutSessionStatus = await prisma.checkoutSessionStatus.createMany({
|
|
* data: [
|
|
* // ... provide data here
|
|
* ]
|
|
* })
|
|
*
|
|
*/
|
|
createMany<T extends CheckoutSessionStatusCreateManyArgs>(args?: Prisma.SelectSubset<T, CheckoutSessionStatusCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
|
|
|
/**
|
|
* Create many CheckoutSessionStatuses and returns the data saved in the database.
|
|
* @param {CheckoutSessionStatusCreateManyAndReturnArgs} args - Arguments to create many CheckoutSessionStatuses.
|
|
* @example
|
|
* // Create many CheckoutSessionStatuses
|
|
* const checkoutSessionStatus = await prisma.checkoutSessionStatus.createManyAndReturn({
|
|
* data: [
|
|
* // ... provide data here
|
|
* ]
|
|
* })
|
|
*
|
|
* // Create many CheckoutSessionStatuses and only return the `createdAt`
|
|
* const checkoutSessionStatusWithCreatedAtOnly = await prisma.checkoutSessionStatus.createManyAndReturn({
|
|
* select: { createdAt: true },
|
|
* data: [
|
|
* // ... provide data here
|
|
* ]
|
|
* })
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
*
|
|
*/
|
|
createManyAndReturn<T extends CheckoutSessionStatusCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, CheckoutSessionStatusCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$CheckoutSessionStatusPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>
|
|
|
|
/**
|
|
* Delete a CheckoutSessionStatus.
|
|
* @param {CheckoutSessionStatusDeleteArgs} args - Arguments to delete one CheckoutSessionStatus.
|
|
* @example
|
|
* // Delete one CheckoutSessionStatus
|
|
* const CheckoutSessionStatus = await prisma.checkoutSessionStatus.delete({
|
|
* where: {
|
|
* // ... filter to delete one CheckoutSessionStatus
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
delete<T extends CheckoutSessionStatusDeleteArgs>(args: Prisma.SelectSubset<T, CheckoutSessionStatusDeleteArgs<ExtArgs>>): Prisma.Prisma__CheckoutSessionStatusClient<runtime.Types.Result.GetResult<Prisma.$CheckoutSessionStatusPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Update one CheckoutSessionStatus.
|
|
* @param {CheckoutSessionStatusUpdateArgs} args - Arguments to update one CheckoutSessionStatus.
|
|
* @example
|
|
* // Update one CheckoutSessionStatus
|
|
* const checkoutSessionStatus = await prisma.checkoutSessionStatus.update({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* },
|
|
* data: {
|
|
* // ... provide data here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
update<T extends CheckoutSessionStatusUpdateArgs>(args: Prisma.SelectSubset<T, CheckoutSessionStatusUpdateArgs<ExtArgs>>): Prisma.Prisma__CheckoutSessionStatusClient<runtime.Types.Result.GetResult<Prisma.$CheckoutSessionStatusPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Delete zero or more CheckoutSessionStatuses.
|
|
* @param {CheckoutSessionStatusDeleteManyArgs} args - Arguments to filter CheckoutSessionStatuses to delete.
|
|
* @example
|
|
* // Delete a few CheckoutSessionStatuses
|
|
* const { count } = await prisma.checkoutSessionStatus.deleteMany({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
deleteMany<T extends CheckoutSessionStatusDeleteManyArgs>(args?: Prisma.SelectSubset<T, CheckoutSessionStatusDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
|
|
|
/**
|
|
* Update zero or more CheckoutSessionStatuses.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {CheckoutSessionStatusUpdateManyArgs} args - Arguments to update one or more rows.
|
|
* @example
|
|
* // Update many CheckoutSessionStatuses
|
|
* const checkoutSessionStatus = await prisma.checkoutSessionStatus.updateMany({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* },
|
|
* data: {
|
|
* // ... provide data here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
updateMany<T extends CheckoutSessionStatusUpdateManyArgs>(args: Prisma.SelectSubset<T, CheckoutSessionStatusUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
|
|
|
/**
|
|
* Update zero or more CheckoutSessionStatuses and returns the data updated in the database.
|
|
* @param {CheckoutSessionStatusUpdateManyAndReturnArgs} args - Arguments to update many CheckoutSessionStatuses.
|
|
* @example
|
|
* // Update many CheckoutSessionStatuses
|
|
* const checkoutSessionStatus = await prisma.checkoutSessionStatus.updateManyAndReturn({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* },
|
|
* data: [
|
|
* // ... provide data here
|
|
* ]
|
|
* })
|
|
*
|
|
* // Update zero or more CheckoutSessionStatuses and only return the `createdAt`
|
|
* const checkoutSessionStatusWithCreatedAtOnly = await prisma.checkoutSessionStatus.updateManyAndReturn({
|
|
* select: { createdAt: true },
|
|
* where: {
|
|
* // ... provide filter here
|
|
* },
|
|
* data: [
|
|
* // ... provide data here
|
|
* ]
|
|
* })
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
*
|
|
*/
|
|
updateManyAndReturn<T extends CheckoutSessionStatusUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, CheckoutSessionStatusUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$CheckoutSessionStatusPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>
|
|
|
|
/**
|
|
* Create or update one CheckoutSessionStatus.
|
|
* @param {CheckoutSessionStatusUpsertArgs} args - Arguments to update or create a CheckoutSessionStatus.
|
|
* @example
|
|
* // Update or create a CheckoutSessionStatus
|
|
* const checkoutSessionStatus = await prisma.checkoutSessionStatus.upsert({
|
|
* create: {
|
|
* // ... data to create a CheckoutSessionStatus
|
|
* },
|
|
* update: {
|
|
* // ... in case it already exists, update
|
|
* },
|
|
* where: {
|
|
* // ... the filter for the CheckoutSessionStatus we want to update
|
|
* }
|
|
* })
|
|
*/
|
|
upsert<T extends CheckoutSessionStatusUpsertArgs>(args: Prisma.SelectSubset<T, CheckoutSessionStatusUpsertArgs<ExtArgs>>): Prisma.Prisma__CheckoutSessionStatusClient<runtime.Types.Result.GetResult<Prisma.$CheckoutSessionStatusPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
|
|
/**
|
|
* Count the number of CheckoutSessionStatuses.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {CheckoutSessionStatusCountArgs} args - Arguments to filter CheckoutSessionStatuses to count.
|
|
* @example
|
|
* // Count the number of CheckoutSessionStatuses
|
|
* const count = await prisma.checkoutSessionStatus.count({
|
|
* where: {
|
|
* // ... the filter for the CheckoutSessionStatuses we want to count
|
|
* }
|
|
* })
|
|
**/
|
|
count<T extends CheckoutSessionStatusCountArgs>(
|
|
args?: Prisma.Subset<T, CheckoutSessionStatusCountArgs>,
|
|
): Prisma.PrismaPromise<
|
|
T extends runtime.Types.Utils.Record<'select', any>
|
|
? T['select'] extends true
|
|
? number
|
|
: Prisma.GetScalarType<T['select'], CheckoutSessionStatusCountAggregateOutputType>
|
|
: number
|
|
>
|
|
|
|
/**
|
|
* Allows you to perform aggregations operations on a CheckoutSessionStatus.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {CheckoutSessionStatusAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
|
|
* @example
|
|
* // Ordered by age ascending
|
|
* // Where email contains prisma.io
|
|
* // Limited to the 10 users
|
|
* const aggregations = await prisma.user.aggregate({
|
|
* _avg: {
|
|
* age: true,
|
|
* },
|
|
* where: {
|
|
* email: {
|
|
* contains: "prisma.io",
|
|
* },
|
|
* },
|
|
* orderBy: {
|
|
* age: "asc",
|
|
* },
|
|
* take: 10,
|
|
* })
|
|
**/
|
|
aggregate<T extends CheckoutSessionStatusAggregateArgs>(args: Prisma.Subset<T, CheckoutSessionStatusAggregateArgs>): Prisma.PrismaPromise<GetCheckoutSessionStatusAggregateType<T>>
|
|
|
|
/**
|
|
* Group by CheckoutSessionStatus.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {CheckoutSessionStatusGroupByArgs} 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 CheckoutSessionStatusGroupByArgs,
|
|
HasSelectOrTake extends Prisma.Or<
|
|
Prisma.Extends<'skip', Prisma.Keys<T>>,
|
|
Prisma.Extends<'take', Prisma.Keys<T>>
|
|
>,
|
|
OrderByArg extends Prisma.True extends HasSelectOrTake
|
|
? { orderBy: CheckoutSessionStatusGroupByArgs['orderBy'] }
|
|
: { orderBy?: CheckoutSessionStatusGroupByArgs['orderBy'] },
|
|
OrderFields extends Prisma.ExcludeUnderscoreKeys<Prisma.Keys<Prisma.MaybeTupleToUnion<T['orderBy']>>>,
|
|
ByFields extends Prisma.MaybeTupleToUnion<T['by']>,
|
|
ByValid extends Prisma.Has<ByFields, OrderFields>,
|
|
HavingFields extends Prisma.GetHavingFields<T['having']>,
|
|
HavingValid extends Prisma.Has<ByFields, HavingFields>,
|
|
ByEmpty extends T['by'] extends never[] ? Prisma.True : Prisma.False,
|
|
InputErrors extends ByEmpty extends Prisma.True
|
|
? `Error: "by" must not be empty.`
|
|
: HavingValid extends Prisma.False
|
|
? {
|
|
[P in HavingFields]: P extends ByFields
|
|
? never
|
|
: P extends string
|
|
? `Error: Field "${P}" used in "having" needs to be provided in "by".`
|
|
: [
|
|
Error,
|
|
'Field ',
|
|
P,
|
|
` in "having" needs to be provided in "by"`,
|
|
]
|
|
}[HavingFields]
|
|
: 'take' extends Prisma.Keys<T>
|
|
? 'orderBy' extends Prisma.Keys<T>
|
|
? ByValid extends Prisma.True
|
|
? {}
|
|
: {
|
|
[P in OrderFields]: P extends ByFields
|
|
? never
|
|
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
|
|
}[OrderFields]
|
|
: 'Error: If you provide "take", you also need to provide "orderBy"'
|
|
: 'skip' extends Prisma.Keys<T>
|
|
? 'orderBy' extends Prisma.Keys<T>
|
|
? ByValid extends Prisma.True
|
|
? {}
|
|
: {
|
|
[P in OrderFields]: P extends ByFields
|
|
? never
|
|
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
|
|
}[OrderFields]
|
|
: 'Error: If you provide "skip", you also need to provide "orderBy"'
|
|
: ByValid extends Prisma.True
|
|
? {}
|
|
: {
|
|
[P in OrderFields]: P extends ByFields
|
|
? never
|
|
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
|
|
}[OrderFields]
|
|
>(args: Prisma.SubsetIntersection<T, CheckoutSessionStatusGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetCheckoutSessionStatusGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
|
|
/**
|
|
* Fields of the CheckoutSessionStatus model
|
|
*/
|
|
readonly fields: CheckoutSessionStatusFieldRefs;
|
|
}
|
|
|
|
/**
|
|
* The delegate class that acts as a "Promise-like" for CheckoutSessionStatus.
|
|
* 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__CheckoutSessionStatusClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
|
|
readonly [Symbol.toStringTag]: "PrismaPromise"
|
|
/**
|
|
* Attaches callbacks for the resolution and/or rejection of the Promise.
|
|
* @param onfulfilled The callback to execute when the Promise is resolved.
|
|
* @param onrejected The callback to execute when the Promise is rejected.
|
|
* @returns A Promise for the completion of which ever callback is executed.
|
|
*/
|
|
then<TResult1 = T, TResult2 = never>(onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined | null): runtime.Types.Utils.JsPromise<TResult1 | TResult2>
|
|
/**
|
|
* Attaches a callback for only the rejection of the Promise.
|
|
* @param onrejected The callback to execute when the Promise is rejected.
|
|
* @returns A Promise for the completion of the callback.
|
|
*/
|
|
catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): runtime.Types.Utils.JsPromise<T | TResult>
|
|
/**
|
|
* Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
|
|
* resolved value cannot be modified from the callback.
|
|
* @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
|
|
* @returns A Promise for the completion of the callback.
|
|
*/
|
|
finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise<T>
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
* Fields of the CheckoutSessionStatus model
|
|
*/
|
|
export interface CheckoutSessionStatusFieldRefs {
|
|
readonly createdAt: Prisma.FieldRef<"CheckoutSessionStatus", 'DateTime'>
|
|
readonly updatedAt: Prisma.FieldRef<"CheckoutSessionStatus", 'DateTime'>
|
|
readonly id: Prisma.FieldRef<"CheckoutSessionStatus", 'String'>
|
|
readonly pending: Prisma.FieldRef<"CheckoutSessionStatus", 'Boolean'>
|
|
readonly email: Prisma.FieldRef<"CheckoutSessionStatus", 'String'>
|
|
readonly fromUrl: Prisma.FieldRef<"CheckoutSessionStatus", 'String'>
|
|
readonly fromUserId: Prisma.FieldRef<"CheckoutSessionStatus", 'String'>
|
|
readonly fromTenantId: Prisma.FieldRef<"CheckoutSessionStatus", 'String'>
|
|
readonly createdUserId: Prisma.FieldRef<"CheckoutSessionStatus", 'String'>
|
|
readonly createdTenantId: Prisma.FieldRef<"CheckoutSessionStatus", 'String'>
|
|
}
|
|
|
|
|
|
// Custom InputTypes
|
|
/**
|
|
* CheckoutSessionStatus findUnique
|
|
*/
|
|
export type CheckoutSessionStatusFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the CheckoutSessionStatus
|
|
*/
|
|
select?: Prisma.CheckoutSessionStatusSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the CheckoutSessionStatus
|
|
*/
|
|
omit?: Prisma.CheckoutSessionStatusOmit<ExtArgs> | null
|
|
/**
|
|
* Filter, which CheckoutSessionStatus to fetch.
|
|
*/
|
|
where: Prisma.CheckoutSessionStatusWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* CheckoutSessionStatus findUniqueOrThrow
|
|
*/
|
|
export type CheckoutSessionStatusFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the CheckoutSessionStatus
|
|
*/
|
|
select?: Prisma.CheckoutSessionStatusSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the CheckoutSessionStatus
|
|
*/
|
|
omit?: Prisma.CheckoutSessionStatusOmit<ExtArgs> | null
|
|
/**
|
|
* Filter, which CheckoutSessionStatus to fetch.
|
|
*/
|
|
where: Prisma.CheckoutSessionStatusWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* CheckoutSessionStatus findFirst
|
|
*/
|
|
export type CheckoutSessionStatusFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the CheckoutSessionStatus
|
|
*/
|
|
select?: Prisma.CheckoutSessionStatusSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the CheckoutSessionStatus
|
|
*/
|
|
omit?: Prisma.CheckoutSessionStatusOmit<ExtArgs> | null
|
|
/**
|
|
* Filter, which CheckoutSessionStatus to fetch.
|
|
*/
|
|
where?: Prisma.CheckoutSessionStatusWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of CheckoutSessionStatuses to fetch.
|
|
*/
|
|
orderBy?: Prisma.CheckoutSessionStatusOrderByWithRelationInput | Prisma.CheckoutSessionStatusOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for searching for CheckoutSessionStatuses.
|
|
*/
|
|
cursor?: Prisma.CheckoutSessionStatusWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` CheckoutSessionStatuses 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` CheckoutSessionStatuses.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
*
|
|
* Filter by unique combinations of CheckoutSessionStatuses.
|
|
*/
|
|
distinct?: Prisma.CheckoutSessionStatusScalarFieldEnum | Prisma.CheckoutSessionStatusScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* CheckoutSessionStatus findFirstOrThrow
|
|
*/
|
|
export type CheckoutSessionStatusFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the CheckoutSessionStatus
|
|
*/
|
|
select?: Prisma.CheckoutSessionStatusSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the CheckoutSessionStatus
|
|
*/
|
|
omit?: Prisma.CheckoutSessionStatusOmit<ExtArgs> | null
|
|
/**
|
|
* Filter, which CheckoutSessionStatus to fetch.
|
|
*/
|
|
where?: Prisma.CheckoutSessionStatusWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of CheckoutSessionStatuses to fetch.
|
|
*/
|
|
orderBy?: Prisma.CheckoutSessionStatusOrderByWithRelationInput | Prisma.CheckoutSessionStatusOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for searching for CheckoutSessionStatuses.
|
|
*/
|
|
cursor?: Prisma.CheckoutSessionStatusWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` CheckoutSessionStatuses 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` CheckoutSessionStatuses.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
*
|
|
* Filter by unique combinations of CheckoutSessionStatuses.
|
|
*/
|
|
distinct?: Prisma.CheckoutSessionStatusScalarFieldEnum | Prisma.CheckoutSessionStatusScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* CheckoutSessionStatus findMany
|
|
*/
|
|
export type CheckoutSessionStatusFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the CheckoutSessionStatus
|
|
*/
|
|
select?: Prisma.CheckoutSessionStatusSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the CheckoutSessionStatus
|
|
*/
|
|
omit?: Prisma.CheckoutSessionStatusOmit<ExtArgs> | null
|
|
/**
|
|
* Filter, which CheckoutSessionStatuses to fetch.
|
|
*/
|
|
where?: Prisma.CheckoutSessionStatusWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of CheckoutSessionStatuses to fetch.
|
|
*/
|
|
orderBy?: Prisma.CheckoutSessionStatusOrderByWithRelationInput | Prisma.CheckoutSessionStatusOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for listing CheckoutSessionStatuses.
|
|
*/
|
|
cursor?: Prisma.CheckoutSessionStatusWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` CheckoutSessionStatuses 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` CheckoutSessionStatuses.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
*
|
|
* Filter by unique combinations of CheckoutSessionStatuses.
|
|
*/
|
|
distinct?: Prisma.CheckoutSessionStatusScalarFieldEnum | Prisma.CheckoutSessionStatusScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* CheckoutSessionStatus create
|
|
*/
|
|
export type CheckoutSessionStatusCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the CheckoutSessionStatus
|
|
*/
|
|
select?: Prisma.CheckoutSessionStatusSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the CheckoutSessionStatus
|
|
*/
|
|
omit?: Prisma.CheckoutSessionStatusOmit<ExtArgs> | null
|
|
/**
|
|
* The data needed to create a CheckoutSessionStatus.
|
|
*/
|
|
data: Prisma.XOR<Prisma.CheckoutSessionStatusCreateInput, Prisma.CheckoutSessionStatusUncheckedCreateInput>
|
|
}
|
|
|
|
/**
|
|
* CheckoutSessionStatus createMany
|
|
*/
|
|
export type CheckoutSessionStatusCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* The data used to create many CheckoutSessionStatuses.
|
|
*/
|
|
data: Prisma.CheckoutSessionStatusCreateManyInput | Prisma.CheckoutSessionStatusCreateManyInput[]
|
|
skipDuplicates?: boolean
|
|
}
|
|
|
|
/**
|
|
* CheckoutSessionStatus createManyAndReturn
|
|
*/
|
|
export type CheckoutSessionStatusCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the CheckoutSessionStatus
|
|
*/
|
|
select?: Prisma.CheckoutSessionStatusSelectCreateManyAndReturn<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the CheckoutSessionStatus
|
|
*/
|
|
omit?: Prisma.CheckoutSessionStatusOmit<ExtArgs> | null
|
|
/**
|
|
* The data used to create many CheckoutSessionStatuses.
|
|
*/
|
|
data: Prisma.CheckoutSessionStatusCreateManyInput | Prisma.CheckoutSessionStatusCreateManyInput[]
|
|
skipDuplicates?: boolean
|
|
}
|
|
|
|
/**
|
|
* CheckoutSessionStatus update
|
|
*/
|
|
export type CheckoutSessionStatusUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the CheckoutSessionStatus
|
|
*/
|
|
select?: Prisma.CheckoutSessionStatusSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the CheckoutSessionStatus
|
|
*/
|
|
omit?: Prisma.CheckoutSessionStatusOmit<ExtArgs> | null
|
|
/**
|
|
* The data needed to update a CheckoutSessionStatus.
|
|
*/
|
|
data: Prisma.XOR<Prisma.CheckoutSessionStatusUpdateInput, Prisma.CheckoutSessionStatusUncheckedUpdateInput>
|
|
/**
|
|
* Choose, which CheckoutSessionStatus to update.
|
|
*/
|
|
where: Prisma.CheckoutSessionStatusWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* CheckoutSessionStatus updateMany
|
|
*/
|
|
export type CheckoutSessionStatusUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* The data used to update CheckoutSessionStatuses.
|
|
*/
|
|
data: Prisma.XOR<Prisma.CheckoutSessionStatusUpdateManyMutationInput, Prisma.CheckoutSessionStatusUncheckedUpdateManyInput>
|
|
/**
|
|
* Filter which CheckoutSessionStatuses to update
|
|
*/
|
|
where?: Prisma.CheckoutSessionStatusWhereInput
|
|
/**
|
|
* Limit how many CheckoutSessionStatuses to update.
|
|
*/
|
|
limit?: number
|
|
}
|
|
|
|
/**
|
|
* CheckoutSessionStatus updateManyAndReturn
|
|
*/
|
|
export type CheckoutSessionStatusUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the CheckoutSessionStatus
|
|
*/
|
|
select?: Prisma.CheckoutSessionStatusSelectUpdateManyAndReturn<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the CheckoutSessionStatus
|
|
*/
|
|
omit?: Prisma.CheckoutSessionStatusOmit<ExtArgs> | null
|
|
/**
|
|
* The data used to update CheckoutSessionStatuses.
|
|
*/
|
|
data: Prisma.XOR<Prisma.CheckoutSessionStatusUpdateManyMutationInput, Prisma.CheckoutSessionStatusUncheckedUpdateManyInput>
|
|
/**
|
|
* Filter which CheckoutSessionStatuses to update
|
|
*/
|
|
where?: Prisma.CheckoutSessionStatusWhereInput
|
|
/**
|
|
* Limit how many CheckoutSessionStatuses to update.
|
|
*/
|
|
limit?: number
|
|
}
|
|
|
|
/**
|
|
* CheckoutSessionStatus upsert
|
|
*/
|
|
export type CheckoutSessionStatusUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the CheckoutSessionStatus
|
|
*/
|
|
select?: Prisma.CheckoutSessionStatusSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the CheckoutSessionStatus
|
|
*/
|
|
omit?: Prisma.CheckoutSessionStatusOmit<ExtArgs> | null
|
|
/**
|
|
* The filter to search for the CheckoutSessionStatus to update in case it exists.
|
|
*/
|
|
where: Prisma.CheckoutSessionStatusWhereUniqueInput
|
|
/**
|
|
* In case the CheckoutSessionStatus found by the `where` argument doesn't exist, create a new CheckoutSessionStatus with this data.
|
|
*/
|
|
create: Prisma.XOR<Prisma.CheckoutSessionStatusCreateInput, Prisma.CheckoutSessionStatusUncheckedCreateInput>
|
|
/**
|
|
* In case the CheckoutSessionStatus was found with the provided `where` argument, update it with this data.
|
|
*/
|
|
update: Prisma.XOR<Prisma.CheckoutSessionStatusUpdateInput, Prisma.CheckoutSessionStatusUncheckedUpdateInput>
|
|
}
|
|
|
|
/**
|
|
* CheckoutSessionStatus delete
|
|
*/
|
|
export type CheckoutSessionStatusDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the CheckoutSessionStatus
|
|
*/
|
|
select?: Prisma.CheckoutSessionStatusSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the CheckoutSessionStatus
|
|
*/
|
|
omit?: Prisma.CheckoutSessionStatusOmit<ExtArgs> | null
|
|
/**
|
|
* Filter which CheckoutSessionStatus to delete.
|
|
*/
|
|
where: Prisma.CheckoutSessionStatusWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* CheckoutSessionStatus deleteMany
|
|
*/
|
|
export type CheckoutSessionStatusDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Filter which CheckoutSessionStatuses to delete
|
|
*/
|
|
where?: Prisma.CheckoutSessionStatusWhereInput
|
|
/**
|
|
* Limit how many CheckoutSessionStatuses to delete.
|
|
*/
|
|
limit?: number
|
|
}
|
|
|
|
/**
|
|
* CheckoutSessionStatus without action
|
|
*/
|
|
export type CheckoutSessionStatusDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the CheckoutSessionStatus
|
|
*/
|
|
select?: Prisma.CheckoutSessionStatusSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the CheckoutSessionStatus
|
|
*/
|
|
omit?: Prisma.CheckoutSessionStatusOmit<ExtArgs> | null
|
|
}
|