1862 lines
73 KiB
TypeScript
1862 lines
73 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 `HrRequest` 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 HrRequest
|
|
* A generic HR request submitted by an employee, optionally from a template.
|
|
* Until the M05 renderer (AK-P16c) lands, the payload is captured as a JSON
|
|
* string in `details` (transitional form); `formSubmissionId` is wired in
|
|
* later. Approval mirrors the leave state machine. Soft-delete via `archivedAt`.
|
|
*/
|
|
export type HrRequestModel = runtime.Types.Result.DefaultSelection<Prisma.$HrRequestPayload>
|
|
|
|
export type AggregateHrRequest = {
|
|
_count: HrRequestCountAggregateOutputType | null
|
|
_min: HrRequestMinAggregateOutputType | null
|
|
_max: HrRequestMaxAggregateOutputType | null
|
|
}
|
|
|
|
export type HrRequestMinAggregateOutputType = {
|
|
id: string | null
|
|
createdAt: Date | null
|
|
updatedAt: Date | null
|
|
tenantId: string | null
|
|
employeeUserId: string | null
|
|
templateId: string | null
|
|
requestKind: $Enums.HrRequestKind | null
|
|
title: string | null
|
|
details: string | null
|
|
formSubmissionId: string | null
|
|
status: $Enums.HrRequestStatus | null
|
|
assignedApproverUserId: string | null
|
|
clarificationNote: string | null
|
|
decidedByUserId: string | null
|
|
decidedAt: Date | null
|
|
decisionNote: string | null
|
|
withdrawnAt: Date | null
|
|
isDemoData: boolean | null
|
|
archivedAt: Date | null
|
|
}
|
|
|
|
export type HrRequestMaxAggregateOutputType = {
|
|
id: string | null
|
|
createdAt: Date | null
|
|
updatedAt: Date | null
|
|
tenantId: string | null
|
|
employeeUserId: string | null
|
|
templateId: string | null
|
|
requestKind: $Enums.HrRequestKind | null
|
|
title: string | null
|
|
details: string | null
|
|
formSubmissionId: string | null
|
|
status: $Enums.HrRequestStatus | null
|
|
assignedApproverUserId: string | null
|
|
clarificationNote: string | null
|
|
decidedByUserId: string | null
|
|
decidedAt: Date | null
|
|
decisionNote: string | null
|
|
withdrawnAt: Date | null
|
|
isDemoData: boolean | null
|
|
archivedAt: Date | null
|
|
}
|
|
|
|
export type HrRequestCountAggregateOutputType = {
|
|
id: number
|
|
createdAt: number
|
|
updatedAt: number
|
|
tenantId: number
|
|
employeeUserId: number
|
|
templateId: number
|
|
requestKind: number
|
|
title: number
|
|
details: number
|
|
formSubmissionId: number
|
|
status: number
|
|
assignedApproverUserId: number
|
|
clarificationNote: number
|
|
decidedByUserId: number
|
|
decidedAt: number
|
|
decisionNote: number
|
|
withdrawnAt: number
|
|
isDemoData: number
|
|
archivedAt: number
|
|
_all: number
|
|
}
|
|
|
|
|
|
export type HrRequestMinAggregateInputType = {
|
|
id?: true
|
|
createdAt?: true
|
|
updatedAt?: true
|
|
tenantId?: true
|
|
employeeUserId?: true
|
|
templateId?: true
|
|
requestKind?: true
|
|
title?: true
|
|
details?: true
|
|
formSubmissionId?: true
|
|
status?: true
|
|
assignedApproverUserId?: true
|
|
clarificationNote?: true
|
|
decidedByUserId?: true
|
|
decidedAt?: true
|
|
decisionNote?: true
|
|
withdrawnAt?: true
|
|
isDemoData?: true
|
|
archivedAt?: true
|
|
}
|
|
|
|
export type HrRequestMaxAggregateInputType = {
|
|
id?: true
|
|
createdAt?: true
|
|
updatedAt?: true
|
|
tenantId?: true
|
|
employeeUserId?: true
|
|
templateId?: true
|
|
requestKind?: true
|
|
title?: true
|
|
details?: true
|
|
formSubmissionId?: true
|
|
status?: true
|
|
assignedApproverUserId?: true
|
|
clarificationNote?: true
|
|
decidedByUserId?: true
|
|
decidedAt?: true
|
|
decisionNote?: true
|
|
withdrawnAt?: true
|
|
isDemoData?: true
|
|
archivedAt?: true
|
|
}
|
|
|
|
export type HrRequestCountAggregateInputType = {
|
|
id?: true
|
|
createdAt?: true
|
|
updatedAt?: true
|
|
tenantId?: true
|
|
employeeUserId?: true
|
|
templateId?: true
|
|
requestKind?: true
|
|
title?: true
|
|
details?: true
|
|
formSubmissionId?: true
|
|
status?: true
|
|
assignedApproverUserId?: true
|
|
clarificationNote?: true
|
|
decidedByUserId?: true
|
|
decidedAt?: true
|
|
decisionNote?: true
|
|
withdrawnAt?: true
|
|
isDemoData?: true
|
|
archivedAt?: true
|
|
_all?: true
|
|
}
|
|
|
|
export type HrRequestAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Filter which HrRequest to aggregate.
|
|
*/
|
|
where?: Prisma.HrRequestWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of HrRequests to fetch.
|
|
*/
|
|
orderBy?: Prisma.HrRequestOrderByWithRelationInput | Prisma.HrRequestOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the start position
|
|
*/
|
|
cursor?: Prisma.HrRequestWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` HrRequests 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` HrRequests.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Count returned HrRequests
|
|
**/
|
|
_count?: true | HrRequestCountAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to find the minimum value
|
|
**/
|
|
_min?: HrRequestMinAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to find the maximum value
|
|
**/
|
|
_max?: HrRequestMaxAggregateInputType
|
|
}
|
|
|
|
export type GetHrRequestAggregateType<T extends HrRequestAggregateArgs> = {
|
|
[P in keyof T & keyof AggregateHrRequest]: P extends '_count' | 'count'
|
|
? T[P] extends true
|
|
? number
|
|
: Prisma.GetScalarType<T[P], AggregateHrRequest[P]>
|
|
: Prisma.GetScalarType<T[P], AggregateHrRequest[P]>
|
|
}
|
|
|
|
|
|
|
|
|
|
export type HrRequestGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
where?: Prisma.HrRequestWhereInput
|
|
orderBy?: Prisma.HrRequestOrderByWithAggregationInput | Prisma.HrRequestOrderByWithAggregationInput[]
|
|
by: Prisma.HrRequestScalarFieldEnum[] | Prisma.HrRequestScalarFieldEnum
|
|
having?: Prisma.HrRequestScalarWhereWithAggregatesInput
|
|
take?: number
|
|
skip?: number
|
|
_count?: HrRequestCountAggregateInputType | true
|
|
_min?: HrRequestMinAggregateInputType
|
|
_max?: HrRequestMaxAggregateInputType
|
|
}
|
|
|
|
export type HrRequestGroupByOutputType = {
|
|
id: string
|
|
createdAt: Date
|
|
updatedAt: Date
|
|
tenantId: string
|
|
employeeUserId: string
|
|
templateId: string | null
|
|
requestKind: $Enums.HrRequestKind
|
|
title: string
|
|
details: string | null
|
|
formSubmissionId: string | null
|
|
status: $Enums.HrRequestStatus
|
|
assignedApproverUserId: string | null
|
|
clarificationNote: string | null
|
|
decidedByUserId: string | null
|
|
decidedAt: Date | null
|
|
decisionNote: string | null
|
|
withdrawnAt: Date | null
|
|
isDemoData: boolean
|
|
archivedAt: Date | null
|
|
_count: HrRequestCountAggregateOutputType | null
|
|
_min: HrRequestMinAggregateOutputType | null
|
|
_max: HrRequestMaxAggregateOutputType | null
|
|
}
|
|
|
|
export type GetHrRequestGroupByPayload<T extends HrRequestGroupByArgs> = Prisma.PrismaPromise<
|
|
Array<
|
|
Prisma.PickEnumerable<HrRequestGroupByOutputType, T['by']> &
|
|
{
|
|
[P in ((keyof T) & (keyof HrRequestGroupByOutputType))]: P extends '_count'
|
|
? T[P] extends boolean
|
|
? number
|
|
: Prisma.GetScalarType<T[P], HrRequestGroupByOutputType[P]>
|
|
: Prisma.GetScalarType<T[P], HrRequestGroupByOutputType[P]>
|
|
}
|
|
>
|
|
>
|
|
|
|
|
|
|
|
export type HrRequestWhereInput = {
|
|
AND?: Prisma.HrRequestWhereInput | Prisma.HrRequestWhereInput[]
|
|
OR?: Prisma.HrRequestWhereInput[]
|
|
NOT?: Prisma.HrRequestWhereInput | Prisma.HrRequestWhereInput[]
|
|
id?: Prisma.StringFilter<"HrRequest"> | string
|
|
createdAt?: Prisma.DateTimeFilter<"HrRequest"> | Date | string
|
|
updatedAt?: Prisma.DateTimeFilter<"HrRequest"> | Date | string
|
|
tenantId?: Prisma.StringFilter<"HrRequest"> | string
|
|
employeeUserId?: Prisma.StringFilter<"HrRequest"> | string
|
|
templateId?: Prisma.StringNullableFilter<"HrRequest"> | string | null
|
|
requestKind?: Prisma.EnumHrRequestKindFilter<"HrRequest"> | $Enums.HrRequestKind
|
|
title?: Prisma.StringFilter<"HrRequest"> | string
|
|
details?: Prisma.StringNullableFilter<"HrRequest"> | string | null
|
|
formSubmissionId?: Prisma.StringNullableFilter<"HrRequest"> | string | null
|
|
status?: Prisma.EnumHrRequestStatusFilter<"HrRequest"> | $Enums.HrRequestStatus
|
|
assignedApproverUserId?: Prisma.StringNullableFilter<"HrRequest"> | string | null
|
|
clarificationNote?: Prisma.StringNullableFilter<"HrRequest"> | string | null
|
|
decidedByUserId?: Prisma.StringNullableFilter<"HrRequest"> | string | null
|
|
decidedAt?: Prisma.DateTimeNullableFilter<"HrRequest"> | Date | string | null
|
|
decisionNote?: Prisma.StringNullableFilter<"HrRequest"> | string | null
|
|
withdrawnAt?: Prisma.DateTimeNullableFilter<"HrRequest"> | Date | string | null
|
|
isDemoData?: Prisma.BoolFilter<"HrRequest"> | boolean
|
|
archivedAt?: Prisma.DateTimeNullableFilter<"HrRequest"> | Date | string | null
|
|
template?: Prisma.XOR<Prisma.HrRequestTemplateNullableScalarRelationFilter, Prisma.HrRequestTemplateWhereInput> | null
|
|
}
|
|
|
|
export type HrRequestOrderByWithRelationInput = {
|
|
id?: Prisma.SortOrder
|
|
createdAt?: Prisma.SortOrder
|
|
updatedAt?: Prisma.SortOrder
|
|
tenantId?: Prisma.SortOrder
|
|
employeeUserId?: Prisma.SortOrder
|
|
templateId?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
requestKind?: Prisma.SortOrder
|
|
title?: Prisma.SortOrder
|
|
details?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
formSubmissionId?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
status?: Prisma.SortOrder
|
|
assignedApproverUserId?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
clarificationNote?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
decidedByUserId?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
decidedAt?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
decisionNote?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
withdrawnAt?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
isDemoData?: Prisma.SortOrder
|
|
archivedAt?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
template?: Prisma.HrRequestTemplateOrderByWithRelationInput
|
|
}
|
|
|
|
export type HrRequestWhereUniqueInput = Prisma.AtLeast<{
|
|
id?: string
|
|
AND?: Prisma.HrRequestWhereInput | Prisma.HrRequestWhereInput[]
|
|
OR?: Prisma.HrRequestWhereInput[]
|
|
NOT?: Prisma.HrRequestWhereInput | Prisma.HrRequestWhereInput[]
|
|
createdAt?: Prisma.DateTimeFilter<"HrRequest"> | Date | string
|
|
updatedAt?: Prisma.DateTimeFilter<"HrRequest"> | Date | string
|
|
tenantId?: Prisma.StringFilter<"HrRequest"> | string
|
|
employeeUserId?: Prisma.StringFilter<"HrRequest"> | string
|
|
templateId?: Prisma.StringNullableFilter<"HrRequest"> | string | null
|
|
requestKind?: Prisma.EnumHrRequestKindFilter<"HrRequest"> | $Enums.HrRequestKind
|
|
title?: Prisma.StringFilter<"HrRequest"> | string
|
|
details?: Prisma.StringNullableFilter<"HrRequest"> | string | null
|
|
formSubmissionId?: Prisma.StringNullableFilter<"HrRequest"> | string | null
|
|
status?: Prisma.EnumHrRequestStatusFilter<"HrRequest"> | $Enums.HrRequestStatus
|
|
assignedApproverUserId?: Prisma.StringNullableFilter<"HrRequest"> | string | null
|
|
clarificationNote?: Prisma.StringNullableFilter<"HrRequest"> | string | null
|
|
decidedByUserId?: Prisma.StringNullableFilter<"HrRequest"> | string | null
|
|
decidedAt?: Prisma.DateTimeNullableFilter<"HrRequest"> | Date | string | null
|
|
decisionNote?: Prisma.StringNullableFilter<"HrRequest"> | string | null
|
|
withdrawnAt?: Prisma.DateTimeNullableFilter<"HrRequest"> | Date | string | null
|
|
isDemoData?: Prisma.BoolFilter<"HrRequest"> | boolean
|
|
archivedAt?: Prisma.DateTimeNullableFilter<"HrRequest"> | Date | string | null
|
|
template?: Prisma.XOR<Prisma.HrRequestTemplateNullableScalarRelationFilter, Prisma.HrRequestTemplateWhereInput> | null
|
|
}, "id">
|
|
|
|
export type HrRequestOrderByWithAggregationInput = {
|
|
id?: Prisma.SortOrder
|
|
createdAt?: Prisma.SortOrder
|
|
updatedAt?: Prisma.SortOrder
|
|
tenantId?: Prisma.SortOrder
|
|
employeeUserId?: Prisma.SortOrder
|
|
templateId?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
requestKind?: Prisma.SortOrder
|
|
title?: Prisma.SortOrder
|
|
details?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
formSubmissionId?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
status?: Prisma.SortOrder
|
|
assignedApproverUserId?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
clarificationNote?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
decidedByUserId?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
decidedAt?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
decisionNote?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
withdrawnAt?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
isDemoData?: Prisma.SortOrder
|
|
archivedAt?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
_count?: Prisma.HrRequestCountOrderByAggregateInput
|
|
_max?: Prisma.HrRequestMaxOrderByAggregateInput
|
|
_min?: Prisma.HrRequestMinOrderByAggregateInput
|
|
}
|
|
|
|
export type HrRequestScalarWhereWithAggregatesInput = {
|
|
AND?: Prisma.HrRequestScalarWhereWithAggregatesInput | Prisma.HrRequestScalarWhereWithAggregatesInput[]
|
|
OR?: Prisma.HrRequestScalarWhereWithAggregatesInput[]
|
|
NOT?: Prisma.HrRequestScalarWhereWithAggregatesInput | Prisma.HrRequestScalarWhereWithAggregatesInput[]
|
|
id?: Prisma.StringWithAggregatesFilter<"HrRequest"> | string
|
|
createdAt?: Prisma.DateTimeWithAggregatesFilter<"HrRequest"> | Date | string
|
|
updatedAt?: Prisma.DateTimeWithAggregatesFilter<"HrRequest"> | Date | string
|
|
tenantId?: Prisma.StringWithAggregatesFilter<"HrRequest"> | string
|
|
employeeUserId?: Prisma.StringWithAggregatesFilter<"HrRequest"> | string
|
|
templateId?: Prisma.StringNullableWithAggregatesFilter<"HrRequest"> | string | null
|
|
requestKind?: Prisma.EnumHrRequestKindWithAggregatesFilter<"HrRequest"> | $Enums.HrRequestKind
|
|
title?: Prisma.StringWithAggregatesFilter<"HrRequest"> | string
|
|
details?: Prisma.StringNullableWithAggregatesFilter<"HrRequest"> | string | null
|
|
formSubmissionId?: Prisma.StringNullableWithAggregatesFilter<"HrRequest"> | string | null
|
|
status?: Prisma.EnumHrRequestStatusWithAggregatesFilter<"HrRequest"> | $Enums.HrRequestStatus
|
|
assignedApproverUserId?: Prisma.StringNullableWithAggregatesFilter<"HrRequest"> | string | null
|
|
clarificationNote?: Prisma.StringNullableWithAggregatesFilter<"HrRequest"> | string | null
|
|
decidedByUserId?: Prisma.StringNullableWithAggregatesFilter<"HrRequest"> | string | null
|
|
decidedAt?: Prisma.DateTimeNullableWithAggregatesFilter<"HrRequest"> | Date | string | null
|
|
decisionNote?: Prisma.StringNullableWithAggregatesFilter<"HrRequest"> | string | null
|
|
withdrawnAt?: Prisma.DateTimeNullableWithAggregatesFilter<"HrRequest"> | Date | string | null
|
|
isDemoData?: Prisma.BoolWithAggregatesFilter<"HrRequest"> | boolean
|
|
archivedAt?: Prisma.DateTimeNullableWithAggregatesFilter<"HrRequest"> | Date | string | null
|
|
}
|
|
|
|
export type HrRequestCreateInput = {
|
|
id?: string
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
tenantId: string
|
|
employeeUserId: string
|
|
requestKind: $Enums.HrRequestKind
|
|
title: string
|
|
details?: string | null
|
|
formSubmissionId?: string | null
|
|
status?: $Enums.HrRequestStatus
|
|
assignedApproverUserId?: string | null
|
|
clarificationNote?: string | null
|
|
decidedByUserId?: string | null
|
|
decidedAt?: Date | string | null
|
|
decisionNote?: string | null
|
|
withdrawnAt?: Date | string | null
|
|
isDemoData?: boolean
|
|
archivedAt?: Date | string | null
|
|
template?: Prisma.HrRequestTemplateCreateNestedOneWithoutRequestsInput
|
|
}
|
|
|
|
export type HrRequestUncheckedCreateInput = {
|
|
id?: string
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
tenantId: string
|
|
employeeUserId: string
|
|
templateId?: string | null
|
|
requestKind: $Enums.HrRequestKind
|
|
title: string
|
|
details?: string | null
|
|
formSubmissionId?: string | null
|
|
status?: $Enums.HrRequestStatus
|
|
assignedApproverUserId?: string | null
|
|
clarificationNote?: string | null
|
|
decidedByUserId?: string | null
|
|
decidedAt?: Date | string | null
|
|
decisionNote?: string | null
|
|
withdrawnAt?: Date | string | null
|
|
isDemoData?: boolean
|
|
archivedAt?: Date | string | null
|
|
}
|
|
|
|
export type HrRequestUpdateInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
tenantId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
employeeUserId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
requestKind?: Prisma.EnumHrRequestKindFieldUpdateOperationsInput | $Enums.HrRequestKind
|
|
title?: Prisma.StringFieldUpdateOperationsInput | string
|
|
details?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
formSubmissionId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
status?: Prisma.EnumHrRequestStatusFieldUpdateOperationsInput | $Enums.HrRequestStatus
|
|
assignedApproverUserId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
clarificationNote?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
decidedByUserId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
decidedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
decisionNote?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
withdrawnAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
isDemoData?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
|
archivedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
template?: Prisma.HrRequestTemplateUpdateOneWithoutRequestsNestedInput
|
|
}
|
|
|
|
export type HrRequestUncheckedUpdateInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
tenantId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
employeeUserId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
templateId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
requestKind?: Prisma.EnumHrRequestKindFieldUpdateOperationsInput | $Enums.HrRequestKind
|
|
title?: Prisma.StringFieldUpdateOperationsInput | string
|
|
details?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
formSubmissionId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
status?: Prisma.EnumHrRequestStatusFieldUpdateOperationsInput | $Enums.HrRequestStatus
|
|
assignedApproverUserId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
clarificationNote?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
decidedByUserId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
decidedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
decisionNote?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
withdrawnAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
isDemoData?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
|
archivedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
}
|
|
|
|
export type HrRequestCreateManyInput = {
|
|
id?: string
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
tenantId: string
|
|
employeeUserId: string
|
|
templateId?: string | null
|
|
requestKind: $Enums.HrRequestKind
|
|
title: string
|
|
details?: string | null
|
|
formSubmissionId?: string | null
|
|
status?: $Enums.HrRequestStatus
|
|
assignedApproverUserId?: string | null
|
|
clarificationNote?: string | null
|
|
decidedByUserId?: string | null
|
|
decidedAt?: Date | string | null
|
|
decisionNote?: string | null
|
|
withdrawnAt?: Date | string | null
|
|
isDemoData?: boolean
|
|
archivedAt?: Date | string | null
|
|
}
|
|
|
|
export type HrRequestUpdateManyMutationInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
tenantId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
employeeUserId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
requestKind?: Prisma.EnumHrRequestKindFieldUpdateOperationsInput | $Enums.HrRequestKind
|
|
title?: Prisma.StringFieldUpdateOperationsInput | string
|
|
details?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
formSubmissionId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
status?: Prisma.EnumHrRequestStatusFieldUpdateOperationsInput | $Enums.HrRequestStatus
|
|
assignedApproverUserId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
clarificationNote?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
decidedByUserId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
decidedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
decisionNote?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
withdrawnAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
isDemoData?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
|
archivedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
}
|
|
|
|
export type HrRequestUncheckedUpdateManyInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
tenantId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
employeeUserId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
templateId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
requestKind?: Prisma.EnumHrRequestKindFieldUpdateOperationsInput | $Enums.HrRequestKind
|
|
title?: Prisma.StringFieldUpdateOperationsInput | string
|
|
details?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
formSubmissionId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
status?: Prisma.EnumHrRequestStatusFieldUpdateOperationsInput | $Enums.HrRequestStatus
|
|
assignedApproverUserId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
clarificationNote?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
decidedByUserId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
decidedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
decisionNote?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
withdrawnAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
isDemoData?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
|
archivedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
}
|
|
|
|
export type HrRequestListRelationFilter = {
|
|
every?: Prisma.HrRequestWhereInput
|
|
some?: Prisma.HrRequestWhereInput
|
|
none?: Prisma.HrRequestWhereInput
|
|
}
|
|
|
|
export type HrRequestOrderByRelationAggregateInput = {
|
|
_count?: Prisma.SortOrder
|
|
}
|
|
|
|
export type HrRequestCountOrderByAggregateInput = {
|
|
id?: Prisma.SortOrder
|
|
createdAt?: Prisma.SortOrder
|
|
updatedAt?: Prisma.SortOrder
|
|
tenantId?: Prisma.SortOrder
|
|
employeeUserId?: Prisma.SortOrder
|
|
templateId?: Prisma.SortOrder
|
|
requestKind?: Prisma.SortOrder
|
|
title?: Prisma.SortOrder
|
|
details?: Prisma.SortOrder
|
|
formSubmissionId?: Prisma.SortOrder
|
|
status?: Prisma.SortOrder
|
|
assignedApproverUserId?: Prisma.SortOrder
|
|
clarificationNote?: Prisma.SortOrder
|
|
decidedByUserId?: Prisma.SortOrder
|
|
decidedAt?: Prisma.SortOrder
|
|
decisionNote?: Prisma.SortOrder
|
|
withdrawnAt?: Prisma.SortOrder
|
|
isDemoData?: Prisma.SortOrder
|
|
archivedAt?: Prisma.SortOrder
|
|
}
|
|
|
|
export type HrRequestMaxOrderByAggregateInput = {
|
|
id?: Prisma.SortOrder
|
|
createdAt?: Prisma.SortOrder
|
|
updatedAt?: Prisma.SortOrder
|
|
tenantId?: Prisma.SortOrder
|
|
employeeUserId?: Prisma.SortOrder
|
|
templateId?: Prisma.SortOrder
|
|
requestKind?: Prisma.SortOrder
|
|
title?: Prisma.SortOrder
|
|
details?: Prisma.SortOrder
|
|
formSubmissionId?: Prisma.SortOrder
|
|
status?: Prisma.SortOrder
|
|
assignedApproverUserId?: Prisma.SortOrder
|
|
clarificationNote?: Prisma.SortOrder
|
|
decidedByUserId?: Prisma.SortOrder
|
|
decidedAt?: Prisma.SortOrder
|
|
decisionNote?: Prisma.SortOrder
|
|
withdrawnAt?: Prisma.SortOrder
|
|
isDemoData?: Prisma.SortOrder
|
|
archivedAt?: Prisma.SortOrder
|
|
}
|
|
|
|
export type HrRequestMinOrderByAggregateInput = {
|
|
id?: Prisma.SortOrder
|
|
createdAt?: Prisma.SortOrder
|
|
updatedAt?: Prisma.SortOrder
|
|
tenantId?: Prisma.SortOrder
|
|
employeeUserId?: Prisma.SortOrder
|
|
templateId?: Prisma.SortOrder
|
|
requestKind?: Prisma.SortOrder
|
|
title?: Prisma.SortOrder
|
|
details?: Prisma.SortOrder
|
|
formSubmissionId?: Prisma.SortOrder
|
|
status?: Prisma.SortOrder
|
|
assignedApproverUserId?: Prisma.SortOrder
|
|
clarificationNote?: Prisma.SortOrder
|
|
decidedByUserId?: Prisma.SortOrder
|
|
decidedAt?: Prisma.SortOrder
|
|
decisionNote?: Prisma.SortOrder
|
|
withdrawnAt?: Prisma.SortOrder
|
|
isDemoData?: Prisma.SortOrder
|
|
archivedAt?: Prisma.SortOrder
|
|
}
|
|
|
|
export type HrRequestCreateNestedManyWithoutTemplateInput = {
|
|
create?: Prisma.XOR<Prisma.HrRequestCreateWithoutTemplateInput, Prisma.HrRequestUncheckedCreateWithoutTemplateInput> | Prisma.HrRequestCreateWithoutTemplateInput[] | Prisma.HrRequestUncheckedCreateWithoutTemplateInput[]
|
|
connectOrCreate?: Prisma.HrRequestCreateOrConnectWithoutTemplateInput | Prisma.HrRequestCreateOrConnectWithoutTemplateInput[]
|
|
createMany?: Prisma.HrRequestCreateManyTemplateInputEnvelope
|
|
connect?: Prisma.HrRequestWhereUniqueInput | Prisma.HrRequestWhereUniqueInput[]
|
|
}
|
|
|
|
export type HrRequestUncheckedCreateNestedManyWithoutTemplateInput = {
|
|
create?: Prisma.XOR<Prisma.HrRequestCreateWithoutTemplateInput, Prisma.HrRequestUncheckedCreateWithoutTemplateInput> | Prisma.HrRequestCreateWithoutTemplateInput[] | Prisma.HrRequestUncheckedCreateWithoutTemplateInput[]
|
|
connectOrCreate?: Prisma.HrRequestCreateOrConnectWithoutTemplateInput | Prisma.HrRequestCreateOrConnectWithoutTemplateInput[]
|
|
createMany?: Prisma.HrRequestCreateManyTemplateInputEnvelope
|
|
connect?: Prisma.HrRequestWhereUniqueInput | Prisma.HrRequestWhereUniqueInput[]
|
|
}
|
|
|
|
export type HrRequestUpdateManyWithoutTemplateNestedInput = {
|
|
create?: Prisma.XOR<Prisma.HrRequestCreateWithoutTemplateInput, Prisma.HrRequestUncheckedCreateWithoutTemplateInput> | Prisma.HrRequestCreateWithoutTemplateInput[] | Prisma.HrRequestUncheckedCreateWithoutTemplateInput[]
|
|
connectOrCreate?: Prisma.HrRequestCreateOrConnectWithoutTemplateInput | Prisma.HrRequestCreateOrConnectWithoutTemplateInput[]
|
|
upsert?: Prisma.HrRequestUpsertWithWhereUniqueWithoutTemplateInput | Prisma.HrRequestUpsertWithWhereUniqueWithoutTemplateInput[]
|
|
createMany?: Prisma.HrRequestCreateManyTemplateInputEnvelope
|
|
set?: Prisma.HrRequestWhereUniqueInput | Prisma.HrRequestWhereUniqueInput[]
|
|
disconnect?: Prisma.HrRequestWhereUniqueInput | Prisma.HrRequestWhereUniqueInput[]
|
|
delete?: Prisma.HrRequestWhereUniqueInput | Prisma.HrRequestWhereUniqueInput[]
|
|
connect?: Prisma.HrRequestWhereUniqueInput | Prisma.HrRequestWhereUniqueInput[]
|
|
update?: Prisma.HrRequestUpdateWithWhereUniqueWithoutTemplateInput | Prisma.HrRequestUpdateWithWhereUniqueWithoutTemplateInput[]
|
|
updateMany?: Prisma.HrRequestUpdateManyWithWhereWithoutTemplateInput | Prisma.HrRequestUpdateManyWithWhereWithoutTemplateInput[]
|
|
deleteMany?: Prisma.HrRequestScalarWhereInput | Prisma.HrRequestScalarWhereInput[]
|
|
}
|
|
|
|
export type HrRequestUncheckedUpdateManyWithoutTemplateNestedInput = {
|
|
create?: Prisma.XOR<Prisma.HrRequestCreateWithoutTemplateInput, Prisma.HrRequestUncheckedCreateWithoutTemplateInput> | Prisma.HrRequestCreateWithoutTemplateInput[] | Prisma.HrRequestUncheckedCreateWithoutTemplateInput[]
|
|
connectOrCreate?: Prisma.HrRequestCreateOrConnectWithoutTemplateInput | Prisma.HrRequestCreateOrConnectWithoutTemplateInput[]
|
|
upsert?: Prisma.HrRequestUpsertWithWhereUniqueWithoutTemplateInput | Prisma.HrRequestUpsertWithWhereUniqueWithoutTemplateInput[]
|
|
createMany?: Prisma.HrRequestCreateManyTemplateInputEnvelope
|
|
set?: Prisma.HrRequestWhereUniqueInput | Prisma.HrRequestWhereUniqueInput[]
|
|
disconnect?: Prisma.HrRequestWhereUniqueInput | Prisma.HrRequestWhereUniqueInput[]
|
|
delete?: Prisma.HrRequestWhereUniqueInput | Prisma.HrRequestWhereUniqueInput[]
|
|
connect?: Prisma.HrRequestWhereUniqueInput | Prisma.HrRequestWhereUniqueInput[]
|
|
update?: Prisma.HrRequestUpdateWithWhereUniqueWithoutTemplateInput | Prisma.HrRequestUpdateWithWhereUniqueWithoutTemplateInput[]
|
|
updateMany?: Prisma.HrRequestUpdateManyWithWhereWithoutTemplateInput | Prisma.HrRequestUpdateManyWithWhereWithoutTemplateInput[]
|
|
deleteMany?: Prisma.HrRequestScalarWhereInput | Prisma.HrRequestScalarWhereInput[]
|
|
}
|
|
|
|
export type EnumHrRequestStatusFieldUpdateOperationsInput = {
|
|
set?: $Enums.HrRequestStatus
|
|
}
|
|
|
|
export type HrRequestCreateWithoutTemplateInput = {
|
|
id?: string
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
tenantId: string
|
|
employeeUserId: string
|
|
requestKind: $Enums.HrRequestKind
|
|
title: string
|
|
details?: string | null
|
|
formSubmissionId?: string | null
|
|
status?: $Enums.HrRequestStatus
|
|
assignedApproverUserId?: string | null
|
|
clarificationNote?: string | null
|
|
decidedByUserId?: string | null
|
|
decidedAt?: Date | string | null
|
|
decisionNote?: string | null
|
|
withdrawnAt?: Date | string | null
|
|
isDemoData?: boolean
|
|
archivedAt?: Date | string | null
|
|
}
|
|
|
|
export type HrRequestUncheckedCreateWithoutTemplateInput = {
|
|
id?: string
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
tenantId: string
|
|
employeeUserId: string
|
|
requestKind: $Enums.HrRequestKind
|
|
title: string
|
|
details?: string | null
|
|
formSubmissionId?: string | null
|
|
status?: $Enums.HrRequestStatus
|
|
assignedApproverUserId?: string | null
|
|
clarificationNote?: string | null
|
|
decidedByUserId?: string | null
|
|
decidedAt?: Date | string | null
|
|
decisionNote?: string | null
|
|
withdrawnAt?: Date | string | null
|
|
isDemoData?: boolean
|
|
archivedAt?: Date | string | null
|
|
}
|
|
|
|
export type HrRequestCreateOrConnectWithoutTemplateInput = {
|
|
where: Prisma.HrRequestWhereUniqueInput
|
|
create: Prisma.XOR<Prisma.HrRequestCreateWithoutTemplateInput, Prisma.HrRequestUncheckedCreateWithoutTemplateInput>
|
|
}
|
|
|
|
export type HrRequestCreateManyTemplateInputEnvelope = {
|
|
data: Prisma.HrRequestCreateManyTemplateInput | Prisma.HrRequestCreateManyTemplateInput[]
|
|
skipDuplicates?: boolean
|
|
}
|
|
|
|
export type HrRequestUpsertWithWhereUniqueWithoutTemplateInput = {
|
|
where: Prisma.HrRequestWhereUniqueInput
|
|
update: Prisma.XOR<Prisma.HrRequestUpdateWithoutTemplateInput, Prisma.HrRequestUncheckedUpdateWithoutTemplateInput>
|
|
create: Prisma.XOR<Prisma.HrRequestCreateWithoutTemplateInput, Prisma.HrRequestUncheckedCreateWithoutTemplateInput>
|
|
}
|
|
|
|
export type HrRequestUpdateWithWhereUniqueWithoutTemplateInput = {
|
|
where: Prisma.HrRequestWhereUniqueInput
|
|
data: Prisma.XOR<Prisma.HrRequestUpdateWithoutTemplateInput, Prisma.HrRequestUncheckedUpdateWithoutTemplateInput>
|
|
}
|
|
|
|
export type HrRequestUpdateManyWithWhereWithoutTemplateInput = {
|
|
where: Prisma.HrRequestScalarWhereInput
|
|
data: Prisma.XOR<Prisma.HrRequestUpdateManyMutationInput, Prisma.HrRequestUncheckedUpdateManyWithoutTemplateInput>
|
|
}
|
|
|
|
export type HrRequestScalarWhereInput = {
|
|
AND?: Prisma.HrRequestScalarWhereInput | Prisma.HrRequestScalarWhereInput[]
|
|
OR?: Prisma.HrRequestScalarWhereInput[]
|
|
NOT?: Prisma.HrRequestScalarWhereInput | Prisma.HrRequestScalarWhereInput[]
|
|
id?: Prisma.StringFilter<"HrRequest"> | string
|
|
createdAt?: Prisma.DateTimeFilter<"HrRequest"> | Date | string
|
|
updatedAt?: Prisma.DateTimeFilter<"HrRequest"> | Date | string
|
|
tenantId?: Prisma.StringFilter<"HrRequest"> | string
|
|
employeeUserId?: Prisma.StringFilter<"HrRequest"> | string
|
|
templateId?: Prisma.StringNullableFilter<"HrRequest"> | string | null
|
|
requestKind?: Prisma.EnumHrRequestKindFilter<"HrRequest"> | $Enums.HrRequestKind
|
|
title?: Prisma.StringFilter<"HrRequest"> | string
|
|
details?: Prisma.StringNullableFilter<"HrRequest"> | string | null
|
|
formSubmissionId?: Prisma.StringNullableFilter<"HrRequest"> | string | null
|
|
status?: Prisma.EnumHrRequestStatusFilter<"HrRequest"> | $Enums.HrRequestStatus
|
|
assignedApproverUserId?: Prisma.StringNullableFilter<"HrRequest"> | string | null
|
|
clarificationNote?: Prisma.StringNullableFilter<"HrRequest"> | string | null
|
|
decidedByUserId?: Prisma.StringNullableFilter<"HrRequest"> | string | null
|
|
decidedAt?: Prisma.DateTimeNullableFilter<"HrRequest"> | Date | string | null
|
|
decisionNote?: Prisma.StringNullableFilter<"HrRequest"> | string | null
|
|
withdrawnAt?: Prisma.DateTimeNullableFilter<"HrRequest"> | Date | string | null
|
|
isDemoData?: Prisma.BoolFilter<"HrRequest"> | boolean
|
|
archivedAt?: Prisma.DateTimeNullableFilter<"HrRequest"> | Date | string | null
|
|
}
|
|
|
|
export type HrRequestCreateManyTemplateInput = {
|
|
id?: string
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
tenantId: string
|
|
employeeUserId: string
|
|
requestKind: $Enums.HrRequestKind
|
|
title: string
|
|
details?: string | null
|
|
formSubmissionId?: string | null
|
|
status?: $Enums.HrRequestStatus
|
|
assignedApproverUserId?: string | null
|
|
clarificationNote?: string | null
|
|
decidedByUserId?: string | null
|
|
decidedAt?: Date | string | null
|
|
decisionNote?: string | null
|
|
withdrawnAt?: Date | string | null
|
|
isDemoData?: boolean
|
|
archivedAt?: Date | string | null
|
|
}
|
|
|
|
export type HrRequestUpdateWithoutTemplateInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
tenantId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
employeeUserId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
requestKind?: Prisma.EnumHrRequestKindFieldUpdateOperationsInput | $Enums.HrRequestKind
|
|
title?: Prisma.StringFieldUpdateOperationsInput | string
|
|
details?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
formSubmissionId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
status?: Prisma.EnumHrRequestStatusFieldUpdateOperationsInput | $Enums.HrRequestStatus
|
|
assignedApproverUserId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
clarificationNote?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
decidedByUserId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
decidedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
decisionNote?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
withdrawnAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
isDemoData?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
|
archivedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
}
|
|
|
|
export type HrRequestUncheckedUpdateWithoutTemplateInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
tenantId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
employeeUserId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
requestKind?: Prisma.EnumHrRequestKindFieldUpdateOperationsInput | $Enums.HrRequestKind
|
|
title?: Prisma.StringFieldUpdateOperationsInput | string
|
|
details?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
formSubmissionId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
status?: Prisma.EnumHrRequestStatusFieldUpdateOperationsInput | $Enums.HrRequestStatus
|
|
assignedApproverUserId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
clarificationNote?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
decidedByUserId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
decidedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
decisionNote?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
withdrawnAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
isDemoData?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
|
archivedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
}
|
|
|
|
export type HrRequestUncheckedUpdateManyWithoutTemplateInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
tenantId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
employeeUserId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
requestKind?: Prisma.EnumHrRequestKindFieldUpdateOperationsInput | $Enums.HrRequestKind
|
|
title?: Prisma.StringFieldUpdateOperationsInput | string
|
|
details?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
formSubmissionId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
status?: Prisma.EnumHrRequestStatusFieldUpdateOperationsInput | $Enums.HrRequestStatus
|
|
assignedApproverUserId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
clarificationNote?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
decidedByUserId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
decidedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
decisionNote?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
withdrawnAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
isDemoData?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
|
archivedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
}
|
|
|
|
|
|
|
|
export type HrRequestSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
id?: boolean
|
|
createdAt?: boolean
|
|
updatedAt?: boolean
|
|
tenantId?: boolean
|
|
employeeUserId?: boolean
|
|
templateId?: boolean
|
|
requestKind?: boolean
|
|
title?: boolean
|
|
details?: boolean
|
|
formSubmissionId?: boolean
|
|
status?: boolean
|
|
assignedApproverUserId?: boolean
|
|
clarificationNote?: boolean
|
|
decidedByUserId?: boolean
|
|
decidedAt?: boolean
|
|
decisionNote?: boolean
|
|
withdrawnAt?: boolean
|
|
isDemoData?: boolean
|
|
archivedAt?: boolean
|
|
template?: boolean | Prisma.HrRequest$templateArgs<ExtArgs>
|
|
}, ExtArgs["result"]["hrRequest"]>
|
|
|
|
export type HrRequestSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
id?: boolean
|
|
createdAt?: boolean
|
|
updatedAt?: boolean
|
|
tenantId?: boolean
|
|
employeeUserId?: boolean
|
|
templateId?: boolean
|
|
requestKind?: boolean
|
|
title?: boolean
|
|
details?: boolean
|
|
formSubmissionId?: boolean
|
|
status?: boolean
|
|
assignedApproverUserId?: boolean
|
|
clarificationNote?: boolean
|
|
decidedByUserId?: boolean
|
|
decidedAt?: boolean
|
|
decisionNote?: boolean
|
|
withdrawnAt?: boolean
|
|
isDemoData?: boolean
|
|
archivedAt?: boolean
|
|
template?: boolean | Prisma.HrRequest$templateArgs<ExtArgs>
|
|
}, ExtArgs["result"]["hrRequest"]>
|
|
|
|
export type HrRequestSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
id?: boolean
|
|
createdAt?: boolean
|
|
updatedAt?: boolean
|
|
tenantId?: boolean
|
|
employeeUserId?: boolean
|
|
templateId?: boolean
|
|
requestKind?: boolean
|
|
title?: boolean
|
|
details?: boolean
|
|
formSubmissionId?: boolean
|
|
status?: boolean
|
|
assignedApproverUserId?: boolean
|
|
clarificationNote?: boolean
|
|
decidedByUserId?: boolean
|
|
decidedAt?: boolean
|
|
decisionNote?: boolean
|
|
withdrawnAt?: boolean
|
|
isDemoData?: boolean
|
|
archivedAt?: boolean
|
|
template?: boolean | Prisma.HrRequest$templateArgs<ExtArgs>
|
|
}, ExtArgs["result"]["hrRequest"]>
|
|
|
|
export type HrRequestSelectScalar = {
|
|
id?: boolean
|
|
createdAt?: boolean
|
|
updatedAt?: boolean
|
|
tenantId?: boolean
|
|
employeeUserId?: boolean
|
|
templateId?: boolean
|
|
requestKind?: boolean
|
|
title?: boolean
|
|
details?: boolean
|
|
formSubmissionId?: boolean
|
|
status?: boolean
|
|
assignedApproverUserId?: boolean
|
|
clarificationNote?: boolean
|
|
decidedByUserId?: boolean
|
|
decidedAt?: boolean
|
|
decisionNote?: boolean
|
|
withdrawnAt?: boolean
|
|
isDemoData?: boolean
|
|
archivedAt?: boolean
|
|
}
|
|
|
|
export type HrRequestOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "createdAt" | "updatedAt" | "tenantId" | "employeeUserId" | "templateId" | "requestKind" | "title" | "details" | "formSubmissionId" | "status" | "assignedApproverUserId" | "clarificationNote" | "decidedByUserId" | "decidedAt" | "decisionNote" | "withdrawnAt" | "isDemoData" | "archivedAt", ExtArgs["result"]["hrRequest"]>
|
|
export type HrRequestInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
template?: boolean | Prisma.HrRequest$templateArgs<ExtArgs>
|
|
}
|
|
export type HrRequestIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
template?: boolean | Prisma.HrRequest$templateArgs<ExtArgs>
|
|
}
|
|
export type HrRequestIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
template?: boolean | Prisma.HrRequest$templateArgs<ExtArgs>
|
|
}
|
|
|
|
export type $HrRequestPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
name: "HrRequest"
|
|
objects: {
|
|
template: Prisma.$HrRequestTemplatePayload<ExtArgs> | null
|
|
}
|
|
scalars: runtime.Types.Extensions.GetPayloadResult<{
|
|
id: string
|
|
createdAt: Date
|
|
updatedAt: Date
|
|
tenantId: string
|
|
employeeUserId: string
|
|
templateId: string | null
|
|
requestKind: $Enums.HrRequestKind
|
|
title: string
|
|
details: string | null
|
|
formSubmissionId: string | null
|
|
status: $Enums.HrRequestStatus
|
|
assignedApproverUserId: string | null
|
|
clarificationNote: string | null
|
|
decidedByUserId: string | null
|
|
decidedAt: Date | null
|
|
decisionNote: string | null
|
|
withdrawnAt: Date | null
|
|
isDemoData: boolean
|
|
archivedAt: Date | null
|
|
}, ExtArgs["result"]["hrRequest"]>
|
|
composites: {}
|
|
}
|
|
|
|
export type HrRequestGetPayload<S extends boolean | null | undefined | HrRequestDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$HrRequestPayload, S>
|
|
|
|
export type HrRequestCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> =
|
|
Omit<HrRequestFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
|
|
select?: HrRequestCountAggregateInputType | true
|
|
}
|
|
|
|
export interface HrRequestDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
|
|
[K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['HrRequest'], meta: { name: 'HrRequest' } }
|
|
/**
|
|
* Find zero or one HrRequest that matches the filter.
|
|
* @param {HrRequestFindUniqueArgs} args - Arguments to find a HrRequest
|
|
* @example
|
|
* // Get one HrRequest
|
|
* const hrRequest = await prisma.hrRequest.findUnique({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findUnique<T extends HrRequestFindUniqueArgs>(args: Prisma.SelectSubset<T, HrRequestFindUniqueArgs<ExtArgs>>): Prisma.Prisma__HrRequestClient<runtime.Types.Result.GetResult<Prisma.$HrRequestPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Find one HrRequest that matches the filter or throw an error with `error.code='P2025'`
|
|
* if no matches were found.
|
|
* @param {HrRequestFindUniqueOrThrowArgs} args - Arguments to find a HrRequest
|
|
* @example
|
|
* // Get one HrRequest
|
|
* const hrRequest = await prisma.hrRequest.findUniqueOrThrow({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findUniqueOrThrow<T extends HrRequestFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, HrRequestFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__HrRequestClient<runtime.Types.Result.GetResult<Prisma.$HrRequestPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Find the first HrRequest 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 {HrRequestFindFirstArgs} args - Arguments to find a HrRequest
|
|
* @example
|
|
* // Get one HrRequest
|
|
* const hrRequest = await prisma.hrRequest.findFirst({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findFirst<T extends HrRequestFindFirstArgs>(args?: Prisma.SelectSubset<T, HrRequestFindFirstArgs<ExtArgs>>): Prisma.Prisma__HrRequestClient<runtime.Types.Result.GetResult<Prisma.$HrRequestPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Find the first HrRequest 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 {HrRequestFindFirstOrThrowArgs} args - Arguments to find a HrRequest
|
|
* @example
|
|
* // Get one HrRequest
|
|
* const hrRequest = await prisma.hrRequest.findFirstOrThrow({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findFirstOrThrow<T extends HrRequestFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, HrRequestFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__HrRequestClient<runtime.Types.Result.GetResult<Prisma.$HrRequestPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Find zero or more HrRequests 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 {HrRequestFindManyArgs} args - Arguments to filter and select certain fields only.
|
|
* @example
|
|
* // Get all HrRequests
|
|
* const hrRequests = await prisma.hrRequest.findMany()
|
|
*
|
|
* // Get first 10 HrRequests
|
|
* const hrRequests = await prisma.hrRequest.findMany({ take: 10 })
|
|
*
|
|
* // Only select the `id`
|
|
* const hrRequestWithIdOnly = await prisma.hrRequest.findMany({ select: { id: true } })
|
|
*
|
|
*/
|
|
findMany<T extends HrRequestFindManyArgs>(args?: Prisma.SelectSubset<T, HrRequestFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$HrRequestPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
|
|
|
|
/**
|
|
* Create a HrRequest.
|
|
* @param {HrRequestCreateArgs} args - Arguments to create a HrRequest.
|
|
* @example
|
|
* // Create one HrRequest
|
|
* const HrRequest = await prisma.hrRequest.create({
|
|
* data: {
|
|
* // ... data to create a HrRequest
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
create<T extends HrRequestCreateArgs>(args: Prisma.SelectSubset<T, HrRequestCreateArgs<ExtArgs>>): Prisma.Prisma__HrRequestClient<runtime.Types.Result.GetResult<Prisma.$HrRequestPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Create many HrRequests.
|
|
* @param {HrRequestCreateManyArgs} args - Arguments to create many HrRequests.
|
|
* @example
|
|
* // Create many HrRequests
|
|
* const hrRequest = await prisma.hrRequest.createMany({
|
|
* data: [
|
|
* // ... provide data here
|
|
* ]
|
|
* })
|
|
*
|
|
*/
|
|
createMany<T extends HrRequestCreateManyArgs>(args?: Prisma.SelectSubset<T, HrRequestCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
|
|
|
/**
|
|
* Create many HrRequests and returns the data saved in the database.
|
|
* @param {HrRequestCreateManyAndReturnArgs} args - Arguments to create many HrRequests.
|
|
* @example
|
|
* // Create many HrRequests
|
|
* const hrRequest = await prisma.hrRequest.createManyAndReturn({
|
|
* data: [
|
|
* // ... provide data here
|
|
* ]
|
|
* })
|
|
*
|
|
* // Create many HrRequests and only return the `id`
|
|
* const hrRequestWithIdOnly = await prisma.hrRequest.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 HrRequestCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, HrRequestCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$HrRequestPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>
|
|
|
|
/**
|
|
* Delete a HrRequest.
|
|
* @param {HrRequestDeleteArgs} args - Arguments to delete one HrRequest.
|
|
* @example
|
|
* // Delete one HrRequest
|
|
* const HrRequest = await prisma.hrRequest.delete({
|
|
* where: {
|
|
* // ... filter to delete one HrRequest
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
delete<T extends HrRequestDeleteArgs>(args: Prisma.SelectSubset<T, HrRequestDeleteArgs<ExtArgs>>): Prisma.Prisma__HrRequestClient<runtime.Types.Result.GetResult<Prisma.$HrRequestPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Update one HrRequest.
|
|
* @param {HrRequestUpdateArgs} args - Arguments to update one HrRequest.
|
|
* @example
|
|
* // Update one HrRequest
|
|
* const hrRequest = await prisma.hrRequest.update({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* },
|
|
* data: {
|
|
* // ... provide data here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
update<T extends HrRequestUpdateArgs>(args: Prisma.SelectSubset<T, HrRequestUpdateArgs<ExtArgs>>): Prisma.Prisma__HrRequestClient<runtime.Types.Result.GetResult<Prisma.$HrRequestPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Delete zero or more HrRequests.
|
|
* @param {HrRequestDeleteManyArgs} args - Arguments to filter HrRequests to delete.
|
|
* @example
|
|
* // Delete a few HrRequests
|
|
* const { count } = await prisma.hrRequest.deleteMany({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
deleteMany<T extends HrRequestDeleteManyArgs>(args?: Prisma.SelectSubset<T, HrRequestDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
|
|
|
/**
|
|
* Update zero or more HrRequests.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {HrRequestUpdateManyArgs} args - Arguments to update one or more rows.
|
|
* @example
|
|
* // Update many HrRequests
|
|
* const hrRequest = await prisma.hrRequest.updateMany({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* },
|
|
* data: {
|
|
* // ... provide data here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
updateMany<T extends HrRequestUpdateManyArgs>(args: Prisma.SelectSubset<T, HrRequestUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
|
|
|
/**
|
|
* Update zero or more HrRequests and returns the data updated in the database.
|
|
* @param {HrRequestUpdateManyAndReturnArgs} args - Arguments to update many HrRequests.
|
|
* @example
|
|
* // Update many HrRequests
|
|
* const hrRequest = await prisma.hrRequest.updateManyAndReturn({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* },
|
|
* data: [
|
|
* // ... provide data here
|
|
* ]
|
|
* })
|
|
*
|
|
* // Update zero or more HrRequests and only return the `id`
|
|
* const hrRequestWithIdOnly = await prisma.hrRequest.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 HrRequestUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, HrRequestUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$HrRequestPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>
|
|
|
|
/**
|
|
* Create or update one HrRequest.
|
|
* @param {HrRequestUpsertArgs} args - Arguments to update or create a HrRequest.
|
|
* @example
|
|
* // Update or create a HrRequest
|
|
* const hrRequest = await prisma.hrRequest.upsert({
|
|
* create: {
|
|
* // ... data to create a HrRequest
|
|
* },
|
|
* update: {
|
|
* // ... in case it already exists, update
|
|
* },
|
|
* where: {
|
|
* // ... the filter for the HrRequest we want to update
|
|
* }
|
|
* })
|
|
*/
|
|
upsert<T extends HrRequestUpsertArgs>(args: Prisma.SelectSubset<T, HrRequestUpsertArgs<ExtArgs>>): Prisma.Prisma__HrRequestClient<runtime.Types.Result.GetResult<Prisma.$HrRequestPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
|
|
/**
|
|
* Count the number of HrRequests.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {HrRequestCountArgs} args - Arguments to filter HrRequests to count.
|
|
* @example
|
|
* // Count the number of HrRequests
|
|
* const count = await prisma.hrRequest.count({
|
|
* where: {
|
|
* // ... the filter for the HrRequests we want to count
|
|
* }
|
|
* })
|
|
**/
|
|
count<T extends HrRequestCountArgs>(
|
|
args?: Prisma.Subset<T, HrRequestCountArgs>,
|
|
): Prisma.PrismaPromise<
|
|
T extends runtime.Types.Utils.Record<'select', any>
|
|
? T['select'] extends true
|
|
? number
|
|
: Prisma.GetScalarType<T['select'], HrRequestCountAggregateOutputType>
|
|
: number
|
|
>
|
|
|
|
/**
|
|
* Allows you to perform aggregations operations on a HrRequest.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {HrRequestAggregateArgs} 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 HrRequestAggregateArgs>(args: Prisma.Subset<T, HrRequestAggregateArgs>): Prisma.PrismaPromise<GetHrRequestAggregateType<T>>
|
|
|
|
/**
|
|
* Group by HrRequest.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {HrRequestGroupByArgs} 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 HrRequestGroupByArgs,
|
|
HasSelectOrTake extends Prisma.Or<
|
|
Prisma.Extends<'skip', Prisma.Keys<T>>,
|
|
Prisma.Extends<'take', Prisma.Keys<T>>
|
|
>,
|
|
OrderByArg extends Prisma.True extends HasSelectOrTake
|
|
? { orderBy: HrRequestGroupByArgs['orderBy'] }
|
|
: { orderBy?: HrRequestGroupByArgs['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, HrRequestGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetHrRequestGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
|
|
/**
|
|
* Fields of the HrRequest model
|
|
*/
|
|
readonly fields: HrRequestFieldRefs;
|
|
}
|
|
|
|
/**
|
|
* The delegate class that acts as a "Promise-like" for HrRequest.
|
|
* 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__HrRequestClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
|
|
readonly [Symbol.toStringTag]: "PrismaPromise"
|
|
template<T extends Prisma.HrRequest$templateArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.HrRequest$templateArgs<ExtArgs>>): Prisma.Prisma__HrRequestTemplateClient<runtime.Types.Result.GetResult<Prisma.$HrRequestTemplatePayload<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 HrRequest model
|
|
*/
|
|
export interface HrRequestFieldRefs {
|
|
readonly id: Prisma.FieldRef<"HrRequest", 'String'>
|
|
readonly createdAt: Prisma.FieldRef<"HrRequest", 'DateTime'>
|
|
readonly updatedAt: Prisma.FieldRef<"HrRequest", 'DateTime'>
|
|
readonly tenantId: Prisma.FieldRef<"HrRequest", 'String'>
|
|
readonly employeeUserId: Prisma.FieldRef<"HrRequest", 'String'>
|
|
readonly templateId: Prisma.FieldRef<"HrRequest", 'String'>
|
|
readonly requestKind: Prisma.FieldRef<"HrRequest", 'HrRequestKind'>
|
|
readonly title: Prisma.FieldRef<"HrRequest", 'String'>
|
|
readonly details: Prisma.FieldRef<"HrRequest", 'String'>
|
|
readonly formSubmissionId: Prisma.FieldRef<"HrRequest", 'String'>
|
|
readonly status: Prisma.FieldRef<"HrRequest", 'HrRequestStatus'>
|
|
readonly assignedApproverUserId: Prisma.FieldRef<"HrRequest", 'String'>
|
|
readonly clarificationNote: Prisma.FieldRef<"HrRequest", 'String'>
|
|
readonly decidedByUserId: Prisma.FieldRef<"HrRequest", 'String'>
|
|
readonly decidedAt: Prisma.FieldRef<"HrRequest", 'DateTime'>
|
|
readonly decisionNote: Prisma.FieldRef<"HrRequest", 'String'>
|
|
readonly withdrawnAt: Prisma.FieldRef<"HrRequest", 'DateTime'>
|
|
readonly isDemoData: Prisma.FieldRef<"HrRequest", 'Boolean'>
|
|
readonly archivedAt: Prisma.FieldRef<"HrRequest", 'DateTime'>
|
|
}
|
|
|
|
|
|
// Custom InputTypes
|
|
/**
|
|
* HrRequest findUnique
|
|
*/
|
|
export type HrRequestFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the HrRequest
|
|
*/
|
|
select?: Prisma.HrRequestSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the HrRequest
|
|
*/
|
|
omit?: Prisma.HrRequestOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.HrRequestInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which HrRequest to fetch.
|
|
*/
|
|
where: Prisma.HrRequestWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* HrRequest findUniqueOrThrow
|
|
*/
|
|
export type HrRequestFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the HrRequest
|
|
*/
|
|
select?: Prisma.HrRequestSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the HrRequest
|
|
*/
|
|
omit?: Prisma.HrRequestOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.HrRequestInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which HrRequest to fetch.
|
|
*/
|
|
where: Prisma.HrRequestWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* HrRequest findFirst
|
|
*/
|
|
export type HrRequestFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the HrRequest
|
|
*/
|
|
select?: Prisma.HrRequestSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the HrRequest
|
|
*/
|
|
omit?: Prisma.HrRequestOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.HrRequestInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which HrRequest to fetch.
|
|
*/
|
|
where?: Prisma.HrRequestWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of HrRequests to fetch.
|
|
*/
|
|
orderBy?: Prisma.HrRequestOrderByWithRelationInput | Prisma.HrRequestOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for searching for HrRequests.
|
|
*/
|
|
cursor?: Prisma.HrRequestWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` HrRequests 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` HrRequests.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
*
|
|
* Filter by unique combinations of HrRequests.
|
|
*/
|
|
distinct?: Prisma.HrRequestScalarFieldEnum | Prisma.HrRequestScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* HrRequest findFirstOrThrow
|
|
*/
|
|
export type HrRequestFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the HrRequest
|
|
*/
|
|
select?: Prisma.HrRequestSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the HrRequest
|
|
*/
|
|
omit?: Prisma.HrRequestOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.HrRequestInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which HrRequest to fetch.
|
|
*/
|
|
where?: Prisma.HrRequestWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of HrRequests to fetch.
|
|
*/
|
|
orderBy?: Prisma.HrRequestOrderByWithRelationInput | Prisma.HrRequestOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for searching for HrRequests.
|
|
*/
|
|
cursor?: Prisma.HrRequestWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` HrRequests 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` HrRequests.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
*
|
|
* Filter by unique combinations of HrRequests.
|
|
*/
|
|
distinct?: Prisma.HrRequestScalarFieldEnum | Prisma.HrRequestScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* HrRequest findMany
|
|
*/
|
|
export type HrRequestFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the HrRequest
|
|
*/
|
|
select?: Prisma.HrRequestSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the HrRequest
|
|
*/
|
|
omit?: Prisma.HrRequestOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.HrRequestInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which HrRequests to fetch.
|
|
*/
|
|
where?: Prisma.HrRequestWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of HrRequests to fetch.
|
|
*/
|
|
orderBy?: Prisma.HrRequestOrderByWithRelationInput | Prisma.HrRequestOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for listing HrRequests.
|
|
*/
|
|
cursor?: Prisma.HrRequestWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` HrRequests 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` HrRequests.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
*
|
|
* Filter by unique combinations of HrRequests.
|
|
*/
|
|
distinct?: Prisma.HrRequestScalarFieldEnum | Prisma.HrRequestScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* HrRequest create
|
|
*/
|
|
export type HrRequestCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the HrRequest
|
|
*/
|
|
select?: Prisma.HrRequestSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the HrRequest
|
|
*/
|
|
omit?: Prisma.HrRequestOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.HrRequestInclude<ExtArgs> | null
|
|
/**
|
|
* The data needed to create a HrRequest.
|
|
*/
|
|
data: Prisma.XOR<Prisma.HrRequestCreateInput, Prisma.HrRequestUncheckedCreateInput>
|
|
}
|
|
|
|
/**
|
|
* HrRequest createMany
|
|
*/
|
|
export type HrRequestCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* The data used to create many HrRequests.
|
|
*/
|
|
data: Prisma.HrRequestCreateManyInput | Prisma.HrRequestCreateManyInput[]
|
|
skipDuplicates?: boolean
|
|
}
|
|
|
|
/**
|
|
* HrRequest createManyAndReturn
|
|
*/
|
|
export type HrRequestCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the HrRequest
|
|
*/
|
|
select?: Prisma.HrRequestSelectCreateManyAndReturn<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the HrRequest
|
|
*/
|
|
omit?: Prisma.HrRequestOmit<ExtArgs> | null
|
|
/**
|
|
* The data used to create many HrRequests.
|
|
*/
|
|
data: Prisma.HrRequestCreateManyInput | Prisma.HrRequestCreateManyInput[]
|
|
skipDuplicates?: boolean
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.HrRequestIncludeCreateManyAndReturn<ExtArgs> | null
|
|
}
|
|
|
|
/**
|
|
* HrRequest update
|
|
*/
|
|
export type HrRequestUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the HrRequest
|
|
*/
|
|
select?: Prisma.HrRequestSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the HrRequest
|
|
*/
|
|
omit?: Prisma.HrRequestOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.HrRequestInclude<ExtArgs> | null
|
|
/**
|
|
* The data needed to update a HrRequest.
|
|
*/
|
|
data: Prisma.XOR<Prisma.HrRequestUpdateInput, Prisma.HrRequestUncheckedUpdateInput>
|
|
/**
|
|
* Choose, which HrRequest to update.
|
|
*/
|
|
where: Prisma.HrRequestWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* HrRequest updateMany
|
|
*/
|
|
export type HrRequestUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* The data used to update HrRequests.
|
|
*/
|
|
data: Prisma.XOR<Prisma.HrRequestUpdateManyMutationInput, Prisma.HrRequestUncheckedUpdateManyInput>
|
|
/**
|
|
* Filter which HrRequests to update
|
|
*/
|
|
where?: Prisma.HrRequestWhereInput
|
|
/**
|
|
* Limit how many HrRequests to update.
|
|
*/
|
|
limit?: number
|
|
}
|
|
|
|
/**
|
|
* HrRequest updateManyAndReturn
|
|
*/
|
|
export type HrRequestUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the HrRequest
|
|
*/
|
|
select?: Prisma.HrRequestSelectUpdateManyAndReturn<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the HrRequest
|
|
*/
|
|
omit?: Prisma.HrRequestOmit<ExtArgs> | null
|
|
/**
|
|
* The data used to update HrRequests.
|
|
*/
|
|
data: Prisma.XOR<Prisma.HrRequestUpdateManyMutationInput, Prisma.HrRequestUncheckedUpdateManyInput>
|
|
/**
|
|
* Filter which HrRequests to update
|
|
*/
|
|
where?: Prisma.HrRequestWhereInput
|
|
/**
|
|
* Limit how many HrRequests to update.
|
|
*/
|
|
limit?: number
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.HrRequestIncludeUpdateManyAndReturn<ExtArgs> | null
|
|
}
|
|
|
|
/**
|
|
* HrRequest upsert
|
|
*/
|
|
export type HrRequestUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the HrRequest
|
|
*/
|
|
select?: Prisma.HrRequestSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the HrRequest
|
|
*/
|
|
omit?: Prisma.HrRequestOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.HrRequestInclude<ExtArgs> | null
|
|
/**
|
|
* The filter to search for the HrRequest to update in case it exists.
|
|
*/
|
|
where: Prisma.HrRequestWhereUniqueInput
|
|
/**
|
|
* In case the HrRequest found by the `where` argument doesn't exist, create a new HrRequest with this data.
|
|
*/
|
|
create: Prisma.XOR<Prisma.HrRequestCreateInput, Prisma.HrRequestUncheckedCreateInput>
|
|
/**
|
|
* In case the HrRequest was found with the provided `where` argument, update it with this data.
|
|
*/
|
|
update: Prisma.XOR<Prisma.HrRequestUpdateInput, Prisma.HrRequestUncheckedUpdateInput>
|
|
}
|
|
|
|
/**
|
|
* HrRequest delete
|
|
*/
|
|
export type HrRequestDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the HrRequest
|
|
*/
|
|
select?: Prisma.HrRequestSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the HrRequest
|
|
*/
|
|
omit?: Prisma.HrRequestOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.HrRequestInclude<ExtArgs> | null
|
|
/**
|
|
* Filter which HrRequest to delete.
|
|
*/
|
|
where: Prisma.HrRequestWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* HrRequest deleteMany
|
|
*/
|
|
export type HrRequestDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Filter which HrRequests to delete
|
|
*/
|
|
where?: Prisma.HrRequestWhereInput
|
|
/**
|
|
* Limit how many HrRequests to delete.
|
|
*/
|
|
limit?: number
|
|
}
|
|
|
|
/**
|
|
* HrRequest.template
|
|
*/
|
|
export type HrRequest$templateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the HrRequestTemplate
|
|
*/
|
|
select?: Prisma.HrRequestTemplateSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the HrRequestTemplate
|
|
*/
|
|
omit?: Prisma.HrRequestTemplateOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.HrRequestTemplateInclude<ExtArgs> | null
|
|
where?: Prisma.HrRequestTemplateWhereInput
|
|
}
|
|
|
|
/**
|
|
* HrRequest without action
|
|
*/
|
|
export type HrRequestDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the HrRequest
|
|
*/
|
|
select?: Prisma.HrRequestSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the HrRequest
|
|
*/
|
|
omit?: Prisma.HrRequestOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.HrRequestInclude<ExtArgs> | null
|
|
}
|