1424 lines
50 KiB
TypeScript
1424 lines
50 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 `HrResource` 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 HrResource
|
|
* A shared HR resource (a link or a file) surfaced on the HR hub. Soft-delete
|
|
* via `archivedAt`. `audience` is a coarse audience marker (e.g. "all",
|
|
* "team:<id>"); fine-grained targeting is follow-up.
|
|
*/
|
|
export type HrResourceModel = runtime.Types.Result.DefaultSelection<Prisma.$HrResourcePayload>
|
|
|
|
export type AggregateHrResource = {
|
|
_count: HrResourceCountAggregateOutputType | null
|
|
_avg: HrResourceAvgAggregateOutputType | null
|
|
_sum: HrResourceSumAggregateOutputType | null
|
|
_min: HrResourceMinAggregateOutputType | null
|
|
_max: HrResourceMaxAggregateOutputType | null
|
|
}
|
|
|
|
export type HrResourceAvgAggregateOutputType = {
|
|
sortOrder: number | null
|
|
}
|
|
|
|
export type HrResourceSumAggregateOutputType = {
|
|
sortOrder: number | null
|
|
}
|
|
|
|
export type HrResourceMinAggregateOutputType = {
|
|
id: string | null
|
|
createdAt: Date | null
|
|
updatedAt: Date | null
|
|
tenantId: string | null
|
|
title: string | null
|
|
kind: $Enums.HrResourceKind | null
|
|
url: string | null
|
|
fileId: string | null
|
|
category: string | null
|
|
audience: string | null
|
|
sortOrder: number | null
|
|
isDemoData: boolean | null
|
|
archivedAt: Date | null
|
|
}
|
|
|
|
export type HrResourceMaxAggregateOutputType = {
|
|
id: string | null
|
|
createdAt: Date | null
|
|
updatedAt: Date | null
|
|
tenantId: string | null
|
|
title: string | null
|
|
kind: $Enums.HrResourceKind | null
|
|
url: string | null
|
|
fileId: string | null
|
|
category: string | null
|
|
audience: string | null
|
|
sortOrder: number | null
|
|
isDemoData: boolean | null
|
|
archivedAt: Date | null
|
|
}
|
|
|
|
export type HrResourceCountAggregateOutputType = {
|
|
id: number
|
|
createdAt: number
|
|
updatedAt: number
|
|
tenantId: number
|
|
title: number
|
|
kind: number
|
|
url: number
|
|
fileId: number
|
|
category: number
|
|
audience: number
|
|
sortOrder: number
|
|
isDemoData: number
|
|
archivedAt: number
|
|
_all: number
|
|
}
|
|
|
|
|
|
export type HrResourceAvgAggregateInputType = {
|
|
sortOrder?: true
|
|
}
|
|
|
|
export type HrResourceSumAggregateInputType = {
|
|
sortOrder?: true
|
|
}
|
|
|
|
export type HrResourceMinAggregateInputType = {
|
|
id?: true
|
|
createdAt?: true
|
|
updatedAt?: true
|
|
tenantId?: true
|
|
title?: true
|
|
kind?: true
|
|
url?: true
|
|
fileId?: true
|
|
category?: true
|
|
audience?: true
|
|
sortOrder?: true
|
|
isDemoData?: true
|
|
archivedAt?: true
|
|
}
|
|
|
|
export type HrResourceMaxAggregateInputType = {
|
|
id?: true
|
|
createdAt?: true
|
|
updatedAt?: true
|
|
tenantId?: true
|
|
title?: true
|
|
kind?: true
|
|
url?: true
|
|
fileId?: true
|
|
category?: true
|
|
audience?: true
|
|
sortOrder?: true
|
|
isDemoData?: true
|
|
archivedAt?: true
|
|
}
|
|
|
|
export type HrResourceCountAggregateInputType = {
|
|
id?: true
|
|
createdAt?: true
|
|
updatedAt?: true
|
|
tenantId?: true
|
|
title?: true
|
|
kind?: true
|
|
url?: true
|
|
fileId?: true
|
|
category?: true
|
|
audience?: true
|
|
sortOrder?: true
|
|
isDemoData?: true
|
|
archivedAt?: true
|
|
_all?: true
|
|
}
|
|
|
|
export type HrResourceAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Filter which HrResource to aggregate.
|
|
*/
|
|
where?: Prisma.HrResourceWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of HrResources to fetch.
|
|
*/
|
|
orderBy?: Prisma.HrResourceOrderByWithRelationInput | Prisma.HrResourceOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the start position
|
|
*/
|
|
cursor?: Prisma.HrResourceWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` HrResources 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` HrResources.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Count returned HrResources
|
|
**/
|
|
_count?: true | HrResourceCountAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to average
|
|
**/
|
|
_avg?: HrResourceAvgAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to sum
|
|
**/
|
|
_sum?: HrResourceSumAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to find the minimum value
|
|
**/
|
|
_min?: HrResourceMinAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to find the maximum value
|
|
**/
|
|
_max?: HrResourceMaxAggregateInputType
|
|
}
|
|
|
|
export type GetHrResourceAggregateType<T extends HrResourceAggregateArgs> = {
|
|
[P in keyof T & keyof AggregateHrResource]: P extends '_count' | 'count'
|
|
? T[P] extends true
|
|
? number
|
|
: Prisma.GetScalarType<T[P], AggregateHrResource[P]>
|
|
: Prisma.GetScalarType<T[P], AggregateHrResource[P]>
|
|
}
|
|
|
|
|
|
|
|
|
|
export type HrResourceGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
where?: Prisma.HrResourceWhereInput
|
|
orderBy?: Prisma.HrResourceOrderByWithAggregationInput | Prisma.HrResourceOrderByWithAggregationInput[]
|
|
by: Prisma.HrResourceScalarFieldEnum[] | Prisma.HrResourceScalarFieldEnum
|
|
having?: Prisma.HrResourceScalarWhereWithAggregatesInput
|
|
take?: number
|
|
skip?: number
|
|
_count?: HrResourceCountAggregateInputType | true
|
|
_avg?: HrResourceAvgAggregateInputType
|
|
_sum?: HrResourceSumAggregateInputType
|
|
_min?: HrResourceMinAggregateInputType
|
|
_max?: HrResourceMaxAggregateInputType
|
|
}
|
|
|
|
export type HrResourceGroupByOutputType = {
|
|
id: string
|
|
createdAt: Date
|
|
updatedAt: Date
|
|
tenantId: string
|
|
title: string
|
|
kind: $Enums.HrResourceKind
|
|
url: string | null
|
|
fileId: string | null
|
|
category: string | null
|
|
audience: string
|
|
sortOrder: number
|
|
isDemoData: boolean
|
|
archivedAt: Date | null
|
|
_count: HrResourceCountAggregateOutputType | null
|
|
_avg: HrResourceAvgAggregateOutputType | null
|
|
_sum: HrResourceSumAggregateOutputType | null
|
|
_min: HrResourceMinAggregateOutputType | null
|
|
_max: HrResourceMaxAggregateOutputType | null
|
|
}
|
|
|
|
export type GetHrResourceGroupByPayload<T extends HrResourceGroupByArgs> = Prisma.PrismaPromise<
|
|
Array<
|
|
Prisma.PickEnumerable<HrResourceGroupByOutputType, T['by']> &
|
|
{
|
|
[P in ((keyof T) & (keyof HrResourceGroupByOutputType))]: P extends '_count'
|
|
? T[P] extends boolean
|
|
? number
|
|
: Prisma.GetScalarType<T[P], HrResourceGroupByOutputType[P]>
|
|
: Prisma.GetScalarType<T[P], HrResourceGroupByOutputType[P]>
|
|
}
|
|
>
|
|
>
|
|
|
|
|
|
|
|
export type HrResourceWhereInput = {
|
|
AND?: Prisma.HrResourceWhereInput | Prisma.HrResourceWhereInput[]
|
|
OR?: Prisma.HrResourceWhereInput[]
|
|
NOT?: Prisma.HrResourceWhereInput | Prisma.HrResourceWhereInput[]
|
|
id?: Prisma.StringFilter<"HrResource"> | string
|
|
createdAt?: Prisma.DateTimeFilter<"HrResource"> | Date | string
|
|
updatedAt?: Prisma.DateTimeFilter<"HrResource"> | Date | string
|
|
tenantId?: Prisma.StringFilter<"HrResource"> | string
|
|
title?: Prisma.StringFilter<"HrResource"> | string
|
|
kind?: Prisma.EnumHrResourceKindFilter<"HrResource"> | $Enums.HrResourceKind
|
|
url?: Prisma.StringNullableFilter<"HrResource"> | string | null
|
|
fileId?: Prisma.StringNullableFilter<"HrResource"> | string | null
|
|
category?: Prisma.StringNullableFilter<"HrResource"> | string | null
|
|
audience?: Prisma.StringFilter<"HrResource"> | string
|
|
sortOrder?: Prisma.IntFilter<"HrResource"> | number
|
|
isDemoData?: Prisma.BoolFilter<"HrResource"> | boolean
|
|
archivedAt?: Prisma.DateTimeNullableFilter<"HrResource"> | Date | string | null
|
|
}
|
|
|
|
export type HrResourceOrderByWithRelationInput = {
|
|
id?: Prisma.SortOrder
|
|
createdAt?: Prisma.SortOrder
|
|
updatedAt?: Prisma.SortOrder
|
|
tenantId?: Prisma.SortOrder
|
|
title?: Prisma.SortOrder
|
|
kind?: Prisma.SortOrder
|
|
url?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
fileId?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
category?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
audience?: Prisma.SortOrder
|
|
sortOrder?: Prisma.SortOrder
|
|
isDemoData?: Prisma.SortOrder
|
|
archivedAt?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
}
|
|
|
|
export type HrResourceWhereUniqueInput = Prisma.AtLeast<{
|
|
id?: string
|
|
AND?: Prisma.HrResourceWhereInput | Prisma.HrResourceWhereInput[]
|
|
OR?: Prisma.HrResourceWhereInput[]
|
|
NOT?: Prisma.HrResourceWhereInput | Prisma.HrResourceWhereInput[]
|
|
createdAt?: Prisma.DateTimeFilter<"HrResource"> | Date | string
|
|
updatedAt?: Prisma.DateTimeFilter<"HrResource"> | Date | string
|
|
tenantId?: Prisma.StringFilter<"HrResource"> | string
|
|
title?: Prisma.StringFilter<"HrResource"> | string
|
|
kind?: Prisma.EnumHrResourceKindFilter<"HrResource"> | $Enums.HrResourceKind
|
|
url?: Prisma.StringNullableFilter<"HrResource"> | string | null
|
|
fileId?: Prisma.StringNullableFilter<"HrResource"> | string | null
|
|
category?: Prisma.StringNullableFilter<"HrResource"> | string | null
|
|
audience?: Prisma.StringFilter<"HrResource"> | string
|
|
sortOrder?: Prisma.IntFilter<"HrResource"> | number
|
|
isDemoData?: Prisma.BoolFilter<"HrResource"> | boolean
|
|
archivedAt?: Prisma.DateTimeNullableFilter<"HrResource"> | Date | string | null
|
|
}, "id">
|
|
|
|
export type HrResourceOrderByWithAggregationInput = {
|
|
id?: Prisma.SortOrder
|
|
createdAt?: Prisma.SortOrder
|
|
updatedAt?: Prisma.SortOrder
|
|
tenantId?: Prisma.SortOrder
|
|
title?: Prisma.SortOrder
|
|
kind?: Prisma.SortOrder
|
|
url?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
fileId?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
category?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
audience?: Prisma.SortOrder
|
|
sortOrder?: Prisma.SortOrder
|
|
isDemoData?: Prisma.SortOrder
|
|
archivedAt?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
_count?: Prisma.HrResourceCountOrderByAggregateInput
|
|
_avg?: Prisma.HrResourceAvgOrderByAggregateInput
|
|
_max?: Prisma.HrResourceMaxOrderByAggregateInput
|
|
_min?: Prisma.HrResourceMinOrderByAggregateInput
|
|
_sum?: Prisma.HrResourceSumOrderByAggregateInput
|
|
}
|
|
|
|
export type HrResourceScalarWhereWithAggregatesInput = {
|
|
AND?: Prisma.HrResourceScalarWhereWithAggregatesInput | Prisma.HrResourceScalarWhereWithAggregatesInput[]
|
|
OR?: Prisma.HrResourceScalarWhereWithAggregatesInput[]
|
|
NOT?: Prisma.HrResourceScalarWhereWithAggregatesInput | Prisma.HrResourceScalarWhereWithAggregatesInput[]
|
|
id?: Prisma.StringWithAggregatesFilter<"HrResource"> | string
|
|
createdAt?: Prisma.DateTimeWithAggregatesFilter<"HrResource"> | Date | string
|
|
updatedAt?: Prisma.DateTimeWithAggregatesFilter<"HrResource"> | Date | string
|
|
tenantId?: Prisma.StringWithAggregatesFilter<"HrResource"> | string
|
|
title?: Prisma.StringWithAggregatesFilter<"HrResource"> | string
|
|
kind?: Prisma.EnumHrResourceKindWithAggregatesFilter<"HrResource"> | $Enums.HrResourceKind
|
|
url?: Prisma.StringNullableWithAggregatesFilter<"HrResource"> | string | null
|
|
fileId?: Prisma.StringNullableWithAggregatesFilter<"HrResource"> | string | null
|
|
category?: Prisma.StringNullableWithAggregatesFilter<"HrResource"> | string | null
|
|
audience?: Prisma.StringWithAggregatesFilter<"HrResource"> | string
|
|
sortOrder?: Prisma.IntWithAggregatesFilter<"HrResource"> | number
|
|
isDemoData?: Prisma.BoolWithAggregatesFilter<"HrResource"> | boolean
|
|
archivedAt?: Prisma.DateTimeNullableWithAggregatesFilter<"HrResource"> | Date | string | null
|
|
}
|
|
|
|
export type HrResourceCreateInput = {
|
|
id?: string
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
tenantId: string
|
|
title: string
|
|
kind?: $Enums.HrResourceKind
|
|
url?: string | null
|
|
fileId?: string | null
|
|
category?: string | null
|
|
audience?: string
|
|
sortOrder?: number
|
|
isDemoData?: boolean
|
|
archivedAt?: Date | string | null
|
|
}
|
|
|
|
export type HrResourceUncheckedCreateInput = {
|
|
id?: string
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
tenantId: string
|
|
title: string
|
|
kind?: $Enums.HrResourceKind
|
|
url?: string | null
|
|
fileId?: string | null
|
|
category?: string | null
|
|
audience?: string
|
|
sortOrder?: number
|
|
isDemoData?: boolean
|
|
archivedAt?: Date | string | null
|
|
}
|
|
|
|
export type HrResourceUpdateInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
tenantId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
title?: Prisma.StringFieldUpdateOperationsInput | string
|
|
kind?: Prisma.EnumHrResourceKindFieldUpdateOperationsInput | $Enums.HrResourceKind
|
|
url?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
fileId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
category?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
audience?: Prisma.StringFieldUpdateOperationsInput | string
|
|
sortOrder?: Prisma.IntFieldUpdateOperationsInput | number
|
|
isDemoData?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
|
archivedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
}
|
|
|
|
export type HrResourceUncheckedUpdateInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
tenantId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
title?: Prisma.StringFieldUpdateOperationsInput | string
|
|
kind?: Prisma.EnumHrResourceKindFieldUpdateOperationsInput | $Enums.HrResourceKind
|
|
url?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
fileId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
category?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
audience?: Prisma.StringFieldUpdateOperationsInput | string
|
|
sortOrder?: Prisma.IntFieldUpdateOperationsInput | number
|
|
isDemoData?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
|
archivedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
}
|
|
|
|
export type HrResourceCreateManyInput = {
|
|
id?: string
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
tenantId: string
|
|
title: string
|
|
kind?: $Enums.HrResourceKind
|
|
url?: string | null
|
|
fileId?: string | null
|
|
category?: string | null
|
|
audience?: string
|
|
sortOrder?: number
|
|
isDemoData?: boolean
|
|
archivedAt?: Date | string | null
|
|
}
|
|
|
|
export type HrResourceUpdateManyMutationInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
tenantId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
title?: Prisma.StringFieldUpdateOperationsInput | string
|
|
kind?: Prisma.EnumHrResourceKindFieldUpdateOperationsInput | $Enums.HrResourceKind
|
|
url?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
fileId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
category?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
audience?: Prisma.StringFieldUpdateOperationsInput | string
|
|
sortOrder?: Prisma.IntFieldUpdateOperationsInput | number
|
|
isDemoData?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
|
archivedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
}
|
|
|
|
export type HrResourceUncheckedUpdateManyInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
tenantId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
title?: Prisma.StringFieldUpdateOperationsInput | string
|
|
kind?: Prisma.EnumHrResourceKindFieldUpdateOperationsInput | $Enums.HrResourceKind
|
|
url?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
fileId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
category?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
audience?: Prisma.StringFieldUpdateOperationsInput | string
|
|
sortOrder?: Prisma.IntFieldUpdateOperationsInput | number
|
|
isDemoData?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
|
archivedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
}
|
|
|
|
export type HrResourceCountOrderByAggregateInput = {
|
|
id?: Prisma.SortOrder
|
|
createdAt?: Prisma.SortOrder
|
|
updatedAt?: Prisma.SortOrder
|
|
tenantId?: Prisma.SortOrder
|
|
title?: Prisma.SortOrder
|
|
kind?: Prisma.SortOrder
|
|
url?: Prisma.SortOrder
|
|
fileId?: Prisma.SortOrder
|
|
category?: Prisma.SortOrder
|
|
audience?: Prisma.SortOrder
|
|
sortOrder?: Prisma.SortOrder
|
|
isDemoData?: Prisma.SortOrder
|
|
archivedAt?: Prisma.SortOrder
|
|
}
|
|
|
|
export type HrResourceAvgOrderByAggregateInput = {
|
|
sortOrder?: Prisma.SortOrder
|
|
}
|
|
|
|
export type HrResourceMaxOrderByAggregateInput = {
|
|
id?: Prisma.SortOrder
|
|
createdAt?: Prisma.SortOrder
|
|
updatedAt?: Prisma.SortOrder
|
|
tenantId?: Prisma.SortOrder
|
|
title?: Prisma.SortOrder
|
|
kind?: Prisma.SortOrder
|
|
url?: Prisma.SortOrder
|
|
fileId?: Prisma.SortOrder
|
|
category?: Prisma.SortOrder
|
|
audience?: Prisma.SortOrder
|
|
sortOrder?: Prisma.SortOrder
|
|
isDemoData?: Prisma.SortOrder
|
|
archivedAt?: Prisma.SortOrder
|
|
}
|
|
|
|
export type HrResourceMinOrderByAggregateInput = {
|
|
id?: Prisma.SortOrder
|
|
createdAt?: Prisma.SortOrder
|
|
updatedAt?: Prisma.SortOrder
|
|
tenantId?: Prisma.SortOrder
|
|
title?: Prisma.SortOrder
|
|
kind?: Prisma.SortOrder
|
|
url?: Prisma.SortOrder
|
|
fileId?: Prisma.SortOrder
|
|
category?: Prisma.SortOrder
|
|
audience?: Prisma.SortOrder
|
|
sortOrder?: Prisma.SortOrder
|
|
isDemoData?: Prisma.SortOrder
|
|
archivedAt?: Prisma.SortOrder
|
|
}
|
|
|
|
export type HrResourceSumOrderByAggregateInput = {
|
|
sortOrder?: Prisma.SortOrder
|
|
}
|
|
|
|
export type EnumHrResourceKindFieldUpdateOperationsInput = {
|
|
set?: $Enums.HrResourceKind
|
|
}
|
|
|
|
|
|
|
|
export type HrResourceSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
id?: boolean
|
|
createdAt?: boolean
|
|
updatedAt?: boolean
|
|
tenantId?: boolean
|
|
title?: boolean
|
|
kind?: boolean
|
|
url?: boolean
|
|
fileId?: boolean
|
|
category?: boolean
|
|
audience?: boolean
|
|
sortOrder?: boolean
|
|
isDemoData?: boolean
|
|
archivedAt?: boolean
|
|
}, ExtArgs["result"]["hrResource"]>
|
|
|
|
export type HrResourceSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
id?: boolean
|
|
createdAt?: boolean
|
|
updatedAt?: boolean
|
|
tenantId?: boolean
|
|
title?: boolean
|
|
kind?: boolean
|
|
url?: boolean
|
|
fileId?: boolean
|
|
category?: boolean
|
|
audience?: boolean
|
|
sortOrder?: boolean
|
|
isDemoData?: boolean
|
|
archivedAt?: boolean
|
|
}, ExtArgs["result"]["hrResource"]>
|
|
|
|
export type HrResourceSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
id?: boolean
|
|
createdAt?: boolean
|
|
updatedAt?: boolean
|
|
tenantId?: boolean
|
|
title?: boolean
|
|
kind?: boolean
|
|
url?: boolean
|
|
fileId?: boolean
|
|
category?: boolean
|
|
audience?: boolean
|
|
sortOrder?: boolean
|
|
isDemoData?: boolean
|
|
archivedAt?: boolean
|
|
}, ExtArgs["result"]["hrResource"]>
|
|
|
|
export type HrResourceSelectScalar = {
|
|
id?: boolean
|
|
createdAt?: boolean
|
|
updatedAt?: boolean
|
|
tenantId?: boolean
|
|
title?: boolean
|
|
kind?: boolean
|
|
url?: boolean
|
|
fileId?: boolean
|
|
category?: boolean
|
|
audience?: boolean
|
|
sortOrder?: boolean
|
|
isDemoData?: boolean
|
|
archivedAt?: boolean
|
|
}
|
|
|
|
export type HrResourceOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "createdAt" | "updatedAt" | "tenantId" | "title" | "kind" | "url" | "fileId" | "category" | "audience" | "sortOrder" | "isDemoData" | "archivedAt", ExtArgs["result"]["hrResource"]>
|
|
|
|
export type $HrResourcePayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
name: "HrResource"
|
|
objects: {}
|
|
scalars: runtime.Types.Extensions.GetPayloadResult<{
|
|
id: string
|
|
createdAt: Date
|
|
updatedAt: Date
|
|
tenantId: string
|
|
title: string
|
|
kind: $Enums.HrResourceKind
|
|
url: string | null
|
|
fileId: string | null
|
|
category: string | null
|
|
audience: string
|
|
sortOrder: number
|
|
isDemoData: boolean
|
|
archivedAt: Date | null
|
|
}, ExtArgs["result"]["hrResource"]>
|
|
composites: {}
|
|
}
|
|
|
|
export type HrResourceGetPayload<S extends boolean | null | undefined | HrResourceDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$HrResourcePayload, S>
|
|
|
|
export type HrResourceCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> =
|
|
Omit<HrResourceFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
|
|
select?: HrResourceCountAggregateInputType | true
|
|
}
|
|
|
|
export interface HrResourceDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
|
|
[K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['HrResource'], meta: { name: 'HrResource' } }
|
|
/**
|
|
* Find zero or one HrResource that matches the filter.
|
|
* @param {HrResourceFindUniqueArgs} args - Arguments to find a HrResource
|
|
* @example
|
|
* // Get one HrResource
|
|
* const hrResource = await prisma.hrResource.findUnique({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findUnique<T extends HrResourceFindUniqueArgs>(args: Prisma.SelectSubset<T, HrResourceFindUniqueArgs<ExtArgs>>): Prisma.Prisma__HrResourceClient<runtime.Types.Result.GetResult<Prisma.$HrResourcePayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Find one HrResource that matches the filter or throw an error with `error.code='P2025'`
|
|
* if no matches were found.
|
|
* @param {HrResourceFindUniqueOrThrowArgs} args - Arguments to find a HrResource
|
|
* @example
|
|
* // Get one HrResource
|
|
* const hrResource = await prisma.hrResource.findUniqueOrThrow({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findUniqueOrThrow<T extends HrResourceFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, HrResourceFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__HrResourceClient<runtime.Types.Result.GetResult<Prisma.$HrResourcePayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Find the first HrResource 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 {HrResourceFindFirstArgs} args - Arguments to find a HrResource
|
|
* @example
|
|
* // Get one HrResource
|
|
* const hrResource = await prisma.hrResource.findFirst({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findFirst<T extends HrResourceFindFirstArgs>(args?: Prisma.SelectSubset<T, HrResourceFindFirstArgs<ExtArgs>>): Prisma.Prisma__HrResourceClient<runtime.Types.Result.GetResult<Prisma.$HrResourcePayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Find the first HrResource 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 {HrResourceFindFirstOrThrowArgs} args - Arguments to find a HrResource
|
|
* @example
|
|
* // Get one HrResource
|
|
* const hrResource = await prisma.hrResource.findFirstOrThrow({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findFirstOrThrow<T extends HrResourceFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, HrResourceFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__HrResourceClient<runtime.Types.Result.GetResult<Prisma.$HrResourcePayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Find zero or more HrResources 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 {HrResourceFindManyArgs} args - Arguments to filter and select certain fields only.
|
|
* @example
|
|
* // Get all HrResources
|
|
* const hrResources = await prisma.hrResource.findMany()
|
|
*
|
|
* // Get first 10 HrResources
|
|
* const hrResources = await prisma.hrResource.findMany({ take: 10 })
|
|
*
|
|
* // Only select the `id`
|
|
* const hrResourceWithIdOnly = await prisma.hrResource.findMany({ select: { id: true } })
|
|
*
|
|
*/
|
|
findMany<T extends HrResourceFindManyArgs>(args?: Prisma.SelectSubset<T, HrResourceFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$HrResourcePayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
|
|
|
|
/**
|
|
* Create a HrResource.
|
|
* @param {HrResourceCreateArgs} args - Arguments to create a HrResource.
|
|
* @example
|
|
* // Create one HrResource
|
|
* const HrResource = await prisma.hrResource.create({
|
|
* data: {
|
|
* // ... data to create a HrResource
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
create<T extends HrResourceCreateArgs>(args: Prisma.SelectSubset<T, HrResourceCreateArgs<ExtArgs>>): Prisma.Prisma__HrResourceClient<runtime.Types.Result.GetResult<Prisma.$HrResourcePayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Create many HrResources.
|
|
* @param {HrResourceCreateManyArgs} args - Arguments to create many HrResources.
|
|
* @example
|
|
* // Create many HrResources
|
|
* const hrResource = await prisma.hrResource.createMany({
|
|
* data: [
|
|
* // ... provide data here
|
|
* ]
|
|
* })
|
|
*
|
|
*/
|
|
createMany<T extends HrResourceCreateManyArgs>(args?: Prisma.SelectSubset<T, HrResourceCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
|
|
|
/**
|
|
* Create many HrResources and returns the data saved in the database.
|
|
* @param {HrResourceCreateManyAndReturnArgs} args - Arguments to create many HrResources.
|
|
* @example
|
|
* // Create many HrResources
|
|
* const hrResource = await prisma.hrResource.createManyAndReturn({
|
|
* data: [
|
|
* // ... provide data here
|
|
* ]
|
|
* })
|
|
*
|
|
* // Create many HrResources and only return the `id`
|
|
* const hrResourceWithIdOnly = await prisma.hrResource.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 HrResourceCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, HrResourceCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$HrResourcePayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>
|
|
|
|
/**
|
|
* Delete a HrResource.
|
|
* @param {HrResourceDeleteArgs} args - Arguments to delete one HrResource.
|
|
* @example
|
|
* // Delete one HrResource
|
|
* const HrResource = await prisma.hrResource.delete({
|
|
* where: {
|
|
* // ... filter to delete one HrResource
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
delete<T extends HrResourceDeleteArgs>(args: Prisma.SelectSubset<T, HrResourceDeleteArgs<ExtArgs>>): Prisma.Prisma__HrResourceClient<runtime.Types.Result.GetResult<Prisma.$HrResourcePayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Update one HrResource.
|
|
* @param {HrResourceUpdateArgs} args - Arguments to update one HrResource.
|
|
* @example
|
|
* // Update one HrResource
|
|
* const hrResource = await prisma.hrResource.update({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* },
|
|
* data: {
|
|
* // ... provide data here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
update<T extends HrResourceUpdateArgs>(args: Prisma.SelectSubset<T, HrResourceUpdateArgs<ExtArgs>>): Prisma.Prisma__HrResourceClient<runtime.Types.Result.GetResult<Prisma.$HrResourcePayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Delete zero or more HrResources.
|
|
* @param {HrResourceDeleteManyArgs} args - Arguments to filter HrResources to delete.
|
|
* @example
|
|
* // Delete a few HrResources
|
|
* const { count } = await prisma.hrResource.deleteMany({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
deleteMany<T extends HrResourceDeleteManyArgs>(args?: Prisma.SelectSubset<T, HrResourceDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
|
|
|
/**
|
|
* Update zero or more HrResources.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {HrResourceUpdateManyArgs} args - Arguments to update one or more rows.
|
|
* @example
|
|
* // Update many HrResources
|
|
* const hrResource = await prisma.hrResource.updateMany({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* },
|
|
* data: {
|
|
* // ... provide data here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
updateMany<T extends HrResourceUpdateManyArgs>(args: Prisma.SelectSubset<T, HrResourceUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
|
|
|
/**
|
|
* Update zero or more HrResources and returns the data updated in the database.
|
|
* @param {HrResourceUpdateManyAndReturnArgs} args - Arguments to update many HrResources.
|
|
* @example
|
|
* // Update many HrResources
|
|
* const hrResource = await prisma.hrResource.updateManyAndReturn({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* },
|
|
* data: [
|
|
* // ... provide data here
|
|
* ]
|
|
* })
|
|
*
|
|
* // Update zero or more HrResources and only return the `id`
|
|
* const hrResourceWithIdOnly = await prisma.hrResource.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 HrResourceUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, HrResourceUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$HrResourcePayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>
|
|
|
|
/**
|
|
* Create or update one HrResource.
|
|
* @param {HrResourceUpsertArgs} args - Arguments to update or create a HrResource.
|
|
* @example
|
|
* // Update or create a HrResource
|
|
* const hrResource = await prisma.hrResource.upsert({
|
|
* create: {
|
|
* // ... data to create a HrResource
|
|
* },
|
|
* update: {
|
|
* // ... in case it already exists, update
|
|
* },
|
|
* where: {
|
|
* // ... the filter for the HrResource we want to update
|
|
* }
|
|
* })
|
|
*/
|
|
upsert<T extends HrResourceUpsertArgs>(args: Prisma.SelectSubset<T, HrResourceUpsertArgs<ExtArgs>>): Prisma.Prisma__HrResourceClient<runtime.Types.Result.GetResult<Prisma.$HrResourcePayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
|
|
/**
|
|
* Count the number of HrResources.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {HrResourceCountArgs} args - Arguments to filter HrResources to count.
|
|
* @example
|
|
* // Count the number of HrResources
|
|
* const count = await prisma.hrResource.count({
|
|
* where: {
|
|
* // ... the filter for the HrResources we want to count
|
|
* }
|
|
* })
|
|
**/
|
|
count<T extends HrResourceCountArgs>(
|
|
args?: Prisma.Subset<T, HrResourceCountArgs>,
|
|
): Prisma.PrismaPromise<
|
|
T extends runtime.Types.Utils.Record<'select', any>
|
|
? T['select'] extends true
|
|
? number
|
|
: Prisma.GetScalarType<T['select'], HrResourceCountAggregateOutputType>
|
|
: number
|
|
>
|
|
|
|
/**
|
|
* Allows you to perform aggregations operations on a HrResource.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {HrResourceAggregateArgs} 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 HrResourceAggregateArgs>(args: Prisma.Subset<T, HrResourceAggregateArgs>): Prisma.PrismaPromise<GetHrResourceAggregateType<T>>
|
|
|
|
/**
|
|
* Group by HrResource.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {HrResourceGroupByArgs} 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 HrResourceGroupByArgs,
|
|
HasSelectOrTake extends Prisma.Or<
|
|
Prisma.Extends<'skip', Prisma.Keys<T>>,
|
|
Prisma.Extends<'take', Prisma.Keys<T>>
|
|
>,
|
|
OrderByArg extends Prisma.True extends HasSelectOrTake
|
|
? { orderBy: HrResourceGroupByArgs['orderBy'] }
|
|
: { orderBy?: HrResourceGroupByArgs['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, HrResourceGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetHrResourceGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
|
|
/**
|
|
* Fields of the HrResource model
|
|
*/
|
|
readonly fields: HrResourceFieldRefs;
|
|
}
|
|
|
|
/**
|
|
* The delegate class that acts as a "Promise-like" for HrResource.
|
|
* 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__HrResourceClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
|
|
readonly [Symbol.toStringTag]: "PrismaPromise"
|
|
/**
|
|
* 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 HrResource model
|
|
*/
|
|
export interface HrResourceFieldRefs {
|
|
readonly id: Prisma.FieldRef<"HrResource", 'String'>
|
|
readonly createdAt: Prisma.FieldRef<"HrResource", 'DateTime'>
|
|
readonly updatedAt: Prisma.FieldRef<"HrResource", 'DateTime'>
|
|
readonly tenantId: Prisma.FieldRef<"HrResource", 'String'>
|
|
readonly title: Prisma.FieldRef<"HrResource", 'String'>
|
|
readonly kind: Prisma.FieldRef<"HrResource", 'HrResourceKind'>
|
|
readonly url: Prisma.FieldRef<"HrResource", 'String'>
|
|
readonly fileId: Prisma.FieldRef<"HrResource", 'String'>
|
|
readonly category: Prisma.FieldRef<"HrResource", 'String'>
|
|
readonly audience: Prisma.FieldRef<"HrResource", 'String'>
|
|
readonly sortOrder: Prisma.FieldRef<"HrResource", 'Int'>
|
|
readonly isDemoData: Prisma.FieldRef<"HrResource", 'Boolean'>
|
|
readonly archivedAt: Prisma.FieldRef<"HrResource", 'DateTime'>
|
|
}
|
|
|
|
|
|
// Custom InputTypes
|
|
/**
|
|
* HrResource findUnique
|
|
*/
|
|
export type HrResourceFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the HrResource
|
|
*/
|
|
select?: Prisma.HrResourceSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the HrResource
|
|
*/
|
|
omit?: Prisma.HrResourceOmit<ExtArgs> | null
|
|
/**
|
|
* Filter, which HrResource to fetch.
|
|
*/
|
|
where: Prisma.HrResourceWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* HrResource findUniqueOrThrow
|
|
*/
|
|
export type HrResourceFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the HrResource
|
|
*/
|
|
select?: Prisma.HrResourceSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the HrResource
|
|
*/
|
|
omit?: Prisma.HrResourceOmit<ExtArgs> | null
|
|
/**
|
|
* Filter, which HrResource to fetch.
|
|
*/
|
|
where: Prisma.HrResourceWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* HrResource findFirst
|
|
*/
|
|
export type HrResourceFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the HrResource
|
|
*/
|
|
select?: Prisma.HrResourceSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the HrResource
|
|
*/
|
|
omit?: Prisma.HrResourceOmit<ExtArgs> | null
|
|
/**
|
|
* Filter, which HrResource to fetch.
|
|
*/
|
|
where?: Prisma.HrResourceWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of HrResources to fetch.
|
|
*/
|
|
orderBy?: Prisma.HrResourceOrderByWithRelationInput | Prisma.HrResourceOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for searching for HrResources.
|
|
*/
|
|
cursor?: Prisma.HrResourceWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` HrResources 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` HrResources.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
*
|
|
* Filter by unique combinations of HrResources.
|
|
*/
|
|
distinct?: Prisma.HrResourceScalarFieldEnum | Prisma.HrResourceScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* HrResource findFirstOrThrow
|
|
*/
|
|
export type HrResourceFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the HrResource
|
|
*/
|
|
select?: Prisma.HrResourceSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the HrResource
|
|
*/
|
|
omit?: Prisma.HrResourceOmit<ExtArgs> | null
|
|
/**
|
|
* Filter, which HrResource to fetch.
|
|
*/
|
|
where?: Prisma.HrResourceWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of HrResources to fetch.
|
|
*/
|
|
orderBy?: Prisma.HrResourceOrderByWithRelationInput | Prisma.HrResourceOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for searching for HrResources.
|
|
*/
|
|
cursor?: Prisma.HrResourceWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` HrResources 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` HrResources.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
*
|
|
* Filter by unique combinations of HrResources.
|
|
*/
|
|
distinct?: Prisma.HrResourceScalarFieldEnum | Prisma.HrResourceScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* HrResource findMany
|
|
*/
|
|
export type HrResourceFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the HrResource
|
|
*/
|
|
select?: Prisma.HrResourceSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the HrResource
|
|
*/
|
|
omit?: Prisma.HrResourceOmit<ExtArgs> | null
|
|
/**
|
|
* Filter, which HrResources to fetch.
|
|
*/
|
|
where?: Prisma.HrResourceWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of HrResources to fetch.
|
|
*/
|
|
orderBy?: Prisma.HrResourceOrderByWithRelationInput | Prisma.HrResourceOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for listing HrResources.
|
|
*/
|
|
cursor?: Prisma.HrResourceWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` HrResources 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` HrResources.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
*
|
|
* Filter by unique combinations of HrResources.
|
|
*/
|
|
distinct?: Prisma.HrResourceScalarFieldEnum | Prisma.HrResourceScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* HrResource create
|
|
*/
|
|
export type HrResourceCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the HrResource
|
|
*/
|
|
select?: Prisma.HrResourceSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the HrResource
|
|
*/
|
|
omit?: Prisma.HrResourceOmit<ExtArgs> | null
|
|
/**
|
|
* The data needed to create a HrResource.
|
|
*/
|
|
data: Prisma.XOR<Prisma.HrResourceCreateInput, Prisma.HrResourceUncheckedCreateInput>
|
|
}
|
|
|
|
/**
|
|
* HrResource createMany
|
|
*/
|
|
export type HrResourceCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* The data used to create many HrResources.
|
|
*/
|
|
data: Prisma.HrResourceCreateManyInput | Prisma.HrResourceCreateManyInput[]
|
|
skipDuplicates?: boolean
|
|
}
|
|
|
|
/**
|
|
* HrResource createManyAndReturn
|
|
*/
|
|
export type HrResourceCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the HrResource
|
|
*/
|
|
select?: Prisma.HrResourceSelectCreateManyAndReturn<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the HrResource
|
|
*/
|
|
omit?: Prisma.HrResourceOmit<ExtArgs> | null
|
|
/**
|
|
* The data used to create many HrResources.
|
|
*/
|
|
data: Prisma.HrResourceCreateManyInput | Prisma.HrResourceCreateManyInput[]
|
|
skipDuplicates?: boolean
|
|
}
|
|
|
|
/**
|
|
* HrResource update
|
|
*/
|
|
export type HrResourceUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the HrResource
|
|
*/
|
|
select?: Prisma.HrResourceSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the HrResource
|
|
*/
|
|
omit?: Prisma.HrResourceOmit<ExtArgs> | null
|
|
/**
|
|
* The data needed to update a HrResource.
|
|
*/
|
|
data: Prisma.XOR<Prisma.HrResourceUpdateInput, Prisma.HrResourceUncheckedUpdateInput>
|
|
/**
|
|
* Choose, which HrResource to update.
|
|
*/
|
|
where: Prisma.HrResourceWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* HrResource updateMany
|
|
*/
|
|
export type HrResourceUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* The data used to update HrResources.
|
|
*/
|
|
data: Prisma.XOR<Prisma.HrResourceUpdateManyMutationInput, Prisma.HrResourceUncheckedUpdateManyInput>
|
|
/**
|
|
* Filter which HrResources to update
|
|
*/
|
|
where?: Prisma.HrResourceWhereInput
|
|
/**
|
|
* Limit how many HrResources to update.
|
|
*/
|
|
limit?: number
|
|
}
|
|
|
|
/**
|
|
* HrResource updateManyAndReturn
|
|
*/
|
|
export type HrResourceUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the HrResource
|
|
*/
|
|
select?: Prisma.HrResourceSelectUpdateManyAndReturn<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the HrResource
|
|
*/
|
|
omit?: Prisma.HrResourceOmit<ExtArgs> | null
|
|
/**
|
|
* The data used to update HrResources.
|
|
*/
|
|
data: Prisma.XOR<Prisma.HrResourceUpdateManyMutationInput, Prisma.HrResourceUncheckedUpdateManyInput>
|
|
/**
|
|
* Filter which HrResources to update
|
|
*/
|
|
where?: Prisma.HrResourceWhereInput
|
|
/**
|
|
* Limit how many HrResources to update.
|
|
*/
|
|
limit?: number
|
|
}
|
|
|
|
/**
|
|
* HrResource upsert
|
|
*/
|
|
export type HrResourceUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the HrResource
|
|
*/
|
|
select?: Prisma.HrResourceSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the HrResource
|
|
*/
|
|
omit?: Prisma.HrResourceOmit<ExtArgs> | null
|
|
/**
|
|
* The filter to search for the HrResource to update in case it exists.
|
|
*/
|
|
where: Prisma.HrResourceWhereUniqueInput
|
|
/**
|
|
* In case the HrResource found by the `where` argument doesn't exist, create a new HrResource with this data.
|
|
*/
|
|
create: Prisma.XOR<Prisma.HrResourceCreateInput, Prisma.HrResourceUncheckedCreateInput>
|
|
/**
|
|
* In case the HrResource was found with the provided `where` argument, update it with this data.
|
|
*/
|
|
update: Prisma.XOR<Prisma.HrResourceUpdateInput, Prisma.HrResourceUncheckedUpdateInput>
|
|
}
|
|
|
|
/**
|
|
* HrResource delete
|
|
*/
|
|
export type HrResourceDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the HrResource
|
|
*/
|
|
select?: Prisma.HrResourceSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the HrResource
|
|
*/
|
|
omit?: Prisma.HrResourceOmit<ExtArgs> | null
|
|
/**
|
|
* Filter which HrResource to delete.
|
|
*/
|
|
where: Prisma.HrResourceWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* HrResource deleteMany
|
|
*/
|
|
export type HrResourceDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Filter which HrResources to delete
|
|
*/
|
|
where?: Prisma.HrResourceWhereInput
|
|
/**
|
|
* Limit how many HrResources to delete.
|
|
*/
|
|
limit?: number
|
|
}
|
|
|
|
/**
|
|
* HrResource without action
|
|
*/
|
|
export type HrResourceDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the HrResource
|
|
*/
|
|
select?: Prisma.HrResourceSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the HrResource
|
|
*/
|
|
omit?: Prisma.HrResourceOmit<ExtArgs> | null
|
|
}
|