1574 lines
56 KiB
TypeScript
1574 lines
56 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 `HrLocation` 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 HrLocation
|
|
* A physical company location, scoped per tenant. Soft-delete via `archivedAt`.
|
|
* Exactly one location may be the tenant default (`isDefault`); enforced in the
|
|
* service layer (set-default clears the previous default).
|
|
*/
|
|
export type HrLocationModel = runtime.Types.Result.DefaultSelection<Prisma.$HrLocationPayload>
|
|
|
|
export type AggregateHrLocation = {
|
|
_count: HrLocationCountAggregateOutputType | null
|
|
_avg: HrLocationAvgAggregateOutputType | null
|
|
_sum: HrLocationSumAggregateOutputType | null
|
|
_min: HrLocationMinAggregateOutputType | null
|
|
_max: HrLocationMaxAggregateOutputType | null
|
|
}
|
|
|
|
export type HrLocationAvgAggregateOutputType = {
|
|
latitude: number | null
|
|
longitude: number | null
|
|
}
|
|
|
|
export type HrLocationSumAggregateOutputType = {
|
|
latitude: number | null
|
|
longitude: number | null
|
|
}
|
|
|
|
export type HrLocationMinAggregateOutputType = {
|
|
id: string | null
|
|
createdAt: Date | null
|
|
updatedAt: Date | null
|
|
tenantId: string | null
|
|
name: string | null
|
|
addressLine1: string | null
|
|
addressLine2: string | null
|
|
postalCode: string | null
|
|
city: string | null
|
|
country: string | null
|
|
phone: string | null
|
|
latitude: number | null
|
|
longitude: number | null
|
|
imageFileId: string | null
|
|
description: string | null
|
|
isDefault: boolean | null
|
|
isDemoData: boolean | null
|
|
archivedAt: Date | null
|
|
}
|
|
|
|
export type HrLocationMaxAggregateOutputType = {
|
|
id: string | null
|
|
createdAt: Date | null
|
|
updatedAt: Date | null
|
|
tenantId: string | null
|
|
name: string | null
|
|
addressLine1: string | null
|
|
addressLine2: string | null
|
|
postalCode: string | null
|
|
city: string | null
|
|
country: string | null
|
|
phone: string | null
|
|
latitude: number | null
|
|
longitude: number | null
|
|
imageFileId: string | null
|
|
description: string | null
|
|
isDefault: boolean | null
|
|
isDemoData: boolean | null
|
|
archivedAt: Date | null
|
|
}
|
|
|
|
export type HrLocationCountAggregateOutputType = {
|
|
id: number
|
|
createdAt: number
|
|
updatedAt: number
|
|
tenantId: number
|
|
name: number
|
|
addressLine1: number
|
|
addressLine2: number
|
|
postalCode: number
|
|
city: number
|
|
country: number
|
|
phone: number
|
|
latitude: number
|
|
longitude: number
|
|
imageFileId: number
|
|
description: number
|
|
isDefault: number
|
|
isDemoData: number
|
|
archivedAt: number
|
|
_all: number
|
|
}
|
|
|
|
|
|
export type HrLocationAvgAggregateInputType = {
|
|
latitude?: true
|
|
longitude?: true
|
|
}
|
|
|
|
export type HrLocationSumAggregateInputType = {
|
|
latitude?: true
|
|
longitude?: true
|
|
}
|
|
|
|
export type HrLocationMinAggregateInputType = {
|
|
id?: true
|
|
createdAt?: true
|
|
updatedAt?: true
|
|
tenantId?: true
|
|
name?: true
|
|
addressLine1?: true
|
|
addressLine2?: true
|
|
postalCode?: true
|
|
city?: true
|
|
country?: true
|
|
phone?: true
|
|
latitude?: true
|
|
longitude?: true
|
|
imageFileId?: true
|
|
description?: true
|
|
isDefault?: true
|
|
isDemoData?: true
|
|
archivedAt?: true
|
|
}
|
|
|
|
export type HrLocationMaxAggregateInputType = {
|
|
id?: true
|
|
createdAt?: true
|
|
updatedAt?: true
|
|
tenantId?: true
|
|
name?: true
|
|
addressLine1?: true
|
|
addressLine2?: true
|
|
postalCode?: true
|
|
city?: true
|
|
country?: true
|
|
phone?: true
|
|
latitude?: true
|
|
longitude?: true
|
|
imageFileId?: true
|
|
description?: true
|
|
isDefault?: true
|
|
isDemoData?: true
|
|
archivedAt?: true
|
|
}
|
|
|
|
export type HrLocationCountAggregateInputType = {
|
|
id?: true
|
|
createdAt?: true
|
|
updatedAt?: true
|
|
tenantId?: true
|
|
name?: true
|
|
addressLine1?: true
|
|
addressLine2?: true
|
|
postalCode?: true
|
|
city?: true
|
|
country?: true
|
|
phone?: true
|
|
latitude?: true
|
|
longitude?: true
|
|
imageFileId?: true
|
|
description?: true
|
|
isDefault?: true
|
|
isDemoData?: true
|
|
archivedAt?: true
|
|
_all?: true
|
|
}
|
|
|
|
export type HrLocationAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Filter which HrLocation to aggregate.
|
|
*/
|
|
where?: Prisma.HrLocationWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of HrLocations to fetch.
|
|
*/
|
|
orderBy?: Prisma.HrLocationOrderByWithRelationInput | Prisma.HrLocationOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the start position
|
|
*/
|
|
cursor?: Prisma.HrLocationWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` HrLocations 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` HrLocations.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Count returned HrLocations
|
|
**/
|
|
_count?: true | HrLocationCountAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to average
|
|
**/
|
|
_avg?: HrLocationAvgAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to sum
|
|
**/
|
|
_sum?: HrLocationSumAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to find the minimum value
|
|
**/
|
|
_min?: HrLocationMinAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to find the maximum value
|
|
**/
|
|
_max?: HrLocationMaxAggregateInputType
|
|
}
|
|
|
|
export type GetHrLocationAggregateType<T extends HrLocationAggregateArgs> = {
|
|
[P in keyof T & keyof AggregateHrLocation]: P extends '_count' | 'count'
|
|
? T[P] extends true
|
|
? number
|
|
: Prisma.GetScalarType<T[P], AggregateHrLocation[P]>
|
|
: Prisma.GetScalarType<T[P], AggregateHrLocation[P]>
|
|
}
|
|
|
|
|
|
|
|
|
|
export type HrLocationGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
where?: Prisma.HrLocationWhereInput
|
|
orderBy?: Prisma.HrLocationOrderByWithAggregationInput | Prisma.HrLocationOrderByWithAggregationInput[]
|
|
by: Prisma.HrLocationScalarFieldEnum[] | Prisma.HrLocationScalarFieldEnum
|
|
having?: Prisma.HrLocationScalarWhereWithAggregatesInput
|
|
take?: number
|
|
skip?: number
|
|
_count?: HrLocationCountAggregateInputType | true
|
|
_avg?: HrLocationAvgAggregateInputType
|
|
_sum?: HrLocationSumAggregateInputType
|
|
_min?: HrLocationMinAggregateInputType
|
|
_max?: HrLocationMaxAggregateInputType
|
|
}
|
|
|
|
export type HrLocationGroupByOutputType = {
|
|
id: string
|
|
createdAt: Date
|
|
updatedAt: Date
|
|
tenantId: string
|
|
name: string
|
|
addressLine1: string | null
|
|
addressLine2: string | null
|
|
postalCode: string | null
|
|
city: string | null
|
|
country: string | null
|
|
phone: string | null
|
|
latitude: number | null
|
|
longitude: number | null
|
|
imageFileId: string | null
|
|
description: string | null
|
|
isDefault: boolean
|
|
isDemoData: boolean
|
|
archivedAt: Date | null
|
|
_count: HrLocationCountAggregateOutputType | null
|
|
_avg: HrLocationAvgAggregateOutputType | null
|
|
_sum: HrLocationSumAggregateOutputType | null
|
|
_min: HrLocationMinAggregateOutputType | null
|
|
_max: HrLocationMaxAggregateOutputType | null
|
|
}
|
|
|
|
export type GetHrLocationGroupByPayload<T extends HrLocationGroupByArgs> = Prisma.PrismaPromise<
|
|
Array<
|
|
Prisma.PickEnumerable<HrLocationGroupByOutputType, T['by']> &
|
|
{
|
|
[P in ((keyof T) & (keyof HrLocationGroupByOutputType))]: P extends '_count'
|
|
? T[P] extends boolean
|
|
? number
|
|
: Prisma.GetScalarType<T[P], HrLocationGroupByOutputType[P]>
|
|
: Prisma.GetScalarType<T[P], HrLocationGroupByOutputType[P]>
|
|
}
|
|
>
|
|
>
|
|
|
|
|
|
|
|
export type HrLocationWhereInput = {
|
|
AND?: Prisma.HrLocationWhereInput | Prisma.HrLocationWhereInput[]
|
|
OR?: Prisma.HrLocationWhereInput[]
|
|
NOT?: Prisma.HrLocationWhereInput | Prisma.HrLocationWhereInput[]
|
|
id?: Prisma.StringFilter<"HrLocation"> | string
|
|
createdAt?: Prisma.DateTimeFilter<"HrLocation"> | Date | string
|
|
updatedAt?: Prisma.DateTimeFilter<"HrLocation"> | Date | string
|
|
tenantId?: Prisma.StringFilter<"HrLocation"> | string
|
|
name?: Prisma.StringFilter<"HrLocation"> | string
|
|
addressLine1?: Prisma.StringNullableFilter<"HrLocation"> | string | null
|
|
addressLine2?: Prisma.StringNullableFilter<"HrLocation"> | string | null
|
|
postalCode?: Prisma.StringNullableFilter<"HrLocation"> | string | null
|
|
city?: Prisma.StringNullableFilter<"HrLocation"> | string | null
|
|
country?: Prisma.StringNullableFilter<"HrLocation"> | string | null
|
|
phone?: Prisma.StringNullableFilter<"HrLocation"> | string | null
|
|
latitude?: Prisma.FloatNullableFilter<"HrLocation"> | number | null
|
|
longitude?: Prisma.FloatNullableFilter<"HrLocation"> | number | null
|
|
imageFileId?: Prisma.StringNullableFilter<"HrLocation"> | string | null
|
|
description?: Prisma.StringNullableFilter<"HrLocation"> | string | null
|
|
isDefault?: Prisma.BoolFilter<"HrLocation"> | boolean
|
|
isDemoData?: Prisma.BoolFilter<"HrLocation"> | boolean
|
|
archivedAt?: Prisma.DateTimeNullableFilter<"HrLocation"> | Date | string | null
|
|
}
|
|
|
|
export type HrLocationOrderByWithRelationInput = {
|
|
id?: Prisma.SortOrder
|
|
createdAt?: Prisma.SortOrder
|
|
updatedAt?: Prisma.SortOrder
|
|
tenantId?: Prisma.SortOrder
|
|
name?: Prisma.SortOrder
|
|
addressLine1?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
addressLine2?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
postalCode?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
city?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
country?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
phone?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
latitude?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
longitude?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
imageFileId?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
description?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
isDefault?: Prisma.SortOrder
|
|
isDemoData?: Prisma.SortOrder
|
|
archivedAt?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
}
|
|
|
|
export type HrLocationWhereUniqueInput = Prisma.AtLeast<{
|
|
id?: string
|
|
AND?: Prisma.HrLocationWhereInput | Prisma.HrLocationWhereInput[]
|
|
OR?: Prisma.HrLocationWhereInput[]
|
|
NOT?: Prisma.HrLocationWhereInput | Prisma.HrLocationWhereInput[]
|
|
createdAt?: Prisma.DateTimeFilter<"HrLocation"> | Date | string
|
|
updatedAt?: Prisma.DateTimeFilter<"HrLocation"> | Date | string
|
|
tenantId?: Prisma.StringFilter<"HrLocation"> | string
|
|
name?: Prisma.StringFilter<"HrLocation"> | string
|
|
addressLine1?: Prisma.StringNullableFilter<"HrLocation"> | string | null
|
|
addressLine2?: Prisma.StringNullableFilter<"HrLocation"> | string | null
|
|
postalCode?: Prisma.StringNullableFilter<"HrLocation"> | string | null
|
|
city?: Prisma.StringNullableFilter<"HrLocation"> | string | null
|
|
country?: Prisma.StringNullableFilter<"HrLocation"> | string | null
|
|
phone?: Prisma.StringNullableFilter<"HrLocation"> | string | null
|
|
latitude?: Prisma.FloatNullableFilter<"HrLocation"> | number | null
|
|
longitude?: Prisma.FloatNullableFilter<"HrLocation"> | number | null
|
|
imageFileId?: Prisma.StringNullableFilter<"HrLocation"> | string | null
|
|
description?: Prisma.StringNullableFilter<"HrLocation"> | string | null
|
|
isDefault?: Prisma.BoolFilter<"HrLocation"> | boolean
|
|
isDemoData?: Prisma.BoolFilter<"HrLocation"> | boolean
|
|
archivedAt?: Prisma.DateTimeNullableFilter<"HrLocation"> | Date | string | null
|
|
}, "id">
|
|
|
|
export type HrLocationOrderByWithAggregationInput = {
|
|
id?: Prisma.SortOrder
|
|
createdAt?: Prisma.SortOrder
|
|
updatedAt?: Prisma.SortOrder
|
|
tenantId?: Prisma.SortOrder
|
|
name?: Prisma.SortOrder
|
|
addressLine1?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
addressLine2?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
postalCode?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
city?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
country?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
phone?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
latitude?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
longitude?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
imageFileId?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
description?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
isDefault?: Prisma.SortOrder
|
|
isDemoData?: Prisma.SortOrder
|
|
archivedAt?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
_count?: Prisma.HrLocationCountOrderByAggregateInput
|
|
_avg?: Prisma.HrLocationAvgOrderByAggregateInput
|
|
_max?: Prisma.HrLocationMaxOrderByAggregateInput
|
|
_min?: Prisma.HrLocationMinOrderByAggregateInput
|
|
_sum?: Prisma.HrLocationSumOrderByAggregateInput
|
|
}
|
|
|
|
export type HrLocationScalarWhereWithAggregatesInput = {
|
|
AND?: Prisma.HrLocationScalarWhereWithAggregatesInput | Prisma.HrLocationScalarWhereWithAggregatesInput[]
|
|
OR?: Prisma.HrLocationScalarWhereWithAggregatesInput[]
|
|
NOT?: Prisma.HrLocationScalarWhereWithAggregatesInput | Prisma.HrLocationScalarWhereWithAggregatesInput[]
|
|
id?: Prisma.StringWithAggregatesFilter<"HrLocation"> | string
|
|
createdAt?: Prisma.DateTimeWithAggregatesFilter<"HrLocation"> | Date | string
|
|
updatedAt?: Prisma.DateTimeWithAggregatesFilter<"HrLocation"> | Date | string
|
|
tenantId?: Prisma.StringWithAggregatesFilter<"HrLocation"> | string
|
|
name?: Prisma.StringWithAggregatesFilter<"HrLocation"> | string
|
|
addressLine1?: Prisma.StringNullableWithAggregatesFilter<"HrLocation"> | string | null
|
|
addressLine2?: Prisma.StringNullableWithAggregatesFilter<"HrLocation"> | string | null
|
|
postalCode?: Prisma.StringNullableWithAggregatesFilter<"HrLocation"> | string | null
|
|
city?: Prisma.StringNullableWithAggregatesFilter<"HrLocation"> | string | null
|
|
country?: Prisma.StringNullableWithAggregatesFilter<"HrLocation"> | string | null
|
|
phone?: Prisma.StringNullableWithAggregatesFilter<"HrLocation"> | string | null
|
|
latitude?: Prisma.FloatNullableWithAggregatesFilter<"HrLocation"> | number | null
|
|
longitude?: Prisma.FloatNullableWithAggregatesFilter<"HrLocation"> | number | null
|
|
imageFileId?: Prisma.StringNullableWithAggregatesFilter<"HrLocation"> | string | null
|
|
description?: Prisma.StringNullableWithAggregatesFilter<"HrLocation"> | string | null
|
|
isDefault?: Prisma.BoolWithAggregatesFilter<"HrLocation"> | boolean
|
|
isDemoData?: Prisma.BoolWithAggregatesFilter<"HrLocation"> | boolean
|
|
archivedAt?: Prisma.DateTimeNullableWithAggregatesFilter<"HrLocation"> | Date | string | null
|
|
}
|
|
|
|
export type HrLocationCreateInput = {
|
|
id?: string
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
tenantId: string
|
|
name: string
|
|
addressLine1?: string | null
|
|
addressLine2?: string | null
|
|
postalCode?: string | null
|
|
city?: string | null
|
|
country?: string | null
|
|
phone?: string | null
|
|
latitude?: number | null
|
|
longitude?: number | null
|
|
imageFileId?: string | null
|
|
description?: string | null
|
|
isDefault?: boolean
|
|
isDemoData?: boolean
|
|
archivedAt?: Date | string | null
|
|
}
|
|
|
|
export type HrLocationUncheckedCreateInput = {
|
|
id?: string
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
tenantId: string
|
|
name: string
|
|
addressLine1?: string | null
|
|
addressLine2?: string | null
|
|
postalCode?: string | null
|
|
city?: string | null
|
|
country?: string | null
|
|
phone?: string | null
|
|
latitude?: number | null
|
|
longitude?: number | null
|
|
imageFileId?: string | null
|
|
description?: string | null
|
|
isDefault?: boolean
|
|
isDemoData?: boolean
|
|
archivedAt?: Date | string | null
|
|
}
|
|
|
|
export type HrLocationUpdateInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
tenantId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
name?: Prisma.StringFieldUpdateOperationsInput | string
|
|
addressLine1?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
addressLine2?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
postalCode?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
city?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
country?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
phone?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
latitude?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null
|
|
longitude?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null
|
|
imageFileId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
isDefault?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
|
isDemoData?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
|
archivedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
}
|
|
|
|
export type HrLocationUncheckedUpdateInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
tenantId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
name?: Prisma.StringFieldUpdateOperationsInput | string
|
|
addressLine1?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
addressLine2?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
postalCode?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
city?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
country?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
phone?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
latitude?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null
|
|
longitude?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null
|
|
imageFileId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
isDefault?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
|
isDemoData?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
|
archivedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
}
|
|
|
|
export type HrLocationCreateManyInput = {
|
|
id?: string
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
tenantId: string
|
|
name: string
|
|
addressLine1?: string | null
|
|
addressLine2?: string | null
|
|
postalCode?: string | null
|
|
city?: string | null
|
|
country?: string | null
|
|
phone?: string | null
|
|
latitude?: number | null
|
|
longitude?: number | null
|
|
imageFileId?: string | null
|
|
description?: string | null
|
|
isDefault?: boolean
|
|
isDemoData?: boolean
|
|
archivedAt?: Date | string | null
|
|
}
|
|
|
|
export type HrLocationUpdateManyMutationInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
tenantId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
name?: Prisma.StringFieldUpdateOperationsInput | string
|
|
addressLine1?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
addressLine2?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
postalCode?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
city?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
country?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
phone?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
latitude?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null
|
|
longitude?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null
|
|
imageFileId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
isDefault?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
|
isDemoData?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
|
archivedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
}
|
|
|
|
export type HrLocationUncheckedUpdateManyInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
tenantId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
name?: Prisma.StringFieldUpdateOperationsInput | string
|
|
addressLine1?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
addressLine2?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
postalCode?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
city?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
country?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
phone?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
latitude?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null
|
|
longitude?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null
|
|
imageFileId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
isDefault?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
|
isDemoData?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
|
archivedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
}
|
|
|
|
export type HrLocationCountOrderByAggregateInput = {
|
|
id?: Prisma.SortOrder
|
|
createdAt?: Prisma.SortOrder
|
|
updatedAt?: Prisma.SortOrder
|
|
tenantId?: Prisma.SortOrder
|
|
name?: Prisma.SortOrder
|
|
addressLine1?: Prisma.SortOrder
|
|
addressLine2?: Prisma.SortOrder
|
|
postalCode?: Prisma.SortOrder
|
|
city?: Prisma.SortOrder
|
|
country?: Prisma.SortOrder
|
|
phone?: Prisma.SortOrder
|
|
latitude?: Prisma.SortOrder
|
|
longitude?: Prisma.SortOrder
|
|
imageFileId?: Prisma.SortOrder
|
|
description?: Prisma.SortOrder
|
|
isDefault?: Prisma.SortOrder
|
|
isDemoData?: Prisma.SortOrder
|
|
archivedAt?: Prisma.SortOrder
|
|
}
|
|
|
|
export type HrLocationAvgOrderByAggregateInput = {
|
|
latitude?: Prisma.SortOrder
|
|
longitude?: Prisma.SortOrder
|
|
}
|
|
|
|
export type HrLocationMaxOrderByAggregateInput = {
|
|
id?: Prisma.SortOrder
|
|
createdAt?: Prisma.SortOrder
|
|
updatedAt?: Prisma.SortOrder
|
|
tenantId?: Prisma.SortOrder
|
|
name?: Prisma.SortOrder
|
|
addressLine1?: Prisma.SortOrder
|
|
addressLine2?: Prisma.SortOrder
|
|
postalCode?: Prisma.SortOrder
|
|
city?: Prisma.SortOrder
|
|
country?: Prisma.SortOrder
|
|
phone?: Prisma.SortOrder
|
|
latitude?: Prisma.SortOrder
|
|
longitude?: Prisma.SortOrder
|
|
imageFileId?: Prisma.SortOrder
|
|
description?: Prisma.SortOrder
|
|
isDefault?: Prisma.SortOrder
|
|
isDemoData?: Prisma.SortOrder
|
|
archivedAt?: Prisma.SortOrder
|
|
}
|
|
|
|
export type HrLocationMinOrderByAggregateInput = {
|
|
id?: Prisma.SortOrder
|
|
createdAt?: Prisma.SortOrder
|
|
updatedAt?: Prisma.SortOrder
|
|
tenantId?: Prisma.SortOrder
|
|
name?: Prisma.SortOrder
|
|
addressLine1?: Prisma.SortOrder
|
|
addressLine2?: Prisma.SortOrder
|
|
postalCode?: Prisma.SortOrder
|
|
city?: Prisma.SortOrder
|
|
country?: Prisma.SortOrder
|
|
phone?: Prisma.SortOrder
|
|
latitude?: Prisma.SortOrder
|
|
longitude?: Prisma.SortOrder
|
|
imageFileId?: Prisma.SortOrder
|
|
description?: Prisma.SortOrder
|
|
isDefault?: Prisma.SortOrder
|
|
isDemoData?: Prisma.SortOrder
|
|
archivedAt?: Prisma.SortOrder
|
|
}
|
|
|
|
export type HrLocationSumOrderByAggregateInput = {
|
|
latitude?: Prisma.SortOrder
|
|
longitude?: Prisma.SortOrder
|
|
}
|
|
|
|
export type NullableFloatFieldUpdateOperationsInput = {
|
|
set?: number | null
|
|
increment?: number
|
|
decrement?: number
|
|
multiply?: number
|
|
divide?: number
|
|
}
|
|
|
|
|
|
|
|
export type HrLocationSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
id?: boolean
|
|
createdAt?: boolean
|
|
updatedAt?: boolean
|
|
tenantId?: boolean
|
|
name?: boolean
|
|
addressLine1?: boolean
|
|
addressLine2?: boolean
|
|
postalCode?: boolean
|
|
city?: boolean
|
|
country?: boolean
|
|
phone?: boolean
|
|
latitude?: boolean
|
|
longitude?: boolean
|
|
imageFileId?: boolean
|
|
description?: boolean
|
|
isDefault?: boolean
|
|
isDemoData?: boolean
|
|
archivedAt?: boolean
|
|
}, ExtArgs["result"]["hrLocation"]>
|
|
|
|
export type HrLocationSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
id?: boolean
|
|
createdAt?: boolean
|
|
updatedAt?: boolean
|
|
tenantId?: boolean
|
|
name?: boolean
|
|
addressLine1?: boolean
|
|
addressLine2?: boolean
|
|
postalCode?: boolean
|
|
city?: boolean
|
|
country?: boolean
|
|
phone?: boolean
|
|
latitude?: boolean
|
|
longitude?: boolean
|
|
imageFileId?: boolean
|
|
description?: boolean
|
|
isDefault?: boolean
|
|
isDemoData?: boolean
|
|
archivedAt?: boolean
|
|
}, ExtArgs["result"]["hrLocation"]>
|
|
|
|
export type HrLocationSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
id?: boolean
|
|
createdAt?: boolean
|
|
updatedAt?: boolean
|
|
tenantId?: boolean
|
|
name?: boolean
|
|
addressLine1?: boolean
|
|
addressLine2?: boolean
|
|
postalCode?: boolean
|
|
city?: boolean
|
|
country?: boolean
|
|
phone?: boolean
|
|
latitude?: boolean
|
|
longitude?: boolean
|
|
imageFileId?: boolean
|
|
description?: boolean
|
|
isDefault?: boolean
|
|
isDemoData?: boolean
|
|
archivedAt?: boolean
|
|
}, ExtArgs["result"]["hrLocation"]>
|
|
|
|
export type HrLocationSelectScalar = {
|
|
id?: boolean
|
|
createdAt?: boolean
|
|
updatedAt?: boolean
|
|
tenantId?: boolean
|
|
name?: boolean
|
|
addressLine1?: boolean
|
|
addressLine2?: boolean
|
|
postalCode?: boolean
|
|
city?: boolean
|
|
country?: boolean
|
|
phone?: boolean
|
|
latitude?: boolean
|
|
longitude?: boolean
|
|
imageFileId?: boolean
|
|
description?: boolean
|
|
isDefault?: boolean
|
|
isDemoData?: boolean
|
|
archivedAt?: boolean
|
|
}
|
|
|
|
export type HrLocationOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "createdAt" | "updatedAt" | "tenantId" | "name" | "addressLine1" | "addressLine2" | "postalCode" | "city" | "country" | "phone" | "latitude" | "longitude" | "imageFileId" | "description" | "isDefault" | "isDemoData" | "archivedAt", ExtArgs["result"]["hrLocation"]>
|
|
|
|
export type $HrLocationPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
name: "HrLocation"
|
|
objects: {}
|
|
scalars: runtime.Types.Extensions.GetPayloadResult<{
|
|
id: string
|
|
createdAt: Date
|
|
updatedAt: Date
|
|
tenantId: string
|
|
name: string
|
|
addressLine1: string | null
|
|
addressLine2: string | null
|
|
postalCode: string | null
|
|
city: string | null
|
|
country: string | null
|
|
phone: string | null
|
|
latitude: number | null
|
|
longitude: number | null
|
|
imageFileId: string | null
|
|
description: string | null
|
|
isDefault: boolean
|
|
isDemoData: boolean
|
|
archivedAt: Date | null
|
|
}, ExtArgs["result"]["hrLocation"]>
|
|
composites: {}
|
|
}
|
|
|
|
export type HrLocationGetPayload<S extends boolean | null | undefined | HrLocationDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$HrLocationPayload, S>
|
|
|
|
export type HrLocationCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> =
|
|
Omit<HrLocationFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
|
|
select?: HrLocationCountAggregateInputType | true
|
|
}
|
|
|
|
export interface HrLocationDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
|
|
[K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['HrLocation'], meta: { name: 'HrLocation' } }
|
|
/**
|
|
* Find zero or one HrLocation that matches the filter.
|
|
* @param {HrLocationFindUniqueArgs} args - Arguments to find a HrLocation
|
|
* @example
|
|
* // Get one HrLocation
|
|
* const hrLocation = await prisma.hrLocation.findUnique({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findUnique<T extends HrLocationFindUniqueArgs>(args: Prisma.SelectSubset<T, HrLocationFindUniqueArgs<ExtArgs>>): Prisma.Prisma__HrLocationClient<runtime.Types.Result.GetResult<Prisma.$HrLocationPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Find one HrLocation that matches the filter or throw an error with `error.code='P2025'`
|
|
* if no matches were found.
|
|
* @param {HrLocationFindUniqueOrThrowArgs} args - Arguments to find a HrLocation
|
|
* @example
|
|
* // Get one HrLocation
|
|
* const hrLocation = await prisma.hrLocation.findUniqueOrThrow({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findUniqueOrThrow<T extends HrLocationFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, HrLocationFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__HrLocationClient<runtime.Types.Result.GetResult<Prisma.$HrLocationPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Find the first HrLocation 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 {HrLocationFindFirstArgs} args - Arguments to find a HrLocation
|
|
* @example
|
|
* // Get one HrLocation
|
|
* const hrLocation = await prisma.hrLocation.findFirst({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findFirst<T extends HrLocationFindFirstArgs>(args?: Prisma.SelectSubset<T, HrLocationFindFirstArgs<ExtArgs>>): Prisma.Prisma__HrLocationClient<runtime.Types.Result.GetResult<Prisma.$HrLocationPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Find the first HrLocation 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 {HrLocationFindFirstOrThrowArgs} args - Arguments to find a HrLocation
|
|
* @example
|
|
* // Get one HrLocation
|
|
* const hrLocation = await prisma.hrLocation.findFirstOrThrow({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findFirstOrThrow<T extends HrLocationFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, HrLocationFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__HrLocationClient<runtime.Types.Result.GetResult<Prisma.$HrLocationPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Find zero or more HrLocations 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 {HrLocationFindManyArgs} args - Arguments to filter and select certain fields only.
|
|
* @example
|
|
* // Get all HrLocations
|
|
* const hrLocations = await prisma.hrLocation.findMany()
|
|
*
|
|
* // Get first 10 HrLocations
|
|
* const hrLocations = await prisma.hrLocation.findMany({ take: 10 })
|
|
*
|
|
* // Only select the `id`
|
|
* const hrLocationWithIdOnly = await prisma.hrLocation.findMany({ select: { id: true } })
|
|
*
|
|
*/
|
|
findMany<T extends HrLocationFindManyArgs>(args?: Prisma.SelectSubset<T, HrLocationFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$HrLocationPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
|
|
|
|
/**
|
|
* Create a HrLocation.
|
|
* @param {HrLocationCreateArgs} args - Arguments to create a HrLocation.
|
|
* @example
|
|
* // Create one HrLocation
|
|
* const HrLocation = await prisma.hrLocation.create({
|
|
* data: {
|
|
* // ... data to create a HrLocation
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
create<T extends HrLocationCreateArgs>(args: Prisma.SelectSubset<T, HrLocationCreateArgs<ExtArgs>>): Prisma.Prisma__HrLocationClient<runtime.Types.Result.GetResult<Prisma.$HrLocationPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Create many HrLocations.
|
|
* @param {HrLocationCreateManyArgs} args - Arguments to create many HrLocations.
|
|
* @example
|
|
* // Create many HrLocations
|
|
* const hrLocation = await prisma.hrLocation.createMany({
|
|
* data: [
|
|
* // ... provide data here
|
|
* ]
|
|
* })
|
|
*
|
|
*/
|
|
createMany<T extends HrLocationCreateManyArgs>(args?: Prisma.SelectSubset<T, HrLocationCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
|
|
|
/**
|
|
* Create many HrLocations and returns the data saved in the database.
|
|
* @param {HrLocationCreateManyAndReturnArgs} args - Arguments to create many HrLocations.
|
|
* @example
|
|
* // Create many HrLocations
|
|
* const hrLocation = await prisma.hrLocation.createManyAndReturn({
|
|
* data: [
|
|
* // ... provide data here
|
|
* ]
|
|
* })
|
|
*
|
|
* // Create many HrLocations and only return the `id`
|
|
* const hrLocationWithIdOnly = await prisma.hrLocation.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 HrLocationCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, HrLocationCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$HrLocationPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>
|
|
|
|
/**
|
|
* Delete a HrLocation.
|
|
* @param {HrLocationDeleteArgs} args - Arguments to delete one HrLocation.
|
|
* @example
|
|
* // Delete one HrLocation
|
|
* const HrLocation = await prisma.hrLocation.delete({
|
|
* where: {
|
|
* // ... filter to delete one HrLocation
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
delete<T extends HrLocationDeleteArgs>(args: Prisma.SelectSubset<T, HrLocationDeleteArgs<ExtArgs>>): Prisma.Prisma__HrLocationClient<runtime.Types.Result.GetResult<Prisma.$HrLocationPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Update one HrLocation.
|
|
* @param {HrLocationUpdateArgs} args - Arguments to update one HrLocation.
|
|
* @example
|
|
* // Update one HrLocation
|
|
* const hrLocation = await prisma.hrLocation.update({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* },
|
|
* data: {
|
|
* // ... provide data here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
update<T extends HrLocationUpdateArgs>(args: Prisma.SelectSubset<T, HrLocationUpdateArgs<ExtArgs>>): Prisma.Prisma__HrLocationClient<runtime.Types.Result.GetResult<Prisma.$HrLocationPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Delete zero or more HrLocations.
|
|
* @param {HrLocationDeleteManyArgs} args - Arguments to filter HrLocations to delete.
|
|
* @example
|
|
* // Delete a few HrLocations
|
|
* const { count } = await prisma.hrLocation.deleteMany({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
deleteMany<T extends HrLocationDeleteManyArgs>(args?: Prisma.SelectSubset<T, HrLocationDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
|
|
|
/**
|
|
* Update zero or more HrLocations.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {HrLocationUpdateManyArgs} args - Arguments to update one or more rows.
|
|
* @example
|
|
* // Update many HrLocations
|
|
* const hrLocation = await prisma.hrLocation.updateMany({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* },
|
|
* data: {
|
|
* // ... provide data here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
updateMany<T extends HrLocationUpdateManyArgs>(args: Prisma.SelectSubset<T, HrLocationUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
|
|
|
/**
|
|
* Update zero or more HrLocations and returns the data updated in the database.
|
|
* @param {HrLocationUpdateManyAndReturnArgs} args - Arguments to update many HrLocations.
|
|
* @example
|
|
* // Update many HrLocations
|
|
* const hrLocation = await prisma.hrLocation.updateManyAndReturn({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* },
|
|
* data: [
|
|
* // ... provide data here
|
|
* ]
|
|
* })
|
|
*
|
|
* // Update zero or more HrLocations and only return the `id`
|
|
* const hrLocationWithIdOnly = await prisma.hrLocation.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 HrLocationUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, HrLocationUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$HrLocationPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>
|
|
|
|
/**
|
|
* Create or update one HrLocation.
|
|
* @param {HrLocationUpsertArgs} args - Arguments to update or create a HrLocation.
|
|
* @example
|
|
* // Update or create a HrLocation
|
|
* const hrLocation = await prisma.hrLocation.upsert({
|
|
* create: {
|
|
* // ... data to create a HrLocation
|
|
* },
|
|
* update: {
|
|
* // ... in case it already exists, update
|
|
* },
|
|
* where: {
|
|
* // ... the filter for the HrLocation we want to update
|
|
* }
|
|
* })
|
|
*/
|
|
upsert<T extends HrLocationUpsertArgs>(args: Prisma.SelectSubset<T, HrLocationUpsertArgs<ExtArgs>>): Prisma.Prisma__HrLocationClient<runtime.Types.Result.GetResult<Prisma.$HrLocationPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
|
|
/**
|
|
* Count the number of HrLocations.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {HrLocationCountArgs} args - Arguments to filter HrLocations to count.
|
|
* @example
|
|
* // Count the number of HrLocations
|
|
* const count = await prisma.hrLocation.count({
|
|
* where: {
|
|
* // ... the filter for the HrLocations we want to count
|
|
* }
|
|
* })
|
|
**/
|
|
count<T extends HrLocationCountArgs>(
|
|
args?: Prisma.Subset<T, HrLocationCountArgs>,
|
|
): Prisma.PrismaPromise<
|
|
T extends runtime.Types.Utils.Record<'select', any>
|
|
? T['select'] extends true
|
|
? number
|
|
: Prisma.GetScalarType<T['select'], HrLocationCountAggregateOutputType>
|
|
: number
|
|
>
|
|
|
|
/**
|
|
* Allows you to perform aggregations operations on a HrLocation.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {HrLocationAggregateArgs} 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 HrLocationAggregateArgs>(args: Prisma.Subset<T, HrLocationAggregateArgs>): Prisma.PrismaPromise<GetHrLocationAggregateType<T>>
|
|
|
|
/**
|
|
* Group by HrLocation.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {HrLocationGroupByArgs} 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 HrLocationGroupByArgs,
|
|
HasSelectOrTake extends Prisma.Or<
|
|
Prisma.Extends<'skip', Prisma.Keys<T>>,
|
|
Prisma.Extends<'take', Prisma.Keys<T>>
|
|
>,
|
|
OrderByArg extends Prisma.True extends HasSelectOrTake
|
|
? { orderBy: HrLocationGroupByArgs['orderBy'] }
|
|
: { orderBy?: HrLocationGroupByArgs['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, HrLocationGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetHrLocationGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
|
|
/**
|
|
* Fields of the HrLocation model
|
|
*/
|
|
readonly fields: HrLocationFieldRefs;
|
|
}
|
|
|
|
/**
|
|
* The delegate class that acts as a "Promise-like" for HrLocation.
|
|
* 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__HrLocationClient<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 HrLocation model
|
|
*/
|
|
export interface HrLocationFieldRefs {
|
|
readonly id: Prisma.FieldRef<"HrLocation", 'String'>
|
|
readonly createdAt: Prisma.FieldRef<"HrLocation", 'DateTime'>
|
|
readonly updatedAt: Prisma.FieldRef<"HrLocation", 'DateTime'>
|
|
readonly tenantId: Prisma.FieldRef<"HrLocation", 'String'>
|
|
readonly name: Prisma.FieldRef<"HrLocation", 'String'>
|
|
readonly addressLine1: Prisma.FieldRef<"HrLocation", 'String'>
|
|
readonly addressLine2: Prisma.FieldRef<"HrLocation", 'String'>
|
|
readonly postalCode: Prisma.FieldRef<"HrLocation", 'String'>
|
|
readonly city: Prisma.FieldRef<"HrLocation", 'String'>
|
|
readonly country: Prisma.FieldRef<"HrLocation", 'String'>
|
|
readonly phone: Prisma.FieldRef<"HrLocation", 'String'>
|
|
readonly latitude: Prisma.FieldRef<"HrLocation", 'Float'>
|
|
readonly longitude: Prisma.FieldRef<"HrLocation", 'Float'>
|
|
readonly imageFileId: Prisma.FieldRef<"HrLocation", 'String'>
|
|
readonly description: Prisma.FieldRef<"HrLocation", 'String'>
|
|
readonly isDefault: Prisma.FieldRef<"HrLocation", 'Boolean'>
|
|
readonly isDemoData: Prisma.FieldRef<"HrLocation", 'Boolean'>
|
|
readonly archivedAt: Prisma.FieldRef<"HrLocation", 'DateTime'>
|
|
}
|
|
|
|
|
|
// Custom InputTypes
|
|
/**
|
|
* HrLocation findUnique
|
|
*/
|
|
export type HrLocationFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the HrLocation
|
|
*/
|
|
select?: Prisma.HrLocationSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the HrLocation
|
|
*/
|
|
omit?: Prisma.HrLocationOmit<ExtArgs> | null
|
|
/**
|
|
* Filter, which HrLocation to fetch.
|
|
*/
|
|
where: Prisma.HrLocationWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* HrLocation findUniqueOrThrow
|
|
*/
|
|
export type HrLocationFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the HrLocation
|
|
*/
|
|
select?: Prisma.HrLocationSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the HrLocation
|
|
*/
|
|
omit?: Prisma.HrLocationOmit<ExtArgs> | null
|
|
/**
|
|
* Filter, which HrLocation to fetch.
|
|
*/
|
|
where: Prisma.HrLocationWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* HrLocation findFirst
|
|
*/
|
|
export type HrLocationFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the HrLocation
|
|
*/
|
|
select?: Prisma.HrLocationSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the HrLocation
|
|
*/
|
|
omit?: Prisma.HrLocationOmit<ExtArgs> | null
|
|
/**
|
|
* Filter, which HrLocation to fetch.
|
|
*/
|
|
where?: Prisma.HrLocationWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of HrLocations to fetch.
|
|
*/
|
|
orderBy?: Prisma.HrLocationOrderByWithRelationInput | Prisma.HrLocationOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for searching for HrLocations.
|
|
*/
|
|
cursor?: Prisma.HrLocationWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` HrLocations 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` HrLocations.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
*
|
|
* Filter by unique combinations of HrLocations.
|
|
*/
|
|
distinct?: Prisma.HrLocationScalarFieldEnum | Prisma.HrLocationScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* HrLocation findFirstOrThrow
|
|
*/
|
|
export type HrLocationFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the HrLocation
|
|
*/
|
|
select?: Prisma.HrLocationSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the HrLocation
|
|
*/
|
|
omit?: Prisma.HrLocationOmit<ExtArgs> | null
|
|
/**
|
|
* Filter, which HrLocation to fetch.
|
|
*/
|
|
where?: Prisma.HrLocationWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of HrLocations to fetch.
|
|
*/
|
|
orderBy?: Prisma.HrLocationOrderByWithRelationInput | Prisma.HrLocationOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for searching for HrLocations.
|
|
*/
|
|
cursor?: Prisma.HrLocationWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` HrLocations 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` HrLocations.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
*
|
|
* Filter by unique combinations of HrLocations.
|
|
*/
|
|
distinct?: Prisma.HrLocationScalarFieldEnum | Prisma.HrLocationScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* HrLocation findMany
|
|
*/
|
|
export type HrLocationFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the HrLocation
|
|
*/
|
|
select?: Prisma.HrLocationSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the HrLocation
|
|
*/
|
|
omit?: Prisma.HrLocationOmit<ExtArgs> | null
|
|
/**
|
|
* Filter, which HrLocations to fetch.
|
|
*/
|
|
where?: Prisma.HrLocationWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of HrLocations to fetch.
|
|
*/
|
|
orderBy?: Prisma.HrLocationOrderByWithRelationInput | Prisma.HrLocationOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for listing HrLocations.
|
|
*/
|
|
cursor?: Prisma.HrLocationWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` HrLocations 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` HrLocations.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
*
|
|
* Filter by unique combinations of HrLocations.
|
|
*/
|
|
distinct?: Prisma.HrLocationScalarFieldEnum | Prisma.HrLocationScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* HrLocation create
|
|
*/
|
|
export type HrLocationCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the HrLocation
|
|
*/
|
|
select?: Prisma.HrLocationSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the HrLocation
|
|
*/
|
|
omit?: Prisma.HrLocationOmit<ExtArgs> | null
|
|
/**
|
|
* The data needed to create a HrLocation.
|
|
*/
|
|
data: Prisma.XOR<Prisma.HrLocationCreateInput, Prisma.HrLocationUncheckedCreateInput>
|
|
}
|
|
|
|
/**
|
|
* HrLocation createMany
|
|
*/
|
|
export type HrLocationCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* The data used to create many HrLocations.
|
|
*/
|
|
data: Prisma.HrLocationCreateManyInput | Prisma.HrLocationCreateManyInput[]
|
|
skipDuplicates?: boolean
|
|
}
|
|
|
|
/**
|
|
* HrLocation createManyAndReturn
|
|
*/
|
|
export type HrLocationCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the HrLocation
|
|
*/
|
|
select?: Prisma.HrLocationSelectCreateManyAndReturn<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the HrLocation
|
|
*/
|
|
omit?: Prisma.HrLocationOmit<ExtArgs> | null
|
|
/**
|
|
* The data used to create many HrLocations.
|
|
*/
|
|
data: Prisma.HrLocationCreateManyInput | Prisma.HrLocationCreateManyInput[]
|
|
skipDuplicates?: boolean
|
|
}
|
|
|
|
/**
|
|
* HrLocation update
|
|
*/
|
|
export type HrLocationUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the HrLocation
|
|
*/
|
|
select?: Prisma.HrLocationSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the HrLocation
|
|
*/
|
|
omit?: Prisma.HrLocationOmit<ExtArgs> | null
|
|
/**
|
|
* The data needed to update a HrLocation.
|
|
*/
|
|
data: Prisma.XOR<Prisma.HrLocationUpdateInput, Prisma.HrLocationUncheckedUpdateInput>
|
|
/**
|
|
* Choose, which HrLocation to update.
|
|
*/
|
|
where: Prisma.HrLocationWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* HrLocation updateMany
|
|
*/
|
|
export type HrLocationUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* The data used to update HrLocations.
|
|
*/
|
|
data: Prisma.XOR<Prisma.HrLocationUpdateManyMutationInput, Prisma.HrLocationUncheckedUpdateManyInput>
|
|
/**
|
|
* Filter which HrLocations to update
|
|
*/
|
|
where?: Prisma.HrLocationWhereInput
|
|
/**
|
|
* Limit how many HrLocations to update.
|
|
*/
|
|
limit?: number
|
|
}
|
|
|
|
/**
|
|
* HrLocation updateManyAndReturn
|
|
*/
|
|
export type HrLocationUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the HrLocation
|
|
*/
|
|
select?: Prisma.HrLocationSelectUpdateManyAndReturn<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the HrLocation
|
|
*/
|
|
omit?: Prisma.HrLocationOmit<ExtArgs> | null
|
|
/**
|
|
* The data used to update HrLocations.
|
|
*/
|
|
data: Prisma.XOR<Prisma.HrLocationUpdateManyMutationInput, Prisma.HrLocationUncheckedUpdateManyInput>
|
|
/**
|
|
* Filter which HrLocations to update
|
|
*/
|
|
where?: Prisma.HrLocationWhereInput
|
|
/**
|
|
* Limit how many HrLocations to update.
|
|
*/
|
|
limit?: number
|
|
}
|
|
|
|
/**
|
|
* HrLocation upsert
|
|
*/
|
|
export type HrLocationUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the HrLocation
|
|
*/
|
|
select?: Prisma.HrLocationSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the HrLocation
|
|
*/
|
|
omit?: Prisma.HrLocationOmit<ExtArgs> | null
|
|
/**
|
|
* The filter to search for the HrLocation to update in case it exists.
|
|
*/
|
|
where: Prisma.HrLocationWhereUniqueInput
|
|
/**
|
|
* In case the HrLocation found by the `where` argument doesn't exist, create a new HrLocation with this data.
|
|
*/
|
|
create: Prisma.XOR<Prisma.HrLocationCreateInput, Prisma.HrLocationUncheckedCreateInput>
|
|
/**
|
|
* In case the HrLocation was found with the provided `where` argument, update it with this data.
|
|
*/
|
|
update: Prisma.XOR<Prisma.HrLocationUpdateInput, Prisma.HrLocationUncheckedUpdateInput>
|
|
}
|
|
|
|
/**
|
|
* HrLocation delete
|
|
*/
|
|
export type HrLocationDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the HrLocation
|
|
*/
|
|
select?: Prisma.HrLocationSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the HrLocation
|
|
*/
|
|
omit?: Prisma.HrLocationOmit<ExtArgs> | null
|
|
/**
|
|
* Filter which HrLocation to delete.
|
|
*/
|
|
where: Prisma.HrLocationWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* HrLocation deleteMany
|
|
*/
|
|
export type HrLocationDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Filter which HrLocations to delete
|
|
*/
|
|
where?: Prisma.HrLocationWhereInput
|
|
/**
|
|
* Limit how many HrLocations to delete.
|
|
*/
|
|
limit?: number
|
|
}
|
|
|
|
/**
|
|
* HrLocation without action
|
|
*/
|
|
export type HrLocationDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the HrLocation
|
|
*/
|
|
select?: Prisma.HrLocationSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the HrLocation
|
|
*/
|
|
omit?: Prisma.HrLocationOmit<ExtArgs> | null
|
|
}
|