1731 lines
68 KiB
TypeScript
1731 lines
68 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 `Credential` 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 Credential
|
|
*
|
|
*/
|
|
export type CredentialModel = runtime.Types.Result.DefaultSelection<Prisma.$CredentialPayload>
|
|
|
|
export type AggregateCredential = {
|
|
_count: CredentialCountAggregateOutputType | null
|
|
_min: CredentialMinAggregateOutputType | null
|
|
_max: CredentialMaxAggregateOutputType | null
|
|
}
|
|
|
|
export type CredentialMinAggregateOutputType = {
|
|
id: string | null
|
|
name: string | null
|
|
notes: string | null
|
|
typeId: string | null
|
|
companyId: string | null
|
|
createdAt: Date | null
|
|
updatedAt: Date | null
|
|
}
|
|
|
|
export type CredentialMaxAggregateOutputType = {
|
|
id: string | null
|
|
name: string | null
|
|
notes: string | null
|
|
typeId: string | null
|
|
companyId: string | null
|
|
createdAt: Date | null
|
|
updatedAt: Date | null
|
|
}
|
|
|
|
export type CredentialCountAggregateOutputType = {
|
|
id: number
|
|
name: number
|
|
notes: number
|
|
typeId: number
|
|
fields: number
|
|
companyId: number
|
|
createdAt: number
|
|
updatedAt: number
|
|
_all: number
|
|
}
|
|
|
|
|
|
export type CredentialMinAggregateInputType = {
|
|
id?: true
|
|
name?: true
|
|
notes?: true
|
|
typeId?: true
|
|
companyId?: true
|
|
createdAt?: true
|
|
updatedAt?: true
|
|
}
|
|
|
|
export type CredentialMaxAggregateInputType = {
|
|
id?: true
|
|
name?: true
|
|
notes?: true
|
|
typeId?: true
|
|
companyId?: true
|
|
createdAt?: true
|
|
updatedAt?: true
|
|
}
|
|
|
|
export type CredentialCountAggregateInputType = {
|
|
id?: true
|
|
name?: true
|
|
notes?: true
|
|
typeId?: true
|
|
fields?: true
|
|
companyId?: true
|
|
createdAt?: true
|
|
updatedAt?: true
|
|
_all?: true
|
|
}
|
|
|
|
export type CredentialAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Filter which Credential to aggregate.
|
|
*/
|
|
where?: Prisma.CredentialWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of Credentials to fetch.
|
|
*/
|
|
orderBy?: Prisma.CredentialOrderByWithRelationInput | Prisma.CredentialOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the start position
|
|
*/
|
|
cursor?: Prisma.CredentialWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` Credentials 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` Credentials.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Count returned Credentials
|
|
**/
|
|
_count?: true | CredentialCountAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to find the minimum value
|
|
**/
|
|
_min?: CredentialMinAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to find the maximum value
|
|
**/
|
|
_max?: CredentialMaxAggregateInputType
|
|
}
|
|
|
|
export type GetCredentialAggregateType<T extends CredentialAggregateArgs> = {
|
|
[P in keyof T & keyof AggregateCredential]: P extends '_count' | 'count'
|
|
? T[P] extends true
|
|
? number
|
|
: Prisma.GetScalarType<T[P], AggregateCredential[P]>
|
|
: Prisma.GetScalarType<T[P], AggregateCredential[P]>
|
|
}
|
|
|
|
|
|
|
|
|
|
export type CredentialGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
where?: Prisma.CredentialWhereInput
|
|
orderBy?: Prisma.CredentialOrderByWithAggregationInput | Prisma.CredentialOrderByWithAggregationInput[]
|
|
by: Prisma.CredentialScalarFieldEnum[] | Prisma.CredentialScalarFieldEnum
|
|
having?: Prisma.CredentialScalarWhereWithAggregatesInput
|
|
take?: number
|
|
skip?: number
|
|
_count?: CredentialCountAggregateInputType | true
|
|
_min?: CredentialMinAggregateInputType
|
|
_max?: CredentialMaxAggregateInputType
|
|
}
|
|
|
|
export type CredentialGroupByOutputType = {
|
|
id: string
|
|
name: string
|
|
notes: string | null
|
|
typeId: string
|
|
fields: runtime.JsonValue
|
|
companyId: string
|
|
createdAt: Date
|
|
updatedAt: Date
|
|
_count: CredentialCountAggregateOutputType | null
|
|
_min: CredentialMinAggregateOutputType | null
|
|
_max: CredentialMaxAggregateOutputType | null
|
|
}
|
|
|
|
type GetCredentialGroupByPayload<T extends CredentialGroupByArgs> = Prisma.PrismaPromise<
|
|
Array<
|
|
Prisma.PickEnumerable<CredentialGroupByOutputType, T['by']> &
|
|
{
|
|
[P in ((keyof T) & (keyof CredentialGroupByOutputType))]: P extends '_count'
|
|
? T[P] extends boolean
|
|
? number
|
|
: Prisma.GetScalarType<T[P], CredentialGroupByOutputType[P]>
|
|
: Prisma.GetScalarType<T[P], CredentialGroupByOutputType[P]>
|
|
}
|
|
>
|
|
>
|
|
|
|
|
|
|
|
export type CredentialWhereInput = {
|
|
AND?: Prisma.CredentialWhereInput | Prisma.CredentialWhereInput[]
|
|
OR?: Prisma.CredentialWhereInput[]
|
|
NOT?: Prisma.CredentialWhereInput | Prisma.CredentialWhereInput[]
|
|
id?: Prisma.StringFilter<"Credential"> | string
|
|
name?: Prisma.StringFilter<"Credential"> | string
|
|
notes?: Prisma.StringNullableFilter<"Credential"> | string | null
|
|
typeId?: Prisma.StringFilter<"Credential"> | string
|
|
fields?: Prisma.JsonFilter<"Credential">
|
|
companyId?: Prisma.StringFilter<"Credential"> | string
|
|
createdAt?: Prisma.DateTimeFilter<"Credential"> | Date | string
|
|
updatedAt?: Prisma.DateTimeFilter<"Credential"> | Date | string
|
|
type?: Prisma.XOR<Prisma.CredentialTypeScalarRelationFilter, Prisma.CredentialTypeWhereInput>
|
|
company?: Prisma.XOR<Prisma.CompanyScalarRelationFilter, Prisma.CompanyWhereInput>
|
|
securevalues?: Prisma.SecureValueListRelationFilter
|
|
}
|
|
|
|
export type CredentialOrderByWithRelationInput = {
|
|
id?: Prisma.SortOrder
|
|
name?: Prisma.SortOrder
|
|
notes?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
typeId?: Prisma.SortOrder
|
|
fields?: Prisma.SortOrder
|
|
companyId?: Prisma.SortOrder
|
|
createdAt?: Prisma.SortOrder
|
|
updatedAt?: Prisma.SortOrder
|
|
type?: Prisma.CredentialTypeOrderByWithRelationInput
|
|
company?: Prisma.CompanyOrderByWithRelationInput
|
|
securevalues?: Prisma.SecureValueOrderByRelationAggregateInput
|
|
}
|
|
|
|
export type CredentialWhereUniqueInput = Prisma.AtLeast<{
|
|
id?: string
|
|
AND?: Prisma.CredentialWhereInput | Prisma.CredentialWhereInput[]
|
|
OR?: Prisma.CredentialWhereInput[]
|
|
NOT?: Prisma.CredentialWhereInput | Prisma.CredentialWhereInput[]
|
|
name?: Prisma.StringFilter<"Credential"> | string
|
|
notes?: Prisma.StringNullableFilter<"Credential"> | string | null
|
|
typeId?: Prisma.StringFilter<"Credential"> | string
|
|
fields?: Prisma.JsonFilter<"Credential">
|
|
companyId?: Prisma.StringFilter<"Credential"> | string
|
|
createdAt?: Prisma.DateTimeFilter<"Credential"> | Date | string
|
|
updatedAt?: Prisma.DateTimeFilter<"Credential"> | Date | string
|
|
type?: Prisma.XOR<Prisma.CredentialTypeScalarRelationFilter, Prisma.CredentialTypeWhereInput>
|
|
company?: Prisma.XOR<Prisma.CompanyScalarRelationFilter, Prisma.CompanyWhereInput>
|
|
securevalues?: Prisma.SecureValueListRelationFilter
|
|
}, "id">
|
|
|
|
export type CredentialOrderByWithAggregationInput = {
|
|
id?: Prisma.SortOrder
|
|
name?: Prisma.SortOrder
|
|
notes?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
typeId?: Prisma.SortOrder
|
|
fields?: Prisma.SortOrder
|
|
companyId?: Prisma.SortOrder
|
|
createdAt?: Prisma.SortOrder
|
|
updatedAt?: Prisma.SortOrder
|
|
_count?: Prisma.CredentialCountOrderByAggregateInput
|
|
_max?: Prisma.CredentialMaxOrderByAggregateInput
|
|
_min?: Prisma.CredentialMinOrderByAggregateInput
|
|
}
|
|
|
|
export type CredentialScalarWhereWithAggregatesInput = {
|
|
AND?: Prisma.CredentialScalarWhereWithAggregatesInput | Prisma.CredentialScalarWhereWithAggregatesInput[]
|
|
OR?: Prisma.CredentialScalarWhereWithAggregatesInput[]
|
|
NOT?: Prisma.CredentialScalarWhereWithAggregatesInput | Prisma.CredentialScalarWhereWithAggregatesInput[]
|
|
id?: Prisma.StringWithAggregatesFilter<"Credential"> | string
|
|
name?: Prisma.StringWithAggregatesFilter<"Credential"> | string
|
|
notes?: Prisma.StringNullableWithAggregatesFilter<"Credential"> | string | null
|
|
typeId?: Prisma.StringWithAggregatesFilter<"Credential"> | string
|
|
fields?: Prisma.JsonWithAggregatesFilter<"Credential">
|
|
companyId?: Prisma.StringWithAggregatesFilter<"Credential"> | string
|
|
createdAt?: Prisma.DateTimeWithAggregatesFilter<"Credential"> | Date | string
|
|
updatedAt?: Prisma.DateTimeWithAggregatesFilter<"Credential"> | Date | string
|
|
}
|
|
|
|
export type CredentialCreateInput = {
|
|
id?: string
|
|
name: string
|
|
notes?: string | null
|
|
fields: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
type: Prisma.CredentialTypeCreateNestedOneWithoutCredentialsInput
|
|
company: Prisma.CompanyCreateNestedOneWithoutCredentialsInput
|
|
securevalues?: Prisma.SecureValueCreateNestedManyWithoutCredentialInput
|
|
}
|
|
|
|
export type CredentialUncheckedCreateInput = {
|
|
id?: string
|
|
name: string
|
|
notes?: string | null
|
|
typeId: string
|
|
fields: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
companyId: string
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
securevalues?: Prisma.SecureValueUncheckedCreateNestedManyWithoutCredentialInput
|
|
}
|
|
|
|
export type CredentialUpdateInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
name?: Prisma.StringFieldUpdateOperationsInput | string
|
|
notes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
fields?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
type?: Prisma.CredentialTypeUpdateOneRequiredWithoutCredentialsNestedInput
|
|
company?: Prisma.CompanyUpdateOneRequiredWithoutCredentialsNestedInput
|
|
securevalues?: Prisma.SecureValueUpdateManyWithoutCredentialNestedInput
|
|
}
|
|
|
|
export type CredentialUncheckedUpdateInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
name?: Prisma.StringFieldUpdateOperationsInput | string
|
|
notes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
typeId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
fields?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
companyId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
securevalues?: Prisma.SecureValueUncheckedUpdateManyWithoutCredentialNestedInput
|
|
}
|
|
|
|
export type CredentialCreateManyInput = {
|
|
id?: string
|
|
name: string
|
|
notes?: string | null
|
|
typeId: string
|
|
fields: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
companyId: string
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
}
|
|
|
|
export type CredentialUpdateManyMutationInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
name?: Prisma.StringFieldUpdateOperationsInput | string
|
|
notes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
fields?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
}
|
|
|
|
export type CredentialUncheckedUpdateManyInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
name?: Prisma.StringFieldUpdateOperationsInput | string
|
|
notes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
typeId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
fields?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
companyId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
}
|
|
|
|
export type CredentialListRelationFilter = {
|
|
every?: Prisma.CredentialWhereInput
|
|
some?: Prisma.CredentialWhereInput
|
|
none?: Prisma.CredentialWhereInput
|
|
}
|
|
|
|
export type CredentialOrderByRelationAggregateInput = {
|
|
_count?: Prisma.SortOrder
|
|
}
|
|
|
|
export type CredentialScalarRelationFilter = {
|
|
is?: Prisma.CredentialWhereInput
|
|
isNot?: Prisma.CredentialWhereInput
|
|
}
|
|
|
|
export type CredentialCountOrderByAggregateInput = {
|
|
id?: Prisma.SortOrder
|
|
name?: Prisma.SortOrder
|
|
notes?: Prisma.SortOrder
|
|
typeId?: Prisma.SortOrder
|
|
fields?: Prisma.SortOrder
|
|
companyId?: Prisma.SortOrder
|
|
createdAt?: Prisma.SortOrder
|
|
updatedAt?: Prisma.SortOrder
|
|
}
|
|
|
|
export type CredentialMaxOrderByAggregateInput = {
|
|
id?: Prisma.SortOrder
|
|
name?: Prisma.SortOrder
|
|
notes?: Prisma.SortOrder
|
|
typeId?: Prisma.SortOrder
|
|
companyId?: Prisma.SortOrder
|
|
createdAt?: Prisma.SortOrder
|
|
updatedAt?: Prisma.SortOrder
|
|
}
|
|
|
|
export type CredentialMinOrderByAggregateInput = {
|
|
id?: Prisma.SortOrder
|
|
name?: Prisma.SortOrder
|
|
notes?: Prisma.SortOrder
|
|
typeId?: Prisma.SortOrder
|
|
companyId?: Prisma.SortOrder
|
|
createdAt?: Prisma.SortOrder
|
|
updatedAt?: Prisma.SortOrder
|
|
}
|
|
|
|
export type CredentialCreateNestedManyWithoutCompanyInput = {
|
|
create?: Prisma.XOR<Prisma.CredentialCreateWithoutCompanyInput, Prisma.CredentialUncheckedCreateWithoutCompanyInput> | Prisma.CredentialCreateWithoutCompanyInput[] | Prisma.CredentialUncheckedCreateWithoutCompanyInput[]
|
|
connectOrCreate?: Prisma.CredentialCreateOrConnectWithoutCompanyInput | Prisma.CredentialCreateOrConnectWithoutCompanyInput[]
|
|
createMany?: Prisma.CredentialCreateManyCompanyInputEnvelope
|
|
connect?: Prisma.CredentialWhereUniqueInput | Prisma.CredentialWhereUniqueInput[]
|
|
}
|
|
|
|
export type CredentialUncheckedCreateNestedManyWithoutCompanyInput = {
|
|
create?: Prisma.XOR<Prisma.CredentialCreateWithoutCompanyInput, Prisma.CredentialUncheckedCreateWithoutCompanyInput> | Prisma.CredentialCreateWithoutCompanyInput[] | Prisma.CredentialUncheckedCreateWithoutCompanyInput[]
|
|
connectOrCreate?: Prisma.CredentialCreateOrConnectWithoutCompanyInput | Prisma.CredentialCreateOrConnectWithoutCompanyInput[]
|
|
createMany?: Prisma.CredentialCreateManyCompanyInputEnvelope
|
|
connect?: Prisma.CredentialWhereUniqueInput | Prisma.CredentialWhereUniqueInput[]
|
|
}
|
|
|
|
export type CredentialUpdateManyWithoutCompanyNestedInput = {
|
|
create?: Prisma.XOR<Prisma.CredentialCreateWithoutCompanyInput, Prisma.CredentialUncheckedCreateWithoutCompanyInput> | Prisma.CredentialCreateWithoutCompanyInput[] | Prisma.CredentialUncheckedCreateWithoutCompanyInput[]
|
|
connectOrCreate?: Prisma.CredentialCreateOrConnectWithoutCompanyInput | Prisma.CredentialCreateOrConnectWithoutCompanyInput[]
|
|
upsert?: Prisma.CredentialUpsertWithWhereUniqueWithoutCompanyInput | Prisma.CredentialUpsertWithWhereUniqueWithoutCompanyInput[]
|
|
createMany?: Prisma.CredentialCreateManyCompanyInputEnvelope
|
|
set?: Prisma.CredentialWhereUniqueInput | Prisma.CredentialWhereUniqueInput[]
|
|
disconnect?: Prisma.CredentialWhereUniqueInput | Prisma.CredentialWhereUniqueInput[]
|
|
delete?: Prisma.CredentialWhereUniqueInput | Prisma.CredentialWhereUniqueInput[]
|
|
connect?: Prisma.CredentialWhereUniqueInput | Prisma.CredentialWhereUniqueInput[]
|
|
update?: Prisma.CredentialUpdateWithWhereUniqueWithoutCompanyInput | Prisma.CredentialUpdateWithWhereUniqueWithoutCompanyInput[]
|
|
updateMany?: Prisma.CredentialUpdateManyWithWhereWithoutCompanyInput | Prisma.CredentialUpdateManyWithWhereWithoutCompanyInput[]
|
|
deleteMany?: Prisma.CredentialScalarWhereInput | Prisma.CredentialScalarWhereInput[]
|
|
}
|
|
|
|
export type CredentialUncheckedUpdateManyWithoutCompanyNestedInput = {
|
|
create?: Prisma.XOR<Prisma.CredentialCreateWithoutCompanyInput, Prisma.CredentialUncheckedCreateWithoutCompanyInput> | Prisma.CredentialCreateWithoutCompanyInput[] | Prisma.CredentialUncheckedCreateWithoutCompanyInput[]
|
|
connectOrCreate?: Prisma.CredentialCreateOrConnectWithoutCompanyInput | Prisma.CredentialCreateOrConnectWithoutCompanyInput[]
|
|
upsert?: Prisma.CredentialUpsertWithWhereUniqueWithoutCompanyInput | Prisma.CredentialUpsertWithWhereUniqueWithoutCompanyInput[]
|
|
createMany?: Prisma.CredentialCreateManyCompanyInputEnvelope
|
|
set?: Prisma.CredentialWhereUniqueInput | Prisma.CredentialWhereUniqueInput[]
|
|
disconnect?: Prisma.CredentialWhereUniqueInput | Prisma.CredentialWhereUniqueInput[]
|
|
delete?: Prisma.CredentialWhereUniqueInput | Prisma.CredentialWhereUniqueInput[]
|
|
connect?: Prisma.CredentialWhereUniqueInput | Prisma.CredentialWhereUniqueInput[]
|
|
update?: Prisma.CredentialUpdateWithWhereUniqueWithoutCompanyInput | Prisma.CredentialUpdateWithWhereUniqueWithoutCompanyInput[]
|
|
updateMany?: Prisma.CredentialUpdateManyWithWhereWithoutCompanyInput | Prisma.CredentialUpdateManyWithWhereWithoutCompanyInput[]
|
|
deleteMany?: Prisma.CredentialScalarWhereInput | Prisma.CredentialScalarWhereInput[]
|
|
}
|
|
|
|
export type CredentialCreateNestedManyWithoutTypeInput = {
|
|
create?: Prisma.XOR<Prisma.CredentialCreateWithoutTypeInput, Prisma.CredentialUncheckedCreateWithoutTypeInput> | Prisma.CredentialCreateWithoutTypeInput[] | Prisma.CredentialUncheckedCreateWithoutTypeInput[]
|
|
connectOrCreate?: Prisma.CredentialCreateOrConnectWithoutTypeInput | Prisma.CredentialCreateOrConnectWithoutTypeInput[]
|
|
createMany?: Prisma.CredentialCreateManyTypeInputEnvelope
|
|
connect?: Prisma.CredentialWhereUniqueInput | Prisma.CredentialWhereUniqueInput[]
|
|
}
|
|
|
|
export type CredentialUncheckedCreateNestedManyWithoutTypeInput = {
|
|
create?: Prisma.XOR<Prisma.CredentialCreateWithoutTypeInput, Prisma.CredentialUncheckedCreateWithoutTypeInput> | Prisma.CredentialCreateWithoutTypeInput[] | Prisma.CredentialUncheckedCreateWithoutTypeInput[]
|
|
connectOrCreate?: Prisma.CredentialCreateOrConnectWithoutTypeInput | Prisma.CredentialCreateOrConnectWithoutTypeInput[]
|
|
createMany?: Prisma.CredentialCreateManyTypeInputEnvelope
|
|
connect?: Prisma.CredentialWhereUniqueInput | Prisma.CredentialWhereUniqueInput[]
|
|
}
|
|
|
|
export type CredentialUpdateManyWithoutTypeNestedInput = {
|
|
create?: Prisma.XOR<Prisma.CredentialCreateWithoutTypeInput, Prisma.CredentialUncheckedCreateWithoutTypeInput> | Prisma.CredentialCreateWithoutTypeInput[] | Prisma.CredentialUncheckedCreateWithoutTypeInput[]
|
|
connectOrCreate?: Prisma.CredentialCreateOrConnectWithoutTypeInput | Prisma.CredentialCreateOrConnectWithoutTypeInput[]
|
|
upsert?: Prisma.CredentialUpsertWithWhereUniqueWithoutTypeInput | Prisma.CredentialUpsertWithWhereUniqueWithoutTypeInput[]
|
|
createMany?: Prisma.CredentialCreateManyTypeInputEnvelope
|
|
set?: Prisma.CredentialWhereUniqueInput | Prisma.CredentialWhereUniqueInput[]
|
|
disconnect?: Prisma.CredentialWhereUniqueInput | Prisma.CredentialWhereUniqueInput[]
|
|
delete?: Prisma.CredentialWhereUniqueInput | Prisma.CredentialWhereUniqueInput[]
|
|
connect?: Prisma.CredentialWhereUniqueInput | Prisma.CredentialWhereUniqueInput[]
|
|
update?: Prisma.CredentialUpdateWithWhereUniqueWithoutTypeInput | Prisma.CredentialUpdateWithWhereUniqueWithoutTypeInput[]
|
|
updateMany?: Prisma.CredentialUpdateManyWithWhereWithoutTypeInput | Prisma.CredentialUpdateManyWithWhereWithoutTypeInput[]
|
|
deleteMany?: Prisma.CredentialScalarWhereInput | Prisma.CredentialScalarWhereInput[]
|
|
}
|
|
|
|
export type CredentialUncheckedUpdateManyWithoutTypeNestedInput = {
|
|
create?: Prisma.XOR<Prisma.CredentialCreateWithoutTypeInput, Prisma.CredentialUncheckedCreateWithoutTypeInput> | Prisma.CredentialCreateWithoutTypeInput[] | Prisma.CredentialUncheckedCreateWithoutTypeInput[]
|
|
connectOrCreate?: Prisma.CredentialCreateOrConnectWithoutTypeInput | Prisma.CredentialCreateOrConnectWithoutTypeInput[]
|
|
upsert?: Prisma.CredentialUpsertWithWhereUniqueWithoutTypeInput | Prisma.CredentialUpsertWithWhereUniqueWithoutTypeInput[]
|
|
createMany?: Prisma.CredentialCreateManyTypeInputEnvelope
|
|
set?: Prisma.CredentialWhereUniqueInput | Prisma.CredentialWhereUniqueInput[]
|
|
disconnect?: Prisma.CredentialWhereUniqueInput | Prisma.CredentialWhereUniqueInput[]
|
|
delete?: Prisma.CredentialWhereUniqueInput | Prisma.CredentialWhereUniqueInput[]
|
|
connect?: Prisma.CredentialWhereUniqueInput | Prisma.CredentialWhereUniqueInput[]
|
|
update?: Prisma.CredentialUpdateWithWhereUniqueWithoutTypeInput | Prisma.CredentialUpdateWithWhereUniqueWithoutTypeInput[]
|
|
updateMany?: Prisma.CredentialUpdateManyWithWhereWithoutTypeInput | Prisma.CredentialUpdateManyWithWhereWithoutTypeInput[]
|
|
deleteMany?: Prisma.CredentialScalarWhereInput | Prisma.CredentialScalarWhereInput[]
|
|
}
|
|
|
|
export type CredentialCreateNestedOneWithoutSecurevaluesInput = {
|
|
create?: Prisma.XOR<Prisma.CredentialCreateWithoutSecurevaluesInput, Prisma.CredentialUncheckedCreateWithoutSecurevaluesInput>
|
|
connectOrCreate?: Prisma.CredentialCreateOrConnectWithoutSecurevaluesInput
|
|
connect?: Prisma.CredentialWhereUniqueInput
|
|
}
|
|
|
|
export type CredentialUpdateOneRequiredWithoutSecurevaluesNestedInput = {
|
|
create?: Prisma.XOR<Prisma.CredentialCreateWithoutSecurevaluesInput, Prisma.CredentialUncheckedCreateWithoutSecurevaluesInput>
|
|
connectOrCreate?: Prisma.CredentialCreateOrConnectWithoutSecurevaluesInput
|
|
upsert?: Prisma.CredentialUpsertWithoutSecurevaluesInput
|
|
connect?: Prisma.CredentialWhereUniqueInput
|
|
update?: Prisma.XOR<Prisma.XOR<Prisma.CredentialUpdateToOneWithWhereWithoutSecurevaluesInput, Prisma.CredentialUpdateWithoutSecurevaluesInput>, Prisma.CredentialUncheckedUpdateWithoutSecurevaluesInput>
|
|
}
|
|
|
|
export type CredentialCreateWithoutCompanyInput = {
|
|
id?: string
|
|
name: string
|
|
notes?: string | null
|
|
fields: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
type: Prisma.CredentialTypeCreateNestedOneWithoutCredentialsInput
|
|
securevalues?: Prisma.SecureValueCreateNestedManyWithoutCredentialInput
|
|
}
|
|
|
|
export type CredentialUncheckedCreateWithoutCompanyInput = {
|
|
id?: string
|
|
name: string
|
|
notes?: string | null
|
|
typeId: string
|
|
fields: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
securevalues?: Prisma.SecureValueUncheckedCreateNestedManyWithoutCredentialInput
|
|
}
|
|
|
|
export type CredentialCreateOrConnectWithoutCompanyInput = {
|
|
where: Prisma.CredentialWhereUniqueInput
|
|
create: Prisma.XOR<Prisma.CredentialCreateWithoutCompanyInput, Prisma.CredentialUncheckedCreateWithoutCompanyInput>
|
|
}
|
|
|
|
export type CredentialCreateManyCompanyInputEnvelope = {
|
|
data: Prisma.CredentialCreateManyCompanyInput | Prisma.CredentialCreateManyCompanyInput[]
|
|
skipDuplicates?: boolean
|
|
}
|
|
|
|
export type CredentialUpsertWithWhereUniqueWithoutCompanyInput = {
|
|
where: Prisma.CredentialWhereUniqueInput
|
|
update: Prisma.XOR<Prisma.CredentialUpdateWithoutCompanyInput, Prisma.CredentialUncheckedUpdateWithoutCompanyInput>
|
|
create: Prisma.XOR<Prisma.CredentialCreateWithoutCompanyInput, Prisma.CredentialUncheckedCreateWithoutCompanyInput>
|
|
}
|
|
|
|
export type CredentialUpdateWithWhereUniqueWithoutCompanyInput = {
|
|
where: Prisma.CredentialWhereUniqueInput
|
|
data: Prisma.XOR<Prisma.CredentialUpdateWithoutCompanyInput, Prisma.CredentialUncheckedUpdateWithoutCompanyInput>
|
|
}
|
|
|
|
export type CredentialUpdateManyWithWhereWithoutCompanyInput = {
|
|
where: Prisma.CredentialScalarWhereInput
|
|
data: Prisma.XOR<Prisma.CredentialUpdateManyMutationInput, Prisma.CredentialUncheckedUpdateManyWithoutCompanyInput>
|
|
}
|
|
|
|
export type CredentialScalarWhereInput = {
|
|
AND?: Prisma.CredentialScalarWhereInput | Prisma.CredentialScalarWhereInput[]
|
|
OR?: Prisma.CredentialScalarWhereInput[]
|
|
NOT?: Prisma.CredentialScalarWhereInput | Prisma.CredentialScalarWhereInput[]
|
|
id?: Prisma.StringFilter<"Credential"> | string
|
|
name?: Prisma.StringFilter<"Credential"> | string
|
|
notes?: Prisma.StringNullableFilter<"Credential"> | string | null
|
|
typeId?: Prisma.StringFilter<"Credential"> | string
|
|
fields?: Prisma.JsonFilter<"Credential">
|
|
companyId?: Prisma.StringFilter<"Credential"> | string
|
|
createdAt?: Prisma.DateTimeFilter<"Credential"> | Date | string
|
|
updatedAt?: Prisma.DateTimeFilter<"Credential"> | Date | string
|
|
}
|
|
|
|
export type CredentialCreateWithoutTypeInput = {
|
|
id?: string
|
|
name: string
|
|
notes?: string | null
|
|
fields: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
company: Prisma.CompanyCreateNestedOneWithoutCredentialsInput
|
|
securevalues?: Prisma.SecureValueCreateNestedManyWithoutCredentialInput
|
|
}
|
|
|
|
export type CredentialUncheckedCreateWithoutTypeInput = {
|
|
id?: string
|
|
name: string
|
|
notes?: string | null
|
|
fields: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
companyId: string
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
securevalues?: Prisma.SecureValueUncheckedCreateNestedManyWithoutCredentialInput
|
|
}
|
|
|
|
export type CredentialCreateOrConnectWithoutTypeInput = {
|
|
where: Prisma.CredentialWhereUniqueInput
|
|
create: Prisma.XOR<Prisma.CredentialCreateWithoutTypeInput, Prisma.CredentialUncheckedCreateWithoutTypeInput>
|
|
}
|
|
|
|
export type CredentialCreateManyTypeInputEnvelope = {
|
|
data: Prisma.CredentialCreateManyTypeInput | Prisma.CredentialCreateManyTypeInput[]
|
|
skipDuplicates?: boolean
|
|
}
|
|
|
|
export type CredentialUpsertWithWhereUniqueWithoutTypeInput = {
|
|
where: Prisma.CredentialWhereUniqueInput
|
|
update: Prisma.XOR<Prisma.CredentialUpdateWithoutTypeInput, Prisma.CredentialUncheckedUpdateWithoutTypeInput>
|
|
create: Prisma.XOR<Prisma.CredentialCreateWithoutTypeInput, Prisma.CredentialUncheckedCreateWithoutTypeInput>
|
|
}
|
|
|
|
export type CredentialUpdateWithWhereUniqueWithoutTypeInput = {
|
|
where: Prisma.CredentialWhereUniqueInput
|
|
data: Prisma.XOR<Prisma.CredentialUpdateWithoutTypeInput, Prisma.CredentialUncheckedUpdateWithoutTypeInput>
|
|
}
|
|
|
|
export type CredentialUpdateManyWithWhereWithoutTypeInput = {
|
|
where: Prisma.CredentialScalarWhereInput
|
|
data: Prisma.XOR<Prisma.CredentialUpdateManyMutationInput, Prisma.CredentialUncheckedUpdateManyWithoutTypeInput>
|
|
}
|
|
|
|
export type CredentialCreateWithoutSecurevaluesInput = {
|
|
id?: string
|
|
name: string
|
|
notes?: string | null
|
|
fields: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
type: Prisma.CredentialTypeCreateNestedOneWithoutCredentialsInput
|
|
company: Prisma.CompanyCreateNestedOneWithoutCredentialsInput
|
|
}
|
|
|
|
export type CredentialUncheckedCreateWithoutSecurevaluesInput = {
|
|
id?: string
|
|
name: string
|
|
notes?: string | null
|
|
typeId: string
|
|
fields: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
companyId: string
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
}
|
|
|
|
export type CredentialCreateOrConnectWithoutSecurevaluesInput = {
|
|
where: Prisma.CredentialWhereUniqueInput
|
|
create: Prisma.XOR<Prisma.CredentialCreateWithoutSecurevaluesInput, Prisma.CredentialUncheckedCreateWithoutSecurevaluesInput>
|
|
}
|
|
|
|
export type CredentialUpsertWithoutSecurevaluesInput = {
|
|
update: Prisma.XOR<Prisma.CredentialUpdateWithoutSecurevaluesInput, Prisma.CredentialUncheckedUpdateWithoutSecurevaluesInput>
|
|
create: Prisma.XOR<Prisma.CredentialCreateWithoutSecurevaluesInput, Prisma.CredentialUncheckedCreateWithoutSecurevaluesInput>
|
|
where?: Prisma.CredentialWhereInput
|
|
}
|
|
|
|
export type CredentialUpdateToOneWithWhereWithoutSecurevaluesInput = {
|
|
where?: Prisma.CredentialWhereInput
|
|
data: Prisma.XOR<Prisma.CredentialUpdateWithoutSecurevaluesInput, Prisma.CredentialUncheckedUpdateWithoutSecurevaluesInput>
|
|
}
|
|
|
|
export type CredentialUpdateWithoutSecurevaluesInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
name?: Prisma.StringFieldUpdateOperationsInput | string
|
|
notes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
fields?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
type?: Prisma.CredentialTypeUpdateOneRequiredWithoutCredentialsNestedInput
|
|
company?: Prisma.CompanyUpdateOneRequiredWithoutCredentialsNestedInput
|
|
}
|
|
|
|
export type CredentialUncheckedUpdateWithoutSecurevaluesInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
name?: Prisma.StringFieldUpdateOperationsInput | string
|
|
notes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
typeId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
fields?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
companyId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
}
|
|
|
|
export type CredentialCreateManyCompanyInput = {
|
|
id?: string
|
|
name: string
|
|
notes?: string | null
|
|
typeId: string
|
|
fields: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
}
|
|
|
|
export type CredentialUpdateWithoutCompanyInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
name?: Prisma.StringFieldUpdateOperationsInput | string
|
|
notes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
fields?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
type?: Prisma.CredentialTypeUpdateOneRequiredWithoutCredentialsNestedInput
|
|
securevalues?: Prisma.SecureValueUpdateManyWithoutCredentialNestedInput
|
|
}
|
|
|
|
export type CredentialUncheckedUpdateWithoutCompanyInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
name?: Prisma.StringFieldUpdateOperationsInput | string
|
|
notes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
typeId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
fields?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
securevalues?: Prisma.SecureValueUncheckedUpdateManyWithoutCredentialNestedInput
|
|
}
|
|
|
|
export type CredentialUncheckedUpdateManyWithoutCompanyInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
name?: Prisma.StringFieldUpdateOperationsInput | string
|
|
notes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
typeId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
fields?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
}
|
|
|
|
export type CredentialCreateManyTypeInput = {
|
|
id?: string
|
|
name: string
|
|
notes?: string | null
|
|
fields: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
companyId: string
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
}
|
|
|
|
export type CredentialUpdateWithoutTypeInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
name?: Prisma.StringFieldUpdateOperationsInput | string
|
|
notes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
fields?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
company?: Prisma.CompanyUpdateOneRequiredWithoutCredentialsNestedInput
|
|
securevalues?: Prisma.SecureValueUpdateManyWithoutCredentialNestedInput
|
|
}
|
|
|
|
export type CredentialUncheckedUpdateWithoutTypeInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
name?: Prisma.StringFieldUpdateOperationsInput | string
|
|
notes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
fields?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
companyId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
securevalues?: Prisma.SecureValueUncheckedUpdateManyWithoutCredentialNestedInput
|
|
}
|
|
|
|
export type CredentialUncheckedUpdateManyWithoutTypeInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
name?: Prisma.StringFieldUpdateOperationsInput | string
|
|
notes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
fields?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
companyId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
}
|
|
|
|
|
|
/**
|
|
* Count Type CredentialCountOutputType
|
|
*/
|
|
|
|
export type CredentialCountOutputType = {
|
|
securevalues: number
|
|
}
|
|
|
|
export type CredentialCountOutputTypeSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
securevalues?: boolean | CredentialCountOutputTypeCountSecurevaluesArgs
|
|
}
|
|
|
|
/**
|
|
* CredentialCountOutputType without action
|
|
*/
|
|
export type CredentialCountOutputTypeDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the CredentialCountOutputType
|
|
*/
|
|
select?: Prisma.CredentialCountOutputTypeSelect<ExtArgs> | null
|
|
}
|
|
|
|
/**
|
|
* CredentialCountOutputType without action
|
|
*/
|
|
export type CredentialCountOutputTypeCountSecurevaluesArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
where?: Prisma.SecureValueWhereInput
|
|
}
|
|
|
|
|
|
export type CredentialSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
id?: boolean
|
|
name?: boolean
|
|
notes?: boolean
|
|
typeId?: boolean
|
|
fields?: boolean
|
|
companyId?: boolean
|
|
createdAt?: boolean
|
|
updatedAt?: boolean
|
|
type?: boolean | Prisma.CredentialTypeDefaultArgs<ExtArgs>
|
|
company?: boolean | Prisma.CompanyDefaultArgs<ExtArgs>
|
|
securevalues?: boolean | Prisma.Credential$securevaluesArgs<ExtArgs>
|
|
_count?: boolean | Prisma.CredentialCountOutputTypeDefaultArgs<ExtArgs>
|
|
}, ExtArgs["result"]["credential"]>
|
|
|
|
export type CredentialSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
id?: boolean
|
|
name?: boolean
|
|
notes?: boolean
|
|
typeId?: boolean
|
|
fields?: boolean
|
|
companyId?: boolean
|
|
createdAt?: boolean
|
|
updatedAt?: boolean
|
|
type?: boolean | Prisma.CredentialTypeDefaultArgs<ExtArgs>
|
|
company?: boolean | Prisma.CompanyDefaultArgs<ExtArgs>
|
|
}, ExtArgs["result"]["credential"]>
|
|
|
|
export type CredentialSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
id?: boolean
|
|
name?: boolean
|
|
notes?: boolean
|
|
typeId?: boolean
|
|
fields?: boolean
|
|
companyId?: boolean
|
|
createdAt?: boolean
|
|
updatedAt?: boolean
|
|
type?: boolean | Prisma.CredentialTypeDefaultArgs<ExtArgs>
|
|
company?: boolean | Prisma.CompanyDefaultArgs<ExtArgs>
|
|
}, ExtArgs["result"]["credential"]>
|
|
|
|
export type CredentialSelectScalar = {
|
|
id?: boolean
|
|
name?: boolean
|
|
notes?: boolean
|
|
typeId?: boolean
|
|
fields?: boolean
|
|
companyId?: boolean
|
|
createdAt?: boolean
|
|
updatedAt?: boolean
|
|
}
|
|
|
|
export type CredentialOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "name" | "notes" | "typeId" | "fields" | "companyId" | "createdAt" | "updatedAt", ExtArgs["result"]["credential"]>
|
|
export type CredentialInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
type?: boolean | Prisma.CredentialTypeDefaultArgs<ExtArgs>
|
|
company?: boolean | Prisma.CompanyDefaultArgs<ExtArgs>
|
|
securevalues?: boolean | Prisma.Credential$securevaluesArgs<ExtArgs>
|
|
_count?: boolean | Prisma.CredentialCountOutputTypeDefaultArgs<ExtArgs>
|
|
}
|
|
export type CredentialIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
type?: boolean | Prisma.CredentialTypeDefaultArgs<ExtArgs>
|
|
company?: boolean | Prisma.CompanyDefaultArgs<ExtArgs>
|
|
}
|
|
export type CredentialIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
type?: boolean | Prisma.CredentialTypeDefaultArgs<ExtArgs>
|
|
company?: boolean | Prisma.CompanyDefaultArgs<ExtArgs>
|
|
}
|
|
|
|
export type $CredentialPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
name: "Credential"
|
|
objects: {
|
|
type: Prisma.$CredentialTypePayload<ExtArgs>
|
|
company: Prisma.$CompanyPayload<ExtArgs>
|
|
securevalues: Prisma.$SecureValuePayload<ExtArgs>[]
|
|
}
|
|
scalars: runtime.Types.Extensions.GetPayloadResult<{
|
|
id: string
|
|
name: string
|
|
notes: string | null
|
|
typeId: string
|
|
fields: runtime.JsonValue
|
|
companyId: string
|
|
createdAt: Date
|
|
updatedAt: Date
|
|
}, ExtArgs["result"]["credential"]>
|
|
composites: {}
|
|
}
|
|
|
|
export type CredentialGetPayload<S extends boolean | null | undefined | CredentialDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$CredentialPayload, S>
|
|
|
|
export type CredentialCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> =
|
|
Omit<CredentialFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
|
|
select?: CredentialCountAggregateInputType | true
|
|
}
|
|
|
|
export interface CredentialDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
|
|
[K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['Credential'], meta: { name: 'Credential' } }
|
|
/**
|
|
* Find zero or one Credential that matches the filter.
|
|
* @param {CredentialFindUniqueArgs} args - Arguments to find a Credential
|
|
* @example
|
|
* // Get one Credential
|
|
* const credential = await prisma.credential.findUnique({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findUnique<T extends CredentialFindUniqueArgs>(args: Prisma.SelectSubset<T, CredentialFindUniqueArgs<ExtArgs>>): Prisma.Prisma__CredentialClient<runtime.Types.Result.GetResult<Prisma.$CredentialPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Find one Credential that matches the filter or throw an error with `error.code='P2025'`
|
|
* if no matches were found.
|
|
* @param {CredentialFindUniqueOrThrowArgs} args - Arguments to find a Credential
|
|
* @example
|
|
* // Get one Credential
|
|
* const credential = await prisma.credential.findUniqueOrThrow({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findUniqueOrThrow<T extends CredentialFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, CredentialFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__CredentialClient<runtime.Types.Result.GetResult<Prisma.$CredentialPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Find the first Credential 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 {CredentialFindFirstArgs} args - Arguments to find a Credential
|
|
* @example
|
|
* // Get one Credential
|
|
* const credential = await prisma.credential.findFirst({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findFirst<T extends CredentialFindFirstArgs>(args?: Prisma.SelectSubset<T, CredentialFindFirstArgs<ExtArgs>>): Prisma.Prisma__CredentialClient<runtime.Types.Result.GetResult<Prisma.$CredentialPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Find the first Credential 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 {CredentialFindFirstOrThrowArgs} args - Arguments to find a Credential
|
|
* @example
|
|
* // Get one Credential
|
|
* const credential = await prisma.credential.findFirstOrThrow({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findFirstOrThrow<T extends CredentialFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, CredentialFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__CredentialClient<runtime.Types.Result.GetResult<Prisma.$CredentialPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Find zero or more Credentials 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 {CredentialFindManyArgs} args - Arguments to filter and select certain fields only.
|
|
* @example
|
|
* // Get all Credentials
|
|
* const credentials = await prisma.credential.findMany()
|
|
*
|
|
* // Get first 10 Credentials
|
|
* const credentials = await prisma.credential.findMany({ take: 10 })
|
|
*
|
|
* // Only select the `id`
|
|
* const credentialWithIdOnly = await prisma.credential.findMany({ select: { id: true } })
|
|
*
|
|
*/
|
|
findMany<T extends CredentialFindManyArgs>(args?: Prisma.SelectSubset<T, CredentialFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$CredentialPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
|
|
|
|
/**
|
|
* Create a Credential.
|
|
* @param {CredentialCreateArgs} args - Arguments to create a Credential.
|
|
* @example
|
|
* // Create one Credential
|
|
* const Credential = await prisma.credential.create({
|
|
* data: {
|
|
* // ... data to create a Credential
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
create<T extends CredentialCreateArgs>(args: Prisma.SelectSubset<T, CredentialCreateArgs<ExtArgs>>): Prisma.Prisma__CredentialClient<runtime.Types.Result.GetResult<Prisma.$CredentialPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Create many Credentials.
|
|
* @param {CredentialCreateManyArgs} args - Arguments to create many Credentials.
|
|
* @example
|
|
* // Create many Credentials
|
|
* const credential = await prisma.credential.createMany({
|
|
* data: [
|
|
* // ... provide data here
|
|
* ]
|
|
* })
|
|
*
|
|
*/
|
|
createMany<T extends CredentialCreateManyArgs>(args?: Prisma.SelectSubset<T, CredentialCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
|
|
|
/**
|
|
* Create many Credentials and returns the data saved in the database.
|
|
* @param {CredentialCreateManyAndReturnArgs} args - Arguments to create many Credentials.
|
|
* @example
|
|
* // Create many Credentials
|
|
* const credential = await prisma.credential.createManyAndReturn({
|
|
* data: [
|
|
* // ... provide data here
|
|
* ]
|
|
* })
|
|
*
|
|
* // Create many Credentials and only return the `id`
|
|
* const credentialWithIdOnly = await prisma.credential.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 CredentialCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, CredentialCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$CredentialPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>
|
|
|
|
/**
|
|
* Delete a Credential.
|
|
* @param {CredentialDeleteArgs} args - Arguments to delete one Credential.
|
|
* @example
|
|
* // Delete one Credential
|
|
* const Credential = await prisma.credential.delete({
|
|
* where: {
|
|
* // ... filter to delete one Credential
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
delete<T extends CredentialDeleteArgs>(args: Prisma.SelectSubset<T, CredentialDeleteArgs<ExtArgs>>): Prisma.Prisma__CredentialClient<runtime.Types.Result.GetResult<Prisma.$CredentialPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Update one Credential.
|
|
* @param {CredentialUpdateArgs} args - Arguments to update one Credential.
|
|
* @example
|
|
* // Update one Credential
|
|
* const credential = await prisma.credential.update({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* },
|
|
* data: {
|
|
* // ... provide data here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
update<T extends CredentialUpdateArgs>(args: Prisma.SelectSubset<T, CredentialUpdateArgs<ExtArgs>>): Prisma.Prisma__CredentialClient<runtime.Types.Result.GetResult<Prisma.$CredentialPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Delete zero or more Credentials.
|
|
* @param {CredentialDeleteManyArgs} args - Arguments to filter Credentials to delete.
|
|
* @example
|
|
* // Delete a few Credentials
|
|
* const { count } = await prisma.credential.deleteMany({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
deleteMany<T extends CredentialDeleteManyArgs>(args?: Prisma.SelectSubset<T, CredentialDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
|
|
|
/**
|
|
* Update zero or more Credentials.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {CredentialUpdateManyArgs} args - Arguments to update one or more rows.
|
|
* @example
|
|
* // Update many Credentials
|
|
* const credential = await prisma.credential.updateMany({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* },
|
|
* data: {
|
|
* // ... provide data here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
updateMany<T extends CredentialUpdateManyArgs>(args: Prisma.SelectSubset<T, CredentialUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
|
|
|
/**
|
|
* Update zero or more Credentials and returns the data updated in the database.
|
|
* @param {CredentialUpdateManyAndReturnArgs} args - Arguments to update many Credentials.
|
|
* @example
|
|
* // Update many Credentials
|
|
* const credential = await prisma.credential.updateManyAndReturn({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* },
|
|
* data: [
|
|
* // ... provide data here
|
|
* ]
|
|
* })
|
|
*
|
|
* // Update zero or more Credentials and only return the `id`
|
|
* const credentialWithIdOnly = await prisma.credential.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 CredentialUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, CredentialUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$CredentialPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>
|
|
|
|
/**
|
|
* Create or update one Credential.
|
|
* @param {CredentialUpsertArgs} args - Arguments to update or create a Credential.
|
|
* @example
|
|
* // Update or create a Credential
|
|
* const credential = await prisma.credential.upsert({
|
|
* create: {
|
|
* // ... data to create a Credential
|
|
* },
|
|
* update: {
|
|
* // ... in case it already exists, update
|
|
* },
|
|
* where: {
|
|
* // ... the filter for the Credential we want to update
|
|
* }
|
|
* })
|
|
*/
|
|
upsert<T extends CredentialUpsertArgs>(args: Prisma.SelectSubset<T, CredentialUpsertArgs<ExtArgs>>): Prisma.Prisma__CredentialClient<runtime.Types.Result.GetResult<Prisma.$CredentialPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
|
|
/**
|
|
* Count the number of Credentials.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {CredentialCountArgs} args - Arguments to filter Credentials to count.
|
|
* @example
|
|
* // Count the number of Credentials
|
|
* const count = await prisma.credential.count({
|
|
* where: {
|
|
* // ... the filter for the Credentials we want to count
|
|
* }
|
|
* })
|
|
**/
|
|
count<T extends CredentialCountArgs>(
|
|
args?: Prisma.Subset<T, CredentialCountArgs>,
|
|
): Prisma.PrismaPromise<
|
|
T extends runtime.Types.Utils.Record<'select', any>
|
|
? T['select'] extends true
|
|
? number
|
|
: Prisma.GetScalarType<T['select'], CredentialCountAggregateOutputType>
|
|
: number
|
|
>
|
|
|
|
/**
|
|
* Allows you to perform aggregations operations on a Credential.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {CredentialAggregateArgs} 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 CredentialAggregateArgs>(args: Prisma.Subset<T, CredentialAggregateArgs>): Prisma.PrismaPromise<GetCredentialAggregateType<T>>
|
|
|
|
/**
|
|
* Group by Credential.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {CredentialGroupByArgs} 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 CredentialGroupByArgs,
|
|
HasSelectOrTake extends Prisma.Or<
|
|
Prisma.Extends<'skip', Prisma.Keys<T>>,
|
|
Prisma.Extends<'take', Prisma.Keys<T>>
|
|
>,
|
|
OrderByArg extends Prisma.True extends HasSelectOrTake
|
|
? { orderBy: CredentialGroupByArgs['orderBy'] }
|
|
: { orderBy?: CredentialGroupByArgs['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, CredentialGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetCredentialGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
|
|
/**
|
|
* Fields of the Credential model
|
|
*/
|
|
readonly fields: CredentialFieldRefs;
|
|
}
|
|
|
|
/**
|
|
* The delegate class that acts as a "Promise-like" for Credential.
|
|
* 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__CredentialClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
|
|
readonly [Symbol.toStringTag]: "PrismaPromise"
|
|
type<T extends Prisma.CredentialTypeDefaultArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.CredentialTypeDefaultArgs<ExtArgs>>): Prisma.Prisma__CredentialTypeClient<runtime.Types.Result.GetResult<Prisma.$CredentialTypePayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>
|
|
company<T extends Prisma.CompanyDefaultArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.CompanyDefaultArgs<ExtArgs>>): Prisma.Prisma__CompanyClient<runtime.Types.Result.GetResult<Prisma.$CompanyPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>
|
|
securevalues<T extends Prisma.Credential$securevaluesArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Credential$securevaluesArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$SecureValuePayload<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 Credential model
|
|
*/
|
|
export interface CredentialFieldRefs {
|
|
readonly id: Prisma.FieldRef<"Credential", 'String'>
|
|
readonly name: Prisma.FieldRef<"Credential", 'String'>
|
|
readonly notes: Prisma.FieldRef<"Credential", 'String'>
|
|
readonly typeId: Prisma.FieldRef<"Credential", 'String'>
|
|
readonly fields: Prisma.FieldRef<"Credential", 'Json'>
|
|
readonly companyId: Prisma.FieldRef<"Credential", 'String'>
|
|
readonly createdAt: Prisma.FieldRef<"Credential", 'DateTime'>
|
|
readonly updatedAt: Prisma.FieldRef<"Credential", 'DateTime'>
|
|
}
|
|
|
|
|
|
// Custom InputTypes
|
|
/**
|
|
* Credential findUnique
|
|
*/
|
|
export type CredentialFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the Credential
|
|
*/
|
|
select?: Prisma.CredentialSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the Credential
|
|
*/
|
|
omit?: Prisma.CredentialOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.CredentialInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which Credential to fetch.
|
|
*/
|
|
where: Prisma.CredentialWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* Credential findUniqueOrThrow
|
|
*/
|
|
export type CredentialFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the Credential
|
|
*/
|
|
select?: Prisma.CredentialSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the Credential
|
|
*/
|
|
omit?: Prisma.CredentialOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.CredentialInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which Credential to fetch.
|
|
*/
|
|
where: Prisma.CredentialWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* Credential findFirst
|
|
*/
|
|
export type CredentialFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the Credential
|
|
*/
|
|
select?: Prisma.CredentialSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the Credential
|
|
*/
|
|
omit?: Prisma.CredentialOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.CredentialInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which Credential to fetch.
|
|
*/
|
|
where?: Prisma.CredentialWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of Credentials to fetch.
|
|
*/
|
|
orderBy?: Prisma.CredentialOrderByWithRelationInput | Prisma.CredentialOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for searching for Credentials.
|
|
*/
|
|
cursor?: Prisma.CredentialWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` Credentials 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` Credentials.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
*
|
|
* Filter by unique combinations of Credentials.
|
|
*/
|
|
distinct?: Prisma.CredentialScalarFieldEnum | Prisma.CredentialScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* Credential findFirstOrThrow
|
|
*/
|
|
export type CredentialFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the Credential
|
|
*/
|
|
select?: Prisma.CredentialSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the Credential
|
|
*/
|
|
omit?: Prisma.CredentialOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.CredentialInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which Credential to fetch.
|
|
*/
|
|
where?: Prisma.CredentialWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of Credentials to fetch.
|
|
*/
|
|
orderBy?: Prisma.CredentialOrderByWithRelationInput | Prisma.CredentialOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for searching for Credentials.
|
|
*/
|
|
cursor?: Prisma.CredentialWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` Credentials 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` Credentials.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
*
|
|
* Filter by unique combinations of Credentials.
|
|
*/
|
|
distinct?: Prisma.CredentialScalarFieldEnum | Prisma.CredentialScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* Credential findMany
|
|
*/
|
|
export type CredentialFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the Credential
|
|
*/
|
|
select?: Prisma.CredentialSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the Credential
|
|
*/
|
|
omit?: Prisma.CredentialOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.CredentialInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which Credentials to fetch.
|
|
*/
|
|
where?: Prisma.CredentialWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of Credentials to fetch.
|
|
*/
|
|
orderBy?: Prisma.CredentialOrderByWithRelationInput | Prisma.CredentialOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for listing Credentials.
|
|
*/
|
|
cursor?: Prisma.CredentialWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` Credentials 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` Credentials.
|
|
*/
|
|
skip?: number
|
|
distinct?: Prisma.CredentialScalarFieldEnum | Prisma.CredentialScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* Credential create
|
|
*/
|
|
export type CredentialCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the Credential
|
|
*/
|
|
select?: Prisma.CredentialSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the Credential
|
|
*/
|
|
omit?: Prisma.CredentialOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.CredentialInclude<ExtArgs> | null
|
|
/**
|
|
* The data needed to create a Credential.
|
|
*/
|
|
data: Prisma.XOR<Prisma.CredentialCreateInput, Prisma.CredentialUncheckedCreateInput>
|
|
}
|
|
|
|
/**
|
|
* Credential createMany
|
|
*/
|
|
export type CredentialCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* The data used to create many Credentials.
|
|
*/
|
|
data: Prisma.CredentialCreateManyInput | Prisma.CredentialCreateManyInput[]
|
|
skipDuplicates?: boolean
|
|
}
|
|
|
|
/**
|
|
* Credential createManyAndReturn
|
|
*/
|
|
export type CredentialCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the Credential
|
|
*/
|
|
select?: Prisma.CredentialSelectCreateManyAndReturn<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the Credential
|
|
*/
|
|
omit?: Prisma.CredentialOmit<ExtArgs> | null
|
|
/**
|
|
* The data used to create many Credentials.
|
|
*/
|
|
data: Prisma.CredentialCreateManyInput | Prisma.CredentialCreateManyInput[]
|
|
skipDuplicates?: boolean
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.CredentialIncludeCreateManyAndReturn<ExtArgs> | null
|
|
}
|
|
|
|
/**
|
|
* Credential update
|
|
*/
|
|
export type CredentialUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the Credential
|
|
*/
|
|
select?: Prisma.CredentialSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the Credential
|
|
*/
|
|
omit?: Prisma.CredentialOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.CredentialInclude<ExtArgs> | null
|
|
/**
|
|
* The data needed to update a Credential.
|
|
*/
|
|
data: Prisma.XOR<Prisma.CredentialUpdateInput, Prisma.CredentialUncheckedUpdateInput>
|
|
/**
|
|
* Choose, which Credential to update.
|
|
*/
|
|
where: Prisma.CredentialWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* Credential updateMany
|
|
*/
|
|
export type CredentialUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* The data used to update Credentials.
|
|
*/
|
|
data: Prisma.XOR<Prisma.CredentialUpdateManyMutationInput, Prisma.CredentialUncheckedUpdateManyInput>
|
|
/**
|
|
* Filter which Credentials to update
|
|
*/
|
|
where?: Prisma.CredentialWhereInput
|
|
/**
|
|
* Limit how many Credentials to update.
|
|
*/
|
|
limit?: number
|
|
}
|
|
|
|
/**
|
|
* Credential updateManyAndReturn
|
|
*/
|
|
export type CredentialUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the Credential
|
|
*/
|
|
select?: Prisma.CredentialSelectUpdateManyAndReturn<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the Credential
|
|
*/
|
|
omit?: Prisma.CredentialOmit<ExtArgs> | null
|
|
/**
|
|
* The data used to update Credentials.
|
|
*/
|
|
data: Prisma.XOR<Prisma.CredentialUpdateManyMutationInput, Prisma.CredentialUncheckedUpdateManyInput>
|
|
/**
|
|
* Filter which Credentials to update
|
|
*/
|
|
where?: Prisma.CredentialWhereInput
|
|
/**
|
|
* Limit how many Credentials to update.
|
|
*/
|
|
limit?: number
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.CredentialIncludeUpdateManyAndReturn<ExtArgs> | null
|
|
}
|
|
|
|
/**
|
|
* Credential upsert
|
|
*/
|
|
export type CredentialUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the Credential
|
|
*/
|
|
select?: Prisma.CredentialSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the Credential
|
|
*/
|
|
omit?: Prisma.CredentialOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.CredentialInclude<ExtArgs> | null
|
|
/**
|
|
* The filter to search for the Credential to update in case it exists.
|
|
*/
|
|
where: Prisma.CredentialWhereUniqueInput
|
|
/**
|
|
* In case the Credential found by the `where` argument doesn't exist, create a new Credential with this data.
|
|
*/
|
|
create: Prisma.XOR<Prisma.CredentialCreateInput, Prisma.CredentialUncheckedCreateInput>
|
|
/**
|
|
* In case the Credential was found with the provided `where` argument, update it with this data.
|
|
*/
|
|
update: Prisma.XOR<Prisma.CredentialUpdateInput, Prisma.CredentialUncheckedUpdateInput>
|
|
}
|
|
|
|
/**
|
|
* Credential delete
|
|
*/
|
|
export type CredentialDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the Credential
|
|
*/
|
|
select?: Prisma.CredentialSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the Credential
|
|
*/
|
|
omit?: Prisma.CredentialOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.CredentialInclude<ExtArgs> | null
|
|
/**
|
|
* Filter which Credential to delete.
|
|
*/
|
|
where: Prisma.CredentialWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* Credential deleteMany
|
|
*/
|
|
export type CredentialDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Filter which Credentials to delete
|
|
*/
|
|
where?: Prisma.CredentialWhereInput
|
|
/**
|
|
* Limit how many Credentials to delete.
|
|
*/
|
|
limit?: number
|
|
}
|
|
|
|
/**
|
|
* Credential.securevalues
|
|
*/
|
|
export type Credential$securevaluesArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the SecureValue
|
|
*/
|
|
select?: Prisma.SecureValueSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the SecureValue
|
|
*/
|
|
omit?: Prisma.SecureValueOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.SecureValueInclude<ExtArgs> | null
|
|
where?: Prisma.SecureValueWhereInput
|
|
orderBy?: Prisma.SecureValueOrderByWithRelationInput | Prisma.SecureValueOrderByWithRelationInput[]
|
|
cursor?: Prisma.SecureValueWhereUniqueInput
|
|
take?: number
|
|
skip?: number
|
|
distinct?: Prisma.SecureValueScalarFieldEnum | Prisma.SecureValueScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* Credential without action
|
|
*/
|
|
export type CredentialDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the Credential
|
|
*/
|
|
select?: Prisma.CredentialSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the Credential
|
|
*/
|
|
omit?: Prisma.CredentialOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.CredentialInclude<ExtArgs> | null
|
|
}
|