/* !!! This is code generated by Prisma. Do not edit directly. !!! */ /* eslint-disable */ // @ts-nocheck /* * This file exports the `ShortLink` model and its related types. * * 🟢 You can import this file directly. */ import type * as runtime from "@prisma/client/runtime/library" import type * as $Enums from "../enums.ts" import type * as Prisma from "../internal/prismaNamespace.ts" /** * Model ShortLink * */ export type ShortLinkModel = runtime.Types.Result.DefaultSelection export type AggregateShortLink = { _count: ShortLinkCountAggregateOutputType | null _min: ShortLinkMinAggregateOutputType | null _max: ShortLinkMaxAggregateOutputType | null } export type ShortLinkMinAggregateOutputType = { id: string | null shortCode: string | null fullUrl: string | null createdAt: Date | null updatedAt: Date | null } export type ShortLinkMaxAggregateOutputType = { id: string | null shortCode: string | null fullUrl: string | null createdAt: Date | null updatedAt: Date | null } export type ShortLinkCountAggregateOutputType = { id: number shortCode: number fullUrl: number createdAt: number updatedAt: number _all: number } export type ShortLinkMinAggregateInputType = { id?: true shortCode?: true fullUrl?: true createdAt?: true updatedAt?: true } export type ShortLinkMaxAggregateInputType = { id?: true shortCode?: true fullUrl?: true createdAt?: true updatedAt?: true } export type ShortLinkCountAggregateInputType = { id?: true shortCode?: true fullUrl?: true createdAt?: true updatedAt?: true _all?: true } export type ShortLinkAggregateArgs = { /** * Filter which ShortLink to aggregate. */ where?: Prisma.ShortLinkWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of ShortLinks to fetch. */ orderBy?: Prisma.ShortLinkOrderByWithRelationInput | Prisma.ShortLinkOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the start position */ cursor?: Prisma.ShortLinkWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` ShortLinks 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` ShortLinks. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Count returned ShortLinks **/ _count?: true | ShortLinkCountAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the minimum value **/ _min?: ShortLinkMinAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the maximum value **/ _max?: ShortLinkMaxAggregateInputType } export type GetShortLinkAggregateType = { [P in keyof T & keyof AggregateShortLink]: P extends '_count' | 'count' ? T[P] extends true ? number : Prisma.GetScalarType : Prisma.GetScalarType } export type ShortLinkGroupByArgs = { where?: Prisma.ShortLinkWhereInput orderBy?: Prisma.ShortLinkOrderByWithAggregationInput | Prisma.ShortLinkOrderByWithAggregationInput[] by: Prisma.ShortLinkScalarFieldEnum[] | Prisma.ShortLinkScalarFieldEnum having?: Prisma.ShortLinkScalarWhereWithAggregatesInput take?: number skip?: number _count?: ShortLinkCountAggregateInputType | true _min?: ShortLinkMinAggregateInputType _max?: ShortLinkMaxAggregateInputType } export type ShortLinkGroupByOutputType = { id: string shortCode: string fullUrl: string createdAt: Date updatedAt: Date _count: ShortLinkCountAggregateOutputType | null _min: ShortLinkMinAggregateOutputType | null _max: ShortLinkMaxAggregateOutputType | null } type GetShortLinkGroupByPayload = Prisma.PrismaPromise< Array< Prisma.PickEnumerable & { [P in ((keyof T) & (keyof ShortLinkGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : Prisma.GetScalarType : Prisma.GetScalarType } > > export type ShortLinkWhereInput = { AND?: Prisma.ShortLinkWhereInput | Prisma.ShortLinkWhereInput[] OR?: Prisma.ShortLinkWhereInput[] NOT?: Prisma.ShortLinkWhereInput | Prisma.ShortLinkWhereInput[] id?: Prisma.StringFilter<"ShortLink"> | string shortCode?: Prisma.StringFilter<"ShortLink"> | string fullUrl?: Prisma.StringFilter<"ShortLink"> | string createdAt?: Prisma.DateTimeFilter<"ShortLink"> | Date | string updatedAt?: Prisma.DateTimeFilter<"ShortLink"> | Date | string } export type ShortLinkOrderByWithRelationInput = { id?: Prisma.SortOrder shortCode?: Prisma.SortOrder fullUrl?: Prisma.SortOrder createdAt?: Prisma.SortOrder updatedAt?: Prisma.SortOrder } export type ShortLinkWhereUniqueInput = Prisma.AtLeast<{ id?: string shortCode?: string AND?: Prisma.ShortLinkWhereInput | Prisma.ShortLinkWhereInput[] OR?: Prisma.ShortLinkWhereInput[] NOT?: Prisma.ShortLinkWhereInput | Prisma.ShortLinkWhereInput[] fullUrl?: Prisma.StringFilter<"ShortLink"> | string createdAt?: Prisma.DateTimeFilter<"ShortLink"> | Date | string updatedAt?: Prisma.DateTimeFilter<"ShortLink"> | Date | string }, "id" | "shortCode"> export type ShortLinkOrderByWithAggregationInput = { id?: Prisma.SortOrder shortCode?: Prisma.SortOrder fullUrl?: Prisma.SortOrder createdAt?: Prisma.SortOrder updatedAt?: Prisma.SortOrder _count?: Prisma.ShortLinkCountOrderByAggregateInput _max?: Prisma.ShortLinkMaxOrderByAggregateInput _min?: Prisma.ShortLinkMinOrderByAggregateInput } export type ShortLinkScalarWhereWithAggregatesInput = { AND?: Prisma.ShortLinkScalarWhereWithAggregatesInput | Prisma.ShortLinkScalarWhereWithAggregatesInput[] OR?: Prisma.ShortLinkScalarWhereWithAggregatesInput[] NOT?: Prisma.ShortLinkScalarWhereWithAggregatesInput | Prisma.ShortLinkScalarWhereWithAggregatesInput[] id?: Prisma.StringWithAggregatesFilter<"ShortLink"> | string shortCode?: Prisma.StringWithAggregatesFilter<"ShortLink"> | string fullUrl?: Prisma.StringWithAggregatesFilter<"ShortLink"> | string createdAt?: Prisma.DateTimeWithAggregatesFilter<"ShortLink"> | Date | string updatedAt?: Prisma.DateTimeWithAggregatesFilter<"ShortLink"> | Date | string } export type ShortLinkCreateInput = { id?: string shortCode: string fullUrl: string createdAt?: Date | string updatedAt?: Date | string } export type ShortLinkUncheckedCreateInput = { id?: string shortCode: string fullUrl: string createdAt?: Date | string updatedAt?: Date | string } export type ShortLinkUpdateInput = { id?: Prisma.StringFieldUpdateOperationsInput | string shortCode?: Prisma.StringFieldUpdateOperationsInput | string fullUrl?: Prisma.StringFieldUpdateOperationsInput | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string } export type ShortLinkUncheckedUpdateInput = { id?: Prisma.StringFieldUpdateOperationsInput | string shortCode?: Prisma.StringFieldUpdateOperationsInput | string fullUrl?: Prisma.StringFieldUpdateOperationsInput | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string } export type ShortLinkCreateManyInput = { id?: string shortCode: string fullUrl: string createdAt?: Date | string updatedAt?: Date | string } export type ShortLinkUpdateManyMutationInput = { id?: Prisma.StringFieldUpdateOperationsInput | string shortCode?: Prisma.StringFieldUpdateOperationsInput | string fullUrl?: Prisma.StringFieldUpdateOperationsInput | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string } export type ShortLinkUncheckedUpdateManyInput = { id?: Prisma.StringFieldUpdateOperationsInput | string shortCode?: Prisma.StringFieldUpdateOperationsInput | string fullUrl?: Prisma.StringFieldUpdateOperationsInput | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string } export type ShortLinkCountOrderByAggregateInput = { id?: Prisma.SortOrder shortCode?: Prisma.SortOrder fullUrl?: Prisma.SortOrder createdAt?: Prisma.SortOrder updatedAt?: Prisma.SortOrder } export type ShortLinkMaxOrderByAggregateInput = { id?: Prisma.SortOrder shortCode?: Prisma.SortOrder fullUrl?: Prisma.SortOrder createdAt?: Prisma.SortOrder updatedAt?: Prisma.SortOrder } export type ShortLinkMinOrderByAggregateInput = { id?: Prisma.SortOrder shortCode?: Prisma.SortOrder fullUrl?: Prisma.SortOrder createdAt?: Prisma.SortOrder updatedAt?: Prisma.SortOrder } export type StringFieldUpdateOperationsInput = { set?: string } export type DateTimeFieldUpdateOperationsInput = { set?: Date | string } export type ShortLinkSelect = runtime.Types.Extensions.GetSelect<{ id?: boolean shortCode?: boolean fullUrl?: boolean createdAt?: boolean updatedAt?: boolean }, ExtArgs["result"]["shortLink"]> export type ShortLinkSelectCreateManyAndReturn = runtime.Types.Extensions.GetSelect<{ id?: boolean shortCode?: boolean fullUrl?: boolean createdAt?: boolean updatedAt?: boolean }, ExtArgs["result"]["shortLink"]> export type ShortLinkSelectUpdateManyAndReturn = runtime.Types.Extensions.GetSelect<{ id?: boolean shortCode?: boolean fullUrl?: boolean createdAt?: boolean updatedAt?: boolean }, ExtArgs["result"]["shortLink"]> export type ShortLinkSelectScalar = { id?: boolean shortCode?: boolean fullUrl?: boolean createdAt?: boolean updatedAt?: boolean } export type ShortLinkOmit = runtime.Types.Extensions.GetOmit<"id" | "shortCode" | "fullUrl" | "createdAt" | "updatedAt", ExtArgs["result"]["shortLink"]> export type $ShortLinkPayload = { name: "ShortLink" objects: {} scalars: runtime.Types.Extensions.GetPayloadResult<{ id: string shortCode: string fullUrl: string createdAt: Date updatedAt: Date }, ExtArgs["result"]["shortLink"]> composites: {} } export type ShortLinkGetPayload = runtime.Types.Result.GetResult export type ShortLinkCountArgs = Omit & { select?: ShortLinkCountAggregateInputType | true } export interface ShortLinkDelegate { [K: symbol]: { types: Prisma.TypeMap['model']['ShortLink'], meta: { name: 'ShortLink' } } /** * Find zero or one ShortLink that matches the filter. * @param {ShortLinkFindUniqueArgs} args - Arguments to find a ShortLink * @example * // Get one ShortLink * const shortLink = await prisma.shortLink.findUnique({ * where: { * // ... provide filter here * } * }) */ findUnique(args: Prisma.SelectSubset>): Prisma.Prisma__ShortLinkClient, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find one ShortLink that matches the filter or throw an error with `error.code='P2025'` * if no matches were found. * @param {ShortLinkFindUniqueOrThrowArgs} args - Arguments to find a ShortLink * @example * // Get one ShortLink * const shortLink = await prisma.shortLink.findUniqueOrThrow({ * where: { * // ... provide filter here * } * }) */ findUniqueOrThrow(args: Prisma.SelectSubset>): Prisma.Prisma__ShortLinkClient, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find the first ShortLink 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 {ShortLinkFindFirstArgs} args - Arguments to find a ShortLink * @example * // Get one ShortLink * const shortLink = await prisma.shortLink.findFirst({ * where: { * // ... provide filter here * } * }) */ findFirst(args?: Prisma.SelectSubset>): Prisma.Prisma__ShortLinkClient, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find the first ShortLink 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 {ShortLinkFindFirstOrThrowArgs} args - Arguments to find a ShortLink * @example * // Get one ShortLink * const shortLink = await prisma.shortLink.findFirstOrThrow({ * where: { * // ... provide filter here * } * }) */ findFirstOrThrow(args?: Prisma.SelectSubset>): Prisma.Prisma__ShortLinkClient, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find zero or more ShortLinks 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 {ShortLinkFindManyArgs} args - Arguments to filter and select certain fields only. * @example * // Get all ShortLinks * const shortLinks = await prisma.shortLink.findMany() * * // Get first 10 ShortLinks * const shortLinks = await prisma.shortLink.findMany({ take: 10 }) * * // Only select the `id` * const shortLinkWithIdOnly = await prisma.shortLink.findMany({ select: { id: true } }) * */ findMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>> /** * Create a ShortLink. * @param {ShortLinkCreateArgs} args - Arguments to create a ShortLink. * @example * // Create one ShortLink * const ShortLink = await prisma.shortLink.create({ * data: { * // ... data to create a ShortLink * } * }) * */ create(args: Prisma.SelectSubset>): Prisma.Prisma__ShortLinkClient, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Create many ShortLinks. * @param {ShortLinkCreateManyArgs} args - Arguments to create many ShortLinks. * @example * // Create many ShortLinks * const shortLink = await prisma.shortLink.createMany({ * data: [ * // ... provide data here * ] * }) * */ createMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Create many ShortLinks and returns the data saved in the database. * @param {ShortLinkCreateManyAndReturnArgs} args - Arguments to create many ShortLinks. * @example * // Create many ShortLinks * const shortLink = await prisma.shortLink.createManyAndReturn({ * data: [ * // ... provide data here * ] * }) * * // Create many ShortLinks and only return the `id` * const shortLinkWithIdOnly = await prisma.shortLink.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 ShortLink. * @param {ShortLinkDeleteArgs} args - Arguments to delete one ShortLink. * @example * // Delete one ShortLink * const ShortLink = await prisma.shortLink.delete({ * where: { * // ... filter to delete one ShortLink * } * }) * */ delete(args: Prisma.SelectSubset>): Prisma.Prisma__ShortLinkClient, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Update one ShortLink. * @param {ShortLinkUpdateArgs} args - Arguments to update one ShortLink. * @example * // Update one ShortLink * const shortLink = await prisma.shortLink.update({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ update(args: Prisma.SelectSubset>): Prisma.Prisma__ShortLinkClient, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Delete zero or more ShortLinks. * @param {ShortLinkDeleteManyArgs} args - Arguments to filter ShortLinks to delete. * @example * // Delete a few ShortLinks * const { count } = await prisma.shortLink.deleteMany({ * where: { * // ... provide filter here * } * }) * */ deleteMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Update zero or more ShortLinks. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {ShortLinkUpdateManyArgs} args - Arguments to update one or more rows. * @example * // Update many ShortLinks * const shortLink = await prisma.shortLink.updateMany({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ updateMany(args: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Update zero or more ShortLinks and returns the data updated in the database. * @param {ShortLinkUpdateManyAndReturnArgs} args - Arguments to update many ShortLinks. * @example * // Update many ShortLinks * const shortLink = await prisma.shortLink.updateManyAndReturn({ * where: { * // ... provide filter here * }, * data: [ * // ... provide data here * ] * }) * * // Update zero or more ShortLinks and only return the `id` * const shortLinkWithIdOnly = await prisma.shortLink.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 ShortLink. * @param {ShortLinkUpsertArgs} args - Arguments to update or create a ShortLink. * @example * // Update or create a ShortLink * const shortLink = await prisma.shortLink.upsert({ * create: { * // ... data to create a ShortLink * }, * update: { * // ... in case it already exists, update * }, * where: { * // ... the filter for the ShortLink we want to update * } * }) */ upsert(args: Prisma.SelectSubset>): Prisma.Prisma__ShortLinkClient, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Count the number of ShortLinks. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {ShortLinkCountArgs} args - Arguments to filter ShortLinks to count. * @example * // Count the number of ShortLinks * const count = await prisma.shortLink.count({ * where: { * // ... the filter for the ShortLinks 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 ShortLink. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {ShortLinkAggregateArgs} 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 ShortLink. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {ShortLinkGroupByArgs} 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 ShortLinkGroupByArgs, HasSelectOrTake extends Prisma.Or< Prisma.Extends<'skip', Prisma.Keys>, Prisma.Extends<'take', Prisma.Keys> >, OrderByArg extends Prisma.True extends HasSelectOrTake ? { orderBy: ShortLinkGroupByArgs['orderBy'] } : { orderBy?: ShortLinkGroupByArgs['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 ? GetShortLinkGroupByPayload : Prisma.PrismaPromise /** * Fields of the ShortLink model */ readonly fields: ShortLinkFieldRefs; } /** * The delegate class that acts as a "Promise-like" for ShortLink. * 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__ShortLinkClient extends Prisma.PrismaPromise { readonly [Symbol.toStringTag]: "PrismaPromise" /** * 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 ShortLink model */ export interface ShortLinkFieldRefs { readonly id: Prisma.FieldRef<"ShortLink", 'String'> readonly shortCode: Prisma.FieldRef<"ShortLink", 'String'> readonly fullUrl: Prisma.FieldRef<"ShortLink", 'String'> readonly createdAt: Prisma.FieldRef<"ShortLink", 'DateTime'> readonly updatedAt: Prisma.FieldRef<"ShortLink", 'DateTime'> } // Custom InputTypes /** * ShortLink findUnique */ export type ShortLinkFindUniqueArgs = { /** * Select specific fields to fetch from the ShortLink */ select?: Prisma.ShortLinkSelect | null /** * Omit specific fields from the ShortLink */ omit?: Prisma.ShortLinkOmit | null /** * Filter, which ShortLink to fetch. */ where: Prisma.ShortLinkWhereUniqueInput } /** * ShortLink findUniqueOrThrow */ export type ShortLinkFindUniqueOrThrowArgs = { /** * Select specific fields to fetch from the ShortLink */ select?: Prisma.ShortLinkSelect | null /** * Omit specific fields from the ShortLink */ omit?: Prisma.ShortLinkOmit | null /** * Filter, which ShortLink to fetch. */ where: Prisma.ShortLinkWhereUniqueInput } /** * ShortLink findFirst */ export type ShortLinkFindFirstArgs = { /** * Select specific fields to fetch from the ShortLink */ select?: Prisma.ShortLinkSelect | null /** * Omit specific fields from the ShortLink */ omit?: Prisma.ShortLinkOmit | null /** * Filter, which ShortLink to fetch. */ where?: Prisma.ShortLinkWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of ShortLinks to fetch. */ orderBy?: Prisma.ShortLinkOrderByWithRelationInput | Prisma.ShortLinkOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for ShortLinks. */ cursor?: Prisma.ShortLinkWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` ShortLinks 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` ShortLinks. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of ShortLinks. */ distinct?: Prisma.ShortLinkScalarFieldEnum | Prisma.ShortLinkScalarFieldEnum[] } /** * ShortLink findFirstOrThrow */ export type ShortLinkFindFirstOrThrowArgs = { /** * Select specific fields to fetch from the ShortLink */ select?: Prisma.ShortLinkSelect | null /** * Omit specific fields from the ShortLink */ omit?: Prisma.ShortLinkOmit | null /** * Filter, which ShortLink to fetch. */ where?: Prisma.ShortLinkWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of ShortLinks to fetch. */ orderBy?: Prisma.ShortLinkOrderByWithRelationInput | Prisma.ShortLinkOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for ShortLinks. */ cursor?: Prisma.ShortLinkWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` ShortLinks 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` ShortLinks. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of ShortLinks. */ distinct?: Prisma.ShortLinkScalarFieldEnum | Prisma.ShortLinkScalarFieldEnum[] } /** * ShortLink findMany */ export type ShortLinkFindManyArgs = { /** * Select specific fields to fetch from the ShortLink */ select?: Prisma.ShortLinkSelect | null /** * Omit specific fields from the ShortLink */ omit?: Prisma.ShortLinkOmit | null /** * Filter, which ShortLinks to fetch. */ where?: Prisma.ShortLinkWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of ShortLinks to fetch. */ orderBy?: Prisma.ShortLinkOrderByWithRelationInput | Prisma.ShortLinkOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for listing ShortLinks. */ cursor?: Prisma.ShortLinkWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` ShortLinks 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` ShortLinks. */ skip?: number distinct?: Prisma.ShortLinkScalarFieldEnum | Prisma.ShortLinkScalarFieldEnum[] } /** * ShortLink create */ export type ShortLinkCreateArgs = { /** * Select specific fields to fetch from the ShortLink */ select?: Prisma.ShortLinkSelect | null /** * Omit specific fields from the ShortLink */ omit?: Prisma.ShortLinkOmit | null /** * The data needed to create a ShortLink. */ data: Prisma.XOR } /** * ShortLink createMany */ export type ShortLinkCreateManyArgs = { /** * The data used to create many ShortLinks. */ data: Prisma.ShortLinkCreateManyInput | Prisma.ShortLinkCreateManyInput[] } /** * ShortLink createManyAndReturn */ export type ShortLinkCreateManyAndReturnArgs = { /** * Select specific fields to fetch from the ShortLink */ select?: Prisma.ShortLinkSelectCreateManyAndReturn | null /** * Omit specific fields from the ShortLink */ omit?: Prisma.ShortLinkOmit | null /** * The data used to create many ShortLinks. */ data: Prisma.ShortLinkCreateManyInput | Prisma.ShortLinkCreateManyInput[] } /** * ShortLink update */ export type ShortLinkUpdateArgs = { /** * Select specific fields to fetch from the ShortLink */ select?: Prisma.ShortLinkSelect | null /** * Omit specific fields from the ShortLink */ omit?: Prisma.ShortLinkOmit | null /** * The data needed to update a ShortLink. */ data: Prisma.XOR /** * Choose, which ShortLink to update. */ where: Prisma.ShortLinkWhereUniqueInput } /** * ShortLink updateMany */ export type ShortLinkUpdateManyArgs = { /** * The data used to update ShortLinks. */ data: Prisma.XOR /** * Filter which ShortLinks to update */ where?: Prisma.ShortLinkWhereInput /** * Limit how many ShortLinks to update. */ limit?: number } /** * ShortLink updateManyAndReturn */ export type ShortLinkUpdateManyAndReturnArgs = { /** * Select specific fields to fetch from the ShortLink */ select?: Prisma.ShortLinkSelectUpdateManyAndReturn | null /** * Omit specific fields from the ShortLink */ omit?: Prisma.ShortLinkOmit | null /** * The data used to update ShortLinks. */ data: Prisma.XOR /** * Filter which ShortLinks to update */ where?: Prisma.ShortLinkWhereInput /** * Limit how many ShortLinks to update. */ limit?: number } /** * ShortLink upsert */ export type ShortLinkUpsertArgs = { /** * Select specific fields to fetch from the ShortLink */ select?: Prisma.ShortLinkSelect | null /** * Omit specific fields from the ShortLink */ omit?: Prisma.ShortLinkOmit | null /** * The filter to search for the ShortLink to update in case it exists. */ where: Prisma.ShortLinkWhereUniqueInput /** * In case the ShortLink found by the `where` argument doesn't exist, create a new ShortLink with this data. */ create: Prisma.XOR /** * In case the ShortLink was found with the provided `where` argument, update it with this data. */ update: Prisma.XOR } /** * ShortLink delete */ export type ShortLinkDeleteArgs = { /** * Select specific fields to fetch from the ShortLink */ select?: Prisma.ShortLinkSelect | null /** * Omit specific fields from the ShortLink */ omit?: Prisma.ShortLinkOmit | null /** * Filter which ShortLink to delete. */ where: Prisma.ShortLinkWhereUniqueInput } /** * ShortLink deleteMany */ export type ShortLinkDeleteManyArgs = { /** * Filter which ShortLinks to delete */ where?: Prisma.ShortLinkWhereInput /** * Limit how many ShortLinks to delete. */ limit?: number } /** * ShortLink without action */ export type ShortLinkDefaultArgs = { /** * Select specific fields to fetch from the ShortLink */ select?: Prisma.ShortLinkSelect | null /** * Omit specific fields from the ShortLink */ omit?: Prisma.ShortLinkOmit | null }