/* !!! This is code generated by Prisma. Do not edit directly. !!! */ /* eslint-disable */ // biome-ignore-all lint: generated file // @ts-nocheck /* * This file exports the `Widget` 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 Widget * */ export type WidgetModel = runtime.Types.Result.DefaultSelection export type AggregateWidget = { _count: WidgetCountAggregateOutputType | null _min: WidgetMinAggregateOutputType | null _max: WidgetMaxAggregateOutputType | null } export type WidgetMinAggregateOutputType = { id: string | null createdAt: Date | null updatedAt: Date | null tenantId: string | null name: string | null appearance: string | null metadata: string | null } export type WidgetMaxAggregateOutputType = { id: string | null createdAt: Date | null updatedAt: Date | null tenantId: string | null name: string | null appearance: string | null metadata: string | null } export type WidgetCountAggregateOutputType = { id: number createdAt: number updatedAt: number tenantId: number name: number appearance: number metadata: number _all: number } export type WidgetMinAggregateInputType = { id?: true createdAt?: true updatedAt?: true tenantId?: true name?: true appearance?: true metadata?: true } export type WidgetMaxAggregateInputType = { id?: true createdAt?: true updatedAt?: true tenantId?: true name?: true appearance?: true metadata?: true } export type WidgetCountAggregateInputType = { id?: true createdAt?: true updatedAt?: true tenantId?: true name?: true appearance?: true metadata?: true _all?: true } export type WidgetAggregateArgs = { /** * Filter which Widget to aggregate. */ where?: Prisma.WidgetWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Widgets to fetch. */ orderBy?: Prisma.WidgetOrderByWithRelationInput | Prisma.WidgetOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the start position */ cursor?: Prisma.WidgetWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Widgets 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` Widgets. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Count returned Widgets **/ _count?: true | WidgetCountAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the minimum value **/ _min?: WidgetMinAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the maximum value **/ _max?: WidgetMaxAggregateInputType } export type GetWidgetAggregateType = { [P in keyof T & keyof AggregateWidget]: P extends '_count' | 'count' ? T[P] extends true ? number : Prisma.GetScalarType : Prisma.GetScalarType } export type WidgetGroupByArgs = { where?: Prisma.WidgetWhereInput orderBy?: Prisma.WidgetOrderByWithAggregationInput | Prisma.WidgetOrderByWithAggregationInput[] by: Prisma.WidgetScalarFieldEnum[] | Prisma.WidgetScalarFieldEnum having?: Prisma.WidgetScalarWhereWithAggregatesInput take?: number skip?: number _count?: WidgetCountAggregateInputType | true _min?: WidgetMinAggregateInputType _max?: WidgetMaxAggregateInputType } export type WidgetGroupByOutputType = { id: string createdAt: Date updatedAt: Date tenantId: string | null name: string appearance: string metadata: string _count: WidgetCountAggregateOutputType | null _min: WidgetMinAggregateOutputType | null _max: WidgetMaxAggregateOutputType | null } export type GetWidgetGroupByPayload = Prisma.PrismaPromise< Array< Prisma.PickEnumerable & { [P in ((keyof T) & (keyof WidgetGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : Prisma.GetScalarType : Prisma.GetScalarType } > > export type WidgetWhereInput = { AND?: Prisma.WidgetWhereInput | Prisma.WidgetWhereInput[] OR?: Prisma.WidgetWhereInput[] NOT?: Prisma.WidgetWhereInput | Prisma.WidgetWhereInput[] id?: Prisma.StringFilter<"Widget"> | string createdAt?: Prisma.DateTimeFilter<"Widget"> | Date | string updatedAt?: Prisma.DateTimeFilter<"Widget"> | Date | string tenantId?: Prisma.StringNullableFilter<"Widget"> | string | null name?: Prisma.StringFilter<"Widget"> | string appearance?: Prisma.StringFilter<"Widget"> | string metadata?: Prisma.StringFilter<"Widget"> | string tenant?: Prisma.XOR | null } export type WidgetOrderByWithRelationInput = { id?: Prisma.SortOrder createdAt?: Prisma.SortOrder updatedAt?: Prisma.SortOrder tenantId?: Prisma.SortOrderInput | Prisma.SortOrder name?: Prisma.SortOrder appearance?: Prisma.SortOrder metadata?: Prisma.SortOrder tenant?: Prisma.TenantOrderByWithRelationInput } export type WidgetWhereUniqueInput = Prisma.AtLeast<{ id?: string tenantId_name?: Prisma.WidgetTenantIdNameCompoundUniqueInput AND?: Prisma.WidgetWhereInput | Prisma.WidgetWhereInput[] OR?: Prisma.WidgetWhereInput[] NOT?: Prisma.WidgetWhereInput | Prisma.WidgetWhereInput[] createdAt?: Prisma.DateTimeFilter<"Widget"> | Date | string updatedAt?: Prisma.DateTimeFilter<"Widget"> | Date | string tenantId?: Prisma.StringNullableFilter<"Widget"> | string | null name?: Prisma.StringFilter<"Widget"> | string appearance?: Prisma.StringFilter<"Widget"> | string metadata?: Prisma.StringFilter<"Widget"> | string tenant?: Prisma.XOR | null }, "id" | "tenantId_name"> export type WidgetOrderByWithAggregationInput = { id?: Prisma.SortOrder createdAt?: Prisma.SortOrder updatedAt?: Prisma.SortOrder tenantId?: Prisma.SortOrderInput | Prisma.SortOrder name?: Prisma.SortOrder appearance?: Prisma.SortOrder metadata?: Prisma.SortOrder _count?: Prisma.WidgetCountOrderByAggregateInput _max?: Prisma.WidgetMaxOrderByAggregateInput _min?: Prisma.WidgetMinOrderByAggregateInput } export type WidgetScalarWhereWithAggregatesInput = { AND?: Prisma.WidgetScalarWhereWithAggregatesInput | Prisma.WidgetScalarWhereWithAggregatesInput[] OR?: Prisma.WidgetScalarWhereWithAggregatesInput[] NOT?: Prisma.WidgetScalarWhereWithAggregatesInput | Prisma.WidgetScalarWhereWithAggregatesInput[] id?: Prisma.StringWithAggregatesFilter<"Widget"> | string createdAt?: Prisma.DateTimeWithAggregatesFilter<"Widget"> | Date | string updatedAt?: Prisma.DateTimeWithAggregatesFilter<"Widget"> | Date | string tenantId?: Prisma.StringNullableWithAggregatesFilter<"Widget"> | string | null name?: Prisma.StringWithAggregatesFilter<"Widget"> | string appearance?: Prisma.StringWithAggregatesFilter<"Widget"> | string metadata?: Prisma.StringWithAggregatesFilter<"Widget"> | string } export type WidgetCreateInput = { id?: string createdAt?: Date | string updatedAt?: Date | string name: string appearance: string metadata: string tenant?: Prisma.TenantCreateNestedOneWithoutWidgetsInput } export type WidgetUncheckedCreateInput = { id?: string createdAt?: Date | string updatedAt?: Date | string tenantId?: string | null name: string appearance: string metadata: string } export type WidgetUpdateInput = { id?: Prisma.StringFieldUpdateOperationsInput | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string name?: Prisma.StringFieldUpdateOperationsInput | string appearance?: Prisma.StringFieldUpdateOperationsInput | string metadata?: Prisma.StringFieldUpdateOperationsInput | string tenant?: Prisma.TenantUpdateOneWithoutWidgetsNestedInput } export type WidgetUncheckedUpdateInput = { id?: Prisma.StringFieldUpdateOperationsInput | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string tenantId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null name?: Prisma.StringFieldUpdateOperationsInput | string appearance?: Prisma.StringFieldUpdateOperationsInput | string metadata?: Prisma.StringFieldUpdateOperationsInput | string } export type WidgetCreateManyInput = { id?: string createdAt?: Date | string updatedAt?: Date | string tenantId?: string | null name: string appearance: string metadata: string } export type WidgetUpdateManyMutationInput = { id?: Prisma.StringFieldUpdateOperationsInput | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string name?: Prisma.StringFieldUpdateOperationsInput | string appearance?: Prisma.StringFieldUpdateOperationsInput | string metadata?: Prisma.StringFieldUpdateOperationsInput | string } export type WidgetUncheckedUpdateManyInput = { id?: Prisma.StringFieldUpdateOperationsInput | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string tenantId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null name?: Prisma.StringFieldUpdateOperationsInput | string appearance?: Prisma.StringFieldUpdateOperationsInput | string metadata?: Prisma.StringFieldUpdateOperationsInput | string } export type WidgetListRelationFilter = { every?: Prisma.WidgetWhereInput some?: Prisma.WidgetWhereInput none?: Prisma.WidgetWhereInput } export type WidgetOrderByRelationAggregateInput = { _count?: Prisma.SortOrder } export type WidgetTenantIdNameCompoundUniqueInput = { tenantId: string name: string } export type WidgetCountOrderByAggregateInput = { id?: Prisma.SortOrder createdAt?: Prisma.SortOrder updatedAt?: Prisma.SortOrder tenantId?: Prisma.SortOrder name?: Prisma.SortOrder appearance?: Prisma.SortOrder metadata?: Prisma.SortOrder } export type WidgetMaxOrderByAggregateInput = { id?: Prisma.SortOrder createdAt?: Prisma.SortOrder updatedAt?: Prisma.SortOrder tenantId?: Prisma.SortOrder name?: Prisma.SortOrder appearance?: Prisma.SortOrder metadata?: Prisma.SortOrder } export type WidgetMinOrderByAggregateInput = { id?: Prisma.SortOrder createdAt?: Prisma.SortOrder updatedAt?: Prisma.SortOrder tenantId?: Prisma.SortOrder name?: Prisma.SortOrder appearance?: Prisma.SortOrder metadata?: Prisma.SortOrder } export type WidgetCreateNestedManyWithoutTenantInput = { create?: Prisma.XOR | Prisma.WidgetCreateWithoutTenantInput[] | Prisma.WidgetUncheckedCreateWithoutTenantInput[] connectOrCreate?: Prisma.WidgetCreateOrConnectWithoutTenantInput | Prisma.WidgetCreateOrConnectWithoutTenantInput[] createMany?: Prisma.WidgetCreateManyTenantInputEnvelope connect?: Prisma.WidgetWhereUniqueInput | Prisma.WidgetWhereUniqueInput[] } export type WidgetUncheckedCreateNestedManyWithoutTenantInput = { create?: Prisma.XOR | Prisma.WidgetCreateWithoutTenantInput[] | Prisma.WidgetUncheckedCreateWithoutTenantInput[] connectOrCreate?: Prisma.WidgetCreateOrConnectWithoutTenantInput | Prisma.WidgetCreateOrConnectWithoutTenantInput[] createMany?: Prisma.WidgetCreateManyTenantInputEnvelope connect?: Prisma.WidgetWhereUniqueInput | Prisma.WidgetWhereUniqueInput[] } export type WidgetUpdateManyWithoutTenantNestedInput = { create?: Prisma.XOR | Prisma.WidgetCreateWithoutTenantInput[] | Prisma.WidgetUncheckedCreateWithoutTenantInput[] connectOrCreate?: Prisma.WidgetCreateOrConnectWithoutTenantInput | Prisma.WidgetCreateOrConnectWithoutTenantInput[] upsert?: Prisma.WidgetUpsertWithWhereUniqueWithoutTenantInput | Prisma.WidgetUpsertWithWhereUniqueWithoutTenantInput[] createMany?: Prisma.WidgetCreateManyTenantInputEnvelope set?: Prisma.WidgetWhereUniqueInput | Prisma.WidgetWhereUniqueInput[] disconnect?: Prisma.WidgetWhereUniqueInput | Prisma.WidgetWhereUniqueInput[] delete?: Prisma.WidgetWhereUniqueInput | Prisma.WidgetWhereUniqueInput[] connect?: Prisma.WidgetWhereUniqueInput | Prisma.WidgetWhereUniqueInput[] update?: Prisma.WidgetUpdateWithWhereUniqueWithoutTenantInput | Prisma.WidgetUpdateWithWhereUniqueWithoutTenantInput[] updateMany?: Prisma.WidgetUpdateManyWithWhereWithoutTenantInput | Prisma.WidgetUpdateManyWithWhereWithoutTenantInput[] deleteMany?: Prisma.WidgetScalarWhereInput | Prisma.WidgetScalarWhereInput[] } export type WidgetUncheckedUpdateManyWithoutTenantNestedInput = { create?: Prisma.XOR | Prisma.WidgetCreateWithoutTenantInput[] | Prisma.WidgetUncheckedCreateWithoutTenantInput[] connectOrCreate?: Prisma.WidgetCreateOrConnectWithoutTenantInput | Prisma.WidgetCreateOrConnectWithoutTenantInput[] upsert?: Prisma.WidgetUpsertWithWhereUniqueWithoutTenantInput | Prisma.WidgetUpsertWithWhereUniqueWithoutTenantInput[] createMany?: Prisma.WidgetCreateManyTenantInputEnvelope set?: Prisma.WidgetWhereUniqueInput | Prisma.WidgetWhereUniqueInput[] disconnect?: Prisma.WidgetWhereUniqueInput | Prisma.WidgetWhereUniqueInput[] delete?: Prisma.WidgetWhereUniqueInput | Prisma.WidgetWhereUniqueInput[] connect?: Prisma.WidgetWhereUniqueInput | Prisma.WidgetWhereUniqueInput[] update?: Prisma.WidgetUpdateWithWhereUniqueWithoutTenantInput | Prisma.WidgetUpdateWithWhereUniqueWithoutTenantInput[] updateMany?: Prisma.WidgetUpdateManyWithWhereWithoutTenantInput | Prisma.WidgetUpdateManyWithWhereWithoutTenantInput[] deleteMany?: Prisma.WidgetScalarWhereInput | Prisma.WidgetScalarWhereInput[] } export type WidgetCreateWithoutTenantInput = { id?: string createdAt?: Date | string updatedAt?: Date | string name: string appearance: string metadata: string } export type WidgetUncheckedCreateWithoutTenantInput = { id?: string createdAt?: Date | string updatedAt?: Date | string name: string appearance: string metadata: string } export type WidgetCreateOrConnectWithoutTenantInput = { where: Prisma.WidgetWhereUniqueInput create: Prisma.XOR } export type WidgetCreateManyTenantInputEnvelope = { data: Prisma.WidgetCreateManyTenantInput | Prisma.WidgetCreateManyTenantInput[] skipDuplicates?: boolean } export type WidgetUpsertWithWhereUniqueWithoutTenantInput = { where: Prisma.WidgetWhereUniqueInput update: Prisma.XOR create: Prisma.XOR } export type WidgetUpdateWithWhereUniqueWithoutTenantInput = { where: Prisma.WidgetWhereUniqueInput data: Prisma.XOR } export type WidgetUpdateManyWithWhereWithoutTenantInput = { where: Prisma.WidgetScalarWhereInput data: Prisma.XOR } export type WidgetScalarWhereInput = { AND?: Prisma.WidgetScalarWhereInput | Prisma.WidgetScalarWhereInput[] OR?: Prisma.WidgetScalarWhereInput[] NOT?: Prisma.WidgetScalarWhereInput | Prisma.WidgetScalarWhereInput[] id?: Prisma.StringFilter<"Widget"> | string createdAt?: Prisma.DateTimeFilter<"Widget"> | Date | string updatedAt?: Prisma.DateTimeFilter<"Widget"> | Date | string tenantId?: Prisma.StringNullableFilter<"Widget"> | string | null name?: Prisma.StringFilter<"Widget"> | string appearance?: Prisma.StringFilter<"Widget"> | string metadata?: Prisma.StringFilter<"Widget"> | string } export type WidgetCreateManyTenantInput = { id?: string createdAt?: Date | string updatedAt?: Date | string name: string appearance: string metadata: string } export type WidgetUpdateWithoutTenantInput = { id?: Prisma.StringFieldUpdateOperationsInput | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string name?: Prisma.StringFieldUpdateOperationsInput | string appearance?: Prisma.StringFieldUpdateOperationsInput | string metadata?: Prisma.StringFieldUpdateOperationsInput | string } export type WidgetUncheckedUpdateWithoutTenantInput = { id?: Prisma.StringFieldUpdateOperationsInput | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string name?: Prisma.StringFieldUpdateOperationsInput | string appearance?: Prisma.StringFieldUpdateOperationsInput | string metadata?: Prisma.StringFieldUpdateOperationsInput | string } export type WidgetUncheckedUpdateManyWithoutTenantInput = { id?: Prisma.StringFieldUpdateOperationsInput | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string name?: Prisma.StringFieldUpdateOperationsInput | string appearance?: Prisma.StringFieldUpdateOperationsInput | string metadata?: Prisma.StringFieldUpdateOperationsInput | string } export type WidgetSelect = runtime.Types.Extensions.GetSelect<{ id?: boolean createdAt?: boolean updatedAt?: boolean tenantId?: boolean name?: boolean appearance?: boolean metadata?: boolean tenant?: boolean | Prisma.Widget$tenantArgs }, ExtArgs["result"]["widget"]> export type WidgetSelectCreateManyAndReturn = runtime.Types.Extensions.GetSelect<{ id?: boolean createdAt?: boolean updatedAt?: boolean tenantId?: boolean name?: boolean appearance?: boolean metadata?: boolean tenant?: boolean | Prisma.Widget$tenantArgs }, ExtArgs["result"]["widget"]> export type WidgetSelectUpdateManyAndReturn = runtime.Types.Extensions.GetSelect<{ id?: boolean createdAt?: boolean updatedAt?: boolean tenantId?: boolean name?: boolean appearance?: boolean metadata?: boolean tenant?: boolean | Prisma.Widget$tenantArgs }, ExtArgs["result"]["widget"]> export type WidgetSelectScalar = { id?: boolean createdAt?: boolean updatedAt?: boolean tenantId?: boolean name?: boolean appearance?: boolean metadata?: boolean } export type WidgetOmit = runtime.Types.Extensions.GetOmit<"id" | "createdAt" | "updatedAt" | "tenantId" | "name" | "appearance" | "metadata", ExtArgs["result"]["widget"]> export type WidgetInclude = { tenant?: boolean | Prisma.Widget$tenantArgs } export type WidgetIncludeCreateManyAndReturn = { tenant?: boolean | Prisma.Widget$tenantArgs } export type WidgetIncludeUpdateManyAndReturn = { tenant?: boolean | Prisma.Widget$tenantArgs } export type $WidgetPayload = { name: "Widget" objects: { tenant: Prisma.$TenantPayload | null } scalars: runtime.Types.Extensions.GetPayloadResult<{ id: string createdAt: Date updatedAt: Date tenantId: string | null name: string appearance: string metadata: string }, ExtArgs["result"]["widget"]> composites: {} } export type WidgetGetPayload = runtime.Types.Result.GetResult export type WidgetCountArgs = Omit & { select?: WidgetCountAggregateInputType | true } export interface WidgetDelegate { [K: symbol]: { types: Prisma.TypeMap['model']['Widget'], meta: { name: 'Widget' } } /** * Find zero or one Widget that matches the filter. * @param {WidgetFindUniqueArgs} args - Arguments to find a Widget * @example * // Get one Widget * const widget = await prisma.widget.findUnique({ * where: { * // ... provide filter here * } * }) */ findUnique(args: Prisma.SelectSubset>): Prisma.Prisma__WidgetClient, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find one Widget that matches the filter or throw an error with `error.code='P2025'` * if no matches were found. * @param {WidgetFindUniqueOrThrowArgs} args - Arguments to find a Widget * @example * // Get one Widget * const widget = await prisma.widget.findUniqueOrThrow({ * where: { * // ... provide filter here * } * }) */ findUniqueOrThrow(args: Prisma.SelectSubset>): Prisma.Prisma__WidgetClient, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find the first Widget 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 {WidgetFindFirstArgs} args - Arguments to find a Widget * @example * // Get one Widget * const widget = await prisma.widget.findFirst({ * where: { * // ... provide filter here * } * }) */ findFirst(args?: Prisma.SelectSubset>): Prisma.Prisma__WidgetClient, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find the first Widget 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 {WidgetFindFirstOrThrowArgs} args - Arguments to find a Widget * @example * // Get one Widget * const widget = await prisma.widget.findFirstOrThrow({ * where: { * // ... provide filter here * } * }) */ findFirstOrThrow(args?: Prisma.SelectSubset>): Prisma.Prisma__WidgetClient, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find zero or more Widgets 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 {WidgetFindManyArgs} args - Arguments to filter and select certain fields only. * @example * // Get all Widgets * const widgets = await prisma.widget.findMany() * * // Get first 10 Widgets * const widgets = await prisma.widget.findMany({ take: 10 }) * * // Only select the `id` * const widgetWithIdOnly = await prisma.widget.findMany({ select: { id: true } }) * */ findMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>> /** * Create a Widget. * @param {WidgetCreateArgs} args - Arguments to create a Widget. * @example * // Create one Widget * const Widget = await prisma.widget.create({ * data: { * // ... data to create a Widget * } * }) * */ create(args: Prisma.SelectSubset>): Prisma.Prisma__WidgetClient, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Create many Widgets. * @param {WidgetCreateManyArgs} args - Arguments to create many Widgets. * @example * // Create many Widgets * const widget = await prisma.widget.createMany({ * data: [ * // ... provide data here * ] * }) * */ createMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Create many Widgets and returns the data saved in the database. * @param {WidgetCreateManyAndReturnArgs} args - Arguments to create many Widgets. * @example * // Create many Widgets * const widget = await prisma.widget.createManyAndReturn({ * data: [ * // ... provide data here * ] * }) * * // Create many Widgets and only return the `id` * const widgetWithIdOnly = await prisma.widget.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 Widget. * @param {WidgetDeleteArgs} args - Arguments to delete one Widget. * @example * // Delete one Widget * const Widget = await prisma.widget.delete({ * where: { * // ... filter to delete one Widget * } * }) * */ delete(args: Prisma.SelectSubset>): Prisma.Prisma__WidgetClient, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Update one Widget. * @param {WidgetUpdateArgs} args - Arguments to update one Widget. * @example * // Update one Widget * const widget = await prisma.widget.update({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ update(args: Prisma.SelectSubset>): Prisma.Prisma__WidgetClient, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Delete zero or more Widgets. * @param {WidgetDeleteManyArgs} args - Arguments to filter Widgets to delete. * @example * // Delete a few Widgets * const { count } = await prisma.widget.deleteMany({ * where: { * // ... provide filter here * } * }) * */ deleteMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Update zero or more Widgets. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {WidgetUpdateManyArgs} args - Arguments to update one or more rows. * @example * // Update many Widgets * const widget = await prisma.widget.updateMany({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ updateMany(args: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Update zero or more Widgets and returns the data updated in the database. * @param {WidgetUpdateManyAndReturnArgs} args - Arguments to update many Widgets. * @example * // Update many Widgets * const widget = await prisma.widget.updateManyAndReturn({ * where: { * // ... provide filter here * }, * data: [ * // ... provide data here * ] * }) * * // Update zero or more Widgets and only return the `id` * const widgetWithIdOnly = await prisma.widget.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 Widget. * @param {WidgetUpsertArgs} args - Arguments to update or create a Widget. * @example * // Update or create a Widget * const widget = await prisma.widget.upsert({ * create: { * // ... data to create a Widget * }, * update: { * // ... in case it already exists, update * }, * where: { * // ... the filter for the Widget we want to update * } * }) */ upsert(args: Prisma.SelectSubset>): Prisma.Prisma__WidgetClient, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Count the number of Widgets. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {WidgetCountArgs} args - Arguments to filter Widgets to count. * @example * // Count the number of Widgets * const count = await prisma.widget.count({ * where: { * // ... the filter for the Widgets 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 Widget. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {WidgetAggregateArgs} 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 Widget. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {WidgetGroupByArgs} 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 WidgetGroupByArgs, HasSelectOrTake extends Prisma.Or< Prisma.Extends<'skip', Prisma.Keys>, Prisma.Extends<'take', Prisma.Keys> >, OrderByArg extends Prisma.True extends HasSelectOrTake ? { orderBy: WidgetGroupByArgs['orderBy'] } : { orderBy?: WidgetGroupByArgs['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 ? GetWidgetGroupByPayload : Prisma.PrismaPromise /** * Fields of the Widget model */ readonly fields: WidgetFieldRefs; } /** * The delegate class that acts as a "Promise-like" for Widget. * 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__WidgetClient extends Prisma.PrismaPromise { readonly [Symbol.toStringTag]: "PrismaPromise" tenant = {}>(args?: Prisma.Subset>): Prisma.Prisma__TenantClient, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * 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 Widget model */ export interface WidgetFieldRefs { readonly id: Prisma.FieldRef<"Widget", 'String'> readonly createdAt: Prisma.FieldRef<"Widget", 'DateTime'> readonly updatedAt: Prisma.FieldRef<"Widget", 'DateTime'> readonly tenantId: Prisma.FieldRef<"Widget", 'String'> readonly name: Prisma.FieldRef<"Widget", 'String'> readonly appearance: Prisma.FieldRef<"Widget", 'String'> readonly metadata: Prisma.FieldRef<"Widget", 'String'> } // Custom InputTypes /** * Widget findUnique */ export type WidgetFindUniqueArgs = { /** * Select specific fields to fetch from the Widget */ select?: Prisma.WidgetSelect | null /** * Omit specific fields from the Widget */ omit?: Prisma.WidgetOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.WidgetInclude | null /** * Filter, which Widget to fetch. */ where: Prisma.WidgetWhereUniqueInput } /** * Widget findUniqueOrThrow */ export type WidgetFindUniqueOrThrowArgs = { /** * Select specific fields to fetch from the Widget */ select?: Prisma.WidgetSelect | null /** * Omit specific fields from the Widget */ omit?: Prisma.WidgetOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.WidgetInclude | null /** * Filter, which Widget to fetch. */ where: Prisma.WidgetWhereUniqueInput } /** * Widget findFirst */ export type WidgetFindFirstArgs = { /** * Select specific fields to fetch from the Widget */ select?: Prisma.WidgetSelect | null /** * Omit specific fields from the Widget */ omit?: Prisma.WidgetOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.WidgetInclude | null /** * Filter, which Widget to fetch. */ where?: Prisma.WidgetWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Widgets to fetch. */ orderBy?: Prisma.WidgetOrderByWithRelationInput | Prisma.WidgetOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for Widgets. */ cursor?: Prisma.WidgetWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Widgets 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` Widgets. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of Widgets. */ distinct?: Prisma.WidgetScalarFieldEnum | Prisma.WidgetScalarFieldEnum[] } /** * Widget findFirstOrThrow */ export type WidgetFindFirstOrThrowArgs = { /** * Select specific fields to fetch from the Widget */ select?: Prisma.WidgetSelect | null /** * Omit specific fields from the Widget */ omit?: Prisma.WidgetOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.WidgetInclude | null /** * Filter, which Widget to fetch. */ where?: Prisma.WidgetWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Widgets to fetch. */ orderBy?: Prisma.WidgetOrderByWithRelationInput | Prisma.WidgetOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for Widgets. */ cursor?: Prisma.WidgetWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Widgets 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` Widgets. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of Widgets. */ distinct?: Prisma.WidgetScalarFieldEnum | Prisma.WidgetScalarFieldEnum[] } /** * Widget findMany */ export type WidgetFindManyArgs = { /** * Select specific fields to fetch from the Widget */ select?: Prisma.WidgetSelect | null /** * Omit specific fields from the Widget */ omit?: Prisma.WidgetOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.WidgetInclude | null /** * Filter, which Widgets to fetch. */ where?: Prisma.WidgetWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Widgets to fetch. */ orderBy?: Prisma.WidgetOrderByWithRelationInput | Prisma.WidgetOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for listing Widgets. */ cursor?: Prisma.WidgetWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Widgets 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` Widgets. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of Widgets. */ distinct?: Prisma.WidgetScalarFieldEnum | Prisma.WidgetScalarFieldEnum[] } /** * Widget create */ export type WidgetCreateArgs = { /** * Select specific fields to fetch from the Widget */ select?: Prisma.WidgetSelect | null /** * Omit specific fields from the Widget */ omit?: Prisma.WidgetOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.WidgetInclude | null /** * The data needed to create a Widget. */ data: Prisma.XOR } /** * Widget createMany */ export type WidgetCreateManyArgs = { /** * The data used to create many Widgets. */ data: Prisma.WidgetCreateManyInput | Prisma.WidgetCreateManyInput[] skipDuplicates?: boolean } /** * Widget createManyAndReturn */ export type WidgetCreateManyAndReturnArgs = { /** * Select specific fields to fetch from the Widget */ select?: Prisma.WidgetSelectCreateManyAndReturn | null /** * Omit specific fields from the Widget */ omit?: Prisma.WidgetOmit | null /** * The data used to create many Widgets. */ data: Prisma.WidgetCreateManyInput | Prisma.WidgetCreateManyInput[] skipDuplicates?: boolean /** * Choose, which related nodes to fetch as well */ include?: Prisma.WidgetIncludeCreateManyAndReturn | null } /** * Widget update */ export type WidgetUpdateArgs = { /** * Select specific fields to fetch from the Widget */ select?: Prisma.WidgetSelect | null /** * Omit specific fields from the Widget */ omit?: Prisma.WidgetOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.WidgetInclude | null /** * The data needed to update a Widget. */ data: Prisma.XOR /** * Choose, which Widget to update. */ where: Prisma.WidgetWhereUniqueInput } /** * Widget updateMany */ export type WidgetUpdateManyArgs = { /** * The data used to update Widgets. */ data: Prisma.XOR /** * Filter which Widgets to update */ where?: Prisma.WidgetWhereInput /** * Limit how many Widgets to update. */ limit?: number } /** * Widget updateManyAndReturn */ export type WidgetUpdateManyAndReturnArgs = { /** * Select specific fields to fetch from the Widget */ select?: Prisma.WidgetSelectUpdateManyAndReturn | null /** * Omit specific fields from the Widget */ omit?: Prisma.WidgetOmit | null /** * The data used to update Widgets. */ data: Prisma.XOR /** * Filter which Widgets to update */ where?: Prisma.WidgetWhereInput /** * Limit how many Widgets to update. */ limit?: number /** * Choose, which related nodes to fetch as well */ include?: Prisma.WidgetIncludeUpdateManyAndReturn | null } /** * Widget upsert */ export type WidgetUpsertArgs = { /** * Select specific fields to fetch from the Widget */ select?: Prisma.WidgetSelect | null /** * Omit specific fields from the Widget */ omit?: Prisma.WidgetOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.WidgetInclude | null /** * The filter to search for the Widget to update in case it exists. */ where: Prisma.WidgetWhereUniqueInput /** * In case the Widget found by the `where` argument doesn't exist, create a new Widget with this data. */ create: Prisma.XOR /** * In case the Widget was found with the provided `where` argument, update it with this data. */ update: Prisma.XOR } /** * Widget delete */ export type WidgetDeleteArgs = { /** * Select specific fields to fetch from the Widget */ select?: Prisma.WidgetSelect | null /** * Omit specific fields from the Widget */ omit?: Prisma.WidgetOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.WidgetInclude | null /** * Filter which Widget to delete. */ where: Prisma.WidgetWhereUniqueInput } /** * Widget deleteMany */ export type WidgetDeleteManyArgs = { /** * Filter which Widgets to delete */ where?: Prisma.WidgetWhereInput /** * Limit how many Widgets to delete. */ limit?: number } /** * Widget.tenant */ export type Widget$tenantArgs = { /** * Select specific fields to fetch from the Tenant */ select?: Prisma.TenantSelect | null /** * Omit specific fields from the Tenant */ omit?: Prisma.TenantOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.TenantInclude | null where?: Prisma.TenantWhereInput } /** * Widget without action */ export type WidgetDefaultArgs = { /** * Select specific fields to fetch from the Widget */ select?: Prisma.WidgetSelect | null /** * Omit specific fields from the Widget */ omit?: Prisma.WidgetOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.WidgetInclude | null }