1572 lines
59 KiB
TypeScript
1572 lines
59 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 `HrSurveyItem` 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 HrSurveyItem
|
|
* One question in a survey. `options` holds the choices for `choice` items.
|
|
*/
|
|
export type HrSurveyItemModel = runtime.Types.Result.DefaultSelection<Prisma.$HrSurveyItemPayload>
|
|
|
|
export type AggregateHrSurveyItem = {
|
|
_count: HrSurveyItemCountAggregateOutputType | null
|
|
_avg: HrSurveyItemAvgAggregateOutputType | null
|
|
_sum: HrSurveyItemSumAggregateOutputType | null
|
|
_min: HrSurveyItemMinAggregateOutputType | null
|
|
_max: HrSurveyItemMaxAggregateOutputType | null
|
|
}
|
|
|
|
export type HrSurveyItemAvgAggregateOutputType = {
|
|
sortOrder: number | null
|
|
}
|
|
|
|
export type HrSurveyItemSumAggregateOutputType = {
|
|
sortOrder: number | null
|
|
}
|
|
|
|
export type HrSurveyItemMinAggregateOutputType = {
|
|
id: string | null
|
|
createdAt: Date | null
|
|
updatedAt: Date | null
|
|
tenantId: string | null
|
|
surveyId: string | null
|
|
itemType: $Enums.HrSurveyItemType | null
|
|
prompt: string | null
|
|
required: boolean | null
|
|
sortOrder: number | null
|
|
}
|
|
|
|
export type HrSurveyItemMaxAggregateOutputType = {
|
|
id: string | null
|
|
createdAt: Date | null
|
|
updatedAt: Date | null
|
|
tenantId: string | null
|
|
surveyId: string | null
|
|
itemType: $Enums.HrSurveyItemType | null
|
|
prompt: string | null
|
|
required: boolean | null
|
|
sortOrder: number | null
|
|
}
|
|
|
|
export type HrSurveyItemCountAggregateOutputType = {
|
|
id: number
|
|
createdAt: number
|
|
updatedAt: number
|
|
tenantId: number
|
|
surveyId: number
|
|
itemType: number
|
|
prompt: number
|
|
required: number
|
|
options: number
|
|
sortOrder: number
|
|
_all: number
|
|
}
|
|
|
|
|
|
export type HrSurveyItemAvgAggregateInputType = {
|
|
sortOrder?: true
|
|
}
|
|
|
|
export type HrSurveyItemSumAggregateInputType = {
|
|
sortOrder?: true
|
|
}
|
|
|
|
export type HrSurveyItemMinAggregateInputType = {
|
|
id?: true
|
|
createdAt?: true
|
|
updatedAt?: true
|
|
tenantId?: true
|
|
surveyId?: true
|
|
itemType?: true
|
|
prompt?: true
|
|
required?: true
|
|
sortOrder?: true
|
|
}
|
|
|
|
export type HrSurveyItemMaxAggregateInputType = {
|
|
id?: true
|
|
createdAt?: true
|
|
updatedAt?: true
|
|
tenantId?: true
|
|
surveyId?: true
|
|
itemType?: true
|
|
prompt?: true
|
|
required?: true
|
|
sortOrder?: true
|
|
}
|
|
|
|
export type HrSurveyItemCountAggregateInputType = {
|
|
id?: true
|
|
createdAt?: true
|
|
updatedAt?: true
|
|
tenantId?: true
|
|
surveyId?: true
|
|
itemType?: true
|
|
prompt?: true
|
|
required?: true
|
|
options?: true
|
|
sortOrder?: true
|
|
_all?: true
|
|
}
|
|
|
|
export type HrSurveyItemAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Filter which HrSurveyItem to aggregate.
|
|
*/
|
|
where?: Prisma.HrSurveyItemWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of HrSurveyItems to fetch.
|
|
*/
|
|
orderBy?: Prisma.HrSurveyItemOrderByWithRelationInput | Prisma.HrSurveyItemOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the start position
|
|
*/
|
|
cursor?: Prisma.HrSurveyItemWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` HrSurveyItems 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` HrSurveyItems.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Count returned HrSurveyItems
|
|
**/
|
|
_count?: true | HrSurveyItemCountAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to average
|
|
**/
|
|
_avg?: HrSurveyItemAvgAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to sum
|
|
**/
|
|
_sum?: HrSurveyItemSumAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to find the minimum value
|
|
**/
|
|
_min?: HrSurveyItemMinAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to find the maximum value
|
|
**/
|
|
_max?: HrSurveyItemMaxAggregateInputType
|
|
}
|
|
|
|
export type GetHrSurveyItemAggregateType<T extends HrSurveyItemAggregateArgs> = {
|
|
[P in keyof T & keyof AggregateHrSurveyItem]: P extends '_count' | 'count'
|
|
? T[P] extends true
|
|
? number
|
|
: Prisma.GetScalarType<T[P], AggregateHrSurveyItem[P]>
|
|
: Prisma.GetScalarType<T[P], AggregateHrSurveyItem[P]>
|
|
}
|
|
|
|
|
|
|
|
|
|
export type HrSurveyItemGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
where?: Prisma.HrSurveyItemWhereInput
|
|
orderBy?: Prisma.HrSurveyItemOrderByWithAggregationInput | Prisma.HrSurveyItemOrderByWithAggregationInput[]
|
|
by: Prisma.HrSurveyItemScalarFieldEnum[] | Prisma.HrSurveyItemScalarFieldEnum
|
|
having?: Prisma.HrSurveyItemScalarWhereWithAggregatesInput
|
|
take?: number
|
|
skip?: number
|
|
_count?: HrSurveyItemCountAggregateInputType | true
|
|
_avg?: HrSurveyItemAvgAggregateInputType
|
|
_sum?: HrSurveyItemSumAggregateInputType
|
|
_min?: HrSurveyItemMinAggregateInputType
|
|
_max?: HrSurveyItemMaxAggregateInputType
|
|
}
|
|
|
|
export type HrSurveyItemGroupByOutputType = {
|
|
id: string
|
|
createdAt: Date
|
|
updatedAt: Date
|
|
tenantId: string
|
|
surveyId: string
|
|
itemType: $Enums.HrSurveyItemType
|
|
prompt: string
|
|
required: boolean
|
|
options: string[]
|
|
sortOrder: number
|
|
_count: HrSurveyItemCountAggregateOutputType | null
|
|
_avg: HrSurveyItemAvgAggregateOutputType | null
|
|
_sum: HrSurveyItemSumAggregateOutputType | null
|
|
_min: HrSurveyItemMinAggregateOutputType | null
|
|
_max: HrSurveyItemMaxAggregateOutputType | null
|
|
}
|
|
|
|
export type GetHrSurveyItemGroupByPayload<T extends HrSurveyItemGroupByArgs> = Prisma.PrismaPromise<
|
|
Array<
|
|
Prisma.PickEnumerable<HrSurveyItemGroupByOutputType, T['by']> &
|
|
{
|
|
[P in ((keyof T) & (keyof HrSurveyItemGroupByOutputType))]: P extends '_count'
|
|
? T[P] extends boolean
|
|
? number
|
|
: Prisma.GetScalarType<T[P], HrSurveyItemGroupByOutputType[P]>
|
|
: Prisma.GetScalarType<T[P], HrSurveyItemGroupByOutputType[P]>
|
|
}
|
|
>
|
|
>
|
|
|
|
|
|
|
|
export type HrSurveyItemWhereInput = {
|
|
AND?: Prisma.HrSurveyItemWhereInput | Prisma.HrSurveyItemWhereInput[]
|
|
OR?: Prisma.HrSurveyItemWhereInput[]
|
|
NOT?: Prisma.HrSurveyItemWhereInput | Prisma.HrSurveyItemWhereInput[]
|
|
id?: Prisma.StringFilter<"HrSurveyItem"> | string
|
|
createdAt?: Prisma.DateTimeFilter<"HrSurveyItem"> | Date | string
|
|
updatedAt?: Prisma.DateTimeFilter<"HrSurveyItem"> | Date | string
|
|
tenantId?: Prisma.StringFilter<"HrSurveyItem"> | string
|
|
surveyId?: Prisma.StringFilter<"HrSurveyItem"> | string
|
|
itemType?: Prisma.EnumHrSurveyItemTypeFilter<"HrSurveyItem"> | $Enums.HrSurveyItemType
|
|
prompt?: Prisma.StringFilter<"HrSurveyItem"> | string
|
|
required?: Prisma.BoolFilter<"HrSurveyItem"> | boolean
|
|
options?: Prisma.StringNullableListFilter<"HrSurveyItem">
|
|
sortOrder?: Prisma.IntFilter<"HrSurveyItem"> | number
|
|
survey?: Prisma.XOR<Prisma.HrSurveyScalarRelationFilter, Prisma.HrSurveyWhereInput>
|
|
}
|
|
|
|
export type HrSurveyItemOrderByWithRelationInput = {
|
|
id?: Prisma.SortOrder
|
|
createdAt?: Prisma.SortOrder
|
|
updatedAt?: Prisma.SortOrder
|
|
tenantId?: Prisma.SortOrder
|
|
surveyId?: Prisma.SortOrder
|
|
itemType?: Prisma.SortOrder
|
|
prompt?: Prisma.SortOrder
|
|
required?: Prisma.SortOrder
|
|
options?: Prisma.SortOrder
|
|
sortOrder?: Prisma.SortOrder
|
|
survey?: Prisma.HrSurveyOrderByWithRelationInput
|
|
}
|
|
|
|
export type HrSurveyItemWhereUniqueInput = Prisma.AtLeast<{
|
|
id?: string
|
|
AND?: Prisma.HrSurveyItemWhereInput | Prisma.HrSurveyItemWhereInput[]
|
|
OR?: Prisma.HrSurveyItemWhereInput[]
|
|
NOT?: Prisma.HrSurveyItemWhereInput | Prisma.HrSurveyItemWhereInput[]
|
|
createdAt?: Prisma.DateTimeFilter<"HrSurveyItem"> | Date | string
|
|
updatedAt?: Prisma.DateTimeFilter<"HrSurveyItem"> | Date | string
|
|
tenantId?: Prisma.StringFilter<"HrSurveyItem"> | string
|
|
surveyId?: Prisma.StringFilter<"HrSurveyItem"> | string
|
|
itemType?: Prisma.EnumHrSurveyItemTypeFilter<"HrSurveyItem"> | $Enums.HrSurveyItemType
|
|
prompt?: Prisma.StringFilter<"HrSurveyItem"> | string
|
|
required?: Prisma.BoolFilter<"HrSurveyItem"> | boolean
|
|
options?: Prisma.StringNullableListFilter<"HrSurveyItem">
|
|
sortOrder?: Prisma.IntFilter<"HrSurveyItem"> | number
|
|
survey?: Prisma.XOR<Prisma.HrSurveyScalarRelationFilter, Prisma.HrSurveyWhereInput>
|
|
}, "id">
|
|
|
|
export type HrSurveyItemOrderByWithAggregationInput = {
|
|
id?: Prisma.SortOrder
|
|
createdAt?: Prisma.SortOrder
|
|
updatedAt?: Prisma.SortOrder
|
|
tenantId?: Prisma.SortOrder
|
|
surveyId?: Prisma.SortOrder
|
|
itemType?: Prisma.SortOrder
|
|
prompt?: Prisma.SortOrder
|
|
required?: Prisma.SortOrder
|
|
options?: Prisma.SortOrder
|
|
sortOrder?: Prisma.SortOrder
|
|
_count?: Prisma.HrSurveyItemCountOrderByAggregateInput
|
|
_avg?: Prisma.HrSurveyItemAvgOrderByAggregateInput
|
|
_max?: Prisma.HrSurveyItemMaxOrderByAggregateInput
|
|
_min?: Prisma.HrSurveyItemMinOrderByAggregateInput
|
|
_sum?: Prisma.HrSurveyItemSumOrderByAggregateInput
|
|
}
|
|
|
|
export type HrSurveyItemScalarWhereWithAggregatesInput = {
|
|
AND?: Prisma.HrSurveyItemScalarWhereWithAggregatesInput | Prisma.HrSurveyItemScalarWhereWithAggregatesInput[]
|
|
OR?: Prisma.HrSurveyItemScalarWhereWithAggregatesInput[]
|
|
NOT?: Prisma.HrSurveyItemScalarWhereWithAggregatesInput | Prisma.HrSurveyItemScalarWhereWithAggregatesInput[]
|
|
id?: Prisma.StringWithAggregatesFilter<"HrSurveyItem"> | string
|
|
createdAt?: Prisma.DateTimeWithAggregatesFilter<"HrSurveyItem"> | Date | string
|
|
updatedAt?: Prisma.DateTimeWithAggregatesFilter<"HrSurveyItem"> | Date | string
|
|
tenantId?: Prisma.StringWithAggregatesFilter<"HrSurveyItem"> | string
|
|
surveyId?: Prisma.StringWithAggregatesFilter<"HrSurveyItem"> | string
|
|
itemType?: Prisma.EnumHrSurveyItemTypeWithAggregatesFilter<"HrSurveyItem"> | $Enums.HrSurveyItemType
|
|
prompt?: Prisma.StringWithAggregatesFilter<"HrSurveyItem"> | string
|
|
required?: Prisma.BoolWithAggregatesFilter<"HrSurveyItem"> | boolean
|
|
options?: Prisma.StringNullableListFilter<"HrSurveyItem">
|
|
sortOrder?: Prisma.IntWithAggregatesFilter<"HrSurveyItem"> | number
|
|
}
|
|
|
|
export type HrSurveyItemCreateInput = {
|
|
id?: string
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
tenantId: string
|
|
itemType: $Enums.HrSurveyItemType
|
|
prompt: string
|
|
required?: boolean
|
|
options?: Prisma.HrSurveyItemCreateoptionsInput | string[]
|
|
sortOrder?: number
|
|
survey: Prisma.HrSurveyCreateNestedOneWithoutItemsInput
|
|
}
|
|
|
|
export type HrSurveyItemUncheckedCreateInput = {
|
|
id?: string
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
tenantId: string
|
|
surveyId: string
|
|
itemType: $Enums.HrSurveyItemType
|
|
prompt: string
|
|
required?: boolean
|
|
options?: Prisma.HrSurveyItemCreateoptionsInput | string[]
|
|
sortOrder?: number
|
|
}
|
|
|
|
export type HrSurveyItemUpdateInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
tenantId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
itemType?: Prisma.EnumHrSurveyItemTypeFieldUpdateOperationsInput | $Enums.HrSurveyItemType
|
|
prompt?: Prisma.StringFieldUpdateOperationsInput | string
|
|
required?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
|
options?: Prisma.HrSurveyItemUpdateoptionsInput | string[]
|
|
sortOrder?: Prisma.IntFieldUpdateOperationsInput | number
|
|
survey?: Prisma.HrSurveyUpdateOneRequiredWithoutItemsNestedInput
|
|
}
|
|
|
|
export type HrSurveyItemUncheckedUpdateInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
tenantId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
surveyId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
itemType?: Prisma.EnumHrSurveyItemTypeFieldUpdateOperationsInput | $Enums.HrSurveyItemType
|
|
prompt?: Prisma.StringFieldUpdateOperationsInput | string
|
|
required?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
|
options?: Prisma.HrSurveyItemUpdateoptionsInput | string[]
|
|
sortOrder?: Prisma.IntFieldUpdateOperationsInput | number
|
|
}
|
|
|
|
export type HrSurveyItemCreateManyInput = {
|
|
id?: string
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
tenantId: string
|
|
surveyId: string
|
|
itemType: $Enums.HrSurveyItemType
|
|
prompt: string
|
|
required?: boolean
|
|
options?: Prisma.HrSurveyItemCreateoptionsInput | string[]
|
|
sortOrder?: number
|
|
}
|
|
|
|
export type HrSurveyItemUpdateManyMutationInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
tenantId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
itemType?: Prisma.EnumHrSurveyItemTypeFieldUpdateOperationsInput | $Enums.HrSurveyItemType
|
|
prompt?: Prisma.StringFieldUpdateOperationsInput | string
|
|
required?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
|
options?: Prisma.HrSurveyItemUpdateoptionsInput | string[]
|
|
sortOrder?: Prisma.IntFieldUpdateOperationsInput | number
|
|
}
|
|
|
|
export type HrSurveyItemUncheckedUpdateManyInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
tenantId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
surveyId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
itemType?: Prisma.EnumHrSurveyItemTypeFieldUpdateOperationsInput | $Enums.HrSurveyItemType
|
|
prompt?: Prisma.StringFieldUpdateOperationsInput | string
|
|
required?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
|
options?: Prisma.HrSurveyItemUpdateoptionsInput | string[]
|
|
sortOrder?: Prisma.IntFieldUpdateOperationsInput | number
|
|
}
|
|
|
|
export type HrSurveyItemListRelationFilter = {
|
|
every?: Prisma.HrSurveyItemWhereInput
|
|
some?: Prisma.HrSurveyItemWhereInput
|
|
none?: Prisma.HrSurveyItemWhereInput
|
|
}
|
|
|
|
export type HrSurveyItemOrderByRelationAggregateInput = {
|
|
_count?: Prisma.SortOrder
|
|
}
|
|
|
|
export type HrSurveyItemCountOrderByAggregateInput = {
|
|
id?: Prisma.SortOrder
|
|
createdAt?: Prisma.SortOrder
|
|
updatedAt?: Prisma.SortOrder
|
|
tenantId?: Prisma.SortOrder
|
|
surveyId?: Prisma.SortOrder
|
|
itemType?: Prisma.SortOrder
|
|
prompt?: Prisma.SortOrder
|
|
required?: Prisma.SortOrder
|
|
options?: Prisma.SortOrder
|
|
sortOrder?: Prisma.SortOrder
|
|
}
|
|
|
|
export type HrSurveyItemAvgOrderByAggregateInput = {
|
|
sortOrder?: Prisma.SortOrder
|
|
}
|
|
|
|
export type HrSurveyItemMaxOrderByAggregateInput = {
|
|
id?: Prisma.SortOrder
|
|
createdAt?: Prisma.SortOrder
|
|
updatedAt?: Prisma.SortOrder
|
|
tenantId?: Prisma.SortOrder
|
|
surveyId?: Prisma.SortOrder
|
|
itemType?: Prisma.SortOrder
|
|
prompt?: Prisma.SortOrder
|
|
required?: Prisma.SortOrder
|
|
sortOrder?: Prisma.SortOrder
|
|
}
|
|
|
|
export type HrSurveyItemMinOrderByAggregateInput = {
|
|
id?: Prisma.SortOrder
|
|
createdAt?: Prisma.SortOrder
|
|
updatedAt?: Prisma.SortOrder
|
|
tenantId?: Prisma.SortOrder
|
|
surveyId?: Prisma.SortOrder
|
|
itemType?: Prisma.SortOrder
|
|
prompt?: Prisma.SortOrder
|
|
required?: Prisma.SortOrder
|
|
sortOrder?: Prisma.SortOrder
|
|
}
|
|
|
|
export type HrSurveyItemSumOrderByAggregateInput = {
|
|
sortOrder?: Prisma.SortOrder
|
|
}
|
|
|
|
export type HrSurveyItemCreateNestedManyWithoutSurveyInput = {
|
|
create?: Prisma.XOR<Prisma.HrSurveyItemCreateWithoutSurveyInput, Prisma.HrSurveyItemUncheckedCreateWithoutSurveyInput> | Prisma.HrSurveyItemCreateWithoutSurveyInput[] | Prisma.HrSurveyItemUncheckedCreateWithoutSurveyInput[]
|
|
connectOrCreate?: Prisma.HrSurveyItemCreateOrConnectWithoutSurveyInput | Prisma.HrSurveyItemCreateOrConnectWithoutSurveyInput[]
|
|
createMany?: Prisma.HrSurveyItemCreateManySurveyInputEnvelope
|
|
connect?: Prisma.HrSurveyItemWhereUniqueInput | Prisma.HrSurveyItemWhereUniqueInput[]
|
|
}
|
|
|
|
export type HrSurveyItemUncheckedCreateNestedManyWithoutSurveyInput = {
|
|
create?: Prisma.XOR<Prisma.HrSurveyItemCreateWithoutSurveyInput, Prisma.HrSurveyItemUncheckedCreateWithoutSurveyInput> | Prisma.HrSurveyItemCreateWithoutSurveyInput[] | Prisma.HrSurveyItemUncheckedCreateWithoutSurveyInput[]
|
|
connectOrCreate?: Prisma.HrSurveyItemCreateOrConnectWithoutSurveyInput | Prisma.HrSurveyItemCreateOrConnectWithoutSurveyInput[]
|
|
createMany?: Prisma.HrSurveyItemCreateManySurveyInputEnvelope
|
|
connect?: Prisma.HrSurveyItemWhereUniqueInput | Prisma.HrSurveyItemWhereUniqueInput[]
|
|
}
|
|
|
|
export type HrSurveyItemUpdateManyWithoutSurveyNestedInput = {
|
|
create?: Prisma.XOR<Prisma.HrSurveyItemCreateWithoutSurveyInput, Prisma.HrSurveyItemUncheckedCreateWithoutSurveyInput> | Prisma.HrSurveyItemCreateWithoutSurveyInput[] | Prisma.HrSurveyItemUncheckedCreateWithoutSurveyInput[]
|
|
connectOrCreate?: Prisma.HrSurveyItemCreateOrConnectWithoutSurveyInput | Prisma.HrSurveyItemCreateOrConnectWithoutSurveyInput[]
|
|
upsert?: Prisma.HrSurveyItemUpsertWithWhereUniqueWithoutSurveyInput | Prisma.HrSurveyItemUpsertWithWhereUniqueWithoutSurveyInput[]
|
|
createMany?: Prisma.HrSurveyItemCreateManySurveyInputEnvelope
|
|
set?: Prisma.HrSurveyItemWhereUniqueInput | Prisma.HrSurveyItemWhereUniqueInput[]
|
|
disconnect?: Prisma.HrSurveyItemWhereUniqueInput | Prisma.HrSurveyItemWhereUniqueInput[]
|
|
delete?: Prisma.HrSurveyItemWhereUniqueInput | Prisma.HrSurveyItemWhereUniqueInput[]
|
|
connect?: Prisma.HrSurveyItemWhereUniqueInput | Prisma.HrSurveyItemWhereUniqueInput[]
|
|
update?: Prisma.HrSurveyItemUpdateWithWhereUniqueWithoutSurveyInput | Prisma.HrSurveyItemUpdateWithWhereUniqueWithoutSurveyInput[]
|
|
updateMany?: Prisma.HrSurveyItemUpdateManyWithWhereWithoutSurveyInput | Prisma.HrSurveyItemUpdateManyWithWhereWithoutSurveyInput[]
|
|
deleteMany?: Prisma.HrSurveyItemScalarWhereInput | Prisma.HrSurveyItemScalarWhereInput[]
|
|
}
|
|
|
|
export type HrSurveyItemUncheckedUpdateManyWithoutSurveyNestedInput = {
|
|
create?: Prisma.XOR<Prisma.HrSurveyItemCreateWithoutSurveyInput, Prisma.HrSurveyItemUncheckedCreateWithoutSurveyInput> | Prisma.HrSurveyItemCreateWithoutSurveyInput[] | Prisma.HrSurveyItemUncheckedCreateWithoutSurveyInput[]
|
|
connectOrCreate?: Prisma.HrSurveyItemCreateOrConnectWithoutSurveyInput | Prisma.HrSurveyItemCreateOrConnectWithoutSurveyInput[]
|
|
upsert?: Prisma.HrSurveyItemUpsertWithWhereUniqueWithoutSurveyInput | Prisma.HrSurveyItemUpsertWithWhereUniqueWithoutSurveyInput[]
|
|
createMany?: Prisma.HrSurveyItemCreateManySurveyInputEnvelope
|
|
set?: Prisma.HrSurveyItemWhereUniqueInput | Prisma.HrSurveyItemWhereUniqueInput[]
|
|
disconnect?: Prisma.HrSurveyItemWhereUniqueInput | Prisma.HrSurveyItemWhereUniqueInput[]
|
|
delete?: Prisma.HrSurveyItemWhereUniqueInput | Prisma.HrSurveyItemWhereUniqueInput[]
|
|
connect?: Prisma.HrSurveyItemWhereUniqueInput | Prisma.HrSurveyItemWhereUniqueInput[]
|
|
update?: Prisma.HrSurveyItemUpdateWithWhereUniqueWithoutSurveyInput | Prisma.HrSurveyItemUpdateWithWhereUniqueWithoutSurveyInput[]
|
|
updateMany?: Prisma.HrSurveyItemUpdateManyWithWhereWithoutSurveyInput | Prisma.HrSurveyItemUpdateManyWithWhereWithoutSurveyInput[]
|
|
deleteMany?: Prisma.HrSurveyItemScalarWhereInput | Prisma.HrSurveyItemScalarWhereInput[]
|
|
}
|
|
|
|
export type HrSurveyItemCreateoptionsInput = {
|
|
set: string[]
|
|
}
|
|
|
|
export type EnumHrSurveyItemTypeFieldUpdateOperationsInput = {
|
|
set?: $Enums.HrSurveyItemType
|
|
}
|
|
|
|
export type HrSurveyItemUpdateoptionsInput = {
|
|
set?: string[]
|
|
push?: string | string[]
|
|
}
|
|
|
|
export type HrSurveyItemCreateWithoutSurveyInput = {
|
|
id?: string
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
tenantId: string
|
|
itemType: $Enums.HrSurveyItemType
|
|
prompt: string
|
|
required?: boolean
|
|
options?: Prisma.HrSurveyItemCreateoptionsInput | string[]
|
|
sortOrder?: number
|
|
}
|
|
|
|
export type HrSurveyItemUncheckedCreateWithoutSurveyInput = {
|
|
id?: string
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
tenantId: string
|
|
itemType: $Enums.HrSurveyItemType
|
|
prompt: string
|
|
required?: boolean
|
|
options?: Prisma.HrSurveyItemCreateoptionsInput | string[]
|
|
sortOrder?: number
|
|
}
|
|
|
|
export type HrSurveyItemCreateOrConnectWithoutSurveyInput = {
|
|
where: Prisma.HrSurveyItemWhereUniqueInput
|
|
create: Prisma.XOR<Prisma.HrSurveyItemCreateWithoutSurveyInput, Prisma.HrSurveyItemUncheckedCreateWithoutSurveyInput>
|
|
}
|
|
|
|
export type HrSurveyItemCreateManySurveyInputEnvelope = {
|
|
data: Prisma.HrSurveyItemCreateManySurveyInput | Prisma.HrSurveyItemCreateManySurveyInput[]
|
|
skipDuplicates?: boolean
|
|
}
|
|
|
|
export type HrSurveyItemUpsertWithWhereUniqueWithoutSurveyInput = {
|
|
where: Prisma.HrSurveyItemWhereUniqueInput
|
|
update: Prisma.XOR<Prisma.HrSurveyItemUpdateWithoutSurveyInput, Prisma.HrSurveyItemUncheckedUpdateWithoutSurveyInput>
|
|
create: Prisma.XOR<Prisma.HrSurveyItemCreateWithoutSurveyInput, Prisma.HrSurveyItemUncheckedCreateWithoutSurveyInput>
|
|
}
|
|
|
|
export type HrSurveyItemUpdateWithWhereUniqueWithoutSurveyInput = {
|
|
where: Prisma.HrSurveyItemWhereUniqueInput
|
|
data: Prisma.XOR<Prisma.HrSurveyItemUpdateWithoutSurveyInput, Prisma.HrSurveyItemUncheckedUpdateWithoutSurveyInput>
|
|
}
|
|
|
|
export type HrSurveyItemUpdateManyWithWhereWithoutSurveyInput = {
|
|
where: Prisma.HrSurveyItemScalarWhereInput
|
|
data: Prisma.XOR<Prisma.HrSurveyItemUpdateManyMutationInput, Prisma.HrSurveyItemUncheckedUpdateManyWithoutSurveyInput>
|
|
}
|
|
|
|
export type HrSurveyItemScalarWhereInput = {
|
|
AND?: Prisma.HrSurveyItemScalarWhereInput | Prisma.HrSurveyItemScalarWhereInput[]
|
|
OR?: Prisma.HrSurveyItemScalarWhereInput[]
|
|
NOT?: Prisma.HrSurveyItemScalarWhereInput | Prisma.HrSurveyItemScalarWhereInput[]
|
|
id?: Prisma.StringFilter<"HrSurveyItem"> | string
|
|
createdAt?: Prisma.DateTimeFilter<"HrSurveyItem"> | Date | string
|
|
updatedAt?: Prisma.DateTimeFilter<"HrSurveyItem"> | Date | string
|
|
tenantId?: Prisma.StringFilter<"HrSurveyItem"> | string
|
|
surveyId?: Prisma.StringFilter<"HrSurveyItem"> | string
|
|
itemType?: Prisma.EnumHrSurveyItemTypeFilter<"HrSurveyItem"> | $Enums.HrSurveyItemType
|
|
prompt?: Prisma.StringFilter<"HrSurveyItem"> | string
|
|
required?: Prisma.BoolFilter<"HrSurveyItem"> | boolean
|
|
options?: Prisma.StringNullableListFilter<"HrSurveyItem">
|
|
sortOrder?: Prisma.IntFilter<"HrSurveyItem"> | number
|
|
}
|
|
|
|
export type HrSurveyItemCreateManySurveyInput = {
|
|
id?: string
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
tenantId: string
|
|
itemType: $Enums.HrSurveyItemType
|
|
prompt: string
|
|
required?: boolean
|
|
options?: Prisma.HrSurveyItemCreateoptionsInput | string[]
|
|
sortOrder?: number
|
|
}
|
|
|
|
export type HrSurveyItemUpdateWithoutSurveyInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
tenantId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
itemType?: Prisma.EnumHrSurveyItemTypeFieldUpdateOperationsInput | $Enums.HrSurveyItemType
|
|
prompt?: Prisma.StringFieldUpdateOperationsInput | string
|
|
required?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
|
options?: Prisma.HrSurveyItemUpdateoptionsInput | string[]
|
|
sortOrder?: Prisma.IntFieldUpdateOperationsInput | number
|
|
}
|
|
|
|
export type HrSurveyItemUncheckedUpdateWithoutSurveyInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
tenantId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
itemType?: Prisma.EnumHrSurveyItemTypeFieldUpdateOperationsInput | $Enums.HrSurveyItemType
|
|
prompt?: Prisma.StringFieldUpdateOperationsInput | string
|
|
required?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
|
options?: Prisma.HrSurveyItemUpdateoptionsInput | string[]
|
|
sortOrder?: Prisma.IntFieldUpdateOperationsInput | number
|
|
}
|
|
|
|
export type HrSurveyItemUncheckedUpdateManyWithoutSurveyInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
tenantId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
itemType?: Prisma.EnumHrSurveyItemTypeFieldUpdateOperationsInput | $Enums.HrSurveyItemType
|
|
prompt?: Prisma.StringFieldUpdateOperationsInput | string
|
|
required?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
|
options?: Prisma.HrSurveyItemUpdateoptionsInput | string[]
|
|
sortOrder?: Prisma.IntFieldUpdateOperationsInput | number
|
|
}
|
|
|
|
|
|
|
|
export type HrSurveyItemSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
id?: boolean
|
|
createdAt?: boolean
|
|
updatedAt?: boolean
|
|
tenantId?: boolean
|
|
surveyId?: boolean
|
|
itemType?: boolean
|
|
prompt?: boolean
|
|
required?: boolean
|
|
options?: boolean
|
|
sortOrder?: boolean
|
|
survey?: boolean | Prisma.HrSurveyDefaultArgs<ExtArgs>
|
|
}, ExtArgs["result"]["hrSurveyItem"]>
|
|
|
|
export type HrSurveyItemSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
id?: boolean
|
|
createdAt?: boolean
|
|
updatedAt?: boolean
|
|
tenantId?: boolean
|
|
surveyId?: boolean
|
|
itemType?: boolean
|
|
prompt?: boolean
|
|
required?: boolean
|
|
options?: boolean
|
|
sortOrder?: boolean
|
|
survey?: boolean | Prisma.HrSurveyDefaultArgs<ExtArgs>
|
|
}, ExtArgs["result"]["hrSurveyItem"]>
|
|
|
|
export type HrSurveyItemSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
id?: boolean
|
|
createdAt?: boolean
|
|
updatedAt?: boolean
|
|
tenantId?: boolean
|
|
surveyId?: boolean
|
|
itemType?: boolean
|
|
prompt?: boolean
|
|
required?: boolean
|
|
options?: boolean
|
|
sortOrder?: boolean
|
|
survey?: boolean | Prisma.HrSurveyDefaultArgs<ExtArgs>
|
|
}, ExtArgs["result"]["hrSurveyItem"]>
|
|
|
|
export type HrSurveyItemSelectScalar = {
|
|
id?: boolean
|
|
createdAt?: boolean
|
|
updatedAt?: boolean
|
|
tenantId?: boolean
|
|
surveyId?: boolean
|
|
itemType?: boolean
|
|
prompt?: boolean
|
|
required?: boolean
|
|
options?: boolean
|
|
sortOrder?: boolean
|
|
}
|
|
|
|
export type HrSurveyItemOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "createdAt" | "updatedAt" | "tenantId" | "surveyId" | "itemType" | "prompt" | "required" | "options" | "sortOrder", ExtArgs["result"]["hrSurveyItem"]>
|
|
export type HrSurveyItemInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
survey?: boolean | Prisma.HrSurveyDefaultArgs<ExtArgs>
|
|
}
|
|
export type HrSurveyItemIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
survey?: boolean | Prisma.HrSurveyDefaultArgs<ExtArgs>
|
|
}
|
|
export type HrSurveyItemIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
survey?: boolean | Prisma.HrSurveyDefaultArgs<ExtArgs>
|
|
}
|
|
|
|
export type $HrSurveyItemPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
name: "HrSurveyItem"
|
|
objects: {
|
|
survey: Prisma.$HrSurveyPayload<ExtArgs>
|
|
}
|
|
scalars: runtime.Types.Extensions.GetPayloadResult<{
|
|
id: string
|
|
createdAt: Date
|
|
updatedAt: Date
|
|
tenantId: string
|
|
surveyId: string
|
|
itemType: $Enums.HrSurveyItemType
|
|
prompt: string
|
|
required: boolean
|
|
options: string[]
|
|
sortOrder: number
|
|
}, ExtArgs["result"]["hrSurveyItem"]>
|
|
composites: {}
|
|
}
|
|
|
|
export type HrSurveyItemGetPayload<S extends boolean | null | undefined | HrSurveyItemDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$HrSurveyItemPayload, S>
|
|
|
|
export type HrSurveyItemCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> =
|
|
Omit<HrSurveyItemFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
|
|
select?: HrSurveyItemCountAggregateInputType | true
|
|
}
|
|
|
|
export interface HrSurveyItemDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
|
|
[K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['HrSurveyItem'], meta: { name: 'HrSurveyItem' } }
|
|
/**
|
|
* Find zero or one HrSurveyItem that matches the filter.
|
|
* @param {HrSurveyItemFindUniqueArgs} args - Arguments to find a HrSurveyItem
|
|
* @example
|
|
* // Get one HrSurveyItem
|
|
* const hrSurveyItem = await prisma.hrSurveyItem.findUnique({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findUnique<T extends HrSurveyItemFindUniqueArgs>(args: Prisma.SelectSubset<T, HrSurveyItemFindUniqueArgs<ExtArgs>>): Prisma.Prisma__HrSurveyItemClient<runtime.Types.Result.GetResult<Prisma.$HrSurveyItemPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Find one HrSurveyItem that matches the filter or throw an error with `error.code='P2025'`
|
|
* if no matches were found.
|
|
* @param {HrSurveyItemFindUniqueOrThrowArgs} args - Arguments to find a HrSurveyItem
|
|
* @example
|
|
* // Get one HrSurveyItem
|
|
* const hrSurveyItem = await prisma.hrSurveyItem.findUniqueOrThrow({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findUniqueOrThrow<T extends HrSurveyItemFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, HrSurveyItemFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__HrSurveyItemClient<runtime.Types.Result.GetResult<Prisma.$HrSurveyItemPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Find the first HrSurveyItem 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 {HrSurveyItemFindFirstArgs} args - Arguments to find a HrSurveyItem
|
|
* @example
|
|
* // Get one HrSurveyItem
|
|
* const hrSurveyItem = await prisma.hrSurveyItem.findFirst({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findFirst<T extends HrSurveyItemFindFirstArgs>(args?: Prisma.SelectSubset<T, HrSurveyItemFindFirstArgs<ExtArgs>>): Prisma.Prisma__HrSurveyItemClient<runtime.Types.Result.GetResult<Prisma.$HrSurveyItemPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Find the first HrSurveyItem 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 {HrSurveyItemFindFirstOrThrowArgs} args - Arguments to find a HrSurveyItem
|
|
* @example
|
|
* // Get one HrSurveyItem
|
|
* const hrSurveyItem = await prisma.hrSurveyItem.findFirstOrThrow({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findFirstOrThrow<T extends HrSurveyItemFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, HrSurveyItemFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__HrSurveyItemClient<runtime.Types.Result.GetResult<Prisma.$HrSurveyItemPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Find zero or more HrSurveyItems 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 {HrSurveyItemFindManyArgs} args - Arguments to filter and select certain fields only.
|
|
* @example
|
|
* // Get all HrSurveyItems
|
|
* const hrSurveyItems = await prisma.hrSurveyItem.findMany()
|
|
*
|
|
* // Get first 10 HrSurveyItems
|
|
* const hrSurveyItems = await prisma.hrSurveyItem.findMany({ take: 10 })
|
|
*
|
|
* // Only select the `id`
|
|
* const hrSurveyItemWithIdOnly = await prisma.hrSurveyItem.findMany({ select: { id: true } })
|
|
*
|
|
*/
|
|
findMany<T extends HrSurveyItemFindManyArgs>(args?: Prisma.SelectSubset<T, HrSurveyItemFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$HrSurveyItemPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
|
|
|
|
/**
|
|
* Create a HrSurveyItem.
|
|
* @param {HrSurveyItemCreateArgs} args - Arguments to create a HrSurveyItem.
|
|
* @example
|
|
* // Create one HrSurveyItem
|
|
* const HrSurveyItem = await prisma.hrSurveyItem.create({
|
|
* data: {
|
|
* // ... data to create a HrSurveyItem
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
create<T extends HrSurveyItemCreateArgs>(args: Prisma.SelectSubset<T, HrSurveyItemCreateArgs<ExtArgs>>): Prisma.Prisma__HrSurveyItemClient<runtime.Types.Result.GetResult<Prisma.$HrSurveyItemPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Create many HrSurveyItems.
|
|
* @param {HrSurveyItemCreateManyArgs} args - Arguments to create many HrSurveyItems.
|
|
* @example
|
|
* // Create many HrSurveyItems
|
|
* const hrSurveyItem = await prisma.hrSurveyItem.createMany({
|
|
* data: [
|
|
* // ... provide data here
|
|
* ]
|
|
* })
|
|
*
|
|
*/
|
|
createMany<T extends HrSurveyItemCreateManyArgs>(args?: Prisma.SelectSubset<T, HrSurveyItemCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
|
|
|
/**
|
|
* Create many HrSurveyItems and returns the data saved in the database.
|
|
* @param {HrSurveyItemCreateManyAndReturnArgs} args - Arguments to create many HrSurveyItems.
|
|
* @example
|
|
* // Create many HrSurveyItems
|
|
* const hrSurveyItem = await prisma.hrSurveyItem.createManyAndReturn({
|
|
* data: [
|
|
* // ... provide data here
|
|
* ]
|
|
* })
|
|
*
|
|
* // Create many HrSurveyItems and only return the `id`
|
|
* const hrSurveyItemWithIdOnly = await prisma.hrSurveyItem.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 HrSurveyItemCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, HrSurveyItemCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$HrSurveyItemPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>
|
|
|
|
/**
|
|
* Delete a HrSurveyItem.
|
|
* @param {HrSurveyItemDeleteArgs} args - Arguments to delete one HrSurveyItem.
|
|
* @example
|
|
* // Delete one HrSurveyItem
|
|
* const HrSurveyItem = await prisma.hrSurveyItem.delete({
|
|
* where: {
|
|
* // ... filter to delete one HrSurveyItem
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
delete<T extends HrSurveyItemDeleteArgs>(args: Prisma.SelectSubset<T, HrSurveyItemDeleteArgs<ExtArgs>>): Prisma.Prisma__HrSurveyItemClient<runtime.Types.Result.GetResult<Prisma.$HrSurveyItemPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Update one HrSurveyItem.
|
|
* @param {HrSurveyItemUpdateArgs} args - Arguments to update one HrSurveyItem.
|
|
* @example
|
|
* // Update one HrSurveyItem
|
|
* const hrSurveyItem = await prisma.hrSurveyItem.update({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* },
|
|
* data: {
|
|
* // ... provide data here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
update<T extends HrSurveyItemUpdateArgs>(args: Prisma.SelectSubset<T, HrSurveyItemUpdateArgs<ExtArgs>>): Prisma.Prisma__HrSurveyItemClient<runtime.Types.Result.GetResult<Prisma.$HrSurveyItemPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Delete zero or more HrSurveyItems.
|
|
* @param {HrSurveyItemDeleteManyArgs} args - Arguments to filter HrSurveyItems to delete.
|
|
* @example
|
|
* // Delete a few HrSurveyItems
|
|
* const { count } = await prisma.hrSurveyItem.deleteMany({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
deleteMany<T extends HrSurveyItemDeleteManyArgs>(args?: Prisma.SelectSubset<T, HrSurveyItemDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
|
|
|
/**
|
|
* Update zero or more HrSurveyItems.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {HrSurveyItemUpdateManyArgs} args - Arguments to update one or more rows.
|
|
* @example
|
|
* // Update many HrSurveyItems
|
|
* const hrSurveyItem = await prisma.hrSurveyItem.updateMany({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* },
|
|
* data: {
|
|
* // ... provide data here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
updateMany<T extends HrSurveyItemUpdateManyArgs>(args: Prisma.SelectSubset<T, HrSurveyItemUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
|
|
|
/**
|
|
* Update zero or more HrSurveyItems and returns the data updated in the database.
|
|
* @param {HrSurveyItemUpdateManyAndReturnArgs} args - Arguments to update many HrSurveyItems.
|
|
* @example
|
|
* // Update many HrSurveyItems
|
|
* const hrSurveyItem = await prisma.hrSurveyItem.updateManyAndReturn({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* },
|
|
* data: [
|
|
* // ... provide data here
|
|
* ]
|
|
* })
|
|
*
|
|
* // Update zero or more HrSurveyItems and only return the `id`
|
|
* const hrSurveyItemWithIdOnly = await prisma.hrSurveyItem.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 HrSurveyItemUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, HrSurveyItemUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$HrSurveyItemPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>
|
|
|
|
/**
|
|
* Create or update one HrSurveyItem.
|
|
* @param {HrSurveyItemUpsertArgs} args - Arguments to update or create a HrSurveyItem.
|
|
* @example
|
|
* // Update or create a HrSurveyItem
|
|
* const hrSurveyItem = await prisma.hrSurveyItem.upsert({
|
|
* create: {
|
|
* // ... data to create a HrSurveyItem
|
|
* },
|
|
* update: {
|
|
* // ... in case it already exists, update
|
|
* },
|
|
* where: {
|
|
* // ... the filter for the HrSurveyItem we want to update
|
|
* }
|
|
* })
|
|
*/
|
|
upsert<T extends HrSurveyItemUpsertArgs>(args: Prisma.SelectSubset<T, HrSurveyItemUpsertArgs<ExtArgs>>): Prisma.Prisma__HrSurveyItemClient<runtime.Types.Result.GetResult<Prisma.$HrSurveyItemPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
|
|
/**
|
|
* Count the number of HrSurveyItems.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {HrSurveyItemCountArgs} args - Arguments to filter HrSurveyItems to count.
|
|
* @example
|
|
* // Count the number of HrSurveyItems
|
|
* const count = await prisma.hrSurveyItem.count({
|
|
* where: {
|
|
* // ... the filter for the HrSurveyItems we want to count
|
|
* }
|
|
* })
|
|
**/
|
|
count<T extends HrSurveyItemCountArgs>(
|
|
args?: Prisma.Subset<T, HrSurveyItemCountArgs>,
|
|
): Prisma.PrismaPromise<
|
|
T extends runtime.Types.Utils.Record<'select', any>
|
|
? T['select'] extends true
|
|
? number
|
|
: Prisma.GetScalarType<T['select'], HrSurveyItemCountAggregateOutputType>
|
|
: number
|
|
>
|
|
|
|
/**
|
|
* Allows you to perform aggregations operations on a HrSurveyItem.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {HrSurveyItemAggregateArgs} 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 HrSurveyItemAggregateArgs>(args: Prisma.Subset<T, HrSurveyItemAggregateArgs>): Prisma.PrismaPromise<GetHrSurveyItemAggregateType<T>>
|
|
|
|
/**
|
|
* Group by HrSurveyItem.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {HrSurveyItemGroupByArgs} 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 HrSurveyItemGroupByArgs,
|
|
HasSelectOrTake extends Prisma.Or<
|
|
Prisma.Extends<'skip', Prisma.Keys<T>>,
|
|
Prisma.Extends<'take', Prisma.Keys<T>>
|
|
>,
|
|
OrderByArg extends Prisma.True extends HasSelectOrTake
|
|
? { orderBy: HrSurveyItemGroupByArgs['orderBy'] }
|
|
: { orderBy?: HrSurveyItemGroupByArgs['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, HrSurveyItemGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetHrSurveyItemGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
|
|
/**
|
|
* Fields of the HrSurveyItem model
|
|
*/
|
|
readonly fields: HrSurveyItemFieldRefs;
|
|
}
|
|
|
|
/**
|
|
* The delegate class that acts as a "Promise-like" for HrSurveyItem.
|
|
* 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__HrSurveyItemClient<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 HrSurveyItem model
|
|
*/
|
|
export interface HrSurveyItemFieldRefs {
|
|
readonly id: Prisma.FieldRef<"HrSurveyItem", 'String'>
|
|
readonly createdAt: Prisma.FieldRef<"HrSurveyItem", 'DateTime'>
|
|
readonly updatedAt: Prisma.FieldRef<"HrSurveyItem", 'DateTime'>
|
|
readonly tenantId: Prisma.FieldRef<"HrSurveyItem", 'String'>
|
|
readonly surveyId: Prisma.FieldRef<"HrSurveyItem", 'String'>
|
|
readonly itemType: Prisma.FieldRef<"HrSurveyItem", 'HrSurveyItemType'>
|
|
readonly prompt: Prisma.FieldRef<"HrSurveyItem", 'String'>
|
|
readonly required: Prisma.FieldRef<"HrSurveyItem", 'Boolean'>
|
|
readonly options: Prisma.FieldRef<"HrSurveyItem", 'String[]'>
|
|
readonly sortOrder: Prisma.FieldRef<"HrSurveyItem", 'Int'>
|
|
}
|
|
|
|
|
|
// Custom InputTypes
|
|
/**
|
|
* HrSurveyItem findUnique
|
|
*/
|
|
export type HrSurveyItemFindUniqueArgs<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
|
|
/**
|
|
* Filter, which HrSurveyItem to fetch.
|
|
*/
|
|
where: Prisma.HrSurveyItemWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* HrSurveyItem findUniqueOrThrow
|
|
*/
|
|
export type HrSurveyItemFindUniqueOrThrowArgs<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
|
|
/**
|
|
* Filter, which HrSurveyItem to fetch.
|
|
*/
|
|
where: Prisma.HrSurveyItemWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* HrSurveyItem findFirst
|
|
*/
|
|
export type HrSurveyItemFindFirstArgs<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
|
|
/**
|
|
* Filter, which HrSurveyItem to fetch.
|
|
*/
|
|
where?: Prisma.HrSurveyItemWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of HrSurveyItems to fetch.
|
|
*/
|
|
orderBy?: Prisma.HrSurveyItemOrderByWithRelationInput | Prisma.HrSurveyItemOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for searching for HrSurveyItems.
|
|
*/
|
|
cursor?: Prisma.HrSurveyItemWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` HrSurveyItems 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` HrSurveyItems.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
*
|
|
* Filter by unique combinations of HrSurveyItems.
|
|
*/
|
|
distinct?: Prisma.HrSurveyItemScalarFieldEnum | Prisma.HrSurveyItemScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* HrSurveyItem findFirstOrThrow
|
|
*/
|
|
export type HrSurveyItemFindFirstOrThrowArgs<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
|
|
/**
|
|
* Filter, which HrSurveyItem to fetch.
|
|
*/
|
|
where?: Prisma.HrSurveyItemWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of HrSurveyItems to fetch.
|
|
*/
|
|
orderBy?: Prisma.HrSurveyItemOrderByWithRelationInput | Prisma.HrSurveyItemOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for searching for HrSurveyItems.
|
|
*/
|
|
cursor?: Prisma.HrSurveyItemWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` HrSurveyItems 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` HrSurveyItems.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
*
|
|
* Filter by unique combinations of HrSurveyItems.
|
|
*/
|
|
distinct?: Prisma.HrSurveyItemScalarFieldEnum | Prisma.HrSurveyItemScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* HrSurveyItem findMany
|
|
*/
|
|
export type HrSurveyItemFindManyArgs<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
|
|
/**
|
|
* Filter, which HrSurveyItems to fetch.
|
|
*/
|
|
where?: Prisma.HrSurveyItemWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of HrSurveyItems to fetch.
|
|
*/
|
|
orderBy?: Prisma.HrSurveyItemOrderByWithRelationInput | Prisma.HrSurveyItemOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for listing HrSurveyItems.
|
|
*/
|
|
cursor?: Prisma.HrSurveyItemWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` HrSurveyItems 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` HrSurveyItems.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
*
|
|
* Filter by unique combinations of HrSurveyItems.
|
|
*/
|
|
distinct?: Prisma.HrSurveyItemScalarFieldEnum | Prisma.HrSurveyItemScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* HrSurveyItem create
|
|
*/
|
|
export type HrSurveyItemCreateArgs<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
|
|
/**
|
|
* The data needed to create a HrSurveyItem.
|
|
*/
|
|
data: Prisma.XOR<Prisma.HrSurveyItemCreateInput, Prisma.HrSurveyItemUncheckedCreateInput>
|
|
}
|
|
|
|
/**
|
|
* HrSurveyItem createMany
|
|
*/
|
|
export type HrSurveyItemCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* The data used to create many HrSurveyItems.
|
|
*/
|
|
data: Prisma.HrSurveyItemCreateManyInput | Prisma.HrSurveyItemCreateManyInput[]
|
|
skipDuplicates?: boolean
|
|
}
|
|
|
|
/**
|
|
* HrSurveyItem createManyAndReturn
|
|
*/
|
|
export type HrSurveyItemCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the HrSurveyItem
|
|
*/
|
|
select?: Prisma.HrSurveyItemSelectCreateManyAndReturn<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the HrSurveyItem
|
|
*/
|
|
omit?: Prisma.HrSurveyItemOmit<ExtArgs> | null
|
|
/**
|
|
* The data used to create many HrSurveyItems.
|
|
*/
|
|
data: Prisma.HrSurveyItemCreateManyInput | Prisma.HrSurveyItemCreateManyInput[]
|
|
skipDuplicates?: boolean
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.HrSurveyItemIncludeCreateManyAndReturn<ExtArgs> | null
|
|
}
|
|
|
|
/**
|
|
* HrSurveyItem update
|
|
*/
|
|
export type HrSurveyItemUpdateArgs<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
|
|
/**
|
|
* The data needed to update a HrSurveyItem.
|
|
*/
|
|
data: Prisma.XOR<Prisma.HrSurveyItemUpdateInput, Prisma.HrSurveyItemUncheckedUpdateInput>
|
|
/**
|
|
* Choose, which HrSurveyItem to update.
|
|
*/
|
|
where: Prisma.HrSurveyItemWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* HrSurveyItem updateMany
|
|
*/
|
|
export type HrSurveyItemUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* The data used to update HrSurveyItems.
|
|
*/
|
|
data: Prisma.XOR<Prisma.HrSurveyItemUpdateManyMutationInput, Prisma.HrSurveyItemUncheckedUpdateManyInput>
|
|
/**
|
|
* Filter which HrSurveyItems to update
|
|
*/
|
|
where?: Prisma.HrSurveyItemWhereInput
|
|
/**
|
|
* Limit how many HrSurveyItems to update.
|
|
*/
|
|
limit?: number
|
|
}
|
|
|
|
/**
|
|
* HrSurveyItem updateManyAndReturn
|
|
*/
|
|
export type HrSurveyItemUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the HrSurveyItem
|
|
*/
|
|
select?: Prisma.HrSurveyItemSelectUpdateManyAndReturn<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the HrSurveyItem
|
|
*/
|
|
omit?: Prisma.HrSurveyItemOmit<ExtArgs> | null
|
|
/**
|
|
* The data used to update HrSurveyItems.
|
|
*/
|
|
data: Prisma.XOR<Prisma.HrSurveyItemUpdateManyMutationInput, Prisma.HrSurveyItemUncheckedUpdateManyInput>
|
|
/**
|
|
* Filter which HrSurveyItems to update
|
|
*/
|
|
where?: Prisma.HrSurveyItemWhereInput
|
|
/**
|
|
* Limit how many HrSurveyItems to update.
|
|
*/
|
|
limit?: number
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.HrSurveyItemIncludeUpdateManyAndReturn<ExtArgs> | null
|
|
}
|
|
|
|
/**
|
|
* HrSurveyItem upsert
|
|
*/
|
|
export type HrSurveyItemUpsertArgs<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
|
|
/**
|
|
* The filter to search for the HrSurveyItem to update in case it exists.
|
|
*/
|
|
where: Prisma.HrSurveyItemWhereUniqueInput
|
|
/**
|
|
* In case the HrSurveyItem found by the `where` argument doesn't exist, create a new HrSurveyItem with this data.
|
|
*/
|
|
create: Prisma.XOR<Prisma.HrSurveyItemCreateInput, Prisma.HrSurveyItemUncheckedCreateInput>
|
|
/**
|
|
* In case the HrSurveyItem was found with the provided `where` argument, update it with this data.
|
|
*/
|
|
update: Prisma.XOR<Prisma.HrSurveyItemUpdateInput, Prisma.HrSurveyItemUncheckedUpdateInput>
|
|
}
|
|
|
|
/**
|
|
* HrSurveyItem delete
|
|
*/
|
|
export type HrSurveyItemDeleteArgs<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
|
|
/**
|
|
* Filter which HrSurveyItem to delete.
|
|
*/
|
|
where: Prisma.HrSurveyItemWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* HrSurveyItem deleteMany
|
|
*/
|
|
export type HrSurveyItemDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Filter which HrSurveyItems to delete
|
|
*/
|
|
where?: Prisma.HrSurveyItemWhereInput
|
|
/**
|
|
* Limit how many HrSurveyItems to delete.
|
|
*/
|
|
limit?: number
|
|
}
|
|
|
|
/**
|
|
* HrSurveyItem without action
|
|
*/
|
|
export type HrSurveyItemDefaultArgs<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
|
|
}
|