Files
2026-07-08 16:15:37 +02:00

1847 lines
69 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 `HrSurvey` 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 HrSurvey
* A survey. May be anonymous (`isAnonymous`); aggregated results are gated by
* `resultVisibility`. Soft-delete via `archivedAt`.
*/
export type HrSurveyModel = runtime.Types.Result.DefaultSelection<Prisma.$HrSurveyPayload>
export type AggregateHrSurvey = {
_count: HrSurveyCountAggregateOutputType | null
_min: HrSurveyMinAggregateOutputType | null
_max: HrSurveyMaxAggregateOutputType | null
}
export type HrSurveyMinAggregateOutputType = {
id: string | null
createdAt: Date | null
updatedAt: Date | null
tenantId: string | null
authorUserId: string | null
title: string | null
description: string | null
isAnonymous: boolean | null
resultVisibility: $Enums.HrSurveyResultVisibility | null
audienceKind: $Enums.HrAudienceKind | null
audienceRef: string | null
status: $Enums.HrSurveyStatus | null
opensAt: Date | null
closesAt: Date | null
isDemoData: boolean | null
archivedAt: Date | null
}
export type HrSurveyMaxAggregateOutputType = {
id: string | null
createdAt: Date | null
updatedAt: Date | null
tenantId: string | null
authorUserId: string | null
title: string | null
description: string | null
isAnonymous: boolean | null
resultVisibility: $Enums.HrSurveyResultVisibility | null
audienceKind: $Enums.HrAudienceKind | null
audienceRef: string | null
status: $Enums.HrSurveyStatus | null
opensAt: Date | null
closesAt: Date | null
isDemoData: boolean | null
archivedAt: Date | null
}
export type HrSurveyCountAggregateOutputType = {
id: number
createdAt: number
updatedAt: number
tenantId: number
authorUserId: number
title: number
description: number
isAnonymous: number
resultVisibility: number
audienceKind: number
audienceRef: number
status: number
opensAt: number
closesAt: number
isDemoData: number
archivedAt: number
_all: number
}
export type HrSurveyMinAggregateInputType = {
id?: true
createdAt?: true
updatedAt?: true
tenantId?: true
authorUserId?: true
title?: true
description?: true
isAnonymous?: true
resultVisibility?: true
audienceKind?: true
audienceRef?: true
status?: true
opensAt?: true
closesAt?: true
isDemoData?: true
archivedAt?: true
}
export type HrSurveyMaxAggregateInputType = {
id?: true
createdAt?: true
updatedAt?: true
tenantId?: true
authorUserId?: true
title?: true
description?: true
isAnonymous?: true
resultVisibility?: true
audienceKind?: true
audienceRef?: true
status?: true
opensAt?: true
closesAt?: true
isDemoData?: true
archivedAt?: true
}
export type HrSurveyCountAggregateInputType = {
id?: true
createdAt?: true
updatedAt?: true
tenantId?: true
authorUserId?: true
title?: true
description?: true
isAnonymous?: true
resultVisibility?: true
audienceKind?: true
audienceRef?: true
status?: true
opensAt?: true
closesAt?: true
isDemoData?: true
archivedAt?: true
_all?: true
}
export type HrSurveyAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Filter which HrSurvey to aggregate.
*/
where?: Prisma.HrSurveyWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of HrSurveys to fetch.
*/
orderBy?: Prisma.HrSurveyOrderByWithRelationInput | Prisma.HrSurveyOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the start position
*/
cursor?: Prisma.HrSurveyWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` HrSurveys 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` HrSurveys.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Count returned HrSurveys
**/
_count?: true | HrSurveyCountAggregateInputType
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to find the minimum value
**/
_min?: HrSurveyMinAggregateInputType
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to find the maximum value
**/
_max?: HrSurveyMaxAggregateInputType
}
export type GetHrSurveyAggregateType<T extends HrSurveyAggregateArgs> = {
[P in keyof T & keyof AggregateHrSurvey]: P extends '_count' | 'count'
? T[P] extends true
? number
: Prisma.GetScalarType<T[P], AggregateHrSurvey[P]>
: Prisma.GetScalarType<T[P], AggregateHrSurvey[P]>
}
export type HrSurveyGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
where?: Prisma.HrSurveyWhereInput
orderBy?: Prisma.HrSurveyOrderByWithAggregationInput | Prisma.HrSurveyOrderByWithAggregationInput[]
by: Prisma.HrSurveyScalarFieldEnum[] | Prisma.HrSurveyScalarFieldEnum
having?: Prisma.HrSurveyScalarWhereWithAggregatesInput
take?: number
skip?: number
_count?: HrSurveyCountAggregateInputType | true
_min?: HrSurveyMinAggregateInputType
_max?: HrSurveyMaxAggregateInputType
}
export type HrSurveyGroupByOutputType = {
id: string
createdAt: Date
updatedAt: Date
tenantId: string
authorUserId: string
title: string
description: string | null
isAnonymous: boolean
resultVisibility: $Enums.HrSurveyResultVisibility
audienceKind: $Enums.HrAudienceKind
audienceRef: string | null
status: $Enums.HrSurveyStatus
opensAt: Date | null
closesAt: Date | null
isDemoData: boolean
archivedAt: Date | null
_count: HrSurveyCountAggregateOutputType | null
_min: HrSurveyMinAggregateOutputType | null
_max: HrSurveyMaxAggregateOutputType | null
}
export type GetHrSurveyGroupByPayload<T extends HrSurveyGroupByArgs> = Prisma.PrismaPromise<
Array<
Prisma.PickEnumerable<HrSurveyGroupByOutputType, T['by']> &
{
[P in ((keyof T) & (keyof HrSurveyGroupByOutputType))]: P extends '_count'
? T[P] extends boolean
? number
: Prisma.GetScalarType<T[P], HrSurveyGroupByOutputType[P]>
: Prisma.GetScalarType<T[P], HrSurveyGroupByOutputType[P]>
}
>
>
export type HrSurveyWhereInput = {
AND?: Prisma.HrSurveyWhereInput | Prisma.HrSurveyWhereInput[]
OR?: Prisma.HrSurveyWhereInput[]
NOT?: Prisma.HrSurveyWhereInput | Prisma.HrSurveyWhereInput[]
id?: Prisma.StringFilter<"HrSurvey"> | string
createdAt?: Prisma.DateTimeFilter<"HrSurvey"> | Date | string
updatedAt?: Prisma.DateTimeFilter<"HrSurvey"> | Date | string
tenantId?: Prisma.StringFilter<"HrSurvey"> | string
authorUserId?: Prisma.StringFilter<"HrSurvey"> | string
title?: Prisma.StringFilter<"HrSurvey"> | string
description?: Prisma.StringNullableFilter<"HrSurvey"> | string | null
isAnonymous?: Prisma.BoolFilter<"HrSurvey"> | boolean
resultVisibility?: Prisma.EnumHrSurveyResultVisibilityFilter<"HrSurvey"> | $Enums.HrSurveyResultVisibility
audienceKind?: Prisma.EnumHrAudienceKindFilter<"HrSurvey"> | $Enums.HrAudienceKind
audienceRef?: Prisma.StringNullableFilter<"HrSurvey"> | string | null
status?: Prisma.EnumHrSurveyStatusFilter<"HrSurvey"> | $Enums.HrSurveyStatus
opensAt?: Prisma.DateTimeNullableFilter<"HrSurvey"> | Date | string | null
closesAt?: Prisma.DateTimeNullableFilter<"HrSurvey"> | Date | string | null
isDemoData?: Prisma.BoolFilter<"HrSurvey"> | boolean
archivedAt?: Prisma.DateTimeNullableFilter<"HrSurvey"> | Date | string | null
items?: Prisma.HrSurveyItemListRelationFilter
submissions?: Prisma.HrSurveySubmissionListRelationFilter
}
export type HrSurveyOrderByWithRelationInput = {
id?: Prisma.SortOrder
createdAt?: Prisma.SortOrder
updatedAt?: Prisma.SortOrder
tenantId?: Prisma.SortOrder
authorUserId?: Prisma.SortOrder
title?: Prisma.SortOrder
description?: Prisma.SortOrderInput | Prisma.SortOrder
isAnonymous?: Prisma.SortOrder
resultVisibility?: Prisma.SortOrder
audienceKind?: Prisma.SortOrder
audienceRef?: Prisma.SortOrderInput | Prisma.SortOrder
status?: Prisma.SortOrder
opensAt?: Prisma.SortOrderInput | Prisma.SortOrder
closesAt?: Prisma.SortOrderInput | Prisma.SortOrder
isDemoData?: Prisma.SortOrder
archivedAt?: Prisma.SortOrderInput | Prisma.SortOrder
items?: Prisma.HrSurveyItemOrderByRelationAggregateInput
submissions?: Prisma.HrSurveySubmissionOrderByRelationAggregateInput
}
export type HrSurveyWhereUniqueInput = Prisma.AtLeast<{
id?: string
AND?: Prisma.HrSurveyWhereInput | Prisma.HrSurveyWhereInput[]
OR?: Prisma.HrSurveyWhereInput[]
NOT?: Prisma.HrSurveyWhereInput | Prisma.HrSurveyWhereInput[]
createdAt?: Prisma.DateTimeFilter<"HrSurvey"> | Date | string
updatedAt?: Prisma.DateTimeFilter<"HrSurvey"> | Date | string
tenantId?: Prisma.StringFilter<"HrSurvey"> | string
authorUserId?: Prisma.StringFilter<"HrSurvey"> | string
title?: Prisma.StringFilter<"HrSurvey"> | string
description?: Prisma.StringNullableFilter<"HrSurvey"> | string | null
isAnonymous?: Prisma.BoolFilter<"HrSurvey"> | boolean
resultVisibility?: Prisma.EnumHrSurveyResultVisibilityFilter<"HrSurvey"> | $Enums.HrSurveyResultVisibility
audienceKind?: Prisma.EnumHrAudienceKindFilter<"HrSurvey"> | $Enums.HrAudienceKind
audienceRef?: Prisma.StringNullableFilter<"HrSurvey"> | string | null
status?: Prisma.EnumHrSurveyStatusFilter<"HrSurvey"> | $Enums.HrSurveyStatus
opensAt?: Prisma.DateTimeNullableFilter<"HrSurvey"> | Date | string | null
closesAt?: Prisma.DateTimeNullableFilter<"HrSurvey"> | Date | string | null
isDemoData?: Prisma.BoolFilter<"HrSurvey"> | boolean
archivedAt?: Prisma.DateTimeNullableFilter<"HrSurvey"> | Date | string | null
items?: Prisma.HrSurveyItemListRelationFilter
submissions?: Prisma.HrSurveySubmissionListRelationFilter
}, "id">
export type HrSurveyOrderByWithAggregationInput = {
id?: Prisma.SortOrder
createdAt?: Prisma.SortOrder
updatedAt?: Prisma.SortOrder
tenantId?: Prisma.SortOrder
authorUserId?: Prisma.SortOrder
title?: Prisma.SortOrder
description?: Prisma.SortOrderInput | Prisma.SortOrder
isAnonymous?: Prisma.SortOrder
resultVisibility?: Prisma.SortOrder
audienceKind?: Prisma.SortOrder
audienceRef?: Prisma.SortOrderInput | Prisma.SortOrder
status?: Prisma.SortOrder
opensAt?: Prisma.SortOrderInput | Prisma.SortOrder
closesAt?: Prisma.SortOrderInput | Prisma.SortOrder
isDemoData?: Prisma.SortOrder
archivedAt?: Prisma.SortOrderInput | Prisma.SortOrder
_count?: Prisma.HrSurveyCountOrderByAggregateInput
_max?: Prisma.HrSurveyMaxOrderByAggregateInput
_min?: Prisma.HrSurveyMinOrderByAggregateInput
}
export type HrSurveyScalarWhereWithAggregatesInput = {
AND?: Prisma.HrSurveyScalarWhereWithAggregatesInput | Prisma.HrSurveyScalarWhereWithAggregatesInput[]
OR?: Prisma.HrSurveyScalarWhereWithAggregatesInput[]
NOT?: Prisma.HrSurveyScalarWhereWithAggregatesInput | Prisma.HrSurveyScalarWhereWithAggregatesInput[]
id?: Prisma.StringWithAggregatesFilter<"HrSurvey"> | string
createdAt?: Prisma.DateTimeWithAggregatesFilter<"HrSurvey"> | Date | string
updatedAt?: Prisma.DateTimeWithAggregatesFilter<"HrSurvey"> | Date | string
tenantId?: Prisma.StringWithAggregatesFilter<"HrSurvey"> | string
authorUserId?: Prisma.StringWithAggregatesFilter<"HrSurvey"> | string
title?: Prisma.StringWithAggregatesFilter<"HrSurvey"> | string
description?: Prisma.StringNullableWithAggregatesFilter<"HrSurvey"> | string | null
isAnonymous?: Prisma.BoolWithAggregatesFilter<"HrSurvey"> | boolean
resultVisibility?: Prisma.EnumHrSurveyResultVisibilityWithAggregatesFilter<"HrSurvey"> | $Enums.HrSurveyResultVisibility
audienceKind?: Prisma.EnumHrAudienceKindWithAggregatesFilter<"HrSurvey"> | $Enums.HrAudienceKind
audienceRef?: Prisma.StringNullableWithAggregatesFilter<"HrSurvey"> | string | null
status?: Prisma.EnumHrSurveyStatusWithAggregatesFilter<"HrSurvey"> | $Enums.HrSurveyStatus
opensAt?: Prisma.DateTimeNullableWithAggregatesFilter<"HrSurvey"> | Date | string | null
closesAt?: Prisma.DateTimeNullableWithAggregatesFilter<"HrSurvey"> | Date | string | null
isDemoData?: Prisma.BoolWithAggregatesFilter<"HrSurvey"> | boolean
archivedAt?: Prisma.DateTimeNullableWithAggregatesFilter<"HrSurvey"> | Date | string | null
}
export type HrSurveyCreateInput = {
id?: string
createdAt?: Date | string
updatedAt?: Date | string
tenantId: string
authorUserId: string
title: string
description?: string | null
isAnonymous?: boolean
resultVisibility?: $Enums.HrSurveyResultVisibility
audienceKind?: $Enums.HrAudienceKind
audienceRef?: string | null
status?: $Enums.HrSurveyStatus
opensAt?: Date | string | null
closesAt?: Date | string | null
isDemoData?: boolean
archivedAt?: Date | string | null
items?: Prisma.HrSurveyItemCreateNestedManyWithoutSurveyInput
submissions?: Prisma.HrSurveySubmissionCreateNestedManyWithoutSurveyInput
}
export type HrSurveyUncheckedCreateInput = {
id?: string
createdAt?: Date | string
updatedAt?: Date | string
tenantId: string
authorUserId: string
title: string
description?: string | null
isAnonymous?: boolean
resultVisibility?: $Enums.HrSurveyResultVisibility
audienceKind?: $Enums.HrAudienceKind
audienceRef?: string | null
status?: $Enums.HrSurveyStatus
opensAt?: Date | string | null
closesAt?: Date | string | null
isDemoData?: boolean
archivedAt?: Date | string | null
items?: Prisma.HrSurveyItemUncheckedCreateNestedManyWithoutSurveyInput
submissions?: Prisma.HrSurveySubmissionUncheckedCreateNestedManyWithoutSurveyInput
}
export type HrSurveyUpdateInput = {
id?: Prisma.StringFieldUpdateOperationsInput | string
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
tenantId?: Prisma.StringFieldUpdateOperationsInput | string
authorUserId?: Prisma.StringFieldUpdateOperationsInput | string
title?: Prisma.StringFieldUpdateOperationsInput | string
description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
isAnonymous?: Prisma.BoolFieldUpdateOperationsInput | boolean
resultVisibility?: Prisma.EnumHrSurveyResultVisibilityFieldUpdateOperationsInput | $Enums.HrSurveyResultVisibility
audienceKind?: Prisma.EnumHrAudienceKindFieldUpdateOperationsInput | $Enums.HrAudienceKind
audienceRef?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
status?: Prisma.EnumHrSurveyStatusFieldUpdateOperationsInput | $Enums.HrSurveyStatus
opensAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
closesAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
isDemoData?: Prisma.BoolFieldUpdateOperationsInput | boolean
archivedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
items?: Prisma.HrSurveyItemUpdateManyWithoutSurveyNestedInput
submissions?: Prisma.HrSurveySubmissionUpdateManyWithoutSurveyNestedInput
}
export type HrSurveyUncheckedUpdateInput = {
id?: Prisma.StringFieldUpdateOperationsInput | string
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
tenantId?: Prisma.StringFieldUpdateOperationsInput | string
authorUserId?: Prisma.StringFieldUpdateOperationsInput | string
title?: Prisma.StringFieldUpdateOperationsInput | string
description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
isAnonymous?: Prisma.BoolFieldUpdateOperationsInput | boolean
resultVisibility?: Prisma.EnumHrSurveyResultVisibilityFieldUpdateOperationsInput | $Enums.HrSurveyResultVisibility
audienceKind?: Prisma.EnumHrAudienceKindFieldUpdateOperationsInput | $Enums.HrAudienceKind
audienceRef?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
status?: Prisma.EnumHrSurveyStatusFieldUpdateOperationsInput | $Enums.HrSurveyStatus
opensAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
closesAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
isDemoData?: Prisma.BoolFieldUpdateOperationsInput | boolean
archivedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
items?: Prisma.HrSurveyItemUncheckedUpdateManyWithoutSurveyNestedInput
submissions?: Prisma.HrSurveySubmissionUncheckedUpdateManyWithoutSurveyNestedInput
}
export type HrSurveyCreateManyInput = {
id?: string
createdAt?: Date | string
updatedAt?: Date | string
tenantId: string
authorUserId: string
title: string
description?: string | null
isAnonymous?: boolean
resultVisibility?: $Enums.HrSurveyResultVisibility
audienceKind?: $Enums.HrAudienceKind
audienceRef?: string | null
status?: $Enums.HrSurveyStatus
opensAt?: Date | string | null
closesAt?: Date | string | null
isDemoData?: boolean
archivedAt?: Date | string | null
}
export type HrSurveyUpdateManyMutationInput = {
id?: Prisma.StringFieldUpdateOperationsInput | string
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
tenantId?: Prisma.StringFieldUpdateOperationsInput | string
authorUserId?: Prisma.StringFieldUpdateOperationsInput | string
title?: Prisma.StringFieldUpdateOperationsInput | string
description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
isAnonymous?: Prisma.BoolFieldUpdateOperationsInput | boolean
resultVisibility?: Prisma.EnumHrSurveyResultVisibilityFieldUpdateOperationsInput | $Enums.HrSurveyResultVisibility
audienceKind?: Prisma.EnumHrAudienceKindFieldUpdateOperationsInput | $Enums.HrAudienceKind
audienceRef?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
status?: Prisma.EnumHrSurveyStatusFieldUpdateOperationsInput | $Enums.HrSurveyStatus
opensAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
closesAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
isDemoData?: Prisma.BoolFieldUpdateOperationsInput | boolean
archivedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
}
export type HrSurveyUncheckedUpdateManyInput = {
id?: Prisma.StringFieldUpdateOperationsInput | string
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
tenantId?: Prisma.StringFieldUpdateOperationsInput | string
authorUserId?: Prisma.StringFieldUpdateOperationsInput | string
title?: Prisma.StringFieldUpdateOperationsInput | string
description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
isAnonymous?: Prisma.BoolFieldUpdateOperationsInput | boolean
resultVisibility?: Prisma.EnumHrSurveyResultVisibilityFieldUpdateOperationsInput | $Enums.HrSurveyResultVisibility
audienceKind?: Prisma.EnumHrAudienceKindFieldUpdateOperationsInput | $Enums.HrAudienceKind
audienceRef?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
status?: Prisma.EnumHrSurveyStatusFieldUpdateOperationsInput | $Enums.HrSurveyStatus
opensAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
closesAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
isDemoData?: Prisma.BoolFieldUpdateOperationsInput | boolean
archivedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
}
export type HrSurveyCountOrderByAggregateInput = {
id?: Prisma.SortOrder
createdAt?: Prisma.SortOrder
updatedAt?: Prisma.SortOrder
tenantId?: Prisma.SortOrder
authorUserId?: Prisma.SortOrder
title?: Prisma.SortOrder
description?: Prisma.SortOrder
isAnonymous?: Prisma.SortOrder
resultVisibility?: Prisma.SortOrder
audienceKind?: Prisma.SortOrder
audienceRef?: Prisma.SortOrder
status?: Prisma.SortOrder
opensAt?: Prisma.SortOrder
closesAt?: Prisma.SortOrder
isDemoData?: Prisma.SortOrder
archivedAt?: Prisma.SortOrder
}
export type HrSurveyMaxOrderByAggregateInput = {
id?: Prisma.SortOrder
createdAt?: Prisma.SortOrder
updatedAt?: Prisma.SortOrder
tenantId?: Prisma.SortOrder
authorUserId?: Prisma.SortOrder
title?: Prisma.SortOrder
description?: Prisma.SortOrder
isAnonymous?: Prisma.SortOrder
resultVisibility?: Prisma.SortOrder
audienceKind?: Prisma.SortOrder
audienceRef?: Prisma.SortOrder
status?: Prisma.SortOrder
opensAt?: Prisma.SortOrder
closesAt?: Prisma.SortOrder
isDemoData?: Prisma.SortOrder
archivedAt?: Prisma.SortOrder
}
export type HrSurveyMinOrderByAggregateInput = {
id?: Prisma.SortOrder
createdAt?: Prisma.SortOrder
updatedAt?: Prisma.SortOrder
tenantId?: Prisma.SortOrder
authorUserId?: Prisma.SortOrder
title?: Prisma.SortOrder
description?: Prisma.SortOrder
isAnonymous?: Prisma.SortOrder
resultVisibility?: Prisma.SortOrder
audienceKind?: Prisma.SortOrder
audienceRef?: Prisma.SortOrder
status?: Prisma.SortOrder
opensAt?: Prisma.SortOrder
closesAt?: Prisma.SortOrder
isDemoData?: Prisma.SortOrder
archivedAt?: Prisma.SortOrder
}
export type HrSurveyScalarRelationFilter = {
is?: Prisma.HrSurveyWhereInput
isNot?: Prisma.HrSurveyWhereInput
}
export type EnumHrSurveyResultVisibilityFieldUpdateOperationsInput = {
set?: $Enums.HrSurveyResultVisibility
}
export type EnumHrSurveyStatusFieldUpdateOperationsInput = {
set?: $Enums.HrSurveyStatus
}
export type HrSurveyCreateNestedOneWithoutItemsInput = {
create?: Prisma.XOR<Prisma.HrSurveyCreateWithoutItemsInput, Prisma.HrSurveyUncheckedCreateWithoutItemsInput>
connectOrCreate?: Prisma.HrSurveyCreateOrConnectWithoutItemsInput
connect?: Prisma.HrSurveyWhereUniqueInput
}
export type HrSurveyUpdateOneRequiredWithoutItemsNestedInput = {
create?: Prisma.XOR<Prisma.HrSurveyCreateWithoutItemsInput, Prisma.HrSurveyUncheckedCreateWithoutItemsInput>
connectOrCreate?: Prisma.HrSurveyCreateOrConnectWithoutItemsInput
upsert?: Prisma.HrSurveyUpsertWithoutItemsInput
connect?: Prisma.HrSurveyWhereUniqueInput
update?: Prisma.XOR<Prisma.XOR<Prisma.HrSurveyUpdateToOneWithWhereWithoutItemsInput, Prisma.HrSurveyUpdateWithoutItemsInput>, Prisma.HrSurveyUncheckedUpdateWithoutItemsInput>
}
export type HrSurveyCreateNestedOneWithoutSubmissionsInput = {
create?: Prisma.XOR<Prisma.HrSurveyCreateWithoutSubmissionsInput, Prisma.HrSurveyUncheckedCreateWithoutSubmissionsInput>
connectOrCreate?: Prisma.HrSurveyCreateOrConnectWithoutSubmissionsInput
connect?: Prisma.HrSurveyWhereUniqueInput
}
export type HrSurveyUpdateOneRequiredWithoutSubmissionsNestedInput = {
create?: Prisma.XOR<Prisma.HrSurveyCreateWithoutSubmissionsInput, Prisma.HrSurveyUncheckedCreateWithoutSubmissionsInput>
connectOrCreate?: Prisma.HrSurveyCreateOrConnectWithoutSubmissionsInput
upsert?: Prisma.HrSurveyUpsertWithoutSubmissionsInput
connect?: Prisma.HrSurveyWhereUniqueInput
update?: Prisma.XOR<Prisma.XOR<Prisma.HrSurveyUpdateToOneWithWhereWithoutSubmissionsInput, Prisma.HrSurveyUpdateWithoutSubmissionsInput>, Prisma.HrSurveyUncheckedUpdateWithoutSubmissionsInput>
}
export type HrSurveyCreateWithoutItemsInput = {
id?: string
createdAt?: Date | string
updatedAt?: Date | string
tenantId: string
authorUserId: string
title: string
description?: string | null
isAnonymous?: boolean
resultVisibility?: $Enums.HrSurveyResultVisibility
audienceKind?: $Enums.HrAudienceKind
audienceRef?: string | null
status?: $Enums.HrSurveyStatus
opensAt?: Date | string | null
closesAt?: Date | string | null
isDemoData?: boolean
archivedAt?: Date | string | null
submissions?: Prisma.HrSurveySubmissionCreateNestedManyWithoutSurveyInput
}
export type HrSurveyUncheckedCreateWithoutItemsInput = {
id?: string
createdAt?: Date | string
updatedAt?: Date | string
tenantId: string
authorUserId: string
title: string
description?: string | null
isAnonymous?: boolean
resultVisibility?: $Enums.HrSurveyResultVisibility
audienceKind?: $Enums.HrAudienceKind
audienceRef?: string | null
status?: $Enums.HrSurveyStatus
opensAt?: Date | string | null
closesAt?: Date | string | null
isDemoData?: boolean
archivedAt?: Date | string | null
submissions?: Prisma.HrSurveySubmissionUncheckedCreateNestedManyWithoutSurveyInput
}
export type HrSurveyCreateOrConnectWithoutItemsInput = {
where: Prisma.HrSurveyWhereUniqueInput
create: Prisma.XOR<Prisma.HrSurveyCreateWithoutItemsInput, Prisma.HrSurveyUncheckedCreateWithoutItemsInput>
}
export type HrSurveyUpsertWithoutItemsInput = {
update: Prisma.XOR<Prisma.HrSurveyUpdateWithoutItemsInput, Prisma.HrSurveyUncheckedUpdateWithoutItemsInput>
create: Prisma.XOR<Prisma.HrSurveyCreateWithoutItemsInput, Prisma.HrSurveyUncheckedCreateWithoutItemsInput>
where?: Prisma.HrSurveyWhereInput
}
export type HrSurveyUpdateToOneWithWhereWithoutItemsInput = {
where?: Prisma.HrSurveyWhereInput
data: Prisma.XOR<Prisma.HrSurveyUpdateWithoutItemsInput, Prisma.HrSurveyUncheckedUpdateWithoutItemsInput>
}
export type HrSurveyUpdateWithoutItemsInput = {
id?: Prisma.StringFieldUpdateOperationsInput | string
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
tenantId?: Prisma.StringFieldUpdateOperationsInput | string
authorUserId?: Prisma.StringFieldUpdateOperationsInput | string
title?: Prisma.StringFieldUpdateOperationsInput | string
description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
isAnonymous?: Prisma.BoolFieldUpdateOperationsInput | boolean
resultVisibility?: Prisma.EnumHrSurveyResultVisibilityFieldUpdateOperationsInput | $Enums.HrSurveyResultVisibility
audienceKind?: Prisma.EnumHrAudienceKindFieldUpdateOperationsInput | $Enums.HrAudienceKind
audienceRef?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
status?: Prisma.EnumHrSurveyStatusFieldUpdateOperationsInput | $Enums.HrSurveyStatus
opensAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
closesAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
isDemoData?: Prisma.BoolFieldUpdateOperationsInput | boolean
archivedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
submissions?: Prisma.HrSurveySubmissionUpdateManyWithoutSurveyNestedInput
}
export type HrSurveyUncheckedUpdateWithoutItemsInput = {
id?: Prisma.StringFieldUpdateOperationsInput | string
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
tenantId?: Prisma.StringFieldUpdateOperationsInput | string
authorUserId?: Prisma.StringFieldUpdateOperationsInput | string
title?: Prisma.StringFieldUpdateOperationsInput | string
description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
isAnonymous?: Prisma.BoolFieldUpdateOperationsInput | boolean
resultVisibility?: Prisma.EnumHrSurveyResultVisibilityFieldUpdateOperationsInput | $Enums.HrSurveyResultVisibility
audienceKind?: Prisma.EnumHrAudienceKindFieldUpdateOperationsInput | $Enums.HrAudienceKind
audienceRef?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
status?: Prisma.EnumHrSurveyStatusFieldUpdateOperationsInput | $Enums.HrSurveyStatus
opensAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
closesAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
isDemoData?: Prisma.BoolFieldUpdateOperationsInput | boolean
archivedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
submissions?: Prisma.HrSurveySubmissionUncheckedUpdateManyWithoutSurveyNestedInput
}
export type HrSurveyCreateWithoutSubmissionsInput = {
id?: string
createdAt?: Date | string
updatedAt?: Date | string
tenantId: string
authorUserId: string
title: string
description?: string | null
isAnonymous?: boolean
resultVisibility?: $Enums.HrSurveyResultVisibility
audienceKind?: $Enums.HrAudienceKind
audienceRef?: string | null
status?: $Enums.HrSurveyStatus
opensAt?: Date | string | null
closesAt?: Date | string | null
isDemoData?: boolean
archivedAt?: Date | string | null
items?: Prisma.HrSurveyItemCreateNestedManyWithoutSurveyInput
}
export type HrSurveyUncheckedCreateWithoutSubmissionsInput = {
id?: string
createdAt?: Date | string
updatedAt?: Date | string
tenantId: string
authorUserId: string
title: string
description?: string | null
isAnonymous?: boolean
resultVisibility?: $Enums.HrSurveyResultVisibility
audienceKind?: $Enums.HrAudienceKind
audienceRef?: string | null
status?: $Enums.HrSurveyStatus
opensAt?: Date | string | null
closesAt?: Date | string | null
isDemoData?: boolean
archivedAt?: Date | string | null
items?: Prisma.HrSurveyItemUncheckedCreateNestedManyWithoutSurveyInput
}
export type HrSurveyCreateOrConnectWithoutSubmissionsInput = {
where: Prisma.HrSurveyWhereUniqueInput
create: Prisma.XOR<Prisma.HrSurveyCreateWithoutSubmissionsInput, Prisma.HrSurveyUncheckedCreateWithoutSubmissionsInput>
}
export type HrSurveyUpsertWithoutSubmissionsInput = {
update: Prisma.XOR<Prisma.HrSurveyUpdateWithoutSubmissionsInput, Prisma.HrSurveyUncheckedUpdateWithoutSubmissionsInput>
create: Prisma.XOR<Prisma.HrSurveyCreateWithoutSubmissionsInput, Prisma.HrSurveyUncheckedCreateWithoutSubmissionsInput>
where?: Prisma.HrSurveyWhereInput
}
export type HrSurveyUpdateToOneWithWhereWithoutSubmissionsInput = {
where?: Prisma.HrSurveyWhereInput
data: Prisma.XOR<Prisma.HrSurveyUpdateWithoutSubmissionsInput, Prisma.HrSurveyUncheckedUpdateWithoutSubmissionsInput>
}
export type HrSurveyUpdateWithoutSubmissionsInput = {
id?: Prisma.StringFieldUpdateOperationsInput | string
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
tenantId?: Prisma.StringFieldUpdateOperationsInput | string
authorUserId?: Prisma.StringFieldUpdateOperationsInput | string
title?: Prisma.StringFieldUpdateOperationsInput | string
description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
isAnonymous?: Prisma.BoolFieldUpdateOperationsInput | boolean
resultVisibility?: Prisma.EnumHrSurveyResultVisibilityFieldUpdateOperationsInput | $Enums.HrSurveyResultVisibility
audienceKind?: Prisma.EnumHrAudienceKindFieldUpdateOperationsInput | $Enums.HrAudienceKind
audienceRef?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
status?: Prisma.EnumHrSurveyStatusFieldUpdateOperationsInput | $Enums.HrSurveyStatus
opensAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
closesAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
isDemoData?: Prisma.BoolFieldUpdateOperationsInput | boolean
archivedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
items?: Prisma.HrSurveyItemUpdateManyWithoutSurveyNestedInput
}
export type HrSurveyUncheckedUpdateWithoutSubmissionsInput = {
id?: Prisma.StringFieldUpdateOperationsInput | string
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
tenantId?: Prisma.StringFieldUpdateOperationsInput | string
authorUserId?: Prisma.StringFieldUpdateOperationsInput | string
title?: Prisma.StringFieldUpdateOperationsInput | string
description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
isAnonymous?: Prisma.BoolFieldUpdateOperationsInput | boolean
resultVisibility?: Prisma.EnumHrSurveyResultVisibilityFieldUpdateOperationsInput | $Enums.HrSurveyResultVisibility
audienceKind?: Prisma.EnumHrAudienceKindFieldUpdateOperationsInput | $Enums.HrAudienceKind
audienceRef?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
status?: Prisma.EnumHrSurveyStatusFieldUpdateOperationsInput | $Enums.HrSurveyStatus
opensAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
closesAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
isDemoData?: Prisma.BoolFieldUpdateOperationsInput | boolean
archivedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
items?: Prisma.HrSurveyItemUncheckedUpdateManyWithoutSurveyNestedInput
}
/**
* Count Type HrSurveyCountOutputType
*/
export type HrSurveyCountOutputType = {
items: number
submissions: number
}
export type HrSurveyCountOutputTypeSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
items?: boolean | HrSurveyCountOutputTypeCountItemsArgs
submissions?: boolean | HrSurveyCountOutputTypeCountSubmissionsArgs
}
/**
* HrSurveyCountOutputType without action
*/
export type HrSurveyCountOutputTypeDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the HrSurveyCountOutputType
*/
select?: Prisma.HrSurveyCountOutputTypeSelect<ExtArgs> | null
}
/**
* HrSurveyCountOutputType without action
*/
export type HrSurveyCountOutputTypeCountItemsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
where?: Prisma.HrSurveyItemWhereInput
}
/**
* HrSurveyCountOutputType without action
*/
export type HrSurveyCountOutputTypeCountSubmissionsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
where?: Prisma.HrSurveySubmissionWhereInput
}
export type HrSurveySelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
id?: boolean
createdAt?: boolean
updatedAt?: boolean
tenantId?: boolean
authorUserId?: boolean
title?: boolean
description?: boolean
isAnonymous?: boolean
resultVisibility?: boolean
audienceKind?: boolean
audienceRef?: boolean
status?: boolean
opensAt?: boolean
closesAt?: boolean
isDemoData?: boolean
archivedAt?: boolean
items?: boolean | Prisma.HrSurvey$itemsArgs<ExtArgs>
submissions?: boolean | Prisma.HrSurvey$submissionsArgs<ExtArgs>
_count?: boolean | Prisma.HrSurveyCountOutputTypeDefaultArgs<ExtArgs>
}, ExtArgs["result"]["hrSurvey"]>
export type HrSurveySelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
id?: boolean
createdAt?: boolean
updatedAt?: boolean
tenantId?: boolean
authorUserId?: boolean
title?: boolean
description?: boolean
isAnonymous?: boolean
resultVisibility?: boolean
audienceKind?: boolean
audienceRef?: boolean
status?: boolean
opensAt?: boolean
closesAt?: boolean
isDemoData?: boolean
archivedAt?: boolean
}, ExtArgs["result"]["hrSurvey"]>
export type HrSurveySelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
id?: boolean
createdAt?: boolean
updatedAt?: boolean
tenantId?: boolean
authorUserId?: boolean
title?: boolean
description?: boolean
isAnonymous?: boolean
resultVisibility?: boolean
audienceKind?: boolean
audienceRef?: boolean
status?: boolean
opensAt?: boolean
closesAt?: boolean
isDemoData?: boolean
archivedAt?: boolean
}, ExtArgs["result"]["hrSurvey"]>
export type HrSurveySelectScalar = {
id?: boolean
createdAt?: boolean
updatedAt?: boolean
tenantId?: boolean
authorUserId?: boolean
title?: boolean
description?: boolean
isAnonymous?: boolean
resultVisibility?: boolean
audienceKind?: boolean
audienceRef?: boolean
status?: boolean
opensAt?: boolean
closesAt?: boolean
isDemoData?: boolean
archivedAt?: boolean
}
export type HrSurveyOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "createdAt" | "updatedAt" | "tenantId" | "authorUserId" | "title" | "description" | "isAnonymous" | "resultVisibility" | "audienceKind" | "audienceRef" | "status" | "opensAt" | "closesAt" | "isDemoData" | "archivedAt", ExtArgs["result"]["hrSurvey"]>
export type HrSurveyInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
items?: boolean | Prisma.HrSurvey$itemsArgs<ExtArgs>
submissions?: boolean | Prisma.HrSurvey$submissionsArgs<ExtArgs>
_count?: boolean | Prisma.HrSurveyCountOutputTypeDefaultArgs<ExtArgs>
}
export type HrSurveyIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {}
export type HrSurveyIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {}
export type $HrSurveyPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
name: "HrSurvey"
objects: {
items: Prisma.$HrSurveyItemPayload<ExtArgs>[]
submissions: Prisma.$HrSurveySubmissionPayload<ExtArgs>[]
}
scalars: runtime.Types.Extensions.GetPayloadResult<{
id: string
createdAt: Date
updatedAt: Date
tenantId: string
authorUserId: string
title: string
description: string | null
isAnonymous: boolean
resultVisibility: $Enums.HrSurveyResultVisibility
audienceKind: $Enums.HrAudienceKind
audienceRef: string | null
status: $Enums.HrSurveyStatus
opensAt: Date | null
closesAt: Date | null
isDemoData: boolean
archivedAt: Date | null
}, ExtArgs["result"]["hrSurvey"]>
composites: {}
}
export type HrSurveyGetPayload<S extends boolean | null | undefined | HrSurveyDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$HrSurveyPayload, S>
export type HrSurveyCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> =
Omit<HrSurveyFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
select?: HrSurveyCountAggregateInputType | true
}
export interface HrSurveyDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
[K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['HrSurvey'], meta: { name: 'HrSurvey' } }
/**
* Find zero or one HrSurvey that matches the filter.
* @param {HrSurveyFindUniqueArgs} args - Arguments to find a HrSurvey
* @example
* // Get one HrSurvey
* const hrSurvey = await prisma.hrSurvey.findUnique({
* where: {
* // ... provide filter here
* }
* })
*/
findUnique<T extends HrSurveyFindUniqueArgs>(args: Prisma.SelectSubset<T, HrSurveyFindUniqueArgs<ExtArgs>>): Prisma.Prisma__HrSurveyClient<runtime.Types.Result.GetResult<Prisma.$HrSurveyPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
/**
* Find one HrSurvey that matches the filter or throw an error with `error.code='P2025'`
* if no matches were found.
* @param {HrSurveyFindUniqueOrThrowArgs} args - Arguments to find a HrSurvey
* @example
* // Get one HrSurvey
* const hrSurvey = await prisma.hrSurvey.findUniqueOrThrow({
* where: {
* // ... provide filter here
* }
* })
*/
findUniqueOrThrow<T extends HrSurveyFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, HrSurveyFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__HrSurveyClient<runtime.Types.Result.GetResult<Prisma.$HrSurveyPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Find the first HrSurvey 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 {HrSurveyFindFirstArgs} args - Arguments to find a HrSurvey
* @example
* // Get one HrSurvey
* const hrSurvey = await prisma.hrSurvey.findFirst({
* where: {
* // ... provide filter here
* }
* })
*/
findFirst<T extends HrSurveyFindFirstArgs>(args?: Prisma.SelectSubset<T, HrSurveyFindFirstArgs<ExtArgs>>): Prisma.Prisma__HrSurveyClient<runtime.Types.Result.GetResult<Prisma.$HrSurveyPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
/**
* Find the first HrSurvey 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 {HrSurveyFindFirstOrThrowArgs} args - Arguments to find a HrSurvey
* @example
* // Get one HrSurvey
* const hrSurvey = await prisma.hrSurvey.findFirstOrThrow({
* where: {
* // ... provide filter here
* }
* })
*/
findFirstOrThrow<T extends HrSurveyFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, HrSurveyFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__HrSurveyClient<runtime.Types.Result.GetResult<Prisma.$HrSurveyPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Find zero or more HrSurveys 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 {HrSurveyFindManyArgs} args - Arguments to filter and select certain fields only.
* @example
* // Get all HrSurveys
* const hrSurveys = await prisma.hrSurvey.findMany()
*
* // Get first 10 HrSurveys
* const hrSurveys = await prisma.hrSurvey.findMany({ take: 10 })
*
* // Only select the `id`
* const hrSurveyWithIdOnly = await prisma.hrSurvey.findMany({ select: { id: true } })
*
*/
findMany<T extends HrSurveyFindManyArgs>(args?: Prisma.SelectSubset<T, HrSurveyFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$HrSurveyPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
/**
* Create a HrSurvey.
* @param {HrSurveyCreateArgs} args - Arguments to create a HrSurvey.
* @example
* // Create one HrSurvey
* const HrSurvey = await prisma.hrSurvey.create({
* data: {
* // ... data to create a HrSurvey
* }
* })
*
*/
create<T extends HrSurveyCreateArgs>(args: Prisma.SelectSubset<T, HrSurveyCreateArgs<ExtArgs>>): Prisma.Prisma__HrSurveyClient<runtime.Types.Result.GetResult<Prisma.$HrSurveyPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Create many HrSurveys.
* @param {HrSurveyCreateManyArgs} args - Arguments to create many HrSurveys.
* @example
* // Create many HrSurveys
* const hrSurvey = await prisma.hrSurvey.createMany({
* data: [
* // ... provide data here
* ]
* })
*
*/
createMany<T extends HrSurveyCreateManyArgs>(args?: Prisma.SelectSubset<T, HrSurveyCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
/**
* Create many HrSurveys and returns the data saved in the database.
* @param {HrSurveyCreateManyAndReturnArgs} args - Arguments to create many HrSurveys.
* @example
* // Create many HrSurveys
* const hrSurvey = await prisma.hrSurvey.createManyAndReturn({
* data: [
* // ... provide data here
* ]
* })
*
* // Create many HrSurveys and only return the `id`
* const hrSurveyWithIdOnly = await prisma.hrSurvey.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 HrSurveyCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, HrSurveyCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$HrSurveyPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>
/**
* Delete a HrSurvey.
* @param {HrSurveyDeleteArgs} args - Arguments to delete one HrSurvey.
* @example
* // Delete one HrSurvey
* const HrSurvey = await prisma.hrSurvey.delete({
* where: {
* // ... filter to delete one HrSurvey
* }
* })
*
*/
delete<T extends HrSurveyDeleteArgs>(args: Prisma.SelectSubset<T, HrSurveyDeleteArgs<ExtArgs>>): Prisma.Prisma__HrSurveyClient<runtime.Types.Result.GetResult<Prisma.$HrSurveyPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Update one HrSurvey.
* @param {HrSurveyUpdateArgs} args - Arguments to update one HrSurvey.
* @example
* // Update one HrSurvey
* const hrSurvey = await prisma.hrSurvey.update({
* where: {
* // ... provide filter here
* },
* data: {
* // ... provide data here
* }
* })
*
*/
update<T extends HrSurveyUpdateArgs>(args: Prisma.SelectSubset<T, HrSurveyUpdateArgs<ExtArgs>>): Prisma.Prisma__HrSurveyClient<runtime.Types.Result.GetResult<Prisma.$HrSurveyPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Delete zero or more HrSurveys.
* @param {HrSurveyDeleteManyArgs} args - Arguments to filter HrSurveys to delete.
* @example
* // Delete a few HrSurveys
* const { count } = await prisma.hrSurvey.deleteMany({
* where: {
* // ... provide filter here
* }
* })
*
*/
deleteMany<T extends HrSurveyDeleteManyArgs>(args?: Prisma.SelectSubset<T, HrSurveyDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
/**
* Update zero or more HrSurveys.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {HrSurveyUpdateManyArgs} args - Arguments to update one or more rows.
* @example
* // Update many HrSurveys
* const hrSurvey = await prisma.hrSurvey.updateMany({
* where: {
* // ... provide filter here
* },
* data: {
* // ... provide data here
* }
* })
*
*/
updateMany<T extends HrSurveyUpdateManyArgs>(args: Prisma.SelectSubset<T, HrSurveyUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
/**
* Update zero or more HrSurveys and returns the data updated in the database.
* @param {HrSurveyUpdateManyAndReturnArgs} args - Arguments to update many HrSurveys.
* @example
* // Update many HrSurveys
* const hrSurvey = await prisma.hrSurvey.updateManyAndReturn({
* where: {
* // ... provide filter here
* },
* data: [
* // ... provide data here
* ]
* })
*
* // Update zero or more HrSurveys and only return the `id`
* const hrSurveyWithIdOnly = await prisma.hrSurvey.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 HrSurveyUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, HrSurveyUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$HrSurveyPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>
/**
* Create or update one HrSurvey.
* @param {HrSurveyUpsertArgs} args - Arguments to update or create a HrSurvey.
* @example
* // Update or create a HrSurvey
* const hrSurvey = await prisma.hrSurvey.upsert({
* create: {
* // ... data to create a HrSurvey
* },
* update: {
* // ... in case it already exists, update
* },
* where: {
* // ... the filter for the HrSurvey we want to update
* }
* })
*/
upsert<T extends HrSurveyUpsertArgs>(args: Prisma.SelectSubset<T, HrSurveyUpsertArgs<ExtArgs>>): Prisma.Prisma__HrSurveyClient<runtime.Types.Result.GetResult<Prisma.$HrSurveyPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Count the number of HrSurveys.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {HrSurveyCountArgs} args - Arguments to filter HrSurveys to count.
* @example
* // Count the number of HrSurveys
* const count = await prisma.hrSurvey.count({
* where: {
* // ... the filter for the HrSurveys we want to count
* }
* })
**/
count<T extends HrSurveyCountArgs>(
args?: Prisma.Subset<T, HrSurveyCountArgs>,
): Prisma.PrismaPromise<
T extends runtime.Types.Utils.Record<'select', any>
? T['select'] extends true
? number
: Prisma.GetScalarType<T['select'], HrSurveyCountAggregateOutputType>
: number
>
/**
* Allows you to perform aggregations operations on a HrSurvey.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {HrSurveyAggregateArgs} 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 HrSurveyAggregateArgs>(args: Prisma.Subset<T, HrSurveyAggregateArgs>): Prisma.PrismaPromise<GetHrSurveyAggregateType<T>>
/**
* Group by HrSurvey.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {HrSurveyGroupByArgs} 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 HrSurveyGroupByArgs,
HasSelectOrTake extends Prisma.Or<
Prisma.Extends<'skip', Prisma.Keys<T>>,
Prisma.Extends<'take', Prisma.Keys<T>>
>,
OrderByArg extends Prisma.True extends HasSelectOrTake
? { orderBy: HrSurveyGroupByArgs['orderBy'] }
: { orderBy?: HrSurveyGroupByArgs['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, HrSurveyGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetHrSurveyGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
/**
* Fields of the HrSurvey model
*/
readonly fields: HrSurveyFieldRefs;
}
/**
* The delegate class that acts as a "Promise-like" for HrSurvey.
* 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__HrSurveyClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
readonly [Symbol.toStringTag]: "PrismaPromise"
items<T extends Prisma.HrSurvey$itemsArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.HrSurvey$itemsArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$HrSurveyItemPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
submissions<T extends Prisma.HrSurvey$submissionsArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.HrSurvey$submissionsArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$HrSurveySubmissionPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
/**
* Attaches callbacks for the resolution and/or rejection of the Promise.
* @param onfulfilled The callback to execute when the Promise is resolved.
* @param onrejected The callback to execute when the Promise is rejected.
* @returns A Promise for the completion of which ever callback is executed.
*/
then<TResult1 = T, TResult2 = never>(onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined | null): runtime.Types.Utils.JsPromise<TResult1 | TResult2>
/**
* Attaches a callback for only the rejection of the Promise.
* @param onrejected The callback to execute when the Promise is rejected.
* @returns A Promise for the completion of the callback.
*/
catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): runtime.Types.Utils.JsPromise<T | TResult>
/**
* Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
* resolved value cannot be modified from the callback.
* @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
* @returns A Promise for the completion of the callback.
*/
finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise<T>
}
/**
* Fields of the HrSurvey model
*/
export interface HrSurveyFieldRefs {
readonly id: Prisma.FieldRef<"HrSurvey", 'String'>
readonly createdAt: Prisma.FieldRef<"HrSurvey", 'DateTime'>
readonly updatedAt: Prisma.FieldRef<"HrSurvey", 'DateTime'>
readonly tenantId: Prisma.FieldRef<"HrSurvey", 'String'>
readonly authorUserId: Prisma.FieldRef<"HrSurvey", 'String'>
readonly title: Prisma.FieldRef<"HrSurvey", 'String'>
readonly description: Prisma.FieldRef<"HrSurvey", 'String'>
readonly isAnonymous: Prisma.FieldRef<"HrSurvey", 'Boolean'>
readonly resultVisibility: Prisma.FieldRef<"HrSurvey", 'HrSurveyResultVisibility'>
readonly audienceKind: Prisma.FieldRef<"HrSurvey", 'HrAudienceKind'>
readonly audienceRef: Prisma.FieldRef<"HrSurvey", 'String'>
readonly status: Prisma.FieldRef<"HrSurvey", 'HrSurveyStatus'>
readonly opensAt: Prisma.FieldRef<"HrSurvey", 'DateTime'>
readonly closesAt: Prisma.FieldRef<"HrSurvey", 'DateTime'>
readonly isDemoData: Prisma.FieldRef<"HrSurvey", 'Boolean'>
readonly archivedAt: Prisma.FieldRef<"HrSurvey", 'DateTime'>
}
// Custom InputTypes
/**
* HrSurvey findUnique
*/
export type HrSurveyFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the HrSurvey
*/
select?: Prisma.HrSurveySelect<ExtArgs> | null
/**
* Omit specific fields from the HrSurvey
*/
omit?: Prisma.HrSurveyOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.HrSurveyInclude<ExtArgs> | null
/**
* Filter, which HrSurvey to fetch.
*/
where: Prisma.HrSurveyWhereUniqueInput
}
/**
* HrSurvey findUniqueOrThrow
*/
export type HrSurveyFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the HrSurvey
*/
select?: Prisma.HrSurveySelect<ExtArgs> | null
/**
* Omit specific fields from the HrSurvey
*/
omit?: Prisma.HrSurveyOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.HrSurveyInclude<ExtArgs> | null
/**
* Filter, which HrSurvey to fetch.
*/
where: Prisma.HrSurveyWhereUniqueInput
}
/**
* HrSurvey findFirst
*/
export type HrSurveyFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the HrSurvey
*/
select?: Prisma.HrSurveySelect<ExtArgs> | null
/**
* Omit specific fields from the HrSurvey
*/
omit?: Prisma.HrSurveyOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.HrSurveyInclude<ExtArgs> | null
/**
* Filter, which HrSurvey to fetch.
*/
where?: Prisma.HrSurveyWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of HrSurveys to fetch.
*/
orderBy?: Prisma.HrSurveyOrderByWithRelationInput | Prisma.HrSurveyOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the position for searching for HrSurveys.
*/
cursor?: Prisma.HrSurveyWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` HrSurveys 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` HrSurveys.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
*
* Filter by unique combinations of HrSurveys.
*/
distinct?: Prisma.HrSurveyScalarFieldEnum | Prisma.HrSurveyScalarFieldEnum[]
}
/**
* HrSurvey findFirstOrThrow
*/
export type HrSurveyFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the HrSurvey
*/
select?: Prisma.HrSurveySelect<ExtArgs> | null
/**
* Omit specific fields from the HrSurvey
*/
omit?: Prisma.HrSurveyOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.HrSurveyInclude<ExtArgs> | null
/**
* Filter, which HrSurvey to fetch.
*/
where?: Prisma.HrSurveyWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of HrSurveys to fetch.
*/
orderBy?: Prisma.HrSurveyOrderByWithRelationInput | Prisma.HrSurveyOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the position for searching for HrSurveys.
*/
cursor?: Prisma.HrSurveyWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` HrSurveys 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` HrSurveys.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
*
* Filter by unique combinations of HrSurveys.
*/
distinct?: Prisma.HrSurveyScalarFieldEnum | Prisma.HrSurveyScalarFieldEnum[]
}
/**
* HrSurvey findMany
*/
export type HrSurveyFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the HrSurvey
*/
select?: Prisma.HrSurveySelect<ExtArgs> | null
/**
* Omit specific fields from the HrSurvey
*/
omit?: Prisma.HrSurveyOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.HrSurveyInclude<ExtArgs> | null
/**
* Filter, which HrSurveys to fetch.
*/
where?: Prisma.HrSurveyWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of HrSurveys to fetch.
*/
orderBy?: Prisma.HrSurveyOrderByWithRelationInput | Prisma.HrSurveyOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the position for listing HrSurveys.
*/
cursor?: Prisma.HrSurveyWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` HrSurveys 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` HrSurveys.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
*
* Filter by unique combinations of HrSurveys.
*/
distinct?: Prisma.HrSurveyScalarFieldEnum | Prisma.HrSurveyScalarFieldEnum[]
}
/**
* HrSurvey create
*/
export type HrSurveyCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the HrSurvey
*/
select?: Prisma.HrSurveySelect<ExtArgs> | null
/**
* Omit specific fields from the HrSurvey
*/
omit?: Prisma.HrSurveyOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.HrSurveyInclude<ExtArgs> | null
/**
* The data needed to create a HrSurvey.
*/
data: Prisma.XOR<Prisma.HrSurveyCreateInput, Prisma.HrSurveyUncheckedCreateInput>
}
/**
* HrSurvey createMany
*/
export type HrSurveyCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* The data used to create many HrSurveys.
*/
data: Prisma.HrSurveyCreateManyInput | Prisma.HrSurveyCreateManyInput[]
skipDuplicates?: boolean
}
/**
* HrSurvey createManyAndReturn
*/
export type HrSurveyCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the HrSurvey
*/
select?: Prisma.HrSurveySelectCreateManyAndReturn<ExtArgs> | null
/**
* Omit specific fields from the HrSurvey
*/
omit?: Prisma.HrSurveyOmit<ExtArgs> | null
/**
* The data used to create many HrSurveys.
*/
data: Prisma.HrSurveyCreateManyInput | Prisma.HrSurveyCreateManyInput[]
skipDuplicates?: boolean
}
/**
* HrSurvey update
*/
export type HrSurveyUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the HrSurvey
*/
select?: Prisma.HrSurveySelect<ExtArgs> | null
/**
* Omit specific fields from the HrSurvey
*/
omit?: Prisma.HrSurveyOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.HrSurveyInclude<ExtArgs> | null
/**
* The data needed to update a HrSurvey.
*/
data: Prisma.XOR<Prisma.HrSurveyUpdateInput, Prisma.HrSurveyUncheckedUpdateInput>
/**
* Choose, which HrSurvey to update.
*/
where: Prisma.HrSurveyWhereUniqueInput
}
/**
* HrSurvey updateMany
*/
export type HrSurveyUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* The data used to update HrSurveys.
*/
data: Prisma.XOR<Prisma.HrSurveyUpdateManyMutationInput, Prisma.HrSurveyUncheckedUpdateManyInput>
/**
* Filter which HrSurveys to update
*/
where?: Prisma.HrSurveyWhereInput
/**
* Limit how many HrSurveys to update.
*/
limit?: number
}
/**
* HrSurvey updateManyAndReturn
*/
export type HrSurveyUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the HrSurvey
*/
select?: Prisma.HrSurveySelectUpdateManyAndReturn<ExtArgs> | null
/**
* Omit specific fields from the HrSurvey
*/
omit?: Prisma.HrSurveyOmit<ExtArgs> | null
/**
* The data used to update HrSurveys.
*/
data: Prisma.XOR<Prisma.HrSurveyUpdateManyMutationInput, Prisma.HrSurveyUncheckedUpdateManyInput>
/**
* Filter which HrSurveys to update
*/
where?: Prisma.HrSurveyWhereInput
/**
* Limit how many HrSurveys to update.
*/
limit?: number
}
/**
* HrSurvey upsert
*/
export type HrSurveyUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the HrSurvey
*/
select?: Prisma.HrSurveySelect<ExtArgs> | null
/**
* Omit specific fields from the HrSurvey
*/
omit?: Prisma.HrSurveyOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.HrSurveyInclude<ExtArgs> | null
/**
* The filter to search for the HrSurvey to update in case it exists.
*/
where: Prisma.HrSurveyWhereUniqueInput
/**
* In case the HrSurvey found by the `where` argument doesn't exist, create a new HrSurvey with this data.
*/
create: Prisma.XOR<Prisma.HrSurveyCreateInput, Prisma.HrSurveyUncheckedCreateInput>
/**
* In case the HrSurvey was found with the provided `where` argument, update it with this data.
*/
update: Prisma.XOR<Prisma.HrSurveyUpdateInput, Prisma.HrSurveyUncheckedUpdateInput>
}
/**
* HrSurvey delete
*/
export type HrSurveyDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the HrSurvey
*/
select?: Prisma.HrSurveySelect<ExtArgs> | null
/**
* Omit specific fields from the HrSurvey
*/
omit?: Prisma.HrSurveyOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.HrSurveyInclude<ExtArgs> | null
/**
* Filter which HrSurvey to delete.
*/
where: Prisma.HrSurveyWhereUniqueInput
}
/**
* HrSurvey deleteMany
*/
export type HrSurveyDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Filter which HrSurveys to delete
*/
where?: Prisma.HrSurveyWhereInput
/**
* Limit how many HrSurveys to delete.
*/
limit?: number
}
/**
* HrSurvey.items
*/
export type HrSurvey$itemsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the HrSurveyItem
*/
select?: Prisma.HrSurveyItemSelect<ExtArgs> | null
/**
* Omit specific fields from the HrSurveyItem
*/
omit?: Prisma.HrSurveyItemOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.HrSurveyItemInclude<ExtArgs> | null
where?: Prisma.HrSurveyItemWhereInput
orderBy?: Prisma.HrSurveyItemOrderByWithRelationInput | Prisma.HrSurveyItemOrderByWithRelationInput[]
cursor?: Prisma.HrSurveyItemWhereUniqueInput
take?: number
skip?: number
distinct?: Prisma.HrSurveyItemScalarFieldEnum | Prisma.HrSurveyItemScalarFieldEnum[]
}
/**
* HrSurvey.submissions
*/
export type HrSurvey$submissionsArgs<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
where?: Prisma.HrSurveySubmissionWhereInput
orderBy?: Prisma.HrSurveySubmissionOrderByWithRelationInput | Prisma.HrSurveySubmissionOrderByWithRelationInput[]
cursor?: Prisma.HrSurveySubmissionWhereUniqueInput
take?: number
skip?: number
distinct?: Prisma.HrSurveySubmissionScalarFieldEnum | Prisma.HrSurveySubmissionScalarFieldEnum[]
}
/**
* HrSurvey without action
*/
export type HrSurveyDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the HrSurvey
*/
select?: Prisma.HrSurveySelect<ExtArgs> | null
/**
* Omit specific fields from the HrSurvey
*/
omit?: Prisma.HrSurveyOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.HrSurveyInclude<ExtArgs> | null
}