
/* !!! This is code generated by Prisma. Do not edit directly. !!! */
/* eslint-disable */
// biome-ignore-all lint: generated file
// @ts-nocheck 
/*
 * This file exports the `CatalogItem` model and its related types.
 *
 * 🟢 You can import this file directly.
 */
import type * as runtime from "@prisma/client/runtime/client"
import type * as $Enums from "../enums.ts"
import type * as Prisma from "../internal/prismaNamespace.ts"

/**
 * Model CatalogItem
 * 
 */
export type CatalogItemModel = runtime.Types.Result.DefaultSelection<Prisma.$CatalogItemPayload>

export type AggregateCatalogItem = {
  _count: CatalogItemCountAggregateOutputType | null
  _avg: CatalogItemAvgAggregateOutputType | null
  _sum: CatalogItemSumAggregateOutputType | null
  _min: CatalogItemMinAggregateOutputType | null
  _max: CatalogItemMaxAggregateOutputType | null
}

export type CatalogItemAvgAggregateOutputType = {
  id: number | null
  subcategoryId: number | null
  manufacturerId: number | null
  vendorCwId: number | null
  price: number | null
  cost: number | null
  onHand: number | null
}

export type CatalogItemSumAggregateOutputType = {
  id: number | null
  subcategoryId: number | null
  manufacturerId: number | null
  vendorCwId: number | null
  price: number | null
  cost: number | null
  onHand: number | null
}

export type CatalogItemMinAggregateOutputType = {
  id: number | null
  uid: string | null
  identifier: string | null
  name: string | null
  description: string | null
  customerDescription: string | null
  internalNotes: string | null
  subcategoryId: number | null
  manufacturerId: number | null
  partNumber: string | null
  vendorName: string | null
  vendorSku: string | null
  vendorCwId: number | null
  price: number | null
  cost: number | null
  inactive: boolean | null
  salesTaxable: boolean | null
  onHand: number | null
  cwLastUpdated: Date | null
  classId: string | null
  createdAt: Date | null
  updatedAt: Date | null
}

export type CatalogItemMaxAggregateOutputType = {
  id: number | null
  uid: string | null
  identifier: string | null
  name: string | null
  description: string | null
  customerDescription: string | null
  internalNotes: string | null
  subcategoryId: number | null
  manufacturerId: number | null
  partNumber: string | null
  vendorName: string | null
  vendorSku: string | null
  vendorCwId: number | null
  price: number | null
  cost: number | null
  inactive: boolean | null
  salesTaxable: boolean | null
  onHand: number | null
  cwLastUpdated: Date | null
  classId: string | null
  createdAt: Date | null
  updatedAt: Date | null
}

export type CatalogItemCountAggregateOutputType = {
  id: number
  uid: number
  identifier: number
  name: number
  description: number
  customerDescription: number
  internalNotes: number
  subcategoryId: number
  manufacturerId: number
  partNumber: number
  vendorName: number
  vendorSku: number
  vendorCwId: number
  price: number
  cost: number
  inactive: number
  salesTaxable: number
  onHand: number
  cwLastUpdated: number
  classId: number
  createdAt: number
  updatedAt: number
  _all: number
}


export type CatalogItemAvgAggregateInputType = {
  id?: true
  subcategoryId?: true
  manufacturerId?: true
  vendorCwId?: true
  price?: true
  cost?: true
  onHand?: true
}

export type CatalogItemSumAggregateInputType = {
  id?: true
  subcategoryId?: true
  manufacturerId?: true
  vendorCwId?: true
  price?: true
  cost?: true
  onHand?: true
}

export type CatalogItemMinAggregateInputType = {
  id?: true
  uid?: true
  identifier?: true
  name?: true
  description?: true
  customerDescription?: true
  internalNotes?: true
  subcategoryId?: true
  manufacturerId?: true
  partNumber?: true
  vendorName?: true
  vendorSku?: true
  vendorCwId?: true
  price?: true
  cost?: true
  inactive?: true
  salesTaxable?: true
  onHand?: true
  cwLastUpdated?: true
  classId?: true
  createdAt?: true
  updatedAt?: true
}

export type CatalogItemMaxAggregateInputType = {
  id?: true
  uid?: true
  identifier?: true
  name?: true
  description?: true
  customerDescription?: true
  internalNotes?: true
  subcategoryId?: true
  manufacturerId?: true
  partNumber?: true
  vendorName?: true
  vendorSku?: true
  vendorCwId?: true
  price?: true
  cost?: true
  inactive?: true
  salesTaxable?: true
  onHand?: true
  cwLastUpdated?: true
  classId?: true
  createdAt?: true
  updatedAt?: true
}

export type CatalogItemCountAggregateInputType = {
  id?: true
  uid?: true
  identifier?: true
  name?: true
  description?: true
  customerDescription?: true
  internalNotes?: true
  subcategoryId?: true
  manufacturerId?: true
  partNumber?: true
  vendorName?: true
  vendorSku?: true
  vendorCwId?: true
  price?: true
  cost?: true
  inactive?: true
  salesTaxable?: true
  onHand?: true
  cwLastUpdated?: true
  classId?: true
  createdAt?: true
  updatedAt?: true
  _all?: true
}

export type CatalogItemAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Filter which CatalogItem to aggregate.
   */
  where?: Prisma.CatalogItemWhereInput
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
   * 
   * Determine the order of CatalogItems to fetch.
   */
  orderBy?: Prisma.CatalogItemOrderByWithRelationInput | Prisma.CatalogItemOrderByWithRelationInput[]
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
   * 
   * Sets the start position
   */
  cursor?: Prisma.CatalogItemWhereUniqueInput
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
   * 
   * Take `±n` CatalogItems 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` CatalogItems.
   */
  skip?: number
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
   * 
   * Count returned CatalogItems
  **/
  _count?: true | CatalogItemCountAggregateInputType
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
   * 
   * Select which fields to average
  **/
  _avg?: CatalogItemAvgAggregateInputType
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
   * 
   * Select which fields to sum
  **/
  _sum?: CatalogItemSumAggregateInputType
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
   * 
   * Select which fields to find the minimum value
  **/
  _min?: CatalogItemMinAggregateInputType
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
   * 
   * Select which fields to find the maximum value
  **/
  _max?: CatalogItemMaxAggregateInputType
}

export type GetCatalogItemAggregateType<T extends CatalogItemAggregateArgs> = {
      [P in keyof T & keyof AggregateCatalogItem]: P extends '_count' | 'count'
    ? T[P] extends true
      ? number
      : Prisma.GetScalarType<T[P], AggregateCatalogItem[P]>
    : Prisma.GetScalarType<T[P], AggregateCatalogItem[P]>
}




export type CatalogItemGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  where?: Prisma.CatalogItemWhereInput
  orderBy?: Prisma.CatalogItemOrderByWithAggregationInput | Prisma.CatalogItemOrderByWithAggregationInput[]
  by: Prisma.CatalogItemScalarFieldEnum[] | Prisma.CatalogItemScalarFieldEnum
  having?: Prisma.CatalogItemScalarWhereWithAggregatesInput
  take?: number
  skip?: number
  _count?: CatalogItemCountAggregateInputType | true
  _avg?: CatalogItemAvgAggregateInputType
  _sum?: CatalogItemSumAggregateInputType
  _min?: CatalogItemMinAggregateInputType
  _max?: CatalogItemMaxAggregateInputType
}

export type CatalogItemGroupByOutputType = {
  id: number
  uid: string
  identifier: string | null
  name: string
  description: string | null
  customerDescription: string | null
  internalNotes: string | null
  subcategoryId: number
  manufacturerId: number | null
  partNumber: string | null
  vendorName: string | null
  vendorSku: string | null
  vendorCwId: number | null
  price: number
  cost: number
  inactive: boolean
  salesTaxable: boolean
  onHand: number
  cwLastUpdated: Date | null
  classId: string | null
  createdAt: Date
  updatedAt: Date
  _count: CatalogItemCountAggregateOutputType | null
  _avg: CatalogItemAvgAggregateOutputType | null
  _sum: CatalogItemSumAggregateOutputType | null
  _min: CatalogItemMinAggregateOutputType | null
  _max: CatalogItemMaxAggregateOutputType | null
}

type GetCatalogItemGroupByPayload<T extends CatalogItemGroupByArgs> = Prisma.PrismaPromise<
  Array<
    Prisma.PickEnumerable<CatalogItemGroupByOutputType, T['by']> &
      {
        [P in ((keyof T) & (keyof CatalogItemGroupByOutputType))]: P extends '_count'
          ? T[P] extends boolean
            ? number
            : Prisma.GetScalarType<T[P], CatalogItemGroupByOutputType[P]>
          : Prisma.GetScalarType<T[P], CatalogItemGroupByOutputType[P]>
      }
    >
  >



export type CatalogItemWhereInput = {
  AND?: Prisma.CatalogItemWhereInput | Prisma.CatalogItemWhereInput[]
  OR?: Prisma.CatalogItemWhereInput[]
  NOT?: Prisma.CatalogItemWhereInput | Prisma.CatalogItemWhereInput[]
  id?: Prisma.IntFilter<"CatalogItem"> | number
  uid?: Prisma.StringFilter<"CatalogItem"> | string
  identifier?: Prisma.StringNullableFilter<"CatalogItem"> | string | null
  name?: Prisma.StringFilter<"CatalogItem"> | string
  description?: Prisma.StringNullableFilter<"CatalogItem"> | string | null
  customerDescription?: Prisma.StringNullableFilter<"CatalogItem"> | string | null
  internalNotes?: Prisma.StringNullableFilter<"CatalogItem"> | string | null
  subcategoryId?: Prisma.IntFilter<"CatalogItem"> | number
  manufacturerId?: Prisma.IntNullableFilter<"CatalogItem"> | number | null
  partNumber?: Prisma.StringNullableFilter<"CatalogItem"> | string | null
  vendorName?: Prisma.StringNullableFilter<"CatalogItem"> | string | null
  vendorSku?: Prisma.StringNullableFilter<"CatalogItem"> | string | null
  vendorCwId?: Prisma.IntNullableFilter<"CatalogItem"> | number | null
  price?: Prisma.FloatFilter<"CatalogItem"> | number
  cost?: Prisma.FloatFilter<"CatalogItem"> | number
  inactive?: Prisma.BoolFilter<"CatalogItem"> | boolean
  salesTaxable?: Prisma.BoolFilter<"CatalogItem"> | boolean
  onHand?: Prisma.IntFilter<"CatalogItem"> | number
  cwLastUpdated?: Prisma.DateTimeNullableFilter<"CatalogItem"> | Date | string | null
  classId?: Prisma.StringNullableFilter<"CatalogItem"> | string | null
  createdAt?: Prisma.DateTimeFilter<"CatalogItem"> | Date | string
  updatedAt?: Prisma.DateTimeFilter<"CatalogItem"> | Date | string
  linkedItems?: Prisma.CatalogItemListRelationFilter
  linkedTo?: Prisma.CatalogItemListRelationFilter
  subcategory?: Prisma.XOR<Prisma.CatalogSubcategoryScalarRelationFilter, Prisma.CatalogSubcategoryWhereInput>
  manufacturer?: Prisma.XOR<Prisma.CatalogManufacturerNullableScalarRelationFilter, Prisma.CatalogManufacturerWhereInput> | null
  inventory?: Prisma.ProductInventoryListRelationFilter
  minimumStockByWarehouses?: Prisma.MinimumStockByWarehouseListRelationFilter
  productDataRecords?: Prisma.ProductDataListRelationFilter
}

export type CatalogItemOrderByWithRelationInput = {
  id?: Prisma.SortOrder
  uid?: Prisma.SortOrder
  identifier?: Prisma.SortOrderInput | Prisma.SortOrder
  name?: Prisma.SortOrder
  description?: Prisma.SortOrderInput | Prisma.SortOrder
  customerDescription?: Prisma.SortOrderInput | Prisma.SortOrder
  internalNotes?: Prisma.SortOrderInput | Prisma.SortOrder
  subcategoryId?: Prisma.SortOrder
  manufacturerId?: Prisma.SortOrderInput | Prisma.SortOrder
  partNumber?: Prisma.SortOrderInput | Prisma.SortOrder
  vendorName?: Prisma.SortOrderInput | Prisma.SortOrder
  vendorSku?: Prisma.SortOrderInput | Prisma.SortOrder
  vendorCwId?: Prisma.SortOrderInput | Prisma.SortOrder
  price?: Prisma.SortOrder
  cost?: Prisma.SortOrder
  inactive?: Prisma.SortOrder
  salesTaxable?: Prisma.SortOrder
  onHand?: Prisma.SortOrder
  cwLastUpdated?: Prisma.SortOrderInput | Prisma.SortOrder
  classId?: Prisma.SortOrderInput | Prisma.SortOrder
  createdAt?: Prisma.SortOrder
  updatedAt?: Prisma.SortOrder
  linkedItems?: Prisma.CatalogItemOrderByRelationAggregateInput
  linkedTo?: Prisma.CatalogItemOrderByRelationAggregateInput
  subcategory?: Prisma.CatalogSubcategoryOrderByWithRelationInput
  manufacturer?: Prisma.CatalogManufacturerOrderByWithRelationInput
  inventory?: Prisma.ProductInventoryOrderByRelationAggregateInput
  minimumStockByWarehouses?: Prisma.MinimumStockByWarehouseOrderByRelationAggregateInput
  productDataRecords?: Prisma.ProductDataOrderByRelationAggregateInput
}

export type CatalogItemWhereUniqueInput = Prisma.AtLeast<{
  id?: number
  uid?: string
  identifier?: string
  AND?: Prisma.CatalogItemWhereInput | Prisma.CatalogItemWhereInput[]
  OR?: Prisma.CatalogItemWhereInput[]
  NOT?: Prisma.CatalogItemWhereInput | Prisma.CatalogItemWhereInput[]
  name?: Prisma.StringFilter<"CatalogItem"> | string
  description?: Prisma.StringNullableFilter<"CatalogItem"> | string | null
  customerDescription?: Prisma.StringNullableFilter<"CatalogItem"> | string | null
  internalNotes?: Prisma.StringNullableFilter<"CatalogItem"> | string | null
  subcategoryId?: Prisma.IntFilter<"CatalogItem"> | number
  manufacturerId?: Prisma.IntNullableFilter<"CatalogItem"> | number | null
  partNumber?: Prisma.StringNullableFilter<"CatalogItem"> | string | null
  vendorName?: Prisma.StringNullableFilter<"CatalogItem"> | string | null
  vendorSku?: Prisma.StringNullableFilter<"CatalogItem"> | string | null
  vendorCwId?: Prisma.IntNullableFilter<"CatalogItem"> | number | null
  price?: Prisma.FloatFilter<"CatalogItem"> | number
  cost?: Prisma.FloatFilter<"CatalogItem"> | number
  inactive?: Prisma.BoolFilter<"CatalogItem"> | boolean
  salesTaxable?: Prisma.BoolFilter<"CatalogItem"> | boolean
  onHand?: Prisma.IntFilter<"CatalogItem"> | number
  cwLastUpdated?: Prisma.DateTimeNullableFilter<"CatalogItem"> | Date | string | null
  classId?: Prisma.StringNullableFilter<"CatalogItem"> | string | null
  createdAt?: Prisma.DateTimeFilter<"CatalogItem"> | Date | string
  updatedAt?: Prisma.DateTimeFilter<"CatalogItem"> | Date | string
  linkedItems?: Prisma.CatalogItemListRelationFilter
  linkedTo?: Prisma.CatalogItemListRelationFilter
  subcategory?: Prisma.XOR<Prisma.CatalogSubcategoryScalarRelationFilter, Prisma.CatalogSubcategoryWhereInput>
  manufacturer?: Prisma.XOR<Prisma.CatalogManufacturerNullableScalarRelationFilter, Prisma.CatalogManufacturerWhereInput> | null
  inventory?: Prisma.ProductInventoryListRelationFilter
  minimumStockByWarehouses?: Prisma.MinimumStockByWarehouseListRelationFilter
  productDataRecords?: Prisma.ProductDataListRelationFilter
}, "uid" | "id" | "identifier">

export type CatalogItemOrderByWithAggregationInput = {
  id?: Prisma.SortOrder
  uid?: Prisma.SortOrder
  identifier?: Prisma.SortOrderInput | Prisma.SortOrder
  name?: Prisma.SortOrder
  description?: Prisma.SortOrderInput | Prisma.SortOrder
  customerDescription?: Prisma.SortOrderInput | Prisma.SortOrder
  internalNotes?: Prisma.SortOrderInput | Prisma.SortOrder
  subcategoryId?: Prisma.SortOrder
  manufacturerId?: Prisma.SortOrderInput | Prisma.SortOrder
  partNumber?: Prisma.SortOrderInput | Prisma.SortOrder
  vendorName?: Prisma.SortOrderInput | Prisma.SortOrder
  vendorSku?: Prisma.SortOrderInput | Prisma.SortOrder
  vendorCwId?: Prisma.SortOrderInput | Prisma.SortOrder
  price?: Prisma.SortOrder
  cost?: Prisma.SortOrder
  inactive?: Prisma.SortOrder
  salesTaxable?: Prisma.SortOrder
  onHand?: Prisma.SortOrder
  cwLastUpdated?: Prisma.SortOrderInput | Prisma.SortOrder
  classId?: Prisma.SortOrderInput | Prisma.SortOrder
  createdAt?: Prisma.SortOrder
  updatedAt?: Prisma.SortOrder
  _count?: Prisma.CatalogItemCountOrderByAggregateInput
  _avg?: Prisma.CatalogItemAvgOrderByAggregateInput
  _max?: Prisma.CatalogItemMaxOrderByAggregateInput
  _min?: Prisma.CatalogItemMinOrderByAggregateInput
  _sum?: Prisma.CatalogItemSumOrderByAggregateInput
}

export type CatalogItemScalarWhereWithAggregatesInput = {
  AND?: Prisma.CatalogItemScalarWhereWithAggregatesInput | Prisma.CatalogItemScalarWhereWithAggregatesInput[]
  OR?: Prisma.CatalogItemScalarWhereWithAggregatesInput[]
  NOT?: Prisma.CatalogItemScalarWhereWithAggregatesInput | Prisma.CatalogItemScalarWhereWithAggregatesInput[]
  id?: Prisma.IntWithAggregatesFilter<"CatalogItem"> | number
  uid?: Prisma.StringWithAggregatesFilter<"CatalogItem"> | string
  identifier?: Prisma.StringNullableWithAggregatesFilter<"CatalogItem"> | string | null
  name?: Prisma.StringWithAggregatesFilter<"CatalogItem"> | string
  description?: Prisma.StringNullableWithAggregatesFilter<"CatalogItem"> | string | null
  customerDescription?: Prisma.StringNullableWithAggregatesFilter<"CatalogItem"> | string | null
  internalNotes?: Prisma.StringNullableWithAggregatesFilter<"CatalogItem"> | string | null
  subcategoryId?: Prisma.IntWithAggregatesFilter<"CatalogItem"> | number
  manufacturerId?: Prisma.IntNullableWithAggregatesFilter<"CatalogItem"> | number | null
  partNumber?: Prisma.StringNullableWithAggregatesFilter<"CatalogItem"> | string | null
  vendorName?: Prisma.StringNullableWithAggregatesFilter<"CatalogItem"> | string | null
  vendorSku?: Prisma.StringNullableWithAggregatesFilter<"CatalogItem"> | string | null
  vendorCwId?: Prisma.IntNullableWithAggregatesFilter<"CatalogItem"> | number | null
  price?: Prisma.FloatWithAggregatesFilter<"CatalogItem"> | number
  cost?: Prisma.FloatWithAggregatesFilter<"CatalogItem"> | number
  inactive?: Prisma.BoolWithAggregatesFilter<"CatalogItem"> | boolean
  salesTaxable?: Prisma.BoolWithAggregatesFilter<"CatalogItem"> | boolean
  onHand?: Prisma.IntWithAggregatesFilter<"CatalogItem"> | number
  cwLastUpdated?: Prisma.DateTimeNullableWithAggregatesFilter<"CatalogItem"> | Date | string | null
  classId?: Prisma.StringNullableWithAggregatesFilter<"CatalogItem"> | string | null
  createdAt?: Prisma.DateTimeWithAggregatesFilter<"CatalogItem"> | Date | string
  updatedAt?: Prisma.DateTimeWithAggregatesFilter<"CatalogItem"> | Date | string
}

export type CatalogItemCreateInput = {
  id: number
  uid?: string
  identifier?: string | null
  name: string
  description?: string | null
  customerDescription?: string | null
  internalNotes?: string | null
  partNumber?: string | null
  vendorName?: string | null
  vendorSku?: string | null
  vendorCwId?: number | null
  price: number
  cost: number
  inactive?: boolean
  salesTaxable?: boolean
  onHand?: number
  cwLastUpdated?: Date | string | null
  classId?: string | null
  createdAt?: Date | string
  updatedAt?: Date | string
  linkedItems?: Prisma.CatalogItemCreateNestedManyWithoutLinkedToInput
  linkedTo?: Prisma.CatalogItemCreateNestedManyWithoutLinkedItemsInput
  subcategory: Prisma.CatalogSubcategoryCreateNestedOneWithoutItemsInput
  manufacturer?: Prisma.CatalogManufacturerCreateNestedOneWithoutItemsInput
  inventory?: Prisma.ProductInventoryCreateNestedManyWithoutItemInput
  minimumStockByWarehouses?: Prisma.MinimumStockByWarehouseCreateNestedManyWithoutItemInput
  productDataRecords?: Prisma.ProductDataCreateNestedManyWithoutCatalogItemInput
}

export type CatalogItemUncheckedCreateInput = {
  id: number
  uid?: string
  identifier?: string | null
  name: string
  description?: string | null
  customerDescription?: string | null
  internalNotes?: string | null
  subcategoryId: number
  manufacturerId?: number | null
  partNumber?: string | null
  vendorName?: string | null
  vendorSku?: string | null
  vendorCwId?: number | null
  price: number
  cost: number
  inactive?: boolean
  salesTaxable?: boolean
  onHand?: number
  cwLastUpdated?: Date | string | null
  classId?: string | null
  createdAt?: Date | string
  updatedAt?: Date | string
  linkedItems?: Prisma.CatalogItemUncheckedCreateNestedManyWithoutLinkedToInput
  linkedTo?: Prisma.CatalogItemUncheckedCreateNestedManyWithoutLinkedItemsInput
  inventory?: Prisma.ProductInventoryUncheckedCreateNestedManyWithoutItemInput
  minimumStockByWarehouses?: Prisma.MinimumStockByWarehouseUncheckedCreateNestedManyWithoutItemInput
  productDataRecords?: Prisma.ProductDataUncheckedCreateNestedManyWithoutCatalogItemInput
}

export type CatalogItemUpdateInput = {
  id?: Prisma.IntFieldUpdateOperationsInput | number
  uid?: Prisma.StringFieldUpdateOperationsInput | string
  identifier?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  name?: Prisma.StringFieldUpdateOperationsInput | string
  description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  customerDescription?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  internalNotes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  partNumber?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  vendorName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  vendorSku?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  vendorCwId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
  price?: Prisma.FloatFieldUpdateOperationsInput | number
  cost?: Prisma.FloatFieldUpdateOperationsInput | number
  inactive?: Prisma.BoolFieldUpdateOperationsInput | boolean
  salesTaxable?: Prisma.BoolFieldUpdateOperationsInput | boolean
  onHand?: Prisma.IntFieldUpdateOperationsInput | number
  cwLastUpdated?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  classId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  linkedItems?: Prisma.CatalogItemUpdateManyWithoutLinkedToNestedInput
  linkedTo?: Prisma.CatalogItemUpdateManyWithoutLinkedItemsNestedInput
  subcategory?: Prisma.CatalogSubcategoryUpdateOneRequiredWithoutItemsNestedInput
  manufacturer?: Prisma.CatalogManufacturerUpdateOneWithoutItemsNestedInput
  inventory?: Prisma.ProductInventoryUpdateManyWithoutItemNestedInput
  minimumStockByWarehouses?: Prisma.MinimumStockByWarehouseUpdateManyWithoutItemNestedInput
  productDataRecords?: Prisma.ProductDataUpdateManyWithoutCatalogItemNestedInput
}

export type CatalogItemUncheckedUpdateInput = {
  id?: Prisma.IntFieldUpdateOperationsInput | number
  uid?: Prisma.StringFieldUpdateOperationsInput | string
  identifier?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  name?: Prisma.StringFieldUpdateOperationsInput | string
  description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  customerDescription?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  internalNotes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  subcategoryId?: Prisma.IntFieldUpdateOperationsInput | number
  manufacturerId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
  partNumber?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  vendorName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  vendorSku?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  vendorCwId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
  price?: Prisma.FloatFieldUpdateOperationsInput | number
  cost?: Prisma.FloatFieldUpdateOperationsInput | number
  inactive?: Prisma.BoolFieldUpdateOperationsInput | boolean
  salesTaxable?: Prisma.BoolFieldUpdateOperationsInput | boolean
  onHand?: Prisma.IntFieldUpdateOperationsInput | number
  cwLastUpdated?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  classId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  linkedItems?: Prisma.CatalogItemUncheckedUpdateManyWithoutLinkedToNestedInput
  linkedTo?: Prisma.CatalogItemUncheckedUpdateManyWithoutLinkedItemsNestedInput
  inventory?: Prisma.ProductInventoryUncheckedUpdateManyWithoutItemNestedInput
  minimumStockByWarehouses?: Prisma.MinimumStockByWarehouseUncheckedUpdateManyWithoutItemNestedInput
  productDataRecords?: Prisma.ProductDataUncheckedUpdateManyWithoutCatalogItemNestedInput
}

export type CatalogItemCreateManyInput = {
  id: number
  uid?: string
  identifier?: string | null
  name: string
  description?: string | null
  customerDescription?: string | null
  internalNotes?: string | null
  subcategoryId: number
  manufacturerId?: number | null
  partNumber?: string | null
  vendorName?: string | null
  vendorSku?: string | null
  vendorCwId?: number | null
  price: number
  cost: number
  inactive?: boolean
  salesTaxable?: boolean
  onHand?: number
  cwLastUpdated?: Date | string | null
  classId?: string | null
  createdAt?: Date | string
  updatedAt?: Date | string
}

export type CatalogItemUpdateManyMutationInput = {
  id?: Prisma.IntFieldUpdateOperationsInput | number
  uid?: Prisma.StringFieldUpdateOperationsInput | string
  identifier?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  name?: Prisma.StringFieldUpdateOperationsInput | string
  description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  customerDescription?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  internalNotes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  partNumber?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  vendorName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  vendorSku?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  vendorCwId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
  price?: Prisma.FloatFieldUpdateOperationsInput | number
  cost?: Prisma.FloatFieldUpdateOperationsInput | number
  inactive?: Prisma.BoolFieldUpdateOperationsInput | boolean
  salesTaxable?: Prisma.BoolFieldUpdateOperationsInput | boolean
  onHand?: Prisma.IntFieldUpdateOperationsInput | number
  cwLastUpdated?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  classId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
}

export type CatalogItemUncheckedUpdateManyInput = {
  id?: Prisma.IntFieldUpdateOperationsInput | number
  uid?: Prisma.StringFieldUpdateOperationsInput | string
  identifier?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  name?: Prisma.StringFieldUpdateOperationsInput | string
  description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  customerDescription?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  internalNotes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  subcategoryId?: Prisma.IntFieldUpdateOperationsInput | number
  manufacturerId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
  partNumber?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  vendorName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  vendorSku?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  vendorCwId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
  price?: Prisma.FloatFieldUpdateOperationsInput | number
  cost?: Prisma.FloatFieldUpdateOperationsInput | number
  inactive?: Prisma.BoolFieldUpdateOperationsInput | boolean
  salesTaxable?: Prisma.BoolFieldUpdateOperationsInput | boolean
  onHand?: Prisma.IntFieldUpdateOperationsInput | number
  cwLastUpdated?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  classId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
}

export type CatalogItemListRelationFilter = {
  every?: Prisma.CatalogItemWhereInput
  some?: Prisma.CatalogItemWhereInput
  none?: Prisma.CatalogItemWhereInput
}

export type CatalogItemOrderByRelationAggregateInput = {
  _count?: Prisma.SortOrder
}

export type CatalogItemNullableScalarRelationFilter = {
  is?: Prisma.CatalogItemWhereInput | null
  isNot?: Prisma.CatalogItemWhereInput | null
}

export type CatalogItemCountOrderByAggregateInput = {
  id?: Prisma.SortOrder
  uid?: Prisma.SortOrder
  identifier?: Prisma.SortOrder
  name?: Prisma.SortOrder
  description?: Prisma.SortOrder
  customerDescription?: Prisma.SortOrder
  internalNotes?: Prisma.SortOrder
  subcategoryId?: Prisma.SortOrder
  manufacturerId?: Prisma.SortOrder
  partNumber?: Prisma.SortOrder
  vendorName?: Prisma.SortOrder
  vendorSku?: Prisma.SortOrder
  vendorCwId?: Prisma.SortOrder
  price?: Prisma.SortOrder
  cost?: Prisma.SortOrder
  inactive?: Prisma.SortOrder
  salesTaxable?: Prisma.SortOrder
  onHand?: Prisma.SortOrder
  cwLastUpdated?: Prisma.SortOrder
  classId?: Prisma.SortOrder
  createdAt?: Prisma.SortOrder
  updatedAt?: Prisma.SortOrder
}

export type CatalogItemAvgOrderByAggregateInput = {
  id?: Prisma.SortOrder
  subcategoryId?: Prisma.SortOrder
  manufacturerId?: Prisma.SortOrder
  vendorCwId?: Prisma.SortOrder
  price?: Prisma.SortOrder
  cost?: Prisma.SortOrder
  onHand?: Prisma.SortOrder
}

export type CatalogItemMaxOrderByAggregateInput = {
  id?: Prisma.SortOrder
  uid?: Prisma.SortOrder
  identifier?: Prisma.SortOrder
  name?: Prisma.SortOrder
  description?: Prisma.SortOrder
  customerDescription?: Prisma.SortOrder
  internalNotes?: Prisma.SortOrder
  subcategoryId?: Prisma.SortOrder
  manufacturerId?: Prisma.SortOrder
  partNumber?: Prisma.SortOrder
  vendorName?: Prisma.SortOrder
  vendorSku?: Prisma.SortOrder
  vendorCwId?: Prisma.SortOrder
  price?: Prisma.SortOrder
  cost?: Prisma.SortOrder
  inactive?: Prisma.SortOrder
  salesTaxable?: Prisma.SortOrder
  onHand?: Prisma.SortOrder
  cwLastUpdated?: Prisma.SortOrder
  classId?: Prisma.SortOrder
  createdAt?: Prisma.SortOrder
  updatedAt?: Prisma.SortOrder
}

export type CatalogItemMinOrderByAggregateInput = {
  id?: Prisma.SortOrder
  uid?: Prisma.SortOrder
  identifier?: Prisma.SortOrder
  name?: Prisma.SortOrder
  description?: Prisma.SortOrder
  customerDescription?: Prisma.SortOrder
  internalNotes?: Prisma.SortOrder
  subcategoryId?: Prisma.SortOrder
  manufacturerId?: Prisma.SortOrder
  partNumber?: Prisma.SortOrder
  vendorName?: Prisma.SortOrder
  vendorSku?: Prisma.SortOrder
  vendorCwId?: Prisma.SortOrder
  price?: Prisma.SortOrder
  cost?: Prisma.SortOrder
  inactive?: Prisma.SortOrder
  salesTaxable?: Prisma.SortOrder
  onHand?: Prisma.SortOrder
  cwLastUpdated?: Prisma.SortOrder
  classId?: Prisma.SortOrder
  createdAt?: Prisma.SortOrder
  updatedAt?: Prisma.SortOrder
}

export type CatalogItemSumOrderByAggregateInput = {
  id?: Prisma.SortOrder
  subcategoryId?: Prisma.SortOrder
  manufacturerId?: Prisma.SortOrder
  vendorCwId?: Prisma.SortOrder
  price?: Prisma.SortOrder
  cost?: Prisma.SortOrder
  onHand?: Prisma.SortOrder
}

export type CatalogItemScalarRelationFilter = {
  is?: Prisma.CatalogItemWhereInput
  isNot?: Prisma.CatalogItemWhereInput
}

export type CatalogItemCreateNestedManyWithoutSubcategoryInput = {
  create?: Prisma.XOR<Prisma.CatalogItemCreateWithoutSubcategoryInput, Prisma.CatalogItemUncheckedCreateWithoutSubcategoryInput> | Prisma.CatalogItemCreateWithoutSubcategoryInput[] | Prisma.CatalogItemUncheckedCreateWithoutSubcategoryInput[]
  connectOrCreate?: Prisma.CatalogItemCreateOrConnectWithoutSubcategoryInput | Prisma.CatalogItemCreateOrConnectWithoutSubcategoryInput[]
  createMany?: Prisma.CatalogItemCreateManySubcategoryInputEnvelope
  connect?: Prisma.CatalogItemWhereUniqueInput | Prisma.CatalogItemWhereUniqueInput[]
}

export type CatalogItemUncheckedCreateNestedManyWithoutSubcategoryInput = {
  create?: Prisma.XOR<Prisma.CatalogItemCreateWithoutSubcategoryInput, Prisma.CatalogItemUncheckedCreateWithoutSubcategoryInput> | Prisma.CatalogItemCreateWithoutSubcategoryInput[] | Prisma.CatalogItemUncheckedCreateWithoutSubcategoryInput[]
  connectOrCreate?: Prisma.CatalogItemCreateOrConnectWithoutSubcategoryInput | Prisma.CatalogItemCreateOrConnectWithoutSubcategoryInput[]
  createMany?: Prisma.CatalogItemCreateManySubcategoryInputEnvelope
  connect?: Prisma.CatalogItemWhereUniqueInput | Prisma.CatalogItemWhereUniqueInput[]
}

export type CatalogItemUpdateManyWithoutSubcategoryNestedInput = {
  create?: Prisma.XOR<Prisma.CatalogItemCreateWithoutSubcategoryInput, Prisma.CatalogItemUncheckedCreateWithoutSubcategoryInput> | Prisma.CatalogItemCreateWithoutSubcategoryInput[] | Prisma.CatalogItemUncheckedCreateWithoutSubcategoryInput[]
  connectOrCreate?: Prisma.CatalogItemCreateOrConnectWithoutSubcategoryInput | Prisma.CatalogItemCreateOrConnectWithoutSubcategoryInput[]
  upsert?: Prisma.CatalogItemUpsertWithWhereUniqueWithoutSubcategoryInput | Prisma.CatalogItemUpsertWithWhereUniqueWithoutSubcategoryInput[]
  createMany?: Prisma.CatalogItemCreateManySubcategoryInputEnvelope
  set?: Prisma.CatalogItemWhereUniqueInput | Prisma.CatalogItemWhereUniqueInput[]
  disconnect?: Prisma.CatalogItemWhereUniqueInput | Prisma.CatalogItemWhereUniqueInput[]
  delete?: Prisma.CatalogItemWhereUniqueInput | Prisma.CatalogItemWhereUniqueInput[]
  connect?: Prisma.CatalogItemWhereUniqueInput | Prisma.CatalogItemWhereUniqueInput[]
  update?: Prisma.CatalogItemUpdateWithWhereUniqueWithoutSubcategoryInput | Prisma.CatalogItemUpdateWithWhereUniqueWithoutSubcategoryInput[]
  updateMany?: Prisma.CatalogItemUpdateManyWithWhereWithoutSubcategoryInput | Prisma.CatalogItemUpdateManyWithWhereWithoutSubcategoryInput[]
  deleteMany?: Prisma.CatalogItemScalarWhereInput | Prisma.CatalogItemScalarWhereInput[]
}

export type CatalogItemUncheckedUpdateManyWithoutSubcategoryNestedInput = {
  create?: Prisma.XOR<Prisma.CatalogItemCreateWithoutSubcategoryInput, Prisma.CatalogItemUncheckedCreateWithoutSubcategoryInput> | Prisma.CatalogItemCreateWithoutSubcategoryInput[] | Prisma.CatalogItemUncheckedCreateWithoutSubcategoryInput[]
  connectOrCreate?: Prisma.CatalogItemCreateOrConnectWithoutSubcategoryInput | Prisma.CatalogItemCreateOrConnectWithoutSubcategoryInput[]
  upsert?: Prisma.CatalogItemUpsertWithWhereUniqueWithoutSubcategoryInput | Prisma.CatalogItemUpsertWithWhereUniqueWithoutSubcategoryInput[]
  createMany?: Prisma.CatalogItemCreateManySubcategoryInputEnvelope
  set?: Prisma.CatalogItemWhereUniqueInput | Prisma.CatalogItemWhereUniqueInput[]
  disconnect?: Prisma.CatalogItemWhereUniqueInput | Prisma.CatalogItemWhereUniqueInput[]
  delete?: Prisma.CatalogItemWhereUniqueInput | Prisma.CatalogItemWhereUniqueInput[]
  connect?: Prisma.CatalogItemWhereUniqueInput | Prisma.CatalogItemWhereUniqueInput[]
  update?: Prisma.CatalogItemUpdateWithWhereUniqueWithoutSubcategoryInput | Prisma.CatalogItemUpdateWithWhereUniqueWithoutSubcategoryInput[]
  updateMany?: Prisma.CatalogItemUpdateManyWithWhereWithoutSubcategoryInput | Prisma.CatalogItemUpdateManyWithWhereWithoutSubcategoryInput[]
  deleteMany?: Prisma.CatalogItemScalarWhereInput | Prisma.CatalogItemScalarWhereInput[]
}

export type CatalogItemCreateNestedManyWithoutManufacturerInput = {
  create?: Prisma.XOR<Prisma.CatalogItemCreateWithoutManufacturerInput, Prisma.CatalogItemUncheckedCreateWithoutManufacturerInput> | Prisma.CatalogItemCreateWithoutManufacturerInput[] | Prisma.CatalogItemUncheckedCreateWithoutManufacturerInput[]
  connectOrCreate?: Prisma.CatalogItemCreateOrConnectWithoutManufacturerInput | Prisma.CatalogItemCreateOrConnectWithoutManufacturerInput[]
  createMany?: Prisma.CatalogItemCreateManyManufacturerInputEnvelope
  connect?: Prisma.CatalogItemWhereUniqueInput | Prisma.CatalogItemWhereUniqueInput[]
}

export type CatalogItemUncheckedCreateNestedManyWithoutManufacturerInput = {
  create?: Prisma.XOR<Prisma.CatalogItemCreateWithoutManufacturerInput, Prisma.CatalogItemUncheckedCreateWithoutManufacturerInput> | Prisma.CatalogItemCreateWithoutManufacturerInput[] | Prisma.CatalogItemUncheckedCreateWithoutManufacturerInput[]
  connectOrCreate?: Prisma.CatalogItemCreateOrConnectWithoutManufacturerInput | Prisma.CatalogItemCreateOrConnectWithoutManufacturerInput[]
  createMany?: Prisma.CatalogItemCreateManyManufacturerInputEnvelope
  connect?: Prisma.CatalogItemWhereUniqueInput | Prisma.CatalogItemWhereUniqueInput[]
}

export type CatalogItemUpdateManyWithoutManufacturerNestedInput = {
  create?: Prisma.XOR<Prisma.CatalogItemCreateWithoutManufacturerInput, Prisma.CatalogItemUncheckedCreateWithoutManufacturerInput> | Prisma.CatalogItemCreateWithoutManufacturerInput[] | Prisma.CatalogItemUncheckedCreateWithoutManufacturerInput[]
  connectOrCreate?: Prisma.CatalogItemCreateOrConnectWithoutManufacturerInput | Prisma.CatalogItemCreateOrConnectWithoutManufacturerInput[]
  upsert?: Prisma.CatalogItemUpsertWithWhereUniqueWithoutManufacturerInput | Prisma.CatalogItemUpsertWithWhereUniqueWithoutManufacturerInput[]
  createMany?: Prisma.CatalogItemCreateManyManufacturerInputEnvelope
  set?: Prisma.CatalogItemWhereUniqueInput | Prisma.CatalogItemWhereUniqueInput[]
  disconnect?: Prisma.CatalogItemWhereUniqueInput | Prisma.CatalogItemWhereUniqueInput[]
  delete?: Prisma.CatalogItemWhereUniqueInput | Prisma.CatalogItemWhereUniqueInput[]
  connect?: Prisma.CatalogItemWhereUniqueInput | Prisma.CatalogItemWhereUniqueInput[]
  update?: Prisma.CatalogItemUpdateWithWhereUniqueWithoutManufacturerInput | Prisma.CatalogItemUpdateWithWhereUniqueWithoutManufacturerInput[]
  updateMany?: Prisma.CatalogItemUpdateManyWithWhereWithoutManufacturerInput | Prisma.CatalogItemUpdateManyWithWhereWithoutManufacturerInput[]
  deleteMany?: Prisma.CatalogItemScalarWhereInput | Prisma.CatalogItemScalarWhereInput[]
}

export type CatalogItemUncheckedUpdateManyWithoutManufacturerNestedInput = {
  create?: Prisma.XOR<Prisma.CatalogItemCreateWithoutManufacturerInput, Prisma.CatalogItemUncheckedCreateWithoutManufacturerInput> | Prisma.CatalogItemCreateWithoutManufacturerInput[] | Prisma.CatalogItemUncheckedCreateWithoutManufacturerInput[]
  connectOrCreate?: Prisma.CatalogItemCreateOrConnectWithoutManufacturerInput | Prisma.CatalogItemCreateOrConnectWithoutManufacturerInput[]
  upsert?: Prisma.CatalogItemUpsertWithWhereUniqueWithoutManufacturerInput | Prisma.CatalogItemUpsertWithWhereUniqueWithoutManufacturerInput[]
  createMany?: Prisma.CatalogItemCreateManyManufacturerInputEnvelope
  set?: Prisma.CatalogItemWhereUniqueInput | Prisma.CatalogItemWhereUniqueInput[]
  disconnect?: Prisma.CatalogItemWhereUniqueInput | Prisma.CatalogItemWhereUniqueInput[]
  delete?: Prisma.CatalogItemWhereUniqueInput | Prisma.CatalogItemWhereUniqueInput[]
  connect?: Prisma.CatalogItemWhereUniqueInput | Prisma.CatalogItemWhereUniqueInput[]
  update?: Prisma.CatalogItemUpdateWithWhereUniqueWithoutManufacturerInput | Prisma.CatalogItemUpdateWithWhereUniqueWithoutManufacturerInput[]
  updateMany?: Prisma.CatalogItemUpdateManyWithWhereWithoutManufacturerInput | Prisma.CatalogItemUpdateManyWithWhereWithoutManufacturerInput[]
  deleteMany?: Prisma.CatalogItemScalarWhereInput | Prisma.CatalogItemScalarWhereInput[]
}

export type CatalogItemCreateNestedOneWithoutInventoryInput = {
  create?: Prisma.XOR<Prisma.CatalogItemCreateWithoutInventoryInput, Prisma.CatalogItemUncheckedCreateWithoutInventoryInput>
  connectOrCreate?: Prisma.CatalogItemCreateOrConnectWithoutInventoryInput
  connect?: Prisma.CatalogItemWhereUniqueInput
}

export type CatalogItemUpdateOneWithoutInventoryNestedInput = {
  create?: Prisma.XOR<Prisma.CatalogItemCreateWithoutInventoryInput, Prisma.CatalogItemUncheckedCreateWithoutInventoryInput>
  connectOrCreate?: Prisma.CatalogItemCreateOrConnectWithoutInventoryInput
  upsert?: Prisma.CatalogItemUpsertWithoutInventoryInput
  disconnect?: Prisma.CatalogItemWhereInput | boolean
  delete?: Prisma.CatalogItemWhereInput | boolean
  connect?: Prisma.CatalogItemWhereUniqueInput
  update?: Prisma.XOR<Prisma.XOR<Prisma.CatalogItemUpdateToOneWithWhereWithoutInventoryInput, Prisma.CatalogItemUpdateWithoutInventoryInput>, Prisma.CatalogItemUncheckedUpdateWithoutInventoryInput>
}

export type CatalogItemCreateNestedOneWithoutMinimumStockByWarehousesInput = {
  create?: Prisma.XOR<Prisma.CatalogItemCreateWithoutMinimumStockByWarehousesInput, Prisma.CatalogItemUncheckedCreateWithoutMinimumStockByWarehousesInput>
  connectOrCreate?: Prisma.CatalogItemCreateOrConnectWithoutMinimumStockByWarehousesInput
  connect?: Prisma.CatalogItemWhereUniqueInput
}

export type CatalogItemUpdateOneWithoutMinimumStockByWarehousesNestedInput = {
  create?: Prisma.XOR<Prisma.CatalogItemCreateWithoutMinimumStockByWarehousesInput, Prisma.CatalogItemUncheckedCreateWithoutMinimumStockByWarehousesInput>
  connectOrCreate?: Prisma.CatalogItemCreateOrConnectWithoutMinimumStockByWarehousesInput
  upsert?: Prisma.CatalogItemUpsertWithoutMinimumStockByWarehousesInput
  disconnect?: Prisma.CatalogItemWhereInput | boolean
  delete?: Prisma.CatalogItemWhereInput | boolean
  connect?: Prisma.CatalogItemWhereUniqueInput
  update?: Prisma.XOR<Prisma.XOR<Prisma.CatalogItemUpdateToOneWithWhereWithoutMinimumStockByWarehousesInput, Prisma.CatalogItemUpdateWithoutMinimumStockByWarehousesInput>, Prisma.CatalogItemUncheckedUpdateWithoutMinimumStockByWarehousesInput>
}

export type CatalogItemCreateNestedManyWithoutLinkedToInput = {
  create?: Prisma.XOR<Prisma.CatalogItemCreateWithoutLinkedToInput, Prisma.CatalogItemUncheckedCreateWithoutLinkedToInput> | Prisma.CatalogItemCreateWithoutLinkedToInput[] | Prisma.CatalogItemUncheckedCreateWithoutLinkedToInput[]
  connectOrCreate?: Prisma.CatalogItemCreateOrConnectWithoutLinkedToInput | Prisma.CatalogItemCreateOrConnectWithoutLinkedToInput[]
  connect?: Prisma.CatalogItemWhereUniqueInput | Prisma.CatalogItemWhereUniqueInput[]
}

export type CatalogItemCreateNestedManyWithoutLinkedItemsInput = {
  create?: Prisma.XOR<Prisma.CatalogItemCreateWithoutLinkedItemsInput, Prisma.CatalogItemUncheckedCreateWithoutLinkedItemsInput> | Prisma.CatalogItemCreateWithoutLinkedItemsInput[] | Prisma.CatalogItemUncheckedCreateWithoutLinkedItemsInput[]
  connectOrCreate?: Prisma.CatalogItemCreateOrConnectWithoutLinkedItemsInput | Prisma.CatalogItemCreateOrConnectWithoutLinkedItemsInput[]
  connect?: Prisma.CatalogItemWhereUniqueInput | Prisma.CatalogItemWhereUniqueInput[]
}

export type CatalogItemUncheckedCreateNestedManyWithoutLinkedToInput = {
  create?: Prisma.XOR<Prisma.CatalogItemCreateWithoutLinkedToInput, Prisma.CatalogItemUncheckedCreateWithoutLinkedToInput> | Prisma.CatalogItemCreateWithoutLinkedToInput[] | Prisma.CatalogItemUncheckedCreateWithoutLinkedToInput[]
  connectOrCreate?: Prisma.CatalogItemCreateOrConnectWithoutLinkedToInput | Prisma.CatalogItemCreateOrConnectWithoutLinkedToInput[]
  connect?: Prisma.CatalogItemWhereUniqueInput | Prisma.CatalogItemWhereUniqueInput[]
}

export type CatalogItemUncheckedCreateNestedManyWithoutLinkedItemsInput = {
  create?: Prisma.XOR<Prisma.CatalogItemCreateWithoutLinkedItemsInput, Prisma.CatalogItemUncheckedCreateWithoutLinkedItemsInput> | Prisma.CatalogItemCreateWithoutLinkedItemsInput[] | Prisma.CatalogItemUncheckedCreateWithoutLinkedItemsInput[]
  connectOrCreate?: Prisma.CatalogItemCreateOrConnectWithoutLinkedItemsInput | Prisma.CatalogItemCreateOrConnectWithoutLinkedItemsInput[]
  connect?: Prisma.CatalogItemWhereUniqueInput | Prisma.CatalogItemWhereUniqueInput[]
}

export type FloatFieldUpdateOperationsInput = {
  set?: number
  increment?: number
  decrement?: number
  multiply?: number
  divide?: number
}

export type CatalogItemUpdateManyWithoutLinkedToNestedInput = {
  create?: Prisma.XOR<Prisma.CatalogItemCreateWithoutLinkedToInput, Prisma.CatalogItemUncheckedCreateWithoutLinkedToInput> | Prisma.CatalogItemCreateWithoutLinkedToInput[] | Prisma.CatalogItemUncheckedCreateWithoutLinkedToInput[]
  connectOrCreate?: Prisma.CatalogItemCreateOrConnectWithoutLinkedToInput | Prisma.CatalogItemCreateOrConnectWithoutLinkedToInput[]
  upsert?: Prisma.CatalogItemUpsertWithWhereUniqueWithoutLinkedToInput | Prisma.CatalogItemUpsertWithWhereUniqueWithoutLinkedToInput[]
  set?: Prisma.CatalogItemWhereUniqueInput | Prisma.CatalogItemWhereUniqueInput[]
  disconnect?: Prisma.CatalogItemWhereUniqueInput | Prisma.CatalogItemWhereUniqueInput[]
  delete?: Prisma.CatalogItemWhereUniqueInput | Prisma.CatalogItemWhereUniqueInput[]
  connect?: Prisma.CatalogItemWhereUniqueInput | Prisma.CatalogItemWhereUniqueInput[]
  update?: Prisma.CatalogItemUpdateWithWhereUniqueWithoutLinkedToInput | Prisma.CatalogItemUpdateWithWhereUniqueWithoutLinkedToInput[]
  updateMany?: Prisma.CatalogItemUpdateManyWithWhereWithoutLinkedToInput | Prisma.CatalogItemUpdateManyWithWhereWithoutLinkedToInput[]
  deleteMany?: Prisma.CatalogItemScalarWhereInput | Prisma.CatalogItemScalarWhereInput[]
}

export type CatalogItemUpdateManyWithoutLinkedItemsNestedInput = {
  create?: Prisma.XOR<Prisma.CatalogItemCreateWithoutLinkedItemsInput, Prisma.CatalogItemUncheckedCreateWithoutLinkedItemsInput> | Prisma.CatalogItemCreateWithoutLinkedItemsInput[] | Prisma.CatalogItemUncheckedCreateWithoutLinkedItemsInput[]
  connectOrCreate?: Prisma.CatalogItemCreateOrConnectWithoutLinkedItemsInput | Prisma.CatalogItemCreateOrConnectWithoutLinkedItemsInput[]
  upsert?: Prisma.CatalogItemUpsertWithWhereUniqueWithoutLinkedItemsInput | Prisma.CatalogItemUpsertWithWhereUniqueWithoutLinkedItemsInput[]
  set?: Prisma.CatalogItemWhereUniqueInput | Prisma.CatalogItemWhereUniqueInput[]
  disconnect?: Prisma.CatalogItemWhereUniqueInput | Prisma.CatalogItemWhereUniqueInput[]
  delete?: Prisma.CatalogItemWhereUniqueInput | Prisma.CatalogItemWhereUniqueInput[]
  connect?: Prisma.CatalogItemWhereUniqueInput | Prisma.CatalogItemWhereUniqueInput[]
  update?: Prisma.CatalogItemUpdateWithWhereUniqueWithoutLinkedItemsInput | Prisma.CatalogItemUpdateWithWhereUniqueWithoutLinkedItemsInput[]
  updateMany?: Prisma.CatalogItemUpdateManyWithWhereWithoutLinkedItemsInput | Prisma.CatalogItemUpdateManyWithWhereWithoutLinkedItemsInput[]
  deleteMany?: Prisma.CatalogItemScalarWhereInput | Prisma.CatalogItemScalarWhereInput[]
}

export type CatalogItemUncheckedUpdateManyWithoutLinkedToNestedInput = {
  create?: Prisma.XOR<Prisma.CatalogItemCreateWithoutLinkedToInput, Prisma.CatalogItemUncheckedCreateWithoutLinkedToInput> | Prisma.CatalogItemCreateWithoutLinkedToInput[] | Prisma.CatalogItemUncheckedCreateWithoutLinkedToInput[]
  connectOrCreate?: Prisma.CatalogItemCreateOrConnectWithoutLinkedToInput | Prisma.CatalogItemCreateOrConnectWithoutLinkedToInput[]
  upsert?: Prisma.CatalogItemUpsertWithWhereUniqueWithoutLinkedToInput | Prisma.CatalogItemUpsertWithWhereUniqueWithoutLinkedToInput[]
  set?: Prisma.CatalogItemWhereUniqueInput | Prisma.CatalogItemWhereUniqueInput[]
  disconnect?: Prisma.CatalogItemWhereUniqueInput | Prisma.CatalogItemWhereUniqueInput[]
  delete?: Prisma.CatalogItemWhereUniqueInput | Prisma.CatalogItemWhereUniqueInput[]
  connect?: Prisma.CatalogItemWhereUniqueInput | Prisma.CatalogItemWhereUniqueInput[]
  update?: Prisma.CatalogItemUpdateWithWhereUniqueWithoutLinkedToInput | Prisma.CatalogItemUpdateWithWhereUniqueWithoutLinkedToInput[]
  updateMany?: Prisma.CatalogItemUpdateManyWithWhereWithoutLinkedToInput | Prisma.CatalogItemUpdateManyWithWhereWithoutLinkedToInput[]
  deleteMany?: Prisma.CatalogItemScalarWhereInput | Prisma.CatalogItemScalarWhereInput[]
}

export type CatalogItemUncheckedUpdateManyWithoutLinkedItemsNestedInput = {
  create?: Prisma.XOR<Prisma.CatalogItemCreateWithoutLinkedItemsInput, Prisma.CatalogItemUncheckedCreateWithoutLinkedItemsInput> | Prisma.CatalogItemCreateWithoutLinkedItemsInput[] | Prisma.CatalogItemUncheckedCreateWithoutLinkedItemsInput[]
  connectOrCreate?: Prisma.CatalogItemCreateOrConnectWithoutLinkedItemsInput | Prisma.CatalogItemCreateOrConnectWithoutLinkedItemsInput[]
  upsert?: Prisma.CatalogItemUpsertWithWhereUniqueWithoutLinkedItemsInput | Prisma.CatalogItemUpsertWithWhereUniqueWithoutLinkedItemsInput[]
  set?: Prisma.CatalogItemWhereUniqueInput | Prisma.CatalogItemWhereUniqueInput[]
  disconnect?: Prisma.CatalogItemWhereUniqueInput | Prisma.CatalogItemWhereUniqueInput[]
  delete?: Prisma.CatalogItemWhereUniqueInput | Prisma.CatalogItemWhereUniqueInput[]
  connect?: Prisma.CatalogItemWhereUniqueInput | Prisma.CatalogItemWhereUniqueInput[]
  update?: Prisma.CatalogItemUpdateWithWhereUniqueWithoutLinkedItemsInput | Prisma.CatalogItemUpdateWithWhereUniqueWithoutLinkedItemsInput[]
  updateMany?: Prisma.CatalogItemUpdateManyWithWhereWithoutLinkedItemsInput | Prisma.CatalogItemUpdateManyWithWhereWithoutLinkedItemsInput[]
  deleteMany?: Prisma.CatalogItemScalarWhereInput | Prisma.CatalogItemScalarWhereInput[]
}

export type CatalogItemCreateNestedOneWithoutProductDataRecordsInput = {
  create?: Prisma.XOR<Prisma.CatalogItemCreateWithoutProductDataRecordsInput, Prisma.CatalogItemUncheckedCreateWithoutProductDataRecordsInput>
  connectOrCreate?: Prisma.CatalogItemCreateOrConnectWithoutProductDataRecordsInput
  connect?: Prisma.CatalogItemWhereUniqueInput
}

export type CatalogItemUpdateOneRequiredWithoutProductDataRecordsNestedInput = {
  create?: Prisma.XOR<Prisma.CatalogItemCreateWithoutProductDataRecordsInput, Prisma.CatalogItemUncheckedCreateWithoutProductDataRecordsInput>
  connectOrCreate?: Prisma.CatalogItemCreateOrConnectWithoutProductDataRecordsInput
  upsert?: Prisma.CatalogItemUpsertWithoutProductDataRecordsInput
  connect?: Prisma.CatalogItemWhereUniqueInput
  update?: Prisma.XOR<Prisma.XOR<Prisma.CatalogItemUpdateToOneWithWhereWithoutProductDataRecordsInput, Prisma.CatalogItemUpdateWithoutProductDataRecordsInput>, Prisma.CatalogItemUncheckedUpdateWithoutProductDataRecordsInput>
}

export type CatalogItemCreateWithoutSubcategoryInput = {
  id: number
  uid?: string
  identifier?: string | null
  name: string
  description?: string | null
  customerDescription?: string | null
  internalNotes?: string | null
  partNumber?: string | null
  vendorName?: string | null
  vendorSku?: string | null
  vendorCwId?: number | null
  price: number
  cost: number
  inactive?: boolean
  salesTaxable?: boolean
  onHand?: number
  cwLastUpdated?: Date | string | null
  classId?: string | null
  createdAt?: Date | string
  updatedAt?: Date | string
  linkedItems?: Prisma.CatalogItemCreateNestedManyWithoutLinkedToInput
  linkedTo?: Prisma.CatalogItemCreateNestedManyWithoutLinkedItemsInput
  manufacturer?: Prisma.CatalogManufacturerCreateNestedOneWithoutItemsInput
  inventory?: Prisma.ProductInventoryCreateNestedManyWithoutItemInput
  minimumStockByWarehouses?: Prisma.MinimumStockByWarehouseCreateNestedManyWithoutItemInput
  productDataRecords?: Prisma.ProductDataCreateNestedManyWithoutCatalogItemInput
}

export type CatalogItemUncheckedCreateWithoutSubcategoryInput = {
  id: number
  uid?: string
  identifier?: string | null
  name: string
  description?: string | null
  customerDescription?: string | null
  internalNotes?: string | null
  manufacturerId?: number | null
  partNumber?: string | null
  vendorName?: string | null
  vendorSku?: string | null
  vendorCwId?: number | null
  price: number
  cost: number
  inactive?: boolean
  salesTaxable?: boolean
  onHand?: number
  cwLastUpdated?: Date | string | null
  classId?: string | null
  createdAt?: Date | string
  updatedAt?: Date | string
  linkedItems?: Prisma.CatalogItemUncheckedCreateNestedManyWithoutLinkedToInput
  linkedTo?: Prisma.CatalogItemUncheckedCreateNestedManyWithoutLinkedItemsInput
  inventory?: Prisma.ProductInventoryUncheckedCreateNestedManyWithoutItemInput
  minimumStockByWarehouses?: Prisma.MinimumStockByWarehouseUncheckedCreateNestedManyWithoutItemInput
  productDataRecords?: Prisma.ProductDataUncheckedCreateNestedManyWithoutCatalogItemInput
}

export type CatalogItemCreateOrConnectWithoutSubcategoryInput = {
  where: Prisma.CatalogItemWhereUniqueInput
  create: Prisma.XOR<Prisma.CatalogItemCreateWithoutSubcategoryInput, Prisma.CatalogItemUncheckedCreateWithoutSubcategoryInput>
}

export type CatalogItemCreateManySubcategoryInputEnvelope = {
  data: Prisma.CatalogItemCreateManySubcategoryInput | Prisma.CatalogItemCreateManySubcategoryInput[]
  skipDuplicates?: boolean
}

export type CatalogItemUpsertWithWhereUniqueWithoutSubcategoryInput = {
  where: Prisma.CatalogItemWhereUniqueInput
  update: Prisma.XOR<Prisma.CatalogItemUpdateWithoutSubcategoryInput, Prisma.CatalogItemUncheckedUpdateWithoutSubcategoryInput>
  create: Prisma.XOR<Prisma.CatalogItemCreateWithoutSubcategoryInput, Prisma.CatalogItemUncheckedCreateWithoutSubcategoryInput>
}

export type CatalogItemUpdateWithWhereUniqueWithoutSubcategoryInput = {
  where: Prisma.CatalogItemWhereUniqueInput
  data: Prisma.XOR<Prisma.CatalogItemUpdateWithoutSubcategoryInput, Prisma.CatalogItemUncheckedUpdateWithoutSubcategoryInput>
}

export type CatalogItemUpdateManyWithWhereWithoutSubcategoryInput = {
  where: Prisma.CatalogItemScalarWhereInput
  data: Prisma.XOR<Prisma.CatalogItemUpdateManyMutationInput, Prisma.CatalogItemUncheckedUpdateManyWithoutSubcategoryInput>
}

export type CatalogItemScalarWhereInput = {
  AND?: Prisma.CatalogItemScalarWhereInput | Prisma.CatalogItemScalarWhereInput[]
  OR?: Prisma.CatalogItemScalarWhereInput[]
  NOT?: Prisma.CatalogItemScalarWhereInput | Prisma.CatalogItemScalarWhereInput[]
  id?: Prisma.IntFilter<"CatalogItem"> | number
  uid?: Prisma.StringFilter<"CatalogItem"> | string
  identifier?: Prisma.StringNullableFilter<"CatalogItem"> | string | null
  name?: Prisma.StringFilter<"CatalogItem"> | string
  description?: Prisma.StringNullableFilter<"CatalogItem"> | string | null
  customerDescription?: Prisma.StringNullableFilter<"CatalogItem"> | string | null
  internalNotes?: Prisma.StringNullableFilter<"CatalogItem"> | string | null
  subcategoryId?: Prisma.IntFilter<"CatalogItem"> | number
  manufacturerId?: Prisma.IntNullableFilter<"CatalogItem"> | number | null
  partNumber?: Prisma.StringNullableFilter<"CatalogItem"> | string | null
  vendorName?: Prisma.StringNullableFilter<"CatalogItem"> | string | null
  vendorSku?: Prisma.StringNullableFilter<"CatalogItem"> | string | null
  vendorCwId?: Prisma.IntNullableFilter<"CatalogItem"> | number | null
  price?: Prisma.FloatFilter<"CatalogItem"> | number
  cost?: Prisma.FloatFilter<"CatalogItem"> | number
  inactive?: Prisma.BoolFilter<"CatalogItem"> | boolean
  salesTaxable?: Prisma.BoolFilter<"CatalogItem"> | boolean
  onHand?: Prisma.IntFilter<"CatalogItem"> | number
  cwLastUpdated?: Prisma.DateTimeNullableFilter<"CatalogItem"> | Date | string | null
  classId?: Prisma.StringNullableFilter<"CatalogItem"> | string | null
  createdAt?: Prisma.DateTimeFilter<"CatalogItem"> | Date | string
  updatedAt?: Prisma.DateTimeFilter<"CatalogItem"> | Date | string
}

export type CatalogItemCreateWithoutManufacturerInput = {
  id: number
  uid?: string
  identifier?: string | null
  name: string
  description?: string | null
  customerDescription?: string | null
  internalNotes?: string | null
  partNumber?: string | null
  vendorName?: string | null
  vendorSku?: string | null
  vendorCwId?: number | null
  price: number
  cost: number
  inactive?: boolean
  salesTaxable?: boolean
  onHand?: number
  cwLastUpdated?: Date | string | null
  classId?: string | null
  createdAt?: Date | string
  updatedAt?: Date | string
  linkedItems?: Prisma.CatalogItemCreateNestedManyWithoutLinkedToInput
  linkedTo?: Prisma.CatalogItemCreateNestedManyWithoutLinkedItemsInput
  subcategory: Prisma.CatalogSubcategoryCreateNestedOneWithoutItemsInput
  inventory?: Prisma.ProductInventoryCreateNestedManyWithoutItemInput
  minimumStockByWarehouses?: Prisma.MinimumStockByWarehouseCreateNestedManyWithoutItemInput
  productDataRecords?: Prisma.ProductDataCreateNestedManyWithoutCatalogItemInput
}

export type CatalogItemUncheckedCreateWithoutManufacturerInput = {
  id: number
  uid?: string
  identifier?: string | null
  name: string
  description?: string | null
  customerDescription?: string | null
  internalNotes?: string | null
  subcategoryId: number
  partNumber?: string | null
  vendorName?: string | null
  vendorSku?: string | null
  vendorCwId?: number | null
  price: number
  cost: number
  inactive?: boolean
  salesTaxable?: boolean
  onHand?: number
  cwLastUpdated?: Date | string | null
  classId?: string | null
  createdAt?: Date | string
  updatedAt?: Date | string
  linkedItems?: Prisma.CatalogItemUncheckedCreateNestedManyWithoutLinkedToInput
  linkedTo?: Prisma.CatalogItemUncheckedCreateNestedManyWithoutLinkedItemsInput
  inventory?: Prisma.ProductInventoryUncheckedCreateNestedManyWithoutItemInput
  minimumStockByWarehouses?: Prisma.MinimumStockByWarehouseUncheckedCreateNestedManyWithoutItemInput
  productDataRecords?: Prisma.ProductDataUncheckedCreateNestedManyWithoutCatalogItemInput
}

export type CatalogItemCreateOrConnectWithoutManufacturerInput = {
  where: Prisma.CatalogItemWhereUniqueInput
  create: Prisma.XOR<Prisma.CatalogItemCreateWithoutManufacturerInput, Prisma.CatalogItemUncheckedCreateWithoutManufacturerInput>
}

export type CatalogItemCreateManyManufacturerInputEnvelope = {
  data: Prisma.CatalogItemCreateManyManufacturerInput | Prisma.CatalogItemCreateManyManufacturerInput[]
  skipDuplicates?: boolean
}

export type CatalogItemUpsertWithWhereUniqueWithoutManufacturerInput = {
  where: Prisma.CatalogItemWhereUniqueInput
  update: Prisma.XOR<Prisma.CatalogItemUpdateWithoutManufacturerInput, Prisma.CatalogItemUncheckedUpdateWithoutManufacturerInput>
  create: Prisma.XOR<Prisma.CatalogItemCreateWithoutManufacturerInput, Prisma.CatalogItemUncheckedCreateWithoutManufacturerInput>
}

export type CatalogItemUpdateWithWhereUniqueWithoutManufacturerInput = {
  where: Prisma.CatalogItemWhereUniqueInput
  data: Prisma.XOR<Prisma.CatalogItemUpdateWithoutManufacturerInput, Prisma.CatalogItemUncheckedUpdateWithoutManufacturerInput>
}

export type CatalogItemUpdateManyWithWhereWithoutManufacturerInput = {
  where: Prisma.CatalogItemScalarWhereInput
  data: Prisma.XOR<Prisma.CatalogItemUpdateManyMutationInput, Prisma.CatalogItemUncheckedUpdateManyWithoutManufacturerInput>
}

export type CatalogItemCreateWithoutInventoryInput = {
  id: number
  uid?: string
  identifier?: string | null
  name: string
  description?: string | null
  customerDescription?: string | null
  internalNotes?: string | null
  partNumber?: string | null
  vendorName?: string | null
  vendorSku?: string | null
  vendorCwId?: number | null
  price: number
  cost: number
  inactive?: boolean
  salesTaxable?: boolean
  onHand?: number
  cwLastUpdated?: Date | string | null
  classId?: string | null
  createdAt?: Date | string
  updatedAt?: Date | string
  linkedItems?: Prisma.CatalogItemCreateNestedManyWithoutLinkedToInput
  linkedTo?: Prisma.CatalogItemCreateNestedManyWithoutLinkedItemsInput
  subcategory: Prisma.CatalogSubcategoryCreateNestedOneWithoutItemsInput
  manufacturer?: Prisma.CatalogManufacturerCreateNestedOneWithoutItemsInput
  minimumStockByWarehouses?: Prisma.MinimumStockByWarehouseCreateNestedManyWithoutItemInput
  productDataRecords?: Prisma.ProductDataCreateNestedManyWithoutCatalogItemInput
}

export type CatalogItemUncheckedCreateWithoutInventoryInput = {
  id: number
  uid?: string
  identifier?: string | null
  name: string
  description?: string | null
  customerDescription?: string | null
  internalNotes?: string | null
  subcategoryId: number
  manufacturerId?: number | null
  partNumber?: string | null
  vendorName?: string | null
  vendorSku?: string | null
  vendorCwId?: number | null
  price: number
  cost: number
  inactive?: boolean
  salesTaxable?: boolean
  onHand?: number
  cwLastUpdated?: Date | string | null
  classId?: string | null
  createdAt?: Date | string
  updatedAt?: Date | string
  linkedItems?: Prisma.CatalogItemUncheckedCreateNestedManyWithoutLinkedToInput
  linkedTo?: Prisma.CatalogItemUncheckedCreateNestedManyWithoutLinkedItemsInput
  minimumStockByWarehouses?: Prisma.MinimumStockByWarehouseUncheckedCreateNestedManyWithoutItemInput
  productDataRecords?: Prisma.ProductDataUncheckedCreateNestedManyWithoutCatalogItemInput
}

export type CatalogItemCreateOrConnectWithoutInventoryInput = {
  where: Prisma.CatalogItemWhereUniqueInput
  create: Prisma.XOR<Prisma.CatalogItemCreateWithoutInventoryInput, Prisma.CatalogItemUncheckedCreateWithoutInventoryInput>
}

export type CatalogItemUpsertWithoutInventoryInput = {
  update: Prisma.XOR<Prisma.CatalogItemUpdateWithoutInventoryInput, Prisma.CatalogItemUncheckedUpdateWithoutInventoryInput>
  create: Prisma.XOR<Prisma.CatalogItemCreateWithoutInventoryInput, Prisma.CatalogItemUncheckedCreateWithoutInventoryInput>
  where?: Prisma.CatalogItemWhereInput
}

export type CatalogItemUpdateToOneWithWhereWithoutInventoryInput = {
  where?: Prisma.CatalogItemWhereInput
  data: Prisma.XOR<Prisma.CatalogItemUpdateWithoutInventoryInput, Prisma.CatalogItemUncheckedUpdateWithoutInventoryInput>
}

export type CatalogItemUpdateWithoutInventoryInput = {
  id?: Prisma.IntFieldUpdateOperationsInput | number
  uid?: Prisma.StringFieldUpdateOperationsInput | string
  identifier?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  name?: Prisma.StringFieldUpdateOperationsInput | string
  description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  customerDescription?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  internalNotes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  partNumber?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  vendorName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  vendorSku?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  vendorCwId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
  price?: Prisma.FloatFieldUpdateOperationsInput | number
  cost?: Prisma.FloatFieldUpdateOperationsInput | number
  inactive?: Prisma.BoolFieldUpdateOperationsInput | boolean
  salesTaxable?: Prisma.BoolFieldUpdateOperationsInput | boolean
  onHand?: Prisma.IntFieldUpdateOperationsInput | number
  cwLastUpdated?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  classId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  linkedItems?: Prisma.CatalogItemUpdateManyWithoutLinkedToNestedInput
  linkedTo?: Prisma.CatalogItemUpdateManyWithoutLinkedItemsNestedInput
  subcategory?: Prisma.CatalogSubcategoryUpdateOneRequiredWithoutItemsNestedInput
  manufacturer?: Prisma.CatalogManufacturerUpdateOneWithoutItemsNestedInput
  minimumStockByWarehouses?: Prisma.MinimumStockByWarehouseUpdateManyWithoutItemNestedInput
  productDataRecords?: Prisma.ProductDataUpdateManyWithoutCatalogItemNestedInput
}

export type CatalogItemUncheckedUpdateWithoutInventoryInput = {
  id?: Prisma.IntFieldUpdateOperationsInput | number
  uid?: Prisma.StringFieldUpdateOperationsInput | string
  identifier?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  name?: Prisma.StringFieldUpdateOperationsInput | string
  description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  customerDescription?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  internalNotes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  subcategoryId?: Prisma.IntFieldUpdateOperationsInput | number
  manufacturerId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
  partNumber?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  vendorName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  vendorSku?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  vendorCwId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
  price?: Prisma.FloatFieldUpdateOperationsInput | number
  cost?: Prisma.FloatFieldUpdateOperationsInput | number
  inactive?: Prisma.BoolFieldUpdateOperationsInput | boolean
  salesTaxable?: Prisma.BoolFieldUpdateOperationsInput | boolean
  onHand?: Prisma.IntFieldUpdateOperationsInput | number
  cwLastUpdated?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  classId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  linkedItems?: Prisma.CatalogItemUncheckedUpdateManyWithoutLinkedToNestedInput
  linkedTo?: Prisma.CatalogItemUncheckedUpdateManyWithoutLinkedItemsNestedInput
  minimumStockByWarehouses?: Prisma.MinimumStockByWarehouseUncheckedUpdateManyWithoutItemNestedInput
  productDataRecords?: Prisma.ProductDataUncheckedUpdateManyWithoutCatalogItemNestedInput
}

export type CatalogItemCreateWithoutMinimumStockByWarehousesInput = {
  id: number
  uid?: string
  identifier?: string | null
  name: string
  description?: string | null
  customerDescription?: string | null
  internalNotes?: string | null
  partNumber?: string | null
  vendorName?: string | null
  vendorSku?: string | null
  vendorCwId?: number | null
  price: number
  cost: number
  inactive?: boolean
  salesTaxable?: boolean
  onHand?: number
  cwLastUpdated?: Date | string | null
  classId?: string | null
  createdAt?: Date | string
  updatedAt?: Date | string
  linkedItems?: Prisma.CatalogItemCreateNestedManyWithoutLinkedToInput
  linkedTo?: Prisma.CatalogItemCreateNestedManyWithoutLinkedItemsInput
  subcategory: Prisma.CatalogSubcategoryCreateNestedOneWithoutItemsInput
  manufacturer?: Prisma.CatalogManufacturerCreateNestedOneWithoutItemsInput
  inventory?: Prisma.ProductInventoryCreateNestedManyWithoutItemInput
  productDataRecords?: Prisma.ProductDataCreateNestedManyWithoutCatalogItemInput
}

export type CatalogItemUncheckedCreateWithoutMinimumStockByWarehousesInput = {
  id: number
  uid?: string
  identifier?: string | null
  name: string
  description?: string | null
  customerDescription?: string | null
  internalNotes?: string | null
  subcategoryId: number
  manufacturerId?: number | null
  partNumber?: string | null
  vendorName?: string | null
  vendorSku?: string | null
  vendorCwId?: number | null
  price: number
  cost: number
  inactive?: boolean
  salesTaxable?: boolean
  onHand?: number
  cwLastUpdated?: Date | string | null
  classId?: string | null
  createdAt?: Date | string
  updatedAt?: Date | string
  linkedItems?: Prisma.CatalogItemUncheckedCreateNestedManyWithoutLinkedToInput
  linkedTo?: Prisma.CatalogItemUncheckedCreateNestedManyWithoutLinkedItemsInput
  inventory?: Prisma.ProductInventoryUncheckedCreateNestedManyWithoutItemInput
  productDataRecords?: Prisma.ProductDataUncheckedCreateNestedManyWithoutCatalogItemInput
}

export type CatalogItemCreateOrConnectWithoutMinimumStockByWarehousesInput = {
  where: Prisma.CatalogItemWhereUniqueInput
  create: Prisma.XOR<Prisma.CatalogItemCreateWithoutMinimumStockByWarehousesInput, Prisma.CatalogItemUncheckedCreateWithoutMinimumStockByWarehousesInput>
}

export type CatalogItemUpsertWithoutMinimumStockByWarehousesInput = {
  update: Prisma.XOR<Prisma.CatalogItemUpdateWithoutMinimumStockByWarehousesInput, Prisma.CatalogItemUncheckedUpdateWithoutMinimumStockByWarehousesInput>
  create: Prisma.XOR<Prisma.CatalogItemCreateWithoutMinimumStockByWarehousesInput, Prisma.CatalogItemUncheckedCreateWithoutMinimumStockByWarehousesInput>
  where?: Prisma.CatalogItemWhereInput
}

export type CatalogItemUpdateToOneWithWhereWithoutMinimumStockByWarehousesInput = {
  where?: Prisma.CatalogItemWhereInput
  data: Prisma.XOR<Prisma.CatalogItemUpdateWithoutMinimumStockByWarehousesInput, Prisma.CatalogItemUncheckedUpdateWithoutMinimumStockByWarehousesInput>
}

export type CatalogItemUpdateWithoutMinimumStockByWarehousesInput = {
  id?: Prisma.IntFieldUpdateOperationsInput | number
  uid?: Prisma.StringFieldUpdateOperationsInput | string
  identifier?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  name?: Prisma.StringFieldUpdateOperationsInput | string
  description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  customerDescription?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  internalNotes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  partNumber?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  vendorName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  vendorSku?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  vendorCwId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
  price?: Prisma.FloatFieldUpdateOperationsInput | number
  cost?: Prisma.FloatFieldUpdateOperationsInput | number
  inactive?: Prisma.BoolFieldUpdateOperationsInput | boolean
  salesTaxable?: Prisma.BoolFieldUpdateOperationsInput | boolean
  onHand?: Prisma.IntFieldUpdateOperationsInput | number
  cwLastUpdated?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  classId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  linkedItems?: Prisma.CatalogItemUpdateManyWithoutLinkedToNestedInput
  linkedTo?: Prisma.CatalogItemUpdateManyWithoutLinkedItemsNestedInput
  subcategory?: Prisma.CatalogSubcategoryUpdateOneRequiredWithoutItemsNestedInput
  manufacturer?: Prisma.CatalogManufacturerUpdateOneWithoutItemsNestedInput
  inventory?: Prisma.ProductInventoryUpdateManyWithoutItemNestedInput
  productDataRecords?: Prisma.ProductDataUpdateManyWithoutCatalogItemNestedInput
}

export type CatalogItemUncheckedUpdateWithoutMinimumStockByWarehousesInput = {
  id?: Prisma.IntFieldUpdateOperationsInput | number
  uid?: Prisma.StringFieldUpdateOperationsInput | string
  identifier?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  name?: Prisma.StringFieldUpdateOperationsInput | string
  description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  customerDescription?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  internalNotes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  subcategoryId?: Prisma.IntFieldUpdateOperationsInput | number
  manufacturerId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
  partNumber?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  vendorName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  vendorSku?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  vendorCwId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
  price?: Prisma.FloatFieldUpdateOperationsInput | number
  cost?: Prisma.FloatFieldUpdateOperationsInput | number
  inactive?: Prisma.BoolFieldUpdateOperationsInput | boolean
  salesTaxable?: Prisma.BoolFieldUpdateOperationsInput | boolean
  onHand?: Prisma.IntFieldUpdateOperationsInput | number
  cwLastUpdated?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  classId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  linkedItems?: Prisma.CatalogItemUncheckedUpdateManyWithoutLinkedToNestedInput
  linkedTo?: Prisma.CatalogItemUncheckedUpdateManyWithoutLinkedItemsNestedInput
  inventory?: Prisma.ProductInventoryUncheckedUpdateManyWithoutItemNestedInput
  productDataRecords?: Prisma.ProductDataUncheckedUpdateManyWithoutCatalogItemNestedInput
}

export type CatalogItemCreateWithoutLinkedToInput = {
  id: number
  uid?: string
  identifier?: string | null
  name: string
  description?: string | null
  customerDescription?: string | null
  internalNotes?: string | null
  partNumber?: string | null
  vendorName?: string | null
  vendorSku?: string | null
  vendorCwId?: number | null
  price: number
  cost: number
  inactive?: boolean
  salesTaxable?: boolean
  onHand?: number
  cwLastUpdated?: Date | string | null
  classId?: string | null
  createdAt?: Date | string
  updatedAt?: Date | string
  linkedItems?: Prisma.CatalogItemCreateNestedManyWithoutLinkedToInput
  subcategory: Prisma.CatalogSubcategoryCreateNestedOneWithoutItemsInput
  manufacturer?: Prisma.CatalogManufacturerCreateNestedOneWithoutItemsInput
  inventory?: Prisma.ProductInventoryCreateNestedManyWithoutItemInput
  minimumStockByWarehouses?: Prisma.MinimumStockByWarehouseCreateNestedManyWithoutItemInput
  productDataRecords?: Prisma.ProductDataCreateNestedManyWithoutCatalogItemInput
}

export type CatalogItemUncheckedCreateWithoutLinkedToInput = {
  id: number
  uid?: string
  identifier?: string | null
  name: string
  description?: string | null
  customerDescription?: string | null
  internalNotes?: string | null
  subcategoryId: number
  manufacturerId?: number | null
  partNumber?: string | null
  vendorName?: string | null
  vendorSku?: string | null
  vendorCwId?: number | null
  price: number
  cost: number
  inactive?: boolean
  salesTaxable?: boolean
  onHand?: number
  cwLastUpdated?: Date | string | null
  classId?: string | null
  createdAt?: Date | string
  updatedAt?: Date | string
  linkedItems?: Prisma.CatalogItemUncheckedCreateNestedManyWithoutLinkedToInput
  inventory?: Prisma.ProductInventoryUncheckedCreateNestedManyWithoutItemInput
  minimumStockByWarehouses?: Prisma.MinimumStockByWarehouseUncheckedCreateNestedManyWithoutItemInput
  productDataRecords?: Prisma.ProductDataUncheckedCreateNestedManyWithoutCatalogItemInput
}

export type CatalogItemCreateOrConnectWithoutLinkedToInput = {
  where: Prisma.CatalogItemWhereUniqueInput
  create: Prisma.XOR<Prisma.CatalogItemCreateWithoutLinkedToInput, Prisma.CatalogItemUncheckedCreateWithoutLinkedToInput>
}

export type CatalogItemCreateWithoutLinkedItemsInput = {
  id: number
  uid?: string
  identifier?: string | null
  name: string
  description?: string | null
  customerDescription?: string | null
  internalNotes?: string | null
  partNumber?: string | null
  vendorName?: string | null
  vendorSku?: string | null
  vendorCwId?: number | null
  price: number
  cost: number
  inactive?: boolean
  salesTaxable?: boolean
  onHand?: number
  cwLastUpdated?: Date | string | null
  classId?: string | null
  createdAt?: Date | string
  updatedAt?: Date | string
  linkedTo?: Prisma.CatalogItemCreateNestedManyWithoutLinkedItemsInput
  subcategory: Prisma.CatalogSubcategoryCreateNestedOneWithoutItemsInput
  manufacturer?: Prisma.CatalogManufacturerCreateNestedOneWithoutItemsInput
  inventory?: Prisma.ProductInventoryCreateNestedManyWithoutItemInput
  minimumStockByWarehouses?: Prisma.MinimumStockByWarehouseCreateNestedManyWithoutItemInput
  productDataRecords?: Prisma.ProductDataCreateNestedManyWithoutCatalogItemInput
}

export type CatalogItemUncheckedCreateWithoutLinkedItemsInput = {
  id: number
  uid?: string
  identifier?: string | null
  name: string
  description?: string | null
  customerDescription?: string | null
  internalNotes?: string | null
  subcategoryId: number
  manufacturerId?: number | null
  partNumber?: string | null
  vendorName?: string | null
  vendorSku?: string | null
  vendorCwId?: number | null
  price: number
  cost: number
  inactive?: boolean
  salesTaxable?: boolean
  onHand?: number
  cwLastUpdated?: Date | string | null
  classId?: string | null
  createdAt?: Date | string
  updatedAt?: Date | string
  linkedTo?: Prisma.CatalogItemUncheckedCreateNestedManyWithoutLinkedItemsInput
  inventory?: Prisma.ProductInventoryUncheckedCreateNestedManyWithoutItemInput
  minimumStockByWarehouses?: Prisma.MinimumStockByWarehouseUncheckedCreateNestedManyWithoutItemInput
  productDataRecords?: Prisma.ProductDataUncheckedCreateNestedManyWithoutCatalogItemInput
}

export type CatalogItemCreateOrConnectWithoutLinkedItemsInput = {
  where: Prisma.CatalogItemWhereUniqueInput
  create: Prisma.XOR<Prisma.CatalogItemCreateWithoutLinkedItemsInput, Prisma.CatalogItemUncheckedCreateWithoutLinkedItemsInput>
}

export type CatalogItemUpsertWithWhereUniqueWithoutLinkedToInput = {
  where: Prisma.CatalogItemWhereUniqueInput
  update: Prisma.XOR<Prisma.CatalogItemUpdateWithoutLinkedToInput, Prisma.CatalogItemUncheckedUpdateWithoutLinkedToInput>
  create: Prisma.XOR<Prisma.CatalogItemCreateWithoutLinkedToInput, Prisma.CatalogItemUncheckedCreateWithoutLinkedToInput>
}

export type CatalogItemUpdateWithWhereUniqueWithoutLinkedToInput = {
  where: Prisma.CatalogItemWhereUniqueInput
  data: Prisma.XOR<Prisma.CatalogItemUpdateWithoutLinkedToInput, Prisma.CatalogItemUncheckedUpdateWithoutLinkedToInput>
}

export type CatalogItemUpdateManyWithWhereWithoutLinkedToInput = {
  where: Prisma.CatalogItemScalarWhereInput
  data: Prisma.XOR<Prisma.CatalogItemUpdateManyMutationInput, Prisma.CatalogItemUncheckedUpdateManyWithoutLinkedToInput>
}

export type CatalogItemUpsertWithWhereUniqueWithoutLinkedItemsInput = {
  where: Prisma.CatalogItemWhereUniqueInput
  update: Prisma.XOR<Prisma.CatalogItemUpdateWithoutLinkedItemsInput, Prisma.CatalogItemUncheckedUpdateWithoutLinkedItemsInput>
  create: Prisma.XOR<Prisma.CatalogItemCreateWithoutLinkedItemsInput, Prisma.CatalogItemUncheckedCreateWithoutLinkedItemsInput>
}

export type CatalogItemUpdateWithWhereUniqueWithoutLinkedItemsInput = {
  where: Prisma.CatalogItemWhereUniqueInput
  data: Prisma.XOR<Prisma.CatalogItemUpdateWithoutLinkedItemsInput, Prisma.CatalogItemUncheckedUpdateWithoutLinkedItemsInput>
}

export type CatalogItemUpdateManyWithWhereWithoutLinkedItemsInput = {
  where: Prisma.CatalogItemScalarWhereInput
  data: Prisma.XOR<Prisma.CatalogItemUpdateManyMutationInput, Prisma.CatalogItemUncheckedUpdateManyWithoutLinkedItemsInput>
}

export type CatalogItemCreateWithoutProductDataRecordsInput = {
  id: number
  uid?: string
  identifier?: string | null
  name: string
  description?: string | null
  customerDescription?: string | null
  internalNotes?: string | null
  partNumber?: string | null
  vendorName?: string | null
  vendorSku?: string | null
  vendorCwId?: number | null
  price: number
  cost: number
  inactive?: boolean
  salesTaxable?: boolean
  onHand?: number
  cwLastUpdated?: Date | string | null
  classId?: string | null
  createdAt?: Date | string
  updatedAt?: Date | string
  linkedItems?: Prisma.CatalogItemCreateNestedManyWithoutLinkedToInput
  linkedTo?: Prisma.CatalogItemCreateNestedManyWithoutLinkedItemsInput
  subcategory: Prisma.CatalogSubcategoryCreateNestedOneWithoutItemsInput
  manufacturer?: Prisma.CatalogManufacturerCreateNestedOneWithoutItemsInput
  inventory?: Prisma.ProductInventoryCreateNestedManyWithoutItemInput
  minimumStockByWarehouses?: Prisma.MinimumStockByWarehouseCreateNestedManyWithoutItemInput
}

export type CatalogItemUncheckedCreateWithoutProductDataRecordsInput = {
  id: number
  uid?: string
  identifier?: string | null
  name: string
  description?: string | null
  customerDescription?: string | null
  internalNotes?: string | null
  subcategoryId: number
  manufacturerId?: number | null
  partNumber?: string | null
  vendorName?: string | null
  vendorSku?: string | null
  vendorCwId?: number | null
  price: number
  cost: number
  inactive?: boolean
  salesTaxable?: boolean
  onHand?: number
  cwLastUpdated?: Date | string | null
  classId?: string | null
  createdAt?: Date | string
  updatedAt?: Date | string
  linkedItems?: Prisma.CatalogItemUncheckedCreateNestedManyWithoutLinkedToInput
  linkedTo?: Prisma.CatalogItemUncheckedCreateNestedManyWithoutLinkedItemsInput
  inventory?: Prisma.ProductInventoryUncheckedCreateNestedManyWithoutItemInput
  minimumStockByWarehouses?: Prisma.MinimumStockByWarehouseUncheckedCreateNestedManyWithoutItemInput
}

export type CatalogItemCreateOrConnectWithoutProductDataRecordsInput = {
  where: Prisma.CatalogItemWhereUniqueInput
  create: Prisma.XOR<Prisma.CatalogItemCreateWithoutProductDataRecordsInput, Prisma.CatalogItemUncheckedCreateWithoutProductDataRecordsInput>
}

export type CatalogItemUpsertWithoutProductDataRecordsInput = {
  update: Prisma.XOR<Prisma.CatalogItemUpdateWithoutProductDataRecordsInput, Prisma.CatalogItemUncheckedUpdateWithoutProductDataRecordsInput>
  create: Prisma.XOR<Prisma.CatalogItemCreateWithoutProductDataRecordsInput, Prisma.CatalogItemUncheckedCreateWithoutProductDataRecordsInput>
  where?: Prisma.CatalogItemWhereInput
}

export type CatalogItemUpdateToOneWithWhereWithoutProductDataRecordsInput = {
  where?: Prisma.CatalogItemWhereInput
  data: Prisma.XOR<Prisma.CatalogItemUpdateWithoutProductDataRecordsInput, Prisma.CatalogItemUncheckedUpdateWithoutProductDataRecordsInput>
}

export type CatalogItemUpdateWithoutProductDataRecordsInput = {
  id?: Prisma.IntFieldUpdateOperationsInput | number
  uid?: Prisma.StringFieldUpdateOperationsInput | string
  identifier?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  name?: Prisma.StringFieldUpdateOperationsInput | string
  description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  customerDescription?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  internalNotes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  partNumber?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  vendorName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  vendorSku?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  vendorCwId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
  price?: Prisma.FloatFieldUpdateOperationsInput | number
  cost?: Prisma.FloatFieldUpdateOperationsInput | number
  inactive?: Prisma.BoolFieldUpdateOperationsInput | boolean
  salesTaxable?: Prisma.BoolFieldUpdateOperationsInput | boolean
  onHand?: Prisma.IntFieldUpdateOperationsInput | number
  cwLastUpdated?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  classId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  linkedItems?: Prisma.CatalogItemUpdateManyWithoutLinkedToNestedInput
  linkedTo?: Prisma.CatalogItemUpdateManyWithoutLinkedItemsNestedInput
  subcategory?: Prisma.CatalogSubcategoryUpdateOneRequiredWithoutItemsNestedInput
  manufacturer?: Prisma.CatalogManufacturerUpdateOneWithoutItemsNestedInput
  inventory?: Prisma.ProductInventoryUpdateManyWithoutItemNestedInput
  minimumStockByWarehouses?: Prisma.MinimumStockByWarehouseUpdateManyWithoutItemNestedInput
}

export type CatalogItemUncheckedUpdateWithoutProductDataRecordsInput = {
  id?: Prisma.IntFieldUpdateOperationsInput | number
  uid?: Prisma.StringFieldUpdateOperationsInput | string
  identifier?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  name?: Prisma.StringFieldUpdateOperationsInput | string
  description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  customerDescription?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  internalNotes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  subcategoryId?: Prisma.IntFieldUpdateOperationsInput | number
  manufacturerId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
  partNumber?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  vendorName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  vendorSku?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  vendorCwId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
  price?: Prisma.FloatFieldUpdateOperationsInput | number
  cost?: Prisma.FloatFieldUpdateOperationsInput | number
  inactive?: Prisma.BoolFieldUpdateOperationsInput | boolean
  salesTaxable?: Prisma.BoolFieldUpdateOperationsInput | boolean
  onHand?: Prisma.IntFieldUpdateOperationsInput | number
  cwLastUpdated?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  classId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  linkedItems?: Prisma.CatalogItemUncheckedUpdateManyWithoutLinkedToNestedInput
  linkedTo?: Prisma.CatalogItemUncheckedUpdateManyWithoutLinkedItemsNestedInput
  inventory?: Prisma.ProductInventoryUncheckedUpdateManyWithoutItemNestedInput
  minimumStockByWarehouses?: Prisma.MinimumStockByWarehouseUncheckedUpdateManyWithoutItemNestedInput
}

export type CatalogItemCreateManySubcategoryInput = {
  id: number
  uid?: string
  identifier?: string | null
  name: string
  description?: string | null
  customerDescription?: string | null
  internalNotes?: string | null
  manufacturerId?: number | null
  partNumber?: string | null
  vendorName?: string | null
  vendorSku?: string | null
  vendorCwId?: number | null
  price: number
  cost: number
  inactive?: boolean
  salesTaxable?: boolean
  onHand?: number
  cwLastUpdated?: Date | string | null
  classId?: string | null
  createdAt?: Date | string
  updatedAt?: Date | string
}

export type CatalogItemUpdateWithoutSubcategoryInput = {
  id?: Prisma.IntFieldUpdateOperationsInput | number
  uid?: Prisma.StringFieldUpdateOperationsInput | string
  identifier?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  name?: Prisma.StringFieldUpdateOperationsInput | string
  description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  customerDescription?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  internalNotes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  partNumber?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  vendorName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  vendorSku?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  vendorCwId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
  price?: Prisma.FloatFieldUpdateOperationsInput | number
  cost?: Prisma.FloatFieldUpdateOperationsInput | number
  inactive?: Prisma.BoolFieldUpdateOperationsInput | boolean
  salesTaxable?: Prisma.BoolFieldUpdateOperationsInput | boolean
  onHand?: Prisma.IntFieldUpdateOperationsInput | number
  cwLastUpdated?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  classId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  linkedItems?: Prisma.CatalogItemUpdateManyWithoutLinkedToNestedInput
  linkedTo?: Prisma.CatalogItemUpdateManyWithoutLinkedItemsNestedInput
  manufacturer?: Prisma.CatalogManufacturerUpdateOneWithoutItemsNestedInput
  inventory?: Prisma.ProductInventoryUpdateManyWithoutItemNestedInput
  minimumStockByWarehouses?: Prisma.MinimumStockByWarehouseUpdateManyWithoutItemNestedInput
  productDataRecords?: Prisma.ProductDataUpdateManyWithoutCatalogItemNestedInput
}

export type CatalogItemUncheckedUpdateWithoutSubcategoryInput = {
  id?: Prisma.IntFieldUpdateOperationsInput | number
  uid?: Prisma.StringFieldUpdateOperationsInput | string
  identifier?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  name?: Prisma.StringFieldUpdateOperationsInput | string
  description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  customerDescription?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  internalNotes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  manufacturerId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
  partNumber?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  vendorName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  vendorSku?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  vendorCwId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
  price?: Prisma.FloatFieldUpdateOperationsInput | number
  cost?: Prisma.FloatFieldUpdateOperationsInput | number
  inactive?: Prisma.BoolFieldUpdateOperationsInput | boolean
  salesTaxable?: Prisma.BoolFieldUpdateOperationsInput | boolean
  onHand?: Prisma.IntFieldUpdateOperationsInput | number
  cwLastUpdated?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  classId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  linkedItems?: Prisma.CatalogItemUncheckedUpdateManyWithoutLinkedToNestedInput
  linkedTo?: Prisma.CatalogItemUncheckedUpdateManyWithoutLinkedItemsNestedInput
  inventory?: Prisma.ProductInventoryUncheckedUpdateManyWithoutItemNestedInput
  minimumStockByWarehouses?: Prisma.MinimumStockByWarehouseUncheckedUpdateManyWithoutItemNestedInput
  productDataRecords?: Prisma.ProductDataUncheckedUpdateManyWithoutCatalogItemNestedInput
}

export type CatalogItemUncheckedUpdateManyWithoutSubcategoryInput = {
  id?: Prisma.IntFieldUpdateOperationsInput | number
  uid?: Prisma.StringFieldUpdateOperationsInput | string
  identifier?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  name?: Prisma.StringFieldUpdateOperationsInput | string
  description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  customerDescription?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  internalNotes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  manufacturerId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
  partNumber?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  vendorName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  vendorSku?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  vendorCwId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
  price?: Prisma.FloatFieldUpdateOperationsInput | number
  cost?: Prisma.FloatFieldUpdateOperationsInput | number
  inactive?: Prisma.BoolFieldUpdateOperationsInput | boolean
  salesTaxable?: Prisma.BoolFieldUpdateOperationsInput | boolean
  onHand?: Prisma.IntFieldUpdateOperationsInput | number
  cwLastUpdated?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  classId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
}

export type CatalogItemCreateManyManufacturerInput = {
  id: number
  uid?: string
  identifier?: string | null
  name: string
  description?: string | null
  customerDescription?: string | null
  internalNotes?: string | null
  subcategoryId: number
  partNumber?: string | null
  vendorName?: string | null
  vendorSku?: string | null
  vendorCwId?: number | null
  price: number
  cost: number
  inactive?: boolean
  salesTaxable?: boolean
  onHand?: number
  cwLastUpdated?: Date | string | null
  classId?: string | null
  createdAt?: Date | string
  updatedAt?: Date | string
}

export type CatalogItemUpdateWithoutManufacturerInput = {
  id?: Prisma.IntFieldUpdateOperationsInput | number
  uid?: Prisma.StringFieldUpdateOperationsInput | string
  identifier?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  name?: Prisma.StringFieldUpdateOperationsInput | string
  description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  customerDescription?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  internalNotes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  partNumber?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  vendorName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  vendorSku?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  vendorCwId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
  price?: Prisma.FloatFieldUpdateOperationsInput | number
  cost?: Prisma.FloatFieldUpdateOperationsInput | number
  inactive?: Prisma.BoolFieldUpdateOperationsInput | boolean
  salesTaxable?: Prisma.BoolFieldUpdateOperationsInput | boolean
  onHand?: Prisma.IntFieldUpdateOperationsInput | number
  cwLastUpdated?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  classId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  linkedItems?: Prisma.CatalogItemUpdateManyWithoutLinkedToNestedInput
  linkedTo?: Prisma.CatalogItemUpdateManyWithoutLinkedItemsNestedInput
  subcategory?: Prisma.CatalogSubcategoryUpdateOneRequiredWithoutItemsNestedInput
  inventory?: Prisma.ProductInventoryUpdateManyWithoutItemNestedInput
  minimumStockByWarehouses?: Prisma.MinimumStockByWarehouseUpdateManyWithoutItemNestedInput
  productDataRecords?: Prisma.ProductDataUpdateManyWithoutCatalogItemNestedInput
}

export type CatalogItemUncheckedUpdateWithoutManufacturerInput = {
  id?: Prisma.IntFieldUpdateOperationsInput | number
  uid?: Prisma.StringFieldUpdateOperationsInput | string
  identifier?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  name?: Prisma.StringFieldUpdateOperationsInput | string
  description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  customerDescription?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  internalNotes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  subcategoryId?: Prisma.IntFieldUpdateOperationsInput | number
  partNumber?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  vendorName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  vendorSku?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  vendorCwId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
  price?: Prisma.FloatFieldUpdateOperationsInput | number
  cost?: Prisma.FloatFieldUpdateOperationsInput | number
  inactive?: Prisma.BoolFieldUpdateOperationsInput | boolean
  salesTaxable?: Prisma.BoolFieldUpdateOperationsInput | boolean
  onHand?: Prisma.IntFieldUpdateOperationsInput | number
  cwLastUpdated?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  classId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  linkedItems?: Prisma.CatalogItemUncheckedUpdateManyWithoutLinkedToNestedInput
  linkedTo?: Prisma.CatalogItemUncheckedUpdateManyWithoutLinkedItemsNestedInput
  inventory?: Prisma.ProductInventoryUncheckedUpdateManyWithoutItemNestedInput
  minimumStockByWarehouses?: Prisma.MinimumStockByWarehouseUncheckedUpdateManyWithoutItemNestedInput
  productDataRecords?: Prisma.ProductDataUncheckedUpdateManyWithoutCatalogItemNestedInput
}

export type CatalogItemUncheckedUpdateManyWithoutManufacturerInput = {
  id?: Prisma.IntFieldUpdateOperationsInput | number
  uid?: Prisma.StringFieldUpdateOperationsInput | string
  identifier?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  name?: Prisma.StringFieldUpdateOperationsInput | string
  description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  customerDescription?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  internalNotes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  subcategoryId?: Prisma.IntFieldUpdateOperationsInput | number
  partNumber?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  vendorName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  vendorSku?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  vendorCwId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
  price?: Prisma.FloatFieldUpdateOperationsInput | number
  cost?: Prisma.FloatFieldUpdateOperationsInput | number
  inactive?: Prisma.BoolFieldUpdateOperationsInput | boolean
  salesTaxable?: Prisma.BoolFieldUpdateOperationsInput | boolean
  onHand?: Prisma.IntFieldUpdateOperationsInput | number
  cwLastUpdated?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  classId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
}

export type CatalogItemUpdateWithoutLinkedToInput = {
  id?: Prisma.IntFieldUpdateOperationsInput | number
  uid?: Prisma.StringFieldUpdateOperationsInput | string
  identifier?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  name?: Prisma.StringFieldUpdateOperationsInput | string
  description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  customerDescription?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  internalNotes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  partNumber?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  vendorName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  vendorSku?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  vendorCwId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
  price?: Prisma.FloatFieldUpdateOperationsInput | number
  cost?: Prisma.FloatFieldUpdateOperationsInput | number
  inactive?: Prisma.BoolFieldUpdateOperationsInput | boolean
  salesTaxable?: Prisma.BoolFieldUpdateOperationsInput | boolean
  onHand?: Prisma.IntFieldUpdateOperationsInput | number
  cwLastUpdated?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  classId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  linkedItems?: Prisma.CatalogItemUpdateManyWithoutLinkedToNestedInput
  subcategory?: Prisma.CatalogSubcategoryUpdateOneRequiredWithoutItemsNestedInput
  manufacturer?: Prisma.CatalogManufacturerUpdateOneWithoutItemsNestedInput
  inventory?: Prisma.ProductInventoryUpdateManyWithoutItemNestedInput
  minimumStockByWarehouses?: Prisma.MinimumStockByWarehouseUpdateManyWithoutItemNestedInput
  productDataRecords?: Prisma.ProductDataUpdateManyWithoutCatalogItemNestedInput
}

export type CatalogItemUncheckedUpdateWithoutLinkedToInput = {
  id?: Prisma.IntFieldUpdateOperationsInput | number
  uid?: Prisma.StringFieldUpdateOperationsInput | string
  identifier?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  name?: Prisma.StringFieldUpdateOperationsInput | string
  description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  customerDescription?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  internalNotes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  subcategoryId?: Prisma.IntFieldUpdateOperationsInput | number
  manufacturerId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
  partNumber?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  vendorName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  vendorSku?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  vendorCwId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
  price?: Prisma.FloatFieldUpdateOperationsInput | number
  cost?: Prisma.FloatFieldUpdateOperationsInput | number
  inactive?: Prisma.BoolFieldUpdateOperationsInput | boolean
  salesTaxable?: Prisma.BoolFieldUpdateOperationsInput | boolean
  onHand?: Prisma.IntFieldUpdateOperationsInput | number
  cwLastUpdated?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  classId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  linkedItems?: Prisma.CatalogItemUncheckedUpdateManyWithoutLinkedToNestedInput
  inventory?: Prisma.ProductInventoryUncheckedUpdateManyWithoutItemNestedInput
  minimumStockByWarehouses?: Prisma.MinimumStockByWarehouseUncheckedUpdateManyWithoutItemNestedInput
  productDataRecords?: Prisma.ProductDataUncheckedUpdateManyWithoutCatalogItemNestedInput
}

export type CatalogItemUncheckedUpdateManyWithoutLinkedToInput = {
  id?: Prisma.IntFieldUpdateOperationsInput | number
  uid?: Prisma.StringFieldUpdateOperationsInput | string
  identifier?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  name?: Prisma.StringFieldUpdateOperationsInput | string
  description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  customerDescription?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  internalNotes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  subcategoryId?: Prisma.IntFieldUpdateOperationsInput | number
  manufacturerId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
  partNumber?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  vendorName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  vendorSku?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  vendorCwId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
  price?: Prisma.FloatFieldUpdateOperationsInput | number
  cost?: Prisma.FloatFieldUpdateOperationsInput | number
  inactive?: Prisma.BoolFieldUpdateOperationsInput | boolean
  salesTaxable?: Prisma.BoolFieldUpdateOperationsInput | boolean
  onHand?: Prisma.IntFieldUpdateOperationsInput | number
  cwLastUpdated?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  classId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
}

export type CatalogItemUpdateWithoutLinkedItemsInput = {
  id?: Prisma.IntFieldUpdateOperationsInput | number
  uid?: Prisma.StringFieldUpdateOperationsInput | string
  identifier?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  name?: Prisma.StringFieldUpdateOperationsInput | string
  description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  customerDescription?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  internalNotes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  partNumber?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  vendorName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  vendorSku?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  vendorCwId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
  price?: Prisma.FloatFieldUpdateOperationsInput | number
  cost?: Prisma.FloatFieldUpdateOperationsInput | number
  inactive?: Prisma.BoolFieldUpdateOperationsInput | boolean
  salesTaxable?: Prisma.BoolFieldUpdateOperationsInput | boolean
  onHand?: Prisma.IntFieldUpdateOperationsInput | number
  cwLastUpdated?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  classId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  linkedTo?: Prisma.CatalogItemUpdateManyWithoutLinkedItemsNestedInput
  subcategory?: Prisma.CatalogSubcategoryUpdateOneRequiredWithoutItemsNestedInput
  manufacturer?: Prisma.CatalogManufacturerUpdateOneWithoutItemsNestedInput
  inventory?: Prisma.ProductInventoryUpdateManyWithoutItemNestedInput
  minimumStockByWarehouses?: Prisma.MinimumStockByWarehouseUpdateManyWithoutItemNestedInput
  productDataRecords?: Prisma.ProductDataUpdateManyWithoutCatalogItemNestedInput
}

export type CatalogItemUncheckedUpdateWithoutLinkedItemsInput = {
  id?: Prisma.IntFieldUpdateOperationsInput | number
  uid?: Prisma.StringFieldUpdateOperationsInput | string
  identifier?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  name?: Prisma.StringFieldUpdateOperationsInput | string
  description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  customerDescription?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  internalNotes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  subcategoryId?: Prisma.IntFieldUpdateOperationsInput | number
  manufacturerId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
  partNumber?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  vendorName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  vendorSku?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  vendorCwId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
  price?: Prisma.FloatFieldUpdateOperationsInput | number
  cost?: Prisma.FloatFieldUpdateOperationsInput | number
  inactive?: Prisma.BoolFieldUpdateOperationsInput | boolean
  salesTaxable?: Prisma.BoolFieldUpdateOperationsInput | boolean
  onHand?: Prisma.IntFieldUpdateOperationsInput | number
  cwLastUpdated?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  classId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  linkedTo?: Prisma.CatalogItemUncheckedUpdateManyWithoutLinkedItemsNestedInput
  inventory?: Prisma.ProductInventoryUncheckedUpdateManyWithoutItemNestedInput
  minimumStockByWarehouses?: Prisma.MinimumStockByWarehouseUncheckedUpdateManyWithoutItemNestedInput
  productDataRecords?: Prisma.ProductDataUncheckedUpdateManyWithoutCatalogItemNestedInput
}

export type CatalogItemUncheckedUpdateManyWithoutLinkedItemsInput = {
  id?: Prisma.IntFieldUpdateOperationsInput | number
  uid?: Prisma.StringFieldUpdateOperationsInput | string
  identifier?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  name?: Prisma.StringFieldUpdateOperationsInput | string
  description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  customerDescription?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  internalNotes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  subcategoryId?: Prisma.IntFieldUpdateOperationsInput | number
  manufacturerId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
  partNumber?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  vendorName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  vendorSku?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  vendorCwId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
  price?: Prisma.FloatFieldUpdateOperationsInput | number
  cost?: Prisma.FloatFieldUpdateOperationsInput | number
  inactive?: Prisma.BoolFieldUpdateOperationsInput | boolean
  salesTaxable?: Prisma.BoolFieldUpdateOperationsInput | boolean
  onHand?: Prisma.IntFieldUpdateOperationsInput | number
  cwLastUpdated?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  classId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
}


/**
 * Count Type CatalogItemCountOutputType
 */

export type CatalogItemCountOutputType = {
  linkedItems: number
  linkedTo: number
  inventory: number
  minimumStockByWarehouses: number
  productDataRecords: number
}

export type CatalogItemCountOutputTypeSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  linkedItems?: boolean | CatalogItemCountOutputTypeCountLinkedItemsArgs
  linkedTo?: boolean | CatalogItemCountOutputTypeCountLinkedToArgs
  inventory?: boolean | CatalogItemCountOutputTypeCountInventoryArgs
  minimumStockByWarehouses?: boolean | CatalogItemCountOutputTypeCountMinimumStockByWarehousesArgs
  productDataRecords?: boolean | CatalogItemCountOutputTypeCountProductDataRecordsArgs
}

/**
 * CatalogItemCountOutputType without action
 */
export type CatalogItemCountOutputTypeDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the CatalogItemCountOutputType
   */
  select?: Prisma.CatalogItemCountOutputTypeSelect<ExtArgs> | null
}

/**
 * CatalogItemCountOutputType without action
 */
export type CatalogItemCountOutputTypeCountLinkedItemsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  where?: Prisma.CatalogItemWhereInput
}

/**
 * CatalogItemCountOutputType without action
 */
export type CatalogItemCountOutputTypeCountLinkedToArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  where?: Prisma.CatalogItemWhereInput
}

/**
 * CatalogItemCountOutputType without action
 */
export type CatalogItemCountOutputTypeCountInventoryArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  where?: Prisma.ProductInventoryWhereInput
}

/**
 * CatalogItemCountOutputType without action
 */
export type CatalogItemCountOutputTypeCountMinimumStockByWarehousesArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  where?: Prisma.MinimumStockByWarehouseWhereInput
}

/**
 * CatalogItemCountOutputType without action
 */
export type CatalogItemCountOutputTypeCountProductDataRecordsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  where?: Prisma.ProductDataWhereInput
}


export type CatalogItemSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
  id?: boolean
  uid?: boolean
  identifier?: boolean
  name?: boolean
  description?: boolean
  customerDescription?: boolean
  internalNotes?: boolean
  subcategoryId?: boolean
  manufacturerId?: boolean
  partNumber?: boolean
  vendorName?: boolean
  vendorSku?: boolean
  vendorCwId?: boolean
  price?: boolean
  cost?: boolean
  inactive?: boolean
  salesTaxable?: boolean
  onHand?: boolean
  cwLastUpdated?: boolean
  classId?: boolean
  createdAt?: boolean
  updatedAt?: boolean
  linkedItems?: boolean | Prisma.CatalogItem$linkedItemsArgs<ExtArgs>
  linkedTo?: boolean | Prisma.CatalogItem$linkedToArgs<ExtArgs>
  subcategory?: boolean | Prisma.CatalogSubcategoryDefaultArgs<ExtArgs>
  manufacturer?: boolean | Prisma.CatalogItem$manufacturerArgs<ExtArgs>
  inventory?: boolean | Prisma.CatalogItem$inventoryArgs<ExtArgs>
  minimumStockByWarehouses?: boolean | Prisma.CatalogItem$minimumStockByWarehousesArgs<ExtArgs>
  productDataRecords?: boolean | Prisma.CatalogItem$productDataRecordsArgs<ExtArgs>
  _count?: boolean | Prisma.CatalogItemCountOutputTypeDefaultArgs<ExtArgs>
}, ExtArgs["result"]["catalogItem"]>

export type CatalogItemSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
  id?: boolean
  uid?: boolean
  identifier?: boolean
  name?: boolean
  description?: boolean
  customerDescription?: boolean
  internalNotes?: boolean
  subcategoryId?: boolean
  manufacturerId?: boolean
  partNumber?: boolean
  vendorName?: boolean
  vendorSku?: boolean
  vendorCwId?: boolean
  price?: boolean
  cost?: boolean
  inactive?: boolean
  salesTaxable?: boolean
  onHand?: boolean
  cwLastUpdated?: boolean
  classId?: boolean
  createdAt?: boolean
  updatedAt?: boolean
  subcategory?: boolean | Prisma.CatalogSubcategoryDefaultArgs<ExtArgs>
  manufacturer?: boolean | Prisma.CatalogItem$manufacturerArgs<ExtArgs>
}, ExtArgs["result"]["catalogItem"]>

export type CatalogItemSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
  id?: boolean
  uid?: boolean
  identifier?: boolean
  name?: boolean
  description?: boolean
  customerDescription?: boolean
  internalNotes?: boolean
  subcategoryId?: boolean
  manufacturerId?: boolean
  partNumber?: boolean
  vendorName?: boolean
  vendorSku?: boolean
  vendorCwId?: boolean
  price?: boolean
  cost?: boolean
  inactive?: boolean
  salesTaxable?: boolean
  onHand?: boolean
  cwLastUpdated?: boolean
  classId?: boolean
  createdAt?: boolean
  updatedAt?: boolean
  subcategory?: boolean | Prisma.CatalogSubcategoryDefaultArgs<ExtArgs>
  manufacturer?: boolean | Prisma.CatalogItem$manufacturerArgs<ExtArgs>
}, ExtArgs["result"]["catalogItem"]>

export type CatalogItemSelectScalar = {
  id?: boolean
  uid?: boolean
  identifier?: boolean
  name?: boolean
  description?: boolean
  customerDescription?: boolean
  internalNotes?: boolean
  subcategoryId?: boolean
  manufacturerId?: boolean
  partNumber?: boolean
  vendorName?: boolean
  vendorSku?: boolean
  vendorCwId?: boolean
  price?: boolean
  cost?: boolean
  inactive?: boolean
  salesTaxable?: boolean
  onHand?: boolean
  cwLastUpdated?: boolean
  classId?: boolean
  createdAt?: boolean
  updatedAt?: boolean
}

export type CatalogItemOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "uid" | "identifier" | "name" | "description" | "customerDescription" | "internalNotes" | "subcategoryId" | "manufacturerId" | "partNumber" | "vendorName" | "vendorSku" | "vendorCwId" | "price" | "cost" | "inactive" | "salesTaxable" | "onHand" | "cwLastUpdated" | "classId" | "createdAt" | "updatedAt", ExtArgs["result"]["catalogItem"]>
export type CatalogItemInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  linkedItems?: boolean | Prisma.CatalogItem$linkedItemsArgs<ExtArgs>
  linkedTo?: boolean | Prisma.CatalogItem$linkedToArgs<ExtArgs>
  subcategory?: boolean | Prisma.CatalogSubcategoryDefaultArgs<ExtArgs>
  manufacturer?: boolean | Prisma.CatalogItem$manufacturerArgs<ExtArgs>
  inventory?: boolean | Prisma.CatalogItem$inventoryArgs<ExtArgs>
  minimumStockByWarehouses?: boolean | Prisma.CatalogItem$minimumStockByWarehousesArgs<ExtArgs>
  productDataRecords?: boolean | Prisma.CatalogItem$productDataRecordsArgs<ExtArgs>
  _count?: boolean | Prisma.CatalogItemCountOutputTypeDefaultArgs<ExtArgs>
}
export type CatalogItemIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  subcategory?: boolean | Prisma.CatalogSubcategoryDefaultArgs<ExtArgs>
  manufacturer?: boolean | Prisma.CatalogItem$manufacturerArgs<ExtArgs>
}
export type CatalogItemIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  subcategory?: boolean | Prisma.CatalogSubcategoryDefaultArgs<ExtArgs>
  manufacturer?: boolean | Prisma.CatalogItem$manufacturerArgs<ExtArgs>
}

export type $CatalogItemPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  name: "CatalogItem"
  objects: {
    linkedItems: Prisma.$CatalogItemPayload<ExtArgs>[]
    linkedTo: Prisma.$CatalogItemPayload<ExtArgs>[]
    subcategory: Prisma.$CatalogSubcategoryPayload<ExtArgs>
    manufacturer: Prisma.$CatalogManufacturerPayload<ExtArgs> | null
    inventory: Prisma.$ProductInventoryPayload<ExtArgs>[]
    minimumStockByWarehouses: Prisma.$MinimumStockByWarehousePayload<ExtArgs>[]
    productDataRecords: Prisma.$ProductDataPayload<ExtArgs>[]
  }
  scalars: runtime.Types.Extensions.GetPayloadResult<{
    id: number
    uid: string
    identifier: string | null
    name: string
    description: string | null
    customerDescription: string | null
    internalNotes: string | null
    subcategoryId: number
    manufacturerId: number | null
    partNumber: string | null
    vendorName: string | null
    vendorSku: string | null
    vendorCwId: number | null
    price: number
    cost: number
    inactive: boolean
    salesTaxable: boolean
    onHand: number
    cwLastUpdated: Date | null
    classId: string | null
    createdAt: Date
    updatedAt: Date
  }, ExtArgs["result"]["catalogItem"]>
  composites: {}
}

export type CatalogItemGetPayload<S extends boolean | null | undefined | CatalogItemDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$CatalogItemPayload, S>

export type CatalogItemCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> =
  Omit<CatalogItemFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
    select?: CatalogItemCountAggregateInputType | true
  }

export interface CatalogItemDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
  [K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['CatalogItem'], meta: { name: 'CatalogItem' } }
  /**
   * Find zero or one CatalogItem that matches the filter.
   * @param {CatalogItemFindUniqueArgs} args - Arguments to find a CatalogItem
   * @example
   * // Get one CatalogItem
   * const catalogItem = await prisma.catalogItem.findUnique({
   *   where: {
   *     // ... provide filter here
   *   }
   * })
   */
  findUnique<T extends CatalogItemFindUniqueArgs>(args: Prisma.SelectSubset<T, CatalogItemFindUniqueArgs<ExtArgs>>): Prisma.Prisma__CatalogItemClient<runtime.Types.Result.GetResult<Prisma.$CatalogItemPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>

  /**
   * Find one CatalogItem that matches the filter or throw an error with `error.code='P2025'`
   * if no matches were found.
   * @param {CatalogItemFindUniqueOrThrowArgs} args - Arguments to find a CatalogItem
   * @example
   * // Get one CatalogItem
   * const catalogItem = await prisma.catalogItem.findUniqueOrThrow({
   *   where: {
   *     // ... provide filter here
   *   }
   * })
   */
  findUniqueOrThrow<T extends CatalogItemFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, CatalogItemFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__CatalogItemClient<runtime.Types.Result.GetResult<Prisma.$CatalogItemPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>

  /**
   * Find the first CatalogItem 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 {CatalogItemFindFirstArgs} args - Arguments to find a CatalogItem
   * @example
   * // Get one CatalogItem
   * const catalogItem = await prisma.catalogItem.findFirst({
   *   where: {
   *     // ... provide filter here
   *   }
   * })
   */
  findFirst<T extends CatalogItemFindFirstArgs>(args?: Prisma.SelectSubset<T, CatalogItemFindFirstArgs<ExtArgs>>): Prisma.Prisma__CatalogItemClient<runtime.Types.Result.GetResult<Prisma.$CatalogItemPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>

  /**
   * Find the first CatalogItem 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 {CatalogItemFindFirstOrThrowArgs} args - Arguments to find a CatalogItem
   * @example
   * // Get one CatalogItem
   * const catalogItem = await prisma.catalogItem.findFirstOrThrow({
   *   where: {
   *     // ... provide filter here
   *   }
   * })
   */
  findFirstOrThrow<T extends CatalogItemFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, CatalogItemFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__CatalogItemClient<runtime.Types.Result.GetResult<Prisma.$CatalogItemPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>

  /**
   * Find zero or more CatalogItems 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 {CatalogItemFindManyArgs} args - Arguments to filter and select certain fields only.
   * @example
   * // Get all CatalogItems
   * const catalogItems = await prisma.catalogItem.findMany()
   * 
   * // Get first 10 CatalogItems
   * const catalogItems = await prisma.catalogItem.findMany({ take: 10 })
   * 
   * // Only select the `id`
   * const catalogItemWithIdOnly = await prisma.catalogItem.findMany({ select: { id: true } })
   * 
   */
  findMany<T extends CatalogItemFindManyArgs>(args?: Prisma.SelectSubset<T, CatalogItemFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$CatalogItemPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>

  /**
   * Create a CatalogItem.
   * @param {CatalogItemCreateArgs} args - Arguments to create a CatalogItem.
   * @example
   * // Create one CatalogItem
   * const CatalogItem = await prisma.catalogItem.create({
   *   data: {
   *     // ... data to create a CatalogItem
   *   }
   * })
   * 
   */
  create<T extends CatalogItemCreateArgs>(args: Prisma.SelectSubset<T, CatalogItemCreateArgs<ExtArgs>>): Prisma.Prisma__CatalogItemClient<runtime.Types.Result.GetResult<Prisma.$CatalogItemPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>

  /**
   * Create many CatalogItems.
   * @param {CatalogItemCreateManyArgs} args - Arguments to create many CatalogItems.
   * @example
   * // Create many CatalogItems
   * const catalogItem = await prisma.catalogItem.createMany({
   *   data: [
   *     // ... provide data here
   *   ]
   * })
   *     
   */
  createMany<T extends CatalogItemCreateManyArgs>(args?: Prisma.SelectSubset<T, CatalogItemCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>

  /**
   * Create many CatalogItems and returns the data saved in the database.
   * @param {CatalogItemCreateManyAndReturnArgs} args - Arguments to create many CatalogItems.
   * @example
   * // Create many CatalogItems
   * const catalogItem = await prisma.catalogItem.createManyAndReturn({
   *   data: [
   *     // ... provide data here
   *   ]
   * })
   * 
   * // Create many CatalogItems and only return the `id`
   * const catalogItemWithIdOnly = await prisma.catalogItem.createManyAndReturn({
   *   select: { id: true },
   *   data: [
   *     // ... provide data here
   *   ]
   * })
   * Note, that providing `undefined` is treated as the value not being there.
   * Read more here: https://pris.ly/d/null-undefined
   * 
   */
  createManyAndReturn<T extends CatalogItemCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, CatalogItemCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$CatalogItemPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>

  /**
   * Delete a CatalogItem.
   * @param {CatalogItemDeleteArgs} args - Arguments to delete one CatalogItem.
   * @example
   * // Delete one CatalogItem
   * const CatalogItem = await prisma.catalogItem.delete({
   *   where: {
   *     // ... filter to delete one CatalogItem
   *   }
   * })
   * 
   */
  delete<T extends CatalogItemDeleteArgs>(args: Prisma.SelectSubset<T, CatalogItemDeleteArgs<ExtArgs>>): Prisma.Prisma__CatalogItemClient<runtime.Types.Result.GetResult<Prisma.$CatalogItemPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>

  /**
   * Update one CatalogItem.
   * @param {CatalogItemUpdateArgs} args - Arguments to update one CatalogItem.
   * @example
   * // Update one CatalogItem
   * const catalogItem = await prisma.catalogItem.update({
   *   where: {
   *     // ... provide filter here
   *   },
   *   data: {
   *     // ... provide data here
   *   }
   * })
   * 
   */
  update<T extends CatalogItemUpdateArgs>(args: Prisma.SelectSubset<T, CatalogItemUpdateArgs<ExtArgs>>): Prisma.Prisma__CatalogItemClient<runtime.Types.Result.GetResult<Prisma.$CatalogItemPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>

  /**
   * Delete zero or more CatalogItems.
   * @param {CatalogItemDeleteManyArgs} args - Arguments to filter CatalogItems to delete.
   * @example
   * // Delete a few CatalogItems
   * const { count } = await prisma.catalogItem.deleteMany({
   *   where: {
   *     // ... provide filter here
   *   }
   * })
   * 
   */
  deleteMany<T extends CatalogItemDeleteManyArgs>(args?: Prisma.SelectSubset<T, CatalogItemDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>

  /**
   * Update zero or more CatalogItems.
   * Note, that providing `undefined` is treated as the value not being there.
   * Read more here: https://pris.ly/d/null-undefined
   * @param {CatalogItemUpdateManyArgs} args - Arguments to update one or more rows.
   * @example
   * // Update many CatalogItems
   * const catalogItem = await prisma.catalogItem.updateMany({
   *   where: {
   *     // ... provide filter here
   *   },
   *   data: {
   *     // ... provide data here
   *   }
   * })
   * 
   */
  updateMany<T extends CatalogItemUpdateManyArgs>(args: Prisma.SelectSubset<T, CatalogItemUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>

  /**
   * Update zero or more CatalogItems and returns the data updated in the database.
   * @param {CatalogItemUpdateManyAndReturnArgs} args - Arguments to update many CatalogItems.
   * @example
   * // Update many CatalogItems
   * const catalogItem = await prisma.catalogItem.updateManyAndReturn({
   *   where: {
   *     // ... provide filter here
   *   },
   *   data: [
   *     // ... provide data here
   *   ]
   * })
   * 
   * // Update zero or more CatalogItems and only return the `id`
   * const catalogItemWithIdOnly = await prisma.catalogItem.updateManyAndReturn({
   *   select: { id: true },
   *   where: {
   *     // ... provide filter here
   *   },
   *   data: [
   *     // ... provide data here
   *   ]
   * })
   * Note, that providing `undefined` is treated as the value not being there.
   * Read more here: https://pris.ly/d/null-undefined
   * 
   */
  updateManyAndReturn<T extends CatalogItemUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, CatalogItemUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$CatalogItemPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>

  /**
   * Create or update one CatalogItem.
   * @param {CatalogItemUpsertArgs} args - Arguments to update or create a CatalogItem.
   * @example
   * // Update or create a CatalogItem
   * const catalogItem = await prisma.catalogItem.upsert({
   *   create: {
   *     // ... data to create a CatalogItem
   *   },
   *   update: {
   *     // ... in case it already exists, update
   *   },
   *   where: {
   *     // ... the filter for the CatalogItem we want to update
   *   }
   * })
   */
  upsert<T extends CatalogItemUpsertArgs>(args: Prisma.SelectSubset<T, CatalogItemUpsertArgs<ExtArgs>>): Prisma.Prisma__CatalogItemClient<runtime.Types.Result.GetResult<Prisma.$CatalogItemPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>


  /**
   * Count the number of CatalogItems.
   * Note, that providing `undefined` is treated as the value not being there.
   * Read more here: https://pris.ly/d/null-undefined
   * @param {CatalogItemCountArgs} args - Arguments to filter CatalogItems to count.
   * @example
   * // Count the number of CatalogItems
   * const count = await prisma.catalogItem.count({
   *   where: {
   *     // ... the filter for the CatalogItems we want to count
   *   }
   * })
  **/
  count<T extends CatalogItemCountArgs>(
    args?: Prisma.Subset<T, CatalogItemCountArgs>,
  ): Prisma.PrismaPromise<
    T extends runtime.Types.Utils.Record<'select', any>
      ? T['select'] extends true
        ? number
        : Prisma.GetScalarType<T['select'], CatalogItemCountAggregateOutputType>
      : number
  >

  /**
   * Allows you to perform aggregations operations on a CatalogItem.
   * Note, that providing `undefined` is treated as the value not being there.
   * Read more here: https://pris.ly/d/null-undefined
   * @param {CatalogItemAggregateArgs} 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 CatalogItemAggregateArgs>(args: Prisma.Subset<T, CatalogItemAggregateArgs>): Prisma.PrismaPromise<GetCatalogItemAggregateType<T>>

  /**
   * Group by CatalogItem.
   * Note, that providing `undefined` is treated as the value not being there.
   * Read more here: https://pris.ly/d/null-undefined
   * @param {CatalogItemGroupByArgs} 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 CatalogItemGroupByArgs,
    HasSelectOrTake extends Prisma.Or<
      Prisma.Extends<'skip', Prisma.Keys<T>>,
      Prisma.Extends<'take', Prisma.Keys<T>>
    >,
    OrderByArg extends Prisma.True extends HasSelectOrTake
      ? { orderBy: CatalogItemGroupByArgs['orderBy'] }
      : { orderBy?: CatalogItemGroupByArgs['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, CatalogItemGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetCatalogItemGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
/**
 * Fields of the CatalogItem model
 */
readonly fields: CatalogItemFieldRefs;
}

/**
 * The delegate class that acts as a "Promise-like" for CatalogItem.
 * 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__CatalogItemClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
  readonly [Symbol.toStringTag]: "PrismaPromise"
  linkedItems<T extends Prisma.CatalogItem$linkedItemsArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.CatalogItem$linkedItemsArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$CatalogItemPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
  linkedTo<T extends Prisma.CatalogItem$linkedToArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.CatalogItem$linkedToArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$CatalogItemPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
  subcategory<T extends Prisma.CatalogSubcategoryDefaultArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.CatalogSubcategoryDefaultArgs<ExtArgs>>): Prisma.Prisma__CatalogSubcategoryClient<runtime.Types.Result.GetResult<Prisma.$CatalogSubcategoryPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>
  manufacturer<T extends Prisma.CatalogItem$manufacturerArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.CatalogItem$manufacturerArgs<ExtArgs>>): Prisma.Prisma__CatalogManufacturerClient<runtime.Types.Result.GetResult<Prisma.$CatalogManufacturerPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
  inventory<T extends Prisma.CatalogItem$inventoryArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.CatalogItem$inventoryArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$ProductInventoryPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
  minimumStockByWarehouses<T extends Prisma.CatalogItem$minimumStockByWarehousesArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.CatalogItem$minimumStockByWarehousesArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$MinimumStockByWarehousePayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
  productDataRecords<T extends Prisma.CatalogItem$productDataRecordsArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.CatalogItem$productDataRecordsArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$ProductDataPayload<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 CatalogItem model
 */
export interface CatalogItemFieldRefs {
  readonly id: Prisma.FieldRef<"CatalogItem", 'Int'>
  readonly uid: Prisma.FieldRef<"CatalogItem", 'String'>
  readonly identifier: Prisma.FieldRef<"CatalogItem", 'String'>
  readonly name: Prisma.FieldRef<"CatalogItem", 'String'>
  readonly description: Prisma.FieldRef<"CatalogItem", 'String'>
  readonly customerDescription: Prisma.FieldRef<"CatalogItem", 'String'>
  readonly internalNotes: Prisma.FieldRef<"CatalogItem", 'String'>
  readonly subcategoryId: Prisma.FieldRef<"CatalogItem", 'Int'>
  readonly manufacturerId: Prisma.FieldRef<"CatalogItem", 'Int'>
  readonly partNumber: Prisma.FieldRef<"CatalogItem", 'String'>
  readonly vendorName: Prisma.FieldRef<"CatalogItem", 'String'>
  readonly vendorSku: Prisma.FieldRef<"CatalogItem", 'String'>
  readonly vendorCwId: Prisma.FieldRef<"CatalogItem", 'Int'>
  readonly price: Prisma.FieldRef<"CatalogItem", 'Float'>
  readonly cost: Prisma.FieldRef<"CatalogItem", 'Float'>
  readonly inactive: Prisma.FieldRef<"CatalogItem", 'Boolean'>
  readonly salesTaxable: Prisma.FieldRef<"CatalogItem", 'Boolean'>
  readonly onHand: Prisma.FieldRef<"CatalogItem", 'Int'>
  readonly cwLastUpdated: Prisma.FieldRef<"CatalogItem", 'DateTime'>
  readonly classId: Prisma.FieldRef<"CatalogItem", 'String'>
  readonly createdAt: Prisma.FieldRef<"CatalogItem", 'DateTime'>
  readonly updatedAt: Prisma.FieldRef<"CatalogItem", 'DateTime'>
}
    

// Custom InputTypes
/**
 * CatalogItem findUnique
 */
export type CatalogItemFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the CatalogItem
   */
  select?: Prisma.CatalogItemSelect<ExtArgs> | null
  /**
   * Omit specific fields from the CatalogItem
   */
  omit?: Prisma.CatalogItemOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.CatalogItemInclude<ExtArgs> | null
  /**
   * Filter, which CatalogItem to fetch.
   */
  where: Prisma.CatalogItemWhereUniqueInput
}

/**
 * CatalogItem findUniqueOrThrow
 */
export type CatalogItemFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the CatalogItem
   */
  select?: Prisma.CatalogItemSelect<ExtArgs> | null
  /**
   * Omit specific fields from the CatalogItem
   */
  omit?: Prisma.CatalogItemOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.CatalogItemInclude<ExtArgs> | null
  /**
   * Filter, which CatalogItem to fetch.
   */
  where: Prisma.CatalogItemWhereUniqueInput
}

/**
 * CatalogItem findFirst
 */
export type CatalogItemFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the CatalogItem
   */
  select?: Prisma.CatalogItemSelect<ExtArgs> | null
  /**
   * Omit specific fields from the CatalogItem
   */
  omit?: Prisma.CatalogItemOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.CatalogItemInclude<ExtArgs> | null
  /**
   * Filter, which CatalogItem to fetch.
   */
  where?: Prisma.CatalogItemWhereInput
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
   * 
   * Determine the order of CatalogItems to fetch.
   */
  orderBy?: Prisma.CatalogItemOrderByWithRelationInput | Prisma.CatalogItemOrderByWithRelationInput[]
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
   * 
   * Sets the position for searching for CatalogItems.
   */
  cursor?: Prisma.CatalogItemWhereUniqueInput
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
   * 
   * Take `±n` CatalogItems 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` CatalogItems.
   */
  skip?: number
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
   * 
   * Filter by unique combinations of CatalogItems.
   */
  distinct?: Prisma.CatalogItemScalarFieldEnum | Prisma.CatalogItemScalarFieldEnum[]
}

/**
 * CatalogItem findFirstOrThrow
 */
export type CatalogItemFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the CatalogItem
   */
  select?: Prisma.CatalogItemSelect<ExtArgs> | null
  /**
   * Omit specific fields from the CatalogItem
   */
  omit?: Prisma.CatalogItemOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.CatalogItemInclude<ExtArgs> | null
  /**
   * Filter, which CatalogItem to fetch.
   */
  where?: Prisma.CatalogItemWhereInput
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
   * 
   * Determine the order of CatalogItems to fetch.
   */
  orderBy?: Prisma.CatalogItemOrderByWithRelationInput | Prisma.CatalogItemOrderByWithRelationInput[]
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
   * 
   * Sets the position for searching for CatalogItems.
   */
  cursor?: Prisma.CatalogItemWhereUniqueInput
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
   * 
   * Take `±n` CatalogItems 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` CatalogItems.
   */
  skip?: number
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
   * 
   * Filter by unique combinations of CatalogItems.
   */
  distinct?: Prisma.CatalogItemScalarFieldEnum | Prisma.CatalogItemScalarFieldEnum[]
}

/**
 * CatalogItem findMany
 */
export type CatalogItemFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the CatalogItem
   */
  select?: Prisma.CatalogItemSelect<ExtArgs> | null
  /**
   * Omit specific fields from the CatalogItem
   */
  omit?: Prisma.CatalogItemOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.CatalogItemInclude<ExtArgs> | null
  /**
   * Filter, which CatalogItems to fetch.
   */
  where?: Prisma.CatalogItemWhereInput
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
   * 
   * Determine the order of CatalogItems to fetch.
   */
  orderBy?: Prisma.CatalogItemOrderByWithRelationInput | Prisma.CatalogItemOrderByWithRelationInput[]
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
   * 
   * Sets the position for listing CatalogItems.
   */
  cursor?: Prisma.CatalogItemWhereUniqueInput
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
   * 
   * Take `±n` CatalogItems 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` CatalogItems.
   */
  skip?: number
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
   * 
   * Filter by unique combinations of CatalogItems.
   */
  distinct?: Prisma.CatalogItemScalarFieldEnum | Prisma.CatalogItemScalarFieldEnum[]
}

/**
 * CatalogItem create
 */
export type CatalogItemCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the CatalogItem
   */
  select?: Prisma.CatalogItemSelect<ExtArgs> | null
  /**
   * Omit specific fields from the CatalogItem
   */
  omit?: Prisma.CatalogItemOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.CatalogItemInclude<ExtArgs> | null
  /**
   * The data needed to create a CatalogItem.
   */
  data: Prisma.XOR<Prisma.CatalogItemCreateInput, Prisma.CatalogItemUncheckedCreateInput>
}

/**
 * CatalogItem createMany
 */
export type CatalogItemCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * The data used to create many CatalogItems.
   */
  data: Prisma.CatalogItemCreateManyInput | Prisma.CatalogItemCreateManyInput[]
  skipDuplicates?: boolean
}

/**
 * CatalogItem createManyAndReturn
 */
export type CatalogItemCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the CatalogItem
   */
  select?: Prisma.CatalogItemSelectCreateManyAndReturn<ExtArgs> | null
  /**
   * Omit specific fields from the CatalogItem
   */
  omit?: Prisma.CatalogItemOmit<ExtArgs> | null
  /**
   * The data used to create many CatalogItems.
   */
  data: Prisma.CatalogItemCreateManyInput | Prisma.CatalogItemCreateManyInput[]
  skipDuplicates?: boolean
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.CatalogItemIncludeCreateManyAndReturn<ExtArgs> | null
}

/**
 * CatalogItem update
 */
export type CatalogItemUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the CatalogItem
   */
  select?: Prisma.CatalogItemSelect<ExtArgs> | null
  /**
   * Omit specific fields from the CatalogItem
   */
  omit?: Prisma.CatalogItemOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.CatalogItemInclude<ExtArgs> | null
  /**
   * The data needed to update a CatalogItem.
   */
  data: Prisma.XOR<Prisma.CatalogItemUpdateInput, Prisma.CatalogItemUncheckedUpdateInput>
  /**
   * Choose, which CatalogItem to update.
   */
  where: Prisma.CatalogItemWhereUniqueInput
}

/**
 * CatalogItem updateMany
 */
export type CatalogItemUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * The data used to update CatalogItems.
   */
  data: Prisma.XOR<Prisma.CatalogItemUpdateManyMutationInput, Prisma.CatalogItemUncheckedUpdateManyInput>
  /**
   * Filter which CatalogItems to update
   */
  where?: Prisma.CatalogItemWhereInput
  /**
   * Limit how many CatalogItems to update.
   */
  limit?: number
}

/**
 * CatalogItem updateManyAndReturn
 */
export type CatalogItemUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the CatalogItem
   */
  select?: Prisma.CatalogItemSelectUpdateManyAndReturn<ExtArgs> | null
  /**
   * Omit specific fields from the CatalogItem
   */
  omit?: Prisma.CatalogItemOmit<ExtArgs> | null
  /**
   * The data used to update CatalogItems.
   */
  data: Prisma.XOR<Prisma.CatalogItemUpdateManyMutationInput, Prisma.CatalogItemUncheckedUpdateManyInput>
  /**
   * Filter which CatalogItems to update
   */
  where?: Prisma.CatalogItemWhereInput
  /**
   * Limit how many CatalogItems to update.
   */
  limit?: number
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.CatalogItemIncludeUpdateManyAndReturn<ExtArgs> | null
}

/**
 * CatalogItem upsert
 */
export type CatalogItemUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the CatalogItem
   */
  select?: Prisma.CatalogItemSelect<ExtArgs> | null
  /**
   * Omit specific fields from the CatalogItem
   */
  omit?: Prisma.CatalogItemOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.CatalogItemInclude<ExtArgs> | null
  /**
   * The filter to search for the CatalogItem to update in case it exists.
   */
  where: Prisma.CatalogItemWhereUniqueInput
  /**
   * In case the CatalogItem found by the `where` argument doesn't exist, create a new CatalogItem with this data.
   */
  create: Prisma.XOR<Prisma.CatalogItemCreateInput, Prisma.CatalogItemUncheckedCreateInput>
  /**
   * In case the CatalogItem was found with the provided `where` argument, update it with this data.
   */
  update: Prisma.XOR<Prisma.CatalogItemUpdateInput, Prisma.CatalogItemUncheckedUpdateInput>
}

/**
 * CatalogItem delete
 */
export type CatalogItemDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the CatalogItem
   */
  select?: Prisma.CatalogItemSelect<ExtArgs> | null
  /**
   * Omit specific fields from the CatalogItem
   */
  omit?: Prisma.CatalogItemOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.CatalogItemInclude<ExtArgs> | null
  /**
   * Filter which CatalogItem to delete.
   */
  where: Prisma.CatalogItemWhereUniqueInput
}

/**
 * CatalogItem deleteMany
 */
export type CatalogItemDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Filter which CatalogItems to delete
   */
  where?: Prisma.CatalogItemWhereInput
  /**
   * Limit how many CatalogItems to delete.
   */
  limit?: number
}

/**
 * CatalogItem.linkedItems
 */
export type CatalogItem$linkedItemsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the CatalogItem
   */
  select?: Prisma.CatalogItemSelect<ExtArgs> | null
  /**
   * Omit specific fields from the CatalogItem
   */
  omit?: Prisma.CatalogItemOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.CatalogItemInclude<ExtArgs> | null
  where?: Prisma.CatalogItemWhereInput
  orderBy?: Prisma.CatalogItemOrderByWithRelationInput | Prisma.CatalogItemOrderByWithRelationInput[]
  cursor?: Prisma.CatalogItemWhereUniqueInput
  take?: number
  skip?: number
  distinct?: Prisma.CatalogItemScalarFieldEnum | Prisma.CatalogItemScalarFieldEnum[]
}

/**
 * CatalogItem.linkedTo
 */
export type CatalogItem$linkedToArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the CatalogItem
   */
  select?: Prisma.CatalogItemSelect<ExtArgs> | null
  /**
   * Omit specific fields from the CatalogItem
   */
  omit?: Prisma.CatalogItemOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.CatalogItemInclude<ExtArgs> | null
  where?: Prisma.CatalogItemWhereInput
  orderBy?: Prisma.CatalogItemOrderByWithRelationInput | Prisma.CatalogItemOrderByWithRelationInput[]
  cursor?: Prisma.CatalogItemWhereUniqueInput
  take?: number
  skip?: number
  distinct?: Prisma.CatalogItemScalarFieldEnum | Prisma.CatalogItemScalarFieldEnum[]
}

/**
 * CatalogItem.manufacturer
 */
export type CatalogItem$manufacturerArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the CatalogManufacturer
   */
  select?: Prisma.CatalogManufacturerSelect<ExtArgs> | null
  /**
   * Omit specific fields from the CatalogManufacturer
   */
  omit?: Prisma.CatalogManufacturerOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.CatalogManufacturerInclude<ExtArgs> | null
  where?: Prisma.CatalogManufacturerWhereInput
}

/**
 * CatalogItem.inventory
 */
export type CatalogItem$inventoryArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the ProductInventory
   */
  select?: Prisma.ProductInventorySelect<ExtArgs> | null
  /**
   * Omit specific fields from the ProductInventory
   */
  omit?: Prisma.ProductInventoryOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.ProductInventoryInclude<ExtArgs> | null
  where?: Prisma.ProductInventoryWhereInput
  orderBy?: Prisma.ProductInventoryOrderByWithRelationInput | Prisma.ProductInventoryOrderByWithRelationInput[]
  cursor?: Prisma.ProductInventoryWhereUniqueInput
  take?: number
  skip?: number
  distinct?: Prisma.ProductInventoryScalarFieldEnum | Prisma.ProductInventoryScalarFieldEnum[]
}

/**
 * CatalogItem.minimumStockByWarehouses
 */
export type CatalogItem$minimumStockByWarehousesArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the MinimumStockByWarehouse
   */
  select?: Prisma.MinimumStockByWarehouseSelect<ExtArgs> | null
  /**
   * Omit specific fields from the MinimumStockByWarehouse
   */
  omit?: Prisma.MinimumStockByWarehouseOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.MinimumStockByWarehouseInclude<ExtArgs> | null
  where?: Prisma.MinimumStockByWarehouseWhereInput
  orderBy?: Prisma.MinimumStockByWarehouseOrderByWithRelationInput | Prisma.MinimumStockByWarehouseOrderByWithRelationInput[]
  cursor?: Prisma.MinimumStockByWarehouseWhereUniqueInput
  take?: number
  skip?: number
  distinct?: Prisma.MinimumStockByWarehouseScalarFieldEnum | Prisma.MinimumStockByWarehouseScalarFieldEnum[]
}

/**
 * CatalogItem.productDataRecords
 */
export type CatalogItem$productDataRecordsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the ProductData
   */
  select?: Prisma.ProductDataSelect<ExtArgs> | null
  /**
   * Omit specific fields from the ProductData
   */
  omit?: Prisma.ProductDataOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.ProductDataInclude<ExtArgs> | null
  where?: Prisma.ProductDataWhereInput
  orderBy?: Prisma.ProductDataOrderByWithRelationInput | Prisma.ProductDataOrderByWithRelationInput[]
  cursor?: Prisma.ProductDataWhereUniqueInput
  take?: number
  skip?: number
  distinct?: Prisma.ProductDataScalarFieldEnum | Prisma.ProductDataScalarFieldEnum[]
}

/**
 * CatalogItem without action
 */
export type CatalogItemDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the CatalogItem
   */
  select?: Prisma.CatalogItemSelect<ExtArgs> | null
  /**
   * Omit specific fields from the CatalogItem
   */
  omit?: Prisma.CatalogItemOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.CatalogItemInclude<ExtArgs> | null
}
