/* !!! This is code generated by Prisma. Do not edit directly. !!! */ /* eslint-disable */ // biome-ignore-all lint: generated file // @ts-nocheck /* * This file exports the `App` model and its related types. * * 🟢 You can import this file directly. */ import type * as runtime from "@prisma/client/runtime/client" import type * as $Enums from "../enums.ts" import type * as Prisma from "../internal/prismaNamespace.ts" /** * Model App * Global catalog definition of an integratable app (no tenant, no RLS). The * `connectionSchema` drives the auto-generated credential form; `connectionType` * selects the connect flow. New apps are registered by the build-time adapter * scan + this catalog (drift-check warns in the platform admin). */ export type AppModel = runtime.Types.Result.DefaultSelection export type AggregateApp = { _count: AppCountAggregateOutputType | null _min: AppMinAggregateOutputType | null _max: AppMaxAggregateOutputType | null } export type AppMinAggregateOutputType = { id: string | null createdAt: Date | null updatedAt: Date | null key: string | null title: string | null category: $Enums.AppCategory | null connectionType: $Enums.AppConnectionType | null phase: string | null icon: string | null isActive: boolean | null } export type AppMaxAggregateOutputType = { id: string | null createdAt: Date | null updatedAt: Date | null key: string | null title: string | null category: $Enums.AppCategory | null connectionType: $Enums.AppConnectionType | null phase: string | null icon: string | null isActive: boolean | null } export type AppCountAggregateOutputType = { id: number createdAt: number updatedAt: number key: number title: number category: number connectionType: number connectionSchema: number phase: number icon: number isActive: number _all: number } export type AppMinAggregateInputType = { id?: true createdAt?: true updatedAt?: true key?: true title?: true category?: true connectionType?: true phase?: true icon?: true isActive?: true } export type AppMaxAggregateInputType = { id?: true createdAt?: true updatedAt?: true key?: true title?: true category?: true connectionType?: true phase?: true icon?: true isActive?: true } export type AppCountAggregateInputType = { id?: true createdAt?: true updatedAt?: true key?: true title?: true category?: true connectionType?: true connectionSchema?: true phase?: true icon?: true isActive?: true _all?: true } export type AppAggregateArgs = { /** * Filter which App to aggregate. */ where?: Prisma.AppWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Apps to fetch. */ orderBy?: Prisma.AppOrderByWithRelationInput | Prisma.AppOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the start position */ cursor?: Prisma.AppWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Apps 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` Apps. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Count returned Apps **/ _count?: true | AppCountAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the minimum value **/ _min?: AppMinAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the maximum value **/ _max?: AppMaxAggregateInputType } export type GetAppAggregateType = { [P in keyof T & keyof AggregateApp]: P extends '_count' | 'count' ? T[P] extends true ? number : Prisma.GetScalarType : Prisma.GetScalarType } export type AppGroupByArgs = { where?: Prisma.AppWhereInput orderBy?: Prisma.AppOrderByWithAggregationInput | Prisma.AppOrderByWithAggregationInput[] by: Prisma.AppScalarFieldEnum[] | Prisma.AppScalarFieldEnum having?: Prisma.AppScalarWhereWithAggregatesInput take?: number skip?: number _count?: AppCountAggregateInputType | true _min?: AppMinAggregateInputType _max?: AppMaxAggregateInputType } export type AppGroupByOutputType = { id: string createdAt: Date updatedAt: Date key: string title: string category: $Enums.AppCategory connectionType: $Enums.AppConnectionType connectionSchema: runtime.JsonValue phase: string | null icon: string | null isActive: boolean _count: AppCountAggregateOutputType | null _min: AppMinAggregateOutputType | null _max: AppMaxAggregateOutputType | null } export type GetAppGroupByPayload = Prisma.PrismaPromise< Array< Prisma.PickEnumerable & { [P in ((keyof T) & (keyof AppGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : Prisma.GetScalarType : Prisma.GetScalarType } > > export type AppWhereInput = { AND?: Prisma.AppWhereInput | Prisma.AppWhereInput[] OR?: Prisma.AppWhereInput[] NOT?: Prisma.AppWhereInput | Prisma.AppWhereInput[] id?: Prisma.StringFilter<"App"> | string createdAt?: Prisma.DateTimeFilter<"App"> | Date | string updatedAt?: Prisma.DateTimeFilter<"App"> | Date | string key?: Prisma.StringFilter<"App"> | string title?: Prisma.StringFilter<"App"> | string category?: Prisma.EnumAppCategoryFilter<"App"> | $Enums.AppCategory connectionType?: Prisma.EnumAppConnectionTypeFilter<"App"> | $Enums.AppConnectionType connectionSchema?: Prisma.JsonFilter<"App"> phase?: Prisma.StringNullableFilter<"App"> | string | null icon?: Prisma.StringNullableFilter<"App"> | string | null isActive?: Prisma.BoolFilter<"App"> | boolean } export type AppOrderByWithRelationInput = { id?: Prisma.SortOrder createdAt?: Prisma.SortOrder updatedAt?: Prisma.SortOrder key?: Prisma.SortOrder title?: Prisma.SortOrder category?: Prisma.SortOrder connectionType?: Prisma.SortOrder connectionSchema?: Prisma.SortOrder phase?: Prisma.SortOrderInput | Prisma.SortOrder icon?: Prisma.SortOrderInput | Prisma.SortOrder isActive?: Prisma.SortOrder } export type AppWhereUniqueInput = Prisma.AtLeast<{ id?: string key?: string AND?: Prisma.AppWhereInput | Prisma.AppWhereInput[] OR?: Prisma.AppWhereInput[] NOT?: Prisma.AppWhereInput | Prisma.AppWhereInput[] createdAt?: Prisma.DateTimeFilter<"App"> | Date | string updatedAt?: Prisma.DateTimeFilter<"App"> | Date | string title?: Prisma.StringFilter<"App"> | string category?: Prisma.EnumAppCategoryFilter<"App"> | $Enums.AppCategory connectionType?: Prisma.EnumAppConnectionTypeFilter<"App"> | $Enums.AppConnectionType connectionSchema?: Prisma.JsonFilter<"App"> phase?: Prisma.StringNullableFilter<"App"> | string | null icon?: Prisma.StringNullableFilter<"App"> | string | null isActive?: Prisma.BoolFilter<"App"> | boolean }, "id" | "key"> export type AppOrderByWithAggregationInput = { id?: Prisma.SortOrder createdAt?: Prisma.SortOrder updatedAt?: Prisma.SortOrder key?: Prisma.SortOrder title?: Prisma.SortOrder category?: Prisma.SortOrder connectionType?: Prisma.SortOrder connectionSchema?: Prisma.SortOrder phase?: Prisma.SortOrderInput | Prisma.SortOrder icon?: Prisma.SortOrderInput | Prisma.SortOrder isActive?: Prisma.SortOrder _count?: Prisma.AppCountOrderByAggregateInput _max?: Prisma.AppMaxOrderByAggregateInput _min?: Prisma.AppMinOrderByAggregateInput } export type AppScalarWhereWithAggregatesInput = { AND?: Prisma.AppScalarWhereWithAggregatesInput | Prisma.AppScalarWhereWithAggregatesInput[] OR?: Prisma.AppScalarWhereWithAggregatesInput[] NOT?: Prisma.AppScalarWhereWithAggregatesInput | Prisma.AppScalarWhereWithAggregatesInput[] id?: Prisma.StringWithAggregatesFilter<"App"> | string createdAt?: Prisma.DateTimeWithAggregatesFilter<"App"> | Date | string updatedAt?: Prisma.DateTimeWithAggregatesFilter<"App"> | Date | string key?: Prisma.StringWithAggregatesFilter<"App"> | string title?: Prisma.StringWithAggregatesFilter<"App"> | string category?: Prisma.EnumAppCategoryWithAggregatesFilter<"App"> | $Enums.AppCategory connectionType?: Prisma.EnumAppConnectionTypeWithAggregatesFilter<"App"> | $Enums.AppConnectionType connectionSchema?: Prisma.JsonWithAggregatesFilter<"App"> phase?: Prisma.StringNullableWithAggregatesFilter<"App"> | string | null icon?: Prisma.StringNullableWithAggregatesFilter<"App"> | string | null isActive?: Prisma.BoolWithAggregatesFilter<"App"> | boolean } export type AppCreateInput = { id?: string createdAt?: Date | string updatedAt?: Date | string key: string title: string category: $Enums.AppCategory connectionType: $Enums.AppConnectionType connectionSchema?: Prisma.JsonNullValueInput | runtime.InputJsonValue phase?: string | null icon?: string | null isActive?: boolean } export type AppUncheckedCreateInput = { id?: string createdAt?: Date | string updatedAt?: Date | string key: string title: string category: $Enums.AppCategory connectionType: $Enums.AppConnectionType connectionSchema?: Prisma.JsonNullValueInput | runtime.InputJsonValue phase?: string | null icon?: string | null isActive?: boolean } export type AppUpdateInput = { id?: Prisma.StringFieldUpdateOperationsInput | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string key?: Prisma.StringFieldUpdateOperationsInput | string title?: Prisma.StringFieldUpdateOperationsInput | string category?: Prisma.EnumAppCategoryFieldUpdateOperationsInput | $Enums.AppCategory connectionType?: Prisma.EnumAppConnectionTypeFieldUpdateOperationsInput | $Enums.AppConnectionType connectionSchema?: Prisma.JsonNullValueInput | runtime.InputJsonValue phase?: Prisma.NullableStringFieldUpdateOperationsInput | string | null icon?: Prisma.NullableStringFieldUpdateOperationsInput | string | null isActive?: Prisma.BoolFieldUpdateOperationsInput | boolean } export type AppUncheckedUpdateInput = { id?: Prisma.StringFieldUpdateOperationsInput | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string key?: Prisma.StringFieldUpdateOperationsInput | string title?: Prisma.StringFieldUpdateOperationsInput | string category?: Prisma.EnumAppCategoryFieldUpdateOperationsInput | $Enums.AppCategory connectionType?: Prisma.EnumAppConnectionTypeFieldUpdateOperationsInput | $Enums.AppConnectionType connectionSchema?: Prisma.JsonNullValueInput | runtime.InputJsonValue phase?: Prisma.NullableStringFieldUpdateOperationsInput | string | null icon?: Prisma.NullableStringFieldUpdateOperationsInput | string | null isActive?: Prisma.BoolFieldUpdateOperationsInput | boolean } export type AppCreateManyInput = { id?: string createdAt?: Date | string updatedAt?: Date | string key: string title: string category: $Enums.AppCategory connectionType: $Enums.AppConnectionType connectionSchema?: Prisma.JsonNullValueInput | runtime.InputJsonValue phase?: string | null icon?: string | null isActive?: boolean } export type AppUpdateManyMutationInput = { id?: Prisma.StringFieldUpdateOperationsInput | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string key?: Prisma.StringFieldUpdateOperationsInput | string title?: Prisma.StringFieldUpdateOperationsInput | string category?: Prisma.EnumAppCategoryFieldUpdateOperationsInput | $Enums.AppCategory connectionType?: Prisma.EnumAppConnectionTypeFieldUpdateOperationsInput | $Enums.AppConnectionType connectionSchema?: Prisma.JsonNullValueInput | runtime.InputJsonValue phase?: Prisma.NullableStringFieldUpdateOperationsInput | string | null icon?: Prisma.NullableStringFieldUpdateOperationsInput | string | null isActive?: Prisma.BoolFieldUpdateOperationsInput | boolean } export type AppUncheckedUpdateManyInput = { id?: Prisma.StringFieldUpdateOperationsInput | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string key?: Prisma.StringFieldUpdateOperationsInput | string title?: Prisma.StringFieldUpdateOperationsInput | string category?: Prisma.EnumAppCategoryFieldUpdateOperationsInput | $Enums.AppCategory connectionType?: Prisma.EnumAppConnectionTypeFieldUpdateOperationsInput | $Enums.AppConnectionType connectionSchema?: Prisma.JsonNullValueInput | runtime.InputJsonValue phase?: Prisma.NullableStringFieldUpdateOperationsInput | string | null icon?: Prisma.NullableStringFieldUpdateOperationsInput | string | null isActive?: Prisma.BoolFieldUpdateOperationsInput | boolean } export type AppCountOrderByAggregateInput = { id?: Prisma.SortOrder createdAt?: Prisma.SortOrder updatedAt?: Prisma.SortOrder key?: Prisma.SortOrder title?: Prisma.SortOrder category?: Prisma.SortOrder connectionType?: Prisma.SortOrder connectionSchema?: Prisma.SortOrder phase?: Prisma.SortOrder icon?: Prisma.SortOrder isActive?: Prisma.SortOrder } export type AppMaxOrderByAggregateInput = { id?: Prisma.SortOrder createdAt?: Prisma.SortOrder updatedAt?: Prisma.SortOrder key?: Prisma.SortOrder title?: Prisma.SortOrder category?: Prisma.SortOrder connectionType?: Prisma.SortOrder phase?: Prisma.SortOrder icon?: Prisma.SortOrder isActive?: Prisma.SortOrder } export type AppMinOrderByAggregateInput = { id?: Prisma.SortOrder createdAt?: Prisma.SortOrder updatedAt?: Prisma.SortOrder key?: Prisma.SortOrder title?: Prisma.SortOrder category?: Prisma.SortOrder connectionType?: Prisma.SortOrder phase?: Prisma.SortOrder icon?: Prisma.SortOrder isActive?: Prisma.SortOrder } export type EnumAppCategoryFieldUpdateOperationsInput = { set?: $Enums.AppCategory } export type EnumAppConnectionTypeFieldUpdateOperationsInput = { set?: $Enums.AppConnectionType } export type AppSelect = runtime.Types.Extensions.GetSelect<{ id?: boolean createdAt?: boolean updatedAt?: boolean key?: boolean title?: boolean category?: boolean connectionType?: boolean connectionSchema?: boolean phase?: boolean icon?: boolean isActive?: boolean }, ExtArgs["result"]["app"]> export type AppSelectCreateManyAndReturn = runtime.Types.Extensions.GetSelect<{ id?: boolean createdAt?: boolean updatedAt?: boolean key?: boolean title?: boolean category?: boolean connectionType?: boolean connectionSchema?: boolean phase?: boolean icon?: boolean isActive?: boolean }, ExtArgs["result"]["app"]> export type AppSelectUpdateManyAndReturn = runtime.Types.Extensions.GetSelect<{ id?: boolean createdAt?: boolean updatedAt?: boolean key?: boolean title?: boolean category?: boolean connectionType?: boolean connectionSchema?: boolean phase?: boolean icon?: boolean isActive?: boolean }, ExtArgs["result"]["app"]> export type AppSelectScalar = { id?: boolean createdAt?: boolean updatedAt?: boolean key?: boolean title?: boolean category?: boolean connectionType?: boolean connectionSchema?: boolean phase?: boolean icon?: boolean isActive?: boolean } export type AppOmit = runtime.Types.Extensions.GetOmit<"id" | "createdAt" | "updatedAt" | "key" | "title" | "category" | "connectionType" | "connectionSchema" | "phase" | "icon" | "isActive", ExtArgs["result"]["app"]> export type $AppPayload = { name: "App" objects: {} scalars: runtime.Types.Extensions.GetPayloadResult<{ id: string createdAt: Date updatedAt: Date key: string title: string category: $Enums.AppCategory connectionType: $Enums.AppConnectionType connectionSchema: runtime.JsonValue phase: string | null icon: string | null isActive: boolean }, ExtArgs["result"]["app"]> composites: {} } export type AppGetPayload = runtime.Types.Result.GetResult export type AppCountArgs = Omit & { select?: AppCountAggregateInputType | true } export interface AppDelegate { [K: symbol]: { types: Prisma.TypeMap['model']['App'], meta: { name: 'App' } } /** * Find zero or one App that matches the filter. * @param {AppFindUniqueArgs} args - Arguments to find a App * @example * // Get one App * const app = await prisma.app.findUnique({ * where: { * // ... provide filter here * } * }) */ findUnique(args: Prisma.SelectSubset>): Prisma.Prisma__AppClient, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find one App that matches the filter or throw an error with `error.code='P2025'` * if no matches were found. * @param {AppFindUniqueOrThrowArgs} args - Arguments to find a App * @example * // Get one App * const app = await prisma.app.findUniqueOrThrow({ * where: { * // ... provide filter here * } * }) */ findUniqueOrThrow(args: Prisma.SelectSubset>): Prisma.Prisma__AppClient, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find the first App 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 {AppFindFirstArgs} args - Arguments to find a App * @example * // Get one App * const app = await prisma.app.findFirst({ * where: { * // ... provide filter here * } * }) */ findFirst(args?: Prisma.SelectSubset>): Prisma.Prisma__AppClient, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find the first App 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 {AppFindFirstOrThrowArgs} args - Arguments to find a App * @example * // Get one App * const app = await prisma.app.findFirstOrThrow({ * where: { * // ... provide filter here * } * }) */ findFirstOrThrow(args?: Prisma.SelectSubset>): Prisma.Prisma__AppClient, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find zero or more Apps 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 {AppFindManyArgs} args - Arguments to filter and select certain fields only. * @example * // Get all Apps * const apps = await prisma.app.findMany() * * // Get first 10 Apps * const apps = await prisma.app.findMany({ take: 10 }) * * // Only select the `id` * const appWithIdOnly = await prisma.app.findMany({ select: { id: true } }) * */ findMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>> /** * Create a App. * @param {AppCreateArgs} args - Arguments to create a App. * @example * // Create one App * const App = await prisma.app.create({ * data: { * // ... data to create a App * } * }) * */ create(args: Prisma.SelectSubset>): Prisma.Prisma__AppClient, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Create many Apps. * @param {AppCreateManyArgs} args - Arguments to create many Apps. * @example * // Create many Apps * const app = await prisma.app.createMany({ * data: [ * // ... provide data here * ] * }) * */ createMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Create many Apps and returns the data saved in the database. * @param {AppCreateManyAndReturnArgs} args - Arguments to create many Apps. * @example * // Create many Apps * const app = await prisma.app.createManyAndReturn({ * data: [ * // ... provide data here * ] * }) * * // Create many Apps and only return the `id` * const appWithIdOnly = await prisma.app.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 App. * @param {AppDeleteArgs} args - Arguments to delete one App. * @example * // Delete one App * const App = await prisma.app.delete({ * where: { * // ... filter to delete one App * } * }) * */ delete(args: Prisma.SelectSubset>): Prisma.Prisma__AppClient, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Update one App. * @param {AppUpdateArgs} args - Arguments to update one App. * @example * // Update one App * const app = await prisma.app.update({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ update(args: Prisma.SelectSubset>): Prisma.Prisma__AppClient, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Delete zero or more Apps. * @param {AppDeleteManyArgs} args - Arguments to filter Apps to delete. * @example * // Delete a few Apps * const { count } = await prisma.app.deleteMany({ * where: { * // ... provide filter here * } * }) * */ deleteMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Update zero or more Apps. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {AppUpdateManyArgs} args - Arguments to update one or more rows. * @example * // Update many Apps * const app = await prisma.app.updateMany({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ updateMany(args: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Update zero or more Apps and returns the data updated in the database. * @param {AppUpdateManyAndReturnArgs} args - Arguments to update many Apps. * @example * // Update many Apps * const app = await prisma.app.updateManyAndReturn({ * where: { * // ... provide filter here * }, * data: [ * // ... provide data here * ] * }) * * // Update zero or more Apps and only return the `id` * const appWithIdOnly = await prisma.app.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 App. * @param {AppUpsertArgs} args - Arguments to update or create a App. * @example * // Update or create a App * const app = await prisma.app.upsert({ * create: { * // ... data to create a App * }, * update: { * // ... in case it already exists, update * }, * where: { * // ... the filter for the App we want to update * } * }) */ upsert(args: Prisma.SelectSubset>): Prisma.Prisma__AppClient, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Count the number of Apps. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {AppCountArgs} args - Arguments to filter Apps to count. * @example * // Count the number of Apps * const count = await prisma.app.count({ * where: { * // ... the filter for the Apps we want to count * } * }) **/ count( args?: Prisma.Subset, ): Prisma.PrismaPromise< T extends runtime.Types.Utils.Record<'select', any> ? T['select'] extends true ? number : Prisma.GetScalarType : number > /** * Allows you to perform aggregations operations on a App. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {AppAggregateArgs} 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 App. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {AppGroupByArgs} args - Group by arguments. * @example * // Group by city, order by createdAt, get count * const result = await prisma.user.groupBy({ * by: ['city', 'createdAt'], * orderBy: { * createdAt: true * }, * _count: { * _all: true * }, * }) * **/ groupBy< T extends AppGroupByArgs, HasSelectOrTake extends Prisma.Or< Prisma.Extends<'skip', Prisma.Keys>, Prisma.Extends<'take', Prisma.Keys> >, OrderByArg extends Prisma.True extends HasSelectOrTake ? { orderBy: AppGroupByArgs['orderBy'] } : { orderBy?: AppGroupByArgs['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 ? GetAppGroupByPayload : Prisma.PrismaPromise /** * Fields of the App model */ readonly fields: AppFieldRefs; } /** * The delegate class that acts as a "Promise-like" for App. * 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__AppClient 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 App model */ export interface AppFieldRefs { readonly id: Prisma.FieldRef<"App", 'String'> readonly createdAt: Prisma.FieldRef<"App", 'DateTime'> readonly updatedAt: Prisma.FieldRef<"App", 'DateTime'> readonly key: Prisma.FieldRef<"App", 'String'> readonly title: Prisma.FieldRef<"App", 'String'> readonly category: Prisma.FieldRef<"App", 'AppCategory'> readonly connectionType: Prisma.FieldRef<"App", 'AppConnectionType'> readonly connectionSchema: Prisma.FieldRef<"App", 'Json'> readonly phase: Prisma.FieldRef<"App", 'String'> readonly icon: Prisma.FieldRef<"App", 'String'> readonly isActive: Prisma.FieldRef<"App", 'Boolean'> } // Custom InputTypes /** * App findUnique */ export type AppFindUniqueArgs = { /** * Select specific fields to fetch from the App */ select?: Prisma.AppSelect | null /** * Omit specific fields from the App */ omit?: Prisma.AppOmit | null /** * Filter, which App to fetch. */ where: Prisma.AppWhereUniqueInput } /** * App findUniqueOrThrow */ export type AppFindUniqueOrThrowArgs = { /** * Select specific fields to fetch from the App */ select?: Prisma.AppSelect | null /** * Omit specific fields from the App */ omit?: Prisma.AppOmit | null /** * Filter, which App to fetch. */ where: Prisma.AppWhereUniqueInput } /** * App findFirst */ export type AppFindFirstArgs = { /** * Select specific fields to fetch from the App */ select?: Prisma.AppSelect | null /** * Omit specific fields from the App */ omit?: Prisma.AppOmit | null /** * Filter, which App to fetch. */ where?: Prisma.AppWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Apps to fetch. */ orderBy?: Prisma.AppOrderByWithRelationInput | Prisma.AppOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for Apps. */ cursor?: Prisma.AppWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Apps 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` Apps. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of Apps. */ distinct?: Prisma.AppScalarFieldEnum | Prisma.AppScalarFieldEnum[] } /** * App findFirstOrThrow */ export type AppFindFirstOrThrowArgs = { /** * Select specific fields to fetch from the App */ select?: Prisma.AppSelect | null /** * Omit specific fields from the App */ omit?: Prisma.AppOmit | null /** * Filter, which App to fetch. */ where?: Prisma.AppWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Apps to fetch. */ orderBy?: Prisma.AppOrderByWithRelationInput | Prisma.AppOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for Apps. */ cursor?: Prisma.AppWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Apps 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` Apps. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of Apps. */ distinct?: Prisma.AppScalarFieldEnum | Prisma.AppScalarFieldEnum[] } /** * App findMany */ export type AppFindManyArgs = { /** * Select specific fields to fetch from the App */ select?: Prisma.AppSelect | null /** * Omit specific fields from the App */ omit?: Prisma.AppOmit | null /** * Filter, which Apps to fetch. */ where?: Prisma.AppWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Apps to fetch. */ orderBy?: Prisma.AppOrderByWithRelationInput | Prisma.AppOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for listing Apps. */ cursor?: Prisma.AppWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Apps 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` Apps. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of Apps. */ distinct?: Prisma.AppScalarFieldEnum | Prisma.AppScalarFieldEnum[] } /** * App create */ export type AppCreateArgs = { /** * Select specific fields to fetch from the App */ select?: Prisma.AppSelect | null /** * Omit specific fields from the App */ omit?: Prisma.AppOmit | null /** * The data needed to create a App. */ data: Prisma.XOR } /** * App createMany */ export type AppCreateManyArgs = { /** * The data used to create many Apps. */ data: Prisma.AppCreateManyInput | Prisma.AppCreateManyInput[] skipDuplicates?: boolean } /** * App createManyAndReturn */ export type AppCreateManyAndReturnArgs = { /** * Select specific fields to fetch from the App */ select?: Prisma.AppSelectCreateManyAndReturn | null /** * Omit specific fields from the App */ omit?: Prisma.AppOmit | null /** * The data used to create many Apps. */ data: Prisma.AppCreateManyInput | Prisma.AppCreateManyInput[] skipDuplicates?: boolean } /** * App update */ export type AppUpdateArgs = { /** * Select specific fields to fetch from the App */ select?: Prisma.AppSelect | null /** * Omit specific fields from the App */ omit?: Prisma.AppOmit | null /** * The data needed to update a App. */ data: Prisma.XOR /** * Choose, which App to update. */ where: Prisma.AppWhereUniqueInput } /** * App updateMany */ export type AppUpdateManyArgs = { /** * The data used to update Apps. */ data: Prisma.XOR /** * Filter which Apps to update */ where?: Prisma.AppWhereInput /** * Limit how many Apps to update. */ limit?: number } /** * App updateManyAndReturn */ export type AppUpdateManyAndReturnArgs = { /** * Select specific fields to fetch from the App */ select?: Prisma.AppSelectUpdateManyAndReturn | null /** * Omit specific fields from the App */ omit?: Prisma.AppOmit | null /** * The data used to update Apps. */ data: Prisma.XOR /** * Filter which Apps to update */ where?: Prisma.AppWhereInput /** * Limit how many Apps to update. */ limit?: number } /** * App upsert */ export type AppUpsertArgs = { /** * Select specific fields to fetch from the App */ select?: Prisma.AppSelect | null /** * Omit specific fields from the App */ omit?: Prisma.AppOmit | null /** * The filter to search for the App to update in case it exists. */ where: Prisma.AppWhereUniqueInput /** * In case the App found by the `where` argument doesn't exist, create a new App with this data. */ create: Prisma.XOR /** * In case the App was found with the provided `where` argument, update it with this data. */ update: Prisma.XOR } /** * App delete */ export type AppDeleteArgs = { /** * Select specific fields to fetch from the App */ select?: Prisma.AppSelect | null /** * Omit specific fields from the App */ omit?: Prisma.AppOmit | null /** * Filter which App to delete. */ where: Prisma.AppWhereUniqueInput } /** * App deleteMany */ export type AppDeleteManyArgs = { /** * Filter which Apps to delete */ where?: Prisma.AppWhereInput /** * Limit how many Apps to delete. */ limit?: number } /** * App without action */ export type AppDefaultArgs = { /** * Select specific fields to fetch from the App */ select?: Prisma.AppSelect | null /** * Omit specific fields from the App */ omit?: Prisma.AppOmit | null }