/* !!! This is code generated by Prisma. Do not edit directly. !!! */ /* eslint-disable */ // biome-ignore-all lint: generated file // @ts-nocheck /* * This file exports the `SalesInvoiceItem` 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 SalesInvoiceItem * */ export type SalesInvoiceItemModel = runtime.Types.Result.DefaultSelection export type AggregateSalesInvoiceItem = { _count: SalesInvoiceItemCountAggregateOutputType | null _avg: SalesInvoiceItemAvgAggregateOutputType | null _sum: SalesInvoiceItemSumAggregateOutputType | null _min: SalesInvoiceItemMinAggregateOutputType | null _max: SalesInvoiceItemMaxAggregateOutputType | null } export type SalesInvoiceItemAvgAggregateOutputType = { id: number | null count: runtime.Decimal | null fee: runtime.Decimal | null total: runtime.Decimal | null invoiceId: number | null productId: number | null } export type SalesInvoiceItemSumAggregateOutputType = { id: number | null count: runtime.Decimal | null fee: runtime.Decimal | null total: runtime.Decimal | null invoiceId: number | null productId: number | null } export type SalesInvoiceItemMinAggregateOutputType = { id: number | null count: runtime.Decimal | null fee: runtime.Decimal | null total: runtime.Decimal | null createdAt: Date | null invoiceId: number | null productId: number | null } export type SalesInvoiceItemMaxAggregateOutputType = { id: number | null count: runtime.Decimal | null fee: runtime.Decimal | null total: runtime.Decimal | null createdAt: Date | null invoiceId: number | null productId: number | null } export type SalesInvoiceItemCountAggregateOutputType = { id: number count: number fee: number total: number createdAt: number invoiceId: number productId: number _all: number } export type SalesInvoiceItemAvgAggregateInputType = { id?: true count?: true fee?: true total?: true invoiceId?: true productId?: true } export type SalesInvoiceItemSumAggregateInputType = { id?: true count?: true fee?: true total?: true invoiceId?: true productId?: true } export type SalesInvoiceItemMinAggregateInputType = { id?: true count?: true fee?: true total?: true createdAt?: true invoiceId?: true productId?: true } export type SalesInvoiceItemMaxAggregateInputType = { id?: true count?: true fee?: true total?: true createdAt?: true invoiceId?: true productId?: true } export type SalesInvoiceItemCountAggregateInputType = { id?: true count?: true fee?: true total?: true createdAt?: true invoiceId?: true productId?: true _all?: true } export type SalesInvoiceItemAggregateArgs = { /** * Filter which SalesInvoiceItem to aggregate. */ where?: Prisma.SalesInvoiceItemWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of SalesInvoiceItems to fetch. */ orderBy?: Prisma.SalesInvoiceItemOrderByWithRelationInput | Prisma.SalesInvoiceItemOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the start position */ cursor?: Prisma.SalesInvoiceItemWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` SalesInvoiceItems 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` SalesInvoiceItems. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Count returned SalesInvoiceItems **/ _count?: true | SalesInvoiceItemCountAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to average **/ _avg?: SalesInvoiceItemAvgAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to sum **/ _sum?: SalesInvoiceItemSumAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the minimum value **/ _min?: SalesInvoiceItemMinAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the maximum value **/ _max?: SalesInvoiceItemMaxAggregateInputType } export type GetSalesInvoiceItemAggregateType = { [P in keyof T & keyof AggregateSalesInvoiceItem]: P extends '_count' | 'count' ? T[P] extends true ? number : Prisma.GetScalarType : Prisma.GetScalarType } export type SalesInvoiceItemGroupByArgs = { where?: Prisma.SalesInvoiceItemWhereInput orderBy?: Prisma.SalesInvoiceItemOrderByWithAggregationInput | Prisma.SalesInvoiceItemOrderByWithAggregationInput[] by: Prisma.SalesInvoiceItemScalarFieldEnum[] | Prisma.SalesInvoiceItemScalarFieldEnum having?: Prisma.SalesInvoiceItemScalarWhereWithAggregatesInput take?: number skip?: number _count?: SalesInvoiceItemCountAggregateInputType | true _avg?: SalesInvoiceItemAvgAggregateInputType _sum?: SalesInvoiceItemSumAggregateInputType _min?: SalesInvoiceItemMinAggregateInputType _max?: SalesInvoiceItemMaxAggregateInputType } export type SalesInvoiceItemGroupByOutputType = { id: number count: runtime.Decimal fee: runtime.Decimal total: runtime.Decimal createdAt: Date invoiceId: number productId: number _count: SalesInvoiceItemCountAggregateOutputType | null _avg: SalesInvoiceItemAvgAggregateOutputType | null _sum: SalesInvoiceItemSumAggregateOutputType | null _min: SalesInvoiceItemMinAggregateOutputType | null _max: SalesInvoiceItemMaxAggregateOutputType | null } type GetSalesInvoiceItemGroupByPayload = Prisma.PrismaPromise< Array< Prisma.PickEnumerable & { [P in ((keyof T) & (keyof SalesInvoiceItemGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : Prisma.GetScalarType : Prisma.GetScalarType } > > export type SalesInvoiceItemWhereInput = { AND?: Prisma.SalesInvoiceItemWhereInput | Prisma.SalesInvoiceItemWhereInput[] OR?: Prisma.SalesInvoiceItemWhereInput[] NOT?: Prisma.SalesInvoiceItemWhereInput | Prisma.SalesInvoiceItemWhereInput[] id?: Prisma.IntFilter<"SalesInvoiceItem"> | number count?: Prisma.DecimalFilter<"SalesInvoiceItem"> | runtime.Decimal | runtime.DecimalJsLike | number | string fee?: Prisma.DecimalFilter<"SalesInvoiceItem"> | runtime.Decimal | runtime.DecimalJsLike | number | string total?: Prisma.DecimalFilter<"SalesInvoiceItem"> | runtime.Decimal | runtime.DecimalJsLike | number | string createdAt?: Prisma.DateTimeFilter<"SalesInvoiceItem"> | Date | string invoiceId?: Prisma.IntFilter<"SalesInvoiceItem"> | number productId?: Prisma.IntFilter<"SalesInvoiceItem"> | number invoice?: Prisma.XOR product?: Prisma.XOR } export type SalesInvoiceItemOrderByWithRelationInput = { id?: Prisma.SortOrder count?: Prisma.SortOrder fee?: Prisma.SortOrder total?: Prisma.SortOrder createdAt?: Prisma.SortOrder invoiceId?: Prisma.SortOrder productId?: Prisma.SortOrder invoice?: Prisma.SalesInvoiceOrderByWithRelationInput product?: Prisma.ProductOrderByWithRelationInput } export type SalesInvoiceItemWhereUniqueInput = Prisma.AtLeast<{ id?: number AND?: Prisma.SalesInvoiceItemWhereInput | Prisma.SalesInvoiceItemWhereInput[] OR?: Prisma.SalesInvoiceItemWhereInput[] NOT?: Prisma.SalesInvoiceItemWhereInput | Prisma.SalesInvoiceItemWhereInput[] count?: Prisma.DecimalFilter<"SalesInvoiceItem"> | runtime.Decimal | runtime.DecimalJsLike | number | string fee?: Prisma.DecimalFilter<"SalesInvoiceItem"> | runtime.Decimal | runtime.DecimalJsLike | number | string total?: Prisma.DecimalFilter<"SalesInvoiceItem"> | runtime.Decimal | runtime.DecimalJsLike | number | string createdAt?: Prisma.DateTimeFilter<"SalesInvoiceItem"> | Date | string invoiceId?: Prisma.IntFilter<"SalesInvoiceItem"> | number productId?: Prisma.IntFilter<"SalesInvoiceItem"> | number invoice?: Prisma.XOR product?: Prisma.XOR }, "id"> export type SalesInvoiceItemOrderByWithAggregationInput = { id?: Prisma.SortOrder count?: Prisma.SortOrder fee?: Prisma.SortOrder total?: Prisma.SortOrder createdAt?: Prisma.SortOrder invoiceId?: Prisma.SortOrder productId?: Prisma.SortOrder _count?: Prisma.SalesInvoiceItemCountOrderByAggregateInput _avg?: Prisma.SalesInvoiceItemAvgOrderByAggregateInput _max?: Prisma.SalesInvoiceItemMaxOrderByAggregateInput _min?: Prisma.SalesInvoiceItemMinOrderByAggregateInput _sum?: Prisma.SalesInvoiceItemSumOrderByAggregateInput } export type SalesInvoiceItemScalarWhereWithAggregatesInput = { AND?: Prisma.SalesInvoiceItemScalarWhereWithAggregatesInput | Prisma.SalesInvoiceItemScalarWhereWithAggregatesInput[] OR?: Prisma.SalesInvoiceItemScalarWhereWithAggregatesInput[] NOT?: Prisma.SalesInvoiceItemScalarWhereWithAggregatesInput | Prisma.SalesInvoiceItemScalarWhereWithAggregatesInput[] id?: Prisma.IntWithAggregatesFilter<"SalesInvoiceItem"> | number count?: Prisma.DecimalWithAggregatesFilter<"SalesInvoiceItem"> | runtime.Decimal | runtime.DecimalJsLike | number | string fee?: Prisma.DecimalWithAggregatesFilter<"SalesInvoiceItem"> | runtime.Decimal | runtime.DecimalJsLike | number | string total?: Prisma.DecimalWithAggregatesFilter<"SalesInvoiceItem"> | runtime.Decimal | runtime.DecimalJsLike | number | string createdAt?: Prisma.DateTimeWithAggregatesFilter<"SalesInvoiceItem"> | Date | string invoiceId?: Prisma.IntWithAggregatesFilter<"SalesInvoiceItem"> | number productId?: Prisma.IntWithAggregatesFilter<"SalesInvoiceItem"> | number } export type SalesInvoiceItemCreateInput = { count: runtime.Decimal | runtime.DecimalJsLike | number | string fee: runtime.Decimal | runtime.DecimalJsLike | number | string total: runtime.Decimal | runtime.DecimalJsLike | number | string createdAt?: Date | string invoice: Prisma.SalesInvoiceCreateNestedOneWithoutItemsInput product: Prisma.ProductCreateNestedOneWithoutSalesInvoiceItemsInput } export type SalesInvoiceItemUncheckedCreateInput = { id?: number count: runtime.Decimal | runtime.DecimalJsLike | number | string fee: runtime.Decimal | runtime.DecimalJsLike | number | string total: runtime.Decimal | runtime.DecimalJsLike | number | string createdAt?: Date | string invoiceId: number productId: number } export type SalesInvoiceItemUpdateInput = { count?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string fee?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string total?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string invoice?: Prisma.SalesInvoiceUpdateOneRequiredWithoutItemsNestedInput product?: Prisma.ProductUpdateOneRequiredWithoutSalesInvoiceItemsNestedInput } export type SalesInvoiceItemUncheckedUpdateInput = { id?: Prisma.IntFieldUpdateOperationsInput | number count?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string fee?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string total?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string invoiceId?: Prisma.IntFieldUpdateOperationsInput | number productId?: Prisma.IntFieldUpdateOperationsInput | number } export type SalesInvoiceItemCreateManyInput = { id?: number count: runtime.Decimal | runtime.DecimalJsLike | number | string fee: runtime.Decimal | runtime.DecimalJsLike | number | string total: runtime.Decimal | runtime.DecimalJsLike | number | string createdAt?: Date | string invoiceId: number productId: number } export type SalesInvoiceItemUpdateManyMutationInput = { count?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string fee?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string total?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string } export type SalesInvoiceItemUncheckedUpdateManyInput = { id?: Prisma.IntFieldUpdateOperationsInput | number count?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string fee?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string total?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string invoiceId?: Prisma.IntFieldUpdateOperationsInput | number productId?: Prisma.IntFieldUpdateOperationsInput | number } export type SalesInvoiceItemListRelationFilter = { every?: Prisma.SalesInvoiceItemWhereInput some?: Prisma.SalesInvoiceItemWhereInput none?: Prisma.SalesInvoiceItemWhereInput } export type SalesInvoiceItemOrderByRelationAggregateInput = { _count?: Prisma.SortOrder } export type SalesInvoiceItemCountOrderByAggregateInput = { id?: Prisma.SortOrder count?: Prisma.SortOrder fee?: Prisma.SortOrder total?: Prisma.SortOrder createdAt?: Prisma.SortOrder invoiceId?: Prisma.SortOrder productId?: Prisma.SortOrder } export type SalesInvoiceItemAvgOrderByAggregateInput = { id?: Prisma.SortOrder count?: Prisma.SortOrder fee?: Prisma.SortOrder total?: Prisma.SortOrder invoiceId?: Prisma.SortOrder productId?: Prisma.SortOrder } export type SalesInvoiceItemMaxOrderByAggregateInput = { id?: Prisma.SortOrder count?: Prisma.SortOrder fee?: Prisma.SortOrder total?: Prisma.SortOrder createdAt?: Prisma.SortOrder invoiceId?: Prisma.SortOrder productId?: Prisma.SortOrder } export type SalesInvoiceItemMinOrderByAggregateInput = { id?: Prisma.SortOrder count?: Prisma.SortOrder fee?: Prisma.SortOrder total?: Prisma.SortOrder createdAt?: Prisma.SortOrder invoiceId?: Prisma.SortOrder productId?: Prisma.SortOrder } export type SalesInvoiceItemSumOrderByAggregateInput = { id?: Prisma.SortOrder count?: Prisma.SortOrder fee?: Prisma.SortOrder total?: Prisma.SortOrder invoiceId?: Prisma.SortOrder productId?: Prisma.SortOrder } export type SalesInvoiceItemCreateNestedManyWithoutInvoiceInput = { create?: Prisma.XOR | Prisma.SalesInvoiceItemCreateWithoutInvoiceInput[] | Prisma.SalesInvoiceItemUncheckedCreateWithoutInvoiceInput[] connectOrCreate?: Prisma.SalesInvoiceItemCreateOrConnectWithoutInvoiceInput | Prisma.SalesInvoiceItemCreateOrConnectWithoutInvoiceInput[] createMany?: Prisma.SalesInvoiceItemCreateManyInvoiceInputEnvelope connect?: Prisma.SalesInvoiceItemWhereUniqueInput | Prisma.SalesInvoiceItemWhereUniqueInput[] } export type SalesInvoiceItemUncheckedCreateNestedManyWithoutInvoiceInput = { create?: Prisma.XOR | Prisma.SalesInvoiceItemCreateWithoutInvoiceInput[] | Prisma.SalesInvoiceItemUncheckedCreateWithoutInvoiceInput[] connectOrCreate?: Prisma.SalesInvoiceItemCreateOrConnectWithoutInvoiceInput | Prisma.SalesInvoiceItemCreateOrConnectWithoutInvoiceInput[] createMany?: Prisma.SalesInvoiceItemCreateManyInvoiceInputEnvelope connect?: Prisma.SalesInvoiceItemWhereUniqueInput | Prisma.SalesInvoiceItemWhereUniqueInput[] } export type SalesInvoiceItemUpdateManyWithoutInvoiceNestedInput = { create?: Prisma.XOR | Prisma.SalesInvoiceItemCreateWithoutInvoiceInput[] | Prisma.SalesInvoiceItemUncheckedCreateWithoutInvoiceInput[] connectOrCreate?: Prisma.SalesInvoiceItemCreateOrConnectWithoutInvoiceInput | Prisma.SalesInvoiceItemCreateOrConnectWithoutInvoiceInput[] upsert?: Prisma.SalesInvoiceItemUpsertWithWhereUniqueWithoutInvoiceInput | Prisma.SalesInvoiceItemUpsertWithWhereUniqueWithoutInvoiceInput[] createMany?: Prisma.SalesInvoiceItemCreateManyInvoiceInputEnvelope set?: Prisma.SalesInvoiceItemWhereUniqueInput | Prisma.SalesInvoiceItemWhereUniqueInput[] disconnect?: Prisma.SalesInvoiceItemWhereUniqueInput | Prisma.SalesInvoiceItemWhereUniqueInput[] delete?: Prisma.SalesInvoiceItemWhereUniqueInput | Prisma.SalesInvoiceItemWhereUniqueInput[] connect?: Prisma.SalesInvoiceItemWhereUniqueInput | Prisma.SalesInvoiceItemWhereUniqueInput[] update?: Prisma.SalesInvoiceItemUpdateWithWhereUniqueWithoutInvoiceInput | Prisma.SalesInvoiceItemUpdateWithWhereUniqueWithoutInvoiceInput[] updateMany?: Prisma.SalesInvoiceItemUpdateManyWithWhereWithoutInvoiceInput | Prisma.SalesInvoiceItemUpdateManyWithWhereWithoutInvoiceInput[] deleteMany?: Prisma.SalesInvoiceItemScalarWhereInput | Prisma.SalesInvoiceItemScalarWhereInput[] } export type SalesInvoiceItemUncheckedUpdateManyWithoutInvoiceNestedInput = { create?: Prisma.XOR | Prisma.SalesInvoiceItemCreateWithoutInvoiceInput[] | Prisma.SalesInvoiceItemUncheckedCreateWithoutInvoiceInput[] connectOrCreate?: Prisma.SalesInvoiceItemCreateOrConnectWithoutInvoiceInput | Prisma.SalesInvoiceItemCreateOrConnectWithoutInvoiceInput[] upsert?: Prisma.SalesInvoiceItemUpsertWithWhereUniqueWithoutInvoiceInput | Prisma.SalesInvoiceItemUpsertWithWhereUniqueWithoutInvoiceInput[] createMany?: Prisma.SalesInvoiceItemCreateManyInvoiceInputEnvelope set?: Prisma.SalesInvoiceItemWhereUniqueInput | Prisma.SalesInvoiceItemWhereUniqueInput[] disconnect?: Prisma.SalesInvoiceItemWhereUniqueInput | Prisma.SalesInvoiceItemWhereUniqueInput[] delete?: Prisma.SalesInvoiceItemWhereUniqueInput | Prisma.SalesInvoiceItemWhereUniqueInput[] connect?: Prisma.SalesInvoiceItemWhereUniqueInput | Prisma.SalesInvoiceItemWhereUniqueInput[] update?: Prisma.SalesInvoiceItemUpdateWithWhereUniqueWithoutInvoiceInput | Prisma.SalesInvoiceItemUpdateWithWhereUniqueWithoutInvoiceInput[] updateMany?: Prisma.SalesInvoiceItemUpdateManyWithWhereWithoutInvoiceInput | Prisma.SalesInvoiceItemUpdateManyWithWhereWithoutInvoiceInput[] deleteMany?: Prisma.SalesInvoiceItemScalarWhereInput | Prisma.SalesInvoiceItemScalarWhereInput[] } export type SalesInvoiceItemCreateNestedManyWithoutProductInput = { create?: Prisma.XOR | Prisma.SalesInvoiceItemCreateWithoutProductInput[] | Prisma.SalesInvoiceItemUncheckedCreateWithoutProductInput[] connectOrCreate?: Prisma.SalesInvoiceItemCreateOrConnectWithoutProductInput | Prisma.SalesInvoiceItemCreateOrConnectWithoutProductInput[] createMany?: Prisma.SalesInvoiceItemCreateManyProductInputEnvelope connect?: Prisma.SalesInvoiceItemWhereUniqueInput | Prisma.SalesInvoiceItemWhereUniqueInput[] } export type SalesInvoiceItemUncheckedCreateNestedManyWithoutProductInput = { create?: Prisma.XOR | Prisma.SalesInvoiceItemCreateWithoutProductInput[] | Prisma.SalesInvoiceItemUncheckedCreateWithoutProductInput[] connectOrCreate?: Prisma.SalesInvoiceItemCreateOrConnectWithoutProductInput | Prisma.SalesInvoiceItemCreateOrConnectWithoutProductInput[] createMany?: Prisma.SalesInvoiceItemCreateManyProductInputEnvelope connect?: Prisma.SalesInvoiceItemWhereUniqueInput | Prisma.SalesInvoiceItemWhereUniqueInput[] } export type SalesInvoiceItemUpdateManyWithoutProductNestedInput = { create?: Prisma.XOR | Prisma.SalesInvoiceItemCreateWithoutProductInput[] | Prisma.SalesInvoiceItemUncheckedCreateWithoutProductInput[] connectOrCreate?: Prisma.SalesInvoiceItemCreateOrConnectWithoutProductInput | Prisma.SalesInvoiceItemCreateOrConnectWithoutProductInput[] upsert?: Prisma.SalesInvoiceItemUpsertWithWhereUniqueWithoutProductInput | Prisma.SalesInvoiceItemUpsertWithWhereUniqueWithoutProductInput[] createMany?: Prisma.SalesInvoiceItemCreateManyProductInputEnvelope set?: Prisma.SalesInvoiceItemWhereUniqueInput | Prisma.SalesInvoiceItemWhereUniqueInput[] disconnect?: Prisma.SalesInvoiceItemWhereUniqueInput | Prisma.SalesInvoiceItemWhereUniqueInput[] delete?: Prisma.SalesInvoiceItemWhereUniqueInput | Prisma.SalesInvoiceItemWhereUniqueInput[] connect?: Prisma.SalesInvoiceItemWhereUniqueInput | Prisma.SalesInvoiceItemWhereUniqueInput[] update?: Prisma.SalesInvoiceItemUpdateWithWhereUniqueWithoutProductInput | Prisma.SalesInvoiceItemUpdateWithWhereUniqueWithoutProductInput[] updateMany?: Prisma.SalesInvoiceItemUpdateManyWithWhereWithoutProductInput | Prisma.SalesInvoiceItemUpdateManyWithWhereWithoutProductInput[] deleteMany?: Prisma.SalesInvoiceItemScalarWhereInput | Prisma.SalesInvoiceItemScalarWhereInput[] } export type SalesInvoiceItemUncheckedUpdateManyWithoutProductNestedInput = { create?: Prisma.XOR | Prisma.SalesInvoiceItemCreateWithoutProductInput[] | Prisma.SalesInvoiceItemUncheckedCreateWithoutProductInput[] connectOrCreate?: Prisma.SalesInvoiceItemCreateOrConnectWithoutProductInput | Prisma.SalesInvoiceItemCreateOrConnectWithoutProductInput[] upsert?: Prisma.SalesInvoiceItemUpsertWithWhereUniqueWithoutProductInput | Prisma.SalesInvoiceItemUpsertWithWhereUniqueWithoutProductInput[] createMany?: Prisma.SalesInvoiceItemCreateManyProductInputEnvelope set?: Prisma.SalesInvoiceItemWhereUniqueInput | Prisma.SalesInvoiceItemWhereUniqueInput[] disconnect?: Prisma.SalesInvoiceItemWhereUniqueInput | Prisma.SalesInvoiceItemWhereUniqueInput[] delete?: Prisma.SalesInvoiceItemWhereUniqueInput | Prisma.SalesInvoiceItemWhereUniqueInput[] connect?: Prisma.SalesInvoiceItemWhereUniqueInput | Prisma.SalesInvoiceItemWhereUniqueInput[] update?: Prisma.SalesInvoiceItemUpdateWithWhereUniqueWithoutProductInput | Prisma.SalesInvoiceItemUpdateWithWhereUniqueWithoutProductInput[] updateMany?: Prisma.SalesInvoiceItemUpdateManyWithWhereWithoutProductInput | Prisma.SalesInvoiceItemUpdateManyWithWhereWithoutProductInput[] deleteMany?: Prisma.SalesInvoiceItemScalarWhereInput | Prisma.SalesInvoiceItemScalarWhereInput[] } export type SalesInvoiceItemCreateWithoutInvoiceInput = { count: runtime.Decimal | runtime.DecimalJsLike | number | string fee: runtime.Decimal | runtime.DecimalJsLike | number | string total: runtime.Decimal | runtime.DecimalJsLike | number | string createdAt?: Date | string product: Prisma.ProductCreateNestedOneWithoutSalesInvoiceItemsInput } export type SalesInvoiceItemUncheckedCreateWithoutInvoiceInput = { id?: number count: runtime.Decimal | runtime.DecimalJsLike | number | string fee: runtime.Decimal | runtime.DecimalJsLike | number | string total: runtime.Decimal | runtime.DecimalJsLike | number | string createdAt?: Date | string productId: number } export type SalesInvoiceItemCreateOrConnectWithoutInvoiceInput = { where: Prisma.SalesInvoiceItemWhereUniqueInput create: Prisma.XOR } export type SalesInvoiceItemCreateManyInvoiceInputEnvelope = { data: Prisma.SalesInvoiceItemCreateManyInvoiceInput | Prisma.SalesInvoiceItemCreateManyInvoiceInput[] skipDuplicates?: boolean } export type SalesInvoiceItemUpsertWithWhereUniqueWithoutInvoiceInput = { where: Prisma.SalesInvoiceItemWhereUniqueInput update: Prisma.XOR create: Prisma.XOR } export type SalesInvoiceItemUpdateWithWhereUniqueWithoutInvoiceInput = { where: Prisma.SalesInvoiceItemWhereUniqueInput data: Prisma.XOR } export type SalesInvoiceItemUpdateManyWithWhereWithoutInvoiceInput = { where: Prisma.SalesInvoiceItemScalarWhereInput data: Prisma.XOR } export type SalesInvoiceItemScalarWhereInput = { AND?: Prisma.SalesInvoiceItemScalarWhereInput | Prisma.SalesInvoiceItemScalarWhereInput[] OR?: Prisma.SalesInvoiceItemScalarWhereInput[] NOT?: Prisma.SalesInvoiceItemScalarWhereInput | Prisma.SalesInvoiceItemScalarWhereInput[] id?: Prisma.IntFilter<"SalesInvoiceItem"> | number count?: Prisma.DecimalFilter<"SalesInvoiceItem"> | runtime.Decimal | runtime.DecimalJsLike | number | string fee?: Prisma.DecimalFilter<"SalesInvoiceItem"> | runtime.Decimal | runtime.DecimalJsLike | number | string total?: Prisma.DecimalFilter<"SalesInvoiceItem"> | runtime.Decimal | runtime.DecimalJsLike | number | string createdAt?: Prisma.DateTimeFilter<"SalesInvoiceItem"> | Date | string invoiceId?: Prisma.IntFilter<"SalesInvoiceItem"> | number productId?: Prisma.IntFilter<"SalesInvoiceItem"> | number } export type SalesInvoiceItemCreateWithoutProductInput = { count: runtime.Decimal | runtime.DecimalJsLike | number | string fee: runtime.Decimal | runtime.DecimalJsLike | number | string total: runtime.Decimal | runtime.DecimalJsLike | number | string createdAt?: Date | string invoice: Prisma.SalesInvoiceCreateNestedOneWithoutItemsInput } export type SalesInvoiceItemUncheckedCreateWithoutProductInput = { id?: number count: runtime.Decimal | runtime.DecimalJsLike | number | string fee: runtime.Decimal | runtime.DecimalJsLike | number | string total: runtime.Decimal | runtime.DecimalJsLike | number | string createdAt?: Date | string invoiceId: number } export type SalesInvoiceItemCreateOrConnectWithoutProductInput = { where: Prisma.SalesInvoiceItemWhereUniqueInput create: Prisma.XOR } export type SalesInvoiceItemCreateManyProductInputEnvelope = { data: Prisma.SalesInvoiceItemCreateManyProductInput | Prisma.SalesInvoiceItemCreateManyProductInput[] skipDuplicates?: boolean } export type SalesInvoiceItemUpsertWithWhereUniqueWithoutProductInput = { where: Prisma.SalesInvoiceItemWhereUniqueInput update: Prisma.XOR create: Prisma.XOR } export type SalesInvoiceItemUpdateWithWhereUniqueWithoutProductInput = { where: Prisma.SalesInvoiceItemWhereUniqueInput data: Prisma.XOR } export type SalesInvoiceItemUpdateManyWithWhereWithoutProductInput = { where: Prisma.SalesInvoiceItemScalarWhereInput data: Prisma.XOR } export type SalesInvoiceItemCreateManyInvoiceInput = { id?: number count: runtime.Decimal | runtime.DecimalJsLike | number | string fee: runtime.Decimal | runtime.DecimalJsLike | number | string total: runtime.Decimal | runtime.DecimalJsLike | number | string createdAt?: Date | string productId: number } export type SalesInvoiceItemUpdateWithoutInvoiceInput = { count?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string fee?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string total?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string product?: Prisma.ProductUpdateOneRequiredWithoutSalesInvoiceItemsNestedInput } export type SalesInvoiceItemUncheckedUpdateWithoutInvoiceInput = { id?: Prisma.IntFieldUpdateOperationsInput | number count?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string fee?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string total?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string productId?: Prisma.IntFieldUpdateOperationsInput | number } export type SalesInvoiceItemUncheckedUpdateManyWithoutInvoiceInput = { id?: Prisma.IntFieldUpdateOperationsInput | number count?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string fee?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string total?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string productId?: Prisma.IntFieldUpdateOperationsInput | number } export type SalesInvoiceItemCreateManyProductInput = { id?: number count: runtime.Decimal | runtime.DecimalJsLike | number | string fee: runtime.Decimal | runtime.DecimalJsLike | number | string total: runtime.Decimal | runtime.DecimalJsLike | number | string createdAt?: Date | string invoiceId: number } export type SalesInvoiceItemUpdateWithoutProductInput = { count?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string fee?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string total?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string invoice?: Prisma.SalesInvoiceUpdateOneRequiredWithoutItemsNestedInput } export type SalesInvoiceItemUncheckedUpdateWithoutProductInput = { id?: Prisma.IntFieldUpdateOperationsInput | number count?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string fee?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string total?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string invoiceId?: Prisma.IntFieldUpdateOperationsInput | number } export type SalesInvoiceItemUncheckedUpdateManyWithoutProductInput = { id?: Prisma.IntFieldUpdateOperationsInput | number count?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string fee?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string total?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string invoiceId?: Prisma.IntFieldUpdateOperationsInput | number } export type SalesInvoiceItemSelect = runtime.Types.Extensions.GetSelect<{ id?: boolean count?: boolean fee?: boolean total?: boolean createdAt?: boolean invoiceId?: boolean productId?: boolean invoice?: boolean | Prisma.SalesInvoiceDefaultArgs product?: boolean | Prisma.ProductDefaultArgs }, ExtArgs["result"]["salesInvoiceItem"]> export type SalesInvoiceItemSelectScalar = { id?: boolean count?: boolean fee?: boolean total?: boolean createdAt?: boolean invoiceId?: boolean productId?: boolean } export type SalesInvoiceItemOmit = runtime.Types.Extensions.GetOmit<"id" | "count" | "fee" | "total" | "createdAt" | "invoiceId" | "productId", ExtArgs["result"]["salesInvoiceItem"]> export type SalesInvoiceItemInclude = { invoice?: boolean | Prisma.SalesInvoiceDefaultArgs product?: boolean | Prisma.ProductDefaultArgs } export type $SalesInvoiceItemPayload = { name: "SalesInvoiceItem" objects: { invoice: Prisma.$SalesInvoicePayload product: Prisma.$ProductPayload } scalars: runtime.Types.Extensions.GetPayloadResult<{ id: number count: runtime.Decimal fee: runtime.Decimal total: runtime.Decimal createdAt: Date invoiceId: number productId: number }, ExtArgs["result"]["salesInvoiceItem"]> composites: {} } export type SalesInvoiceItemGetPayload = runtime.Types.Result.GetResult export type SalesInvoiceItemCountArgs = Omit & { select?: SalesInvoiceItemCountAggregateInputType | true } export interface SalesInvoiceItemDelegate { [K: symbol]: { types: Prisma.TypeMap['model']['SalesInvoiceItem'], meta: { name: 'SalesInvoiceItem' } } /** * Find zero or one SalesInvoiceItem that matches the filter. * @param {SalesInvoiceItemFindUniqueArgs} args - Arguments to find a SalesInvoiceItem * @example * // Get one SalesInvoiceItem * const salesInvoiceItem = await prisma.salesInvoiceItem.findUnique({ * where: { * // ... provide filter here * } * }) */ findUnique(args: Prisma.SelectSubset>): Prisma.Prisma__SalesInvoiceItemClient, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find one SalesInvoiceItem that matches the filter or throw an error with `error.code='P2025'` * if no matches were found. * @param {SalesInvoiceItemFindUniqueOrThrowArgs} args - Arguments to find a SalesInvoiceItem * @example * // Get one SalesInvoiceItem * const salesInvoiceItem = await prisma.salesInvoiceItem.findUniqueOrThrow({ * where: { * // ... provide filter here * } * }) */ findUniqueOrThrow(args: Prisma.SelectSubset>): Prisma.Prisma__SalesInvoiceItemClient, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find the first SalesInvoiceItem 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 {SalesInvoiceItemFindFirstArgs} args - Arguments to find a SalesInvoiceItem * @example * // Get one SalesInvoiceItem * const salesInvoiceItem = await prisma.salesInvoiceItem.findFirst({ * where: { * // ... provide filter here * } * }) */ findFirst(args?: Prisma.SelectSubset>): Prisma.Prisma__SalesInvoiceItemClient, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find the first SalesInvoiceItem 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 {SalesInvoiceItemFindFirstOrThrowArgs} args - Arguments to find a SalesInvoiceItem * @example * // Get one SalesInvoiceItem * const salesInvoiceItem = await prisma.salesInvoiceItem.findFirstOrThrow({ * where: { * // ... provide filter here * } * }) */ findFirstOrThrow(args?: Prisma.SelectSubset>): Prisma.Prisma__SalesInvoiceItemClient, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find zero or more SalesInvoiceItems 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 {SalesInvoiceItemFindManyArgs} args - Arguments to filter and select certain fields only. * @example * // Get all SalesInvoiceItems * const salesInvoiceItems = await prisma.salesInvoiceItem.findMany() * * // Get first 10 SalesInvoiceItems * const salesInvoiceItems = await prisma.salesInvoiceItem.findMany({ take: 10 }) * * // Only select the `id` * const salesInvoiceItemWithIdOnly = await prisma.salesInvoiceItem.findMany({ select: { id: true } }) * */ findMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>> /** * Create a SalesInvoiceItem. * @param {SalesInvoiceItemCreateArgs} args - Arguments to create a SalesInvoiceItem. * @example * // Create one SalesInvoiceItem * const SalesInvoiceItem = await prisma.salesInvoiceItem.create({ * data: { * // ... data to create a SalesInvoiceItem * } * }) * */ create(args: Prisma.SelectSubset>): Prisma.Prisma__SalesInvoiceItemClient, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Create many SalesInvoiceItems. * @param {SalesInvoiceItemCreateManyArgs} args - Arguments to create many SalesInvoiceItems. * @example * // Create many SalesInvoiceItems * const salesInvoiceItem = await prisma.salesInvoiceItem.createMany({ * data: [ * // ... provide data here * ] * }) * */ createMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Delete a SalesInvoiceItem. * @param {SalesInvoiceItemDeleteArgs} args - Arguments to delete one SalesInvoiceItem. * @example * // Delete one SalesInvoiceItem * const SalesInvoiceItem = await prisma.salesInvoiceItem.delete({ * where: { * // ... filter to delete one SalesInvoiceItem * } * }) * */ delete(args: Prisma.SelectSubset>): Prisma.Prisma__SalesInvoiceItemClient, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Update one SalesInvoiceItem. * @param {SalesInvoiceItemUpdateArgs} args - Arguments to update one SalesInvoiceItem. * @example * // Update one SalesInvoiceItem * const salesInvoiceItem = await prisma.salesInvoiceItem.update({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ update(args: Prisma.SelectSubset>): Prisma.Prisma__SalesInvoiceItemClient, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Delete zero or more SalesInvoiceItems. * @param {SalesInvoiceItemDeleteManyArgs} args - Arguments to filter SalesInvoiceItems to delete. * @example * // Delete a few SalesInvoiceItems * const { count } = await prisma.salesInvoiceItem.deleteMany({ * where: { * // ... provide filter here * } * }) * */ deleteMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Update zero or more SalesInvoiceItems. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {SalesInvoiceItemUpdateManyArgs} args - Arguments to update one or more rows. * @example * // Update many SalesInvoiceItems * const salesInvoiceItem = await prisma.salesInvoiceItem.updateMany({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ updateMany(args: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Create or update one SalesInvoiceItem. * @param {SalesInvoiceItemUpsertArgs} args - Arguments to update or create a SalesInvoiceItem. * @example * // Update or create a SalesInvoiceItem * const salesInvoiceItem = await prisma.salesInvoiceItem.upsert({ * create: { * // ... data to create a SalesInvoiceItem * }, * update: { * // ... in case it already exists, update * }, * where: { * // ... the filter for the SalesInvoiceItem we want to update * } * }) */ upsert(args: Prisma.SelectSubset>): Prisma.Prisma__SalesInvoiceItemClient, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Count the number of SalesInvoiceItems. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {SalesInvoiceItemCountArgs} args - Arguments to filter SalesInvoiceItems to count. * @example * // Count the number of SalesInvoiceItems * const count = await prisma.salesInvoiceItem.count({ * where: { * // ... the filter for the SalesInvoiceItems 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 SalesInvoiceItem. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {SalesInvoiceItemAggregateArgs} 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 SalesInvoiceItem. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {SalesInvoiceItemGroupByArgs} 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 SalesInvoiceItemGroupByArgs, HasSelectOrTake extends Prisma.Or< Prisma.Extends<'skip', Prisma.Keys>, Prisma.Extends<'take', Prisma.Keys> >, OrderByArg extends Prisma.True extends HasSelectOrTake ? { orderBy: SalesInvoiceItemGroupByArgs['orderBy'] } : { orderBy?: SalesInvoiceItemGroupByArgs['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 ? GetSalesInvoiceItemGroupByPayload : Prisma.PrismaPromise /** * Fields of the SalesInvoiceItem model */ readonly fields: SalesInvoiceItemFieldRefs; } /** * The delegate class that acts as a "Promise-like" for SalesInvoiceItem. * 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__SalesInvoiceItemClient extends Prisma.PrismaPromise { readonly [Symbol.toStringTag]: "PrismaPromise" invoice = {}>(args?: Prisma.Subset>): Prisma.Prisma__SalesInvoiceClient, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions> product = {}>(args?: Prisma.Subset>): Prisma.Prisma__ProductClient, 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 SalesInvoiceItem model */ export interface SalesInvoiceItemFieldRefs { readonly id: Prisma.FieldRef<"SalesInvoiceItem", 'Int'> readonly count: Prisma.FieldRef<"SalesInvoiceItem", 'Decimal'> readonly fee: Prisma.FieldRef<"SalesInvoiceItem", 'Decimal'> readonly total: Prisma.FieldRef<"SalesInvoiceItem", 'Decimal'> readonly createdAt: Prisma.FieldRef<"SalesInvoiceItem", 'DateTime'> readonly invoiceId: Prisma.FieldRef<"SalesInvoiceItem", 'Int'> readonly productId: Prisma.FieldRef<"SalesInvoiceItem", 'Int'> } // Custom InputTypes /** * SalesInvoiceItem findUnique */ export type SalesInvoiceItemFindUniqueArgs = { /** * Select specific fields to fetch from the SalesInvoiceItem */ select?: Prisma.SalesInvoiceItemSelect | null /** * Omit specific fields from the SalesInvoiceItem */ omit?: Prisma.SalesInvoiceItemOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.SalesInvoiceItemInclude | null /** * Filter, which SalesInvoiceItem to fetch. */ where: Prisma.SalesInvoiceItemWhereUniqueInput } /** * SalesInvoiceItem findUniqueOrThrow */ export type SalesInvoiceItemFindUniqueOrThrowArgs = { /** * Select specific fields to fetch from the SalesInvoiceItem */ select?: Prisma.SalesInvoiceItemSelect | null /** * Omit specific fields from the SalesInvoiceItem */ omit?: Prisma.SalesInvoiceItemOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.SalesInvoiceItemInclude | null /** * Filter, which SalesInvoiceItem to fetch. */ where: Prisma.SalesInvoiceItemWhereUniqueInput } /** * SalesInvoiceItem findFirst */ export type SalesInvoiceItemFindFirstArgs = { /** * Select specific fields to fetch from the SalesInvoiceItem */ select?: Prisma.SalesInvoiceItemSelect | null /** * Omit specific fields from the SalesInvoiceItem */ omit?: Prisma.SalesInvoiceItemOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.SalesInvoiceItemInclude | null /** * Filter, which SalesInvoiceItem to fetch. */ where?: Prisma.SalesInvoiceItemWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of SalesInvoiceItems to fetch. */ orderBy?: Prisma.SalesInvoiceItemOrderByWithRelationInput | Prisma.SalesInvoiceItemOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for SalesInvoiceItems. */ cursor?: Prisma.SalesInvoiceItemWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` SalesInvoiceItems 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` SalesInvoiceItems. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of SalesInvoiceItems. */ distinct?: Prisma.SalesInvoiceItemScalarFieldEnum | Prisma.SalesInvoiceItemScalarFieldEnum[] } /** * SalesInvoiceItem findFirstOrThrow */ export type SalesInvoiceItemFindFirstOrThrowArgs = { /** * Select specific fields to fetch from the SalesInvoiceItem */ select?: Prisma.SalesInvoiceItemSelect | null /** * Omit specific fields from the SalesInvoiceItem */ omit?: Prisma.SalesInvoiceItemOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.SalesInvoiceItemInclude | null /** * Filter, which SalesInvoiceItem to fetch. */ where?: Prisma.SalesInvoiceItemWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of SalesInvoiceItems to fetch. */ orderBy?: Prisma.SalesInvoiceItemOrderByWithRelationInput | Prisma.SalesInvoiceItemOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for SalesInvoiceItems. */ cursor?: Prisma.SalesInvoiceItemWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` SalesInvoiceItems 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` SalesInvoiceItems. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of SalesInvoiceItems. */ distinct?: Prisma.SalesInvoiceItemScalarFieldEnum | Prisma.SalesInvoiceItemScalarFieldEnum[] } /** * SalesInvoiceItem findMany */ export type SalesInvoiceItemFindManyArgs = { /** * Select specific fields to fetch from the SalesInvoiceItem */ select?: Prisma.SalesInvoiceItemSelect | null /** * Omit specific fields from the SalesInvoiceItem */ omit?: Prisma.SalesInvoiceItemOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.SalesInvoiceItemInclude | null /** * Filter, which SalesInvoiceItems to fetch. */ where?: Prisma.SalesInvoiceItemWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of SalesInvoiceItems to fetch. */ orderBy?: Prisma.SalesInvoiceItemOrderByWithRelationInput | Prisma.SalesInvoiceItemOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for listing SalesInvoiceItems. */ cursor?: Prisma.SalesInvoiceItemWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` SalesInvoiceItems 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` SalesInvoiceItems. */ skip?: number distinct?: Prisma.SalesInvoiceItemScalarFieldEnum | Prisma.SalesInvoiceItemScalarFieldEnum[] } /** * SalesInvoiceItem create */ export type SalesInvoiceItemCreateArgs = { /** * Select specific fields to fetch from the SalesInvoiceItem */ select?: Prisma.SalesInvoiceItemSelect | null /** * Omit specific fields from the SalesInvoiceItem */ omit?: Prisma.SalesInvoiceItemOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.SalesInvoiceItemInclude | null /** * The data needed to create a SalesInvoiceItem. */ data: Prisma.XOR } /** * SalesInvoiceItem createMany */ export type SalesInvoiceItemCreateManyArgs = { /** * The data used to create many SalesInvoiceItems. */ data: Prisma.SalesInvoiceItemCreateManyInput | Prisma.SalesInvoiceItemCreateManyInput[] skipDuplicates?: boolean } /** * SalesInvoiceItem update */ export type SalesInvoiceItemUpdateArgs = { /** * Select specific fields to fetch from the SalesInvoiceItem */ select?: Prisma.SalesInvoiceItemSelect | null /** * Omit specific fields from the SalesInvoiceItem */ omit?: Prisma.SalesInvoiceItemOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.SalesInvoiceItemInclude | null /** * The data needed to update a SalesInvoiceItem. */ data: Prisma.XOR /** * Choose, which SalesInvoiceItem to update. */ where: Prisma.SalesInvoiceItemWhereUniqueInput } /** * SalesInvoiceItem updateMany */ export type SalesInvoiceItemUpdateManyArgs = { /** * The data used to update SalesInvoiceItems. */ data: Prisma.XOR /** * Filter which SalesInvoiceItems to update */ where?: Prisma.SalesInvoiceItemWhereInput /** * Limit how many SalesInvoiceItems to update. */ limit?: number } /** * SalesInvoiceItem upsert */ export type SalesInvoiceItemUpsertArgs = { /** * Select specific fields to fetch from the SalesInvoiceItem */ select?: Prisma.SalesInvoiceItemSelect | null /** * Omit specific fields from the SalesInvoiceItem */ omit?: Prisma.SalesInvoiceItemOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.SalesInvoiceItemInclude | null /** * The filter to search for the SalesInvoiceItem to update in case it exists. */ where: Prisma.SalesInvoiceItemWhereUniqueInput /** * In case the SalesInvoiceItem found by the `where` argument doesn't exist, create a new SalesInvoiceItem with this data. */ create: Prisma.XOR /** * In case the SalesInvoiceItem was found with the provided `where` argument, update it with this data. */ update: Prisma.XOR } /** * SalesInvoiceItem delete */ export type SalesInvoiceItemDeleteArgs = { /** * Select specific fields to fetch from the SalesInvoiceItem */ select?: Prisma.SalesInvoiceItemSelect | null /** * Omit specific fields from the SalesInvoiceItem */ omit?: Prisma.SalesInvoiceItemOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.SalesInvoiceItemInclude | null /** * Filter which SalesInvoiceItem to delete. */ where: Prisma.SalesInvoiceItemWhereUniqueInput } /** * SalesInvoiceItem deleteMany */ export type SalesInvoiceItemDeleteManyArgs = { /** * Filter which SalesInvoiceItems to delete */ where?: Prisma.SalesInvoiceItemWhereInput /** * Limit how many SalesInvoiceItems to delete. */ limit?: number } /** * SalesInvoiceItem without action */ export type SalesInvoiceItemDefaultArgs = { /** * Select specific fields to fetch from the SalesInvoiceItem */ select?: Prisma.SalesInvoiceItemSelect | null /** * Omit specific fields from the SalesInvoiceItem */ omit?: Prisma.SalesInvoiceItemOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.SalesInvoiceItemInclude | null }