/* !!! This is code generated by Prisma. Do not edit directly. !!! */ /* eslint-disable */ // biome-ignore-all lint: generated file // @ts-nocheck /* * This file exports the `DeviceGroup` 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 DeviceGroup * */ export type DeviceGroupModel = runtime.Types.Result.DefaultSelection export type AggregateDeviceGroup = { _count: DeviceGroupCountAggregateOutputType | null _min: DeviceGroupMinAggregateOutputType | null _max: DeviceGroupMaxAggregateOutputType | null } export type DeviceGroupMinAggregateOutputType = { id: string | null name: string | null } export type DeviceGroupMaxAggregateOutputType = { id: string | null name: string | null } export type DeviceGroupCountAggregateOutputType = { id: number name: number _all: number } export type DeviceGroupMinAggregateInputType = { id?: true name?: true } export type DeviceGroupMaxAggregateInputType = { id?: true name?: true } export type DeviceGroupCountAggregateInputType = { id?: true name?: true _all?: true } export type DeviceGroupAggregateArgs = { /** * Filter which DeviceGroup to aggregate. */ where?: Prisma.DeviceGroupWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of DeviceGroups to fetch. */ orderBy?: Prisma.DeviceGroupOrderByWithRelationInput | Prisma.DeviceGroupOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the start position */ cursor?: Prisma.DeviceGroupWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` DeviceGroups 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` DeviceGroups. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Count returned DeviceGroups **/ _count?: true | DeviceGroupCountAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the minimum value **/ _min?: DeviceGroupMinAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the maximum value **/ _max?: DeviceGroupMaxAggregateInputType } export type GetDeviceGroupAggregateType = { [P in keyof T & keyof AggregateDeviceGroup]: P extends '_count' | 'count' ? T[P] extends true ? number : Prisma.GetScalarType : Prisma.GetScalarType } export type DeviceGroupGroupByArgs = { where?: Prisma.DeviceGroupWhereInput orderBy?: Prisma.DeviceGroupOrderByWithAggregationInput | Prisma.DeviceGroupOrderByWithAggregationInput[] by: Prisma.DeviceGroupScalarFieldEnum[] | Prisma.DeviceGroupScalarFieldEnum having?: Prisma.DeviceGroupScalarWhereWithAggregatesInput take?: number skip?: number _count?: DeviceGroupCountAggregateInputType | true _min?: DeviceGroupMinAggregateInputType _max?: DeviceGroupMaxAggregateInputType } export type DeviceGroupGroupByOutputType = { id: string name: string _count: DeviceGroupCountAggregateOutputType | null _min: DeviceGroupMinAggregateOutputType | null _max: DeviceGroupMaxAggregateOutputType | null } type GetDeviceGroupGroupByPayload = Prisma.PrismaPromise< Array< Prisma.PickEnumerable & { [P in ((keyof T) & (keyof DeviceGroupGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : Prisma.GetScalarType : Prisma.GetScalarType } > > export type DeviceGroupWhereInput = { AND?: Prisma.DeviceGroupWhereInput | Prisma.DeviceGroupWhereInput[] OR?: Prisma.DeviceGroupWhereInput[] NOT?: Prisma.DeviceGroupWhereInput | Prisma.DeviceGroupWhereInput[] id?: Prisma.StringFilter<"DeviceGroup"> | string name?: Prisma.StringFilter<"DeviceGroup"> | string devices?: Prisma.DeviceListRelationFilter } export type DeviceGroupOrderByWithRelationInput = { id?: Prisma.SortOrder name?: Prisma.SortOrder devices?: Prisma.DeviceOrderByRelationAggregateInput } export type DeviceGroupWhereUniqueInput = Prisma.AtLeast<{ id?: string name?: string AND?: Prisma.DeviceGroupWhereInput | Prisma.DeviceGroupWhereInput[] OR?: Prisma.DeviceGroupWhereInput[] NOT?: Prisma.DeviceGroupWhereInput | Prisma.DeviceGroupWhereInput[] devices?: Prisma.DeviceListRelationFilter }, "id" | "name"> export type DeviceGroupOrderByWithAggregationInput = { id?: Prisma.SortOrder name?: Prisma.SortOrder _count?: Prisma.DeviceGroupCountOrderByAggregateInput _max?: Prisma.DeviceGroupMaxOrderByAggregateInput _min?: Prisma.DeviceGroupMinOrderByAggregateInput } export type DeviceGroupScalarWhereWithAggregatesInput = { AND?: Prisma.DeviceGroupScalarWhereWithAggregatesInput | Prisma.DeviceGroupScalarWhereWithAggregatesInput[] OR?: Prisma.DeviceGroupScalarWhereWithAggregatesInput[] NOT?: Prisma.DeviceGroupScalarWhereWithAggregatesInput | Prisma.DeviceGroupScalarWhereWithAggregatesInput[] id?: Prisma.StringWithAggregatesFilter<"DeviceGroup"> | string name?: Prisma.StringWithAggregatesFilter<"DeviceGroup"> | string } export type DeviceGroupCreateInput = { id?: string name: string devices?: Prisma.DeviceCreateNestedManyWithoutGroupInput } export type DeviceGroupUncheckedCreateInput = { id?: string name: string devices?: Prisma.DeviceUncheckedCreateNestedManyWithoutGroupInput } export type DeviceGroupUpdateInput = { id?: Prisma.StringFieldUpdateOperationsInput | string name?: Prisma.StringFieldUpdateOperationsInput | string devices?: Prisma.DeviceUpdateManyWithoutGroupNestedInput } export type DeviceGroupUncheckedUpdateInput = { id?: Prisma.StringFieldUpdateOperationsInput | string name?: Prisma.StringFieldUpdateOperationsInput | string devices?: Prisma.DeviceUncheckedUpdateManyWithoutGroupNestedInput } export type DeviceGroupCreateManyInput = { id?: string name: string } export type DeviceGroupUpdateManyMutationInput = { id?: Prisma.StringFieldUpdateOperationsInput | string name?: Prisma.StringFieldUpdateOperationsInput | string } export type DeviceGroupUncheckedUpdateManyInput = { id?: Prisma.StringFieldUpdateOperationsInput | string name?: Prisma.StringFieldUpdateOperationsInput | string } export type DeviceGroupCountOrderByAggregateInput = { id?: Prisma.SortOrder name?: Prisma.SortOrder } export type DeviceGroupMaxOrderByAggregateInput = { id?: Prisma.SortOrder name?: Prisma.SortOrder } export type DeviceGroupMinOrderByAggregateInput = { id?: Prisma.SortOrder name?: Prisma.SortOrder } export type DeviceGroupNullableScalarRelationFilter = { is?: Prisma.DeviceGroupWhereInput | null isNot?: Prisma.DeviceGroupWhereInput | null } export type DeviceGroupCreateNestedOneWithoutDevicesInput = { create?: Prisma.XOR connectOrCreate?: Prisma.DeviceGroupCreateOrConnectWithoutDevicesInput connect?: Prisma.DeviceGroupWhereUniqueInput } export type DeviceGroupUpdateOneWithoutDevicesNestedInput = { create?: Prisma.XOR connectOrCreate?: Prisma.DeviceGroupCreateOrConnectWithoutDevicesInput upsert?: Prisma.DeviceGroupUpsertWithoutDevicesInput disconnect?: Prisma.DeviceGroupWhereInput | boolean delete?: Prisma.DeviceGroupWhereInput | boolean connect?: Prisma.DeviceGroupWhereUniqueInput update?: Prisma.XOR, Prisma.DeviceGroupUncheckedUpdateWithoutDevicesInput> } export type DeviceGroupCreateWithoutDevicesInput = { id?: string name: string } export type DeviceGroupUncheckedCreateWithoutDevicesInput = { id?: string name: string } export type DeviceGroupCreateOrConnectWithoutDevicesInput = { where: Prisma.DeviceGroupWhereUniqueInput create: Prisma.XOR } export type DeviceGroupUpsertWithoutDevicesInput = { update: Prisma.XOR create: Prisma.XOR where?: Prisma.DeviceGroupWhereInput } export type DeviceGroupUpdateToOneWithWhereWithoutDevicesInput = { where?: Prisma.DeviceGroupWhereInput data: Prisma.XOR } export type DeviceGroupUpdateWithoutDevicesInput = { id?: Prisma.StringFieldUpdateOperationsInput | string name?: Prisma.StringFieldUpdateOperationsInput | string } export type DeviceGroupUncheckedUpdateWithoutDevicesInput = { id?: Prisma.StringFieldUpdateOperationsInput | string name?: Prisma.StringFieldUpdateOperationsInput | string } /** * Count Type DeviceGroupCountOutputType */ export type DeviceGroupCountOutputType = { devices: number } export type DeviceGroupCountOutputTypeSelect = { devices?: boolean | DeviceGroupCountOutputTypeCountDevicesArgs } /** * DeviceGroupCountOutputType without action */ export type DeviceGroupCountOutputTypeDefaultArgs = { /** * Select specific fields to fetch from the DeviceGroupCountOutputType */ select?: Prisma.DeviceGroupCountOutputTypeSelect | null } /** * DeviceGroupCountOutputType without action */ export type DeviceGroupCountOutputTypeCountDevicesArgs = { where?: Prisma.DeviceWhereInput } export type DeviceGroupSelect = runtime.Types.Extensions.GetSelect<{ id?: boolean name?: boolean devices?: boolean | Prisma.DeviceGroup$devicesArgs _count?: boolean | Prisma.DeviceGroupCountOutputTypeDefaultArgs }, ExtArgs["result"]["deviceGroup"]> export type DeviceGroupSelectCreateManyAndReturn = runtime.Types.Extensions.GetSelect<{ id?: boolean name?: boolean }, ExtArgs["result"]["deviceGroup"]> export type DeviceGroupSelectUpdateManyAndReturn = runtime.Types.Extensions.GetSelect<{ id?: boolean name?: boolean }, ExtArgs["result"]["deviceGroup"]> export type DeviceGroupSelectScalar = { id?: boolean name?: boolean } export type DeviceGroupOmit = runtime.Types.Extensions.GetOmit<"id" | "name", ExtArgs["result"]["deviceGroup"]> export type DeviceGroupInclude = { devices?: boolean | Prisma.DeviceGroup$devicesArgs _count?: boolean | Prisma.DeviceGroupCountOutputTypeDefaultArgs } export type DeviceGroupIncludeCreateManyAndReturn = {} export type DeviceGroupIncludeUpdateManyAndReturn = {} export type $DeviceGroupPayload = { name: "DeviceGroup" objects: { devices: Prisma.$DevicePayload[] } scalars: runtime.Types.Extensions.GetPayloadResult<{ id: string name: string }, ExtArgs["result"]["deviceGroup"]> composites: {} } export type DeviceGroupGetPayload = runtime.Types.Result.GetResult export type DeviceGroupCountArgs = Omit & { select?: DeviceGroupCountAggregateInputType | true } export interface DeviceGroupDelegate { [K: symbol]: { types: Prisma.TypeMap['model']['DeviceGroup'], meta: { name: 'DeviceGroup' } } /** * Find zero or one DeviceGroup that matches the filter. * @param {DeviceGroupFindUniqueArgs} args - Arguments to find a DeviceGroup * @example * // Get one DeviceGroup * const deviceGroup = await prisma.deviceGroup.findUnique({ * where: { * // ... provide filter here * } * }) */ findUnique(args: Prisma.SelectSubset>): Prisma.Prisma__DeviceGroupClient, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find one DeviceGroup that matches the filter or throw an error with `error.code='P2025'` * if no matches were found. * @param {DeviceGroupFindUniqueOrThrowArgs} args - Arguments to find a DeviceGroup * @example * // Get one DeviceGroup * const deviceGroup = await prisma.deviceGroup.findUniqueOrThrow({ * where: { * // ... provide filter here * } * }) */ findUniqueOrThrow(args: Prisma.SelectSubset>): Prisma.Prisma__DeviceGroupClient, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find the first DeviceGroup 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 {DeviceGroupFindFirstArgs} args - Arguments to find a DeviceGroup * @example * // Get one DeviceGroup * const deviceGroup = await prisma.deviceGroup.findFirst({ * where: { * // ... provide filter here * } * }) */ findFirst(args?: Prisma.SelectSubset>): Prisma.Prisma__DeviceGroupClient, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find the first DeviceGroup 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 {DeviceGroupFindFirstOrThrowArgs} args - Arguments to find a DeviceGroup * @example * // Get one DeviceGroup * const deviceGroup = await prisma.deviceGroup.findFirstOrThrow({ * where: { * // ... provide filter here * } * }) */ findFirstOrThrow(args?: Prisma.SelectSubset>): Prisma.Prisma__DeviceGroupClient, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find zero or more DeviceGroups 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 {DeviceGroupFindManyArgs} args - Arguments to filter and select certain fields only. * @example * // Get all DeviceGroups * const deviceGroups = await prisma.deviceGroup.findMany() * * // Get first 10 DeviceGroups * const deviceGroups = await prisma.deviceGroup.findMany({ take: 10 }) * * // Only select the `id` * const deviceGroupWithIdOnly = await prisma.deviceGroup.findMany({ select: { id: true } }) * */ findMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>> /** * Create a DeviceGroup. * @param {DeviceGroupCreateArgs} args - Arguments to create a DeviceGroup. * @example * // Create one DeviceGroup * const DeviceGroup = await prisma.deviceGroup.create({ * data: { * // ... data to create a DeviceGroup * } * }) * */ create(args: Prisma.SelectSubset>): Prisma.Prisma__DeviceGroupClient, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Create many DeviceGroups. * @param {DeviceGroupCreateManyArgs} args - Arguments to create many DeviceGroups. * @example * // Create many DeviceGroups * const deviceGroup = await prisma.deviceGroup.createMany({ * data: [ * // ... provide data here * ] * }) * */ createMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Create many DeviceGroups and returns the data saved in the database. * @param {DeviceGroupCreateManyAndReturnArgs} args - Arguments to create many DeviceGroups. * @example * // Create many DeviceGroups * const deviceGroup = await prisma.deviceGroup.createManyAndReturn({ * data: [ * // ... provide data here * ] * }) * * // Create many DeviceGroups and only return the `id` * const deviceGroupWithIdOnly = await prisma.deviceGroup.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 DeviceGroup. * @param {DeviceGroupDeleteArgs} args - Arguments to delete one DeviceGroup. * @example * // Delete one DeviceGroup * const DeviceGroup = await prisma.deviceGroup.delete({ * where: { * // ... filter to delete one DeviceGroup * } * }) * */ delete(args: Prisma.SelectSubset>): Prisma.Prisma__DeviceGroupClient, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Update one DeviceGroup. * @param {DeviceGroupUpdateArgs} args - Arguments to update one DeviceGroup. * @example * // Update one DeviceGroup * const deviceGroup = await prisma.deviceGroup.update({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ update(args: Prisma.SelectSubset>): Prisma.Prisma__DeviceGroupClient, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Delete zero or more DeviceGroups. * @param {DeviceGroupDeleteManyArgs} args - Arguments to filter DeviceGroups to delete. * @example * // Delete a few DeviceGroups * const { count } = await prisma.deviceGroup.deleteMany({ * where: { * // ... provide filter here * } * }) * */ deleteMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Update zero or more DeviceGroups. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {DeviceGroupUpdateManyArgs} args - Arguments to update one or more rows. * @example * // Update many DeviceGroups * const deviceGroup = await prisma.deviceGroup.updateMany({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ updateMany(args: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Update zero or more DeviceGroups and returns the data updated in the database. * @param {DeviceGroupUpdateManyAndReturnArgs} args - Arguments to update many DeviceGroups. * @example * // Update many DeviceGroups * const deviceGroup = await prisma.deviceGroup.updateManyAndReturn({ * where: { * // ... provide filter here * }, * data: [ * // ... provide data here * ] * }) * * // Update zero or more DeviceGroups and only return the `id` * const deviceGroupWithIdOnly = await prisma.deviceGroup.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 DeviceGroup. * @param {DeviceGroupUpsertArgs} args - Arguments to update or create a DeviceGroup. * @example * // Update or create a DeviceGroup * const deviceGroup = await prisma.deviceGroup.upsert({ * create: { * // ... data to create a DeviceGroup * }, * update: { * // ... in case it already exists, update * }, * where: { * // ... the filter for the DeviceGroup we want to update * } * }) */ upsert(args: Prisma.SelectSubset>): Prisma.Prisma__DeviceGroupClient, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Count the number of DeviceGroups. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {DeviceGroupCountArgs} args - Arguments to filter DeviceGroups to count. * @example * // Count the number of DeviceGroups * const count = await prisma.deviceGroup.count({ * where: { * // ... the filter for the DeviceGroups 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 DeviceGroup. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {DeviceGroupAggregateArgs} 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 DeviceGroup. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {DeviceGroupGroupByArgs} 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 DeviceGroupGroupByArgs, HasSelectOrTake extends Prisma.Or< Prisma.Extends<'skip', Prisma.Keys>, Prisma.Extends<'take', Prisma.Keys> >, OrderByArg extends Prisma.True extends HasSelectOrTake ? { orderBy: DeviceGroupGroupByArgs['orderBy'] } : { orderBy?: DeviceGroupGroupByArgs['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 ? GetDeviceGroupGroupByPayload : Prisma.PrismaPromise /** * Fields of the DeviceGroup model */ readonly fields: DeviceGroupFieldRefs; } /** * The delegate class that acts as a "Promise-like" for DeviceGroup. * 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__DeviceGroupClient extends Prisma.PrismaPromise { readonly [Symbol.toStringTag]: "PrismaPromise" devices = {}>(args?: Prisma.Subset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions> | Null> /** * 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 DeviceGroup model */ export interface DeviceGroupFieldRefs { readonly id: Prisma.FieldRef<"DeviceGroup", 'String'> readonly name: Prisma.FieldRef<"DeviceGroup", 'String'> } // Custom InputTypes /** * DeviceGroup findUnique */ export type DeviceGroupFindUniqueArgs = { /** * Select specific fields to fetch from the DeviceGroup */ select?: Prisma.DeviceGroupSelect | null /** * Omit specific fields from the DeviceGroup */ omit?: Prisma.DeviceGroupOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.DeviceGroupInclude | null /** * Filter, which DeviceGroup to fetch. */ where: Prisma.DeviceGroupWhereUniqueInput } /** * DeviceGroup findUniqueOrThrow */ export type DeviceGroupFindUniqueOrThrowArgs = { /** * Select specific fields to fetch from the DeviceGroup */ select?: Prisma.DeviceGroupSelect | null /** * Omit specific fields from the DeviceGroup */ omit?: Prisma.DeviceGroupOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.DeviceGroupInclude | null /** * Filter, which DeviceGroup to fetch. */ where: Prisma.DeviceGroupWhereUniqueInput } /** * DeviceGroup findFirst */ export type DeviceGroupFindFirstArgs = { /** * Select specific fields to fetch from the DeviceGroup */ select?: Prisma.DeviceGroupSelect | null /** * Omit specific fields from the DeviceGroup */ omit?: Prisma.DeviceGroupOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.DeviceGroupInclude | null /** * Filter, which DeviceGroup to fetch. */ where?: Prisma.DeviceGroupWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of DeviceGroups to fetch. */ orderBy?: Prisma.DeviceGroupOrderByWithRelationInput | Prisma.DeviceGroupOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for DeviceGroups. */ cursor?: Prisma.DeviceGroupWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` DeviceGroups 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` DeviceGroups. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of DeviceGroups. */ distinct?: Prisma.DeviceGroupScalarFieldEnum | Prisma.DeviceGroupScalarFieldEnum[] } /** * DeviceGroup findFirstOrThrow */ export type DeviceGroupFindFirstOrThrowArgs = { /** * Select specific fields to fetch from the DeviceGroup */ select?: Prisma.DeviceGroupSelect | null /** * Omit specific fields from the DeviceGroup */ omit?: Prisma.DeviceGroupOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.DeviceGroupInclude | null /** * Filter, which DeviceGroup to fetch. */ where?: Prisma.DeviceGroupWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of DeviceGroups to fetch. */ orderBy?: Prisma.DeviceGroupOrderByWithRelationInput | Prisma.DeviceGroupOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for DeviceGroups. */ cursor?: Prisma.DeviceGroupWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` DeviceGroups 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` DeviceGroups. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of DeviceGroups. */ distinct?: Prisma.DeviceGroupScalarFieldEnum | Prisma.DeviceGroupScalarFieldEnum[] } /** * DeviceGroup findMany */ export type DeviceGroupFindManyArgs = { /** * Select specific fields to fetch from the DeviceGroup */ select?: Prisma.DeviceGroupSelect | null /** * Omit specific fields from the DeviceGroup */ omit?: Prisma.DeviceGroupOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.DeviceGroupInclude | null /** * Filter, which DeviceGroups to fetch. */ where?: Prisma.DeviceGroupWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of DeviceGroups to fetch. */ orderBy?: Prisma.DeviceGroupOrderByWithRelationInput | Prisma.DeviceGroupOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for listing DeviceGroups. */ cursor?: Prisma.DeviceGroupWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` DeviceGroups 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` DeviceGroups. */ skip?: number distinct?: Prisma.DeviceGroupScalarFieldEnum | Prisma.DeviceGroupScalarFieldEnum[] } /** * DeviceGroup create */ export type DeviceGroupCreateArgs = { /** * Select specific fields to fetch from the DeviceGroup */ select?: Prisma.DeviceGroupSelect | null /** * Omit specific fields from the DeviceGroup */ omit?: Prisma.DeviceGroupOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.DeviceGroupInclude | null /** * The data needed to create a DeviceGroup. */ data: Prisma.XOR } /** * DeviceGroup createMany */ export type DeviceGroupCreateManyArgs = { /** * The data used to create many DeviceGroups. */ data: Prisma.DeviceGroupCreateManyInput | Prisma.DeviceGroupCreateManyInput[] skipDuplicates?: boolean } /** * DeviceGroup createManyAndReturn */ export type DeviceGroupCreateManyAndReturnArgs = { /** * Select specific fields to fetch from the DeviceGroup */ select?: Prisma.DeviceGroupSelectCreateManyAndReturn | null /** * Omit specific fields from the DeviceGroup */ omit?: Prisma.DeviceGroupOmit | null /** * The data used to create many DeviceGroups. */ data: Prisma.DeviceGroupCreateManyInput | Prisma.DeviceGroupCreateManyInput[] skipDuplicates?: boolean } /** * DeviceGroup update */ export type DeviceGroupUpdateArgs = { /** * Select specific fields to fetch from the DeviceGroup */ select?: Prisma.DeviceGroupSelect | null /** * Omit specific fields from the DeviceGroup */ omit?: Prisma.DeviceGroupOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.DeviceGroupInclude | null /** * The data needed to update a DeviceGroup. */ data: Prisma.XOR /** * Choose, which DeviceGroup to update. */ where: Prisma.DeviceGroupWhereUniqueInput } /** * DeviceGroup updateMany */ export type DeviceGroupUpdateManyArgs = { /** * The data used to update DeviceGroups. */ data: Prisma.XOR /** * Filter which DeviceGroups to update */ where?: Prisma.DeviceGroupWhereInput /** * Limit how many DeviceGroups to update. */ limit?: number } /** * DeviceGroup updateManyAndReturn */ export type DeviceGroupUpdateManyAndReturnArgs = { /** * Select specific fields to fetch from the DeviceGroup */ select?: Prisma.DeviceGroupSelectUpdateManyAndReturn | null /** * Omit specific fields from the DeviceGroup */ omit?: Prisma.DeviceGroupOmit | null /** * The data used to update DeviceGroups. */ data: Prisma.XOR /** * Filter which DeviceGroups to update */ where?: Prisma.DeviceGroupWhereInput /** * Limit how many DeviceGroups to update. */ limit?: number } /** * DeviceGroup upsert */ export type DeviceGroupUpsertArgs = { /** * Select specific fields to fetch from the DeviceGroup */ select?: Prisma.DeviceGroupSelect | null /** * Omit specific fields from the DeviceGroup */ omit?: Prisma.DeviceGroupOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.DeviceGroupInclude | null /** * The filter to search for the DeviceGroup to update in case it exists. */ where: Prisma.DeviceGroupWhereUniqueInput /** * In case the DeviceGroup found by the `where` argument doesn't exist, create a new DeviceGroup with this data. */ create: Prisma.XOR /** * In case the DeviceGroup was found with the provided `where` argument, update it with this data. */ update: Prisma.XOR } /** * DeviceGroup delete */ export type DeviceGroupDeleteArgs = { /** * Select specific fields to fetch from the DeviceGroup */ select?: Prisma.DeviceGroupSelect | null /** * Omit specific fields from the DeviceGroup */ omit?: Prisma.DeviceGroupOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.DeviceGroupInclude | null /** * Filter which DeviceGroup to delete. */ where: Prisma.DeviceGroupWhereUniqueInput } /** * DeviceGroup deleteMany */ export type DeviceGroupDeleteManyArgs = { /** * Filter which DeviceGroups to delete */ where?: Prisma.DeviceGroupWhereInput /** * Limit how many DeviceGroups to delete. */ limit?: number } /** * DeviceGroup.devices */ export type DeviceGroup$devicesArgs = { /** * Select specific fields to fetch from the Device */ select?: Prisma.DeviceSelect | null /** * Omit specific fields from the Device */ omit?: Prisma.DeviceOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.DeviceInclude | null where?: Prisma.DeviceWhereInput orderBy?: Prisma.DeviceOrderByWithRelationInput | Prisma.DeviceOrderByWithRelationInput[] cursor?: Prisma.DeviceWhereUniqueInput take?: number skip?: number distinct?: Prisma.DeviceScalarFieldEnum | Prisma.DeviceScalarFieldEnum[] } /** * DeviceGroup without action */ export type DeviceGroupDefaultArgs = { /** * Select specific fields to fetch from the DeviceGroup */ select?: Prisma.DeviceGroupSelect | null /** * Omit specific fields from the DeviceGroup */ omit?: Prisma.DeviceGroupOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.DeviceGroupInclude | null }