/* !!! 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:"); fine-grained targeting is follow-up. */ export type HrResourceModel = runtime.Types.Result.DefaultSelection 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 = { /** * 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 = { [P in keyof T & keyof AggregateHrResource]: P extends '_count' | 'count' ? T[P] extends true ? number : Prisma.GetScalarType : Prisma.GetScalarType } export type HrResourceGroupByArgs = { 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 = Prisma.PrismaPromise< Array< Prisma.PickEnumerable & { [P in ((keyof T) & (keyof HrResourceGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : Prisma.GetScalarType : Prisma.GetScalarType } > > 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 = 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 = 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 = 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 = runtime.Types.Extensions.GetOmit<"id" | "createdAt" | "updatedAt" | "tenantId" | "title" | "kind" | "url" | "fileId" | "category" | "audience" | "sortOrder" | "isDemoData" | "archivedAt", ExtArgs["result"]["hrResource"]> export type $HrResourcePayload = { 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 = runtime.Types.Result.GetResult export type HrResourceCountArgs = Omit & { select?: HrResourceCountAggregateInputType | true } export interface HrResourceDelegate { [K: symbol]: { types: Prisma.TypeMap['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(args: Prisma.SelectSubset>): Prisma.Prisma__HrResourceClient, 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(args: Prisma.SelectSubset>): Prisma.Prisma__HrResourceClient, 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(args?: Prisma.SelectSubset>): Prisma.Prisma__HrResourceClient, 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(args?: Prisma.SelectSubset>): Prisma.Prisma__HrResourceClient, 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(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, 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(args: Prisma.SelectSubset>): Prisma.Prisma__HrResourceClient, 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(args?: Prisma.SelectSubset>): Prisma.PrismaPromise /** * 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(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, 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(args: Prisma.SelectSubset>): Prisma.Prisma__HrResourceClient, 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(args: Prisma.SelectSubset>): Prisma.Prisma__HrResourceClient, 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(args?: Prisma.SelectSubset>): Prisma.PrismaPromise /** * 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(args: Prisma.SelectSubset>): Prisma.PrismaPromise /** * 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(args: Prisma.SelectSubset>): Prisma.PrismaPromise, 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(args: Prisma.SelectSubset>): Prisma.Prisma__HrResourceClient, 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( args?: Prisma.Subset, ): Prisma.PrismaPromise< T extends runtime.Types.Utils.Record<'select', any> ? T['select'] extends true ? number : Prisma.GetScalarType : 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(args: Prisma.Subset): Prisma.PrismaPromise> /** * 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>, Prisma.Extends<'take', Prisma.Keys> >, OrderByArg extends Prisma.True extends HasSelectOrTake ? { orderBy: HrResourceGroupByArgs['orderBy'] } : { orderBy?: HrResourceGroupByArgs['orderBy'] }, OrderFields extends Prisma.ExcludeUnderscoreKeys>>, ByFields extends Prisma.MaybeTupleToUnion, ByValid extends Prisma.Has, HavingFields extends Prisma.GetHavingFields, HavingValid extends Prisma.Has, 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 ? 'orderBy' extends Prisma.Keys ? 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 ? 'orderBy' extends Prisma.Keys ? 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 & InputErrors): {} extends InputErrors ? GetHrResourceGroupByPayload : Prisma.PrismaPromise /** * 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 extends Prisma.PrismaPromise { 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(onfulfilled?: ((value: T) => TResult1 | PromiseLike) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike) | undefined | null): runtime.Types.Utils.JsPromise /** * 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(onrejected?: ((reason: any) => TResult | PromiseLike) | undefined | null): runtime.Types.Utils.JsPromise /** * 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 } /** * 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 = { /** * Select specific fields to fetch from the HrResource */ select?: Prisma.HrResourceSelect | null /** * Omit specific fields from the HrResource */ omit?: Prisma.HrResourceOmit | null /** * Filter, which HrResource to fetch. */ where: Prisma.HrResourceWhereUniqueInput } /** * HrResource findUniqueOrThrow */ export type HrResourceFindUniqueOrThrowArgs = { /** * Select specific fields to fetch from the HrResource */ select?: Prisma.HrResourceSelect | null /** * Omit specific fields from the HrResource */ omit?: Prisma.HrResourceOmit | null /** * Filter, which HrResource to fetch. */ where: Prisma.HrResourceWhereUniqueInput } /** * HrResource findFirst */ export type HrResourceFindFirstArgs = { /** * Select specific fields to fetch from the HrResource */ select?: Prisma.HrResourceSelect | null /** * Omit specific fields from the HrResource */ omit?: Prisma.HrResourceOmit | 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 = { /** * Select specific fields to fetch from the HrResource */ select?: Prisma.HrResourceSelect | null /** * Omit specific fields from the HrResource */ omit?: Prisma.HrResourceOmit | 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 = { /** * Select specific fields to fetch from the HrResource */ select?: Prisma.HrResourceSelect | null /** * Omit specific fields from the HrResource */ omit?: Prisma.HrResourceOmit | 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 = { /** * Select specific fields to fetch from the HrResource */ select?: Prisma.HrResourceSelect | null /** * Omit specific fields from the HrResource */ omit?: Prisma.HrResourceOmit | null /** * The data needed to create a HrResource. */ data: Prisma.XOR } /** * HrResource createMany */ export type HrResourceCreateManyArgs = { /** * The data used to create many HrResources. */ data: Prisma.HrResourceCreateManyInput | Prisma.HrResourceCreateManyInput[] skipDuplicates?: boolean } /** * HrResource createManyAndReturn */ export type HrResourceCreateManyAndReturnArgs = { /** * Select specific fields to fetch from the HrResource */ select?: Prisma.HrResourceSelectCreateManyAndReturn | null /** * Omit specific fields from the HrResource */ omit?: Prisma.HrResourceOmit | null /** * The data used to create many HrResources. */ data: Prisma.HrResourceCreateManyInput | Prisma.HrResourceCreateManyInput[] skipDuplicates?: boolean } /** * HrResource update */ export type HrResourceUpdateArgs = { /** * Select specific fields to fetch from the HrResource */ select?: Prisma.HrResourceSelect | null /** * Omit specific fields from the HrResource */ omit?: Prisma.HrResourceOmit | null /** * The data needed to update a HrResource. */ data: Prisma.XOR /** * Choose, which HrResource to update. */ where: Prisma.HrResourceWhereUniqueInput } /** * HrResource updateMany */ export type HrResourceUpdateManyArgs = { /** * The data used to update HrResources. */ data: Prisma.XOR /** * Filter which HrResources to update */ where?: Prisma.HrResourceWhereInput /** * Limit how many HrResources to update. */ limit?: number } /** * HrResource updateManyAndReturn */ export type HrResourceUpdateManyAndReturnArgs = { /** * Select specific fields to fetch from the HrResource */ select?: Prisma.HrResourceSelectUpdateManyAndReturn | null /** * Omit specific fields from the HrResource */ omit?: Prisma.HrResourceOmit | null /** * The data used to update HrResources. */ data: Prisma.XOR /** * Filter which HrResources to update */ where?: Prisma.HrResourceWhereInput /** * Limit how many HrResources to update. */ limit?: number } /** * HrResource upsert */ export type HrResourceUpsertArgs = { /** * Select specific fields to fetch from the HrResource */ select?: Prisma.HrResourceSelect | null /** * Omit specific fields from the HrResource */ omit?: Prisma.HrResourceOmit | 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 /** * In case the HrResource was found with the provided `where` argument, update it with this data. */ update: Prisma.XOR } /** * HrResource delete */ export type HrResourceDeleteArgs = { /** * Select specific fields to fetch from the HrResource */ select?: Prisma.HrResourceSelect | null /** * Omit specific fields from the HrResource */ omit?: Prisma.HrResourceOmit | null /** * Filter which HrResource to delete. */ where: Prisma.HrResourceWhereUniqueInput } /** * HrResource deleteMany */ export type HrResourceDeleteManyArgs = { /** * Filter which HrResources to delete */ where?: Prisma.HrResourceWhereInput /** * Limit how many HrResources to delete. */ limit?: number } /** * HrResource without action */ export type HrResourceDefaultArgs = { /** * Select specific fields to fetch from the HrResource */ select?: Prisma.HrResourceSelect | null /** * Omit specific fields from the HrResource */ omit?: Prisma.HrResourceOmit | null }