/* !!! This is code generated by Prisma. Do not edit directly. !!! */ /* eslint-disable */ // biome-ignore-all lint: generated file // @ts-nocheck /* * This file exports the `DataConnection` model and its related types. * * 🟢 You can import this file directly. */ import type * as runtime from "@prisma/client/runtime/client" import type * as $Enums from "../enums.ts" import type * as Prisma from "../internal/prismaNamespace.ts" /** * Model DataConnection * */ export type DataConnectionModel = runtime.Types.Result.DefaultSelection export type AggregateDataConnection = { _count: DataConnectionCountAggregateOutputType | null _min: DataConnectionMinAggregateOutputType | null _max: DataConnectionMaxAggregateOutputType | null } export type DataConnectionMinAggregateOutputType = { id: string | null createdAt: Date | null updatedAt: Date | null tenantId: string | null name: string | null type: string | null config: string | null description: string | null } export type DataConnectionMaxAggregateOutputType = { id: string | null createdAt: Date | null updatedAt: Date | null tenantId: string | null name: string | null type: string | null config: string | null description: string | null } export type DataConnectionCountAggregateOutputType = { id: number createdAt: number updatedAt: number tenantId: number name: number type: number config: number description: number _all: number } export type DataConnectionMinAggregateInputType = { id?: true createdAt?: true updatedAt?: true tenantId?: true name?: true type?: true config?: true description?: true } export type DataConnectionMaxAggregateInputType = { id?: true createdAt?: true updatedAt?: true tenantId?: true name?: true type?: true config?: true description?: true } export type DataConnectionCountAggregateInputType = { id?: true createdAt?: true updatedAt?: true tenantId?: true name?: true type?: true config?: true description?: true _all?: true } export type DataConnectionAggregateArgs = { /** * Filter which DataConnection to aggregate. */ where?: Prisma.DataConnectionWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of DataConnections to fetch. */ orderBy?: Prisma.DataConnectionOrderByWithRelationInput | Prisma.DataConnectionOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the start position */ cursor?: Prisma.DataConnectionWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` DataConnections 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` DataConnections. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Count returned DataConnections **/ _count?: true | DataConnectionCountAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the minimum value **/ _min?: DataConnectionMinAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the maximum value **/ _max?: DataConnectionMaxAggregateInputType } export type GetDataConnectionAggregateType = { [P in keyof T & keyof AggregateDataConnection]: P extends '_count' | 'count' ? T[P] extends true ? number : Prisma.GetScalarType : Prisma.GetScalarType } export type DataConnectionGroupByArgs = { where?: Prisma.DataConnectionWhereInput orderBy?: Prisma.DataConnectionOrderByWithAggregationInput | Prisma.DataConnectionOrderByWithAggregationInput[] by: Prisma.DataConnectionScalarFieldEnum[] | Prisma.DataConnectionScalarFieldEnum having?: Prisma.DataConnectionScalarWhereWithAggregatesInput take?: number skip?: number _count?: DataConnectionCountAggregateInputType | true _min?: DataConnectionMinAggregateInputType _max?: DataConnectionMaxAggregateInputType } export type DataConnectionGroupByOutputType = { id: string createdAt: Date updatedAt: Date tenantId: string name: string type: string config: string description: string | null _count: DataConnectionCountAggregateOutputType | null _min: DataConnectionMinAggregateOutputType | null _max: DataConnectionMaxAggregateOutputType | null } export type GetDataConnectionGroupByPayload = Prisma.PrismaPromise< Array< Prisma.PickEnumerable & { [P in ((keyof T) & (keyof DataConnectionGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : Prisma.GetScalarType : Prisma.GetScalarType } > > export type DataConnectionWhereInput = { AND?: Prisma.DataConnectionWhereInput | Prisma.DataConnectionWhereInput[] OR?: Prisma.DataConnectionWhereInput[] NOT?: Prisma.DataConnectionWhereInput | Prisma.DataConnectionWhereInput[] id?: Prisma.StringFilter<"DataConnection"> | string createdAt?: Prisma.DateTimeFilter<"DataConnection"> | Date | string updatedAt?: Prisma.DateTimeFilter<"DataConnection"> | Date | string tenantId?: Prisma.StringFilter<"DataConnection"> | string name?: Prisma.StringFilter<"DataConnection"> | string type?: Prisma.StringFilter<"DataConnection"> | string config?: Prisma.StringFilter<"DataConnection"> | string description?: Prisma.StringNullableFilter<"DataConnection"> | string | null tenant?: Prisma.XOR } export type DataConnectionOrderByWithRelationInput = { id?: Prisma.SortOrder createdAt?: Prisma.SortOrder updatedAt?: Prisma.SortOrder tenantId?: Prisma.SortOrder name?: Prisma.SortOrder type?: Prisma.SortOrder config?: Prisma.SortOrder description?: Prisma.SortOrderInput | Prisma.SortOrder tenant?: Prisma.TenantOrderByWithRelationInput } export type DataConnectionWhereUniqueInput = Prisma.AtLeast<{ id?: string AND?: Prisma.DataConnectionWhereInput | Prisma.DataConnectionWhereInput[] OR?: Prisma.DataConnectionWhereInput[] NOT?: Prisma.DataConnectionWhereInput | Prisma.DataConnectionWhereInput[] createdAt?: Prisma.DateTimeFilter<"DataConnection"> | Date | string updatedAt?: Prisma.DateTimeFilter<"DataConnection"> | Date | string tenantId?: Prisma.StringFilter<"DataConnection"> | string name?: Prisma.StringFilter<"DataConnection"> | string type?: Prisma.StringFilter<"DataConnection"> | string config?: Prisma.StringFilter<"DataConnection"> | string description?: Prisma.StringNullableFilter<"DataConnection"> | string | null tenant?: Prisma.XOR }, "id"> export type DataConnectionOrderByWithAggregationInput = { id?: Prisma.SortOrder createdAt?: Prisma.SortOrder updatedAt?: Prisma.SortOrder tenantId?: Prisma.SortOrder name?: Prisma.SortOrder type?: Prisma.SortOrder config?: Prisma.SortOrder description?: Prisma.SortOrderInput | Prisma.SortOrder _count?: Prisma.DataConnectionCountOrderByAggregateInput _max?: Prisma.DataConnectionMaxOrderByAggregateInput _min?: Prisma.DataConnectionMinOrderByAggregateInput } export type DataConnectionScalarWhereWithAggregatesInput = { AND?: Prisma.DataConnectionScalarWhereWithAggregatesInput | Prisma.DataConnectionScalarWhereWithAggregatesInput[] OR?: Prisma.DataConnectionScalarWhereWithAggregatesInput[] NOT?: Prisma.DataConnectionScalarWhereWithAggregatesInput | Prisma.DataConnectionScalarWhereWithAggregatesInput[] id?: Prisma.StringWithAggregatesFilter<"DataConnection"> | string createdAt?: Prisma.DateTimeWithAggregatesFilter<"DataConnection"> | Date | string updatedAt?: Prisma.DateTimeWithAggregatesFilter<"DataConnection"> | Date | string tenantId?: Prisma.StringWithAggregatesFilter<"DataConnection"> | string name?: Prisma.StringWithAggregatesFilter<"DataConnection"> | string type?: Prisma.StringWithAggregatesFilter<"DataConnection"> | string config?: Prisma.StringWithAggregatesFilter<"DataConnection"> | string description?: Prisma.StringNullableWithAggregatesFilter<"DataConnection"> | string | null } export type DataConnectionCreateInput = { id?: string createdAt?: Date | string updatedAt?: Date | string name: string type: string config?: string description?: string | null tenant: Prisma.TenantCreateNestedOneWithoutDataConnectionsInput } export type DataConnectionUncheckedCreateInput = { id?: string createdAt?: Date | string updatedAt?: Date | string tenantId: string name: string type: string config?: string description?: string | null } export type DataConnectionUpdateInput = { id?: Prisma.StringFieldUpdateOperationsInput | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string name?: Prisma.StringFieldUpdateOperationsInput | string type?: Prisma.StringFieldUpdateOperationsInput | string config?: Prisma.StringFieldUpdateOperationsInput | string description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null tenant?: Prisma.TenantUpdateOneRequiredWithoutDataConnectionsNestedInput } export type DataConnectionUncheckedUpdateInput = { id?: Prisma.StringFieldUpdateOperationsInput | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string tenantId?: Prisma.StringFieldUpdateOperationsInput | string name?: Prisma.StringFieldUpdateOperationsInput | string type?: Prisma.StringFieldUpdateOperationsInput | string config?: Prisma.StringFieldUpdateOperationsInput | string description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null } export type DataConnectionCreateManyInput = { id?: string createdAt?: Date | string updatedAt?: Date | string tenantId: string name: string type: string config?: string description?: string | null } export type DataConnectionUpdateManyMutationInput = { id?: Prisma.StringFieldUpdateOperationsInput | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string name?: Prisma.StringFieldUpdateOperationsInput | string type?: Prisma.StringFieldUpdateOperationsInput | string config?: Prisma.StringFieldUpdateOperationsInput | string description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null } export type DataConnectionUncheckedUpdateManyInput = { id?: Prisma.StringFieldUpdateOperationsInput | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string tenantId?: Prisma.StringFieldUpdateOperationsInput | string name?: Prisma.StringFieldUpdateOperationsInput | string type?: Prisma.StringFieldUpdateOperationsInput | string config?: Prisma.StringFieldUpdateOperationsInput | string description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null } export type DataConnectionListRelationFilter = { every?: Prisma.DataConnectionWhereInput some?: Prisma.DataConnectionWhereInput none?: Prisma.DataConnectionWhereInput } export type DataConnectionOrderByRelationAggregateInput = { _count?: Prisma.SortOrder } export type DataConnectionCountOrderByAggregateInput = { id?: Prisma.SortOrder createdAt?: Prisma.SortOrder updatedAt?: Prisma.SortOrder tenantId?: Prisma.SortOrder name?: Prisma.SortOrder type?: Prisma.SortOrder config?: Prisma.SortOrder description?: Prisma.SortOrder } export type DataConnectionMaxOrderByAggregateInput = { id?: Prisma.SortOrder createdAt?: Prisma.SortOrder updatedAt?: Prisma.SortOrder tenantId?: Prisma.SortOrder name?: Prisma.SortOrder type?: Prisma.SortOrder config?: Prisma.SortOrder description?: Prisma.SortOrder } export type DataConnectionMinOrderByAggregateInput = { id?: Prisma.SortOrder createdAt?: Prisma.SortOrder updatedAt?: Prisma.SortOrder tenantId?: Prisma.SortOrder name?: Prisma.SortOrder type?: Prisma.SortOrder config?: Prisma.SortOrder description?: Prisma.SortOrder } export type DataConnectionCreateNestedManyWithoutTenantInput = { create?: Prisma.XOR | Prisma.DataConnectionCreateWithoutTenantInput[] | Prisma.DataConnectionUncheckedCreateWithoutTenantInput[] connectOrCreate?: Prisma.DataConnectionCreateOrConnectWithoutTenantInput | Prisma.DataConnectionCreateOrConnectWithoutTenantInput[] createMany?: Prisma.DataConnectionCreateManyTenantInputEnvelope connect?: Prisma.DataConnectionWhereUniqueInput | Prisma.DataConnectionWhereUniqueInput[] } export type DataConnectionUncheckedCreateNestedManyWithoutTenantInput = { create?: Prisma.XOR | Prisma.DataConnectionCreateWithoutTenantInput[] | Prisma.DataConnectionUncheckedCreateWithoutTenantInput[] connectOrCreate?: Prisma.DataConnectionCreateOrConnectWithoutTenantInput | Prisma.DataConnectionCreateOrConnectWithoutTenantInput[] createMany?: Prisma.DataConnectionCreateManyTenantInputEnvelope connect?: Prisma.DataConnectionWhereUniqueInput | Prisma.DataConnectionWhereUniqueInput[] } export type DataConnectionUpdateManyWithoutTenantNestedInput = { create?: Prisma.XOR | Prisma.DataConnectionCreateWithoutTenantInput[] | Prisma.DataConnectionUncheckedCreateWithoutTenantInput[] connectOrCreate?: Prisma.DataConnectionCreateOrConnectWithoutTenantInput | Prisma.DataConnectionCreateOrConnectWithoutTenantInput[] upsert?: Prisma.DataConnectionUpsertWithWhereUniqueWithoutTenantInput | Prisma.DataConnectionUpsertWithWhereUniqueWithoutTenantInput[] createMany?: Prisma.DataConnectionCreateManyTenantInputEnvelope set?: Prisma.DataConnectionWhereUniqueInput | Prisma.DataConnectionWhereUniqueInput[] disconnect?: Prisma.DataConnectionWhereUniqueInput | Prisma.DataConnectionWhereUniqueInput[] delete?: Prisma.DataConnectionWhereUniqueInput | Prisma.DataConnectionWhereUniqueInput[] connect?: Prisma.DataConnectionWhereUniqueInput | Prisma.DataConnectionWhereUniqueInput[] update?: Prisma.DataConnectionUpdateWithWhereUniqueWithoutTenantInput | Prisma.DataConnectionUpdateWithWhereUniqueWithoutTenantInput[] updateMany?: Prisma.DataConnectionUpdateManyWithWhereWithoutTenantInput | Prisma.DataConnectionUpdateManyWithWhereWithoutTenantInput[] deleteMany?: Prisma.DataConnectionScalarWhereInput | Prisma.DataConnectionScalarWhereInput[] } export type DataConnectionUncheckedUpdateManyWithoutTenantNestedInput = { create?: Prisma.XOR | Prisma.DataConnectionCreateWithoutTenantInput[] | Prisma.DataConnectionUncheckedCreateWithoutTenantInput[] connectOrCreate?: Prisma.DataConnectionCreateOrConnectWithoutTenantInput | Prisma.DataConnectionCreateOrConnectWithoutTenantInput[] upsert?: Prisma.DataConnectionUpsertWithWhereUniqueWithoutTenantInput | Prisma.DataConnectionUpsertWithWhereUniqueWithoutTenantInput[] createMany?: Prisma.DataConnectionCreateManyTenantInputEnvelope set?: Prisma.DataConnectionWhereUniqueInput | Prisma.DataConnectionWhereUniqueInput[] disconnect?: Prisma.DataConnectionWhereUniqueInput | Prisma.DataConnectionWhereUniqueInput[] delete?: Prisma.DataConnectionWhereUniqueInput | Prisma.DataConnectionWhereUniqueInput[] connect?: Prisma.DataConnectionWhereUniqueInput | Prisma.DataConnectionWhereUniqueInput[] update?: Prisma.DataConnectionUpdateWithWhereUniqueWithoutTenantInput | Prisma.DataConnectionUpdateWithWhereUniqueWithoutTenantInput[] updateMany?: Prisma.DataConnectionUpdateManyWithWhereWithoutTenantInput | Prisma.DataConnectionUpdateManyWithWhereWithoutTenantInput[] deleteMany?: Prisma.DataConnectionScalarWhereInput | Prisma.DataConnectionScalarWhereInput[] } export type DataConnectionCreateWithoutTenantInput = { id?: string createdAt?: Date | string updatedAt?: Date | string name: string type: string config?: string description?: string | null } export type DataConnectionUncheckedCreateWithoutTenantInput = { id?: string createdAt?: Date | string updatedAt?: Date | string name: string type: string config?: string description?: string | null } export type DataConnectionCreateOrConnectWithoutTenantInput = { where: Prisma.DataConnectionWhereUniqueInput create: Prisma.XOR } export type DataConnectionCreateManyTenantInputEnvelope = { data: Prisma.DataConnectionCreateManyTenantInput | Prisma.DataConnectionCreateManyTenantInput[] skipDuplicates?: boolean } export type DataConnectionUpsertWithWhereUniqueWithoutTenantInput = { where: Prisma.DataConnectionWhereUniqueInput update: Prisma.XOR create: Prisma.XOR } export type DataConnectionUpdateWithWhereUniqueWithoutTenantInput = { where: Prisma.DataConnectionWhereUniqueInput data: Prisma.XOR } export type DataConnectionUpdateManyWithWhereWithoutTenantInput = { where: Prisma.DataConnectionScalarWhereInput data: Prisma.XOR } export type DataConnectionScalarWhereInput = { AND?: Prisma.DataConnectionScalarWhereInput | Prisma.DataConnectionScalarWhereInput[] OR?: Prisma.DataConnectionScalarWhereInput[] NOT?: Prisma.DataConnectionScalarWhereInput | Prisma.DataConnectionScalarWhereInput[] id?: Prisma.StringFilter<"DataConnection"> | string createdAt?: Prisma.DateTimeFilter<"DataConnection"> | Date | string updatedAt?: Prisma.DateTimeFilter<"DataConnection"> | Date | string tenantId?: Prisma.StringFilter<"DataConnection"> | string name?: Prisma.StringFilter<"DataConnection"> | string type?: Prisma.StringFilter<"DataConnection"> | string config?: Prisma.StringFilter<"DataConnection"> | string description?: Prisma.StringNullableFilter<"DataConnection"> | string | null } export type DataConnectionCreateManyTenantInput = { id?: string createdAt?: Date | string updatedAt?: Date | string name: string type: string config?: string description?: string | null } export type DataConnectionUpdateWithoutTenantInput = { id?: Prisma.StringFieldUpdateOperationsInput | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string name?: Prisma.StringFieldUpdateOperationsInput | string type?: Prisma.StringFieldUpdateOperationsInput | string config?: Prisma.StringFieldUpdateOperationsInput | string description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null } export type DataConnectionUncheckedUpdateWithoutTenantInput = { id?: Prisma.StringFieldUpdateOperationsInput | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string name?: Prisma.StringFieldUpdateOperationsInput | string type?: Prisma.StringFieldUpdateOperationsInput | string config?: Prisma.StringFieldUpdateOperationsInput | string description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null } export type DataConnectionUncheckedUpdateManyWithoutTenantInput = { id?: Prisma.StringFieldUpdateOperationsInput | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string name?: Prisma.StringFieldUpdateOperationsInput | string type?: Prisma.StringFieldUpdateOperationsInput | string config?: Prisma.StringFieldUpdateOperationsInput | string description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null } export type DataConnectionSelect = runtime.Types.Extensions.GetSelect<{ id?: boolean createdAt?: boolean updatedAt?: boolean tenantId?: boolean name?: boolean type?: boolean config?: boolean description?: boolean tenant?: boolean | Prisma.TenantDefaultArgs }, ExtArgs["result"]["dataConnection"]> export type DataConnectionSelectCreateManyAndReturn = runtime.Types.Extensions.GetSelect<{ id?: boolean createdAt?: boolean updatedAt?: boolean tenantId?: boolean name?: boolean type?: boolean config?: boolean description?: boolean tenant?: boolean | Prisma.TenantDefaultArgs }, ExtArgs["result"]["dataConnection"]> export type DataConnectionSelectUpdateManyAndReturn = runtime.Types.Extensions.GetSelect<{ id?: boolean createdAt?: boolean updatedAt?: boolean tenantId?: boolean name?: boolean type?: boolean config?: boolean description?: boolean tenant?: boolean | Prisma.TenantDefaultArgs }, ExtArgs["result"]["dataConnection"]> export type DataConnectionSelectScalar = { id?: boolean createdAt?: boolean updatedAt?: boolean tenantId?: boolean name?: boolean type?: boolean config?: boolean description?: boolean } export type DataConnectionOmit = runtime.Types.Extensions.GetOmit<"id" | "createdAt" | "updatedAt" | "tenantId" | "name" | "type" | "config" | "description", ExtArgs["result"]["dataConnection"]> export type DataConnectionInclude = { tenant?: boolean | Prisma.TenantDefaultArgs } export type DataConnectionIncludeCreateManyAndReturn = { tenant?: boolean | Prisma.TenantDefaultArgs } export type DataConnectionIncludeUpdateManyAndReturn = { tenant?: boolean | Prisma.TenantDefaultArgs } export type $DataConnectionPayload = { name: "DataConnection" objects: { tenant: Prisma.$TenantPayload } scalars: runtime.Types.Extensions.GetPayloadResult<{ id: string createdAt: Date updatedAt: Date tenantId: string name: string type: string config: string description: string | null }, ExtArgs["result"]["dataConnection"]> composites: {} } export type DataConnectionGetPayload = runtime.Types.Result.GetResult export type DataConnectionCountArgs = Omit & { select?: DataConnectionCountAggregateInputType | true } export interface DataConnectionDelegate { [K: symbol]: { types: Prisma.TypeMap['model']['DataConnection'], meta: { name: 'DataConnection' } } /** * Find zero or one DataConnection that matches the filter. * @param {DataConnectionFindUniqueArgs} args - Arguments to find a DataConnection * @example * // Get one DataConnection * const dataConnection = await prisma.dataConnection.findUnique({ * where: { * // ... provide filter here * } * }) */ findUnique(args: Prisma.SelectSubset>): Prisma.Prisma__DataConnectionClient, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find one DataConnection that matches the filter or throw an error with `error.code='P2025'` * if no matches were found. * @param {DataConnectionFindUniqueOrThrowArgs} args - Arguments to find a DataConnection * @example * // Get one DataConnection * const dataConnection = await prisma.dataConnection.findUniqueOrThrow({ * where: { * // ... provide filter here * } * }) */ findUniqueOrThrow(args: Prisma.SelectSubset>): Prisma.Prisma__DataConnectionClient, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find the first DataConnection 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 {DataConnectionFindFirstArgs} args - Arguments to find a DataConnection * @example * // Get one DataConnection * const dataConnection = await prisma.dataConnection.findFirst({ * where: { * // ... provide filter here * } * }) */ findFirst(args?: Prisma.SelectSubset>): Prisma.Prisma__DataConnectionClient, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find the first DataConnection 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 {DataConnectionFindFirstOrThrowArgs} args - Arguments to find a DataConnection * @example * // Get one DataConnection * const dataConnection = await prisma.dataConnection.findFirstOrThrow({ * where: { * // ... provide filter here * } * }) */ findFirstOrThrow(args?: Prisma.SelectSubset>): Prisma.Prisma__DataConnectionClient, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find zero or more DataConnections 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 {DataConnectionFindManyArgs} args - Arguments to filter and select certain fields only. * @example * // Get all DataConnections * const dataConnections = await prisma.dataConnection.findMany() * * // Get first 10 DataConnections * const dataConnections = await prisma.dataConnection.findMany({ take: 10 }) * * // Only select the `id` * const dataConnectionWithIdOnly = await prisma.dataConnection.findMany({ select: { id: true } }) * */ findMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>> /** * Create a DataConnection. * @param {DataConnectionCreateArgs} args - Arguments to create a DataConnection. * @example * // Create one DataConnection * const DataConnection = await prisma.dataConnection.create({ * data: { * // ... data to create a DataConnection * } * }) * */ create(args: Prisma.SelectSubset>): Prisma.Prisma__DataConnectionClient, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Create many DataConnections. * @param {DataConnectionCreateManyArgs} args - Arguments to create many DataConnections. * @example * // Create many DataConnections * const dataConnection = await prisma.dataConnection.createMany({ * data: [ * // ... provide data here * ] * }) * */ createMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Create many DataConnections and returns the data saved in the database. * @param {DataConnectionCreateManyAndReturnArgs} args - Arguments to create many DataConnections. * @example * // Create many DataConnections * const dataConnection = await prisma.dataConnection.createManyAndReturn({ * data: [ * // ... provide data here * ] * }) * * // Create many DataConnections and only return the `id` * const dataConnectionWithIdOnly = await prisma.dataConnection.createManyAndReturn({ * select: { id: true }, * data: [ * // ... provide data here * ] * }) * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * */ createManyAndReturn(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "createManyAndReturn", GlobalOmitOptions>> /** * Delete a DataConnection. * @param {DataConnectionDeleteArgs} args - Arguments to delete one DataConnection. * @example * // Delete one DataConnection * const DataConnection = await prisma.dataConnection.delete({ * where: { * // ... filter to delete one DataConnection * } * }) * */ delete(args: Prisma.SelectSubset>): Prisma.Prisma__DataConnectionClient, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Update one DataConnection. * @param {DataConnectionUpdateArgs} args - Arguments to update one DataConnection. * @example * // Update one DataConnection * const dataConnection = await prisma.dataConnection.update({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ update(args: Prisma.SelectSubset>): Prisma.Prisma__DataConnectionClient, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Delete zero or more DataConnections. * @param {DataConnectionDeleteManyArgs} args - Arguments to filter DataConnections to delete. * @example * // Delete a few DataConnections * const { count } = await prisma.dataConnection.deleteMany({ * where: { * // ... provide filter here * } * }) * */ deleteMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Update zero or more DataConnections. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {DataConnectionUpdateManyArgs} args - Arguments to update one or more rows. * @example * // Update many DataConnections * const dataConnection = await prisma.dataConnection.updateMany({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ updateMany(args: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Update zero or more DataConnections and returns the data updated in the database. * @param {DataConnectionUpdateManyAndReturnArgs} args - Arguments to update many DataConnections. * @example * // Update many DataConnections * const dataConnection = await prisma.dataConnection.updateManyAndReturn({ * where: { * // ... provide filter here * }, * data: [ * // ... provide data here * ] * }) * * // Update zero or more DataConnections and only return the `id` * const dataConnectionWithIdOnly = await prisma.dataConnection.updateManyAndReturn({ * select: { id: true }, * where: { * // ... provide filter here * }, * data: [ * // ... provide data here * ] * }) * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * */ updateManyAndReturn(args: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "updateManyAndReturn", GlobalOmitOptions>> /** * Create or update one DataConnection. * @param {DataConnectionUpsertArgs} args - Arguments to update or create a DataConnection. * @example * // Update or create a DataConnection * const dataConnection = await prisma.dataConnection.upsert({ * create: { * // ... data to create a DataConnection * }, * update: { * // ... in case it already exists, update * }, * where: { * // ... the filter for the DataConnection we want to update * } * }) */ upsert(args: Prisma.SelectSubset>): Prisma.Prisma__DataConnectionClient, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Count the number of DataConnections. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {DataConnectionCountArgs} args - Arguments to filter DataConnections to count. * @example * // Count the number of DataConnections * const count = await prisma.dataConnection.count({ * where: { * // ... the filter for the DataConnections 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 DataConnection. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {DataConnectionAggregateArgs} 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 DataConnection. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {DataConnectionGroupByArgs} 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 DataConnectionGroupByArgs, HasSelectOrTake extends Prisma.Or< Prisma.Extends<'skip', Prisma.Keys>, Prisma.Extends<'take', Prisma.Keys> >, OrderByArg extends Prisma.True extends HasSelectOrTake ? { orderBy: DataConnectionGroupByArgs['orderBy'] } : { orderBy?: DataConnectionGroupByArgs['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 ? GetDataConnectionGroupByPayload : Prisma.PrismaPromise /** * Fields of the DataConnection model */ readonly fields: DataConnectionFieldRefs; } /** * The delegate class that acts as a "Promise-like" for DataConnection. * 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__DataConnectionClient extends Prisma.PrismaPromise { readonly [Symbol.toStringTag]: "PrismaPromise" tenant = {}>(args?: Prisma.Subset>): Prisma.Prisma__TenantClient, 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 DataConnection model */ export interface DataConnectionFieldRefs { readonly id: Prisma.FieldRef<"DataConnection", 'String'> readonly createdAt: Prisma.FieldRef<"DataConnection", 'DateTime'> readonly updatedAt: Prisma.FieldRef<"DataConnection", 'DateTime'> readonly tenantId: Prisma.FieldRef<"DataConnection", 'String'> readonly name: Prisma.FieldRef<"DataConnection", 'String'> readonly type: Prisma.FieldRef<"DataConnection", 'String'> readonly config: Prisma.FieldRef<"DataConnection", 'String'> readonly description: Prisma.FieldRef<"DataConnection", 'String'> } // Custom InputTypes /** * DataConnection findUnique */ export type DataConnectionFindUniqueArgs = { /** * Select specific fields to fetch from the DataConnection */ select?: Prisma.DataConnectionSelect | null /** * Omit specific fields from the DataConnection */ omit?: Prisma.DataConnectionOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.DataConnectionInclude | null /** * Filter, which DataConnection to fetch. */ where: Prisma.DataConnectionWhereUniqueInput } /** * DataConnection findUniqueOrThrow */ export type DataConnectionFindUniqueOrThrowArgs = { /** * Select specific fields to fetch from the DataConnection */ select?: Prisma.DataConnectionSelect | null /** * Omit specific fields from the DataConnection */ omit?: Prisma.DataConnectionOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.DataConnectionInclude | null /** * Filter, which DataConnection to fetch. */ where: Prisma.DataConnectionWhereUniqueInput } /** * DataConnection findFirst */ export type DataConnectionFindFirstArgs = { /** * Select specific fields to fetch from the DataConnection */ select?: Prisma.DataConnectionSelect | null /** * Omit specific fields from the DataConnection */ omit?: Prisma.DataConnectionOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.DataConnectionInclude | null /** * Filter, which DataConnection to fetch. */ where?: Prisma.DataConnectionWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of DataConnections to fetch. */ orderBy?: Prisma.DataConnectionOrderByWithRelationInput | Prisma.DataConnectionOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for DataConnections. */ cursor?: Prisma.DataConnectionWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` DataConnections 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` DataConnections. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of DataConnections. */ distinct?: Prisma.DataConnectionScalarFieldEnum | Prisma.DataConnectionScalarFieldEnum[] } /** * DataConnection findFirstOrThrow */ export type DataConnectionFindFirstOrThrowArgs = { /** * Select specific fields to fetch from the DataConnection */ select?: Prisma.DataConnectionSelect | null /** * Omit specific fields from the DataConnection */ omit?: Prisma.DataConnectionOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.DataConnectionInclude | null /** * Filter, which DataConnection to fetch. */ where?: Prisma.DataConnectionWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of DataConnections to fetch. */ orderBy?: Prisma.DataConnectionOrderByWithRelationInput | Prisma.DataConnectionOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for DataConnections. */ cursor?: Prisma.DataConnectionWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` DataConnections 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` DataConnections. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of DataConnections. */ distinct?: Prisma.DataConnectionScalarFieldEnum | Prisma.DataConnectionScalarFieldEnum[] } /** * DataConnection findMany */ export type DataConnectionFindManyArgs = { /** * Select specific fields to fetch from the DataConnection */ select?: Prisma.DataConnectionSelect | null /** * Omit specific fields from the DataConnection */ omit?: Prisma.DataConnectionOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.DataConnectionInclude | null /** * Filter, which DataConnections to fetch. */ where?: Prisma.DataConnectionWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of DataConnections to fetch. */ orderBy?: Prisma.DataConnectionOrderByWithRelationInput | Prisma.DataConnectionOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for listing DataConnections. */ cursor?: Prisma.DataConnectionWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` DataConnections 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` DataConnections. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of DataConnections. */ distinct?: Prisma.DataConnectionScalarFieldEnum | Prisma.DataConnectionScalarFieldEnum[] } /** * DataConnection create */ export type DataConnectionCreateArgs = { /** * Select specific fields to fetch from the DataConnection */ select?: Prisma.DataConnectionSelect | null /** * Omit specific fields from the DataConnection */ omit?: Prisma.DataConnectionOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.DataConnectionInclude | null /** * The data needed to create a DataConnection. */ data: Prisma.XOR } /** * DataConnection createMany */ export type DataConnectionCreateManyArgs = { /** * The data used to create many DataConnections. */ data: Prisma.DataConnectionCreateManyInput | Prisma.DataConnectionCreateManyInput[] skipDuplicates?: boolean } /** * DataConnection createManyAndReturn */ export type DataConnectionCreateManyAndReturnArgs = { /** * Select specific fields to fetch from the DataConnection */ select?: Prisma.DataConnectionSelectCreateManyAndReturn | null /** * Omit specific fields from the DataConnection */ omit?: Prisma.DataConnectionOmit | null /** * The data used to create many DataConnections. */ data: Prisma.DataConnectionCreateManyInput | Prisma.DataConnectionCreateManyInput[] skipDuplicates?: boolean /** * Choose, which related nodes to fetch as well */ include?: Prisma.DataConnectionIncludeCreateManyAndReturn | null } /** * DataConnection update */ export type DataConnectionUpdateArgs = { /** * Select specific fields to fetch from the DataConnection */ select?: Prisma.DataConnectionSelect | null /** * Omit specific fields from the DataConnection */ omit?: Prisma.DataConnectionOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.DataConnectionInclude | null /** * The data needed to update a DataConnection. */ data: Prisma.XOR /** * Choose, which DataConnection to update. */ where: Prisma.DataConnectionWhereUniqueInput } /** * DataConnection updateMany */ export type DataConnectionUpdateManyArgs = { /** * The data used to update DataConnections. */ data: Prisma.XOR /** * Filter which DataConnections to update */ where?: Prisma.DataConnectionWhereInput /** * Limit how many DataConnections to update. */ limit?: number } /** * DataConnection updateManyAndReturn */ export type DataConnectionUpdateManyAndReturnArgs = { /** * Select specific fields to fetch from the DataConnection */ select?: Prisma.DataConnectionSelectUpdateManyAndReturn | null /** * Omit specific fields from the DataConnection */ omit?: Prisma.DataConnectionOmit | null /** * The data used to update DataConnections. */ data: Prisma.XOR /** * Filter which DataConnections to update */ where?: Prisma.DataConnectionWhereInput /** * Limit how many DataConnections to update. */ limit?: number /** * Choose, which related nodes to fetch as well */ include?: Prisma.DataConnectionIncludeUpdateManyAndReturn | null } /** * DataConnection upsert */ export type DataConnectionUpsertArgs = { /** * Select specific fields to fetch from the DataConnection */ select?: Prisma.DataConnectionSelect | null /** * Omit specific fields from the DataConnection */ omit?: Prisma.DataConnectionOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.DataConnectionInclude | null /** * The filter to search for the DataConnection to update in case it exists. */ where: Prisma.DataConnectionWhereUniqueInput /** * In case the DataConnection found by the `where` argument doesn't exist, create a new DataConnection with this data. */ create: Prisma.XOR /** * In case the DataConnection was found with the provided `where` argument, update it with this data. */ update: Prisma.XOR } /** * DataConnection delete */ export type DataConnectionDeleteArgs = { /** * Select specific fields to fetch from the DataConnection */ select?: Prisma.DataConnectionSelect | null /** * Omit specific fields from the DataConnection */ omit?: Prisma.DataConnectionOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.DataConnectionInclude | null /** * Filter which DataConnection to delete. */ where: Prisma.DataConnectionWhereUniqueInput } /** * DataConnection deleteMany */ export type DataConnectionDeleteManyArgs = { /** * Filter which DataConnections to delete */ where?: Prisma.DataConnectionWhereInput /** * Limit how many DataConnections to delete. */ limit?: number } /** * DataConnection without action */ export type DataConnectionDefaultArgs = { /** * Select specific fields to fetch from the DataConnection */ select?: Prisma.DataConnectionSelect | null /** * Omit specific fields from the DataConnection */ omit?: Prisma.DataConnectionOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.DataConnectionInclude | null }