/* !!! This is code generated by Prisma. Do not edit directly. !!! */ /* eslint-disable */ // biome-ignore-all lint: generated file // @ts-nocheck /* * This file exports the `device` 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" import type * as Prisma from "../internal/prismaNamespace" /** * Model device * */ export type deviceModel = runtime.Types.Result.DefaultSelection export type AggregateDevice = { _count: DeviceCountAggregateOutputType | null _avg: DeviceAvgAggregateOutputType | null _sum: DeviceSumAggregateOutputType | null _min: DeviceMinAggregateOutputType | null _max: DeviceMaxAggregateOutputType | null } export type DeviceAvgAggregateOutputType = { id: number | null delivery_id: number | null parent: number | null } export type DeviceSumAggregateOutputType = { id: number | null delivery_id: number | null parent: number | null } export type DeviceMinAggregateOutputType = { id: number | null delivery_id: number | null category: string | null name: string | null manufacturier: string | null model: string | null sn: string | null mac: string | null manage: string | null port: string | null protocol: string | null manage_cli: string | null port_cli: string | null protocol_cli: string | null user: string | null pass: string | null parent: number | null } export type DeviceMaxAggregateOutputType = { id: number | null delivery_id: number | null category: string | null name: string | null manufacturier: string | null model: string | null sn: string | null mac: string | null manage: string | null port: string | null protocol: string | null manage_cli: string | null port_cli: string | null protocol_cli: string | null user: string | null pass: string | null parent: number | null } export type DeviceCountAggregateOutputType = { id: number delivery_id: number category: number name: number manufacturier: number model: number sn: number mac: number manage: number port: number protocol: number manage_cli: number port_cli: number protocol_cli: number user: number pass: number parent: number _all: number } export type DeviceAvgAggregateInputType = { id?: true delivery_id?: true parent?: true } export type DeviceSumAggregateInputType = { id?: true delivery_id?: true parent?: true } export type DeviceMinAggregateInputType = { id?: true delivery_id?: true category?: true name?: true manufacturier?: true model?: true sn?: true mac?: true manage?: true port?: true protocol?: true manage_cli?: true port_cli?: true protocol_cli?: true user?: true pass?: true parent?: true } export type DeviceMaxAggregateInputType = { id?: true delivery_id?: true category?: true name?: true manufacturier?: true model?: true sn?: true mac?: true manage?: true port?: true protocol?: true manage_cli?: true port_cli?: true protocol_cli?: true user?: true pass?: true parent?: true } export type DeviceCountAggregateInputType = { id?: true delivery_id?: true category?: true name?: true manufacturier?: true model?: true sn?: true mac?: true manage?: true port?: true protocol?: true manage_cli?: true port_cli?: true protocol_cli?: true user?: true pass?: true parent?: true _all?: true } export type DeviceAggregateArgs = { /** * Filter which device to aggregate. */ where?: Prisma.deviceWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of devices to fetch. */ orderBy?: Prisma.deviceOrderByWithRelationInput | Prisma.deviceOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the start position */ cursor?: Prisma.deviceWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` devices 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` devices. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Count returned devices **/ _count?: true | DeviceCountAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to average **/ _avg?: DeviceAvgAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to sum **/ _sum?: DeviceSumAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the minimum value **/ _min?: DeviceMinAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the maximum value **/ _max?: DeviceMaxAggregateInputType } export type GetDeviceAggregateType = { [P in keyof T & keyof AggregateDevice]: P extends '_count' | 'count' ? T[P] extends true ? number : Prisma.GetScalarType : Prisma.GetScalarType } export type deviceGroupByArgs = { where?: Prisma.deviceWhereInput orderBy?: Prisma.deviceOrderByWithAggregationInput | Prisma.deviceOrderByWithAggregationInput[] by: Prisma.DeviceScalarFieldEnum[] | Prisma.DeviceScalarFieldEnum having?: Prisma.deviceScalarWhereWithAggregatesInput take?: number skip?: number _count?: DeviceCountAggregateInputType | true _avg?: DeviceAvgAggregateInputType _sum?: DeviceSumAggregateInputType _min?: DeviceMinAggregateInputType _max?: DeviceMaxAggregateInputType } export type DeviceGroupByOutputType = { id: number delivery_id: number category: string name: string manufacturier: string | null model: string | null sn: string | null mac: string | null manage: string port: string protocol: string manage_cli: string port_cli: string protocol_cli: string user: string pass: string parent: number _count: DeviceCountAggregateOutputType | null _avg: DeviceAvgAggregateOutputType | null _sum: DeviceSumAggregateOutputType | null _min: DeviceMinAggregateOutputType | null _max: DeviceMaxAggregateOutputType | null } type GetDeviceGroupByPayload = Prisma.PrismaPromise< Array< Prisma.PickEnumerable & { [P in ((keyof T) & (keyof DeviceGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : Prisma.GetScalarType : Prisma.GetScalarType } > > export type deviceWhereInput = { AND?: Prisma.deviceWhereInput | Prisma.deviceWhereInput[] OR?: Prisma.deviceWhereInput[] NOT?: Prisma.deviceWhereInput | Prisma.deviceWhereInput[] id?: Prisma.IntFilter<"device"> | number delivery_id?: Prisma.IntFilter<"device"> | number category?: Prisma.StringFilter<"device"> | string name?: Prisma.StringFilter<"device"> | string manufacturier?: Prisma.StringNullableFilter<"device"> | string | null model?: Prisma.StringNullableFilter<"device"> | string | null sn?: Prisma.StringNullableFilter<"device"> | string | null mac?: Prisma.StringNullableFilter<"device"> | string | null manage?: Prisma.StringFilter<"device"> | string port?: Prisma.StringFilter<"device"> | string protocol?: Prisma.StringFilter<"device"> | string manage_cli?: Prisma.StringFilter<"device"> | string port_cli?: Prisma.StringFilter<"device"> | string protocol_cli?: Prisma.StringFilter<"device"> | string user?: Prisma.StringFilter<"device"> | string pass?: Prisma.StringFilter<"device"> | string parent?: Prisma.IntFilter<"device"> | number } export type deviceOrderByWithRelationInput = { id?: Prisma.SortOrder delivery_id?: Prisma.SortOrder category?: Prisma.SortOrder name?: Prisma.SortOrder manufacturier?: Prisma.SortOrderInput | Prisma.SortOrder model?: Prisma.SortOrderInput | Prisma.SortOrder sn?: Prisma.SortOrderInput | Prisma.SortOrder mac?: Prisma.SortOrderInput | Prisma.SortOrder manage?: Prisma.SortOrder port?: Prisma.SortOrder protocol?: Prisma.SortOrder manage_cli?: Prisma.SortOrder port_cli?: Prisma.SortOrder protocol_cli?: Prisma.SortOrder user?: Prisma.SortOrder pass?: Prisma.SortOrder parent?: Prisma.SortOrder _relevance?: Prisma.deviceOrderByRelevanceInput } export type deviceWhereUniqueInput = Prisma.AtLeast<{ id?: number AND?: Prisma.deviceWhereInput | Prisma.deviceWhereInput[] OR?: Prisma.deviceWhereInput[] NOT?: Prisma.deviceWhereInput | Prisma.deviceWhereInput[] delivery_id?: Prisma.IntFilter<"device"> | number category?: Prisma.StringFilter<"device"> | string name?: Prisma.StringFilter<"device"> | string manufacturier?: Prisma.StringNullableFilter<"device"> | string | null model?: Prisma.StringNullableFilter<"device"> | string | null sn?: Prisma.StringNullableFilter<"device"> | string | null mac?: Prisma.StringNullableFilter<"device"> | string | null manage?: Prisma.StringFilter<"device"> | string port?: Prisma.StringFilter<"device"> | string protocol?: Prisma.StringFilter<"device"> | string manage_cli?: Prisma.StringFilter<"device"> | string port_cli?: Prisma.StringFilter<"device"> | string protocol_cli?: Prisma.StringFilter<"device"> | string user?: Prisma.StringFilter<"device"> | string pass?: Prisma.StringFilter<"device"> | string parent?: Prisma.IntFilter<"device"> | number }, "id"> export type deviceOrderByWithAggregationInput = { id?: Prisma.SortOrder delivery_id?: Prisma.SortOrder category?: Prisma.SortOrder name?: Prisma.SortOrder manufacturier?: Prisma.SortOrderInput | Prisma.SortOrder model?: Prisma.SortOrderInput | Prisma.SortOrder sn?: Prisma.SortOrderInput | Prisma.SortOrder mac?: Prisma.SortOrderInput | Prisma.SortOrder manage?: Prisma.SortOrder port?: Prisma.SortOrder protocol?: Prisma.SortOrder manage_cli?: Prisma.SortOrder port_cli?: Prisma.SortOrder protocol_cli?: Prisma.SortOrder user?: Prisma.SortOrder pass?: Prisma.SortOrder parent?: Prisma.SortOrder _count?: Prisma.deviceCountOrderByAggregateInput _avg?: Prisma.deviceAvgOrderByAggregateInput _max?: Prisma.deviceMaxOrderByAggregateInput _min?: Prisma.deviceMinOrderByAggregateInput _sum?: Prisma.deviceSumOrderByAggregateInput } export type deviceScalarWhereWithAggregatesInput = { AND?: Prisma.deviceScalarWhereWithAggregatesInput | Prisma.deviceScalarWhereWithAggregatesInput[] OR?: Prisma.deviceScalarWhereWithAggregatesInput[] NOT?: Prisma.deviceScalarWhereWithAggregatesInput | Prisma.deviceScalarWhereWithAggregatesInput[] id?: Prisma.IntWithAggregatesFilter<"device"> | number delivery_id?: Prisma.IntWithAggregatesFilter<"device"> | number category?: Prisma.StringWithAggregatesFilter<"device"> | string name?: Prisma.StringWithAggregatesFilter<"device"> | string manufacturier?: Prisma.StringNullableWithAggregatesFilter<"device"> | string | null model?: Prisma.StringNullableWithAggregatesFilter<"device"> | string | null sn?: Prisma.StringNullableWithAggregatesFilter<"device"> | string | null mac?: Prisma.StringNullableWithAggregatesFilter<"device"> | string | null manage?: Prisma.StringWithAggregatesFilter<"device"> | string port?: Prisma.StringWithAggregatesFilter<"device"> | string protocol?: Prisma.StringWithAggregatesFilter<"device"> | string manage_cli?: Prisma.StringWithAggregatesFilter<"device"> | string port_cli?: Prisma.StringWithAggregatesFilter<"device"> | string protocol_cli?: Prisma.StringWithAggregatesFilter<"device"> | string user?: Prisma.StringWithAggregatesFilter<"device"> | string pass?: Prisma.StringWithAggregatesFilter<"device"> | string parent?: Prisma.IntWithAggregatesFilter<"device"> | number } export type deviceCreateInput = { delivery_id: number category: string name: string manufacturier?: string | null model?: string | null sn?: string | null mac?: string | null manage: string port?: string protocol?: string manage_cli: string port_cli?: string protocol_cli: string user: string pass: string parent?: number } export type deviceUncheckedCreateInput = { id?: number delivery_id: number category: string name: string manufacturier?: string | null model?: string | null sn?: string | null mac?: string | null manage: string port?: string protocol?: string manage_cli: string port_cli?: string protocol_cli: string user: string pass: string parent?: number } export type deviceUpdateInput = { delivery_id?: Prisma.IntFieldUpdateOperationsInput | number category?: Prisma.StringFieldUpdateOperationsInput | string name?: Prisma.StringFieldUpdateOperationsInput | string manufacturier?: Prisma.NullableStringFieldUpdateOperationsInput | string | null model?: Prisma.NullableStringFieldUpdateOperationsInput | string | null sn?: Prisma.NullableStringFieldUpdateOperationsInput | string | null mac?: Prisma.NullableStringFieldUpdateOperationsInput | string | null manage?: Prisma.StringFieldUpdateOperationsInput | string port?: Prisma.StringFieldUpdateOperationsInput | string protocol?: Prisma.StringFieldUpdateOperationsInput | string manage_cli?: Prisma.StringFieldUpdateOperationsInput | string port_cli?: Prisma.StringFieldUpdateOperationsInput | string protocol_cli?: Prisma.StringFieldUpdateOperationsInput | string user?: Prisma.StringFieldUpdateOperationsInput | string pass?: Prisma.StringFieldUpdateOperationsInput | string parent?: Prisma.IntFieldUpdateOperationsInput | number } export type deviceUncheckedUpdateInput = { id?: Prisma.IntFieldUpdateOperationsInput | number delivery_id?: Prisma.IntFieldUpdateOperationsInput | number category?: Prisma.StringFieldUpdateOperationsInput | string name?: Prisma.StringFieldUpdateOperationsInput | string manufacturier?: Prisma.NullableStringFieldUpdateOperationsInput | string | null model?: Prisma.NullableStringFieldUpdateOperationsInput | string | null sn?: Prisma.NullableStringFieldUpdateOperationsInput | string | null mac?: Prisma.NullableStringFieldUpdateOperationsInput | string | null manage?: Prisma.StringFieldUpdateOperationsInput | string port?: Prisma.StringFieldUpdateOperationsInput | string protocol?: Prisma.StringFieldUpdateOperationsInput | string manage_cli?: Prisma.StringFieldUpdateOperationsInput | string port_cli?: Prisma.StringFieldUpdateOperationsInput | string protocol_cli?: Prisma.StringFieldUpdateOperationsInput | string user?: Prisma.StringFieldUpdateOperationsInput | string pass?: Prisma.StringFieldUpdateOperationsInput | string parent?: Prisma.IntFieldUpdateOperationsInput | number } export type deviceCreateManyInput = { id?: number delivery_id: number category: string name: string manufacturier?: string | null model?: string | null sn?: string | null mac?: string | null manage: string port?: string protocol?: string manage_cli: string port_cli?: string protocol_cli: string user: string pass: string parent?: number } export type deviceUpdateManyMutationInput = { delivery_id?: Prisma.IntFieldUpdateOperationsInput | number category?: Prisma.StringFieldUpdateOperationsInput | string name?: Prisma.StringFieldUpdateOperationsInput | string manufacturier?: Prisma.NullableStringFieldUpdateOperationsInput | string | null model?: Prisma.NullableStringFieldUpdateOperationsInput | string | null sn?: Prisma.NullableStringFieldUpdateOperationsInput | string | null mac?: Prisma.NullableStringFieldUpdateOperationsInput | string | null manage?: Prisma.StringFieldUpdateOperationsInput | string port?: Prisma.StringFieldUpdateOperationsInput | string protocol?: Prisma.StringFieldUpdateOperationsInput | string manage_cli?: Prisma.StringFieldUpdateOperationsInput | string port_cli?: Prisma.StringFieldUpdateOperationsInput | string protocol_cli?: Prisma.StringFieldUpdateOperationsInput | string user?: Prisma.StringFieldUpdateOperationsInput | string pass?: Prisma.StringFieldUpdateOperationsInput | string parent?: Prisma.IntFieldUpdateOperationsInput | number } export type deviceUncheckedUpdateManyInput = { id?: Prisma.IntFieldUpdateOperationsInput | number delivery_id?: Prisma.IntFieldUpdateOperationsInput | number category?: Prisma.StringFieldUpdateOperationsInput | string name?: Prisma.StringFieldUpdateOperationsInput | string manufacturier?: Prisma.NullableStringFieldUpdateOperationsInput | string | null model?: Prisma.NullableStringFieldUpdateOperationsInput | string | null sn?: Prisma.NullableStringFieldUpdateOperationsInput | string | null mac?: Prisma.NullableStringFieldUpdateOperationsInput | string | null manage?: Prisma.StringFieldUpdateOperationsInput | string port?: Prisma.StringFieldUpdateOperationsInput | string protocol?: Prisma.StringFieldUpdateOperationsInput | string manage_cli?: Prisma.StringFieldUpdateOperationsInput | string port_cli?: Prisma.StringFieldUpdateOperationsInput | string protocol_cli?: Prisma.StringFieldUpdateOperationsInput | string user?: Prisma.StringFieldUpdateOperationsInput | string pass?: Prisma.StringFieldUpdateOperationsInput | string parent?: Prisma.IntFieldUpdateOperationsInput | number } export type deviceOrderByRelevanceInput = { fields: Prisma.deviceOrderByRelevanceFieldEnum | Prisma.deviceOrderByRelevanceFieldEnum[] sort: Prisma.SortOrder search: string } export type deviceCountOrderByAggregateInput = { id?: Prisma.SortOrder delivery_id?: Prisma.SortOrder category?: Prisma.SortOrder name?: Prisma.SortOrder manufacturier?: Prisma.SortOrder model?: Prisma.SortOrder sn?: Prisma.SortOrder mac?: Prisma.SortOrder manage?: Prisma.SortOrder port?: Prisma.SortOrder protocol?: Prisma.SortOrder manage_cli?: Prisma.SortOrder port_cli?: Prisma.SortOrder protocol_cli?: Prisma.SortOrder user?: Prisma.SortOrder pass?: Prisma.SortOrder parent?: Prisma.SortOrder } export type deviceAvgOrderByAggregateInput = { id?: Prisma.SortOrder delivery_id?: Prisma.SortOrder parent?: Prisma.SortOrder } export type deviceMaxOrderByAggregateInput = { id?: Prisma.SortOrder delivery_id?: Prisma.SortOrder category?: Prisma.SortOrder name?: Prisma.SortOrder manufacturier?: Prisma.SortOrder model?: Prisma.SortOrder sn?: Prisma.SortOrder mac?: Prisma.SortOrder manage?: Prisma.SortOrder port?: Prisma.SortOrder protocol?: Prisma.SortOrder manage_cli?: Prisma.SortOrder port_cli?: Prisma.SortOrder protocol_cli?: Prisma.SortOrder user?: Prisma.SortOrder pass?: Prisma.SortOrder parent?: Prisma.SortOrder } export type deviceMinOrderByAggregateInput = { id?: Prisma.SortOrder delivery_id?: Prisma.SortOrder category?: Prisma.SortOrder name?: Prisma.SortOrder manufacturier?: Prisma.SortOrder model?: Prisma.SortOrder sn?: Prisma.SortOrder mac?: Prisma.SortOrder manage?: Prisma.SortOrder port?: Prisma.SortOrder protocol?: Prisma.SortOrder manage_cli?: Prisma.SortOrder port_cli?: Prisma.SortOrder protocol_cli?: Prisma.SortOrder user?: Prisma.SortOrder pass?: Prisma.SortOrder parent?: Prisma.SortOrder } export type deviceSumOrderByAggregateInput = { id?: Prisma.SortOrder delivery_id?: Prisma.SortOrder parent?: Prisma.SortOrder } export type deviceSelect = runtime.Types.Extensions.GetSelect<{ id?: boolean delivery_id?: boolean category?: boolean name?: boolean manufacturier?: boolean model?: boolean sn?: boolean mac?: boolean manage?: boolean port?: boolean protocol?: boolean manage_cli?: boolean port_cli?: boolean protocol_cli?: boolean user?: boolean pass?: boolean parent?: boolean }, ExtArgs["result"]["device"]> export type deviceSelectScalar = { id?: boolean delivery_id?: boolean category?: boolean name?: boolean manufacturier?: boolean model?: boolean sn?: boolean mac?: boolean manage?: boolean port?: boolean protocol?: boolean manage_cli?: boolean port_cli?: boolean protocol_cli?: boolean user?: boolean pass?: boolean parent?: boolean } export type deviceOmit = runtime.Types.Extensions.GetOmit<"id" | "delivery_id" | "category" | "name" | "manufacturier" | "model" | "sn" | "mac" | "manage" | "port" | "protocol" | "manage_cli" | "port_cli" | "protocol_cli" | "user" | "pass" | "parent", ExtArgs["result"]["device"]> export type $devicePayload = { name: "device" objects: {} scalars: runtime.Types.Extensions.GetPayloadResult<{ id: number delivery_id: number category: string name: string manufacturier: string | null model: string | null sn: string | null mac: string | null manage: string port: string protocol: string manage_cli: string port_cli: string protocol_cli: string user: string pass: string parent: number }, ExtArgs["result"]["device"]> composites: {} } export type deviceGetPayload = runtime.Types.Result.GetResult export type deviceCountArgs = Omit & { select?: DeviceCountAggregateInputType | true } export interface deviceDelegate { [K: symbol]: { types: Prisma.TypeMap['model']['device'], meta: { name: 'device' } } /** * Find zero or one Device that matches the filter. * @param {deviceFindUniqueArgs} args - Arguments to find a Device * @example * // Get one Device * const device = await prisma.device.findUnique({ * where: { * // ... provide filter here * } * }) */ findUnique(args: Prisma.SelectSubset>): Prisma.Prisma__deviceClient, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find one Device that matches the filter or throw an error with `error.code='P2025'` * if no matches were found. * @param {deviceFindUniqueOrThrowArgs} args - Arguments to find a Device * @example * // Get one Device * const device = await prisma.device.findUniqueOrThrow({ * where: { * // ... provide filter here * } * }) */ findUniqueOrThrow(args: Prisma.SelectSubset>): Prisma.Prisma__deviceClient, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find the first Device 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 {deviceFindFirstArgs} args - Arguments to find a Device * @example * // Get one Device * const device = await prisma.device.findFirst({ * where: { * // ... provide filter here * } * }) */ findFirst(args?: Prisma.SelectSubset>): Prisma.Prisma__deviceClient, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find the first Device 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 {deviceFindFirstOrThrowArgs} args - Arguments to find a Device * @example * // Get one Device * const device = await prisma.device.findFirstOrThrow({ * where: { * // ... provide filter here * } * }) */ findFirstOrThrow(args?: Prisma.SelectSubset>): Prisma.Prisma__deviceClient, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find zero or more Devices 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 {deviceFindManyArgs} args - Arguments to filter and select certain fields only. * @example * // Get all Devices * const devices = await prisma.device.findMany() * * // Get first 10 Devices * const devices = await prisma.device.findMany({ take: 10 }) * * // Only select the `id` * const deviceWithIdOnly = await prisma.device.findMany({ select: { id: true } }) * */ findMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>> /** * Create a Device. * @param {deviceCreateArgs} args - Arguments to create a Device. * @example * // Create one Device * const Device = await prisma.device.create({ * data: { * // ... data to create a Device * } * }) * */ create(args: Prisma.SelectSubset>): Prisma.Prisma__deviceClient, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Create many Devices. * @param {deviceCreateManyArgs} args - Arguments to create many Devices. * @example * // Create many Devices * const device = await prisma.device.createMany({ * data: [ * // ... provide data here * ] * }) * */ createMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Delete a Device. * @param {deviceDeleteArgs} args - Arguments to delete one Device. * @example * // Delete one Device * const Device = await prisma.device.delete({ * where: { * // ... filter to delete one Device * } * }) * */ delete(args: Prisma.SelectSubset>): Prisma.Prisma__deviceClient, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Update one Device. * @param {deviceUpdateArgs} args - Arguments to update one Device. * @example * // Update one Device * const device = await prisma.device.update({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ update(args: Prisma.SelectSubset>): Prisma.Prisma__deviceClient, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Delete zero or more Devices. * @param {deviceDeleteManyArgs} args - Arguments to filter Devices to delete. * @example * // Delete a few Devices * const { count } = await prisma.device.deleteMany({ * where: { * // ... provide filter here * } * }) * */ deleteMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Update zero or more Devices. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {deviceUpdateManyArgs} args - Arguments to update one or more rows. * @example * // Update many Devices * const device = await prisma.device.updateMany({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ updateMany(args: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Create or update one Device. * @param {deviceUpsertArgs} args - Arguments to update or create a Device. * @example * // Update or create a Device * const device = await prisma.device.upsert({ * create: { * // ... data to create a Device * }, * update: { * // ... in case it already exists, update * }, * where: { * // ... the filter for the Device we want to update * } * }) */ upsert(args: Prisma.SelectSubset>): Prisma.Prisma__deviceClient, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Count the number of Devices. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {deviceCountArgs} args - Arguments to filter Devices to count. * @example * // Count the number of Devices * const count = await prisma.device.count({ * where: { * // ... the filter for the Devices 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 Device. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {DeviceAggregateArgs} 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 Device. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {deviceGroupByArgs} 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 deviceGroupByArgs, HasSelectOrTake extends Prisma.Or< Prisma.Extends<'skip', Prisma.Keys>, Prisma.Extends<'take', Prisma.Keys> >, OrderByArg extends Prisma.True extends HasSelectOrTake ? { orderBy: deviceGroupByArgs['orderBy'] } : { orderBy?: deviceGroupByArgs['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 ? GetDeviceGroupByPayload : Prisma.PrismaPromise /** * Fields of the device model */ readonly fields: deviceFieldRefs; } /** * The delegate class that acts as a "Promise-like" for device. * 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__deviceClient extends Prisma.PrismaPromise { readonly [Symbol.toStringTag]: "PrismaPromise" /** * Attaches callbacks for the resolution and/or rejection of the Promise. * @param onfulfilled The callback to execute when the Promise is resolved. * @param onrejected The callback to execute when the Promise is rejected. * @returns A Promise for the completion of which ever callback is executed. */ then(onfulfilled?: ((value: T) => TResult1 | PromiseLike) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike) | undefined | null): runtime.Types.Utils.JsPromise /** * Attaches a callback for only the rejection of the Promise. * @param onrejected The callback to execute when the Promise is rejected. * @returns A Promise for the completion of the callback. */ catch(onrejected?: ((reason: any) => TResult | PromiseLike) | undefined | null): runtime.Types.Utils.JsPromise /** * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The * resolved value cannot be modified from the callback. * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected). * @returns A Promise for the completion of the callback. */ finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise } /** * Fields of the device model */ export interface deviceFieldRefs { readonly id: Prisma.FieldRef<"device", 'Int'> readonly delivery_id: Prisma.FieldRef<"device", 'Int'> readonly category: Prisma.FieldRef<"device", 'String'> readonly name: Prisma.FieldRef<"device", 'String'> readonly manufacturier: Prisma.FieldRef<"device", 'String'> readonly model: Prisma.FieldRef<"device", 'String'> readonly sn: Prisma.FieldRef<"device", 'String'> readonly mac: Prisma.FieldRef<"device", 'String'> readonly manage: Prisma.FieldRef<"device", 'String'> readonly port: Prisma.FieldRef<"device", 'String'> readonly protocol: Prisma.FieldRef<"device", 'String'> readonly manage_cli: Prisma.FieldRef<"device", 'String'> readonly port_cli: Prisma.FieldRef<"device", 'String'> readonly protocol_cli: Prisma.FieldRef<"device", 'String'> readonly user: Prisma.FieldRef<"device", 'String'> readonly pass: Prisma.FieldRef<"device", 'String'> readonly parent: Prisma.FieldRef<"device", 'Int'> } // Custom InputTypes /** * device findUnique */ export type deviceFindUniqueArgs = { /** * Select specific fields to fetch from the device */ select?: Prisma.deviceSelect | null /** * Omit specific fields from the device */ omit?: Prisma.deviceOmit | null /** * Filter, which device to fetch. */ where: Prisma.deviceWhereUniqueInput } /** * device findUniqueOrThrow */ export type deviceFindUniqueOrThrowArgs = { /** * Select specific fields to fetch from the device */ select?: Prisma.deviceSelect | null /** * Omit specific fields from the device */ omit?: Prisma.deviceOmit | null /** * Filter, which device to fetch. */ where: Prisma.deviceWhereUniqueInput } /** * device findFirst */ export type deviceFindFirstArgs = { /** * Select specific fields to fetch from the device */ select?: Prisma.deviceSelect | null /** * Omit specific fields from the device */ omit?: Prisma.deviceOmit | null /** * Filter, which device to fetch. */ where?: Prisma.deviceWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of devices to fetch. */ orderBy?: Prisma.deviceOrderByWithRelationInput | Prisma.deviceOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for devices. */ cursor?: Prisma.deviceWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` devices 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` devices. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of devices. */ distinct?: Prisma.DeviceScalarFieldEnum | Prisma.DeviceScalarFieldEnum[] } /** * device findFirstOrThrow */ export type deviceFindFirstOrThrowArgs = { /** * Select specific fields to fetch from the device */ select?: Prisma.deviceSelect | null /** * Omit specific fields from the device */ omit?: Prisma.deviceOmit | null /** * Filter, which device to fetch. */ where?: Prisma.deviceWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of devices to fetch. */ orderBy?: Prisma.deviceOrderByWithRelationInput | Prisma.deviceOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for devices. */ cursor?: Prisma.deviceWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` devices 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` devices. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of devices. */ distinct?: Prisma.DeviceScalarFieldEnum | Prisma.DeviceScalarFieldEnum[] } /** * device findMany */ export type deviceFindManyArgs = { /** * Select specific fields to fetch from the device */ select?: Prisma.deviceSelect | null /** * Omit specific fields from the device */ omit?: Prisma.deviceOmit | null /** * Filter, which devices to fetch. */ where?: Prisma.deviceWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of devices to fetch. */ orderBy?: Prisma.deviceOrderByWithRelationInput | Prisma.deviceOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for listing devices. */ cursor?: Prisma.deviceWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` devices 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` devices. */ skip?: number distinct?: Prisma.DeviceScalarFieldEnum | Prisma.DeviceScalarFieldEnum[] } /** * device create */ export type deviceCreateArgs = { /** * Select specific fields to fetch from the device */ select?: Prisma.deviceSelect | null /** * Omit specific fields from the device */ omit?: Prisma.deviceOmit | null /** * The data needed to create a device. */ data: Prisma.XOR } /** * device createMany */ export type deviceCreateManyArgs = { /** * The data used to create many devices. */ data: Prisma.deviceCreateManyInput | Prisma.deviceCreateManyInput[] skipDuplicates?: boolean } /** * device update */ export type deviceUpdateArgs = { /** * Select specific fields to fetch from the device */ select?: Prisma.deviceSelect | null /** * Omit specific fields from the device */ omit?: Prisma.deviceOmit | null /** * The data needed to update a device. */ data: Prisma.XOR /** * Choose, which device to update. */ where: Prisma.deviceWhereUniqueInput } /** * device updateMany */ export type deviceUpdateManyArgs = { /** * The data used to update devices. */ data: Prisma.XOR /** * Filter which devices to update */ where?: Prisma.deviceWhereInput /** * Limit how many devices to update. */ limit?: number } /** * device upsert */ export type deviceUpsertArgs = { /** * Select specific fields to fetch from the device */ select?: Prisma.deviceSelect | null /** * Omit specific fields from the device */ omit?: Prisma.deviceOmit | null /** * The filter to search for the device to update in case it exists. */ where: Prisma.deviceWhereUniqueInput /** * In case the device found by the `where` argument doesn't exist, create a new device with this data. */ create: Prisma.XOR /** * In case the device was found with the provided `where` argument, update it with this data. */ update: Prisma.XOR } /** * device delete */ export type deviceDeleteArgs = { /** * Select specific fields to fetch from the device */ select?: Prisma.deviceSelect | null /** * Omit specific fields from the device */ omit?: Prisma.deviceOmit | null /** * Filter which device to delete. */ where: Prisma.deviceWhereUniqueInput } /** * device deleteMany */ export type deviceDeleteManyArgs = { /** * Filter which devices to delete */ where?: Prisma.deviceWhereInput /** * Limit how many devices to delete. */ limit?: number } /** * device without action */ export type deviceDefaultArgs = { /** * Select specific fields to fetch from the device */ select?: Prisma.deviceSelect | null /** * Omit specific fields from the device */ omit?: Prisma.deviceOmit | null }