1831 lines
80 KiB
TypeScript
1831 lines
80 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 `ImpersonationAudit` 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 ImpersonationAudit
|
|
*
|
|
*/
|
|
export type ImpersonationAuditModel = runtime.Types.Result.DefaultSelection<Prisma.$ImpersonationAuditPayload>
|
|
|
|
export type AggregateImpersonationAudit = {
|
|
_count: ImpersonationAuditCountAggregateOutputType | null
|
|
_min: ImpersonationAuditMinAggregateOutputType | null
|
|
_max: ImpersonationAuditMaxAggregateOutputType | null
|
|
}
|
|
|
|
export type ImpersonationAuditMinAggregateOutputType = {
|
|
id: string | null
|
|
createdAt: Date | null
|
|
actorUserId: string | null
|
|
targetUserId: string | null
|
|
tenantId: string | null
|
|
action: string | null
|
|
reason: string | null
|
|
requestPath: string | null
|
|
metadata: string | null
|
|
}
|
|
|
|
export type ImpersonationAuditMaxAggregateOutputType = {
|
|
id: string | null
|
|
createdAt: Date | null
|
|
actorUserId: string | null
|
|
targetUserId: string | null
|
|
tenantId: string | null
|
|
action: string | null
|
|
reason: string | null
|
|
requestPath: string | null
|
|
metadata: string | null
|
|
}
|
|
|
|
export type ImpersonationAuditCountAggregateOutputType = {
|
|
id: number
|
|
createdAt: number
|
|
actorUserId: number
|
|
targetUserId: number
|
|
tenantId: number
|
|
action: number
|
|
reason: number
|
|
requestPath: number
|
|
metadata: number
|
|
_all: number
|
|
}
|
|
|
|
|
|
export type ImpersonationAuditMinAggregateInputType = {
|
|
id?: true
|
|
createdAt?: true
|
|
actorUserId?: true
|
|
targetUserId?: true
|
|
tenantId?: true
|
|
action?: true
|
|
reason?: true
|
|
requestPath?: true
|
|
metadata?: true
|
|
}
|
|
|
|
export type ImpersonationAuditMaxAggregateInputType = {
|
|
id?: true
|
|
createdAt?: true
|
|
actorUserId?: true
|
|
targetUserId?: true
|
|
tenantId?: true
|
|
action?: true
|
|
reason?: true
|
|
requestPath?: true
|
|
metadata?: true
|
|
}
|
|
|
|
export type ImpersonationAuditCountAggregateInputType = {
|
|
id?: true
|
|
createdAt?: true
|
|
actorUserId?: true
|
|
targetUserId?: true
|
|
tenantId?: true
|
|
action?: true
|
|
reason?: true
|
|
requestPath?: true
|
|
metadata?: true
|
|
_all?: true
|
|
}
|
|
|
|
export type ImpersonationAuditAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Filter which ImpersonationAudit to aggregate.
|
|
*/
|
|
where?: Prisma.ImpersonationAuditWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of ImpersonationAudits to fetch.
|
|
*/
|
|
orderBy?: Prisma.ImpersonationAuditOrderByWithRelationInput | Prisma.ImpersonationAuditOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the start position
|
|
*/
|
|
cursor?: Prisma.ImpersonationAuditWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` ImpersonationAudits 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` ImpersonationAudits.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Count returned ImpersonationAudits
|
|
**/
|
|
_count?: true | ImpersonationAuditCountAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to find the minimum value
|
|
**/
|
|
_min?: ImpersonationAuditMinAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to find the maximum value
|
|
**/
|
|
_max?: ImpersonationAuditMaxAggregateInputType
|
|
}
|
|
|
|
export type GetImpersonationAuditAggregateType<T extends ImpersonationAuditAggregateArgs> = {
|
|
[P in keyof T & keyof AggregateImpersonationAudit]: P extends '_count' | 'count'
|
|
? T[P] extends true
|
|
? number
|
|
: Prisma.GetScalarType<T[P], AggregateImpersonationAudit[P]>
|
|
: Prisma.GetScalarType<T[P], AggregateImpersonationAudit[P]>
|
|
}
|
|
|
|
|
|
|
|
|
|
export type ImpersonationAuditGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
where?: Prisma.ImpersonationAuditWhereInput
|
|
orderBy?: Prisma.ImpersonationAuditOrderByWithAggregationInput | Prisma.ImpersonationAuditOrderByWithAggregationInput[]
|
|
by: Prisma.ImpersonationAuditScalarFieldEnum[] | Prisma.ImpersonationAuditScalarFieldEnum
|
|
having?: Prisma.ImpersonationAuditScalarWhereWithAggregatesInput
|
|
take?: number
|
|
skip?: number
|
|
_count?: ImpersonationAuditCountAggregateInputType | true
|
|
_min?: ImpersonationAuditMinAggregateInputType
|
|
_max?: ImpersonationAuditMaxAggregateInputType
|
|
}
|
|
|
|
export type ImpersonationAuditGroupByOutputType = {
|
|
id: string
|
|
createdAt: Date
|
|
actorUserId: string | null
|
|
targetUserId: string | null
|
|
tenantId: string | null
|
|
action: string
|
|
reason: string | null
|
|
requestPath: string
|
|
metadata: string | null
|
|
_count: ImpersonationAuditCountAggregateOutputType | null
|
|
_min: ImpersonationAuditMinAggregateOutputType | null
|
|
_max: ImpersonationAuditMaxAggregateOutputType | null
|
|
}
|
|
|
|
export type GetImpersonationAuditGroupByPayload<T extends ImpersonationAuditGroupByArgs> = Prisma.PrismaPromise<
|
|
Array<
|
|
Prisma.PickEnumerable<ImpersonationAuditGroupByOutputType, T['by']> &
|
|
{
|
|
[P in ((keyof T) & (keyof ImpersonationAuditGroupByOutputType))]: P extends '_count'
|
|
? T[P] extends boolean
|
|
? number
|
|
: Prisma.GetScalarType<T[P], ImpersonationAuditGroupByOutputType[P]>
|
|
: Prisma.GetScalarType<T[P], ImpersonationAuditGroupByOutputType[P]>
|
|
}
|
|
>
|
|
>
|
|
|
|
|
|
|
|
export type ImpersonationAuditWhereInput = {
|
|
AND?: Prisma.ImpersonationAuditWhereInput | Prisma.ImpersonationAuditWhereInput[]
|
|
OR?: Prisma.ImpersonationAuditWhereInput[]
|
|
NOT?: Prisma.ImpersonationAuditWhereInput | Prisma.ImpersonationAuditWhereInput[]
|
|
id?: Prisma.StringFilter<"ImpersonationAudit"> | string
|
|
createdAt?: Prisma.DateTimeFilter<"ImpersonationAudit"> | Date | string
|
|
actorUserId?: Prisma.StringNullableFilter<"ImpersonationAudit"> | string | null
|
|
targetUserId?: Prisma.StringNullableFilter<"ImpersonationAudit"> | string | null
|
|
tenantId?: Prisma.StringNullableFilter<"ImpersonationAudit"> | string | null
|
|
action?: Prisma.StringFilter<"ImpersonationAudit"> | string
|
|
reason?: Prisma.StringNullableFilter<"ImpersonationAudit"> | string | null
|
|
requestPath?: Prisma.StringFilter<"ImpersonationAudit"> | string
|
|
metadata?: Prisma.StringNullableFilter<"ImpersonationAudit"> | string | null
|
|
actor?: Prisma.XOR<Prisma.UserNullableScalarRelationFilter, Prisma.UserWhereInput> | null
|
|
target?: Prisma.XOR<Prisma.UserNullableScalarRelationFilter, Prisma.UserWhereInput> | null
|
|
tenant?: Prisma.XOR<Prisma.TenantNullableScalarRelationFilter, Prisma.TenantWhereInput> | null
|
|
}
|
|
|
|
export type ImpersonationAuditOrderByWithRelationInput = {
|
|
id?: Prisma.SortOrder
|
|
createdAt?: Prisma.SortOrder
|
|
actorUserId?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
targetUserId?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
tenantId?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
action?: Prisma.SortOrder
|
|
reason?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
requestPath?: Prisma.SortOrder
|
|
metadata?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
actor?: Prisma.UserOrderByWithRelationInput
|
|
target?: Prisma.UserOrderByWithRelationInput
|
|
tenant?: Prisma.TenantOrderByWithRelationInput
|
|
}
|
|
|
|
export type ImpersonationAuditWhereUniqueInput = Prisma.AtLeast<{
|
|
id?: string
|
|
AND?: Prisma.ImpersonationAuditWhereInput | Prisma.ImpersonationAuditWhereInput[]
|
|
OR?: Prisma.ImpersonationAuditWhereInput[]
|
|
NOT?: Prisma.ImpersonationAuditWhereInput | Prisma.ImpersonationAuditWhereInput[]
|
|
createdAt?: Prisma.DateTimeFilter<"ImpersonationAudit"> | Date | string
|
|
actorUserId?: Prisma.StringNullableFilter<"ImpersonationAudit"> | string | null
|
|
targetUserId?: Prisma.StringNullableFilter<"ImpersonationAudit"> | string | null
|
|
tenantId?: Prisma.StringNullableFilter<"ImpersonationAudit"> | string | null
|
|
action?: Prisma.StringFilter<"ImpersonationAudit"> | string
|
|
reason?: Prisma.StringNullableFilter<"ImpersonationAudit"> | string | null
|
|
requestPath?: Prisma.StringFilter<"ImpersonationAudit"> | string
|
|
metadata?: Prisma.StringNullableFilter<"ImpersonationAudit"> | string | null
|
|
actor?: Prisma.XOR<Prisma.UserNullableScalarRelationFilter, Prisma.UserWhereInput> | null
|
|
target?: Prisma.XOR<Prisma.UserNullableScalarRelationFilter, Prisma.UserWhereInput> | null
|
|
tenant?: Prisma.XOR<Prisma.TenantNullableScalarRelationFilter, Prisma.TenantWhereInput> | null
|
|
}, "id">
|
|
|
|
export type ImpersonationAuditOrderByWithAggregationInput = {
|
|
id?: Prisma.SortOrder
|
|
createdAt?: Prisma.SortOrder
|
|
actorUserId?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
targetUserId?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
tenantId?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
action?: Prisma.SortOrder
|
|
reason?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
requestPath?: Prisma.SortOrder
|
|
metadata?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
_count?: Prisma.ImpersonationAuditCountOrderByAggregateInput
|
|
_max?: Prisma.ImpersonationAuditMaxOrderByAggregateInput
|
|
_min?: Prisma.ImpersonationAuditMinOrderByAggregateInput
|
|
}
|
|
|
|
export type ImpersonationAuditScalarWhereWithAggregatesInput = {
|
|
AND?: Prisma.ImpersonationAuditScalarWhereWithAggregatesInput | Prisma.ImpersonationAuditScalarWhereWithAggregatesInput[]
|
|
OR?: Prisma.ImpersonationAuditScalarWhereWithAggregatesInput[]
|
|
NOT?: Prisma.ImpersonationAuditScalarWhereWithAggregatesInput | Prisma.ImpersonationAuditScalarWhereWithAggregatesInput[]
|
|
id?: Prisma.StringWithAggregatesFilter<"ImpersonationAudit"> | string
|
|
createdAt?: Prisma.DateTimeWithAggregatesFilter<"ImpersonationAudit"> | Date | string
|
|
actorUserId?: Prisma.StringNullableWithAggregatesFilter<"ImpersonationAudit"> | string | null
|
|
targetUserId?: Prisma.StringNullableWithAggregatesFilter<"ImpersonationAudit"> | string | null
|
|
tenantId?: Prisma.StringNullableWithAggregatesFilter<"ImpersonationAudit"> | string | null
|
|
action?: Prisma.StringWithAggregatesFilter<"ImpersonationAudit"> | string
|
|
reason?: Prisma.StringNullableWithAggregatesFilter<"ImpersonationAudit"> | string | null
|
|
requestPath?: Prisma.StringWithAggregatesFilter<"ImpersonationAudit"> | string
|
|
metadata?: Prisma.StringNullableWithAggregatesFilter<"ImpersonationAudit"> | string | null
|
|
}
|
|
|
|
export type ImpersonationAuditCreateInput = {
|
|
id?: string
|
|
createdAt?: Date | string
|
|
action: string
|
|
reason?: string | null
|
|
requestPath: string
|
|
metadata?: string | null
|
|
actor?: Prisma.UserCreateNestedOneWithoutImpersonationAuditsActorInput
|
|
target?: Prisma.UserCreateNestedOneWithoutImpersonationAuditsTargetInput
|
|
tenant?: Prisma.TenantCreateNestedOneWithoutImpersonationAuditsInput
|
|
}
|
|
|
|
export type ImpersonationAuditUncheckedCreateInput = {
|
|
id?: string
|
|
createdAt?: Date | string
|
|
actorUserId?: string | null
|
|
targetUserId?: string | null
|
|
tenantId?: string | null
|
|
action: string
|
|
reason?: string | null
|
|
requestPath: string
|
|
metadata?: string | null
|
|
}
|
|
|
|
export type ImpersonationAuditUpdateInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
action?: Prisma.StringFieldUpdateOperationsInput | string
|
|
reason?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
requestPath?: Prisma.StringFieldUpdateOperationsInput | string
|
|
metadata?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
actor?: Prisma.UserUpdateOneWithoutImpersonationAuditsActorNestedInput
|
|
target?: Prisma.UserUpdateOneWithoutImpersonationAuditsTargetNestedInput
|
|
tenant?: Prisma.TenantUpdateOneWithoutImpersonationAuditsNestedInput
|
|
}
|
|
|
|
export type ImpersonationAuditUncheckedUpdateInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
actorUserId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
targetUserId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
tenantId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
action?: Prisma.StringFieldUpdateOperationsInput | string
|
|
reason?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
requestPath?: Prisma.StringFieldUpdateOperationsInput | string
|
|
metadata?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
}
|
|
|
|
export type ImpersonationAuditCreateManyInput = {
|
|
id?: string
|
|
createdAt?: Date | string
|
|
actorUserId?: string | null
|
|
targetUserId?: string | null
|
|
tenantId?: string | null
|
|
action: string
|
|
reason?: string | null
|
|
requestPath: string
|
|
metadata?: string | null
|
|
}
|
|
|
|
export type ImpersonationAuditUpdateManyMutationInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
action?: Prisma.StringFieldUpdateOperationsInput | string
|
|
reason?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
requestPath?: Prisma.StringFieldUpdateOperationsInput | string
|
|
metadata?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
}
|
|
|
|
export type ImpersonationAuditUncheckedUpdateManyInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
actorUserId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
targetUserId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
tenantId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
action?: Prisma.StringFieldUpdateOperationsInput | string
|
|
reason?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
requestPath?: Prisma.StringFieldUpdateOperationsInput | string
|
|
metadata?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
}
|
|
|
|
export type ImpersonationAuditListRelationFilter = {
|
|
every?: Prisma.ImpersonationAuditWhereInput
|
|
some?: Prisma.ImpersonationAuditWhereInput
|
|
none?: Prisma.ImpersonationAuditWhereInput
|
|
}
|
|
|
|
export type ImpersonationAuditOrderByRelationAggregateInput = {
|
|
_count?: Prisma.SortOrder
|
|
}
|
|
|
|
export type ImpersonationAuditCountOrderByAggregateInput = {
|
|
id?: Prisma.SortOrder
|
|
createdAt?: Prisma.SortOrder
|
|
actorUserId?: Prisma.SortOrder
|
|
targetUserId?: Prisma.SortOrder
|
|
tenantId?: Prisma.SortOrder
|
|
action?: Prisma.SortOrder
|
|
reason?: Prisma.SortOrder
|
|
requestPath?: Prisma.SortOrder
|
|
metadata?: Prisma.SortOrder
|
|
}
|
|
|
|
export type ImpersonationAuditMaxOrderByAggregateInput = {
|
|
id?: Prisma.SortOrder
|
|
createdAt?: Prisma.SortOrder
|
|
actorUserId?: Prisma.SortOrder
|
|
targetUserId?: Prisma.SortOrder
|
|
tenantId?: Prisma.SortOrder
|
|
action?: Prisma.SortOrder
|
|
reason?: Prisma.SortOrder
|
|
requestPath?: Prisma.SortOrder
|
|
metadata?: Prisma.SortOrder
|
|
}
|
|
|
|
export type ImpersonationAuditMinOrderByAggregateInput = {
|
|
id?: Prisma.SortOrder
|
|
createdAt?: Prisma.SortOrder
|
|
actorUserId?: Prisma.SortOrder
|
|
targetUserId?: Prisma.SortOrder
|
|
tenantId?: Prisma.SortOrder
|
|
action?: Prisma.SortOrder
|
|
reason?: Prisma.SortOrder
|
|
requestPath?: Prisma.SortOrder
|
|
metadata?: Prisma.SortOrder
|
|
}
|
|
|
|
export type ImpersonationAuditCreateNestedManyWithoutActorInput = {
|
|
create?: Prisma.XOR<Prisma.ImpersonationAuditCreateWithoutActorInput, Prisma.ImpersonationAuditUncheckedCreateWithoutActorInput> | Prisma.ImpersonationAuditCreateWithoutActorInput[] | Prisma.ImpersonationAuditUncheckedCreateWithoutActorInput[]
|
|
connectOrCreate?: Prisma.ImpersonationAuditCreateOrConnectWithoutActorInput | Prisma.ImpersonationAuditCreateOrConnectWithoutActorInput[]
|
|
createMany?: Prisma.ImpersonationAuditCreateManyActorInputEnvelope
|
|
connect?: Prisma.ImpersonationAuditWhereUniqueInput | Prisma.ImpersonationAuditWhereUniqueInput[]
|
|
}
|
|
|
|
export type ImpersonationAuditCreateNestedManyWithoutTargetInput = {
|
|
create?: Prisma.XOR<Prisma.ImpersonationAuditCreateWithoutTargetInput, Prisma.ImpersonationAuditUncheckedCreateWithoutTargetInput> | Prisma.ImpersonationAuditCreateWithoutTargetInput[] | Prisma.ImpersonationAuditUncheckedCreateWithoutTargetInput[]
|
|
connectOrCreate?: Prisma.ImpersonationAuditCreateOrConnectWithoutTargetInput | Prisma.ImpersonationAuditCreateOrConnectWithoutTargetInput[]
|
|
createMany?: Prisma.ImpersonationAuditCreateManyTargetInputEnvelope
|
|
connect?: Prisma.ImpersonationAuditWhereUniqueInput | Prisma.ImpersonationAuditWhereUniqueInput[]
|
|
}
|
|
|
|
export type ImpersonationAuditUncheckedCreateNestedManyWithoutActorInput = {
|
|
create?: Prisma.XOR<Prisma.ImpersonationAuditCreateWithoutActorInput, Prisma.ImpersonationAuditUncheckedCreateWithoutActorInput> | Prisma.ImpersonationAuditCreateWithoutActorInput[] | Prisma.ImpersonationAuditUncheckedCreateWithoutActorInput[]
|
|
connectOrCreate?: Prisma.ImpersonationAuditCreateOrConnectWithoutActorInput | Prisma.ImpersonationAuditCreateOrConnectWithoutActorInput[]
|
|
createMany?: Prisma.ImpersonationAuditCreateManyActorInputEnvelope
|
|
connect?: Prisma.ImpersonationAuditWhereUniqueInput | Prisma.ImpersonationAuditWhereUniqueInput[]
|
|
}
|
|
|
|
export type ImpersonationAuditUncheckedCreateNestedManyWithoutTargetInput = {
|
|
create?: Prisma.XOR<Prisma.ImpersonationAuditCreateWithoutTargetInput, Prisma.ImpersonationAuditUncheckedCreateWithoutTargetInput> | Prisma.ImpersonationAuditCreateWithoutTargetInput[] | Prisma.ImpersonationAuditUncheckedCreateWithoutTargetInput[]
|
|
connectOrCreate?: Prisma.ImpersonationAuditCreateOrConnectWithoutTargetInput | Prisma.ImpersonationAuditCreateOrConnectWithoutTargetInput[]
|
|
createMany?: Prisma.ImpersonationAuditCreateManyTargetInputEnvelope
|
|
connect?: Prisma.ImpersonationAuditWhereUniqueInput | Prisma.ImpersonationAuditWhereUniqueInput[]
|
|
}
|
|
|
|
export type ImpersonationAuditUpdateManyWithoutActorNestedInput = {
|
|
create?: Prisma.XOR<Prisma.ImpersonationAuditCreateWithoutActorInput, Prisma.ImpersonationAuditUncheckedCreateWithoutActorInput> | Prisma.ImpersonationAuditCreateWithoutActorInput[] | Prisma.ImpersonationAuditUncheckedCreateWithoutActorInput[]
|
|
connectOrCreate?: Prisma.ImpersonationAuditCreateOrConnectWithoutActorInput | Prisma.ImpersonationAuditCreateOrConnectWithoutActorInput[]
|
|
upsert?: Prisma.ImpersonationAuditUpsertWithWhereUniqueWithoutActorInput | Prisma.ImpersonationAuditUpsertWithWhereUniqueWithoutActorInput[]
|
|
createMany?: Prisma.ImpersonationAuditCreateManyActorInputEnvelope
|
|
set?: Prisma.ImpersonationAuditWhereUniqueInput | Prisma.ImpersonationAuditWhereUniqueInput[]
|
|
disconnect?: Prisma.ImpersonationAuditWhereUniqueInput | Prisma.ImpersonationAuditWhereUniqueInput[]
|
|
delete?: Prisma.ImpersonationAuditWhereUniqueInput | Prisma.ImpersonationAuditWhereUniqueInput[]
|
|
connect?: Prisma.ImpersonationAuditWhereUniqueInput | Prisma.ImpersonationAuditWhereUniqueInput[]
|
|
update?: Prisma.ImpersonationAuditUpdateWithWhereUniqueWithoutActorInput | Prisma.ImpersonationAuditUpdateWithWhereUniqueWithoutActorInput[]
|
|
updateMany?: Prisma.ImpersonationAuditUpdateManyWithWhereWithoutActorInput | Prisma.ImpersonationAuditUpdateManyWithWhereWithoutActorInput[]
|
|
deleteMany?: Prisma.ImpersonationAuditScalarWhereInput | Prisma.ImpersonationAuditScalarWhereInput[]
|
|
}
|
|
|
|
export type ImpersonationAuditUpdateManyWithoutTargetNestedInput = {
|
|
create?: Prisma.XOR<Prisma.ImpersonationAuditCreateWithoutTargetInput, Prisma.ImpersonationAuditUncheckedCreateWithoutTargetInput> | Prisma.ImpersonationAuditCreateWithoutTargetInput[] | Prisma.ImpersonationAuditUncheckedCreateWithoutTargetInput[]
|
|
connectOrCreate?: Prisma.ImpersonationAuditCreateOrConnectWithoutTargetInput | Prisma.ImpersonationAuditCreateOrConnectWithoutTargetInput[]
|
|
upsert?: Prisma.ImpersonationAuditUpsertWithWhereUniqueWithoutTargetInput | Prisma.ImpersonationAuditUpsertWithWhereUniqueWithoutTargetInput[]
|
|
createMany?: Prisma.ImpersonationAuditCreateManyTargetInputEnvelope
|
|
set?: Prisma.ImpersonationAuditWhereUniqueInput | Prisma.ImpersonationAuditWhereUniqueInput[]
|
|
disconnect?: Prisma.ImpersonationAuditWhereUniqueInput | Prisma.ImpersonationAuditWhereUniqueInput[]
|
|
delete?: Prisma.ImpersonationAuditWhereUniqueInput | Prisma.ImpersonationAuditWhereUniqueInput[]
|
|
connect?: Prisma.ImpersonationAuditWhereUniqueInput | Prisma.ImpersonationAuditWhereUniqueInput[]
|
|
update?: Prisma.ImpersonationAuditUpdateWithWhereUniqueWithoutTargetInput | Prisma.ImpersonationAuditUpdateWithWhereUniqueWithoutTargetInput[]
|
|
updateMany?: Prisma.ImpersonationAuditUpdateManyWithWhereWithoutTargetInput | Prisma.ImpersonationAuditUpdateManyWithWhereWithoutTargetInput[]
|
|
deleteMany?: Prisma.ImpersonationAuditScalarWhereInput | Prisma.ImpersonationAuditScalarWhereInput[]
|
|
}
|
|
|
|
export type ImpersonationAuditUncheckedUpdateManyWithoutActorNestedInput = {
|
|
create?: Prisma.XOR<Prisma.ImpersonationAuditCreateWithoutActorInput, Prisma.ImpersonationAuditUncheckedCreateWithoutActorInput> | Prisma.ImpersonationAuditCreateWithoutActorInput[] | Prisma.ImpersonationAuditUncheckedCreateWithoutActorInput[]
|
|
connectOrCreate?: Prisma.ImpersonationAuditCreateOrConnectWithoutActorInput | Prisma.ImpersonationAuditCreateOrConnectWithoutActorInput[]
|
|
upsert?: Prisma.ImpersonationAuditUpsertWithWhereUniqueWithoutActorInput | Prisma.ImpersonationAuditUpsertWithWhereUniqueWithoutActorInput[]
|
|
createMany?: Prisma.ImpersonationAuditCreateManyActorInputEnvelope
|
|
set?: Prisma.ImpersonationAuditWhereUniqueInput | Prisma.ImpersonationAuditWhereUniqueInput[]
|
|
disconnect?: Prisma.ImpersonationAuditWhereUniqueInput | Prisma.ImpersonationAuditWhereUniqueInput[]
|
|
delete?: Prisma.ImpersonationAuditWhereUniqueInput | Prisma.ImpersonationAuditWhereUniqueInput[]
|
|
connect?: Prisma.ImpersonationAuditWhereUniqueInput | Prisma.ImpersonationAuditWhereUniqueInput[]
|
|
update?: Prisma.ImpersonationAuditUpdateWithWhereUniqueWithoutActorInput | Prisma.ImpersonationAuditUpdateWithWhereUniqueWithoutActorInput[]
|
|
updateMany?: Prisma.ImpersonationAuditUpdateManyWithWhereWithoutActorInput | Prisma.ImpersonationAuditUpdateManyWithWhereWithoutActorInput[]
|
|
deleteMany?: Prisma.ImpersonationAuditScalarWhereInput | Prisma.ImpersonationAuditScalarWhereInput[]
|
|
}
|
|
|
|
export type ImpersonationAuditUncheckedUpdateManyWithoutTargetNestedInput = {
|
|
create?: Prisma.XOR<Prisma.ImpersonationAuditCreateWithoutTargetInput, Prisma.ImpersonationAuditUncheckedCreateWithoutTargetInput> | Prisma.ImpersonationAuditCreateWithoutTargetInput[] | Prisma.ImpersonationAuditUncheckedCreateWithoutTargetInput[]
|
|
connectOrCreate?: Prisma.ImpersonationAuditCreateOrConnectWithoutTargetInput | Prisma.ImpersonationAuditCreateOrConnectWithoutTargetInput[]
|
|
upsert?: Prisma.ImpersonationAuditUpsertWithWhereUniqueWithoutTargetInput | Prisma.ImpersonationAuditUpsertWithWhereUniqueWithoutTargetInput[]
|
|
createMany?: Prisma.ImpersonationAuditCreateManyTargetInputEnvelope
|
|
set?: Prisma.ImpersonationAuditWhereUniqueInput | Prisma.ImpersonationAuditWhereUniqueInput[]
|
|
disconnect?: Prisma.ImpersonationAuditWhereUniqueInput | Prisma.ImpersonationAuditWhereUniqueInput[]
|
|
delete?: Prisma.ImpersonationAuditWhereUniqueInput | Prisma.ImpersonationAuditWhereUniqueInput[]
|
|
connect?: Prisma.ImpersonationAuditWhereUniqueInput | Prisma.ImpersonationAuditWhereUniqueInput[]
|
|
update?: Prisma.ImpersonationAuditUpdateWithWhereUniqueWithoutTargetInput | Prisma.ImpersonationAuditUpdateWithWhereUniqueWithoutTargetInput[]
|
|
updateMany?: Prisma.ImpersonationAuditUpdateManyWithWhereWithoutTargetInput | Prisma.ImpersonationAuditUpdateManyWithWhereWithoutTargetInput[]
|
|
deleteMany?: Prisma.ImpersonationAuditScalarWhereInput | Prisma.ImpersonationAuditScalarWhereInput[]
|
|
}
|
|
|
|
export type ImpersonationAuditCreateNestedManyWithoutTenantInput = {
|
|
create?: Prisma.XOR<Prisma.ImpersonationAuditCreateWithoutTenantInput, Prisma.ImpersonationAuditUncheckedCreateWithoutTenantInput> | Prisma.ImpersonationAuditCreateWithoutTenantInput[] | Prisma.ImpersonationAuditUncheckedCreateWithoutTenantInput[]
|
|
connectOrCreate?: Prisma.ImpersonationAuditCreateOrConnectWithoutTenantInput | Prisma.ImpersonationAuditCreateOrConnectWithoutTenantInput[]
|
|
createMany?: Prisma.ImpersonationAuditCreateManyTenantInputEnvelope
|
|
connect?: Prisma.ImpersonationAuditWhereUniqueInput | Prisma.ImpersonationAuditWhereUniqueInput[]
|
|
}
|
|
|
|
export type ImpersonationAuditUncheckedCreateNestedManyWithoutTenantInput = {
|
|
create?: Prisma.XOR<Prisma.ImpersonationAuditCreateWithoutTenantInput, Prisma.ImpersonationAuditUncheckedCreateWithoutTenantInput> | Prisma.ImpersonationAuditCreateWithoutTenantInput[] | Prisma.ImpersonationAuditUncheckedCreateWithoutTenantInput[]
|
|
connectOrCreate?: Prisma.ImpersonationAuditCreateOrConnectWithoutTenantInput | Prisma.ImpersonationAuditCreateOrConnectWithoutTenantInput[]
|
|
createMany?: Prisma.ImpersonationAuditCreateManyTenantInputEnvelope
|
|
connect?: Prisma.ImpersonationAuditWhereUniqueInput | Prisma.ImpersonationAuditWhereUniqueInput[]
|
|
}
|
|
|
|
export type ImpersonationAuditUpdateManyWithoutTenantNestedInput = {
|
|
create?: Prisma.XOR<Prisma.ImpersonationAuditCreateWithoutTenantInput, Prisma.ImpersonationAuditUncheckedCreateWithoutTenantInput> | Prisma.ImpersonationAuditCreateWithoutTenantInput[] | Prisma.ImpersonationAuditUncheckedCreateWithoutTenantInput[]
|
|
connectOrCreate?: Prisma.ImpersonationAuditCreateOrConnectWithoutTenantInput | Prisma.ImpersonationAuditCreateOrConnectWithoutTenantInput[]
|
|
upsert?: Prisma.ImpersonationAuditUpsertWithWhereUniqueWithoutTenantInput | Prisma.ImpersonationAuditUpsertWithWhereUniqueWithoutTenantInput[]
|
|
createMany?: Prisma.ImpersonationAuditCreateManyTenantInputEnvelope
|
|
set?: Prisma.ImpersonationAuditWhereUniqueInput | Prisma.ImpersonationAuditWhereUniqueInput[]
|
|
disconnect?: Prisma.ImpersonationAuditWhereUniqueInput | Prisma.ImpersonationAuditWhereUniqueInput[]
|
|
delete?: Prisma.ImpersonationAuditWhereUniqueInput | Prisma.ImpersonationAuditWhereUniqueInput[]
|
|
connect?: Prisma.ImpersonationAuditWhereUniqueInput | Prisma.ImpersonationAuditWhereUniqueInput[]
|
|
update?: Prisma.ImpersonationAuditUpdateWithWhereUniqueWithoutTenantInput | Prisma.ImpersonationAuditUpdateWithWhereUniqueWithoutTenantInput[]
|
|
updateMany?: Prisma.ImpersonationAuditUpdateManyWithWhereWithoutTenantInput | Prisma.ImpersonationAuditUpdateManyWithWhereWithoutTenantInput[]
|
|
deleteMany?: Prisma.ImpersonationAuditScalarWhereInput | Prisma.ImpersonationAuditScalarWhereInput[]
|
|
}
|
|
|
|
export type ImpersonationAuditUncheckedUpdateManyWithoutTenantNestedInput = {
|
|
create?: Prisma.XOR<Prisma.ImpersonationAuditCreateWithoutTenantInput, Prisma.ImpersonationAuditUncheckedCreateWithoutTenantInput> | Prisma.ImpersonationAuditCreateWithoutTenantInput[] | Prisma.ImpersonationAuditUncheckedCreateWithoutTenantInput[]
|
|
connectOrCreate?: Prisma.ImpersonationAuditCreateOrConnectWithoutTenantInput | Prisma.ImpersonationAuditCreateOrConnectWithoutTenantInput[]
|
|
upsert?: Prisma.ImpersonationAuditUpsertWithWhereUniqueWithoutTenantInput | Prisma.ImpersonationAuditUpsertWithWhereUniqueWithoutTenantInput[]
|
|
createMany?: Prisma.ImpersonationAuditCreateManyTenantInputEnvelope
|
|
set?: Prisma.ImpersonationAuditWhereUniqueInput | Prisma.ImpersonationAuditWhereUniqueInput[]
|
|
disconnect?: Prisma.ImpersonationAuditWhereUniqueInput | Prisma.ImpersonationAuditWhereUniqueInput[]
|
|
delete?: Prisma.ImpersonationAuditWhereUniqueInput | Prisma.ImpersonationAuditWhereUniqueInput[]
|
|
connect?: Prisma.ImpersonationAuditWhereUniqueInput | Prisma.ImpersonationAuditWhereUniqueInput[]
|
|
update?: Prisma.ImpersonationAuditUpdateWithWhereUniqueWithoutTenantInput | Prisma.ImpersonationAuditUpdateWithWhereUniqueWithoutTenantInput[]
|
|
updateMany?: Prisma.ImpersonationAuditUpdateManyWithWhereWithoutTenantInput | Prisma.ImpersonationAuditUpdateManyWithWhereWithoutTenantInput[]
|
|
deleteMany?: Prisma.ImpersonationAuditScalarWhereInput | Prisma.ImpersonationAuditScalarWhereInput[]
|
|
}
|
|
|
|
export type ImpersonationAuditCreateWithoutActorInput = {
|
|
id?: string
|
|
createdAt?: Date | string
|
|
action: string
|
|
reason?: string | null
|
|
requestPath: string
|
|
metadata?: string | null
|
|
target?: Prisma.UserCreateNestedOneWithoutImpersonationAuditsTargetInput
|
|
tenant?: Prisma.TenantCreateNestedOneWithoutImpersonationAuditsInput
|
|
}
|
|
|
|
export type ImpersonationAuditUncheckedCreateWithoutActorInput = {
|
|
id?: string
|
|
createdAt?: Date | string
|
|
targetUserId?: string | null
|
|
tenantId?: string | null
|
|
action: string
|
|
reason?: string | null
|
|
requestPath: string
|
|
metadata?: string | null
|
|
}
|
|
|
|
export type ImpersonationAuditCreateOrConnectWithoutActorInput = {
|
|
where: Prisma.ImpersonationAuditWhereUniqueInput
|
|
create: Prisma.XOR<Prisma.ImpersonationAuditCreateWithoutActorInput, Prisma.ImpersonationAuditUncheckedCreateWithoutActorInput>
|
|
}
|
|
|
|
export type ImpersonationAuditCreateManyActorInputEnvelope = {
|
|
data: Prisma.ImpersonationAuditCreateManyActorInput | Prisma.ImpersonationAuditCreateManyActorInput[]
|
|
skipDuplicates?: boolean
|
|
}
|
|
|
|
export type ImpersonationAuditCreateWithoutTargetInput = {
|
|
id?: string
|
|
createdAt?: Date | string
|
|
action: string
|
|
reason?: string | null
|
|
requestPath: string
|
|
metadata?: string | null
|
|
actor?: Prisma.UserCreateNestedOneWithoutImpersonationAuditsActorInput
|
|
tenant?: Prisma.TenantCreateNestedOneWithoutImpersonationAuditsInput
|
|
}
|
|
|
|
export type ImpersonationAuditUncheckedCreateWithoutTargetInput = {
|
|
id?: string
|
|
createdAt?: Date | string
|
|
actorUserId?: string | null
|
|
tenantId?: string | null
|
|
action: string
|
|
reason?: string | null
|
|
requestPath: string
|
|
metadata?: string | null
|
|
}
|
|
|
|
export type ImpersonationAuditCreateOrConnectWithoutTargetInput = {
|
|
where: Prisma.ImpersonationAuditWhereUniqueInput
|
|
create: Prisma.XOR<Prisma.ImpersonationAuditCreateWithoutTargetInput, Prisma.ImpersonationAuditUncheckedCreateWithoutTargetInput>
|
|
}
|
|
|
|
export type ImpersonationAuditCreateManyTargetInputEnvelope = {
|
|
data: Prisma.ImpersonationAuditCreateManyTargetInput | Prisma.ImpersonationAuditCreateManyTargetInput[]
|
|
skipDuplicates?: boolean
|
|
}
|
|
|
|
export type ImpersonationAuditUpsertWithWhereUniqueWithoutActorInput = {
|
|
where: Prisma.ImpersonationAuditWhereUniqueInput
|
|
update: Prisma.XOR<Prisma.ImpersonationAuditUpdateWithoutActorInput, Prisma.ImpersonationAuditUncheckedUpdateWithoutActorInput>
|
|
create: Prisma.XOR<Prisma.ImpersonationAuditCreateWithoutActorInput, Prisma.ImpersonationAuditUncheckedCreateWithoutActorInput>
|
|
}
|
|
|
|
export type ImpersonationAuditUpdateWithWhereUniqueWithoutActorInput = {
|
|
where: Prisma.ImpersonationAuditWhereUniqueInput
|
|
data: Prisma.XOR<Prisma.ImpersonationAuditUpdateWithoutActorInput, Prisma.ImpersonationAuditUncheckedUpdateWithoutActorInput>
|
|
}
|
|
|
|
export type ImpersonationAuditUpdateManyWithWhereWithoutActorInput = {
|
|
where: Prisma.ImpersonationAuditScalarWhereInput
|
|
data: Prisma.XOR<Prisma.ImpersonationAuditUpdateManyMutationInput, Prisma.ImpersonationAuditUncheckedUpdateManyWithoutActorInput>
|
|
}
|
|
|
|
export type ImpersonationAuditScalarWhereInput = {
|
|
AND?: Prisma.ImpersonationAuditScalarWhereInput | Prisma.ImpersonationAuditScalarWhereInput[]
|
|
OR?: Prisma.ImpersonationAuditScalarWhereInput[]
|
|
NOT?: Prisma.ImpersonationAuditScalarWhereInput | Prisma.ImpersonationAuditScalarWhereInput[]
|
|
id?: Prisma.StringFilter<"ImpersonationAudit"> | string
|
|
createdAt?: Prisma.DateTimeFilter<"ImpersonationAudit"> | Date | string
|
|
actorUserId?: Prisma.StringNullableFilter<"ImpersonationAudit"> | string | null
|
|
targetUserId?: Prisma.StringNullableFilter<"ImpersonationAudit"> | string | null
|
|
tenantId?: Prisma.StringNullableFilter<"ImpersonationAudit"> | string | null
|
|
action?: Prisma.StringFilter<"ImpersonationAudit"> | string
|
|
reason?: Prisma.StringNullableFilter<"ImpersonationAudit"> | string | null
|
|
requestPath?: Prisma.StringFilter<"ImpersonationAudit"> | string
|
|
metadata?: Prisma.StringNullableFilter<"ImpersonationAudit"> | string | null
|
|
}
|
|
|
|
export type ImpersonationAuditUpsertWithWhereUniqueWithoutTargetInput = {
|
|
where: Prisma.ImpersonationAuditWhereUniqueInput
|
|
update: Prisma.XOR<Prisma.ImpersonationAuditUpdateWithoutTargetInput, Prisma.ImpersonationAuditUncheckedUpdateWithoutTargetInput>
|
|
create: Prisma.XOR<Prisma.ImpersonationAuditCreateWithoutTargetInput, Prisma.ImpersonationAuditUncheckedCreateWithoutTargetInput>
|
|
}
|
|
|
|
export type ImpersonationAuditUpdateWithWhereUniqueWithoutTargetInput = {
|
|
where: Prisma.ImpersonationAuditWhereUniqueInput
|
|
data: Prisma.XOR<Prisma.ImpersonationAuditUpdateWithoutTargetInput, Prisma.ImpersonationAuditUncheckedUpdateWithoutTargetInput>
|
|
}
|
|
|
|
export type ImpersonationAuditUpdateManyWithWhereWithoutTargetInput = {
|
|
where: Prisma.ImpersonationAuditScalarWhereInput
|
|
data: Prisma.XOR<Prisma.ImpersonationAuditUpdateManyMutationInput, Prisma.ImpersonationAuditUncheckedUpdateManyWithoutTargetInput>
|
|
}
|
|
|
|
export type ImpersonationAuditCreateWithoutTenantInput = {
|
|
id?: string
|
|
createdAt?: Date | string
|
|
action: string
|
|
reason?: string | null
|
|
requestPath: string
|
|
metadata?: string | null
|
|
actor?: Prisma.UserCreateNestedOneWithoutImpersonationAuditsActorInput
|
|
target?: Prisma.UserCreateNestedOneWithoutImpersonationAuditsTargetInput
|
|
}
|
|
|
|
export type ImpersonationAuditUncheckedCreateWithoutTenantInput = {
|
|
id?: string
|
|
createdAt?: Date | string
|
|
actorUserId?: string | null
|
|
targetUserId?: string | null
|
|
action: string
|
|
reason?: string | null
|
|
requestPath: string
|
|
metadata?: string | null
|
|
}
|
|
|
|
export type ImpersonationAuditCreateOrConnectWithoutTenantInput = {
|
|
where: Prisma.ImpersonationAuditWhereUniqueInput
|
|
create: Prisma.XOR<Prisma.ImpersonationAuditCreateWithoutTenantInput, Prisma.ImpersonationAuditUncheckedCreateWithoutTenantInput>
|
|
}
|
|
|
|
export type ImpersonationAuditCreateManyTenantInputEnvelope = {
|
|
data: Prisma.ImpersonationAuditCreateManyTenantInput | Prisma.ImpersonationAuditCreateManyTenantInput[]
|
|
skipDuplicates?: boolean
|
|
}
|
|
|
|
export type ImpersonationAuditUpsertWithWhereUniqueWithoutTenantInput = {
|
|
where: Prisma.ImpersonationAuditWhereUniqueInput
|
|
update: Prisma.XOR<Prisma.ImpersonationAuditUpdateWithoutTenantInput, Prisma.ImpersonationAuditUncheckedUpdateWithoutTenantInput>
|
|
create: Prisma.XOR<Prisma.ImpersonationAuditCreateWithoutTenantInput, Prisma.ImpersonationAuditUncheckedCreateWithoutTenantInput>
|
|
}
|
|
|
|
export type ImpersonationAuditUpdateWithWhereUniqueWithoutTenantInput = {
|
|
where: Prisma.ImpersonationAuditWhereUniqueInput
|
|
data: Prisma.XOR<Prisma.ImpersonationAuditUpdateWithoutTenantInput, Prisma.ImpersonationAuditUncheckedUpdateWithoutTenantInput>
|
|
}
|
|
|
|
export type ImpersonationAuditUpdateManyWithWhereWithoutTenantInput = {
|
|
where: Prisma.ImpersonationAuditScalarWhereInput
|
|
data: Prisma.XOR<Prisma.ImpersonationAuditUpdateManyMutationInput, Prisma.ImpersonationAuditUncheckedUpdateManyWithoutTenantInput>
|
|
}
|
|
|
|
export type ImpersonationAuditCreateManyActorInput = {
|
|
id?: string
|
|
createdAt?: Date | string
|
|
targetUserId?: string | null
|
|
tenantId?: string | null
|
|
action: string
|
|
reason?: string | null
|
|
requestPath: string
|
|
metadata?: string | null
|
|
}
|
|
|
|
export type ImpersonationAuditCreateManyTargetInput = {
|
|
id?: string
|
|
createdAt?: Date | string
|
|
actorUserId?: string | null
|
|
tenantId?: string | null
|
|
action: string
|
|
reason?: string | null
|
|
requestPath: string
|
|
metadata?: string | null
|
|
}
|
|
|
|
export type ImpersonationAuditUpdateWithoutActorInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
action?: Prisma.StringFieldUpdateOperationsInput | string
|
|
reason?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
requestPath?: Prisma.StringFieldUpdateOperationsInput | string
|
|
metadata?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
target?: Prisma.UserUpdateOneWithoutImpersonationAuditsTargetNestedInput
|
|
tenant?: Prisma.TenantUpdateOneWithoutImpersonationAuditsNestedInput
|
|
}
|
|
|
|
export type ImpersonationAuditUncheckedUpdateWithoutActorInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
targetUserId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
tenantId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
action?: Prisma.StringFieldUpdateOperationsInput | string
|
|
reason?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
requestPath?: Prisma.StringFieldUpdateOperationsInput | string
|
|
metadata?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
}
|
|
|
|
export type ImpersonationAuditUncheckedUpdateManyWithoutActorInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
targetUserId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
tenantId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
action?: Prisma.StringFieldUpdateOperationsInput | string
|
|
reason?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
requestPath?: Prisma.StringFieldUpdateOperationsInput | string
|
|
metadata?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
}
|
|
|
|
export type ImpersonationAuditUpdateWithoutTargetInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
action?: Prisma.StringFieldUpdateOperationsInput | string
|
|
reason?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
requestPath?: Prisma.StringFieldUpdateOperationsInput | string
|
|
metadata?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
actor?: Prisma.UserUpdateOneWithoutImpersonationAuditsActorNestedInput
|
|
tenant?: Prisma.TenantUpdateOneWithoutImpersonationAuditsNestedInput
|
|
}
|
|
|
|
export type ImpersonationAuditUncheckedUpdateWithoutTargetInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
actorUserId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
tenantId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
action?: Prisma.StringFieldUpdateOperationsInput | string
|
|
reason?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
requestPath?: Prisma.StringFieldUpdateOperationsInput | string
|
|
metadata?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
}
|
|
|
|
export type ImpersonationAuditUncheckedUpdateManyWithoutTargetInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
actorUserId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
tenantId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
action?: Prisma.StringFieldUpdateOperationsInput | string
|
|
reason?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
requestPath?: Prisma.StringFieldUpdateOperationsInput | string
|
|
metadata?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
}
|
|
|
|
export type ImpersonationAuditCreateManyTenantInput = {
|
|
id?: string
|
|
createdAt?: Date | string
|
|
actorUserId?: string | null
|
|
targetUserId?: string | null
|
|
action: string
|
|
reason?: string | null
|
|
requestPath: string
|
|
metadata?: string | null
|
|
}
|
|
|
|
export type ImpersonationAuditUpdateWithoutTenantInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
action?: Prisma.StringFieldUpdateOperationsInput | string
|
|
reason?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
requestPath?: Prisma.StringFieldUpdateOperationsInput | string
|
|
metadata?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
actor?: Prisma.UserUpdateOneWithoutImpersonationAuditsActorNestedInput
|
|
target?: Prisma.UserUpdateOneWithoutImpersonationAuditsTargetNestedInput
|
|
}
|
|
|
|
export type ImpersonationAuditUncheckedUpdateWithoutTenantInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
actorUserId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
targetUserId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
action?: Prisma.StringFieldUpdateOperationsInput | string
|
|
reason?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
requestPath?: Prisma.StringFieldUpdateOperationsInput | string
|
|
metadata?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
}
|
|
|
|
export type ImpersonationAuditUncheckedUpdateManyWithoutTenantInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
actorUserId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
targetUserId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
action?: Prisma.StringFieldUpdateOperationsInput | string
|
|
reason?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
requestPath?: Prisma.StringFieldUpdateOperationsInput | string
|
|
metadata?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
}
|
|
|
|
|
|
|
|
export type ImpersonationAuditSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
id?: boolean
|
|
createdAt?: boolean
|
|
actorUserId?: boolean
|
|
targetUserId?: boolean
|
|
tenantId?: boolean
|
|
action?: boolean
|
|
reason?: boolean
|
|
requestPath?: boolean
|
|
metadata?: boolean
|
|
actor?: boolean | Prisma.ImpersonationAudit$actorArgs<ExtArgs>
|
|
target?: boolean | Prisma.ImpersonationAudit$targetArgs<ExtArgs>
|
|
tenant?: boolean | Prisma.ImpersonationAudit$tenantArgs<ExtArgs>
|
|
}, ExtArgs["result"]["impersonationAudit"]>
|
|
|
|
export type ImpersonationAuditSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
id?: boolean
|
|
createdAt?: boolean
|
|
actorUserId?: boolean
|
|
targetUserId?: boolean
|
|
tenantId?: boolean
|
|
action?: boolean
|
|
reason?: boolean
|
|
requestPath?: boolean
|
|
metadata?: boolean
|
|
actor?: boolean | Prisma.ImpersonationAudit$actorArgs<ExtArgs>
|
|
target?: boolean | Prisma.ImpersonationAudit$targetArgs<ExtArgs>
|
|
tenant?: boolean | Prisma.ImpersonationAudit$tenantArgs<ExtArgs>
|
|
}, ExtArgs["result"]["impersonationAudit"]>
|
|
|
|
export type ImpersonationAuditSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
id?: boolean
|
|
createdAt?: boolean
|
|
actorUserId?: boolean
|
|
targetUserId?: boolean
|
|
tenantId?: boolean
|
|
action?: boolean
|
|
reason?: boolean
|
|
requestPath?: boolean
|
|
metadata?: boolean
|
|
actor?: boolean | Prisma.ImpersonationAudit$actorArgs<ExtArgs>
|
|
target?: boolean | Prisma.ImpersonationAudit$targetArgs<ExtArgs>
|
|
tenant?: boolean | Prisma.ImpersonationAudit$tenantArgs<ExtArgs>
|
|
}, ExtArgs["result"]["impersonationAudit"]>
|
|
|
|
export type ImpersonationAuditSelectScalar = {
|
|
id?: boolean
|
|
createdAt?: boolean
|
|
actorUserId?: boolean
|
|
targetUserId?: boolean
|
|
tenantId?: boolean
|
|
action?: boolean
|
|
reason?: boolean
|
|
requestPath?: boolean
|
|
metadata?: boolean
|
|
}
|
|
|
|
export type ImpersonationAuditOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "createdAt" | "actorUserId" | "targetUserId" | "tenantId" | "action" | "reason" | "requestPath" | "metadata", ExtArgs["result"]["impersonationAudit"]>
|
|
export type ImpersonationAuditInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
actor?: boolean | Prisma.ImpersonationAudit$actorArgs<ExtArgs>
|
|
target?: boolean | Prisma.ImpersonationAudit$targetArgs<ExtArgs>
|
|
tenant?: boolean | Prisma.ImpersonationAudit$tenantArgs<ExtArgs>
|
|
}
|
|
export type ImpersonationAuditIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
actor?: boolean | Prisma.ImpersonationAudit$actorArgs<ExtArgs>
|
|
target?: boolean | Prisma.ImpersonationAudit$targetArgs<ExtArgs>
|
|
tenant?: boolean | Prisma.ImpersonationAudit$tenantArgs<ExtArgs>
|
|
}
|
|
export type ImpersonationAuditIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
actor?: boolean | Prisma.ImpersonationAudit$actorArgs<ExtArgs>
|
|
target?: boolean | Prisma.ImpersonationAudit$targetArgs<ExtArgs>
|
|
tenant?: boolean | Prisma.ImpersonationAudit$tenantArgs<ExtArgs>
|
|
}
|
|
|
|
export type $ImpersonationAuditPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
name: "ImpersonationAudit"
|
|
objects: {
|
|
actor: Prisma.$UserPayload<ExtArgs> | null
|
|
target: Prisma.$UserPayload<ExtArgs> | null
|
|
tenant: Prisma.$TenantPayload<ExtArgs> | null
|
|
}
|
|
scalars: runtime.Types.Extensions.GetPayloadResult<{
|
|
id: string
|
|
createdAt: Date
|
|
actorUserId: string | null
|
|
targetUserId: string | null
|
|
tenantId: string | null
|
|
action: string
|
|
reason: string | null
|
|
requestPath: string
|
|
metadata: string | null
|
|
}, ExtArgs["result"]["impersonationAudit"]>
|
|
composites: {}
|
|
}
|
|
|
|
export type ImpersonationAuditGetPayload<S extends boolean | null | undefined | ImpersonationAuditDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$ImpersonationAuditPayload, S>
|
|
|
|
export type ImpersonationAuditCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> =
|
|
Omit<ImpersonationAuditFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
|
|
select?: ImpersonationAuditCountAggregateInputType | true
|
|
}
|
|
|
|
export interface ImpersonationAuditDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
|
|
[K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['ImpersonationAudit'], meta: { name: 'ImpersonationAudit' } }
|
|
/**
|
|
* Find zero or one ImpersonationAudit that matches the filter.
|
|
* @param {ImpersonationAuditFindUniqueArgs} args - Arguments to find a ImpersonationAudit
|
|
* @example
|
|
* // Get one ImpersonationAudit
|
|
* const impersonationAudit = await prisma.impersonationAudit.findUnique({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findUnique<T extends ImpersonationAuditFindUniqueArgs>(args: Prisma.SelectSubset<T, ImpersonationAuditFindUniqueArgs<ExtArgs>>): Prisma.Prisma__ImpersonationAuditClient<runtime.Types.Result.GetResult<Prisma.$ImpersonationAuditPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Find one ImpersonationAudit that matches the filter or throw an error with `error.code='P2025'`
|
|
* if no matches were found.
|
|
* @param {ImpersonationAuditFindUniqueOrThrowArgs} args - Arguments to find a ImpersonationAudit
|
|
* @example
|
|
* // Get one ImpersonationAudit
|
|
* const impersonationAudit = await prisma.impersonationAudit.findUniqueOrThrow({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findUniqueOrThrow<T extends ImpersonationAuditFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, ImpersonationAuditFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__ImpersonationAuditClient<runtime.Types.Result.GetResult<Prisma.$ImpersonationAuditPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Find the first ImpersonationAudit 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 {ImpersonationAuditFindFirstArgs} args - Arguments to find a ImpersonationAudit
|
|
* @example
|
|
* // Get one ImpersonationAudit
|
|
* const impersonationAudit = await prisma.impersonationAudit.findFirst({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findFirst<T extends ImpersonationAuditFindFirstArgs>(args?: Prisma.SelectSubset<T, ImpersonationAuditFindFirstArgs<ExtArgs>>): Prisma.Prisma__ImpersonationAuditClient<runtime.Types.Result.GetResult<Prisma.$ImpersonationAuditPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Find the first ImpersonationAudit 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 {ImpersonationAuditFindFirstOrThrowArgs} args - Arguments to find a ImpersonationAudit
|
|
* @example
|
|
* // Get one ImpersonationAudit
|
|
* const impersonationAudit = await prisma.impersonationAudit.findFirstOrThrow({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findFirstOrThrow<T extends ImpersonationAuditFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, ImpersonationAuditFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__ImpersonationAuditClient<runtime.Types.Result.GetResult<Prisma.$ImpersonationAuditPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Find zero or more ImpersonationAudits 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 {ImpersonationAuditFindManyArgs} args - Arguments to filter and select certain fields only.
|
|
* @example
|
|
* // Get all ImpersonationAudits
|
|
* const impersonationAudits = await prisma.impersonationAudit.findMany()
|
|
*
|
|
* // Get first 10 ImpersonationAudits
|
|
* const impersonationAudits = await prisma.impersonationAudit.findMany({ take: 10 })
|
|
*
|
|
* // Only select the `id`
|
|
* const impersonationAuditWithIdOnly = await prisma.impersonationAudit.findMany({ select: { id: true } })
|
|
*
|
|
*/
|
|
findMany<T extends ImpersonationAuditFindManyArgs>(args?: Prisma.SelectSubset<T, ImpersonationAuditFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$ImpersonationAuditPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
|
|
|
|
/**
|
|
* Create a ImpersonationAudit.
|
|
* @param {ImpersonationAuditCreateArgs} args - Arguments to create a ImpersonationAudit.
|
|
* @example
|
|
* // Create one ImpersonationAudit
|
|
* const ImpersonationAudit = await prisma.impersonationAudit.create({
|
|
* data: {
|
|
* // ... data to create a ImpersonationAudit
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
create<T extends ImpersonationAuditCreateArgs>(args: Prisma.SelectSubset<T, ImpersonationAuditCreateArgs<ExtArgs>>): Prisma.Prisma__ImpersonationAuditClient<runtime.Types.Result.GetResult<Prisma.$ImpersonationAuditPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Create many ImpersonationAudits.
|
|
* @param {ImpersonationAuditCreateManyArgs} args - Arguments to create many ImpersonationAudits.
|
|
* @example
|
|
* // Create many ImpersonationAudits
|
|
* const impersonationAudit = await prisma.impersonationAudit.createMany({
|
|
* data: [
|
|
* // ... provide data here
|
|
* ]
|
|
* })
|
|
*
|
|
*/
|
|
createMany<T extends ImpersonationAuditCreateManyArgs>(args?: Prisma.SelectSubset<T, ImpersonationAuditCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
|
|
|
/**
|
|
* Create many ImpersonationAudits and returns the data saved in the database.
|
|
* @param {ImpersonationAuditCreateManyAndReturnArgs} args - Arguments to create many ImpersonationAudits.
|
|
* @example
|
|
* // Create many ImpersonationAudits
|
|
* const impersonationAudit = await prisma.impersonationAudit.createManyAndReturn({
|
|
* data: [
|
|
* // ... provide data here
|
|
* ]
|
|
* })
|
|
*
|
|
* // Create many ImpersonationAudits and only return the `id`
|
|
* const impersonationAuditWithIdOnly = await prisma.impersonationAudit.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 ImpersonationAuditCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, ImpersonationAuditCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$ImpersonationAuditPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>
|
|
|
|
/**
|
|
* Delete a ImpersonationAudit.
|
|
* @param {ImpersonationAuditDeleteArgs} args - Arguments to delete one ImpersonationAudit.
|
|
* @example
|
|
* // Delete one ImpersonationAudit
|
|
* const ImpersonationAudit = await prisma.impersonationAudit.delete({
|
|
* where: {
|
|
* // ... filter to delete one ImpersonationAudit
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
delete<T extends ImpersonationAuditDeleteArgs>(args: Prisma.SelectSubset<T, ImpersonationAuditDeleteArgs<ExtArgs>>): Prisma.Prisma__ImpersonationAuditClient<runtime.Types.Result.GetResult<Prisma.$ImpersonationAuditPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Update one ImpersonationAudit.
|
|
* @param {ImpersonationAuditUpdateArgs} args - Arguments to update one ImpersonationAudit.
|
|
* @example
|
|
* // Update one ImpersonationAudit
|
|
* const impersonationAudit = await prisma.impersonationAudit.update({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* },
|
|
* data: {
|
|
* // ... provide data here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
update<T extends ImpersonationAuditUpdateArgs>(args: Prisma.SelectSubset<T, ImpersonationAuditUpdateArgs<ExtArgs>>): Prisma.Prisma__ImpersonationAuditClient<runtime.Types.Result.GetResult<Prisma.$ImpersonationAuditPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Delete zero or more ImpersonationAudits.
|
|
* @param {ImpersonationAuditDeleteManyArgs} args - Arguments to filter ImpersonationAudits to delete.
|
|
* @example
|
|
* // Delete a few ImpersonationAudits
|
|
* const { count } = await prisma.impersonationAudit.deleteMany({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
deleteMany<T extends ImpersonationAuditDeleteManyArgs>(args?: Prisma.SelectSubset<T, ImpersonationAuditDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
|
|
|
/**
|
|
* Update zero or more ImpersonationAudits.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {ImpersonationAuditUpdateManyArgs} args - Arguments to update one or more rows.
|
|
* @example
|
|
* // Update many ImpersonationAudits
|
|
* const impersonationAudit = await prisma.impersonationAudit.updateMany({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* },
|
|
* data: {
|
|
* // ... provide data here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
updateMany<T extends ImpersonationAuditUpdateManyArgs>(args: Prisma.SelectSubset<T, ImpersonationAuditUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
|
|
|
/**
|
|
* Update zero or more ImpersonationAudits and returns the data updated in the database.
|
|
* @param {ImpersonationAuditUpdateManyAndReturnArgs} args - Arguments to update many ImpersonationAudits.
|
|
* @example
|
|
* // Update many ImpersonationAudits
|
|
* const impersonationAudit = await prisma.impersonationAudit.updateManyAndReturn({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* },
|
|
* data: [
|
|
* // ... provide data here
|
|
* ]
|
|
* })
|
|
*
|
|
* // Update zero or more ImpersonationAudits and only return the `id`
|
|
* const impersonationAuditWithIdOnly = await prisma.impersonationAudit.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 ImpersonationAuditUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, ImpersonationAuditUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$ImpersonationAuditPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>
|
|
|
|
/**
|
|
* Create or update one ImpersonationAudit.
|
|
* @param {ImpersonationAuditUpsertArgs} args - Arguments to update or create a ImpersonationAudit.
|
|
* @example
|
|
* // Update or create a ImpersonationAudit
|
|
* const impersonationAudit = await prisma.impersonationAudit.upsert({
|
|
* create: {
|
|
* // ... data to create a ImpersonationAudit
|
|
* },
|
|
* update: {
|
|
* // ... in case it already exists, update
|
|
* },
|
|
* where: {
|
|
* // ... the filter for the ImpersonationAudit we want to update
|
|
* }
|
|
* })
|
|
*/
|
|
upsert<T extends ImpersonationAuditUpsertArgs>(args: Prisma.SelectSubset<T, ImpersonationAuditUpsertArgs<ExtArgs>>): Prisma.Prisma__ImpersonationAuditClient<runtime.Types.Result.GetResult<Prisma.$ImpersonationAuditPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
|
|
/**
|
|
* Count the number of ImpersonationAudits.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {ImpersonationAuditCountArgs} args - Arguments to filter ImpersonationAudits to count.
|
|
* @example
|
|
* // Count the number of ImpersonationAudits
|
|
* const count = await prisma.impersonationAudit.count({
|
|
* where: {
|
|
* // ... the filter for the ImpersonationAudits we want to count
|
|
* }
|
|
* })
|
|
**/
|
|
count<T extends ImpersonationAuditCountArgs>(
|
|
args?: Prisma.Subset<T, ImpersonationAuditCountArgs>,
|
|
): Prisma.PrismaPromise<
|
|
T extends runtime.Types.Utils.Record<'select', any>
|
|
? T['select'] extends true
|
|
? number
|
|
: Prisma.GetScalarType<T['select'], ImpersonationAuditCountAggregateOutputType>
|
|
: number
|
|
>
|
|
|
|
/**
|
|
* Allows you to perform aggregations operations on a ImpersonationAudit.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {ImpersonationAuditAggregateArgs} 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 ImpersonationAuditAggregateArgs>(args: Prisma.Subset<T, ImpersonationAuditAggregateArgs>): Prisma.PrismaPromise<GetImpersonationAuditAggregateType<T>>
|
|
|
|
/**
|
|
* Group by ImpersonationAudit.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {ImpersonationAuditGroupByArgs} 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 ImpersonationAuditGroupByArgs,
|
|
HasSelectOrTake extends Prisma.Or<
|
|
Prisma.Extends<'skip', Prisma.Keys<T>>,
|
|
Prisma.Extends<'take', Prisma.Keys<T>>
|
|
>,
|
|
OrderByArg extends Prisma.True extends HasSelectOrTake
|
|
? { orderBy: ImpersonationAuditGroupByArgs['orderBy'] }
|
|
: { orderBy?: ImpersonationAuditGroupByArgs['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, ImpersonationAuditGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetImpersonationAuditGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
|
|
/**
|
|
* Fields of the ImpersonationAudit model
|
|
*/
|
|
readonly fields: ImpersonationAuditFieldRefs;
|
|
}
|
|
|
|
/**
|
|
* The delegate class that acts as a "Promise-like" for ImpersonationAudit.
|
|
* 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__ImpersonationAuditClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
|
|
readonly [Symbol.toStringTag]: "PrismaPromise"
|
|
actor<T extends Prisma.ImpersonationAudit$actorArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.ImpersonationAudit$actorArgs<ExtArgs>>): Prisma.Prisma__UserClient<runtime.Types.Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
|
|
target<T extends Prisma.ImpersonationAudit$targetArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.ImpersonationAudit$targetArgs<ExtArgs>>): Prisma.Prisma__UserClient<runtime.Types.Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
|
|
tenant<T extends Prisma.ImpersonationAudit$tenantArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.ImpersonationAudit$tenantArgs<ExtArgs>>): Prisma.Prisma__TenantClient<runtime.Types.Result.GetResult<Prisma.$TenantPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
|
|
/**
|
|
* 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 ImpersonationAudit model
|
|
*/
|
|
export interface ImpersonationAuditFieldRefs {
|
|
readonly id: Prisma.FieldRef<"ImpersonationAudit", 'String'>
|
|
readonly createdAt: Prisma.FieldRef<"ImpersonationAudit", 'DateTime'>
|
|
readonly actorUserId: Prisma.FieldRef<"ImpersonationAudit", 'String'>
|
|
readonly targetUserId: Prisma.FieldRef<"ImpersonationAudit", 'String'>
|
|
readonly tenantId: Prisma.FieldRef<"ImpersonationAudit", 'String'>
|
|
readonly action: Prisma.FieldRef<"ImpersonationAudit", 'String'>
|
|
readonly reason: Prisma.FieldRef<"ImpersonationAudit", 'String'>
|
|
readonly requestPath: Prisma.FieldRef<"ImpersonationAudit", 'String'>
|
|
readonly metadata: Prisma.FieldRef<"ImpersonationAudit", 'String'>
|
|
}
|
|
|
|
|
|
// Custom InputTypes
|
|
/**
|
|
* ImpersonationAudit findUnique
|
|
*/
|
|
export type ImpersonationAuditFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the ImpersonationAudit
|
|
*/
|
|
select?: Prisma.ImpersonationAuditSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the ImpersonationAudit
|
|
*/
|
|
omit?: Prisma.ImpersonationAuditOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.ImpersonationAuditInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which ImpersonationAudit to fetch.
|
|
*/
|
|
where: Prisma.ImpersonationAuditWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* ImpersonationAudit findUniqueOrThrow
|
|
*/
|
|
export type ImpersonationAuditFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the ImpersonationAudit
|
|
*/
|
|
select?: Prisma.ImpersonationAuditSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the ImpersonationAudit
|
|
*/
|
|
omit?: Prisma.ImpersonationAuditOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.ImpersonationAuditInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which ImpersonationAudit to fetch.
|
|
*/
|
|
where: Prisma.ImpersonationAuditWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* ImpersonationAudit findFirst
|
|
*/
|
|
export type ImpersonationAuditFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the ImpersonationAudit
|
|
*/
|
|
select?: Prisma.ImpersonationAuditSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the ImpersonationAudit
|
|
*/
|
|
omit?: Prisma.ImpersonationAuditOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.ImpersonationAuditInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which ImpersonationAudit to fetch.
|
|
*/
|
|
where?: Prisma.ImpersonationAuditWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of ImpersonationAudits to fetch.
|
|
*/
|
|
orderBy?: Prisma.ImpersonationAuditOrderByWithRelationInput | Prisma.ImpersonationAuditOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for searching for ImpersonationAudits.
|
|
*/
|
|
cursor?: Prisma.ImpersonationAuditWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` ImpersonationAudits 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` ImpersonationAudits.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
*
|
|
* Filter by unique combinations of ImpersonationAudits.
|
|
*/
|
|
distinct?: Prisma.ImpersonationAuditScalarFieldEnum | Prisma.ImpersonationAuditScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* ImpersonationAudit findFirstOrThrow
|
|
*/
|
|
export type ImpersonationAuditFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the ImpersonationAudit
|
|
*/
|
|
select?: Prisma.ImpersonationAuditSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the ImpersonationAudit
|
|
*/
|
|
omit?: Prisma.ImpersonationAuditOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.ImpersonationAuditInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which ImpersonationAudit to fetch.
|
|
*/
|
|
where?: Prisma.ImpersonationAuditWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of ImpersonationAudits to fetch.
|
|
*/
|
|
orderBy?: Prisma.ImpersonationAuditOrderByWithRelationInput | Prisma.ImpersonationAuditOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for searching for ImpersonationAudits.
|
|
*/
|
|
cursor?: Prisma.ImpersonationAuditWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` ImpersonationAudits 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` ImpersonationAudits.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
*
|
|
* Filter by unique combinations of ImpersonationAudits.
|
|
*/
|
|
distinct?: Prisma.ImpersonationAuditScalarFieldEnum | Prisma.ImpersonationAuditScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* ImpersonationAudit findMany
|
|
*/
|
|
export type ImpersonationAuditFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the ImpersonationAudit
|
|
*/
|
|
select?: Prisma.ImpersonationAuditSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the ImpersonationAudit
|
|
*/
|
|
omit?: Prisma.ImpersonationAuditOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.ImpersonationAuditInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which ImpersonationAudits to fetch.
|
|
*/
|
|
where?: Prisma.ImpersonationAuditWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of ImpersonationAudits to fetch.
|
|
*/
|
|
orderBy?: Prisma.ImpersonationAuditOrderByWithRelationInput | Prisma.ImpersonationAuditOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for listing ImpersonationAudits.
|
|
*/
|
|
cursor?: Prisma.ImpersonationAuditWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` ImpersonationAudits 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` ImpersonationAudits.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
*
|
|
* Filter by unique combinations of ImpersonationAudits.
|
|
*/
|
|
distinct?: Prisma.ImpersonationAuditScalarFieldEnum | Prisma.ImpersonationAuditScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* ImpersonationAudit create
|
|
*/
|
|
export type ImpersonationAuditCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the ImpersonationAudit
|
|
*/
|
|
select?: Prisma.ImpersonationAuditSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the ImpersonationAudit
|
|
*/
|
|
omit?: Prisma.ImpersonationAuditOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.ImpersonationAuditInclude<ExtArgs> | null
|
|
/**
|
|
* The data needed to create a ImpersonationAudit.
|
|
*/
|
|
data: Prisma.XOR<Prisma.ImpersonationAuditCreateInput, Prisma.ImpersonationAuditUncheckedCreateInput>
|
|
}
|
|
|
|
/**
|
|
* ImpersonationAudit createMany
|
|
*/
|
|
export type ImpersonationAuditCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* The data used to create many ImpersonationAudits.
|
|
*/
|
|
data: Prisma.ImpersonationAuditCreateManyInput | Prisma.ImpersonationAuditCreateManyInput[]
|
|
skipDuplicates?: boolean
|
|
}
|
|
|
|
/**
|
|
* ImpersonationAudit createManyAndReturn
|
|
*/
|
|
export type ImpersonationAuditCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the ImpersonationAudit
|
|
*/
|
|
select?: Prisma.ImpersonationAuditSelectCreateManyAndReturn<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the ImpersonationAudit
|
|
*/
|
|
omit?: Prisma.ImpersonationAuditOmit<ExtArgs> | null
|
|
/**
|
|
* The data used to create many ImpersonationAudits.
|
|
*/
|
|
data: Prisma.ImpersonationAuditCreateManyInput | Prisma.ImpersonationAuditCreateManyInput[]
|
|
skipDuplicates?: boolean
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.ImpersonationAuditIncludeCreateManyAndReturn<ExtArgs> | null
|
|
}
|
|
|
|
/**
|
|
* ImpersonationAudit update
|
|
*/
|
|
export type ImpersonationAuditUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the ImpersonationAudit
|
|
*/
|
|
select?: Prisma.ImpersonationAuditSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the ImpersonationAudit
|
|
*/
|
|
omit?: Prisma.ImpersonationAuditOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.ImpersonationAuditInclude<ExtArgs> | null
|
|
/**
|
|
* The data needed to update a ImpersonationAudit.
|
|
*/
|
|
data: Prisma.XOR<Prisma.ImpersonationAuditUpdateInput, Prisma.ImpersonationAuditUncheckedUpdateInput>
|
|
/**
|
|
* Choose, which ImpersonationAudit to update.
|
|
*/
|
|
where: Prisma.ImpersonationAuditWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* ImpersonationAudit updateMany
|
|
*/
|
|
export type ImpersonationAuditUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* The data used to update ImpersonationAudits.
|
|
*/
|
|
data: Prisma.XOR<Prisma.ImpersonationAuditUpdateManyMutationInput, Prisma.ImpersonationAuditUncheckedUpdateManyInput>
|
|
/**
|
|
* Filter which ImpersonationAudits to update
|
|
*/
|
|
where?: Prisma.ImpersonationAuditWhereInput
|
|
/**
|
|
* Limit how many ImpersonationAudits to update.
|
|
*/
|
|
limit?: number
|
|
}
|
|
|
|
/**
|
|
* ImpersonationAudit updateManyAndReturn
|
|
*/
|
|
export type ImpersonationAuditUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the ImpersonationAudit
|
|
*/
|
|
select?: Prisma.ImpersonationAuditSelectUpdateManyAndReturn<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the ImpersonationAudit
|
|
*/
|
|
omit?: Prisma.ImpersonationAuditOmit<ExtArgs> | null
|
|
/**
|
|
* The data used to update ImpersonationAudits.
|
|
*/
|
|
data: Prisma.XOR<Prisma.ImpersonationAuditUpdateManyMutationInput, Prisma.ImpersonationAuditUncheckedUpdateManyInput>
|
|
/**
|
|
* Filter which ImpersonationAudits to update
|
|
*/
|
|
where?: Prisma.ImpersonationAuditWhereInput
|
|
/**
|
|
* Limit how many ImpersonationAudits to update.
|
|
*/
|
|
limit?: number
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.ImpersonationAuditIncludeUpdateManyAndReturn<ExtArgs> | null
|
|
}
|
|
|
|
/**
|
|
* ImpersonationAudit upsert
|
|
*/
|
|
export type ImpersonationAuditUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the ImpersonationAudit
|
|
*/
|
|
select?: Prisma.ImpersonationAuditSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the ImpersonationAudit
|
|
*/
|
|
omit?: Prisma.ImpersonationAuditOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.ImpersonationAuditInclude<ExtArgs> | null
|
|
/**
|
|
* The filter to search for the ImpersonationAudit to update in case it exists.
|
|
*/
|
|
where: Prisma.ImpersonationAuditWhereUniqueInput
|
|
/**
|
|
* In case the ImpersonationAudit found by the `where` argument doesn't exist, create a new ImpersonationAudit with this data.
|
|
*/
|
|
create: Prisma.XOR<Prisma.ImpersonationAuditCreateInput, Prisma.ImpersonationAuditUncheckedCreateInput>
|
|
/**
|
|
* In case the ImpersonationAudit was found with the provided `where` argument, update it with this data.
|
|
*/
|
|
update: Prisma.XOR<Prisma.ImpersonationAuditUpdateInput, Prisma.ImpersonationAuditUncheckedUpdateInput>
|
|
}
|
|
|
|
/**
|
|
* ImpersonationAudit delete
|
|
*/
|
|
export type ImpersonationAuditDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the ImpersonationAudit
|
|
*/
|
|
select?: Prisma.ImpersonationAuditSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the ImpersonationAudit
|
|
*/
|
|
omit?: Prisma.ImpersonationAuditOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.ImpersonationAuditInclude<ExtArgs> | null
|
|
/**
|
|
* Filter which ImpersonationAudit to delete.
|
|
*/
|
|
where: Prisma.ImpersonationAuditWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* ImpersonationAudit deleteMany
|
|
*/
|
|
export type ImpersonationAuditDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Filter which ImpersonationAudits to delete
|
|
*/
|
|
where?: Prisma.ImpersonationAuditWhereInput
|
|
/**
|
|
* Limit how many ImpersonationAudits to delete.
|
|
*/
|
|
limit?: number
|
|
}
|
|
|
|
/**
|
|
* ImpersonationAudit.actor
|
|
*/
|
|
export type ImpersonationAudit$actorArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the User
|
|
*/
|
|
select?: Prisma.UserSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the User
|
|
*/
|
|
omit?: Prisma.UserOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.UserInclude<ExtArgs> | null
|
|
where?: Prisma.UserWhereInput
|
|
}
|
|
|
|
/**
|
|
* ImpersonationAudit.target
|
|
*/
|
|
export type ImpersonationAudit$targetArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the User
|
|
*/
|
|
select?: Prisma.UserSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the User
|
|
*/
|
|
omit?: Prisma.UserOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.UserInclude<ExtArgs> | null
|
|
where?: Prisma.UserWhereInput
|
|
}
|
|
|
|
/**
|
|
* ImpersonationAudit.tenant
|
|
*/
|
|
export type ImpersonationAudit$tenantArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the Tenant
|
|
*/
|
|
select?: Prisma.TenantSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the Tenant
|
|
*/
|
|
omit?: Prisma.TenantOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.TenantInclude<ExtArgs> | null
|
|
where?: Prisma.TenantWhereInput
|
|
}
|
|
|
|
/**
|
|
* ImpersonationAudit without action
|
|
*/
|
|
export type ImpersonationAuditDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the ImpersonationAudit
|
|
*/
|
|
select?: Prisma.ImpersonationAuditSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the ImpersonationAudit
|
|
*/
|
|
omit?: Prisma.ImpersonationAuditOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.ImpersonationAuditInclude<ExtArgs> | null
|
|
}
|