/* !!! 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 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 = { /** * 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 = { [P in keyof T & keyof AggregateServiceCheck]: P extends '_count' | 'count' ? T[P] extends true ? number : Prisma.GetScalarType : Prisma.GetScalarType } export type ServiceCheckGroupByArgs = { 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 = Prisma.PrismaPromise< Array< Prisma.PickEnumerable & { [P in ((keyof T) & (keyof ServiceCheckGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : Prisma.GetScalarType : Prisma.GetScalarType } > > 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 = 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 = runtime.Types.Extensions.GetOmit<"id" | "name" | "url" | "status" | "latencyMs" | "message" | "lastCheckAt" | "createdAt" | "updatedAt", ExtArgs["result"]["serviceCheck"]> export type $ServiceCheckPayload = { 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 = runtime.Types.Result.GetResult export type ServiceCheckCountArgs = Omit & { select?: ServiceCheckCountAggregateInputType | true } export interface ServiceCheckDelegate { [K: symbol]: { types: Prisma.TypeMap['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(args: Prisma.SelectSubset>): Prisma.Prisma__ServiceCheckClient, 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(args: Prisma.SelectSubset>): Prisma.Prisma__ServiceCheckClient, 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(args?: Prisma.SelectSubset>): Prisma.Prisma__ServiceCheckClient, 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(args?: Prisma.SelectSubset>): Prisma.Prisma__ServiceCheckClient, 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(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, 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(args: Prisma.SelectSubset>): Prisma.Prisma__ServiceCheckClient, 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(args?: Prisma.SelectSubset>): Prisma.PrismaPromise /** * 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(args: Prisma.SelectSubset>): Prisma.Prisma__ServiceCheckClient, 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(args: Prisma.SelectSubset>): Prisma.Prisma__ServiceCheckClient, 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(args?: Prisma.SelectSubset>): Prisma.PrismaPromise /** * 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(args: Prisma.SelectSubset>): Prisma.PrismaPromise /** * 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(args: Prisma.SelectSubset>): Prisma.Prisma__ServiceCheckClient, 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( args?: Prisma.Subset, ): Prisma.PrismaPromise< T extends runtime.Types.Utils.Record<'select', any> ? T['select'] extends true ? number : Prisma.GetScalarType : number > /** * Allows you to perform aggregations operations on a 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(args: Prisma.Subset): Prisma.PrismaPromise> /** * 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>, Prisma.Extends<'take', Prisma.Keys> >, OrderByArg extends Prisma.True extends HasSelectOrTake ? { orderBy: ServiceCheckGroupByArgs['orderBy'] } : { orderBy?: ServiceCheckGroupByArgs['orderBy'] }, OrderFields extends Prisma.ExcludeUnderscoreKeys>>, ByFields extends Prisma.MaybeTupleToUnion, ByValid extends Prisma.Has, HavingFields extends Prisma.GetHavingFields, HavingValid extends Prisma.Has, ByEmpty extends T['by'] extends never[] ? Prisma.True : Prisma.False, InputErrors extends ByEmpty extends Prisma.True ? `Error: "by" must not be empty.` : HavingValid extends Prisma.False ? { [P in HavingFields]: P extends ByFields ? never : P extends string ? `Error: Field "${P}" used in "having" needs to be provided in "by".` : [ Error, 'Field ', P, ` in "having" needs to be provided in "by"`, ] }[HavingFields] : 'take' extends Prisma.Keys ? 'orderBy' extends Prisma.Keys ? ByValid extends Prisma.True ? {} : { [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` }[OrderFields] : 'Error: If you provide "take", you also need to provide "orderBy"' : 'skip' extends Prisma.Keys ? 'orderBy' extends Prisma.Keys ? ByValid extends Prisma.True ? {} : { [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` }[OrderFields] : 'Error: If you provide "skip", you also need to provide "orderBy"' : ByValid extends Prisma.True ? {} : { [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` }[OrderFields] >(args: Prisma.SubsetIntersection & InputErrors): {} extends InputErrors ? GetServiceCheckGroupByPayload : Prisma.PrismaPromise /** * 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 extends Prisma.PrismaPromise { 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(onfulfilled?: ((value: T) => TResult1 | PromiseLike) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike) | undefined | null): runtime.Types.Utils.JsPromise /** * Attaches a callback for only the rejection of the Promise. * @param onrejected The callback to execute when the Promise is rejected. * @returns A Promise for the completion of the callback. */ catch(onrejected?: ((reason: any) => TResult | PromiseLike) | undefined | null): runtime.Types.Utils.JsPromise /** * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The * resolved value cannot be modified from the callback. * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected). * @returns A Promise for the completion of the callback. */ finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise } /** * Fields of the 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 = { /** * Select specific fields to fetch from the ServiceCheck */ select?: Prisma.ServiceCheckSelect | null /** * Omit specific fields from the ServiceCheck */ omit?: Prisma.ServiceCheckOmit | null /** * Filter, which ServiceCheck to fetch. */ where: Prisma.ServiceCheckWhereUniqueInput } /** * ServiceCheck findUniqueOrThrow */ export type ServiceCheckFindUniqueOrThrowArgs = { /** * Select specific fields to fetch from the ServiceCheck */ select?: Prisma.ServiceCheckSelect | null /** * Omit specific fields from the ServiceCheck */ omit?: Prisma.ServiceCheckOmit | null /** * Filter, which ServiceCheck to fetch. */ where: Prisma.ServiceCheckWhereUniqueInput } /** * ServiceCheck findFirst */ export type ServiceCheckFindFirstArgs = { /** * Select specific fields to fetch from the ServiceCheck */ select?: Prisma.ServiceCheckSelect | null /** * Omit specific fields from the ServiceCheck */ omit?: Prisma.ServiceCheckOmit | 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 = { /** * Select specific fields to fetch from the ServiceCheck */ select?: Prisma.ServiceCheckSelect | null /** * Omit specific fields from the ServiceCheck */ omit?: Prisma.ServiceCheckOmit | 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 = { /** * Select specific fields to fetch from the ServiceCheck */ select?: Prisma.ServiceCheckSelect | null /** * Omit specific fields from the ServiceCheck */ omit?: Prisma.ServiceCheckOmit | 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 = { /** * Select specific fields to fetch from the ServiceCheck */ select?: Prisma.ServiceCheckSelect | null /** * Omit specific fields from the ServiceCheck */ omit?: Prisma.ServiceCheckOmit | null /** * The data needed to create a ServiceCheck. */ data: Prisma.XOR } /** * ServiceCheck createMany */ export type ServiceCheckCreateManyArgs = { /** * The data used to create many ServiceChecks. */ data: Prisma.ServiceCheckCreateManyInput | Prisma.ServiceCheckCreateManyInput[] skipDuplicates?: boolean } /** * ServiceCheck update */ export type ServiceCheckUpdateArgs = { /** * Select specific fields to fetch from the ServiceCheck */ select?: Prisma.ServiceCheckSelect | null /** * Omit specific fields from the ServiceCheck */ omit?: Prisma.ServiceCheckOmit | null /** * The data needed to update a ServiceCheck. */ data: Prisma.XOR /** * Choose, which ServiceCheck to update. */ where: Prisma.ServiceCheckWhereUniqueInput } /** * ServiceCheck updateMany */ export type ServiceCheckUpdateManyArgs = { /** * The data used to update ServiceChecks. */ data: Prisma.XOR /** * Filter which ServiceChecks to update */ where?: Prisma.ServiceCheckWhereInput /** * Limit how many ServiceChecks to update. */ limit?: number } /** * ServiceCheck upsert */ export type ServiceCheckUpsertArgs = { /** * Select specific fields to fetch from the ServiceCheck */ select?: Prisma.ServiceCheckSelect | null /** * Omit specific fields from the ServiceCheck */ omit?: Prisma.ServiceCheckOmit | 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 /** * In case the ServiceCheck was found with the provided `where` argument, update it with this data. */ update: Prisma.XOR } /** * ServiceCheck delete */ export type ServiceCheckDeleteArgs = { /** * Select specific fields to fetch from the ServiceCheck */ select?: Prisma.ServiceCheckSelect | null /** * Omit specific fields from the ServiceCheck */ omit?: Prisma.ServiceCheckOmit | null /** * Filter which ServiceCheck to delete. */ where: Prisma.ServiceCheckWhereUniqueInput } /** * ServiceCheck deleteMany */ export type ServiceCheckDeleteManyArgs = { /** * Filter which ServiceChecks to delete */ where?: Prisma.ServiceCheckWhereInput /** * Limit how many ServiceChecks to delete. */ limit?: number } /** * ServiceCheck without action */ export type ServiceCheckDefaultArgs = { /** * Select specific fields to fetch from the ServiceCheck */ select?: Prisma.ServiceCheckSelect | null /** * Omit specific fields from the ServiceCheck */ omit?: Prisma.ServiceCheckOmit | null }