1613 lines
64 KiB
TypeScript
1613 lines
64 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 `KwpMaterialPosition` 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 KwpMaterialPosition
|
|
* Read-only material/ERP position mirrored from the KWP project view. KWP is
|
|
* authoritative for these fields; local project data remains independent.
|
|
*/
|
|
export type KwpMaterialPositionModel = runtime.Types.Result.DefaultSelection<Prisma.$KwpMaterialPositionPayload>
|
|
|
|
export type AggregateKwpMaterialPosition = {
|
|
_count: KwpMaterialPositionCountAggregateOutputType | null
|
|
_avg: KwpMaterialPositionAvgAggregateOutputType | null
|
|
_sum: KwpMaterialPositionSumAggregateOutputType | null
|
|
_min: KwpMaterialPositionMinAggregateOutputType | null
|
|
_max: KwpMaterialPositionMaxAggregateOutputType | null
|
|
}
|
|
|
|
export type KwpMaterialPositionAvgAggregateOutputType = {
|
|
quantity: runtime.Decimal | null
|
|
unitPrice: runtime.Decimal | null
|
|
totalPrice: runtime.Decimal | null
|
|
positionMarker: number | null
|
|
}
|
|
|
|
export type KwpMaterialPositionSumAggregateOutputType = {
|
|
quantity: runtime.Decimal | null
|
|
unitPrice: runtime.Decimal | null
|
|
totalPrice: runtime.Decimal | null
|
|
positionMarker: number | null
|
|
}
|
|
|
|
export type KwpMaterialPositionMinAggregateOutputType = {
|
|
id: string | null
|
|
tenantId: string | null
|
|
dataConnectionId: string | null
|
|
projektId: string | null
|
|
externalId: string | null
|
|
positionNumber: string | null
|
|
text: string | null
|
|
longText: string | null
|
|
quantity: runtime.Decimal | null
|
|
unit: string | null
|
|
unitPrice: runtime.Decimal | null
|
|
totalPrice: runtime.Decimal | null
|
|
positionMarker: number | null
|
|
normalizedFingerprint: string | null
|
|
lastSeenAt: Date | null
|
|
lastSyncedAt: Date | null
|
|
createdAt: Date | null
|
|
updatedAt: Date | null
|
|
archivedAt: Date | null
|
|
}
|
|
|
|
export type KwpMaterialPositionMaxAggregateOutputType = {
|
|
id: string | null
|
|
tenantId: string | null
|
|
dataConnectionId: string | null
|
|
projektId: string | null
|
|
externalId: string | null
|
|
positionNumber: string | null
|
|
text: string | null
|
|
longText: string | null
|
|
quantity: runtime.Decimal | null
|
|
unit: string | null
|
|
unitPrice: runtime.Decimal | null
|
|
totalPrice: runtime.Decimal | null
|
|
positionMarker: number | null
|
|
normalizedFingerprint: string | null
|
|
lastSeenAt: Date | null
|
|
lastSyncedAt: Date | null
|
|
createdAt: Date | null
|
|
updatedAt: Date | null
|
|
archivedAt: Date | null
|
|
}
|
|
|
|
export type KwpMaterialPositionCountAggregateOutputType = {
|
|
id: number
|
|
tenantId: number
|
|
dataConnectionId: number
|
|
projektId: number
|
|
externalId: number
|
|
positionNumber: number
|
|
text: number
|
|
longText: number
|
|
quantity: number
|
|
unit: number
|
|
unitPrice: number
|
|
totalPrice: number
|
|
positionMarker: number
|
|
normalizedFingerprint: number
|
|
lastSeenAt: number
|
|
lastSyncedAt: number
|
|
createdAt: number
|
|
updatedAt: number
|
|
archivedAt: number
|
|
_all: number
|
|
}
|
|
|
|
|
|
export type KwpMaterialPositionAvgAggregateInputType = {
|
|
quantity?: true
|
|
unitPrice?: true
|
|
totalPrice?: true
|
|
positionMarker?: true
|
|
}
|
|
|
|
export type KwpMaterialPositionSumAggregateInputType = {
|
|
quantity?: true
|
|
unitPrice?: true
|
|
totalPrice?: true
|
|
positionMarker?: true
|
|
}
|
|
|
|
export type KwpMaterialPositionMinAggregateInputType = {
|
|
id?: true
|
|
tenantId?: true
|
|
dataConnectionId?: true
|
|
projektId?: true
|
|
externalId?: true
|
|
positionNumber?: true
|
|
text?: true
|
|
longText?: true
|
|
quantity?: true
|
|
unit?: true
|
|
unitPrice?: true
|
|
totalPrice?: true
|
|
positionMarker?: true
|
|
normalizedFingerprint?: true
|
|
lastSeenAt?: true
|
|
lastSyncedAt?: true
|
|
createdAt?: true
|
|
updatedAt?: true
|
|
archivedAt?: true
|
|
}
|
|
|
|
export type KwpMaterialPositionMaxAggregateInputType = {
|
|
id?: true
|
|
tenantId?: true
|
|
dataConnectionId?: true
|
|
projektId?: true
|
|
externalId?: true
|
|
positionNumber?: true
|
|
text?: true
|
|
longText?: true
|
|
quantity?: true
|
|
unit?: true
|
|
unitPrice?: true
|
|
totalPrice?: true
|
|
positionMarker?: true
|
|
normalizedFingerprint?: true
|
|
lastSeenAt?: true
|
|
lastSyncedAt?: true
|
|
createdAt?: true
|
|
updatedAt?: true
|
|
archivedAt?: true
|
|
}
|
|
|
|
export type KwpMaterialPositionCountAggregateInputType = {
|
|
id?: true
|
|
tenantId?: true
|
|
dataConnectionId?: true
|
|
projektId?: true
|
|
externalId?: true
|
|
positionNumber?: true
|
|
text?: true
|
|
longText?: true
|
|
quantity?: true
|
|
unit?: true
|
|
unitPrice?: true
|
|
totalPrice?: true
|
|
positionMarker?: true
|
|
normalizedFingerprint?: true
|
|
lastSeenAt?: true
|
|
lastSyncedAt?: true
|
|
createdAt?: true
|
|
updatedAt?: true
|
|
archivedAt?: true
|
|
_all?: true
|
|
}
|
|
|
|
export type KwpMaterialPositionAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Filter which KwpMaterialPosition to aggregate.
|
|
*/
|
|
where?: Prisma.KwpMaterialPositionWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of KwpMaterialPositions to fetch.
|
|
*/
|
|
orderBy?: Prisma.KwpMaterialPositionOrderByWithRelationInput | Prisma.KwpMaterialPositionOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the start position
|
|
*/
|
|
cursor?: Prisma.KwpMaterialPositionWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` KwpMaterialPositions 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` KwpMaterialPositions.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Count returned KwpMaterialPositions
|
|
**/
|
|
_count?: true | KwpMaterialPositionCountAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to average
|
|
**/
|
|
_avg?: KwpMaterialPositionAvgAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to sum
|
|
**/
|
|
_sum?: KwpMaterialPositionSumAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to find the minimum value
|
|
**/
|
|
_min?: KwpMaterialPositionMinAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to find the maximum value
|
|
**/
|
|
_max?: KwpMaterialPositionMaxAggregateInputType
|
|
}
|
|
|
|
export type GetKwpMaterialPositionAggregateType<T extends KwpMaterialPositionAggregateArgs> = {
|
|
[P in keyof T & keyof AggregateKwpMaterialPosition]: P extends '_count' | 'count'
|
|
? T[P] extends true
|
|
? number
|
|
: Prisma.GetScalarType<T[P], AggregateKwpMaterialPosition[P]>
|
|
: Prisma.GetScalarType<T[P], AggregateKwpMaterialPosition[P]>
|
|
}
|
|
|
|
|
|
|
|
|
|
export type KwpMaterialPositionGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
where?: Prisma.KwpMaterialPositionWhereInput
|
|
orderBy?: Prisma.KwpMaterialPositionOrderByWithAggregationInput | Prisma.KwpMaterialPositionOrderByWithAggregationInput[]
|
|
by: Prisma.KwpMaterialPositionScalarFieldEnum[] | Prisma.KwpMaterialPositionScalarFieldEnum
|
|
having?: Prisma.KwpMaterialPositionScalarWhereWithAggregatesInput
|
|
take?: number
|
|
skip?: number
|
|
_count?: KwpMaterialPositionCountAggregateInputType | true
|
|
_avg?: KwpMaterialPositionAvgAggregateInputType
|
|
_sum?: KwpMaterialPositionSumAggregateInputType
|
|
_min?: KwpMaterialPositionMinAggregateInputType
|
|
_max?: KwpMaterialPositionMaxAggregateInputType
|
|
}
|
|
|
|
export type KwpMaterialPositionGroupByOutputType = {
|
|
id: string
|
|
tenantId: string
|
|
dataConnectionId: string
|
|
projektId: string
|
|
externalId: string
|
|
positionNumber: string | null
|
|
text: string
|
|
longText: string | null
|
|
quantity: runtime.Decimal | null
|
|
unit: string | null
|
|
unitPrice: runtime.Decimal | null
|
|
totalPrice: runtime.Decimal | null
|
|
positionMarker: number
|
|
normalizedFingerprint: string
|
|
lastSeenAt: Date
|
|
lastSyncedAt: Date
|
|
createdAt: Date
|
|
updatedAt: Date
|
|
archivedAt: Date | null
|
|
_count: KwpMaterialPositionCountAggregateOutputType | null
|
|
_avg: KwpMaterialPositionAvgAggregateOutputType | null
|
|
_sum: KwpMaterialPositionSumAggregateOutputType | null
|
|
_min: KwpMaterialPositionMinAggregateOutputType | null
|
|
_max: KwpMaterialPositionMaxAggregateOutputType | null
|
|
}
|
|
|
|
export type GetKwpMaterialPositionGroupByPayload<T extends KwpMaterialPositionGroupByArgs> = Prisma.PrismaPromise<
|
|
Array<
|
|
Prisma.PickEnumerable<KwpMaterialPositionGroupByOutputType, T['by']> &
|
|
{
|
|
[P in ((keyof T) & (keyof KwpMaterialPositionGroupByOutputType))]: P extends '_count'
|
|
? T[P] extends boolean
|
|
? number
|
|
: Prisma.GetScalarType<T[P], KwpMaterialPositionGroupByOutputType[P]>
|
|
: Prisma.GetScalarType<T[P], KwpMaterialPositionGroupByOutputType[P]>
|
|
}
|
|
>
|
|
>
|
|
|
|
|
|
|
|
export type KwpMaterialPositionWhereInput = {
|
|
AND?: Prisma.KwpMaterialPositionWhereInput | Prisma.KwpMaterialPositionWhereInput[]
|
|
OR?: Prisma.KwpMaterialPositionWhereInput[]
|
|
NOT?: Prisma.KwpMaterialPositionWhereInput | Prisma.KwpMaterialPositionWhereInput[]
|
|
id?: Prisma.StringFilter<"KwpMaterialPosition"> | string
|
|
tenantId?: Prisma.StringFilter<"KwpMaterialPosition"> | string
|
|
dataConnectionId?: Prisma.StringFilter<"KwpMaterialPosition"> | string
|
|
projektId?: Prisma.StringFilter<"KwpMaterialPosition"> | string
|
|
externalId?: Prisma.StringFilter<"KwpMaterialPosition"> | string
|
|
positionNumber?: Prisma.StringNullableFilter<"KwpMaterialPosition"> | string | null
|
|
text?: Prisma.StringFilter<"KwpMaterialPosition"> | string
|
|
longText?: Prisma.StringNullableFilter<"KwpMaterialPosition"> | string | null
|
|
quantity?: Prisma.DecimalNullableFilter<"KwpMaterialPosition"> | runtime.Decimal | runtime.DecimalJsLike | number | string | null
|
|
unit?: Prisma.StringNullableFilter<"KwpMaterialPosition"> | string | null
|
|
unitPrice?: Prisma.DecimalNullableFilter<"KwpMaterialPosition"> | runtime.Decimal | runtime.DecimalJsLike | number | string | null
|
|
totalPrice?: Prisma.DecimalNullableFilter<"KwpMaterialPosition"> | runtime.Decimal | runtime.DecimalJsLike | number | string | null
|
|
positionMarker?: Prisma.IntFilter<"KwpMaterialPosition"> | number
|
|
normalizedFingerprint?: Prisma.StringFilter<"KwpMaterialPosition"> | string
|
|
lastSeenAt?: Prisma.DateTimeFilter<"KwpMaterialPosition"> | Date | string
|
|
lastSyncedAt?: Prisma.DateTimeFilter<"KwpMaterialPosition"> | Date | string
|
|
createdAt?: Prisma.DateTimeFilter<"KwpMaterialPosition"> | Date | string
|
|
updatedAt?: Prisma.DateTimeFilter<"KwpMaterialPosition"> | Date | string
|
|
archivedAt?: Prisma.DateTimeNullableFilter<"KwpMaterialPosition"> | Date | string | null
|
|
}
|
|
|
|
export type KwpMaterialPositionOrderByWithRelationInput = {
|
|
id?: Prisma.SortOrder
|
|
tenantId?: Prisma.SortOrder
|
|
dataConnectionId?: Prisma.SortOrder
|
|
projektId?: Prisma.SortOrder
|
|
externalId?: Prisma.SortOrder
|
|
positionNumber?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
text?: Prisma.SortOrder
|
|
longText?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
quantity?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
unit?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
unitPrice?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
totalPrice?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
positionMarker?: Prisma.SortOrder
|
|
normalizedFingerprint?: Prisma.SortOrder
|
|
lastSeenAt?: Prisma.SortOrder
|
|
lastSyncedAt?: Prisma.SortOrder
|
|
createdAt?: Prisma.SortOrder
|
|
updatedAt?: Prisma.SortOrder
|
|
archivedAt?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
}
|
|
|
|
export type KwpMaterialPositionWhereUniqueInput = Prisma.AtLeast<{
|
|
id?: string
|
|
tenantId_dataConnectionId_projektId_externalId?: Prisma.KwpMaterialPositionTenantIdDataConnectionIdProjektIdExternalIdCompoundUniqueInput
|
|
AND?: Prisma.KwpMaterialPositionWhereInput | Prisma.KwpMaterialPositionWhereInput[]
|
|
OR?: Prisma.KwpMaterialPositionWhereInput[]
|
|
NOT?: Prisma.KwpMaterialPositionWhereInput | Prisma.KwpMaterialPositionWhereInput[]
|
|
tenantId?: Prisma.StringFilter<"KwpMaterialPosition"> | string
|
|
dataConnectionId?: Prisma.StringFilter<"KwpMaterialPosition"> | string
|
|
projektId?: Prisma.StringFilter<"KwpMaterialPosition"> | string
|
|
externalId?: Prisma.StringFilter<"KwpMaterialPosition"> | string
|
|
positionNumber?: Prisma.StringNullableFilter<"KwpMaterialPosition"> | string | null
|
|
text?: Prisma.StringFilter<"KwpMaterialPosition"> | string
|
|
longText?: Prisma.StringNullableFilter<"KwpMaterialPosition"> | string | null
|
|
quantity?: Prisma.DecimalNullableFilter<"KwpMaterialPosition"> | runtime.Decimal | runtime.DecimalJsLike | number | string | null
|
|
unit?: Prisma.StringNullableFilter<"KwpMaterialPosition"> | string | null
|
|
unitPrice?: Prisma.DecimalNullableFilter<"KwpMaterialPosition"> | runtime.Decimal | runtime.DecimalJsLike | number | string | null
|
|
totalPrice?: Prisma.DecimalNullableFilter<"KwpMaterialPosition"> | runtime.Decimal | runtime.DecimalJsLike | number | string | null
|
|
positionMarker?: Prisma.IntFilter<"KwpMaterialPosition"> | number
|
|
normalizedFingerprint?: Prisma.StringFilter<"KwpMaterialPosition"> | string
|
|
lastSeenAt?: Prisma.DateTimeFilter<"KwpMaterialPosition"> | Date | string
|
|
lastSyncedAt?: Prisma.DateTimeFilter<"KwpMaterialPosition"> | Date | string
|
|
createdAt?: Prisma.DateTimeFilter<"KwpMaterialPosition"> | Date | string
|
|
updatedAt?: Prisma.DateTimeFilter<"KwpMaterialPosition"> | Date | string
|
|
archivedAt?: Prisma.DateTimeNullableFilter<"KwpMaterialPosition"> | Date | string | null
|
|
}, "id" | "tenantId_dataConnectionId_projektId_externalId">
|
|
|
|
export type KwpMaterialPositionOrderByWithAggregationInput = {
|
|
id?: Prisma.SortOrder
|
|
tenantId?: Prisma.SortOrder
|
|
dataConnectionId?: Prisma.SortOrder
|
|
projektId?: Prisma.SortOrder
|
|
externalId?: Prisma.SortOrder
|
|
positionNumber?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
text?: Prisma.SortOrder
|
|
longText?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
quantity?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
unit?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
unitPrice?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
totalPrice?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
positionMarker?: Prisma.SortOrder
|
|
normalizedFingerprint?: Prisma.SortOrder
|
|
lastSeenAt?: Prisma.SortOrder
|
|
lastSyncedAt?: Prisma.SortOrder
|
|
createdAt?: Prisma.SortOrder
|
|
updatedAt?: Prisma.SortOrder
|
|
archivedAt?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
_count?: Prisma.KwpMaterialPositionCountOrderByAggregateInput
|
|
_avg?: Prisma.KwpMaterialPositionAvgOrderByAggregateInput
|
|
_max?: Prisma.KwpMaterialPositionMaxOrderByAggregateInput
|
|
_min?: Prisma.KwpMaterialPositionMinOrderByAggregateInput
|
|
_sum?: Prisma.KwpMaterialPositionSumOrderByAggregateInput
|
|
}
|
|
|
|
export type KwpMaterialPositionScalarWhereWithAggregatesInput = {
|
|
AND?: Prisma.KwpMaterialPositionScalarWhereWithAggregatesInput | Prisma.KwpMaterialPositionScalarWhereWithAggregatesInput[]
|
|
OR?: Prisma.KwpMaterialPositionScalarWhereWithAggregatesInput[]
|
|
NOT?: Prisma.KwpMaterialPositionScalarWhereWithAggregatesInput | Prisma.KwpMaterialPositionScalarWhereWithAggregatesInput[]
|
|
id?: Prisma.StringWithAggregatesFilter<"KwpMaterialPosition"> | string
|
|
tenantId?: Prisma.StringWithAggregatesFilter<"KwpMaterialPosition"> | string
|
|
dataConnectionId?: Prisma.StringWithAggregatesFilter<"KwpMaterialPosition"> | string
|
|
projektId?: Prisma.StringWithAggregatesFilter<"KwpMaterialPosition"> | string
|
|
externalId?: Prisma.StringWithAggregatesFilter<"KwpMaterialPosition"> | string
|
|
positionNumber?: Prisma.StringNullableWithAggregatesFilter<"KwpMaterialPosition"> | string | null
|
|
text?: Prisma.StringWithAggregatesFilter<"KwpMaterialPosition"> | string
|
|
longText?: Prisma.StringNullableWithAggregatesFilter<"KwpMaterialPosition"> | string | null
|
|
quantity?: Prisma.DecimalNullableWithAggregatesFilter<"KwpMaterialPosition"> | runtime.Decimal | runtime.DecimalJsLike | number | string | null
|
|
unit?: Prisma.StringNullableWithAggregatesFilter<"KwpMaterialPosition"> | string | null
|
|
unitPrice?: Prisma.DecimalNullableWithAggregatesFilter<"KwpMaterialPosition"> | runtime.Decimal | runtime.DecimalJsLike | number | string | null
|
|
totalPrice?: Prisma.DecimalNullableWithAggregatesFilter<"KwpMaterialPosition"> | runtime.Decimal | runtime.DecimalJsLike | number | string | null
|
|
positionMarker?: Prisma.IntWithAggregatesFilter<"KwpMaterialPosition"> | number
|
|
normalizedFingerprint?: Prisma.StringWithAggregatesFilter<"KwpMaterialPosition"> | string
|
|
lastSeenAt?: Prisma.DateTimeWithAggregatesFilter<"KwpMaterialPosition"> | Date | string
|
|
lastSyncedAt?: Prisma.DateTimeWithAggregatesFilter<"KwpMaterialPosition"> | Date | string
|
|
createdAt?: Prisma.DateTimeWithAggregatesFilter<"KwpMaterialPosition"> | Date | string
|
|
updatedAt?: Prisma.DateTimeWithAggregatesFilter<"KwpMaterialPosition"> | Date | string
|
|
archivedAt?: Prisma.DateTimeNullableWithAggregatesFilter<"KwpMaterialPosition"> | Date | string | null
|
|
}
|
|
|
|
export type KwpMaterialPositionCreateInput = {
|
|
id?: string
|
|
tenantId: string
|
|
dataConnectionId: string
|
|
projektId: string
|
|
externalId: string
|
|
positionNumber?: string | null
|
|
text: string
|
|
longText?: string | null
|
|
quantity?: runtime.Decimal | runtime.DecimalJsLike | number | string | null
|
|
unit?: string | null
|
|
unitPrice?: runtime.Decimal | runtime.DecimalJsLike | number | string | null
|
|
totalPrice?: runtime.Decimal | runtime.DecimalJsLike | number | string | null
|
|
positionMarker: number
|
|
normalizedFingerprint: string
|
|
lastSeenAt: Date | string
|
|
lastSyncedAt: Date | string
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
archivedAt?: Date | string | null
|
|
}
|
|
|
|
export type KwpMaterialPositionUncheckedCreateInput = {
|
|
id?: string
|
|
tenantId: string
|
|
dataConnectionId: string
|
|
projektId: string
|
|
externalId: string
|
|
positionNumber?: string | null
|
|
text: string
|
|
longText?: string | null
|
|
quantity?: runtime.Decimal | runtime.DecimalJsLike | number | string | null
|
|
unit?: string | null
|
|
unitPrice?: runtime.Decimal | runtime.DecimalJsLike | number | string | null
|
|
totalPrice?: runtime.Decimal | runtime.DecimalJsLike | number | string | null
|
|
positionMarker: number
|
|
normalizedFingerprint: string
|
|
lastSeenAt: Date | string
|
|
lastSyncedAt: Date | string
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
archivedAt?: Date | string | null
|
|
}
|
|
|
|
export type KwpMaterialPositionUpdateInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
tenantId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
dataConnectionId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
projektId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
externalId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
positionNumber?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
text?: Prisma.StringFieldUpdateOperationsInput | string
|
|
longText?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
quantity?: Prisma.NullableDecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string | null
|
|
unit?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
unitPrice?: Prisma.NullableDecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string | null
|
|
totalPrice?: Prisma.NullableDecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string | null
|
|
positionMarker?: Prisma.IntFieldUpdateOperationsInput | number
|
|
normalizedFingerprint?: Prisma.StringFieldUpdateOperationsInput | string
|
|
lastSeenAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
lastSyncedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
archivedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
}
|
|
|
|
export type KwpMaterialPositionUncheckedUpdateInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
tenantId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
dataConnectionId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
projektId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
externalId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
positionNumber?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
text?: Prisma.StringFieldUpdateOperationsInput | string
|
|
longText?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
quantity?: Prisma.NullableDecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string | null
|
|
unit?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
unitPrice?: Prisma.NullableDecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string | null
|
|
totalPrice?: Prisma.NullableDecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string | null
|
|
positionMarker?: Prisma.IntFieldUpdateOperationsInput | number
|
|
normalizedFingerprint?: Prisma.StringFieldUpdateOperationsInput | string
|
|
lastSeenAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
lastSyncedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
archivedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
}
|
|
|
|
export type KwpMaterialPositionCreateManyInput = {
|
|
id?: string
|
|
tenantId: string
|
|
dataConnectionId: string
|
|
projektId: string
|
|
externalId: string
|
|
positionNumber?: string | null
|
|
text: string
|
|
longText?: string | null
|
|
quantity?: runtime.Decimal | runtime.DecimalJsLike | number | string | null
|
|
unit?: string | null
|
|
unitPrice?: runtime.Decimal | runtime.DecimalJsLike | number | string | null
|
|
totalPrice?: runtime.Decimal | runtime.DecimalJsLike | number | string | null
|
|
positionMarker: number
|
|
normalizedFingerprint: string
|
|
lastSeenAt: Date | string
|
|
lastSyncedAt: Date | string
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
archivedAt?: Date | string | null
|
|
}
|
|
|
|
export type KwpMaterialPositionUpdateManyMutationInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
tenantId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
dataConnectionId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
projektId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
externalId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
positionNumber?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
text?: Prisma.StringFieldUpdateOperationsInput | string
|
|
longText?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
quantity?: Prisma.NullableDecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string | null
|
|
unit?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
unitPrice?: Prisma.NullableDecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string | null
|
|
totalPrice?: Prisma.NullableDecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string | null
|
|
positionMarker?: Prisma.IntFieldUpdateOperationsInput | number
|
|
normalizedFingerprint?: Prisma.StringFieldUpdateOperationsInput | string
|
|
lastSeenAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
lastSyncedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
archivedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
}
|
|
|
|
export type KwpMaterialPositionUncheckedUpdateManyInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
tenantId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
dataConnectionId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
projektId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
externalId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
positionNumber?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
text?: Prisma.StringFieldUpdateOperationsInput | string
|
|
longText?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
quantity?: Prisma.NullableDecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string | null
|
|
unit?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
unitPrice?: Prisma.NullableDecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string | null
|
|
totalPrice?: Prisma.NullableDecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string | null
|
|
positionMarker?: Prisma.IntFieldUpdateOperationsInput | number
|
|
normalizedFingerprint?: Prisma.StringFieldUpdateOperationsInput | string
|
|
lastSeenAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
lastSyncedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
archivedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
}
|
|
|
|
export type KwpMaterialPositionTenantIdDataConnectionIdProjektIdExternalIdCompoundUniqueInput = {
|
|
tenantId: string
|
|
dataConnectionId: string
|
|
projektId: string
|
|
externalId: string
|
|
}
|
|
|
|
export type KwpMaterialPositionCountOrderByAggregateInput = {
|
|
id?: Prisma.SortOrder
|
|
tenantId?: Prisma.SortOrder
|
|
dataConnectionId?: Prisma.SortOrder
|
|
projektId?: Prisma.SortOrder
|
|
externalId?: Prisma.SortOrder
|
|
positionNumber?: Prisma.SortOrder
|
|
text?: Prisma.SortOrder
|
|
longText?: Prisma.SortOrder
|
|
quantity?: Prisma.SortOrder
|
|
unit?: Prisma.SortOrder
|
|
unitPrice?: Prisma.SortOrder
|
|
totalPrice?: Prisma.SortOrder
|
|
positionMarker?: Prisma.SortOrder
|
|
normalizedFingerprint?: Prisma.SortOrder
|
|
lastSeenAt?: Prisma.SortOrder
|
|
lastSyncedAt?: Prisma.SortOrder
|
|
createdAt?: Prisma.SortOrder
|
|
updatedAt?: Prisma.SortOrder
|
|
archivedAt?: Prisma.SortOrder
|
|
}
|
|
|
|
export type KwpMaterialPositionAvgOrderByAggregateInput = {
|
|
quantity?: Prisma.SortOrder
|
|
unitPrice?: Prisma.SortOrder
|
|
totalPrice?: Prisma.SortOrder
|
|
positionMarker?: Prisma.SortOrder
|
|
}
|
|
|
|
export type KwpMaterialPositionMaxOrderByAggregateInput = {
|
|
id?: Prisma.SortOrder
|
|
tenantId?: Prisma.SortOrder
|
|
dataConnectionId?: Prisma.SortOrder
|
|
projektId?: Prisma.SortOrder
|
|
externalId?: Prisma.SortOrder
|
|
positionNumber?: Prisma.SortOrder
|
|
text?: Prisma.SortOrder
|
|
longText?: Prisma.SortOrder
|
|
quantity?: Prisma.SortOrder
|
|
unit?: Prisma.SortOrder
|
|
unitPrice?: Prisma.SortOrder
|
|
totalPrice?: Prisma.SortOrder
|
|
positionMarker?: Prisma.SortOrder
|
|
normalizedFingerprint?: Prisma.SortOrder
|
|
lastSeenAt?: Prisma.SortOrder
|
|
lastSyncedAt?: Prisma.SortOrder
|
|
createdAt?: Prisma.SortOrder
|
|
updatedAt?: Prisma.SortOrder
|
|
archivedAt?: Prisma.SortOrder
|
|
}
|
|
|
|
export type KwpMaterialPositionMinOrderByAggregateInput = {
|
|
id?: Prisma.SortOrder
|
|
tenantId?: Prisma.SortOrder
|
|
dataConnectionId?: Prisma.SortOrder
|
|
projektId?: Prisma.SortOrder
|
|
externalId?: Prisma.SortOrder
|
|
positionNumber?: Prisma.SortOrder
|
|
text?: Prisma.SortOrder
|
|
longText?: Prisma.SortOrder
|
|
quantity?: Prisma.SortOrder
|
|
unit?: Prisma.SortOrder
|
|
unitPrice?: Prisma.SortOrder
|
|
totalPrice?: Prisma.SortOrder
|
|
positionMarker?: Prisma.SortOrder
|
|
normalizedFingerprint?: Prisma.SortOrder
|
|
lastSeenAt?: Prisma.SortOrder
|
|
lastSyncedAt?: Prisma.SortOrder
|
|
createdAt?: Prisma.SortOrder
|
|
updatedAt?: Prisma.SortOrder
|
|
archivedAt?: Prisma.SortOrder
|
|
}
|
|
|
|
export type KwpMaterialPositionSumOrderByAggregateInput = {
|
|
quantity?: Prisma.SortOrder
|
|
unitPrice?: Prisma.SortOrder
|
|
totalPrice?: Prisma.SortOrder
|
|
positionMarker?: Prisma.SortOrder
|
|
}
|
|
|
|
|
|
|
|
export type KwpMaterialPositionSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
id?: boolean
|
|
tenantId?: boolean
|
|
dataConnectionId?: boolean
|
|
projektId?: boolean
|
|
externalId?: boolean
|
|
positionNumber?: boolean
|
|
text?: boolean
|
|
longText?: boolean
|
|
quantity?: boolean
|
|
unit?: boolean
|
|
unitPrice?: boolean
|
|
totalPrice?: boolean
|
|
positionMarker?: boolean
|
|
normalizedFingerprint?: boolean
|
|
lastSeenAt?: boolean
|
|
lastSyncedAt?: boolean
|
|
createdAt?: boolean
|
|
updatedAt?: boolean
|
|
archivedAt?: boolean
|
|
}, ExtArgs["result"]["kwpMaterialPosition"]>
|
|
|
|
export type KwpMaterialPositionSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
id?: boolean
|
|
tenantId?: boolean
|
|
dataConnectionId?: boolean
|
|
projektId?: boolean
|
|
externalId?: boolean
|
|
positionNumber?: boolean
|
|
text?: boolean
|
|
longText?: boolean
|
|
quantity?: boolean
|
|
unit?: boolean
|
|
unitPrice?: boolean
|
|
totalPrice?: boolean
|
|
positionMarker?: boolean
|
|
normalizedFingerprint?: boolean
|
|
lastSeenAt?: boolean
|
|
lastSyncedAt?: boolean
|
|
createdAt?: boolean
|
|
updatedAt?: boolean
|
|
archivedAt?: boolean
|
|
}, ExtArgs["result"]["kwpMaterialPosition"]>
|
|
|
|
export type KwpMaterialPositionSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
id?: boolean
|
|
tenantId?: boolean
|
|
dataConnectionId?: boolean
|
|
projektId?: boolean
|
|
externalId?: boolean
|
|
positionNumber?: boolean
|
|
text?: boolean
|
|
longText?: boolean
|
|
quantity?: boolean
|
|
unit?: boolean
|
|
unitPrice?: boolean
|
|
totalPrice?: boolean
|
|
positionMarker?: boolean
|
|
normalizedFingerprint?: boolean
|
|
lastSeenAt?: boolean
|
|
lastSyncedAt?: boolean
|
|
createdAt?: boolean
|
|
updatedAt?: boolean
|
|
archivedAt?: boolean
|
|
}, ExtArgs["result"]["kwpMaterialPosition"]>
|
|
|
|
export type KwpMaterialPositionSelectScalar = {
|
|
id?: boolean
|
|
tenantId?: boolean
|
|
dataConnectionId?: boolean
|
|
projektId?: boolean
|
|
externalId?: boolean
|
|
positionNumber?: boolean
|
|
text?: boolean
|
|
longText?: boolean
|
|
quantity?: boolean
|
|
unit?: boolean
|
|
unitPrice?: boolean
|
|
totalPrice?: boolean
|
|
positionMarker?: boolean
|
|
normalizedFingerprint?: boolean
|
|
lastSeenAt?: boolean
|
|
lastSyncedAt?: boolean
|
|
createdAt?: boolean
|
|
updatedAt?: boolean
|
|
archivedAt?: boolean
|
|
}
|
|
|
|
export type KwpMaterialPositionOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "tenantId" | "dataConnectionId" | "projektId" | "externalId" | "positionNumber" | "text" | "longText" | "quantity" | "unit" | "unitPrice" | "totalPrice" | "positionMarker" | "normalizedFingerprint" | "lastSeenAt" | "lastSyncedAt" | "createdAt" | "updatedAt" | "archivedAt", ExtArgs["result"]["kwpMaterialPosition"]>
|
|
|
|
export type $KwpMaterialPositionPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
name: "KwpMaterialPosition"
|
|
objects: {}
|
|
scalars: runtime.Types.Extensions.GetPayloadResult<{
|
|
id: string
|
|
tenantId: string
|
|
dataConnectionId: string
|
|
projektId: string
|
|
externalId: string
|
|
positionNumber: string | null
|
|
text: string
|
|
longText: string | null
|
|
quantity: runtime.Decimal | null
|
|
unit: string | null
|
|
unitPrice: runtime.Decimal | null
|
|
totalPrice: runtime.Decimal | null
|
|
positionMarker: number
|
|
normalizedFingerprint: string
|
|
lastSeenAt: Date
|
|
lastSyncedAt: Date
|
|
createdAt: Date
|
|
updatedAt: Date
|
|
archivedAt: Date | null
|
|
}, ExtArgs["result"]["kwpMaterialPosition"]>
|
|
composites: {}
|
|
}
|
|
|
|
export type KwpMaterialPositionGetPayload<S extends boolean | null | undefined | KwpMaterialPositionDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$KwpMaterialPositionPayload, S>
|
|
|
|
export type KwpMaterialPositionCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> =
|
|
Omit<KwpMaterialPositionFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
|
|
select?: KwpMaterialPositionCountAggregateInputType | true
|
|
}
|
|
|
|
export interface KwpMaterialPositionDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
|
|
[K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['KwpMaterialPosition'], meta: { name: 'KwpMaterialPosition' } }
|
|
/**
|
|
* Find zero or one KwpMaterialPosition that matches the filter.
|
|
* @param {KwpMaterialPositionFindUniqueArgs} args - Arguments to find a KwpMaterialPosition
|
|
* @example
|
|
* // Get one KwpMaterialPosition
|
|
* const kwpMaterialPosition = await prisma.kwpMaterialPosition.findUnique({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findUnique<T extends KwpMaterialPositionFindUniqueArgs>(args: Prisma.SelectSubset<T, KwpMaterialPositionFindUniqueArgs<ExtArgs>>): Prisma.Prisma__KwpMaterialPositionClient<runtime.Types.Result.GetResult<Prisma.$KwpMaterialPositionPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Find one KwpMaterialPosition that matches the filter or throw an error with `error.code='P2025'`
|
|
* if no matches were found.
|
|
* @param {KwpMaterialPositionFindUniqueOrThrowArgs} args - Arguments to find a KwpMaterialPosition
|
|
* @example
|
|
* // Get one KwpMaterialPosition
|
|
* const kwpMaterialPosition = await prisma.kwpMaterialPosition.findUniqueOrThrow({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findUniqueOrThrow<T extends KwpMaterialPositionFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, KwpMaterialPositionFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__KwpMaterialPositionClient<runtime.Types.Result.GetResult<Prisma.$KwpMaterialPositionPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Find the first KwpMaterialPosition 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 {KwpMaterialPositionFindFirstArgs} args - Arguments to find a KwpMaterialPosition
|
|
* @example
|
|
* // Get one KwpMaterialPosition
|
|
* const kwpMaterialPosition = await prisma.kwpMaterialPosition.findFirst({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findFirst<T extends KwpMaterialPositionFindFirstArgs>(args?: Prisma.SelectSubset<T, KwpMaterialPositionFindFirstArgs<ExtArgs>>): Prisma.Prisma__KwpMaterialPositionClient<runtime.Types.Result.GetResult<Prisma.$KwpMaterialPositionPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Find the first KwpMaterialPosition 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 {KwpMaterialPositionFindFirstOrThrowArgs} args - Arguments to find a KwpMaterialPosition
|
|
* @example
|
|
* // Get one KwpMaterialPosition
|
|
* const kwpMaterialPosition = await prisma.kwpMaterialPosition.findFirstOrThrow({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findFirstOrThrow<T extends KwpMaterialPositionFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, KwpMaterialPositionFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__KwpMaterialPositionClient<runtime.Types.Result.GetResult<Prisma.$KwpMaterialPositionPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Find zero or more KwpMaterialPositions 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 {KwpMaterialPositionFindManyArgs} args - Arguments to filter and select certain fields only.
|
|
* @example
|
|
* // Get all KwpMaterialPositions
|
|
* const kwpMaterialPositions = await prisma.kwpMaterialPosition.findMany()
|
|
*
|
|
* // Get first 10 KwpMaterialPositions
|
|
* const kwpMaterialPositions = await prisma.kwpMaterialPosition.findMany({ take: 10 })
|
|
*
|
|
* // Only select the `id`
|
|
* const kwpMaterialPositionWithIdOnly = await prisma.kwpMaterialPosition.findMany({ select: { id: true } })
|
|
*
|
|
*/
|
|
findMany<T extends KwpMaterialPositionFindManyArgs>(args?: Prisma.SelectSubset<T, KwpMaterialPositionFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$KwpMaterialPositionPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
|
|
|
|
/**
|
|
* Create a KwpMaterialPosition.
|
|
* @param {KwpMaterialPositionCreateArgs} args - Arguments to create a KwpMaterialPosition.
|
|
* @example
|
|
* // Create one KwpMaterialPosition
|
|
* const KwpMaterialPosition = await prisma.kwpMaterialPosition.create({
|
|
* data: {
|
|
* // ... data to create a KwpMaterialPosition
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
create<T extends KwpMaterialPositionCreateArgs>(args: Prisma.SelectSubset<T, KwpMaterialPositionCreateArgs<ExtArgs>>): Prisma.Prisma__KwpMaterialPositionClient<runtime.Types.Result.GetResult<Prisma.$KwpMaterialPositionPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Create many KwpMaterialPositions.
|
|
* @param {KwpMaterialPositionCreateManyArgs} args - Arguments to create many KwpMaterialPositions.
|
|
* @example
|
|
* // Create many KwpMaterialPositions
|
|
* const kwpMaterialPosition = await prisma.kwpMaterialPosition.createMany({
|
|
* data: [
|
|
* // ... provide data here
|
|
* ]
|
|
* })
|
|
*
|
|
*/
|
|
createMany<T extends KwpMaterialPositionCreateManyArgs>(args?: Prisma.SelectSubset<T, KwpMaterialPositionCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
|
|
|
/**
|
|
* Create many KwpMaterialPositions and returns the data saved in the database.
|
|
* @param {KwpMaterialPositionCreateManyAndReturnArgs} args - Arguments to create many KwpMaterialPositions.
|
|
* @example
|
|
* // Create many KwpMaterialPositions
|
|
* const kwpMaterialPosition = await prisma.kwpMaterialPosition.createManyAndReturn({
|
|
* data: [
|
|
* // ... provide data here
|
|
* ]
|
|
* })
|
|
*
|
|
* // Create many KwpMaterialPositions and only return the `id`
|
|
* const kwpMaterialPositionWithIdOnly = await prisma.kwpMaterialPosition.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 KwpMaterialPositionCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, KwpMaterialPositionCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$KwpMaterialPositionPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>
|
|
|
|
/**
|
|
* Delete a KwpMaterialPosition.
|
|
* @param {KwpMaterialPositionDeleteArgs} args - Arguments to delete one KwpMaterialPosition.
|
|
* @example
|
|
* // Delete one KwpMaterialPosition
|
|
* const KwpMaterialPosition = await prisma.kwpMaterialPosition.delete({
|
|
* where: {
|
|
* // ... filter to delete one KwpMaterialPosition
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
delete<T extends KwpMaterialPositionDeleteArgs>(args: Prisma.SelectSubset<T, KwpMaterialPositionDeleteArgs<ExtArgs>>): Prisma.Prisma__KwpMaterialPositionClient<runtime.Types.Result.GetResult<Prisma.$KwpMaterialPositionPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Update one KwpMaterialPosition.
|
|
* @param {KwpMaterialPositionUpdateArgs} args - Arguments to update one KwpMaterialPosition.
|
|
* @example
|
|
* // Update one KwpMaterialPosition
|
|
* const kwpMaterialPosition = await prisma.kwpMaterialPosition.update({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* },
|
|
* data: {
|
|
* // ... provide data here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
update<T extends KwpMaterialPositionUpdateArgs>(args: Prisma.SelectSubset<T, KwpMaterialPositionUpdateArgs<ExtArgs>>): Prisma.Prisma__KwpMaterialPositionClient<runtime.Types.Result.GetResult<Prisma.$KwpMaterialPositionPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Delete zero or more KwpMaterialPositions.
|
|
* @param {KwpMaterialPositionDeleteManyArgs} args - Arguments to filter KwpMaterialPositions to delete.
|
|
* @example
|
|
* // Delete a few KwpMaterialPositions
|
|
* const { count } = await prisma.kwpMaterialPosition.deleteMany({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
deleteMany<T extends KwpMaterialPositionDeleteManyArgs>(args?: Prisma.SelectSubset<T, KwpMaterialPositionDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
|
|
|
/**
|
|
* Update zero or more KwpMaterialPositions.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {KwpMaterialPositionUpdateManyArgs} args - Arguments to update one or more rows.
|
|
* @example
|
|
* // Update many KwpMaterialPositions
|
|
* const kwpMaterialPosition = await prisma.kwpMaterialPosition.updateMany({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* },
|
|
* data: {
|
|
* // ... provide data here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
updateMany<T extends KwpMaterialPositionUpdateManyArgs>(args: Prisma.SelectSubset<T, KwpMaterialPositionUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
|
|
|
/**
|
|
* Update zero or more KwpMaterialPositions and returns the data updated in the database.
|
|
* @param {KwpMaterialPositionUpdateManyAndReturnArgs} args - Arguments to update many KwpMaterialPositions.
|
|
* @example
|
|
* // Update many KwpMaterialPositions
|
|
* const kwpMaterialPosition = await prisma.kwpMaterialPosition.updateManyAndReturn({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* },
|
|
* data: [
|
|
* // ... provide data here
|
|
* ]
|
|
* })
|
|
*
|
|
* // Update zero or more KwpMaterialPositions and only return the `id`
|
|
* const kwpMaterialPositionWithIdOnly = await prisma.kwpMaterialPosition.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 KwpMaterialPositionUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, KwpMaterialPositionUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$KwpMaterialPositionPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>
|
|
|
|
/**
|
|
* Create or update one KwpMaterialPosition.
|
|
* @param {KwpMaterialPositionUpsertArgs} args - Arguments to update or create a KwpMaterialPosition.
|
|
* @example
|
|
* // Update or create a KwpMaterialPosition
|
|
* const kwpMaterialPosition = await prisma.kwpMaterialPosition.upsert({
|
|
* create: {
|
|
* // ... data to create a KwpMaterialPosition
|
|
* },
|
|
* update: {
|
|
* // ... in case it already exists, update
|
|
* },
|
|
* where: {
|
|
* // ... the filter for the KwpMaterialPosition we want to update
|
|
* }
|
|
* })
|
|
*/
|
|
upsert<T extends KwpMaterialPositionUpsertArgs>(args: Prisma.SelectSubset<T, KwpMaterialPositionUpsertArgs<ExtArgs>>): Prisma.Prisma__KwpMaterialPositionClient<runtime.Types.Result.GetResult<Prisma.$KwpMaterialPositionPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
|
|
/**
|
|
* Count the number of KwpMaterialPositions.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {KwpMaterialPositionCountArgs} args - Arguments to filter KwpMaterialPositions to count.
|
|
* @example
|
|
* // Count the number of KwpMaterialPositions
|
|
* const count = await prisma.kwpMaterialPosition.count({
|
|
* where: {
|
|
* // ... the filter for the KwpMaterialPositions we want to count
|
|
* }
|
|
* })
|
|
**/
|
|
count<T extends KwpMaterialPositionCountArgs>(
|
|
args?: Prisma.Subset<T, KwpMaterialPositionCountArgs>,
|
|
): Prisma.PrismaPromise<
|
|
T extends runtime.Types.Utils.Record<'select', any>
|
|
? T['select'] extends true
|
|
? number
|
|
: Prisma.GetScalarType<T['select'], KwpMaterialPositionCountAggregateOutputType>
|
|
: number
|
|
>
|
|
|
|
/**
|
|
* Allows you to perform aggregations operations on a KwpMaterialPosition.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {KwpMaterialPositionAggregateArgs} 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 KwpMaterialPositionAggregateArgs>(args: Prisma.Subset<T, KwpMaterialPositionAggregateArgs>): Prisma.PrismaPromise<GetKwpMaterialPositionAggregateType<T>>
|
|
|
|
/**
|
|
* Group by KwpMaterialPosition.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {KwpMaterialPositionGroupByArgs} 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 KwpMaterialPositionGroupByArgs,
|
|
HasSelectOrTake extends Prisma.Or<
|
|
Prisma.Extends<'skip', Prisma.Keys<T>>,
|
|
Prisma.Extends<'take', Prisma.Keys<T>>
|
|
>,
|
|
OrderByArg extends Prisma.True extends HasSelectOrTake
|
|
? { orderBy: KwpMaterialPositionGroupByArgs['orderBy'] }
|
|
: { orderBy?: KwpMaterialPositionGroupByArgs['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, KwpMaterialPositionGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetKwpMaterialPositionGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
|
|
/**
|
|
* Fields of the KwpMaterialPosition model
|
|
*/
|
|
readonly fields: KwpMaterialPositionFieldRefs;
|
|
}
|
|
|
|
/**
|
|
* The delegate class that acts as a "Promise-like" for KwpMaterialPosition.
|
|
* 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__KwpMaterialPositionClient<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 KwpMaterialPosition model
|
|
*/
|
|
export interface KwpMaterialPositionFieldRefs {
|
|
readonly id: Prisma.FieldRef<"KwpMaterialPosition", 'String'>
|
|
readonly tenantId: Prisma.FieldRef<"KwpMaterialPosition", 'String'>
|
|
readonly dataConnectionId: Prisma.FieldRef<"KwpMaterialPosition", 'String'>
|
|
readonly projektId: Prisma.FieldRef<"KwpMaterialPosition", 'String'>
|
|
readonly externalId: Prisma.FieldRef<"KwpMaterialPosition", 'String'>
|
|
readonly positionNumber: Prisma.FieldRef<"KwpMaterialPosition", 'String'>
|
|
readonly text: Prisma.FieldRef<"KwpMaterialPosition", 'String'>
|
|
readonly longText: Prisma.FieldRef<"KwpMaterialPosition", 'String'>
|
|
readonly quantity: Prisma.FieldRef<"KwpMaterialPosition", 'Decimal'>
|
|
readonly unit: Prisma.FieldRef<"KwpMaterialPosition", 'String'>
|
|
readonly unitPrice: Prisma.FieldRef<"KwpMaterialPosition", 'Decimal'>
|
|
readonly totalPrice: Prisma.FieldRef<"KwpMaterialPosition", 'Decimal'>
|
|
readonly positionMarker: Prisma.FieldRef<"KwpMaterialPosition", 'Int'>
|
|
readonly normalizedFingerprint: Prisma.FieldRef<"KwpMaterialPosition", 'String'>
|
|
readonly lastSeenAt: Prisma.FieldRef<"KwpMaterialPosition", 'DateTime'>
|
|
readonly lastSyncedAt: Prisma.FieldRef<"KwpMaterialPosition", 'DateTime'>
|
|
readonly createdAt: Prisma.FieldRef<"KwpMaterialPosition", 'DateTime'>
|
|
readonly updatedAt: Prisma.FieldRef<"KwpMaterialPosition", 'DateTime'>
|
|
readonly archivedAt: Prisma.FieldRef<"KwpMaterialPosition", 'DateTime'>
|
|
}
|
|
|
|
|
|
// Custom InputTypes
|
|
/**
|
|
* KwpMaterialPosition findUnique
|
|
*/
|
|
export type KwpMaterialPositionFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the KwpMaterialPosition
|
|
*/
|
|
select?: Prisma.KwpMaterialPositionSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the KwpMaterialPosition
|
|
*/
|
|
omit?: Prisma.KwpMaterialPositionOmit<ExtArgs> | null
|
|
/**
|
|
* Filter, which KwpMaterialPosition to fetch.
|
|
*/
|
|
where: Prisma.KwpMaterialPositionWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* KwpMaterialPosition findUniqueOrThrow
|
|
*/
|
|
export type KwpMaterialPositionFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the KwpMaterialPosition
|
|
*/
|
|
select?: Prisma.KwpMaterialPositionSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the KwpMaterialPosition
|
|
*/
|
|
omit?: Prisma.KwpMaterialPositionOmit<ExtArgs> | null
|
|
/**
|
|
* Filter, which KwpMaterialPosition to fetch.
|
|
*/
|
|
where: Prisma.KwpMaterialPositionWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* KwpMaterialPosition findFirst
|
|
*/
|
|
export type KwpMaterialPositionFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the KwpMaterialPosition
|
|
*/
|
|
select?: Prisma.KwpMaterialPositionSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the KwpMaterialPosition
|
|
*/
|
|
omit?: Prisma.KwpMaterialPositionOmit<ExtArgs> | null
|
|
/**
|
|
* Filter, which KwpMaterialPosition to fetch.
|
|
*/
|
|
where?: Prisma.KwpMaterialPositionWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of KwpMaterialPositions to fetch.
|
|
*/
|
|
orderBy?: Prisma.KwpMaterialPositionOrderByWithRelationInput | Prisma.KwpMaterialPositionOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for searching for KwpMaterialPositions.
|
|
*/
|
|
cursor?: Prisma.KwpMaterialPositionWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` KwpMaterialPositions 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` KwpMaterialPositions.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
*
|
|
* Filter by unique combinations of KwpMaterialPositions.
|
|
*/
|
|
distinct?: Prisma.KwpMaterialPositionScalarFieldEnum | Prisma.KwpMaterialPositionScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* KwpMaterialPosition findFirstOrThrow
|
|
*/
|
|
export type KwpMaterialPositionFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the KwpMaterialPosition
|
|
*/
|
|
select?: Prisma.KwpMaterialPositionSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the KwpMaterialPosition
|
|
*/
|
|
omit?: Prisma.KwpMaterialPositionOmit<ExtArgs> | null
|
|
/**
|
|
* Filter, which KwpMaterialPosition to fetch.
|
|
*/
|
|
where?: Prisma.KwpMaterialPositionWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of KwpMaterialPositions to fetch.
|
|
*/
|
|
orderBy?: Prisma.KwpMaterialPositionOrderByWithRelationInput | Prisma.KwpMaterialPositionOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for searching for KwpMaterialPositions.
|
|
*/
|
|
cursor?: Prisma.KwpMaterialPositionWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` KwpMaterialPositions 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` KwpMaterialPositions.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
*
|
|
* Filter by unique combinations of KwpMaterialPositions.
|
|
*/
|
|
distinct?: Prisma.KwpMaterialPositionScalarFieldEnum | Prisma.KwpMaterialPositionScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* KwpMaterialPosition findMany
|
|
*/
|
|
export type KwpMaterialPositionFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the KwpMaterialPosition
|
|
*/
|
|
select?: Prisma.KwpMaterialPositionSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the KwpMaterialPosition
|
|
*/
|
|
omit?: Prisma.KwpMaterialPositionOmit<ExtArgs> | null
|
|
/**
|
|
* Filter, which KwpMaterialPositions to fetch.
|
|
*/
|
|
where?: Prisma.KwpMaterialPositionWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of KwpMaterialPositions to fetch.
|
|
*/
|
|
orderBy?: Prisma.KwpMaterialPositionOrderByWithRelationInput | Prisma.KwpMaterialPositionOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for listing KwpMaterialPositions.
|
|
*/
|
|
cursor?: Prisma.KwpMaterialPositionWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` KwpMaterialPositions 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` KwpMaterialPositions.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
*
|
|
* Filter by unique combinations of KwpMaterialPositions.
|
|
*/
|
|
distinct?: Prisma.KwpMaterialPositionScalarFieldEnum | Prisma.KwpMaterialPositionScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* KwpMaterialPosition create
|
|
*/
|
|
export type KwpMaterialPositionCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the KwpMaterialPosition
|
|
*/
|
|
select?: Prisma.KwpMaterialPositionSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the KwpMaterialPosition
|
|
*/
|
|
omit?: Prisma.KwpMaterialPositionOmit<ExtArgs> | null
|
|
/**
|
|
* The data needed to create a KwpMaterialPosition.
|
|
*/
|
|
data: Prisma.XOR<Prisma.KwpMaterialPositionCreateInput, Prisma.KwpMaterialPositionUncheckedCreateInput>
|
|
}
|
|
|
|
/**
|
|
* KwpMaterialPosition createMany
|
|
*/
|
|
export type KwpMaterialPositionCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* The data used to create many KwpMaterialPositions.
|
|
*/
|
|
data: Prisma.KwpMaterialPositionCreateManyInput | Prisma.KwpMaterialPositionCreateManyInput[]
|
|
skipDuplicates?: boolean
|
|
}
|
|
|
|
/**
|
|
* KwpMaterialPosition createManyAndReturn
|
|
*/
|
|
export type KwpMaterialPositionCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the KwpMaterialPosition
|
|
*/
|
|
select?: Prisma.KwpMaterialPositionSelectCreateManyAndReturn<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the KwpMaterialPosition
|
|
*/
|
|
omit?: Prisma.KwpMaterialPositionOmit<ExtArgs> | null
|
|
/**
|
|
* The data used to create many KwpMaterialPositions.
|
|
*/
|
|
data: Prisma.KwpMaterialPositionCreateManyInput | Prisma.KwpMaterialPositionCreateManyInput[]
|
|
skipDuplicates?: boolean
|
|
}
|
|
|
|
/**
|
|
* KwpMaterialPosition update
|
|
*/
|
|
export type KwpMaterialPositionUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the KwpMaterialPosition
|
|
*/
|
|
select?: Prisma.KwpMaterialPositionSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the KwpMaterialPosition
|
|
*/
|
|
omit?: Prisma.KwpMaterialPositionOmit<ExtArgs> | null
|
|
/**
|
|
* The data needed to update a KwpMaterialPosition.
|
|
*/
|
|
data: Prisma.XOR<Prisma.KwpMaterialPositionUpdateInput, Prisma.KwpMaterialPositionUncheckedUpdateInput>
|
|
/**
|
|
* Choose, which KwpMaterialPosition to update.
|
|
*/
|
|
where: Prisma.KwpMaterialPositionWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* KwpMaterialPosition updateMany
|
|
*/
|
|
export type KwpMaterialPositionUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* The data used to update KwpMaterialPositions.
|
|
*/
|
|
data: Prisma.XOR<Prisma.KwpMaterialPositionUpdateManyMutationInput, Prisma.KwpMaterialPositionUncheckedUpdateManyInput>
|
|
/**
|
|
* Filter which KwpMaterialPositions to update
|
|
*/
|
|
where?: Prisma.KwpMaterialPositionWhereInput
|
|
/**
|
|
* Limit how many KwpMaterialPositions to update.
|
|
*/
|
|
limit?: number
|
|
}
|
|
|
|
/**
|
|
* KwpMaterialPosition updateManyAndReturn
|
|
*/
|
|
export type KwpMaterialPositionUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the KwpMaterialPosition
|
|
*/
|
|
select?: Prisma.KwpMaterialPositionSelectUpdateManyAndReturn<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the KwpMaterialPosition
|
|
*/
|
|
omit?: Prisma.KwpMaterialPositionOmit<ExtArgs> | null
|
|
/**
|
|
* The data used to update KwpMaterialPositions.
|
|
*/
|
|
data: Prisma.XOR<Prisma.KwpMaterialPositionUpdateManyMutationInput, Prisma.KwpMaterialPositionUncheckedUpdateManyInput>
|
|
/**
|
|
* Filter which KwpMaterialPositions to update
|
|
*/
|
|
where?: Prisma.KwpMaterialPositionWhereInput
|
|
/**
|
|
* Limit how many KwpMaterialPositions to update.
|
|
*/
|
|
limit?: number
|
|
}
|
|
|
|
/**
|
|
* KwpMaterialPosition upsert
|
|
*/
|
|
export type KwpMaterialPositionUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the KwpMaterialPosition
|
|
*/
|
|
select?: Prisma.KwpMaterialPositionSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the KwpMaterialPosition
|
|
*/
|
|
omit?: Prisma.KwpMaterialPositionOmit<ExtArgs> | null
|
|
/**
|
|
* The filter to search for the KwpMaterialPosition to update in case it exists.
|
|
*/
|
|
where: Prisma.KwpMaterialPositionWhereUniqueInput
|
|
/**
|
|
* In case the KwpMaterialPosition found by the `where` argument doesn't exist, create a new KwpMaterialPosition with this data.
|
|
*/
|
|
create: Prisma.XOR<Prisma.KwpMaterialPositionCreateInput, Prisma.KwpMaterialPositionUncheckedCreateInput>
|
|
/**
|
|
* In case the KwpMaterialPosition was found with the provided `where` argument, update it with this data.
|
|
*/
|
|
update: Prisma.XOR<Prisma.KwpMaterialPositionUpdateInput, Prisma.KwpMaterialPositionUncheckedUpdateInput>
|
|
}
|
|
|
|
/**
|
|
* KwpMaterialPosition delete
|
|
*/
|
|
export type KwpMaterialPositionDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the KwpMaterialPosition
|
|
*/
|
|
select?: Prisma.KwpMaterialPositionSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the KwpMaterialPosition
|
|
*/
|
|
omit?: Prisma.KwpMaterialPositionOmit<ExtArgs> | null
|
|
/**
|
|
* Filter which KwpMaterialPosition to delete.
|
|
*/
|
|
where: Prisma.KwpMaterialPositionWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* KwpMaterialPosition deleteMany
|
|
*/
|
|
export type KwpMaterialPositionDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Filter which KwpMaterialPositions to delete
|
|
*/
|
|
where?: Prisma.KwpMaterialPositionWhereInput
|
|
/**
|
|
* Limit how many KwpMaterialPositions to delete.
|
|
*/
|
|
limit?: number
|
|
}
|
|
|
|
/**
|
|
* KwpMaterialPosition without action
|
|
*/
|
|
export type KwpMaterialPositionDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the KwpMaterialPosition
|
|
*/
|
|
select?: Prisma.KwpMaterialPositionSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the KwpMaterialPosition
|
|
*/
|
|
omit?: Prisma.KwpMaterialPositionOmit<ExtArgs> | null
|
|
}
|