import type * as runtime from "@prisma/client/runtime/client"; import type * as $Enums from "../enums"; import type * as Prisma from "../internal/prismaNamespace"; /** * Model Feedback * */ export type FeedbackModel = runtime.Types.Result.DefaultSelection; export type AggregateFeedback = { _count: FeedbackCountAggregateOutputType | null; _avg: FeedbackAvgAggregateOutputType | null; _sum: FeedbackSumAggregateOutputType | null; _min: FeedbackMinAggregateOutputType | null; _max: FeedbackMaxAggregateOutputType | null; }; export type FeedbackAvgAggregateOutputType = { rating: number | null; sessionCount: number | null; factCount: number | null; }; export type FeedbackSumAggregateOutputType = { rating: number | null; sessionCount: number | null; factCount: number | null; }; export type FeedbackMinAggregateOutputType = { id: string | null; feedbackId: string | null; rating: number | null; comment: string | null; type: $Enums.FeedbackType | null; version: string | null; os: string | null; arch: string | null; nodeVersion: string | null; sessionCount: number | null; factCount: number | null; instanceId: string | null; milestoneContext: string | null; submittedAt: Date | null; receivedAt: Date | null; }; export type FeedbackMaxAggregateOutputType = { id: string | null; feedbackId: string | null; rating: number | null; comment: string | null; type: $Enums.FeedbackType | null; version: string | null; os: string | null; arch: string | null; nodeVersion: string | null; sessionCount: number | null; factCount: number | null; instanceId: string | null; milestoneContext: string | null; submittedAt: Date | null; receivedAt: Date | null; }; export type FeedbackCountAggregateOutputType = { id: number; feedbackId: number; rating: number; comment: number; type: number; version: number; os: number; arch: number; nodeVersion: number; sessionCount: number; factCount: number; instanceId: number; milestoneContext: number; submittedAt: number; receivedAt: number; _all: number; }; export type FeedbackAvgAggregateInputType = { rating?: true; sessionCount?: true; factCount?: true; }; export type FeedbackSumAggregateInputType = { rating?: true; sessionCount?: true; factCount?: true; }; export type FeedbackMinAggregateInputType = { id?: true; feedbackId?: true; rating?: true; comment?: true; type?: true; version?: true; os?: true; arch?: true; nodeVersion?: true; sessionCount?: true; factCount?: true; instanceId?: true; milestoneContext?: true; submittedAt?: true; receivedAt?: true; }; export type FeedbackMaxAggregateInputType = { id?: true; feedbackId?: true; rating?: true; comment?: true; type?: true; version?: true; os?: true; arch?: true; nodeVersion?: true; sessionCount?: true; factCount?: true; instanceId?: true; milestoneContext?: true; submittedAt?: true; receivedAt?: true; }; export type FeedbackCountAggregateInputType = { id?: true; feedbackId?: true; rating?: true; comment?: true; type?: true; version?: true; os?: true; arch?: true; nodeVersion?: true; sessionCount?: true; factCount?: true; instanceId?: true; milestoneContext?: true; submittedAt?: true; receivedAt?: true; _all?: true; }; export type FeedbackAggregateArgs = { /** * Filter which Feedback to aggregate. */ where?: Prisma.FeedbackWhereInput; /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Feedbacks to fetch. */ orderBy?: Prisma.FeedbackOrderByWithRelationInput | Prisma.FeedbackOrderByWithRelationInput[]; /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the start position */ cursor?: Prisma.FeedbackWhereUniqueInput; /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Feedbacks 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` Feedbacks. */ skip?: number; /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Count returned Feedbacks **/ _count?: true | FeedbackCountAggregateInputType; /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to average **/ _avg?: FeedbackAvgAggregateInputType; /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to sum **/ _sum?: FeedbackSumAggregateInputType; /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the minimum value **/ _min?: FeedbackMinAggregateInputType; /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the maximum value **/ _max?: FeedbackMaxAggregateInputType; }; export type GetFeedbackAggregateType = { [P in keyof T & keyof AggregateFeedback]: P extends '_count' | 'count' ? T[P] extends true ? number : Prisma.GetScalarType : Prisma.GetScalarType; }; export type FeedbackGroupByArgs = { where?: Prisma.FeedbackWhereInput; orderBy?: Prisma.FeedbackOrderByWithAggregationInput | Prisma.FeedbackOrderByWithAggregationInput[]; by: Prisma.FeedbackScalarFieldEnum[] | Prisma.FeedbackScalarFieldEnum; having?: Prisma.FeedbackScalarWhereWithAggregatesInput; take?: number; skip?: number; _count?: FeedbackCountAggregateInputType | true; _avg?: FeedbackAvgAggregateInputType; _sum?: FeedbackSumAggregateInputType; _min?: FeedbackMinAggregateInputType; _max?: FeedbackMaxAggregateInputType; }; export type FeedbackGroupByOutputType = { id: string; feedbackId: string; rating: number; comment: string | null; type: $Enums.FeedbackType; version: string; os: string; arch: string; nodeVersion: string; sessionCount: number | null; factCount: number | null; instanceId: string; milestoneContext: string | null; submittedAt: Date; receivedAt: Date; _count: FeedbackCountAggregateOutputType | null; _avg: FeedbackAvgAggregateOutputType | null; _sum: FeedbackSumAggregateOutputType | null; _min: FeedbackMinAggregateOutputType | null; _max: FeedbackMaxAggregateOutputType | null; }; type GetFeedbackGroupByPayload = Prisma.PrismaPromise & { [P in ((keyof T) & (keyof FeedbackGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : Prisma.GetScalarType : Prisma.GetScalarType; }>>; export type FeedbackWhereInput = { AND?: Prisma.FeedbackWhereInput | Prisma.FeedbackWhereInput[]; OR?: Prisma.FeedbackWhereInput[]; NOT?: Prisma.FeedbackWhereInput | Prisma.FeedbackWhereInput[]; id?: Prisma.UuidFilter<"Feedback"> | string; feedbackId?: Prisma.UuidFilter<"Feedback"> | string; rating?: Prisma.IntFilter<"Feedback"> | number; comment?: Prisma.StringNullableFilter<"Feedback"> | string | null; type?: Prisma.EnumFeedbackTypeFilter<"Feedback"> | $Enums.FeedbackType; version?: Prisma.StringFilter<"Feedback"> | string; os?: Prisma.StringFilter<"Feedback"> | string; arch?: Prisma.StringFilter<"Feedback"> | string; nodeVersion?: Prisma.StringFilter<"Feedback"> | string; sessionCount?: Prisma.IntNullableFilter<"Feedback"> | number | null; factCount?: Prisma.IntNullableFilter<"Feedback"> | number | null; instanceId?: Prisma.StringFilter<"Feedback"> | string; milestoneContext?: Prisma.StringNullableFilter<"Feedback"> | string | null; submittedAt?: Prisma.DateTimeFilter<"Feedback"> | Date | string; receivedAt?: Prisma.DateTimeFilter<"Feedback"> | Date | string; }; export type FeedbackOrderByWithRelationInput = { id?: Prisma.SortOrder; feedbackId?: Prisma.SortOrder; rating?: Prisma.SortOrder; comment?: Prisma.SortOrderInput | Prisma.SortOrder; type?: Prisma.SortOrder; version?: Prisma.SortOrder; os?: Prisma.SortOrder; arch?: Prisma.SortOrder; nodeVersion?: Prisma.SortOrder; sessionCount?: Prisma.SortOrderInput | Prisma.SortOrder; factCount?: Prisma.SortOrderInput | Prisma.SortOrder; instanceId?: Prisma.SortOrder; milestoneContext?: Prisma.SortOrderInput | Prisma.SortOrder; submittedAt?: Prisma.SortOrder; receivedAt?: Prisma.SortOrder; }; export type FeedbackWhereUniqueInput = Prisma.AtLeast<{ id?: string; feedbackId?: string; AND?: Prisma.FeedbackWhereInput | Prisma.FeedbackWhereInput[]; OR?: Prisma.FeedbackWhereInput[]; NOT?: Prisma.FeedbackWhereInput | Prisma.FeedbackWhereInput[]; rating?: Prisma.IntFilter<"Feedback"> | number; comment?: Prisma.StringNullableFilter<"Feedback"> | string | null; type?: Prisma.EnumFeedbackTypeFilter<"Feedback"> | $Enums.FeedbackType; version?: Prisma.StringFilter<"Feedback"> | string; os?: Prisma.StringFilter<"Feedback"> | string; arch?: Prisma.StringFilter<"Feedback"> | string; nodeVersion?: Prisma.StringFilter<"Feedback"> | string; sessionCount?: Prisma.IntNullableFilter<"Feedback"> | number | null; factCount?: Prisma.IntNullableFilter<"Feedback"> | number | null; instanceId?: Prisma.StringFilter<"Feedback"> | string; milestoneContext?: Prisma.StringNullableFilter<"Feedback"> | string | null; submittedAt?: Prisma.DateTimeFilter<"Feedback"> | Date | string; receivedAt?: Prisma.DateTimeFilter<"Feedback"> | Date | string; }, "id" | "feedbackId">; export type FeedbackOrderByWithAggregationInput = { id?: Prisma.SortOrder; feedbackId?: Prisma.SortOrder; rating?: Prisma.SortOrder; comment?: Prisma.SortOrderInput | Prisma.SortOrder; type?: Prisma.SortOrder; version?: Prisma.SortOrder; os?: Prisma.SortOrder; arch?: Prisma.SortOrder; nodeVersion?: Prisma.SortOrder; sessionCount?: Prisma.SortOrderInput | Prisma.SortOrder; factCount?: Prisma.SortOrderInput | Prisma.SortOrder; instanceId?: Prisma.SortOrder; milestoneContext?: Prisma.SortOrderInput | Prisma.SortOrder; submittedAt?: Prisma.SortOrder; receivedAt?: Prisma.SortOrder; _count?: Prisma.FeedbackCountOrderByAggregateInput; _avg?: Prisma.FeedbackAvgOrderByAggregateInput; _max?: Prisma.FeedbackMaxOrderByAggregateInput; _min?: Prisma.FeedbackMinOrderByAggregateInput; _sum?: Prisma.FeedbackSumOrderByAggregateInput; }; export type FeedbackScalarWhereWithAggregatesInput = { AND?: Prisma.FeedbackScalarWhereWithAggregatesInput | Prisma.FeedbackScalarWhereWithAggregatesInput[]; OR?: Prisma.FeedbackScalarWhereWithAggregatesInput[]; NOT?: Prisma.FeedbackScalarWhereWithAggregatesInput | Prisma.FeedbackScalarWhereWithAggregatesInput[]; id?: Prisma.UuidWithAggregatesFilter<"Feedback"> | string; feedbackId?: Prisma.UuidWithAggregatesFilter<"Feedback"> | string; rating?: Prisma.IntWithAggregatesFilter<"Feedback"> | number; comment?: Prisma.StringNullableWithAggregatesFilter<"Feedback"> | string | null; type?: Prisma.EnumFeedbackTypeWithAggregatesFilter<"Feedback"> | $Enums.FeedbackType; version?: Prisma.StringWithAggregatesFilter<"Feedback"> | string; os?: Prisma.StringWithAggregatesFilter<"Feedback"> | string; arch?: Prisma.StringWithAggregatesFilter<"Feedback"> | string; nodeVersion?: Prisma.StringWithAggregatesFilter<"Feedback"> | string; sessionCount?: Prisma.IntNullableWithAggregatesFilter<"Feedback"> | number | null; factCount?: Prisma.IntNullableWithAggregatesFilter<"Feedback"> | number | null; instanceId?: Prisma.StringWithAggregatesFilter<"Feedback"> | string; milestoneContext?: Prisma.StringNullableWithAggregatesFilter<"Feedback"> | string | null; submittedAt?: Prisma.DateTimeWithAggregatesFilter<"Feedback"> | Date | string; receivedAt?: Prisma.DateTimeWithAggregatesFilter<"Feedback"> | Date | string; }; export type FeedbackCreateInput = { id?: string; feedbackId: string; rating: number; comment?: string | null; type: $Enums.FeedbackType; version: string; os: string; arch: string; nodeVersion: string; sessionCount?: number | null; factCount?: number | null; instanceId: string; milestoneContext?: string | null; submittedAt: Date | string; receivedAt?: Date | string; }; export type FeedbackUncheckedCreateInput = { id?: string; feedbackId: string; rating: number; comment?: string | null; type: $Enums.FeedbackType; version: string; os: string; arch: string; nodeVersion: string; sessionCount?: number | null; factCount?: number | null; instanceId: string; milestoneContext?: string | null; submittedAt: Date | string; receivedAt?: Date | string; }; export type FeedbackUpdateInput = { id?: Prisma.StringFieldUpdateOperationsInput | string; feedbackId?: Prisma.StringFieldUpdateOperationsInput | string; rating?: Prisma.IntFieldUpdateOperationsInput | number; comment?: Prisma.NullableStringFieldUpdateOperationsInput | string | null; type?: Prisma.EnumFeedbackTypeFieldUpdateOperationsInput | $Enums.FeedbackType; version?: Prisma.StringFieldUpdateOperationsInput | string; os?: Prisma.StringFieldUpdateOperationsInput | string; arch?: Prisma.StringFieldUpdateOperationsInput | string; nodeVersion?: Prisma.StringFieldUpdateOperationsInput | string; sessionCount?: Prisma.NullableIntFieldUpdateOperationsInput | number | null; factCount?: Prisma.NullableIntFieldUpdateOperationsInput | number | null; instanceId?: Prisma.StringFieldUpdateOperationsInput | string; milestoneContext?: Prisma.NullableStringFieldUpdateOperationsInput | string | null; submittedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string; receivedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string; }; export type FeedbackUncheckedUpdateInput = { id?: Prisma.StringFieldUpdateOperationsInput | string; feedbackId?: Prisma.StringFieldUpdateOperationsInput | string; rating?: Prisma.IntFieldUpdateOperationsInput | number; comment?: Prisma.NullableStringFieldUpdateOperationsInput | string | null; type?: Prisma.EnumFeedbackTypeFieldUpdateOperationsInput | $Enums.FeedbackType; version?: Prisma.StringFieldUpdateOperationsInput | string; os?: Prisma.StringFieldUpdateOperationsInput | string; arch?: Prisma.StringFieldUpdateOperationsInput | string; nodeVersion?: Prisma.StringFieldUpdateOperationsInput | string; sessionCount?: Prisma.NullableIntFieldUpdateOperationsInput | number | null; factCount?: Prisma.NullableIntFieldUpdateOperationsInput | number | null; instanceId?: Prisma.StringFieldUpdateOperationsInput | string; milestoneContext?: Prisma.NullableStringFieldUpdateOperationsInput | string | null; submittedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string; receivedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string; }; export type FeedbackCreateManyInput = { id?: string; feedbackId: string; rating: number; comment?: string | null; type: $Enums.FeedbackType; version: string; os: string; arch: string; nodeVersion: string; sessionCount?: number | null; factCount?: number | null; instanceId: string; milestoneContext?: string | null; submittedAt: Date | string; receivedAt?: Date | string; }; export type FeedbackUpdateManyMutationInput = { id?: Prisma.StringFieldUpdateOperationsInput | string; feedbackId?: Prisma.StringFieldUpdateOperationsInput | string; rating?: Prisma.IntFieldUpdateOperationsInput | number; comment?: Prisma.NullableStringFieldUpdateOperationsInput | string | null; type?: Prisma.EnumFeedbackTypeFieldUpdateOperationsInput | $Enums.FeedbackType; version?: Prisma.StringFieldUpdateOperationsInput | string; os?: Prisma.StringFieldUpdateOperationsInput | string; arch?: Prisma.StringFieldUpdateOperationsInput | string; nodeVersion?: Prisma.StringFieldUpdateOperationsInput | string; sessionCount?: Prisma.NullableIntFieldUpdateOperationsInput | number | null; factCount?: Prisma.NullableIntFieldUpdateOperationsInput | number | null; instanceId?: Prisma.StringFieldUpdateOperationsInput | string; milestoneContext?: Prisma.NullableStringFieldUpdateOperationsInput | string | null; submittedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string; receivedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string; }; export type FeedbackUncheckedUpdateManyInput = { id?: Prisma.StringFieldUpdateOperationsInput | string; feedbackId?: Prisma.StringFieldUpdateOperationsInput | string; rating?: Prisma.IntFieldUpdateOperationsInput | number; comment?: Prisma.NullableStringFieldUpdateOperationsInput | string | null; type?: Prisma.EnumFeedbackTypeFieldUpdateOperationsInput | $Enums.FeedbackType; version?: Prisma.StringFieldUpdateOperationsInput | string; os?: Prisma.StringFieldUpdateOperationsInput | string; arch?: Prisma.StringFieldUpdateOperationsInput | string; nodeVersion?: Prisma.StringFieldUpdateOperationsInput | string; sessionCount?: Prisma.NullableIntFieldUpdateOperationsInput | number | null; factCount?: Prisma.NullableIntFieldUpdateOperationsInput | number | null; instanceId?: Prisma.StringFieldUpdateOperationsInput | string; milestoneContext?: Prisma.NullableStringFieldUpdateOperationsInput | string | null; submittedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string; receivedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string; }; export type FeedbackCountOrderByAggregateInput = { id?: Prisma.SortOrder; feedbackId?: Prisma.SortOrder; rating?: Prisma.SortOrder; comment?: Prisma.SortOrder; type?: Prisma.SortOrder; version?: Prisma.SortOrder; os?: Prisma.SortOrder; arch?: Prisma.SortOrder; nodeVersion?: Prisma.SortOrder; sessionCount?: Prisma.SortOrder; factCount?: Prisma.SortOrder; instanceId?: Prisma.SortOrder; milestoneContext?: Prisma.SortOrder; submittedAt?: Prisma.SortOrder; receivedAt?: Prisma.SortOrder; }; export type FeedbackAvgOrderByAggregateInput = { rating?: Prisma.SortOrder; sessionCount?: Prisma.SortOrder; factCount?: Prisma.SortOrder; }; export type FeedbackMaxOrderByAggregateInput = { id?: Prisma.SortOrder; feedbackId?: Prisma.SortOrder; rating?: Prisma.SortOrder; comment?: Prisma.SortOrder; type?: Prisma.SortOrder; version?: Prisma.SortOrder; os?: Prisma.SortOrder; arch?: Prisma.SortOrder; nodeVersion?: Prisma.SortOrder; sessionCount?: Prisma.SortOrder; factCount?: Prisma.SortOrder; instanceId?: Prisma.SortOrder; milestoneContext?: Prisma.SortOrder; submittedAt?: Prisma.SortOrder; receivedAt?: Prisma.SortOrder; }; export type FeedbackMinOrderByAggregateInput = { id?: Prisma.SortOrder; feedbackId?: Prisma.SortOrder; rating?: Prisma.SortOrder; comment?: Prisma.SortOrder; type?: Prisma.SortOrder; version?: Prisma.SortOrder; os?: Prisma.SortOrder; arch?: Prisma.SortOrder; nodeVersion?: Prisma.SortOrder; sessionCount?: Prisma.SortOrder; factCount?: Prisma.SortOrder; instanceId?: Prisma.SortOrder; milestoneContext?: Prisma.SortOrder; submittedAt?: Prisma.SortOrder; receivedAt?: Prisma.SortOrder; }; export type FeedbackSumOrderByAggregateInput = { rating?: Prisma.SortOrder; sessionCount?: Prisma.SortOrder; factCount?: Prisma.SortOrder; }; export type EnumFeedbackTypeFieldUpdateOperationsInput = { set?: $Enums.FeedbackType; }; export type FeedbackSelect = runtime.Types.Extensions.GetSelect<{ id?: boolean; feedbackId?: boolean; rating?: boolean; comment?: boolean; type?: boolean; version?: boolean; os?: boolean; arch?: boolean; nodeVersion?: boolean; sessionCount?: boolean; factCount?: boolean; instanceId?: boolean; milestoneContext?: boolean; submittedAt?: boolean; receivedAt?: boolean; }, ExtArgs["result"]["feedback"]>; export type FeedbackSelectCreateManyAndReturn = runtime.Types.Extensions.GetSelect<{ id?: boolean; feedbackId?: boolean; rating?: boolean; comment?: boolean; type?: boolean; version?: boolean; os?: boolean; arch?: boolean; nodeVersion?: boolean; sessionCount?: boolean; factCount?: boolean; instanceId?: boolean; milestoneContext?: boolean; submittedAt?: boolean; receivedAt?: boolean; }, ExtArgs["result"]["feedback"]>; export type FeedbackSelectUpdateManyAndReturn = runtime.Types.Extensions.GetSelect<{ id?: boolean; feedbackId?: boolean; rating?: boolean; comment?: boolean; type?: boolean; version?: boolean; os?: boolean; arch?: boolean; nodeVersion?: boolean; sessionCount?: boolean; factCount?: boolean; instanceId?: boolean; milestoneContext?: boolean; submittedAt?: boolean; receivedAt?: boolean; }, ExtArgs["result"]["feedback"]>; export type FeedbackSelectScalar = { id?: boolean; feedbackId?: boolean; rating?: boolean; comment?: boolean; type?: boolean; version?: boolean; os?: boolean; arch?: boolean; nodeVersion?: boolean; sessionCount?: boolean; factCount?: boolean; instanceId?: boolean; milestoneContext?: boolean; submittedAt?: boolean; receivedAt?: boolean; }; export type FeedbackOmit = runtime.Types.Extensions.GetOmit<"id" | "feedbackId" | "rating" | "comment" | "type" | "version" | "os" | "arch" | "nodeVersion" | "sessionCount" | "factCount" | "instanceId" | "milestoneContext" | "submittedAt" | "receivedAt", ExtArgs["result"]["feedback"]>; export type $FeedbackPayload = { name: "Feedback"; objects: {}; scalars: runtime.Types.Extensions.GetPayloadResult<{ id: string; feedbackId: string; rating: number; comment: string | null; type: $Enums.FeedbackType; version: string; os: string; arch: string; nodeVersion: string; sessionCount: number | null; factCount: number | null; instanceId: string; milestoneContext: string | null; submittedAt: Date; receivedAt: Date; }, ExtArgs["result"]["feedback"]>; composites: {}; }; export type FeedbackGetPayload = runtime.Types.Result.GetResult; export type FeedbackCountArgs = Omit & { select?: FeedbackCountAggregateInputType | true; }; export interface FeedbackDelegate { [K: symbol]: { types: Prisma.TypeMap['model']['Feedback']; meta: { name: 'Feedback'; }; }; /** * Find zero or one Feedback that matches the filter. * @param {FeedbackFindUniqueArgs} args - Arguments to find a Feedback * @example * // Get one Feedback * const feedback = await prisma.feedback.findUnique({ * where: { * // ... provide filter here * } * }) */ findUnique(args: Prisma.SelectSubset>): Prisma.Prisma__FeedbackClient, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>; /** * Find one Feedback that matches the filter or throw an error with `error.code='P2025'` * if no matches were found. * @param {FeedbackFindUniqueOrThrowArgs} args - Arguments to find a Feedback * @example * // Get one Feedback * const feedback = await prisma.feedback.findUniqueOrThrow({ * where: { * // ... provide filter here * } * }) */ findUniqueOrThrow(args: Prisma.SelectSubset>): Prisma.Prisma__FeedbackClient, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>; /** * Find the first Feedback 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 {FeedbackFindFirstArgs} args - Arguments to find a Feedback * @example * // Get one Feedback * const feedback = await prisma.feedback.findFirst({ * where: { * // ... provide filter here * } * }) */ findFirst(args?: Prisma.SelectSubset>): Prisma.Prisma__FeedbackClient, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>; /** * Find the first Feedback 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 {FeedbackFindFirstOrThrowArgs} args - Arguments to find a Feedback * @example * // Get one Feedback * const feedback = await prisma.feedback.findFirstOrThrow({ * where: { * // ... provide filter here * } * }) */ findFirstOrThrow(args?: Prisma.SelectSubset>): Prisma.Prisma__FeedbackClient, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>; /** * Find zero or more Feedbacks 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 {FeedbackFindManyArgs} args - Arguments to filter and select certain fields only. * @example * // Get all Feedbacks * const feedbacks = await prisma.feedback.findMany() * * // Get first 10 Feedbacks * const feedbacks = await prisma.feedback.findMany({ take: 10 }) * * // Only select the `id` * const feedbackWithIdOnly = await prisma.feedback.findMany({ select: { id: true } }) * */ findMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>>; /** * Create a Feedback. * @param {FeedbackCreateArgs} args - Arguments to create a Feedback. * @example * // Create one Feedback * const Feedback = await prisma.feedback.create({ * data: { * // ... data to create a Feedback * } * }) * */ create(args: Prisma.SelectSubset>): Prisma.Prisma__FeedbackClient, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>; /** * Create many Feedbacks. * @param {FeedbackCreateManyArgs} args - Arguments to create many Feedbacks. * @example * // Create many Feedbacks * const feedback = await prisma.feedback.createMany({ * data: [ * // ... provide data here * ] * }) * */ createMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise; /** * Create many Feedbacks and returns the data saved in the database. * @param {FeedbackCreateManyAndReturnArgs} args - Arguments to create many Feedbacks. * @example * // Create many Feedbacks * const feedback = await prisma.feedback.createManyAndReturn({ * data: [ * // ... provide data here * ] * }) * * // Create many Feedbacks and only return the `id` * const feedbackWithIdOnly = await prisma.feedback.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 Feedback. * @param {FeedbackDeleteArgs} args - Arguments to delete one Feedback. * @example * // Delete one Feedback * const Feedback = await prisma.feedback.delete({ * where: { * // ... filter to delete one Feedback * } * }) * */ delete(args: Prisma.SelectSubset>): Prisma.Prisma__FeedbackClient, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>; /** * Update one Feedback. * @param {FeedbackUpdateArgs} args - Arguments to update one Feedback. * @example * // Update one Feedback * const feedback = await prisma.feedback.update({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ update(args: Prisma.SelectSubset>): Prisma.Prisma__FeedbackClient, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>; /** * Delete zero or more Feedbacks. * @param {FeedbackDeleteManyArgs} args - Arguments to filter Feedbacks to delete. * @example * // Delete a few Feedbacks * const { count } = await prisma.feedback.deleteMany({ * where: { * // ... provide filter here * } * }) * */ deleteMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise; /** * Update zero or more Feedbacks. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {FeedbackUpdateManyArgs} args - Arguments to update one or more rows. * @example * // Update many Feedbacks * const feedback = await prisma.feedback.updateMany({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ updateMany(args: Prisma.SelectSubset>): Prisma.PrismaPromise; /** * Update zero or more Feedbacks and returns the data updated in the database. * @param {FeedbackUpdateManyAndReturnArgs} args - Arguments to update many Feedbacks. * @example * // Update many Feedbacks * const feedback = await prisma.feedback.updateManyAndReturn({ * where: { * // ... provide filter here * }, * data: [ * // ... provide data here * ] * }) * * // Update zero or more Feedbacks and only return the `id` * const feedbackWithIdOnly = await prisma.feedback.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 Feedback. * @param {FeedbackUpsertArgs} args - Arguments to update or create a Feedback. * @example * // Update or create a Feedback * const feedback = await prisma.feedback.upsert({ * create: { * // ... data to create a Feedback * }, * update: { * // ... in case it already exists, update * }, * where: { * // ... the filter for the Feedback we want to update * } * }) */ upsert(args: Prisma.SelectSubset>): Prisma.Prisma__FeedbackClient, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>; /** * Count the number of Feedbacks. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {FeedbackCountArgs} args - Arguments to filter Feedbacks to count. * @example * // Count the number of Feedbacks * const count = await prisma.feedback.count({ * where: { * // ... the filter for the Feedbacks 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 Feedback. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {FeedbackAggregateArgs} 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 Feedback. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {FeedbackGroupByArgs} 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: FeedbackGroupByArgs['orderBy']; } : { orderBy?: FeedbackGroupByArgs['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 ? GetFeedbackGroupByPayload : Prisma.PrismaPromise; /** * Fields of the Feedback model */ readonly fields: FeedbackFieldRefs; } /** * The delegate class that acts as a "Promise-like" for Feedback. * 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__FeedbackClient 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 Feedback model */ export interface FeedbackFieldRefs { readonly id: Prisma.FieldRef<"Feedback", 'String'>; readonly feedbackId: Prisma.FieldRef<"Feedback", 'String'>; readonly rating: Prisma.FieldRef<"Feedback", 'Int'>; readonly comment: Prisma.FieldRef<"Feedback", 'String'>; readonly type: Prisma.FieldRef<"Feedback", 'FeedbackType'>; readonly version: Prisma.FieldRef<"Feedback", 'String'>; readonly os: Prisma.FieldRef<"Feedback", 'String'>; readonly arch: Prisma.FieldRef<"Feedback", 'String'>; readonly nodeVersion: Prisma.FieldRef<"Feedback", 'String'>; readonly sessionCount: Prisma.FieldRef<"Feedback", 'Int'>; readonly factCount: Prisma.FieldRef<"Feedback", 'Int'>; readonly instanceId: Prisma.FieldRef<"Feedback", 'String'>; readonly milestoneContext: Prisma.FieldRef<"Feedback", 'String'>; readonly submittedAt: Prisma.FieldRef<"Feedback", 'DateTime'>; readonly receivedAt: Prisma.FieldRef<"Feedback", 'DateTime'>; } /** * Feedback findUnique */ export type FeedbackFindUniqueArgs = { /** * Select specific fields to fetch from the Feedback */ select?: Prisma.FeedbackSelect | null; /** * Omit specific fields from the Feedback */ omit?: Prisma.FeedbackOmit | null; /** * Filter, which Feedback to fetch. */ where: Prisma.FeedbackWhereUniqueInput; }; /** * Feedback findUniqueOrThrow */ export type FeedbackFindUniqueOrThrowArgs = { /** * Select specific fields to fetch from the Feedback */ select?: Prisma.FeedbackSelect | null; /** * Omit specific fields from the Feedback */ omit?: Prisma.FeedbackOmit | null; /** * Filter, which Feedback to fetch. */ where: Prisma.FeedbackWhereUniqueInput; }; /** * Feedback findFirst */ export type FeedbackFindFirstArgs = { /** * Select specific fields to fetch from the Feedback */ select?: Prisma.FeedbackSelect | null; /** * Omit specific fields from the Feedback */ omit?: Prisma.FeedbackOmit | null; /** * Filter, which Feedback to fetch. */ where?: Prisma.FeedbackWhereInput; /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Feedbacks to fetch. */ orderBy?: Prisma.FeedbackOrderByWithRelationInput | Prisma.FeedbackOrderByWithRelationInput[]; /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for Feedbacks. */ cursor?: Prisma.FeedbackWhereUniqueInput; /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Feedbacks 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` Feedbacks. */ skip?: number; /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of Feedbacks. */ distinct?: Prisma.FeedbackScalarFieldEnum | Prisma.FeedbackScalarFieldEnum[]; }; /** * Feedback findFirstOrThrow */ export type FeedbackFindFirstOrThrowArgs = { /** * Select specific fields to fetch from the Feedback */ select?: Prisma.FeedbackSelect | null; /** * Omit specific fields from the Feedback */ omit?: Prisma.FeedbackOmit | null; /** * Filter, which Feedback to fetch. */ where?: Prisma.FeedbackWhereInput; /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Feedbacks to fetch. */ orderBy?: Prisma.FeedbackOrderByWithRelationInput | Prisma.FeedbackOrderByWithRelationInput[]; /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for Feedbacks. */ cursor?: Prisma.FeedbackWhereUniqueInput; /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Feedbacks 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` Feedbacks. */ skip?: number; /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of Feedbacks. */ distinct?: Prisma.FeedbackScalarFieldEnum | Prisma.FeedbackScalarFieldEnum[]; }; /** * Feedback findMany */ export type FeedbackFindManyArgs = { /** * Select specific fields to fetch from the Feedback */ select?: Prisma.FeedbackSelect | null; /** * Omit specific fields from the Feedback */ omit?: Prisma.FeedbackOmit | null; /** * Filter, which Feedbacks to fetch. */ where?: Prisma.FeedbackWhereInput; /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Feedbacks to fetch. */ orderBy?: Prisma.FeedbackOrderByWithRelationInput | Prisma.FeedbackOrderByWithRelationInput[]; /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for listing Feedbacks. */ cursor?: Prisma.FeedbackWhereUniqueInput; /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Feedbacks 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` Feedbacks. */ skip?: number; distinct?: Prisma.FeedbackScalarFieldEnum | Prisma.FeedbackScalarFieldEnum[]; }; /** * Feedback create */ export type FeedbackCreateArgs = { /** * Select specific fields to fetch from the Feedback */ select?: Prisma.FeedbackSelect | null; /** * Omit specific fields from the Feedback */ omit?: Prisma.FeedbackOmit | null; /** * The data needed to create a Feedback. */ data: Prisma.XOR; }; /** * Feedback createMany */ export type FeedbackCreateManyArgs = { /** * The data used to create many Feedbacks. */ data: Prisma.FeedbackCreateManyInput | Prisma.FeedbackCreateManyInput[]; skipDuplicates?: boolean; }; /** * Feedback createManyAndReturn */ export type FeedbackCreateManyAndReturnArgs = { /** * Select specific fields to fetch from the Feedback */ select?: Prisma.FeedbackSelectCreateManyAndReturn | null; /** * Omit specific fields from the Feedback */ omit?: Prisma.FeedbackOmit | null; /** * The data used to create many Feedbacks. */ data: Prisma.FeedbackCreateManyInput | Prisma.FeedbackCreateManyInput[]; skipDuplicates?: boolean; }; /** * Feedback update */ export type FeedbackUpdateArgs = { /** * Select specific fields to fetch from the Feedback */ select?: Prisma.FeedbackSelect | null; /** * Omit specific fields from the Feedback */ omit?: Prisma.FeedbackOmit | null; /** * The data needed to update a Feedback. */ data: Prisma.XOR; /** * Choose, which Feedback to update. */ where: Prisma.FeedbackWhereUniqueInput; }; /** * Feedback updateMany */ export type FeedbackUpdateManyArgs = { /** * The data used to update Feedbacks. */ data: Prisma.XOR; /** * Filter which Feedbacks to update */ where?: Prisma.FeedbackWhereInput; /** * Limit how many Feedbacks to update. */ limit?: number; }; /** * Feedback updateManyAndReturn */ export type FeedbackUpdateManyAndReturnArgs = { /** * Select specific fields to fetch from the Feedback */ select?: Prisma.FeedbackSelectUpdateManyAndReturn | null; /** * Omit specific fields from the Feedback */ omit?: Prisma.FeedbackOmit | null; /** * The data used to update Feedbacks. */ data: Prisma.XOR; /** * Filter which Feedbacks to update */ where?: Prisma.FeedbackWhereInput; /** * Limit how many Feedbacks to update. */ limit?: number; }; /** * Feedback upsert */ export type FeedbackUpsertArgs = { /** * Select specific fields to fetch from the Feedback */ select?: Prisma.FeedbackSelect | null; /** * Omit specific fields from the Feedback */ omit?: Prisma.FeedbackOmit | null; /** * The filter to search for the Feedback to update in case it exists. */ where: Prisma.FeedbackWhereUniqueInput; /** * In case the Feedback found by the `where` argument doesn't exist, create a new Feedback with this data. */ create: Prisma.XOR; /** * In case the Feedback was found with the provided `where` argument, update it with this data. */ update: Prisma.XOR; }; /** * Feedback delete */ export type FeedbackDeleteArgs = { /** * Select specific fields to fetch from the Feedback */ select?: Prisma.FeedbackSelect | null; /** * Omit specific fields from the Feedback */ omit?: Prisma.FeedbackOmit | null; /** * Filter which Feedback to delete. */ where: Prisma.FeedbackWhereUniqueInput; }; /** * Feedback deleteMany */ export type FeedbackDeleteManyArgs = { /** * Filter which Feedbacks to delete */ where?: Prisma.FeedbackWhereInput; /** * Limit how many Feedbacks to delete. */ limit?: number; }; /** * Feedback without action */ export type FeedbackDefaultArgs = { /** * Select specific fields to fetch from the Feedback */ select?: Prisma.FeedbackSelect | null; /** * Omit specific fields from the Feedback */ omit?: Prisma.FeedbackOmit | null; }; export {}; //# sourceMappingURL=Feedback.d.ts.map