| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716 |
- /* !!! This is code generated by Prisma. Do not edit directly. !!! */
- /* eslint-disable */
- // @ts-nocheck
- /*
- * WARNING: This is an internal file that is subject to change!
- *
- * 🛑 Under no circumstances should you import this file directly! 🛑
- *
- * All exports from this file are wrapped under a `Prisma` namespace object in the client.ts file.
- * While this enables partial backward compatibility, it is not part of the stable public API.
- *
- * If you are looking for your Models, Enums, and Input Types, please import them from the respective
- * model files in the `model` directory!
- */
- import * as runtime from "@prisma/client/runtime/library"
- import type * as Prisma from "../models.ts"
- import { type PrismaClient } from "./class.ts"
- export type * from '../models.ts'
- export type DMMF = typeof runtime.DMMF
- export type PrismaPromise<T> = runtime.Types.Public.PrismaPromise<T>
- /**
- * Prisma Errors
- */
- export const PrismaClientKnownRequestError = runtime.PrismaClientKnownRequestError
- export type PrismaClientKnownRequestError = runtime.PrismaClientKnownRequestError
- export const PrismaClientUnknownRequestError = runtime.PrismaClientUnknownRequestError
- export type PrismaClientUnknownRequestError = runtime.PrismaClientUnknownRequestError
- export const PrismaClientRustPanicError = runtime.PrismaClientRustPanicError
- export type PrismaClientRustPanicError = runtime.PrismaClientRustPanicError
- export const PrismaClientInitializationError = runtime.PrismaClientInitializationError
- export type PrismaClientInitializationError = runtime.PrismaClientInitializationError
- export const PrismaClientValidationError = runtime.PrismaClientValidationError
- export type PrismaClientValidationError = runtime.PrismaClientValidationError
- /**
- * Re-export of sql-template-tag
- */
- export const sql = runtime.sqltag
- export const empty = runtime.empty
- export const join = runtime.join
- export const raw = runtime.raw
- export const Sql = runtime.Sql
- export type Sql = runtime.Sql
- /**
- * Decimal.js
- */
- export const Decimal = runtime.Decimal
- export type Decimal = runtime.Decimal
- export type DecimalJsLike = runtime.DecimalJsLike
- /**
- * Metrics
- */
- export type Metrics = runtime.Metrics
- export type Metric<T> = runtime.Metric<T>
- export type MetricHistogram = runtime.MetricHistogram
- export type MetricHistogramBucket = runtime.MetricHistogramBucket
- /**
- * Extensions
- */
- export type Extension = runtime.Types.Extensions.UserArgs
- export const getExtensionContext = runtime.Extensions.getExtensionContext
- export type Args<T, F extends runtime.Operation> = runtime.Types.Public.Args<T, F>
- export type Payload<T, F extends runtime.Operation = never> = runtime.Types.Public.Payload<T, F>
- export type Result<T, A, F extends runtime.Operation> = runtime.Types.Public.Result<T, A, F>
- export type Exact<A, W> = runtime.Types.Public.Exact<A, W>
- export type PrismaVersion = {
- client: string
- engine: string
- }
- /**
- * Prisma Client JS version: 6.17.1
- * Query Engine version: 272a37d34178c2894197e17273bf937f25acdeac
- */
- export const prismaVersion: PrismaVersion = {
- client: "6.17.1",
- engine: "272a37d34178c2894197e17273bf937f25acdeac"
- }
- /**
- * Utility Types
- */
- export type JsonObject = runtime.JsonObject
- export type JsonArray = runtime.JsonArray
- export type JsonValue = runtime.JsonValue
- export type InputJsonObject = runtime.InputJsonObject
- export type InputJsonArray = runtime.InputJsonArray
- export type InputJsonValue = runtime.InputJsonValue
- export const NullTypes = {
- DbNull: runtime.objectEnumValues.classes.DbNull as (new (secret: never) => typeof runtime.objectEnumValues.instances.DbNull),
- JsonNull: runtime.objectEnumValues.classes.JsonNull as (new (secret: never) => typeof runtime.objectEnumValues.instances.JsonNull),
- AnyNull: runtime.objectEnumValues.classes.AnyNull as (new (secret: never) => typeof runtime.objectEnumValues.instances.AnyNull),
- }
- /**
- * Helper for filtering JSON entries that have `null` on the database (empty on the db)
- *
- * @see https://www.prisma.io/docs/concepts/components/prisma-client/working-with-fields/working-with-json-fields#filtering-on-a-json-field
- */
- export const DbNull = runtime.objectEnumValues.instances.DbNull
- /**
- * Helper for filtering JSON entries that have JSON `null` values (not empty on the db)
- *
- * @see https://www.prisma.io/docs/concepts/components/prisma-client/working-with-fields/working-with-json-fields#filtering-on-a-json-field
- */
- export const JsonNull = runtime.objectEnumValues.instances.JsonNull
- /**
- * Helper for filtering JSON entries that are `Prisma.DbNull` or `Prisma.JsonNull`
- *
- * @see https://www.prisma.io/docs/concepts/components/prisma-client/working-with-fields/working-with-json-fields#filtering-on-a-json-field
- */
- export const AnyNull = runtime.objectEnumValues.instances.AnyNull
- type SelectAndInclude = {
- select: any
- include: any
- }
- type SelectAndOmit = {
- select: any
- omit: any
- }
- /**
- * From T, pick a set of properties whose keys are in the union K
- */
- type Prisma__Pick<T, K extends keyof T> = {
- [P in K]: T[P];
- };
- export type Enumerable<T> = T | Array<T>;
- /**
- * Subset
- * @desc From `T` pick properties that exist in `U`. Simple version of Intersection
- */
- export type Subset<T, U> = {
- [key in keyof T]: key extends keyof U ? T[key] : never;
- };
- /**
- * SelectSubset
- * @desc From `T` pick properties that exist in `U`. Simple version of Intersection.
- * Additionally, it validates, if both select and include are present. If the case, it errors.
- */
- export type SelectSubset<T, U> = {
- [key in keyof T]: key extends keyof U ? T[key] : never
- } &
- (T extends SelectAndInclude
- ? 'Please either choose `select` or `include`.'
- : T extends SelectAndOmit
- ? 'Please either choose `select` or `omit`.'
- : {})
- /**
- * Subset + Intersection
- * @desc From `T` pick properties that exist in `U` and intersect `K`
- */
- export type SubsetIntersection<T, U, K> = {
- [key in keyof T]: key extends keyof U ? T[key] : never
- } &
- K
- type Without<T, U> = { [P in Exclude<keyof T, keyof U>]?: never };
- /**
- * XOR is needed to have a real mutually exclusive union type
- * https://stackoverflow.com/questions/42123407/does-typescript-support-mutually-exclusive-types
- */
- export type XOR<T, U> =
- T extends object ?
- U extends object ?
- (Without<T, U> & U) | (Without<U, T> & T)
- : U : T
- /**
- * Is T a Record?
- */
- type IsObject<T extends any> = T extends Array<any>
- ? False
- : T extends Date
- ? False
- : T extends Uint8Array
- ? False
- : T extends BigInt
- ? False
- : T extends object
- ? True
- : False
- /**
- * If it's T[], return T
- */
- export type UnEnumerate<T extends unknown> = T extends Array<infer U> ? U : T
- /**
- * From ts-toolbelt
- */
- type __Either<O extends object, K extends Key> = Omit<O, K> &
- {
- // Merge all but K
- [P in K]: Prisma__Pick<O, P & keyof O> // With K possibilities
- }[K]
- type EitherStrict<O extends object, K extends Key> = Strict<__Either<O, K>>
- type EitherLoose<O extends object, K extends Key> = ComputeRaw<__Either<O, K>>
- type _Either<
- O extends object,
- K extends Key,
- strict extends Boolean
- > = {
- 1: EitherStrict<O, K>
- 0: EitherLoose<O, K>
- }[strict]
- export type Either<
- O extends object,
- K extends Key,
- strict extends Boolean = 1
- > = O extends unknown ? _Either<O, K, strict> : never
- export type Union = any
- export type PatchUndefined<O extends object, O1 extends object> = {
- [K in keyof O]: O[K] extends undefined ? At<O1, K> : O[K]
- } & {}
- /** Helper Types for "Merge" **/
- export type IntersectOf<U extends Union> = (
- U extends unknown ? (k: U) => void : never
- ) extends (k: infer I) => void
- ? I
- : never
- export type Overwrite<O extends object, O1 extends object> = {
- [K in keyof O]: K extends keyof O1 ? O1[K] : O[K];
- } & {};
- type _Merge<U extends object> = IntersectOf<Overwrite<U, {
- [K in keyof U]-?: At<U, K>;
- }>>;
- type Key = string | number | symbol;
- type AtStrict<O extends object, K extends Key> = O[K & keyof O];
- type AtLoose<O extends object, K extends Key> = O extends unknown ? AtStrict<O, K> : never;
- export type At<O extends object, K extends Key, strict extends Boolean = 1> = {
- 1: AtStrict<O, K>;
- 0: AtLoose<O, K>;
- }[strict];
- export type ComputeRaw<A extends any> = A extends Function ? A : {
- [K in keyof A]: A[K];
- } & {};
- export type OptionalFlat<O> = {
- [K in keyof O]?: O[K];
- } & {};
- type _Record<K extends keyof any, T> = {
- [P in K]: T;
- };
- // cause typescript not to expand types and preserve names
- type NoExpand<T> = T extends unknown ? T : never;
- // this type assumes the passed object is entirely optional
- export type AtLeast<O extends object, K extends string> = NoExpand<
- O extends unknown
- ? | (K extends keyof O ? { [P in K]: O[P] } & O : O)
- | {[P in keyof O as P extends K ? P : never]-?: O[P]} & O
- : never>;
- type _Strict<U, _U = U> = U extends unknown ? U & OptionalFlat<_Record<Exclude<Keys<_U>, keyof U>, never>> : never;
- export type Strict<U extends object> = ComputeRaw<_Strict<U>>;
- /** End Helper Types for "Merge" **/
- export type Merge<U extends object> = ComputeRaw<_Merge<Strict<U>>>;
- export type Boolean = True | False
- export type True = 1
- export type False = 0
- export type Not<B extends Boolean> = {
- 0: 1
- 1: 0
- }[B]
- export type Extends<A1 extends any, A2 extends any> = [A1] extends [never]
- ? 0 // anything `never` is false
- : A1 extends A2
- ? 1
- : 0
- export type Has<U extends Union, U1 extends Union> = Not<
- Extends<Exclude<U1, U>, U1>
- >
- export type Or<B1 extends Boolean, B2 extends Boolean> = {
- 0: {
- 0: 0
- 1: 1
- }
- 1: {
- 0: 1
- 1: 1
- }
- }[B1][B2]
- export type Keys<U extends Union> = U extends unknown ? keyof U : never
- export type GetScalarType<T, O> = O extends object ? {
- [P in keyof T]: P extends keyof O
- ? O[P]
- : never
- } : never
- type FieldPaths<
- T,
- U = Omit<T, '_avg' | '_sum' | '_count' | '_min' | '_max'>
- > = IsObject<T> extends True ? U : T
- export type GetHavingFields<T> = {
- [K in keyof T]: Or<
- Or<Extends<'OR', K>, Extends<'AND', K>>,
- Extends<'NOT', K>
- > extends True
- ? // infer is only needed to not hit TS limit
- // based on the brilliant idea of Pierre-Antoine Mills
- // https://github.com/microsoft/TypeScript/issues/30188#issuecomment-478938437
- T[K] extends infer TK
- ? GetHavingFields<UnEnumerate<TK> extends object ? Merge<UnEnumerate<TK>> : never>
- : never
- : {} extends FieldPaths<T[K]>
- ? never
- : K
- }[keyof T]
- /**
- * Convert tuple to union
- */
- type _TupleToUnion<T> = T extends (infer E)[] ? E : never
- type TupleToUnion<K extends readonly any[]> = _TupleToUnion<K>
- export type MaybeTupleToUnion<T> = T extends any[] ? TupleToUnion<T> : T
- /**
- * Like `Pick`, but additionally can also accept an array of keys
- */
- export type PickEnumerable<T, K extends Enumerable<keyof T> | keyof T> = Prisma__Pick<T, MaybeTupleToUnion<K>>
- /**
- * Exclude all keys with underscores
- */
- export type ExcludeUnderscoreKeys<T extends string> = T extends `_${string}` ? never : T
- export type FieldRef<Model, FieldType> = runtime.FieldRef<Model, FieldType>
- type FieldRefInputType<Model, FieldType> = Model extends never ? never : FieldRef<Model, FieldType>
- export const ModelName = {
- ShortLink: 'ShortLink'
- } as const
- export type ModelName = (typeof ModelName)[keyof typeof ModelName]
- export interface TypeMapCb<GlobalOmitOptions = {}> extends runtime.Types.Utils.Fn<{extArgs: runtime.Types.Extensions.InternalArgs }, runtime.Types.Utils.Record<string, any>> {
- returns: TypeMap<this['params']['extArgs'], GlobalOmitOptions>
- }
- export type TypeMap<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> = {
- globalOmitOptions: {
- omit: GlobalOmitOptions
- }
- meta: {
- modelProps: "shortLink"
- txIsolationLevel: TransactionIsolationLevel
- }
- model: {
- ShortLink: {
- payload: Prisma.$ShortLinkPayload<ExtArgs>
- fields: Prisma.ShortLinkFieldRefs
- operations: {
- findUnique: {
- args: Prisma.ShortLinkFindUniqueArgs<ExtArgs>
- result: runtime.Types.Utils.PayloadToResult<Prisma.$ShortLinkPayload> | null
- }
- findUniqueOrThrow: {
- args: Prisma.ShortLinkFindUniqueOrThrowArgs<ExtArgs>
- result: runtime.Types.Utils.PayloadToResult<Prisma.$ShortLinkPayload>
- }
- findFirst: {
- args: Prisma.ShortLinkFindFirstArgs<ExtArgs>
- result: runtime.Types.Utils.PayloadToResult<Prisma.$ShortLinkPayload> | null
- }
- findFirstOrThrow: {
- args: Prisma.ShortLinkFindFirstOrThrowArgs<ExtArgs>
- result: runtime.Types.Utils.PayloadToResult<Prisma.$ShortLinkPayload>
- }
- findMany: {
- args: Prisma.ShortLinkFindManyArgs<ExtArgs>
- result: runtime.Types.Utils.PayloadToResult<Prisma.$ShortLinkPayload>[]
- }
- create: {
- args: Prisma.ShortLinkCreateArgs<ExtArgs>
- result: runtime.Types.Utils.PayloadToResult<Prisma.$ShortLinkPayload>
- }
- createMany: {
- args: Prisma.ShortLinkCreateManyArgs<ExtArgs>
- result: BatchPayload
- }
- createManyAndReturn: {
- args: Prisma.ShortLinkCreateManyAndReturnArgs<ExtArgs>
- result: runtime.Types.Utils.PayloadToResult<Prisma.$ShortLinkPayload>[]
- }
- delete: {
- args: Prisma.ShortLinkDeleteArgs<ExtArgs>
- result: runtime.Types.Utils.PayloadToResult<Prisma.$ShortLinkPayload>
- }
- update: {
- args: Prisma.ShortLinkUpdateArgs<ExtArgs>
- result: runtime.Types.Utils.PayloadToResult<Prisma.$ShortLinkPayload>
- }
- deleteMany: {
- args: Prisma.ShortLinkDeleteManyArgs<ExtArgs>
- result: BatchPayload
- }
- updateMany: {
- args: Prisma.ShortLinkUpdateManyArgs<ExtArgs>
- result: BatchPayload
- }
- updateManyAndReturn: {
- args: Prisma.ShortLinkUpdateManyAndReturnArgs<ExtArgs>
- result: runtime.Types.Utils.PayloadToResult<Prisma.$ShortLinkPayload>[]
- }
- upsert: {
- args: Prisma.ShortLinkUpsertArgs<ExtArgs>
- result: runtime.Types.Utils.PayloadToResult<Prisma.$ShortLinkPayload>
- }
- aggregate: {
- args: Prisma.ShortLinkAggregateArgs<ExtArgs>
- result: runtime.Types.Utils.Optional<Prisma.AggregateShortLink>
- }
- groupBy: {
- args: Prisma.ShortLinkGroupByArgs<ExtArgs>
- result: runtime.Types.Utils.Optional<Prisma.ShortLinkGroupByOutputType>[]
- }
- count: {
- args: Prisma.ShortLinkCountArgs<ExtArgs>
- result: runtime.Types.Utils.Optional<Prisma.ShortLinkCountAggregateOutputType> | number
- }
- }
- }
- }
- } & {
- other: {
- payload: any
- operations: {
- $executeRaw: {
- args: [query: TemplateStringsArray | Sql, ...values: any[]],
- result: any
- }
- $executeRawUnsafe: {
- args: [query: string, ...values: any[]],
- result: any
- }
- $queryRaw: {
- args: [query: TemplateStringsArray | Sql, ...values: any[]],
- result: any
- }
- $queryRawUnsafe: {
- args: [query: string, ...values: any[]],
- result: any
- }
- }
- }
- }
- /**
- * Enums
- */
- export const TransactionIsolationLevel = runtime.makeStrictEnum({
- Serializable: 'Serializable'
- } as const)
- export type TransactionIsolationLevel = (typeof TransactionIsolationLevel)[keyof typeof TransactionIsolationLevel]
- export const ShortLinkScalarFieldEnum = {
- id: 'id',
- shortCode: 'shortCode',
- fullUrl: 'fullUrl',
- createdAt: 'createdAt',
- updatedAt: 'updatedAt'
- } as const
- export type ShortLinkScalarFieldEnum = (typeof ShortLinkScalarFieldEnum)[keyof typeof ShortLinkScalarFieldEnum]
- export const SortOrder = {
- asc: 'asc',
- desc: 'desc'
- } as const
- export type SortOrder = (typeof SortOrder)[keyof typeof SortOrder]
- /**
- * Field references
- */
- /**
- * Reference to a field of type 'String'
- */
- export type StringFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'String'>
-
- /**
- * Reference to a field of type 'DateTime'
- */
- export type DateTimeFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'DateTime'>
-
- /**
- * Reference to a field of type 'Int'
- */
- export type IntFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'Int'>
-
- /**
- * Batch Payload for updateMany & deleteMany & createMany
- */
- export type BatchPayload = {
- count: number
- }
- export type Datasource = {
- url?: string
- }
- export type Datasources = {
- db?: Datasource
- }
- export const defineExtension = runtime.Extensions.defineExtension as unknown as runtime.Types.Extensions.ExtendsHook<"define", TypeMapCb, runtime.Types.Extensions.DefaultArgs>
- export type DefaultPrismaClient = PrismaClient
- export type ErrorFormat = 'pretty' | 'colorless' | 'minimal'
- export interface PrismaClientOptions {
- /**
- * Overwrites the datasource url from your schema.prisma file
- */
- datasources?: Datasources
- /**
- * Overwrites the datasource url from your schema.prisma file
- */
- datasourceUrl?: string
- /**
- * @default "colorless"
- */
- errorFormat?: ErrorFormat
- /**
- * @example
- * ```
- * // Shorthand for `emit: 'stdout'`
- * log: ['query', 'info', 'warn', 'error']
- *
- * // Emit as events only
- * log: [
- * { emit: 'event', level: 'query' },
- * { emit: 'event', level: 'info' },
- * { emit: 'event', level: 'warn' }
- * { emit: 'event', level: 'error' }
- * ]
- *
- * / Emit as events and log to stdout
- * og: [
- * { emit: 'stdout', level: 'query' },
- * { emit: 'stdout', level: 'info' },
- * { emit: 'stdout', level: 'warn' }
- * { emit: 'stdout', level: 'error' }
- *
- * ```
- * Read more in our [docs](https://www.prisma.io/docs/reference/tools-and-interfaces/prisma-client/logging#the-log-option).
- */
- log?: (LogLevel | LogDefinition)[]
- /**
- * The default values for transactionOptions
- * maxWait ?= 2000
- * timeout ?= 5000
- */
- transactionOptions?: {
- maxWait?: number
- timeout?: number
- isolationLevel?: TransactionIsolationLevel
- }
- /**
- * Instance of a Driver Adapter, e.g., like one provided by `@prisma/adapter-planetscale`
- */
- adapter?: runtime.SqlDriverAdapterFactory | null
- /**
- * Global configuration for omitting model fields by default.
- *
- * @example
- * ```
- * const prisma = new PrismaClient({
- * omit: {
- * user: {
- * password: true
- * }
- * }
- * })
- * ```
- */
- omit?: GlobalOmitConfig
- }
- export type GlobalOmitConfig = {
- shortLink?: Prisma.ShortLinkOmit
- }
- /* Types for Logging */
- export type LogLevel = 'info' | 'query' | 'warn' | 'error'
- export type LogDefinition = {
- level: LogLevel
- emit: 'stdout' | 'event'
- }
- export type CheckIsLogLevel<T> = T extends LogLevel ? T : never;
- export type GetLogType<T> = CheckIsLogLevel<
- T extends LogDefinition ? T['level'] : T
- >;
- export type GetEvents<T extends any[]> = T extends Array<LogLevel | LogDefinition>
- ? GetLogType<T[number]>
- : never;
- export type QueryEvent = {
- timestamp: Date
- query: string
- params: string
- duration: number
- target: string
- }
- export type LogEvent = {
- timestamp: Date
- message: string
- target: string
- }
- /* End Types for Logging */
- export type PrismaAction =
- | 'findUnique'
- | 'findUniqueOrThrow'
- | 'findMany'
- | 'findFirst'
- | 'findFirstOrThrow'
- | 'create'
- | 'createMany'
- | 'createManyAndReturn'
- | 'update'
- | 'updateMany'
- | 'updateManyAndReturn'
- | 'upsert'
- | 'delete'
- | 'deleteMany'
- | 'executeRaw'
- | 'queryRaw'
- | 'aggregate'
- | 'count'
- | 'runCommandRaw'
- | 'findRaw'
- | 'groupBy'
- /**
- * `PrismaClient` proxy available in interactive transactions.
- */
- export type TransactionClient = Omit<DefaultPrismaClient, runtime.ITXClientDenyList>
|