/* !!! This is code generated by Prisma. Do not edit directly. !!! */ /* eslint-disable */ // biome-ignore-all lint: generated file // @ts-nocheck /* * This file exports the `HrEmployeeProfile` 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 HrEmployeeProfile * Per-tenant employee master record (1:1 with a global User). Self-maintainable * fields (e.g. position display, team) are edited by the employee; HR-managed * fields by HR admins (enforced in the service layer). The emergency contact is * sensitive and stored ENVELOPE-ENCRYPTED (`emergencyContactCiphertext`, holds * the name/phone/relation triple as encrypted JSON) — never returned without an * explicit, permission-checked reveal. */ export type HrEmployeeProfileModel = runtime.Types.Result.DefaultSelection export type AggregateHrEmployeeProfile = { _count: HrEmployeeProfileCountAggregateOutputType | null _min: HrEmployeeProfileMinAggregateOutputType | null _max: HrEmployeeProfileMaxAggregateOutputType | null } export type HrEmployeeProfileMinAggregateOutputType = { id: string | null createdAt: Date | null updatedAt: Date | null tenantId: string | null userId: string | null personalNumber: string | null hireDate: Date | null position: string | null team: string | null locationId: string | null managerUserId: string | null emergencyContactCiphertext: string | null isDemoData: boolean | null } export type HrEmployeeProfileMaxAggregateOutputType = { id: string | null createdAt: Date | null updatedAt: Date | null tenantId: string | null userId: string | null personalNumber: string | null hireDate: Date | null position: string | null team: string | null locationId: string | null managerUserId: string | null emergencyContactCiphertext: string | null isDemoData: boolean | null } export type HrEmployeeProfileCountAggregateOutputType = { id: number createdAt: number updatedAt: number tenantId: number userId: number personalNumber: number hireDate: number position: number team: number locationId: number managerUserId: number emergencyContactCiphertext: number isDemoData: number _all: number } export type HrEmployeeProfileMinAggregateInputType = { id?: true createdAt?: true updatedAt?: true tenantId?: true userId?: true personalNumber?: true hireDate?: true position?: true team?: true locationId?: true managerUserId?: true emergencyContactCiphertext?: true isDemoData?: true } export type HrEmployeeProfileMaxAggregateInputType = { id?: true createdAt?: true updatedAt?: true tenantId?: true userId?: true personalNumber?: true hireDate?: true position?: true team?: true locationId?: true managerUserId?: true emergencyContactCiphertext?: true isDemoData?: true } export type HrEmployeeProfileCountAggregateInputType = { id?: true createdAt?: true updatedAt?: true tenantId?: true userId?: true personalNumber?: true hireDate?: true position?: true team?: true locationId?: true managerUserId?: true emergencyContactCiphertext?: true isDemoData?: true _all?: true } export type HrEmployeeProfileAggregateArgs = { /** * Filter which HrEmployeeProfile to aggregate. */ where?: Prisma.HrEmployeeProfileWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of HrEmployeeProfiles to fetch. */ orderBy?: Prisma.HrEmployeeProfileOrderByWithRelationInput | Prisma.HrEmployeeProfileOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the start position */ cursor?: Prisma.HrEmployeeProfileWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` HrEmployeeProfiles 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` HrEmployeeProfiles. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Count returned HrEmployeeProfiles **/ _count?: true | HrEmployeeProfileCountAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the minimum value **/ _min?: HrEmployeeProfileMinAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the maximum value **/ _max?: HrEmployeeProfileMaxAggregateInputType } export type GetHrEmployeeProfileAggregateType = { [P in keyof T & keyof AggregateHrEmployeeProfile]: P extends '_count' | 'count' ? T[P] extends true ? number : Prisma.GetScalarType : Prisma.GetScalarType } export type HrEmployeeProfileGroupByArgs = { where?: Prisma.HrEmployeeProfileWhereInput orderBy?: Prisma.HrEmployeeProfileOrderByWithAggregationInput | Prisma.HrEmployeeProfileOrderByWithAggregationInput[] by: Prisma.HrEmployeeProfileScalarFieldEnum[] | Prisma.HrEmployeeProfileScalarFieldEnum having?: Prisma.HrEmployeeProfileScalarWhereWithAggregatesInput take?: number skip?: number _count?: HrEmployeeProfileCountAggregateInputType | true _min?: HrEmployeeProfileMinAggregateInputType _max?: HrEmployeeProfileMaxAggregateInputType } export type HrEmployeeProfileGroupByOutputType = { id: string createdAt: Date updatedAt: Date tenantId: string userId: string personalNumber: string | null hireDate: Date | null position: string | null team: string | null locationId: string | null managerUserId: string | null emergencyContactCiphertext: string | null isDemoData: boolean _count: HrEmployeeProfileCountAggregateOutputType | null _min: HrEmployeeProfileMinAggregateOutputType | null _max: HrEmployeeProfileMaxAggregateOutputType | null } export type GetHrEmployeeProfileGroupByPayload = Prisma.PrismaPromise< Array< Prisma.PickEnumerable & { [P in ((keyof T) & (keyof HrEmployeeProfileGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : Prisma.GetScalarType : Prisma.GetScalarType } > > export type HrEmployeeProfileWhereInput = { AND?: Prisma.HrEmployeeProfileWhereInput | Prisma.HrEmployeeProfileWhereInput[] OR?: Prisma.HrEmployeeProfileWhereInput[] NOT?: Prisma.HrEmployeeProfileWhereInput | Prisma.HrEmployeeProfileWhereInput[] id?: Prisma.StringFilter<"HrEmployeeProfile"> | string createdAt?: Prisma.DateTimeFilter<"HrEmployeeProfile"> | Date | string updatedAt?: Prisma.DateTimeFilter<"HrEmployeeProfile"> | Date | string tenantId?: Prisma.StringFilter<"HrEmployeeProfile"> | string userId?: Prisma.StringFilter<"HrEmployeeProfile"> | string personalNumber?: Prisma.StringNullableFilter<"HrEmployeeProfile"> | string | null hireDate?: Prisma.DateTimeNullableFilter<"HrEmployeeProfile"> | Date | string | null position?: Prisma.StringNullableFilter<"HrEmployeeProfile"> | string | null team?: Prisma.StringNullableFilter<"HrEmployeeProfile"> | string | null locationId?: Prisma.StringNullableFilter<"HrEmployeeProfile"> | string | null managerUserId?: Prisma.StringNullableFilter<"HrEmployeeProfile"> | string | null emergencyContactCiphertext?: Prisma.StringNullableFilter<"HrEmployeeProfile"> | string | null isDemoData?: Prisma.BoolFilter<"HrEmployeeProfile"> | boolean } export type HrEmployeeProfileOrderByWithRelationInput = { id?: Prisma.SortOrder createdAt?: Prisma.SortOrder updatedAt?: Prisma.SortOrder tenantId?: Prisma.SortOrder userId?: Prisma.SortOrder personalNumber?: Prisma.SortOrderInput | Prisma.SortOrder hireDate?: Prisma.SortOrderInput | Prisma.SortOrder position?: Prisma.SortOrderInput | Prisma.SortOrder team?: Prisma.SortOrderInput | Prisma.SortOrder locationId?: Prisma.SortOrderInput | Prisma.SortOrder managerUserId?: Prisma.SortOrderInput | Prisma.SortOrder emergencyContactCiphertext?: Prisma.SortOrderInput | Prisma.SortOrder isDemoData?: Prisma.SortOrder } export type HrEmployeeProfileWhereUniqueInput = Prisma.AtLeast<{ id?: string tenantId_userId?: Prisma.HrEmployeeProfileTenantIdUserIdCompoundUniqueInput AND?: Prisma.HrEmployeeProfileWhereInput | Prisma.HrEmployeeProfileWhereInput[] OR?: Prisma.HrEmployeeProfileWhereInput[] NOT?: Prisma.HrEmployeeProfileWhereInput | Prisma.HrEmployeeProfileWhereInput[] createdAt?: Prisma.DateTimeFilter<"HrEmployeeProfile"> | Date | string updatedAt?: Prisma.DateTimeFilter<"HrEmployeeProfile"> | Date | string tenantId?: Prisma.StringFilter<"HrEmployeeProfile"> | string userId?: Prisma.StringFilter<"HrEmployeeProfile"> | string personalNumber?: Prisma.StringNullableFilter<"HrEmployeeProfile"> | string | null hireDate?: Prisma.DateTimeNullableFilter<"HrEmployeeProfile"> | Date | string | null position?: Prisma.StringNullableFilter<"HrEmployeeProfile"> | string | null team?: Prisma.StringNullableFilter<"HrEmployeeProfile"> | string | null locationId?: Prisma.StringNullableFilter<"HrEmployeeProfile"> | string | null managerUserId?: Prisma.StringNullableFilter<"HrEmployeeProfile"> | string | null emergencyContactCiphertext?: Prisma.StringNullableFilter<"HrEmployeeProfile"> | string | null isDemoData?: Prisma.BoolFilter<"HrEmployeeProfile"> | boolean }, "id" | "tenantId_userId"> export type HrEmployeeProfileOrderByWithAggregationInput = { id?: Prisma.SortOrder createdAt?: Prisma.SortOrder updatedAt?: Prisma.SortOrder tenantId?: Prisma.SortOrder userId?: Prisma.SortOrder personalNumber?: Prisma.SortOrderInput | Prisma.SortOrder hireDate?: Prisma.SortOrderInput | Prisma.SortOrder position?: Prisma.SortOrderInput | Prisma.SortOrder team?: Prisma.SortOrderInput | Prisma.SortOrder locationId?: Prisma.SortOrderInput | Prisma.SortOrder managerUserId?: Prisma.SortOrderInput | Prisma.SortOrder emergencyContactCiphertext?: Prisma.SortOrderInput | Prisma.SortOrder isDemoData?: Prisma.SortOrder _count?: Prisma.HrEmployeeProfileCountOrderByAggregateInput _max?: Prisma.HrEmployeeProfileMaxOrderByAggregateInput _min?: Prisma.HrEmployeeProfileMinOrderByAggregateInput } export type HrEmployeeProfileScalarWhereWithAggregatesInput = { AND?: Prisma.HrEmployeeProfileScalarWhereWithAggregatesInput | Prisma.HrEmployeeProfileScalarWhereWithAggregatesInput[] OR?: Prisma.HrEmployeeProfileScalarWhereWithAggregatesInput[] NOT?: Prisma.HrEmployeeProfileScalarWhereWithAggregatesInput | Prisma.HrEmployeeProfileScalarWhereWithAggregatesInput[] id?: Prisma.StringWithAggregatesFilter<"HrEmployeeProfile"> | string createdAt?: Prisma.DateTimeWithAggregatesFilter<"HrEmployeeProfile"> | Date | string updatedAt?: Prisma.DateTimeWithAggregatesFilter<"HrEmployeeProfile"> | Date | string tenantId?: Prisma.StringWithAggregatesFilter<"HrEmployeeProfile"> | string userId?: Prisma.StringWithAggregatesFilter<"HrEmployeeProfile"> | string personalNumber?: Prisma.StringNullableWithAggregatesFilter<"HrEmployeeProfile"> | string | null hireDate?: Prisma.DateTimeNullableWithAggregatesFilter<"HrEmployeeProfile"> | Date | string | null position?: Prisma.StringNullableWithAggregatesFilter<"HrEmployeeProfile"> | string | null team?: Prisma.StringNullableWithAggregatesFilter<"HrEmployeeProfile"> | string | null locationId?: Prisma.StringNullableWithAggregatesFilter<"HrEmployeeProfile"> | string | null managerUserId?: Prisma.StringNullableWithAggregatesFilter<"HrEmployeeProfile"> | string | null emergencyContactCiphertext?: Prisma.StringNullableWithAggregatesFilter<"HrEmployeeProfile"> | string | null isDemoData?: Prisma.BoolWithAggregatesFilter<"HrEmployeeProfile"> | boolean } export type HrEmployeeProfileCreateInput = { id?: string createdAt?: Date | string updatedAt?: Date | string tenantId: string userId: string personalNumber?: string | null hireDate?: Date | string | null position?: string | null team?: string | null locationId?: string | null managerUserId?: string | null emergencyContactCiphertext?: string | null isDemoData?: boolean } export type HrEmployeeProfileUncheckedCreateInput = { id?: string createdAt?: Date | string updatedAt?: Date | string tenantId: string userId: string personalNumber?: string | null hireDate?: Date | string | null position?: string | null team?: string | null locationId?: string | null managerUserId?: string | null emergencyContactCiphertext?: string | null isDemoData?: boolean } export type HrEmployeeProfileUpdateInput = { id?: Prisma.StringFieldUpdateOperationsInput | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string tenantId?: Prisma.StringFieldUpdateOperationsInput | string userId?: Prisma.StringFieldUpdateOperationsInput | string personalNumber?: Prisma.NullableStringFieldUpdateOperationsInput | string | null hireDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null position?: Prisma.NullableStringFieldUpdateOperationsInput | string | null team?: Prisma.NullableStringFieldUpdateOperationsInput | string | null locationId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null managerUserId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null emergencyContactCiphertext?: Prisma.NullableStringFieldUpdateOperationsInput | string | null isDemoData?: Prisma.BoolFieldUpdateOperationsInput | boolean } export type HrEmployeeProfileUncheckedUpdateInput = { id?: Prisma.StringFieldUpdateOperationsInput | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string tenantId?: Prisma.StringFieldUpdateOperationsInput | string userId?: Prisma.StringFieldUpdateOperationsInput | string personalNumber?: Prisma.NullableStringFieldUpdateOperationsInput | string | null hireDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null position?: Prisma.NullableStringFieldUpdateOperationsInput | string | null team?: Prisma.NullableStringFieldUpdateOperationsInput | string | null locationId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null managerUserId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null emergencyContactCiphertext?: Prisma.NullableStringFieldUpdateOperationsInput | string | null isDemoData?: Prisma.BoolFieldUpdateOperationsInput | boolean } export type HrEmployeeProfileCreateManyInput = { id?: string createdAt?: Date | string updatedAt?: Date | string tenantId: string userId: string personalNumber?: string | null hireDate?: Date | string | null position?: string | null team?: string | null locationId?: string | null managerUserId?: string | null emergencyContactCiphertext?: string | null isDemoData?: boolean } export type HrEmployeeProfileUpdateManyMutationInput = { id?: Prisma.StringFieldUpdateOperationsInput | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string tenantId?: Prisma.StringFieldUpdateOperationsInput | string userId?: Prisma.StringFieldUpdateOperationsInput | string personalNumber?: Prisma.NullableStringFieldUpdateOperationsInput | string | null hireDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null position?: Prisma.NullableStringFieldUpdateOperationsInput | string | null team?: Prisma.NullableStringFieldUpdateOperationsInput | string | null locationId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null managerUserId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null emergencyContactCiphertext?: Prisma.NullableStringFieldUpdateOperationsInput | string | null isDemoData?: Prisma.BoolFieldUpdateOperationsInput | boolean } export type HrEmployeeProfileUncheckedUpdateManyInput = { id?: Prisma.StringFieldUpdateOperationsInput | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string tenantId?: Prisma.StringFieldUpdateOperationsInput | string userId?: Prisma.StringFieldUpdateOperationsInput | string personalNumber?: Prisma.NullableStringFieldUpdateOperationsInput | string | null hireDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null position?: Prisma.NullableStringFieldUpdateOperationsInput | string | null team?: Prisma.NullableStringFieldUpdateOperationsInput | string | null locationId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null managerUserId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null emergencyContactCiphertext?: Prisma.NullableStringFieldUpdateOperationsInput | string | null isDemoData?: Prisma.BoolFieldUpdateOperationsInput | boolean } export type HrEmployeeProfileTenantIdUserIdCompoundUniqueInput = { tenantId: string userId: string } export type HrEmployeeProfileCountOrderByAggregateInput = { id?: Prisma.SortOrder createdAt?: Prisma.SortOrder updatedAt?: Prisma.SortOrder tenantId?: Prisma.SortOrder userId?: Prisma.SortOrder personalNumber?: Prisma.SortOrder hireDate?: Prisma.SortOrder position?: Prisma.SortOrder team?: Prisma.SortOrder locationId?: Prisma.SortOrder managerUserId?: Prisma.SortOrder emergencyContactCiphertext?: Prisma.SortOrder isDemoData?: Prisma.SortOrder } export type HrEmployeeProfileMaxOrderByAggregateInput = { id?: Prisma.SortOrder createdAt?: Prisma.SortOrder updatedAt?: Prisma.SortOrder tenantId?: Prisma.SortOrder userId?: Prisma.SortOrder personalNumber?: Prisma.SortOrder hireDate?: Prisma.SortOrder position?: Prisma.SortOrder team?: Prisma.SortOrder locationId?: Prisma.SortOrder managerUserId?: Prisma.SortOrder emergencyContactCiphertext?: Prisma.SortOrder isDemoData?: Prisma.SortOrder } export type HrEmployeeProfileMinOrderByAggregateInput = { id?: Prisma.SortOrder createdAt?: Prisma.SortOrder updatedAt?: Prisma.SortOrder tenantId?: Prisma.SortOrder userId?: Prisma.SortOrder personalNumber?: Prisma.SortOrder hireDate?: Prisma.SortOrder position?: Prisma.SortOrder team?: Prisma.SortOrder locationId?: Prisma.SortOrder managerUserId?: Prisma.SortOrder emergencyContactCiphertext?: Prisma.SortOrder isDemoData?: Prisma.SortOrder } export type HrEmployeeProfileSelect = runtime.Types.Extensions.GetSelect<{ id?: boolean createdAt?: boolean updatedAt?: boolean tenantId?: boolean userId?: boolean personalNumber?: boolean hireDate?: boolean position?: boolean team?: boolean locationId?: boolean managerUserId?: boolean emergencyContactCiphertext?: boolean isDemoData?: boolean }, ExtArgs["result"]["hrEmployeeProfile"]> export type HrEmployeeProfileSelectCreateManyAndReturn = runtime.Types.Extensions.GetSelect<{ id?: boolean createdAt?: boolean updatedAt?: boolean tenantId?: boolean userId?: boolean personalNumber?: boolean hireDate?: boolean position?: boolean team?: boolean locationId?: boolean managerUserId?: boolean emergencyContactCiphertext?: boolean isDemoData?: boolean }, ExtArgs["result"]["hrEmployeeProfile"]> export type HrEmployeeProfileSelectUpdateManyAndReturn = runtime.Types.Extensions.GetSelect<{ id?: boolean createdAt?: boolean updatedAt?: boolean tenantId?: boolean userId?: boolean personalNumber?: boolean hireDate?: boolean position?: boolean team?: boolean locationId?: boolean managerUserId?: boolean emergencyContactCiphertext?: boolean isDemoData?: boolean }, ExtArgs["result"]["hrEmployeeProfile"]> export type HrEmployeeProfileSelectScalar = { id?: boolean createdAt?: boolean updatedAt?: boolean tenantId?: boolean userId?: boolean personalNumber?: boolean hireDate?: boolean position?: boolean team?: boolean locationId?: boolean managerUserId?: boolean emergencyContactCiphertext?: boolean isDemoData?: boolean } export type HrEmployeeProfileOmit = runtime.Types.Extensions.GetOmit<"id" | "createdAt" | "updatedAt" | "tenantId" | "userId" | "personalNumber" | "hireDate" | "position" | "team" | "locationId" | "managerUserId" | "emergencyContactCiphertext" | "isDemoData", ExtArgs["result"]["hrEmployeeProfile"]> export type $HrEmployeeProfilePayload = { name: "HrEmployeeProfile" objects: {} scalars: runtime.Types.Extensions.GetPayloadResult<{ id: string createdAt: Date updatedAt: Date tenantId: string userId: string personalNumber: string | null hireDate: Date | null position: string | null team: string | null locationId: string | null managerUserId: string | null emergencyContactCiphertext: string | null isDemoData: boolean }, ExtArgs["result"]["hrEmployeeProfile"]> composites: {} } export type HrEmployeeProfileGetPayload = runtime.Types.Result.GetResult export type HrEmployeeProfileCountArgs = Omit & { select?: HrEmployeeProfileCountAggregateInputType | true } export interface HrEmployeeProfileDelegate { [K: symbol]: { types: Prisma.TypeMap['model']['HrEmployeeProfile'], meta: { name: 'HrEmployeeProfile' } } /** * Find zero or one HrEmployeeProfile that matches the filter. * @param {HrEmployeeProfileFindUniqueArgs} args - Arguments to find a HrEmployeeProfile * @example * // Get one HrEmployeeProfile * const hrEmployeeProfile = await prisma.hrEmployeeProfile.findUnique({ * where: { * // ... provide filter here * } * }) */ findUnique(args: Prisma.SelectSubset>): Prisma.Prisma__HrEmployeeProfileClient, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find one HrEmployeeProfile that matches the filter or throw an error with `error.code='P2025'` * if no matches were found. * @param {HrEmployeeProfileFindUniqueOrThrowArgs} args - Arguments to find a HrEmployeeProfile * @example * // Get one HrEmployeeProfile * const hrEmployeeProfile = await prisma.hrEmployeeProfile.findUniqueOrThrow({ * where: { * // ... provide filter here * } * }) */ findUniqueOrThrow(args: Prisma.SelectSubset>): Prisma.Prisma__HrEmployeeProfileClient, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find the first HrEmployeeProfile 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 {HrEmployeeProfileFindFirstArgs} args - Arguments to find a HrEmployeeProfile * @example * // Get one HrEmployeeProfile * const hrEmployeeProfile = await prisma.hrEmployeeProfile.findFirst({ * where: { * // ... provide filter here * } * }) */ findFirst(args?: Prisma.SelectSubset>): Prisma.Prisma__HrEmployeeProfileClient, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find the first HrEmployeeProfile 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 {HrEmployeeProfileFindFirstOrThrowArgs} args - Arguments to find a HrEmployeeProfile * @example * // Get one HrEmployeeProfile * const hrEmployeeProfile = await prisma.hrEmployeeProfile.findFirstOrThrow({ * where: { * // ... provide filter here * } * }) */ findFirstOrThrow(args?: Prisma.SelectSubset>): Prisma.Prisma__HrEmployeeProfileClient, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find zero or more HrEmployeeProfiles 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 {HrEmployeeProfileFindManyArgs} args - Arguments to filter and select certain fields only. * @example * // Get all HrEmployeeProfiles * const hrEmployeeProfiles = await prisma.hrEmployeeProfile.findMany() * * // Get first 10 HrEmployeeProfiles * const hrEmployeeProfiles = await prisma.hrEmployeeProfile.findMany({ take: 10 }) * * // Only select the `id` * const hrEmployeeProfileWithIdOnly = await prisma.hrEmployeeProfile.findMany({ select: { id: true } }) * */ findMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>> /** * Create a HrEmployeeProfile. * @param {HrEmployeeProfileCreateArgs} args - Arguments to create a HrEmployeeProfile. * @example * // Create one HrEmployeeProfile * const HrEmployeeProfile = await prisma.hrEmployeeProfile.create({ * data: { * // ... data to create a HrEmployeeProfile * } * }) * */ create(args: Prisma.SelectSubset>): Prisma.Prisma__HrEmployeeProfileClient, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Create many HrEmployeeProfiles. * @param {HrEmployeeProfileCreateManyArgs} args - Arguments to create many HrEmployeeProfiles. * @example * // Create many HrEmployeeProfiles * const hrEmployeeProfile = await prisma.hrEmployeeProfile.createMany({ * data: [ * // ... provide data here * ] * }) * */ createMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Create many HrEmployeeProfiles and returns the data saved in the database. * @param {HrEmployeeProfileCreateManyAndReturnArgs} args - Arguments to create many HrEmployeeProfiles. * @example * // Create many HrEmployeeProfiles * const hrEmployeeProfile = await prisma.hrEmployeeProfile.createManyAndReturn({ * data: [ * // ... provide data here * ] * }) * * // Create many HrEmployeeProfiles and only return the `id` * const hrEmployeeProfileWithIdOnly = await prisma.hrEmployeeProfile.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 HrEmployeeProfile. * @param {HrEmployeeProfileDeleteArgs} args - Arguments to delete one HrEmployeeProfile. * @example * // Delete one HrEmployeeProfile * const HrEmployeeProfile = await prisma.hrEmployeeProfile.delete({ * where: { * // ... filter to delete one HrEmployeeProfile * } * }) * */ delete(args: Prisma.SelectSubset>): Prisma.Prisma__HrEmployeeProfileClient, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Update one HrEmployeeProfile. * @param {HrEmployeeProfileUpdateArgs} args - Arguments to update one HrEmployeeProfile. * @example * // Update one HrEmployeeProfile * const hrEmployeeProfile = await prisma.hrEmployeeProfile.update({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ update(args: Prisma.SelectSubset>): Prisma.Prisma__HrEmployeeProfileClient, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Delete zero or more HrEmployeeProfiles. * @param {HrEmployeeProfileDeleteManyArgs} args - Arguments to filter HrEmployeeProfiles to delete. * @example * // Delete a few HrEmployeeProfiles * const { count } = await prisma.hrEmployeeProfile.deleteMany({ * where: { * // ... provide filter here * } * }) * */ deleteMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Update zero or more HrEmployeeProfiles. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {HrEmployeeProfileUpdateManyArgs} args - Arguments to update one or more rows. * @example * // Update many HrEmployeeProfiles * const hrEmployeeProfile = await prisma.hrEmployeeProfile.updateMany({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ updateMany(args: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Update zero or more HrEmployeeProfiles and returns the data updated in the database. * @param {HrEmployeeProfileUpdateManyAndReturnArgs} args - Arguments to update many HrEmployeeProfiles. * @example * // Update many HrEmployeeProfiles * const hrEmployeeProfile = await prisma.hrEmployeeProfile.updateManyAndReturn({ * where: { * // ... provide filter here * }, * data: [ * // ... provide data here * ] * }) * * // Update zero or more HrEmployeeProfiles and only return the `id` * const hrEmployeeProfileWithIdOnly = await prisma.hrEmployeeProfile.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 HrEmployeeProfile. * @param {HrEmployeeProfileUpsertArgs} args - Arguments to update or create a HrEmployeeProfile. * @example * // Update or create a HrEmployeeProfile * const hrEmployeeProfile = await prisma.hrEmployeeProfile.upsert({ * create: { * // ... data to create a HrEmployeeProfile * }, * update: { * // ... in case it already exists, update * }, * where: { * // ... the filter for the HrEmployeeProfile we want to update * } * }) */ upsert(args: Prisma.SelectSubset>): Prisma.Prisma__HrEmployeeProfileClient, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Count the number of HrEmployeeProfiles. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {HrEmployeeProfileCountArgs} args - Arguments to filter HrEmployeeProfiles to count. * @example * // Count the number of HrEmployeeProfiles * const count = await prisma.hrEmployeeProfile.count({ * where: { * // ... the filter for the HrEmployeeProfiles 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 HrEmployeeProfile. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {HrEmployeeProfileAggregateArgs} 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 HrEmployeeProfile. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {HrEmployeeProfileGroupByArgs} 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 HrEmployeeProfileGroupByArgs, HasSelectOrTake extends Prisma.Or< Prisma.Extends<'skip', Prisma.Keys>, Prisma.Extends<'take', Prisma.Keys> >, OrderByArg extends Prisma.True extends HasSelectOrTake ? { orderBy: HrEmployeeProfileGroupByArgs['orderBy'] } : { orderBy?: HrEmployeeProfileGroupByArgs['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 ? GetHrEmployeeProfileGroupByPayload : Prisma.PrismaPromise /** * Fields of the HrEmployeeProfile model */ readonly fields: HrEmployeeProfileFieldRefs; } /** * The delegate class that acts as a "Promise-like" for HrEmployeeProfile. * 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__HrEmployeeProfileClient 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 HrEmployeeProfile model */ export interface HrEmployeeProfileFieldRefs { readonly id: Prisma.FieldRef<"HrEmployeeProfile", 'String'> readonly createdAt: Prisma.FieldRef<"HrEmployeeProfile", 'DateTime'> readonly updatedAt: Prisma.FieldRef<"HrEmployeeProfile", 'DateTime'> readonly tenantId: Prisma.FieldRef<"HrEmployeeProfile", 'String'> readonly userId: Prisma.FieldRef<"HrEmployeeProfile", 'String'> readonly personalNumber: Prisma.FieldRef<"HrEmployeeProfile", 'String'> readonly hireDate: Prisma.FieldRef<"HrEmployeeProfile", 'DateTime'> readonly position: Prisma.FieldRef<"HrEmployeeProfile", 'String'> readonly team: Prisma.FieldRef<"HrEmployeeProfile", 'String'> readonly locationId: Prisma.FieldRef<"HrEmployeeProfile", 'String'> readonly managerUserId: Prisma.FieldRef<"HrEmployeeProfile", 'String'> readonly emergencyContactCiphertext: Prisma.FieldRef<"HrEmployeeProfile", 'String'> readonly isDemoData: Prisma.FieldRef<"HrEmployeeProfile", 'Boolean'> } // Custom InputTypes /** * HrEmployeeProfile findUnique */ export type HrEmployeeProfileFindUniqueArgs = { /** * Select specific fields to fetch from the HrEmployeeProfile */ select?: Prisma.HrEmployeeProfileSelect | null /** * Omit specific fields from the HrEmployeeProfile */ omit?: Prisma.HrEmployeeProfileOmit | null /** * Filter, which HrEmployeeProfile to fetch. */ where: Prisma.HrEmployeeProfileWhereUniqueInput } /** * HrEmployeeProfile findUniqueOrThrow */ export type HrEmployeeProfileFindUniqueOrThrowArgs = { /** * Select specific fields to fetch from the HrEmployeeProfile */ select?: Prisma.HrEmployeeProfileSelect | null /** * Omit specific fields from the HrEmployeeProfile */ omit?: Prisma.HrEmployeeProfileOmit | null /** * Filter, which HrEmployeeProfile to fetch. */ where: Prisma.HrEmployeeProfileWhereUniqueInput } /** * HrEmployeeProfile findFirst */ export type HrEmployeeProfileFindFirstArgs = { /** * Select specific fields to fetch from the HrEmployeeProfile */ select?: Prisma.HrEmployeeProfileSelect | null /** * Omit specific fields from the HrEmployeeProfile */ omit?: Prisma.HrEmployeeProfileOmit | null /** * Filter, which HrEmployeeProfile to fetch. */ where?: Prisma.HrEmployeeProfileWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of HrEmployeeProfiles to fetch. */ orderBy?: Prisma.HrEmployeeProfileOrderByWithRelationInput | Prisma.HrEmployeeProfileOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for HrEmployeeProfiles. */ cursor?: Prisma.HrEmployeeProfileWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` HrEmployeeProfiles 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` HrEmployeeProfiles. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of HrEmployeeProfiles. */ distinct?: Prisma.HrEmployeeProfileScalarFieldEnum | Prisma.HrEmployeeProfileScalarFieldEnum[] } /** * HrEmployeeProfile findFirstOrThrow */ export type HrEmployeeProfileFindFirstOrThrowArgs = { /** * Select specific fields to fetch from the HrEmployeeProfile */ select?: Prisma.HrEmployeeProfileSelect | null /** * Omit specific fields from the HrEmployeeProfile */ omit?: Prisma.HrEmployeeProfileOmit | null /** * Filter, which HrEmployeeProfile to fetch. */ where?: Prisma.HrEmployeeProfileWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of HrEmployeeProfiles to fetch. */ orderBy?: Prisma.HrEmployeeProfileOrderByWithRelationInput | Prisma.HrEmployeeProfileOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for HrEmployeeProfiles. */ cursor?: Prisma.HrEmployeeProfileWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` HrEmployeeProfiles 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` HrEmployeeProfiles. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of HrEmployeeProfiles. */ distinct?: Prisma.HrEmployeeProfileScalarFieldEnum | Prisma.HrEmployeeProfileScalarFieldEnum[] } /** * HrEmployeeProfile findMany */ export type HrEmployeeProfileFindManyArgs = { /** * Select specific fields to fetch from the HrEmployeeProfile */ select?: Prisma.HrEmployeeProfileSelect | null /** * Omit specific fields from the HrEmployeeProfile */ omit?: Prisma.HrEmployeeProfileOmit | null /** * Filter, which HrEmployeeProfiles to fetch. */ where?: Prisma.HrEmployeeProfileWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of HrEmployeeProfiles to fetch. */ orderBy?: Prisma.HrEmployeeProfileOrderByWithRelationInput | Prisma.HrEmployeeProfileOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for listing HrEmployeeProfiles. */ cursor?: Prisma.HrEmployeeProfileWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` HrEmployeeProfiles 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` HrEmployeeProfiles. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of HrEmployeeProfiles. */ distinct?: Prisma.HrEmployeeProfileScalarFieldEnum | Prisma.HrEmployeeProfileScalarFieldEnum[] } /** * HrEmployeeProfile create */ export type HrEmployeeProfileCreateArgs = { /** * Select specific fields to fetch from the HrEmployeeProfile */ select?: Prisma.HrEmployeeProfileSelect | null /** * Omit specific fields from the HrEmployeeProfile */ omit?: Prisma.HrEmployeeProfileOmit | null /** * The data needed to create a HrEmployeeProfile. */ data: Prisma.XOR } /** * HrEmployeeProfile createMany */ export type HrEmployeeProfileCreateManyArgs = { /** * The data used to create many HrEmployeeProfiles. */ data: Prisma.HrEmployeeProfileCreateManyInput | Prisma.HrEmployeeProfileCreateManyInput[] skipDuplicates?: boolean } /** * HrEmployeeProfile createManyAndReturn */ export type HrEmployeeProfileCreateManyAndReturnArgs = { /** * Select specific fields to fetch from the HrEmployeeProfile */ select?: Prisma.HrEmployeeProfileSelectCreateManyAndReturn | null /** * Omit specific fields from the HrEmployeeProfile */ omit?: Prisma.HrEmployeeProfileOmit | null /** * The data used to create many HrEmployeeProfiles. */ data: Prisma.HrEmployeeProfileCreateManyInput | Prisma.HrEmployeeProfileCreateManyInput[] skipDuplicates?: boolean } /** * HrEmployeeProfile update */ export type HrEmployeeProfileUpdateArgs = { /** * Select specific fields to fetch from the HrEmployeeProfile */ select?: Prisma.HrEmployeeProfileSelect | null /** * Omit specific fields from the HrEmployeeProfile */ omit?: Prisma.HrEmployeeProfileOmit | null /** * The data needed to update a HrEmployeeProfile. */ data: Prisma.XOR /** * Choose, which HrEmployeeProfile to update. */ where: Prisma.HrEmployeeProfileWhereUniqueInput } /** * HrEmployeeProfile updateMany */ export type HrEmployeeProfileUpdateManyArgs = { /** * The data used to update HrEmployeeProfiles. */ data: Prisma.XOR /** * Filter which HrEmployeeProfiles to update */ where?: Prisma.HrEmployeeProfileWhereInput /** * Limit how many HrEmployeeProfiles to update. */ limit?: number } /** * HrEmployeeProfile updateManyAndReturn */ export type HrEmployeeProfileUpdateManyAndReturnArgs = { /** * Select specific fields to fetch from the HrEmployeeProfile */ select?: Prisma.HrEmployeeProfileSelectUpdateManyAndReturn | null /** * Omit specific fields from the HrEmployeeProfile */ omit?: Prisma.HrEmployeeProfileOmit | null /** * The data used to update HrEmployeeProfiles. */ data: Prisma.XOR /** * Filter which HrEmployeeProfiles to update */ where?: Prisma.HrEmployeeProfileWhereInput /** * Limit how many HrEmployeeProfiles to update. */ limit?: number } /** * HrEmployeeProfile upsert */ export type HrEmployeeProfileUpsertArgs = { /** * Select specific fields to fetch from the HrEmployeeProfile */ select?: Prisma.HrEmployeeProfileSelect | null /** * Omit specific fields from the HrEmployeeProfile */ omit?: Prisma.HrEmployeeProfileOmit | null /** * The filter to search for the HrEmployeeProfile to update in case it exists. */ where: Prisma.HrEmployeeProfileWhereUniqueInput /** * In case the HrEmployeeProfile found by the `where` argument doesn't exist, create a new HrEmployeeProfile with this data. */ create: Prisma.XOR /** * In case the HrEmployeeProfile was found with the provided `where` argument, update it with this data. */ update: Prisma.XOR } /** * HrEmployeeProfile delete */ export type HrEmployeeProfileDeleteArgs = { /** * Select specific fields to fetch from the HrEmployeeProfile */ select?: Prisma.HrEmployeeProfileSelect | null /** * Omit specific fields from the HrEmployeeProfile */ omit?: Prisma.HrEmployeeProfileOmit | null /** * Filter which HrEmployeeProfile to delete. */ where: Prisma.HrEmployeeProfileWhereUniqueInput } /** * HrEmployeeProfile deleteMany */ export type HrEmployeeProfileDeleteManyArgs = { /** * Filter which HrEmployeeProfiles to delete */ where?: Prisma.HrEmployeeProfileWhereInput /** * Limit how many HrEmployeeProfiles to delete. */ limit?: number } /** * HrEmployeeProfile without action */ export type HrEmployeeProfileDefaultArgs = { /** * Select specific fields to fetch from the HrEmployeeProfile */ select?: Prisma.HrEmployeeProfileSelect | null /** * Omit specific fields from the HrEmployeeProfile */ omit?: Prisma.HrEmployeeProfileOmit | null }