import type * as runtime from "@prisma/client/runtime/client"; import type * as Prisma from "../internal/prismaNamespace"; /** * Model StaffEvent * */ export type StaffEventModel = runtime.Types.Result.DefaultSelection; export type AggregateStaffEvent = { _count: StaffEventCountAggregateOutputType | null; _min: StaffEventMinAggregateOutputType | null; _max: StaffEventMaxAggregateOutputType | null; }; export type StaffEventMinAggregateOutputType = { eventId: string | null; timestamp: Date | null; staffComponent: string | null; actionType: string | null; agentId: string | null; source: string | null; entityType: string | null; entityId: string | null; key: string | null; reason: string | null; level: string | null; }; export type StaffEventMaxAggregateOutputType = { eventId: string | null; timestamp: Date | null; staffComponent: string | null; actionType: string | null; agentId: string | null; source: string | null; entityType: string | null; entityId: string | null; key: string | null; reason: string | null; level: string | null; }; export type StaffEventCountAggregateOutputType = { eventId: number; timestamp: number; staffComponent: number; actionType: number; agentId: number; source: number; entityType: number; entityId: number; key: number; reason: number; level: number; metadata: number; _all: number; }; export type StaffEventMinAggregateInputType = { eventId?: true; timestamp?: true; staffComponent?: true; actionType?: true; agentId?: true; source?: true; entityType?: true; entityId?: true; key?: true; reason?: true; level?: true; }; export type StaffEventMaxAggregateInputType = { eventId?: true; timestamp?: true; staffComponent?: true; actionType?: true; agentId?: true; source?: true; entityType?: true; entityId?: true; key?: true; reason?: true; level?: true; }; export type StaffEventCountAggregateInputType = { eventId?: true; timestamp?: true; staffComponent?: true; actionType?: true; agentId?: true; source?: true; entityType?: true; entityId?: true; key?: true; reason?: true; level?: true; metadata?: true; _all?: true; }; export type StaffEventAggregateArgs = { /** * Filter which StaffEvent to aggregate. */ where?: Prisma.StaffEventWhereInput; /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of StaffEvents to fetch. */ orderBy?: Prisma.StaffEventOrderByWithRelationInput | Prisma.StaffEventOrderByWithRelationInput[]; /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the start position */ cursor?: Prisma.StaffEventWhereUniqueInput; /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` StaffEvents 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` StaffEvents. */ skip?: number; /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Count returned StaffEvents **/ _count?: true | StaffEventCountAggregateInputType; /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the minimum value **/ _min?: StaffEventMinAggregateInputType; /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the maximum value **/ _max?: StaffEventMaxAggregateInputType; }; export type GetStaffEventAggregateType = { [P in keyof T & keyof AggregateStaffEvent]: P extends '_count' | 'count' ? T[P] extends true ? number : Prisma.GetScalarType : Prisma.GetScalarType; }; export type StaffEventGroupByArgs = { where?: Prisma.StaffEventWhereInput; orderBy?: Prisma.StaffEventOrderByWithAggregationInput | Prisma.StaffEventOrderByWithAggregationInput[]; by: Prisma.StaffEventScalarFieldEnum[] | Prisma.StaffEventScalarFieldEnum; having?: Prisma.StaffEventScalarWhereWithAggregatesInput; take?: number; skip?: number; _count?: StaffEventCountAggregateInputType | true; _min?: StaffEventMinAggregateInputType; _max?: StaffEventMaxAggregateInputType; }; export type StaffEventGroupByOutputType = { eventId: string; timestamp: Date; staffComponent: string; actionType: string; agentId: string; source: string; entityType: string | null; entityId: string | null; key: string | null; reason: string | null; level: string; metadata: runtime.JsonValue; _count: StaffEventCountAggregateOutputType | null; _min: StaffEventMinAggregateOutputType | null; _max: StaffEventMaxAggregateOutputType | null; }; type GetStaffEventGroupByPayload = Prisma.PrismaPromise & { [P in ((keyof T) & (keyof StaffEventGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : Prisma.GetScalarType : Prisma.GetScalarType; }>>; export type StaffEventWhereInput = { AND?: Prisma.StaffEventWhereInput | Prisma.StaffEventWhereInput[]; OR?: Prisma.StaffEventWhereInput[]; NOT?: Prisma.StaffEventWhereInput | Prisma.StaffEventWhereInput[]; eventId?: Prisma.UuidFilter<"StaffEvent"> | string; timestamp?: Prisma.DateTimeFilter<"StaffEvent"> | Date | string; staffComponent?: Prisma.StringFilter<"StaffEvent"> | string; actionType?: Prisma.StringFilter<"StaffEvent"> | string; agentId?: Prisma.StringFilter<"StaffEvent"> | string; source?: Prisma.StringFilter<"StaffEvent"> | string; entityType?: Prisma.StringNullableFilter<"StaffEvent"> | string | null; entityId?: Prisma.StringNullableFilter<"StaffEvent"> | string | null; key?: Prisma.StringNullableFilter<"StaffEvent"> | string | null; reason?: Prisma.StringNullableFilter<"StaffEvent"> | string | null; level?: Prisma.StringFilter<"StaffEvent"> | string; metadata?: Prisma.JsonFilter<"StaffEvent">; }; export type StaffEventOrderByWithRelationInput = { eventId?: Prisma.SortOrder; timestamp?: Prisma.SortOrder; staffComponent?: Prisma.SortOrder; actionType?: Prisma.SortOrder; agentId?: Prisma.SortOrder; source?: Prisma.SortOrder; entityType?: Prisma.SortOrderInput | Prisma.SortOrder; entityId?: Prisma.SortOrderInput | Prisma.SortOrder; key?: Prisma.SortOrderInput | Prisma.SortOrder; reason?: Prisma.SortOrderInput | Prisma.SortOrder; level?: Prisma.SortOrder; metadata?: Prisma.SortOrder; }; export type StaffEventWhereUniqueInput = Prisma.AtLeast<{ eventId?: string; AND?: Prisma.StaffEventWhereInput | Prisma.StaffEventWhereInput[]; OR?: Prisma.StaffEventWhereInput[]; NOT?: Prisma.StaffEventWhereInput | Prisma.StaffEventWhereInput[]; timestamp?: Prisma.DateTimeFilter<"StaffEvent"> | Date | string; staffComponent?: Prisma.StringFilter<"StaffEvent"> | string; actionType?: Prisma.StringFilter<"StaffEvent"> | string; agentId?: Prisma.StringFilter<"StaffEvent"> | string; source?: Prisma.StringFilter<"StaffEvent"> | string; entityType?: Prisma.StringNullableFilter<"StaffEvent"> | string | null; entityId?: Prisma.StringNullableFilter<"StaffEvent"> | string | null; key?: Prisma.StringNullableFilter<"StaffEvent"> | string | null; reason?: Prisma.StringNullableFilter<"StaffEvent"> | string | null; level?: Prisma.StringFilter<"StaffEvent"> | string; metadata?: Prisma.JsonFilter<"StaffEvent">; }, "eventId">; export type StaffEventOrderByWithAggregationInput = { eventId?: Prisma.SortOrder; timestamp?: Prisma.SortOrder; staffComponent?: Prisma.SortOrder; actionType?: Prisma.SortOrder; agentId?: Prisma.SortOrder; source?: Prisma.SortOrder; entityType?: Prisma.SortOrderInput | Prisma.SortOrder; entityId?: Prisma.SortOrderInput | Prisma.SortOrder; key?: Prisma.SortOrderInput | Prisma.SortOrder; reason?: Prisma.SortOrderInput | Prisma.SortOrder; level?: Prisma.SortOrder; metadata?: Prisma.SortOrder; _count?: Prisma.StaffEventCountOrderByAggregateInput; _max?: Prisma.StaffEventMaxOrderByAggregateInput; _min?: Prisma.StaffEventMinOrderByAggregateInput; }; export type StaffEventScalarWhereWithAggregatesInput = { AND?: Prisma.StaffEventScalarWhereWithAggregatesInput | Prisma.StaffEventScalarWhereWithAggregatesInput[]; OR?: Prisma.StaffEventScalarWhereWithAggregatesInput[]; NOT?: Prisma.StaffEventScalarWhereWithAggregatesInput | Prisma.StaffEventScalarWhereWithAggregatesInput[]; eventId?: Prisma.UuidWithAggregatesFilter<"StaffEvent"> | string; timestamp?: Prisma.DateTimeWithAggregatesFilter<"StaffEvent"> | Date | string; staffComponent?: Prisma.StringWithAggregatesFilter<"StaffEvent"> | string; actionType?: Prisma.StringWithAggregatesFilter<"StaffEvent"> | string; agentId?: Prisma.StringWithAggregatesFilter<"StaffEvent"> | string; source?: Prisma.StringWithAggregatesFilter<"StaffEvent"> | string; entityType?: Prisma.StringNullableWithAggregatesFilter<"StaffEvent"> | string | null; entityId?: Prisma.StringNullableWithAggregatesFilter<"StaffEvent"> | string | null; key?: Prisma.StringNullableWithAggregatesFilter<"StaffEvent"> | string | null; reason?: Prisma.StringNullableWithAggregatesFilter<"StaffEvent"> | string | null; level?: Prisma.StringWithAggregatesFilter<"StaffEvent"> | string; metadata?: Prisma.JsonWithAggregatesFilter<"StaffEvent">; }; export type StaffEventCreateInput = { eventId: string; timestamp?: Date | string; staffComponent: string; actionType: string; agentId: string; source: string; entityType?: string | null; entityId?: string | null; key?: string | null; reason?: string | null; level: string; metadata?: Prisma.JsonNullValueInput | runtime.InputJsonValue; }; export type StaffEventUncheckedCreateInput = { eventId: string; timestamp?: Date | string; staffComponent: string; actionType: string; agentId: string; source: string; entityType?: string | null; entityId?: string | null; key?: string | null; reason?: string | null; level: string; metadata?: Prisma.JsonNullValueInput | runtime.InputJsonValue; }; export type StaffEventUpdateInput = { eventId?: Prisma.StringFieldUpdateOperationsInput | string; timestamp?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string; staffComponent?: Prisma.StringFieldUpdateOperationsInput | string; actionType?: Prisma.StringFieldUpdateOperationsInput | string; agentId?: Prisma.StringFieldUpdateOperationsInput | string; source?: Prisma.StringFieldUpdateOperationsInput | string; entityType?: Prisma.NullableStringFieldUpdateOperationsInput | string | null; entityId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null; key?: Prisma.NullableStringFieldUpdateOperationsInput | string | null; reason?: Prisma.NullableStringFieldUpdateOperationsInput | string | null; level?: Prisma.StringFieldUpdateOperationsInput | string; metadata?: Prisma.JsonNullValueInput | runtime.InputJsonValue; }; export type StaffEventUncheckedUpdateInput = { eventId?: Prisma.StringFieldUpdateOperationsInput | string; timestamp?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string; staffComponent?: Prisma.StringFieldUpdateOperationsInput | string; actionType?: Prisma.StringFieldUpdateOperationsInput | string; agentId?: Prisma.StringFieldUpdateOperationsInput | string; source?: Prisma.StringFieldUpdateOperationsInput | string; entityType?: Prisma.NullableStringFieldUpdateOperationsInput | string | null; entityId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null; key?: Prisma.NullableStringFieldUpdateOperationsInput | string | null; reason?: Prisma.NullableStringFieldUpdateOperationsInput | string | null; level?: Prisma.StringFieldUpdateOperationsInput | string; metadata?: Prisma.JsonNullValueInput | runtime.InputJsonValue; }; export type StaffEventCreateManyInput = { eventId: string; timestamp?: Date | string; staffComponent: string; actionType: string; agentId: string; source: string; entityType?: string | null; entityId?: string | null; key?: string | null; reason?: string | null; level: string; metadata?: Prisma.JsonNullValueInput | runtime.InputJsonValue; }; export type StaffEventUpdateManyMutationInput = { eventId?: Prisma.StringFieldUpdateOperationsInput | string; timestamp?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string; staffComponent?: Prisma.StringFieldUpdateOperationsInput | string; actionType?: Prisma.StringFieldUpdateOperationsInput | string; agentId?: Prisma.StringFieldUpdateOperationsInput | string; source?: Prisma.StringFieldUpdateOperationsInput | string; entityType?: Prisma.NullableStringFieldUpdateOperationsInput | string | null; entityId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null; key?: Prisma.NullableStringFieldUpdateOperationsInput | string | null; reason?: Prisma.NullableStringFieldUpdateOperationsInput | string | null; level?: Prisma.StringFieldUpdateOperationsInput | string; metadata?: Prisma.JsonNullValueInput | runtime.InputJsonValue; }; export type StaffEventUncheckedUpdateManyInput = { eventId?: Prisma.StringFieldUpdateOperationsInput | string; timestamp?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string; staffComponent?: Prisma.StringFieldUpdateOperationsInput | string; actionType?: Prisma.StringFieldUpdateOperationsInput | string; agentId?: Prisma.StringFieldUpdateOperationsInput | string; source?: Prisma.StringFieldUpdateOperationsInput | string; entityType?: Prisma.NullableStringFieldUpdateOperationsInput | string | null; entityId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null; key?: Prisma.NullableStringFieldUpdateOperationsInput | string | null; reason?: Prisma.NullableStringFieldUpdateOperationsInput | string | null; level?: Prisma.StringFieldUpdateOperationsInput | string; metadata?: Prisma.JsonNullValueInput | runtime.InputJsonValue; }; export type StaffEventCountOrderByAggregateInput = { eventId?: Prisma.SortOrder; timestamp?: Prisma.SortOrder; staffComponent?: Prisma.SortOrder; actionType?: Prisma.SortOrder; agentId?: Prisma.SortOrder; source?: Prisma.SortOrder; entityType?: Prisma.SortOrder; entityId?: Prisma.SortOrder; key?: Prisma.SortOrder; reason?: Prisma.SortOrder; level?: Prisma.SortOrder; metadata?: Prisma.SortOrder; }; export type StaffEventMaxOrderByAggregateInput = { eventId?: Prisma.SortOrder; timestamp?: Prisma.SortOrder; staffComponent?: Prisma.SortOrder; actionType?: Prisma.SortOrder; agentId?: Prisma.SortOrder; source?: Prisma.SortOrder; entityType?: Prisma.SortOrder; entityId?: Prisma.SortOrder; key?: Prisma.SortOrder; reason?: Prisma.SortOrder; level?: Prisma.SortOrder; }; export type StaffEventMinOrderByAggregateInput = { eventId?: Prisma.SortOrder; timestamp?: Prisma.SortOrder; staffComponent?: Prisma.SortOrder; actionType?: Prisma.SortOrder; agentId?: Prisma.SortOrder; source?: Prisma.SortOrder; entityType?: Prisma.SortOrder; entityId?: Prisma.SortOrder; key?: Prisma.SortOrder; reason?: Prisma.SortOrder; level?: Prisma.SortOrder; }; export type StaffEventSelect = runtime.Types.Extensions.GetSelect<{ eventId?: boolean; timestamp?: boolean; staffComponent?: boolean; actionType?: boolean; agentId?: boolean; source?: boolean; entityType?: boolean; entityId?: boolean; key?: boolean; reason?: boolean; level?: boolean; metadata?: boolean; }, ExtArgs["result"]["staffEvent"]>; export type StaffEventSelectCreateManyAndReturn = runtime.Types.Extensions.GetSelect<{ eventId?: boolean; timestamp?: boolean; staffComponent?: boolean; actionType?: boolean; agentId?: boolean; source?: boolean; entityType?: boolean; entityId?: boolean; key?: boolean; reason?: boolean; level?: boolean; metadata?: boolean; }, ExtArgs["result"]["staffEvent"]>; export type StaffEventSelectUpdateManyAndReturn = runtime.Types.Extensions.GetSelect<{ eventId?: boolean; timestamp?: boolean; staffComponent?: boolean; actionType?: boolean; agentId?: boolean; source?: boolean; entityType?: boolean; entityId?: boolean; key?: boolean; reason?: boolean; level?: boolean; metadata?: boolean; }, ExtArgs["result"]["staffEvent"]>; export type StaffEventSelectScalar = { eventId?: boolean; timestamp?: boolean; staffComponent?: boolean; actionType?: boolean; agentId?: boolean; source?: boolean; entityType?: boolean; entityId?: boolean; key?: boolean; reason?: boolean; level?: boolean; metadata?: boolean; }; export type StaffEventOmit = runtime.Types.Extensions.GetOmit<"eventId" | "timestamp" | "staffComponent" | "actionType" | "agentId" | "source" | "entityType" | "entityId" | "key" | "reason" | "level" | "metadata", ExtArgs["result"]["staffEvent"]>; export type $StaffEventPayload = { name: "StaffEvent"; objects: {}; scalars: runtime.Types.Extensions.GetPayloadResult<{ eventId: string; timestamp: Date; staffComponent: string; actionType: string; agentId: string; source: string; entityType: string | null; entityId: string | null; key: string | null; reason: string | null; level: string; metadata: runtime.JsonValue; }, ExtArgs["result"]["staffEvent"]>; composites: {}; }; export type StaffEventGetPayload = runtime.Types.Result.GetResult; export type StaffEventCountArgs = Omit & { select?: StaffEventCountAggregateInputType | true; }; export interface StaffEventDelegate { [K: symbol]: { types: Prisma.TypeMap['model']['StaffEvent']; meta: { name: 'StaffEvent'; }; }; /** * Find zero or one StaffEvent that matches the filter. * @param {StaffEventFindUniqueArgs} args - Arguments to find a StaffEvent * @example * // Get one StaffEvent * const staffEvent = await prisma.staffEvent.findUnique({ * where: { * // ... provide filter here * } * }) */ findUnique(args: Prisma.SelectSubset>): Prisma.Prisma__StaffEventClient, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>; /** * Find one StaffEvent that matches the filter or throw an error with `error.code='P2025'` * if no matches were found. * @param {StaffEventFindUniqueOrThrowArgs} args - Arguments to find a StaffEvent * @example * // Get one StaffEvent * const staffEvent = await prisma.staffEvent.findUniqueOrThrow({ * where: { * // ... provide filter here * } * }) */ findUniqueOrThrow(args: Prisma.SelectSubset>): Prisma.Prisma__StaffEventClient, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>; /** * Find the first StaffEvent 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 {StaffEventFindFirstArgs} args - Arguments to find a StaffEvent * @example * // Get one StaffEvent * const staffEvent = await prisma.staffEvent.findFirst({ * where: { * // ... provide filter here * } * }) */ findFirst(args?: Prisma.SelectSubset>): Prisma.Prisma__StaffEventClient, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>; /** * Find the first StaffEvent 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 {StaffEventFindFirstOrThrowArgs} args - Arguments to find a StaffEvent * @example * // Get one StaffEvent * const staffEvent = await prisma.staffEvent.findFirstOrThrow({ * where: { * // ... provide filter here * } * }) */ findFirstOrThrow(args?: Prisma.SelectSubset>): Prisma.Prisma__StaffEventClient, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>; /** * Find zero or more StaffEvents 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 {StaffEventFindManyArgs} args - Arguments to filter and select certain fields only. * @example * // Get all StaffEvents * const staffEvents = await prisma.staffEvent.findMany() * * // Get first 10 StaffEvents * const staffEvents = await prisma.staffEvent.findMany({ take: 10 }) * * // Only select the `eventId` * const staffEventWithEventIdOnly = await prisma.staffEvent.findMany({ select: { eventId: true } }) * */ findMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>>; /** * Create a StaffEvent. * @param {StaffEventCreateArgs} args - Arguments to create a StaffEvent. * @example * // Create one StaffEvent * const StaffEvent = await prisma.staffEvent.create({ * data: { * // ... data to create a StaffEvent * } * }) * */ create(args: Prisma.SelectSubset>): Prisma.Prisma__StaffEventClient, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>; /** * Create many StaffEvents. * @param {StaffEventCreateManyArgs} args - Arguments to create many StaffEvents. * @example * // Create many StaffEvents * const staffEvent = await prisma.staffEvent.createMany({ * data: [ * // ... provide data here * ] * }) * */ createMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise; /** * Create many StaffEvents and returns the data saved in the database. * @param {StaffEventCreateManyAndReturnArgs} args - Arguments to create many StaffEvents. * @example * // Create many StaffEvents * const staffEvent = await prisma.staffEvent.createManyAndReturn({ * data: [ * // ... provide data here * ] * }) * * // Create many StaffEvents and only return the `eventId` * const staffEventWithEventIdOnly = await prisma.staffEvent.createManyAndReturn({ * select: { eventId: 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 StaffEvent. * @param {StaffEventDeleteArgs} args - Arguments to delete one StaffEvent. * @example * // Delete one StaffEvent * const StaffEvent = await prisma.staffEvent.delete({ * where: { * // ... filter to delete one StaffEvent * } * }) * */ delete(args: Prisma.SelectSubset>): Prisma.Prisma__StaffEventClient, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>; /** * Update one StaffEvent. * @param {StaffEventUpdateArgs} args - Arguments to update one StaffEvent. * @example * // Update one StaffEvent * const staffEvent = await prisma.staffEvent.update({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ update(args: Prisma.SelectSubset>): Prisma.Prisma__StaffEventClient, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>; /** * Delete zero or more StaffEvents. * @param {StaffEventDeleteManyArgs} args - Arguments to filter StaffEvents to delete. * @example * // Delete a few StaffEvents * const { count } = await prisma.staffEvent.deleteMany({ * where: { * // ... provide filter here * } * }) * */ deleteMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise; /** * Update zero or more StaffEvents. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {StaffEventUpdateManyArgs} args - Arguments to update one or more rows. * @example * // Update many StaffEvents * const staffEvent = await prisma.staffEvent.updateMany({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ updateMany(args: Prisma.SelectSubset>): Prisma.PrismaPromise; /** * Update zero or more StaffEvents and returns the data updated in the database. * @param {StaffEventUpdateManyAndReturnArgs} args - Arguments to update many StaffEvents. * @example * // Update many StaffEvents * const staffEvent = await prisma.staffEvent.updateManyAndReturn({ * where: { * // ... provide filter here * }, * data: [ * // ... provide data here * ] * }) * * // Update zero or more StaffEvents and only return the `eventId` * const staffEventWithEventIdOnly = await prisma.staffEvent.updateManyAndReturn({ * select: { eventId: 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 StaffEvent. * @param {StaffEventUpsertArgs} args - Arguments to update or create a StaffEvent. * @example * // Update or create a StaffEvent * const staffEvent = await prisma.staffEvent.upsert({ * create: { * // ... data to create a StaffEvent * }, * update: { * // ... in case it already exists, update * }, * where: { * // ... the filter for the StaffEvent we want to update * } * }) */ upsert(args: Prisma.SelectSubset>): Prisma.Prisma__StaffEventClient, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>; /** * Count the number of StaffEvents. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {StaffEventCountArgs} args - Arguments to filter StaffEvents to count. * @example * // Count the number of StaffEvents * const count = await prisma.staffEvent.count({ * where: { * // ... the filter for the StaffEvents we want to count * } * }) **/ count(args?: Prisma.Subset): Prisma.PrismaPromise ? T['select'] extends true ? number : Prisma.GetScalarType : number>; /** * Allows you to perform aggregations operations on a StaffEvent. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {StaffEventAggregateArgs} 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 StaffEvent. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {StaffEventGroupByArgs} 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>, Prisma.Extends<'take', Prisma.Keys>>, OrderByArg extends Prisma.True extends HasSelectOrTake ? { orderBy: StaffEventGroupByArgs['orderBy']; } : { orderBy?: StaffEventGroupByArgs['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 ? GetStaffEventGroupByPayload : Prisma.PrismaPromise; /** * Fields of the StaffEvent model */ readonly fields: StaffEventFieldRefs; } /** * The delegate class that acts as a "Promise-like" for StaffEvent. * 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__StaffEventClient 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 StaffEvent model */ export interface StaffEventFieldRefs { readonly eventId: Prisma.FieldRef<"StaffEvent", 'String'>; readonly timestamp: Prisma.FieldRef<"StaffEvent", 'DateTime'>; readonly staffComponent: Prisma.FieldRef<"StaffEvent", 'String'>; readonly actionType: Prisma.FieldRef<"StaffEvent", 'String'>; readonly agentId: Prisma.FieldRef<"StaffEvent", 'String'>; readonly source: Prisma.FieldRef<"StaffEvent", 'String'>; readonly entityType: Prisma.FieldRef<"StaffEvent", 'String'>; readonly entityId: Prisma.FieldRef<"StaffEvent", 'String'>; readonly key: Prisma.FieldRef<"StaffEvent", 'String'>; readonly reason: Prisma.FieldRef<"StaffEvent", 'String'>; readonly level: Prisma.FieldRef<"StaffEvent", 'String'>; readonly metadata: Prisma.FieldRef<"StaffEvent", 'Json'>; } /** * StaffEvent findUnique */ export type StaffEventFindUniqueArgs = { /** * Select specific fields to fetch from the StaffEvent */ select?: Prisma.StaffEventSelect | null; /** * Omit specific fields from the StaffEvent */ omit?: Prisma.StaffEventOmit | null; /** * Filter, which StaffEvent to fetch. */ where: Prisma.StaffEventWhereUniqueInput; }; /** * StaffEvent findUniqueOrThrow */ export type StaffEventFindUniqueOrThrowArgs = { /** * Select specific fields to fetch from the StaffEvent */ select?: Prisma.StaffEventSelect | null; /** * Omit specific fields from the StaffEvent */ omit?: Prisma.StaffEventOmit | null; /** * Filter, which StaffEvent to fetch. */ where: Prisma.StaffEventWhereUniqueInput; }; /** * StaffEvent findFirst */ export type StaffEventFindFirstArgs = { /** * Select specific fields to fetch from the StaffEvent */ select?: Prisma.StaffEventSelect | null; /** * Omit specific fields from the StaffEvent */ omit?: Prisma.StaffEventOmit | null; /** * Filter, which StaffEvent to fetch. */ where?: Prisma.StaffEventWhereInput; /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of StaffEvents to fetch. */ orderBy?: Prisma.StaffEventOrderByWithRelationInput | Prisma.StaffEventOrderByWithRelationInput[]; /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for StaffEvents. */ cursor?: Prisma.StaffEventWhereUniqueInput; /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` StaffEvents 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` StaffEvents. */ skip?: number; /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of StaffEvents. */ distinct?: Prisma.StaffEventScalarFieldEnum | Prisma.StaffEventScalarFieldEnum[]; }; /** * StaffEvent findFirstOrThrow */ export type StaffEventFindFirstOrThrowArgs = { /** * Select specific fields to fetch from the StaffEvent */ select?: Prisma.StaffEventSelect | null; /** * Omit specific fields from the StaffEvent */ omit?: Prisma.StaffEventOmit | null; /** * Filter, which StaffEvent to fetch. */ where?: Prisma.StaffEventWhereInput; /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of StaffEvents to fetch. */ orderBy?: Prisma.StaffEventOrderByWithRelationInput | Prisma.StaffEventOrderByWithRelationInput[]; /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for StaffEvents. */ cursor?: Prisma.StaffEventWhereUniqueInput; /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` StaffEvents 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` StaffEvents. */ skip?: number; /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of StaffEvents. */ distinct?: Prisma.StaffEventScalarFieldEnum | Prisma.StaffEventScalarFieldEnum[]; }; /** * StaffEvent findMany */ export type StaffEventFindManyArgs = { /** * Select specific fields to fetch from the StaffEvent */ select?: Prisma.StaffEventSelect | null; /** * Omit specific fields from the StaffEvent */ omit?: Prisma.StaffEventOmit | null; /** * Filter, which StaffEvents to fetch. */ where?: Prisma.StaffEventWhereInput; /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of StaffEvents to fetch. */ orderBy?: Prisma.StaffEventOrderByWithRelationInput | Prisma.StaffEventOrderByWithRelationInput[]; /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for listing StaffEvents. */ cursor?: Prisma.StaffEventWhereUniqueInput; /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` StaffEvents 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` StaffEvents. */ skip?: number; distinct?: Prisma.StaffEventScalarFieldEnum | Prisma.StaffEventScalarFieldEnum[]; }; /** * StaffEvent create */ export type StaffEventCreateArgs = { /** * Select specific fields to fetch from the StaffEvent */ select?: Prisma.StaffEventSelect | null; /** * Omit specific fields from the StaffEvent */ omit?: Prisma.StaffEventOmit | null; /** * The data needed to create a StaffEvent. */ data: Prisma.XOR; }; /** * StaffEvent createMany */ export type StaffEventCreateManyArgs = { /** * The data used to create many StaffEvents. */ data: Prisma.StaffEventCreateManyInput | Prisma.StaffEventCreateManyInput[]; skipDuplicates?: boolean; }; /** * StaffEvent createManyAndReturn */ export type StaffEventCreateManyAndReturnArgs = { /** * Select specific fields to fetch from the StaffEvent */ select?: Prisma.StaffEventSelectCreateManyAndReturn | null; /** * Omit specific fields from the StaffEvent */ omit?: Prisma.StaffEventOmit | null; /** * The data used to create many StaffEvents. */ data: Prisma.StaffEventCreateManyInput | Prisma.StaffEventCreateManyInput[]; skipDuplicates?: boolean; }; /** * StaffEvent update */ export type StaffEventUpdateArgs = { /** * Select specific fields to fetch from the StaffEvent */ select?: Prisma.StaffEventSelect | null; /** * Omit specific fields from the StaffEvent */ omit?: Prisma.StaffEventOmit | null; /** * The data needed to update a StaffEvent. */ data: Prisma.XOR; /** * Choose, which StaffEvent to update. */ where: Prisma.StaffEventWhereUniqueInput; }; /** * StaffEvent updateMany */ export type StaffEventUpdateManyArgs = { /** * The data used to update StaffEvents. */ data: Prisma.XOR; /** * Filter which StaffEvents to update */ where?: Prisma.StaffEventWhereInput; /** * Limit how many StaffEvents to update. */ limit?: number; }; /** * StaffEvent updateManyAndReturn */ export type StaffEventUpdateManyAndReturnArgs = { /** * Select specific fields to fetch from the StaffEvent */ select?: Prisma.StaffEventSelectUpdateManyAndReturn | null; /** * Omit specific fields from the StaffEvent */ omit?: Prisma.StaffEventOmit | null; /** * The data used to update StaffEvents. */ data: Prisma.XOR; /** * Filter which StaffEvents to update */ where?: Prisma.StaffEventWhereInput; /** * Limit how many StaffEvents to update. */ limit?: number; }; /** * StaffEvent upsert */ export type StaffEventUpsertArgs = { /** * Select specific fields to fetch from the StaffEvent */ select?: Prisma.StaffEventSelect | null; /** * Omit specific fields from the StaffEvent */ omit?: Prisma.StaffEventOmit | null; /** * The filter to search for the StaffEvent to update in case it exists. */ where: Prisma.StaffEventWhereUniqueInput; /** * In case the StaffEvent found by the `where` argument doesn't exist, create a new StaffEvent with this data. */ create: Prisma.XOR; /** * In case the StaffEvent was found with the provided `where` argument, update it with this data. */ update: Prisma.XOR; }; /** * StaffEvent delete */ export type StaffEventDeleteArgs = { /** * Select specific fields to fetch from the StaffEvent */ select?: Prisma.StaffEventSelect | null; /** * Omit specific fields from the StaffEvent */ omit?: Prisma.StaffEventOmit | null; /** * Filter which StaffEvent to delete. */ where: Prisma.StaffEventWhereUniqueInput; }; /** * StaffEvent deleteMany */ export type StaffEventDeleteManyArgs = { /** * Filter which StaffEvents to delete */ where?: Prisma.StaffEventWhereInput; /** * Limit how many StaffEvents to delete. */ limit?: number; }; /** * StaffEvent without action */ export type StaffEventDefaultArgs = { /** * Select specific fields to fetch from the StaffEvent */ select?: Prisma.StaffEventSelect | null; /** * Omit specific fields from the StaffEvent */ omit?: Prisma.StaffEventOmit | null; }; export {}; //# sourceMappingURL=StaffEvent.d.ts.map