/* !!! This is code generated by Prisma. Do not edit directly. !!! */ /* eslint-disable */ // biome-ignore-all lint: generated file // @ts-nocheck /* * This file exports the `WatermarkConfig` model and its related types. * * 🟢 You can import this file directly. */ import type * as PJTG from '../pjtg'; 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 WatermarkConfig * */ export type WatermarkConfigModel = runtime.Types.Result.DefaultSelection export type AggregateWatermarkConfig = { _count: WatermarkConfigCountAggregateOutputType | null _min: WatermarkConfigMinAggregateOutputType | null _max: WatermarkConfigMaxAggregateOutputType | null } export type WatermarkConfigMinAggregateOutputType = { id: string | null hash: string | null createdAt: Date | null updatedAt: Date | null } export type WatermarkConfigMaxAggregateOutputType = { id: string | null hash: string | null createdAt: Date | null updatedAt: Date | null } export type WatermarkConfigCountAggregateOutputType = { id: number config:PrismaJson.WatermarkConfigSpec hash: number createdAt: number updatedAt: number _all: number } export type WatermarkConfigMinAggregateInputType = { id?: true hash?: true createdAt?: true updatedAt?: true } export type WatermarkConfigMaxAggregateInputType = { id?: true hash?: true createdAt?: true updatedAt?: true } export type WatermarkConfigCountAggregateInputType = { id?: true config?: true hash?: true createdAt?: true updatedAt?: true _all?: true } export type WatermarkConfigAggregateArgs = { /** * Filter which WatermarkConfig to aggregate. */ where?: Prisma.WatermarkConfigWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of WatermarkConfigs to fetch. */ orderBy?: Prisma.WatermarkConfigOrderByWithRelationInput | Prisma.WatermarkConfigOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the start position */ cursor?: Prisma.WatermarkConfigWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` WatermarkConfigs 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` WatermarkConfigs. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Count returned WatermarkConfigs **/ _count?: true | WatermarkConfigCountAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the minimum value **/ _min?: WatermarkConfigMinAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the maximum value **/ _max?: WatermarkConfigMaxAggregateInputType } export type GetWatermarkConfigAggregateType = { [P in keyof T & keyof AggregateWatermarkConfig]: P extends '_count' | 'count' ? T[P] extends true ? number : Prisma.GetScalarType : Prisma.GetScalarType } export type WatermarkConfigGroupByArgs = { where?: Prisma.WatermarkConfigWhereInput orderBy?: Prisma.WatermarkConfigOrderByWithAggregationInput | Prisma.WatermarkConfigOrderByWithAggregationInput[] by: Prisma.WatermarkConfigScalarFieldEnum[] | Prisma.WatermarkConfigScalarFieldEnum having?: Prisma.WatermarkConfigScalarWhereWithAggregatesInput take?: number skip?: number _count?: WatermarkConfigCountAggregateInputType | true _min?: WatermarkConfigMinAggregateInputType _max?: WatermarkConfigMaxAggregateInputType } export type WatermarkConfigGroupByOutputType = { id: string config:PrismaJson.WatermarkConfigSpec hash: string createdAt: Date updatedAt: Date _count: WatermarkConfigCountAggregateOutputType | null _min: WatermarkConfigMinAggregateOutputType | null _max: WatermarkConfigMaxAggregateOutputType | null } export type GetWatermarkConfigGroupByPayload = Prisma.PrismaPromise< Array< Prisma.PickEnumerable & { [P in ((keyof T) & (keyof WatermarkConfigGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : Prisma.GetScalarType : Prisma.GetScalarType } > > export type WatermarkConfigWhereInput = { AND?: Prisma.WatermarkConfigWhereInput | Prisma.WatermarkConfigWhereInput[] OR?: Prisma.WatermarkConfigWhereInput[] NOT?: Prisma.WatermarkConfigWhereInput | Prisma.WatermarkConfigWhereInput[] id?: Prisma.StringFilter<"WatermarkConfig"> | string config?: Prisma.JsonFilter<"WatermarkConfig"> hash?: Prisma.StringFilter<"WatermarkConfig"> | string createdAt?: Prisma.DateTimeFilter<"WatermarkConfig"> | Date | string updatedAt?: Prisma.DateTimeFilter<"WatermarkConfig"> | Date | string shareLinks?: Prisma.ShareLinkListRelationFilter watermarkFiles?: Prisma.WatermarkFileListRelationFilter } export type WatermarkConfigOrderByWithRelationInput = { id?: Prisma.SortOrder config?: Prisma.SortOrder hash?: Prisma.SortOrder createdAt?: Prisma.SortOrder updatedAt?: Prisma.SortOrder shareLinks?: Prisma.ShareLinkOrderByRelationAggregateInput watermarkFiles?: Prisma.WatermarkFileOrderByRelationAggregateInput } export type WatermarkConfigWhereUniqueInput = Prisma.AtLeast<{ id?: string hash?: string AND?: Prisma.WatermarkConfigWhereInput | Prisma.WatermarkConfigWhereInput[] OR?: Prisma.WatermarkConfigWhereInput[] NOT?: Prisma.WatermarkConfigWhereInput | Prisma.WatermarkConfigWhereInput[] config?: Prisma.JsonFilter<"WatermarkConfig"> createdAt?: Prisma.DateTimeFilter<"WatermarkConfig"> | Date | string updatedAt?: Prisma.DateTimeFilter<"WatermarkConfig"> | Date | string shareLinks?: Prisma.ShareLinkListRelationFilter watermarkFiles?: Prisma.WatermarkFileListRelationFilter }, "id" | "hash"> export type WatermarkConfigOrderByWithAggregationInput = { id?: Prisma.SortOrder config?: Prisma.SortOrder hash?: Prisma.SortOrder createdAt?: Prisma.SortOrder updatedAt?: Prisma.SortOrder _count?: Prisma.WatermarkConfigCountOrderByAggregateInput _max?: Prisma.WatermarkConfigMaxOrderByAggregateInput _min?: Prisma.WatermarkConfigMinOrderByAggregateInput } export type WatermarkConfigScalarWhereWithAggregatesInput = { AND?: Prisma.WatermarkConfigScalarWhereWithAggregatesInput | Prisma.WatermarkConfigScalarWhereWithAggregatesInput[] OR?: Prisma.WatermarkConfigScalarWhereWithAggregatesInput[] NOT?: Prisma.WatermarkConfigScalarWhereWithAggregatesInput | Prisma.WatermarkConfigScalarWhereWithAggregatesInput[] id?: Prisma.StringWithAggregatesFilter<"WatermarkConfig"> | string config?: Prisma.JsonWithAggregatesFilter<"WatermarkConfig"> hash?: Prisma.StringWithAggregatesFilter<"WatermarkConfig"> | string createdAt?: Prisma.DateTimeWithAggregatesFilter<"WatermarkConfig"> | Date | string updatedAt?: Prisma.DateTimeWithAggregatesFilter<"WatermarkConfig"> | Date | string } export type WatermarkConfigCreateInput = { id?: string config:PrismaJson.WatermarkConfigSpec hash: string createdAt?: Date | string updatedAt?: Date | string shareLinks?: Prisma.ShareLinkCreateNestedManyWithoutWatermarkConfigInput watermarkFiles?: Prisma.WatermarkFileCreateNestedManyWithoutWatermarkConfigInput } export type WatermarkConfigUncheckedCreateInput = { id?: string config:PrismaJson.WatermarkConfigSpec hash: string createdAt?: Date | string updatedAt?: Date | string shareLinks?: Prisma.ShareLinkUncheckedCreateNestedManyWithoutWatermarkConfigInput watermarkFiles?: Prisma.WatermarkFileUncheckedCreateNestedManyWithoutWatermarkConfigInput } export type WatermarkConfigUpdateInput = { id?: Prisma.StringFieldUpdateOperationsInput | string config?:PrismaJson.WatermarkConfigSpec hash?: Prisma.StringFieldUpdateOperationsInput | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string shareLinks?: Prisma.ShareLinkUpdateManyWithoutWatermarkConfigNestedInput watermarkFiles?: Prisma.WatermarkFileUpdateManyWithoutWatermarkConfigNestedInput } export type WatermarkConfigUncheckedUpdateInput = { id?: Prisma.StringFieldUpdateOperationsInput | string config?:PrismaJson.WatermarkConfigSpec hash?: Prisma.StringFieldUpdateOperationsInput | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string shareLinks?: Prisma.ShareLinkUncheckedUpdateManyWithoutWatermarkConfigNestedInput watermarkFiles?: Prisma.WatermarkFileUncheckedUpdateManyWithoutWatermarkConfigNestedInput } export type WatermarkConfigCreateManyInput = { id?: string config:PrismaJson.WatermarkConfigSpec hash: string createdAt?: Date | string updatedAt?: Date | string } export type WatermarkConfigUpdateManyMutationInput = { id?: Prisma.StringFieldUpdateOperationsInput | string config?:PrismaJson.WatermarkConfigSpec hash?: Prisma.StringFieldUpdateOperationsInput | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string } export type WatermarkConfigUncheckedUpdateManyInput = { id?: Prisma.StringFieldUpdateOperationsInput | string config?:PrismaJson.WatermarkConfigSpec hash?: Prisma.StringFieldUpdateOperationsInput | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string } export type WatermarkConfigNullableScalarRelationFilter = { is?: Prisma.WatermarkConfigWhereInput | null isNot?: Prisma.WatermarkConfigWhereInput | null } export type WatermarkConfigCountOrderByAggregateInput = { id?: Prisma.SortOrder config?: Prisma.SortOrder hash?: Prisma.SortOrder createdAt?: Prisma.SortOrder updatedAt?: Prisma.SortOrder } export type WatermarkConfigMaxOrderByAggregateInput = { id?: Prisma.SortOrder hash?: Prisma.SortOrder createdAt?: Prisma.SortOrder updatedAt?: Prisma.SortOrder } export type WatermarkConfigMinOrderByAggregateInput = { id?: Prisma.SortOrder hash?: Prisma.SortOrder createdAt?: Prisma.SortOrder updatedAt?: Prisma.SortOrder } export type WatermarkConfigScalarRelationFilter = { is?: Prisma.WatermarkConfigWhereInput isNot?: Prisma.WatermarkConfigWhereInput } export type WatermarkConfigCreateNestedOneWithoutShareLinksInput = { create?: Prisma.XOR connectOrCreate?: Prisma.WatermarkConfigCreateOrConnectWithoutShareLinksInput connect?: Prisma.WatermarkConfigWhereUniqueInput } export type WatermarkConfigUpdateOneWithoutShareLinksNestedInput = { create?: Prisma.XOR connectOrCreate?: Prisma.WatermarkConfigCreateOrConnectWithoutShareLinksInput upsert?: Prisma.WatermarkConfigUpsertWithoutShareLinksInput disconnect?: Prisma.WatermarkConfigWhereInput | boolean delete?: Prisma.WatermarkConfigWhereInput | boolean connect?: Prisma.WatermarkConfigWhereUniqueInput update?: Prisma.XOR, Prisma.WatermarkConfigUncheckedUpdateWithoutShareLinksInput> } export type WatermarkConfigCreateNestedOneWithoutWatermarkFilesInput = { create?: Prisma.XOR connectOrCreate?: Prisma.WatermarkConfigCreateOrConnectWithoutWatermarkFilesInput connect?: Prisma.WatermarkConfigWhereUniqueInput } export type WatermarkConfigUpdateOneRequiredWithoutWatermarkFilesNestedInput = { create?: Prisma.XOR connectOrCreate?: Prisma.WatermarkConfigCreateOrConnectWithoutWatermarkFilesInput upsert?: Prisma.WatermarkConfigUpsertWithoutWatermarkFilesInput connect?: Prisma.WatermarkConfigWhereUniqueInput update?: Prisma.XOR, Prisma.WatermarkConfigUncheckedUpdateWithoutWatermarkFilesInput> } export type WatermarkConfigCreateWithoutShareLinksInput = { id?: string config:PrismaJson.WatermarkConfigSpec hash: string createdAt?: Date | string updatedAt?: Date | string watermarkFiles?: Prisma.WatermarkFileCreateNestedManyWithoutWatermarkConfigInput } export type WatermarkConfigUncheckedCreateWithoutShareLinksInput = { id?: string config:PrismaJson.WatermarkConfigSpec hash: string createdAt?: Date | string updatedAt?: Date | string watermarkFiles?: Prisma.WatermarkFileUncheckedCreateNestedManyWithoutWatermarkConfigInput } export type WatermarkConfigCreateOrConnectWithoutShareLinksInput = { where: Prisma.WatermarkConfigWhereUniqueInput create: Prisma.XOR } export type WatermarkConfigUpsertWithoutShareLinksInput = { update: Prisma.XOR create: Prisma.XOR where?: Prisma.WatermarkConfigWhereInput } export type WatermarkConfigUpdateToOneWithWhereWithoutShareLinksInput = { where?: Prisma.WatermarkConfigWhereInput data: Prisma.XOR } export type WatermarkConfigUpdateWithoutShareLinksInput = { id?: Prisma.StringFieldUpdateOperationsInput | string config?:PrismaJson.WatermarkConfigSpec hash?: Prisma.StringFieldUpdateOperationsInput | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string watermarkFiles?: Prisma.WatermarkFileUpdateManyWithoutWatermarkConfigNestedInput } export type WatermarkConfigUncheckedUpdateWithoutShareLinksInput = { id?: Prisma.StringFieldUpdateOperationsInput | string config?:PrismaJson.WatermarkConfigSpec hash?: Prisma.StringFieldUpdateOperationsInput | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string watermarkFiles?: Prisma.WatermarkFileUncheckedUpdateManyWithoutWatermarkConfigNestedInput } export type WatermarkConfigCreateWithoutWatermarkFilesInput = { id?: string config:PrismaJson.WatermarkConfigSpec hash: string createdAt?: Date | string updatedAt?: Date | string shareLinks?: Prisma.ShareLinkCreateNestedManyWithoutWatermarkConfigInput } export type WatermarkConfigUncheckedCreateWithoutWatermarkFilesInput = { id?: string config:PrismaJson.WatermarkConfigSpec hash: string createdAt?: Date | string updatedAt?: Date | string shareLinks?: Prisma.ShareLinkUncheckedCreateNestedManyWithoutWatermarkConfigInput } export type WatermarkConfigCreateOrConnectWithoutWatermarkFilesInput = { where: Prisma.WatermarkConfigWhereUniqueInput create: Prisma.XOR } export type WatermarkConfigUpsertWithoutWatermarkFilesInput = { update: Prisma.XOR create: Prisma.XOR where?: Prisma.WatermarkConfigWhereInput } export type WatermarkConfigUpdateToOneWithWhereWithoutWatermarkFilesInput = { where?: Prisma.WatermarkConfigWhereInput data: Prisma.XOR } export type WatermarkConfigUpdateWithoutWatermarkFilesInput = { id?: Prisma.StringFieldUpdateOperationsInput | string config?:PrismaJson.WatermarkConfigSpec hash?: Prisma.StringFieldUpdateOperationsInput | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string shareLinks?: Prisma.ShareLinkUpdateManyWithoutWatermarkConfigNestedInput } export type WatermarkConfigUncheckedUpdateWithoutWatermarkFilesInput = { id?: Prisma.StringFieldUpdateOperationsInput | string config?:PrismaJson.WatermarkConfigSpec hash?: Prisma.StringFieldUpdateOperationsInput | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string shareLinks?: Prisma.ShareLinkUncheckedUpdateManyWithoutWatermarkConfigNestedInput } /** * Count Type WatermarkConfigCountOutputType */ export type WatermarkConfigCountOutputType = { shareLinks: number watermarkFiles: number } export type WatermarkConfigCountOutputTypeSelect = { shareLinks?: boolean | WatermarkConfigCountOutputTypeCountShareLinksArgs watermarkFiles?: boolean | WatermarkConfigCountOutputTypeCountWatermarkFilesArgs } /** * WatermarkConfigCountOutputType without action */ export type WatermarkConfigCountOutputTypeDefaultArgs = { /** * Select specific fields to fetch from the WatermarkConfigCountOutputType */ select?: Prisma.WatermarkConfigCountOutputTypeSelect | null } /** * WatermarkConfigCountOutputType without action */ export type WatermarkConfigCountOutputTypeCountShareLinksArgs = { where?: Prisma.ShareLinkWhereInput } /** * WatermarkConfigCountOutputType without action */ export type WatermarkConfigCountOutputTypeCountWatermarkFilesArgs = { where?: Prisma.WatermarkFileWhereInput } export type WatermarkConfigSelect = runtime.Types.Extensions.GetSelect<{ id?: boolean config?: boolean hash?: boolean createdAt?: boolean updatedAt?: boolean shareLinks?: boolean | Prisma.WatermarkConfig$shareLinksArgs watermarkFiles?: boolean | Prisma.WatermarkConfig$watermarkFilesArgs _count?: boolean | Prisma.WatermarkConfigCountOutputTypeDefaultArgs }, ExtArgs["result"]["watermarkConfig"]> export type WatermarkConfigSelectCreateManyAndReturn = runtime.Types.Extensions.GetSelect<{ id?: boolean config?: boolean hash?: boolean createdAt?: boolean updatedAt?: boolean }, ExtArgs["result"]["watermarkConfig"]> export type WatermarkConfigSelectUpdateManyAndReturn = runtime.Types.Extensions.GetSelect<{ id?: boolean config?: boolean hash?: boolean createdAt?: boolean updatedAt?: boolean }, ExtArgs["result"]["watermarkConfig"]> export type WatermarkConfigSelectScalar = { id?: boolean config?: boolean hash?: boolean createdAt?: boolean updatedAt?: boolean } export type WatermarkConfigOmit = runtime.Types.Extensions.GetOmit<"id" | "config" | "hash" | "createdAt" | "updatedAt", ExtArgs["result"]["watermarkConfig"]> export type WatermarkConfigInclude = { shareLinks?: boolean | Prisma.WatermarkConfig$shareLinksArgs watermarkFiles?: boolean | Prisma.WatermarkConfig$watermarkFilesArgs _count?: boolean | Prisma.WatermarkConfigCountOutputTypeDefaultArgs } export type WatermarkConfigIncludeCreateManyAndReturn = {} export type WatermarkConfigIncludeUpdateManyAndReturn = {} export type $WatermarkConfigPayload = { name: "WatermarkConfig" objects: { shareLinks: Prisma.$ShareLinkPayload[] watermarkFiles: Prisma.$WatermarkFilePayload[] } scalars: runtime.Types.Extensions.GetPayloadResult<{ id: string /** * [WatermarkConfigSpec] */ config:PrismaJson.WatermarkConfigSpec hash: string createdAt: Date updatedAt: Date }, ExtArgs["result"]["watermarkConfig"]> composites: {} } export type WatermarkConfigGetPayload = runtime.Types.Result.GetResult export type WatermarkConfigCountArgs = Omit & { select?: WatermarkConfigCountAggregateInputType | true } export interface WatermarkConfigDelegate { [K: symbol]: { types: Prisma.TypeMap['model']['WatermarkConfig'], meta: { name: 'WatermarkConfig' } } /** * Find zero or one WatermarkConfig that matches the filter. * @param {WatermarkConfigFindUniqueArgs} args - Arguments to find a WatermarkConfig * @example * // Get one WatermarkConfig * const watermarkConfig = await prisma.watermarkConfig.findUnique({ * where: { * // ... provide filter here * } * }) */ findUnique(args: Prisma.SelectSubset>): Prisma.Prisma__WatermarkConfigClient, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find one WatermarkConfig that matches the filter or throw an error with `error.code='P2025'` * if no matches were found. * @param {WatermarkConfigFindUniqueOrThrowArgs} args - Arguments to find a WatermarkConfig * @example * // Get one WatermarkConfig * const watermarkConfig = await prisma.watermarkConfig.findUniqueOrThrow({ * where: { * // ... provide filter here * } * }) */ findUniqueOrThrow(args: Prisma.SelectSubset>): Prisma.Prisma__WatermarkConfigClient, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find the first WatermarkConfig 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 {WatermarkConfigFindFirstArgs} args - Arguments to find a WatermarkConfig * @example * // Get one WatermarkConfig * const watermarkConfig = await prisma.watermarkConfig.findFirst({ * where: { * // ... provide filter here * } * }) */ findFirst(args?: Prisma.SelectSubset>): Prisma.Prisma__WatermarkConfigClient, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find the first WatermarkConfig 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 {WatermarkConfigFindFirstOrThrowArgs} args - Arguments to find a WatermarkConfig * @example * // Get one WatermarkConfig * const watermarkConfig = await prisma.watermarkConfig.findFirstOrThrow({ * where: { * // ... provide filter here * } * }) */ findFirstOrThrow(args?: Prisma.SelectSubset>): Prisma.Prisma__WatermarkConfigClient, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find zero or more WatermarkConfigs 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 {WatermarkConfigFindManyArgs} args - Arguments to filter and select certain fields only. * @example * // Get all WatermarkConfigs * const watermarkConfigs = await prisma.watermarkConfig.findMany() * * // Get first 10 WatermarkConfigs * const watermarkConfigs = await prisma.watermarkConfig.findMany({ take: 10 }) * * // Only select the `id` * const watermarkConfigWithIdOnly = await prisma.watermarkConfig.findMany({ select: { id: true } }) * */ findMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>> /** * Create a WatermarkConfig. * @param {WatermarkConfigCreateArgs} args - Arguments to create a WatermarkConfig. * @example * // Create one WatermarkConfig * const WatermarkConfig = await prisma.watermarkConfig.create({ * data: { * // ... data to create a WatermarkConfig * } * }) * */ create(args: Prisma.SelectSubset>): Prisma.Prisma__WatermarkConfigClient, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Create many WatermarkConfigs. * @param {WatermarkConfigCreateManyArgs} args - Arguments to create many WatermarkConfigs. * @example * // Create many WatermarkConfigs * const watermarkConfig = await prisma.watermarkConfig.createMany({ * data: [ * // ... provide data here * ] * }) * */ createMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Create many WatermarkConfigs and returns the data saved in the database. * @param {WatermarkConfigCreateManyAndReturnArgs} args - Arguments to create many WatermarkConfigs. * @example * // Create many WatermarkConfigs * const watermarkConfig = await prisma.watermarkConfig.createManyAndReturn({ * data: [ * // ... provide data here * ] * }) * * // Create many WatermarkConfigs and only return the `id` * const watermarkConfigWithIdOnly = await prisma.watermarkConfig.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 WatermarkConfig. * @param {WatermarkConfigDeleteArgs} args - Arguments to delete one WatermarkConfig. * @example * // Delete one WatermarkConfig * const WatermarkConfig = await prisma.watermarkConfig.delete({ * where: { * // ... filter to delete one WatermarkConfig * } * }) * */ delete(args: Prisma.SelectSubset>): Prisma.Prisma__WatermarkConfigClient, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Update one WatermarkConfig. * @param {WatermarkConfigUpdateArgs} args - Arguments to update one WatermarkConfig. * @example * // Update one WatermarkConfig * const watermarkConfig = await prisma.watermarkConfig.update({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ update(args: Prisma.SelectSubset>): Prisma.Prisma__WatermarkConfigClient, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Delete zero or more WatermarkConfigs. * @param {WatermarkConfigDeleteManyArgs} args - Arguments to filter WatermarkConfigs to delete. * @example * // Delete a few WatermarkConfigs * const { count } = await prisma.watermarkConfig.deleteMany({ * where: { * // ... provide filter here * } * }) * */ deleteMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Update zero or more WatermarkConfigs. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {WatermarkConfigUpdateManyArgs} args - Arguments to update one or more rows. * @example * // Update many WatermarkConfigs * const watermarkConfig = await prisma.watermarkConfig.updateMany({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ updateMany(args: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Update zero or more WatermarkConfigs and returns the data updated in the database. * @param {WatermarkConfigUpdateManyAndReturnArgs} args - Arguments to update many WatermarkConfigs. * @example * // Update many WatermarkConfigs * const watermarkConfig = await prisma.watermarkConfig.updateManyAndReturn({ * where: { * // ... provide filter here * }, * data: [ * // ... provide data here * ] * }) * * // Update zero or more WatermarkConfigs and only return the `id` * const watermarkConfigWithIdOnly = await prisma.watermarkConfig.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 WatermarkConfig. * @param {WatermarkConfigUpsertArgs} args - Arguments to update or create a WatermarkConfig. * @example * // Update or create a WatermarkConfig * const watermarkConfig = await prisma.watermarkConfig.upsert({ * create: { * // ... data to create a WatermarkConfig * }, * update: { * // ... in case it already exists, update * }, * where: { * // ... the filter for the WatermarkConfig we want to update * } * }) */ upsert(args: Prisma.SelectSubset>): Prisma.Prisma__WatermarkConfigClient, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Count the number of WatermarkConfigs. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {WatermarkConfigCountArgs} args - Arguments to filter WatermarkConfigs to count. * @example * // Count the number of WatermarkConfigs * const count = await prisma.watermarkConfig.count({ * where: { * // ... the filter for the WatermarkConfigs 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 WatermarkConfig. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {WatermarkConfigAggregateArgs} 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 WatermarkConfig. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {WatermarkConfigGroupByArgs} 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 WatermarkConfigGroupByArgs, HasSelectOrTake extends Prisma.Or< Prisma.Extends<'skip', Prisma.Keys>, Prisma.Extends<'take', Prisma.Keys> >, OrderByArg extends Prisma.True extends HasSelectOrTake ? { orderBy: WatermarkConfigGroupByArgs['orderBy'] } : { orderBy?: WatermarkConfigGroupByArgs['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 ? GetWatermarkConfigGroupByPayload : Prisma.PrismaPromise /** * Fields of the WatermarkConfig model */ readonly fields: WatermarkConfigFieldRefs; } /** * The delegate class that acts as a "Promise-like" for WatermarkConfig. * 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__WatermarkConfigClient extends Prisma.PrismaPromise { readonly [Symbol.toStringTag]: "PrismaPromise" shareLinks = {}>(args?: Prisma.Subset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions> | Null> watermarkFiles = {}>(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 WatermarkConfig model */ export interface WatermarkConfigFieldRefs { readonly id: Prisma.FieldRef<"WatermarkConfig", 'String'> readonly config: Prisma.FieldRef<"WatermarkConfig", 'Json'> readonly hash: Prisma.FieldRef<"WatermarkConfig", 'String'> readonly createdAt: Prisma.FieldRef<"WatermarkConfig", 'DateTime'> readonly updatedAt: Prisma.FieldRef<"WatermarkConfig", 'DateTime'> } // Custom InputTypes /** * WatermarkConfig findUnique */ export type WatermarkConfigFindUniqueArgs = { /** * Select specific fields to fetch from the WatermarkConfig */ select?: Prisma.WatermarkConfigSelect | null /** * Omit specific fields from the WatermarkConfig */ omit?: Prisma.WatermarkConfigOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.WatermarkConfigInclude | null /** * Filter, which WatermarkConfig to fetch. */ where: Prisma.WatermarkConfigWhereUniqueInput } /** * WatermarkConfig findUniqueOrThrow */ export type WatermarkConfigFindUniqueOrThrowArgs = { /** * Select specific fields to fetch from the WatermarkConfig */ select?: Prisma.WatermarkConfigSelect | null /** * Omit specific fields from the WatermarkConfig */ omit?: Prisma.WatermarkConfigOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.WatermarkConfigInclude | null /** * Filter, which WatermarkConfig to fetch. */ where: Prisma.WatermarkConfigWhereUniqueInput } /** * WatermarkConfig findFirst */ export type WatermarkConfigFindFirstArgs = { /** * Select specific fields to fetch from the WatermarkConfig */ select?: Prisma.WatermarkConfigSelect | null /** * Omit specific fields from the WatermarkConfig */ omit?: Prisma.WatermarkConfigOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.WatermarkConfigInclude | null /** * Filter, which WatermarkConfig to fetch. */ where?: Prisma.WatermarkConfigWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of WatermarkConfigs to fetch. */ orderBy?: Prisma.WatermarkConfigOrderByWithRelationInput | Prisma.WatermarkConfigOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for WatermarkConfigs. */ cursor?: Prisma.WatermarkConfigWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` WatermarkConfigs 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` WatermarkConfigs. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of WatermarkConfigs. */ distinct?: Prisma.WatermarkConfigScalarFieldEnum | Prisma.WatermarkConfigScalarFieldEnum[] } /** * WatermarkConfig findFirstOrThrow */ export type WatermarkConfigFindFirstOrThrowArgs = { /** * Select specific fields to fetch from the WatermarkConfig */ select?: Prisma.WatermarkConfigSelect | null /** * Omit specific fields from the WatermarkConfig */ omit?: Prisma.WatermarkConfigOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.WatermarkConfigInclude | null /** * Filter, which WatermarkConfig to fetch. */ where?: Prisma.WatermarkConfigWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of WatermarkConfigs to fetch. */ orderBy?: Prisma.WatermarkConfigOrderByWithRelationInput | Prisma.WatermarkConfigOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for WatermarkConfigs. */ cursor?: Prisma.WatermarkConfigWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` WatermarkConfigs 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` WatermarkConfigs. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of WatermarkConfigs. */ distinct?: Prisma.WatermarkConfigScalarFieldEnum | Prisma.WatermarkConfigScalarFieldEnum[] } /** * WatermarkConfig findMany */ export type WatermarkConfigFindManyArgs = { /** * Select specific fields to fetch from the WatermarkConfig */ select?: Prisma.WatermarkConfigSelect | null /** * Omit specific fields from the WatermarkConfig */ omit?: Prisma.WatermarkConfigOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.WatermarkConfigInclude | null /** * Filter, which WatermarkConfigs to fetch. */ where?: Prisma.WatermarkConfigWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of WatermarkConfigs to fetch. */ orderBy?: Prisma.WatermarkConfigOrderByWithRelationInput | Prisma.WatermarkConfigOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for listing WatermarkConfigs. */ cursor?: Prisma.WatermarkConfigWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` WatermarkConfigs 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` WatermarkConfigs. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of WatermarkConfigs. */ distinct?: Prisma.WatermarkConfigScalarFieldEnum | Prisma.WatermarkConfigScalarFieldEnum[] } /** * WatermarkConfig create */ export type WatermarkConfigCreateArgs = { /** * Select specific fields to fetch from the WatermarkConfig */ select?: Prisma.WatermarkConfigSelect | null /** * Omit specific fields from the WatermarkConfig */ omit?: Prisma.WatermarkConfigOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.WatermarkConfigInclude | null /** * The data needed to create a WatermarkConfig. */ data: Prisma.XOR } /** * WatermarkConfig createMany */ export type WatermarkConfigCreateManyArgs = { /** * The data used to create many WatermarkConfigs. */ data: Prisma.WatermarkConfigCreateManyInput | Prisma.WatermarkConfigCreateManyInput[] skipDuplicates?: boolean } /** * WatermarkConfig createManyAndReturn */ export type WatermarkConfigCreateManyAndReturnArgs = { /** * Select specific fields to fetch from the WatermarkConfig */ select?: Prisma.WatermarkConfigSelectCreateManyAndReturn | null /** * Omit specific fields from the WatermarkConfig */ omit?: Prisma.WatermarkConfigOmit | null /** * The data used to create many WatermarkConfigs. */ data: Prisma.WatermarkConfigCreateManyInput | Prisma.WatermarkConfigCreateManyInput[] skipDuplicates?: boolean } /** * WatermarkConfig update */ export type WatermarkConfigUpdateArgs = { /** * Select specific fields to fetch from the WatermarkConfig */ select?: Prisma.WatermarkConfigSelect | null /** * Omit specific fields from the WatermarkConfig */ omit?: Prisma.WatermarkConfigOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.WatermarkConfigInclude | null /** * The data needed to update a WatermarkConfig. */ data: Prisma.XOR /** * Choose, which WatermarkConfig to update. */ where: Prisma.WatermarkConfigWhereUniqueInput } /** * WatermarkConfig updateMany */ export type WatermarkConfigUpdateManyArgs = { /** * The data used to update WatermarkConfigs. */ data: Prisma.XOR /** * Filter which WatermarkConfigs to update */ where?: Prisma.WatermarkConfigWhereInput /** * Limit how many WatermarkConfigs to update. */ limit?: number } /** * WatermarkConfig updateManyAndReturn */ export type WatermarkConfigUpdateManyAndReturnArgs = { /** * Select specific fields to fetch from the WatermarkConfig */ select?: Prisma.WatermarkConfigSelectUpdateManyAndReturn | null /** * Omit specific fields from the WatermarkConfig */ omit?: Prisma.WatermarkConfigOmit | null /** * The data used to update WatermarkConfigs. */ data: Prisma.XOR /** * Filter which WatermarkConfigs to update */ where?: Prisma.WatermarkConfigWhereInput /** * Limit how many WatermarkConfigs to update. */ limit?: number } /** * WatermarkConfig upsert */ export type WatermarkConfigUpsertArgs = { /** * Select specific fields to fetch from the WatermarkConfig */ select?: Prisma.WatermarkConfigSelect | null /** * Omit specific fields from the WatermarkConfig */ omit?: Prisma.WatermarkConfigOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.WatermarkConfigInclude | null /** * The filter to search for the WatermarkConfig to update in case it exists. */ where: Prisma.WatermarkConfigWhereUniqueInput /** * In case the WatermarkConfig found by the `where` argument doesn't exist, create a new WatermarkConfig with this data. */ create: Prisma.XOR /** * In case the WatermarkConfig was found with the provided `where` argument, update it with this data. */ update: Prisma.XOR } /** * WatermarkConfig delete */ export type WatermarkConfigDeleteArgs = { /** * Select specific fields to fetch from the WatermarkConfig */ select?: Prisma.WatermarkConfigSelect | null /** * Omit specific fields from the WatermarkConfig */ omit?: Prisma.WatermarkConfigOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.WatermarkConfigInclude | null /** * Filter which WatermarkConfig to delete. */ where: Prisma.WatermarkConfigWhereUniqueInput } /** * WatermarkConfig deleteMany */ export type WatermarkConfigDeleteManyArgs = { /** * Filter which WatermarkConfigs to delete */ where?: Prisma.WatermarkConfigWhereInput /** * Limit how many WatermarkConfigs to delete. */ limit?: number } /** * WatermarkConfig.shareLinks */ export type WatermarkConfig$shareLinksArgs = { /** * Select specific fields to fetch from the ShareLink */ select?: Prisma.ShareLinkSelect | null /** * Omit specific fields from the ShareLink */ omit?: Prisma.ShareLinkOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.ShareLinkInclude | null where?: Prisma.ShareLinkWhereInput orderBy?: Prisma.ShareLinkOrderByWithRelationInput | Prisma.ShareLinkOrderByWithRelationInput[] cursor?: Prisma.ShareLinkWhereUniqueInput take?: number skip?: number distinct?: Prisma.ShareLinkScalarFieldEnum | Prisma.ShareLinkScalarFieldEnum[] } /** * WatermarkConfig.watermarkFiles */ export type WatermarkConfig$watermarkFilesArgs = { /** * Select specific fields to fetch from the WatermarkFile */ select?: Prisma.WatermarkFileSelect | null /** * Omit specific fields from the WatermarkFile */ omit?: Prisma.WatermarkFileOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.WatermarkFileInclude | null where?: Prisma.WatermarkFileWhereInput orderBy?: Prisma.WatermarkFileOrderByWithRelationInput | Prisma.WatermarkFileOrderByWithRelationInput[] cursor?: Prisma.WatermarkFileWhereUniqueInput take?: number skip?: number distinct?: Prisma.WatermarkFileScalarFieldEnum | Prisma.WatermarkFileScalarFieldEnum[] } /** * WatermarkConfig without action */ export type WatermarkConfigDefaultArgs = { /** * Select specific fields to fetch from the WatermarkConfig */ select?: Prisma.WatermarkConfigSelect | null /** * Omit specific fields from the WatermarkConfig */ omit?: Prisma.WatermarkConfigOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.WatermarkConfigInclude | null }