/* !!! This is code generated by Prisma. Do not edit directly. !!! */ /* eslint-disable */ // biome-ignore-all lint: generated file // @ts-nocheck /* * This file exports the `Location` 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 Location * */ export type LocationModel = runtime.Types.Result.DefaultSelection export type AggregateLocation = { _count: LocationCountAggregateOutputType | null _min: LocationMinAggregateOutputType | null _max: LocationMaxAggregateOutputType | null } export type LocationMinAggregateOutputType = { id: string | null name: string | null } export type LocationMaxAggregateOutputType = { id: string | null name: string | null } export type LocationCountAggregateOutputType = { id: number name: number _all: number } export type LocationMinAggregateInputType = { id?: true name?: true } export type LocationMaxAggregateInputType = { id?: true name?: true } export type LocationCountAggregateInputType = { id?: true name?: true _all?: true } export type LocationAggregateArgs = { /** * Filter which Location to aggregate. */ where?: Prisma.LocationWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Locations to fetch. */ orderBy?: Prisma.LocationOrderByWithRelationInput | Prisma.LocationOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the start position */ cursor?: Prisma.LocationWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Locations 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` Locations. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Count returned Locations **/ _count?: true | LocationCountAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the minimum value **/ _min?: LocationMinAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the maximum value **/ _max?: LocationMaxAggregateInputType } export type GetLocationAggregateType = { [P in keyof T & keyof AggregateLocation]: P extends '_count' | 'count' ? T[P] extends true ? number : Prisma.GetScalarType : Prisma.GetScalarType } export type LocationGroupByArgs = { where?: Prisma.LocationWhereInput orderBy?: Prisma.LocationOrderByWithAggregationInput | Prisma.LocationOrderByWithAggregationInput[] by: Prisma.LocationScalarFieldEnum[] | Prisma.LocationScalarFieldEnum having?: Prisma.LocationScalarWhereWithAggregatesInput take?: number skip?: number _count?: LocationCountAggregateInputType | true _min?: LocationMinAggregateInputType _max?: LocationMaxAggregateInputType } export type LocationGroupByOutputType = { id: string name: string _count: LocationCountAggregateOutputType | null _min: LocationMinAggregateOutputType | null _max: LocationMaxAggregateOutputType | null } type GetLocationGroupByPayload = Prisma.PrismaPromise< Array< Prisma.PickEnumerable & { [P in ((keyof T) & (keyof LocationGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : Prisma.GetScalarType : Prisma.GetScalarType } > > export type LocationWhereInput = { AND?: Prisma.LocationWhereInput | Prisma.LocationWhereInput[] OR?: Prisma.LocationWhereInput[] NOT?: Prisma.LocationWhereInput | Prisma.LocationWhereInput[] id?: Prisma.StringFilter<"Location"> | string name?: Prisma.StringFilter<"Location"> | string devices?: Prisma.DeviceListRelationFilter } export type LocationOrderByWithRelationInput = { id?: Prisma.SortOrder name?: Prisma.SortOrder devices?: Prisma.DeviceOrderByRelationAggregateInput } export type LocationWhereUniqueInput = Prisma.AtLeast<{ id?: string name?: string AND?: Prisma.LocationWhereInput | Prisma.LocationWhereInput[] OR?: Prisma.LocationWhereInput[] NOT?: Prisma.LocationWhereInput | Prisma.LocationWhereInput[] devices?: Prisma.DeviceListRelationFilter }, "id" | "name"> export type LocationOrderByWithAggregationInput = { id?: Prisma.SortOrder name?: Prisma.SortOrder _count?: Prisma.LocationCountOrderByAggregateInput _max?: Prisma.LocationMaxOrderByAggregateInput _min?: Prisma.LocationMinOrderByAggregateInput } export type LocationScalarWhereWithAggregatesInput = { AND?: Prisma.LocationScalarWhereWithAggregatesInput | Prisma.LocationScalarWhereWithAggregatesInput[] OR?: Prisma.LocationScalarWhereWithAggregatesInput[] NOT?: Prisma.LocationScalarWhereWithAggregatesInput | Prisma.LocationScalarWhereWithAggregatesInput[] id?: Prisma.StringWithAggregatesFilter<"Location"> | string name?: Prisma.StringWithAggregatesFilter<"Location"> | string } export type LocationCreateInput = { id?: string name: string devices?: Prisma.DeviceCreateNestedManyWithoutLocationInput } export type LocationUncheckedCreateInput = { id?: string name: string devices?: Prisma.DeviceUncheckedCreateNestedManyWithoutLocationInput } export type LocationUpdateInput = { id?: Prisma.StringFieldUpdateOperationsInput | string name?: Prisma.StringFieldUpdateOperationsInput | string devices?: Prisma.DeviceUpdateManyWithoutLocationNestedInput } export type LocationUncheckedUpdateInput = { id?: Prisma.StringFieldUpdateOperationsInput | string name?: Prisma.StringFieldUpdateOperationsInput | string devices?: Prisma.DeviceUncheckedUpdateManyWithoutLocationNestedInput } export type LocationCreateManyInput = { id?: string name: string } export type LocationUpdateManyMutationInput = { id?: Prisma.StringFieldUpdateOperationsInput | string name?: Prisma.StringFieldUpdateOperationsInput | string } export type LocationUncheckedUpdateManyInput = { id?: Prisma.StringFieldUpdateOperationsInput | string name?: Prisma.StringFieldUpdateOperationsInput | string } export type LocationCountOrderByAggregateInput = { id?: Prisma.SortOrder name?: Prisma.SortOrder } export type LocationMaxOrderByAggregateInput = { id?: Prisma.SortOrder name?: Prisma.SortOrder } export type LocationMinOrderByAggregateInput = { id?: Prisma.SortOrder name?: Prisma.SortOrder } export type LocationNullableScalarRelationFilter = { is?: Prisma.LocationWhereInput | null isNot?: Prisma.LocationWhereInput | null } export type LocationCreateNestedOneWithoutDevicesInput = { create?: Prisma.XOR connectOrCreate?: Prisma.LocationCreateOrConnectWithoutDevicesInput connect?: Prisma.LocationWhereUniqueInput } export type LocationUpdateOneWithoutDevicesNestedInput = { create?: Prisma.XOR connectOrCreate?: Prisma.LocationCreateOrConnectWithoutDevicesInput upsert?: Prisma.LocationUpsertWithoutDevicesInput disconnect?: Prisma.LocationWhereInput | boolean delete?: Prisma.LocationWhereInput | boolean connect?: Prisma.LocationWhereUniqueInput update?: Prisma.XOR, Prisma.LocationUncheckedUpdateWithoutDevicesInput> } export type LocationCreateWithoutDevicesInput = { id?: string name: string } export type LocationUncheckedCreateWithoutDevicesInput = { id?: string name: string } export type LocationCreateOrConnectWithoutDevicesInput = { where: Prisma.LocationWhereUniqueInput create: Prisma.XOR } export type LocationUpsertWithoutDevicesInput = { update: Prisma.XOR create: Prisma.XOR where?: Prisma.LocationWhereInput } export type LocationUpdateToOneWithWhereWithoutDevicesInput = { where?: Prisma.LocationWhereInput data: Prisma.XOR } export type LocationUpdateWithoutDevicesInput = { id?: Prisma.StringFieldUpdateOperationsInput | string name?: Prisma.StringFieldUpdateOperationsInput | string } export type LocationUncheckedUpdateWithoutDevicesInput = { id?: Prisma.StringFieldUpdateOperationsInput | string name?: Prisma.StringFieldUpdateOperationsInput | string } /** * Count Type LocationCountOutputType */ export type LocationCountOutputType = { devices: number } export type LocationCountOutputTypeSelect = { devices?: boolean | LocationCountOutputTypeCountDevicesArgs } /** * LocationCountOutputType without action */ export type LocationCountOutputTypeDefaultArgs = { /** * Select specific fields to fetch from the LocationCountOutputType */ select?: Prisma.LocationCountOutputTypeSelect | null } /** * LocationCountOutputType without action */ export type LocationCountOutputTypeCountDevicesArgs = { where?: Prisma.DeviceWhereInput } export type LocationSelect = runtime.Types.Extensions.GetSelect<{ id?: boolean name?: boolean devices?: boolean | Prisma.Location$devicesArgs _count?: boolean | Prisma.LocationCountOutputTypeDefaultArgs }, ExtArgs["result"]["location"]> export type LocationSelectCreateManyAndReturn = runtime.Types.Extensions.GetSelect<{ id?: boolean name?: boolean }, ExtArgs["result"]["location"]> export type LocationSelectUpdateManyAndReturn = runtime.Types.Extensions.GetSelect<{ id?: boolean name?: boolean }, ExtArgs["result"]["location"]> export type LocationSelectScalar = { id?: boolean name?: boolean } export type LocationOmit = runtime.Types.Extensions.GetOmit<"id" | "name", ExtArgs["result"]["location"]> export type LocationInclude = { devices?: boolean | Prisma.Location$devicesArgs _count?: boolean | Prisma.LocationCountOutputTypeDefaultArgs } export type LocationIncludeCreateManyAndReturn = {} export type LocationIncludeUpdateManyAndReturn = {} export type $LocationPayload = { name: "Location" objects: { devices: Prisma.$DevicePayload[] } scalars: runtime.Types.Extensions.GetPayloadResult<{ id: string name: string }, ExtArgs["result"]["location"]> composites: {} } export type LocationGetPayload = runtime.Types.Result.GetResult export type LocationCountArgs = Omit & { select?: LocationCountAggregateInputType | true } export interface LocationDelegate { [K: symbol]: { types: Prisma.TypeMap['model']['Location'], meta: { name: 'Location' } } /** * Find zero or one Location that matches the filter. * @param {LocationFindUniqueArgs} args - Arguments to find a Location * @example * // Get one Location * const location = await prisma.location.findUnique({ * where: { * // ... provide filter here * } * }) */ findUnique(args: Prisma.SelectSubset>): Prisma.Prisma__LocationClient, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find one Location that matches the filter or throw an error with `error.code='P2025'` * if no matches were found. * @param {LocationFindUniqueOrThrowArgs} args - Arguments to find a Location * @example * // Get one Location * const location = await prisma.location.findUniqueOrThrow({ * where: { * // ... provide filter here * } * }) */ findUniqueOrThrow(args: Prisma.SelectSubset>): Prisma.Prisma__LocationClient, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find the first Location 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 {LocationFindFirstArgs} args - Arguments to find a Location * @example * // Get one Location * const location = await prisma.location.findFirst({ * where: { * // ... provide filter here * } * }) */ findFirst(args?: Prisma.SelectSubset>): Prisma.Prisma__LocationClient, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find the first Location 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 {LocationFindFirstOrThrowArgs} args - Arguments to find a Location * @example * // Get one Location * const location = await prisma.location.findFirstOrThrow({ * where: { * // ... provide filter here * } * }) */ findFirstOrThrow(args?: Prisma.SelectSubset>): Prisma.Prisma__LocationClient, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find zero or more Locations 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 {LocationFindManyArgs} args - Arguments to filter and select certain fields only. * @example * // Get all Locations * const locations = await prisma.location.findMany() * * // Get first 10 Locations * const locations = await prisma.location.findMany({ take: 10 }) * * // Only select the `id` * const locationWithIdOnly = await prisma.location.findMany({ select: { id: true } }) * */ findMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>> /** * Create a Location. * @param {LocationCreateArgs} args - Arguments to create a Location. * @example * // Create one Location * const Location = await prisma.location.create({ * data: { * // ... data to create a Location * } * }) * */ create(args: Prisma.SelectSubset>): Prisma.Prisma__LocationClient, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Create many Locations. * @param {LocationCreateManyArgs} args - Arguments to create many Locations. * @example * // Create many Locations * const location = await prisma.location.createMany({ * data: [ * // ... provide data here * ] * }) * */ createMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Create many Locations and returns the data saved in the database. * @param {LocationCreateManyAndReturnArgs} args - Arguments to create many Locations. * @example * // Create many Locations * const location = await prisma.location.createManyAndReturn({ * data: [ * // ... provide data here * ] * }) * * // Create many Locations and only return the `id` * const locationWithIdOnly = await prisma.location.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 Location. * @param {LocationDeleteArgs} args - Arguments to delete one Location. * @example * // Delete one Location * const Location = await prisma.location.delete({ * where: { * // ... filter to delete one Location * } * }) * */ delete(args: Prisma.SelectSubset>): Prisma.Prisma__LocationClient, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Update one Location. * @param {LocationUpdateArgs} args - Arguments to update one Location. * @example * // Update one Location * const location = await prisma.location.update({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ update(args: Prisma.SelectSubset>): Prisma.Prisma__LocationClient, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Delete zero or more Locations. * @param {LocationDeleteManyArgs} args - Arguments to filter Locations to delete. * @example * // Delete a few Locations * const { count } = await prisma.location.deleteMany({ * where: { * // ... provide filter here * } * }) * */ deleteMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Update zero or more Locations. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {LocationUpdateManyArgs} args - Arguments to update one or more rows. * @example * // Update many Locations * const location = await prisma.location.updateMany({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ updateMany(args: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Update zero or more Locations and returns the data updated in the database. * @param {LocationUpdateManyAndReturnArgs} args - Arguments to update many Locations. * @example * // Update many Locations * const location = await prisma.location.updateManyAndReturn({ * where: { * // ... provide filter here * }, * data: [ * // ... provide data here * ] * }) * * // Update zero or more Locations and only return the `id` * const locationWithIdOnly = await prisma.location.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 Location. * @param {LocationUpsertArgs} args - Arguments to update or create a Location. * @example * // Update or create a Location * const location = await prisma.location.upsert({ * create: { * // ... data to create a Location * }, * update: { * // ... in case it already exists, update * }, * where: { * // ... the filter for the Location we want to update * } * }) */ upsert(args: Prisma.SelectSubset>): Prisma.Prisma__LocationClient, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Count the number of Locations. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {LocationCountArgs} args - Arguments to filter Locations to count. * @example * // Count the number of Locations * const count = await prisma.location.count({ * where: { * // ... the filter for the Locations 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 Location. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {LocationAggregateArgs} 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 Location. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {LocationGroupByArgs} 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 LocationGroupByArgs, HasSelectOrTake extends Prisma.Or< Prisma.Extends<'skip', Prisma.Keys>, Prisma.Extends<'take', Prisma.Keys> >, OrderByArg extends Prisma.True extends HasSelectOrTake ? { orderBy: LocationGroupByArgs['orderBy'] } : { orderBy?: LocationGroupByArgs['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 ? GetLocationGroupByPayload : Prisma.PrismaPromise /** * Fields of the Location model */ readonly fields: LocationFieldRefs; } /** * The delegate class that acts as a "Promise-like" for Location. * 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__LocationClient 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 Location model */ export interface LocationFieldRefs { readonly id: Prisma.FieldRef<"Location", 'String'> readonly name: Prisma.FieldRef<"Location", 'String'> } // Custom InputTypes /** * Location findUnique */ export type LocationFindUniqueArgs = { /** * Select specific fields to fetch from the Location */ select?: Prisma.LocationSelect | null /** * Omit specific fields from the Location */ omit?: Prisma.LocationOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.LocationInclude | null /** * Filter, which Location to fetch. */ where: Prisma.LocationWhereUniqueInput } /** * Location findUniqueOrThrow */ export type LocationFindUniqueOrThrowArgs = { /** * Select specific fields to fetch from the Location */ select?: Prisma.LocationSelect | null /** * Omit specific fields from the Location */ omit?: Prisma.LocationOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.LocationInclude | null /** * Filter, which Location to fetch. */ where: Prisma.LocationWhereUniqueInput } /** * Location findFirst */ export type LocationFindFirstArgs = { /** * Select specific fields to fetch from the Location */ select?: Prisma.LocationSelect | null /** * Omit specific fields from the Location */ omit?: Prisma.LocationOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.LocationInclude | null /** * Filter, which Location to fetch. */ where?: Prisma.LocationWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Locations to fetch. */ orderBy?: Prisma.LocationOrderByWithRelationInput | Prisma.LocationOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for Locations. */ cursor?: Prisma.LocationWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Locations 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` Locations. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of Locations. */ distinct?: Prisma.LocationScalarFieldEnum | Prisma.LocationScalarFieldEnum[] } /** * Location findFirstOrThrow */ export type LocationFindFirstOrThrowArgs = { /** * Select specific fields to fetch from the Location */ select?: Prisma.LocationSelect | null /** * Omit specific fields from the Location */ omit?: Prisma.LocationOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.LocationInclude | null /** * Filter, which Location to fetch. */ where?: Prisma.LocationWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Locations to fetch. */ orderBy?: Prisma.LocationOrderByWithRelationInput | Prisma.LocationOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for Locations. */ cursor?: Prisma.LocationWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Locations 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` Locations. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of Locations. */ distinct?: Prisma.LocationScalarFieldEnum | Prisma.LocationScalarFieldEnum[] } /** * Location findMany */ export type LocationFindManyArgs = { /** * Select specific fields to fetch from the Location */ select?: Prisma.LocationSelect | null /** * Omit specific fields from the Location */ omit?: Prisma.LocationOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.LocationInclude | null /** * Filter, which Locations to fetch. */ where?: Prisma.LocationWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Locations to fetch. */ orderBy?: Prisma.LocationOrderByWithRelationInput | Prisma.LocationOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for listing Locations. */ cursor?: Prisma.LocationWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Locations 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` Locations. */ skip?: number distinct?: Prisma.LocationScalarFieldEnum | Prisma.LocationScalarFieldEnum[] } /** * Location create */ export type LocationCreateArgs = { /** * Select specific fields to fetch from the Location */ select?: Prisma.LocationSelect | null /** * Omit specific fields from the Location */ omit?: Prisma.LocationOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.LocationInclude | null /** * The data needed to create a Location. */ data: Prisma.XOR } /** * Location createMany */ export type LocationCreateManyArgs = { /** * The data used to create many Locations. */ data: Prisma.LocationCreateManyInput | Prisma.LocationCreateManyInput[] skipDuplicates?: boolean } /** * Location createManyAndReturn */ export type LocationCreateManyAndReturnArgs = { /** * Select specific fields to fetch from the Location */ select?: Prisma.LocationSelectCreateManyAndReturn | null /** * Omit specific fields from the Location */ omit?: Prisma.LocationOmit | null /** * The data used to create many Locations. */ data: Prisma.LocationCreateManyInput | Prisma.LocationCreateManyInput[] skipDuplicates?: boolean } /** * Location update */ export type LocationUpdateArgs = { /** * Select specific fields to fetch from the Location */ select?: Prisma.LocationSelect | null /** * Omit specific fields from the Location */ omit?: Prisma.LocationOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.LocationInclude | null /** * The data needed to update a Location. */ data: Prisma.XOR /** * Choose, which Location to update. */ where: Prisma.LocationWhereUniqueInput } /** * Location updateMany */ export type LocationUpdateManyArgs = { /** * The data used to update Locations. */ data: Prisma.XOR /** * Filter which Locations to update */ where?: Prisma.LocationWhereInput /** * Limit how many Locations to update. */ limit?: number } /** * Location updateManyAndReturn */ export type LocationUpdateManyAndReturnArgs = { /** * Select specific fields to fetch from the Location */ select?: Prisma.LocationSelectUpdateManyAndReturn | null /** * Omit specific fields from the Location */ omit?: Prisma.LocationOmit | null /** * The data used to update Locations. */ data: Prisma.XOR /** * Filter which Locations to update */ where?: Prisma.LocationWhereInput /** * Limit how many Locations to update. */ limit?: number } /** * Location upsert */ export type LocationUpsertArgs = { /** * Select specific fields to fetch from the Location */ select?: Prisma.LocationSelect | null /** * Omit specific fields from the Location */ omit?: Prisma.LocationOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.LocationInclude | null /** * The filter to search for the Location to update in case it exists. */ where: Prisma.LocationWhereUniqueInput /** * In case the Location found by the `where` argument doesn't exist, create a new Location with this data. */ create: Prisma.XOR /** * In case the Location was found with the provided `where` argument, update it with this data. */ update: Prisma.XOR } /** * Location delete */ export type LocationDeleteArgs = { /** * Select specific fields to fetch from the Location */ select?: Prisma.LocationSelect | null /** * Omit specific fields from the Location */ omit?: Prisma.LocationOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.LocationInclude | null /** * Filter which Location to delete. */ where: Prisma.LocationWhereUniqueInput } /** * Location deleteMany */ export type LocationDeleteManyArgs = { /** * Filter which Locations to delete */ where?: Prisma.LocationWhereInput /** * Limit how many Locations to delete. */ limit?: number } /** * Location.devices */ export type Location$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[] } /** * Location without action */ export type LocationDefaultArgs = { /** * Select specific fields to fetch from the Location */ select?: Prisma.LocationSelect | null /** * Omit specific fields from the Location */ omit?: Prisma.LocationOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.LocationInclude | null }