2241 lines
90 KiB
TypeScript
2241 lines
90 KiB
TypeScript
|
|
/* !!! This is code generated by Prisma. Do not edit directly. !!! */
|
|
/* eslint-disable */
|
|
// biome-ignore-all lint: generated file
|
|
// @ts-nocheck
|
|
/*
|
|
* This file exports the `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 = {
|
|
cwCatalogId: number | null
|
|
manufactureCwId: number | null
|
|
vendorCwId: number | null
|
|
price: number | null
|
|
cost: number | null
|
|
onHand: number | null
|
|
}
|
|
|
|
export type CatalogItemSumAggregateOutputType = {
|
|
cwCatalogId: number | null
|
|
manufactureCwId: number | null
|
|
vendorCwId: number | null
|
|
price: number | null
|
|
cost: number | null
|
|
onHand: number | null
|
|
}
|
|
|
|
export type CatalogItemMinAggregateOutputType = {
|
|
id: string | null
|
|
cwCatalogId: number | null
|
|
identifier: string | null
|
|
name: string | null
|
|
description: string | null
|
|
customerDescription: string | null
|
|
internalNotes: string | null
|
|
manufacturer: string | null
|
|
manufactureCwId: 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
|
|
createdAt: Date | null
|
|
updatedAt: Date | null
|
|
}
|
|
|
|
export type CatalogItemMaxAggregateOutputType = {
|
|
id: string | null
|
|
cwCatalogId: number | null
|
|
identifier: string | null
|
|
name: string | null
|
|
description: string | null
|
|
customerDescription: string | null
|
|
internalNotes: string | null
|
|
manufacturer: string | null
|
|
manufactureCwId: 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
|
|
createdAt: Date | null
|
|
updatedAt: Date | null
|
|
}
|
|
|
|
export type CatalogItemCountAggregateOutputType = {
|
|
id: number
|
|
cwCatalogId: number
|
|
identifier: number
|
|
name: number
|
|
description: number
|
|
customerDescription: number
|
|
internalNotes: number
|
|
manufacturer: number
|
|
manufactureCwId: number
|
|
partNumber: number
|
|
vendorName: number
|
|
vendorSku: number
|
|
vendorCwId: number
|
|
price: number
|
|
cost: number
|
|
inactive: number
|
|
salesTaxable: number
|
|
onHand: number
|
|
cwLastUpdated: number
|
|
createdAt: number
|
|
updatedAt: number
|
|
_all: number
|
|
}
|
|
|
|
|
|
export type CatalogItemAvgAggregateInputType = {
|
|
cwCatalogId?: true
|
|
manufactureCwId?: true
|
|
vendorCwId?: true
|
|
price?: true
|
|
cost?: true
|
|
onHand?: true
|
|
}
|
|
|
|
export type CatalogItemSumAggregateInputType = {
|
|
cwCatalogId?: true
|
|
manufactureCwId?: true
|
|
vendorCwId?: true
|
|
price?: true
|
|
cost?: true
|
|
onHand?: true
|
|
}
|
|
|
|
export type CatalogItemMinAggregateInputType = {
|
|
id?: true
|
|
cwCatalogId?: true
|
|
identifier?: true
|
|
name?: true
|
|
description?: true
|
|
customerDescription?: true
|
|
internalNotes?: true
|
|
manufacturer?: true
|
|
manufactureCwId?: true
|
|
partNumber?: true
|
|
vendorName?: true
|
|
vendorSku?: true
|
|
vendorCwId?: true
|
|
price?: true
|
|
cost?: true
|
|
inactive?: true
|
|
salesTaxable?: true
|
|
onHand?: true
|
|
cwLastUpdated?: true
|
|
createdAt?: true
|
|
updatedAt?: true
|
|
}
|
|
|
|
export type CatalogItemMaxAggregateInputType = {
|
|
id?: true
|
|
cwCatalogId?: true
|
|
identifier?: true
|
|
name?: true
|
|
description?: true
|
|
customerDescription?: true
|
|
internalNotes?: true
|
|
manufacturer?: true
|
|
manufactureCwId?: true
|
|
partNumber?: true
|
|
vendorName?: true
|
|
vendorSku?: true
|
|
vendorCwId?: true
|
|
price?: true
|
|
cost?: true
|
|
inactive?: true
|
|
salesTaxable?: true
|
|
onHand?: true
|
|
cwLastUpdated?: true
|
|
createdAt?: true
|
|
updatedAt?: true
|
|
}
|
|
|
|
export type CatalogItemCountAggregateInputType = {
|
|
id?: true
|
|
cwCatalogId?: true
|
|
identifier?: true
|
|
name?: true
|
|
description?: true
|
|
customerDescription?: true
|
|
internalNotes?: true
|
|
manufacturer?: true
|
|
manufactureCwId?: true
|
|
partNumber?: true
|
|
vendorName?: true
|
|
vendorSku?: true
|
|
vendorCwId?: true
|
|
price?: true
|
|
cost?: true
|
|
inactive?: true
|
|
salesTaxable?: true
|
|
onHand?: true
|
|
cwLastUpdated?: 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: string
|
|
cwCatalogId: number
|
|
identifier: string | null
|
|
name: string
|
|
description: string | null
|
|
customerDescription: string | null
|
|
internalNotes: string | null
|
|
manufacturer: string | null
|
|
manufactureCwId: 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
|
|
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.StringFilter<"CatalogItem"> | string
|
|
cwCatalogId?: Prisma.IntFilter<"CatalogItem"> | number
|
|
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
|
|
manufacturer?: Prisma.StringNullableFilter<"CatalogItem"> | string | null
|
|
manufactureCwId?: 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
|
|
createdAt?: Prisma.DateTimeFilter<"CatalogItem"> | Date | string
|
|
updatedAt?: Prisma.DateTimeFilter<"CatalogItem"> | Date | string
|
|
linkedItems?: Prisma.CatalogItemListRelationFilter
|
|
linkedTo?: Prisma.CatalogItemListRelationFilter
|
|
}
|
|
|
|
export type CatalogItemOrderByWithRelationInput = {
|
|
id?: Prisma.SortOrder
|
|
cwCatalogId?: 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
|
|
manufacturer?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
manufactureCwId?: 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
|
|
createdAt?: Prisma.SortOrder
|
|
updatedAt?: Prisma.SortOrder
|
|
linkedItems?: Prisma.CatalogItemOrderByRelationAggregateInput
|
|
linkedTo?: Prisma.CatalogItemOrderByRelationAggregateInput
|
|
}
|
|
|
|
export type CatalogItemWhereUniqueInput = Prisma.AtLeast<{
|
|
id?: string
|
|
cwCatalogId?: number
|
|
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
|
|
manufacturer?: Prisma.StringNullableFilter<"CatalogItem"> | string | null
|
|
manufactureCwId?: 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
|
|
createdAt?: Prisma.DateTimeFilter<"CatalogItem"> | Date | string
|
|
updatedAt?: Prisma.DateTimeFilter<"CatalogItem"> | Date | string
|
|
linkedItems?: Prisma.CatalogItemListRelationFilter
|
|
linkedTo?: Prisma.CatalogItemListRelationFilter
|
|
}, "id" | "cwCatalogId" | "identifier">
|
|
|
|
export type CatalogItemOrderByWithAggregationInput = {
|
|
id?: Prisma.SortOrder
|
|
cwCatalogId?: 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
|
|
manufacturer?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
manufactureCwId?: 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
|
|
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.StringWithAggregatesFilter<"CatalogItem"> | string
|
|
cwCatalogId?: Prisma.IntWithAggregatesFilter<"CatalogItem"> | number
|
|
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
|
|
manufacturer?: Prisma.StringNullableWithAggregatesFilter<"CatalogItem"> | string | null
|
|
manufactureCwId?: 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
|
|
createdAt?: Prisma.DateTimeWithAggregatesFilter<"CatalogItem"> | Date | string
|
|
updatedAt?: Prisma.DateTimeWithAggregatesFilter<"CatalogItem"> | Date | string
|
|
}
|
|
|
|
export type CatalogItemCreateInput = {
|
|
id?: string
|
|
cwCatalogId: number
|
|
identifier?: string | null
|
|
name: string
|
|
description?: string | null
|
|
customerDescription?: string | null
|
|
internalNotes?: string | null
|
|
manufacturer?: string | null
|
|
manufactureCwId?: 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
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
linkedItems?: Prisma.CatalogItemCreateNestedManyWithoutLinkedToInput
|
|
linkedTo?: Prisma.CatalogItemCreateNestedManyWithoutLinkedItemsInput
|
|
}
|
|
|
|
export type CatalogItemUncheckedCreateInput = {
|
|
id?: string
|
|
cwCatalogId: number
|
|
identifier?: string | null
|
|
name: string
|
|
description?: string | null
|
|
customerDescription?: string | null
|
|
internalNotes?: string | null
|
|
manufacturer?: string | null
|
|
manufactureCwId?: 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
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
linkedItems?: Prisma.CatalogItemUncheckedCreateNestedManyWithoutLinkedToInput
|
|
linkedTo?: Prisma.CatalogItemUncheckedCreateNestedManyWithoutLinkedItemsInput
|
|
}
|
|
|
|
export type CatalogItemUpdateInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
cwCatalogId?: Prisma.IntFieldUpdateOperationsInput | number
|
|
identifier?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
name?: Prisma.StringFieldUpdateOperationsInput | string
|
|
description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
customerDescription?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
internalNotes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
manufacturer?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
manufactureCwId?: 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
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
linkedItems?: Prisma.CatalogItemUpdateManyWithoutLinkedToNestedInput
|
|
linkedTo?: Prisma.CatalogItemUpdateManyWithoutLinkedItemsNestedInput
|
|
}
|
|
|
|
export type CatalogItemUncheckedUpdateInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
cwCatalogId?: Prisma.IntFieldUpdateOperationsInput | number
|
|
identifier?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
name?: Prisma.StringFieldUpdateOperationsInput | string
|
|
description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
customerDescription?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
internalNotes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
manufacturer?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
manufactureCwId?: 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
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
linkedItems?: Prisma.CatalogItemUncheckedUpdateManyWithoutLinkedToNestedInput
|
|
linkedTo?: Prisma.CatalogItemUncheckedUpdateManyWithoutLinkedItemsNestedInput
|
|
}
|
|
|
|
export type CatalogItemCreateManyInput = {
|
|
id?: string
|
|
cwCatalogId: number
|
|
identifier?: string | null
|
|
name: string
|
|
description?: string | null
|
|
customerDescription?: string | null
|
|
internalNotes?: string | null
|
|
manufacturer?: string | null
|
|
manufactureCwId?: 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
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
}
|
|
|
|
export type CatalogItemUpdateManyMutationInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
cwCatalogId?: Prisma.IntFieldUpdateOperationsInput | number
|
|
identifier?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
name?: Prisma.StringFieldUpdateOperationsInput | string
|
|
description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
customerDescription?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
internalNotes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
manufacturer?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
manufactureCwId?: 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
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
}
|
|
|
|
export type CatalogItemUncheckedUpdateManyInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
cwCatalogId?: Prisma.IntFieldUpdateOperationsInput | number
|
|
identifier?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
name?: Prisma.StringFieldUpdateOperationsInput | string
|
|
description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
customerDescription?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
internalNotes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
manufacturer?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
manufactureCwId?: 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
|
|
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 CatalogItemCountOrderByAggregateInput = {
|
|
id?: Prisma.SortOrder
|
|
cwCatalogId?: Prisma.SortOrder
|
|
identifier?: Prisma.SortOrder
|
|
name?: Prisma.SortOrder
|
|
description?: Prisma.SortOrder
|
|
customerDescription?: Prisma.SortOrder
|
|
internalNotes?: Prisma.SortOrder
|
|
manufacturer?: Prisma.SortOrder
|
|
manufactureCwId?: 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
|
|
createdAt?: Prisma.SortOrder
|
|
updatedAt?: Prisma.SortOrder
|
|
}
|
|
|
|
export type CatalogItemAvgOrderByAggregateInput = {
|
|
cwCatalogId?: Prisma.SortOrder
|
|
manufactureCwId?: Prisma.SortOrder
|
|
vendorCwId?: Prisma.SortOrder
|
|
price?: Prisma.SortOrder
|
|
cost?: Prisma.SortOrder
|
|
onHand?: Prisma.SortOrder
|
|
}
|
|
|
|
export type CatalogItemMaxOrderByAggregateInput = {
|
|
id?: Prisma.SortOrder
|
|
cwCatalogId?: Prisma.SortOrder
|
|
identifier?: Prisma.SortOrder
|
|
name?: Prisma.SortOrder
|
|
description?: Prisma.SortOrder
|
|
customerDescription?: Prisma.SortOrder
|
|
internalNotes?: Prisma.SortOrder
|
|
manufacturer?: Prisma.SortOrder
|
|
manufactureCwId?: 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
|
|
createdAt?: Prisma.SortOrder
|
|
updatedAt?: Prisma.SortOrder
|
|
}
|
|
|
|
export type CatalogItemMinOrderByAggregateInput = {
|
|
id?: Prisma.SortOrder
|
|
cwCatalogId?: Prisma.SortOrder
|
|
identifier?: Prisma.SortOrder
|
|
name?: Prisma.SortOrder
|
|
description?: Prisma.SortOrder
|
|
customerDescription?: Prisma.SortOrder
|
|
internalNotes?: Prisma.SortOrder
|
|
manufacturer?: Prisma.SortOrder
|
|
manufactureCwId?: 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
|
|
createdAt?: Prisma.SortOrder
|
|
updatedAt?: Prisma.SortOrder
|
|
}
|
|
|
|
export type CatalogItemSumOrderByAggregateInput = {
|
|
cwCatalogId?: Prisma.SortOrder
|
|
manufactureCwId?: Prisma.SortOrder
|
|
vendorCwId?: Prisma.SortOrder
|
|
price?: Prisma.SortOrder
|
|
cost?: Prisma.SortOrder
|
|
onHand?: Prisma.SortOrder
|
|
}
|
|
|
|
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 NullableIntFieldUpdateOperationsInput = {
|
|
set?: number | null
|
|
increment?: number
|
|
decrement?: number
|
|
multiply?: number
|
|
divide?: number
|
|
}
|
|
|
|
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 CatalogItemCreateWithoutLinkedToInput = {
|
|
id?: string
|
|
cwCatalogId: number
|
|
identifier?: string | null
|
|
name: string
|
|
description?: string | null
|
|
customerDescription?: string | null
|
|
internalNotes?: string | null
|
|
manufacturer?: string | null
|
|
manufactureCwId?: 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
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
linkedItems?: Prisma.CatalogItemCreateNestedManyWithoutLinkedToInput
|
|
}
|
|
|
|
export type CatalogItemUncheckedCreateWithoutLinkedToInput = {
|
|
id?: string
|
|
cwCatalogId: number
|
|
identifier?: string | null
|
|
name: string
|
|
description?: string | null
|
|
customerDescription?: string | null
|
|
internalNotes?: string | null
|
|
manufacturer?: string | null
|
|
manufactureCwId?: 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
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
linkedItems?: Prisma.CatalogItemUncheckedCreateNestedManyWithoutLinkedToInput
|
|
}
|
|
|
|
export type CatalogItemCreateOrConnectWithoutLinkedToInput = {
|
|
where: Prisma.CatalogItemWhereUniqueInput
|
|
create: Prisma.XOR<Prisma.CatalogItemCreateWithoutLinkedToInput, Prisma.CatalogItemUncheckedCreateWithoutLinkedToInput>
|
|
}
|
|
|
|
export type CatalogItemCreateWithoutLinkedItemsInput = {
|
|
id?: string
|
|
cwCatalogId: number
|
|
identifier?: string | null
|
|
name: string
|
|
description?: string | null
|
|
customerDescription?: string | null
|
|
internalNotes?: string | null
|
|
manufacturer?: string | null
|
|
manufactureCwId?: 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
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
linkedTo?: Prisma.CatalogItemCreateNestedManyWithoutLinkedItemsInput
|
|
}
|
|
|
|
export type CatalogItemUncheckedCreateWithoutLinkedItemsInput = {
|
|
id?: string
|
|
cwCatalogId: number
|
|
identifier?: string | null
|
|
name: string
|
|
description?: string | null
|
|
customerDescription?: string | null
|
|
internalNotes?: string | null
|
|
manufacturer?: string | null
|
|
manufactureCwId?: 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
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
linkedTo?: Prisma.CatalogItemUncheckedCreateNestedManyWithoutLinkedItemsInput
|
|
}
|
|
|
|
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 CatalogItemScalarWhereInput = {
|
|
AND?: Prisma.CatalogItemScalarWhereInput | Prisma.CatalogItemScalarWhereInput[]
|
|
OR?: Prisma.CatalogItemScalarWhereInput[]
|
|
NOT?: Prisma.CatalogItemScalarWhereInput | Prisma.CatalogItemScalarWhereInput[]
|
|
id?: Prisma.StringFilter<"CatalogItem"> | string
|
|
cwCatalogId?: Prisma.IntFilter<"CatalogItem"> | number
|
|
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
|
|
manufacturer?: Prisma.StringNullableFilter<"CatalogItem"> | string | null
|
|
manufactureCwId?: 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
|
|
createdAt?: Prisma.DateTimeFilter<"CatalogItem"> | Date | string
|
|
updatedAt?: Prisma.DateTimeFilter<"CatalogItem"> | Date | string
|
|
}
|
|
|
|
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 CatalogItemUpdateWithoutLinkedToInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
cwCatalogId?: Prisma.IntFieldUpdateOperationsInput | number
|
|
identifier?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
name?: Prisma.StringFieldUpdateOperationsInput | string
|
|
description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
customerDescription?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
internalNotes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
manufacturer?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
manufactureCwId?: 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
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
linkedItems?: Prisma.CatalogItemUpdateManyWithoutLinkedToNestedInput
|
|
}
|
|
|
|
export type CatalogItemUncheckedUpdateWithoutLinkedToInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
cwCatalogId?: Prisma.IntFieldUpdateOperationsInput | number
|
|
identifier?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
name?: Prisma.StringFieldUpdateOperationsInput | string
|
|
description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
customerDescription?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
internalNotes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
manufacturer?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
manufactureCwId?: 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
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
linkedItems?: Prisma.CatalogItemUncheckedUpdateManyWithoutLinkedToNestedInput
|
|
}
|
|
|
|
export type CatalogItemUncheckedUpdateManyWithoutLinkedToInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
cwCatalogId?: Prisma.IntFieldUpdateOperationsInput | number
|
|
identifier?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
name?: Prisma.StringFieldUpdateOperationsInput | string
|
|
description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
customerDescription?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
internalNotes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
manufacturer?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
manufactureCwId?: 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
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
}
|
|
|
|
export type CatalogItemUpdateWithoutLinkedItemsInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
cwCatalogId?: Prisma.IntFieldUpdateOperationsInput | number
|
|
identifier?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
name?: Prisma.StringFieldUpdateOperationsInput | string
|
|
description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
customerDescription?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
internalNotes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
manufacturer?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
manufactureCwId?: 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
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
linkedTo?: Prisma.CatalogItemUpdateManyWithoutLinkedItemsNestedInput
|
|
}
|
|
|
|
export type CatalogItemUncheckedUpdateWithoutLinkedItemsInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
cwCatalogId?: Prisma.IntFieldUpdateOperationsInput | number
|
|
identifier?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
name?: Prisma.StringFieldUpdateOperationsInput | string
|
|
description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
customerDescription?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
internalNotes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
manufacturer?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
manufactureCwId?: 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
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
linkedTo?: Prisma.CatalogItemUncheckedUpdateManyWithoutLinkedItemsNestedInput
|
|
}
|
|
|
|
export type CatalogItemUncheckedUpdateManyWithoutLinkedItemsInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
cwCatalogId?: Prisma.IntFieldUpdateOperationsInput | number
|
|
identifier?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
name?: Prisma.StringFieldUpdateOperationsInput | string
|
|
description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
customerDescription?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
internalNotes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
manufacturer?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
manufactureCwId?: 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
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
}
|
|
|
|
|
|
/**
|
|
* Count Type CatalogItemCountOutputType
|
|
*/
|
|
|
|
export type CatalogItemCountOutputType = {
|
|
linkedItems: number
|
|
linkedTo: number
|
|
}
|
|
|
|
export type CatalogItemCountOutputTypeSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
linkedItems?: boolean | CatalogItemCountOutputTypeCountLinkedItemsArgs
|
|
linkedTo?: boolean | CatalogItemCountOutputTypeCountLinkedToArgs
|
|
}
|
|
|
|
/**
|
|
* 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
|
|
}
|
|
|
|
|
|
export type CatalogItemSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
id?: boolean
|
|
cwCatalogId?: boolean
|
|
identifier?: boolean
|
|
name?: boolean
|
|
description?: boolean
|
|
customerDescription?: boolean
|
|
internalNotes?: boolean
|
|
manufacturer?: boolean
|
|
manufactureCwId?: boolean
|
|
partNumber?: boolean
|
|
vendorName?: boolean
|
|
vendorSku?: boolean
|
|
vendorCwId?: boolean
|
|
price?: boolean
|
|
cost?: boolean
|
|
inactive?: boolean
|
|
salesTaxable?: boolean
|
|
onHand?: boolean
|
|
cwLastUpdated?: boolean
|
|
createdAt?: boolean
|
|
updatedAt?: boolean
|
|
linkedItems?: boolean | Prisma.CatalogItem$linkedItemsArgs<ExtArgs>
|
|
linkedTo?: boolean | Prisma.CatalogItem$linkedToArgs<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
|
|
cwCatalogId?: boolean
|
|
identifier?: boolean
|
|
name?: boolean
|
|
description?: boolean
|
|
customerDescription?: boolean
|
|
internalNotes?: boolean
|
|
manufacturer?: boolean
|
|
manufactureCwId?: boolean
|
|
partNumber?: boolean
|
|
vendorName?: boolean
|
|
vendorSku?: boolean
|
|
vendorCwId?: boolean
|
|
price?: boolean
|
|
cost?: boolean
|
|
inactive?: boolean
|
|
salesTaxable?: boolean
|
|
onHand?: boolean
|
|
cwLastUpdated?: boolean
|
|
createdAt?: boolean
|
|
updatedAt?: boolean
|
|
}, ExtArgs["result"]["catalogItem"]>
|
|
|
|
export type CatalogItemSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
id?: boolean
|
|
cwCatalogId?: boolean
|
|
identifier?: boolean
|
|
name?: boolean
|
|
description?: boolean
|
|
customerDescription?: boolean
|
|
internalNotes?: boolean
|
|
manufacturer?: boolean
|
|
manufactureCwId?: boolean
|
|
partNumber?: boolean
|
|
vendorName?: boolean
|
|
vendorSku?: boolean
|
|
vendorCwId?: boolean
|
|
price?: boolean
|
|
cost?: boolean
|
|
inactive?: boolean
|
|
salesTaxable?: boolean
|
|
onHand?: boolean
|
|
cwLastUpdated?: boolean
|
|
createdAt?: boolean
|
|
updatedAt?: boolean
|
|
}, ExtArgs["result"]["catalogItem"]>
|
|
|
|
export type CatalogItemSelectScalar = {
|
|
id?: boolean
|
|
cwCatalogId?: boolean
|
|
identifier?: boolean
|
|
name?: boolean
|
|
description?: boolean
|
|
customerDescription?: boolean
|
|
internalNotes?: boolean
|
|
manufacturer?: boolean
|
|
manufactureCwId?: boolean
|
|
partNumber?: boolean
|
|
vendorName?: boolean
|
|
vendorSku?: boolean
|
|
vendorCwId?: boolean
|
|
price?: boolean
|
|
cost?: boolean
|
|
inactive?: boolean
|
|
salesTaxable?: boolean
|
|
onHand?: boolean
|
|
cwLastUpdated?: boolean
|
|
createdAt?: boolean
|
|
updatedAt?: boolean
|
|
}
|
|
|
|
export type CatalogItemOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "cwCatalogId" | "identifier" | "name" | "description" | "customerDescription" | "internalNotes" | "manufacturer" | "manufactureCwId" | "partNumber" | "vendorName" | "vendorSku" | "vendorCwId" | "price" | "cost" | "inactive" | "salesTaxable" | "onHand" | "cwLastUpdated" | "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>
|
|
_count?: boolean | Prisma.CatalogItemCountOutputTypeDefaultArgs<ExtArgs>
|
|
}
|
|
export type CatalogItemIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {}
|
|
export type CatalogItemIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {}
|
|
|
|
export type $CatalogItemPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
name: "CatalogItem"
|
|
objects: {
|
|
linkedItems: Prisma.$CatalogItemPayload<ExtArgs>[]
|
|
linkedTo: Prisma.$CatalogItemPayload<ExtArgs>[]
|
|
}
|
|
scalars: runtime.Types.Extensions.GetPayloadResult<{
|
|
id: string
|
|
cwCatalogId: number
|
|
identifier: string | null
|
|
name: string
|
|
description: string | null
|
|
customerDescription: string | null
|
|
internalNotes: string | null
|
|
manufacturer: string | null
|
|
manufactureCwId: 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
|
|
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>
|
|
/**
|
|
* 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", 'String'>
|
|
readonly cwCatalogId: Prisma.FieldRef<"CatalogItem", 'Int'>
|
|
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 manufacturer: Prisma.FieldRef<"CatalogItem", 'String'>
|
|
readonly manufactureCwId: 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 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
|
|
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
|
|
}
|
|
|
|
/**
|
|
* 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
|
|
}
|
|
|
|
/**
|
|
* 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 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
|
|
}
|