1425 lines
58 KiB
TypeScript
1425 lines
58 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 `HrSurveySubmission` 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 HrSurveySubmission
|
|
* One submission to a survey. For identified surveys `submitterUserId` is set
|
|
* and unique per survey; for anonymous surveys it is null and `submitterHash`
|
|
* (a non-reversible per-survey hash of the user) enforces one-submission
|
|
* without re-identification. `answers` maps item id → answer value.
|
|
*/
|
|
export type HrSurveySubmissionModel = runtime.Types.Result.DefaultSelection<Prisma.$HrSurveySubmissionPayload>
|
|
|
|
export type AggregateHrSurveySubmission = {
|
|
_count: HrSurveySubmissionCountAggregateOutputType | null
|
|
_min: HrSurveySubmissionMinAggregateOutputType | null
|
|
_max: HrSurveySubmissionMaxAggregateOutputType | null
|
|
}
|
|
|
|
export type HrSurveySubmissionMinAggregateOutputType = {
|
|
id: string | null
|
|
createdAt: Date | null
|
|
tenantId: string | null
|
|
surveyId: string | null
|
|
submitterUserId: string | null
|
|
submitterHash: string | null
|
|
}
|
|
|
|
export type HrSurveySubmissionMaxAggregateOutputType = {
|
|
id: string | null
|
|
createdAt: Date | null
|
|
tenantId: string | null
|
|
surveyId: string | null
|
|
submitterUserId: string | null
|
|
submitterHash: string | null
|
|
}
|
|
|
|
export type HrSurveySubmissionCountAggregateOutputType = {
|
|
id: number
|
|
createdAt: number
|
|
tenantId: number
|
|
surveyId: number
|
|
submitterUserId: number
|
|
submitterHash: number
|
|
answers: number
|
|
_all: number
|
|
}
|
|
|
|
|
|
export type HrSurveySubmissionMinAggregateInputType = {
|
|
id?: true
|
|
createdAt?: true
|
|
tenantId?: true
|
|
surveyId?: true
|
|
submitterUserId?: true
|
|
submitterHash?: true
|
|
}
|
|
|
|
export type HrSurveySubmissionMaxAggregateInputType = {
|
|
id?: true
|
|
createdAt?: true
|
|
tenantId?: true
|
|
surveyId?: true
|
|
submitterUserId?: true
|
|
submitterHash?: true
|
|
}
|
|
|
|
export type HrSurveySubmissionCountAggregateInputType = {
|
|
id?: true
|
|
createdAt?: true
|
|
tenantId?: true
|
|
surveyId?: true
|
|
submitterUserId?: true
|
|
submitterHash?: true
|
|
answers?: true
|
|
_all?: true
|
|
}
|
|
|
|
export type HrSurveySubmissionAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Filter which HrSurveySubmission to aggregate.
|
|
*/
|
|
where?: Prisma.HrSurveySubmissionWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of HrSurveySubmissions to fetch.
|
|
*/
|
|
orderBy?: Prisma.HrSurveySubmissionOrderByWithRelationInput | Prisma.HrSurveySubmissionOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the start position
|
|
*/
|
|
cursor?: Prisma.HrSurveySubmissionWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` HrSurveySubmissions 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` HrSurveySubmissions.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Count returned HrSurveySubmissions
|
|
**/
|
|
_count?: true | HrSurveySubmissionCountAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to find the minimum value
|
|
**/
|
|
_min?: HrSurveySubmissionMinAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to find the maximum value
|
|
**/
|
|
_max?: HrSurveySubmissionMaxAggregateInputType
|
|
}
|
|
|
|
export type GetHrSurveySubmissionAggregateType<T extends HrSurveySubmissionAggregateArgs> = {
|
|
[P in keyof T & keyof AggregateHrSurveySubmission]: P extends '_count' | 'count'
|
|
? T[P] extends true
|
|
? number
|
|
: Prisma.GetScalarType<T[P], AggregateHrSurveySubmission[P]>
|
|
: Prisma.GetScalarType<T[P], AggregateHrSurveySubmission[P]>
|
|
}
|
|
|
|
|
|
|
|
|
|
export type HrSurveySubmissionGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
where?: Prisma.HrSurveySubmissionWhereInput
|
|
orderBy?: Prisma.HrSurveySubmissionOrderByWithAggregationInput | Prisma.HrSurveySubmissionOrderByWithAggregationInput[]
|
|
by: Prisma.HrSurveySubmissionScalarFieldEnum[] | Prisma.HrSurveySubmissionScalarFieldEnum
|
|
having?: Prisma.HrSurveySubmissionScalarWhereWithAggregatesInput
|
|
take?: number
|
|
skip?: number
|
|
_count?: HrSurveySubmissionCountAggregateInputType | true
|
|
_min?: HrSurveySubmissionMinAggregateInputType
|
|
_max?: HrSurveySubmissionMaxAggregateInputType
|
|
}
|
|
|
|
export type HrSurveySubmissionGroupByOutputType = {
|
|
id: string
|
|
createdAt: Date
|
|
tenantId: string
|
|
surveyId: string
|
|
submitterUserId: string | null
|
|
submitterHash: string | null
|
|
answers: runtime.JsonValue
|
|
_count: HrSurveySubmissionCountAggregateOutputType | null
|
|
_min: HrSurveySubmissionMinAggregateOutputType | null
|
|
_max: HrSurveySubmissionMaxAggregateOutputType | null
|
|
}
|
|
|
|
export type GetHrSurveySubmissionGroupByPayload<T extends HrSurveySubmissionGroupByArgs> = Prisma.PrismaPromise<
|
|
Array<
|
|
Prisma.PickEnumerable<HrSurveySubmissionGroupByOutputType, T['by']> &
|
|
{
|
|
[P in ((keyof T) & (keyof HrSurveySubmissionGroupByOutputType))]: P extends '_count'
|
|
? T[P] extends boolean
|
|
? number
|
|
: Prisma.GetScalarType<T[P], HrSurveySubmissionGroupByOutputType[P]>
|
|
: Prisma.GetScalarType<T[P], HrSurveySubmissionGroupByOutputType[P]>
|
|
}
|
|
>
|
|
>
|
|
|
|
|
|
|
|
export type HrSurveySubmissionWhereInput = {
|
|
AND?: Prisma.HrSurveySubmissionWhereInput | Prisma.HrSurveySubmissionWhereInput[]
|
|
OR?: Prisma.HrSurveySubmissionWhereInput[]
|
|
NOT?: Prisma.HrSurveySubmissionWhereInput | Prisma.HrSurveySubmissionWhereInput[]
|
|
id?: Prisma.StringFilter<"HrSurveySubmission"> | string
|
|
createdAt?: Prisma.DateTimeFilter<"HrSurveySubmission"> | Date | string
|
|
tenantId?: Prisma.StringFilter<"HrSurveySubmission"> | string
|
|
surveyId?: Prisma.StringFilter<"HrSurveySubmission"> | string
|
|
submitterUserId?: Prisma.StringNullableFilter<"HrSurveySubmission"> | string | null
|
|
submitterHash?: Prisma.StringNullableFilter<"HrSurveySubmission"> | string | null
|
|
answers?: Prisma.JsonFilter<"HrSurveySubmission">
|
|
survey?: Prisma.XOR<Prisma.HrSurveyScalarRelationFilter, Prisma.HrSurveyWhereInput>
|
|
}
|
|
|
|
export type HrSurveySubmissionOrderByWithRelationInput = {
|
|
id?: Prisma.SortOrder
|
|
createdAt?: Prisma.SortOrder
|
|
tenantId?: Prisma.SortOrder
|
|
surveyId?: Prisma.SortOrder
|
|
submitterUserId?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
submitterHash?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
answers?: Prisma.SortOrder
|
|
survey?: Prisma.HrSurveyOrderByWithRelationInput
|
|
}
|
|
|
|
export type HrSurveySubmissionWhereUniqueInput = Prisma.AtLeast<{
|
|
id?: string
|
|
surveyId_submitterUserId?: Prisma.HrSurveySubmissionSurveyIdSubmitterUserIdCompoundUniqueInput
|
|
surveyId_submitterHash?: Prisma.HrSurveySubmissionSurveyIdSubmitterHashCompoundUniqueInput
|
|
AND?: Prisma.HrSurveySubmissionWhereInput | Prisma.HrSurveySubmissionWhereInput[]
|
|
OR?: Prisma.HrSurveySubmissionWhereInput[]
|
|
NOT?: Prisma.HrSurveySubmissionWhereInput | Prisma.HrSurveySubmissionWhereInput[]
|
|
createdAt?: Prisma.DateTimeFilter<"HrSurveySubmission"> | Date | string
|
|
tenantId?: Prisma.StringFilter<"HrSurveySubmission"> | string
|
|
surveyId?: Prisma.StringFilter<"HrSurveySubmission"> | string
|
|
submitterUserId?: Prisma.StringNullableFilter<"HrSurveySubmission"> | string | null
|
|
submitterHash?: Prisma.StringNullableFilter<"HrSurveySubmission"> | string | null
|
|
answers?: Prisma.JsonFilter<"HrSurveySubmission">
|
|
survey?: Prisma.XOR<Prisma.HrSurveyScalarRelationFilter, Prisma.HrSurveyWhereInput>
|
|
}, "id" | "surveyId_submitterUserId" | "surveyId_submitterHash">
|
|
|
|
export type HrSurveySubmissionOrderByWithAggregationInput = {
|
|
id?: Prisma.SortOrder
|
|
createdAt?: Prisma.SortOrder
|
|
tenantId?: Prisma.SortOrder
|
|
surveyId?: Prisma.SortOrder
|
|
submitterUserId?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
submitterHash?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
answers?: Prisma.SortOrder
|
|
_count?: Prisma.HrSurveySubmissionCountOrderByAggregateInput
|
|
_max?: Prisma.HrSurveySubmissionMaxOrderByAggregateInput
|
|
_min?: Prisma.HrSurveySubmissionMinOrderByAggregateInput
|
|
}
|
|
|
|
export type HrSurveySubmissionScalarWhereWithAggregatesInput = {
|
|
AND?: Prisma.HrSurveySubmissionScalarWhereWithAggregatesInput | Prisma.HrSurveySubmissionScalarWhereWithAggregatesInput[]
|
|
OR?: Prisma.HrSurveySubmissionScalarWhereWithAggregatesInput[]
|
|
NOT?: Prisma.HrSurveySubmissionScalarWhereWithAggregatesInput | Prisma.HrSurveySubmissionScalarWhereWithAggregatesInput[]
|
|
id?: Prisma.StringWithAggregatesFilter<"HrSurveySubmission"> | string
|
|
createdAt?: Prisma.DateTimeWithAggregatesFilter<"HrSurveySubmission"> | Date | string
|
|
tenantId?: Prisma.StringWithAggregatesFilter<"HrSurveySubmission"> | string
|
|
surveyId?: Prisma.StringWithAggregatesFilter<"HrSurveySubmission"> | string
|
|
submitterUserId?: Prisma.StringNullableWithAggregatesFilter<"HrSurveySubmission"> | string | null
|
|
submitterHash?: Prisma.StringNullableWithAggregatesFilter<"HrSurveySubmission"> | string | null
|
|
answers?: Prisma.JsonWithAggregatesFilter<"HrSurveySubmission">
|
|
}
|
|
|
|
export type HrSurveySubmissionCreateInput = {
|
|
id?: string
|
|
createdAt?: Date | string
|
|
tenantId: string
|
|
submitterUserId?: string | null
|
|
submitterHash?: string | null
|
|
answers: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
survey: Prisma.HrSurveyCreateNestedOneWithoutSubmissionsInput
|
|
}
|
|
|
|
export type HrSurveySubmissionUncheckedCreateInput = {
|
|
id?: string
|
|
createdAt?: Date | string
|
|
tenantId: string
|
|
surveyId: string
|
|
submitterUserId?: string | null
|
|
submitterHash?: string | null
|
|
answers: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
}
|
|
|
|
export type HrSurveySubmissionUpdateInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
tenantId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
submitterUserId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
submitterHash?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
answers?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
survey?: Prisma.HrSurveyUpdateOneRequiredWithoutSubmissionsNestedInput
|
|
}
|
|
|
|
export type HrSurveySubmissionUncheckedUpdateInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
tenantId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
surveyId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
submitterUserId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
submitterHash?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
answers?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
}
|
|
|
|
export type HrSurveySubmissionCreateManyInput = {
|
|
id?: string
|
|
createdAt?: Date | string
|
|
tenantId: string
|
|
surveyId: string
|
|
submitterUserId?: string | null
|
|
submitterHash?: string | null
|
|
answers: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
}
|
|
|
|
export type HrSurveySubmissionUpdateManyMutationInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
tenantId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
submitterUserId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
submitterHash?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
answers?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
}
|
|
|
|
export type HrSurveySubmissionUncheckedUpdateManyInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
tenantId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
surveyId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
submitterUserId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
submitterHash?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
answers?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
}
|
|
|
|
export type HrSurveySubmissionListRelationFilter = {
|
|
every?: Prisma.HrSurveySubmissionWhereInput
|
|
some?: Prisma.HrSurveySubmissionWhereInput
|
|
none?: Prisma.HrSurveySubmissionWhereInput
|
|
}
|
|
|
|
export type HrSurveySubmissionOrderByRelationAggregateInput = {
|
|
_count?: Prisma.SortOrder
|
|
}
|
|
|
|
export type HrSurveySubmissionSurveyIdSubmitterUserIdCompoundUniqueInput = {
|
|
surveyId: string
|
|
submitterUserId: string
|
|
}
|
|
|
|
export type HrSurveySubmissionSurveyIdSubmitterHashCompoundUniqueInput = {
|
|
surveyId: string
|
|
submitterHash: string
|
|
}
|
|
|
|
export type HrSurveySubmissionCountOrderByAggregateInput = {
|
|
id?: Prisma.SortOrder
|
|
createdAt?: Prisma.SortOrder
|
|
tenantId?: Prisma.SortOrder
|
|
surveyId?: Prisma.SortOrder
|
|
submitterUserId?: Prisma.SortOrder
|
|
submitterHash?: Prisma.SortOrder
|
|
answers?: Prisma.SortOrder
|
|
}
|
|
|
|
export type HrSurveySubmissionMaxOrderByAggregateInput = {
|
|
id?: Prisma.SortOrder
|
|
createdAt?: Prisma.SortOrder
|
|
tenantId?: Prisma.SortOrder
|
|
surveyId?: Prisma.SortOrder
|
|
submitterUserId?: Prisma.SortOrder
|
|
submitterHash?: Prisma.SortOrder
|
|
}
|
|
|
|
export type HrSurveySubmissionMinOrderByAggregateInput = {
|
|
id?: Prisma.SortOrder
|
|
createdAt?: Prisma.SortOrder
|
|
tenantId?: Prisma.SortOrder
|
|
surveyId?: Prisma.SortOrder
|
|
submitterUserId?: Prisma.SortOrder
|
|
submitterHash?: Prisma.SortOrder
|
|
}
|
|
|
|
export type HrSurveySubmissionCreateNestedManyWithoutSurveyInput = {
|
|
create?: Prisma.XOR<Prisma.HrSurveySubmissionCreateWithoutSurveyInput, Prisma.HrSurveySubmissionUncheckedCreateWithoutSurveyInput> | Prisma.HrSurveySubmissionCreateWithoutSurveyInput[] | Prisma.HrSurveySubmissionUncheckedCreateWithoutSurveyInput[]
|
|
connectOrCreate?: Prisma.HrSurveySubmissionCreateOrConnectWithoutSurveyInput | Prisma.HrSurveySubmissionCreateOrConnectWithoutSurveyInput[]
|
|
createMany?: Prisma.HrSurveySubmissionCreateManySurveyInputEnvelope
|
|
connect?: Prisma.HrSurveySubmissionWhereUniqueInput | Prisma.HrSurveySubmissionWhereUniqueInput[]
|
|
}
|
|
|
|
export type HrSurveySubmissionUncheckedCreateNestedManyWithoutSurveyInput = {
|
|
create?: Prisma.XOR<Prisma.HrSurveySubmissionCreateWithoutSurveyInput, Prisma.HrSurveySubmissionUncheckedCreateWithoutSurveyInput> | Prisma.HrSurveySubmissionCreateWithoutSurveyInput[] | Prisma.HrSurveySubmissionUncheckedCreateWithoutSurveyInput[]
|
|
connectOrCreate?: Prisma.HrSurveySubmissionCreateOrConnectWithoutSurveyInput | Prisma.HrSurveySubmissionCreateOrConnectWithoutSurveyInput[]
|
|
createMany?: Prisma.HrSurveySubmissionCreateManySurveyInputEnvelope
|
|
connect?: Prisma.HrSurveySubmissionWhereUniqueInput | Prisma.HrSurveySubmissionWhereUniqueInput[]
|
|
}
|
|
|
|
export type HrSurveySubmissionUpdateManyWithoutSurveyNestedInput = {
|
|
create?: Prisma.XOR<Prisma.HrSurveySubmissionCreateWithoutSurveyInput, Prisma.HrSurveySubmissionUncheckedCreateWithoutSurveyInput> | Prisma.HrSurveySubmissionCreateWithoutSurveyInput[] | Prisma.HrSurveySubmissionUncheckedCreateWithoutSurveyInput[]
|
|
connectOrCreate?: Prisma.HrSurveySubmissionCreateOrConnectWithoutSurveyInput | Prisma.HrSurveySubmissionCreateOrConnectWithoutSurveyInput[]
|
|
upsert?: Prisma.HrSurveySubmissionUpsertWithWhereUniqueWithoutSurveyInput | Prisma.HrSurveySubmissionUpsertWithWhereUniqueWithoutSurveyInput[]
|
|
createMany?: Prisma.HrSurveySubmissionCreateManySurveyInputEnvelope
|
|
set?: Prisma.HrSurveySubmissionWhereUniqueInput | Prisma.HrSurveySubmissionWhereUniqueInput[]
|
|
disconnect?: Prisma.HrSurveySubmissionWhereUniqueInput | Prisma.HrSurveySubmissionWhereUniqueInput[]
|
|
delete?: Prisma.HrSurveySubmissionWhereUniqueInput | Prisma.HrSurveySubmissionWhereUniqueInput[]
|
|
connect?: Prisma.HrSurveySubmissionWhereUniqueInput | Prisma.HrSurveySubmissionWhereUniqueInput[]
|
|
update?: Prisma.HrSurveySubmissionUpdateWithWhereUniqueWithoutSurveyInput | Prisma.HrSurveySubmissionUpdateWithWhereUniqueWithoutSurveyInput[]
|
|
updateMany?: Prisma.HrSurveySubmissionUpdateManyWithWhereWithoutSurveyInput | Prisma.HrSurveySubmissionUpdateManyWithWhereWithoutSurveyInput[]
|
|
deleteMany?: Prisma.HrSurveySubmissionScalarWhereInput | Prisma.HrSurveySubmissionScalarWhereInput[]
|
|
}
|
|
|
|
export type HrSurveySubmissionUncheckedUpdateManyWithoutSurveyNestedInput = {
|
|
create?: Prisma.XOR<Prisma.HrSurveySubmissionCreateWithoutSurveyInput, Prisma.HrSurveySubmissionUncheckedCreateWithoutSurveyInput> | Prisma.HrSurveySubmissionCreateWithoutSurveyInput[] | Prisma.HrSurveySubmissionUncheckedCreateWithoutSurveyInput[]
|
|
connectOrCreate?: Prisma.HrSurveySubmissionCreateOrConnectWithoutSurveyInput | Prisma.HrSurveySubmissionCreateOrConnectWithoutSurveyInput[]
|
|
upsert?: Prisma.HrSurveySubmissionUpsertWithWhereUniqueWithoutSurveyInput | Prisma.HrSurveySubmissionUpsertWithWhereUniqueWithoutSurveyInput[]
|
|
createMany?: Prisma.HrSurveySubmissionCreateManySurveyInputEnvelope
|
|
set?: Prisma.HrSurveySubmissionWhereUniqueInput | Prisma.HrSurveySubmissionWhereUniqueInput[]
|
|
disconnect?: Prisma.HrSurveySubmissionWhereUniqueInput | Prisma.HrSurveySubmissionWhereUniqueInput[]
|
|
delete?: Prisma.HrSurveySubmissionWhereUniqueInput | Prisma.HrSurveySubmissionWhereUniqueInput[]
|
|
connect?: Prisma.HrSurveySubmissionWhereUniqueInput | Prisma.HrSurveySubmissionWhereUniqueInput[]
|
|
update?: Prisma.HrSurveySubmissionUpdateWithWhereUniqueWithoutSurveyInput | Prisma.HrSurveySubmissionUpdateWithWhereUniqueWithoutSurveyInput[]
|
|
updateMany?: Prisma.HrSurveySubmissionUpdateManyWithWhereWithoutSurveyInput | Prisma.HrSurveySubmissionUpdateManyWithWhereWithoutSurveyInput[]
|
|
deleteMany?: Prisma.HrSurveySubmissionScalarWhereInput | Prisma.HrSurveySubmissionScalarWhereInput[]
|
|
}
|
|
|
|
export type HrSurveySubmissionCreateWithoutSurveyInput = {
|
|
id?: string
|
|
createdAt?: Date | string
|
|
tenantId: string
|
|
submitterUserId?: string | null
|
|
submitterHash?: string | null
|
|
answers: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
}
|
|
|
|
export type HrSurveySubmissionUncheckedCreateWithoutSurveyInput = {
|
|
id?: string
|
|
createdAt?: Date | string
|
|
tenantId: string
|
|
submitterUserId?: string | null
|
|
submitterHash?: string | null
|
|
answers: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
}
|
|
|
|
export type HrSurveySubmissionCreateOrConnectWithoutSurveyInput = {
|
|
where: Prisma.HrSurveySubmissionWhereUniqueInput
|
|
create: Prisma.XOR<Prisma.HrSurveySubmissionCreateWithoutSurveyInput, Prisma.HrSurveySubmissionUncheckedCreateWithoutSurveyInput>
|
|
}
|
|
|
|
export type HrSurveySubmissionCreateManySurveyInputEnvelope = {
|
|
data: Prisma.HrSurveySubmissionCreateManySurveyInput | Prisma.HrSurveySubmissionCreateManySurveyInput[]
|
|
skipDuplicates?: boolean
|
|
}
|
|
|
|
export type HrSurveySubmissionUpsertWithWhereUniqueWithoutSurveyInput = {
|
|
where: Prisma.HrSurveySubmissionWhereUniqueInput
|
|
update: Prisma.XOR<Prisma.HrSurveySubmissionUpdateWithoutSurveyInput, Prisma.HrSurveySubmissionUncheckedUpdateWithoutSurveyInput>
|
|
create: Prisma.XOR<Prisma.HrSurveySubmissionCreateWithoutSurveyInput, Prisma.HrSurveySubmissionUncheckedCreateWithoutSurveyInput>
|
|
}
|
|
|
|
export type HrSurveySubmissionUpdateWithWhereUniqueWithoutSurveyInput = {
|
|
where: Prisma.HrSurveySubmissionWhereUniqueInput
|
|
data: Prisma.XOR<Prisma.HrSurveySubmissionUpdateWithoutSurveyInput, Prisma.HrSurveySubmissionUncheckedUpdateWithoutSurveyInput>
|
|
}
|
|
|
|
export type HrSurveySubmissionUpdateManyWithWhereWithoutSurveyInput = {
|
|
where: Prisma.HrSurveySubmissionScalarWhereInput
|
|
data: Prisma.XOR<Prisma.HrSurveySubmissionUpdateManyMutationInput, Prisma.HrSurveySubmissionUncheckedUpdateManyWithoutSurveyInput>
|
|
}
|
|
|
|
export type HrSurveySubmissionScalarWhereInput = {
|
|
AND?: Prisma.HrSurveySubmissionScalarWhereInput | Prisma.HrSurveySubmissionScalarWhereInput[]
|
|
OR?: Prisma.HrSurveySubmissionScalarWhereInput[]
|
|
NOT?: Prisma.HrSurveySubmissionScalarWhereInput | Prisma.HrSurveySubmissionScalarWhereInput[]
|
|
id?: Prisma.StringFilter<"HrSurveySubmission"> | string
|
|
createdAt?: Prisma.DateTimeFilter<"HrSurveySubmission"> | Date | string
|
|
tenantId?: Prisma.StringFilter<"HrSurveySubmission"> | string
|
|
surveyId?: Prisma.StringFilter<"HrSurveySubmission"> | string
|
|
submitterUserId?: Prisma.StringNullableFilter<"HrSurveySubmission"> | string | null
|
|
submitterHash?: Prisma.StringNullableFilter<"HrSurveySubmission"> | string | null
|
|
answers?: Prisma.JsonFilter<"HrSurveySubmission">
|
|
}
|
|
|
|
export type HrSurveySubmissionCreateManySurveyInput = {
|
|
id?: string
|
|
createdAt?: Date | string
|
|
tenantId: string
|
|
submitterUserId?: string | null
|
|
submitterHash?: string | null
|
|
answers: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
}
|
|
|
|
export type HrSurveySubmissionUpdateWithoutSurveyInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
tenantId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
submitterUserId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
submitterHash?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
answers?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
}
|
|
|
|
export type HrSurveySubmissionUncheckedUpdateWithoutSurveyInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
tenantId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
submitterUserId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
submitterHash?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
answers?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
}
|
|
|
|
export type HrSurveySubmissionUncheckedUpdateManyWithoutSurveyInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
tenantId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
submitterUserId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
submitterHash?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
answers?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
}
|
|
|
|
|
|
|
|
export type HrSurveySubmissionSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
id?: boolean
|
|
createdAt?: boolean
|
|
tenantId?: boolean
|
|
surveyId?: boolean
|
|
submitterUserId?: boolean
|
|
submitterHash?: boolean
|
|
answers?: boolean
|
|
survey?: boolean | Prisma.HrSurveyDefaultArgs<ExtArgs>
|
|
}, ExtArgs["result"]["hrSurveySubmission"]>
|
|
|
|
export type HrSurveySubmissionSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
id?: boolean
|
|
createdAt?: boolean
|
|
tenantId?: boolean
|
|
surveyId?: boolean
|
|
submitterUserId?: boolean
|
|
submitterHash?: boolean
|
|
answers?: boolean
|
|
survey?: boolean | Prisma.HrSurveyDefaultArgs<ExtArgs>
|
|
}, ExtArgs["result"]["hrSurveySubmission"]>
|
|
|
|
export type HrSurveySubmissionSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
id?: boolean
|
|
createdAt?: boolean
|
|
tenantId?: boolean
|
|
surveyId?: boolean
|
|
submitterUserId?: boolean
|
|
submitterHash?: boolean
|
|
answers?: boolean
|
|
survey?: boolean | Prisma.HrSurveyDefaultArgs<ExtArgs>
|
|
}, ExtArgs["result"]["hrSurveySubmission"]>
|
|
|
|
export type HrSurveySubmissionSelectScalar = {
|
|
id?: boolean
|
|
createdAt?: boolean
|
|
tenantId?: boolean
|
|
surveyId?: boolean
|
|
submitterUserId?: boolean
|
|
submitterHash?: boolean
|
|
answers?: boolean
|
|
}
|
|
|
|
export type HrSurveySubmissionOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "createdAt" | "tenantId" | "surveyId" | "submitterUserId" | "submitterHash" | "answers", ExtArgs["result"]["hrSurveySubmission"]>
|
|
export type HrSurveySubmissionInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
survey?: boolean | Prisma.HrSurveyDefaultArgs<ExtArgs>
|
|
}
|
|
export type HrSurveySubmissionIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
survey?: boolean | Prisma.HrSurveyDefaultArgs<ExtArgs>
|
|
}
|
|
export type HrSurveySubmissionIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
survey?: boolean | Prisma.HrSurveyDefaultArgs<ExtArgs>
|
|
}
|
|
|
|
export type $HrSurveySubmissionPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
name: "HrSurveySubmission"
|
|
objects: {
|
|
survey: Prisma.$HrSurveyPayload<ExtArgs>
|
|
}
|
|
scalars: runtime.Types.Extensions.GetPayloadResult<{
|
|
id: string
|
|
createdAt: Date
|
|
tenantId: string
|
|
surveyId: string
|
|
submitterUserId: string | null
|
|
submitterHash: string | null
|
|
answers: runtime.JsonValue
|
|
}, ExtArgs["result"]["hrSurveySubmission"]>
|
|
composites: {}
|
|
}
|
|
|
|
export type HrSurveySubmissionGetPayload<S extends boolean | null | undefined | HrSurveySubmissionDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$HrSurveySubmissionPayload, S>
|
|
|
|
export type HrSurveySubmissionCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> =
|
|
Omit<HrSurveySubmissionFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
|
|
select?: HrSurveySubmissionCountAggregateInputType | true
|
|
}
|
|
|
|
export interface HrSurveySubmissionDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
|
|
[K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['HrSurveySubmission'], meta: { name: 'HrSurveySubmission' } }
|
|
/**
|
|
* Find zero or one HrSurveySubmission that matches the filter.
|
|
* @param {HrSurveySubmissionFindUniqueArgs} args - Arguments to find a HrSurveySubmission
|
|
* @example
|
|
* // Get one HrSurveySubmission
|
|
* const hrSurveySubmission = await prisma.hrSurveySubmission.findUnique({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findUnique<T extends HrSurveySubmissionFindUniqueArgs>(args: Prisma.SelectSubset<T, HrSurveySubmissionFindUniqueArgs<ExtArgs>>): Prisma.Prisma__HrSurveySubmissionClient<runtime.Types.Result.GetResult<Prisma.$HrSurveySubmissionPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Find one HrSurveySubmission that matches the filter or throw an error with `error.code='P2025'`
|
|
* if no matches were found.
|
|
* @param {HrSurveySubmissionFindUniqueOrThrowArgs} args - Arguments to find a HrSurveySubmission
|
|
* @example
|
|
* // Get one HrSurveySubmission
|
|
* const hrSurveySubmission = await prisma.hrSurveySubmission.findUniqueOrThrow({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findUniqueOrThrow<T extends HrSurveySubmissionFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, HrSurveySubmissionFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__HrSurveySubmissionClient<runtime.Types.Result.GetResult<Prisma.$HrSurveySubmissionPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Find the first HrSurveySubmission 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 {HrSurveySubmissionFindFirstArgs} args - Arguments to find a HrSurveySubmission
|
|
* @example
|
|
* // Get one HrSurveySubmission
|
|
* const hrSurveySubmission = await prisma.hrSurveySubmission.findFirst({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findFirst<T extends HrSurveySubmissionFindFirstArgs>(args?: Prisma.SelectSubset<T, HrSurveySubmissionFindFirstArgs<ExtArgs>>): Prisma.Prisma__HrSurveySubmissionClient<runtime.Types.Result.GetResult<Prisma.$HrSurveySubmissionPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Find the first HrSurveySubmission 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 {HrSurveySubmissionFindFirstOrThrowArgs} args - Arguments to find a HrSurveySubmission
|
|
* @example
|
|
* // Get one HrSurveySubmission
|
|
* const hrSurveySubmission = await prisma.hrSurveySubmission.findFirstOrThrow({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findFirstOrThrow<T extends HrSurveySubmissionFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, HrSurveySubmissionFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__HrSurveySubmissionClient<runtime.Types.Result.GetResult<Prisma.$HrSurveySubmissionPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Find zero or more HrSurveySubmissions 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 {HrSurveySubmissionFindManyArgs} args - Arguments to filter and select certain fields only.
|
|
* @example
|
|
* // Get all HrSurveySubmissions
|
|
* const hrSurveySubmissions = await prisma.hrSurveySubmission.findMany()
|
|
*
|
|
* // Get first 10 HrSurveySubmissions
|
|
* const hrSurveySubmissions = await prisma.hrSurveySubmission.findMany({ take: 10 })
|
|
*
|
|
* // Only select the `id`
|
|
* const hrSurveySubmissionWithIdOnly = await prisma.hrSurveySubmission.findMany({ select: { id: true } })
|
|
*
|
|
*/
|
|
findMany<T extends HrSurveySubmissionFindManyArgs>(args?: Prisma.SelectSubset<T, HrSurveySubmissionFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$HrSurveySubmissionPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
|
|
|
|
/**
|
|
* Create a HrSurveySubmission.
|
|
* @param {HrSurveySubmissionCreateArgs} args - Arguments to create a HrSurveySubmission.
|
|
* @example
|
|
* // Create one HrSurveySubmission
|
|
* const HrSurveySubmission = await prisma.hrSurveySubmission.create({
|
|
* data: {
|
|
* // ... data to create a HrSurveySubmission
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
create<T extends HrSurveySubmissionCreateArgs>(args: Prisma.SelectSubset<T, HrSurveySubmissionCreateArgs<ExtArgs>>): Prisma.Prisma__HrSurveySubmissionClient<runtime.Types.Result.GetResult<Prisma.$HrSurveySubmissionPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Create many HrSurveySubmissions.
|
|
* @param {HrSurveySubmissionCreateManyArgs} args - Arguments to create many HrSurveySubmissions.
|
|
* @example
|
|
* // Create many HrSurveySubmissions
|
|
* const hrSurveySubmission = await prisma.hrSurveySubmission.createMany({
|
|
* data: [
|
|
* // ... provide data here
|
|
* ]
|
|
* })
|
|
*
|
|
*/
|
|
createMany<T extends HrSurveySubmissionCreateManyArgs>(args?: Prisma.SelectSubset<T, HrSurveySubmissionCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
|
|
|
/**
|
|
* Create many HrSurveySubmissions and returns the data saved in the database.
|
|
* @param {HrSurveySubmissionCreateManyAndReturnArgs} args - Arguments to create many HrSurveySubmissions.
|
|
* @example
|
|
* // Create many HrSurveySubmissions
|
|
* const hrSurveySubmission = await prisma.hrSurveySubmission.createManyAndReturn({
|
|
* data: [
|
|
* // ... provide data here
|
|
* ]
|
|
* })
|
|
*
|
|
* // Create many HrSurveySubmissions and only return the `id`
|
|
* const hrSurveySubmissionWithIdOnly = await prisma.hrSurveySubmission.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 HrSurveySubmissionCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, HrSurveySubmissionCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$HrSurveySubmissionPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>
|
|
|
|
/**
|
|
* Delete a HrSurveySubmission.
|
|
* @param {HrSurveySubmissionDeleteArgs} args - Arguments to delete one HrSurveySubmission.
|
|
* @example
|
|
* // Delete one HrSurveySubmission
|
|
* const HrSurveySubmission = await prisma.hrSurveySubmission.delete({
|
|
* where: {
|
|
* // ... filter to delete one HrSurveySubmission
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
delete<T extends HrSurveySubmissionDeleteArgs>(args: Prisma.SelectSubset<T, HrSurveySubmissionDeleteArgs<ExtArgs>>): Prisma.Prisma__HrSurveySubmissionClient<runtime.Types.Result.GetResult<Prisma.$HrSurveySubmissionPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Update one HrSurveySubmission.
|
|
* @param {HrSurveySubmissionUpdateArgs} args - Arguments to update one HrSurveySubmission.
|
|
* @example
|
|
* // Update one HrSurveySubmission
|
|
* const hrSurveySubmission = await prisma.hrSurveySubmission.update({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* },
|
|
* data: {
|
|
* // ... provide data here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
update<T extends HrSurveySubmissionUpdateArgs>(args: Prisma.SelectSubset<T, HrSurveySubmissionUpdateArgs<ExtArgs>>): Prisma.Prisma__HrSurveySubmissionClient<runtime.Types.Result.GetResult<Prisma.$HrSurveySubmissionPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Delete zero or more HrSurveySubmissions.
|
|
* @param {HrSurveySubmissionDeleteManyArgs} args - Arguments to filter HrSurveySubmissions to delete.
|
|
* @example
|
|
* // Delete a few HrSurveySubmissions
|
|
* const { count } = await prisma.hrSurveySubmission.deleteMany({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
deleteMany<T extends HrSurveySubmissionDeleteManyArgs>(args?: Prisma.SelectSubset<T, HrSurveySubmissionDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
|
|
|
/**
|
|
* Update zero or more HrSurveySubmissions.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {HrSurveySubmissionUpdateManyArgs} args - Arguments to update one or more rows.
|
|
* @example
|
|
* // Update many HrSurveySubmissions
|
|
* const hrSurveySubmission = await prisma.hrSurveySubmission.updateMany({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* },
|
|
* data: {
|
|
* // ... provide data here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
updateMany<T extends HrSurveySubmissionUpdateManyArgs>(args: Prisma.SelectSubset<T, HrSurveySubmissionUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
|
|
|
/**
|
|
* Update zero or more HrSurveySubmissions and returns the data updated in the database.
|
|
* @param {HrSurveySubmissionUpdateManyAndReturnArgs} args - Arguments to update many HrSurveySubmissions.
|
|
* @example
|
|
* // Update many HrSurveySubmissions
|
|
* const hrSurveySubmission = await prisma.hrSurveySubmission.updateManyAndReturn({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* },
|
|
* data: [
|
|
* // ... provide data here
|
|
* ]
|
|
* })
|
|
*
|
|
* // Update zero or more HrSurveySubmissions and only return the `id`
|
|
* const hrSurveySubmissionWithIdOnly = await prisma.hrSurveySubmission.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 HrSurveySubmissionUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, HrSurveySubmissionUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$HrSurveySubmissionPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>
|
|
|
|
/**
|
|
* Create or update one HrSurveySubmission.
|
|
* @param {HrSurveySubmissionUpsertArgs} args - Arguments to update or create a HrSurveySubmission.
|
|
* @example
|
|
* // Update or create a HrSurveySubmission
|
|
* const hrSurveySubmission = await prisma.hrSurveySubmission.upsert({
|
|
* create: {
|
|
* // ... data to create a HrSurveySubmission
|
|
* },
|
|
* update: {
|
|
* // ... in case it already exists, update
|
|
* },
|
|
* where: {
|
|
* // ... the filter for the HrSurveySubmission we want to update
|
|
* }
|
|
* })
|
|
*/
|
|
upsert<T extends HrSurveySubmissionUpsertArgs>(args: Prisma.SelectSubset<T, HrSurveySubmissionUpsertArgs<ExtArgs>>): Prisma.Prisma__HrSurveySubmissionClient<runtime.Types.Result.GetResult<Prisma.$HrSurveySubmissionPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
|
|
/**
|
|
* Count the number of HrSurveySubmissions.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {HrSurveySubmissionCountArgs} args - Arguments to filter HrSurveySubmissions to count.
|
|
* @example
|
|
* // Count the number of HrSurveySubmissions
|
|
* const count = await prisma.hrSurveySubmission.count({
|
|
* where: {
|
|
* // ... the filter for the HrSurveySubmissions we want to count
|
|
* }
|
|
* })
|
|
**/
|
|
count<T extends HrSurveySubmissionCountArgs>(
|
|
args?: Prisma.Subset<T, HrSurveySubmissionCountArgs>,
|
|
): Prisma.PrismaPromise<
|
|
T extends runtime.Types.Utils.Record<'select', any>
|
|
? T['select'] extends true
|
|
? number
|
|
: Prisma.GetScalarType<T['select'], HrSurveySubmissionCountAggregateOutputType>
|
|
: number
|
|
>
|
|
|
|
/**
|
|
* Allows you to perform aggregations operations on a HrSurveySubmission.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {HrSurveySubmissionAggregateArgs} 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 HrSurveySubmissionAggregateArgs>(args: Prisma.Subset<T, HrSurveySubmissionAggregateArgs>): Prisma.PrismaPromise<GetHrSurveySubmissionAggregateType<T>>
|
|
|
|
/**
|
|
* Group by HrSurveySubmission.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {HrSurveySubmissionGroupByArgs} 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 HrSurveySubmissionGroupByArgs,
|
|
HasSelectOrTake extends Prisma.Or<
|
|
Prisma.Extends<'skip', Prisma.Keys<T>>,
|
|
Prisma.Extends<'take', Prisma.Keys<T>>
|
|
>,
|
|
OrderByArg extends Prisma.True extends HasSelectOrTake
|
|
? { orderBy: HrSurveySubmissionGroupByArgs['orderBy'] }
|
|
: { orderBy?: HrSurveySubmissionGroupByArgs['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, HrSurveySubmissionGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetHrSurveySubmissionGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
|
|
/**
|
|
* Fields of the HrSurveySubmission model
|
|
*/
|
|
readonly fields: HrSurveySubmissionFieldRefs;
|
|
}
|
|
|
|
/**
|
|
* The delegate class that acts as a "Promise-like" for HrSurveySubmission.
|
|
* 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__HrSurveySubmissionClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
|
|
readonly [Symbol.toStringTag]: "PrismaPromise"
|
|
survey<T extends Prisma.HrSurveyDefaultArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.HrSurveyDefaultArgs<ExtArgs>>): Prisma.Prisma__HrSurveyClient<runtime.Types.Result.GetResult<Prisma.$HrSurveyPayload<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 HrSurveySubmission model
|
|
*/
|
|
export interface HrSurveySubmissionFieldRefs {
|
|
readonly id: Prisma.FieldRef<"HrSurveySubmission", 'String'>
|
|
readonly createdAt: Prisma.FieldRef<"HrSurveySubmission", 'DateTime'>
|
|
readonly tenantId: Prisma.FieldRef<"HrSurveySubmission", 'String'>
|
|
readonly surveyId: Prisma.FieldRef<"HrSurveySubmission", 'String'>
|
|
readonly submitterUserId: Prisma.FieldRef<"HrSurveySubmission", 'String'>
|
|
readonly submitterHash: Prisma.FieldRef<"HrSurveySubmission", 'String'>
|
|
readonly answers: Prisma.FieldRef<"HrSurveySubmission", 'Json'>
|
|
}
|
|
|
|
|
|
// Custom InputTypes
|
|
/**
|
|
* HrSurveySubmission findUnique
|
|
*/
|
|
export type HrSurveySubmissionFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the HrSurveySubmission
|
|
*/
|
|
select?: Prisma.HrSurveySubmissionSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the HrSurveySubmission
|
|
*/
|
|
omit?: Prisma.HrSurveySubmissionOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.HrSurveySubmissionInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which HrSurveySubmission to fetch.
|
|
*/
|
|
where: Prisma.HrSurveySubmissionWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* HrSurveySubmission findUniqueOrThrow
|
|
*/
|
|
export type HrSurveySubmissionFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the HrSurveySubmission
|
|
*/
|
|
select?: Prisma.HrSurveySubmissionSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the HrSurveySubmission
|
|
*/
|
|
omit?: Prisma.HrSurveySubmissionOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.HrSurveySubmissionInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which HrSurveySubmission to fetch.
|
|
*/
|
|
where: Prisma.HrSurveySubmissionWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* HrSurveySubmission findFirst
|
|
*/
|
|
export type HrSurveySubmissionFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the HrSurveySubmission
|
|
*/
|
|
select?: Prisma.HrSurveySubmissionSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the HrSurveySubmission
|
|
*/
|
|
omit?: Prisma.HrSurveySubmissionOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.HrSurveySubmissionInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which HrSurveySubmission to fetch.
|
|
*/
|
|
where?: Prisma.HrSurveySubmissionWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of HrSurveySubmissions to fetch.
|
|
*/
|
|
orderBy?: Prisma.HrSurveySubmissionOrderByWithRelationInput | Prisma.HrSurveySubmissionOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for searching for HrSurveySubmissions.
|
|
*/
|
|
cursor?: Prisma.HrSurveySubmissionWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` HrSurveySubmissions 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` HrSurveySubmissions.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
*
|
|
* Filter by unique combinations of HrSurveySubmissions.
|
|
*/
|
|
distinct?: Prisma.HrSurveySubmissionScalarFieldEnum | Prisma.HrSurveySubmissionScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* HrSurveySubmission findFirstOrThrow
|
|
*/
|
|
export type HrSurveySubmissionFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the HrSurveySubmission
|
|
*/
|
|
select?: Prisma.HrSurveySubmissionSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the HrSurveySubmission
|
|
*/
|
|
omit?: Prisma.HrSurveySubmissionOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.HrSurveySubmissionInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which HrSurveySubmission to fetch.
|
|
*/
|
|
where?: Prisma.HrSurveySubmissionWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of HrSurveySubmissions to fetch.
|
|
*/
|
|
orderBy?: Prisma.HrSurveySubmissionOrderByWithRelationInput | Prisma.HrSurveySubmissionOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for searching for HrSurveySubmissions.
|
|
*/
|
|
cursor?: Prisma.HrSurveySubmissionWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` HrSurveySubmissions 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` HrSurveySubmissions.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
*
|
|
* Filter by unique combinations of HrSurveySubmissions.
|
|
*/
|
|
distinct?: Prisma.HrSurveySubmissionScalarFieldEnum | Prisma.HrSurveySubmissionScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* HrSurveySubmission findMany
|
|
*/
|
|
export type HrSurveySubmissionFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the HrSurveySubmission
|
|
*/
|
|
select?: Prisma.HrSurveySubmissionSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the HrSurveySubmission
|
|
*/
|
|
omit?: Prisma.HrSurveySubmissionOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.HrSurveySubmissionInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which HrSurveySubmissions to fetch.
|
|
*/
|
|
where?: Prisma.HrSurveySubmissionWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of HrSurveySubmissions to fetch.
|
|
*/
|
|
orderBy?: Prisma.HrSurveySubmissionOrderByWithRelationInput | Prisma.HrSurveySubmissionOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for listing HrSurveySubmissions.
|
|
*/
|
|
cursor?: Prisma.HrSurveySubmissionWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` HrSurveySubmissions 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` HrSurveySubmissions.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
*
|
|
* Filter by unique combinations of HrSurveySubmissions.
|
|
*/
|
|
distinct?: Prisma.HrSurveySubmissionScalarFieldEnum | Prisma.HrSurveySubmissionScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* HrSurveySubmission create
|
|
*/
|
|
export type HrSurveySubmissionCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the HrSurveySubmission
|
|
*/
|
|
select?: Prisma.HrSurveySubmissionSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the HrSurveySubmission
|
|
*/
|
|
omit?: Prisma.HrSurveySubmissionOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.HrSurveySubmissionInclude<ExtArgs> | null
|
|
/**
|
|
* The data needed to create a HrSurveySubmission.
|
|
*/
|
|
data: Prisma.XOR<Prisma.HrSurveySubmissionCreateInput, Prisma.HrSurveySubmissionUncheckedCreateInput>
|
|
}
|
|
|
|
/**
|
|
* HrSurveySubmission createMany
|
|
*/
|
|
export type HrSurveySubmissionCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* The data used to create many HrSurveySubmissions.
|
|
*/
|
|
data: Prisma.HrSurveySubmissionCreateManyInput | Prisma.HrSurveySubmissionCreateManyInput[]
|
|
skipDuplicates?: boolean
|
|
}
|
|
|
|
/**
|
|
* HrSurveySubmission createManyAndReturn
|
|
*/
|
|
export type HrSurveySubmissionCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the HrSurveySubmission
|
|
*/
|
|
select?: Prisma.HrSurveySubmissionSelectCreateManyAndReturn<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the HrSurveySubmission
|
|
*/
|
|
omit?: Prisma.HrSurveySubmissionOmit<ExtArgs> | null
|
|
/**
|
|
* The data used to create many HrSurveySubmissions.
|
|
*/
|
|
data: Prisma.HrSurveySubmissionCreateManyInput | Prisma.HrSurveySubmissionCreateManyInput[]
|
|
skipDuplicates?: boolean
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.HrSurveySubmissionIncludeCreateManyAndReturn<ExtArgs> | null
|
|
}
|
|
|
|
/**
|
|
* HrSurveySubmission update
|
|
*/
|
|
export type HrSurveySubmissionUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the HrSurveySubmission
|
|
*/
|
|
select?: Prisma.HrSurveySubmissionSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the HrSurveySubmission
|
|
*/
|
|
omit?: Prisma.HrSurveySubmissionOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.HrSurveySubmissionInclude<ExtArgs> | null
|
|
/**
|
|
* The data needed to update a HrSurveySubmission.
|
|
*/
|
|
data: Prisma.XOR<Prisma.HrSurveySubmissionUpdateInput, Prisma.HrSurveySubmissionUncheckedUpdateInput>
|
|
/**
|
|
* Choose, which HrSurveySubmission to update.
|
|
*/
|
|
where: Prisma.HrSurveySubmissionWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* HrSurveySubmission updateMany
|
|
*/
|
|
export type HrSurveySubmissionUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* The data used to update HrSurveySubmissions.
|
|
*/
|
|
data: Prisma.XOR<Prisma.HrSurveySubmissionUpdateManyMutationInput, Prisma.HrSurveySubmissionUncheckedUpdateManyInput>
|
|
/**
|
|
* Filter which HrSurveySubmissions to update
|
|
*/
|
|
where?: Prisma.HrSurveySubmissionWhereInput
|
|
/**
|
|
* Limit how many HrSurveySubmissions to update.
|
|
*/
|
|
limit?: number
|
|
}
|
|
|
|
/**
|
|
* HrSurveySubmission updateManyAndReturn
|
|
*/
|
|
export type HrSurveySubmissionUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the HrSurveySubmission
|
|
*/
|
|
select?: Prisma.HrSurveySubmissionSelectUpdateManyAndReturn<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the HrSurveySubmission
|
|
*/
|
|
omit?: Prisma.HrSurveySubmissionOmit<ExtArgs> | null
|
|
/**
|
|
* The data used to update HrSurveySubmissions.
|
|
*/
|
|
data: Prisma.XOR<Prisma.HrSurveySubmissionUpdateManyMutationInput, Prisma.HrSurveySubmissionUncheckedUpdateManyInput>
|
|
/**
|
|
* Filter which HrSurveySubmissions to update
|
|
*/
|
|
where?: Prisma.HrSurveySubmissionWhereInput
|
|
/**
|
|
* Limit how many HrSurveySubmissions to update.
|
|
*/
|
|
limit?: number
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.HrSurveySubmissionIncludeUpdateManyAndReturn<ExtArgs> | null
|
|
}
|
|
|
|
/**
|
|
* HrSurveySubmission upsert
|
|
*/
|
|
export type HrSurveySubmissionUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the HrSurveySubmission
|
|
*/
|
|
select?: Prisma.HrSurveySubmissionSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the HrSurveySubmission
|
|
*/
|
|
omit?: Prisma.HrSurveySubmissionOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.HrSurveySubmissionInclude<ExtArgs> | null
|
|
/**
|
|
* The filter to search for the HrSurveySubmission to update in case it exists.
|
|
*/
|
|
where: Prisma.HrSurveySubmissionWhereUniqueInput
|
|
/**
|
|
* In case the HrSurveySubmission found by the `where` argument doesn't exist, create a new HrSurveySubmission with this data.
|
|
*/
|
|
create: Prisma.XOR<Prisma.HrSurveySubmissionCreateInput, Prisma.HrSurveySubmissionUncheckedCreateInput>
|
|
/**
|
|
* In case the HrSurveySubmission was found with the provided `where` argument, update it with this data.
|
|
*/
|
|
update: Prisma.XOR<Prisma.HrSurveySubmissionUpdateInput, Prisma.HrSurveySubmissionUncheckedUpdateInput>
|
|
}
|
|
|
|
/**
|
|
* HrSurveySubmission delete
|
|
*/
|
|
export type HrSurveySubmissionDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the HrSurveySubmission
|
|
*/
|
|
select?: Prisma.HrSurveySubmissionSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the HrSurveySubmission
|
|
*/
|
|
omit?: Prisma.HrSurveySubmissionOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.HrSurveySubmissionInclude<ExtArgs> | null
|
|
/**
|
|
* Filter which HrSurveySubmission to delete.
|
|
*/
|
|
where: Prisma.HrSurveySubmissionWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* HrSurveySubmission deleteMany
|
|
*/
|
|
export type HrSurveySubmissionDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Filter which HrSurveySubmissions to delete
|
|
*/
|
|
where?: Prisma.HrSurveySubmissionWhereInput
|
|
/**
|
|
* Limit how many HrSurveySubmissions to delete.
|
|
*/
|
|
limit?: number
|
|
}
|
|
|
|
/**
|
|
* HrSurveySubmission without action
|
|
*/
|
|
export type HrSurveySubmissionDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the HrSurveySubmission
|
|
*/
|
|
select?: Prisma.HrSurveySubmissionSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the HrSurveySubmission
|
|
*/
|
|
omit?: Prisma.HrSurveySubmissionOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.HrSurveySubmissionInclude<ExtArgs> | null
|
|
}
|