/* !!! This is code generated by Prisma. Do not edit directly. !!! */ /* eslint-disable */ // biome-ignore-all lint: generated file // @ts-nocheck /* * This file exports the `PortalPage` 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 PortalPage * */ export type PortalPageModel = runtime.Types.Result.DefaultSelection export type AggregatePortalPage = { _count: PortalPageCountAggregateOutputType | null _min: PortalPageMinAggregateOutputType | null _max: PortalPageMaxAggregateOutputType | null } export type PortalPageMinAggregateOutputType = { id: string | null createdAt: Date | null updatedAt: Date | null portalId: string | null name: string | null } export type PortalPageMaxAggregateOutputType = { id: string | null createdAt: Date | null updatedAt: Date | null portalId: string | null name: string | null } export type PortalPageCountAggregateOutputType = { id: number createdAt: number updatedAt: number portalId: number name: number attributes: number _all: number } export type PortalPageMinAggregateInputType = { id?: true createdAt?: true updatedAt?: true portalId?: true name?: true } export type PortalPageMaxAggregateInputType = { id?: true createdAt?: true updatedAt?: true portalId?: true name?: true } export type PortalPageCountAggregateInputType = { id?: true createdAt?: true updatedAt?: true portalId?: true name?: true attributes?: true _all?: true } export type PortalPageAggregateArgs = { /** * Filter which PortalPage to aggregate. */ where?: Prisma.PortalPageWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of PortalPages to fetch. */ orderBy?: Prisma.PortalPageOrderByWithRelationInput | Prisma.PortalPageOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the start position */ cursor?: Prisma.PortalPageWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` PortalPages 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` PortalPages. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Count returned PortalPages **/ _count?: true | PortalPageCountAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the minimum value **/ _min?: PortalPageMinAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the maximum value **/ _max?: PortalPageMaxAggregateInputType } export type GetPortalPageAggregateType = { [P in keyof T & keyof AggregatePortalPage]: P extends '_count' | 'count' ? T[P] extends true ? number : Prisma.GetScalarType : Prisma.GetScalarType } export type PortalPageGroupByArgs = { where?: Prisma.PortalPageWhereInput orderBy?: Prisma.PortalPageOrderByWithAggregationInput | Prisma.PortalPageOrderByWithAggregationInput[] by: Prisma.PortalPageScalarFieldEnum[] | Prisma.PortalPageScalarFieldEnum having?: Prisma.PortalPageScalarWhereWithAggregatesInput take?: number skip?: number _count?: PortalPageCountAggregateInputType | true _min?: PortalPageMinAggregateInputType _max?: PortalPageMaxAggregateInputType } export type PortalPageGroupByOutputType = { id: string createdAt: Date updatedAt: Date portalId: string name: string attributes: runtime.JsonValue | null _count: PortalPageCountAggregateOutputType | null _min: PortalPageMinAggregateOutputType | null _max: PortalPageMaxAggregateOutputType | null } export type GetPortalPageGroupByPayload = Prisma.PrismaPromise< Array< Prisma.PickEnumerable & { [P in ((keyof T) & (keyof PortalPageGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : Prisma.GetScalarType : Prisma.GetScalarType } > > export type PortalPageWhereInput = { AND?: Prisma.PortalPageWhereInput | Prisma.PortalPageWhereInput[] OR?: Prisma.PortalPageWhereInput[] NOT?: Prisma.PortalPageWhereInput | Prisma.PortalPageWhereInput[] id?: Prisma.StringFilter<"PortalPage"> | string createdAt?: Prisma.DateTimeFilter<"PortalPage"> | Date | string updatedAt?: Prisma.DateTimeFilter<"PortalPage"> | Date | string portalId?: Prisma.StringFilter<"PortalPage"> | string name?: Prisma.StringFilter<"PortalPage"> | string attributes?: Prisma.JsonNullableFilter<"PortalPage"> portal?: Prisma.XOR } export type PortalPageOrderByWithRelationInput = { id?: Prisma.SortOrder createdAt?: Prisma.SortOrder updatedAt?: Prisma.SortOrder portalId?: Prisma.SortOrder name?: Prisma.SortOrder attributes?: Prisma.SortOrderInput | Prisma.SortOrder portal?: Prisma.PortalOrderByWithRelationInput } export type PortalPageWhereUniqueInput = Prisma.AtLeast<{ id?: string portalId_name?: Prisma.PortalPagePortalIdNameCompoundUniqueInput AND?: Prisma.PortalPageWhereInput | Prisma.PortalPageWhereInput[] OR?: Prisma.PortalPageWhereInput[] NOT?: Prisma.PortalPageWhereInput | Prisma.PortalPageWhereInput[] createdAt?: Prisma.DateTimeFilter<"PortalPage"> | Date | string updatedAt?: Prisma.DateTimeFilter<"PortalPage"> | Date | string portalId?: Prisma.StringFilter<"PortalPage"> | string name?: Prisma.StringFilter<"PortalPage"> | string attributes?: Prisma.JsonNullableFilter<"PortalPage"> portal?: Prisma.XOR }, "id" | "portalId_name"> export type PortalPageOrderByWithAggregationInput = { id?: Prisma.SortOrder createdAt?: Prisma.SortOrder updatedAt?: Prisma.SortOrder portalId?: Prisma.SortOrder name?: Prisma.SortOrder attributes?: Prisma.SortOrderInput | Prisma.SortOrder _count?: Prisma.PortalPageCountOrderByAggregateInput _max?: Prisma.PortalPageMaxOrderByAggregateInput _min?: Prisma.PortalPageMinOrderByAggregateInput } export type PortalPageScalarWhereWithAggregatesInput = { AND?: Prisma.PortalPageScalarWhereWithAggregatesInput | Prisma.PortalPageScalarWhereWithAggregatesInput[] OR?: Prisma.PortalPageScalarWhereWithAggregatesInput[] NOT?: Prisma.PortalPageScalarWhereWithAggregatesInput | Prisma.PortalPageScalarWhereWithAggregatesInput[] id?: Prisma.StringWithAggregatesFilter<"PortalPage"> | string createdAt?: Prisma.DateTimeWithAggregatesFilter<"PortalPage"> | Date | string updatedAt?: Prisma.DateTimeWithAggregatesFilter<"PortalPage"> | Date | string portalId?: Prisma.StringWithAggregatesFilter<"PortalPage"> | string name?: Prisma.StringWithAggregatesFilter<"PortalPage"> | string attributes?: Prisma.JsonNullableWithAggregatesFilter<"PortalPage"> } export type PortalPageCreateInput = { id?: string createdAt?: Date | string updatedAt?: Date | string name: string attributes?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue portal: Prisma.PortalCreateNestedOneWithoutPagesInput } export type PortalPageUncheckedCreateInput = { id?: string createdAt?: Date | string updatedAt?: Date | string portalId: string name: string attributes?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue } export type PortalPageUpdateInput = { id?: Prisma.StringFieldUpdateOperationsInput | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string name?: Prisma.StringFieldUpdateOperationsInput | string attributes?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue portal?: Prisma.PortalUpdateOneRequiredWithoutPagesNestedInput } export type PortalPageUncheckedUpdateInput = { id?: Prisma.StringFieldUpdateOperationsInput | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string portalId?: Prisma.StringFieldUpdateOperationsInput | string name?: Prisma.StringFieldUpdateOperationsInput | string attributes?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue } export type PortalPageCreateManyInput = { id?: string createdAt?: Date | string updatedAt?: Date | string portalId: string name: string attributes?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue } export type PortalPageUpdateManyMutationInput = { id?: Prisma.StringFieldUpdateOperationsInput | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string name?: Prisma.StringFieldUpdateOperationsInput | string attributes?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue } export type PortalPageUncheckedUpdateManyInput = { id?: Prisma.StringFieldUpdateOperationsInput | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string portalId?: Prisma.StringFieldUpdateOperationsInput | string name?: Prisma.StringFieldUpdateOperationsInput | string attributes?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue } export type PortalPageListRelationFilter = { every?: Prisma.PortalPageWhereInput some?: Prisma.PortalPageWhereInput none?: Prisma.PortalPageWhereInput } export type PortalPageOrderByRelationAggregateInput = { _count?: Prisma.SortOrder } export type PortalPagePortalIdNameCompoundUniqueInput = { portalId: string name: string } export type PortalPageCountOrderByAggregateInput = { id?: Prisma.SortOrder createdAt?: Prisma.SortOrder updatedAt?: Prisma.SortOrder portalId?: Prisma.SortOrder name?: Prisma.SortOrder attributes?: Prisma.SortOrder } export type PortalPageMaxOrderByAggregateInput = { id?: Prisma.SortOrder createdAt?: Prisma.SortOrder updatedAt?: Prisma.SortOrder portalId?: Prisma.SortOrder name?: Prisma.SortOrder } export type PortalPageMinOrderByAggregateInput = { id?: Prisma.SortOrder createdAt?: Prisma.SortOrder updatedAt?: Prisma.SortOrder portalId?: Prisma.SortOrder name?: Prisma.SortOrder } export type PortalPageCreateNestedManyWithoutPortalInput = { create?: Prisma.XOR | Prisma.PortalPageCreateWithoutPortalInput[] | Prisma.PortalPageUncheckedCreateWithoutPortalInput[] connectOrCreate?: Prisma.PortalPageCreateOrConnectWithoutPortalInput | Prisma.PortalPageCreateOrConnectWithoutPortalInput[] createMany?: Prisma.PortalPageCreateManyPortalInputEnvelope connect?: Prisma.PortalPageWhereUniqueInput | Prisma.PortalPageWhereUniqueInput[] } export type PortalPageUncheckedCreateNestedManyWithoutPortalInput = { create?: Prisma.XOR | Prisma.PortalPageCreateWithoutPortalInput[] | Prisma.PortalPageUncheckedCreateWithoutPortalInput[] connectOrCreate?: Prisma.PortalPageCreateOrConnectWithoutPortalInput | Prisma.PortalPageCreateOrConnectWithoutPortalInput[] createMany?: Prisma.PortalPageCreateManyPortalInputEnvelope connect?: Prisma.PortalPageWhereUniqueInput | Prisma.PortalPageWhereUniqueInput[] } export type PortalPageUpdateManyWithoutPortalNestedInput = { create?: Prisma.XOR | Prisma.PortalPageCreateWithoutPortalInput[] | Prisma.PortalPageUncheckedCreateWithoutPortalInput[] connectOrCreate?: Prisma.PortalPageCreateOrConnectWithoutPortalInput | Prisma.PortalPageCreateOrConnectWithoutPortalInput[] upsert?: Prisma.PortalPageUpsertWithWhereUniqueWithoutPortalInput | Prisma.PortalPageUpsertWithWhereUniqueWithoutPortalInput[] createMany?: Prisma.PortalPageCreateManyPortalInputEnvelope set?: Prisma.PortalPageWhereUniqueInput | Prisma.PortalPageWhereUniqueInput[] disconnect?: Prisma.PortalPageWhereUniqueInput | Prisma.PortalPageWhereUniqueInput[] delete?: Prisma.PortalPageWhereUniqueInput | Prisma.PortalPageWhereUniqueInput[] connect?: Prisma.PortalPageWhereUniqueInput | Prisma.PortalPageWhereUniqueInput[] update?: Prisma.PortalPageUpdateWithWhereUniqueWithoutPortalInput | Prisma.PortalPageUpdateWithWhereUniqueWithoutPortalInput[] updateMany?: Prisma.PortalPageUpdateManyWithWhereWithoutPortalInput | Prisma.PortalPageUpdateManyWithWhereWithoutPortalInput[] deleteMany?: Prisma.PortalPageScalarWhereInput | Prisma.PortalPageScalarWhereInput[] } export type PortalPageUncheckedUpdateManyWithoutPortalNestedInput = { create?: Prisma.XOR | Prisma.PortalPageCreateWithoutPortalInput[] | Prisma.PortalPageUncheckedCreateWithoutPortalInput[] connectOrCreate?: Prisma.PortalPageCreateOrConnectWithoutPortalInput | Prisma.PortalPageCreateOrConnectWithoutPortalInput[] upsert?: Prisma.PortalPageUpsertWithWhereUniqueWithoutPortalInput | Prisma.PortalPageUpsertWithWhereUniqueWithoutPortalInput[] createMany?: Prisma.PortalPageCreateManyPortalInputEnvelope set?: Prisma.PortalPageWhereUniqueInput | Prisma.PortalPageWhereUniqueInput[] disconnect?: Prisma.PortalPageWhereUniqueInput | Prisma.PortalPageWhereUniqueInput[] delete?: Prisma.PortalPageWhereUniqueInput | Prisma.PortalPageWhereUniqueInput[] connect?: Prisma.PortalPageWhereUniqueInput | Prisma.PortalPageWhereUniqueInput[] update?: Prisma.PortalPageUpdateWithWhereUniqueWithoutPortalInput | Prisma.PortalPageUpdateWithWhereUniqueWithoutPortalInput[] updateMany?: Prisma.PortalPageUpdateManyWithWhereWithoutPortalInput | Prisma.PortalPageUpdateManyWithWhereWithoutPortalInput[] deleteMany?: Prisma.PortalPageScalarWhereInput | Prisma.PortalPageScalarWhereInput[] } export type PortalPageCreateWithoutPortalInput = { id?: string createdAt?: Date | string updatedAt?: Date | string name: string attributes?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue } export type PortalPageUncheckedCreateWithoutPortalInput = { id?: string createdAt?: Date | string updatedAt?: Date | string name: string attributes?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue } export type PortalPageCreateOrConnectWithoutPortalInput = { where: Prisma.PortalPageWhereUniqueInput create: Prisma.XOR } export type PortalPageCreateManyPortalInputEnvelope = { data: Prisma.PortalPageCreateManyPortalInput | Prisma.PortalPageCreateManyPortalInput[] skipDuplicates?: boolean } export type PortalPageUpsertWithWhereUniqueWithoutPortalInput = { where: Prisma.PortalPageWhereUniqueInput update: Prisma.XOR create: Prisma.XOR } export type PortalPageUpdateWithWhereUniqueWithoutPortalInput = { where: Prisma.PortalPageWhereUniqueInput data: Prisma.XOR } export type PortalPageUpdateManyWithWhereWithoutPortalInput = { where: Prisma.PortalPageScalarWhereInput data: Prisma.XOR } export type PortalPageScalarWhereInput = { AND?: Prisma.PortalPageScalarWhereInput | Prisma.PortalPageScalarWhereInput[] OR?: Prisma.PortalPageScalarWhereInput[] NOT?: Prisma.PortalPageScalarWhereInput | Prisma.PortalPageScalarWhereInput[] id?: Prisma.StringFilter<"PortalPage"> | string createdAt?: Prisma.DateTimeFilter<"PortalPage"> | Date | string updatedAt?: Prisma.DateTimeFilter<"PortalPage"> | Date | string portalId?: Prisma.StringFilter<"PortalPage"> | string name?: Prisma.StringFilter<"PortalPage"> | string attributes?: Prisma.JsonNullableFilter<"PortalPage"> } export type PortalPageCreateManyPortalInput = { id?: string createdAt?: Date | string updatedAt?: Date | string name: string attributes?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue } export type PortalPageUpdateWithoutPortalInput = { id?: Prisma.StringFieldUpdateOperationsInput | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string name?: Prisma.StringFieldUpdateOperationsInput | string attributes?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue } export type PortalPageUncheckedUpdateWithoutPortalInput = { id?: Prisma.StringFieldUpdateOperationsInput | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string name?: Prisma.StringFieldUpdateOperationsInput | string attributes?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue } export type PortalPageUncheckedUpdateManyWithoutPortalInput = { id?: Prisma.StringFieldUpdateOperationsInput | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string name?: Prisma.StringFieldUpdateOperationsInput | string attributes?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue } export type PortalPageSelect = runtime.Types.Extensions.GetSelect<{ id?: boolean createdAt?: boolean updatedAt?: boolean portalId?: boolean name?: boolean attributes?: boolean portal?: boolean | Prisma.PortalDefaultArgs }, ExtArgs["result"]["portalPage"]> export type PortalPageSelectCreateManyAndReturn = runtime.Types.Extensions.GetSelect<{ id?: boolean createdAt?: boolean updatedAt?: boolean portalId?: boolean name?: boolean attributes?: boolean portal?: boolean | Prisma.PortalDefaultArgs }, ExtArgs["result"]["portalPage"]> export type PortalPageSelectUpdateManyAndReturn = runtime.Types.Extensions.GetSelect<{ id?: boolean createdAt?: boolean updatedAt?: boolean portalId?: boolean name?: boolean attributes?: boolean portal?: boolean | Prisma.PortalDefaultArgs }, ExtArgs["result"]["portalPage"]> export type PortalPageSelectScalar = { id?: boolean createdAt?: boolean updatedAt?: boolean portalId?: boolean name?: boolean attributes?: boolean } export type PortalPageOmit = runtime.Types.Extensions.GetOmit<"id" | "createdAt" | "updatedAt" | "portalId" | "name" | "attributes", ExtArgs["result"]["portalPage"]> export type PortalPageInclude = { portal?: boolean | Prisma.PortalDefaultArgs } export type PortalPageIncludeCreateManyAndReturn = { portal?: boolean | Prisma.PortalDefaultArgs } export type PortalPageIncludeUpdateManyAndReturn = { portal?: boolean | Prisma.PortalDefaultArgs } export type $PortalPagePayload = { name: "PortalPage" objects: { portal: Prisma.$PortalPayload } scalars: runtime.Types.Extensions.GetPayloadResult<{ id: string createdAt: Date updatedAt: Date portalId: string name: string attributes: runtime.JsonValue | null }, ExtArgs["result"]["portalPage"]> composites: {} } export type PortalPageGetPayload = runtime.Types.Result.GetResult export type PortalPageCountArgs = Omit & { select?: PortalPageCountAggregateInputType | true } export interface PortalPageDelegate { [K: symbol]: { types: Prisma.TypeMap['model']['PortalPage'], meta: { name: 'PortalPage' } } /** * Find zero or one PortalPage that matches the filter. * @param {PortalPageFindUniqueArgs} args - Arguments to find a PortalPage * @example * // Get one PortalPage * const portalPage = await prisma.portalPage.findUnique({ * where: { * // ... provide filter here * } * }) */ findUnique(args: Prisma.SelectSubset>): Prisma.Prisma__PortalPageClient, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find one PortalPage that matches the filter or throw an error with `error.code='P2025'` * if no matches were found. * @param {PortalPageFindUniqueOrThrowArgs} args - Arguments to find a PortalPage * @example * // Get one PortalPage * const portalPage = await prisma.portalPage.findUniqueOrThrow({ * where: { * // ... provide filter here * } * }) */ findUniqueOrThrow(args: Prisma.SelectSubset>): Prisma.Prisma__PortalPageClient, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find the first PortalPage 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 {PortalPageFindFirstArgs} args - Arguments to find a PortalPage * @example * // Get one PortalPage * const portalPage = await prisma.portalPage.findFirst({ * where: { * // ... provide filter here * } * }) */ findFirst(args?: Prisma.SelectSubset>): Prisma.Prisma__PortalPageClient, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find the first PortalPage 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 {PortalPageFindFirstOrThrowArgs} args - Arguments to find a PortalPage * @example * // Get one PortalPage * const portalPage = await prisma.portalPage.findFirstOrThrow({ * where: { * // ... provide filter here * } * }) */ findFirstOrThrow(args?: Prisma.SelectSubset>): Prisma.Prisma__PortalPageClient, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find zero or more PortalPages 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 {PortalPageFindManyArgs} args - Arguments to filter and select certain fields only. * @example * // Get all PortalPages * const portalPages = await prisma.portalPage.findMany() * * // Get first 10 PortalPages * const portalPages = await prisma.portalPage.findMany({ take: 10 }) * * // Only select the `id` * const portalPageWithIdOnly = await prisma.portalPage.findMany({ select: { id: true } }) * */ findMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>> /** * Create a PortalPage. * @param {PortalPageCreateArgs} args - Arguments to create a PortalPage. * @example * // Create one PortalPage * const PortalPage = await prisma.portalPage.create({ * data: { * // ... data to create a PortalPage * } * }) * */ create(args: Prisma.SelectSubset>): Prisma.Prisma__PortalPageClient, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Create many PortalPages. * @param {PortalPageCreateManyArgs} args - Arguments to create many PortalPages. * @example * // Create many PortalPages * const portalPage = await prisma.portalPage.createMany({ * data: [ * // ... provide data here * ] * }) * */ createMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Create many PortalPages and returns the data saved in the database. * @param {PortalPageCreateManyAndReturnArgs} args - Arguments to create many PortalPages. * @example * // Create many PortalPages * const portalPage = await prisma.portalPage.createManyAndReturn({ * data: [ * // ... provide data here * ] * }) * * // Create many PortalPages and only return the `id` * const portalPageWithIdOnly = await prisma.portalPage.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 PortalPage. * @param {PortalPageDeleteArgs} args - Arguments to delete one PortalPage. * @example * // Delete one PortalPage * const PortalPage = await prisma.portalPage.delete({ * where: { * // ... filter to delete one PortalPage * } * }) * */ delete(args: Prisma.SelectSubset>): Prisma.Prisma__PortalPageClient, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Update one PortalPage. * @param {PortalPageUpdateArgs} args - Arguments to update one PortalPage. * @example * // Update one PortalPage * const portalPage = await prisma.portalPage.update({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ update(args: Prisma.SelectSubset>): Prisma.Prisma__PortalPageClient, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Delete zero or more PortalPages. * @param {PortalPageDeleteManyArgs} args - Arguments to filter PortalPages to delete. * @example * // Delete a few PortalPages * const { count } = await prisma.portalPage.deleteMany({ * where: { * // ... provide filter here * } * }) * */ deleteMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Update zero or more PortalPages. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {PortalPageUpdateManyArgs} args - Arguments to update one or more rows. * @example * // Update many PortalPages * const portalPage = await prisma.portalPage.updateMany({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ updateMany(args: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Update zero or more PortalPages and returns the data updated in the database. * @param {PortalPageUpdateManyAndReturnArgs} args - Arguments to update many PortalPages. * @example * // Update many PortalPages * const portalPage = await prisma.portalPage.updateManyAndReturn({ * where: { * // ... provide filter here * }, * data: [ * // ... provide data here * ] * }) * * // Update zero or more PortalPages and only return the `id` * const portalPageWithIdOnly = await prisma.portalPage.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 PortalPage. * @param {PortalPageUpsertArgs} args - Arguments to update or create a PortalPage. * @example * // Update or create a PortalPage * const portalPage = await prisma.portalPage.upsert({ * create: { * // ... data to create a PortalPage * }, * update: { * // ... in case it already exists, update * }, * where: { * // ... the filter for the PortalPage we want to update * } * }) */ upsert(args: Prisma.SelectSubset>): Prisma.Prisma__PortalPageClient, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Count the number of PortalPages. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {PortalPageCountArgs} args - Arguments to filter PortalPages to count. * @example * // Count the number of PortalPages * const count = await prisma.portalPage.count({ * where: { * // ... the filter for the PortalPages 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 PortalPage. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {PortalPageAggregateArgs} 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 PortalPage. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {PortalPageGroupByArgs} 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 PortalPageGroupByArgs, HasSelectOrTake extends Prisma.Or< Prisma.Extends<'skip', Prisma.Keys>, Prisma.Extends<'take', Prisma.Keys> >, OrderByArg extends Prisma.True extends HasSelectOrTake ? { orderBy: PortalPageGroupByArgs['orderBy'] } : { orderBy?: PortalPageGroupByArgs['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 ? GetPortalPageGroupByPayload : Prisma.PrismaPromise /** * Fields of the PortalPage model */ readonly fields: PortalPageFieldRefs; } /** * The delegate class that acts as a "Promise-like" for PortalPage. * 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__PortalPageClient extends Prisma.PrismaPromise { readonly [Symbol.toStringTag]: "PrismaPromise" portal = {}>(args?: Prisma.Subset>): Prisma.Prisma__PortalClient, 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 PortalPage model */ export interface PortalPageFieldRefs { readonly id: Prisma.FieldRef<"PortalPage", 'String'> readonly createdAt: Prisma.FieldRef<"PortalPage", 'DateTime'> readonly updatedAt: Prisma.FieldRef<"PortalPage", 'DateTime'> readonly portalId: Prisma.FieldRef<"PortalPage", 'String'> readonly name: Prisma.FieldRef<"PortalPage", 'String'> readonly attributes: Prisma.FieldRef<"PortalPage", 'Json'> } // Custom InputTypes /** * PortalPage findUnique */ export type PortalPageFindUniqueArgs = { /** * Select specific fields to fetch from the PortalPage */ select?: Prisma.PortalPageSelect | null /** * Omit specific fields from the PortalPage */ omit?: Prisma.PortalPageOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.PortalPageInclude | null /** * Filter, which PortalPage to fetch. */ where: Prisma.PortalPageWhereUniqueInput } /** * PortalPage findUniqueOrThrow */ export type PortalPageFindUniqueOrThrowArgs = { /** * Select specific fields to fetch from the PortalPage */ select?: Prisma.PortalPageSelect | null /** * Omit specific fields from the PortalPage */ omit?: Prisma.PortalPageOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.PortalPageInclude | null /** * Filter, which PortalPage to fetch. */ where: Prisma.PortalPageWhereUniqueInput } /** * PortalPage findFirst */ export type PortalPageFindFirstArgs = { /** * Select specific fields to fetch from the PortalPage */ select?: Prisma.PortalPageSelect | null /** * Omit specific fields from the PortalPage */ omit?: Prisma.PortalPageOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.PortalPageInclude | null /** * Filter, which PortalPage to fetch. */ where?: Prisma.PortalPageWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of PortalPages to fetch. */ orderBy?: Prisma.PortalPageOrderByWithRelationInput | Prisma.PortalPageOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for PortalPages. */ cursor?: Prisma.PortalPageWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` PortalPages 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` PortalPages. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of PortalPages. */ distinct?: Prisma.PortalPageScalarFieldEnum | Prisma.PortalPageScalarFieldEnum[] } /** * PortalPage findFirstOrThrow */ export type PortalPageFindFirstOrThrowArgs = { /** * Select specific fields to fetch from the PortalPage */ select?: Prisma.PortalPageSelect | null /** * Omit specific fields from the PortalPage */ omit?: Prisma.PortalPageOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.PortalPageInclude | null /** * Filter, which PortalPage to fetch. */ where?: Prisma.PortalPageWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of PortalPages to fetch. */ orderBy?: Prisma.PortalPageOrderByWithRelationInput | Prisma.PortalPageOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for PortalPages. */ cursor?: Prisma.PortalPageWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` PortalPages 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` PortalPages. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of PortalPages. */ distinct?: Prisma.PortalPageScalarFieldEnum | Prisma.PortalPageScalarFieldEnum[] } /** * PortalPage findMany */ export type PortalPageFindManyArgs = { /** * Select specific fields to fetch from the PortalPage */ select?: Prisma.PortalPageSelect | null /** * Omit specific fields from the PortalPage */ omit?: Prisma.PortalPageOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.PortalPageInclude | null /** * Filter, which PortalPages to fetch. */ where?: Prisma.PortalPageWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of PortalPages to fetch. */ orderBy?: Prisma.PortalPageOrderByWithRelationInput | Prisma.PortalPageOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for listing PortalPages. */ cursor?: Prisma.PortalPageWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` PortalPages 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` PortalPages. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of PortalPages. */ distinct?: Prisma.PortalPageScalarFieldEnum | Prisma.PortalPageScalarFieldEnum[] } /** * PortalPage create */ export type PortalPageCreateArgs = { /** * Select specific fields to fetch from the PortalPage */ select?: Prisma.PortalPageSelect | null /** * Omit specific fields from the PortalPage */ omit?: Prisma.PortalPageOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.PortalPageInclude | null /** * The data needed to create a PortalPage. */ data: Prisma.XOR } /** * PortalPage createMany */ export type PortalPageCreateManyArgs = { /** * The data used to create many PortalPages. */ data: Prisma.PortalPageCreateManyInput | Prisma.PortalPageCreateManyInput[] skipDuplicates?: boolean } /** * PortalPage createManyAndReturn */ export type PortalPageCreateManyAndReturnArgs = { /** * Select specific fields to fetch from the PortalPage */ select?: Prisma.PortalPageSelectCreateManyAndReturn | null /** * Omit specific fields from the PortalPage */ omit?: Prisma.PortalPageOmit | null /** * The data used to create many PortalPages. */ data: Prisma.PortalPageCreateManyInput | Prisma.PortalPageCreateManyInput[] skipDuplicates?: boolean /** * Choose, which related nodes to fetch as well */ include?: Prisma.PortalPageIncludeCreateManyAndReturn | null } /** * PortalPage update */ export type PortalPageUpdateArgs = { /** * Select specific fields to fetch from the PortalPage */ select?: Prisma.PortalPageSelect | null /** * Omit specific fields from the PortalPage */ omit?: Prisma.PortalPageOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.PortalPageInclude | null /** * The data needed to update a PortalPage. */ data: Prisma.XOR /** * Choose, which PortalPage to update. */ where: Prisma.PortalPageWhereUniqueInput } /** * PortalPage updateMany */ export type PortalPageUpdateManyArgs = { /** * The data used to update PortalPages. */ data: Prisma.XOR /** * Filter which PortalPages to update */ where?: Prisma.PortalPageWhereInput /** * Limit how many PortalPages to update. */ limit?: number } /** * PortalPage updateManyAndReturn */ export type PortalPageUpdateManyAndReturnArgs = { /** * Select specific fields to fetch from the PortalPage */ select?: Prisma.PortalPageSelectUpdateManyAndReturn | null /** * Omit specific fields from the PortalPage */ omit?: Prisma.PortalPageOmit | null /** * The data used to update PortalPages. */ data: Prisma.XOR /** * Filter which PortalPages to update */ where?: Prisma.PortalPageWhereInput /** * Limit how many PortalPages to update. */ limit?: number /** * Choose, which related nodes to fetch as well */ include?: Prisma.PortalPageIncludeUpdateManyAndReturn | null } /** * PortalPage upsert */ export type PortalPageUpsertArgs = { /** * Select specific fields to fetch from the PortalPage */ select?: Prisma.PortalPageSelect | null /** * Omit specific fields from the PortalPage */ omit?: Prisma.PortalPageOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.PortalPageInclude | null /** * The filter to search for the PortalPage to update in case it exists. */ where: Prisma.PortalPageWhereUniqueInput /** * In case the PortalPage found by the `where` argument doesn't exist, create a new PortalPage with this data. */ create: Prisma.XOR /** * In case the PortalPage was found with the provided `where` argument, update it with this data. */ update: Prisma.XOR } /** * PortalPage delete */ export type PortalPageDeleteArgs = { /** * Select specific fields to fetch from the PortalPage */ select?: Prisma.PortalPageSelect | null /** * Omit specific fields from the PortalPage */ omit?: Prisma.PortalPageOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.PortalPageInclude | null /** * Filter which PortalPage to delete. */ where: Prisma.PortalPageWhereUniqueInput } /** * PortalPage deleteMany */ export type PortalPageDeleteManyArgs = { /** * Filter which PortalPages to delete */ where?: Prisma.PortalPageWhereInput /** * Limit how many PortalPages to delete. */ limit?: number } /** * PortalPage without action */ export type PortalPageDefaultArgs = { /** * Select specific fields to fetch from the PortalPage */ select?: Prisma.PortalPageSelect | null /** * Omit specific fields from the PortalPage */ omit?: Prisma.PortalPageOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.PortalPageInclude | null }