1
1
mirror of https://github.com/ZeroCatDev/ClassworksKV.git synced 2026-02-04 07:44:40 +00:00
2026-02-01 20:08:13 +08:00

1973 lines
74 KiB
TypeScript

/* !!! 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.ts"
import type * as Prisma from "../internal/prismaNamespace.ts"
/**
* Model Device
*
*/
export type DeviceModel = runtime.Types.Result.DefaultSelection<Prisma.$DevicePayload>
export type AggregateDevice = {
_count: DeviceCountAggregateOutputType | null
_avg: DeviceAvgAggregateOutputType | null
_sum: DeviceSumAggregateOutputType | null
_min: DeviceMinAggregateOutputType | null
_max: DeviceMaxAggregateOutputType | null
}
export type DeviceAvgAggregateOutputType = {
id: number | null
}
export type DeviceSumAggregateOutputType = {
id: number | null
}
export type DeviceMinAggregateOutputType = {
id: number | null
uuid: string | null
name: string | null
accountId: string | null
createdAt: Date | null
updatedAt: Date | null
password: string | null
passwordHint: string | null
namespace: string | null
}
export type DeviceMaxAggregateOutputType = {
id: number | null
uuid: string | null
name: string | null
accountId: string | null
createdAt: Date | null
updatedAt: Date | null
password: string | null
passwordHint: string | null
namespace: string | null
}
export type DeviceCountAggregateOutputType = {
id: number
uuid: number
name: number
accountId: number
createdAt: number
updatedAt: number
password: number
passwordHint: number
namespace: number
_all: number
}
export type DeviceAvgAggregateInputType = {
id?: true
}
export type DeviceSumAggregateInputType = {
id?: true
}
export type DeviceMinAggregateInputType = {
id?: true
uuid?: true
name?: true
accountId?: true
createdAt?: true
updatedAt?: true
password?: true
passwordHint?: true
namespace?: true
}
export type DeviceMaxAggregateInputType = {
id?: true
uuid?: true
name?: true
accountId?: true
createdAt?: true
updatedAt?: true
password?: true
passwordHint?: true
namespace?: true
}
export type DeviceCountAggregateInputType = {
id?: true
uuid?: true
name?: true
accountId?: true
createdAt?: true
updatedAt?: true
password?: true
passwordHint?: true
namespace?: true
_all?: true
}
export type DeviceAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* 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<T extends DeviceAggregateArgs> = {
[P in keyof T & keyof AggregateDevice]: P extends '_count' | 'count'
? T[P] extends true
? number
: Prisma.GetScalarType<T[P], AggregateDevice[P]>
: Prisma.GetScalarType<T[P], AggregateDevice[P]>
}
export type DeviceGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
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
uuid: string
name: string | null
accountId: string | null
createdAt: Date
updatedAt: Date
password: string | null
passwordHint: string | null
namespace: string | null
_count: DeviceCountAggregateOutputType | null
_avg: DeviceAvgAggregateOutputType | null
_sum: DeviceSumAggregateOutputType | null
_min: DeviceMinAggregateOutputType | null
_max: DeviceMaxAggregateOutputType | null
}
type GetDeviceGroupByPayload<T extends DeviceGroupByArgs> = Prisma.PrismaPromise<
Array<
Prisma.PickEnumerable<DeviceGroupByOutputType, T['by']> &
{
[P in ((keyof T) & (keyof DeviceGroupByOutputType))]: P extends '_count'
? T[P] extends boolean
? number
: Prisma.GetScalarType<T[P], DeviceGroupByOutputType[P]>
: Prisma.GetScalarType<T[P], DeviceGroupByOutputType[P]>
}
>
>
export type DeviceWhereInput = {
AND?: Prisma.DeviceWhereInput | Prisma.DeviceWhereInput[]
OR?: Prisma.DeviceWhereInput[]
NOT?: Prisma.DeviceWhereInput | Prisma.DeviceWhereInput[]
id?: Prisma.IntFilter<"Device"> | number
uuid?: Prisma.StringFilter<"Device"> | string
name?: Prisma.StringNullableFilter<"Device"> | string | null
accountId?: Prisma.StringNullableFilter<"Device"> | string | null
createdAt?: Prisma.DateTimeFilter<"Device"> | Date | string
updatedAt?: Prisma.DateTimeFilter<"Device"> | Date | string
password?: Prisma.StringNullableFilter<"Device"> | string | null
passwordHint?: Prisma.StringNullableFilter<"Device"> | string | null
namespace?: Prisma.StringNullableFilter<"Device"> | string | null
account?: Prisma.XOR<Prisma.AccountNullableScalarRelationFilter, Prisma.AccountWhereInput> | null
appInstalls?: Prisma.AppInstallListRelationFilter
kvStore?: Prisma.KVStoreListRelationFilter
autoAuths?: Prisma.AutoAuthListRelationFilter
}
export type DeviceOrderByWithRelationInput = {
id?: Prisma.SortOrder
uuid?: Prisma.SortOrder
name?: Prisma.SortOrderInput | Prisma.SortOrder
accountId?: Prisma.SortOrderInput | Prisma.SortOrder
createdAt?: Prisma.SortOrder
updatedAt?: Prisma.SortOrder
password?: Prisma.SortOrderInput | Prisma.SortOrder
passwordHint?: Prisma.SortOrderInput | Prisma.SortOrder
namespace?: Prisma.SortOrderInput | Prisma.SortOrder
account?: Prisma.AccountOrderByWithRelationInput
appInstalls?: Prisma.AppInstallOrderByRelationAggregateInput
kvStore?: Prisma.KVStoreOrderByRelationAggregateInput
autoAuths?: Prisma.AutoAuthOrderByRelationAggregateInput
}
export type DeviceWhereUniqueInput = Prisma.AtLeast<{
id?: number
uuid?: string
namespace?: string
AND?: Prisma.DeviceWhereInput | Prisma.DeviceWhereInput[]
OR?: Prisma.DeviceWhereInput[]
NOT?: Prisma.DeviceWhereInput | Prisma.DeviceWhereInput[]
name?: Prisma.StringNullableFilter<"Device"> | string | null
accountId?: Prisma.StringNullableFilter<"Device"> | string | null
createdAt?: Prisma.DateTimeFilter<"Device"> | Date | string
updatedAt?: Prisma.DateTimeFilter<"Device"> | Date | string
password?: Prisma.StringNullableFilter<"Device"> | string | null
passwordHint?: Prisma.StringNullableFilter<"Device"> | string | null
account?: Prisma.XOR<Prisma.AccountNullableScalarRelationFilter, Prisma.AccountWhereInput> | null
appInstalls?: Prisma.AppInstallListRelationFilter
kvStore?: Prisma.KVStoreListRelationFilter
autoAuths?: Prisma.AutoAuthListRelationFilter
}, "id" | "uuid" | "namespace">
export type DeviceOrderByWithAggregationInput = {
id?: Prisma.SortOrder
uuid?: Prisma.SortOrder
name?: Prisma.SortOrderInput | Prisma.SortOrder
accountId?: Prisma.SortOrderInput | Prisma.SortOrder
createdAt?: Prisma.SortOrder
updatedAt?: Prisma.SortOrder
password?: Prisma.SortOrderInput | Prisma.SortOrder
passwordHint?: Prisma.SortOrderInput | Prisma.SortOrder
namespace?: Prisma.SortOrderInput | 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
uuid?: Prisma.StringWithAggregatesFilter<"Device"> | string
name?: Prisma.StringNullableWithAggregatesFilter<"Device"> | string | null
accountId?: Prisma.StringNullableWithAggregatesFilter<"Device"> | string | null
createdAt?: Prisma.DateTimeWithAggregatesFilter<"Device"> | Date | string
updatedAt?: Prisma.DateTimeWithAggregatesFilter<"Device"> | Date | string
password?: Prisma.StringNullableWithAggregatesFilter<"Device"> | string | null
passwordHint?: Prisma.StringNullableWithAggregatesFilter<"Device"> | string | null
namespace?: Prisma.StringNullableWithAggregatesFilter<"Device"> | string | null
}
export type DeviceCreateInput = {
id: number
uuid: string
name?: string | null
createdAt?: Date | string
updatedAt?: Date | string
password?: string | null
passwordHint?: string | null
namespace?: string | null
account?: Prisma.AccountCreateNestedOneWithoutDevicesInput
appInstalls?: Prisma.AppInstallCreateNestedManyWithoutDeviceInput
kvStore?: Prisma.KVStoreCreateNestedManyWithoutDeviceInput
autoAuths?: Prisma.AutoAuthCreateNestedManyWithoutDeviceInput
}
export type DeviceUncheckedCreateInput = {
id: number
uuid: string
name?: string | null
accountId?: string | null
createdAt?: Date | string
updatedAt?: Date | string
password?: string | null
passwordHint?: string | null
namespace?: string | null
appInstalls?: Prisma.AppInstallUncheckedCreateNestedManyWithoutDeviceInput
kvStore?: Prisma.KVStoreUncheckedCreateNestedManyWithoutDeviceInput
autoAuths?: Prisma.AutoAuthUncheckedCreateNestedManyWithoutDeviceInput
}
export type DeviceUpdateInput = {
id?: Prisma.IntFieldUpdateOperationsInput | number
uuid?: Prisma.StringFieldUpdateOperationsInput | string
name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
password?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
passwordHint?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
namespace?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
account?: Prisma.AccountUpdateOneWithoutDevicesNestedInput
appInstalls?: Prisma.AppInstallUpdateManyWithoutDeviceNestedInput
kvStore?: Prisma.KVStoreUpdateManyWithoutDeviceNestedInput
autoAuths?: Prisma.AutoAuthUpdateManyWithoutDeviceNestedInput
}
export type DeviceUncheckedUpdateInput = {
id?: Prisma.IntFieldUpdateOperationsInput | number
uuid?: Prisma.StringFieldUpdateOperationsInput | string
name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
accountId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
password?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
passwordHint?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
namespace?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
appInstalls?: Prisma.AppInstallUncheckedUpdateManyWithoutDeviceNestedInput
kvStore?: Prisma.KVStoreUncheckedUpdateManyWithoutDeviceNestedInput
autoAuths?: Prisma.AutoAuthUncheckedUpdateManyWithoutDeviceNestedInput
}
export type DeviceCreateManyInput = {
id: number
uuid: string
name?: string | null
accountId?: string | null
createdAt?: Date | string
updatedAt?: Date | string
password?: string | null
passwordHint?: string | null
namespace?: string | null
}
export type DeviceUpdateManyMutationInput = {
id?: Prisma.IntFieldUpdateOperationsInput | number
uuid?: Prisma.StringFieldUpdateOperationsInput | string
name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
password?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
passwordHint?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
namespace?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
}
export type DeviceUncheckedUpdateManyInput = {
id?: Prisma.IntFieldUpdateOperationsInput | number
uuid?: Prisma.StringFieldUpdateOperationsInput | string
name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
accountId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
password?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
passwordHint?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
namespace?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
}
export type DeviceListRelationFilter = {
every?: Prisma.DeviceWhereInput
some?: Prisma.DeviceWhereInput
none?: Prisma.DeviceWhereInput
}
export type DeviceOrderByRelationAggregateInput = {
_count?: Prisma.SortOrder
}
export type DeviceScalarRelationFilter = {
is?: Prisma.DeviceWhereInput
isNot?: Prisma.DeviceWhereInput
}
export type DeviceCountOrderByAggregateInput = {
id?: Prisma.SortOrder
uuid?: Prisma.SortOrder
name?: Prisma.SortOrder
accountId?: Prisma.SortOrder
createdAt?: Prisma.SortOrder
updatedAt?: Prisma.SortOrder
password?: Prisma.SortOrder
passwordHint?: Prisma.SortOrder
namespace?: Prisma.SortOrder
}
export type DeviceAvgOrderByAggregateInput = {
id?: Prisma.SortOrder
}
export type DeviceMaxOrderByAggregateInput = {
id?: Prisma.SortOrder
uuid?: Prisma.SortOrder
name?: Prisma.SortOrder
accountId?: Prisma.SortOrder
createdAt?: Prisma.SortOrder
updatedAt?: Prisma.SortOrder
password?: Prisma.SortOrder
passwordHint?: Prisma.SortOrder
namespace?: Prisma.SortOrder
}
export type DeviceMinOrderByAggregateInput = {
id?: Prisma.SortOrder
uuid?: Prisma.SortOrder
name?: Prisma.SortOrder
accountId?: Prisma.SortOrder
createdAt?: Prisma.SortOrder
updatedAt?: Prisma.SortOrder
password?: Prisma.SortOrder
passwordHint?: Prisma.SortOrder
namespace?: Prisma.SortOrder
}
export type DeviceSumOrderByAggregateInput = {
id?: Prisma.SortOrder
}
export type DeviceCreateNestedManyWithoutAccountInput = {
create?: Prisma.XOR<Prisma.DeviceCreateWithoutAccountInput, Prisma.DeviceUncheckedCreateWithoutAccountInput> | Prisma.DeviceCreateWithoutAccountInput[] | Prisma.DeviceUncheckedCreateWithoutAccountInput[]
connectOrCreate?: Prisma.DeviceCreateOrConnectWithoutAccountInput | Prisma.DeviceCreateOrConnectWithoutAccountInput[]
createMany?: Prisma.DeviceCreateManyAccountInputEnvelope
connect?: Prisma.DeviceWhereUniqueInput | Prisma.DeviceWhereUniqueInput[]
}
export type DeviceUncheckedCreateNestedManyWithoutAccountInput = {
create?: Prisma.XOR<Prisma.DeviceCreateWithoutAccountInput, Prisma.DeviceUncheckedCreateWithoutAccountInput> | Prisma.DeviceCreateWithoutAccountInput[] | Prisma.DeviceUncheckedCreateWithoutAccountInput[]
connectOrCreate?: Prisma.DeviceCreateOrConnectWithoutAccountInput | Prisma.DeviceCreateOrConnectWithoutAccountInput[]
createMany?: Prisma.DeviceCreateManyAccountInputEnvelope
connect?: Prisma.DeviceWhereUniqueInput | Prisma.DeviceWhereUniqueInput[]
}
export type DeviceUpdateManyWithoutAccountNestedInput = {
create?: Prisma.XOR<Prisma.DeviceCreateWithoutAccountInput, Prisma.DeviceUncheckedCreateWithoutAccountInput> | Prisma.DeviceCreateWithoutAccountInput[] | Prisma.DeviceUncheckedCreateWithoutAccountInput[]
connectOrCreate?: Prisma.DeviceCreateOrConnectWithoutAccountInput | Prisma.DeviceCreateOrConnectWithoutAccountInput[]
upsert?: Prisma.DeviceUpsertWithWhereUniqueWithoutAccountInput | Prisma.DeviceUpsertWithWhereUniqueWithoutAccountInput[]
createMany?: Prisma.DeviceCreateManyAccountInputEnvelope
set?: Prisma.DeviceWhereUniqueInput | Prisma.DeviceWhereUniqueInput[]
disconnect?: Prisma.DeviceWhereUniqueInput | Prisma.DeviceWhereUniqueInput[]
delete?: Prisma.DeviceWhereUniqueInput | Prisma.DeviceWhereUniqueInput[]
connect?: Prisma.DeviceWhereUniqueInput | Prisma.DeviceWhereUniqueInput[]
update?: Prisma.DeviceUpdateWithWhereUniqueWithoutAccountInput | Prisma.DeviceUpdateWithWhereUniqueWithoutAccountInput[]
updateMany?: Prisma.DeviceUpdateManyWithWhereWithoutAccountInput | Prisma.DeviceUpdateManyWithWhereWithoutAccountInput[]
deleteMany?: Prisma.DeviceScalarWhereInput | Prisma.DeviceScalarWhereInput[]
}
export type DeviceUncheckedUpdateManyWithoutAccountNestedInput = {
create?: Prisma.XOR<Prisma.DeviceCreateWithoutAccountInput, Prisma.DeviceUncheckedCreateWithoutAccountInput> | Prisma.DeviceCreateWithoutAccountInput[] | Prisma.DeviceUncheckedCreateWithoutAccountInput[]
connectOrCreate?: Prisma.DeviceCreateOrConnectWithoutAccountInput | Prisma.DeviceCreateOrConnectWithoutAccountInput[]
upsert?: Prisma.DeviceUpsertWithWhereUniqueWithoutAccountInput | Prisma.DeviceUpsertWithWhereUniqueWithoutAccountInput[]
createMany?: Prisma.DeviceCreateManyAccountInputEnvelope
set?: Prisma.DeviceWhereUniqueInput | Prisma.DeviceWhereUniqueInput[]
disconnect?: Prisma.DeviceWhereUniqueInput | Prisma.DeviceWhereUniqueInput[]
delete?: Prisma.DeviceWhereUniqueInput | Prisma.DeviceWhereUniqueInput[]
connect?: Prisma.DeviceWhereUniqueInput | Prisma.DeviceWhereUniqueInput[]
update?: Prisma.DeviceUpdateWithWhereUniqueWithoutAccountInput | Prisma.DeviceUpdateWithWhereUniqueWithoutAccountInput[]
updateMany?: Prisma.DeviceUpdateManyWithWhereWithoutAccountInput | Prisma.DeviceUpdateManyWithWhereWithoutAccountInput[]
deleteMany?: Prisma.DeviceScalarWhereInput | Prisma.DeviceScalarWhereInput[]
}
export type DeviceCreateNestedOneWithoutAppInstallsInput = {
create?: Prisma.XOR<Prisma.DeviceCreateWithoutAppInstallsInput, Prisma.DeviceUncheckedCreateWithoutAppInstallsInput>
connectOrCreate?: Prisma.DeviceCreateOrConnectWithoutAppInstallsInput
connect?: Prisma.DeviceWhereUniqueInput
}
export type DeviceUpdateOneRequiredWithoutAppInstallsNestedInput = {
create?: Prisma.XOR<Prisma.DeviceCreateWithoutAppInstallsInput, Prisma.DeviceUncheckedCreateWithoutAppInstallsInput>
connectOrCreate?: Prisma.DeviceCreateOrConnectWithoutAppInstallsInput
upsert?: Prisma.DeviceUpsertWithoutAppInstallsInput
connect?: Prisma.DeviceWhereUniqueInput
update?: Prisma.XOR<Prisma.XOR<Prisma.DeviceUpdateToOneWithWhereWithoutAppInstallsInput, Prisma.DeviceUpdateWithoutAppInstallsInput>, Prisma.DeviceUncheckedUpdateWithoutAppInstallsInput>
}
export type DeviceCreateNestedOneWithoutAutoAuthsInput = {
create?: Prisma.XOR<Prisma.DeviceCreateWithoutAutoAuthsInput, Prisma.DeviceUncheckedCreateWithoutAutoAuthsInput>
connectOrCreate?: Prisma.DeviceCreateOrConnectWithoutAutoAuthsInput
connect?: Prisma.DeviceWhereUniqueInput
}
export type DeviceUpdateOneRequiredWithoutAutoAuthsNestedInput = {
create?: Prisma.XOR<Prisma.DeviceCreateWithoutAutoAuthsInput, Prisma.DeviceUncheckedCreateWithoutAutoAuthsInput>
connectOrCreate?: Prisma.DeviceCreateOrConnectWithoutAutoAuthsInput
upsert?: Prisma.DeviceUpsertWithoutAutoAuthsInput
connect?: Prisma.DeviceWhereUniqueInput
update?: Prisma.XOR<Prisma.XOR<Prisma.DeviceUpdateToOneWithWhereWithoutAutoAuthsInput, Prisma.DeviceUpdateWithoutAutoAuthsInput>, Prisma.DeviceUncheckedUpdateWithoutAutoAuthsInput>
}
export type DeviceCreateNestedOneWithoutKvStoreInput = {
create?: Prisma.XOR<Prisma.DeviceCreateWithoutKvStoreInput, Prisma.DeviceUncheckedCreateWithoutKvStoreInput>
connectOrCreate?: Prisma.DeviceCreateOrConnectWithoutKvStoreInput
connect?: Prisma.DeviceWhereUniqueInput
}
export type DeviceUpdateOneRequiredWithoutKvStoreNestedInput = {
create?: Prisma.XOR<Prisma.DeviceCreateWithoutKvStoreInput, Prisma.DeviceUncheckedCreateWithoutKvStoreInput>
connectOrCreate?: Prisma.DeviceCreateOrConnectWithoutKvStoreInput
upsert?: Prisma.DeviceUpsertWithoutKvStoreInput
connect?: Prisma.DeviceWhereUniqueInput
update?: Prisma.XOR<Prisma.XOR<Prisma.DeviceUpdateToOneWithWhereWithoutKvStoreInput, Prisma.DeviceUpdateWithoutKvStoreInput>, Prisma.DeviceUncheckedUpdateWithoutKvStoreInput>
}
export type DeviceCreateWithoutAccountInput = {
id: number
uuid: string
name?: string | null
createdAt?: Date | string
updatedAt?: Date | string
password?: string | null
passwordHint?: string | null
namespace?: string | null
appInstalls?: Prisma.AppInstallCreateNestedManyWithoutDeviceInput
kvStore?: Prisma.KVStoreCreateNestedManyWithoutDeviceInput
autoAuths?: Prisma.AutoAuthCreateNestedManyWithoutDeviceInput
}
export type DeviceUncheckedCreateWithoutAccountInput = {
id: number
uuid: string
name?: string | null
createdAt?: Date | string
updatedAt?: Date | string
password?: string | null
passwordHint?: string | null
namespace?: string | null
appInstalls?: Prisma.AppInstallUncheckedCreateNestedManyWithoutDeviceInput
kvStore?: Prisma.KVStoreUncheckedCreateNestedManyWithoutDeviceInput
autoAuths?: Prisma.AutoAuthUncheckedCreateNestedManyWithoutDeviceInput
}
export type DeviceCreateOrConnectWithoutAccountInput = {
where: Prisma.DeviceWhereUniqueInput
create: Prisma.XOR<Prisma.DeviceCreateWithoutAccountInput, Prisma.DeviceUncheckedCreateWithoutAccountInput>
}
export type DeviceCreateManyAccountInputEnvelope = {
data: Prisma.DeviceCreateManyAccountInput | Prisma.DeviceCreateManyAccountInput[]
skipDuplicates?: boolean
}
export type DeviceUpsertWithWhereUniqueWithoutAccountInput = {
where: Prisma.DeviceWhereUniqueInput
update: Prisma.XOR<Prisma.DeviceUpdateWithoutAccountInput, Prisma.DeviceUncheckedUpdateWithoutAccountInput>
create: Prisma.XOR<Prisma.DeviceCreateWithoutAccountInput, Prisma.DeviceUncheckedCreateWithoutAccountInput>
}
export type DeviceUpdateWithWhereUniqueWithoutAccountInput = {
where: Prisma.DeviceWhereUniqueInput
data: Prisma.XOR<Prisma.DeviceUpdateWithoutAccountInput, Prisma.DeviceUncheckedUpdateWithoutAccountInput>
}
export type DeviceUpdateManyWithWhereWithoutAccountInput = {
where: Prisma.DeviceScalarWhereInput
data: Prisma.XOR<Prisma.DeviceUpdateManyMutationInput, Prisma.DeviceUncheckedUpdateManyWithoutAccountInput>
}
export type DeviceScalarWhereInput = {
AND?: Prisma.DeviceScalarWhereInput | Prisma.DeviceScalarWhereInput[]
OR?: Prisma.DeviceScalarWhereInput[]
NOT?: Prisma.DeviceScalarWhereInput | Prisma.DeviceScalarWhereInput[]
id?: Prisma.IntFilter<"Device"> | number
uuid?: Prisma.StringFilter<"Device"> | string
name?: Prisma.StringNullableFilter<"Device"> | string | null
accountId?: Prisma.StringNullableFilter<"Device"> | string | null
createdAt?: Prisma.DateTimeFilter<"Device"> | Date | string
updatedAt?: Prisma.DateTimeFilter<"Device"> | Date | string
password?: Prisma.StringNullableFilter<"Device"> | string | null
passwordHint?: Prisma.StringNullableFilter<"Device"> | string | null
namespace?: Prisma.StringNullableFilter<"Device"> | string | null
}
export type DeviceCreateWithoutAppInstallsInput = {
id: number
uuid: string
name?: string | null
createdAt?: Date | string
updatedAt?: Date | string
password?: string | null
passwordHint?: string | null
namespace?: string | null
account?: Prisma.AccountCreateNestedOneWithoutDevicesInput
kvStore?: Prisma.KVStoreCreateNestedManyWithoutDeviceInput
autoAuths?: Prisma.AutoAuthCreateNestedManyWithoutDeviceInput
}
export type DeviceUncheckedCreateWithoutAppInstallsInput = {
id: number
uuid: string
name?: string | null
accountId?: string | null
createdAt?: Date | string
updatedAt?: Date | string
password?: string | null
passwordHint?: string | null
namespace?: string | null
kvStore?: Prisma.KVStoreUncheckedCreateNestedManyWithoutDeviceInput
autoAuths?: Prisma.AutoAuthUncheckedCreateNestedManyWithoutDeviceInput
}
export type DeviceCreateOrConnectWithoutAppInstallsInput = {
where: Prisma.DeviceWhereUniqueInput
create: Prisma.XOR<Prisma.DeviceCreateWithoutAppInstallsInput, Prisma.DeviceUncheckedCreateWithoutAppInstallsInput>
}
export type DeviceUpsertWithoutAppInstallsInput = {
update: Prisma.XOR<Prisma.DeviceUpdateWithoutAppInstallsInput, Prisma.DeviceUncheckedUpdateWithoutAppInstallsInput>
create: Prisma.XOR<Prisma.DeviceCreateWithoutAppInstallsInput, Prisma.DeviceUncheckedCreateWithoutAppInstallsInput>
where?: Prisma.DeviceWhereInput
}
export type DeviceUpdateToOneWithWhereWithoutAppInstallsInput = {
where?: Prisma.DeviceWhereInput
data: Prisma.XOR<Prisma.DeviceUpdateWithoutAppInstallsInput, Prisma.DeviceUncheckedUpdateWithoutAppInstallsInput>
}
export type DeviceUpdateWithoutAppInstallsInput = {
id?: Prisma.IntFieldUpdateOperationsInput | number
uuid?: Prisma.StringFieldUpdateOperationsInput | string
name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
password?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
passwordHint?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
namespace?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
account?: Prisma.AccountUpdateOneWithoutDevicesNestedInput
kvStore?: Prisma.KVStoreUpdateManyWithoutDeviceNestedInput
autoAuths?: Prisma.AutoAuthUpdateManyWithoutDeviceNestedInput
}
export type DeviceUncheckedUpdateWithoutAppInstallsInput = {
id?: Prisma.IntFieldUpdateOperationsInput | number
uuid?: Prisma.StringFieldUpdateOperationsInput | string
name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
accountId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
password?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
passwordHint?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
namespace?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
kvStore?: Prisma.KVStoreUncheckedUpdateManyWithoutDeviceNestedInput
autoAuths?: Prisma.AutoAuthUncheckedUpdateManyWithoutDeviceNestedInput
}
export type DeviceCreateWithoutAutoAuthsInput = {
id: number
uuid: string
name?: string | null
createdAt?: Date | string
updatedAt?: Date | string
password?: string | null
passwordHint?: string | null
namespace?: string | null
account?: Prisma.AccountCreateNestedOneWithoutDevicesInput
appInstalls?: Prisma.AppInstallCreateNestedManyWithoutDeviceInput
kvStore?: Prisma.KVStoreCreateNestedManyWithoutDeviceInput
}
export type DeviceUncheckedCreateWithoutAutoAuthsInput = {
id: number
uuid: string
name?: string | null
accountId?: string | null
createdAt?: Date | string
updatedAt?: Date | string
password?: string | null
passwordHint?: string | null
namespace?: string | null
appInstalls?: Prisma.AppInstallUncheckedCreateNestedManyWithoutDeviceInput
kvStore?: Prisma.KVStoreUncheckedCreateNestedManyWithoutDeviceInput
}
export type DeviceCreateOrConnectWithoutAutoAuthsInput = {
where: Prisma.DeviceWhereUniqueInput
create: Prisma.XOR<Prisma.DeviceCreateWithoutAutoAuthsInput, Prisma.DeviceUncheckedCreateWithoutAutoAuthsInput>
}
export type DeviceUpsertWithoutAutoAuthsInput = {
update: Prisma.XOR<Prisma.DeviceUpdateWithoutAutoAuthsInput, Prisma.DeviceUncheckedUpdateWithoutAutoAuthsInput>
create: Prisma.XOR<Prisma.DeviceCreateWithoutAutoAuthsInput, Prisma.DeviceUncheckedCreateWithoutAutoAuthsInput>
where?: Prisma.DeviceWhereInput
}
export type DeviceUpdateToOneWithWhereWithoutAutoAuthsInput = {
where?: Prisma.DeviceWhereInput
data: Prisma.XOR<Prisma.DeviceUpdateWithoutAutoAuthsInput, Prisma.DeviceUncheckedUpdateWithoutAutoAuthsInput>
}
export type DeviceUpdateWithoutAutoAuthsInput = {
id?: Prisma.IntFieldUpdateOperationsInput | number
uuid?: Prisma.StringFieldUpdateOperationsInput | string
name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
password?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
passwordHint?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
namespace?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
account?: Prisma.AccountUpdateOneWithoutDevicesNestedInput
appInstalls?: Prisma.AppInstallUpdateManyWithoutDeviceNestedInput
kvStore?: Prisma.KVStoreUpdateManyWithoutDeviceNestedInput
}
export type DeviceUncheckedUpdateWithoutAutoAuthsInput = {
id?: Prisma.IntFieldUpdateOperationsInput | number
uuid?: Prisma.StringFieldUpdateOperationsInput | string
name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
accountId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
password?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
passwordHint?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
namespace?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
appInstalls?: Prisma.AppInstallUncheckedUpdateManyWithoutDeviceNestedInput
kvStore?: Prisma.KVStoreUncheckedUpdateManyWithoutDeviceNestedInput
}
export type DeviceCreateWithoutKvStoreInput = {
id: number
uuid: string
name?: string | null
createdAt?: Date | string
updatedAt?: Date | string
password?: string | null
passwordHint?: string | null
namespace?: string | null
account?: Prisma.AccountCreateNestedOneWithoutDevicesInput
appInstalls?: Prisma.AppInstallCreateNestedManyWithoutDeviceInput
autoAuths?: Prisma.AutoAuthCreateNestedManyWithoutDeviceInput
}
export type DeviceUncheckedCreateWithoutKvStoreInput = {
id: number
uuid: string
name?: string | null
accountId?: string | null
createdAt?: Date | string
updatedAt?: Date | string
password?: string | null
passwordHint?: string | null
namespace?: string | null
appInstalls?: Prisma.AppInstallUncheckedCreateNestedManyWithoutDeviceInput
autoAuths?: Prisma.AutoAuthUncheckedCreateNestedManyWithoutDeviceInput
}
export type DeviceCreateOrConnectWithoutKvStoreInput = {
where: Prisma.DeviceWhereUniqueInput
create: Prisma.XOR<Prisma.DeviceCreateWithoutKvStoreInput, Prisma.DeviceUncheckedCreateWithoutKvStoreInput>
}
export type DeviceUpsertWithoutKvStoreInput = {
update: Prisma.XOR<Prisma.DeviceUpdateWithoutKvStoreInput, Prisma.DeviceUncheckedUpdateWithoutKvStoreInput>
create: Prisma.XOR<Prisma.DeviceCreateWithoutKvStoreInput, Prisma.DeviceUncheckedCreateWithoutKvStoreInput>
where?: Prisma.DeviceWhereInput
}
export type DeviceUpdateToOneWithWhereWithoutKvStoreInput = {
where?: Prisma.DeviceWhereInput
data: Prisma.XOR<Prisma.DeviceUpdateWithoutKvStoreInput, Prisma.DeviceUncheckedUpdateWithoutKvStoreInput>
}
export type DeviceUpdateWithoutKvStoreInput = {
id?: Prisma.IntFieldUpdateOperationsInput | number
uuid?: Prisma.StringFieldUpdateOperationsInput | string
name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
password?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
passwordHint?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
namespace?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
account?: Prisma.AccountUpdateOneWithoutDevicesNestedInput
appInstalls?: Prisma.AppInstallUpdateManyWithoutDeviceNestedInput
autoAuths?: Prisma.AutoAuthUpdateManyWithoutDeviceNestedInput
}
export type DeviceUncheckedUpdateWithoutKvStoreInput = {
id?: Prisma.IntFieldUpdateOperationsInput | number
uuid?: Prisma.StringFieldUpdateOperationsInput | string
name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
accountId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
password?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
passwordHint?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
namespace?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
appInstalls?: Prisma.AppInstallUncheckedUpdateManyWithoutDeviceNestedInput
autoAuths?: Prisma.AutoAuthUncheckedUpdateManyWithoutDeviceNestedInput
}
export type DeviceCreateManyAccountInput = {
id: number
uuid: string
name?: string | null
createdAt?: Date | string
updatedAt?: Date | string
password?: string | null
passwordHint?: string | null
namespace?: string | null
}
export type DeviceUpdateWithoutAccountInput = {
id?: Prisma.IntFieldUpdateOperationsInput | number
uuid?: Prisma.StringFieldUpdateOperationsInput | string
name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
password?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
passwordHint?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
namespace?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
appInstalls?: Prisma.AppInstallUpdateManyWithoutDeviceNestedInput
kvStore?: Prisma.KVStoreUpdateManyWithoutDeviceNestedInput
autoAuths?: Prisma.AutoAuthUpdateManyWithoutDeviceNestedInput
}
export type DeviceUncheckedUpdateWithoutAccountInput = {
id?: Prisma.IntFieldUpdateOperationsInput | number
uuid?: Prisma.StringFieldUpdateOperationsInput | string
name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
password?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
passwordHint?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
namespace?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
appInstalls?: Prisma.AppInstallUncheckedUpdateManyWithoutDeviceNestedInput
kvStore?: Prisma.KVStoreUncheckedUpdateManyWithoutDeviceNestedInput
autoAuths?: Prisma.AutoAuthUncheckedUpdateManyWithoutDeviceNestedInput
}
export type DeviceUncheckedUpdateManyWithoutAccountInput = {
id?: Prisma.IntFieldUpdateOperationsInput | number
uuid?: Prisma.StringFieldUpdateOperationsInput | string
name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
password?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
passwordHint?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
namespace?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
}
/**
* Count Type DeviceCountOutputType
*/
export type DeviceCountOutputType = {
appInstalls: number
kvStore: number
autoAuths: number
}
export type DeviceCountOutputTypeSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
appInstalls?: boolean | DeviceCountOutputTypeCountAppInstallsArgs
kvStore?: boolean | DeviceCountOutputTypeCountKvStoreArgs
autoAuths?: boolean | DeviceCountOutputTypeCountAutoAuthsArgs
}
/**
* DeviceCountOutputType without action
*/
export type DeviceCountOutputTypeDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the DeviceCountOutputType
*/
select?: Prisma.DeviceCountOutputTypeSelect<ExtArgs> | null
}
/**
* DeviceCountOutputType without action
*/
export type DeviceCountOutputTypeCountAppInstallsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
where?: Prisma.AppInstallWhereInput
}
/**
* DeviceCountOutputType without action
*/
export type DeviceCountOutputTypeCountKvStoreArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
where?: Prisma.KVStoreWhereInput
}
/**
* DeviceCountOutputType without action
*/
export type DeviceCountOutputTypeCountAutoAuthsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
where?: Prisma.AutoAuthWhereInput
}
export type DeviceSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
id?: boolean
uuid?: boolean
name?: boolean
accountId?: boolean
createdAt?: boolean
updatedAt?: boolean
password?: boolean
passwordHint?: boolean
namespace?: boolean
account?: boolean | Prisma.Device$accountArgs<ExtArgs>
appInstalls?: boolean | Prisma.Device$appInstallsArgs<ExtArgs>
kvStore?: boolean | Prisma.Device$kvStoreArgs<ExtArgs>
autoAuths?: boolean | Prisma.Device$autoAuthsArgs<ExtArgs>
_count?: boolean | Prisma.DeviceCountOutputTypeDefaultArgs<ExtArgs>
}, ExtArgs["result"]["device"]>
export type DeviceSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
id?: boolean
uuid?: boolean
name?: boolean
accountId?: boolean
createdAt?: boolean
updatedAt?: boolean
password?: boolean
passwordHint?: boolean
namespace?: boolean
account?: boolean | Prisma.Device$accountArgs<ExtArgs>
}, ExtArgs["result"]["device"]>
export type DeviceSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
id?: boolean
uuid?: boolean
name?: boolean
accountId?: boolean
createdAt?: boolean
updatedAt?: boolean
password?: boolean
passwordHint?: boolean
namespace?: boolean
account?: boolean | Prisma.Device$accountArgs<ExtArgs>
}, ExtArgs["result"]["device"]>
export type DeviceSelectScalar = {
id?: boolean
uuid?: boolean
name?: boolean
accountId?: boolean
createdAt?: boolean
updatedAt?: boolean
password?: boolean
passwordHint?: boolean
namespace?: boolean
}
export type DeviceOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "uuid" | "name" | "accountId" | "createdAt" | "updatedAt" | "password" | "passwordHint" | "namespace", ExtArgs["result"]["device"]>
export type DeviceInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
account?: boolean | Prisma.Device$accountArgs<ExtArgs>
appInstalls?: boolean | Prisma.Device$appInstallsArgs<ExtArgs>
kvStore?: boolean | Prisma.Device$kvStoreArgs<ExtArgs>
autoAuths?: boolean | Prisma.Device$autoAuthsArgs<ExtArgs>
_count?: boolean | Prisma.DeviceCountOutputTypeDefaultArgs<ExtArgs>
}
export type DeviceIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
account?: boolean | Prisma.Device$accountArgs<ExtArgs>
}
export type DeviceIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
account?: boolean | Prisma.Device$accountArgs<ExtArgs>
}
export type $DevicePayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
name: "Device"
objects: {
account: Prisma.$AccountPayload<ExtArgs> | null
appInstalls: Prisma.$AppInstallPayload<ExtArgs>[]
kvStore: Prisma.$KVStorePayload<ExtArgs>[]
autoAuths: Prisma.$AutoAuthPayload<ExtArgs>[]
}
scalars: runtime.Types.Extensions.GetPayloadResult<{
id: number
uuid: string
name: string | null
accountId: string | null
createdAt: Date
updatedAt: Date
password: string | null
passwordHint: string | null
namespace: string | null
}, ExtArgs["result"]["device"]>
composites: {}
}
export type DeviceGetPayload<S extends boolean | null | undefined | DeviceDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$DevicePayload, S>
export type DeviceCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> =
Omit<DeviceFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
select?: DeviceCountAggregateInputType | true
}
export interface DeviceDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
[K: symbol]: { types: Prisma.TypeMap<ExtArgs>['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<T extends DeviceFindUniqueArgs>(args: Prisma.SelectSubset<T, DeviceFindUniqueArgs<ExtArgs>>): Prisma.Prisma__DeviceClient<runtime.Types.Result.GetResult<Prisma.$DevicePayload<ExtArgs>, 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<T extends DeviceFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, DeviceFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__DeviceClient<runtime.Types.Result.GetResult<Prisma.$DevicePayload<ExtArgs>, 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<T extends DeviceFindFirstArgs>(args?: Prisma.SelectSubset<T, DeviceFindFirstArgs<ExtArgs>>): Prisma.Prisma__DeviceClient<runtime.Types.Result.GetResult<Prisma.$DevicePayload<ExtArgs>, 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<T extends DeviceFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, DeviceFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__DeviceClient<runtime.Types.Result.GetResult<Prisma.$DevicePayload<ExtArgs>, 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<T extends DeviceFindManyArgs>(args?: Prisma.SelectSubset<T, DeviceFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$DevicePayload<ExtArgs>, 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<T extends DeviceCreateArgs>(args: Prisma.SelectSubset<T, DeviceCreateArgs<ExtArgs>>): Prisma.Prisma__DeviceClient<runtime.Types.Result.GetResult<Prisma.$DevicePayload<ExtArgs>, 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<T extends DeviceCreateManyArgs>(args?: Prisma.SelectSubset<T, DeviceCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
/**
* Create many Devices and returns the data saved in the database.
* @param {DeviceCreateManyAndReturnArgs} args - Arguments to create many Devices.
* @example
* // Create many Devices
* const device = await prisma.device.createManyAndReturn({
* data: [
* // ... provide data here
* ]
* })
*
* // Create many Devices and only return the `id`
* const deviceWithIdOnly = await prisma.device.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<T extends DeviceCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, DeviceCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$DevicePayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>
/**
* 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<T extends DeviceDeleteArgs>(args: Prisma.SelectSubset<T, DeviceDeleteArgs<ExtArgs>>): Prisma.Prisma__DeviceClient<runtime.Types.Result.GetResult<Prisma.$DevicePayload<ExtArgs>, 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<T extends DeviceUpdateArgs>(args: Prisma.SelectSubset<T, DeviceUpdateArgs<ExtArgs>>): Prisma.Prisma__DeviceClient<runtime.Types.Result.GetResult<Prisma.$DevicePayload<ExtArgs>, 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<T extends DeviceDeleteManyArgs>(args?: Prisma.SelectSubset<T, DeviceDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
/**
* 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<T extends DeviceUpdateManyArgs>(args: Prisma.SelectSubset<T, DeviceUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
/**
* Update zero or more Devices and returns the data updated in the database.
* @param {DeviceUpdateManyAndReturnArgs} args - Arguments to update many Devices.
* @example
* // Update many Devices
* const device = await prisma.device.updateManyAndReturn({
* where: {
* // ... provide filter here
* },
* data: [
* // ... provide data here
* ]
* })
*
* // Update zero or more Devices and only return the `id`
* const deviceWithIdOnly = await prisma.device.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<T extends DeviceUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, DeviceUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$DevicePayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>
/**
* 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<T extends DeviceUpsertArgs>(args: Prisma.SelectSubset<T, DeviceUpsertArgs<ExtArgs>>): Prisma.Prisma__DeviceClient<runtime.Types.Result.GetResult<Prisma.$DevicePayload<ExtArgs>, 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<T extends DeviceCountArgs>(
args?: Prisma.Subset<T, DeviceCountArgs>,
): Prisma.PrismaPromise<
T extends runtime.Types.Utils.Record<'select', any>
? T['select'] extends true
? number
: Prisma.GetScalarType<T['select'], DeviceCountAggregateOutputType>
: 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<T extends DeviceAggregateArgs>(args: Prisma.Subset<T, DeviceAggregateArgs>): Prisma.PrismaPromise<GetDeviceAggregateType<T>>
/**
* 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<T>>,
Prisma.Extends<'take', Prisma.Keys<T>>
>,
OrderByArg extends Prisma.True extends HasSelectOrTake
? { orderBy: DeviceGroupByArgs['orderBy'] }
: { orderBy?: DeviceGroupByArgs['orderBy'] },
OrderFields extends Prisma.ExcludeUnderscoreKeys<Prisma.Keys<Prisma.MaybeTupleToUnion<T['orderBy']>>>,
ByFields extends Prisma.MaybeTupleToUnion<T['by']>,
ByValid extends Prisma.Has<ByFields, OrderFields>,
HavingFields extends Prisma.GetHavingFields<T['having']>,
HavingValid extends Prisma.Has<ByFields, HavingFields>,
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<T>
? 'orderBy' extends Prisma.Keys<T>
? 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<T>
? 'orderBy' extends Prisma.Keys<T>
? 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<T, DeviceGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetDeviceGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
/**
* 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<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
readonly [Symbol.toStringTag]: "PrismaPromise"
account<T extends Prisma.Device$accountArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Device$accountArgs<ExtArgs>>): Prisma.Prisma__AccountClient<runtime.Types.Result.GetResult<Prisma.$AccountPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
appInstalls<T extends Prisma.Device$appInstallsArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Device$appInstallsArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$AppInstallPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
kvStore<T extends Prisma.Device$kvStoreArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Device$kvStoreArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$KVStorePayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
autoAuths<T extends Prisma.Device$autoAuthsArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Device$autoAuthsArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$AutoAuthPayload<ExtArgs>, 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<TResult1 = T, TResult2 = never>(onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined | null): runtime.Types.Utils.JsPromise<TResult1 | TResult2>
/**
* 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<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): runtime.Types.Utils.JsPromise<T | TResult>
/**
* 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<T>
}
/**
* Fields of the Device model
*/
export interface DeviceFieldRefs {
readonly id: Prisma.FieldRef<"Device", 'Int'>
readonly uuid: Prisma.FieldRef<"Device", 'String'>
readonly name: Prisma.FieldRef<"Device", 'String'>
readonly accountId: Prisma.FieldRef<"Device", 'String'>
readonly createdAt: Prisma.FieldRef<"Device", 'DateTime'>
readonly updatedAt: Prisma.FieldRef<"Device", 'DateTime'>
readonly password: Prisma.FieldRef<"Device", 'String'>
readonly passwordHint: Prisma.FieldRef<"Device", 'String'>
readonly namespace: Prisma.FieldRef<"Device", 'String'>
}
// Custom InputTypes
/**
* Device findUnique
*/
export type DeviceFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the Device
*/
select?: Prisma.DeviceSelect<ExtArgs> | null
/**
* Omit specific fields from the Device
*/
omit?: Prisma.DeviceOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.DeviceInclude<ExtArgs> | null
/**
* Filter, which Device to fetch.
*/
where: Prisma.DeviceWhereUniqueInput
}
/**
* Device findUniqueOrThrow
*/
export type DeviceFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the Device
*/
select?: Prisma.DeviceSelect<ExtArgs> | null
/**
* Omit specific fields from the Device
*/
omit?: Prisma.DeviceOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.DeviceInclude<ExtArgs> | null
/**
* Filter, which Device to fetch.
*/
where: Prisma.DeviceWhereUniqueInput
}
/**
* Device findFirst
*/
export type DeviceFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the Device
*/
select?: Prisma.DeviceSelect<ExtArgs> | null
/**
* Omit specific fields from the Device
*/
omit?: Prisma.DeviceOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.DeviceInclude<ExtArgs> | 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<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the Device
*/
select?: Prisma.DeviceSelect<ExtArgs> | null
/**
* Omit specific fields from the Device
*/
omit?: Prisma.DeviceOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.DeviceInclude<ExtArgs> | 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<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the Device
*/
select?: Prisma.DeviceSelect<ExtArgs> | null
/**
* Omit specific fields from the Device
*/
omit?: Prisma.DeviceOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.DeviceInclude<ExtArgs> | 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<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the Device
*/
select?: Prisma.DeviceSelect<ExtArgs> | null
/**
* Omit specific fields from the Device
*/
omit?: Prisma.DeviceOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.DeviceInclude<ExtArgs> | null
/**
* The data needed to create a Device.
*/
data: Prisma.XOR<Prisma.DeviceCreateInput, Prisma.DeviceUncheckedCreateInput>
}
/**
* Device createMany
*/
export type DeviceCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* The data used to create many Devices.
*/
data: Prisma.DeviceCreateManyInput | Prisma.DeviceCreateManyInput[]
skipDuplicates?: boolean
}
/**
* Device createManyAndReturn
*/
export type DeviceCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the Device
*/
select?: Prisma.DeviceSelectCreateManyAndReturn<ExtArgs> | null
/**
* Omit specific fields from the Device
*/
omit?: Prisma.DeviceOmit<ExtArgs> | null
/**
* The data used to create many Devices.
*/
data: Prisma.DeviceCreateManyInput | Prisma.DeviceCreateManyInput[]
skipDuplicates?: boolean
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.DeviceIncludeCreateManyAndReturn<ExtArgs> | null
}
/**
* Device update
*/
export type DeviceUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the Device
*/
select?: Prisma.DeviceSelect<ExtArgs> | null
/**
* Omit specific fields from the Device
*/
omit?: Prisma.DeviceOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.DeviceInclude<ExtArgs> | null
/**
* The data needed to update a Device.
*/
data: Prisma.XOR<Prisma.DeviceUpdateInput, Prisma.DeviceUncheckedUpdateInput>
/**
* Choose, which Device to update.
*/
where: Prisma.DeviceWhereUniqueInput
}
/**
* Device updateMany
*/
export type DeviceUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* The data used to update Devices.
*/
data: Prisma.XOR<Prisma.DeviceUpdateManyMutationInput, Prisma.DeviceUncheckedUpdateManyInput>
/**
* Filter which Devices to update
*/
where?: Prisma.DeviceWhereInput
/**
* Limit how many Devices to update.
*/
limit?: number
}
/**
* Device updateManyAndReturn
*/
export type DeviceUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the Device
*/
select?: Prisma.DeviceSelectUpdateManyAndReturn<ExtArgs> | null
/**
* Omit specific fields from the Device
*/
omit?: Prisma.DeviceOmit<ExtArgs> | null
/**
* The data used to update Devices.
*/
data: Prisma.XOR<Prisma.DeviceUpdateManyMutationInput, Prisma.DeviceUncheckedUpdateManyInput>
/**
* Filter which Devices to update
*/
where?: Prisma.DeviceWhereInput
/**
* Limit how many Devices to update.
*/
limit?: number
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.DeviceIncludeUpdateManyAndReturn<ExtArgs> | null
}
/**
* Device upsert
*/
export type DeviceUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the Device
*/
select?: Prisma.DeviceSelect<ExtArgs> | null
/**
* Omit specific fields from the Device
*/
omit?: Prisma.DeviceOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.DeviceInclude<ExtArgs> | 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<Prisma.DeviceCreateInput, Prisma.DeviceUncheckedCreateInput>
/**
* In case the Device was found with the provided `where` argument, update it with this data.
*/
update: Prisma.XOR<Prisma.DeviceUpdateInput, Prisma.DeviceUncheckedUpdateInput>
}
/**
* Device delete
*/
export type DeviceDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the Device
*/
select?: Prisma.DeviceSelect<ExtArgs> | null
/**
* Omit specific fields from the Device
*/
omit?: Prisma.DeviceOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.DeviceInclude<ExtArgs> | null
/**
* Filter which Device to delete.
*/
where: Prisma.DeviceWhereUniqueInput
}
/**
* Device deleteMany
*/
export type DeviceDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Filter which Devices to delete
*/
where?: Prisma.DeviceWhereInput
/**
* Limit how many Devices to delete.
*/
limit?: number
}
/**
* Device.account
*/
export type Device$accountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the Account
*/
select?: Prisma.AccountSelect<ExtArgs> | null
/**
* Omit specific fields from the Account
*/
omit?: Prisma.AccountOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.AccountInclude<ExtArgs> | null
where?: Prisma.AccountWhereInput
}
/**
* Device.appInstalls
*/
export type Device$appInstallsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the AppInstall
*/
select?: Prisma.AppInstallSelect<ExtArgs> | null
/**
* Omit specific fields from the AppInstall
*/
omit?: Prisma.AppInstallOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.AppInstallInclude<ExtArgs> | null
where?: Prisma.AppInstallWhereInput
orderBy?: Prisma.AppInstallOrderByWithRelationInput | Prisma.AppInstallOrderByWithRelationInput[]
cursor?: Prisma.AppInstallWhereUniqueInput
take?: number
skip?: number
distinct?: Prisma.AppInstallScalarFieldEnum | Prisma.AppInstallScalarFieldEnum[]
}
/**
* Device.kvStore
*/
export type Device$kvStoreArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the KVStore
*/
select?: Prisma.KVStoreSelect<ExtArgs> | null
/**
* Omit specific fields from the KVStore
*/
omit?: Prisma.KVStoreOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.KVStoreInclude<ExtArgs> | null
where?: Prisma.KVStoreWhereInput
orderBy?: Prisma.KVStoreOrderByWithRelationInput | Prisma.KVStoreOrderByWithRelationInput[]
cursor?: Prisma.KVStoreWhereUniqueInput
take?: number
skip?: number
distinct?: Prisma.KVStoreScalarFieldEnum | Prisma.KVStoreScalarFieldEnum[]
}
/**
* Device.autoAuths
*/
export type Device$autoAuthsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the AutoAuth
*/
select?: Prisma.AutoAuthSelect<ExtArgs> | null
/**
* Omit specific fields from the AutoAuth
*/
omit?: Prisma.AutoAuthOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.AutoAuthInclude<ExtArgs> | null
where?: Prisma.AutoAuthWhereInput
orderBy?: Prisma.AutoAuthOrderByWithRelationInput | Prisma.AutoAuthOrderByWithRelationInput[]
cursor?: Prisma.AutoAuthWhereUniqueInput
take?: number
skip?: number
distinct?: Prisma.AutoAuthScalarFieldEnum | Prisma.AutoAuthScalarFieldEnum[]
}
/**
* Device without action
*/
export type DeviceDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the Device
*/
select?: Prisma.DeviceSelect<ExtArgs> | null
/**
* Omit specific fields from the Device
*/
omit?: Prisma.DeviceOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.DeviceInclude<ExtArgs> | null
}