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

1424 lines
57 KiB
TypeScript
Raw Normal View History

/* !!! This is code generated by Prisma. Do not edit directly. !!! */
/* eslint-disable */
// biome-ignore-all lint: generated file
// @ts-nocheck
/*
* This file exports the `SupplierLedger` model and its related types.
*
* 🟢 You can import this file directly.
*/
import type * as runtime from "@prisma/client/runtime/client"
import type * as $Enums from "../enums.js"
import type * as Prisma from "../internal/prismaNamespace.js"
/**
* Model SupplierLedger
*
*/
export type SupplierLedgerModel = runtime.Types.Result.DefaultSelection<Prisma.$SupplierLedgerPayload>
export type AggregateSupplierLedger = {
_count: SupplierLedgerCountAggregateOutputType | null
_avg: SupplierLedgerAvgAggregateOutputType | null
_sum: SupplierLedgerSumAggregateOutputType | null
_min: SupplierLedgerMinAggregateOutputType | null
_max: SupplierLedgerMaxAggregateOutputType | null
}
export type SupplierLedgerAvgAggregateOutputType = {
id: number | null
debit: runtime.Decimal | null
credit: runtime.Decimal | null
balance: runtime.Decimal | null
sourceId: number | null
supplierId: number | null
}
export type SupplierLedgerSumAggregateOutputType = {
id: number | null
debit: runtime.Decimal | null
credit: runtime.Decimal | null
balance: runtime.Decimal | null
sourceId: number | null
supplierId: number | null
}
export type SupplierLedgerMinAggregateOutputType = {
id: number | null
description: string | null
debit: runtime.Decimal | null
credit: runtime.Decimal | null
balance: runtime.Decimal | null
sourceType: $Enums.LedgerSourceType | null
sourceId: number | null
createdAt: Date | null
supplierId: number | null
}
export type SupplierLedgerMaxAggregateOutputType = {
id: number | null
description: string | null
debit: runtime.Decimal | null
credit: runtime.Decimal | null
balance: runtime.Decimal | null
sourceType: $Enums.LedgerSourceType | null
sourceId: number | null
createdAt: Date | null
supplierId: number | null
}
export type SupplierLedgerCountAggregateOutputType = {
id: number
description: number
debit: number
credit: number
balance: number
sourceType: number
sourceId: number
createdAt: number
supplierId: number
_all: number
}
export type SupplierLedgerAvgAggregateInputType = {
id?: true
debit?: true
credit?: true
balance?: true
sourceId?: true
supplierId?: true
}
export type SupplierLedgerSumAggregateInputType = {
id?: true
debit?: true
credit?: true
balance?: true
sourceId?: true
supplierId?: true
}
export type SupplierLedgerMinAggregateInputType = {
id?: true
description?: true
debit?: true
credit?: true
balance?: true
sourceType?: true
sourceId?: true
createdAt?: true
supplierId?: true
}
export type SupplierLedgerMaxAggregateInputType = {
id?: true
description?: true
debit?: true
credit?: true
balance?: true
sourceType?: true
sourceId?: true
createdAt?: true
supplierId?: true
}
export type SupplierLedgerCountAggregateInputType = {
id?: true
description?: true
debit?: true
credit?: true
balance?: true
sourceType?: true
sourceId?: true
createdAt?: true
supplierId?: true
_all?: true
}
export type SupplierLedgerAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Filter which SupplierLedger to aggregate.
*/
where?: Prisma.SupplierLedgerWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of SupplierLedgers to fetch.
*/
orderBy?: Prisma.SupplierLedgerOrderByWithRelationInput | Prisma.SupplierLedgerOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the start position
*/
cursor?: Prisma.SupplierLedgerWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` SupplierLedgers 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` SupplierLedgers.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Count returned SupplierLedgers
**/
_count?: true | SupplierLedgerCountAggregateInputType
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to average
**/
_avg?: SupplierLedgerAvgAggregateInputType
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to sum
**/
_sum?: SupplierLedgerSumAggregateInputType
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to find the minimum value
**/
_min?: SupplierLedgerMinAggregateInputType
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to find the maximum value
**/
_max?: SupplierLedgerMaxAggregateInputType
}
export type GetSupplierLedgerAggregateType<T extends SupplierLedgerAggregateArgs> = {
[P in keyof T & keyof AggregateSupplierLedger]: P extends '_count' | 'count'
? T[P] extends true
? number
: Prisma.GetScalarType<T[P], AggregateSupplierLedger[P]>
: Prisma.GetScalarType<T[P], AggregateSupplierLedger[P]>
}
export type SupplierLedgerGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
where?: Prisma.SupplierLedgerWhereInput
orderBy?: Prisma.SupplierLedgerOrderByWithAggregationInput | Prisma.SupplierLedgerOrderByWithAggregationInput[]
by: Prisma.SupplierLedgerScalarFieldEnum[] | Prisma.SupplierLedgerScalarFieldEnum
having?: Prisma.SupplierLedgerScalarWhereWithAggregatesInput
take?: number
skip?: number
_count?: SupplierLedgerCountAggregateInputType | true
_avg?: SupplierLedgerAvgAggregateInputType
_sum?: SupplierLedgerSumAggregateInputType
_min?: SupplierLedgerMinAggregateInputType
_max?: SupplierLedgerMaxAggregateInputType
}
export type SupplierLedgerGroupByOutputType = {
id: number
description: string | null
debit: runtime.Decimal
credit: runtime.Decimal
balance: runtime.Decimal
sourceType: $Enums.LedgerSourceType
sourceId: number
createdAt: Date
supplierId: number
_count: SupplierLedgerCountAggregateOutputType | null
_avg: SupplierLedgerAvgAggregateOutputType | null
_sum: SupplierLedgerSumAggregateOutputType | null
_min: SupplierLedgerMinAggregateOutputType | null
_max: SupplierLedgerMaxAggregateOutputType | null
}
type GetSupplierLedgerGroupByPayload<T extends SupplierLedgerGroupByArgs> = Prisma.PrismaPromise<
Array<
Prisma.PickEnumerable<SupplierLedgerGroupByOutputType, T['by']> &
{
[P in ((keyof T) & (keyof SupplierLedgerGroupByOutputType))]: P extends '_count'
? T[P] extends boolean
? number
: Prisma.GetScalarType<T[P], SupplierLedgerGroupByOutputType[P]>
: Prisma.GetScalarType<T[P], SupplierLedgerGroupByOutputType[P]>
}
>
>
export type SupplierLedgerWhereInput = {
AND?: Prisma.SupplierLedgerWhereInput | Prisma.SupplierLedgerWhereInput[]
OR?: Prisma.SupplierLedgerWhereInput[]
NOT?: Prisma.SupplierLedgerWhereInput | Prisma.SupplierLedgerWhereInput[]
id?: Prisma.IntFilter<"SupplierLedger"> | number
description?: Prisma.StringNullableFilter<"SupplierLedger"> | string | null
debit?: Prisma.DecimalFilter<"SupplierLedger"> | runtime.Decimal | runtime.DecimalJsLike | number | string
credit?: Prisma.DecimalFilter<"SupplierLedger"> | runtime.Decimal | runtime.DecimalJsLike | number | string
balance?: Prisma.DecimalFilter<"SupplierLedger"> | runtime.Decimal | runtime.DecimalJsLike | number | string
sourceType?: Prisma.EnumLedgerSourceTypeFilter<"SupplierLedger"> | $Enums.LedgerSourceType
sourceId?: Prisma.IntFilter<"SupplierLedger"> | number
createdAt?: Prisma.DateTimeFilter<"SupplierLedger"> | Date | string
supplierId?: Prisma.IntFilter<"SupplierLedger"> | number
supplier?: Prisma.XOR<Prisma.SupplierScalarRelationFilter, Prisma.SupplierWhereInput>
}
export type SupplierLedgerOrderByWithRelationInput = {
id?: Prisma.SortOrder
description?: Prisma.SortOrderInput | Prisma.SortOrder
debit?: Prisma.SortOrder
credit?: Prisma.SortOrder
balance?: Prisma.SortOrder
sourceType?: Prisma.SortOrder
sourceId?: Prisma.SortOrder
createdAt?: Prisma.SortOrder
supplierId?: Prisma.SortOrder
supplier?: Prisma.SupplierOrderByWithRelationInput
_relevance?: Prisma.SupplierLedgerOrderByRelevanceInput
}
export type SupplierLedgerWhereUniqueInput = Prisma.AtLeast<{
id?: number
AND?: Prisma.SupplierLedgerWhereInput | Prisma.SupplierLedgerWhereInput[]
OR?: Prisma.SupplierLedgerWhereInput[]
NOT?: Prisma.SupplierLedgerWhereInput | Prisma.SupplierLedgerWhereInput[]
description?: Prisma.StringNullableFilter<"SupplierLedger"> | string | null
debit?: Prisma.DecimalFilter<"SupplierLedger"> | runtime.Decimal | runtime.DecimalJsLike | number | string
credit?: Prisma.DecimalFilter<"SupplierLedger"> | runtime.Decimal | runtime.DecimalJsLike | number | string
balance?: Prisma.DecimalFilter<"SupplierLedger"> | runtime.Decimal | runtime.DecimalJsLike | number | string
sourceType?: Prisma.EnumLedgerSourceTypeFilter<"SupplierLedger"> | $Enums.LedgerSourceType
sourceId?: Prisma.IntFilter<"SupplierLedger"> | number
createdAt?: Prisma.DateTimeFilter<"SupplierLedger"> | Date | string
supplierId?: Prisma.IntFilter<"SupplierLedger"> | number
supplier?: Prisma.XOR<Prisma.SupplierScalarRelationFilter, Prisma.SupplierWhereInput>
}, "id">
export type SupplierLedgerOrderByWithAggregationInput = {
id?: Prisma.SortOrder
description?: Prisma.SortOrderInput | Prisma.SortOrder
debit?: Prisma.SortOrder
credit?: Prisma.SortOrder
balance?: Prisma.SortOrder
sourceType?: Prisma.SortOrder
sourceId?: Prisma.SortOrder
createdAt?: Prisma.SortOrder
supplierId?: Prisma.SortOrder
_count?: Prisma.SupplierLedgerCountOrderByAggregateInput
_avg?: Prisma.SupplierLedgerAvgOrderByAggregateInput
_max?: Prisma.SupplierLedgerMaxOrderByAggregateInput
_min?: Prisma.SupplierLedgerMinOrderByAggregateInput
_sum?: Prisma.SupplierLedgerSumOrderByAggregateInput
}
export type SupplierLedgerScalarWhereWithAggregatesInput = {
AND?: Prisma.SupplierLedgerScalarWhereWithAggregatesInput | Prisma.SupplierLedgerScalarWhereWithAggregatesInput[]
OR?: Prisma.SupplierLedgerScalarWhereWithAggregatesInput[]
NOT?: Prisma.SupplierLedgerScalarWhereWithAggregatesInput | Prisma.SupplierLedgerScalarWhereWithAggregatesInput[]
id?: Prisma.IntWithAggregatesFilter<"SupplierLedger"> | number
description?: Prisma.StringNullableWithAggregatesFilter<"SupplierLedger"> | string | null
debit?: Prisma.DecimalWithAggregatesFilter<"SupplierLedger"> | runtime.Decimal | runtime.DecimalJsLike | number | string
credit?: Prisma.DecimalWithAggregatesFilter<"SupplierLedger"> | runtime.Decimal | runtime.DecimalJsLike | number | string
balance?: Prisma.DecimalWithAggregatesFilter<"SupplierLedger"> | runtime.Decimal | runtime.DecimalJsLike | number | string
sourceType?: Prisma.EnumLedgerSourceTypeWithAggregatesFilter<"SupplierLedger"> | $Enums.LedgerSourceType
sourceId?: Prisma.IntWithAggregatesFilter<"SupplierLedger"> | number
createdAt?: Prisma.DateTimeWithAggregatesFilter<"SupplierLedger"> | Date | string
supplierId?: Prisma.IntWithAggregatesFilter<"SupplierLedger"> | number
}
export type SupplierLedgerCreateInput = {
description?: string | null
debit?: runtime.Decimal | runtime.DecimalJsLike | number | string
credit?: runtime.Decimal | runtime.DecimalJsLike | number | string
balance: runtime.Decimal | runtime.DecimalJsLike | number | string
sourceType: $Enums.LedgerSourceType
sourceId: number
createdAt?: Date | string
supplier: Prisma.SupplierCreateNestedOneWithoutLedgerInput
}
export type SupplierLedgerUncheckedCreateInput = {
id?: number
description?: string | null
debit?: runtime.Decimal | runtime.DecimalJsLike | number | string
credit?: runtime.Decimal | runtime.DecimalJsLike | number | string
balance: runtime.Decimal | runtime.DecimalJsLike | number | string
sourceType: $Enums.LedgerSourceType
sourceId: number
createdAt?: Date | string
supplierId: number
}
export type SupplierLedgerUpdateInput = {
description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
debit?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
credit?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
balance?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
sourceType?: Prisma.EnumLedgerSourceTypeFieldUpdateOperationsInput | $Enums.LedgerSourceType
sourceId?: Prisma.IntFieldUpdateOperationsInput | number
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
supplier?: Prisma.SupplierUpdateOneRequiredWithoutLedgerNestedInput
}
export type SupplierLedgerUncheckedUpdateInput = {
id?: Prisma.IntFieldUpdateOperationsInput | number
description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
debit?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
credit?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
balance?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
sourceType?: Prisma.EnumLedgerSourceTypeFieldUpdateOperationsInput | $Enums.LedgerSourceType
sourceId?: Prisma.IntFieldUpdateOperationsInput | number
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
supplierId?: Prisma.IntFieldUpdateOperationsInput | number
}
export type SupplierLedgerCreateManyInput = {
id?: number
description?: string | null
debit?: runtime.Decimal | runtime.DecimalJsLike | number | string
credit?: runtime.Decimal | runtime.DecimalJsLike | number | string
balance: runtime.Decimal | runtime.DecimalJsLike | number | string
sourceType: $Enums.LedgerSourceType
sourceId: number
createdAt?: Date | string
supplierId: number
}
export type SupplierLedgerUpdateManyMutationInput = {
description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
debit?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
credit?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
balance?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
sourceType?: Prisma.EnumLedgerSourceTypeFieldUpdateOperationsInput | $Enums.LedgerSourceType
sourceId?: Prisma.IntFieldUpdateOperationsInput | number
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
}
export type SupplierLedgerUncheckedUpdateManyInput = {
id?: Prisma.IntFieldUpdateOperationsInput | number
description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
debit?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
credit?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
balance?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
sourceType?: Prisma.EnumLedgerSourceTypeFieldUpdateOperationsInput | $Enums.LedgerSourceType
sourceId?: Prisma.IntFieldUpdateOperationsInput | number
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
supplierId?: Prisma.IntFieldUpdateOperationsInput | number
}
export type SupplierLedgerListRelationFilter = {
every?: Prisma.SupplierLedgerWhereInput
some?: Prisma.SupplierLedgerWhereInput
none?: Prisma.SupplierLedgerWhereInput
}
export type SupplierLedgerOrderByRelationAggregateInput = {
_count?: Prisma.SortOrder
}
export type SupplierLedgerOrderByRelevanceInput = {
fields: Prisma.SupplierLedgerOrderByRelevanceFieldEnum | Prisma.SupplierLedgerOrderByRelevanceFieldEnum[]
sort: Prisma.SortOrder
search: string
}
export type SupplierLedgerCountOrderByAggregateInput = {
id?: Prisma.SortOrder
description?: Prisma.SortOrder
debit?: Prisma.SortOrder
credit?: Prisma.SortOrder
balance?: Prisma.SortOrder
sourceType?: Prisma.SortOrder
sourceId?: Prisma.SortOrder
createdAt?: Prisma.SortOrder
supplierId?: Prisma.SortOrder
}
export type SupplierLedgerAvgOrderByAggregateInput = {
id?: Prisma.SortOrder
debit?: Prisma.SortOrder
credit?: Prisma.SortOrder
balance?: Prisma.SortOrder
sourceId?: Prisma.SortOrder
supplierId?: Prisma.SortOrder
}
export type SupplierLedgerMaxOrderByAggregateInput = {
id?: Prisma.SortOrder
description?: Prisma.SortOrder
debit?: Prisma.SortOrder
credit?: Prisma.SortOrder
balance?: Prisma.SortOrder
sourceType?: Prisma.SortOrder
sourceId?: Prisma.SortOrder
createdAt?: Prisma.SortOrder
supplierId?: Prisma.SortOrder
}
export type SupplierLedgerMinOrderByAggregateInput = {
id?: Prisma.SortOrder
description?: Prisma.SortOrder
debit?: Prisma.SortOrder
credit?: Prisma.SortOrder
balance?: Prisma.SortOrder
sourceType?: Prisma.SortOrder
sourceId?: Prisma.SortOrder
createdAt?: Prisma.SortOrder
supplierId?: Prisma.SortOrder
}
export type SupplierLedgerSumOrderByAggregateInput = {
id?: Prisma.SortOrder
debit?: Prisma.SortOrder
credit?: Prisma.SortOrder
balance?: Prisma.SortOrder
sourceId?: Prisma.SortOrder
supplierId?: Prisma.SortOrder
}
export type SupplierLedgerCreateNestedManyWithoutSupplierInput = {
create?: Prisma.XOR<Prisma.SupplierLedgerCreateWithoutSupplierInput, Prisma.SupplierLedgerUncheckedCreateWithoutSupplierInput> | Prisma.SupplierLedgerCreateWithoutSupplierInput[] | Prisma.SupplierLedgerUncheckedCreateWithoutSupplierInput[]
connectOrCreate?: Prisma.SupplierLedgerCreateOrConnectWithoutSupplierInput | Prisma.SupplierLedgerCreateOrConnectWithoutSupplierInput[]
createMany?: Prisma.SupplierLedgerCreateManySupplierInputEnvelope
connect?: Prisma.SupplierLedgerWhereUniqueInput | Prisma.SupplierLedgerWhereUniqueInput[]
}
export type SupplierLedgerUncheckedCreateNestedManyWithoutSupplierInput = {
create?: Prisma.XOR<Prisma.SupplierLedgerCreateWithoutSupplierInput, Prisma.SupplierLedgerUncheckedCreateWithoutSupplierInput> | Prisma.SupplierLedgerCreateWithoutSupplierInput[] | Prisma.SupplierLedgerUncheckedCreateWithoutSupplierInput[]
connectOrCreate?: Prisma.SupplierLedgerCreateOrConnectWithoutSupplierInput | Prisma.SupplierLedgerCreateOrConnectWithoutSupplierInput[]
createMany?: Prisma.SupplierLedgerCreateManySupplierInputEnvelope
connect?: Prisma.SupplierLedgerWhereUniqueInput | Prisma.SupplierLedgerWhereUniqueInput[]
}
export type SupplierLedgerUpdateManyWithoutSupplierNestedInput = {
create?: Prisma.XOR<Prisma.SupplierLedgerCreateWithoutSupplierInput, Prisma.SupplierLedgerUncheckedCreateWithoutSupplierInput> | Prisma.SupplierLedgerCreateWithoutSupplierInput[] | Prisma.SupplierLedgerUncheckedCreateWithoutSupplierInput[]
connectOrCreate?: Prisma.SupplierLedgerCreateOrConnectWithoutSupplierInput | Prisma.SupplierLedgerCreateOrConnectWithoutSupplierInput[]
upsert?: Prisma.SupplierLedgerUpsertWithWhereUniqueWithoutSupplierInput | Prisma.SupplierLedgerUpsertWithWhereUniqueWithoutSupplierInput[]
createMany?: Prisma.SupplierLedgerCreateManySupplierInputEnvelope
set?: Prisma.SupplierLedgerWhereUniqueInput | Prisma.SupplierLedgerWhereUniqueInput[]
disconnect?: Prisma.SupplierLedgerWhereUniqueInput | Prisma.SupplierLedgerWhereUniqueInput[]
delete?: Prisma.SupplierLedgerWhereUniqueInput | Prisma.SupplierLedgerWhereUniqueInput[]
connect?: Prisma.SupplierLedgerWhereUniqueInput | Prisma.SupplierLedgerWhereUniqueInput[]
update?: Prisma.SupplierLedgerUpdateWithWhereUniqueWithoutSupplierInput | Prisma.SupplierLedgerUpdateWithWhereUniqueWithoutSupplierInput[]
updateMany?: Prisma.SupplierLedgerUpdateManyWithWhereWithoutSupplierInput | Prisma.SupplierLedgerUpdateManyWithWhereWithoutSupplierInput[]
deleteMany?: Prisma.SupplierLedgerScalarWhereInput | Prisma.SupplierLedgerScalarWhereInput[]
}
export type SupplierLedgerUncheckedUpdateManyWithoutSupplierNestedInput = {
create?: Prisma.XOR<Prisma.SupplierLedgerCreateWithoutSupplierInput, Prisma.SupplierLedgerUncheckedCreateWithoutSupplierInput> | Prisma.SupplierLedgerCreateWithoutSupplierInput[] | Prisma.SupplierLedgerUncheckedCreateWithoutSupplierInput[]
connectOrCreate?: Prisma.SupplierLedgerCreateOrConnectWithoutSupplierInput | Prisma.SupplierLedgerCreateOrConnectWithoutSupplierInput[]
upsert?: Prisma.SupplierLedgerUpsertWithWhereUniqueWithoutSupplierInput | Prisma.SupplierLedgerUpsertWithWhereUniqueWithoutSupplierInput[]
createMany?: Prisma.SupplierLedgerCreateManySupplierInputEnvelope
set?: Prisma.SupplierLedgerWhereUniqueInput | Prisma.SupplierLedgerWhereUniqueInput[]
disconnect?: Prisma.SupplierLedgerWhereUniqueInput | Prisma.SupplierLedgerWhereUniqueInput[]
delete?: Prisma.SupplierLedgerWhereUniqueInput | Prisma.SupplierLedgerWhereUniqueInput[]
connect?: Prisma.SupplierLedgerWhereUniqueInput | Prisma.SupplierLedgerWhereUniqueInput[]
update?: Prisma.SupplierLedgerUpdateWithWhereUniqueWithoutSupplierInput | Prisma.SupplierLedgerUpdateWithWhereUniqueWithoutSupplierInput[]
updateMany?: Prisma.SupplierLedgerUpdateManyWithWhereWithoutSupplierInput | Prisma.SupplierLedgerUpdateManyWithWhereWithoutSupplierInput[]
deleteMany?: Prisma.SupplierLedgerScalarWhereInput | Prisma.SupplierLedgerScalarWhereInput[]
}
export type EnumLedgerSourceTypeFieldUpdateOperationsInput = {
set?: $Enums.LedgerSourceType
}
export type SupplierLedgerCreateWithoutSupplierInput = {
description?: string | null
debit?: runtime.Decimal | runtime.DecimalJsLike | number | string
credit?: runtime.Decimal | runtime.DecimalJsLike | number | string
balance: runtime.Decimal | runtime.DecimalJsLike | number | string
sourceType: $Enums.LedgerSourceType
sourceId: number
createdAt?: Date | string
}
export type SupplierLedgerUncheckedCreateWithoutSupplierInput = {
id?: number
description?: string | null
debit?: runtime.Decimal | runtime.DecimalJsLike | number | string
credit?: runtime.Decimal | runtime.DecimalJsLike | number | string
balance: runtime.Decimal | runtime.DecimalJsLike | number | string
sourceType: $Enums.LedgerSourceType
sourceId: number
createdAt?: Date | string
}
export type SupplierLedgerCreateOrConnectWithoutSupplierInput = {
where: Prisma.SupplierLedgerWhereUniqueInput
create: Prisma.XOR<Prisma.SupplierLedgerCreateWithoutSupplierInput, Prisma.SupplierLedgerUncheckedCreateWithoutSupplierInput>
}
export type SupplierLedgerCreateManySupplierInputEnvelope = {
data: Prisma.SupplierLedgerCreateManySupplierInput | Prisma.SupplierLedgerCreateManySupplierInput[]
skipDuplicates?: boolean
}
export type SupplierLedgerUpsertWithWhereUniqueWithoutSupplierInput = {
where: Prisma.SupplierLedgerWhereUniqueInput
update: Prisma.XOR<Prisma.SupplierLedgerUpdateWithoutSupplierInput, Prisma.SupplierLedgerUncheckedUpdateWithoutSupplierInput>
create: Prisma.XOR<Prisma.SupplierLedgerCreateWithoutSupplierInput, Prisma.SupplierLedgerUncheckedCreateWithoutSupplierInput>
}
export type SupplierLedgerUpdateWithWhereUniqueWithoutSupplierInput = {
where: Prisma.SupplierLedgerWhereUniqueInput
data: Prisma.XOR<Prisma.SupplierLedgerUpdateWithoutSupplierInput, Prisma.SupplierLedgerUncheckedUpdateWithoutSupplierInput>
}
export type SupplierLedgerUpdateManyWithWhereWithoutSupplierInput = {
where: Prisma.SupplierLedgerScalarWhereInput
data: Prisma.XOR<Prisma.SupplierLedgerUpdateManyMutationInput, Prisma.SupplierLedgerUncheckedUpdateManyWithoutSupplierInput>
}
export type SupplierLedgerScalarWhereInput = {
AND?: Prisma.SupplierLedgerScalarWhereInput | Prisma.SupplierLedgerScalarWhereInput[]
OR?: Prisma.SupplierLedgerScalarWhereInput[]
NOT?: Prisma.SupplierLedgerScalarWhereInput | Prisma.SupplierLedgerScalarWhereInput[]
id?: Prisma.IntFilter<"SupplierLedger"> | number
description?: Prisma.StringNullableFilter<"SupplierLedger"> | string | null
debit?: Prisma.DecimalFilter<"SupplierLedger"> | runtime.Decimal | runtime.DecimalJsLike | number | string
credit?: Prisma.DecimalFilter<"SupplierLedger"> | runtime.Decimal | runtime.DecimalJsLike | number | string
balance?: Prisma.DecimalFilter<"SupplierLedger"> | runtime.Decimal | runtime.DecimalJsLike | number | string
sourceType?: Prisma.EnumLedgerSourceTypeFilter<"SupplierLedger"> | $Enums.LedgerSourceType
sourceId?: Prisma.IntFilter<"SupplierLedger"> | number
createdAt?: Prisma.DateTimeFilter<"SupplierLedger"> | Date | string
supplierId?: Prisma.IntFilter<"SupplierLedger"> | number
}
export type SupplierLedgerCreateManySupplierInput = {
id?: number
description?: string | null
debit?: runtime.Decimal | runtime.DecimalJsLike | number | string
credit?: runtime.Decimal | runtime.DecimalJsLike | number | string
balance: runtime.Decimal | runtime.DecimalJsLike | number | string
sourceType: $Enums.LedgerSourceType
sourceId: number
createdAt?: Date | string
}
export type SupplierLedgerUpdateWithoutSupplierInput = {
description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
debit?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
credit?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
balance?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
sourceType?: Prisma.EnumLedgerSourceTypeFieldUpdateOperationsInput | $Enums.LedgerSourceType
sourceId?: Prisma.IntFieldUpdateOperationsInput | number
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
}
export type SupplierLedgerUncheckedUpdateWithoutSupplierInput = {
id?: Prisma.IntFieldUpdateOperationsInput | number
description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
debit?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
credit?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
balance?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
sourceType?: Prisma.EnumLedgerSourceTypeFieldUpdateOperationsInput | $Enums.LedgerSourceType
sourceId?: Prisma.IntFieldUpdateOperationsInput | number
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
}
export type SupplierLedgerUncheckedUpdateManyWithoutSupplierInput = {
id?: Prisma.IntFieldUpdateOperationsInput | number
description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
debit?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
credit?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
balance?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
sourceType?: Prisma.EnumLedgerSourceTypeFieldUpdateOperationsInput | $Enums.LedgerSourceType
sourceId?: Prisma.IntFieldUpdateOperationsInput | number
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
}
export type SupplierLedgerSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
id?: boolean
description?: boolean
debit?: boolean
credit?: boolean
balance?: boolean
sourceType?: boolean
sourceId?: boolean
createdAt?: boolean
supplierId?: boolean
supplier?: boolean | Prisma.SupplierDefaultArgs<ExtArgs>
}, ExtArgs["result"]["supplierLedger"]>
export type SupplierLedgerSelectScalar = {
id?: boolean
description?: boolean
debit?: boolean
credit?: boolean
balance?: boolean
sourceType?: boolean
sourceId?: boolean
createdAt?: boolean
supplierId?: boolean
}
export type SupplierLedgerOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "description" | "debit" | "credit" | "balance" | "sourceType" | "sourceId" | "createdAt" | "supplierId", ExtArgs["result"]["supplierLedger"]>
export type SupplierLedgerInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
supplier?: boolean | Prisma.SupplierDefaultArgs<ExtArgs>
}
export type $SupplierLedgerPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
name: "SupplierLedger"
objects: {
supplier: Prisma.$SupplierPayload<ExtArgs>
}
scalars: runtime.Types.Extensions.GetPayloadResult<{
id: number
description: string | null
debit: runtime.Decimal
credit: runtime.Decimal
balance: runtime.Decimal
sourceType: $Enums.LedgerSourceType
sourceId: number
createdAt: Date
supplierId: number
}, ExtArgs["result"]["supplierLedger"]>
composites: {}
}
export type SupplierLedgerGetPayload<S extends boolean | null | undefined | SupplierLedgerDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$SupplierLedgerPayload, S>
export type SupplierLedgerCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> =
Omit<SupplierLedgerFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
select?: SupplierLedgerCountAggregateInputType | true
}
export interface SupplierLedgerDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
[K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['SupplierLedger'], meta: { name: 'SupplierLedger' } }
/**
* Find zero or one SupplierLedger that matches the filter.
* @param {SupplierLedgerFindUniqueArgs} args - Arguments to find a SupplierLedger
* @example
* // Get one SupplierLedger
* const supplierLedger = await prisma.supplierLedger.findUnique({
* where: {
* // ... provide filter here
* }
* })
*/
findUnique<T extends SupplierLedgerFindUniqueArgs>(args: Prisma.SelectSubset<T, SupplierLedgerFindUniqueArgs<ExtArgs>>): Prisma.Prisma__SupplierLedgerClient<runtime.Types.Result.GetResult<Prisma.$SupplierLedgerPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
/**
* Find one SupplierLedger that matches the filter or throw an error with `error.code='P2025'`
* if no matches were found.
* @param {SupplierLedgerFindUniqueOrThrowArgs} args - Arguments to find a SupplierLedger
* @example
* // Get one SupplierLedger
* const supplierLedger = await prisma.supplierLedger.findUniqueOrThrow({
* where: {
* // ... provide filter here
* }
* })
*/
findUniqueOrThrow<T extends SupplierLedgerFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, SupplierLedgerFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__SupplierLedgerClient<runtime.Types.Result.GetResult<Prisma.$SupplierLedgerPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Find the first SupplierLedger 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 {SupplierLedgerFindFirstArgs} args - Arguments to find a SupplierLedger
* @example
* // Get one SupplierLedger
* const supplierLedger = await prisma.supplierLedger.findFirst({
* where: {
* // ... provide filter here
* }
* })
*/
findFirst<T extends SupplierLedgerFindFirstArgs>(args?: Prisma.SelectSubset<T, SupplierLedgerFindFirstArgs<ExtArgs>>): Prisma.Prisma__SupplierLedgerClient<runtime.Types.Result.GetResult<Prisma.$SupplierLedgerPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
/**
* Find the first SupplierLedger 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 {SupplierLedgerFindFirstOrThrowArgs} args - Arguments to find a SupplierLedger
* @example
* // Get one SupplierLedger
* const supplierLedger = await prisma.supplierLedger.findFirstOrThrow({
* where: {
* // ... provide filter here
* }
* })
*/
findFirstOrThrow<T extends SupplierLedgerFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, SupplierLedgerFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__SupplierLedgerClient<runtime.Types.Result.GetResult<Prisma.$SupplierLedgerPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Find zero or more SupplierLedgers 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 {SupplierLedgerFindManyArgs} args - Arguments to filter and select certain fields only.
* @example
* // Get all SupplierLedgers
* const supplierLedgers = await prisma.supplierLedger.findMany()
*
* // Get first 10 SupplierLedgers
* const supplierLedgers = await prisma.supplierLedger.findMany({ take: 10 })
*
* // Only select the `id`
* const supplierLedgerWithIdOnly = await prisma.supplierLedger.findMany({ select: { id: true } })
*
*/
findMany<T extends SupplierLedgerFindManyArgs>(args?: Prisma.SelectSubset<T, SupplierLedgerFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$SupplierLedgerPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
/**
* Create a SupplierLedger.
* @param {SupplierLedgerCreateArgs} args - Arguments to create a SupplierLedger.
* @example
* // Create one SupplierLedger
* const SupplierLedger = await prisma.supplierLedger.create({
* data: {
* // ... data to create a SupplierLedger
* }
* })
*
*/
create<T extends SupplierLedgerCreateArgs>(args: Prisma.SelectSubset<T, SupplierLedgerCreateArgs<ExtArgs>>): Prisma.Prisma__SupplierLedgerClient<runtime.Types.Result.GetResult<Prisma.$SupplierLedgerPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Create many SupplierLedgers.
* @param {SupplierLedgerCreateManyArgs} args - Arguments to create many SupplierLedgers.
* @example
* // Create many SupplierLedgers
* const supplierLedger = await prisma.supplierLedger.createMany({
* data: [
* // ... provide data here
* ]
* })
*
*/
createMany<T extends SupplierLedgerCreateManyArgs>(args?: Prisma.SelectSubset<T, SupplierLedgerCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
/**
* Delete a SupplierLedger.
* @param {SupplierLedgerDeleteArgs} args - Arguments to delete one SupplierLedger.
* @example
* // Delete one SupplierLedger
* const SupplierLedger = await prisma.supplierLedger.delete({
* where: {
* // ... filter to delete one SupplierLedger
* }
* })
*
*/
delete<T extends SupplierLedgerDeleteArgs>(args: Prisma.SelectSubset<T, SupplierLedgerDeleteArgs<ExtArgs>>): Prisma.Prisma__SupplierLedgerClient<runtime.Types.Result.GetResult<Prisma.$SupplierLedgerPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Update one SupplierLedger.
* @param {SupplierLedgerUpdateArgs} args - Arguments to update one SupplierLedger.
* @example
* // Update one SupplierLedger
* const supplierLedger = await prisma.supplierLedger.update({
* where: {
* // ... provide filter here
* },
* data: {
* // ... provide data here
* }
* })
*
*/
update<T extends SupplierLedgerUpdateArgs>(args: Prisma.SelectSubset<T, SupplierLedgerUpdateArgs<ExtArgs>>): Prisma.Prisma__SupplierLedgerClient<runtime.Types.Result.GetResult<Prisma.$SupplierLedgerPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Delete zero or more SupplierLedgers.
* @param {SupplierLedgerDeleteManyArgs} args - Arguments to filter SupplierLedgers to delete.
* @example
* // Delete a few SupplierLedgers
* const { count } = await prisma.supplierLedger.deleteMany({
* where: {
* // ... provide filter here
* }
* })
*
*/
deleteMany<T extends SupplierLedgerDeleteManyArgs>(args?: Prisma.SelectSubset<T, SupplierLedgerDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
/**
* Update zero or more SupplierLedgers.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {SupplierLedgerUpdateManyArgs} args - Arguments to update one or more rows.
* @example
* // Update many SupplierLedgers
* const supplierLedger = await prisma.supplierLedger.updateMany({
* where: {
* // ... provide filter here
* },
* data: {
* // ... provide data here
* }
* })
*
*/
updateMany<T extends SupplierLedgerUpdateManyArgs>(args: Prisma.SelectSubset<T, SupplierLedgerUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
/**
* Create or update one SupplierLedger.
* @param {SupplierLedgerUpsertArgs} args - Arguments to update or create a SupplierLedger.
* @example
* // Update or create a SupplierLedger
* const supplierLedger = await prisma.supplierLedger.upsert({
* create: {
* // ... data to create a SupplierLedger
* },
* update: {
* // ... in case it already exists, update
* },
* where: {
* // ... the filter for the SupplierLedger we want to update
* }
* })
*/
upsert<T extends SupplierLedgerUpsertArgs>(args: Prisma.SelectSubset<T, SupplierLedgerUpsertArgs<ExtArgs>>): Prisma.Prisma__SupplierLedgerClient<runtime.Types.Result.GetResult<Prisma.$SupplierLedgerPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Count the number of SupplierLedgers.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {SupplierLedgerCountArgs} args - Arguments to filter SupplierLedgers to count.
* @example
* // Count the number of SupplierLedgers
* const count = await prisma.supplierLedger.count({
* where: {
* // ... the filter for the SupplierLedgers we want to count
* }
* })
**/
count<T extends SupplierLedgerCountArgs>(
args?: Prisma.Subset<T, SupplierLedgerCountArgs>,
): Prisma.PrismaPromise<
T extends runtime.Types.Utils.Record<'select', any>
? T['select'] extends true
? number
: Prisma.GetScalarType<T['select'], SupplierLedgerCountAggregateOutputType>
: number
>
/**
* Allows you to perform aggregations operations on a SupplierLedger.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {SupplierLedgerAggregateArgs} 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 SupplierLedgerAggregateArgs>(args: Prisma.Subset<T, SupplierLedgerAggregateArgs>): Prisma.PrismaPromise<GetSupplierLedgerAggregateType<T>>
/**
* Group by SupplierLedger.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {SupplierLedgerGroupByArgs} 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 SupplierLedgerGroupByArgs,
HasSelectOrTake extends Prisma.Or<
Prisma.Extends<'skip', Prisma.Keys<T>>,
Prisma.Extends<'take', Prisma.Keys<T>>
>,
OrderByArg extends Prisma.True extends HasSelectOrTake
? { orderBy: SupplierLedgerGroupByArgs['orderBy'] }
: { orderBy?: SupplierLedgerGroupByArgs['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, SupplierLedgerGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetSupplierLedgerGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
/**
* Fields of the SupplierLedger model
*/
readonly fields: SupplierLedgerFieldRefs;
}
/**
* The delegate class that acts as a "Promise-like" for SupplierLedger.
* 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__SupplierLedgerClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
readonly [Symbol.toStringTag]: "PrismaPromise"
supplier<T extends Prisma.SupplierDefaultArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.SupplierDefaultArgs<ExtArgs>>): Prisma.Prisma__SupplierClient<runtime.Types.Result.GetResult<Prisma.$SupplierPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>
/**
* Attaches callbacks for the resolution and/or rejection of the Promise.
* @param onfulfilled The callback to execute when the Promise is resolved.
* @param onrejected The callback to execute when the Promise is rejected.
* @returns A Promise for the completion of which ever callback is executed.
*/
then<TResult1 = T, TResult2 = never>(onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined | null): runtime.Types.Utils.JsPromise<TResult1 | TResult2>
/**
* Attaches a callback for only the rejection of the Promise.
* @param onrejected The callback to execute when the Promise is rejected.
* @returns A Promise for the completion of the callback.
*/
catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): runtime.Types.Utils.JsPromise<T | TResult>
/**
* Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
* resolved value cannot be modified from the callback.
* @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
* @returns A Promise for the completion of the callback.
*/
finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise<T>
}
/**
* Fields of the SupplierLedger model
*/
export interface SupplierLedgerFieldRefs {
readonly id: Prisma.FieldRef<"SupplierLedger", 'Int'>
readonly description: Prisma.FieldRef<"SupplierLedger", 'String'>
readonly debit: Prisma.FieldRef<"SupplierLedger", 'Decimal'>
readonly credit: Prisma.FieldRef<"SupplierLedger", 'Decimal'>
readonly balance: Prisma.FieldRef<"SupplierLedger", 'Decimal'>
readonly sourceType: Prisma.FieldRef<"SupplierLedger", 'LedgerSourceType'>
readonly sourceId: Prisma.FieldRef<"SupplierLedger", 'Int'>
readonly createdAt: Prisma.FieldRef<"SupplierLedger", 'DateTime'>
readonly supplierId: Prisma.FieldRef<"SupplierLedger", 'Int'>
}
// Custom InputTypes
/**
* SupplierLedger findUnique
*/
export type SupplierLedgerFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the SupplierLedger
*/
select?: Prisma.SupplierLedgerSelect<ExtArgs> | null
/**
* Omit specific fields from the SupplierLedger
*/
omit?: Prisma.SupplierLedgerOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.SupplierLedgerInclude<ExtArgs> | null
/**
* Filter, which SupplierLedger to fetch.
*/
where: Prisma.SupplierLedgerWhereUniqueInput
}
/**
* SupplierLedger findUniqueOrThrow
*/
export type SupplierLedgerFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the SupplierLedger
*/
select?: Prisma.SupplierLedgerSelect<ExtArgs> | null
/**
* Omit specific fields from the SupplierLedger
*/
omit?: Prisma.SupplierLedgerOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.SupplierLedgerInclude<ExtArgs> | null
/**
* Filter, which SupplierLedger to fetch.
*/
where: Prisma.SupplierLedgerWhereUniqueInput
}
/**
* SupplierLedger findFirst
*/
export type SupplierLedgerFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the SupplierLedger
*/
select?: Prisma.SupplierLedgerSelect<ExtArgs> | null
/**
* Omit specific fields from the SupplierLedger
*/
omit?: Prisma.SupplierLedgerOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.SupplierLedgerInclude<ExtArgs> | null
/**
* Filter, which SupplierLedger to fetch.
*/
where?: Prisma.SupplierLedgerWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of SupplierLedgers to fetch.
*/
orderBy?: Prisma.SupplierLedgerOrderByWithRelationInput | Prisma.SupplierLedgerOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the position for searching for SupplierLedgers.
*/
cursor?: Prisma.SupplierLedgerWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` SupplierLedgers 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` SupplierLedgers.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
*
* Filter by unique combinations of SupplierLedgers.
*/
distinct?: Prisma.SupplierLedgerScalarFieldEnum | Prisma.SupplierLedgerScalarFieldEnum[]
}
/**
* SupplierLedger findFirstOrThrow
*/
export type SupplierLedgerFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the SupplierLedger
*/
select?: Prisma.SupplierLedgerSelect<ExtArgs> | null
/**
* Omit specific fields from the SupplierLedger
*/
omit?: Prisma.SupplierLedgerOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.SupplierLedgerInclude<ExtArgs> | null
/**
* Filter, which SupplierLedger to fetch.
*/
where?: Prisma.SupplierLedgerWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of SupplierLedgers to fetch.
*/
orderBy?: Prisma.SupplierLedgerOrderByWithRelationInput | Prisma.SupplierLedgerOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the position for searching for SupplierLedgers.
*/
cursor?: Prisma.SupplierLedgerWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` SupplierLedgers 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` SupplierLedgers.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
*
* Filter by unique combinations of SupplierLedgers.
*/
distinct?: Prisma.SupplierLedgerScalarFieldEnum | Prisma.SupplierLedgerScalarFieldEnum[]
}
/**
* SupplierLedger findMany
*/
export type SupplierLedgerFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the SupplierLedger
*/
select?: Prisma.SupplierLedgerSelect<ExtArgs> | null
/**
* Omit specific fields from the SupplierLedger
*/
omit?: Prisma.SupplierLedgerOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.SupplierLedgerInclude<ExtArgs> | null
/**
* Filter, which SupplierLedgers to fetch.
*/
where?: Prisma.SupplierLedgerWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of SupplierLedgers to fetch.
*/
orderBy?: Prisma.SupplierLedgerOrderByWithRelationInput | Prisma.SupplierLedgerOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the position for listing SupplierLedgers.
*/
cursor?: Prisma.SupplierLedgerWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` SupplierLedgers 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` SupplierLedgers.
*/
skip?: number
distinct?: Prisma.SupplierLedgerScalarFieldEnum | Prisma.SupplierLedgerScalarFieldEnum[]
}
/**
* SupplierLedger create
*/
export type SupplierLedgerCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the SupplierLedger
*/
select?: Prisma.SupplierLedgerSelect<ExtArgs> | null
/**
* Omit specific fields from the SupplierLedger
*/
omit?: Prisma.SupplierLedgerOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.SupplierLedgerInclude<ExtArgs> | null
/**
* The data needed to create a SupplierLedger.
*/
data: Prisma.XOR<Prisma.SupplierLedgerCreateInput, Prisma.SupplierLedgerUncheckedCreateInput>
}
/**
* SupplierLedger createMany
*/
export type SupplierLedgerCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* The data used to create many SupplierLedgers.
*/
data: Prisma.SupplierLedgerCreateManyInput | Prisma.SupplierLedgerCreateManyInput[]
skipDuplicates?: boolean
}
/**
* SupplierLedger update
*/
export type SupplierLedgerUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the SupplierLedger
*/
select?: Prisma.SupplierLedgerSelect<ExtArgs> | null
/**
* Omit specific fields from the SupplierLedger
*/
omit?: Prisma.SupplierLedgerOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.SupplierLedgerInclude<ExtArgs> | null
/**
* The data needed to update a SupplierLedger.
*/
data: Prisma.XOR<Prisma.SupplierLedgerUpdateInput, Prisma.SupplierLedgerUncheckedUpdateInput>
/**
* Choose, which SupplierLedger to update.
*/
where: Prisma.SupplierLedgerWhereUniqueInput
}
/**
* SupplierLedger updateMany
*/
export type SupplierLedgerUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* The data used to update SupplierLedgers.
*/
data: Prisma.XOR<Prisma.SupplierLedgerUpdateManyMutationInput, Prisma.SupplierLedgerUncheckedUpdateManyInput>
/**
* Filter which SupplierLedgers to update
*/
where?: Prisma.SupplierLedgerWhereInput
/**
* Limit how many SupplierLedgers to update.
*/
limit?: number
}
/**
* SupplierLedger upsert
*/
export type SupplierLedgerUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the SupplierLedger
*/
select?: Prisma.SupplierLedgerSelect<ExtArgs> | null
/**
* Omit specific fields from the SupplierLedger
*/
omit?: Prisma.SupplierLedgerOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.SupplierLedgerInclude<ExtArgs> | null
/**
* The filter to search for the SupplierLedger to update in case it exists.
*/
where: Prisma.SupplierLedgerWhereUniqueInput
/**
* In case the SupplierLedger found by the `where` argument doesn't exist, create a new SupplierLedger with this data.
*/
create: Prisma.XOR<Prisma.SupplierLedgerCreateInput, Prisma.SupplierLedgerUncheckedCreateInput>
/**
* In case the SupplierLedger was found with the provided `where` argument, update it with this data.
*/
update: Prisma.XOR<Prisma.SupplierLedgerUpdateInput, Prisma.SupplierLedgerUncheckedUpdateInput>
}
/**
* SupplierLedger delete
*/
export type SupplierLedgerDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the SupplierLedger
*/
select?: Prisma.SupplierLedgerSelect<ExtArgs> | null
/**
* Omit specific fields from the SupplierLedger
*/
omit?: Prisma.SupplierLedgerOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.SupplierLedgerInclude<ExtArgs> | null
/**
* Filter which SupplierLedger to delete.
*/
where: Prisma.SupplierLedgerWhereUniqueInput
}
/**
* SupplierLedger deleteMany
*/
export type SupplierLedgerDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Filter which SupplierLedgers to delete
*/
where?: Prisma.SupplierLedgerWhereInput
/**
* Limit how many SupplierLedgers to delete.
*/
limit?: number
}
/**
* SupplierLedger without action
*/
export type SupplierLedgerDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the SupplierLedger
*/
select?: Prisma.SupplierLedgerSelect<ExtArgs> | null
/**
* Omit specific fields from the SupplierLedger
*/
omit?: Prisma.SupplierLedgerOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.SupplierLedgerInclude<ExtArgs> | null
}