/* !!! 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 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 = { /** * 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 = { [P in keyof T & keyof AggregateSupplierLedger]: P extends '_count' | 'count' ? T[P] extends true ? number : Prisma.GetScalarType : Prisma.GetScalarType } export type SupplierLedgerGroupByArgs = { 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 = Prisma.PrismaPromise< Array< Prisma.PickEnumerable & { [P in ((keyof T) & (keyof SupplierLedgerGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : Prisma.GetScalarType : Prisma.GetScalarType } > > 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 } 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 }, "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[] connectOrCreate?: Prisma.SupplierLedgerCreateOrConnectWithoutSupplierInput | Prisma.SupplierLedgerCreateOrConnectWithoutSupplierInput[] createMany?: Prisma.SupplierLedgerCreateManySupplierInputEnvelope connect?: Prisma.SupplierLedgerWhereUniqueInput | Prisma.SupplierLedgerWhereUniqueInput[] } export type SupplierLedgerUncheckedCreateNestedManyWithoutSupplierInput = { create?: Prisma.XOR | 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[] 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[] 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 } export type SupplierLedgerCreateManySupplierInputEnvelope = { data: Prisma.SupplierLedgerCreateManySupplierInput | Prisma.SupplierLedgerCreateManySupplierInput[] skipDuplicates?: boolean } export type SupplierLedgerUpsertWithWhereUniqueWithoutSupplierInput = { where: Prisma.SupplierLedgerWhereUniqueInput update: Prisma.XOR create: Prisma.XOR } export type SupplierLedgerUpdateWithWhereUniqueWithoutSupplierInput = { where: Prisma.SupplierLedgerWhereUniqueInput data: Prisma.XOR } export type SupplierLedgerUpdateManyWithWhereWithoutSupplierInput = { where: Prisma.SupplierLedgerScalarWhereInput data: Prisma.XOR } 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 = 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["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 = runtime.Types.Extensions.GetOmit<"id" | "description" | "debit" | "credit" | "balance" | "sourceType" | "sourceId" | "createdAt" | "supplierId", ExtArgs["result"]["supplierLedger"]> export type SupplierLedgerInclude = { supplier?: boolean | Prisma.SupplierDefaultArgs } export type $SupplierLedgerPayload = { name: "SupplierLedger" objects: { supplier: Prisma.$SupplierPayload } 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 = runtime.Types.Result.GetResult export type SupplierLedgerCountArgs = Omit & { select?: SupplierLedgerCountAggregateInputType | true } export interface SupplierLedgerDelegate { [K: symbol]: { types: Prisma.TypeMap['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(args: Prisma.SelectSubset>): Prisma.Prisma__SupplierLedgerClient, 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(args: Prisma.SelectSubset>): Prisma.Prisma__SupplierLedgerClient, 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(args?: Prisma.SelectSubset>): Prisma.Prisma__SupplierLedgerClient, 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(args?: Prisma.SelectSubset>): Prisma.Prisma__SupplierLedgerClient, 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(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, 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(args: Prisma.SelectSubset>): Prisma.Prisma__SupplierLedgerClient, 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(args?: Prisma.SelectSubset>): Prisma.PrismaPromise /** * 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(args: Prisma.SelectSubset>): Prisma.Prisma__SupplierLedgerClient, 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(args: Prisma.SelectSubset>): Prisma.Prisma__SupplierLedgerClient, 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(args?: Prisma.SelectSubset>): Prisma.PrismaPromise /** * 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(args: Prisma.SelectSubset>): Prisma.PrismaPromise /** * 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(args: Prisma.SelectSubset>): Prisma.Prisma__SupplierLedgerClient, 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( args?: Prisma.Subset, ): Prisma.PrismaPromise< T extends runtime.Types.Utils.Record<'select', any> ? T['select'] extends true ? number : Prisma.GetScalarType : 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(args: Prisma.Subset): Prisma.PrismaPromise> /** * 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>, Prisma.Extends<'take', Prisma.Keys> >, OrderByArg extends Prisma.True extends HasSelectOrTake ? { orderBy: SupplierLedgerGroupByArgs['orderBy'] } : { orderBy?: SupplierLedgerGroupByArgs['orderBy'] }, OrderFields extends Prisma.ExcludeUnderscoreKeys>>, ByFields extends Prisma.MaybeTupleToUnion, ByValid extends Prisma.Has, HavingFields extends Prisma.GetHavingFields, HavingValid extends Prisma.Has, 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 ? 'orderBy' extends Prisma.Keys ? 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 ? 'orderBy' extends Prisma.Keys ? 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 & InputErrors): {} extends InputErrors ? GetSupplierLedgerGroupByPayload : Prisma.PrismaPromise /** * 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 extends Prisma.PrismaPromise { readonly [Symbol.toStringTag]: "PrismaPromise" supplier = {}>(args?: Prisma.Subset>): Prisma.Prisma__SupplierClient, 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(onfulfilled?: ((value: T) => TResult1 | PromiseLike) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike) | undefined | null): runtime.Types.Utils.JsPromise /** * 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(onrejected?: ((reason: any) => TResult | PromiseLike) | undefined | null): runtime.Types.Utils.JsPromise /** * 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 } /** * 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 = { /** * Select specific fields to fetch from the SupplierLedger */ select?: Prisma.SupplierLedgerSelect | null /** * Omit specific fields from the SupplierLedger */ omit?: Prisma.SupplierLedgerOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.SupplierLedgerInclude | null /** * Filter, which SupplierLedger to fetch. */ where: Prisma.SupplierLedgerWhereUniqueInput } /** * SupplierLedger findUniqueOrThrow */ export type SupplierLedgerFindUniqueOrThrowArgs = { /** * Select specific fields to fetch from the SupplierLedger */ select?: Prisma.SupplierLedgerSelect | null /** * Omit specific fields from the SupplierLedger */ omit?: Prisma.SupplierLedgerOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.SupplierLedgerInclude | null /** * Filter, which SupplierLedger to fetch. */ where: Prisma.SupplierLedgerWhereUniqueInput } /** * SupplierLedger findFirst */ export type SupplierLedgerFindFirstArgs = { /** * Select specific fields to fetch from the SupplierLedger */ select?: Prisma.SupplierLedgerSelect | null /** * Omit specific fields from the SupplierLedger */ omit?: Prisma.SupplierLedgerOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.SupplierLedgerInclude | 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 = { /** * Select specific fields to fetch from the SupplierLedger */ select?: Prisma.SupplierLedgerSelect | null /** * Omit specific fields from the SupplierLedger */ omit?: Prisma.SupplierLedgerOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.SupplierLedgerInclude | 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 = { /** * Select specific fields to fetch from the SupplierLedger */ select?: Prisma.SupplierLedgerSelect | null /** * Omit specific fields from the SupplierLedger */ omit?: Prisma.SupplierLedgerOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.SupplierLedgerInclude | 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 = { /** * Select specific fields to fetch from the SupplierLedger */ select?: Prisma.SupplierLedgerSelect | null /** * Omit specific fields from the SupplierLedger */ omit?: Prisma.SupplierLedgerOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.SupplierLedgerInclude | null /** * The data needed to create a SupplierLedger. */ data: Prisma.XOR } /** * SupplierLedger createMany */ export type SupplierLedgerCreateManyArgs = { /** * The data used to create many SupplierLedgers. */ data: Prisma.SupplierLedgerCreateManyInput | Prisma.SupplierLedgerCreateManyInput[] skipDuplicates?: boolean } /** * SupplierLedger update */ export type SupplierLedgerUpdateArgs = { /** * Select specific fields to fetch from the SupplierLedger */ select?: Prisma.SupplierLedgerSelect | null /** * Omit specific fields from the SupplierLedger */ omit?: Prisma.SupplierLedgerOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.SupplierLedgerInclude | null /** * The data needed to update a SupplierLedger. */ data: Prisma.XOR /** * Choose, which SupplierLedger to update. */ where: Prisma.SupplierLedgerWhereUniqueInput } /** * SupplierLedger updateMany */ export type SupplierLedgerUpdateManyArgs = { /** * The data used to update SupplierLedgers. */ data: Prisma.XOR /** * Filter which SupplierLedgers to update */ where?: Prisma.SupplierLedgerWhereInput /** * Limit how many SupplierLedgers to update. */ limit?: number } /** * SupplierLedger upsert */ export type SupplierLedgerUpsertArgs = { /** * Select specific fields to fetch from the SupplierLedger */ select?: Prisma.SupplierLedgerSelect | null /** * Omit specific fields from the SupplierLedger */ omit?: Prisma.SupplierLedgerOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.SupplierLedgerInclude | 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 /** * In case the SupplierLedger was found with the provided `where` argument, update it with this data. */ update: Prisma.XOR } /** * SupplierLedger delete */ export type SupplierLedgerDeleteArgs = { /** * Select specific fields to fetch from the SupplierLedger */ select?: Prisma.SupplierLedgerSelect | null /** * Omit specific fields from the SupplierLedger */ omit?: Prisma.SupplierLedgerOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.SupplierLedgerInclude | null /** * Filter which SupplierLedger to delete. */ where: Prisma.SupplierLedgerWhereUniqueInput } /** * SupplierLedger deleteMany */ export type SupplierLedgerDeleteManyArgs = { /** * Filter which SupplierLedgers to delete */ where?: Prisma.SupplierLedgerWhereInput /** * Limit how many SupplierLedgers to delete. */ limit?: number } /** * SupplierLedger without action */ export type SupplierLedgerDefaultArgs = { /** * Select specific fields to fetch from the SupplierLedger */ select?: Prisma.SupplierLedgerSelect | null /** * Omit specific fields from the SupplierLedger */ omit?: Prisma.SupplierLedgerOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.SupplierLedgerInclude | null }