/* !!! This is code generated by Prisma. Do not edit directly. !!! */ /* eslint-disable */ // biome-ignore-all lint: generated file // @ts-nocheck /* * This file exports the `AuditChainHead` 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 AuditChainHead * */ export type AuditChainHeadModel = runtime.Types.Result.DefaultSelection export type AggregateAuditChainHead = { _count: AuditChainHeadCountAggregateOutputType | null _min: AuditChainHeadMinAggregateOutputType | null _max: AuditChainHeadMaxAggregateOutputType | null } export type AuditChainHeadMinAggregateOutputType = { chainKey: string | null tenantId: string | null eventId: string | null eventHash: string | null eventCreatedAt: Date | null headMac: string | null } export type AuditChainHeadMaxAggregateOutputType = { chainKey: string | null tenantId: string | null eventId: string | null eventHash: string | null eventCreatedAt: Date | null headMac: string | null } export type AuditChainHeadCountAggregateOutputType = { chainKey: number tenantId: number eventId: number eventHash: number eventCreatedAt: number headMac: number _all: number } export type AuditChainHeadMinAggregateInputType = { chainKey?: true tenantId?: true eventId?: true eventHash?: true eventCreatedAt?: true headMac?: true } export type AuditChainHeadMaxAggregateInputType = { chainKey?: true tenantId?: true eventId?: true eventHash?: true eventCreatedAt?: true headMac?: true } export type AuditChainHeadCountAggregateInputType = { chainKey?: true tenantId?: true eventId?: true eventHash?: true eventCreatedAt?: true headMac?: true _all?: true } export type AuditChainHeadAggregateArgs = { /** * Filter which AuditChainHead to aggregate. */ where?: Prisma.AuditChainHeadWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of AuditChainHeads to fetch. */ orderBy?: Prisma.AuditChainHeadOrderByWithRelationInput | Prisma.AuditChainHeadOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the start position */ cursor?: Prisma.AuditChainHeadWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` AuditChainHeads 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` AuditChainHeads. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Count returned AuditChainHeads **/ _count?: true | AuditChainHeadCountAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the minimum value **/ _min?: AuditChainHeadMinAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the maximum value **/ _max?: AuditChainHeadMaxAggregateInputType } export type GetAuditChainHeadAggregateType = { [P in keyof T & keyof AggregateAuditChainHead]: P extends '_count' | 'count' ? T[P] extends true ? number : Prisma.GetScalarType : Prisma.GetScalarType } export type AuditChainHeadGroupByArgs = { where?: Prisma.AuditChainHeadWhereInput orderBy?: Prisma.AuditChainHeadOrderByWithAggregationInput | Prisma.AuditChainHeadOrderByWithAggregationInput[] by: Prisma.AuditChainHeadScalarFieldEnum[] | Prisma.AuditChainHeadScalarFieldEnum having?: Prisma.AuditChainHeadScalarWhereWithAggregatesInput take?: number skip?: number _count?: AuditChainHeadCountAggregateInputType | true _min?: AuditChainHeadMinAggregateInputType _max?: AuditChainHeadMaxAggregateInputType } export type AuditChainHeadGroupByOutputType = { chainKey: string tenantId: string | null eventId: string eventHash: string eventCreatedAt: Date headMac: string _count: AuditChainHeadCountAggregateOutputType | null _min: AuditChainHeadMinAggregateOutputType | null _max: AuditChainHeadMaxAggregateOutputType | null } export type GetAuditChainHeadGroupByPayload = Prisma.PrismaPromise< Array< Prisma.PickEnumerable & { [P in ((keyof T) & (keyof AuditChainHeadGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : Prisma.GetScalarType : Prisma.GetScalarType } > > export type AuditChainHeadWhereInput = { AND?: Prisma.AuditChainHeadWhereInput | Prisma.AuditChainHeadWhereInput[] OR?: Prisma.AuditChainHeadWhereInput[] NOT?: Prisma.AuditChainHeadWhereInput | Prisma.AuditChainHeadWhereInput[] chainKey?: Prisma.StringFilter<"AuditChainHead"> | string tenantId?: Prisma.StringNullableFilter<"AuditChainHead"> | string | null eventId?: Prisma.StringFilter<"AuditChainHead"> | string eventHash?: Prisma.StringFilter<"AuditChainHead"> | string eventCreatedAt?: Prisma.DateTimeFilter<"AuditChainHead"> | Date | string headMac?: Prisma.StringFilter<"AuditChainHead"> | string } export type AuditChainHeadOrderByWithRelationInput = { chainKey?: Prisma.SortOrder tenantId?: Prisma.SortOrderInput | Prisma.SortOrder eventId?: Prisma.SortOrder eventHash?: Prisma.SortOrder eventCreatedAt?: Prisma.SortOrder headMac?: Prisma.SortOrder } export type AuditChainHeadWhereUniqueInput = Prisma.AtLeast<{ chainKey?: string AND?: Prisma.AuditChainHeadWhereInput | Prisma.AuditChainHeadWhereInput[] OR?: Prisma.AuditChainHeadWhereInput[] NOT?: Prisma.AuditChainHeadWhereInput | Prisma.AuditChainHeadWhereInput[] tenantId?: Prisma.StringNullableFilter<"AuditChainHead"> | string | null eventId?: Prisma.StringFilter<"AuditChainHead"> | string eventHash?: Prisma.StringFilter<"AuditChainHead"> | string eventCreatedAt?: Prisma.DateTimeFilter<"AuditChainHead"> | Date | string headMac?: Prisma.StringFilter<"AuditChainHead"> | string }, "chainKey"> export type AuditChainHeadOrderByWithAggregationInput = { chainKey?: Prisma.SortOrder tenantId?: Prisma.SortOrderInput | Prisma.SortOrder eventId?: Prisma.SortOrder eventHash?: Prisma.SortOrder eventCreatedAt?: Prisma.SortOrder headMac?: Prisma.SortOrder _count?: Prisma.AuditChainHeadCountOrderByAggregateInput _max?: Prisma.AuditChainHeadMaxOrderByAggregateInput _min?: Prisma.AuditChainHeadMinOrderByAggregateInput } export type AuditChainHeadScalarWhereWithAggregatesInput = { AND?: Prisma.AuditChainHeadScalarWhereWithAggregatesInput | Prisma.AuditChainHeadScalarWhereWithAggregatesInput[] OR?: Prisma.AuditChainHeadScalarWhereWithAggregatesInput[] NOT?: Prisma.AuditChainHeadScalarWhereWithAggregatesInput | Prisma.AuditChainHeadScalarWhereWithAggregatesInput[] chainKey?: Prisma.StringWithAggregatesFilter<"AuditChainHead"> | string tenantId?: Prisma.StringNullableWithAggregatesFilter<"AuditChainHead"> | string | null eventId?: Prisma.StringWithAggregatesFilter<"AuditChainHead"> | string eventHash?: Prisma.StringWithAggregatesFilter<"AuditChainHead"> | string eventCreatedAt?: Prisma.DateTimeWithAggregatesFilter<"AuditChainHead"> | Date | string headMac?: Prisma.StringWithAggregatesFilter<"AuditChainHead"> | string } export type AuditChainHeadCreateInput = { chainKey: string tenantId?: string | null eventId: string eventHash: string eventCreatedAt: Date | string headMac: string } export type AuditChainHeadUncheckedCreateInput = { chainKey: string tenantId?: string | null eventId: string eventHash: string eventCreatedAt: Date | string headMac: string } export type AuditChainHeadUpdateInput = { chainKey?: Prisma.StringFieldUpdateOperationsInput | string tenantId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null eventId?: Prisma.StringFieldUpdateOperationsInput | string eventHash?: Prisma.StringFieldUpdateOperationsInput | string eventCreatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string headMac?: Prisma.StringFieldUpdateOperationsInput | string } export type AuditChainHeadUncheckedUpdateInput = { chainKey?: Prisma.StringFieldUpdateOperationsInput | string tenantId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null eventId?: Prisma.StringFieldUpdateOperationsInput | string eventHash?: Prisma.StringFieldUpdateOperationsInput | string eventCreatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string headMac?: Prisma.StringFieldUpdateOperationsInput | string } export type AuditChainHeadCreateManyInput = { chainKey: string tenantId?: string | null eventId: string eventHash: string eventCreatedAt: Date | string headMac: string } export type AuditChainHeadUpdateManyMutationInput = { chainKey?: Prisma.StringFieldUpdateOperationsInput | string tenantId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null eventId?: Prisma.StringFieldUpdateOperationsInput | string eventHash?: Prisma.StringFieldUpdateOperationsInput | string eventCreatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string headMac?: Prisma.StringFieldUpdateOperationsInput | string } export type AuditChainHeadUncheckedUpdateManyInput = { chainKey?: Prisma.StringFieldUpdateOperationsInput | string tenantId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null eventId?: Prisma.StringFieldUpdateOperationsInput | string eventHash?: Prisma.StringFieldUpdateOperationsInput | string eventCreatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string headMac?: Prisma.StringFieldUpdateOperationsInput | string } export type AuditChainHeadCountOrderByAggregateInput = { chainKey?: Prisma.SortOrder tenantId?: Prisma.SortOrder eventId?: Prisma.SortOrder eventHash?: Prisma.SortOrder eventCreatedAt?: Prisma.SortOrder headMac?: Prisma.SortOrder } export type AuditChainHeadMaxOrderByAggregateInput = { chainKey?: Prisma.SortOrder tenantId?: Prisma.SortOrder eventId?: Prisma.SortOrder eventHash?: Prisma.SortOrder eventCreatedAt?: Prisma.SortOrder headMac?: Prisma.SortOrder } export type AuditChainHeadMinOrderByAggregateInput = { chainKey?: Prisma.SortOrder tenantId?: Prisma.SortOrder eventId?: Prisma.SortOrder eventHash?: Prisma.SortOrder eventCreatedAt?: Prisma.SortOrder headMac?: Prisma.SortOrder } export type AuditChainHeadSelect = runtime.Types.Extensions.GetSelect<{ chainKey?: boolean tenantId?: boolean eventId?: boolean eventHash?: boolean eventCreatedAt?: boolean headMac?: boolean }, ExtArgs["result"]["auditChainHead"]> export type AuditChainHeadSelectCreateManyAndReturn = runtime.Types.Extensions.GetSelect<{ chainKey?: boolean tenantId?: boolean eventId?: boolean eventHash?: boolean eventCreatedAt?: boolean headMac?: boolean }, ExtArgs["result"]["auditChainHead"]> export type AuditChainHeadSelectUpdateManyAndReturn = runtime.Types.Extensions.GetSelect<{ chainKey?: boolean tenantId?: boolean eventId?: boolean eventHash?: boolean eventCreatedAt?: boolean headMac?: boolean }, ExtArgs["result"]["auditChainHead"]> export type AuditChainHeadSelectScalar = { chainKey?: boolean tenantId?: boolean eventId?: boolean eventHash?: boolean eventCreatedAt?: boolean headMac?: boolean } export type AuditChainHeadOmit = runtime.Types.Extensions.GetOmit<"chainKey" | "tenantId" | "eventId" | "eventHash" | "eventCreatedAt" | "headMac", ExtArgs["result"]["auditChainHead"]> export type $AuditChainHeadPayload = { name: "AuditChainHead" objects: {} scalars: runtime.Types.Extensions.GetPayloadResult<{ chainKey: string tenantId: string | null eventId: string eventHash: string eventCreatedAt: Date headMac: string }, ExtArgs["result"]["auditChainHead"]> composites: {} } export type AuditChainHeadGetPayload = runtime.Types.Result.GetResult export type AuditChainHeadCountArgs = Omit & { select?: AuditChainHeadCountAggregateInputType | true } export interface AuditChainHeadDelegate { [K: symbol]: { types: Prisma.TypeMap['model']['AuditChainHead'], meta: { name: 'AuditChainHead' } } /** * Find zero or one AuditChainHead that matches the filter. * @param {AuditChainHeadFindUniqueArgs} args - Arguments to find a AuditChainHead * @example * // Get one AuditChainHead * const auditChainHead = await prisma.auditChainHead.findUnique({ * where: { * // ... provide filter here * } * }) */ findUnique(args: Prisma.SelectSubset>): Prisma.Prisma__AuditChainHeadClient, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find one AuditChainHead that matches the filter or throw an error with `error.code='P2025'` * if no matches were found. * @param {AuditChainHeadFindUniqueOrThrowArgs} args - Arguments to find a AuditChainHead * @example * // Get one AuditChainHead * const auditChainHead = await prisma.auditChainHead.findUniqueOrThrow({ * where: { * // ... provide filter here * } * }) */ findUniqueOrThrow(args: Prisma.SelectSubset>): Prisma.Prisma__AuditChainHeadClient, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find the first AuditChainHead 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 {AuditChainHeadFindFirstArgs} args - Arguments to find a AuditChainHead * @example * // Get one AuditChainHead * const auditChainHead = await prisma.auditChainHead.findFirst({ * where: { * // ... provide filter here * } * }) */ findFirst(args?: Prisma.SelectSubset>): Prisma.Prisma__AuditChainHeadClient, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find the first AuditChainHead 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 {AuditChainHeadFindFirstOrThrowArgs} args - Arguments to find a AuditChainHead * @example * // Get one AuditChainHead * const auditChainHead = await prisma.auditChainHead.findFirstOrThrow({ * where: { * // ... provide filter here * } * }) */ findFirstOrThrow(args?: Prisma.SelectSubset>): Prisma.Prisma__AuditChainHeadClient, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find zero or more AuditChainHeads 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 {AuditChainHeadFindManyArgs} args - Arguments to filter and select certain fields only. * @example * // Get all AuditChainHeads * const auditChainHeads = await prisma.auditChainHead.findMany() * * // Get first 10 AuditChainHeads * const auditChainHeads = await prisma.auditChainHead.findMany({ take: 10 }) * * // Only select the `chainKey` * const auditChainHeadWithChainKeyOnly = await prisma.auditChainHead.findMany({ select: { chainKey: true } }) * */ findMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>> /** * Create a AuditChainHead. * @param {AuditChainHeadCreateArgs} args - Arguments to create a AuditChainHead. * @example * // Create one AuditChainHead * const AuditChainHead = await prisma.auditChainHead.create({ * data: { * // ... data to create a AuditChainHead * } * }) * */ create(args: Prisma.SelectSubset>): Prisma.Prisma__AuditChainHeadClient, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Create many AuditChainHeads. * @param {AuditChainHeadCreateManyArgs} args - Arguments to create many AuditChainHeads. * @example * // Create many AuditChainHeads * const auditChainHead = await prisma.auditChainHead.createMany({ * data: [ * // ... provide data here * ] * }) * */ createMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Create many AuditChainHeads and returns the data saved in the database. * @param {AuditChainHeadCreateManyAndReturnArgs} args - Arguments to create many AuditChainHeads. * @example * // Create many AuditChainHeads * const auditChainHead = await prisma.auditChainHead.createManyAndReturn({ * data: [ * // ... provide data here * ] * }) * * // Create many AuditChainHeads and only return the `chainKey` * const auditChainHeadWithChainKeyOnly = await prisma.auditChainHead.createManyAndReturn({ * select: { chainKey: true }, * data: [ * // ... provide data here * ] * }) * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * */ createManyAndReturn(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "createManyAndReturn", GlobalOmitOptions>> /** * Delete a AuditChainHead. * @param {AuditChainHeadDeleteArgs} args - Arguments to delete one AuditChainHead. * @example * // Delete one AuditChainHead * const AuditChainHead = await prisma.auditChainHead.delete({ * where: { * // ... filter to delete one AuditChainHead * } * }) * */ delete(args: Prisma.SelectSubset>): Prisma.Prisma__AuditChainHeadClient, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Update one AuditChainHead. * @param {AuditChainHeadUpdateArgs} args - Arguments to update one AuditChainHead. * @example * // Update one AuditChainHead * const auditChainHead = await prisma.auditChainHead.update({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ update(args: Prisma.SelectSubset>): Prisma.Prisma__AuditChainHeadClient, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Delete zero or more AuditChainHeads. * @param {AuditChainHeadDeleteManyArgs} args - Arguments to filter AuditChainHeads to delete. * @example * // Delete a few AuditChainHeads * const { count } = await prisma.auditChainHead.deleteMany({ * where: { * // ... provide filter here * } * }) * */ deleteMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Update zero or more AuditChainHeads. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {AuditChainHeadUpdateManyArgs} args - Arguments to update one or more rows. * @example * // Update many AuditChainHeads * const auditChainHead = await prisma.auditChainHead.updateMany({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ updateMany(args: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Update zero or more AuditChainHeads and returns the data updated in the database. * @param {AuditChainHeadUpdateManyAndReturnArgs} args - Arguments to update many AuditChainHeads. * @example * // Update many AuditChainHeads * const auditChainHead = await prisma.auditChainHead.updateManyAndReturn({ * where: { * // ... provide filter here * }, * data: [ * // ... provide data here * ] * }) * * // Update zero or more AuditChainHeads and only return the `chainKey` * const auditChainHeadWithChainKeyOnly = await prisma.auditChainHead.updateManyAndReturn({ * select: { chainKey: true }, * where: { * // ... provide filter here * }, * data: [ * // ... provide data here * ] * }) * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * */ updateManyAndReturn(args: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "updateManyAndReturn", GlobalOmitOptions>> /** * Create or update one AuditChainHead. * @param {AuditChainHeadUpsertArgs} args - Arguments to update or create a AuditChainHead. * @example * // Update or create a AuditChainHead * const auditChainHead = await prisma.auditChainHead.upsert({ * create: { * // ... data to create a AuditChainHead * }, * update: { * // ... in case it already exists, update * }, * where: { * // ... the filter for the AuditChainHead we want to update * } * }) */ upsert(args: Prisma.SelectSubset>): Prisma.Prisma__AuditChainHeadClient, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Count the number of AuditChainHeads. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {AuditChainHeadCountArgs} args - Arguments to filter AuditChainHeads to count. * @example * // Count the number of AuditChainHeads * const count = await prisma.auditChainHead.count({ * where: { * // ... the filter for the AuditChainHeads 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 AuditChainHead. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {AuditChainHeadAggregateArgs} 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 AuditChainHead. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {AuditChainHeadGroupByArgs} 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 AuditChainHeadGroupByArgs, HasSelectOrTake extends Prisma.Or< Prisma.Extends<'skip', Prisma.Keys>, Prisma.Extends<'take', Prisma.Keys> >, OrderByArg extends Prisma.True extends HasSelectOrTake ? { orderBy: AuditChainHeadGroupByArgs['orderBy'] } : { orderBy?: AuditChainHeadGroupByArgs['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 ? GetAuditChainHeadGroupByPayload : Prisma.PrismaPromise /** * Fields of the AuditChainHead model */ readonly fields: AuditChainHeadFieldRefs; } /** * The delegate class that acts as a "Promise-like" for AuditChainHead. * 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__AuditChainHeadClient 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 AuditChainHead model */ export interface AuditChainHeadFieldRefs { readonly chainKey: Prisma.FieldRef<"AuditChainHead", 'String'> readonly tenantId: Prisma.FieldRef<"AuditChainHead", 'String'> readonly eventId: Prisma.FieldRef<"AuditChainHead", 'String'> readonly eventHash: Prisma.FieldRef<"AuditChainHead", 'String'> readonly eventCreatedAt: Prisma.FieldRef<"AuditChainHead", 'DateTime'> readonly headMac: Prisma.FieldRef<"AuditChainHead", 'String'> } // Custom InputTypes /** * AuditChainHead findUnique */ export type AuditChainHeadFindUniqueArgs = { /** * Select specific fields to fetch from the AuditChainHead */ select?: Prisma.AuditChainHeadSelect | null /** * Omit specific fields from the AuditChainHead */ omit?: Prisma.AuditChainHeadOmit | null /** * Filter, which AuditChainHead to fetch. */ where: Prisma.AuditChainHeadWhereUniqueInput } /** * AuditChainHead findUniqueOrThrow */ export type AuditChainHeadFindUniqueOrThrowArgs = { /** * Select specific fields to fetch from the AuditChainHead */ select?: Prisma.AuditChainHeadSelect | null /** * Omit specific fields from the AuditChainHead */ omit?: Prisma.AuditChainHeadOmit | null /** * Filter, which AuditChainHead to fetch. */ where: Prisma.AuditChainHeadWhereUniqueInput } /** * AuditChainHead findFirst */ export type AuditChainHeadFindFirstArgs = { /** * Select specific fields to fetch from the AuditChainHead */ select?: Prisma.AuditChainHeadSelect | null /** * Omit specific fields from the AuditChainHead */ omit?: Prisma.AuditChainHeadOmit | null /** * Filter, which AuditChainHead to fetch. */ where?: Prisma.AuditChainHeadWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of AuditChainHeads to fetch. */ orderBy?: Prisma.AuditChainHeadOrderByWithRelationInput | Prisma.AuditChainHeadOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for AuditChainHeads. */ cursor?: Prisma.AuditChainHeadWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` AuditChainHeads 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` AuditChainHeads. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of AuditChainHeads. */ distinct?: Prisma.AuditChainHeadScalarFieldEnum | Prisma.AuditChainHeadScalarFieldEnum[] } /** * AuditChainHead findFirstOrThrow */ export type AuditChainHeadFindFirstOrThrowArgs = { /** * Select specific fields to fetch from the AuditChainHead */ select?: Prisma.AuditChainHeadSelect | null /** * Omit specific fields from the AuditChainHead */ omit?: Prisma.AuditChainHeadOmit | null /** * Filter, which AuditChainHead to fetch. */ where?: Prisma.AuditChainHeadWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of AuditChainHeads to fetch. */ orderBy?: Prisma.AuditChainHeadOrderByWithRelationInput | Prisma.AuditChainHeadOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for AuditChainHeads. */ cursor?: Prisma.AuditChainHeadWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` AuditChainHeads 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` AuditChainHeads. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of AuditChainHeads. */ distinct?: Prisma.AuditChainHeadScalarFieldEnum | Prisma.AuditChainHeadScalarFieldEnum[] } /** * AuditChainHead findMany */ export type AuditChainHeadFindManyArgs = { /** * Select specific fields to fetch from the AuditChainHead */ select?: Prisma.AuditChainHeadSelect | null /** * Omit specific fields from the AuditChainHead */ omit?: Prisma.AuditChainHeadOmit | null /** * Filter, which AuditChainHeads to fetch. */ where?: Prisma.AuditChainHeadWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of AuditChainHeads to fetch. */ orderBy?: Prisma.AuditChainHeadOrderByWithRelationInput | Prisma.AuditChainHeadOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for listing AuditChainHeads. */ cursor?: Prisma.AuditChainHeadWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` AuditChainHeads 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` AuditChainHeads. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of AuditChainHeads. */ distinct?: Prisma.AuditChainHeadScalarFieldEnum | Prisma.AuditChainHeadScalarFieldEnum[] } /** * AuditChainHead create */ export type AuditChainHeadCreateArgs = { /** * Select specific fields to fetch from the AuditChainHead */ select?: Prisma.AuditChainHeadSelect | null /** * Omit specific fields from the AuditChainHead */ omit?: Prisma.AuditChainHeadOmit | null /** * The data needed to create a AuditChainHead. */ data: Prisma.XOR } /** * AuditChainHead createMany */ export type AuditChainHeadCreateManyArgs = { /** * The data used to create many AuditChainHeads. */ data: Prisma.AuditChainHeadCreateManyInput | Prisma.AuditChainHeadCreateManyInput[] skipDuplicates?: boolean } /** * AuditChainHead createManyAndReturn */ export type AuditChainHeadCreateManyAndReturnArgs = { /** * Select specific fields to fetch from the AuditChainHead */ select?: Prisma.AuditChainHeadSelectCreateManyAndReturn | null /** * Omit specific fields from the AuditChainHead */ omit?: Prisma.AuditChainHeadOmit | null /** * The data used to create many AuditChainHeads. */ data: Prisma.AuditChainHeadCreateManyInput | Prisma.AuditChainHeadCreateManyInput[] skipDuplicates?: boolean } /** * AuditChainHead update */ export type AuditChainHeadUpdateArgs = { /** * Select specific fields to fetch from the AuditChainHead */ select?: Prisma.AuditChainHeadSelect | null /** * Omit specific fields from the AuditChainHead */ omit?: Prisma.AuditChainHeadOmit | null /** * The data needed to update a AuditChainHead. */ data: Prisma.XOR /** * Choose, which AuditChainHead to update. */ where: Prisma.AuditChainHeadWhereUniqueInput } /** * AuditChainHead updateMany */ export type AuditChainHeadUpdateManyArgs = { /** * The data used to update AuditChainHeads. */ data: Prisma.XOR /** * Filter which AuditChainHeads to update */ where?: Prisma.AuditChainHeadWhereInput /** * Limit how many AuditChainHeads to update. */ limit?: number } /** * AuditChainHead updateManyAndReturn */ export type AuditChainHeadUpdateManyAndReturnArgs = { /** * Select specific fields to fetch from the AuditChainHead */ select?: Prisma.AuditChainHeadSelectUpdateManyAndReturn | null /** * Omit specific fields from the AuditChainHead */ omit?: Prisma.AuditChainHeadOmit | null /** * The data used to update AuditChainHeads. */ data: Prisma.XOR /** * Filter which AuditChainHeads to update */ where?: Prisma.AuditChainHeadWhereInput /** * Limit how many AuditChainHeads to update. */ limit?: number } /** * AuditChainHead upsert */ export type AuditChainHeadUpsertArgs = { /** * Select specific fields to fetch from the AuditChainHead */ select?: Prisma.AuditChainHeadSelect | null /** * Omit specific fields from the AuditChainHead */ omit?: Prisma.AuditChainHeadOmit | null /** * The filter to search for the AuditChainHead to update in case it exists. */ where: Prisma.AuditChainHeadWhereUniqueInput /** * In case the AuditChainHead found by the `where` argument doesn't exist, create a new AuditChainHead with this data. */ create: Prisma.XOR /** * In case the AuditChainHead was found with the provided `where` argument, update it with this data. */ update: Prisma.XOR } /** * AuditChainHead delete */ export type AuditChainHeadDeleteArgs = { /** * Select specific fields to fetch from the AuditChainHead */ select?: Prisma.AuditChainHeadSelect | null /** * Omit specific fields from the AuditChainHead */ omit?: Prisma.AuditChainHeadOmit | null /** * Filter which AuditChainHead to delete. */ where: Prisma.AuditChainHeadWhereUniqueInput } /** * AuditChainHead deleteMany */ export type AuditChainHeadDeleteManyArgs = { /** * Filter which AuditChainHeads to delete */ where?: Prisma.AuditChainHeadWhereInput /** * Limit how many AuditChainHeads to delete. */ limit?: number } /** * AuditChainHead without action */ export type AuditChainHeadDefaultArgs = { /** * Select specific fields to fetch from the AuditChainHead */ select?: Prisma.AuditChainHeadSelect | null /** * Omit specific fields from the AuditChainHead */ omit?: Prisma.AuditChainHeadOmit | null }