mirror of
https://github.com/shumaiOne/shumai.git
synced 2026-11-25 02:29:29 +00:00
1336 lines
47 KiB
TypeScript
Generated
1336 lines
47 KiB
TypeScript
Generated
|
|
/* !!! This is code generated by Prisma. Do not edit directly. !!! */
|
|
/* eslint-disable */
|
|
// biome-ignore-all lint: generated file
|
|
// @ts-nocheck
|
|
/*
|
|
* This file exports the `StorageKey` model and its related types.
|
|
*
|
|
* 🟢 You can import this file directly.
|
|
*/
|
|
|
|
import type * as PJTG from '../pjtg';
|
|
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 StorageKey
|
|
*
|
|
*/
|
|
export type StorageKeyModel = runtime.Types.Result.DefaultSelection<Prisma.$StorageKeyPayload>
|
|
|
|
export type AggregateStorageKey = {
|
|
_count: StorageKeyCountAggregateOutputType | null
|
|
_min: StorageKeyMinAggregateOutputType | null
|
|
_max: StorageKeyMaxAggregateOutputType | null
|
|
}
|
|
|
|
export type StorageKeyMinAggregateOutputType = {
|
|
id: string | null
|
|
key: string | null
|
|
status: $Enums.StorageKeyStatus | null
|
|
createdAt: Date | null
|
|
updatedAt: Date | null
|
|
}
|
|
|
|
export type StorageKeyMaxAggregateOutputType = {
|
|
id: string | null
|
|
key: string | null
|
|
status: $Enums.StorageKeyStatus | null
|
|
createdAt: Date | null
|
|
updatedAt: Date | null
|
|
}
|
|
|
|
export type StorageKeyCountAggregateOutputType = {
|
|
id: number
|
|
key: number
|
|
status: number
|
|
createdAt: number
|
|
updatedAt: number
|
|
_all: number
|
|
}
|
|
|
|
|
|
export type StorageKeyMinAggregateInputType = {
|
|
id?: true
|
|
key?: true
|
|
status?: true
|
|
createdAt?: true
|
|
updatedAt?: true
|
|
}
|
|
|
|
export type StorageKeyMaxAggregateInputType = {
|
|
id?: true
|
|
key?: true
|
|
status?: true
|
|
createdAt?: true
|
|
updatedAt?: true
|
|
}
|
|
|
|
export type StorageKeyCountAggregateInputType = {
|
|
id?: true
|
|
key?: true
|
|
status?: true
|
|
createdAt?: true
|
|
updatedAt?: true
|
|
_all?: true
|
|
}
|
|
|
|
export type StorageKeyAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Filter which StorageKey to aggregate.
|
|
*/
|
|
where?: Prisma.StorageKeyWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of StorageKeys to fetch.
|
|
*/
|
|
orderBy?: Prisma.StorageKeyOrderByWithRelationInput | Prisma.StorageKeyOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the start position
|
|
*/
|
|
cursor?: Prisma.StorageKeyWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` StorageKeys 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` StorageKeys.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Count returned StorageKeys
|
|
**/
|
|
_count?: true | StorageKeyCountAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to find the minimum value
|
|
**/
|
|
_min?: StorageKeyMinAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to find the maximum value
|
|
**/
|
|
_max?: StorageKeyMaxAggregateInputType
|
|
}
|
|
|
|
export type GetStorageKeyAggregateType<T extends StorageKeyAggregateArgs> = {
|
|
[P in keyof T & keyof AggregateStorageKey]: P extends '_count' | 'count'
|
|
? T[P] extends true
|
|
? number
|
|
: Prisma.GetScalarType<T[P], AggregateStorageKey[P]>
|
|
: Prisma.GetScalarType<T[P], AggregateStorageKey[P]>
|
|
}
|
|
|
|
|
|
|
|
|
|
export type StorageKeyGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
where?: Prisma.StorageKeyWhereInput
|
|
orderBy?: Prisma.StorageKeyOrderByWithAggregationInput | Prisma.StorageKeyOrderByWithAggregationInput[]
|
|
by: Prisma.StorageKeyScalarFieldEnum[] | Prisma.StorageKeyScalarFieldEnum
|
|
having?: Prisma.StorageKeyScalarWhereWithAggregatesInput
|
|
take?: number
|
|
skip?: number
|
|
_count?: StorageKeyCountAggregateInputType | true
|
|
_min?: StorageKeyMinAggregateInputType
|
|
_max?: StorageKeyMaxAggregateInputType
|
|
}
|
|
|
|
export type StorageKeyGroupByOutputType = {
|
|
id: string
|
|
key: string
|
|
status: $Enums.StorageKeyStatus
|
|
createdAt: Date
|
|
updatedAt: Date
|
|
_count: StorageKeyCountAggregateOutputType | null
|
|
_min: StorageKeyMinAggregateOutputType | null
|
|
_max: StorageKeyMaxAggregateOutputType | null
|
|
}
|
|
|
|
export type GetStorageKeyGroupByPayload<T extends StorageKeyGroupByArgs> = Prisma.PrismaPromise<
|
|
Array<
|
|
Prisma.PickEnumerable<StorageKeyGroupByOutputType, T['by']> &
|
|
{
|
|
[P in ((keyof T) & (keyof StorageKeyGroupByOutputType))]: P extends '_count'
|
|
? T[P] extends boolean
|
|
? number
|
|
: Prisma.GetScalarType<T[P], StorageKeyGroupByOutputType[P]>
|
|
: Prisma.GetScalarType<T[P], StorageKeyGroupByOutputType[P]>
|
|
}
|
|
>
|
|
>
|
|
|
|
|
|
|
|
export type StorageKeyWhereInput = {
|
|
AND?: Prisma.StorageKeyWhereInput | Prisma.StorageKeyWhereInput[]
|
|
OR?: Prisma.StorageKeyWhereInput[]
|
|
NOT?: Prisma.StorageKeyWhereInput | Prisma.StorageKeyWhereInput[]
|
|
id?: Prisma.StringFilter<"StorageKey"> | string
|
|
key?: Prisma.StringFilter<"StorageKey"> | string
|
|
status?: Prisma.EnumStorageKeyStatusFilter<"StorageKey"> | $Enums.StorageKeyStatus
|
|
createdAt?: Prisma.DateTimeFilter<"StorageKey"> | Date | string
|
|
updatedAt?: Prisma.DateTimeFilter<"StorageKey"> | Date | string
|
|
assets?: Prisma.AssetListRelationFilter
|
|
}
|
|
|
|
export type StorageKeyOrderByWithRelationInput = {
|
|
id?: Prisma.SortOrder
|
|
key?: Prisma.SortOrder
|
|
status?: Prisma.SortOrder
|
|
createdAt?: Prisma.SortOrder
|
|
updatedAt?: Prisma.SortOrder
|
|
assets?: Prisma.AssetOrderByRelationAggregateInput
|
|
}
|
|
|
|
export type StorageKeyWhereUniqueInput = Prisma.AtLeast<{
|
|
id?: string
|
|
key?: string
|
|
AND?: Prisma.StorageKeyWhereInput | Prisma.StorageKeyWhereInput[]
|
|
OR?: Prisma.StorageKeyWhereInput[]
|
|
NOT?: Prisma.StorageKeyWhereInput | Prisma.StorageKeyWhereInput[]
|
|
status?: Prisma.EnumStorageKeyStatusFilter<"StorageKey"> | $Enums.StorageKeyStatus
|
|
createdAt?: Prisma.DateTimeFilter<"StorageKey"> | Date | string
|
|
updatedAt?: Prisma.DateTimeFilter<"StorageKey"> | Date | string
|
|
assets?: Prisma.AssetListRelationFilter
|
|
}, "id" | "key">
|
|
|
|
export type StorageKeyOrderByWithAggregationInput = {
|
|
id?: Prisma.SortOrder
|
|
key?: Prisma.SortOrder
|
|
status?: Prisma.SortOrder
|
|
createdAt?: Prisma.SortOrder
|
|
updatedAt?: Prisma.SortOrder
|
|
_count?: Prisma.StorageKeyCountOrderByAggregateInput
|
|
_max?: Prisma.StorageKeyMaxOrderByAggregateInput
|
|
_min?: Prisma.StorageKeyMinOrderByAggregateInput
|
|
}
|
|
|
|
export type StorageKeyScalarWhereWithAggregatesInput = {
|
|
AND?: Prisma.StorageKeyScalarWhereWithAggregatesInput | Prisma.StorageKeyScalarWhereWithAggregatesInput[]
|
|
OR?: Prisma.StorageKeyScalarWhereWithAggregatesInput[]
|
|
NOT?: Prisma.StorageKeyScalarWhereWithAggregatesInput | Prisma.StorageKeyScalarWhereWithAggregatesInput[]
|
|
id?: Prisma.StringWithAggregatesFilter<"StorageKey"> | string
|
|
key?: Prisma.StringWithAggregatesFilter<"StorageKey"> | string
|
|
status?: Prisma.EnumStorageKeyStatusWithAggregatesFilter<"StorageKey"> | $Enums.StorageKeyStatus
|
|
createdAt?: Prisma.DateTimeWithAggregatesFilter<"StorageKey"> | Date | string
|
|
updatedAt?: Prisma.DateTimeWithAggregatesFilter<"StorageKey"> | Date | string
|
|
}
|
|
|
|
export type StorageKeyCreateInput = {
|
|
id?: string
|
|
key: string
|
|
status?: $Enums.StorageKeyStatus
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
assets?: Prisma.AssetCreateNestedManyWithoutStorageKeyInput
|
|
}
|
|
|
|
export type StorageKeyUncheckedCreateInput = {
|
|
id?: string
|
|
key: string
|
|
status?: $Enums.StorageKeyStatus
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
assets?: Prisma.AssetUncheckedCreateNestedManyWithoutStorageKeyInput
|
|
}
|
|
|
|
export type StorageKeyUpdateInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
key?: Prisma.StringFieldUpdateOperationsInput | string
|
|
status?: Prisma.EnumStorageKeyStatusFieldUpdateOperationsInput | $Enums.StorageKeyStatus
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
assets?: Prisma.AssetUpdateManyWithoutStorageKeyNestedInput
|
|
}
|
|
|
|
export type StorageKeyUncheckedUpdateInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
key?: Prisma.StringFieldUpdateOperationsInput | string
|
|
status?: Prisma.EnumStorageKeyStatusFieldUpdateOperationsInput | $Enums.StorageKeyStatus
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
assets?: Prisma.AssetUncheckedUpdateManyWithoutStorageKeyNestedInput
|
|
}
|
|
|
|
export type StorageKeyCreateManyInput = {
|
|
id?: string
|
|
key: string
|
|
status?: $Enums.StorageKeyStatus
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
}
|
|
|
|
export type StorageKeyUpdateManyMutationInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
key?: Prisma.StringFieldUpdateOperationsInput | string
|
|
status?: Prisma.EnumStorageKeyStatusFieldUpdateOperationsInput | $Enums.StorageKeyStatus
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
}
|
|
|
|
export type StorageKeyUncheckedUpdateManyInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
key?: Prisma.StringFieldUpdateOperationsInput | string
|
|
status?: Prisma.EnumStorageKeyStatusFieldUpdateOperationsInput | $Enums.StorageKeyStatus
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
}
|
|
|
|
export type StorageKeyNullableScalarRelationFilter = {
|
|
is?: Prisma.StorageKeyWhereInput | null
|
|
isNot?: Prisma.StorageKeyWhereInput | null
|
|
}
|
|
|
|
export type StorageKeyCountOrderByAggregateInput = {
|
|
id?: Prisma.SortOrder
|
|
key?: Prisma.SortOrder
|
|
status?: Prisma.SortOrder
|
|
createdAt?: Prisma.SortOrder
|
|
updatedAt?: Prisma.SortOrder
|
|
}
|
|
|
|
export type StorageKeyMaxOrderByAggregateInput = {
|
|
id?: Prisma.SortOrder
|
|
key?: Prisma.SortOrder
|
|
status?: Prisma.SortOrder
|
|
createdAt?: Prisma.SortOrder
|
|
updatedAt?: Prisma.SortOrder
|
|
}
|
|
|
|
export type StorageKeyMinOrderByAggregateInput = {
|
|
id?: Prisma.SortOrder
|
|
key?: Prisma.SortOrder
|
|
status?: Prisma.SortOrder
|
|
createdAt?: Prisma.SortOrder
|
|
updatedAt?: Prisma.SortOrder
|
|
}
|
|
|
|
export type StorageKeyCreateNestedOneWithoutAssetsInput = {
|
|
create?: Prisma.XOR<Prisma.StorageKeyCreateWithoutAssetsInput, Prisma.StorageKeyUncheckedCreateWithoutAssetsInput>
|
|
connectOrCreate?: Prisma.StorageKeyCreateOrConnectWithoutAssetsInput
|
|
connect?: Prisma.StorageKeyWhereUniqueInput
|
|
}
|
|
|
|
export type StorageKeyUpdateOneWithoutAssetsNestedInput = {
|
|
create?: Prisma.XOR<Prisma.StorageKeyCreateWithoutAssetsInput, Prisma.StorageKeyUncheckedCreateWithoutAssetsInput>
|
|
connectOrCreate?: Prisma.StorageKeyCreateOrConnectWithoutAssetsInput
|
|
upsert?: Prisma.StorageKeyUpsertWithoutAssetsInput
|
|
disconnect?: Prisma.StorageKeyWhereInput | boolean
|
|
delete?: Prisma.StorageKeyWhereInput | boolean
|
|
connect?: Prisma.StorageKeyWhereUniqueInput
|
|
update?: Prisma.XOR<Prisma.XOR<Prisma.StorageKeyUpdateToOneWithWhereWithoutAssetsInput, Prisma.StorageKeyUpdateWithoutAssetsInput>, Prisma.StorageKeyUncheckedUpdateWithoutAssetsInput>
|
|
}
|
|
|
|
export type EnumStorageKeyStatusFieldUpdateOperationsInput = {
|
|
set?: $Enums.StorageKeyStatus
|
|
}
|
|
|
|
export type StorageKeyCreateWithoutAssetsInput = {
|
|
id?: string
|
|
key: string
|
|
status?: $Enums.StorageKeyStatus
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
}
|
|
|
|
export type StorageKeyUncheckedCreateWithoutAssetsInput = {
|
|
id?: string
|
|
key: string
|
|
status?: $Enums.StorageKeyStatus
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
}
|
|
|
|
export type StorageKeyCreateOrConnectWithoutAssetsInput = {
|
|
where: Prisma.StorageKeyWhereUniqueInput
|
|
create: Prisma.XOR<Prisma.StorageKeyCreateWithoutAssetsInput, Prisma.StorageKeyUncheckedCreateWithoutAssetsInput>
|
|
}
|
|
|
|
export type StorageKeyUpsertWithoutAssetsInput = {
|
|
update: Prisma.XOR<Prisma.StorageKeyUpdateWithoutAssetsInput, Prisma.StorageKeyUncheckedUpdateWithoutAssetsInput>
|
|
create: Prisma.XOR<Prisma.StorageKeyCreateWithoutAssetsInput, Prisma.StorageKeyUncheckedCreateWithoutAssetsInput>
|
|
where?: Prisma.StorageKeyWhereInput
|
|
}
|
|
|
|
export type StorageKeyUpdateToOneWithWhereWithoutAssetsInput = {
|
|
where?: Prisma.StorageKeyWhereInput
|
|
data: Prisma.XOR<Prisma.StorageKeyUpdateWithoutAssetsInput, Prisma.StorageKeyUncheckedUpdateWithoutAssetsInput>
|
|
}
|
|
|
|
export type StorageKeyUpdateWithoutAssetsInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
key?: Prisma.StringFieldUpdateOperationsInput | string
|
|
status?: Prisma.EnumStorageKeyStatusFieldUpdateOperationsInput | $Enums.StorageKeyStatus
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
}
|
|
|
|
export type StorageKeyUncheckedUpdateWithoutAssetsInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
key?: Prisma.StringFieldUpdateOperationsInput | string
|
|
status?: Prisma.EnumStorageKeyStatusFieldUpdateOperationsInput | $Enums.StorageKeyStatus
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
}
|
|
|
|
|
|
/**
|
|
* Count Type StorageKeyCountOutputType
|
|
*/
|
|
|
|
export type StorageKeyCountOutputType = {
|
|
assets: number
|
|
}
|
|
|
|
export type StorageKeyCountOutputTypeSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
assets?: boolean | StorageKeyCountOutputTypeCountAssetsArgs
|
|
}
|
|
|
|
/**
|
|
* StorageKeyCountOutputType without action
|
|
*/
|
|
export type StorageKeyCountOutputTypeDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the StorageKeyCountOutputType
|
|
*/
|
|
select?: Prisma.StorageKeyCountOutputTypeSelect<ExtArgs> | null
|
|
}
|
|
|
|
/**
|
|
* StorageKeyCountOutputType without action
|
|
*/
|
|
export type StorageKeyCountOutputTypeCountAssetsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
where?: Prisma.AssetWhereInput
|
|
}
|
|
|
|
|
|
export type StorageKeySelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
id?: boolean
|
|
key?: boolean
|
|
status?: boolean
|
|
createdAt?: boolean
|
|
updatedAt?: boolean
|
|
assets?: boolean | Prisma.StorageKey$assetsArgs<ExtArgs>
|
|
_count?: boolean | Prisma.StorageKeyCountOutputTypeDefaultArgs<ExtArgs>
|
|
}, ExtArgs["result"]["storageKey"]>
|
|
|
|
export type StorageKeySelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
id?: boolean
|
|
key?: boolean
|
|
status?: boolean
|
|
createdAt?: boolean
|
|
updatedAt?: boolean
|
|
}, ExtArgs["result"]["storageKey"]>
|
|
|
|
export type StorageKeySelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
id?: boolean
|
|
key?: boolean
|
|
status?: boolean
|
|
createdAt?: boolean
|
|
updatedAt?: boolean
|
|
}, ExtArgs["result"]["storageKey"]>
|
|
|
|
export type StorageKeySelectScalar = {
|
|
id?: boolean
|
|
key?: boolean
|
|
status?: boolean
|
|
createdAt?: boolean
|
|
updatedAt?: boolean
|
|
}
|
|
|
|
export type StorageKeyOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "key" | "status" | "createdAt" | "updatedAt", ExtArgs["result"]["storageKey"]>
|
|
export type StorageKeyInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
assets?: boolean | Prisma.StorageKey$assetsArgs<ExtArgs>
|
|
_count?: boolean | Prisma.StorageKeyCountOutputTypeDefaultArgs<ExtArgs>
|
|
}
|
|
export type StorageKeyIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {}
|
|
export type StorageKeyIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {}
|
|
|
|
export type $StorageKeyPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
name: "StorageKey"
|
|
objects: {
|
|
assets: Prisma.$AssetPayload<ExtArgs>[]
|
|
}
|
|
scalars: runtime.Types.Extensions.GetPayloadResult<{
|
|
id: string
|
|
key: string
|
|
status: $Enums.StorageKeyStatus
|
|
createdAt: Date
|
|
updatedAt: Date
|
|
}, ExtArgs["result"]["storageKey"]>
|
|
composites: {}
|
|
}
|
|
|
|
export type StorageKeyGetPayload<S extends boolean | null | undefined | StorageKeyDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$StorageKeyPayload, S>
|
|
|
|
export type StorageKeyCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> =
|
|
Omit<StorageKeyFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
|
|
select?: StorageKeyCountAggregateInputType | true
|
|
}
|
|
|
|
export interface StorageKeyDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
|
|
[K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['StorageKey'], meta: { name: 'StorageKey' } }
|
|
/**
|
|
* Find zero or one StorageKey that matches the filter.
|
|
* @param {StorageKeyFindUniqueArgs} args - Arguments to find a StorageKey
|
|
* @example
|
|
* // Get one StorageKey
|
|
* const storageKey = await prisma.storageKey.findUnique({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findUnique<T extends StorageKeyFindUniqueArgs>(args: Prisma.SelectSubset<T, StorageKeyFindUniqueArgs<ExtArgs>>): Prisma.Prisma__StorageKeyClient<runtime.Types.Result.GetResult<Prisma.$StorageKeyPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Find one StorageKey that matches the filter or throw an error with `error.code='P2025'`
|
|
* if no matches were found.
|
|
* @param {StorageKeyFindUniqueOrThrowArgs} args - Arguments to find a StorageKey
|
|
* @example
|
|
* // Get one StorageKey
|
|
* const storageKey = await prisma.storageKey.findUniqueOrThrow({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findUniqueOrThrow<T extends StorageKeyFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, StorageKeyFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__StorageKeyClient<runtime.Types.Result.GetResult<Prisma.$StorageKeyPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Find the first StorageKey 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 {StorageKeyFindFirstArgs} args - Arguments to find a StorageKey
|
|
* @example
|
|
* // Get one StorageKey
|
|
* const storageKey = await prisma.storageKey.findFirst({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findFirst<T extends StorageKeyFindFirstArgs>(args?: Prisma.SelectSubset<T, StorageKeyFindFirstArgs<ExtArgs>>): Prisma.Prisma__StorageKeyClient<runtime.Types.Result.GetResult<Prisma.$StorageKeyPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Find the first StorageKey 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 {StorageKeyFindFirstOrThrowArgs} args - Arguments to find a StorageKey
|
|
* @example
|
|
* // Get one StorageKey
|
|
* const storageKey = await prisma.storageKey.findFirstOrThrow({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findFirstOrThrow<T extends StorageKeyFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, StorageKeyFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__StorageKeyClient<runtime.Types.Result.GetResult<Prisma.$StorageKeyPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Find zero or more StorageKeys 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 {StorageKeyFindManyArgs} args - Arguments to filter and select certain fields only.
|
|
* @example
|
|
* // Get all StorageKeys
|
|
* const storageKeys = await prisma.storageKey.findMany()
|
|
*
|
|
* // Get first 10 StorageKeys
|
|
* const storageKeys = await prisma.storageKey.findMany({ take: 10 })
|
|
*
|
|
* // Only select the `id`
|
|
* const storageKeyWithIdOnly = await prisma.storageKey.findMany({ select: { id: true } })
|
|
*
|
|
*/
|
|
findMany<T extends StorageKeyFindManyArgs>(args?: Prisma.SelectSubset<T, StorageKeyFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$StorageKeyPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
|
|
|
|
/**
|
|
* Create a StorageKey.
|
|
* @param {StorageKeyCreateArgs} args - Arguments to create a StorageKey.
|
|
* @example
|
|
* // Create one StorageKey
|
|
* const StorageKey = await prisma.storageKey.create({
|
|
* data: {
|
|
* // ... data to create a StorageKey
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
create<T extends StorageKeyCreateArgs>(args: Prisma.SelectSubset<T, StorageKeyCreateArgs<ExtArgs>>): Prisma.Prisma__StorageKeyClient<runtime.Types.Result.GetResult<Prisma.$StorageKeyPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Create many StorageKeys.
|
|
* @param {StorageKeyCreateManyArgs} args - Arguments to create many StorageKeys.
|
|
* @example
|
|
* // Create many StorageKeys
|
|
* const storageKey = await prisma.storageKey.createMany({
|
|
* data: [
|
|
* // ... provide data here
|
|
* ]
|
|
* })
|
|
*
|
|
*/
|
|
createMany<T extends StorageKeyCreateManyArgs>(args?: Prisma.SelectSubset<T, StorageKeyCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
|
|
|
/**
|
|
* Create many StorageKeys and returns the data saved in the database.
|
|
* @param {StorageKeyCreateManyAndReturnArgs} args - Arguments to create many StorageKeys.
|
|
* @example
|
|
* // Create many StorageKeys
|
|
* const storageKey = await prisma.storageKey.createManyAndReturn({
|
|
* data: [
|
|
* // ... provide data here
|
|
* ]
|
|
* })
|
|
*
|
|
* // Create many StorageKeys and only return the `id`
|
|
* const storageKeyWithIdOnly = await prisma.storageKey.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 StorageKeyCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, StorageKeyCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$StorageKeyPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>
|
|
|
|
/**
|
|
* Delete a StorageKey.
|
|
* @param {StorageKeyDeleteArgs} args - Arguments to delete one StorageKey.
|
|
* @example
|
|
* // Delete one StorageKey
|
|
* const StorageKey = await prisma.storageKey.delete({
|
|
* where: {
|
|
* // ... filter to delete one StorageKey
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
delete<T extends StorageKeyDeleteArgs>(args: Prisma.SelectSubset<T, StorageKeyDeleteArgs<ExtArgs>>): Prisma.Prisma__StorageKeyClient<runtime.Types.Result.GetResult<Prisma.$StorageKeyPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Update one StorageKey.
|
|
* @param {StorageKeyUpdateArgs} args - Arguments to update one StorageKey.
|
|
* @example
|
|
* // Update one StorageKey
|
|
* const storageKey = await prisma.storageKey.update({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* },
|
|
* data: {
|
|
* // ... provide data here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
update<T extends StorageKeyUpdateArgs>(args: Prisma.SelectSubset<T, StorageKeyUpdateArgs<ExtArgs>>): Prisma.Prisma__StorageKeyClient<runtime.Types.Result.GetResult<Prisma.$StorageKeyPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Delete zero or more StorageKeys.
|
|
* @param {StorageKeyDeleteManyArgs} args - Arguments to filter StorageKeys to delete.
|
|
* @example
|
|
* // Delete a few StorageKeys
|
|
* const { count } = await prisma.storageKey.deleteMany({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
deleteMany<T extends StorageKeyDeleteManyArgs>(args?: Prisma.SelectSubset<T, StorageKeyDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
|
|
|
/**
|
|
* Update zero or more StorageKeys.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {StorageKeyUpdateManyArgs} args - Arguments to update one or more rows.
|
|
* @example
|
|
* // Update many StorageKeys
|
|
* const storageKey = await prisma.storageKey.updateMany({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* },
|
|
* data: {
|
|
* // ... provide data here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
updateMany<T extends StorageKeyUpdateManyArgs>(args: Prisma.SelectSubset<T, StorageKeyUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
|
|
|
/**
|
|
* Update zero or more StorageKeys and returns the data updated in the database.
|
|
* @param {StorageKeyUpdateManyAndReturnArgs} args - Arguments to update many StorageKeys.
|
|
* @example
|
|
* // Update many StorageKeys
|
|
* const storageKey = await prisma.storageKey.updateManyAndReturn({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* },
|
|
* data: [
|
|
* // ... provide data here
|
|
* ]
|
|
* })
|
|
*
|
|
* // Update zero or more StorageKeys and only return the `id`
|
|
* const storageKeyWithIdOnly = await prisma.storageKey.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 StorageKeyUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, StorageKeyUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$StorageKeyPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>
|
|
|
|
/**
|
|
* Create or update one StorageKey.
|
|
* @param {StorageKeyUpsertArgs} args - Arguments to update or create a StorageKey.
|
|
* @example
|
|
* // Update or create a StorageKey
|
|
* const storageKey = await prisma.storageKey.upsert({
|
|
* create: {
|
|
* // ... data to create a StorageKey
|
|
* },
|
|
* update: {
|
|
* // ... in case it already exists, update
|
|
* },
|
|
* where: {
|
|
* // ... the filter for the StorageKey we want to update
|
|
* }
|
|
* })
|
|
*/
|
|
upsert<T extends StorageKeyUpsertArgs>(args: Prisma.SelectSubset<T, StorageKeyUpsertArgs<ExtArgs>>): Prisma.Prisma__StorageKeyClient<runtime.Types.Result.GetResult<Prisma.$StorageKeyPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
|
|
/**
|
|
* Count the number of StorageKeys.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {StorageKeyCountArgs} args - Arguments to filter StorageKeys to count.
|
|
* @example
|
|
* // Count the number of StorageKeys
|
|
* const count = await prisma.storageKey.count({
|
|
* where: {
|
|
* // ... the filter for the StorageKeys we want to count
|
|
* }
|
|
* })
|
|
**/
|
|
count<T extends StorageKeyCountArgs>(
|
|
args?: Prisma.Subset<T, StorageKeyCountArgs>,
|
|
): Prisma.PrismaPromise<
|
|
T extends runtime.Types.Utils.Record<'select', any>
|
|
? T['select'] extends true
|
|
? number
|
|
: Prisma.GetScalarType<T['select'], StorageKeyCountAggregateOutputType>
|
|
: number
|
|
>
|
|
|
|
/**
|
|
* Allows you to perform aggregations operations on a StorageKey.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {StorageKeyAggregateArgs} 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 StorageKeyAggregateArgs>(args: Prisma.Subset<T, StorageKeyAggregateArgs>): Prisma.PrismaPromise<GetStorageKeyAggregateType<T>>
|
|
|
|
/**
|
|
* Group by StorageKey.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {StorageKeyGroupByArgs} 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 StorageKeyGroupByArgs,
|
|
HasSelectOrTake extends Prisma.Or<
|
|
Prisma.Extends<'skip', Prisma.Keys<T>>,
|
|
Prisma.Extends<'take', Prisma.Keys<T>>
|
|
>,
|
|
OrderByArg extends Prisma.True extends HasSelectOrTake
|
|
? { orderBy: StorageKeyGroupByArgs['orderBy'] }
|
|
: { orderBy?: StorageKeyGroupByArgs['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, StorageKeyGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetStorageKeyGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
|
|
/**
|
|
* Fields of the StorageKey model
|
|
*/
|
|
readonly fields: StorageKeyFieldRefs;
|
|
}
|
|
|
|
/**
|
|
* The delegate class that acts as a "Promise-like" for StorageKey.
|
|
* 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__StorageKeyClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
|
|
readonly [Symbol.toStringTag]: "PrismaPromise"
|
|
assets<T extends Prisma.StorageKey$assetsArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.StorageKey$assetsArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$AssetPayload<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 StorageKey model
|
|
*/
|
|
export interface StorageKeyFieldRefs {
|
|
readonly id: Prisma.FieldRef<"StorageKey", 'String'>
|
|
readonly key: Prisma.FieldRef<"StorageKey", 'String'>
|
|
readonly status: Prisma.FieldRef<"StorageKey", 'StorageKeyStatus'>
|
|
readonly createdAt: Prisma.FieldRef<"StorageKey", 'DateTime'>
|
|
readonly updatedAt: Prisma.FieldRef<"StorageKey", 'DateTime'>
|
|
}
|
|
|
|
|
|
// Custom InputTypes
|
|
/**
|
|
* StorageKey findUnique
|
|
*/
|
|
export type StorageKeyFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the StorageKey
|
|
*/
|
|
select?: Prisma.StorageKeySelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the StorageKey
|
|
*/
|
|
omit?: Prisma.StorageKeyOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.StorageKeyInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which StorageKey to fetch.
|
|
*/
|
|
where: Prisma.StorageKeyWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* StorageKey findUniqueOrThrow
|
|
*/
|
|
export type StorageKeyFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the StorageKey
|
|
*/
|
|
select?: Prisma.StorageKeySelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the StorageKey
|
|
*/
|
|
omit?: Prisma.StorageKeyOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.StorageKeyInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which StorageKey to fetch.
|
|
*/
|
|
where: Prisma.StorageKeyWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* StorageKey findFirst
|
|
*/
|
|
export type StorageKeyFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the StorageKey
|
|
*/
|
|
select?: Prisma.StorageKeySelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the StorageKey
|
|
*/
|
|
omit?: Prisma.StorageKeyOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.StorageKeyInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which StorageKey to fetch.
|
|
*/
|
|
where?: Prisma.StorageKeyWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of StorageKeys to fetch.
|
|
*/
|
|
orderBy?: Prisma.StorageKeyOrderByWithRelationInput | Prisma.StorageKeyOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for searching for StorageKeys.
|
|
*/
|
|
cursor?: Prisma.StorageKeyWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` StorageKeys 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` StorageKeys.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
*
|
|
* Filter by unique combinations of StorageKeys.
|
|
*/
|
|
distinct?: Prisma.StorageKeyScalarFieldEnum | Prisma.StorageKeyScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* StorageKey findFirstOrThrow
|
|
*/
|
|
export type StorageKeyFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the StorageKey
|
|
*/
|
|
select?: Prisma.StorageKeySelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the StorageKey
|
|
*/
|
|
omit?: Prisma.StorageKeyOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.StorageKeyInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which StorageKey to fetch.
|
|
*/
|
|
where?: Prisma.StorageKeyWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of StorageKeys to fetch.
|
|
*/
|
|
orderBy?: Prisma.StorageKeyOrderByWithRelationInput | Prisma.StorageKeyOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for searching for StorageKeys.
|
|
*/
|
|
cursor?: Prisma.StorageKeyWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` StorageKeys 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` StorageKeys.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
*
|
|
* Filter by unique combinations of StorageKeys.
|
|
*/
|
|
distinct?: Prisma.StorageKeyScalarFieldEnum | Prisma.StorageKeyScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* StorageKey findMany
|
|
*/
|
|
export type StorageKeyFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the StorageKey
|
|
*/
|
|
select?: Prisma.StorageKeySelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the StorageKey
|
|
*/
|
|
omit?: Prisma.StorageKeyOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.StorageKeyInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which StorageKeys to fetch.
|
|
*/
|
|
where?: Prisma.StorageKeyWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of StorageKeys to fetch.
|
|
*/
|
|
orderBy?: Prisma.StorageKeyOrderByWithRelationInput | Prisma.StorageKeyOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for listing StorageKeys.
|
|
*/
|
|
cursor?: Prisma.StorageKeyWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` StorageKeys 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` StorageKeys.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
*
|
|
* Filter by unique combinations of StorageKeys.
|
|
*/
|
|
distinct?: Prisma.StorageKeyScalarFieldEnum | Prisma.StorageKeyScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* StorageKey create
|
|
*/
|
|
export type StorageKeyCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the StorageKey
|
|
*/
|
|
select?: Prisma.StorageKeySelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the StorageKey
|
|
*/
|
|
omit?: Prisma.StorageKeyOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.StorageKeyInclude<ExtArgs> | null
|
|
/**
|
|
* The data needed to create a StorageKey.
|
|
*/
|
|
data: Prisma.XOR<Prisma.StorageKeyCreateInput, Prisma.StorageKeyUncheckedCreateInput>
|
|
}
|
|
|
|
/**
|
|
* StorageKey createMany
|
|
*/
|
|
export type StorageKeyCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* The data used to create many StorageKeys.
|
|
*/
|
|
data: Prisma.StorageKeyCreateManyInput | Prisma.StorageKeyCreateManyInput[]
|
|
skipDuplicates?: boolean
|
|
}
|
|
|
|
/**
|
|
* StorageKey createManyAndReturn
|
|
*/
|
|
export type StorageKeyCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the StorageKey
|
|
*/
|
|
select?: Prisma.StorageKeySelectCreateManyAndReturn<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the StorageKey
|
|
*/
|
|
omit?: Prisma.StorageKeyOmit<ExtArgs> | null
|
|
/**
|
|
* The data used to create many StorageKeys.
|
|
*/
|
|
data: Prisma.StorageKeyCreateManyInput | Prisma.StorageKeyCreateManyInput[]
|
|
skipDuplicates?: boolean
|
|
}
|
|
|
|
/**
|
|
* StorageKey update
|
|
*/
|
|
export type StorageKeyUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the StorageKey
|
|
*/
|
|
select?: Prisma.StorageKeySelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the StorageKey
|
|
*/
|
|
omit?: Prisma.StorageKeyOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.StorageKeyInclude<ExtArgs> | null
|
|
/**
|
|
* The data needed to update a StorageKey.
|
|
*/
|
|
data: Prisma.XOR<Prisma.StorageKeyUpdateInput, Prisma.StorageKeyUncheckedUpdateInput>
|
|
/**
|
|
* Choose, which StorageKey to update.
|
|
*/
|
|
where: Prisma.StorageKeyWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* StorageKey updateMany
|
|
*/
|
|
export type StorageKeyUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* The data used to update StorageKeys.
|
|
*/
|
|
data: Prisma.XOR<Prisma.StorageKeyUpdateManyMutationInput, Prisma.StorageKeyUncheckedUpdateManyInput>
|
|
/**
|
|
* Filter which StorageKeys to update
|
|
*/
|
|
where?: Prisma.StorageKeyWhereInput
|
|
/**
|
|
* Limit how many StorageKeys to update.
|
|
*/
|
|
limit?: number
|
|
}
|
|
|
|
/**
|
|
* StorageKey updateManyAndReturn
|
|
*/
|
|
export type StorageKeyUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the StorageKey
|
|
*/
|
|
select?: Prisma.StorageKeySelectUpdateManyAndReturn<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the StorageKey
|
|
*/
|
|
omit?: Prisma.StorageKeyOmit<ExtArgs> | null
|
|
/**
|
|
* The data used to update StorageKeys.
|
|
*/
|
|
data: Prisma.XOR<Prisma.StorageKeyUpdateManyMutationInput, Prisma.StorageKeyUncheckedUpdateManyInput>
|
|
/**
|
|
* Filter which StorageKeys to update
|
|
*/
|
|
where?: Prisma.StorageKeyWhereInput
|
|
/**
|
|
* Limit how many StorageKeys to update.
|
|
*/
|
|
limit?: number
|
|
}
|
|
|
|
/**
|
|
* StorageKey upsert
|
|
*/
|
|
export type StorageKeyUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the StorageKey
|
|
*/
|
|
select?: Prisma.StorageKeySelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the StorageKey
|
|
*/
|
|
omit?: Prisma.StorageKeyOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.StorageKeyInclude<ExtArgs> | null
|
|
/**
|
|
* The filter to search for the StorageKey to update in case it exists.
|
|
*/
|
|
where: Prisma.StorageKeyWhereUniqueInput
|
|
/**
|
|
* In case the StorageKey found by the `where` argument doesn't exist, create a new StorageKey with this data.
|
|
*/
|
|
create: Prisma.XOR<Prisma.StorageKeyCreateInput, Prisma.StorageKeyUncheckedCreateInput>
|
|
/**
|
|
* In case the StorageKey was found with the provided `where` argument, update it with this data.
|
|
*/
|
|
update: Prisma.XOR<Prisma.StorageKeyUpdateInput, Prisma.StorageKeyUncheckedUpdateInput>
|
|
}
|
|
|
|
/**
|
|
* StorageKey delete
|
|
*/
|
|
export type StorageKeyDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the StorageKey
|
|
*/
|
|
select?: Prisma.StorageKeySelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the StorageKey
|
|
*/
|
|
omit?: Prisma.StorageKeyOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.StorageKeyInclude<ExtArgs> | null
|
|
/**
|
|
* Filter which StorageKey to delete.
|
|
*/
|
|
where: Prisma.StorageKeyWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* StorageKey deleteMany
|
|
*/
|
|
export type StorageKeyDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Filter which StorageKeys to delete
|
|
*/
|
|
where?: Prisma.StorageKeyWhereInput
|
|
/**
|
|
* Limit how many StorageKeys to delete.
|
|
*/
|
|
limit?: number
|
|
}
|
|
|
|
/**
|
|
* StorageKey.assets
|
|
*/
|
|
export type StorageKey$assetsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the Asset
|
|
*/
|
|
select?: Prisma.AssetSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the Asset
|
|
*/
|
|
omit?: Prisma.AssetOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.AssetInclude<ExtArgs> | null
|
|
where?: Prisma.AssetWhereInput
|
|
orderBy?: Prisma.AssetOrderByWithRelationInput | Prisma.AssetOrderByWithRelationInput[]
|
|
cursor?: Prisma.AssetWhereUniqueInput
|
|
take?: number
|
|
skip?: number
|
|
distinct?: Prisma.AssetScalarFieldEnum | Prisma.AssetScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* StorageKey without action
|
|
*/
|
|
export type StorageKeyDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the StorageKey
|
|
*/
|
|
select?: Prisma.StorageKeySelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the StorageKey
|
|
*/
|
|
omit?: Prisma.StorageKeyOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.StorageKeyInclude<ExtArgs> | null
|
|
}
|