mirror of
https://github.com/shumaiOne/shumai.git
synced 2026-11-24 23:29:43 +00:00
1575 lines
48 KiB
TypeScript
1575 lines
48 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 `Sandbox` model and its related types.
|
|
*
|
|
* 🟢 You can import this file directly.
|
|
*/
|
|
|
|
import type * as PJTG from '../pjtg'
|
|
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 Sandbox
|
|
*
|
|
*/
|
|
export type SandboxModel = runtime.Types.Result.DefaultSelection<Prisma.$SandboxPayload>
|
|
|
|
export type AggregateSandbox = {
|
|
_count: SandboxCountAggregateOutputType | null
|
|
_min: SandboxMinAggregateOutputType | null
|
|
_max: SandboxMaxAggregateOutputType | null
|
|
}
|
|
|
|
export type SandboxMinAggregateOutputType = {
|
|
id: string | null
|
|
createdAt: Date | null
|
|
updatedAt: Date | null
|
|
teamId: string | null
|
|
}
|
|
|
|
export type SandboxMaxAggregateOutputType = {
|
|
id: string | null
|
|
createdAt: Date | null
|
|
updatedAt: Date | null
|
|
teamId: string | null
|
|
}
|
|
|
|
export type SandboxCountAggregateOutputType = {
|
|
id: number
|
|
allowedDomains: number
|
|
pendingDomains: number
|
|
createdAt: number
|
|
updatedAt: number
|
|
teamId: number
|
|
_all: number
|
|
}
|
|
|
|
export type SandboxMinAggregateInputType = {
|
|
id?: true
|
|
createdAt?: true
|
|
updatedAt?: true
|
|
teamId?: true
|
|
}
|
|
|
|
export type SandboxMaxAggregateInputType = {
|
|
id?: true
|
|
createdAt?: true
|
|
updatedAt?: true
|
|
teamId?: true
|
|
}
|
|
|
|
export type SandboxCountAggregateInputType = {
|
|
id?: true
|
|
allowedDomains?: true
|
|
pendingDomains?: true
|
|
createdAt?: true
|
|
updatedAt?: true
|
|
teamId?: true
|
|
_all?: true
|
|
}
|
|
|
|
export type SandboxAggregateArgs<
|
|
ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs,
|
|
> = {
|
|
/**
|
|
* Filter which Sandbox to aggregate.
|
|
*/
|
|
where?: Prisma.SandboxWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of Sandboxes to fetch.
|
|
*/
|
|
orderBy?: Prisma.SandboxOrderByWithRelationInput | Prisma.SandboxOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the start position
|
|
*/
|
|
cursor?: Prisma.SandboxWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` Sandboxes 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` Sandboxes.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Count returned Sandboxes
|
|
**/
|
|
_count?: true | SandboxCountAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to find the minimum value
|
|
**/
|
|
_min?: SandboxMinAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to find the maximum value
|
|
**/
|
|
_max?: SandboxMaxAggregateInputType
|
|
}
|
|
|
|
export type GetSandboxAggregateType<T extends SandboxAggregateArgs> = {
|
|
[P in keyof T & keyof AggregateSandbox]: P extends '_count' | 'count'
|
|
? T[P] extends true
|
|
? number
|
|
: Prisma.GetScalarType<T[P], AggregateSandbox[P]>
|
|
: Prisma.GetScalarType<T[P], AggregateSandbox[P]>
|
|
}
|
|
|
|
export type SandboxGroupByArgs<
|
|
ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs,
|
|
> = {
|
|
where?: Prisma.SandboxWhereInput
|
|
orderBy?: Prisma.SandboxOrderByWithAggregationInput | Prisma.SandboxOrderByWithAggregationInput[]
|
|
by: Prisma.SandboxScalarFieldEnum[] | Prisma.SandboxScalarFieldEnum
|
|
having?: Prisma.SandboxScalarWhereWithAggregatesInput
|
|
take?: number
|
|
skip?: number
|
|
_count?: SandboxCountAggregateInputType | true
|
|
_min?: SandboxMinAggregateInputType
|
|
_max?: SandboxMaxAggregateInputType
|
|
}
|
|
|
|
export type SandboxGroupByOutputType = {
|
|
id: string
|
|
allowedDomains: string[]
|
|
pendingDomains: string[]
|
|
createdAt: Date
|
|
updatedAt: Date
|
|
teamId: string
|
|
_count: SandboxCountAggregateOutputType | null
|
|
_min: SandboxMinAggregateOutputType | null
|
|
_max: SandboxMaxAggregateOutputType | null
|
|
}
|
|
|
|
export type GetSandboxGroupByPayload<T extends SandboxGroupByArgs> = Prisma.PrismaPromise<
|
|
Array<
|
|
Prisma.PickEnumerable<SandboxGroupByOutputType, T['by']> & {
|
|
[P in keyof T & keyof SandboxGroupByOutputType]: P extends '_count'
|
|
? T[P] extends boolean
|
|
? number
|
|
: Prisma.GetScalarType<T[P], SandboxGroupByOutputType[P]>
|
|
: Prisma.GetScalarType<T[P], SandboxGroupByOutputType[P]>
|
|
}
|
|
>
|
|
>
|
|
|
|
export type SandboxWhereInput = {
|
|
AND?: Prisma.SandboxWhereInput | Prisma.SandboxWhereInput[]
|
|
OR?: Prisma.SandboxWhereInput[]
|
|
NOT?: Prisma.SandboxWhereInput | Prisma.SandboxWhereInput[]
|
|
id?: Prisma.StringFilter<'Sandbox'> | string
|
|
allowedDomains?: Prisma.StringNullableListFilter<'Sandbox'>
|
|
pendingDomains?: Prisma.StringNullableListFilter<'Sandbox'>
|
|
createdAt?: Prisma.DateTimeFilter<'Sandbox'> | Date | string
|
|
updatedAt?: Prisma.DateTimeFilter<'Sandbox'> | Date | string
|
|
teamId?: Prisma.StringFilter<'Sandbox'> | string
|
|
team?: Prisma.XOR<Prisma.TeamScalarRelationFilter, Prisma.TeamWhereInput>
|
|
}
|
|
|
|
export type SandboxOrderByWithRelationInput = {
|
|
id?: Prisma.SortOrder
|
|
allowedDomains?: Prisma.SortOrder
|
|
pendingDomains?: Prisma.SortOrder
|
|
createdAt?: Prisma.SortOrder
|
|
updatedAt?: Prisma.SortOrder
|
|
teamId?: Prisma.SortOrder
|
|
team?: Prisma.TeamOrderByWithRelationInput
|
|
}
|
|
|
|
export type SandboxWhereUniqueInput = Prisma.AtLeast<
|
|
{
|
|
id?: string
|
|
teamId?: string
|
|
AND?: Prisma.SandboxWhereInput | Prisma.SandboxWhereInput[]
|
|
OR?: Prisma.SandboxWhereInput[]
|
|
NOT?: Prisma.SandboxWhereInput | Prisma.SandboxWhereInput[]
|
|
allowedDomains?: Prisma.StringNullableListFilter<'Sandbox'>
|
|
pendingDomains?: Prisma.StringNullableListFilter<'Sandbox'>
|
|
createdAt?: Prisma.DateTimeFilter<'Sandbox'> | Date | string
|
|
updatedAt?: Prisma.DateTimeFilter<'Sandbox'> | Date | string
|
|
team?: Prisma.XOR<Prisma.TeamScalarRelationFilter, Prisma.TeamWhereInput>
|
|
},
|
|
'id' | 'teamId'
|
|
>
|
|
|
|
export type SandboxOrderByWithAggregationInput = {
|
|
id?: Prisma.SortOrder
|
|
allowedDomains?: Prisma.SortOrder
|
|
pendingDomains?: Prisma.SortOrder
|
|
createdAt?: Prisma.SortOrder
|
|
updatedAt?: Prisma.SortOrder
|
|
teamId?: Prisma.SortOrder
|
|
_count?: Prisma.SandboxCountOrderByAggregateInput
|
|
_max?: Prisma.SandboxMaxOrderByAggregateInput
|
|
_min?: Prisma.SandboxMinOrderByAggregateInput
|
|
}
|
|
|
|
export type SandboxScalarWhereWithAggregatesInput = {
|
|
AND?:
|
|
| Prisma.SandboxScalarWhereWithAggregatesInput
|
|
| Prisma.SandboxScalarWhereWithAggregatesInput[]
|
|
OR?: Prisma.SandboxScalarWhereWithAggregatesInput[]
|
|
NOT?:
|
|
| Prisma.SandboxScalarWhereWithAggregatesInput
|
|
| Prisma.SandboxScalarWhereWithAggregatesInput[]
|
|
id?: Prisma.StringWithAggregatesFilter<'Sandbox'> | string
|
|
allowedDomains?: Prisma.StringNullableListFilter<'Sandbox'>
|
|
pendingDomains?: Prisma.StringNullableListFilter<'Sandbox'>
|
|
createdAt?: Prisma.DateTimeWithAggregatesFilter<'Sandbox'> | Date | string
|
|
updatedAt?: Prisma.DateTimeWithAggregatesFilter<'Sandbox'> | Date | string
|
|
teamId?: Prisma.StringWithAggregatesFilter<'Sandbox'> | string
|
|
}
|
|
|
|
export type SandboxCreateInput = {
|
|
id?: string
|
|
allowedDomains?: Prisma.SandboxCreateallowedDomainsInput | string[]
|
|
pendingDomains?: Prisma.SandboxCreatependingDomainsInput | string[]
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
team: Prisma.TeamCreateNestedOneWithoutSandboxInput
|
|
}
|
|
|
|
export type SandboxUncheckedCreateInput = {
|
|
id?: string
|
|
allowedDomains?: Prisma.SandboxCreateallowedDomainsInput | string[]
|
|
pendingDomains?: Prisma.SandboxCreatependingDomainsInput | string[]
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
teamId: string
|
|
}
|
|
|
|
export type SandboxUpdateInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
allowedDomains?: Prisma.SandboxUpdateallowedDomainsInput | string[]
|
|
pendingDomains?: Prisma.SandboxUpdatependingDomainsInput | string[]
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
team?: Prisma.TeamUpdateOneRequiredWithoutSandboxNestedInput
|
|
}
|
|
|
|
export type SandboxUncheckedUpdateInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
allowedDomains?: Prisma.SandboxUpdateallowedDomainsInput | string[]
|
|
pendingDomains?: Prisma.SandboxUpdatependingDomainsInput | string[]
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
teamId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
}
|
|
|
|
export type SandboxCreateManyInput = {
|
|
id?: string
|
|
allowedDomains?: Prisma.SandboxCreateallowedDomainsInput | string[]
|
|
pendingDomains?: Prisma.SandboxCreatependingDomainsInput | string[]
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
teamId: string
|
|
}
|
|
|
|
export type SandboxUpdateManyMutationInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
allowedDomains?: Prisma.SandboxUpdateallowedDomainsInput | string[]
|
|
pendingDomains?: Prisma.SandboxUpdatependingDomainsInput | string[]
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
}
|
|
|
|
export type SandboxUncheckedUpdateManyInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
allowedDomains?: Prisma.SandboxUpdateallowedDomainsInput | string[]
|
|
pendingDomains?: Prisma.SandboxUpdatependingDomainsInput | string[]
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
teamId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
}
|
|
|
|
export type SandboxNullableScalarRelationFilter = {
|
|
is?: Prisma.SandboxWhereInput | null
|
|
isNot?: Prisma.SandboxWhereInput | null
|
|
}
|
|
|
|
export type StringNullableListFilter<$PrismaModel = never> = {
|
|
equals?: string[] | Prisma.ListStringFieldRefInput<$PrismaModel> | null
|
|
has?: string | Prisma.StringFieldRefInput<$PrismaModel> | null
|
|
hasEvery?: string[] | Prisma.ListStringFieldRefInput<$PrismaModel>
|
|
hasSome?: string[] | Prisma.ListStringFieldRefInput<$PrismaModel>
|
|
isEmpty?: boolean
|
|
}
|
|
|
|
export type SandboxCountOrderByAggregateInput = {
|
|
id?: Prisma.SortOrder
|
|
allowedDomains?: Prisma.SortOrder
|
|
pendingDomains?: Prisma.SortOrder
|
|
createdAt?: Prisma.SortOrder
|
|
updatedAt?: Prisma.SortOrder
|
|
teamId?: Prisma.SortOrder
|
|
}
|
|
|
|
export type SandboxMaxOrderByAggregateInput = {
|
|
id?: Prisma.SortOrder
|
|
createdAt?: Prisma.SortOrder
|
|
updatedAt?: Prisma.SortOrder
|
|
teamId?: Prisma.SortOrder
|
|
}
|
|
|
|
export type SandboxMinOrderByAggregateInput = {
|
|
id?: Prisma.SortOrder
|
|
createdAt?: Prisma.SortOrder
|
|
updatedAt?: Prisma.SortOrder
|
|
teamId?: Prisma.SortOrder
|
|
}
|
|
|
|
export type SandboxCreateNestedOneWithoutTeamInput = {
|
|
create?: Prisma.XOR<
|
|
Prisma.SandboxCreateWithoutTeamInput,
|
|
Prisma.SandboxUncheckedCreateWithoutTeamInput
|
|
>
|
|
connectOrCreate?: Prisma.SandboxCreateOrConnectWithoutTeamInput
|
|
connect?: Prisma.SandboxWhereUniqueInput
|
|
}
|
|
|
|
export type SandboxUncheckedCreateNestedOneWithoutTeamInput = {
|
|
create?: Prisma.XOR<
|
|
Prisma.SandboxCreateWithoutTeamInput,
|
|
Prisma.SandboxUncheckedCreateWithoutTeamInput
|
|
>
|
|
connectOrCreate?: Prisma.SandboxCreateOrConnectWithoutTeamInput
|
|
connect?: Prisma.SandboxWhereUniqueInput
|
|
}
|
|
|
|
export type SandboxUpdateOneWithoutTeamNestedInput = {
|
|
create?: Prisma.XOR<
|
|
Prisma.SandboxCreateWithoutTeamInput,
|
|
Prisma.SandboxUncheckedCreateWithoutTeamInput
|
|
>
|
|
connectOrCreate?: Prisma.SandboxCreateOrConnectWithoutTeamInput
|
|
upsert?: Prisma.SandboxUpsertWithoutTeamInput
|
|
disconnect?: Prisma.SandboxWhereInput | boolean
|
|
delete?: Prisma.SandboxWhereInput | boolean
|
|
connect?: Prisma.SandboxWhereUniqueInput
|
|
update?: Prisma.XOR<
|
|
Prisma.XOR<
|
|
Prisma.SandboxUpdateToOneWithWhereWithoutTeamInput,
|
|
Prisma.SandboxUpdateWithoutTeamInput
|
|
>,
|
|
Prisma.SandboxUncheckedUpdateWithoutTeamInput
|
|
>
|
|
}
|
|
|
|
export type SandboxUncheckedUpdateOneWithoutTeamNestedInput = {
|
|
create?: Prisma.XOR<
|
|
Prisma.SandboxCreateWithoutTeamInput,
|
|
Prisma.SandboxUncheckedCreateWithoutTeamInput
|
|
>
|
|
connectOrCreate?: Prisma.SandboxCreateOrConnectWithoutTeamInput
|
|
upsert?: Prisma.SandboxUpsertWithoutTeamInput
|
|
disconnect?: Prisma.SandboxWhereInput | boolean
|
|
delete?: Prisma.SandboxWhereInput | boolean
|
|
connect?: Prisma.SandboxWhereUniqueInput
|
|
update?: Prisma.XOR<
|
|
Prisma.XOR<
|
|
Prisma.SandboxUpdateToOneWithWhereWithoutTeamInput,
|
|
Prisma.SandboxUpdateWithoutTeamInput
|
|
>,
|
|
Prisma.SandboxUncheckedUpdateWithoutTeamInput
|
|
>
|
|
}
|
|
|
|
export type SandboxCreateallowedDomainsInput = {
|
|
set: string[]
|
|
}
|
|
|
|
export type SandboxCreatependingDomainsInput = {
|
|
set: string[]
|
|
}
|
|
|
|
export type SandboxUpdateallowedDomainsInput = {
|
|
set?: string[]
|
|
push?: string | string[]
|
|
}
|
|
|
|
export type SandboxUpdatependingDomainsInput = {
|
|
set?: string[]
|
|
push?: string | string[]
|
|
}
|
|
|
|
export type SandboxCreateWithoutTeamInput = {
|
|
id?: string
|
|
allowedDomains?: Prisma.SandboxCreateallowedDomainsInput | string[]
|
|
pendingDomains?: Prisma.SandboxCreatependingDomainsInput | string[]
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
}
|
|
|
|
export type SandboxUncheckedCreateWithoutTeamInput = {
|
|
id?: string
|
|
allowedDomains?: Prisma.SandboxCreateallowedDomainsInput | string[]
|
|
pendingDomains?: Prisma.SandboxCreatependingDomainsInput | string[]
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
}
|
|
|
|
export type SandboxCreateOrConnectWithoutTeamInput = {
|
|
where: Prisma.SandboxWhereUniqueInput
|
|
create: Prisma.XOR<
|
|
Prisma.SandboxCreateWithoutTeamInput,
|
|
Prisma.SandboxUncheckedCreateWithoutTeamInput
|
|
>
|
|
}
|
|
|
|
export type SandboxUpsertWithoutTeamInput = {
|
|
update: Prisma.XOR<
|
|
Prisma.SandboxUpdateWithoutTeamInput,
|
|
Prisma.SandboxUncheckedUpdateWithoutTeamInput
|
|
>
|
|
create: Prisma.XOR<
|
|
Prisma.SandboxCreateWithoutTeamInput,
|
|
Prisma.SandboxUncheckedCreateWithoutTeamInput
|
|
>
|
|
where?: Prisma.SandboxWhereInput
|
|
}
|
|
|
|
export type SandboxUpdateToOneWithWhereWithoutTeamInput = {
|
|
where?: Prisma.SandboxWhereInput
|
|
data: Prisma.XOR<
|
|
Prisma.SandboxUpdateWithoutTeamInput,
|
|
Prisma.SandboxUncheckedUpdateWithoutTeamInput
|
|
>
|
|
}
|
|
|
|
export type SandboxUpdateWithoutTeamInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
allowedDomains?: Prisma.SandboxUpdateallowedDomainsInput | string[]
|
|
pendingDomains?: Prisma.SandboxUpdatependingDomainsInput | string[]
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
}
|
|
|
|
export type SandboxUncheckedUpdateWithoutTeamInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
allowedDomains?: Prisma.SandboxUpdateallowedDomainsInput | string[]
|
|
pendingDomains?: Prisma.SandboxUpdatependingDomainsInput | string[]
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
}
|
|
|
|
export type SandboxSelect<
|
|
ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs,
|
|
> = runtime.Types.Extensions.GetSelect<
|
|
{
|
|
id?: boolean
|
|
allowedDomains?: boolean
|
|
pendingDomains?: boolean
|
|
createdAt?: boolean
|
|
updatedAt?: boolean
|
|
teamId?: boolean
|
|
team?: boolean | Prisma.TeamDefaultArgs<ExtArgs>
|
|
},
|
|
ExtArgs['result']['sandbox']
|
|
>
|
|
|
|
export type SandboxSelectCreateManyAndReturn<
|
|
ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs,
|
|
> = runtime.Types.Extensions.GetSelect<
|
|
{
|
|
id?: boolean
|
|
allowedDomains?: boolean
|
|
pendingDomains?: boolean
|
|
createdAt?: boolean
|
|
updatedAt?: boolean
|
|
teamId?: boolean
|
|
team?: boolean | Prisma.TeamDefaultArgs<ExtArgs>
|
|
},
|
|
ExtArgs['result']['sandbox']
|
|
>
|
|
|
|
export type SandboxSelectUpdateManyAndReturn<
|
|
ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs,
|
|
> = runtime.Types.Extensions.GetSelect<
|
|
{
|
|
id?: boolean
|
|
allowedDomains?: boolean
|
|
pendingDomains?: boolean
|
|
createdAt?: boolean
|
|
updatedAt?: boolean
|
|
teamId?: boolean
|
|
team?: boolean | Prisma.TeamDefaultArgs<ExtArgs>
|
|
},
|
|
ExtArgs['result']['sandbox']
|
|
>
|
|
|
|
export type SandboxSelectScalar = {
|
|
id?: boolean
|
|
allowedDomains?: boolean
|
|
pendingDomains?: boolean
|
|
createdAt?: boolean
|
|
updatedAt?: boolean
|
|
teamId?: boolean
|
|
}
|
|
|
|
export type SandboxOmit<
|
|
ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs,
|
|
> = runtime.Types.Extensions.GetOmit<
|
|
'id' | 'allowedDomains' | 'pendingDomains' | 'createdAt' | 'updatedAt' | 'teamId',
|
|
ExtArgs['result']['sandbox']
|
|
>
|
|
export type SandboxInclude<
|
|
ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs,
|
|
> = {
|
|
team?: boolean | Prisma.TeamDefaultArgs<ExtArgs>
|
|
}
|
|
export type SandboxIncludeCreateManyAndReturn<
|
|
ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs,
|
|
> = {
|
|
team?: boolean | Prisma.TeamDefaultArgs<ExtArgs>
|
|
}
|
|
export type SandboxIncludeUpdateManyAndReturn<
|
|
ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs,
|
|
> = {
|
|
team?: boolean | Prisma.TeamDefaultArgs<ExtArgs>
|
|
}
|
|
|
|
export type $SandboxPayload<
|
|
ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs,
|
|
> = {
|
|
name: 'Sandbox'
|
|
objects: {
|
|
team: Prisma.$TeamPayload<ExtArgs>
|
|
}
|
|
scalars: runtime.Types.Extensions.GetPayloadResult<
|
|
{
|
|
id: string
|
|
allowedDomains: string[]
|
|
pendingDomains: string[]
|
|
createdAt: Date
|
|
updatedAt: Date
|
|
teamId: string
|
|
},
|
|
ExtArgs['result']['sandbox']
|
|
>
|
|
composites: {}
|
|
}
|
|
|
|
export type SandboxGetPayload<S extends boolean | null | undefined | SandboxDefaultArgs> =
|
|
runtime.Types.Result.GetResult<Prisma.$SandboxPayload, S>
|
|
|
|
export type SandboxCountArgs<
|
|
ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs,
|
|
> = Omit<SandboxFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
|
|
select?: SandboxCountAggregateInputType | true
|
|
}
|
|
|
|
export interface SandboxDelegate<
|
|
ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs,
|
|
GlobalOmitOptions = {},
|
|
> {
|
|
[K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['Sandbox']; meta: { name: 'Sandbox' } }
|
|
/**
|
|
* Find zero or one Sandbox that matches the filter.
|
|
* @param {SandboxFindUniqueArgs} args - Arguments to find a Sandbox
|
|
* @example
|
|
* // Get one Sandbox
|
|
* const sandbox = await prisma.sandbox.findUnique({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findUnique<T extends SandboxFindUniqueArgs>(
|
|
args: Prisma.SelectSubset<T, SandboxFindUniqueArgs<ExtArgs>>,
|
|
): Prisma.Prisma__SandboxClient<
|
|
runtime.Types.Result.GetResult<
|
|
Prisma.$SandboxPayload<ExtArgs>,
|
|
T,
|
|
'findUnique',
|
|
GlobalOmitOptions
|
|
> | null,
|
|
null,
|
|
ExtArgs,
|
|
GlobalOmitOptions
|
|
>
|
|
|
|
/**
|
|
* Find one Sandbox that matches the filter or throw an error with `error.code='P2025'`
|
|
* if no matches were found.
|
|
* @param {SandboxFindUniqueOrThrowArgs} args - Arguments to find a Sandbox
|
|
* @example
|
|
* // Get one Sandbox
|
|
* const sandbox = await prisma.sandbox.findUniqueOrThrow({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findUniqueOrThrow<T extends SandboxFindUniqueOrThrowArgs>(
|
|
args: Prisma.SelectSubset<T, SandboxFindUniqueOrThrowArgs<ExtArgs>>,
|
|
): Prisma.Prisma__SandboxClient<
|
|
runtime.Types.Result.GetResult<
|
|
Prisma.$SandboxPayload<ExtArgs>,
|
|
T,
|
|
'findUniqueOrThrow',
|
|
GlobalOmitOptions
|
|
>,
|
|
never,
|
|
ExtArgs,
|
|
GlobalOmitOptions
|
|
>
|
|
|
|
/**
|
|
* Find the first Sandbox 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 {SandboxFindFirstArgs} args - Arguments to find a Sandbox
|
|
* @example
|
|
* // Get one Sandbox
|
|
* const sandbox = await prisma.sandbox.findFirst({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findFirst<T extends SandboxFindFirstArgs>(
|
|
args?: Prisma.SelectSubset<T, SandboxFindFirstArgs<ExtArgs>>,
|
|
): Prisma.Prisma__SandboxClient<
|
|
runtime.Types.Result.GetResult<
|
|
Prisma.$SandboxPayload<ExtArgs>,
|
|
T,
|
|
'findFirst',
|
|
GlobalOmitOptions
|
|
> | null,
|
|
null,
|
|
ExtArgs,
|
|
GlobalOmitOptions
|
|
>
|
|
|
|
/**
|
|
* Find the first Sandbox 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 {SandboxFindFirstOrThrowArgs} args - Arguments to find a Sandbox
|
|
* @example
|
|
* // Get one Sandbox
|
|
* const sandbox = await prisma.sandbox.findFirstOrThrow({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findFirstOrThrow<T extends SandboxFindFirstOrThrowArgs>(
|
|
args?: Prisma.SelectSubset<T, SandboxFindFirstOrThrowArgs<ExtArgs>>,
|
|
): Prisma.Prisma__SandboxClient<
|
|
runtime.Types.Result.GetResult<
|
|
Prisma.$SandboxPayload<ExtArgs>,
|
|
T,
|
|
'findFirstOrThrow',
|
|
GlobalOmitOptions
|
|
>,
|
|
never,
|
|
ExtArgs,
|
|
GlobalOmitOptions
|
|
>
|
|
|
|
/**
|
|
* Find zero or more Sandboxes 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 {SandboxFindManyArgs} args - Arguments to filter and select certain fields only.
|
|
* @example
|
|
* // Get all Sandboxes
|
|
* const sandboxes = await prisma.sandbox.findMany()
|
|
*
|
|
* // Get first 10 Sandboxes
|
|
* const sandboxes = await prisma.sandbox.findMany({ take: 10 })
|
|
*
|
|
* // Only select the `id`
|
|
* const sandboxWithIdOnly = await prisma.sandbox.findMany({ select: { id: true } })
|
|
*
|
|
*/
|
|
findMany<T extends SandboxFindManyArgs>(
|
|
args?: Prisma.SelectSubset<T, SandboxFindManyArgs<ExtArgs>>,
|
|
): Prisma.PrismaPromise<
|
|
runtime.Types.Result.GetResult<
|
|
Prisma.$SandboxPayload<ExtArgs>,
|
|
T,
|
|
'findMany',
|
|
GlobalOmitOptions
|
|
>
|
|
>
|
|
|
|
/**
|
|
* Create a Sandbox.
|
|
* @param {SandboxCreateArgs} args - Arguments to create a Sandbox.
|
|
* @example
|
|
* // Create one Sandbox
|
|
* const Sandbox = await prisma.sandbox.create({
|
|
* data: {
|
|
* // ... data to create a Sandbox
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
create<T extends SandboxCreateArgs>(
|
|
args: Prisma.SelectSubset<T, SandboxCreateArgs<ExtArgs>>,
|
|
): Prisma.Prisma__SandboxClient<
|
|
runtime.Types.Result.GetResult<Prisma.$SandboxPayload<ExtArgs>, T, 'create', GlobalOmitOptions>,
|
|
never,
|
|
ExtArgs,
|
|
GlobalOmitOptions
|
|
>
|
|
|
|
/**
|
|
* Create many Sandboxes.
|
|
* @param {SandboxCreateManyArgs} args - Arguments to create many Sandboxes.
|
|
* @example
|
|
* // Create many Sandboxes
|
|
* const sandbox = await prisma.sandbox.createMany({
|
|
* data: [
|
|
* // ... provide data here
|
|
* ]
|
|
* })
|
|
*
|
|
*/
|
|
createMany<T extends SandboxCreateManyArgs>(
|
|
args?: Prisma.SelectSubset<T, SandboxCreateManyArgs<ExtArgs>>,
|
|
): Prisma.PrismaPromise<Prisma.BatchPayload>
|
|
|
|
/**
|
|
* Create many Sandboxes and returns the data saved in the database.
|
|
* @param {SandboxCreateManyAndReturnArgs} args - Arguments to create many Sandboxes.
|
|
* @example
|
|
* // Create many Sandboxes
|
|
* const sandbox = await prisma.sandbox.createManyAndReturn({
|
|
* data: [
|
|
* // ... provide data here
|
|
* ]
|
|
* })
|
|
*
|
|
* // Create many Sandboxes and only return the `id`
|
|
* const sandboxWithIdOnly = await prisma.sandbox.createManyAndReturn({
|
|
* select: { id: true },
|
|
* data: [
|
|
* // ... provide data here
|
|
* ]
|
|
* })
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
*
|
|
*/
|
|
createManyAndReturn<T extends SandboxCreateManyAndReturnArgs>(
|
|
args?: Prisma.SelectSubset<T, SandboxCreateManyAndReturnArgs<ExtArgs>>,
|
|
): Prisma.PrismaPromise<
|
|
runtime.Types.Result.GetResult<
|
|
Prisma.$SandboxPayload<ExtArgs>,
|
|
T,
|
|
'createManyAndReturn',
|
|
GlobalOmitOptions
|
|
>
|
|
>
|
|
|
|
/**
|
|
* Delete a Sandbox.
|
|
* @param {SandboxDeleteArgs} args - Arguments to delete one Sandbox.
|
|
* @example
|
|
* // Delete one Sandbox
|
|
* const Sandbox = await prisma.sandbox.delete({
|
|
* where: {
|
|
* // ... filter to delete one Sandbox
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
delete<T extends SandboxDeleteArgs>(
|
|
args: Prisma.SelectSubset<T, SandboxDeleteArgs<ExtArgs>>,
|
|
): Prisma.Prisma__SandboxClient<
|
|
runtime.Types.Result.GetResult<Prisma.$SandboxPayload<ExtArgs>, T, 'delete', GlobalOmitOptions>,
|
|
never,
|
|
ExtArgs,
|
|
GlobalOmitOptions
|
|
>
|
|
|
|
/**
|
|
* Update one Sandbox.
|
|
* @param {SandboxUpdateArgs} args - Arguments to update one Sandbox.
|
|
* @example
|
|
* // Update one Sandbox
|
|
* const sandbox = await prisma.sandbox.update({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* },
|
|
* data: {
|
|
* // ... provide data here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
update<T extends SandboxUpdateArgs>(
|
|
args: Prisma.SelectSubset<T, SandboxUpdateArgs<ExtArgs>>,
|
|
): Prisma.Prisma__SandboxClient<
|
|
runtime.Types.Result.GetResult<Prisma.$SandboxPayload<ExtArgs>, T, 'update', GlobalOmitOptions>,
|
|
never,
|
|
ExtArgs,
|
|
GlobalOmitOptions
|
|
>
|
|
|
|
/**
|
|
* Delete zero or more Sandboxes.
|
|
* @param {SandboxDeleteManyArgs} args - Arguments to filter Sandboxes to delete.
|
|
* @example
|
|
* // Delete a few Sandboxes
|
|
* const { count } = await prisma.sandbox.deleteMany({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
deleteMany<T extends SandboxDeleteManyArgs>(
|
|
args?: Prisma.SelectSubset<T, SandboxDeleteManyArgs<ExtArgs>>,
|
|
): Prisma.PrismaPromise<Prisma.BatchPayload>
|
|
|
|
/**
|
|
* Update zero or more Sandboxes.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {SandboxUpdateManyArgs} args - Arguments to update one or more rows.
|
|
* @example
|
|
* // Update many Sandboxes
|
|
* const sandbox = await prisma.sandbox.updateMany({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* },
|
|
* data: {
|
|
* // ... provide data here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
updateMany<T extends SandboxUpdateManyArgs>(
|
|
args: Prisma.SelectSubset<T, SandboxUpdateManyArgs<ExtArgs>>,
|
|
): Prisma.PrismaPromise<Prisma.BatchPayload>
|
|
|
|
/**
|
|
* Update zero or more Sandboxes and returns the data updated in the database.
|
|
* @param {SandboxUpdateManyAndReturnArgs} args - Arguments to update many Sandboxes.
|
|
* @example
|
|
* // Update many Sandboxes
|
|
* const sandbox = await prisma.sandbox.updateManyAndReturn({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* },
|
|
* data: [
|
|
* // ... provide data here
|
|
* ]
|
|
* })
|
|
*
|
|
* // Update zero or more Sandboxes and only return the `id`
|
|
* const sandboxWithIdOnly = await prisma.sandbox.updateManyAndReturn({
|
|
* select: { id: true },
|
|
* where: {
|
|
* // ... provide filter here
|
|
* },
|
|
* data: [
|
|
* // ... provide data here
|
|
* ]
|
|
* })
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
*
|
|
*/
|
|
updateManyAndReturn<T extends SandboxUpdateManyAndReturnArgs>(
|
|
args: Prisma.SelectSubset<T, SandboxUpdateManyAndReturnArgs<ExtArgs>>,
|
|
): Prisma.PrismaPromise<
|
|
runtime.Types.Result.GetResult<
|
|
Prisma.$SandboxPayload<ExtArgs>,
|
|
T,
|
|
'updateManyAndReturn',
|
|
GlobalOmitOptions
|
|
>
|
|
>
|
|
|
|
/**
|
|
* Create or update one Sandbox.
|
|
* @param {SandboxUpsertArgs} args - Arguments to update or create a Sandbox.
|
|
* @example
|
|
* // Update or create a Sandbox
|
|
* const sandbox = await prisma.sandbox.upsert({
|
|
* create: {
|
|
* // ... data to create a Sandbox
|
|
* },
|
|
* update: {
|
|
* // ... in case it already exists, update
|
|
* },
|
|
* where: {
|
|
* // ... the filter for the Sandbox we want to update
|
|
* }
|
|
* })
|
|
*/
|
|
upsert<T extends SandboxUpsertArgs>(
|
|
args: Prisma.SelectSubset<T, SandboxUpsertArgs<ExtArgs>>,
|
|
): Prisma.Prisma__SandboxClient<
|
|
runtime.Types.Result.GetResult<Prisma.$SandboxPayload<ExtArgs>, T, 'upsert', GlobalOmitOptions>,
|
|
never,
|
|
ExtArgs,
|
|
GlobalOmitOptions
|
|
>
|
|
|
|
/**
|
|
* Count the number of Sandboxes.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {SandboxCountArgs} args - Arguments to filter Sandboxes to count.
|
|
* @example
|
|
* // Count the number of Sandboxes
|
|
* const count = await prisma.sandbox.count({
|
|
* where: {
|
|
* // ... the filter for the Sandboxes we want to count
|
|
* }
|
|
* })
|
|
**/
|
|
count<T extends SandboxCountArgs>(
|
|
args?: Prisma.Subset<T, SandboxCountArgs>,
|
|
): Prisma.PrismaPromise<
|
|
T extends runtime.Types.Utils.Record<'select', any>
|
|
? T['select'] extends true
|
|
? number
|
|
: Prisma.GetScalarType<T['select'], SandboxCountAggregateOutputType>
|
|
: number
|
|
>
|
|
|
|
/**
|
|
* Allows you to perform aggregations operations on a Sandbox.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {SandboxAggregateArgs} 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 SandboxAggregateArgs>(
|
|
args: Prisma.Subset<T, SandboxAggregateArgs>,
|
|
): Prisma.PrismaPromise<GetSandboxAggregateType<T>>
|
|
|
|
/**
|
|
* Group by Sandbox.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {SandboxGroupByArgs} 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 SandboxGroupByArgs,
|
|
HasSelectOrTake extends Prisma.Or<
|
|
Prisma.Extends<'skip', Prisma.Keys<T>>,
|
|
Prisma.Extends<'take', Prisma.Keys<T>>
|
|
>,
|
|
OrderByArg extends Prisma.True extends HasSelectOrTake
|
|
? { orderBy: SandboxGroupByArgs['orderBy'] }
|
|
: { orderBy?: SandboxGroupByArgs['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, SandboxGroupByArgs, OrderByArg> & InputErrors,
|
|
): {} extends InputErrors ? GetSandboxGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
|
|
/**
|
|
* Fields of the Sandbox model
|
|
*/
|
|
readonly fields: SandboxFieldRefs
|
|
}
|
|
|
|
/**
|
|
* The delegate class that acts as a "Promise-like" for Sandbox.
|
|
* 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__SandboxClient<
|
|
T,
|
|
Null = never,
|
|
ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs,
|
|
GlobalOmitOptions = {},
|
|
> extends Prisma.PrismaPromise<T> {
|
|
readonly [Symbol.toStringTag]: 'PrismaPromise'
|
|
team<T extends Prisma.TeamDefaultArgs<ExtArgs> = {}>(
|
|
args?: Prisma.Subset<T, Prisma.TeamDefaultArgs<ExtArgs>>,
|
|
): Prisma.Prisma__TeamClient<
|
|
| runtime.Types.Result.GetResult<
|
|
Prisma.$TeamPayload<ExtArgs>,
|
|
T,
|
|
'findUniqueOrThrow',
|
|
GlobalOmitOptions
|
|
>
|
|
| Null,
|
|
Null,
|
|
ExtArgs,
|
|
GlobalOmitOptions
|
|
>
|
|
/**
|
|
* Attaches callbacks for the resolution and/or rejection of the Promise.
|
|
* @param onfulfilled The callback to execute when the Promise is resolved.
|
|
* @param onrejected The callback to execute when the Promise is rejected.
|
|
* @returns A Promise for the completion of which ever callback is executed.
|
|
*/
|
|
then<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 Sandbox model
|
|
*/
|
|
export interface SandboxFieldRefs {
|
|
readonly id: Prisma.FieldRef<'Sandbox', 'String'>
|
|
readonly allowedDomains: Prisma.FieldRef<'Sandbox', 'String[]'>
|
|
readonly pendingDomains: Prisma.FieldRef<'Sandbox', 'String[]'>
|
|
readonly createdAt: Prisma.FieldRef<'Sandbox', 'DateTime'>
|
|
readonly updatedAt: Prisma.FieldRef<'Sandbox', 'DateTime'>
|
|
readonly teamId: Prisma.FieldRef<'Sandbox', 'String'>
|
|
}
|
|
|
|
// Custom InputTypes
|
|
/**
|
|
* Sandbox findUnique
|
|
*/
|
|
export type SandboxFindUniqueArgs<
|
|
ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs,
|
|
> = {
|
|
/**
|
|
* Select specific fields to fetch from the Sandbox
|
|
*/
|
|
select?: Prisma.SandboxSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the Sandbox
|
|
*/
|
|
omit?: Prisma.SandboxOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.SandboxInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which Sandbox to fetch.
|
|
*/
|
|
where: Prisma.SandboxWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* Sandbox findUniqueOrThrow
|
|
*/
|
|
export type SandboxFindUniqueOrThrowArgs<
|
|
ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs,
|
|
> = {
|
|
/**
|
|
* Select specific fields to fetch from the Sandbox
|
|
*/
|
|
select?: Prisma.SandboxSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the Sandbox
|
|
*/
|
|
omit?: Prisma.SandboxOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.SandboxInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which Sandbox to fetch.
|
|
*/
|
|
where: Prisma.SandboxWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* Sandbox findFirst
|
|
*/
|
|
export type SandboxFindFirstArgs<
|
|
ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs,
|
|
> = {
|
|
/**
|
|
* Select specific fields to fetch from the Sandbox
|
|
*/
|
|
select?: Prisma.SandboxSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the Sandbox
|
|
*/
|
|
omit?: Prisma.SandboxOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.SandboxInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which Sandbox to fetch.
|
|
*/
|
|
where?: Prisma.SandboxWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of Sandboxes to fetch.
|
|
*/
|
|
orderBy?: Prisma.SandboxOrderByWithRelationInput | Prisma.SandboxOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for searching for Sandboxes.
|
|
*/
|
|
cursor?: Prisma.SandboxWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` Sandboxes 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` Sandboxes.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
*
|
|
* Filter by unique combinations of Sandboxes.
|
|
*/
|
|
distinct?: Prisma.SandboxScalarFieldEnum | Prisma.SandboxScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* Sandbox findFirstOrThrow
|
|
*/
|
|
export type SandboxFindFirstOrThrowArgs<
|
|
ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs,
|
|
> = {
|
|
/**
|
|
* Select specific fields to fetch from the Sandbox
|
|
*/
|
|
select?: Prisma.SandboxSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the Sandbox
|
|
*/
|
|
omit?: Prisma.SandboxOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.SandboxInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which Sandbox to fetch.
|
|
*/
|
|
where?: Prisma.SandboxWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of Sandboxes to fetch.
|
|
*/
|
|
orderBy?: Prisma.SandboxOrderByWithRelationInput | Prisma.SandboxOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for searching for Sandboxes.
|
|
*/
|
|
cursor?: Prisma.SandboxWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` Sandboxes 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` Sandboxes.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
*
|
|
* Filter by unique combinations of Sandboxes.
|
|
*/
|
|
distinct?: Prisma.SandboxScalarFieldEnum | Prisma.SandboxScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* Sandbox findMany
|
|
*/
|
|
export type SandboxFindManyArgs<
|
|
ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs,
|
|
> = {
|
|
/**
|
|
* Select specific fields to fetch from the Sandbox
|
|
*/
|
|
select?: Prisma.SandboxSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the Sandbox
|
|
*/
|
|
omit?: Prisma.SandboxOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.SandboxInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which Sandboxes to fetch.
|
|
*/
|
|
where?: Prisma.SandboxWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of Sandboxes to fetch.
|
|
*/
|
|
orderBy?: Prisma.SandboxOrderByWithRelationInput | Prisma.SandboxOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for listing Sandboxes.
|
|
*/
|
|
cursor?: Prisma.SandboxWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` Sandboxes 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` Sandboxes.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
*
|
|
* Filter by unique combinations of Sandboxes.
|
|
*/
|
|
distinct?: Prisma.SandboxScalarFieldEnum | Prisma.SandboxScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* Sandbox create
|
|
*/
|
|
export type SandboxCreateArgs<
|
|
ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs,
|
|
> = {
|
|
/**
|
|
* Select specific fields to fetch from the Sandbox
|
|
*/
|
|
select?: Prisma.SandboxSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the Sandbox
|
|
*/
|
|
omit?: Prisma.SandboxOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.SandboxInclude<ExtArgs> | null
|
|
/**
|
|
* The data needed to create a Sandbox.
|
|
*/
|
|
data: Prisma.XOR<Prisma.SandboxCreateInput, Prisma.SandboxUncheckedCreateInput>
|
|
}
|
|
|
|
/**
|
|
* Sandbox createMany
|
|
*/
|
|
export type SandboxCreateManyArgs<
|
|
ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs,
|
|
> = {
|
|
/**
|
|
* The data used to create many Sandboxes.
|
|
*/
|
|
data: Prisma.SandboxCreateManyInput | Prisma.SandboxCreateManyInput[]
|
|
skipDuplicates?: boolean
|
|
}
|
|
|
|
/**
|
|
* Sandbox createManyAndReturn
|
|
*/
|
|
export type SandboxCreateManyAndReturnArgs<
|
|
ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs,
|
|
> = {
|
|
/**
|
|
* Select specific fields to fetch from the Sandbox
|
|
*/
|
|
select?: Prisma.SandboxSelectCreateManyAndReturn<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the Sandbox
|
|
*/
|
|
omit?: Prisma.SandboxOmit<ExtArgs> | null
|
|
/**
|
|
* The data used to create many Sandboxes.
|
|
*/
|
|
data: Prisma.SandboxCreateManyInput | Prisma.SandboxCreateManyInput[]
|
|
skipDuplicates?: boolean
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.SandboxIncludeCreateManyAndReturn<ExtArgs> | null
|
|
}
|
|
|
|
/**
|
|
* Sandbox update
|
|
*/
|
|
export type SandboxUpdateArgs<
|
|
ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs,
|
|
> = {
|
|
/**
|
|
* Select specific fields to fetch from the Sandbox
|
|
*/
|
|
select?: Prisma.SandboxSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the Sandbox
|
|
*/
|
|
omit?: Prisma.SandboxOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.SandboxInclude<ExtArgs> | null
|
|
/**
|
|
* The data needed to update a Sandbox.
|
|
*/
|
|
data: Prisma.XOR<Prisma.SandboxUpdateInput, Prisma.SandboxUncheckedUpdateInput>
|
|
/**
|
|
* Choose, which Sandbox to update.
|
|
*/
|
|
where: Prisma.SandboxWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* Sandbox updateMany
|
|
*/
|
|
export type SandboxUpdateManyArgs<
|
|
ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs,
|
|
> = {
|
|
/**
|
|
* The data used to update Sandboxes.
|
|
*/
|
|
data: Prisma.XOR<Prisma.SandboxUpdateManyMutationInput, Prisma.SandboxUncheckedUpdateManyInput>
|
|
/**
|
|
* Filter which Sandboxes to update
|
|
*/
|
|
where?: Prisma.SandboxWhereInput
|
|
/**
|
|
* Limit how many Sandboxes to update.
|
|
*/
|
|
limit?: number
|
|
}
|
|
|
|
/**
|
|
* Sandbox updateManyAndReturn
|
|
*/
|
|
export type SandboxUpdateManyAndReturnArgs<
|
|
ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs,
|
|
> = {
|
|
/**
|
|
* Select specific fields to fetch from the Sandbox
|
|
*/
|
|
select?: Prisma.SandboxSelectUpdateManyAndReturn<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the Sandbox
|
|
*/
|
|
omit?: Prisma.SandboxOmit<ExtArgs> | null
|
|
/**
|
|
* The data used to update Sandboxes.
|
|
*/
|
|
data: Prisma.XOR<Prisma.SandboxUpdateManyMutationInput, Prisma.SandboxUncheckedUpdateManyInput>
|
|
/**
|
|
* Filter which Sandboxes to update
|
|
*/
|
|
where?: Prisma.SandboxWhereInput
|
|
/**
|
|
* Limit how many Sandboxes to update.
|
|
*/
|
|
limit?: number
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.SandboxIncludeUpdateManyAndReturn<ExtArgs> | null
|
|
}
|
|
|
|
/**
|
|
* Sandbox upsert
|
|
*/
|
|
export type SandboxUpsertArgs<
|
|
ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs,
|
|
> = {
|
|
/**
|
|
* Select specific fields to fetch from the Sandbox
|
|
*/
|
|
select?: Prisma.SandboxSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the Sandbox
|
|
*/
|
|
omit?: Prisma.SandboxOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.SandboxInclude<ExtArgs> | null
|
|
/**
|
|
* The filter to search for the Sandbox to update in case it exists.
|
|
*/
|
|
where: Prisma.SandboxWhereUniqueInput
|
|
/**
|
|
* In case the Sandbox found by the `where` argument doesn't exist, create a new Sandbox with this data.
|
|
*/
|
|
create: Prisma.XOR<Prisma.SandboxCreateInput, Prisma.SandboxUncheckedCreateInput>
|
|
/**
|
|
* In case the Sandbox was found with the provided `where` argument, update it with this data.
|
|
*/
|
|
update: Prisma.XOR<Prisma.SandboxUpdateInput, Prisma.SandboxUncheckedUpdateInput>
|
|
}
|
|
|
|
/**
|
|
* Sandbox delete
|
|
*/
|
|
export type SandboxDeleteArgs<
|
|
ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs,
|
|
> = {
|
|
/**
|
|
* Select specific fields to fetch from the Sandbox
|
|
*/
|
|
select?: Prisma.SandboxSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the Sandbox
|
|
*/
|
|
omit?: Prisma.SandboxOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.SandboxInclude<ExtArgs> | null
|
|
/**
|
|
* Filter which Sandbox to delete.
|
|
*/
|
|
where: Prisma.SandboxWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* Sandbox deleteMany
|
|
*/
|
|
export type SandboxDeleteManyArgs<
|
|
ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs,
|
|
> = {
|
|
/**
|
|
* Filter which Sandboxes to delete
|
|
*/
|
|
where?: Prisma.SandboxWhereInput
|
|
/**
|
|
* Limit how many Sandboxes to delete.
|
|
*/
|
|
limit?: number
|
|
}
|
|
|
|
/**
|
|
* Sandbox without action
|
|
*/
|
|
export type SandboxDefaultArgs<
|
|
ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs,
|
|
> = {
|
|
/**
|
|
* Select specific fields to fetch from the Sandbox
|
|
*/
|
|
select?: Prisma.SandboxSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the Sandbox
|
|
*/
|
|
omit?: Prisma.SandboxOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.SandboxInclude<ExtArgs> | null
|
|
}
|