/* !!! 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 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 = { /** * 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 = { [P in keyof T & keyof AggregateKwpMaterialPosition]: P extends '_count' | 'count' ? T[P] extends true ? number : Prisma.GetScalarType : Prisma.GetScalarType } export type KwpMaterialPositionGroupByArgs = { 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 = Prisma.PrismaPromise< Array< Prisma.PickEnumerable & { [P in ((keyof T) & (keyof KwpMaterialPositionGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : Prisma.GetScalarType : Prisma.GetScalarType } > > 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 = 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 = 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 = 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 = 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 = { 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 = runtime.Types.Result.GetResult export type KwpMaterialPositionCountArgs = Omit & { select?: KwpMaterialPositionCountAggregateInputType | true } export interface KwpMaterialPositionDelegate { [K: symbol]: { types: Prisma.TypeMap['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(args: Prisma.SelectSubset>): Prisma.Prisma__KwpMaterialPositionClient, 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(args: Prisma.SelectSubset>): Prisma.Prisma__KwpMaterialPositionClient, 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(args?: Prisma.SelectSubset>): Prisma.Prisma__KwpMaterialPositionClient, 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(args?: Prisma.SelectSubset>): Prisma.Prisma__KwpMaterialPositionClient, 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(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, 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(args: Prisma.SelectSubset>): Prisma.Prisma__KwpMaterialPositionClient, 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(args?: Prisma.SelectSubset>): Prisma.PrismaPromise /** * 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(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, 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(args: Prisma.SelectSubset>): Prisma.Prisma__KwpMaterialPositionClient, 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(args: Prisma.SelectSubset>): Prisma.Prisma__KwpMaterialPositionClient, 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(args?: Prisma.SelectSubset>): Prisma.PrismaPromise /** * 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(args: Prisma.SelectSubset>): Prisma.PrismaPromise /** * 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(args: Prisma.SelectSubset>): Prisma.PrismaPromise, 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(args: Prisma.SelectSubset>): Prisma.Prisma__KwpMaterialPositionClient, 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( args?: Prisma.Subset, ): Prisma.PrismaPromise< T extends runtime.Types.Utils.Record<'select', any> ? T['select'] extends true ? number : Prisma.GetScalarType : number > /** * Allows you to perform aggregations operations on a 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(args: Prisma.Subset): Prisma.PrismaPromise> /** * 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>, Prisma.Extends<'take', Prisma.Keys> >, OrderByArg extends Prisma.True extends HasSelectOrTake ? { orderBy: KwpMaterialPositionGroupByArgs['orderBy'] } : { orderBy?: KwpMaterialPositionGroupByArgs['orderBy'] }, OrderFields extends Prisma.ExcludeUnderscoreKeys>>, ByFields extends Prisma.MaybeTupleToUnion, ByValid extends Prisma.Has, HavingFields extends Prisma.GetHavingFields, HavingValid extends Prisma.Has, ByEmpty extends T['by'] extends never[] ? Prisma.True : Prisma.False, InputErrors extends ByEmpty extends Prisma.True ? `Error: "by" must not be empty.` : HavingValid extends Prisma.False ? { [P in HavingFields]: P extends ByFields ? never : P extends string ? `Error: Field "${P}" used in "having" needs to be provided in "by".` : [ Error, 'Field ', P, ` in "having" needs to be provided in "by"`, ] }[HavingFields] : 'take' extends Prisma.Keys ? 'orderBy' extends Prisma.Keys ? ByValid extends Prisma.True ? {} : { [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` }[OrderFields] : 'Error: If you provide "take", you also need to provide "orderBy"' : 'skip' extends Prisma.Keys ? 'orderBy' extends Prisma.Keys ? ByValid extends Prisma.True ? {} : { [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` }[OrderFields] : 'Error: If you provide "skip", you also need to provide "orderBy"' : ByValid extends Prisma.True ? {} : { [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` }[OrderFields] >(args: Prisma.SubsetIntersection & InputErrors): {} extends InputErrors ? GetKwpMaterialPositionGroupByPayload : Prisma.PrismaPromise /** * 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 extends Prisma.PrismaPromise { readonly [Symbol.toStringTag]: "PrismaPromise" /** * Attaches callbacks for the resolution and/or rejection of the Promise. * @param onfulfilled The callback to execute when the Promise is resolved. * @param onrejected The callback to execute when the Promise is rejected. * @returns A Promise for the completion of which ever callback is executed. */ then(onfulfilled?: ((value: T) => TResult1 | PromiseLike) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike) | undefined | null): runtime.Types.Utils.JsPromise /** * Attaches a callback for only the rejection of the Promise. * @param onrejected The callback to execute when the Promise is rejected. * @returns A Promise for the completion of the callback. */ catch(onrejected?: ((reason: any) => TResult | PromiseLike) | undefined | null): runtime.Types.Utils.JsPromise /** * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The * resolved value cannot be modified from the callback. * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected). * @returns A Promise for the completion of the callback. */ finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise } /** * Fields of the 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 = { /** * Select specific fields to fetch from the KwpMaterialPosition */ select?: Prisma.KwpMaterialPositionSelect | null /** * Omit specific fields from the KwpMaterialPosition */ omit?: Prisma.KwpMaterialPositionOmit | null /** * Filter, which KwpMaterialPosition to fetch. */ where: Prisma.KwpMaterialPositionWhereUniqueInput } /** * KwpMaterialPosition findUniqueOrThrow */ export type KwpMaterialPositionFindUniqueOrThrowArgs = { /** * Select specific fields to fetch from the KwpMaterialPosition */ select?: Prisma.KwpMaterialPositionSelect | null /** * Omit specific fields from the KwpMaterialPosition */ omit?: Prisma.KwpMaterialPositionOmit | null /** * Filter, which KwpMaterialPosition to fetch. */ where: Prisma.KwpMaterialPositionWhereUniqueInput } /** * KwpMaterialPosition findFirst */ export type KwpMaterialPositionFindFirstArgs = { /** * Select specific fields to fetch from the KwpMaterialPosition */ select?: Prisma.KwpMaterialPositionSelect | null /** * Omit specific fields from the KwpMaterialPosition */ omit?: Prisma.KwpMaterialPositionOmit | 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 = { /** * Select specific fields to fetch from the KwpMaterialPosition */ select?: Prisma.KwpMaterialPositionSelect | null /** * Omit specific fields from the KwpMaterialPosition */ omit?: Prisma.KwpMaterialPositionOmit | 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 = { /** * Select specific fields to fetch from the KwpMaterialPosition */ select?: Prisma.KwpMaterialPositionSelect | null /** * Omit specific fields from the KwpMaterialPosition */ omit?: Prisma.KwpMaterialPositionOmit | 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 = { /** * Select specific fields to fetch from the KwpMaterialPosition */ select?: Prisma.KwpMaterialPositionSelect | null /** * Omit specific fields from the KwpMaterialPosition */ omit?: Prisma.KwpMaterialPositionOmit | null /** * The data needed to create a KwpMaterialPosition. */ data: Prisma.XOR } /** * KwpMaterialPosition createMany */ export type KwpMaterialPositionCreateManyArgs = { /** * The data used to create many KwpMaterialPositions. */ data: Prisma.KwpMaterialPositionCreateManyInput | Prisma.KwpMaterialPositionCreateManyInput[] skipDuplicates?: boolean } /** * KwpMaterialPosition createManyAndReturn */ export type KwpMaterialPositionCreateManyAndReturnArgs = { /** * Select specific fields to fetch from the KwpMaterialPosition */ select?: Prisma.KwpMaterialPositionSelectCreateManyAndReturn | null /** * Omit specific fields from the KwpMaterialPosition */ omit?: Prisma.KwpMaterialPositionOmit | null /** * The data used to create many KwpMaterialPositions. */ data: Prisma.KwpMaterialPositionCreateManyInput | Prisma.KwpMaterialPositionCreateManyInput[] skipDuplicates?: boolean } /** * KwpMaterialPosition update */ export type KwpMaterialPositionUpdateArgs = { /** * Select specific fields to fetch from the KwpMaterialPosition */ select?: Prisma.KwpMaterialPositionSelect | null /** * Omit specific fields from the KwpMaterialPosition */ omit?: Prisma.KwpMaterialPositionOmit | null /** * The data needed to update a KwpMaterialPosition. */ data: Prisma.XOR /** * Choose, which KwpMaterialPosition to update. */ where: Prisma.KwpMaterialPositionWhereUniqueInput } /** * KwpMaterialPosition updateMany */ export type KwpMaterialPositionUpdateManyArgs = { /** * The data used to update KwpMaterialPositions. */ data: Prisma.XOR /** * Filter which KwpMaterialPositions to update */ where?: Prisma.KwpMaterialPositionWhereInput /** * Limit how many KwpMaterialPositions to update. */ limit?: number } /** * KwpMaterialPosition updateManyAndReturn */ export type KwpMaterialPositionUpdateManyAndReturnArgs = { /** * Select specific fields to fetch from the KwpMaterialPosition */ select?: Prisma.KwpMaterialPositionSelectUpdateManyAndReturn | null /** * Omit specific fields from the KwpMaterialPosition */ omit?: Prisma.KwpMaterialPositionOmit | null /** * The data used to update KwpMaterialPositions. */ data: Prisma.XOR /** * Filter which KwpMaterialPositions to update */ where?: Prisma.KwpMaterialPositionWhereInput /** * Limit how many KwpMaterialPositions to update. */ limit?: number } /** * KwpMaterialPosition upsert */ export type KwpMaterialPositionUpsertArgs = { /** * Select specific fields to fetch from the KwpMaterialPosition */ select?: Prisma.KwpMaterialPositionSelect | null /** * Omit specific fields from the KwpMaterialPosition */ omit?: Prisma.KwpMaterialPositionOmit | 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 /** * In case the KwpMaterialPosition was found with the provided `where` argument, update it with this data. */ update: Prisma.XOR } /** * KwpMaterialPosition delete */ export type KwpMaterialPositionDeleteArgs = { /** * Select specific fields to fetch from the KwpMaterialPosition */ select?: Prisma.KwpMaterialPositionSelect | null /** * Omit specific fields from the KwpMaterialPosition */ omit?: Prisma.KwpMaterialPositionOmit | null /** * Filter which KwpMaterialPosition to delete. */ where: Prisma.KwpMaterialPositionWhereUniqueInput } /** * KwpMaterialPosition deleteMany */ export type KwpMaterialPositionDeleteManyArgs = { /** * Filter which KwpMaterialPositions to delete */ where?: Prisma.KwpMaterialPositionWhereInput /** * Limit how many KwpMaterialPositions to delete. */ limit?: number } /** * KwpMaterialPosition without action */ export type KwpMaterialPositionDefaultArgs = { /** * Select specific fields to fetch from the KwpMaterialPosition */ select?: Prisma.KwpMaterialPositionSelect | null /** * Omit specific fields from the KwpMaterialPosition */ omit?: Prisma.KwpMaterialPositionOmit | null }