import type * as runtime from "@prisma/client/runtime/client"; import type * as Prisma from "../internal/prismaNamespace"; /** * Model WriteReceipt * */ export type WriteReceiptModel = runtime.Types.Result.DefaultSelection; export type AggregateWriteReceipt = { _count: WriteReceiptCountAggregateOutputType | null; _avg: WriteReceiptAvgAggregateOutputType | null; _sum: WriteReceiptSumAggregateOutputType | null; _min: WriteReceiptMinAggregateOutputType | null; _max: WriteReceiptMaxAggregateOutputType | null; }; export type WriteReceiptAvgAggregateOutputType = { id: number | null; resultEntryId: number | null; }; export type WriteReceiptSumAggregateOutputType = { id: number | null; resultEntryId: number | null; }; export type WriteReceiptMinAggregateOutputType = { id: number | null; requestId: string | null; entityType: string | null; entityId: string | null; key: string | null; outcome: string | null; resultEntryId: number | null; escalationFile: string | null; createdAt: Date | null; }; export type WriteReceiptMaxAggregateOutputType = { id: number | null; requestId: string | null; entityType: string | null; entityId: string | null; key: string | null; outcome: string | null; resultEntryId: number | null; escalationFile: string | null; createdAt: Date | null; }; export type WriteReceiptCountAggregateOutputType = { id: number; requestId: number; entityType: number; entityId: number; key: number; outcome: number; resultEntryId: number; escalationFile: number; createdAt: number; _all: number; }; export type WriteReceiptAvgAggregateInputType = { id?: true; resultEntryId?: true; }; export type WriteReceiptSumAggregateInputType = { id?: true; resultEntryId?: true; }; export type WriteReceiptMinAggregateInputType = { id?: true; requestId?: true; entityType?: true; entityId?: true; key?: true; outcome?: true; resultEntryId?: true; escalationFile?: true; createdAt?: true; }; export type WriteReceiptMaxAggregateInputType = { id?: true; requestId?: true; entityType?: true; entityId?: true; key?: true; outcome?: true; resultEntryId?: true; escalationFile?: true; createdAt?: true; }; export type WriteReceiptCountAggregateInputType = { id?: true; requestId?: true; entityType?: true; entityId?: true; key?: true; outcome?: true; resultEntryId?: true; escalationFile?: true; createdAt?: true; _all?: true; }; export type WriteReceiptAggregateArgs = { /** * Filter which WriteReceipt to aggregate. */ where?: Prisma.WriteReceiptWhereInput; /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of WriteReceipts to fetch. */ orderBy?: Prisma.WriteReceiptOrderByWithRelationInput | Prisma.WriteReceiptOrderByWithRelationInput[]; /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the start position */ cursor?: Prisma.WriteReceiptWhereUniqueInput; /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` WriteReceipts 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` WriteReceipts. */ skip?: number; /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Count returned WriteReceipts **/ _count?: true | WriteReceiptCountAggregateInputType; /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to average **/ _avg?: WriteReceiptAvgAggregateInputType; /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to sum **/ _sum?: WriteReceiptSumAggregateInputType; /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the minimum value **/ _min?: WriteReceiptMinAggregateInputType; /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the maximum value **/ _max?: WriteReceiptMaxAggregateInputType; }; export type GetWriteReceiptAggregateType = { [P in keyof T & keyof AggregateWriteReceipt]: P extends '_count' | 'count' ? T[P] extends true ? number : Prisma.GetScalarType : Prisma.GetScalarType; }; export type WriteReceiptGroupByArgs = { where?: Prisma.WriteReceiptWhereInput; orderBy?: Prisma.WriteReceiptOrderByWithAggregationInput | Prisma.WriteReceiptOrderByWithAggregationInput[]; by: Prisma.WriteReceiptScalarFieldEnum[] | Prisma.WriteReceiptScalarFieldEnum; having?: Prisma.WriteReceiptScalarWhereWithAggregatesInput; take?: number; skip?: number; _count?: WriteReceiptCountAggregateInputType | true; _avg?: WriteReceiptAvgAggregateInputType; _sum?: WriteReceiptSumAggregateInputType; _min?: WriteReceiptMinAggregateInputType; _max?: WriteReceiptMaxAggregateInputType; }; export type WriteReceiptGroupByOutputType = { id: number; requestId: string; entityType: string; entityId: string; key: string; outcome: string; resultEntryId: number | null; escalationFile: string | null; createdAt: Date; _count: WriteReceiptCountAggregateOutputType | null; _avg: WriteReceiptAvgAggregateOutputType | null; _sum: WriteReceiptSumAggregateOutputType | null; _min: WriteReceiptMinAggregateOutputType | null; _max: WriteReceiptMaxAggregateOutputType | null; }; type GetWriteReceiptGroupByPayload = Prisma.PrismaPromise & { [P in ((keyof T) & (keyof WriteReceiptGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : Prisma.GetScalarType : Prisma.GetScalarType; }>>; export type WriteReceiptWhereInput = { AND?: Prisma.WriteReceiptWhereInput | Prisma.WriteReceiptWhereInput[]; OR?: Prisma.WriteReceiptWhereInput[]; NOT?: Prisma.WriteReceiptWhereInput | Prisma.WriteReceiptWhereInput[]; id?: Prisma.IntFilter<"WriteReceipt"> | number; requestId?: Prisma.StringFilter<"WriteReceipt"> | string; entityType?: Prisma.StringFilter<"WriteReceipt"> | string; entityId?: Prisma.StringFilter<"WriteReceipt"> | string; key?: Prisma.StringFilter<"WriteReceipt"> | string; outcome?: Prisma.StringFilter<"WriteReceipt"> | string; resultEntryId?: Prisma.IntNullableFilter<"WriteReceipt"> | number | null; escalationFile?: Prisma.StringNullableFilter<"WriteReceipt"> | string | null; createdAt?: Prisma.DateTimeFilter<"WriteReceipt"> | Date | string; }; export type WriteReceiptOrderByWithRelationInput = { id?: Prisma.SortOrder; requestId?: Prisma.SortOrder; entityType?: Prisma.SortOrder; entityId?: Prisma.SortOrder; key?: Prisma.SortOrder; outcome?: Prisma.SortOrder; resultEntryId?: Prisma.SortOrderInput | Prisma.SortOrder; escalationFile?: Prisma.SortOrderInput | Prisma.SortOrder; createdAt?: Prisma.SortOrder; }; export type WriteReceiptWhereUniqueInput = Prisma.AtLeast<{ id?: number; requestId?: string; AND?: Prisma.WriteReceiptWhereInput | Prisma.WriteReceiptWhereInput[]; OR?: Prisma.WriteReceiptWhereInput[]; NOT?: Prisma.WriteReceiptWhereInput | Prisma.WriteReceiptWhereInput[]; entityType?: Prisma.StringFilter<"WriteReceipt"> | string; entityId?: Prisma.StringFilter<"WriteReceipt"> | string; key?: Prisma.StringFilter<"WriteReceipt"> | string; outcome?: Prisma.StringFilter<"WriteReceipt"> | string; resultEntryId?: Prisma.IntNullableFilter<"WriteReceipt"> | number | null; escalationFile?: Prisma.StringNullableFilter<"WriteReceipt"> | string | null; createdAt?: Prisma.DateTimeFilter<"WriteReceipt"> | Date | string; }, "id" | "requestId">; export type WriteReceiptOrderByWithAggregationInput = { id?: Prisma.SortOrder; requestId?: Prisma.SortOrder; entityType?: Prisma.SortOrder; entityId?: Prisma.SortOrder; key?: Prisma.SortOrder; outcome?: Prisma.SortOrder; resultEntryId?: Prisma.SortOrderInput | Prisma.SortOrder; escalationFile?: Prisma.SortOrderInput | Prisma.SortOrder; createdAt?: Prisma.SortOrder; _count?: Prisma.WriteReceiptCountOrderByAggregateInput; _avg?: Prisma.WriteReceiptAvgOrderByAggregateInput; _max?: Prisma.WriteReceiptMaxOrderByAggregateInput; _min?: Prisma.WriteReceiptMinOrderByAggregateInput; _sum?: Prisma.WriteReceiptSumOrderByAggregateInput; }; export type WriteReceiptScalarWhereWithAggregatesInput = { AND?: Prisma.WriteReceiptScalarWhereWithAggregatesInput | Prisma.WriteReceiptScalarWhereWithAggregatesInput[]; OR?: Prisma.WriteReceiptScalarWhereWithAggregatesInput[]; NOT?: Prisma.WriteReceiptScalarWhereWithAggregatesInput | Prisma.WriteReceiptScalarWhereWithAggregatesInput[]; id?: Prisma.IntWithAggregatesFilter<"WriteReceipt"> | number; requestId?: Prisma.StringWithAggregatesFilter<"WriteReceipt"> | string; entityType?: Prisma.StringWithAggregatesFilter<"WriteReceipt"> | string; entityId?: Prisma.StringWithAggregatesFilter<"WriteReceipt"> | string; key?: Prisma.StringWithAggregatesFilter<"WriteReceipt"> | string; outcome?: Prisma.StringWithAggregatesFilter<"WriteReceipt"> | string; resultEntryId?: Prisma.IntNullableWithAggregatesFilter<"WriteReceipt"> | number | null; escalationFile?: Prisma.StringNullableWithAggregatesFilter<"WriteReceipt"> | string | null; createdAt?: Prisma.DateTimeWithAggregatesFilter<"WriteReceipt"> | Date | string; }; export type WriteReceiptCreateInput = { requestId: string; entityType: string; entityId: string; key: string; outcome: string; resultEntryId?: number | null; escalationFile?: string | null; createdAt?: Date | string; }; export type WriteReceiptUncheckedCreateInput = { id?: number; requestId: string; entityType: string; entityId: string; key: string; outcome: string; resultEntryId?: number | null; escalationFile?: string | null; createdAt?: Date | string; }; export type WriteReceiptUpdateInput = { requestId?: Prisma.StringFieldUpdateOperationsInput | string; entityType?: Prisma.StringFieldUpdateOperationsInput | string; entityId?: Prisma.StringFieldUpdateOperationsInput | string; key?: Prisma.StringFieldUpdateOperationsInput | string; outcome?: Prisma.StringFieldUpdateOperationsInput | string; resultEntryId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null; escalationFile?: Prisma.NullableStringFieldUpdateOperationsInput | string | null; createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string; }; export type WriteReceiptUncheckedUpdateInput = { id?: Prisma.IntFieldUpdateOperationsInput | number; requestId?: Prisma.StringFieldUpdateOperationsInput | string; entityType?: Prisma.StringFieldUpdateOperationsInput | string; entityId?: Prisma.StringFieldUpdateOperationsInput | string; key?: Prisma.StringFieldUpdateOperationsInput | string; outcome?: Prisma.StringFieldUpdateOperationsInput | string; resultEntryId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null; escalationFile?: Prisma.NullableStringFieldUpdateOperationsInput | string | null; createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string; }; export type WriteReceiptCreateManyInput = { id?: number; requestId: string; entityType: string; entityId: string; key: string; outcome: string; resultEntryId?: number | null; escalationFile?: string | null; createdAt?: Date | string; }; export type WriteReceiptUpdateManyMutationInput = { requestId?: Prisma.StringFieldUpdateOperationsInput | string; entityType?: Prisma.StringFieldUpdateOperationsInput | string; entityId?: Prisma.StringFieldUpdateOperationsInput | string; key?: Prisma.StringFieldUpdateOperationsInput | string; outcome?: Prisma.StringFieldUpdateOperationsInput | string; resultEntryId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null; escalationFile?: Prisma.NullableStringFieldUpdateOperationsInput | string | null; createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string; }; export type WriteReceiptUncheckedUpdateManyInput = { id?: Prisma.IntFieldUpdateOperationsInput | number; requestId?: Prisma.StringFieldUpdateOperationsInput | string; entityType?: Prisma.StringFieldUpdateOperationsInput | string; entityId?: Prisma.StringFieldUpdateOperationsInput | string; key?: Prisma.StringFieldUpdateOperationsInput | string; outcome?: Prisma.StringFieldUpdateOperationsInput | string; resultEntryId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null; escalationFile?: Prisma.NullableStringFieldUpdateOperationsInput | string | null; createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string; }; export type WriteReceiptCountOrderByAggregateInput = { id?: Prisma.SortOrder; requestId?: Prisma.SortOrder; entityType?: Prisma.SortOrder; entityId?: Prisma.SortOrder; key?: Prisma.SortOrder; outcome?: Prisma.SortOrder; resultEntryId?: Prisma.SortOrder; escalationFile?: Prisma.SortOrder; createdAt?: Prisma.SortOrder; }; export type WriteReceiptAvgOrderByAggregateInput = { id?: Prisma.SortOrder; resultEntryId?: Prisma.SortOrder; }; export type WriteReceiptMaxOrderByAggregateInput = { id?: Prisma.SortOrder; requestId?: Prisma.SortOrder; entityType?: Prisma.SortOrder; entityId?: Prisma.SortOrder; key?: Prisma.SortOrder; outcome?: Prisma.SortOrder; resultEntryId?: Prisma.SortOrder; escalationFile?: Prisma.SortOrder; createdAt?: Prisma.SortOrder; }; export type WriteReceiptMinOrderByAggregateInput = { id?: Prisma.SortOrder; requestId?: Prisma.SortOrder; entityType?: Prisma.SortOrder; entityId?: Prisma.SortOrder; key?: Prisma.SortOrder; outcome?: Prisma.SortOrder; resultEntryId?: Prisma.SortOrder; escalationFile?: Prisma.SortOrder; createdAt?: Prisma.SortOrder; }; export type WriteReceiptSumOrderByAggregateInput = { id?: Prisma.SortOrder; resultEntryId?: Prisma.SortOrder; }; export type WriteReceiptSelect = runtime.Types.Extensions.GetSelect<{ id?: boolean; requestId?: boolean; entityType?: boolean; entityId?: boolean; key?: boolean; outcome?: boolean; resultEntryId?: boolean; escalationFile?: boolean; createdAt?: boolean; }, ExtArgs["result"]["writeReceipt"]>; export type WriteReceiptSelectCreateManyAndReturn = runtime.Types.Extensions.GetSelect<{ id?: boolean; requestId?: boolean; entityType?: boolean; entityId?: boolean; key?: boolean; outcome?: boolean; resultEntryId?: boolean; escalationFile?: boolean; createdAt?: boolean; }, ExtArgs["result"]["writeReceipt"]>; export type WriteReceiptSelectUpdateManyAndReturn = runtime.Types.Extensions.GetSelect<{ id?: boolean; requestId?: boolean; entityType?: boolean; entityId?: boolean; key?: boolean; outcome?: boolean; resultEntryId?: boolean; escalationFile?: boolean; createdAt?: boolean; }, ExtArgs["result"]["writeReceipt"]>; export type WriteReceiptSelectScalar = { id?: boolean; requestId?: boolean; entityType?: boolean; entityId?: boolean; key?: boolean; outcome?: boolean; resultEntryId?: boolean; escalationFile?: boolean; createdAt?: boolean; }; export type WriteReceiptOmit = runtime.Types.Extensions.GetOmit<"id" | "requestId" | "entityType" | "entityId" | "key" | "outcome" | "resultEntryId" | "escalationFile" | "createdAt", ExtArgs["result"]["writeReceipt"]>; export type $WriteReceiptPayload = { name: "WriteReceipt"; objects: {}; scalars: runtime.Types.Extensions.GetPayloadResult<{ id: number; requestId: string; entityType: string; entityId: string; key: string; outcome: string; resultEntryId: number | null; escalationFile: string | null; createdAt: Date; }, ExtArgs["result"]["writeReceipt"]>; composites: {}; }; export type WriteReceiptGetPayload = runtime.Types.Result.GetResult; export type WriteReceiptCountArgs = Omit & { select?: WriteReceiptCountAggregateInputType | true; }; export interface WriteReceiptDelegate { [K: symbol]: { types: Prisma.TypeMap['model']['WriteReceipt']; meta: { name: 'WriteReceipt'; }; }; /** * Find zero or one WriteReceipt that matches the filter. * @param {WriteReceiptFindUniqueArgs} args - Arguments to find a WriteReceipt * @example * // Get one WriteReceipt * const writeReceipt = await prisma.writeReceipt.findUnique({ * where: { * // ... provide filter here * } * }) */ findUnique(args: Prisma.SelectSubset>): Prisma.Prisma__WriteReceiptClient, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>; /** * Find one WriteReceipt that matches the filter or throw an error with `error.code='P2025'` * if no matches were found. * @param {WriteReceiptFindUniqueOrThrowArgs} args - Arguments to find a WriteReceipt * @example * // Get one WriteReceipt * const writeReceipt = await prisma.writeReceipt.findUniqueOrThrow({ * where: { * // ... provide filter here * } * }) */ findUniqueOrThrow(args: Prisma.SelectSubset>): Prisma.Prisma__WriteReceiptClient, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>; /** * Find the first WriteReceipt 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 {WriteReceiptFindFirstArgs} args - Arguments to find a WriteReceipt * @example * // Get one WriteReceipt * const writeReceipt = await prisma.writeReceipt.findFirst({ * where: { * // ... provide filter here * } * }) */ findFirst(args?: Prisma.SelectSubset>): Prisma.Prisma__WriteReceiptClient, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>; /** * Find the first WriteReceipt 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 {WriteReceiptFindFirstOrThrowArgs} args - Arguments to find a WriteReceipt * @example * // Get one WriteReceipt * const writeReceipt = await prisma.writeReceipt.findFirstOrThrow({ * where: { * // ... provide filter here * } * }) */ findFirstOrThrow(args?: Prisma.SelectSubset>): Prisma.Prisma__WriteReceiptClient, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>; /** * Find zero or more WriteReceipts 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 {WriteReceiptFindManyArgs} args - Arguments to filter and select certain fields only. * @example * // Get all WriteReceipts * const writeReceipts = await prisma.writeReceipt.findMany() * * // Get first 10 WriteReceipts * const writeReceipts = await prisma.writeReceipt.findMany({ take: 10 }) * * // Only select the `id` * const writeReceiptWithIdOnly = await prisma.writeReceipt.findMany({ select: { id: true } }) * */ findMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>>; /** * Create a WriteReceipt. * @param {WriteReceiptCreateArgs} args - Arguments to create a WriteReceipt. * @example * // Create one WriteReceipt * const WriteReceipt = await prisma.writeReceipt.create({ * data: { * // ... data to create a WriteReceipt * } * }) * */ create(args: Prisma.SelectSubset>): Prisma.Prisma__WriteReceiptClient, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>; /** * Create many WriteReceipts. * @param {WriteReceiptCreateManyArgs} args - Arguments to create many WriteReceipts. * @example * // Create many WriteReceipts * const writeReceipt = await prisma.writeReceipt.createMany({ * data: [ * // ... provide data here * ] * }) * */ createMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise; /** * Create many WriteReceipts and returns the data saved in the database. * @param {WriteReceiptCreateManyAndReturnArgs} args - Arguments to create many WriteReceipts. * @example * // Create many WriteReceipts * const writeReceipt = await prisma.writeReceipt.createManyAndReturn({ * data: [ * // ... provide data here * ] * }) * * // Create many WriteReceipts and only return the `id` * const writeReceiptWithIdOnly = await prisma.writeReceipt.createManyAndReturn({ * select: { id: true }, * data: [ * // ... provide data here * ] * }) * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * */ createManyAndReturn(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "createManyAndReturn", GlobalOmitOptions>>; /** * Delete a WriteReceipt. * @param {WriteReceiptDeleteArgs} args - Arguments to delete one WriteReceipt. * @example * // Delete one WriteReceipt * const WriteReceipt = await prisma.writeReceipt.delete({ * where: { * // ... filter to delete one WriteReceipt * } * }) * */ delete(args: Prisma.SelectSubset>): Prisma.Prisma__WriteReceiptClient, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>; /** * Update one WriteReceipt. * @param {WriteReceiptUpdateArgs} args - Arguments to update one WriteReceipt. * @example * // Update one WriteReceipt * const writeReceipt = await prisma.writeReceipt.update({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ update(args: Prisma.SelectSubset>): Prisma.Prisma__WriteReceiptClient, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>; /** * Delete zero or more WriteReceipts. * @param {WriteReceiptDeleteManyArgs} args - Arguments to filter WriteReceipts to delete. * @example * // Delete a few WriteReceipts * const { count } = await prisma.writeReceipt.deleteMany({ * where: { * // ... provide filter here * } * }) * */ deleteMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise; /** * Update zero or more WriteReceipts. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {WriteReceiptUpdateManyArgs} args - Arguments to update one or more rows. * @example * // Update many WriteReceipts * const writeReceipt = await prisma.writeReceipt.updateMany({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ updateMany(args: Prisma.SelectSubset>): Prisma.PrismaPromise; /** * Update zero or more WriteReceipts and returns the data updated in the database. * @param {WriteReceiptUpdateManyAndReturnArgs} args - Arguments to update many WriteReceipts. * @example * // Update many WriteReceipts * const writeReceipt = await prisma.writeReceipt.updateManyAndReturn({ * where: { * // ... provide filter here * }, * data: [ * // ... provide data here * ] * }) * * // Update zero or more WriteReceipts and only return the `id` * const writeReceiptWithIdOnly = await prisma.writeReceipt.updateManyAndReturn({ * select: { id: true }, * where: { * // ... provide filter here * }, * data: [ * // ... provide data here * ] * }) * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * */ updateManyAndReturn(args: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "updateManyAndReturn", GlobalOmitOptions>>; /** * Create or update one WriteReceipt. * @param {WriteReceiptUpsertArgs} args - Arguments to update or create a WriteReceipt. * @example * // Update or create a WriteReceipt * const writeReceipt = await prisma.writeReceipt.upsert({ * create: { * // ... data to create a WriteReceipt * }, * update: { * // ... in case it already exists, update * }, * where: { * // ... the filter for the WriteReceipt we want to update * } * }) */ upsert(args: Prisma.SelectSubset>): Prisma.Prisma__WriteReceiptClient, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>; /** * Count the number of WriteReceipts. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {WriteReceiptCountArgs} args - Arguments to filter WriteReceipts to count. * @example * // Count the number of WriteReceipts * const count = await prisma.writeReceipt.count({ * where: { * // ... the filter for the WriteReceipts 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 WriteReceipt. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {WriteReceiptAggregateArgs} 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 WriteReceipt. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {WriteReceiptGroupByArgs} 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: WriteReceiptGroupByArgs['orderBy']; } : { orderBy?: WriteReceiptGroupByArgs['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 ? GetWriteReceiptGroupByPayload : Prisma.PrismaPromise; /** * Fields of the WriteReceipt model */ readonly fields: WriteReceiptFieldRefs; } /** * The delegate class that acts as a "Promise-like" for WriteReceipt. * 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__WriteReceiptClient 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 WriteReceipt model */ export interface WriteReceiptFieldRefs { readonly id: Prisma.FieldRef<"WriteReceipt", 'Int'>; readonly requestId: Prisma.FieldRef<"WriteReceipt", 'String'>; readonly entityType: Prisma.FieldRef<"WriteReceipt", 'String'>; readonly entityId: Prisma.FieldRef<"WriteReceipt", 'String'>; readonly key: Prisma.FieldRef<"WriteReceipt", 'String'>; readonly outcome: Prisma.FieldRef<"WriteReceipt", 'String'>; readonly resultEntryId: Prisma.FieldRef<"WriteReceipt", 'Int'>; readonly escalationFile: Prisma.FieldRef<"WriteReceipt", 'String'>; readonly createdAt: Prisma.FieldRef<"WriteReceipt", 'DateTime'>; } /** * WriteReceipt findUnique */ export type WriteReceiptFindUniqueArgs = { /** * Select specific fields to fetch from the WriteReceipt */ select?: Prisma.WriteReceiptSelect | null; /** * Omit specific fields from the WriteReceipt */ omit?: Prisma.WriteReceiptOmit | null; /** * Filter, which WriteReceipt to fetch. */ where: Prisma.WriteReceiptWhereUniqueInput; }; /** * WriteReceipt findUniqueOrThrow */ export type WriteReceiptFindUniqueOrThrowArgs = { /** * Select specific fields to fetch from the WriteReceipt */ select?: Prisma.WriteReceiptSelect | null; /** * Omit specific fields from the WriteReceipt */ omit?: Prisma.WriteReceiptOmit | null; /** * Filter, which WriteReceipt to fetch. */ where: Prisma.WriteReceiptWhereUniqueInput; }; /** * WriteReceipt findFirst */ export type WriteReceiptFindFirstArgs = { /** * Select specific fields to fetch from the WriteReceipt */ select?: Prisma.WriteReceiptSelect | null; /** * Omit specific fields from the WriteReceipt */ omit?: Prisma.WriteReceiptOmit | null; /** * Filter, which WriteReceipt to fetch. */ where?: Prisma.WriteReceiptWhereInput; /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of WriteReceipts to fetch. */ orderBy?: Prisma.WriteReceiptOrderByWithRelationInput | Prisma.WriteReceiptOrderByWithRelationInput[]; /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for WriteReceipts. */ cursor?: Prisma.WriteReceiptWhereUniqueInput; /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` WriteReceipts 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` WriteReceipts. */ skip?: number; /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of WriteReceipts. */ distinct?: Prisma.WriteReceiptScalarFieldEnum | Prisma.WriteReceiptScalarFieldEnum[]; }; /** * WriteReceipt findFirstOrThrow */ export type WriteReceiptFindFirstOrThrowArgs = { /** * Select specific fields to fetch from the WriteReceipt */ select?: Prisma.WriteReceiptSelect | null; /** * Omit specific fields from the WriteReceipt */ omit?: Prisma.WriteReceiptOmit | null; /** * Filter, which WriteReceipt to fetch. */ where?: Prisma.WriteReceiptWhereInput; /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of WriteReceipts to fetch. */ orderBy?: Prisma.WriteReceiptOrderByWithRelationInput | Prisma.WriteReceiptOrderByWithRelationInput[]; /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for WriteReceipts. */ cursor?: Prisma.WriteReceiptWhereUniqueInput; /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` WriteReceipts 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` WriteReceipts. */ skip?: number; /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of WriteReceipts. */ distinct?: Prisma.WriteReceiptScalarFieldEnum | Prisma.WriteReceiptScalarFieldEnum[]; }; /** * WriteReceipt findMany */ export type WriteReceiptFindManyArgs = { /** * Select specific fields to fetch from the WriteReceipt */ select?: Prisma.WriteReceiptSelect | null; /** * Omit specific fields from the WriteReceipt */ omit?: Prisma.WriteReceiptOmit | null; /** * Filter, which WriteReceipts to fetch. */ where?: Prisma.WriteReceiptWhereInput; /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of WriteReceipts to fetch. */ orderBy?: Prisma.WriteReceiptOrderByWithRelationInput | Prisma.WriteReceiptOrderByWithRelationInput[]; /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for listing WriteReceipts. */ cursor?: Prisma.WriteReceiptWhereUniqueInput; /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` WriteReceipts 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` WriteReceipts. */ skip?: number; distinct?: Prisma.WriteReceiptScalarFieldEnum | Prisma.WriteReceiptScalarFieldEnum[]; }; /** * WriteReceipt create */ export type WriteReceiptCreateArgs = { /** * Select specific fields to fetch from the WriteReceipt */ select?: Prisma.WriteReceiptSelect | null; /** * Omit specific fields from the WriteReceipt */ omit?: Prisma.WriteReceiptOmit | null; /** * The data needed to create a WriteReceipt. */ data: Prisma.XOR; }; /** * WriteReceipt createMany */ export type WriteReceiptCreateManyArgs = { /** * The data used to create many WriteReceipts. */ data: Prisma.WriteReceiptCreateManyInput | Prisma.WriteReceiptCreateManyInput[]; skipDuplicates?: boolean; }; /** * WriteReceipt createManyAndReturn */ export type WriteReceiptCreateManyAndReturnArgs = { /** * Select specific fields to fetch from the WriteReceipt */ select?: Prisma.WriteReceiptSelectCreateManyAndReturn | null; /** * Omit specific fields from the WriteReceipt */ omit?: Prisma.WriteReceiptOmit | null; /** * The data used to create many WriteReceipts. */ data: Prisma.WriteReceiptCreateManyInput | Prisma.WriteReceiptCreateManyInput[]; skipDuplicates?: boolean; }; /** * WriteReceipt update */ export type WriteReceiptUpdateArgs = { /** * Select specific fields to fetch from the WriteReceipt */ select?: Prisma.WriteReceiptSelect | null; /** * Omit specific fields from the WriteReceipt */ omit?: Prisma.WriteReceiptOmit | null; /** * The data needed to update a WriteReceipt. */ data: Prisma.XOR; /** * Choose, which WriteReceipt to update. */ where: Prisma.WriteReceiptWhereUniqueInput; }; /** * WriteReceipt updateMany */ export type WriteReceiptUpdateManyArgs = { /** * The data used to update WriteReceipts. */ data: Prisma.XOR; /** * Filter which WriteReceipts to update */ where?: Prisma.WriteReceiptWhereInput; /** * Limit how many WriteReceipts to update. */ limit?: number; }; /** * WriteReceipt updateManyAndReturn */ export type WriteReceiptUpdateManyAndReturnArgs = { /** * Select specific fields to fetch from the WriteReceipt */ select?: Prisma.WriteReceiptSelectUpdateManyAndReturn | null; /** * Omit specific fields from the WriteReceipt */ omit?: Prisma.WriteReceiptOmit | null; /** * The data used to update WriteReceipts. */ data: Prisma.XOR; /** * Filter which WriteReceipts to update */ where?: Prisma.WriteReceiptWhereInput; /** * Limit how many WriteReceipts to update. */ limit?: number; }; /** * WriteReceipt upsert */ export type WriteReceiptUpsertArgs = { /** * Select specific fields to fetch from the WriteReceipt */ select?: Prisma.WriteReceiptSelect | null; /** * Omit specific fields from the WriteReceipt */ omit?: Prisma.WriteReceiptOmit | null; /** * The filter to search for the WriteReceipt to update in case it exists. */ where: Prisma.WriteReceiptWhereUniqueInput; /** * In case the WriteReceipt found by the `where` argument doesn't exist, create a new WriteReceipt with this data. */ create: Prisma.XOR; /** * In case the WriteReceipt was found with the provided `where` argument, update it with this data. */ update: Prisma.XOR; }; /** * WriteReceipt delete */ export type WriteReceiptDeleteArgs = { /** * Select specific fields to fetch from the WriteReceipt */ select?: Prisma.WriteReceiptSelect | null; /** * Omit specific fields from the WriteReceipt */ omit?: Prisma.WriteReceiptOmit | null; /** * Filter which WriteReceipt to delete. */ where: Prisma.WriteReceiptWhereUniqueInput; }; /** * WriteReceipt deleteMany */ export type WriteReceiptDeleteManyArgs = { /** * Filter which WriteReceipts to delete */ where?: Prisma.WriteReceiptWhereInput; /** * Limit how many WriteReceipts to delete. */ limit?: number; }; /** * WriteReceipt without action */ export type WriteReceiptDefaultArgs = { /** * Select specific fields to fetch from the WriteReceipt */ select?: Prisma.WriteReceiptSelect | null; /** * Omit specific fields from the WriteReceipt */ omit?: Prisma.WriteReceiptOmit | null; }; export {}; //# sourceMappingURL=WriteReceipt.d.ts.map