/* !!! This is code generated by Prisma. Do not edit directly. !!! */ /* eslint-disable */ // biome-ignore-all lint: generated file // @ts-nocheck /* * This file exports the `SalesInvoice` 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 SalesInvoice * */ export type SalesInvoiceModel = runtime.Types.Result.DefaultSelection export type AggregateSalesInvoice = { _count: SalesInvoiceCountAggregateOutputType | null _avg: SalesInvoiceAvgAggregateOutputType | null _sum: SalesInvoiceSumAggregateOutputType | null _min: SalesInvoiceMinAggregateOutputType | null _max: SalesInvoiceMaxAggregateOutputType | null } export type SalesInvoiceAvgAggregateOutputType = { total_amount: runtime.Decimal | null } export type SalesInvoiceSumAggregateOutputType = { total_amount: runtime.Decimal | null } export type SalesInvoiceMinAggregateOutputType = { id: string | null code: string | null total_amount: runtime.Decimal | null description: string | null created_at: Date | null updated_at: Date | null customer_id: string | null account_id: string | null complex_id: string | null } export type SalesInvoiceMaxAggregateOutputType = { id: string | null code: string | null total_amount: runtime.Decimal | null description: string | null created_at: Date | null updated_at: Date | null customer_id: string | null account_id: string | null complex_id: string | null } export type SalesInvoiceCountAggregateOutputType = { id: number code: number total_amount: number description: number created_at: number updated_at: number customer_id: number account_id: number complex_id: number _all: number } export type SalesInvoiceAvgAggregateInputType = { total_amount?: true } export type SalesInvoiceSumAggregateInputType = { total_amount?: true } export type SalesInvoiceMinAggregateInputType = { id?: true code?: true total_amount?: true description?: true created_at?: true updated_at?: true customer_id?: true account_id?: true complex_id?: true } export type SalesInvoiceMaxAggregateInputType = { id?: true code?: true total_amount?: true description?: true created_at?: true updated_at?: true customer_id?: true account_id?: true complex_id?: true } export type SalesInvoiceCountAggregateInputType = { id?: true code?: true total_amount?: true description?: true created_at?: true updated_at?: true customer_id?: true account_id?: true complex_id?: true _all?: true } export type SalesInvoiceAggregateArgs = { /** * Filter which SalesInvoice to aggregate. */ where?: Prisma.SalesInvoiceWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of SalesInvoices to fetch. */ orderBy?: Prisma.SalesInvoiceOrderByWithRelationInput | Prisma.SalesInvoiceOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the start position */ cursor?: Prisma.SalesInvoiceWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` SalesInvoices 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` SalesInvoices. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Count returned SalesInvoices **/ _count?: true | SalesInvoiceCountAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to average **/ _avg?: SalesInvoiceAvgAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to sum **/ _sum?: SalesInvoiceSumAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the minimum value **/ _min?: SalesInvoiceMinAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the maximum value **/ _max?: SalesInvoiceMaxAggregateInputType } export type GetSalesInvoiceAggregateType = { [P in keyof T & keyof AggregateSalesInvoice]: P extends '_count' | 'count' ? T[P] extends true ? number : Prisma.GetScalarType : Prisma.GetScalarType } export type SalesInvoiceGroupByArgs = { where?: Prisma.SalesInvoiceWhereInput orderBy?: Prisma.SalesInvoiceOrderByWithAggregationInput | Prisma.SalesInvoiceOrderByWithAggregationInput[] by: Prisma.SalesInvoiceScalarFieldEnum[] | Prisma.SalesInvoiceScalarFieldEnum having?: Prisma.SalesInvoiceScalarWhereWithAggregatesInput take?: number skip?: number _count?: SalesInvoiceCountAggregateInputType | true _avg?: SalesInvoiceAvgAggregateInputType _sum?: SalesInvoiceSumAggregateInputType _min?: SalesInvoiceMinAggregateInputType _max?: SalesInvoiceMaxAggregateInputType } export type SalesInvoiceGroupByOutputType = { id: string code: string total_amount: runtime.Decimal description: string | null created_at: Date updated_at: Date customer_id: string | null account_id: string complex_id: string _count: SalesInvoiceCountAggregateOutputType | null _avg: SalesInvoiceAvgAggregateOutputType | null _sum: SalesInvoiceSumAggregateOutputType | null _min: SalesInvoiceMinAggregateOutputType | null _max: SalesInvoiceMaxAggregateOutputType | null } type GetSalesInvoiceGroupByPayload = Prisma.PrismaPromise< Array< Prisma.PickEnumerable & { [P in ((keyof T) & (keyof SalesInvoiceGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : Prisma.GetScalarType : Prisma.GetScalarType } > > export type SalesInvoiceWhereInput = { AND?: Prisma.SalesInvoiceWhereInput | Prisma.SalesInvoiceWhereInput[] OR?: Prisma.SalesInvoiceWhereInput[] NOT?: Prisma.SalesInvoiceWhereInput | Prisma.SalesInvoiceWhereInput[] id?: Prisma.StringFilter<"SalesInvoice"> | string code?: Prisma.StringFilter<"SalesInvoice"> | string total_amount?: Prisma.DecimalFilter<"SalesInvoice"> | runtime.Decimal | runtime.DecimalJsLike | number | string description?: Prisma.StringNullableFilter<"SalesInvoice"> | string | null created_at?: Prisma.DateTimeFilter<"SalesInvoice"> | Date | string updated_at?: Prisma.DateTimeFilter<"SalesInvoice"> | Date | string customer_id?: Prisma.StringNullableFilter<"SalesInvoice"> | string | null account_id?: Prisma.StringFilter<"SalesInvoice"> | string complex_id?: Prisma.StringFilter<"SalesInvoice"> | string customer?: Prisma.XOR | null items?: Prisma.SalesInvoiceItemListRelationFilter sales_invoice_payments?: Prisma.SalesInvoicePaymentListRelationFilter } export type SalesInvoiceOrderByWithRelationInput = { id?: Prisma.SortOrder code?: Prisma.SortOrder total_amount?: Prisma.SortOrder description?: Prisma.SortOrderInput | Prisma.SortOrder created_at?: Prisma.SortOrder updated_at?: Prisma.SortOrder customer_id?: Prisma.SortOrderInput | Prisma.SortOrder account_id?: Prisma.SortOrder complex_id?: Prisma.SortOrder customer?: Prisma.CustomerOrderByWithRelationInput items?: Prisma.SalesInvoiceItemOrderByRelationAggregateInput sales_invoice_payments?: Prisma.SalesInvoicePaymentOrderByRelationAggregateInput _relevance?: Prisma.SalesInvoiceOrderByRelevanceInput } export type SalesInvoiceWhereUniqueInput = Prisma.AtLeast<{ id?: string code?: string AND?: Prisma.SalesInvoiceWhereInput | Prisma.SalesInvoiceWhereInput[] OR?: Prisma.SalesInvoiceWhereInput[] NOT?: Prisma.SalesInvoiceWhereInput | Prisma.SalesInvoiceWhereInput[] total_amount?: Prisma.DecimalFilter<"SalesInvoice"> | runtime.Decimal | runtime.DecimalJsLike | number | string description?: Prisma.StringNullableFilter<"SalesInvoice"> | string | null created_at?: Prisma.DateTimeFilter<"SalesInvoice"> | Date | string updated_at?: Prisma.DateTimeFilter<"SalesInvoice"> | Date | string customer_id?: Prisma.StringNullableFilter<"SalesInvoice"> | string | null account_id?: Prisma.StringFilter<"SalesInvoice"> | string complex_id?: Prisma.StringFilter<"SalesInvoice"> | string customer?: Prisma.XOR | null items?: Prisma.SalesInvoiceItemListRelationFilter sales_invoice_payments?: Prisma.SalesInvoicePaymentListRelationFilter }, "id" | "code"> export type SalesInvoiceOrderByWithAggregationInput = { id?: Prisma.SortOrder code?: Prisma.SortOrder total_amount?: Prisma.SortOrder description?: Prisma.SortOrderInput | Prisma.SortOrder created_at?: Prisma.SortOrder updated_at?: Prisma.SortOrder customer_id?: Prisma.SortOrderInput | Prisma.SortOrder account_id?: Prisma.SortOrder complex_id?: Prisma.SortOrder _count?: Prisma.SalesInvoiceCountOrderByAggregateInput _avg?: Prisma.SalesInvoiceAvgOrderByAggregateInput _max?: Prisma.SalesInvoiceMaxOrderByAggregateInput _min?: Prisma.SalesInvoiceMinOrderByAggregateInput _sum?: Prisma.SalesInvoiceSumOrderByAggregateInput } export type SalesInvoiceScalarWhereWithAggregatesInput = { AND?: Prisma.SalesInvoiceScalarWhereWithAggregatesInput | Prisma.SalesInvoiceScalarWhereWithAggregatesInput[] OR?: Prisma.SalesInvoiceScalarWhereWithAggregatesInput[] NOT?: Prisma.SalesInvoiceScalarWhereWithAggregatesInput | Prisma.SalesInvoiceScalarWhereWithAggregatesInput[] id?: Prisma.StringWithAggregatesFilter<"SalesInvoice"> | string code?: Prisma.StringWithAggregatesFilter<"SalesInvoice"> | string total_amount?: Prisma.DecimalWithAggregatesFilter<"SalesInvoice"> | runtime.Decimal | runtime.DecimalJsLike | number | string description?: Prisma.StringNullableWithAggregatesFilter<"SalesInvoice"> | string | null created_at?: Prisma.DateTimeWithAggregatesFilter<"SalesInvoice"> | Date | string updated_at?: Prisma.DateTimeWithAggregatesFilter<"SalesInvoice"> | Date | string customer_id?: Prisma.StringNullableWithAggregatesFilter<"SalesInvoice"> | string | null account_id?: Prisma.StringWithAggregatesFilter<"SalesInvoice"> | string complex_id?: Prisma.StringWithAggregatesFilter<"SalesInvoice"> | string } export type SalesInvoiceCreateInput = { id?: string code: string total_amount: runtime.Decimal | runtime.DecimalJsLike | number | string description?: string | null created_at?: Date | string updated_at?: Date | string account_id: string complex_id: string customer?: Prisma.CustomerCreateNestedOneWithoutSales_invoicesInput items?: Prisma.SalesInvoiceItemCreateNestedManyWithoutInvoiceInput sales_invoice_payments?: Prisma.SalesInvoicePaymentCreateNestedManyWithoutInvoiceInput } export type SalesInvoiceUncheckedCreateInput = { id?: string code: string total_amount: runtime.Decimal | runtime.DecimalJsLike | number | string description?: string | null created_at?: Date | string updated_at?: Date | string customer_id?: string | null account_id: string complex_id: string items?: Prisma.SalesInvoiceItemUncheckedCreateNestedManyWithoutInvoiceInput sales_invoice_payments?: Prisma.SalesInvoicePaymentUncheckedCreateNestedManyWithoutInvoiceInput } export type SalesInvoiceUpdateInput = { id?: Prisma.StringFieldUpdateOperationsInput | string code?: Prisma.StringFieldUpdateOperationsInput | string total_amount?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string account_id?: Prisma.StringFieldUpdateOperationsInput | string complex_id?: Prisma.StringFieldUpdateOperationsInput | string customer?: Prisma.CustomerUpdateOneWithoutSales_invoicesNestedInput items?: Prisma.SalesInvoiceItemUpdateManyWithoutInvoiceNestedInput sales_invoice_payments?: Prisma.SalesInvoicePaymentUpdateManyWithoutInvoiceNestedInput } export type SalesInvoiceUncheckedUpdateInput = { id?: Prisma.StringFieldUpdateOperationsInput | string code?: Prisma.StringFieldUpdateOperationsInput | string total_amount?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string customer_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null account_id?: Prisma.StringFieldUpdateOperationsInput | string complex_id?: Prisma.StringFieldUpdateOperationsInput | string items?: Prisma.SalesInvoiceItemUncheckedUpdateManyWithoutInvoiceNestedInput sales_invoice_payments?: Prisma.SalesInvoicePaymentUncheckedUpdateManyWithoutInvoiceNestedInput } export type SalesInvoiceCreateManyInput = { id?: string code: string total_amount: runtime.Decimal | runtime.DecimalJsLike | number | string description?: string | null created_at?: Date | string updated_at?: Date | string customer_id?: string | null account_id: string complex_id: string } export type SalesInvoiceUpdateManyMutationInput = { id?: Prisma.StringFieldUpdateOperationsInput | string code?: Prisma.StringFieldUpdateOperationsInput | string total_amount?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string account_id?: Prisma.StringFieldUpdateOperationsInput | string complex_id?: Prisma.StringFieldUpdateOperationsInput | string } export type SalesInvoiceUncheckedUpdateManyInput = { id?: Prisma.StringFieldUpdateOperationsInput | string code?: Prisma.StringFieldUpdateOperationsInput | string total_amount?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string customer_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null account_id?: Prisma.StringFieldUpdateOperationsInput | string complex_id?: Prisma.StringFieldUpdateOperationsInput | string } export type SalesInvoiceListRelationFilter = { every?: Prisma.SalesInvoiceWhereInput some?: Prisma.SalesInvoiceWhereInput none?: Prisma.SalesInvoiceWhereInput } export type SalesInvoiceOrderByRelationAggregateInput = { _count?: Prisma.SortOrder } export type SalesInvoiceOrderByRelevanceInput = { fields: Prisma.SalesInvoiceOrderByRelevanceFieldEnum | Prisma.SalesInvoiceOrderByRelevanceFieldEnum[] sort: Prisma.SortOrder search: string } export type SalesInvoiceCountOrderByAggregateInput = { id?: Prisma.SortOrder code?: Prisma.SortOrder total_amount?: Prisma.SortOrder description?: Prisma.SortOrder created_at?: Prisma.SortOrder updated_at?: Prisma.SortOrder customer_id?: Prisma.SortOrder account_id?: Prisma.SortOrder complex_id?: Prisma.SortOrder } export type SalesInvoiceAvgOrderByAggregateInput = { total_amount?: Prisma.SortOrder } export type SalesInvoiceMaxOrderByAggregateInput = { id?: Prisma.SortOrder code?: Prisma.SortOrder total_amount?: Prisma.SortOrder description?: Prisma.SortOrder created_at?: Prisma.SortOrder updated_at?: Prisma.SortOrder customer_id?: Prisma.SortOrder account_id?: Prisma.SortOrder complex_id?: Prisma.SortOrder } export type SalesInvoiceMinOrderByAggregateInput = { id?: Prisma.SortOrder code?: Prisma.SortOrder total_amount?: Prisma.SortOrder description?: Prisma.SortOrder created_at?: Prisma.SortOrder updated_at?: Prisma.SortOrder customer_id?: Prisma.SortOrder account_id?: Prisma.SortOrder complex_id?: Prisma.SortOrder } export type SalesInvoiceSumOrderByAggregateInput = { total_amount?: Prisma.SortOrder } export type SalesInvoiceScalarRelationFilter = { is?: Prisma.SalesInvoiceWhereInput isNot?: Prisma.SalesInvoiceWhereInput } export type SalesInvoiceCreateNestedManyWithoutCustomerInput = { create?: Prisma.XOR | Prisma.SalesInvoiceCreateWithoutCustomerInput[] | Prisma.SalesInvoiceUncheckedCreateWithoutCustomerInput[] connectOrCreate?: Prisma.SalesInvoiceCreateOrConnectWithoutCustomerInput | Prisma.SalesInvoiceCreateOrConnectWithoutCustomerInput[] createMany?: Prisma.SalesInvoiceCreateManyCustomerInputEnvelope connect?: Prisma.SalesInvoiceWhereUniqueInput | Prisma.SalesInvoiceWhereUniqueInput[] } export type SalesInvoiceUncheckedCreateNestedManyWithoutCustomerInput = { create?: Prisma.XOR | Prisma.SalesInvoiceCreateWithoutCustomerInput[] | Prisma.SalesInvoiceUncheckedCreateWithoutCustomerInput[] connectOrCreate?: Prisma.SalesInvoiceCreateOrConnectWithoutCustomerInput | Prisma.SalesInvoiceCreateOrConnectWithoutCustomerInput[] createMany?: Prisma.SalesInvoiceCreateManyCustomerInputEnvelope connect?: Prisma.SalesInvoiceWhereUniqueInput | Prisma.SalesInvoiceWhereUniqueInput[] } export type SalesInvoiceUpdateManyWithoutCustomerNestedInput = { create?: Prisma.XOR | Prisma.SalesInvoiceCreateWithoutCustomerInput[] | Prisma.SalesInvoiceUncheckedCreateWithoutCustomerInput[] connectOrCreate?: Prisma.SalesInvoiceCreateOrConnectWithoutCustomerInput | Prisma.SalesInvoiceCreateOrConnectWithoutCustomerInput[] upsert?: Prisma.SalesInvoiceUpsertWithWhereUniqueWithoutCustomerInput | Prisma.SalesInvoiceUpsertWithWhereUniqueWithoutCustomerInput[] createMany?: Prisma.SalesInvoiceCreateManyCustomerInputEnvelope set?: Prisma.SalesInvoiceWhereUniqueInput | Prisma.SalesInvoiceWhereUniqueInput[] disconnect?: Prisma.SalesInvoiceWhereUniqueInput | Prisma.SalesInvoiceWhereUniqueInput[] delete?: Prisma.SalesInvoiceWhereUniqueInput | Prisma.SalesInvoiceWhereUniqueInput[] connect?: Prisma.SalesInvoiceWhereUniqueInput | Prisma.SalesInvoiceWhereUniqueInput[] update?: Prisma.SalesInvoiceUpdateWithWhereUniqueWithoutCustomerInput | Prisma.SalesInvoiceUpdateWithWhereUniqueWithoutCustomerInput[] updateMany?: Prisma.SalesInvoiceUpdateManyWithWhereWithoutCustomerInput | Prisma.SalesInvoiceUpdateManyWithWhereWithoutCustomerInput[] deleteMany?: Prisma.SalesInvoiceScalarWhereInput | Prisma.SalesInvoiceScalarWhereInput[] } export type SalesInvoiceUncheckedUpdateManyWithoutCustomerNestedInput = { create?: Prisma.XOR | Prisma.SalesInvoiceCreateWithoutCustomerInput[] | Prisma.SalesInvoiceUncheckedCreateWithoutCustomerInput[] connectOrCreate?: Prisma.SalesInvoiceCreateOrConnectWithoutCustomerInput | Prisma.SalesInvoiceCreateOrConnectWithoutCustomerInput[] upsert?: Prisma.SalesInvoiceUpsertWithWhereUniqueWithoutCustomerInput | Prisma.SalesInvoiceUpsertWithWhereUniqueWithoutCustomerInput[] createMany?: Prisma.SalesInvoiceCreateManyCustomerInputEnvelope set?: Prisma.SalesInvoiceWhereUniqueInput | Prisma.SalesInvoiceWhereUniqueInput[] disconnect?: Prisma.SalesInvoiceWhereUniqueInput | Prisma.SalesInvoiceWhereUniqueInput[] delete?: Prisma.SalesInvoiceWhereUniqueInput | Prisma.SalesInvoiceWhereUniqueInput[] connect?: Prisma.SalesInvoiceWhereUniqueInput | Prisma.SalesInvoiceWhereUniqueInput[] update?: Prisma.SalesInvoiceUpdateWithWhereUniqueWithoutCustomerInput | Prisma.SalesInvoiceUpdateWithWhereUniqueWithoutCustomerInput[] updateMany?: Prisma.SalesInvoiceUpdateManyWithWhereWithoutCustomerInput | Prisma.SalesInvoiceUpdateManyWithWhereWithoutCustomerInput[] deleteMany?: Prisma.SalesInvoiceScalarWhereInput | Prisma.SalesInvoiceScalarWhereInput[] } export type SalesInvoiceCreateNestedOneWithoutItemsInput = { create?: Prisma.XOR connectOrCreate?: Prisma.SalesInvoiceCreateOrConnectWithoutItemsInput connect?: Prisma.SalesInvoiceWhereUniqueInput } export type SalesInvoiceUpdateOneRequiredWithoutItemsNestedInput = { create?: Prisma.XOR connectOrCreate?: Prisma.SalesInvoiceCreateOrConnectWithoutItemsInput upsert?: Prisma.SalesInvoiceUpsertWithoutItemsInput connect?: Prisma.SalesInvoiceWhereUniqueInput update?: Prisma.XOR, Prisma.SalesInvoiceUncheckedUpdateWithoutItemsInput> } export type SalesInvoiceCreateNestedOneWithoutSales_invoice_paymentsInput = { create?: Prisma.XOR connectOrCreate?: Prisma.SalesInvoiceCreateOrConnectWithoutSales_invoice_paymentsInput connect?: Prisma.SalesInvoiceWhereUniqueInput } export type SalesInvoiceUpdateOneRequiredWithoutSales_invoice_paymentsNestedInput = { create?: Prisma.XOR connectOrCreate?: Prisma.SalesInvoiceCreateOrConnectWithoutSales_invoice_paymentsInput upsert?: Prisma.SalesInvoiceUpsertWithoutSales_invoice_paymentsInput connect?: Prisma.SalesInvoiceWhereUniqueInput update?: Prisma.XOR, Prisma.SalesInvoiceUncheckedUpdateWithoutSales_invoice_paymentsInput> } export type SalesInvoiceCreateWithoutCustomerInput = { id?: string code: string total_amount: runtime.Decimal | runtime.DecimalJsLike | number | string description?: string | null created_at?: Date | string updated_at?: Date | string account_id: string complex_id: string items?: Prisma.SalesInvoiceItemCreateNestedManyWithoutInvoiceInput sales_invoice_payments?: Prisma.SalesInvoicePaymentCreateNestedManyWithoutInvoiceInput } export type SalesInvoiceUncheckedCreateWithoutCustomerInput = { id?: string code: string total_amount: runtime.Decimal | runtime.DecimalJsLike | number | string description?: string | null created_at?: Date | string updated_at?: Date | string account_id: string complex_id: string items?: Prisma.SalesInvoiceItemUncheckedCreateNestedManyWithoutInvoiceInput sales_invoice_payments?: Prisma.SalesInvoicePaymentUncheckedCreateNestedManyWithoutInvoiceInput } export type SalesInvoiceCreateOrConnectWithoutCustomerInput = { where: Prisma.SalesInvoiceWhereUniqueInput create: Prisma.XOR } export type SalesInvoiceCreateManyCustomerInputEnvelope = { data: Prisma.SalesInvoiceCreateManyCustomerInput | Prisma.SalesInvoiceCreateManyCustomerInput[] skipDuplicates?: boolean } export type SalesInvoiceUpsertWithWhereUniqueWithoutCustomerInput = { where: Prisma.SalesInvoiceWhereUniqueInput update: Prisma.XOR create: Prisma.XOR } export type SalesInvoiceUpdateWithWhereUniqueWithoutCustomerInput = { where: Prisma.SalesInvoiceWhereUniqueInput data: Prisma.XOR } export type SalesInvoiceUpdateManyWithWhereWithoutCustomerInput = { where: Prisma.SalesInvoiceScalarWhereInput data: Prisma.XOR } export type SalesInvoiceScalarWhereInput = { AND?: Prisma.SalesInvoiceScalarWhereInput | Prisma.SalesInvoiceScalarWhereInput[] OR?: Prisma.SalesInvoiceScalarWhereInput[] NOT?: Prisma.SalesInvoiceScalarWhereInput | Prisma.SalesInvoiceScalarWhereInput[] id?: Prisma.StringFilter<"SalesInvoice"> | string code?: Prisma.StringFilter<"SalesInvoice"> | string total_amount?: Prisma.DecimalFilter<"SalesInvoice"> | runtime.Decimal | runtime.DecimalJsLike | number | string description?: Prisma.StringNullableFilter<"SalesInvoice"> | string | null created_at?: Prisma.DateTimeFilter<"SalesInvoice"> | Date | string updated_at?: Prisma.DateTimeFilter<"SalesInvoice"> | Date | string customer_id?: Prisma.StringNullableFilter<"SalesInvoice"> | string | null account_id?: Prisma.StringFilter<"SalesInvoice"> | string complex_id?: Prisma.StringFilter<"SalesInvoice"> | string } export type SalesInvoiceCreateWithoutItemsInput = { id?: string code: string total_amount: runtime.Decimal | runtime.DecimalJsLike | number | string description?: string | null created_at?: Date | string updated_at?: Date | string account_id: string complex_id: string customer?: Prisma.CustomerCreateNestedOneWithoutSales_invoicesInput sales_invoice_payments?: Prisma.SalesInvoicePaymentCreateNestedManyWithoutInvoiceInput } export type SalesInvoiceUncheckedCreateWithoutItemsInput = { id?: string code: string total_amount: runtime.Decimal | runtime.DecimalJsLike | number | string description?: string | null created_at?: Date | string updated_at?: Date | string customer_id?: string | null account_id: string complex_id: string sales_invoice_payments?: Prisma.SalesInvoicePaymentUncheckedCreateNestedManyWithoutInvoiceInput } export type SalesInvoiceCreateOrConnectWithoutItemsInput = { where: Prisma.SalesInvoiceWhereUniqueInput create: Prisma.XOR } export type SalesInvoiceUpsertWithoutItemsInput = { update: Prisma.XOR create: Prisma.XOR where?: Prisma.SalesInvoiceWhereInput } export type SalesInvoiceUpdateToOneWithWhereWithoutItemsInput = { where?: Prisma.SalesInvoiceWhereInput data: Prisma.XOR } export type SalesInvoiceUpdateWithoutItemsInput = { id?: Prisma.StringFieldUpdateOperationsInput | string code?: Prisma.StringFieldUpdateOperationsInput | string total_amount?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string account_id?: Prisma.StringFieldUpdateOperationsInput | string complex_id?: Prisma.StringFieldUpdateOperationsInput | string customer?: Prisma.CustomerUpdateOneWithoutSales_invoicesNestedInput sales_invoice_payments?: Prisma.SalesInvoicePaymentUpdateManyWithoutInvoiceNestedInput } export type SalesInvoiceUncheckedUpdateWithoutItemsInput = { id?: Prisma.StringFieldUpdateOperationsInput | string code?: Prisma.StringFieldUpdateOperationsInput | string total_amount?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string customer_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null account_id?: Prisma.StringFieldUpdateOperationsInput | string complex_id?: Prisma.StringFieldUpdateOperationsInput | string sales_invoice_payments?: Prisma.SalesInvoicePaymentUncheckedUpdateManyWithoutInvoiceNestedInput } export type SalesInvoiceCreateWithoutSales_invoice_paymentsInput = { id?: string code: string total_amount: runtime.Decimal | runtime.DecimalJsLike | number | string description?: string | null created_at?: Date | string updated_at?: Date | string account_id: string complex_id: string customer?: Prisma.CustomerCreateNestedOneWithoutSales_invoicesInput items?: Prisma.SalesInvoiceItemCreateNestedManyWithoutInvoiceInput } export type SalesInvoiceUncheckedCreateWithoutSales_invoice_paymentsInput = { id?: string code: string total_amount: runtime.Decimal | runtime.DecimalJsLike | number | string description?: string | null created_at?: Date | string updated_at?: Date | string customer_id?: string | null account_id: string complex_id: string items?: Prisma.SalesInvoiceItemUncheckedCreateNestedManyWithoutInvoiceInput } export type SalesInvoiceCreateOrConnectWithoutSales_invoice_paymentsInput = { where: Prisma.SalesInvoiceWhereUniqueInput create: Prisma.XOR } export type SalesInvoiceUpsertWithoutSales_invoice_paymentsInput = { update: Prisma.XOR create: Prisma.XOR where?: Prisma.SalesInvoiceWhereInput } export type SalesInvoiceUpdateToOneWithWhereWithoutSales_invoice_paymentsInput = { where?: Prisma.SalesInvoiceWhereInput data: Prisma.XOR } export type SalesInvoiceUpdateWithoutSales_invoice_paymentsInput = { id?: Prisma.StringFieldUpdateOperationsInput | string code?: Prisma.StringFieldUpdateOperationsInput | string total_amount?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string account_id?: Prisma.StringFieldUpdateOperationsInput | string complex_id?: Prisma.StringFieldUpdateOperationsInput | string customer?: Prisma.CustomerUpdateOneWithoutSales_invoicesNestedInput items?: Prisma.SalesInvoiceItemUpdateManyWithoutInvoiceNestedInput } export type SalesInvoiceUncheckedUpdateWithoutSales_invoice_paymentsInput = { id?: Prisma.StringFieldUpdateOperationsInput | string code?: Prisma.StringFieldUpdateOperationsInput | string total_amount?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string customer_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null account_id?: Prisma.StringFieldUpdateOperationsInput | string complex_id?: Prisma.StringFieldUpdateOperationsInput | string items?: Prisma.SalesInvoiceItemUncheckedUpdateManyWithoutInvoiceNestedInput } export type SalesInvoiceCreateManyCustomerInput = { id?: string code: string total_amount: runtime.Decimal | runtime.DecimalJsLike | number | string description?: string | null created_at?: Date | string updated_at?: Date | string account_id: string complex_id: string } export type SalesInvoiceUpdateWithoutCustomerInput = { id?: Prisma.StringFieldUpdateOperationsInput | string code?: Prisma.StringFieldUpdateOperationsInput | string total_amount?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string account_id?: Prisma.StringFieldUpdateOperationsInput | string complex_id?: Prisma.StringFieldUpdateOperationsInput | string items?: Prisma.SalesInvoiceItemUpdateManyWithoutInvoiceNestedInput sales_invoice_payments?: Prisma.SalesInvoicePaymentUpdateManyWithoutInvoiceNestedInput } export type SalesInvoiceUncheckedUpdateWithoutCustomerInput = { id?: Prisma.StringFieldUpdateOperationsInput | string code?: Prisma.StringFieldUpdateOperationsInput | string total_amount?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string account_id?: Prisma.StringFieldUpdateOperationsInput | string complex_id?: Prisma.StringFieldUpdateOperationsInput | string items?: Prisma.SalesInvoiceItemUncheckedUpdateManyWithoutInvoiceNestedInput sales_invoice_payments?: Prisma.SalesInvoicePaymentUncheckedUpdateManyWithoutInvoiceNestedInput } export type SalesInvoiceUncheckedUpdateManyWithoutCustomerInput = { id?: Prisma.StringFieldUpdateOperationsInput | string code?: Prisma.StringFieldUpdateOperationsInput | string total_amount?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string account_id?: Prisma.StringFieldUpdateOperationsInput | string complex_id?: Prisma.StringFieldUpdateOperationsInput | string } /** * Count Type SalesInvoiceCountOutputType */ export type SalesInvoiceCountOutputType = { items: number sales_invoice_payments: number } export type SalesInvoiceCountOutputTypeSelect = { items?: boolean | SalesInvoiceCountOutputTypeCountItemsArgs sales_invoice_payments?: boolean | SalesInvoiceCountOutputTypeCountSales_invoice_paymentsArgs } /** * SalesInvoiceCountOutputType without action */ export type SalesInvoiceCountOutputTypeDefaultArgs = { /** * Select specific fields to fetch from the SalesInvoiceCountOutputType */ select?: Prisma.SalesInvoiceCountOutputTypeSelect | null } /** * SalesInvoiceCountOutputType without action */ export type SalesInvoiceCountOutputTypeCountItemsArgs = { where?: Prisma.SalesInvoiceItemWhereInput } /** * SalesInvoiceCountOutputType without action */ export type SalesInvoiceCountOutputTypeCountSales_invoice_paymentsArgs = { where?: Prisma.SalesInvoicePaymentWhereInput } export type SalesInvoiceSelect = runtime.Types.Extensions.GetSelect<{ id?: boolean code?: boolean total_amount?: boolean description?: boolean created_at?: boolean updated_at?: boolean customer_id?: boolean account_id?: boolean complex_id?: boolean customer?: boolean | Prisma.SalesInvoice$customerArgs items?: boolean | Prisma.SalesInvoice$itemsArgs sales_invoice_payments?: boolean | Prisma.SalesInvoice$sales_invoice_paymentsArgs _count?: boolean | Prisma.SalesInvoiceCountOutputTypeDefaultArgs }, ExtArgs["result"]["salesInvoice"]> export type SalesInvoiceSelectScalar = { id?: boolean code?: boolean total_amount?: boolean description?: boolean created_at?: boolean updated_at?: boolean customer_id?: boolean account_id?: boolean complex_id?: boolean } export type SalesInvoiceOmit = runtime.Types.Extensions.GetOmit<"id" | "code" | "total_amount" | "description" | "created_at" | "updated_at" | "customer_id" | "account_id" | "complex_id", ExtArgs["result"]["salesInvoice"]> export type SalesInvoiceInclude = { customer?: boolean | Prisma.SalesInvoice$customerArgs items?: boolean | Prisma.SalesInvoice$itemsArgs sales_invoice_payments?: boolean | Prisma.SalesInvoice$sales_invoice_paymentsArgs _count?: boolean | Prisma.SalesInvoiceCountOutputTypeDefaultArgs } export type $SalesInvoicePayload = { name: "SalesInvoice" objects: { customer: Prisma.$CustomerPayload | null items: Prisma.$SalesInvoiceItemPayload[] sales_invoice_payments: Prisma.$SalesInvoicePaymentPayload[] } scalars: runtime.Types.Extensions.GetPayloadResult<{ id: string code: string total_amount: runtime.Decimal description: string | null created_at: Date updated_at: Date customer_id: string | null account_id: string complex_id: string }, ExtArgs["result"]["salesInvoice"]> composites: {} } export type SalesInvoiceGetPayload = runtime.Types.Result.GetResult export type SalesInvoiceCountArgs = Omit & { select?: SalesInvoiceCountAggregateInputType | true } export interface SalesInvoiceDelegate { [K: symbol]: { types: Prisma.TypeMap['model']['SalesInvoice'], meta: { name: 'SalesInvoice' } } /** * Find zero or one SalesInvoice that matches the filter. * @param {SalesInvoiceFindUniqueArgs} args - Arguments to find a SalesInvoice * @example * // Get one SalesInvoice * const salesInvoice = await prisma.salesInvoice.findUnique({ * where: { * // ... provide filter here * } * }) */ findUnique(args: Prisma.SelectSubset>): Prisma.Prisma__SalesInvoiceClient, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find one SalesInvoice that matches the filter or throw an error with `error.code='P2025'` * if no matches were found. * @param {SalesInvoiceFindUniqueOrThrowArgs} args - Arguments to find a SalesInvoice * @example * // Get one SalesInvoice * const salesInvoice = await prisma.salesInvoice.findUniqueOrThrow({ * where: { * // ... provide filter here * } * }) */ findUniqueOrThrow(args: Prisma.SelectSubset>): Prisma.Prisma__SalesInvoiceClient, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find the first SalesInvoice 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 {SalesInvoiceFindFirstArgs} args - Arguments to find a SalesInvoice * @example * // Get one SalesInvoice * const salesInvoice = await prisma.salesInvoice.findFirst({ * where: { * // ... provide filter here * } * }) */ findFirst(args?: Prisma.SelectSubset>): Prisma.Prisma__SalesInvoiceClient, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find the first SalesInvoice 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 {SalesInvoiceFindFirstOrThrowArgs} args - Arguments to find a SalesInvoice * @example * // Get one SalesInvoice * const salesInvoice = await prisma.salesInvoice.findFirstOrThrow({ * where: { * // ... provide filter here * } * }) */ findFirstOrThrow(args?: Prisma.SelectSubset>): Prisma.Prisma__SalesInvoiceClient, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find zero or more SalesInvoices 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 {SalesInvoiceFindManyArgs} args - Arguments to filter and select certain fields only. * @example * // Get all SalesInvoices * const salesInvoices = await prisma.salesInvoice.findMany() * * // Get first 10 SalesInvoices * const salesInvoices = await prisma.salesInvoice.findMany({ take: 10 }) * * // Only select the `id` * const salesInvoiceWithIdOnly = await prisma.salesInvoice.findMany({ select: { id: true } }) * */ findMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>> /** * Create a SalesInvoice. * @param {SalesInvoiceCreateArgs} args - Arguments to create a SalesInvoice. * @example * // Create one SalesInvoice * const SalesInvoice = await prisma.salesInvoice.create({ * data: { * // ... data to create a SalesInvoice * } * }) * */ create(args: Prisma.SelectSubset>): Prisma.Prisma__SalesInvoiceClient, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Create many SalesInvoices. * @param {SalesInvoiceCreateManyArgs} args - Arguments to create many SalesInvoices. * @example * // Create many SalesInvoices * const salesInvoice = await prisma.salesInvoice.createMany({ * data: [ * // ... provide data here * ] * }) * */ createMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Delete a SalesInvoice. * @param {SalesInvoiceDeleteArgs} args - Arguments to delete one SalesInvoice. * @example * // Delete one SalesInvoice * const SalesInvoice = await prisma.salesInvoice.delete({ * where: { * // ... filter to delete one SalesInvoice * } * }) * */ delete(args: Prisma.SelectSubset>): Prisma.Prisma__SalesInvoiceClient, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Update one SalesInvoice. * @param {SalesInvoiceUpdateArgs} args - Arguments to update one SalesInvoice. * @example * // Update one SalesInvoice * const salesInvoice = await prisma.salesInvoice.update({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ update(args: Prisma.SelectSubset>): Prisma.Prisma__SalesInvoiceClient, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Delete zero or more SalesInvoices. * @param {SalesInvoiceDeleteManyArgs} args - Arguments to filter SalesInvoices to delete. * @example * // Delete a few SalesInvoices * const { count } = await prisma.salesInvoice.deleteMany({ * where: { * // ... provide filter here * } * }) * */ deleteMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Update zero or more SalesInvoices. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {SalesInvoiceUpdateManyArgs} args - Arguments to update one or more rows. * @example * // Update many SalesInvoices * const salesInvoice = await prisma.salesInvoice.updateMany({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ updateMany(args: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Create or update one SalesInvoice. * @param {SalesInvoiceUpsertArgs} args - Arguments to update or create a SalesInvoice. * @example * // Update or create a SalesInvoice * const salesInvoice = await prisma.salesInvoice.upsert({ * create: { * // ... data to create a SalesInvoice * }, * update: { * // ... in case it already exists, update * }, * where: { * // ... the filter for the SalesInvoice we want to update * } * }) */ upsert(args: Prisma.SelectSubset>): Prisma.Prisma__SalesInvoiceClient, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Count the number of SalesInvoices. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {SalesInvoiceCountArgs} args - Arguments to filter SalesInvoices to count. * @example * // Count the number of SalesInvoices * const count = await prisma.salesInvoice.count({ * where: { * // ... the filter for the SalesInvoices 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 SalesInvoice. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {SalesInvoiceAggregateArgs} 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 SalesInvoice. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {SalesInvoiceGroupByArgs} 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 SalesInvoiceGroupByArgs, HasSelectOrTake extends Prisma.Or< Prisma.Extends<'skip', Prisma.Keys>, Prisma.Extends<'take', Prisma.Keys> >, OrderByArg extends Prisma.True extends HasSelectOrTake ? { orderBy: SalesInvoiceGroupByArgs['orderBy'] } : { orderBy?: SalesInvoiceGroupByArgs['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 ? GetSalesInvoiceGroupByPayload : Prisma.PrismaPromise /** * Fields of the SalesInvoice model */ readonly fields: SalesInvoiceFieldRefs; } /** * The delegate class that acts as a "Promise-like" for SalesInvoice. * 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__SalesInvoiceClient extends Prisma.PrismaPromise { readonly [Symbol.toStringTag]: "PrismaPromise" customer = {}>(args?: Prisma.Subset>): Prisma.Prisma__CustomerClient, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> items = {}>(args?: Prisma.Subset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions> | Null> sales_invoice_payments = {}>(args?: Prisma.Subset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions> | Null> /** * Attaches callbacks for the resolution and/or rejection of the Promise. * @param onfulfilled The callback to execute when the Promise is resolved. * @param onrejected The callback to execute when the Promise is rejected. * @returns A Promise for the completion of which ever callback is executed. */ then(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 SalesInvoice model */ export interface SalesInvoiceFieldRefs { readonly id: Prisma.FieldRef<"SalesInvoice", 'String'> readonly code: Prisma.FieldRef<"SalesInvoice", 'String'> readonly total_amount: Prisma.FieldRef<"SalesInvoice", 'Decimal'> readonly description: Prisma.FieldRef<"SalesInvoice", 'String'> readonly created_at: Prisma.FieldRef<"SalesInvoice", 'DateTime'> readonly updated_at: Prisma.FieldRef<"SalesInvoice", 'DateTime'> readonly customer_id: Prisma.FieldRef<"SalesInvoice", 'String'> readonly account_id: Prisma.FieldRef<"SalesInvoice", 'String'> readonly complex_id: Prisma.FieldRef<"SalesInvoice", 'String'> } // Custom InputTypes /** * SalesInvoice findUnique */ export type SalesInvoiceFindUniqueArgs = { /** * Select specific fields to fetch from the SalesInvoice */ select?: Prisma.SalesInvoiceSelect | null /** * Omit specific fields from the SalesInvoice */ omit?: Prisma.SalesInvoiceOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.SalesInvoiceInclude | null /** * Filter, which SalesInvoice to fetch. */ where: Prisma.SalesInvoiceWhereUniqueInput } /** * SalesInvoice findUniqueOrThrow */ export type SalesInvoiceFindUniqueOrThrowArgs = { /** * Select specific fields to fetch from the SalesInvoice */ select?: Prisma.SalesInvoiceSelect | null /** * Omit specific fields from the SalesInvoice */ omit?: Prisma.SalesInvoiceOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.SalesInvoiceInclude | null /** * Filter, which SalesInvoice to fetch. */ where: Prisma.SalesInvoiceWhereUniqueInput } /** * SalesInvoice findFirst */ export type SalesInvoiceFindFirstArgs = { /** * Select specific fields to fetch from the SalesInvoice */ select?: Prisma.SalesInvoiceSelect | null /** * Omit specific fields from the SalesInvoice */ omit?: Prisma.SalesInvoiceOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.SalesInvoiceInclude | null /** * Filter, which SalesInvoice to fetch. */ where?: Prisma.SalesInvoiceWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of SalesInvoices to fetch. */ orderBy?: Prisma.SalesInvoiceOrderByWithRelationInput | Prisma.SalesInvoiceOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for SalesInvoices. */ cursor?: Prisma.SalesInvoiceWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` SalesInvoices 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` SalesInvoices. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of SalesInvoices. */ distinct?: Prisma.SalesInvoiceScalarFieldEnum | Prisma.SalesInvoiceScalarFieldEnum[] } /** * SalesInvoice findFirstOrThrow */ export type SalesInvoiceFindFirstOrThrowArgs = { /** * Select specific fields to fetch from the SalesInvoice */ select?: Prisma.SalesInvoiceSelect | null /** * Omit specific fields from the SalesInvoice */ omit?: Prisma.SalesInvoiceOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.SalesInvoiceInclude | null /** * Filter, which SalesInvoice to fetch. */ where?: Prisma.SalesInvoiceWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of SalesInvoices to fetch. */ orderBy?: Prisma.SalesInvoiceOrderByWithRelationInput | Prisma.SalesInvoiceOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for SalesInvoices. */ cursor?: Prisma.SalesInvoiceWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` SalesInvoices 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` SalesInvoices. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of SalesInvoices. */ distinct?: Prisma.SalesInvoiceScalarFieldEnum | Prisma.SalesInvoiceScalarFieldEnum[] } /** * SalesInvoice findMany */ export type SalesInvoiceFindManyArgs = { /** * Select specific fields to fetch from the SalesInvoice */ select?: Prisma.SalesInvoiceSelect | null /** * Omit specific fields from the SalesInvoice */ omit?: Prisma.SalesInvoiceOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.SalesInvoiceInclude | null /** * Filter, which SalesInvoices to fetch. */ where?: Prisma.SalesInvoiceWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of SalesInvoices to fetch. */ orderBy?: Prisma.SalesInvoiceOrderByWithRelationInput | Prisma.SalesInvoiceOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for listing SalesInvoices. */ cursor?: Prisma.SalesInvoiceWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` SalesInvoices 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` SalesInvoices. */ skip?: number distinct?: Prisma.SalesInvoiceScalarFieldEnum | Prisma.SalesInvoiceScalarFieldEnum[] } /** * SalesInvoice create */ export type SalesInvoiceCreateArgs = { /** * Select specific fields to fetch from the SalesInvoice */ select?: Prisma.SalesInvoiceSelect | null /** * Omit specific fields from the SalesInvoice */ omit?: Prisma.SalesInvoiceOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.SalesInvoiceInclude | null /** * The data needed to create a SalesInvoice. */ data: Prisma.XOR } /** * SalesInvoice createMany */ export type SalesInvoiceCreateManyArgs = { /** * The data used to create many SalesInvoices. */ data: Prisma.SalesInvoiceCreateManyInput | Prisma.SalesInvoiceCreateManyInput[] skipDuplicates?: boolean } /** * SalesInvoice update */ export type SalesInvoiceUpdateArgs = { /** * Select specific fields to fetch from the SalesInvoice */ select?: Prisma.SalesInvoiceSelect | null /** * Omit specific fields from the SalesInvoice */ omit?: Prisma.SalesInvoiceOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.SalesInvoiceInclude | null /** * The data needed to update a SalesInvoice. */ data: Prisma.XOR /** * Choose, which SalesInvoice to update. */ where: Prisma.SalesInvoiceWhereUniqueInput } /** * SalesInvoice updateMany */ export type SalesInvoiceUpdateManyArgs = { /** * The data used to update SalesInvoices. */ data: Prisma.XOR /** * Filter which SalesInvoices to update */ where?: Prisma.SalesInvoiceWhereInput /** * Limit how many SalesInvoices to update. */ limit?: number } /** * SalesInvoice upsert */ export type SalesInvoiceUpsertArgs = { /** * Select specific fields to fetch from the SalesInvoice */ select?: Prisma.SalesInvoiceSelect | null /** * Omit specific fields from the SalesInvoice */ omit?: Prisma.SalesInvoiceOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.SalesInvoiceInclude | null /** * The filter to search for the SalesInvoice to update in case it exists. */ where: Prisma.SalesInvoiceWhereUniqueInput /** * In case the SalesInvoice found by the `where` argument doesn't exist, create a new SalesInvoice with this data. */ create: Prisma.XOR /** * In case the SalesInvoice was found with the provided `where` argument, update it with this data. */ update: Prisma.XOR } /** * SalesInvoice delete */ export type SalesInvoiceDeleteArgs = { /** * Select specific fields to fetch from the SalesInvoice */ select?: Prisma.SalesInvoiceSelect | null /** * Omit specific fields from the SalesInvoice */ omit?: Prisma.SalesInvoiceOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.SalesInvoiceInclude | null /** * Filter which SalesInvoice to delete. */ where: Prisma.SalesInvoiceWhereUniqueInput } /** * SalesInvoice deleteMany */ export type SalesInvoiceDeleteManyArgs = { /** * Filter which SalesInvoices to delete */ where?: Prisma.SalesInvoiceWhereInput /** * Limit how many SalesInvoices to delete. */ limit?: number } /** * SalesInvoice.customer */ export type SalesInvoice$customerArgs = { /** * Select specific fields to fetch from the Customer */ select?: Prisma.CustomerSelect | null /** * Omit specific fields from the Customer */ omit?: Prisma.CustomerOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.CustomerInclude | null where?: Prisma.CustomerWhereInput } /** * SalesInvoice.items */ export type SalesInvoice$itemsArgs = { /** * 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 where?: Prisma.SalesInvoiceItemWhereInput orderBy?: Prisma.SalesInvoiceItemOrderByWithRelationInput | Prisma.SalesInvoiceItemOrderByWithRelationInput[] cursor?: Prisma.SalesInvoiceItemWhereUniqueInput take?: number skip?: number distinct?: Prisma.SalesInvoiceItemScalarFieldEnum | Prisma.SalesInvoiceItemScalarFieldEnum[] } /** * SalesInvoice.sales_invoice_payments */ export type SalesInvoice$sales_invoice_paymentsArgs = { /** * Select specific fields to fetch from the SalesInvoicePayment */ select?: Prisma.SalesInvoicePaymentSelect | null /** * Omit specific fields from the SalesInvoicePayment */ omit?: Prisma.SalesInvoicePaymentOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.SalesInvoicePaymentInclude | null where?: Prisma.SalesInvoicePaymentWhereInput orderBy?: Prisma.SalesInvoicePaymentOrderByWithRelationInput | Prisma.SalesInvoicePaymentOrderByWithRelationInput[] cursor?: Prisma.SalesInvoicePaymentWhereUniqueInput take?: number skip?: number distinct?: Prisma.SalesInvoicePaymentScalarFieldEnum | Prisma.SalesInvoicePaymentScalarFieldEnum[] } /** * SalesInvoice without action */ export type SalesInvoiceDefaultArgs = { /** * Select specific fields to fetch from the SalesInvoice */ select?: Prisma.SalesInvoiceSelect | null /** * Omit specific fields from the SalesInvoice */ omit?: Prisma.SalesInvoiceOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.SalesInvoiceInclude | null }