Files
psp_api/src/generated/prisma/models/InventoryTransferItem.ts
T

1344 lines
59 KiB
TypeScript
Raw Normal View History

/* !!! This is code generated by Prisma. Do not edit directly. !!! */
/* eslint-disable */
// biome-ignore-all lint: generated file
// @ts-nocheck
/*
* This file exports the `InventoryTransferItem` 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.js"
import type * as Prisma from "../internal/prismaNamespace.js"
/**
* Model InventoryTransferItem
*
*/
export type InventoryTransferItemModel = runtime.Types.Result.DefaultSelection<Prisma.$InventoryTransferItemPayload>
export type AggregateInventoryTransferItem = {
_count: InventoryTransferItemCountAggregateOutputType | null
_avg: InventoryTransferItemAvgAggregateOutputType | null
_sum: InventoryTransferItemSumAggregateOutputType | null
_min: InventoryTransferItemMinAggregateOutputType | null
_max: InventoryTransferItemMaxAggregateOutputType | null
}
export type InventoryTransferItemAvgAggregateOutputType = {
id: number | null
count: runtime.Decimal | null
productId: number | null
transferId: number | null
}
export type InventoryTransferItemSumAggregateOutputType = {
id: number | null
count: runtime.Decimal | null
productId: number | null
transferId: number | null
}
export type InventoryTransferItemMinAggregateOutputType = {
id: number | null
count: runtime.Decimal | null
productId: number | null
transferId: number | null
}
export type InventoryTransferItemMaxAggregateOutputType = {
id: number | null
count: runtime.Decimal | null
productId: number | null
transferId: number | null
}
export type InventoryTransferItemCountAggregateOutputType = {
id: number
count: number
productId: number
transferId: number
_all: number
}
export type InventoryTransferItemAvgAggregateInputType = {
id?: true
count?: true
productId?: true
transferId?: true
}
export type InventoryTransferItemSumAggregateInputType = {
id?: true
count?: true
productId?: true
transferId?: true
}
export type InventoryTransferItemMinAggregateInputType = {
id?: true
count?: true
productId?: true
transferId?: true
}
export type InventoryTransferItemMaxAggregateInputType = {
id?: true
count?: true
productId?: true
transferId?: true
}
export type InventoryTransferItemCountAggregateInputType = {
id?: true
count?: true
productId?: true
transferId?: true
_all?: true
}
export type InventoryTransferItemAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Filter which InventoryTransferItem to aggregate.
*/
where?: Prisma.InventoryTransferItemWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of InventoryTransferItems to fetch.
*/
orderBy?: Prisma.InventoryTransferItemOrderByWithRelationInput | Prisma.InventoryTransferItemOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the start position
*/
cursor?: Prisma.InventoryTransferItemWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` InventoryTransferItems 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` InventoryTransferItems.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Count returned InventoryTransferItems
**/
_count?: true | InventoryTransferItemCountAggregateInputType
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to average
**/
_avg?: InventoryTransferItemAvgAggregateInputType
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to sum
**/
_sum?: InventoryTransferItemSumAggregateInputType
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to find the minimum value
**/
_min?: InventoryTransferItemMinAggregateInputType
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to find the maximum value
**/
_max?: InventoryTransferItemMaxAggregateInputType
}
export type GetInventoryTransferItemAggregateType<T extends InventoryTransferItemAggregateArgs> = {
[P in keyof T & keyof AggregateInventoryTransferItem]: P extends '_count' | 'count'
? T[P] extends true
? number
: Prisma.GetScalarType<T[P], AggregateInventoryTransferItem[P]>
: Prisma.GetScalarType<T[P], AggregateInventoryTransferItem[P]>
}
export type InventoryTransferItemGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
where?: Prisma.InventoryTransferItemWhereInput
orderBy?: Prisma.InventoryTransferItemOrderByWithAggregationInput | Prisma.InventoryTransferItemOrderByWithAggregationInput[]
by: Prisma.InventoryTransferItemScalarFieldEnum[] | Prisma.InventoryTransferItemScalarFieldEnum
having?: Prisma.InventoryTransferItemScalarWhereWithAggregatesInput
take?: number
skip?: number
_count?: InventoryTransferItemCountAggregateInputType | true
_avg?: InventoryTransferItemAvgAggregateInputType
_sum?: InventoryTransferItemSumAggregateInputType
_min?: InventoryTransferItemMinAggregateInputType
_max?: InventoryTransferItemMaxAggregateInputType
}
export type InventoryTransferItemGroupByOutputType = {
id: number
count: runtime.Decimal
productId: number
transferId: number
_count: InventoryTransferItemCountAggregateOutputType | null
_avg: InventoryTransferItemAvgAggregateOutputType | null
_sum: InventoryTransferItemSumAggregateOutputType | null
_min: InventoryTransferItemMinAggregateOutputType | null
_max: InventoryTransferItemMaxAggregateOutputType | null
}
type GetInventoryTransferItemGroupByPayload<T extends InventoryTransferItemGroupByArgs> = Prisma.PrismaPromise<
Array<
Prisma.PickEnumerable<InventoryTransferItemGroupByOutputType, T['by']> &
{
[P in ((keyof T) & (keyof InventoryTransferItemGroupByOutputType))]: P extends '_count'
? T[P] extends boolean
? number
: Prisma.GetScalarType<T[P], InventoryTransferItemGroupByOutputType[P]>
: Prisma.GetScalarType<T[P], InventoryTransferItemGroupByOutputType[P]>
}
>
>
export type InventoryTransferItemWhereInput = {
AND?: Prisma.InventoryTransferItemWhereInput | Prisma.InventoryTransferItemWhereInput[]
OR?: Prisma.InventoryTransferItemWhereInput[]
NOT?: Prisma.InventoryTransferItemWhereInput | Prisma.InventoryTransferItemWhereInput[]
id?: Prisma.IntFilter<"InventoryTransferItem"> | number
count?: Prisma.DecimalFilter<"InventoryTransferItem"> | runtime.Decimal | runtime.DecimalJsLike | number | string
productId?: Prisma.IntFilter<"InventoryTransferItem"> | number
transferId?: Prisma.IntFilter<"InventoryTransferItem"> | number
product?: Prisma.XOR<Prisma.ProductScalarRelationFilter, Prisma.ProductWhereInput>
transfer?: Prisma.XOR<Prisma.InventoryTransferScalarRelationFilter, Prisma.InventoryTransferWhereInput>
}
export type InventoryTransferItemOrderByWithRelationInput = {
id?: Prisma.SortOrder
count?: Prisma.SortOrder
productId?: Prisma.SortOrder
transferId?: Prisma.SortOrder
product?: Prisma.ProductOrderByWithRelationInput
transfer?: Prisma.InventoryTransferOrderByWithRelationInput
}
export type InventoryTransferItemWhereUniqueInput = Prisma.AtLeast<{
id?: number
AND?: Prisma.InventoryTransferItemWhereInput | Prisma.InventoryTransferItemWhereInput[]
OR?: Prisma.InventoryTransferItemWhereInput[]
NOT?: Prisma.InventoryTransferItemWhereInput | Prisma.InventoryTransferItemWhereInput[]
count?: Prisma.DecimalFilter<"InventoryTransferItem"> | runtime.Decimal | runtime.DecimalJsLike | number | string
productId?: Prisma.IntFilter<"InventoryTransferItem"> | number
transferId?: Prisma.IntFilter<"InventoryTransferItem"> | number
product?: Prisma.XOR<Prisma.ProductScalarRelationFilter, Prisma.ProductWhereInput>
transfer?: Prisma.XOR<Prisma.InventoryTransferScalarRelationFilter, Prisma.InventoryTransferWhereInput>
}, "id">
export type InventoryTransferItemOrderByWithAggregationInput = {
id?: Prisma.SortOrder
count?: Prisma.SortOrder
productId?: Prisma.SortOrder
transferId?: Prisma.SortOrder
_count?: Prisma.InventoryTransferItemCountOrderByAggregateInput
_avg?: Prisma.InventoryTransferItemAvgOrderByAggregateInput
_max?: Prisma.InventoryTransferItemMaxOrderByAggregateInput
_min?: Prisma.InventoryTransferItemMinOrderByAggregateInput
_sum?: Prisma.InventoryTransferItemSumOrderByAggregateInput
}
export type InventoryTransferItemScalarWhereWithAggregatesInput = {
AND?: Prisma.InventoryTransferItemScalarWhereWithAggregatesInput | Prisma.InventoryTransferItemScalarWhereWithAggregatesInput[]
OR?: Prisma.InventoryTransferItemScalarWhereWithAggregatesInput[]
NOT?: Prisma.InventoryTransferItemScalarWhereWithAggregatesInput | Prisma.InventoryTransferItemScalarWhereWithAggregatesInput[]
id?: Prisma.IntWithAggregatesFilter<"InventoryTransferItem"> | number
count?: Prisma.DecimalWithAggregatesFilter<"InventoryTransferItem"> | runtime.Decimal | runtime.DecimalJsLike | number | string
productId?: Prisma.IntWithAggregatesFilter<"InventoryTransferItem"> | number
transferId?: Prisma.IntWithAggregatesFilter<"InventoryTransferItem"> | number
}
export type InventoryTransferItemCreateInput = {
count: runtime.Decimal | runtime.DecimalJsLike | number | string
product: Prisma.ProductCreateNestedOneWithoutInventoryTransferItemsInput
transfer: Prisma.InventoryTransferCreateNestedOneWithoutItemsInput
}
export type InventoryTransferItemUncheckedCreateInput = {
id?: number
count: runtime.Decimal | runtime.DecimalJsLike | number | string
productId: number
transferId: number
}
export type InventoryTransferItemUpdateInput = {
count?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
product?: Prisma.ProductUpdateOneRequiredWithoutInventoryTransferItemsNestedInput
transfer?: Prisma.InventoryTransferUpdateOneRequiredWithoutItemsNestedInput
}
export type InventoryTransferItemUncheckedUpdateInput = {
id?: Prisma.IntFieldUpdateOperationsInput | number
count?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
productId?: Prisma.IntFieldUpdateOperationsInput | number
transferId?: Prisma.IntFieldUpdateOperationsInput | number
}
export type InventoryTransferItemCreateManyInput = {
id?: number
count: runtime.Decimal | runtime.DecimalJsLike | number | string
productId: number
transferId: number
}
export type InventoryTransferItemUpdateManyMutationInput = {
count?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
}
export type InventoryTransferItemUncheckedUpdateManyInput = {
id?: Prisma.IntFieldUpdateOperationsInput | number
count?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
productId?: Prisma.IntFieldUpdateOperationsInput | number
transferId?: Prisma.IntFieldUpdateOperationsInput | number
}
export type InventoryTransferItemListRelationFilter = {
every?: Prisma.InventoryTransferItemWhereInput
some?: Prisma.InventoryTransferItemWhereInput
none?: Prisma.InventoryTransferItemWhereInput
}
export type InventoryTransferItemOrderByRelationAggregateInput = {
_count?: Prisma.SortOrder
}
export type InventoryTransferItemCountOrderByAggregateInput = {
id?: Prisma.SortOrder
count?: Prisma.SortOrder
productId?: Prisma.SortOrder
transferId?: Prisma.SortOrder
}
export type InventoryTransferItemAvgOrderByAggregateInput = {
id?: Prisma.SortOrder
count?: Prisma.SortOrder
productId?: Prisma.SortOrder
transferId?: Prisma.SortOrder
}
export type InventoryTransferItemMaxOrderByAggregateInput = {
id?: Prisma.SortOrder
count?: Prisma.SortOrder
productId?: Prisma.SortOrder
transferId?: Prisma.SortOrder
}
export type InventoryTransferItemMinOrderByAggregateInput = {
id?: Prisma.SortOrder
count?: Prisma.SortOrder
productId?: Prisma.SortOrder
transferId?: Prisma.SortOrder
}
export type InventoryTransferItemSumOrderByAggregateInput = {
id?: Prisma.SortOrder
count?: Prisma.SortOrder
productId?: Prisma.SortOrder
transferId?: Prisma.SortOrder
}
export type InventoryTransferItemCreateNestedManyWithoutProductInput = {
create?: Prisma.XOR<Prisma.InventoryTransferItemCreateWithoutProductInput, Prisma.InventoryTransferItemUncheckedCreateWithoutProductInput> | Prisma.InventoryTransferItemCreateWithoutProductInput[] | Prisma.InventoryTransferItemUncheckedCreateWithoutProductInput[]
connectOrCreate?: Prisma.InventoryTransferItemCreateOrConnectWithoutProductInput | Prisma.InventoryTransferItemCreateOrConnectWithoutProductInput[]
createMany?: Prisma.InventoryTransferItemCreateManyProductInputEnvelope
connect?: Prisma.InventoryTransferItemWhereUniqueInput | Prisma.InventoryTransferItemWhereUniqueInput[]
}
export type InventoryTransferItemUncheckedCreateNestedManyWithoutProductInput = {
create?: Prisma.XOR<Prisma.InventoryTransferItemCreateWithoutProductInput, Prisma.InventoryTransferItemUncheckedCreateWithoutProductInput> | Prisma.InventoryTransferItemCreateWithoutProductInput[] | Prisma.InventoryTransferItemUncheckedCreateWithoutProductInput[]
connectOrCreate?: Prisma.InventoryTransferItemCreateOrConnectWithoutProductInput | Prisma.InventoryTransferItemCreateOrConnectWithoutProductInput[]
createMany?: Prisma.InventoryTransferItemCreateManyProductInputEnvelope
connect?: Prisma.InventoryTransferItemWhereUniqueInput | Prisma.InventoryTransferItemWhereUniqueInput[]
}
export type InventoryTransferItemUpdateManyWithoutProductNestedInput = {
create?: Prisma.XOR<Prisma.InventoryTransferItemCreateWithoutProductInput, Prisma.InventoryTransferItemUncheckedCreateWithoutProductInput> | Prisma.InventoryTransferItemCreateWithoutProductInput[] | Prisma.InventoryTransferItemUncheckedCreateWithoutProductInput[]
connectOrCreate?: Prisma.InventoryTransferItemCreateOrConnectWithoutProductInput | Prisma.InventoryTransferItemCreateOrConnectWithoutProductInput[]
upsert?: Prisma.InventoryTransferItemUpsertWithWhereUniqueWithoutProductInput | Prisma.InventoryTransferItemUpsertWithWhereUniqueWithoutProductInput[]
createMany?: Prisma.InventoryTransferItemCreateManyProductInputEnvelope
set?: Prisma.InventoryTransferItemWhereUniqueInput | Prisma.InventoryTransferItemWhereUniqueInput[]
disconnect?: Prisma.InventoryTransferItemWhereUniqueInput | Prisma.InventoryTransferItemWhereUniqueInput[]
delete?: Prisma.InventoryTransferItemWhereUniqueInput | Prisma.InventoryTransferItemWhereUniqueInput[]
connect?: Prisma.InventoryTransferItemWhereUniqueInput | Prisma.InventoryTransferItemWhereUniqueInput[]
update?: Prisma.InventoryTransferItemUpdateWithWhereUniqueWithoutProductInput | Prisma.InventoryTransferItemUpdateWithWhereUniqueWithoutProductInput[]
updateMany?: Prisma.InventoryTransferItemUpdateManyWithWhereWithoutProductInput | Prisma.InventoryTransferItemUpdateManyWithWhereWithoutProductInput[]
deleteMany?: Prisma.InventoryTransferItemScalarWhereInput | Prisma.InventoryTransferItemScalarWhereInput[]
}
export type InventoryTransferItemUncheckedUpdateManyWithoutProductNestedInput = {
create?: Prisma.XOR<Prisma.InventoryTransferItemCreateWithoutProductInput, Prisma.InventoryTransferItemUncheckedCreateWithoutProductInput> | Prisma.InventoryTransferItemCreateWithoutProductInput[] | Prisma.InventoryTransferItemUncheckedCreateWithoutProductInput[]
connectOrCreate?: Prisma.InventoryTransferItemCreateOrConnectWithoutProductInput | Prisma.InventoryTransferItemCreateOrConnectWithoutProductInput[]
upsert?: Prisma.InventoryTransferItemUpsertWithWhereUniqueWithoutProductInput | Prisma.InventoryTransferItemUpsertWithWhereUniqueWithoutProductInput[]
createMany?: Prisma.InventoryTransferItemCreateManyProductInputEnvelope
set?: Prisma.InventoryTransferItemWhereUniqueInput | Prisma.InventoryTransferItemWhereUniqueInput[]
disconnect?: Prisma.InventoryTransferItemWhereUniqueInput | Prisma.InventoryTransferItemWhereUniqueInput[]
delete?: Prisma.InventoryTransferItemWhereUniqueInput | Prisma.InventoryTransferItemWhereUniqueInput[]
connect?: Prisma.InventoryTransferItemWhereUniqueInput | Prisma.InventoryTransferItemWhereUniqueInput[]
update?: Prisma.InventoryTransferItemUpdateWithWhereUniqueWithoutProductInput | Prisma.InventoryTransferItemUpdateWithWhereUniqueWithoutProductInput[]
updateMany?: Prisma.InventoryTransferItemUpdateManyWithWhereWithoutProductInput | Prisma.InventoryTransferItemUpdateManyWithWhereWithoutProductInput[]
deleteMany?: Prisma.InventoryTransferItemScalarWhereInput | Prisma.InventoryTransferItemScalarWhereInput[]
}
export type InventoryTransferItemCreateNestedManyWithoutTransferInput = {
create?: Prisma.XOR<Prisma.InventoryTransferItemCreateWithoutTransferInput, Prisma.InventoryTransferItemUncheckedCreateWithoutTransferInput> | Prisma.InventoryTransferItemCreateWithoutTransferInput[] | Prisma.InventoryTransferItemUncheckedCreateWithoutTransferInput[]
connectOrCreate?: Prisma.InventoryTransferItemCreateOrConnectWithoutTransferInput | Prisma.InventoryTransferItemCreateOrConnectWithoutTransferInput[]
createMany?: Prisma.InventoryTransferItemCreateManyTransferInputEnvelope
connect?: Prisma.InventoryTransferItemWhereUniqueInput | Prisma.InventoryTransferItemWhereUniqueInput[]
}
export type InventoryTransferItemUncheckedCreateNestedManyWithoutTransferInput = {
create?: Prisma.XOR<Prisma.InventoryTransferItemCreateWithoutTransferInput, Prisma.InventoryTransferItemUncheckedCreateWithoutTransferInput> | Prisma.InventoryTransferItemCreateWithoutTransferInput[] | Prisma.InventoryTransferItemUncheckedCreateWithoutTransferInput[]
connectOrCreate?: Prisma.InventoryTransferItemCreateOrConnectWithoutTransferInput | Prisma.InventoryTransferItemCreateOrConnectWithoutTransferInput[]
createMany?: Prisma.InventoryTransferItemCreateManyTransferInputEnvelope
connect?: Prisma.InventoryTransferItemWhereUniqueInput | Prisma.InventoryTransferItemWhereUniqueInput[]
}
export type InventoryTransferItemUpdateManyWithoutTransferNestedInput = {
create?: Prisma.XOR<Prisma.InventoryTransferItemCreateWithoutTransferInput, Prisma.InventoryTransferItemUncheckedCreateWithoutTransferInput> | Prisma.InventoryTransferItemCreateWithoutTransferInput[] | Prisma.InventoryTransferItemUncheckedCreateWithoutTransferInput[]
connectOrCreate?: Prisma.InventoryTransferItemCreateOrConnectWithoutTransferInput | Prisma.InventoryTransferItemCreateOrConnectWithoutTransferInput[]
upsert?: Prisma.InventoryTransferItemUpsertWithWhereUniqueWithoutTransferInput | Prisma.InventoryTransferItemUpsertWithWhereUniqueWithoutTransferInput[]
createMany?: Prisma.InventoryTransferItemCreateManyTransferInputEnvelope
set?: Prisma.InventoryTransferItemWhereUniqueInput | Prisma.InventoryTransferItemWhereUniqueInput[]
disconnect?: Prisma.InventoryTransferItemWhereUniqueInput | Prisma.InventoryTransferItemWhereUniqueInput[]
delete?: Prisma.InventoryTransferItemWhereUniqueInput | Prisma.InventoryTransferItemWhereUniqueInput[]
connect?: Prisma.InventoryTransferItemWhereUniqueInput | Prisma.InventoryTransferItemWhereUniqueInput[]
update?: Prisma.InventoryTransferItemUpdateWithWhereUniqueWithoutTransferInput | Prisma.InventoryTransferItemUpdateWithWhereUniqueWithoutTransferInput[]
updateMany?: Prisma.InventoryTransferItemUpdateManyWithWhereWithoutTransferInput | Prisma.InventoryTransferItemUpdateManyWithWhereWithoutTransferInput[]
deleteMany?: Prisma.InventoryTransferItemScalarWhereInput | Prisma.InventoryTransferItemScalarWhereInput[]
}
export type InventoryTransferItemUncheckedUpdateManyWithoutTransferNestedInput = {
create?: Prisma.XOR<Prisma.InventoryTransferItemCreateWithoutTransferInput, Prisma.InventoryTransferItemUncheckedCreateWithoutTransferInput> | Prisma.InventoryTransferItemCreateWithoutTransferInput[] | Prisma.InventoryTransferItemUncheckedCreateWithoutTransferInput[]
connectOrCreate?: Prisma.InventoryTransferItemCreateOrConnectWithoutTransferInput | Prisma.InventoryTransferItemCreateOrConnectWithoutTransferInput[]
upsert?: Prisma.InventoryTransferItemUpsertWithWhereUniqueWithoutTransferInput | Prisma.InventoryTransferItemUpsertWithWhereUniqueWithoutTransferInput[]
createMany?: Prisma.InventoryTransferItemCreateManyTransferInputEnvelope
set?: Prisma.InventoryTransferItemWhereUniqueInput | Prisma.InventoryTransferItemWhereUniqueInput[]
disconnect?: Prisma.InventoryTransferItemWhereUniqueInput | Prisma.InventoryTransferItemWhereUniqueInput[]
delete?: Prisma.InventoryTransferItemWhereUniqueInput | Prisma.InventoryTransferItemWhereUniqueInput[]
connect?: Prisma.InventoryTransferItemWhereUniqueInput | Prisma.InventoryTransferItemWhereUniqueInput[]
update?: Prisma.InventoryTransferItemUpdateWithWhereUniqueWithoutTransferInput | Prisma.InventoryTransferItemUpdateWithWhereUniqueWithoutTransferInput[]
updateMany?: Prisma.InventoryTransferItemUpdateManyWithWhereWithoutTransferInput | Prisma.InventoryTransferItemUpdateManyWithWhereWithoutTransferInput[]
deleteMany?: Prisma.InventoryTransferItemScalarWhereInput | Prisma.InventoryTransferItemScalarWhereInput[]
}
export type InventoryTransferItemCreateWithoutProductInput = {
count: runtime.Decimal | runtime.DecimalJsLike | number | string
transfer: Prisma.InventoryTransferCreateNestedOneWithoutItemsInput
}
export type InventoryTransferItemUncheckedCreateWithoutProductInput = {
id?: number
count: runtime.Decimal | runtime.DecimalJsLike | number | string
transferId: number
}
export type InventoryTransferItemCreateOrConnectWithoutProductInput = {
where: Prisma.InventoryTransferItemWhereUniqueInput
create: Prisma.XOR<Prisma.InventoryTransferItemCreateWithoutProductInput, Prisma.InventoryTransferItemUncheckedCreateWithoutProductInput>
}
export type InventoryTransferItemCreateManyProductInputEnvelope = {
data: Prisma.InventoryTransferItemCreateManyProductInput | Prisma.InventoryTransferItemCreateManyProductInput[]
skipDuplicates?: boolean
}
export type InventoryTransferItemUpsertWithWhereUniqueWithoutProductInput = {
where: Prisma.InventoryTransferItemWhereUniqueInput
update: Prisma.XOR<Prisma.InventoryTransferItemUpdateWithoutProductInput, Prisma.InventoryTransferItemUncheckedUpdateWithoutProductInput>
create: Prisma.XOR<Prisma.InventoryTransferItemCreateWithoutProductInput, Prisma.InventoryTransferItemUncheckedCreateWithoutProductInput>
}
export type InventoryTransferItemUpdateWithWhereUniqueWithoutProductInput = {
where: Prisma.InventoryTransferItemWhereUniqueInput
data: Prisma.XOR<Prisma.InventoryTransferItemUpdateWithoutProductInput, Prisma.InventoryTransferItemUncheckedUpdateWithoutProductInput>
}
export type InventoryTransferItemUpdateManyWithWhereWithoutProductInput = {
where: Prisma.InventoryTransferItemScalarWhereInput
data: Prisma.XOR<Prisma.InventoryTransferItemUpdateManyMutationInput, Prisma.InventoryTransferItemUncheckedUpdateManyWithoutProductInput>
}
export type InventoryTransferItemScalarWhereInput = {
AND?: Prisma.InventoryTransferItemScalarWhereInput | Prisma.InventoryTransferItemScalarWhereInput[]
OR?: Prisma.InventoryTransferItemScalarWhereInput[]
NOT?: Prisma.InventoryTransferItemScalarWhereInput | Prisma.InventoryTransferItemScalarWhereInput[]
id?: Prisma.IntFilter<"InventoryTransferItem"> | number
count?: Prisma.DecimalFilter<"InventoryTransferItem"> | runtime.Decimal | runtime.DecimalJsLike | number | string
productId?: Prisma.IntFilter<"InventoryTransferItem"> | number
transferId?: Prisma.IntFilter<"InventoryTransferItem"> | number
}
export type InventoryTransferItemCreateWithoutTransferInput = {
count: runtime.Decimal | runtime.DecimalJsLike | number | string
product: Prisma.ProductCreateNestedOneWithoutInventoryTransferItemsInput
}
export type InventoryTransferItemUncheckedCreateWithoutTransferInput = {
id?: number
count: runtime.Decimal | runtime.DecimalJsLike | number | string
productId: number
}
export type InventoryTransferItemCreateOrConnectWithoutTransferInput = {
where: Prisma.InventoryTransferItemWhereUniqueInput
create: Prisma.XOR<Prisma.InventoryTransferItemCreateWithoutTransferInput, Prisma.InventoryTransferItemUncheckedCreateWithoutTransferInput>
}
export type InventoryTransferItemCreateManyTransferInputEnvelope = {
data: Prisma.InventoryTransferItemCreateManyTransferInput | Prisma.InventoryTransferItemCreateManyTransferInput[]
skipDuplicates?: boolean
}
export type InventoryTransferItemUpsertWithWhereUniqueWithoutTransferInput = {
where: Prisma.InventoryTransferItemWhereUniqueInput
update: Prisma.XOR<Prisma.InventoryTransferItemUpdateWithoutTransferInput, Prisma.InventoryTransferItemUncheckedUpdateWithoutTransferInput>
create: Prisma.XOR<Prisma.InventoryTransferItemCreateWithoutTransferInput, Prisma.InventoryTransferItemUncheckedCreateWithoutTransferInput>
}
export type InventoryTransferItemUpdateWithWhereUniqueWithoutTransferInput = {
where: Prisma.InventoryTransferItemWhereUniqueInput
data: Prisma.XOR<Prisma.InventoryTransferItemUpdateWithoutTransferInput, Prisma.InventoryTransferItemUncheckedUpdateWithoutTransferInput>
}
export type InventoryTransferItemUpdateManyWithWhereWithoutTransferInput = {
where: Prisma.InventoryTransferItemScalarWhereInput
data: Prisma.XOR<Prisma.InventoryTransferItemUpdateManyMutationInput, Prisma.InventoryTransferItemUncheckedUpdateManyWithoutTransferInput>
}
export type InventoryTransferItemCreateManyProductInput = {
id?: number
count: runtime.Decimal | runtime.DecimalJsLike | number | string
transferId: number
}
export type InventoryTransferItemUpdateWithoutProductInput = {
count?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
transfer?: Prisma.InventoryTransferUpdateOneRequiredWithoutItemsNestedInput
}
export type InventoryTransferItemUncheckedUpdateWithoutProductInput = {
id?: Prisma.IntFieldUpdateOperationsInput | number
count?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
transferId?: Prisma.IntFieldUpdateOperationsInput | number
}
export type InventoryTransferItemUncheckedUpdateManyWithoutProductInput = {
id?: Prisma.IntFieldUpdateOperationsInput | number
count?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
transferId?: Prisma.IntFieldUpdateOperationsInput | number
}
export type InventoryTransferItemCreateManyTransferInput = {
id?: number
count: runtime.Decimal | runtime.DecimalJsLike | number | string
productId: number
}
export type InventoryTransferItemUpdateWithoutTransferInput = {
count?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
product?: Prisma.ProductUpdateOneRequiredWithoutInventoryTransferItemsNestedInput
}
export type InventoryTransferItemUncheckedUpdateWithoutTransferInput = {
id?: Prisma.IntFieldUpdateOperationsInput | number
count?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
productId?: Prisma.IntFieldUpdateOperationsInput | number
}
export type InventoryTransferItemUncheckedUpdateManyWithoutTransferInput = {
id?: Prisma.IntFieldUpdateOperationsInput | number
count?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
productId?: Prisma.IntFieldUpdateOperationsInput | number
}
export type InventoryTransferItemSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
id?: boolean
count?: boolean
productId?: boolean
transferId?: boolean
product?: boolean | Prisma.ProductDefaultArgs<ExtArgs>
transfer?: boolean | Prisma.InventoryTransferDefaultArgs<ExtArgs>
}, ExtArgs["result"]["inventoryTransferItem"]>
export type InventoryTransferItemSelectScalar = {
id?: boolean
count?: boolean
productId?: boolean
transferId?: boolean
}
export type InventoryTransferItemOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "count" | "productId" | "transferId", ExtArgs["result"]["inventoryTransferItem"]>
export type InventoryTransferItemInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
product?: boolean | Prisma.ProductDefaultArgs<ExtArgs>
transfer?: boolean | Prisma.InventoryTransferDefaultArgs<ExtArgs>
}
export type $InventoryTransferItemPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
name: "InventoryTransferItem"
objects: {
product: Prisma.$ProductPayload<ExtArgs>
transfer: Prisma.$InventoryTransferPayload<ExtArgs>
}
scalars: runtime.Types.Extensions.GetPayloadResult<{
id: number
count: runtime.Decimal
productId: number
transferId: number
}, ExtArgs["result"]["inventoryTransferItem"]>
composites: {}
}
export type InventoryTransferItemGetPayload<S extends boolean | null | undefined | InventoryTransferItemDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$InventoryTransferItemPayload, S>
export type InventoryTransferItemCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> =
Omit<InventoryTransferItemFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
select?: InventoryTransferItemCountAggregateInputType | true
}
export interface InventoryTransferItemDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
[K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['InventoryTransferItem'], meta: { name: 'InventoryTransferItem' } }
/**
* Find zero or one InventoryTransferItem that matches the filter.
* @param {InventoryTransferItemFindUniqueArgs} args - Arguments to find a InventoryTransferItem
* @example
* // Get one InventoryTransferItem
* const inventoryTransferItem = await prisma.inventoryTransferItem.findUnique({
* where: {
* // ... provide filter here
* }
* })
*/
findUnique<T extends InventoryTransferItemFindUniqueArgs>(args: Prisma.SelectSubset<T, InventoryTransferItemFindUniqueArgs<ExtArgs>>): Prisma.Prisma__InventoryTransferItemClient<runtime.Types.Result.GetResult<Prisma.$InventoryTransferItemPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
/**
* Find one InventoryTransferItem that matches the filter or throw an error with `error.code='P2025'`
* if no matches were found.
* @param {InventoryTransferItemFindUniqueOrThrowArgs} args - Arguments to find a InventoryTransferItem
* @example
* // Get one InventoryTransferItem
* const inventoryTransferItem = await prisma.inventoryTransferItem.findUniqueOrThrow({
* where: {
* // ... provide filter here
* }
* })
*/
findUniqueOrThrow<T extends InventoryTransferItemFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, InventoryTransferItemFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__InventoryTransferItemClient<runtime.Types.Result.GetResult<Prisma.$InventoryTransferItemPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Find the first InventoryTransferItem 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 {InventoryTransferItemFindFirstArgs} args - Arguments to find a InventoryTransferItem
* @example
* // Get one InventoryTransferItem
* const inventoryTransferItem = await prisma.inventoryTransferItem.findFirst({
* where: {
* // ... provide filter here
* }
* })
*/
findFirst<T extends InventoryTransferItemFindFirstArgs>(args?: Prisma.SelectSubset<T, InventoryTransferItemFindFirstArgs<ExtArgs>>): Prisma.Prisma__InventoryTransferItemClient<runtime.Types.Result.GetResult<Prisma.$InventoryTransferItemPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
/**
* Find the first InventoryTransferItem 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 {InventoryTransferItemFindFirstOrThrowArgs} args - Arguments to find a InventoryTransferItem
* @example
* // Get one InventoryTransferItem
* const inventoryTransferItem = await prisma.inventoryTransferItem.findFirstOrThrow({
* where: {
* // ... provide filter here
* }
* })
*/
findFirstOrThrow<T extends InventoryTransferItemFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, InventoryTransferItemFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__InventoryTransferItemClient<runtime.Types.Result.GetResult<Prisma.$InventoryTransferItemPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Find zero or more InventoryTransferItems 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 {InventoryTransferItemFindManyArgs} args - Arguments to filter and select certain fields only.
* @example
* // Get all InventoryTransferItems
* const inventoryTransferItems = await prisma.inventoryTransferItem.findMany()
*
* // Get first 10 InventoryTransferItems
* const inventoryTransferItems = await prisma.inventoryTransferItem.findMany({ take: 10 })
*
* // Only select the `id`
* const inventoryTransferItemWithIdOnly = await prisma.inventoryTransferItem.findMany({ select: { id: true } })
*
*/
findMany<T extends InventoryTransferItemFindManyArgs>(args?: Prisma.SelectSubset<T, InventoryTransferItemFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$InventoryTransferItemPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
/**
* Create a InventoryTransferItem.
* @param {InventoryTransferItemCreateArgs} args - Arguments to create a InventoryTransferItem.
* @example
* // Create one InventoryTransferItem
* const InventoryTransferItem = await prisma.inventoryTransferItem.create({
* data: {
* // ... data to create a InventoryTransferItem
* }
* })
*
*/
create<T extends InventoryTransferItemCreateArgs>(args: Prisma.SelectSubset<T, InventoryTransferItemCreateArgs<ExtArgs>>): Prisma.Prisma__InventoryTransferItemClient<runtime.Types.Result.GetResult<Prisma.$InventoryTransferItemPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Create many InventoryTransferItems.
* @param {InventoryTransferItemCreateManyArgs} args - Arguments to create many InventoryTransferItems.
* @example
* // Create many InventoryTransferItems
* const inventoryTransferItem = await prisma.inventoryTransferItem.createMany({
* data: [
* // ... provide data here
* ]
* })
*
*/
createMany<T extends InventoryTransferItemCreateManyArgs>(args?: Prisma.SelectSubset<T, InventoryTransferItemCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
/**
* Delete a InventoryTransferItem.
* @param {InventoryTransferItemDeleteArgs} args - Arguments to delete one InventoryTransferItem.
* @example
* // Delete one InventoryTransferItem
* const InventoryTransferItem = await prisma.inventoryTransferItem.delete({
* where: {
* // ... filter to delete one InventoryTransferItem
* }
* })
*
*/
delete<T extends InventoryTransferItemDeleteArgs>(args: Prisma.SelectSubset<T, InventoryTransferItemDeleteArgs<ExtArgs>>): Prisma.Prisma__InventoryTransferItemClient<runtime.Types.Result.GetResult<Prisma.$InventoryTransferItemPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Update one InventoryTransferItem.
* @param {InventoryTransferItemUpdateArgs} args - Arguments to update one InventoryTransferItem.
* @example
* // Update one InventoryTransferItem
* const inventoryTransferItem = await prisma.inventoryTransferItem.update({
* where: {
* // ... provide filter here
* },
* data: {
* // ... provide data here
* }
* })
*
*/
update<T extends InventoryTransferItemUpdateArgs>(args: Prisma.SelectSubset<T, InventoryTransferItemUpdateArgs<ExtArgs>>): Prisma.Prisma__InventoryTransferItemClient<runtime.Types.Result.GetResult<Prisma.$InventoryTransferItemPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Delete zero or more InventoryTransferItems.
* @param {InventoryTransferItemDeleteManyArgs} args - Arguments to filter InventoryTransferItems to delete.
* @example
* // Delete a few InventoryTransferItems
* const { count } = await prisma.inventoryTransferItem.deleteMany({
* where: {
* // ... provide filter here
* }
* })
*
*/
deleteMany<T extends InventoryTransferItemDeleteManyArgs>(args?: Prisma.SelectSubset<T, InventoryTransferItemDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
/**
* Update zero or more InventoryTransferItems.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {InventoryTransferItemUpdateManyArgs} args - Arguments to update one or more rows.
* @example
* // Update many InventoryTransferItems
* const inventoryTransferItem = await prisma.inventoryTransferItem.updateMany({
* where: {
* // ... provide filter here
* },
* data: {
* // ... provide data here
* }
* })
*
*/
updateMany<T extends InventoryTransferItemUpdateManyArgs>(args: Prisma.SelectSubset<T, InventoryTransferItemUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
/**
* Create or update one InventoryTransferItem.
* @param {InventoryTransferItemUpsertArgs} args - Arguments to update or create a InventoryTransferItem.
* @example
* // Update or create a InventoryTransferItem
* const inventoryTransferItem = await prisma.inventoryTransferItem.upsert({
* create: {
* // ... data to create a InventoryTransferItem
* },
* update: {
* // ... in case it already exists, update
* },
* where: {
* // ... the filter for the InventoryTransferItem we want to update
* }
* })
*/
upsert<T extends InventoryTransferItemUpsertArgs>(args: Prisma.SelectSubset<T, InventoryTransferItemUpsertArgs<ExtArgs>>): Prisma.Prisma__InventoryTransferItemClient<runtime.Types.Result.GetResult<Prisma.$InventoryTransferItemPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Count the number of InventoryTransferItems.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {InventoryTransferItemCountArgs} args - Arguments to filter InventoryTransferItems to count.
* @example
* // Count the number of InventoryTransferItems
* const count = await prisma.inventoryTransferItem.count({
* where: {
* // ... the filter for the InventoryTransferItems we want to count
* }
* })
**/
count<T extends InventoryTransferItemCountArgs>(
args?: Prisma.Subset<T, InventoryTransferItemCountArgs>,
): Prisma.PrismaPromise<
T extends runtime.Types.Utils.Record<'select', any>
? T['select'] extends true
? number
: Prisma.GetScalarType<T['select'], InventoryTransferItemCountAggregateOutputType>
: number
>
/**
* Allows you to perform aggregations operations on a InventoryTransferItem.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {InventoryTransferItemAggregateArgs} 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 InventoryTransferItemAggregateArgs>(args: Prisma.Subset<T, InventoryTransferItemAggregateArgs>): Prisma.PrismaPromise<GetInventoryTransferItemAggregateType<T>>
/**
* Group by InventoryTransferItem.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {InventoryTransferItemGroupByArgs} 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 InventoryTransferItemGroupByArgs,
HasSelectOrTake extends Prisma.Or<
Prisma.Extends<'skip', Prisma.Keys<T>>,
Prisma.Extends<'take', Prisma.Keys<T>>
>,
OrderByArg extends Prisma.True extends HasSelectOrTake
? { orderBy: InventoryTransferItemGroupByArgs['orderBy'] }
: { orderBy?: InventoryTransferItemGroupByArgs['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, InventoryTransferItemGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetInventoryTransferItemGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
/**
* Fields of the InventoryTransferItem model
*/
readonly fields: InventoryTransferItemFieldRefs;
}
/**
* The delegate class that acts as a "Promise-like" for InventoryTransferItem.
* 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__InventoryTransferItemClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
readonly [Symbol.toStringTag]: "PrismaPromise"
product<T extends Prisma.ProductDefaultArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.ProductDefaultArgs<ExtArgs>>): Prisma.Prisma__ProductClient<runtime.Types.Result.GetResult<Prisma.$ProductPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>
transfer<T extends Prisma.InventoryTransferDefaultArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.InventoryTransferDefaultArgs<ExtArgs>>): Prisma.Prisma__InventoryTransferClient<runtime.Types.Result.GetResult<Prisma.$InventoryTransferPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>
/**
* 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 InventoryTransferItem model
*/
export interface InventoryTransferItemFieldRefs {
readonly id: Prisma.FieldRef<"InventoryTransferItem", 'Int'>
readonly count: Prisma.FieldRef<"InventoryTransferItem", 'Decimal'>
readonly productId: Prisma.FieldRef<"InventoryTransferItem", 'Int'>
readonly transferId: Prisma.FieldRef<"InventoryTransferItem", 'Int'>
}
// Custom InputTypes
/**
* InventoryTransferItem findUnique
*/
export type InventoryTransferItemFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the InventoryTransferItem
*/
select?: Prisma.InventoryTransferItemSelect<ExtArgs> | null
/**
* Omit specific fields from the InventoryTransferItem
*/
omit?: Prisma.InventoryTransferItemOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.InventoryTransferItemInclude<ExtArgs> | null
/**
* Filter, which InventoryTransferItem to fetch.
*/
where: Prisma.InventoryTransferItemWhereUniqueInput
}
/**
* InventoryTransferItem findUniqueOrThrow
*/
export type InventoryTransferItemFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the InventoryTransferItem
*/
select?: Prisma.InventoryTransferItemSelect<ExtArgs> | null
/**
* Omit specific fields from the InventoryTransferItem
*/
omit?: Prisma.InventoryTransferItemOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.InventoryTransferItemInclude<ExtArgs> | null
/**
* Filter, which InventoryTransferItem to fetch.
*/
where: Prisma.InventoryTransferItemWhereUniqueInput
}
/**
* InventoryTransferItem findFirst
*/
export type InventoryTransferItemFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the InventoryTransferItem
*/
select?: Prisma.InventoryTransferItemSelect<ExtArgs> | null
/**
* Omit specific fields from the InventoryTransferItem
*/
omit?: Prisma.InventoryTransferItemOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.InventoryTransferItemInclude<ExtArgs> | null
/**
* Filter, which InventoryTransferItem to fetch.
*/
where?: Prisma.InventoryTransferItemWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of InventoryTransferItems to fetch.
*/
orderBy?: Prisma.InventoryTransferItemOrderByWithRelationInput | Prisma.InventoryTransferItemOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the position for searching for InventoryTransferItems.
*/
cursor?: Prisma.InventoryTransferItemWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` InventoryTransferItems 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` InventoryTransferItems.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
*
* Filter by unique combinations of InventoryTransferItems.
*/
distinct?: Prisma.InventoryTransferItemScalarFieldEnum | Prisma.InventoryTransferItemScalarFieldEnum[]
}
/**
* InventoryTransferItem findFirstOrThrow
*/
export type InventoryTransferItemFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the InventoryTransferItem
*/
select?: Prisma.InventoryTransferItemSelect<ExtArgs> | null
/**
* Omit specific fields from the InventoryTransferItem
*/
omit?: Prisma.InventoryTransferItemOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.InventoryTransferItemInclude<ExtArgs> | null
/**
* Filter, which InventoryTransferItem to fetch.
*/
where?: Prisma.InventoryTransferItemWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of InventoryTransferItems to fetch.
*/
orderBy?: Prisma.InventoryTransferItemOrderByWithRelationInput | Prisma.InventoryTransferItemOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the position for searching for InventoryTransferItems.
*/
cursor?: Prisma.InventoryTransferItemWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` InventoryTransferItems 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` InventoryTransferItems.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
*
* Filter by unique combinations of InventoryTransferItems.
*/
distinct?: Prisma.InventoryTransferItemScalarFieldEnum | Prisma.InventoryTransferItemScalarFieldEnum[]
}
/**
* InventoryTransferItem findMany
*/
export type InventoryTransferItemFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the InventoryTransferItem
*/
select?: Prisma.InventoryTransferItemSelect<ExtArgs> | null
/**
* Omit specific fields from the InventoryTransferItem
*/
omit?: Prisma.InventoryTransferItemOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.InventoryTransferItemInclude<ExtArgs> | null
/**
* Filter, which InventoryTransferItems to fetch.
*/
where?: Prisma.InventoryTransferItemWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of InventoryTransferItems to fetch.
*/
orderBy?: Prisma.InventoryTransferItemOrderByWithRelationInput | Prisma.InventoryTransferItemOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the position for listing InventoryTransferItems.
*/
cursor?: Prisma.InventoryTransferItemWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` InventoryTransferItems 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` InventoryTransferItems.
*/
skip?: number
distinct?: Prisma.InventoryTransferItemScalarFieldEnum | Prisma.InventoryTransferItemScalarFieldEnum[]
}
/**
* InventoryTransferItem create
*/
export type InventoryTransferItemCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the InventoryTransferItem
*/
select?: Prisma.InventoryTransferItemSelect<ExtArgs> | null
/**
* Omit specific fields from the InventoryTransferItem
*/
omit?: Prisma.InventoryTransferItemOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.InventoryTransferItemInclude<ExtArgs> | null
/**
* The data needed to create a InventoryTransferItem.
*/
data: Prisma.XOR<Prisma.InventoryTransferItemCreateInput, Prisma.InventoryTransferItemUncheckedCreateInput>
}
/**
* InventoryTransferItem createMany
*/
export type InventoryTransferItemCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* The data used to create many InventoryTransferItems.
*/
data: Prisma.InventoryTransferItemCreateManyInput | Prisma.InventoryTransferItemCreateManyInput[]
skipDuplicates?: boolean
}
/**
* InventoryTransferItem update
*/
export type InventoryTransferItemUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the InventoryTransferItem
*/
select?: Prisma.InventoryTransferItemSelect<ExtArgs> | null
/**
* Omit specific fields from the InventoryTransferItem
*/
omit?: Prisma.InventoryTransferItemOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.InventoryTransferItemInclude<ExtArgs> | null
/**
* The data needed to update a InventoryTransferItem.
*/
data: Prisma.XOR<Prisma.InventoryTransferItemUpdateInput, Prisma.InventoryTransferItemUncheckedUpdateInput>
/**
* Choose, which InventoryTransferItem to update.
*/
where: Prisma.InventoryTransferItemWhereUniqueInput
}
/**
* InventoryTransferItem updateMany
*/
export type InventoryTransferItemUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* The data used to update InventoryTransferItems.
*/
data: Prisma.XOR<Prisma.InventoryTransferItemUpdateManyMutationInput, Prisma.InventoryTransferItemUncheckedUpdateManyInput>
/**
* Filter which InventoryTransferItems to update
*/
where?: Prisma.InventoryTransferItemWhereInput
/**
* Limit how many InventoryTransferItems to update.
*/
limit?: number
}
/**
* InventoryTransferItem upsert
*/
export type InventoryTransferItemUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the InventoryTransferItem
*/
select?: Prisma.InventoryTransferItemSelect<ExtArgs> | null
/**
* Omit specific fields from the InventoryTransferItem
*/
omit?: Prisma.InventoryTransferItemOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.InventoryTransferItemInclude<ExtArgs> | null
/**
* The filter to search for the InventoryTransferItem to update in case it exists.
*/
where: Prisma.InventoryTransferItemWhereUniqueInput
/**
* In case the InventoryTransferItem found by the `where` argument doesn't exist, create a new InventoryTransferItem with this data.
*/
create: Prisma.XOR<Prisma.InventoryTransferItemCreateInput, Prisma.InventoryTransferItemUncheckedCreateInput>
/**
* In case the InventoryTransferItem was found with the provided `where` argument, update it with this data.
*/
update: Prisma.XOR<Prisma.InventoryTransferItemUpdateInput, Prisma.InventoryTransferItemUncheckedUpdateInput>
}
/**
* InventoryTransferItem delete
*/
export type InventoryTransferItemDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the InventoryTransferItem
*/
select?: Prisma.InventoryTransferItemSelect<ExtArgs> | null
/**
* Omit specific fields from the InventoryTransferItem
*/
omit?: Prisma.InventoryTransferItemOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.InventoryTransferItemInclude<ExtArgs> | null
/**
* Filter which InventoryTransferItem to delete.
*/
where: Prisma.InventoryTransferItemWhereUniqueInput
}
/**
* InventoryTransferItem deleteMany
*/
export type InventoryTransferItemDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Filter which InventoryTransferItems to delete
*/
where?: Prisma.InventoryTransferItemWhereInput
/**
* Limit how many InventoryTransferItems to delete.
*/
limit?: number
}
/**
* InventoryTransferItem without action
*/
export type InventoryTransferItemDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the InventoryTransferItem
*/
select?: Prisma.InventoryTransferItemSelect<ExtArgs> | null
/**
* Omit specific fields from the InventoryTransferItem
*/
omit?: Prisma.InventoryTransferItemOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.InventoryTransferItemInclude<ExtArgs> | null
}