iboard/generated/prisma/models/ServiceCheck.ts
2026-08-06 16:41:47 +08:00

1195 lines
41 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 `ServiceCheck` 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 ServiceCheck
*
*/
export type ServiceCheckModel = runtime.Types.Result.DefaultSelection<Prisma.$ServiceCheckPayload>
export type AggregateServiceCheck = {
_count: ServiceCheckCountAggregateOutputType | null
_avg: ServiceCheckAvgAggregateOutputType | null
_sum: ServiceCheckSumAggregateOutputType | null
_min: ServiceCheckMinAggregateOutputType | null
_max: ServiceCheckMaxAggregateOutputType | null
}
export type ServiceCheckAvgAggregateOutputType = {
id: number | null
latencyMs: number | null
}
export type ServiceCheckSumAggregateOutputType = {
id: number | null
latencyMs: number | null
}
export type ServiceCheckMinAggregateOutputType = {
id: number | null
name: string | null
url: string | null
status: string | null
latencyMs: number | null
message: string | null
lastCheckAt: Date | null
createdAt: Date | null
updatedAt: Date | null
}
export type ServiceCheckMaxAggregateOutputType = {
id: number | null
name: string | null
url: string | null
status: string | null
latencyMs: number | null
message: string | null
lastCheckAt: Date | null
createdAt: Date | null
updatedAt: Date | null
}
export type ServiceCheckCountAggregateOutputType = {
id: number
name: number
url: number
status: number
latencyMs: number
message: number
lastCheckAt: number
createdAt: number
updatedAt: number
_all: number
}
export type ServiceCheckAvgAggregateInputType = {
id?: true
latencyMs?: true
}
export type ServiceCheckSumAggregateInputType = {
id?: true
latencyMs?: true
}
export type ServiceCheckMinAggregateInputType = {
id?: true
name?: true
url?: true
status?: true
latencyMs?: true
message?: true
lastCheckAt?: true
createdAt?: true
updatedAt?: true
}
export type ServiceCheckMaxAggregateInputType = {
id?: true
name?: true
url?: true
status?: true
latencyMs?: true
message?: true
lastCheckAt?: true
createdAt?: true
updatedAt?: true
}
export type ServiceCheckCountAggregateInputType = {
id?: true
name?: true
url?: true
status?: true
latencyMs?: true
message?: true
lastCheckAt?: true
createdAt?: true
updatedAt?: true
_all?: true
}
export type ServiceCheckAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Filter which ServiceCheck to aggregate.
*/
where?: Prisma.ServiceCheckWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of ServiceChecks to fetch.
*/
orderBy?: Prisma.ServiceCheckOrderByWithRelationInput | Prisma.ServiceCheckOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the start position
*/
cursor?: Prisma.ServiceCheckWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` ServiceChecks 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` ServiceChecks.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Count returned ServiceChecks
**/
_count?: true | ServiceCheckCountAggregateInputType
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to average
**/
_avg?: ServiceCheckAvgAggregateInputType
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to sum
**/
_sum?: ServiceCheckSumAggregateInputType
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to find the minimum value
**/
_min?: ServiceCheckMinAggregateInputType
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to find the maximum value
**/
_max?: ServiceCheckMaxAggregateInputType
}
export type GetServiceCheckAggregateType<T extends ServiceCheckAggregateArgs> = {
[P in keyof T & keyof AggregateServiceCheck]: P extends '_count' | 'count'
? T[P] extends true
? number
: Prisma.GetScalarType<T[P], AggregateServiceCheck[P]>
: Prisma.GetScalarType<T[P], AggregateServiceCheck[P]>
}
export type ServiceCheckGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
where?: Prisma.ServiceCheckWhereInput
orderBy?: Prisma.ServiceCheckOrderByWithAggregationInput | Prisma.ServiceCheckOrderByWithAggregationInput[]
by: Prisma.ServiceCheckScalarFieldEnum[] | Prisma.ServiceCheckScalarFieldEnum
having?: Prisma.ServiceCheckScalarWhereWithAggregatesInput
take?: number
skip?: number
_count?: ServiceCheckCountAggregateInputType | true
_avg?: ServiceCheckAvgAggregateInputType
_sum?: ServiceCheckSumAggregateInputType
_min?: ServiceCheckMinAggregateInputType
_max?: ServiceCheckMaxAggregateInputType
}
export type ServiceCheckGroupByOutputType = {
id: number
name: string
url: string
status: string
latencyMs: number
message: string
lastCheckAt: Date
createdAt: Date
updatedAt: Date
_count: ServiceCheckCountAggregateOutputType | null
_avg: ServiceCheckAvgAggregateOutputType | null
_sum: ServiceCheckSumAggregateOutputType | null
_min: ServiceCheckMinAggregateOutputType | null
_max: ServiceCheckMaxAggregateOutputType | null
}
export type GetServiceCheckGroupByPayload<T extends ServiceCheckGroupByArgs> = Prisma.PrismaPromise<
Array<
Prisma.PickEnumerable<ServiceCheckGroupByOutputType, T['by']> &
{
[P in ((keyof T) & (keyof ServiceCheckGroupByOutputType))]: P extends '_count'
? T[P] extends boolean
? number
: Prisma.GetScalarType<T[P], ServiceCheckGroupByOutputType[P]>
: Prisma.GetScalarType<T[P], ServiceCheckGroupByOutputType[P]>
}
>
>
export type ServiceCheckWhereInput = {
AND?: Prisma.ServiceCheckWhereInput | Prisma.ServiceCheckWhereInput[]
OR?: Prisma.ServiceCheckWhereInput[]
NOT?: Prisma.ServiceCheckWhereInput | Prisma.ServiceCheckWhereInput[]
id?: Prisma.IntFilter<"ServiceCheck"> | number
name?: Prisma.StringFilter<"ServiceCheck"> | string
url?: Prisma.StringFilter<"ServiceCheck"> | string
status?: Prisma.StringFilter<"ServiceCheck"> | string
latencyMs?: Prisma.IntFilter<"ServiceCheck"> | number
message?: Prisma.StringFilter<"ServiceCheck"> | string
lastCheckAt?: Prisma.DateTimeFilter<"ServiceCheck"> | Date | string
createdAt?: Prisma.DateTimeFilter<"ServiceCheck"> | Date | string
updatedAt?: Prisma.DateTimeFilter<"ServiceCheck"> | Date | string
}
export type ServiceCheckOrderByWithRelationInput = {
id?: Prisma.SortOrder
name?: Prisma.SortOrder
url?: Prisma.SortOrder
status?: Prisma.SortOrder
latencyMs?: Prisma.SortOrder
message?: Prisma.SortOrder
lastCheckAt?: Prisma.SortOrder
createdAt?: Prisma.SortOrder
updatedAt?: Prisma.SortOrder
_relevance?: Prisma.ServiceCheckOrderByRelevanceInput
}
export type ServiceCheckWhereUniqueInput = Prisma.AtLeast<{
id?: number
name?: string
AND?: Prisma.ServiceCheckWhereInput | Prisma.ServiceCheckWhereInput[]
OR?: Prisma.ServiceCheckWhereInput[]
NOT?: Prisma.ServiceCheckWhereInput | Prisma.ServiceCheckWhereInput[]
url?: Prisma.StringFilter<"ServiceCheck"> | string
status?: Prisma.StringFilter<"ServiceCheck"> | string
latencyMs?: Prisma.IntFilter<"ServiceCheck"> | number
message?: Prisma.StringFilter<"ServiceCheck"> | string
lastCheckAt?: Prisma.DateTimeFilter<"ServiceCheck"> | Date | string
createdAt?: Prisma.DateTimeFilter<"ServiceCheck"> | Date | string
updatedAt?: Prisma.DateTimeFilter<"ServiceCheck"> | Date | string
}, "id" | "name">
export type ServiceCheckOrderByWithAggregationInput = {
id?: Prisma.SortOrder
name?: Prisma.SortOrder
url?: Prisma.SortOrder
status?: Prisma.SortOrder
latencyMs?: Prisma.SortOrder
message?: Prisma.SortOrder
lastCheckAt?: Prisma.SortOrder
createdAt?: Prisma.SortOrder
updatedAt?: Prisma.SortOrder
_count?: Prisma.ServiceCheckCountOrderByAggregateInput
_avg?: Prisma.ServiceCheckAvgOrderByAggregateInput
_max?: Prisma.ServiceCheckMaxOrderByAggregateInput
_min?: Prisma.ServiceCheckMinOrderByAggregateInput
_sum?: Prisma.ServiceCheckSumOrderByAggregateInput
}
export type ServiceCheckScalarWhereWithAggregatesInput = {
AND?: Prisma.ServiceCheckScalarWhereWithAggregatesInput | Prisma.ServiceCheckScalarWhereWithAggregatesInput[]
OR?: Prisma.ServiceCheckScalarWhereWithAggregatesInput[]
NOT?: Prisma.ServiceCheckScalarWhereWithAggregatesInput | Prisma.ServiceCheckScalarWhereWithAggregatesInput[]
id?: Prisma.IntWithAggregatesFilter<"ServiceCheck"> | number
name?: Prisma.StringWithAggregatesFilter<"ServiceCheck"> | string
url?: Prisma.StringWithAggregatesFilter<"ServiceCheck"> | string
status?: Prisma.StringWithAggregatesFilter<"ServiceCheck"> | string
latencyMs?: Prisma.IntWithAggregatesFilter<"ServiceCheck"> | number
message?: Prisma.StringWithAggregatesFilter<"ServiceCheck"> | string
lastCheckAt?: Prisma.DateTimeWithAggregatesFilter<"ServiceCheck"> | Date | string
createdAt?: Prisma.DateTimeWithAggregatesFilter<"ServiceCheck"> | Date | string
updatedAt?: Prisma.DateTimeWithAggregatesFilter<"ServiceCheck"> | Date | string
}
export type ServiceCheckCreateInput = {
name: string
url: string
status?: string
latencyMs?: number
message?: string
lastCheckAt: Date | string
createdAt?: Date | string
updatedAt?: Date | string
}
export type ServiceCheckUncheckedCreateInput = {
id?: number
name: string
url: string
status?: string
latencyMs?: number
message?: string
lastCheckAt: Date | string
createdAt?: Date | string
updatedAt?: Date | string
}
export type ServiceCheckUpdateInput = {
name?: Prisma.StringFieldUpdateOperationsInput | string
url?: Prisma.StringFieldUpdateOperationsInput | string
status?: Prisma.StringFieldUpdateOperationsInput | string
latencyMs?: Prisma.IntFieldUpdateOperationsInput | number
message?: Prisma.StringFieldUpdateOperationsInput | string
lastCheckAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
}
export type ServiceCheckUncheckedUpdateInput = {
id?: Prisma.IntFieldUpdateOperationsInput | number
name?: Prisma.StringFieldUpdateOperationsInput | string
url?: Prisma.StringFieldUpdateOperationsInput | string
status?: Prisma.StringFieldUpdateOperationsInput | string
latencyMs?: Prisma.IntFieldUpdateOperationsInput | number
message?: Prisma.StringFieldUpdateOperationsInput | string
lastCheckAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
}
export type ServiceCheckCreateManyInput = {
id?: number
name: string
url: string
status?: string
latencyMs?: number
message?: string
lastCheckAt: Date | string
createdAt?: Date | string
updatedAt?: Date | string
}
export type ServiceCheckUpdateManyMutationInput = {
name?: Prisma.StringFieldUpdateOperationsInput | string
url?: Prisma.StringFieldUpdateOperationsInput | string
status?: Prisma.StringFieldUpdateOperationsInput | string
latencyMs?: Prisma.IntFieldUpdateOperationsInput | number
message?: Prisma.StringFieldUpdateOperationsInput | string
lastCheckAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
}
export type ServiceCheckUncheckedUpdateManyInput = {
id?: Prisma.IntFieldUpdateOperationsInput | number
name?: Prisma.StringFieldUpdateOperationsInput | string
url?: Prisma.StringFieldUpdateOperationsInput | string
status?: Prisma.StringFieldUpdateOperationsInput | string
latencyMs?: Prisma.IntFieldUpdateOperationsInput | number
message?: Prisma.StringFieldUpdateOperationsInput | string
lastCheckAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
}
export type ServiceCheckOrderByRelevanceInput = {
fields: Prisma.ServiceCheckOrderByRelevanceFieldEnum | Prisma.ServiceCheckOrderByRelevanceFieldEnum[]
sort: Prisma.SortOrder
search: string
}
export type ServiceCheckCountOrderByAggregateInput = {
id?: Prisma.SortOrder
name?: Prisma.SortOrder
url?: Prisma.SortOrder
status?: Prisma.SortOrder
latencyMs?: Prisma.SortOrder
message?: Prisma.SortOrder
lastCheckAt?: Prisma.SortOrder
createdAt?: Prisma.SortOrder
updatedAt?: Prisma.SortOrder
}
export type ServiceCheckAvgOrderByAggregateInput = {
id?: Prisma.SortOrder
latencyMs?: Prisma.SortOrder
}
export type ServiceCheckMaxOrderByAggregateInput = {
id?: Prisma.SortOrder
name?: Prisma.SortOrder
url?: Prisma.SortOrder
status?: Prisma.SortOrder
latencyMs?: Prisma.SortOrder
message?: Prisma.SortOrder
lastCheckAt?: Prisma.SortOrder
createdAt?: Prisma.SortOrder
updatedAt?: Prisma.SortOrder
}
export type ServiceCheckMinOrderByAggregateInput = {
id?: Prisma.SortOrder
name?: Prisma.SortOrder
url?: Prisma.SortOrder
status?: Prisma.SortOrder
latencyMs?: Prisma.SortOrder
message?: Prisma.SortOrder
lastCheckAt?: Prisma.SortOrder
createdAt?: Prisma.SortOrder
updatedAt?: Prisma.SortOrder
}
export type ServiceCheckSumOrderByAggregateInput = {
id?: Prisma.SortOrder
latencyMs?: Prisma.SortOrder
}
export type ServiceCheckSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
id?: boolean
name?: boolean
url?: boolean
status?: boolean
latencyMs?: boolean
message?: boolean
lastCheckAt?: boolean
createdAt?: boolean
updatedAt?: boolean
}, ExtArgs["result"]["serviceCheck"]>
export type ServiceCheckSelectScalar = {
id?: boolean
name?: boolean
url?: boolean
status?: boolean
latencyMs?: boolean
message?: boolean
lastCheckAt?: boolean
createdAt?: boolean
updatedAt?: boolean
}
export type ServiceCheckOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "name" | "url" | "status" | "latencyMs" | "message" | "lastCheckAt" | "createdAt" | "updatedAt", ExtArgs["result"]["serviceCheck"]>
export type $ServiceCheckPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
name: "ServiceCheck"
objects: {}
scalars: runtime.Types.Extensions.GetPayloadResult<{
id: number
name: string
url: string
status: string
latencyMs: number
message: string
lastCheckAt: Date
createdAt: Date
updatedAt: Date
}, ExtArgs["result"]["serviceCheck"]>
composites: {}
}
export type ServiceCheckGetPayload<S extends boolean | null | undefined | ServiceCheckDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$ServiceCheckPayload, S>
export type ServiceCheckCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> =
Omit<ServiceCheckFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
select?: ServiceCheckCountAggregateInputType | true
}
export interface ServiceCheckDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
[K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['ServiceCheck'], meta: { name: 'ServiceCheck' } }
/**
* Find zero or one ServiceCheck that matches the filter.
* @param {ServiceCheckFindUniqueArgs} args - Arguments to find a ServiceCheck
* @example
* // Get one ServiceCheck
* const serviceCheck = await prisma.serviceCheck.findUnique({
* where: {
* // ... provide filter here
* }
* })
*/
findUnique<T extends ServiceCheckFindUniqueArgs>(args: Prisma.SelectSubset<T, ServiceCheckFindUniqueArgs<ExtArgs>>): Prisma.Prisma__ServiceCheckClient<runtime.Types.Result.GetResult<Prisma.$ServiceCheckPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
/**
* Find one ServiceCheck that matches the filter or throw an error with `error.code='P2025'`
* if no matches were found.
* @param {ServiceCheckFindUniqueOrThrowArgs} args - Arguments to find a ServiceCheck
* @example
* // Get one ServiceCheck
* const serviceCheck = await prisma.serviceCheck.findUniqueOrThrow({
* where: {
* // ... provide filter here
* }
* })
*/
findUniqueOrThrow<T extends ServiceCheckFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, ServiceCheckFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__ServiceCheckClient<runtime.Types.Result.GetResult<Prisma.$ServiceCheckPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Find the first ServiceCheck 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 {ServiceCheckFindFirstArgs} args - Arguments to find a ServiceCheck
* @example
* // Get one ServiceCheck
* const serviceCheck = await prisma.serviceCheck.findFirst({
* where: {
* // ... provide filter here
* }
* })
*/
findFirst<T extends ServiceCheckFindFirstArgs>(args?: Prisma.SelectSubset<T, ServiceCheckFindFirstArgs<ExtArgs>>): Prisma.Prisma__ServiceCheckClient<runtime.Types.Result.GetResult<Prisma.$ServiceCheckPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
/**
* Find the first ServiceCheck 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 {ServiceCheckFindFirstOrThrowArgs} args - Arguments to find a ServiceCheck
* @example
* // Get one ServiceCheck
* const serviceCheck = await prisma.serviceCheck.findFirstOrThrow({
* where: {
* // ... provide filter here
* }
* })
*/
findFirstOrThrow<T extends ServiceCheckFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, ServiceCheckFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__ServiceCheckClient<runtime.Types.Result.GetResult<Prisma.$ServiceCheckPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Find zero or more ServiceChecks 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 {ServiceCheckFindManyArgs} args - Arguments to filter and select certain fields only.
* @example
* // Get all ServiceChecks
* const serviceChecks = await prisma.serviceCheck.findMany()
*
* // Get first 10 ServiceChecks
* const serviceChecks = await prisma.serviceCheck.findMany({ take: 10 })
*
* // Only select the `id`
* const serviceCheckWithIdOnly = await prisma.serviceCheck.findMany({ select: { id: true } })
*
*/
findMany<T extends ServiceCheckFindManyArgs>(args?: Prisma.SelectSubset<T, ServiceCheckFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$ServiceCheckPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
/**
* Create a ServiceCheck.
* @param {ServiceCheckCreateArgs} args - Arguments to create a ServiceCheck.
* @example
* // Create one ServiceCheck
* const ServiceCheck = await prisma.serviceCheck.create({
* data: {
* // ... data to create a ServiceCheck
* }
* })
*
*/
create<T extends ServiceCheckCreateArgs>(args: Prisma.SelectSubset<T, ServiceCheckCreateArgs<ExtArgs>>): Prisma.Prisma__ServiceCheckClient<runtime.Types.Result.GetResult<Prisma.$ServiceCheckPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Create many ServiceChecks.
* @param {ServiceCheckCreateManyArgs} args - Arguments to create many ServiceChecks.
* @example
* // Create many ServiceChecks
* const serviceCheck = await prisma.serviceCheck.createMany({
* data: [
* // ... provide data here
* ]
* })
*
*/
createMany<T extends ServiceCheckCreateManyArgs>(args?: Prisma.SelectSubset<T, ServiceCheckCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
/**
* Delete a ServiceCheck.
* @param {ServiceCheckDeleteArgs} args - Arguments to delete one ServiceCheck.
* @example
* // Delete one ServiceCheck
* const ServiceCheck = await prisma.serviceCheck.delete({
* where: {
* // ... filter to delete one ServiceCheck
* }
* })
*
*/
delete<T extends ServiceCheckDeleteArgs>(args: Prisma.SelectSubset<T, ServiceCheckDeleteArgs<ExtArgs>>): Prisma.Prisma__ServiceCheckClient<runtime.Types.Result.GetResult<Prisma.$ServiceCheckPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Update one ServiceCheck.
* @param {ServiceCheckUpdateArgs} args - Arguments to update one ServiceCheck.
* @example
* // Update one ServiceCheck
* const serviceCheck = await prisma.serviceCheck.update({
* where: {
* // ... provide filter here
* },
* data: {
* // ... provide data here
* }
* })
*
*/
update<T extends ServiceCheckUpdateArgs>(args: Prisma.SelectSubset<T, ServiceCheckUpdateArgs<ExtArgs>>): Prisma.Prisma__ServiceCheckClient<runtime.Types.Result.GetResult<Prisma.$ServiceCheckPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Delete zero or more ServiceChecks.
* @param {ServiceCheckDeleteManyArgs} args - Arguments to filter ServiceChecks to delete.
* @example
* // Delete a few ServiceChecks
* const { count } = await prisma.serviceCheck.deleteMany({
* where: {
* // ... provide filter here
* }
* })
*
*/
deleteMany<T extends ServiceCheckDeleteManyArgs>(args?: Prisma.SelectSubset<T, ServiceCheckDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
/**
* Update zero or more ServiceChecks.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {ServiceCheckUpdateManyArgs} args - Arguments to update one or more rows.
* @example
* // Update many ServiceChecks
* const serviceCheck = await prisma.serviceCheck.updateMany({
* where: {
* // ... provide filter here
* },
* data: {
* // ... provide data here
* }
* })
*
*/
updateMany<T extends ServiceCheckUpdateManyArgs>(args: Prisma.SelectSubset<T, ServiceCheckUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
/**
* Create or update one ServiceCheck.
* @param {ServiceCheckUpsertArgs} args - Arguments to update or create a ServiceCheck.
* @example
* // Update or create a ServiceCheck
* const serviceCheck = await prisma.serviceCheck.upsert({
* create: {
* // ... data to create a ServiceCheck
* },
* update: {
* // ... in case it already exists, update
* },
* where: {
* // ... the filter for the ServiceCheck we want to update
* }
* })
*/
upsert<T extends ServiceCheckUpsertArgs>(args: Prisma.SelectSubset<T, ServiceCheckUpsertArgs<ExtArgs>>): Prisma.Prisma__ServiceCheckClient<runtime.Types.Result.GetResult<Prisma.$ServiceCheckPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Count the number of ServiceChecks.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {ServiceCheckCountArgs} args - Arguments to filter ServiceChecks to count.
* @example
* // Count the number of ServiceChecks
* const count = await prisma.serviceCheck.count({
* where: {
* // ... the filter for the ServiceChecks we want to count
* }
* })
**/
count<T extends ServiceCheckCountArgs>(
args?: Prisma.Subset<T, ServiceCheckCountArgs>,
): Prisma.PrismaPromise<
T extends runtime.Types.Utils.Record<'select', any>
? T['select'] extends true
? number
: Prisma.GetScalarType<T['select'], ServiceCheckCountAggregateOutputType>
: number
>
/**
* Allows you to perform aggregations operations on a ServiceCheck.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {ServiceCheckAggregateArgs} 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 ServiceCheckAggregateArgs>(args: Prisma.Subset<T, ServiceCheckAggregateArgs>): Prisma.PrismaPromise<GetServiceCheckAggregateType<T>>
/**
* Group by ServiceCheck.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {ServiceCheckGroupByArgs} 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 ServiceCheckGroupByArgs,
HasSelectOrTake extends Prisma.Or<
Prisma.Extends<'skip', Prisma.Keys<T>>,
Prisma.Extends<'take', Prisma.Keys<T>>
>,
OrderByArg extends Prisma.True extends HasSelectOrTake
? { orderBy: ServiceCheckGroupByArgs['orderBy'] }
: { orderBy?: ServiceCheckGroupByArgs['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, ServiceCheckGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetServiceCheckGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
/**
* Fields of the ServiceCheck model
*/
readonly fields: ServiceCheckFieldRefs;
}
/**
* The delegate class that acts as a "Promise-like" for ServiceCheck.
* 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__ServiceCheckClient<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 ServiceCheck model
*/
export interface ServiceCheckFieldRefs {
readonly id: Prisma.FieldRef<"ServiceCheck", 'Int'>
readonly name: Prisma.FieldRef<"ServiceCheck", 'String'>
readonly url: Prisma.FieldRef<"ServiceCheck", 'String'>
readonly status: Prisma.FieldRef<"ServiceCheck", 'String'>
readonly latencyMs: Prisma.FieldRef<"ServiceCheck", 'Int'>
readonly message: Prisma.FieldRef<"ServiceCheck", 'String'>
readonly lastCheckAt: Prisma.FieldRef<"ServiceCheck", 'DateTime'>
readonly createdAt: Prisma.FieldRef<"ServiceCheck", 'DateTime'>
readonly updatedAt: Prisma.FieldRef<"ServiceCheck", 'DateTime'>
}
// Custom InputTypes
/**
* ServiceCheck findUnique
*/
export type ServiceCheckFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the ServiceCheck
*/
select?: Prisma.ServiceCheckSelect<ExtArgs> | null
/**
* Omit specific fields from the ServiceCheck
*/
omit?: Prisma.ServiceCheckOmit<ExtArgs> | null
/**
* Filter, which ServiceCheck to fetch.
*/
where: Prisma.ServiceCheckWhereUniqueInput
}
/**
* ServiceCheck findUniqueOrThrow
*/
export type ServiceCheckFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the ServiceCheck
*/
select?: Prisma.ServiceCheckSelect<ExtArgs> | null
/**
* Omit specific fields from the ServiceCheck
*/
omit?: Prisma.ServiceCheckOmit<ExtArgs> | null
/**
* Filter, which ServiceCheck to fetch.
*/
where: Prisma.ServiceCheckWhereUniqueInput
}
/**
* ServiceCheck findFirst
*/
export type ServiceCheckFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the ServiceCheck
*/
select?: Prisma.ServiceCheckSelect<ExtArgs> | null
/**
* Omit specific fields from the ServiceCheck
*/
omit?: Prisma.ServiceCheckOmit<ExtArgs> | null
/**
* Filter, which ServiceCheck to fetch.
*/
where?: Prisma.ServiceCheckWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of ServiceChecks to fetch.
*/
orderBy?: Prisma.ServiceCheckOrderByWithRelationInput | Prisma.ServiceCheckOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the position for searching for ServiceChecks.
*/
cursor?: Prisma.ServiceCheckWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` ServiceChecks 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` ServiceChecks.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
*
* Filter by unique combinations of ServiceChecks.
*/
distinct?: Prisma.ServiceCheckScalarFieldEnum | Prisma.ServiceCheckScalarFieldEnum[]
}
/**
* ServiceCheck findFirstOrThrow
*/
export type ServiceCheckFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the ServiceCheck
*/
select?: Prisma.ServiceCheckSelect<ExtArgs> | null
/**
* Omit specific fields from the ServiceCheck
*/
omit?: Prisma.ServiceCheckOmit<ExtArgs> | null
/**
* Filter, which ServiceCheck to fetch.
*/
where?: Prisma.ServiceCheckWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of ServiceChecks to fetch.
*/
orderBy?: Prisma.ServiceCheckOrderByWithRelationInput | Prisma.ServiceCheckOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the position for searching for ServiceChecks.
*/
cursor?: Prisma.ServiceCheckWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` ServiceChecks 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` ServiceChecks.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
*
* Filter by unique combinations of ServiceChecks.
*/
distinct?: Prisma.ServiceCheckScalarFieldEnum | Prisma.ServiceCheckScalarFieldEnum[]
}
/**
* ServiceCheck findMany
*/
export type ServiceCheckFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the ServiceCheck
*/
select?: Prisma.ServiceCheckSelect<ExtArgs> | null
/**
* Omit specific fields from the ServiceCheck
*/
omit?: Prisma.ServiceCheckOmit<ExtArgs> | null
/**
* Filter, which ServiceChecks to fetch.
*/
where?: Prisma.ServiceCheckWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of ServiceChecks to fetch.
*/
orderBy?: Prisma.ServiceCheckOrderByWithRelationInput | Prisma.ServiceCheckOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the position for listing ServiceChecks.
*/
cursor?: Prisma.ServiceCheckWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` ServiceChecks 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` ServiceChecks.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
*
* Filter by unique combinations of ServiceChecks.
*/
distinct?: Prisma.ServiceCheckScalarFieldEnum | Prisma.ServiceCheckScalarFieldEnum[]
}
/**
* ServiceCheck create
*/
export type ServiceCheckCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the ServiceCheck
*/
select?: Prisma.ServiceCheckSelect<ExtArgs> | null
/**
* Omit specific fields from the ServiceCheck
*/
omit?: Prisma.ServiceCheckOmit<ExtArgs> | null
/**
* The data needed to create a ServiceCheck.
*/
data: Prisma.XOR<Prisma.ServiceCheckCreateInput, Prisma.ServiceCheckUncheckedCreateInput>
}
/**
* ServiceCheck createMany
*/
export type ServiceCheckCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* The data used to create many ServiceChecks.
*/
data: Prisma.ServiceCheckCreateManyInput | Prisma.ServiceCheckCreateManyInput[]
skipDuplicates?: boolean
}
/**
* ServiceCheck update
*/
export type ServiceCheckUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the ServiceCheck
*/
select?: Prisma.ServiceCheckSelect<ExtArgs> | null
/**
* Omit specific fields from the ServiceCheck
*/
omit?: Prisma.ServiceCheckOmit<ExtArgs> | null
/**
* The data needed to update a ServiceCheck.
*/
data: Prisma.XOR<Prisma.ServiceCheckUpdateInput, Prisma.ServiceCheckUncheckedUpdateInput>
/**
* Choose, which ServiceCheck to update.
*/
where: Prisma.ServiceCheckWhereUniqueInput
}
/**
* ServiceCheck updateMany
*/
export type ServiceCheckUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* The data used to update ServiceChecks.
*/
data: Prisma.XOR<Prisma.ServiceCheckUpdateManyMutationInput, Prisma.ServiceCheckUncheckedUpdateManyInput>
/**
* Filter which ServiceChecks to update
*/
where?: Prisma.ServiceCheckWhereInput
/**
* Limit how many ServiceChecks to update.
*/
limit?: number
}
/**
* ServiceCheck upsert
*/
export type ServiceCheckUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the ServiceCheck
*/
select?: Prisma.ServiceCheckSelect<ExtArgs> | null
/**
* Omit specific fields from the ServiceCheck
*/
omit?: Prisma.ServiceCheckOmit<ExtArgs> | null
/**
* The filter to search for the ServiceCheck to update in case it exists.
*/
where: Prisma.ServiceCheckWhereUniqueInput
/**
* In case the ServiceCheck found by the `where` argument doesn't exist, create a new ServiceCheck with this data.
*/
create: Prisma.XOR<Prisma.ServiceCheckCreateInput, Prisma.ServiceCheckUncheckedCreateInput>
/**
* In case the ServiceCheck was found with the provided `where` argument, update it with this data.
*/
update: Prisma.XOR<Prisma.ServiceCheckUpdateInput, Prisma.ServiceCheckUncheckedUpdateInput>
}
/**
* ServiceCheck delete
*/
export type ServiceCheckDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the ServiceCheck
*/
select?: Prisma.ServiceCheckSelect<ExtArgs> | null
/**
* Omit specific fields from the ServiceCheck
*/
omit?: Prisma.ServiceCheckOmit<ExtArgs> | null
/**
* Filter which ServiceCheck to delete.
*/
where: Prisma.ServiceCheckWhereUniqueInput
}
/**
* ServiceCheck deleteMany
*/
export type ServiceCheckDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Filter which ServiceChecks to delete
*/
where?: Prisma.ServiceCheckWhereInput
/**
* Limit how many ServiceChecks to delete.
*/
limit?: number
}
/**
* ServiceCheck without action
*/
export type ServiceCheckDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the ServiceCheck
*/
select?: Prisma.ServiceCheckSelect<ExtArgs> | null
/**
* Omit specific fields from the ServiceCheck
*/
omit?: Prisma.ServiceCheckOmit<ExtArgs> | null
}