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

1994 lines
84 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 `Inventory` 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 Inventory
*
*/
export type InventoryModel = runtime.Types.Result.DefaultSelection<Prisma.$InventoryPayload>
export type AggregateInventory = {
_count: InventoryCountAggregateOutputType | null
_avg: InventoryAvgAggregateOutputType | null
_sum: InventorySumAggregateOutputType | null
_min: InventoryMinAggregateOutputType | null
_max: InventoryMaxAggregateOutputType | null
}
export type InventoryAvgAggregateOutputType = {
id: number | null
}
export type InventorySumAggregateOutputType = {
id: number | null
}
export type InventoryMinAggregateOutputType = {
id: number | null
name: string | null
location: string | null
isActive: boolean | null
createdAt: Date | null
updatedAt: Date | null
deletedAt: Date | null
}
export type InventoryMaxAggregateOutputType = {
id: number | null
name: string | null
location: string | null
isActive: boolean | null
createdAt: Date | null
updatedAt: Date | null
deletedAt: Date | null
}
export type InventoryCountAggregateOutputType = {
id: number
name: number
location: number
isActive: number
createdAt: number
updatedAt: number
deletedAt: number
_all: number
}
export type InventoryAvgAggregateInputType = {
id?: true
}
export type InventorySumAggregateInputType = {
id?: true
}
export type InventoryMinAggregateInputType = {
id?: true
name?: true
location?: true
isActive?: true
createdAt?: true
updatedAt?: true
deletedAt?: true
}
export type InventoryMaxAggregateInputType = {
id?: true
name?: true
location?: true
isActive?: true
createdAt?: true
updatedAt?: true
deletedAt?: true
}
export type InventoryCountAggregateInputType = {
id?: true
name?: true
location?: true
isActive?: true
createdAt?: true
updatedAt?: true
deletedAt?: true
_all?: true
}
export type InventoryAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Filter which Inventory to aggregate.
*/
where?: Prisma.InventoryWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of Inventories to fetch.
*/
orderBy?: Prisma.InventoryOrderByWithRelationInput | Prisma.InventoryOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the start position
*/
cursor?: Prisma.InventoryWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` Inventories 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` Inventories.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Count returned Inventories
**/
_count?: true | InventoryCountAggregateInputType
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to average
**/
_avg?: InventoryAvgAggregateInputType
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to sum
**/
_sum?: InventorySumAggregateInputType
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to find the minimum value
**/
_min?: InventoryMinAggregateInputType
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to find the maximum value
**/
_max?: InventoryMaxAggregateInputType
}
export type GetInventoryAggregateType<T extends InventoryAggregateArgs> = {
[P in keyof T & keyof AggregateInventory]: P extends '_count' | 'count'
? T[P] extends true
? number
: Prisma.GetScalarType<T[P], AggregateInventory[P]>
: Prisma.GetScalarType<T[P], AggregateInventory[P]>
}
export type InventoryGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
where?: Prisma.InventoryWhereInput
orderBy?: Prisma.InventoryOrderByWithAggregationInput | Prisma.InventoryOrderByWithAggregationInput[]
by: Prisma.InventoryScalarFieldEnum[] | Prisma.InventoryScalarFieldEnum
having?: Prisma.InventoryScalarWhereWithAggregatesInput
take?: number
skip?: number
_count?: InventoryCountAggregateInputType | true
_avg?: InventoryAvgAggregateInputType
_sum?: InventorySumAggregateInputType
_min?: InventoryMinAggregateInputType
_max?: InventoryMaxAggregateInputType
}
export type InventoryGroupByOutputType = {
id: number
name: string
location: string | null
isActive: boolean
createdAt: Date
updatedAt: Date
deletedAt: Date | null
_count: InventoryCountAggregateOutputType | null
_avg: InventoryAvgAggregateOutputType | null
_sum: InventorySumAggregateOutputType | null
_min: InventoryMinAggregateOutputType | null
_max: InventoryMaxAggregateOutputType | null
}
type GetInventoryGroupByPayload<T extends InventoryGroupByArgs> = Prisma.PrismaPromise<
Array<
Prisma.PickEnumerable<InventoryGroupByOutputType, T['by']> &
{
[P in ((keyof T) & (keyof InventoryGroupByOutputType))]: P extends '_count'
? T[P] extends boolean
? number
: Prisma.GetScalarType<T[P], InventoryGroupByOutputType[P]>
: Prisma.GetScalarType<T[P], InventoryGroupByOutputType[P]>
}
>
>
export type InventoryWhereInput = {
AND?: Prisma.InventoryWhereInput | Prisma.InventoryWhereInput[]
OR?: Prisma.InventoryWhereInput[]
NOT?: Prisma.InventoryWhereInput | Prisma.InventoryWhereInput[]
id?: Prisma.IntFilter<"Inventory"> | number
name?: Prisma.StringFilter<"Inventory"> | string
location?: Prisma.StringNullableFilter<"Inventory"> | string | null
isActive?: Prisma.BoolFilter<"Inventory"> | boolean
createdAt?: Prisma.DateTimeFilter<"Inventory"> | Date | string
updatedAt?: Prisma.DateTimeFilter<"Inventory"> | Date | string
deletedAt?: Prisma.DateTimeNullableFilter<"Inventory"> | Date | string | null
inventoryTransfersFrom?: Prisma.InventoryTransferListRelationFilter
inventoryTransfersTo?: Prisma.InventoryTransferListRelationFilter
productCharges?: Prisma.ProductChargeListRelationFilter
purchaseReceipts?: Prisma.PurchaseReceiptListRelationFilter
stockAdjustments?: Prisma.StockAdjustmentListRelationFilter
stockMovements?: Prisma.StockMovementListRelationFilter
}
export type InventoryOrderByWithRelationInput = {
id?: Prisma.SortOrder
name?: Prisma.SortOrder
location?: Prisma.SortOrderInput | Prisma.SortOrder
isActive?: Prisma.SortOrder
createdAt?: Prisma.SortOrder
updatedAt?: Prisma.SortOrder
deletedAt?: Prisma.SortOrderInput | Prisma.SortOrder
inventoryTransfersFrom?: Prisma.InventoryTransferOrderByRelationAggregateInput
inventoryTransfersTo?: Prisma.InventoryTransferOrderByRelationAggregateInput
productCharges?: Prisma.ProductChargeOrderByRelationAggregateInput
purchaseReceipts?: Prisma.PurchaseReceiptOrderByRelationAggregateInput
stockAdjustments?: Prisma.StockAdjustmentOrderByRelationAggregateInput
stockMovements?: Prisma.StockMovementOrderByRelationAggregateInput
_relevance?: Prisma.InventoryOrderByRelevanceInput
}
export type InventoryWhereUniqueInput = Prisma.AtLeast<{
id?: number
AND?: Prisma.InventoryWhereInput | Prisma.InventoryWhereInput[]
OR?: Prisma.InventoryWhereInput[]
NOT?: Prisma.InventoryWhereInput | Prisma.InventoryWhereInput[]
name?: Prisma.StringFilter<"Inventory"> | string
location?: Prisma.StringNullableFilter<"Inventory"> | string | null
isActive?: Prisma.BoolFilter<"Inventory"> | boolean
createdAt?: Prisma.DateTimeFilter<"Inventory"> | Date | string
updatedAt?: Prisma.DateTimeFilter<"Inventory"> | Date | string
deletedAt?: Prisma.DateTimeNullableFilter<"Inventory"> | Date | string | null
inventoryTransfersFrom?: Prisma.InventoryTransferListRelationFilter
inventoryTransfersTo?: Prisma.InventoryTransferListRelationFilter
productCharges?: Prisma.ProductChargeListRelationFilter
purchaseReceipts?: Prisma.PurchaseReceiptListRelationFilter
stockAdjustments?: Prisma.StockAdjustmentListRelationFilter
stockMovements?: Prisma.StockMovementListRelationFilter
}, "id">
export type InventoryOrderByWithAggregationInput = {
id?: Prisma.SortOrder
name?: Prisma.SortOrder
location?: Prisma.SortOrderInput | Prisma.SortOrder
isActive?: Prisma.SortOrder
createdAt?: Prisma.SortOrder
updatedAt?: Prisma.SortOrder
deletedAt?: Prisma.SortOrderInput | Prisma.SortOrder
_count?: Prisma.InventoryCountOrderByAggregateInput
_avg?: Prisma.InventoryAvgOrderByAggregateInput
_max?: Prisma.InventoryMaxOrderByAggregateInput
_min?: Prisma.InventoryMinOrderByAggregateInput
_sum?: Prisma.InventorySumOrderByAggregateInput
}
export type InventoryScalarWhereWithAggregatesInput = {
AND?: Prisma.InventoryScalarWhereWithAggregatesInput | Prisma.InventoryScalarWhereWithAggregatesInput[]
OR?: Prisma.InventoryScalarWhereWithAggregatesInput[]
NOT?: Prisma.InventoryScalarWhereWithAggregatesInput | Prisma.InventoryScalarWhereWithAggregatesInput[]
id?: Prisma.IntWithAggregatesFilter<"Inventory"> | number
name?: Prisma.StringWithAggregatesFilter<"Inventory"> | string
location?: Prisma.StringNullableWithAggregatesFilter<"Inventory"> | string | null
isActive?: Prisma.BoolWithAggregatesFilter<"Inventory"> | boolean
createdAt?: Prisma.DateTimeWithAggregatesFilter<"Inventory"> | Date | string
updatedAt?: Prisma.DateTimeWithAggregatesFilter<"Inventory"> | Date | string
deletedAt?: Prisma.DateTimeNullableWithAggregatesFilter<"Inventory"> | Date | string | null
}
export type InventoryCreateInput = {
name: string
location?: string | null
isActive?: boolean
createdAt?: Date | string
updatedAt?: Date | string
deletedAt?: Date | string | null
inventoryTransfersFrom?: Prisma.InventoryTransferCreateNestedManyWithoutFromInventoryInput
inventoryTransfersTo?: Prisma.InventoryTransferCreateNestedManyWithoutToInventoryInput
productCharges?: Prisma.ProductChargeCreateNestedManyWithoutInventoryInput
purchaseReceipts?: Prisma.PurchaseReceiptCreateNestedManyWithoutInventoryInput
stockAdjustments?: Prisma.StockAdjustmentCreateNestedManyWithoutInventoryInput
stockMovements?: Prisma.StockMovementCreateNestedManyWithoutInventoryInput
}
export type InventoryUncheckedCreateInput = {
id?: number
name: string
location?: string | null
isActive?: boolean
createdAt?: Date | string
updatedAt?: Date | string
deletedAt?: Date | string | null
inventoryTransfersFrom?: Prisma.InventoryTransferUncheckedCreateNestedManyWithoutFromInventoryInput
inventoryTransfersTo?: Prisma.InventoryTransferUncheckedCreateNestedManyWithoutToInventoryInput
productCharges?: Prisma.ProductChargeUncheckedCreateNestedManyWithoutInventoryInput
purchaseReceipts?: Prisma.PurchaseReceiptUncheckedCreateNestedManyWithoutInventoryInput
stockAdjustments?: Prisma.StockAdjustmentUncheckedCreateNestedManyWithoutInventoryInput
stockMovements?: Prisma.StockMovementUncheckedCreateNestedManyWithoutInventoryInput
}
export type InventoryUpdateInput = {
name?: Prisma.StringFieldUpdateOperationsInput | string
location?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
isActive?: Prisma.BoolFieldUpdateOperationsInput | boolean
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
inventoryTransfersFrom?: Prisma.InventoryTransferUpdateManyWithoutFromInventoryNestedInput
inventoryTransfersTo?: Prisma.InventoryTransferUpdateManyWithoutToInventoryNestedInput
productCharges?: Prisma.ProductChargeUpdateManyWithoutInventoryNestedInput
purchaseReceipts?: Prisma.PurchaseReceiptUpdateManyWithoutInventoryNestedInput
stockAdjustments?: Prisma.StockAdjustmentUpdateManyWithoutInventoryNestedInput
stockMovements?: Prisma.StockMovementUpdateManyWithoutInventoryNestedInput
}
export type InventoryUncheckedUpdateInput = {
id?: Prisma.IntFieldUpdateOperationsInput | number
name?: Prisma.StringFieldUpdateOperationsInput | string
location?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
isActive?: Prisma.BoolFieldUpdateOperationsInput | boolean
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
inventoryTransfersFrom?: Prisma.InventoryTransferUncheckedUpdateManyWithoutFromInventoryNestedInput
inventoryTransfersTo?: Prisma.InventoryTransferUncheckedUpdateManyWithoutToInventoryNestedInput
productCharges?: Prisma.ProductChargeUncheckedUpdateManyWithoutInventoryNestedInput
purchaseReceipts?: Prisma.PurchaseReceiptUncheckedUpdateManyWithoutInventoryNestedInput
stockAdjustments?: Prisma.StockAdjustmentUncheckedUpdateManyWithoutInventoryNestedInput
stockMovements?: Prisma.StockMovementUncheckedUpdateManyWithoutInventoryNestedInput
}
export type InventoryCreateManyInput = {
id?: number
name: string
location?: string | null
isActive?: boolean
createdAt?: Date | string
updatedAt?: Date | string
deletedAt?: Date | string | null
}
export type InventoryUpdateManyMutationInput = {
name?: Prisma.StringFieldUpdateOperationsInput | string
location?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
isActive?: Prisma.BoolFieldUpdateOperationsInput | boolean
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
}
export type InventoryUncheckedUpdateManyInput = {
id?: Prisma.IntFieldUpdateOperationsInput | number
name?: Prisma.StringFieldUpdateOperationsInput | string
location?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
isActive?: Prisma.BoolFieldUpdateOperationsInput | boolean
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
}
export type InventoryOrderByRelevanceInput = {
fields: Prisma.InventoryOrderByRelevanceFieldEnum | Prisma.InventoryOrderByRelevanceFieldEnum[]
sort: Prisma.SortOrder
search: string
}
export type InventoryCountOrderByAggregateInput = {
id?: Prisma.SortOrder
name?: Prisma.SortOrder
location?: Prisma.SortOrder
isActive?: Prisma.SortOrder
createdAt?: Prisma.SortOrder
updatedAt?: Prisma.SortOrder
deletedAt?: Prisma.SortOrder
}
export type InventoryAvgOrderByAggregateInput = {
id?: Prisma.SortOrder
}
export type InventoryMaxOrderByAggregateInput = {
id?: Prisma.SortOrder
name?: Prisma.SortOrder
location?: Prisma.SortOrder
isActive?: Prisma.SortOrder
createdAt?: Prisma.SortOrder
updatedAt?: Prisma.SortOrder
deletedAt?: Prisma.SortOrder
}
export type InventoryMinOrderByAggregateInput = {
id?: Prisma.SortOrder
name?: Prisma.SortOrder
location?: Prisma.SortOrder
isActive?: Prisma.SortOrder
createdAt?: Prisma.SortOrder
updatedAt?: Prisma.SortOrder
deletedAt?: Prisma.SortOrder
}
export type InventorySumOrderByAggregateInput = {
id?: Prisma.SortOrder
}
export type InventoryScalarRelationFilter = {
is?: Prisma.InventoryWhereInput
isNot?: Prisma.InventoryWhereInput
}
export type InventoryCreateNestedOneWithoutProductChargesInput = {
create?: Prisma.XOR<Prisma.InventoryCreateWithoutProductChargesInput, Prisma.InventoryUncheckedCreateWithoutProductChargesInput>
connectOrCreate?: Prisma.InventoryCreateOrConnectWithoutProductChargesInput
connect?: Prisma.InventoryWhereUniqueInput
}
export type InventoryUpdateOneRequiredWithoutProductChargesNestedInput = {
create?: Prisma.XOR<Prisma.InventoryCreateWithoutProductChargesInput, Prisma.InventoryUncheckedCreateWithoutProductChargesInput>
connectOrCreate?: Prisma.InventoryCreateOrConnectWithoutProductChargesInput
upsert?: Prisma.InventoryUpsertWithoutProductChargesInput
connect?: Prisma.InventoryWhereUniqueInput
update?: Prisma.XOR<Prisma.XOR<Prisma.InventoryUpdateToOneWithWhereWithoutProductChargesInput, Prisma.InventoryUpdateWithoutProductChargesInput>, Prisma.InventoryUncheckedUpdateWithoutProductChargesInput>
}
export type InventoryCreateNestedOneWithoutPurchaseReceiptsInput = {
create?: Prisma.XOR<Prisma.InventoryCreateWithoutPurchaseReceiptsInput, Prisma.InventoryUncheckedCreateWithoutPurchaseReceiptsInput>
connectOrCreate?: Prisma.InventoryCreateOrConnectWithoutPurchaseReceiptsInput
connect?: Prisma.InventoryWhereUniqueInput
}
export type InventoryUpdateOneRequiredWithoutPurchaseReceiptsNestedInput = {
create?: Prisma.XOR<Prisma.InventoryCreateWithoutPurchaseReceiptsInput, Prisma.InventoryUncheckedCreateWithoutPurchaseReceiptsInput>
connectOrCreate?: Prisma.InventoryCreateOrConnectWithoutPurchaseReceiptsInput
upsert?: Prisma.InventoryUpsertWithoutPurchaseReceiptsInput
connect?: Prisma.InventoryWhereUniqueInput
update?: Prisma.XOR<Prisma.XOR<Prisma.InventoryUpdateToOneWithWhereWithoutPurchaseReceiptsInput, Prisma.InventoryUpdateWithoutPurchaseReceiptsInput>, Prisma.InventoryUncheckedUpdateWithoutPurchaseReceiptsInput>
}
export type InventoryCreateNestedOneWithoutStockMovementsInput = {
create?: Prisma.XOR<Prisma.InventoryCreateWithoutStockMovementsInput, Prisma.InventoryUncheckedCreateWithoutStockMovementsInput>
connectOrCreate?: Prisma.InventoryCreateOrConnectWithoutStockMovementsInput
connect?: Prisma.InventoryWhereUniqueInput
}
export type InventoryUpdateOneRequiredWithoutStockMovementsNestedInput = {
create?: Prisma.XOR<Prisma.InventoryCreateWithoutStockMovementsInput, Prisma.InventoryUncheckedCreateWithoutStockMovementsInput>
connectOrCreate?: Prisma.InventoryCreateOrConnectWithoutStockMovementsInput
upsert?: Prisma.InventoryUpsertWithoutStockMovementsInput
connect?: Prisma.InventoryWhereUniqueInput
update?: Prisma.XOR<Prisma.XOR<Prisma.InventoryUpdateToOneWithWhereWithoutStockMovementsInput, Prisma.InventoryUpdateWithoutStockMovementsInput>, Prisma.InventoryUncheckedUpdateWithoutStockMovementsInput>
}
export type InventoryCreateNestedOneWithoutInventoryTransfersFromInput = {
create?: Prisma.XOR<Prisma.InventoryCreateWithoutInventoryTransfersFromInput, Prisma.InventoryUncheckedCreateWithoutInventoryTransfersFromInput>
connectOrCreate?: Prisma.InventoryCreateOrConnectWithoutInventoryTransfersFromInput
connect?: Prisma.InventoryWhereUniqueInput
}
export type InventoryCreateNestedOneWithoutInventoryTransfersToInput = {
create?: Prisma.XOR<Prisma.InventoryCreateWithoutInventoryTransfersToInput, Prisma.InventoryUncheckedCreateWithoutInventoryTransfersToInput>
connectOrCreate?: Prisma.InventoryCreateOrConnectWithoutInventoryTransfersToInput
connect?: Prisma.InventoryWhereUniqueInput
}
export type InventoryUpdateOneRequiredWithoutInventoryTransfersFromNestedInput = {
create?: Prisma.XOR<Prisma.InventoryCreateWithoutInventoryTransfersFromInput, Prisma.InventoryUncheckedCreateWithoutInventoryTransfersFromInput>
connectOrCreate?: Prisma.InventoryCreateOrConnectWithoutInventoryTransfersFromInput
upsert?: Prisma.InventoryUpsertWithoutInventoryTransfersFromInput
connect?: Prisma.InventoryWhereUniqueInput
update?: Prisma.XOR<Prisma.XOR<Prisma.InventoryUpdateToOneWithWhereWithoutInventoryTransfersFromInput, Prisma.InventoryUpdateWithoutInventoryTransfersFromInput>, Prisma.InventoryUncheckedUpdateWithoutInventoryTransfersFromInput>
}
export type InventoryUpdateOneRequiredWithoutInventoryTransfersToNestedInput = {
create?: Prisma.XOR<Prisma.InventoryCreateWithoutInventoryTransfersToInput, Prisma.InventoryUncheckedCreateWithoutInventoryTransfersToInput>
connectOrCreate?: Prisma.InventoryCreateOrConnectWithoutInventoryTransfersToInput
upsert?: Prisma.InventoryUpsertWithoutInventoryTransfersToInput
connect?: Prisma.InventoryWhereUniqueInput
update?: Prisma.XOR<Prisma.XOR<Prisma.InventoryUpdateToOneWithWhereWithoutInventoryTransfersToInput, Prisma.InventoryUpdateWithoutInventoryTransfersToInput>, Prisma.InventoryUncheckedUpdateWithoutInventoryTransfersToInput>
}
export type InventoryCreateNestedOneWithoutStockAdjustmentsInput = {
create?: Prisma.XOR<Prisma.InventoryCreateWithoutStockAdjustmentsInput, Prisma.InventoryUncheckedCreateWithoutStockAdjustmentsInput>
connectOrCreate?: Prisma.InventoryCreateOrConnectWithoutStockAdjustmentsInput
connect?: Prisma.InventoryWhereUniqueInput
}
export type InventoryUpdateOneRequiredWithoutStockAdjustmentsNestedInput = {
create?: Prisma.XOR<Prisma.InventoryCreateWithoutStockAdjustmentsInput, Prisma.InventoryUncheckedCreateWithoutStockAdjustmentsInput>
connectOrCreate?: Prisma.InventoryCreateOrConnectWithoutStockAdjustmentsInput
upsert?: Prisma.InventoryUpsertWithoutStockAdjustmentsInput
connect?: Prisma.InventoryWhereUniqueInput
update?: Prisma.XOR<Prisma.XOR<Prisma.InventoryUpdateToOneWithWhereWithoutStockAdjustmentsInput, Prisma.InventoryUpdateWithoutStockAdjustmentsInput>, Prisma.InventoryUncheckedUpdateWithoutStockAdjustmentsInput>
}
export type InventoryCreateWithoutProductChargesInput = {
name: string
location?: string | null
isActive?: boolean
createdAt?: Date | string
updatedAt?: Date | string
deletedAt?: Date | string | null
inventoryTransfersFrom?: Prisma.InventoryTransferCreateNestedManyWithoutFromInventoryInput
inventoryTransfersTo?: Prisma.InventoryTransferCreateNestedManyWithoutToInventoryInput
purchaseReceipts?: Prisma.PurchaseReceiptCreateNestedManyWithoutInventoryInput
stockAdjustments?: Prisma.StockAdjustmentCreateNestedManyWithoutInventoryInput
stockMovements?: Prisma.StockMovementCreateNestedManyWithoutInventoryInput
}
export type InventoryUncheckedCreateWithoutProductChargesInput = {
id?: number
name: string
location?: string | null
isActive?: boolean
createdAt?: Date | string
updatedAt?: Date | string
deletedAt?: Date | string | null
inventoryTransfersFrom?: Prisma.InventoryTransferUncheckedCreateNestedManyWithoutFromInventoryInput
inventoryTransfersTo?: Prisma.InventoryTransferUncheckedCreateNestedManyWithoutToInventoryInput
purchaseReceipts?: Prisma.PurchaseReceiptUncheckedCreateNestedManyWithoutInventoryInput
stockAdjustments?: Prisma.StockAdjustmentUncheckedCreateNestedManyWithoutInventoryInput
stockMovements?: Prisma.StockMovementUncheckedCreateNestedManyWithoutInventoryInput
}
export type InventoryCreateOrConnectWithoutProductChargesInput = {
where: Prisma.InventoryWhereUniqueInput
create: Prisma.XOR<Prisma.InventoryCreateWithoutProductChargesInput, Prisma.InventoryUncheckedCreateWithoutProductChargesInput>
}
export type InventoryUpsertWithoutProductChargesInput = {
update: Prisma.XOR<Prisma.InventoryUpdateWithoutProductChargesInput, Prisma.InventoryUncheckedUpdateWithoutProductChargesInput>
create: Prisma.XOR<Prisma.InventoryCreateWithoutProductChargesInput, Prisma.InventoryUncheckedCreateWithoutProductChargesInput>
where?: Prisma.InventoryWhereInput
}
export type InventoryUpdateToOneWithWhereWithoutProductChargesInput = {
where?: Prisma.InventoryWhereInput
data: Prisma.XOR<Prisma.InventoryUpdateWithoutProductChargesInput, Prisma.InventoryUncheckedUpdateWithoutProductChargesInput>
}
export type InventoryUpdateWithoutProductChargesInput = {
name?: Prisma.StringFieldUpdateOperationsInput | string
location?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
isActive?: Prisma.BoolFieldUpdateOperationsInput | boolean
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
inventoryTransfersFrom?: Prisma.InventoryTransferUpdateManyWithoutFromInventoryNestedInput
inventoryTransfersTo?: Prisma.InventoryTransferUpdateManyWithoutToInventoryNestedInput
purchaseReceipts?: Prisma.PurchaseReceiptUpdateManyWithoutInventoryNestedInput
stockAdjustments?: Prisma.StockAdjustmentUpdateManyWithoutInventoryNestedInput
stockMovements?: Prisma.StockMovementUpdateManyWithoutInventoryNestedInput
}
export type InventoryUncheckedUpdateWithoutProductChargesInput = {
id?: Prisma.IntFieldUpdateOperationsInput | number
name?: Prisma.StringFieldUpdateOperationsInput | string
location?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
isActive?: Prisma.BoolFieldUpdateOperationsInput | boolean
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
inventoryTransfersFrom?: Prisma.InventoryTransferUncheckedUpdateManyWithoutFromInventoryNestedInput
inventoryTransfersTo?: Prisma.InventoryTransferUncheckedUpdateManyWithoutToInventoryNestedInput
purchaseReceipts?: Prisma.PurchaseReceiptUncheckedUpdateManyWithoutInventoryNestedInput
stockAdjustments?: Prisma.StockAdjustmentUncheckedUpdateManyWithoutInventoryNestedInput
stockMovements?: Prisma.StockMovementUncheckedUpdateManyWithoutInventoryNestedInput
}
export type InventoryCreateWithoutPurchaseReceiptsInput = {
name: string
location?: string | null
isActive?: boolean
createdAt?: Date | string
updatedAt?: Date | string
deletedAt?: Date | string | null
inventoryTransfersFrom?: Prisma.InventoryTransferCreateNestedManyWithoutFromInventoryInput
inventoryTransfersTo?: Prisma.InventoryTransferCreateNestedManyWithoutToInventoryInput
productCharges?: Prisma.ProductChargeCreateNestedManyWithoutInventoryInput
stockAdjustments?: Prisma.StockAdjustmentCreateNestedManyWithoutInventoryInput
stockMovements?: Prisma.StockMovementCreateNestedManyWithoutInventoryInput
}
export type InventoryUncheckedCreateWithoutPurchaseReceiptsInput = {
id?: number
name: string
location?: string | null
isActive?: boolean
createdAt?: Date | string
updatedAt?: Date | string
deletedAt?: Date | string | null
inventoryTransfersFrom?: Prisma.InventoryTransferUncheckedCreateNestedManyWithoutFromInventoryInput
inventoryTransfersTo?: Prisma.InventoryTransferUncheckedCreateNestedManyWithoutToInventoryInput
productCharges?: Prisma.ProductChargeUncheckedCreateNestedManyWithoutInventoryInput
stockAdjustments?: Prisma.StockAdjustmentUncheckedCreateNestedManyWithoutInventoryInput
stockMovements?: Prisma.StockMovementUncheckedCreateNestedManyWithoutInventoryInput
}
export type InventoryCreateOrConnectWithoutPurchaseReceiptsInput = {
where: Prisma.InventoryWhereUniqueInput
create: Prisma.XOR<Prisma.InventoryCreateWithoutPurchaseReceiptsInput, Prisma.InventoryUncheckedCreateWithoutPurchaseReceiptsInput>
}
export type InventoryUpsertWithoutPurchaseReceiptsInput = {
update: Prisma.XOR<Prisma.InventoryUpdateWithoutPurchaseReceiptsInput, Prisma.InventoryUncheckedUpdateWithoutPurchaseReceiptsInput>
create: Prisma.XOR<Prisma.InventoryCreateWithoutPurchaseReceiptsInput, Prisma.InventoryUncheckedCreateWithoutPurchaseReceiptsInput>
where?: Prisma.InventoryWhereInput
}
export type InventoryUpdateToOneWithWhereWithoutPurchaseReceiptsInput = {
where?: Prisma.InventoryWhereInput
data: Prisma.XOR<Prisma.InventoryUpdateWithoutPurchaseReceiptsInput, Prisma.InventoryUncheckedUpdateWithoutPurchaseReceiptsInput>
}
export type InventoryUpdateWithoutPurchaseReceiptsInput = {
name?: Prisma.StringFieldUpdateOperationsInput | string
location?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
isActive?: Prisma.BoolFieldUpdateOperationsInput | boolean
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
inventoryTransfersFrom?: Prisma.InventoryTransferUpdateManyWithoutFromInventoryNestedInput
inventoryTransfersTo?: Prisma.InventoryTransferUpdateManyWithoutToInventoryNestedInput
productCharges?: Prisma.ProductChargeUpdateManyWithoutInventoryNestedInput
stockAdjustments?: Prisma.StockAdjustmentUpdateManyWithoutInventoryNestedInput
stockMovements?: Prisma.StockMovementUpdateManyWithoutInventoryNestedInput
}
export type InventoryUncheckedUpdateWithoutPurchaseReceiptsInput = {
id?: Prisma.IntFieldUpdateOperationsInput | number
name?: Prisma.StringFieldUpdateOperationsInput | string
location?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
isActive?: Prisma.BoolFieldUpdateOperationsInput | boolean
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
inventoryTransfersFrom?: Prisma.InventoryTransferUncheckedUpdateManyWithoutFromInventoryNestedInput
inventoryTransfersTo?: Prisma.InventoryTransferUncheckedUpdateManyWithoutToInventoryNestedInput
productCharges?: Prisma.ProductChargeUncheckedUpdateManyWithoutInventoryNestedInput
stockAdjustments?: Prisma.StockAdjustmentUncheckedUpdateManyWithoutInventoryNestedInput
stockMovements?: Prisma.StockMovementUncheckedUpdateManyWithoutInventoryNestedInput
}
export type InventoryCreateWithoutStockMovementsInput = {
name: string
location?: string | null
isActive?: boolean
createdAt?: Date | string
updatedAt?: Date | string
deletedAt?: Date | string | null
inventoryTransfersFrom?: Prisma.InventoryTransferCreateNestedManyWithoutFromInventoryInput
inventoryTransfersTo?: Prisma.InventoryTransferCreateNestedManyWithoutToInventoryInput
productCharges?: Prisma.ProductChargeCreateNestedManyWithoutInventoryInput
purchaseReceipts?: Prisma.PurchaseReceiptCreateNestedManyWithoutInventoryInput
stockAdjustments?: Prisma.StockAdjustmentCreateNestedManyWithoutInventoryInput
}
export type InventoryUncheckedCreateWithoutStockMovementsInput = {
id?: number
name: string
location?: string | null
isActive?: boolean
createdAt?: Date | string
updatedAt?: Date | string
deletedAt?: Date | string | null
inventoryTransfersFrom?: Prisma.InventoryTransferUncheckedCreateNestedManyWithoutFromInventoryInput
inventoryTransfersTo?: Prisma.InventoryTransferUncheckedCreateNestedManyWithoutToInventoryInput
productCharges?: Prisma.ProductChargeUncheckedCreateNestedManyWithoutInventoryInput
purchaseReceipts?: Prisma.PurchaseReceiptUncheckedCreateNestedManyWithoutInventoryInput
stockAdjustments?: Prisma.StockAdjustmentUncheckedCreateNestedManyWithoutInventoryInput
}
export type InventoryCreateOrConnectWithoutStockMovementsInput = {
where: Prisma.InventoryWhereUniqueInput
create: Prisma.XOR<Prisma.InventoryCreateWithoutStockMovementsInput, Prisma.InventoryUncheckedCreateWithoutStockMovementsInput>
}
export type InventoryUpsertWithoutStockMovementsInput = {
update: Prisma.XOR<Prisma.InventoryUpdateWithoutStockMovementsInput, Prisma.InventoryUncheckedUpdateWithoutStockMovementsInput>
create: Prisma.XOR<Prisma.InventoryCreateWithoutStockMovementsInput, Prisma.InventoryUncheckedCreateWithoutStockMovementsInput>
where?: Prisma.InventoryWhereInput
}
export type InventoryUpdateToOneWithWhereWithoutStockMovementsInput = {
where?: Prisma.InventoryWhereInput
data: Prisma.XOR<Prisma.InventoryUpdateWithoutStockMovementsInput, Prisma.InventoryUncheckedUpdateWithoutStockMovementsInput>
}
export type InventoryUpdateWithoutStockMovementsInput = {
name?: Prisma.StringFieldUpdateOperationsInput | string
location?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
isActive?: Prisma.BoolFieldUpdateOperationsInput | boolean
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
inventoryTransfersFrom?: Prisma.InventoryTransferUpdateManyWithoutFromInventoryNestedInput
inventoryTransfersTo?: Prisma.InventoryTransferUpdateManyWithoutToInventoryNestedInput
productCharges?: Prisma.ProductChargeUpdateManyWithoutInventoryNestedInput
purchaseReceipts?: Prisma.PurchaseReceiptUpdateManyWithoutInventoryNestedInput
stockAdjustments?: Prisma.StockAdjustmentUpdateManyWithoutInventoryNestedInput
}
export type InventoryUncheckedUpdateWithoutStockMovementsInput = {
id?: Prisma.IntFieldUpdateOperationsInput | number
name?: Prisma.StringFieldUpdateOperationsInput | string
location?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
isActive?: Prisma.BoolFieldUpdateOperationsInput | boolean
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
inventoryTransfersFrom?: Prisma.InventoryTransferUncheckedUpdateManyWithoutFromInventoryNestedInput
inventoryTransfersTo?: Prisma.InventoryTransferUncheckedUpdateManyWithoutToInventoryNestedInput
productCharges?: Prisma.ProductChargeUncheckedUpdateManyWithoutInventoryNestedInput
purchaseReceipts?: Prisma.PurchaseReceiptUncheckedUpdateManyWithoutInventoryNestedInput
stockAdjustments?: Prisma.StockAdjustmentUncheckedUpdateManyWithoutInventoryNestedInput
}
export type InventoryCreateWithoutInventoryTransfersFromInput = {
name: string
location?: string | null
isActive?: boolean
createdAt?: Date | string
updatedAt?: Date | string
deletedAt?: Date | string | null
inventoryTransfersTo?: Prisma.InventoryTransferCreateNestedManyWithoutToInventoryInput
productCharges?: Prisma.ProductChargeCreateNestedManyWithoutInventoryInput
purchaseReceipts?: Prisma.PurchaseReceiptCreateNestedManyWithoutInventoryInput
stockAdjustments?: Prisma.StockAdjustmentCreateNestedManyWithoutInventoryInput
stockMovements?: Prisma.StockMovementCreateNestedManyWithoutInventoryInput
}
export type InventoryUncheckedCreateWithoutInventoryTransfersFromInput = {
id?: number
name: string
location?: string | null
isActive?: boolean
createdAt?: Date | string
updatedAt?: Date | string
deletedAt?: Date | string | null
inventoryTransfersTo?: Prisma.InventoryTransferUncheckedCreateNestedManyWithoutToInventoryInput
productCharges?: Prisma.ProductChargeUncheckedCreateNestedManyWithoutInventoryInput
purchaseReceipts?: Prisma.PurchaseReceiptUncheckedCreateNestedManyWithoutInventoryInput
stockAdjustments?: Prisma.StockAdjustmentUncheckedCreateNestedManyWithoutInventoryInput
stockMovements?: Prisma.StockMovementUncheckedCreateNestedManyWithoutInventoryInput
}
export type InventoryCreateOrConnectWithoutInventoryTransfersFromInput = {
where: Prisma.InventoryWhereUniqueInput
create: Prisma.XOR<Prisma.InventoryCreateWithoutInventoryTransfersFromInput, Prisma.InventoryUncheckedCreateWithoutInventoryTransfersFromInput>
}
export type InventoryCreateWithoutInventoryTransfersToInput = {
name: string
location?: string | null
isActive?: boolean
createdAt?: Date | string
updatedAt?: Date | string
deletedAt?: Date | string | null
inventoryTransfersFrom?: Prisma.InventoryTransferCreateNestedManyWithoutFromInventoryInput
productCharges?: Prisma.ProductChargeCreateNestedManyWithoutInventoryInput
purchaseReceipts?: Prisma.PurchaseReceiptCreateNestedManyWithoutInventoryInput
stockAdjustments?: Prisma.StockAdjustmentCreateNestedManyWithoutInventoryInput
stockMovements?: Prisma.StockMovementCreateNestedManyWithoutInventoryInput
}
export type InventoryUncheckedCreateWithoutInventoryTransfersToInput = {
id?: number
name: string
location?: string | null
isActive?: boolean
createdAt?: Date | string
updatedAt?: Date | string
deletedAt?: Date | string | null
inventoryTransfersFrom?: Prisma.InventoryTransferUncheckedCreateNestedManyWithoutFromInventoryInput
productCharges?: Prisma.ProductChargeUncheckedCreateNestedManyWithoutInventoryInput
purchaseReceipts?: Prisma.PurchaseReceiptUncheckedCreateNestedManyWithoutInventoryInput
stockAdjustments?: Prisma.StockAdjustmentUncheckedCreateNestedManyWithoutInventoryInput
stockMovements?: Prisma.StockMovementUncheckedCreateNestedManyWithoutInventoryInput
}
export type InventoryCreateOrConnectWithoutInventoryTransfersToInput = {
where: Prisma.InventoryWhereUniqueInput
create: Prisma.XOR<Prisma.InventoryCreateWithoutInventoryTransfersToInput, Prisma.InventoryUncheckedCreateWithoutInventoryTransfersToInput>
}
export type InventoryUpsertWithoutInventoryTransfersFromInput = {
update: Prisma.XOR<Prisma.InventoryUpdateWithoutInventoryTransfersFromInput, Prisma.InventoryUncheckedUpdateWithoutInventoryTransfersFromInput>
create: Prisma.XOR<Prisma.InventoryCreateWithoutInventoryTransfersFromInput, Prisma.InventoryUncheckedCreateWithoutInventoryTransfersFromInput>
where?: Prisma.InventoryWhereInput
}
export type InventoryUpdateToOneWithWhereWithoutInventoryTransfersFromInput = {
where?: Prisma.InventoryWhereInput
data: Prisma.XOR<Prisma.InventoryUpdateWithoutInventoryTransfersFromInput, Prisma.InventoryUncheckedUpdateWithoutInventoryTransfersFromInput>
}
export type InventoryUpdateWithoutInventoryTransfersFromInput = {
name?: Prisma.StringFieldUpdateOperationsInput | string
location?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
isActive?: Prisma.BoolFieldUpdateOperationsInput | boolean
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
inventoryTransfersTo?: Prisma.InventoryTransferUpdateManyWithoutToInventoryNestedInput
productCharges?: Prisma.ProductChargeUpdateManyWithoutInventoryNestedInput
purchaseReceipts?: Prisma.PurchaseReceiptUpdateManyWithoutInventoryNestedInput
stockAdjustments?: Prisma.StockAdjustmentUpdateManyWithoutInventoryNestedInput
stockMovements?: Prisma.StockMovementUpdateManyWithoutInventoryNestedInput
}
export type InventoryUncheckedUpdateWithoutInventoryTransfersFromInput = {
id?: Prisma.IntFieldUpdateOperationsInput | number
name?: Prisma.StringFieldUpdateOperationsInput | string
location?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
isActive?: Prisma.BoolFieldUpdateOperationsInput | boolean
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
inventoryTransfersTo?: Prisma.InventoryTransferUncheckedUpdateManyWithoutToInventoryNestedInput
productCharges?: Prisma.ProductChargeUncheckedUpdateManyWithoutInventoryNestedInput
purchaseReceipts?: Prisma.PurchaseReceiptUncheckedUpdateManyWithoutInventoryNestedInput
stockAdjustments?: Prisma.StockAdjustmentUncheckedUpdateManyWithoutInventoryNestedInput
stockMovements?: Prisma.StockMovementUncheckedUpdateManyWithoutInventoryNestedInput
}
export type InventoryUpsertWithoutInventoryTransfersToInput = {
update: Prisma.XOR<Prisma.InventoryUpdateWithoutInventoryTransfersToInput, Prisma.InventoryUncheckedUpdateWithoutInventoryTransfersToInput>
create: Prisma.XOR<Prisma.InventoryCreateWithoutInventoryTransfersToInput, Prisma.InventoryUncheckedCreateWithoutInventoryTransfersToInput>
where?: Prisma.InventoryWhereInput
}
export type InventoryUpdateToOneWithWhereWithoutInventoryTransfersToInput = {
where?: Prisma.InventoryWhereInput
data: Prisma.XOR<Prisma.InventoryUpdateWithoutInventoryTransfersToInput, Prisma.InventoryUncheckedUpdateWithoutInventoryTransfersToInput>
}
export type InventoryUpdateWithoutInventoryTransfersToInput = {
name?: Prisma.StringFieldUpdateOperationsInput | string
location?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
isActive?: Prisma.BoolFieldUpdateOperationsInput | boolean
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
inventoryTransfersFrom?: Prisma.InventoryTransferUpdateManyWithoutFromInventoryNestedInput
productCharges?: Prisma.ProductChargeUpdateManyWithoutInventoryNestedInput
purchaseReceipts?: Prisma.PurchaseReceiptUpdateManyWithoutInventoryNestedInput
stockAdjustments?: Prisma.StockAdjustmentUpdateManyWithoutInventoryNestedInput
stockMovements?: Prisma.StockMovementUpdateManyWithoutInventoryNestedInput
}
export type InventoryUncheckedUpdateWithoutInventoryTransfersToInput = {
id?: Prisma.IntFieldUpdateOperationsInput | number
name?: Prisma.StringFieldUpdateOperationsInput | string
location?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
isActive?: Prisma.BoolFieldUpdateOperationsInput | boolean
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
inventoryTransfersFrom?: Prisma.InventoryTransferUncheckedUpdateManyWithoutFromInventoryNestedInput
productCharges?: Prisma.ProductChargeUncheckedUpdateManyWithoutInventoryNestedInput
purchaseReceipts?: Prisma.PurchaseReceiptUncheckedUpdateManyWithoutInventoryNestedInput
stockAdjustments?: Prisma.StockAdjustmentUncheckedUpdateManyWithoutInventoryNestedInput
stockMovements?: Prisma.StockMovementUncheckedUpdateManyWithoutInventoryNestedInput
}
export type InventoryCreateWithoutStockAdjustmentsInput = {
name: string
location?: string | null
isActive?: boolean
createdAt?: Date | string
updatedAt?: Date | string
deletedAt?: Date | string | null
inventoryTransfersFrom?: Prisma.InventoryTransferCreateNestedManyWithoutFromInventoryInput
inventoryTransfersTo?: Prisma.InventoryTransferCreateNestedManyWithoutToInventoryInput
productCharges?: Prisma.ProductChargeCreateNestedManyWithoutInventoryInput
purchaseReceipts?: Prisma.PurchaseReceiptCreateNestedManyWithoutInventoryInput
stockMovements?: Prisma.StockMovementCreateNestedManyWithoutInventoryInput
}
export type InventoryUncheckedCreateWithoutStockAdjustmentsInput = {
id?: number
name: string
location?: string | null
isActive?: boolean
createdAt?: Date | string
updatedAt?: Date | string
deletedAt?: Date | string | null
inventoryTransfersFrom?: Prisma.InventoryTransferUncheckedCreateNestedManyWithoutFromInventoryInput
inventoryTransfersTo?: Prisma.InventoryTransferUncheckedCreateNestedManyWithoutToInventoryInput
productCharges?: Prisma.ProductChargeUncheckedCreateNestedManyWithoutInventoryInput
purchaseReceipts?: Prisma.PurchaseReceiptUncheckedCreateNestedManyWithoutInventoryInput
stockMovements?: Prisma.StockMovementUncheckedCreateNestedManyWithoutInventoryInput
}
export type InventoryCreateOrConnectWithoutStockAdjustmentsInput = {
where: Prisma.InventoryWhereUniqueInput
create: Prisma.XOR<Prisma.InventoryCreateWithoutStockAdjustmentsInput, Prisma.InventoryUncheckedCreateWithoutStockAdjustmentsInput>
}
export type InventoryUpsertWithoutStockAdjustmentsInput = {
update: Prisma.XOR<Prisma.InventoryUpdateWithoutStockAdjustmentsInput, Prisma.InventoryUncheckedUpdateWithoutStockAdjustmentsInput>
create: Prisma.XOR<Prisma.InventoryCreateWithoutStockAdjustmentsInput, Prisma.InventoryUncheckedCreateWithoutStockAdjustmentsInput>
where?: Prisma.InventoryWhereInput
}
export type InventoryUpdateToOneWithWhereWithoutStockAdjustmentsInput = {
where?: Prisma.InventoryWhereInput
data: Prisma.XOR<Prisma.InventoryUpdateWithoutStockAdjustmentsInput, Prisma.InventoryUncheckedUpdateWithoutStockAdjustmentsInput>
}
export type InventoryUpdateWithoutStockAdjustmentsInput = {
name?: Prisma.StringFieldUpdateOperationsInput | string
location?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
isActive?: Prisma.BoolFieldUpdateOperationsInput | boolean
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
inventoryTransfersFrom?: Prisma.InventoryTransferUpdateManyWithoutFromInventoryNestedInput
inventoryTransfersTo?: Prisma.InventoryTransferUpdateManyWithoutToInventoryNestedInput
productCharges?: Prisma.ProductChargeUpdateManyWithoutInventoryNestedInput
purchaseReceipts?: Prisma.PurchaseReceiptUpdateManyWithoutInventoryNestedInput
stockMovements?: Prisma.StockMovementUpdateManyWithoutInventoryNestedInput
}
export type InventoryUncheckedUpdateWithoutStockAdjustmentsInput = {
id?: Prisma.IntFieldUpdateOperationsInput | number
name?: Prisma.StringFieldUpdateOperationsInput | string
location?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
isActive?: Prisma.BoolFieldUpdateOperationsInput | boolean
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
inventoryTransfersFrom?: Prisma.InventoryTransferUncheckedUpdateManyWithoutFromInventoryNestedInput
inventoryTransfersTo?: Prisma.InventoryTransferUncheckedUpdateManyWithoutToInventoryNestedInput
productCharges?: Prisma.ProductChargeUncheckedUpdateManyWithoutInventoryNestedInput
purchaseReceipts?: Prisma.PurchaseReceiptUncheckedUpdateManyWithoutInventoryNestedInput
stockMovements?: Prisma.StockMovementUncheckedUpdateManyWithoutInventoryNestedInput
}
/**
* Count Type InventoryCountOutputType
*/
export type InventoryCountOutputType = {
inventoryTransfersFrom: number
inventoryTransfersTo: number
productCharges: number
purchaseReceipts: number
stockAdjustments: number
stockMovements: number
}
export type InventoryCountOutputTypeSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
inventoryTransfersFrom?: boolean | InventoryCountOutputTypeCountInventoryTransfersFromArgs
inventoryTransfersTo?: boolean | InventoryCountOutputTypeCountInventoryTransfersToArgs
productCharges?: boolean | InventoryCountOutputTypeCountProductChargesArgs
purchaseReceipts?: boolean | InventoryCountOutputTypeCountPurchaseReceiptsArgs
stockAdjustments?: boolean | InventoryCountOutputTypeCountStockAdjustmentsArgs
stockMovements?: boolean | InventoryCountOutputTypeCountStockMovementsArgs
}
/**
* InventoryCountOutputType without action
*/
export type InventoryCountOutputTypeDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the InventoryCountOutputType
*/
select?: Prisma.InventoryCountOutputTypeSelect<ExtArgs> | null
}
/**
* InventoryCountOutputType without action
*/
export type InventoryCountOutputTypeCountInventoryTransfersFromArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
where?: Prisma.InventoryTransferWhereInput
}
/**
* InventoryCountOutputType without action
*/
export type InventoryCountOutputTypeCountInventoryTransfersToArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
where?: Prisma.InventoryTransferWhereInput
}
/**
* InventoryCountOutputType without action
*/
export type InventoryCountOutputTypeCountProductChargesArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
where?: Prisma.ProductChargeWhereInput
}
/**
* InventoryCountOutputType without action
*/
export type InventoryCountOutputTypeCountPurchaseReceiptsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
where?: Prisma.PurchaseReceiptWhereInput
}
/**
* InventoryCountOutputType without action
*/
export type InventoryCountOutputTypeCountStockAdjustmentsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
where?: Prisma.StockAdjustmentWhereInput
}
/**
* InventoryCountOutputType without action
*/
export type InventoryCountOutputTypeCountStockMovementsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
where?: Prisma.StockMovementWhereInput
}
export type InventorySelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
id?: boolean
name?: boolean
location?: boolean
isActive?: boolean
createdAt?: boolean
updatedAt?: boolean
deletedAt?: boolean
inventoryTransfersFrom?: boolean | Prisma.Inventory$inventoryTransfersFromArgs<ExtArgs>
inventoryTransfersTo?: boolean | Prisma.Inventory$inventoryTransfersToArgs<ExtArgs>
productCharges?: boolean | Prisma.Inventory$productChargesArgs<ExtArgs>
purchaseReceipts?: boolean | Prisma.Inventory$purchaseReceiptsArgs<ExtArgs>
stockAdjustments?: boolean | Prisma.Inventory$stockAdjustmentsArgs<ExtArgs>
stockMovements?: boolean | Prisma.Inventory$stockMovementsArgs<ExtArgs>
_count?: boolean | Prisma.InventoryCountOutputTypeDefaultArgs<ExtArgs>
}, ExtArgs["result"]["inventory"]>
export type InventorySelectScalar = {
id?: boolean
name?: boolean
location?: boolean
isActive?: boolean
createdAt?: boolean
updatedAt?: boolean
deletedAt?: boolean
}
export type InventoryOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "name" | "location" | "isActive" | "createdAt" | "updatedAt" | "deletedAt", ExtArgs["result"]["inventory"]>
export type InventoryInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
inventoryTransfersFrom?: boolean | Prisma.Inventory$inventoryTransfersFromArgs<ExtArgs>
inventoryTransfersTo?: boolean | Prisma.Inventory$inventoryTransfersToArgs<ExtArgs>
productCharges?: boolean | Prisma.Inventory$productChargesArgs<ExtArgs>
purchaseReceipts?: boolean | Prisma.Inventory$purchaseReceiptsArgs<ExtArgs>
stockAdjustments?: boolean | Prisma.Inventory$stockAdjustmentsArgs<ExtArgs>
stockMovements?: boolean | Prisma.Inventory$stockMovementsArgs<ExtArgs>
_count?: boolean | Prisma.InventoryCountOutputTypeDefaultArgs<ExtArgs>
}
export type $InventoryPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
name: "Inventory"
objects: {
inventoryTransfersFrom: Prisma.$InventoryTransferPayload<ExtArgs>[]
inventoryTransfersTo: Prisma.$InventoryTransferPayload<ExtArgs>[]
productCharges: Prisma.$ProductChargePayload<ExtArgs>[]
purchaseReceipts: Prisma.$PurchaseReceiptPayload<ExtArgs>[]
stockAdjustments: Prisma.$StockAdjustmentPayload<ExtArgs>[]
stockMovements: Prisma.$StockMovementPayload<ExtArgs>[]
}
scalars: runtime.Types.Extensions.GetPayloadResult<{
id: number
name: string
location: string | null
isActive: boolean
createdAt: Date
updatedAt: Date
deletedAt: Date | null
}, ExtArgs["result"]["inventory"]>
composites: {}
}
export type InventoryGetPayload<S extends boolean | null | undefined | InventoryDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$InventoryPayload, S>
export type InventoryCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> =
Omit<InventoryFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
select?: InventoryCountAggregateInputType | true
}
export interface InventoryDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
[K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['Inventory'], meta: { name: 'Inventory' } }
/**
* Find zero or one Inventory that matches the filter.
* @param {InventoryFindUniqueArgs} args - Arguments to find a Inventory
* @example
* // Get one Inventory
* const inventory = await prisma.inventory.findUnique({
* where: {
* // ... provide filter here
* }
* })
*/
findUnique<T extends InventoryFindUniqueArgs>(args: Prisma.SelectSubset<T, InventoryFindUniqueArgs<ExtArgs>>): Prisma.Prisma__InventoryClient<runtime.Types.Result.GetResult<Prisma.$InventoryPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
/**
* Find one Inventory that matches the filter or throw an error with `error.code='P2025'`
* if no matches were found.
* @param {InventoryFindUniqueOrThrowArgs} args - Arguments to find a Inventory
* @example
* // Get one Inventory
* const inventory = await prisma.inventory.findUniqueOrThrow({
* where: {
* // ... provide filter here
* }
* })
*/
findUniqueOrThrow<T extends InventoryFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, InventoryFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__InventoryClient<runtime.Types.Result.GetResult<Prisma.$InventoryPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Find the first Inventory 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 {InventoryFindFirstArgs} args - Arguments to find a Inventory
* @example
* // Get one Inventory
* const inventory = await prisma.inventory.findFirst({
* where: {
* // ... provide filter here
* }
* })
*/
findFirst<T extends InventoryFindFirstArgs>(args?: Prisma.SelectSubset<T, InventoryFindFirstArgs<ExtArgs>>): Prisma.Prisma__InventoryClient<runtime.Types.Result.GetResult<Prisma.$InventoryPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
/**
* Find the first Inventory 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 {InventoryFindFirstOrThrowArgs} args - Arguments to find a Inventory
* @example
* // Get one Inventory
* const inventory = await prisma.inventory.findFirstOrThrow({
* where: {
* // ... provide filter here
* }
* })
*/
findFirstOrThrow<T extends InventoryFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, InventoryFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__InventoryClient<runtime.Types.Result.GetResult<Prisma.$InventoryPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Find zero or more Inventories 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 {InventoryFindManyArgs} args - Arguments to filter and select certain fields only.
* @example
* // Get all Inventories
* const inventories = await prisma.inventory.findMany()
*
* // Get first 10 Inventories
* const inventories = await prisma.inventory.findMany({ take: 10 })
*
* // Only select the `id`
* const inventoryWithIdOnly = await prisma.inventory.findMany({ select: { id: true } })
*
*/
findMany<T extends InventoryFindManyArgs>(args?: Prisma.SelectSubset<T, InventoryFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$InventoryPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
/**
* Create a Inventory.
* @param {InventoryCreateArgs} args - Arguments to create a Inventory.
* @example
* // Create one Inventory
* const Inventory = await prisma.inventory.create({
* data: {
* // ... data to create a Inventory
* }
* })
*
*/
create<T extends InventoryCreateArgs>(args: Prisma.SelectSubset<T, InventoryCreateArgs<ExtArgs>>): Prisma.Prisma__InventoryClient<runtime.Types.Result.GetResult<Prisma.$InventoryPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Create many Inventories.
* @param {InventoryCreateManyArgs} args - Arguments to create many Inventories.
* @example
* // Create many Inventories
* const inventory = await prisma.inventory.createMany({
* data: [
* // ... provide data here
* ]
* })
*
*/
createMany<T extends InventoryCreateManyArgs>(args?: Prisma.SelectSubset<T, InventoryCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
/**
* Delete a Inventory.
* @param {InventoryDeleteArgs} args - Arguments to delete one Inventory.
* @example
* // Delete one Inventory
* const Inventory = await prisma.inventory.delete({
* where: {
* // ... filter to delete one Inventory
* }
* })
*
*/
delete<T extends InventoryDeleteArgs>(args: Prisma.SelectSubset<T, InventoryDeleteArgs<ExtArgs>>): Prisma.Prisma__InventoryClient<runtime.Types.Result.GetResult<Prisma.$InventoryPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Update one Inventory.
* @param {InventoryUpdateArgs} args - Arguments to update one Inventory.
* @example
* // Update one Inventory
* const inventory = await prisma.inventory.update({
* where: {
* // ... provide filter here
* },
* data: {
* // ... provide data here
* }
* })
*
*/
update<T extends InventoryUpdateArgs>(args: Prisma.SelectSubset<T, InventoryUpdateArgs<ExtArgs>>): Prisma.Prisma__InventoryClient<runtime.Types.Result.GetResult<Prisma.$InventoryPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Delete zero or more Inventories.
* @param {InventoryDeleteManyArgs} args - Arguments to filter Inventories to delete.
* @example
* // Delete a few Inventories
* const { count } = await prisma.inventory.deleteMany({
* where: {
* // ... provide filter here
* }
* })
*
*/
deleteMany<T extends InventoryDeleteManyArgs>(args?: Prisma.SelectSubset<T, InventoryDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
/**
* Update zero or more Inventories.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {InventoryUpdateManyArgs} args - Arguments to update one or more rows.
* @example
* // Update many Inventories
* const inventory = await prisma.inventory.updateMany({
* where: {
* // ... provide filter here
* },
* data: {
* // ... provide data here
* }
* })
*
*/
updateMany<T extends InventoryUpdateManyArgs>(args: Prisma.SelectSubset<T, InventoryUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
/**
* Create or update one Inventory.
* @param {InventoryUpsertArgs} args - Arguments to update or create a Inventory.
* @example
* // Update or create a Inventory
* const inventory = await prisma.inventory.upsert({
* create: {
* // ... data to create a Inventory
* },
* update: {
* // ... in case it already exists, update
* },
* where: {
* // ... the filter for the Inventory we want to update
* }
* })
*/
upsert<T extends InventoryUpsertArgs>(args: Prisma.SelectSubset<T, InventoryUpsertArgs<ExtArgs>>): Prisma.Prisma__InventoryClient<runtime.Types.Result.GetResult<Prisma.$InventoryPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Count the number of Inventories.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {InventoryCountArgs} args - Arguments to filter Inventories to count.
* @example
* // Count the number of Inventories
* const count = await prisma.inventory.count({
* where: {
* // ... the filter for the Inventories we want to count
* }
* })
**/
count<T extends InventoryCountArgs>(
args?: Prisma.Subset<T, InventoryCountArgs>,
): Prisma.PrismaPromise<
T extends runtime.Types.Utils.Record<'select', any>
? T['select'] extends true
? number
: Prisma.GetScalarType<T['select'], InventoryCountAggregateOutputType>
: number
>
/**
* Allows you to perform aggregations operations on a Inventory.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {InventoryAggregateArgs} 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 InventoryAggregateArgs>(args: Prisma.Subset<T, InventoryAggregateArgs>): Prisma.PrismaPromise<GetInventoryAggregateType<T>>
/**
* Group by Inventory.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {InventoryGroupByArgs} 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 InventoryGroupByArgs,
HasSelectOrTake extends Prisma.Or<
Prisma.Extends<'skip', Prisma.Keys<T>>,
Prisma.Extends<'take', Prisma.Keys<T>>
>,
OrderByArg extends Prisma.True extends HasSelectOrTake
? { orderBy: InventoryGroupByArgs['orderBy'] }
: { orderBy?: InventoryGroupByArgs['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, InventoryGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetInventoryGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
/**
* Fields of the Inventory model
*/
readonly fields: InventoryFieldRefs;
}
/**
* The delegate class that acts as a "Promise-like" for Inventory.
* 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__InventoryClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
readonly [Symbol.toStringTag]: "PrismaPromise"
inventoryTransfersFrom<T extends Prisma.Inventory$inventoryTransfersFromArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Inventory$inventoryTransfersFromArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$InventoryTransferPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
inventoryTransfersTo<T extends Prisma.Inventory$inventoryTransfersToArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Inventory$inventoryTransfersToArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$InventoryTransferPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
productCharges<T extends Prisma.Inventory$productChargesArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Inventory$productChargesArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$ProductChargePayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
purchaseReceipts<T extends Prisma.Inventory$purchaseReceiptsArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Inventory$purchaseReceiptsArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$PurchaseReceiptPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
stockAdjustments<T extends Prisma.Inventory$stockAdjustmentsArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Inventory$stockAdjustmentsArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$StockAdjustmentPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
stockMovements<T extends Prisma.Inventory$stockMovementsArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Inventory$stockMovementsArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$StockMovementPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
/**
* 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 Inventory model
*/
export interface InventoryFieldRefs {
readonly id: Prisma.FieldRef<"Inventory", 'Int'>
readonly name: Prisma.FieldRef<"Inventory", 'String'>
readonly location: Prisma.FieldRef<"Inventory", 'String'>
readonly isActive: Prisma.FieldRef<"Inventory", 'Boolean'>
readonly createdAt: Prisma.FieldRef<"Inventory", 'DateTime'>
readonly updatedAt: Prisma.FieldRef<"Inventory", 'DateTime'>
readonly deletedAt: Prisma.FieldRef<"Inventory", 'DateTime'>
}
// Custom InputTypes
/**
* Inventory findUnique
*/
export type InventoryFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the Inventory
*/
select?: Prisma.InventorySelect<ExtArgs> | null
/**
* Omit specific fields from the Inventory
*/
omit?: Prisma.InventoryOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.InventoryInclude<ExtArgs> | null
/**
* Filter, which Inventory to fetch.
*/
where: Prisma.InventoryWhereUniqueInput
}
/**
* Inventory findUniqueOrThrow
*/
export type InventoryFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the Inventory
*/
select?: Prisma.InventorySelect<ExtArgs> | null
/**
* Omit specific fields from the Inventory
*/
omit?: Prisma.InventoryOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.InventoryInclude<ExtArgs> | null
/**
* Filter, which Inventory to fetch.
*/
where: Prisma.InventoryWhereUniqueInput
}
/**
* Inventory findFirst
*/
export type InventoryFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the Inventory
*/
select?: Prisma.InventorySelect<ExtArgs> | null
/**
* Omit specific fields from the Inventory
*/
omit?: Prisma.InventoryOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.InventoryInclude<ExtArgs> | null
/**
* Filter, which Inventory to fetch.
*/
where?: Prisma.InventoryWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of Inventories to fetch.
*/
orderBy?: Prisma.InventoryOrderByWithRelationInput | Prisma.InventoryOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the position for searching for Inventories.
*/
cursor?: Prisma.InventoryWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` Inventories 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` Inventories.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
*
* Filter by unique combinations of Inventories.
*/
distinct?: Prisma.InventoryScalarFieldEnum | Prisma.InventoryScalarFieldEnum[]
}
/**
* Inventory findFirstOrThrow
*/
export type InventoryFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the Inventory
*/
select?: Prisma.InventorySelect<ExtArgs> | null
/**
* Omit specific fields from the Inventory
*/
omit?: Prisma.InventoryOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.InventoryInclude<ExtArgs> | null
/**
* Filter, which Inventory to fetch.
*/
where?: Prisma.InventoryWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of Inventories to fetch.
*/
orderBy?: Prisma.InventoryOrderByWithRelationInput | Prisma.InventoryOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the position for searching for Inventories.
*/
cursor?: Prisma.InventoryWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` Inventories 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` Inventories.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
*
* Filter by unique combinations of Inventories.
*/
distinct?: Prisma.InventoryScalarFieldEnum | Prisma.InventoryScalarFieldEnum[]
}
/**
* Inventory findMany
*/
export type InventoryFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the Inventory
*/
select?: Prisma.InventorySelect<ExtArgs> | null
/**
* Omit specific fields from the Inventory
*/
omit?: Prisma.InventoryOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.InventoryInclude<ExtArgs> | null
/**
* Filter, which Inventories to fetch.
*/
where?: Prisma.InventoryWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of Inventories to fetch.
*/
orderBy?: Prisma.InventoryOrderByWithRelationInput | Prisma.InventoryOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the position for listing Inventories.
*/
cursor?: Prisma.InventoryWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` Inventories 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` Inventories.
*/
skip?: number
distinct?: Prisma.InventoryScalarFieldEnum | Prisma.InventoryScalarFieldEnum[]
}
/**
* Inventory create
*/
export type InventoryCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the Inventory
*/
select?: Prisma.InventorySelect<ExtArgs> | null
/**
* Omit specific fields from the Inventory
*/
omit?: Prisma.InventoryOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.InventoryInclude<ExtArgs> | null
/**
* The data needed to create a Inventory.
*/
data: Prisma.XOR<Prisma.InventoryCreateInput, Prisma.InventoryUncheckedCreateInput>
}
/**
* Inventory createMany
*/
export type InventoryCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* The data used to create many Inventories.
*/
data: Prisma.InventoryCreateManyInput | Prisma.InventoryCreateManyInput[]
skipDuplicates?: boolean
}
/**
* Inventory update
*/
export type InventoryUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the Inventory
*/
select?: Prisma.InventorySelect<ExtArgs> | null
/**
* Omit specific fields from the Inventory
*/
omit?: Prisma.InventoryOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.InventoryInclude<ExtArgs> | null
/**
* The data needed to update a Inventory.
*/
data: Prisma.XOR<Prisma.InventoryUpdateInput, Prisma.InventoryUncheckedUpdateInput>
/**
* Choose, which Inventory to update.
*/
where: Prisma.InventoryWhereUniqueInput
}
/**
* Inventory updateMany
*/
export type InventoryUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* The data used to update Inventories.
*/
data: Prisma.XOR<Prisma.InventoryUpdateManyMutationInput, Prisma.InventoryUncheckedUpdateManyInput>
/**
* Filter which Inventories to update
*/
where?: Prisma.InventoryWhereInput
/**
* Limit how many Inventories to update.
*/
limit?: number
}
/**
* Inventory upsert
*/
export type InventoryUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the Inventory
*/
select?: Prisma.InventorySelect<ExtArgs> | null
/**
* Omit specific fields from the Inventory
*/
omit?: Prisma.InventoryOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.InventoryInclude<ExtArgs> | null
/**
* The filter to search for the Inventory to update in case it exists.
*/
where: Prisma.InventoryWhereUniqueInput
/**
* In case the Inventory found by the `where` argument doesn't exist, create a new Inventory with this data.
*/
create: Prisma.XOR<Prisma.InventoryCreateInput, Prisma.InventoryUncheckedCreateInput>
/**
* In case the Inventory was found with the provided `where` argument, update it with this data.
*/
update: Prisma.XOR<Prisma.InventoryUpdateInput, Prisma.InventoryUncheckedUpdateInput>
}
/**
* Inventory delete
*/
export type InventoryDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the Inventory
*/
select?: Prisma.InventorySelect<ExtArgs> | null
/**
* Omit specific fields from the Inventory
*/
omit?: Prisma.InventoryOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.InventoryInclude<ExtArgs> | null
/**
* Filter which Inventory to delete.
*/
where: Prisma.InventoryWhereUniqueInput
}
/**
* Inventory deleteMany
*/
export type InventoryDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Filter which Inventories to delete
*/
where?: Prisma.InventoryWhereInput
/**
* Limit how many Inventories to delete.
*/
limit?: number
}
/**
* Inventory.inventoryTransfersFrom
*/
export type Inventory$inventoryTransfersFromArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the InventoryTransfer
*/
select?: Prisma.InventoryTransferSelect<ExtArgs> | null
/**
* Omit specific fields from the InventoryTransfer
*/
omit?: Prisma.InventoryTransferOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.InventoryTransferInclude<ExtArgs> | null
where?: Prisma.InventoryTransferWhereInput
orderBy?: Prisma.InventoryTransferOrderByWithRelationInput | Prisma.InventoryTransferOrderByWithRelationInput[]
cursor?: Prisma.InventoryTransferWhereUniqueInput
take?: number
skip?: number
distinct?: Prisma.InventoryTransferScalarFieldEnum | Prisma.InventoryTransferScalarFieldEnum[]
}
/**
* Inventory.inventoryTransfersTo
*/
export type Inventory$inventoryTransfersToArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the InventoryTransfer
*/
select?: Prisma.InventoryTransferSelect<ExtArgs> | null
/**
* Omit specific fields from the InventoryTransfer
*/
omit?: Prisma.InventoryTransferOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.InventoryTransferInclude<ExtArgs> | null
where?: Prisma.InventoryTransferWhereInput
orderBy?: Prisma.InventoryTransferOrderByWithRelationInput | Prisma.InventoryTransferOrderByWithRelationInput[]
cursor?: Prisma.InventoryTransferWhereUniqueInput
take?: number
skip?: number
distinct?: Prisma.InventoryTransferScalarFieldEnum | Prisma.InventoryTransferScalarFieldEnum[]
}
/**
* Inventory.productCharges
*/
export type Inventory$productChargesArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the ProductCharge
*/
select?: Prisma.ProductChargeSelect<ExtArgs> | null
/**
* Omit specific fields from the ProductCharge
*/
omit?: Prisma.ProductChargeOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.ProductChargeInclude<ExtArgs> | null
where?: Prisma.ProductChargeWhereInput
orderBy?: Prisma.ProductChargeOrderByWithRelationInput | Prisma.ProductChargeOrderByWithRelationInput[]
cursor?: Prisma.ProductChargeWhereUniqueInput
take?: number
skip?: number
distinct?: Prisma.ProductChargeScalarFieldEnum | Prisma.ProductChargeScalarFieldEnum[]
}
/**
* Inventory.purchaseReceipts
*/
export type Inventory$purchaseReceiptsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the PurchaseReceipt
*/
select?: Prisma.PurchaseReceiptSelect<ExtArgs> | null
/**
* Omit specific fields from the PurchaseReceipt
*/
omit?: Prisma.PurchaseReceiptOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.PurchaseReceiptInclude<ExtArgs> | null
where?: Prisma.PurchaseReceiptWhereInput
orderBy?: Prisma.PurchaseReceiptOrderByWithRelationInput | Prisma.PurchaseReceiptOrderByWithRelationInput[]
cursor?: Prisma.PurchaseReceiptWhereUniqueInput
take?: number
skip?: number
distinct?: Prisma.PurchaseReceiptScalarFieldEnum | Prisma.PurchaseReceiptScalarFieldEnum[]
}
/**
* Inventory.stockAdjustments
*/
export type Inventory$stockAdjustmentsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the StockAdjustment
*/
select?: Prisma.StockAdjustmentSelect<ExtArgs> | null
/**
* Omit specific fields from the StockAdjustment
*/
omit?: Prisma.StockAdjustmentOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.StockAdjustmentInclude<ExtArgs> | null
where?: Prisma.StockAdjustmentWhereInput
orderBy?: Prisma.StockAdjustmentOrderByWithRelationInput | Prisma.StockAdjustmentOrderByWithRelationInput[]
cursor?: Prisma.StockAdjustmentWhereUniqueInput
take?: number
skip?: number
distinct?: Prisma.StockAdjustmentScalarFieldEnum | Prisma.StockAdjustmentScalarFieldEnum[]
}
/**
* Inventory.stockMovements
*/
export type Inventory$stockMovementsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the StockMovement
*/
select?: Prisma.StockMovementSelect<ExtArgs> | null
/**
* Omit specific fields from the StockMovement
*/
omit?: Prisma.StockMovementOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.StockMovementInclude<ExtArgs> | null
where?: Prisma.StockMovementWhereInput
orderBy?: Prisma.StockMovementOrderByWithRelationInput | Prisma.StockMovementOrderByWithRelationInput[]
cursor?: Prisma.StockMovementWhereUniqueInput
take?: number
skip?: number
distinct?: Prisma.StockMovementScalarFieldEnum | Prisma.StockMovementScalarFieldEnum[]
}
/**
* Inventory without action
*/
export type InventoryDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the Inventory
*/
select?: Prisma.InventorySelect<ExtArgs> | null
/**
* Omit specific fields from the Inventory
*/
omit?: Prisma.InventoryOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.InventoryInclude<ExtArgs> | null
}