|
|
| |
| |
| |
|
|
| import * as runtime from '@prisma/client/runtime/library.js'; |
| import $Types = runtime.Types |
| import $Public = runtime.Types.Public |
| import $Utils = runtime.Types.Utils |
| import $Extensions = runtime.Types.Extensions |
| import $Result = runtime.Types.Result |
|
|
| export type PrismaPromise<T> = $Public.PrismaPromise<T> |
|
|
|
|
| |
| |
| |
| |
| export type User = $Result.DefaultSelection<Prisma.$UserPayload> |
| |
| |
| |
| |
| export type Market = $Result.DefaultSelection<Prisma.$MarketPayload> |
| |
| |
| |
| |
| export type AISignal = $Result.DefaultSelection<Prisma.$AISignalPayload> |
| |
| |
| |
| |
| export type Position = $Result.DefaultSelection<Prisma.$PositionPayload> |
| |
| |
| |
| |
| export type Watchlist = $Result.DefaultSelection<Prisma.$WatchlistPayload> |
| |
| |
| |
| |
| export type Alert = $Result.DefaultSelection<Prisma.$AlertPayload> |
|
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| export class PrismaClient< |
| ClientOptions extends Prisma.PrismaClientOptions = Prisma.PrismaClientOptions, |
| const U = 'log' extends keyof ClientOptions ? ClientOptions['log'] extends Array<Prisma.LogLevel | Prisma.LogDefinition> ? Prisma.GetEvents<ClientOptions['log']> : never : never, |
| ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs |
| > { |
| [K: symbol]: { types: Prisma.TypeMap<ExtArgs>['other'] } |
|
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
|
|
| constructor(optionsArg ?: Prisma.Subset<ClientOptions, Prisma.PrismaClientOptions>); |
| $on<V extends U>(eventType: V, callback: (event: V extends 'query' ? Prisma.QueryEvent : Prisma.LogEvent) => void): PrismaClient; |
|
|
| |
| |
| |
| $connect(): $Utils.JsPromise<void>; |
|
|
| |
| |
| |
| $disconnect(): $Utils.JsPromise<void>; |
|
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| $executeRaw<T = unknown>(query: TemplateStringsArray | Prisma.Sql, ...values: any[]): Prisma.PrismaPromise<number>; |
|
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| $executeRawUnsafe<T = unknown>(query: string, ...values: any[]): Prisma.PrismaPromise<number>; |
|
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| $queryRaw<T = unknown>(query: TemplateStringsArray | Prisma.Sql, ...values: any[]): Prisma.PrismaPromise<T>; |
|
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| $queryRawUnsafe<T = unknown>(query: string, ...values: any[]): Prisma.PrismaPromise<T>; |
|
|
|
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| $transaction<P extends Prisma.PrismaPromise<any>[]>(arg: [...P], options?: { isolationLevel?: Prisma.TransactionIsolationLevel }): $Utils.JsPromise<runtime.Types.Utils.UnwrapTuple<P>> |
|
|
| $transaction<R>(fn: (prisma: Omit<PrismaClient, runtime.ITXClientDenyList>) => $Utils.JsPromise<R>, options?: { maxWait?: number, timeout?: number, isolationLevel?: Prisma.TransactionIsolationLevel }): $Utils.JsPromise<R> |
|
|
|
|
| $extends: $Extensions.ExtendsHook<"extends", Prisma.TypeMapCb<ClientOptions>, ExtArgs, $Utils.Call<Prisma.TypeMapCb<ClientOptions>, { |
| extArgs: ExtArgs |
| }>> |
|
|
| |
| |
| |
| |
| |
| |
| |
| |
| get user(): Prisma.UserDelegate<ExtArgs, ClientOptions>; |
|
|
| |
| |
| |
| |
| |
| |
| |
| |
| get market(): Prisma.MarketDelegate<ExtArgs, ClientOptions>; |
|
|
| |
| |
| |
| |
| |
| |
| |
| |
| get aISignal(): Prisma.AISignalDelegate<ExtArgs, ClientOptions>; |
|
|
| |
| |
| |
| |
| |
| |
| |
| |
| get position(): Prisma.PositionDelegate<ExtArgs, ClientOptions>; |
|
|
| |
| |
| |
| |
| |
| |
| |
| |
| get watchlist(): Prisma.WatchlistDelegate<ExtArgs, ClientOptions>; |
|
|
| |
| |
| |
| |
| |
| |
| |
| |
| get alert(): Prisma.AlertDelegate<ExtArgs, ClientOptions>; |
| } |
|
|
| export namespace Prisma { |
| export import DMMF = runtime.DMMF |
|
|
| export type PrismaPromise<T> = $Public.PrismaPromise<T> |
|
|
| |
| |
| |
| export import validator = runtime.Public.validator |
|
|
| |
| |
| |
| export import PrismaClientKnownRequestError = runtime.PrismaClientKnownRequestError |
| export import PrismaClientUnknownRequestError = runtime.PrismaClientUnknownRequestError |
| export import PrismaClientRustPanicError = runtime.PrismaClientRustPanicError |
| export import PrismaClientInitializationError = runtime.PrismaClientInitializationError |
| export import PrismaClientValidationError = runtime.PrismaClientValidationError |
|
|
| |
| |
| |
| export import sql = runtime.sqltag |
| export import empty = runtime.empty |
| export import join = runtime.join |
| export import raw = runtime.raw |
| export import Sql = runtime.Sql |
|
|
|
|
|
|
| |
| |
| |
| export import Decimal = runtime.Decimal |
|
|
| export type DecimalJsLike = runtime.DecimalJsLike |
|
|
| |
| |
| |
| export type Metrics = runtime.Metrics |
| export type Metric<T> = runtime.Metric<T> |
| export type MetricHistogram = runtime.MetricHistogram |
| export type MetricHistogramBucket = runtime.MetricHistogramBucket |
|
|
| |
| |
| |
| export import Extension = $Extensions.UserArgs |
| export import getExtensionContext = runtime.Extensions.getExtensionContext |
| export import Args = $Public.Args |
| export import Payload = $Public.Payload |
| export import Result = $Public.Result |
| export import Exact = $Public.Exact |
|
|
| |
| |
| |
| |
| export type PrismaVersion = { |
| client: string |
| } |
|
|
| export const prismaVersion: PrismaVersion |
|
|
| |
| |
| |
|
|
|
|
| export import Bytes = runtime.Bytes |
| export import JsonObject = runtime.JsonObject |
| export import JsonArray = runtime.JsonArray |
| export import JsonValue = runtime.JsonValue |
| export import InputJsonObject = runtime.InputJsonObject |
| export import InputJsonArray = runtime.InputJsonArray |
| export import InputJsonValue = runtime.InputJsonValue |
|
|
| |
| |
| |
| |
| |
| namespace NullTypes { |
| |
| |
| |
| |
| |
| |
| |
| class DbNull { |
| private DbNull: never |
| private constructor() |
| } |
|
|
| |
| |
| |
| |
| |
| |
| |
| class JsonNull { |
| private JsonNull: never |
| private constructor() |
| } |
|
|
| |
| |
| |
| |
| |
| |
| |
| class AnyNull { |
| private AnyNull: never |
| private constructor() |
| } |
| } |
|
|
| |
| |
| |
| |
| |
| export const DbNull: NullTypes.DbNull |
|
|
| |
| |
| |
| |
| |
| export const JsonNull: NullTypes.JsonNull |
|
|
| |
| |
| |
| |
| |
| export const AnyNull: NullTypes.AnyNull |
|
|
| type SelectAndInclude = { |
| select: any |
| include: any |
| } |
|
|
| type SelectAndOmit = { |
| select: any |
| omit: any |
| } |
|
|
| |
| |
| |
| export type PromiseType<T extends PromiseLike<any>> = T extends PromiseLike<infer U> ? U : T; |
|
|
| |
| |
| |
| export type PromiseReturnType<T extends (...args: any) => $Utils.JsPromise<any>> = PromiseType<ReturnType<T>> |
|
|
| |
| |
| |
| type Prisma__Pick<T, K extends keyof T> = { |
| [P in K]: T[P]; |
| }; |
|
|
|
|
| export type Enumerable<T> = T | Array<T>; |
|
|
| export type RequiredKeys<T> = { |
| [K in keyof T]-?: {} extends Prisma__Pick<T, K> ? never : K |
| }[keyof T] |
|
|
| export type TruthyKeys<T> = keyof { |
| [K in keyof T as T[K] extends false | undefined | null ? never : K]: K |
| } |
|
|
| export type TrueKeys<T> = TruthyKeys<Prisma__Pick<T, RequiredKeys<T>>> |
|
|
| |
| |
| |
| |
| export type Subset<T, U> = { |
| [key in keyof T]: key extends keyof U ? T[key] : never; |
| }; |
|
|
| |
| |
| |
| |
| |
| 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`.' |
| : {}) |
|
|
| |
| |
| |
| |
| 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 }; |
|
|
| |
| |
| |
| |
| type XOR<T, U> = |
| T extends object ? |
| U extends object ? |
| (Without<T, U> & U) | (Without<U, T> & T) |
| : U : T |
|
|
|
|
| |
| |
| |
| 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 |
|
|
|
|
| |
| |
| |
| export type UnEnumerate<T extends unknown> = T extends Array<infer U> ? U : T |
|
|
| |
| |
| |
|
|
| type __Either<O extends object, K extends Key> = Omit<O, K> & |
| { |
| |
| [P in K]: Prisma__Pick<O, P & keyof O> |
| }[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] |
|
|
| type Either< |
| O extends object, |
| K extends Key, |
| strict extends Boolean = 1 |
| > = O extends unknown ? _Either<O, K, strict> : never |
|
|
| export type Union = any |
|
|
| type PatchUndefined<O extends object, O1 extends object> = { |
| [K in keyof O]: O[K] extends undefined ? At<O1, K> : O[K] |
| } & {} |
|
|
| |
| 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 AtBasic<O extends object, K extends Key> = K extends keyof O ? O[K] : never; |
| 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; |
| }; |
|
|
| |
| type NoExpand<T> = T extends unknown ? T : never; |
|
|
| |
| 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>>; |
| |
|
|
| 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 |
| : 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 |
|
|
| type Cast<A, B> = A extends B ? A : B; |
|
|
| export const type: unique symbol; |
|
|
|
|
|
|
| |
| |
| |
|
|
| 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 |
|
|
| type GetHavingFields<T> = { |
| [K in keyof T]: Or< |
| Or<Extends<'OR', K>, Extends<'AND', K>>, |
| Extends<'NOT', K> |
| > extends True |
| ? |
| |
| |
| T[K] extends infer TK |
| ? GetHavingFields<UnEnumerate<TK> extends object ? Merge<UnEnumerate<TK>> : never> |
| : never |
| : {} extends FieldPaths<T[K]> |
| ? never |
| : K |
| }[keyof T] |
|
|
| |
| |
| |
| type _TupleToUnion<T> = T extends (infer E)[] ? E : never |
| type TupleToUnion<K extends readonly any[]> = _TupleToUnion<K> |
| type MaybeTupleToUnion<T> = T extends any[] ? TupleToUnion<T> : T |
|
|
| |
| |
| |
| type PickEnumerable<T, K extends Enumerable<keyof T> | keyof T> = Prisma__Pick<T, MaybeTupleToUnion<K>> |
|
|
| |
| |
| |
| 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: { |
| User: 'User', |
| Market: 'Market', |
| AISignal: 'AISignal', |
| Position: 'Position', |
| Watchlist: 'Watchlist', |
| Alert: 'Alert' |
| }; |
|
|
| export type ModelName = (typeof ModelName)[keyof typeof ModelName] |
|
|
|
|
| export type Datasources = { |
| db?: Datasource |
| } |
|
|
| interface TypeMapCb<ClientOptions = {}> extends $Utils.Fn<{extArgs: $Extensions.InternalArgs }, $Utils.Record<string, any>> { |
| returns: Prisma.TypeMap<this['params']['extArgs'], ClientOptions extends { omit: infer OmitOptions } ? OmitOptions : {}> |
| } |
|
|
| export type TypeMap<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs, GlobalOmitOptions = {}> = { |
| globalOmitOptions: { |
| omit: GlobalOmitOptions |
| } |
| meta: { |
| modelProps: "user" | "market" | "aISignal" | "position" | "watchlist" | "alert" |
| txIsolationLevel: Prisma.TransactionIsolationLevel |
| } |
| model: { |
| User: { |
| payload: Prisma.$UserPayload<ExtArgs> |
| fields: Prisma.UserFieldRefs |
| operations: { |
| findUnique: { |
| args: Prisma.UserFindUniqueArgs<ExtArgs> |
| result: $Utils.PayloadToResult<Prisma.$UserPayload> | null |
| } |
| findUniqueOrThrow: { |
| args: Prisma.UserFindUniqueOrThrowArgs<ExtArgs> |
| result: $Utils.PayloadToResult<Prisma.$UserPayload> |
| } |
| findFirst: { |
| args: Prisma.UserFindFirstArgs<ExtArgs> |
| result: $Utils.PayloadToResult<Prisma.$UserPayload> | null |
| } |
| findFirstOrThrow: { |
| args: Prisma.UserFindFirstOrThrowArgs<ExtArgs> |
| result: $Utils.PayloadToResult<Prisma.$UserPayload> |
| } |
| findMany: { |
| args: Prisma.UserFindManyArgs<ExtArgs> |
| result: $Utils.PayloadToResult<Prisma.$UserPayload>[] |
| } |
| create: { |
| args: Prisma.UserCreateArgs<ExtArgs> |
| result: $Utils.PayloadToResult<Prisma.$UserPayload> |
| } |
| createMany: { |
| args: Prisma.UserCreateManyArgs<ExtArgs> |
| result: BatchPayload |
| } |
| createManyAndReturn: { |
| args: Prisma.UserCreateManyAndReturnArgs<ExtArgs> |
| result: $Utils.PayloadToResult<Prisma.$UserPayload>[] |
| } |
| delete: { |
| args: Prisma.UserDeleteArgs<ExtArgs> |
| result: $Utils.PayloadToResult<Prisma.$UserPayload> |
| } |
| update: { |
| args: Prisma.UserUpdateArgs<ExtArgs> |
| result: $Utils.PayloadToResult<Prisma.$UserPayload> |
| } |
| deleteMany: { |
| args: Prisma.UserDeleteManyArgs<ExtArgs> |
| result: BatchPayload |
| } |
| updateMany: { |
| args: Prisma.UserUpdateManyArgs<ExtArgs> |
| result: BatchPayload |
| } |
| updateManyAndReturn: { |
| args: Prisma.UserUpdateManyAndReturnArgs<ExtArgs> |
| result: $Utils.PayloadToResult<Prisma.$UserPayload>[] |
| } |
| upsert: { |
| args: Prisma.UserUpsertArgs<ExtArgs> |
| result: $Utils.PayloadToResult<Prisma.$UserPayload> |
| } |
| aggregate: { |
| args: Prisma.UserAggregateArgs<ExtArgs> |
| result: $Utils.Optional<AggregateUser> |
| } |
| groupBy: { |
| args: Prisma.UserGroupByArgs<ExtArgs> |
| result: $Utils.Optional<UserGroupByOutputType>[] |
| } |
| count: { |
| args: Prisma.UserCountArgs<ExtArgs> |
| result: $Utils.Optional<UserCountAggregateOutputType> | number |
| } |
| } |
| } |
| Market: { |
| payload: Prisma.$MarketPayload<ExtArgs> |
| fields: Prisma.MarketFieldRefs |
| operations: { |
| findUnique: { |
| args: Prisma.MarketFindUniqueArgs<ExtArgs> |
| result: $Utils.PayloadToResult<Prisma.$MarketPayload> | null |
| } |
| findUniqueOrThrow: { |
| args: Prisma.MarketFindUniqueOrThrowArgs<ExtArgs> |
| result: $Utils.PayloadToResult<Prisma.$MarketPayload> |
| } |
| findFirst: { |
| args: Prisma.MarketFindFirstArgs<ExtArgs> |
| result: $Utils.PayloadToResult<Prisma.$MarketPayload> | null |
| } |
| findFirstOrThrow: { |
| args: Prisma.MarketFindFirstOrThrowArgs<ExtArgs> |
| result: $Utils.PayloadToResult<Prisma.$MarketPayload> |
| } |
| findMany: { |
| args: Prisma.MarketFindManyArgs<ExtArgs> |
| result: $Utils.PayloadToResult<Prisma.$MarketPayload>[] |
| } |
| create: { |
| args: Prisma.MarketCreateArgs<ExtArgs> |
| result: $Utils.PayloadToResult<Prisma.$MarketPayload> |
| } |
| createMany: { |
| args: Prisma.MarketCreateManyArgs<ExtArgs> |
| result: BatchPayload |
| } |
| createManyAndReturn: { |
| args: Prisma.MarketCreateManyAndReturnArgs<ExtArgs> |
| result: $Utils.PayloadToResult<Prisma.$MarketPayload>[] |
| } |
| delete: { |
| args: Prisma.MarketDeleteArgs<ExtArgs> |
| result: $Utils.PayloadToResult<Prisma.$MarketPayload> |
| } |
| update: { |
| args: Prisma.MarketUpdateArgs<ExtArgs> |
| result: $Utils.PayloadToResult<Prisma.$MarketPayload> |
| } |
| deleteMany: { |
| args: Prisma.MarketDeleteManyArgs<ExtArgs> |
| result: BatchPayload |
| } |
| updateMany: { |
| args: Prisma.MarketUpdateManyArgs<ExtArgs> |
| result: BatchPayload |
| } |
| updateManyAndReturn: { |
| args: Prisma.MarketUpdateManyAndReturnArgs<ExtArgs> |
| result: $Utils.PayloadToResult<Prisma.$MarketPayload>[] |
| } |
| upsert: { |
| args: Prisma.MarketUpsertArgs<ExtArgs> |
| result: $Utils.PayloadToResult<Prisma.$MarketPayload> |
| } |
| aggregate: { |
| args: Prisma.MarketAggregateArgs<ExtArgs> |
| result: $Utils.Optional<AggregateMarket> |
| } |
| groupBy: { |
| args: Prisma.MarketGroupByArgs<ExtArgs> |
| result: $Utils.Optional<MarketGroupByOutputType>[] |
| } |
| count: { |
| args: Prisma.MarketCountArgs<ExtArgs> |
| result: $Utils.Optional<MarketCountAggregateOutputType> | number |
| } |
| } |
| } |
| AISignal: { |
| payload: Prisma.$AISignalPayload<ExtArgs> |
| fields: Prisma.AISignalFieldRefs |
| operations: { |
| findUnique: { |
| args: Prisma.AISignalFindUniqueArgs<ExtArgs> |
| result: $Utils.PayloadToResult<Prisma.$AISignalPayload> | null |
| } |
| findUniqueOrThrow: { |
| args: Prisma.AISignalFindUniqueOrThrowArgs<ExtArgs> |
| result: $Utils.PayloadToResult<Prisma.$AISignalPayload> |
| } |
| findFirst: { |
| args: Prisma.AISignalFindFirstArgs<ExtArgs> |
| result: $Utils.PayloadToResult<Prisma.$AISignalPayload> | null |
| } |
| findFirstOrThrow: { |
| args: Prisma.AISignalFindFirstOrThrowArgs<ExtArgs> |
| result: $Utils.PayloadToResult<Prisma.$AISignalPayload> |
| } |
| findMany: { |
| args: Prisma.AISignalFindManyArgs<ExtArgs> |
| result: $Utils.PayloadToResult<Prisma.$AISignalPayload>[] |
| } |
| create: { |
| args: Prisma.AISignalCreateArgs<ExtArgs> |
| result: $Utils.PayloadToResult<Prisma.$AISignalPayload> |
| } |
| createMany: { |
| args: Prisma.AISignalCreateManyArgs<ExtArgs> |
| result: BatchPayload |
| } |
| createManyAndReturn: { |
| args: Prisma.AISignalCreateManyAndReturnArgs<ExtArgs> |
| result: $Utils.PayloadToResult<Prisma.$AISignalPayload>[] |
| } |
| delete: { |
| args: Prisma.AISignalDeleteArgs<ExtArgs> |
| result: $Utils.PayloadToResult<Prisma.$AISignalPayload> |
| } |
| update: { |
| args: Prisma.AISignalUpdateArgs<ExtArgs> |
| result: $Utils.PayloadToResult<Prisma.$AISignalPayload> |
| } |
| deleteMany: { |
| args: Prisma.AISignalDeleteManyArgs<ExtArgs> |
| result: BatchPayload |
| } |
| updateMany: { |
| args: Prisma.AISignalUpdateManyArgs<ExtArgs> |
| result: BatchPayload |
| } |
| updateManyAndReturn: { |
| args: Prisma.AISignalUpdateManyAndReturnArgs<ExtArgs> |
| result: $Utils.PayloadToResult<Prisma.$AISignalPayload>[] |
| } |
| upsert: { |
| args: Prisma.AISignalUpsertArgs<ExtArgs> |
| result: $Utils.PayloadToResult<Prisma.$AISignalPayload> |
| } |
| aggregate: { |
| args: Prisma.AISignalAggregateArgs<ExtArgs> |
| result: $Utils.Optional<AggregateAISignal> |
| } |
| groupBy: { |
| args: Prisma.AISignalGroupByArgs<ExtArgs> |
| result: $Utils.Optional<AISignalGroupByOutputType>[] |
| } |
| count: { |
| args: Prisma.AISignalCountArgs<ExtArgs> |
| result: $Utils.Optional<AISignalCountAggregateOutputType> | number |
| } |
| } |
| } |
| Position: { |
| payload: Prisma.$PositionPayload<ExtArgs> |
| fields: Prisma.PositionFieldRefs |
| operations: { |
| findUnique: { |
| args: Prisma.PositionFindUniqueArgs<ExtArgs> |
| result: $Utils.PayloadToResult<Prisma.$PositionPayload> | null |
| } |
| findUniqueOrThrow: { |
| args: Prisma.PositionFindUniqueOrThrowArgs<ExtArgs> |
| result: $Utils.PayloadToResult<Prisma.$PositionPayload> |
| } |
| findFirst: { |
| args: Prisma.PositionFindFirstArgs<ExtArgs> |
| result: $Utils.PayloadToResult<Prisma.$PositionPayload> | null |
| } |
| findFirstOrThrow: { |
| args: Prisma.PositionFindFirstOrThrowArgs<ExtArgs> |
| result: $Utils.PayloadToResult<Prisma.$PositionPayload> |
| } |
| findMany: { |
| args: Prisma.PositionFindManyArgs<ExtArgs> |
| result: $Utils.PayloadToResult<Prisma.$PositionPayload>[] |
| } |
| create: { |
| args: Prisma.PositionCreateArgs<ExtArgs> |
| result: $Utils.PayloadToResult<Prisma.$PositionPayload> |
| } |
| createMany: { |
| args: Prisma.PositionCreateManyArgs<ExtArgs> |
| result: BatchPayload |
| } |
| createManyAndReturn: { |
| args: Prisma.PositionCreateManyAndReturnArgs<ExtArgs> |
| result: $Utils.PayloadToResult<Prisma.$PositionPayload>[] |
| } |
| delete: { |
| args: Prisma.PositionDeleteArgs<ExtArgs> |
| result: $Utils.PayloadToResult<Prisma.$PositionPayload> |
| } |
| update: { |
| args: Prisma.PositionUpdateArgs<ExtArgs> |
| result: $Utils.PayloadToResult<Prisma.$PositionPayload> |
| } |
| deleteMany: { |
| args: Prisma.PositionDeleteManyArgs<ExtArgs> |
| result: BatchPayload |
| } |
| updateMany: { |
| args: Prisma.PositionUpdateManyArgs<ExtArgs> |
| result: BatchPayload |
| } |
| updateManyAndReturn: { |
| args: Prisma.PositionUpdateManyAndReturnArgs<ExtArgs> |
| result: $Utils.PayloadToResult<Prisma.$PositionPayload>[] |
| } |
| upsert: { |
| args: Prisma.PositionUpsertArgs<ExtArgs> |
| result: $Utils.PayloadToResult<Prisma.$PositionPayload> |
| } |
| aggregate: { |
| args: Prisma.PositionAggregateArgs<ExtArgs> |
| result: $Utils.Optional<AggregatePosition> |
| } |
| groupBy: { |
| args: Prisma.PositionGroupByArgs<ExtArgs> |
| result: $Utils.Optional<PositionGroupByOutputType>[] |
| } |
| count: { |
| args: Prisma.PositionCountArgs<ExtArgs> |
| result: $Utils.Optional<PositionCountAggregateOutputType> | number |
| } |
| } |
| } |
| Watchlist: { |
| payload: Prisma.$WatchlistPayload<ExtArgs> |
| fields: Prisma.WatchlistFieldRefs |
| operations: { |
| findUnique: { |
| args: Prisma.WatchlistFindUniqueArgs<ExtArgs> |
| result: $Utils.PayloadToResult<Prisma.$WatchlistPayload> | null |
| } |
| findUniqueOrThrow: { |
| args: Prisma.WatchlistFindUniqueOrThrowArgs<ExtArgs> |
| result: $Utils.PayloadToResult<Prisma.$WatchlistPayload> |
| } |
| findFirst: { |
| args: Prisma.WatchlistFindFirstArgs<ExtArgs> |
| result: $Utils.PayloadToResult<Prisma.$WatchlistPayload> | null |
| } |
| findFirstOrThrow: { |
| args: Prisma.WatchlistFindFirstOrThrowArgs<ExtArgs> |
| result: $Utils.PayloadToResult<Prisma.$WatchlistPayload> |
| } |
| findMany: { |
| args: Prisma.WatchlistFindManyArgs<ExtArgs> |
| result: $Utils.PayloadToResult<Prisma.$WatchlistPayload>[] |
| } |
| create: { |
| args: Prisma.WatchlistCreateArgs<ExtArgs> |
| result: $Utils.PayloadToResult<Prisma.$WatchlistPayload> |
| } |
| createMany: { |
| args: Prisma.WatchlistCreateManyArgs<ExtArgs> |
| result: BatchPayload |
| } |
| createManyAndReturn: { |
| args: Prisma.WatchlistCreateManyAndReturnArgs<ExtArgs> |
| result: $Utils.PayloadToResult<Prisma.$WatchlistPayload>[] |
| } |
| delete: { |
| args: Prisma.WatchlistDeleteArgs<ExtArgs> |
| result: $Utils.PayloadToResult<Prisma.$WatchlistPayload> |
| } |
| update: { |
| args: Prisma.WatchlistUpdateArgs<ExtArgs> |
| result: $Utils.PayloadToResult<Prisma.$WatchlistPayload> |
| } |
| deleteMany: { |
| args: Prisma.WatchlistDeleteManyArgs<ExtArgs> |
| result: BatchPayload |
| } |
| updateMany: { |
| args: Prisma.WatchlistUpdateManyArgs<ExtArgs> |
| result: BatchPayload |
| } |
| updateManyAndReturn: { |
| args: Prisma.WatchlistUpdateManyAndReturnArgs<ExtArgs> |
| result: $Utils.PayloadToResult<Prisma.$WatchlistPayload>[] |
| } |
| upsert: { |
| args: Prisma.WatchlistUpsertArgs<ExtArgs> |
| result: $Utils.PayloadToResult<Prisma.$WatchlistPayload> |
| } |
| aggregate: { |
| args: Prisma.WatchlistAggregateArgs<ExtArgs> |
| result: $Utils.Optional<AggregateWatchlist> |
| } |
| groupBy: { |
| args: Prisma.WatchlistGroupByArgs<ExtArgs> |
| result: $Utils.Optional<WatchlistGroupByOutputType>[] |
| } |
| count: { |
| args: Prisma.WatchlistCountArgs<ExtArgs> |
| result: $Utils.Optional<WatchlistCountAggregateOutputType> | number |
| } |
| } |
| } |
| Alert: { |
| payload: Prisma.$AlertPayload<ExtArgs> |
| fields: Prisma.AlertFieldRefs |
| operations: { |
| findUnique: { |
| args: Prisma.AlertFindUniqueArgs<ExtArgs> |
| result: $Utils.PayloadToResult<Prisma.$AlertPayload> | null |
| } |
| findUniqueOrThrow: { |
| args: Prisma.AlertFindUniqueOrThrowArgs<ExtArgs> |
| result: $Utils.PayloadToResult<Prisma.$AlertPayload> |
| } |
| findFirst: { |
| args: Prisma.AlertFindFirstArgs<ExtArgs> |
| result: $Utils.PayloadToResult<Prisma.$AlertPayload> | null |
| } |
| findFirstOrThrow: { |
| args: Prisma.AlertFindFirstOrThrowArgs<ExtArgs> |
| result: $Utils.PayloadToResult<Prisma.$AlertPayload> |
| } |
| findMany: { |
| args: Prisma.AlertFindManyArgs<ExtArgs> |
| result: $Utils.PayloadToResult<Prisma.$AlertPayload>[] |
| } |
| create: { |
| args: Prisma.AlertCreateArgs<ExtArgs> |
| result: $Utils.PayloadToResult<Prisma.$AlertPayload> |
| } |
| createMany: { |
| args: Prisma.AlertCreateManyArgs<ExtArgs> |
| result: BatchPayload |
| } |
| createManyAndReturn: { |
| args: Prisma.AlertCreateManyAndReturnArgs<ExtArgs> |
| result: $Utils.PayloadToResult<Prisma.$AlertPayload>[] |
| } |
| delete: { |
| args: Prisma.AlertDeleteArgs<ExtArgs> |
| result: $Utils.PayloadToResult<Prisma.$AlertPayload> |
| } |
| update: { |
| args: Prisma.AlertUpdateArgs<ExtArgs> |
| result: $Utils.PayloadToResult<Prisma.$AlertPayload> |
| } |
| deleteMany: { |
| args: Prisma.AlertDeleteManyArgs<ExtArgs> |
| result: BatchPayload |
| } |
| updateMany: { |
| args: Prisma.AlertUpdateManyArgs<ExtArgs> |
| result: BatchPayload |
| } |
| updateManyAndReturn: { |
| args: Prisma.AlertUpdateManyAndReturnArgs<ExtArgs> |
| result: $Utils.PayloadToResult<Prisma.$AlertPayload>[] |
| } |
| upsert: { |
| args: Prisma.AlertUpsertArgs<ExtArgs> |
| result: $Utils.PayloadToResult<Prisma.$AlertPayload> |
| } |
| aggregate: { |
| args: Prisma.AlertAggregateArgs<ExtArgs> |
| result: $Utils.Optional<AggregateAlert> |
| } |
| groupBy: { |
| args: Prisma.AlertGroupByArgs<ExtArgs> |
| result: $Utils.Optional<AlertGroupByOutputType>[] |
| } |
| count: { |
| args: Prisma.AlertCountArgs<ExtArgs> |
| result: $Utils.Optional<AlertCountAggregateOutputType> | number |
| } |
| } |
| } |
| } |
| } & { |
| other: { |
| payload: any |
| operations: { |
| $executeRaw: { |
| args: [query: TemplateStringsArray | Prisma.Sql, ...values: any[]], |
| result: any |
| } |
| $executeRawUnsafe: { |
| args: [query: string, ...values: any[]], |
| result: any |
| } |
| $queryRaw: { |
| args: [query: TemplateStringsArray | Prisma.Sql, ...values: any[]], |
| result: any |
| } |
| $queryRawUnsafe: { |
| args: [query: string, ...values: any[]], |
| result: any |
| } |
| } |
| } |
| } |
| export const defineExtension: $Extensions.ExtendsHook<"define", Prisma.TypeMapCb, $Extensions.DefaultArgs> |
| export type DefaultPrismaClient = PrismaClient |
| export type ErrorFormat = 'pretty' | 'colorless' | 'minimal' |
| export interface PrismaClientOptions { |
| |
| |
| |
| datasources?: Datasources |
| |
| |
| |
| datasourceUrl?: string |
| |
| |
| |
| errorFormat?: ErrorFormat |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| log?: (LogLevel | LogDefinition)[] |
| |
| |
| |
| |
| |
| transactionOptions?: { |
| maxWait?: number |
| timeout?: number |
| isolationLevel?: Prisma.TransactionIsolationLevel |
| } |
| |
| |
| |
| adapter?: runtime.SqlDriverAdapterFactory | null |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| omit?: Prisma.GlobalOmitConfig |
| } |
| export type GlobalOmitConfig = { |
| user?: UserOmit |
| market?: MarketOmit |
| aISignal?: AISignalOmit |
| position?: PositionOmit |
| watchlist?: WatchlistOmit |
| alert?: AlertOmit |
| } |
|
|
| |
| 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 |
| } |
| |
|
|
|
|
| export type PrismaAction = |
| | 'findUnique' |
| | 'findUniqueOrThrow' |
| | 'findMany' |
| | 'findFirst' |
| | 'findFirstOrThrow' |
| | 'create' |
| | 'createMany' |
| | 'createManyAndReturn' |
| | 'update' |
| | 'updateMany' |
| | 'updateManyAndReturn' |
| | 'upsert' |
| | 'delete' |
| | 'deleteMany' |
| | 'executeRaw' |
| | 'queryRaw' |
| | 'aggregate' |
| | 'count' |
| | 'runCommandRaw' |
| | 'findRaw' |
| | 'groupBy' |
|
|
| |
| export function getLogLevel(log: Array<LogLevel | LogDefinition>): LogLevel | undefined; |
|
|
| |
| |
| |
| export type TransactionClient = Omit<Prisma.DefaultPrismaClient, runtime.ITXClientDenyList> |
|
|
| export type Datasource = { |
| url?: string |
| } |
|
|
| |
| |
| |
|
|
|
|
| |
| |
| |
|
|
| export type UserCountOutputType = { |
| positions: number |
| watchlist: number |
| alerts: number |
| } |
|
|
| export type UserCountOutputTypeSelect<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = { |
| positions?: boolean | UserCountOutputTypeCountPositionsArgs |
| watchlist?: boolean | UserCountOutputTypeCountWatchlistArgs |
| alerts?: boolean | UserCountOutputTypeCountAlertsArgs |
| } |
|
|
| |
| |
| |
| |
| export type UserCountOutputTypeDefaultArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = { |
| |
| |
| |
| select?: UserCountOutputTypeSelect<ExtArgs> | null |
| } |
|
|
| |
| |
| |
| export type UserCountOutputTypeCountPositionsArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = { |
| where?: PositionWhereInput |
| } |
|
|
| |
| |
| |
| export type UserCountOutputTypeCountWatchlistArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = { |
| where?: WatchlistWhereInput |
| } |
|
|
| |
| |
| |
| export type UserCountOutputTypeCountAlertsArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = { |
| where?: AlertWhereInput |
| } |
|
|
|
|
| |
| |
| |
|
|
| export type MarketCountOutputType = { |
| signals: number |
| positions: number |
| watchlist: number |
| alerts: number |
| } |
|
|
| export type MarketCountOutputTypeSelect<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = { |
| signals?: boolean | MarketCountOutputTypeCountSignalsArgs |
| positions?: boolean | MarketCountOutputTypeCountPositionsArgs |
| watchlist?: boolean | MarketCountOutputTypeCountWatchlistArgs |
| alerts?: boolean | MarketCountOutputTypeCountAlertsArgs |
| } |
|
|
| |
| |
| |
| |
| export type MarketCountOutputTypeDefaultArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = { |
| |
| |
| |
| select?: MarketCountOutputTypeSelect<ExtArgs> | null |
| } |
|
|
| |
| |
| |
| export type MarketCountOutputTypeCountSignalsArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = { |
| where?: AISignalWhereInput |
| } |
|
|
| |
| |
| |
| export type MarketCountOutputTypeCountPositionsArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = { |
| where?: PositionWhereInput |
| } |
|
|
| |
| |
| |
| export type MarketCountOutputTypeCountWatchlistArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = { |
| where?: WatchlistWhereInput |
| } |
|
|
| |
| |
| |
| export type MarketCountOutputTypeCountAlertsArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = { |
| where?: AlertWhereInput |
| } |
|
|
|
|
| |
| |
| |
|
|
| |
| |
| |
|
|
| export type AggregateUser = { |
| _count: UserCountAggregateOutputType | null |
| _avg: UserAvgAggregateOutputType | null |
| _sum: UserSumAggregateOutputType | null |
| _min: UserMinAggregateOutputType | null |
| _max: UserMaxAggregateOutputType | null |
| } |
|
|
| export type UserAvgAggregateOutputType = { |
| id: number | null |
| } |
|
|
| export type UserSumAggregateOutputType = { |
| id: number | null |
| } |
|
|
| export type UserMinAggregateOutputType = { |
| id: number | null |
| email: string | null |
| passwordHash: string | null |
| isActive: boolean | null |
| telegramChatId: string | null |
| createdAt: Date | null |
| updatedAt: Date | null |
| } |
|
|
| export type UserMaxAggregateOutputType = { |
| id: number | null |
| email: string | null |
| passwordHash: string | null |
| isActive: boolean | null |
| telegramChatId: string | null |
| createdAt: Date | null |
| updatedAt: Date | null |
| } |
|
|
| export type UserCountAggregateOutputType = { |
| id: number |
| email: number |
| passwordHash: number |
| isActive: number |
| telegramChatId: number |
| createdAt: number |
| updatedAt: number |
| _all: number |
| } |
|
|
|
|
| export type UserAvgAggregateInputType = { |
| id?: true |
| } |
|
|
| export type UserSumAggregateInputType = { |
| id?: true |
| } |
|
|
| export type UserMinAggregateInputType = { |
| id?: true |
| email?: true |
| passwordHash?: true |
| isActive?: true |
| telegramChatId?: true |
| createdAt?: true |
| updatedAt?: true |
| } |
|
|
| export type UserMaxAggregateInputType = { |
| id?: true |
| email?: true |
| passwordHash?: true |
| isActive?: true |
| telegramChatId?: true |
| createdAt?: true |
| updatedAt?: true |
| } |
|
|
| export type UserCountAggregateInputType = { |
| id?: true |
| email?: true |
| passwordHash?: true |
| isActive?: true |
| telegramChatId?: true |
| createdAt?: true |
| updatedAt?: true |
| _all?: true |
| } |
|
|
| export type UserAggregateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = { |
| |
| |
| |
| where?: UserWhereInput |
| |
| |
| |
| |
| |
| orderBy?: UserOrderByWithRelationInput | UserOrderByWithRelationInput[] |
| |
| |
| |
| |
| |
| cursor?: UserWhereUniqueInput |
| |
| |
| |
| |
| |
| take?: number |
| |
| |
| |
| |
| |
| skip?: number |
| |
| |
| |
| |
| |
| _count?: true | UserCountAggregateInputType |
| |
| |
| |
| |
| |
| _avg?: UserAvgAggregateInputType |
| |
| |
| |
| |
| |
| _sum?: UserSumAggregateInputType |
| |
| |
| |
| |
| |
| _min?: UserMinAggregateInputType |
| |
| |
| |
| |
| |
| _max?: UserMaxAggregateInputType |
| } |
|
|
| export type GetUserAggregateType<T extends UserAggregateArgs> = { |
| [P in keyof T & keyof AggregateUser]: P extends '_count' | 'count' |
| ? T[P] extends true |
| ? number |
| : GetScalarType<T[P], AggregateUser[P]> |
| : GetScalarType<T[P], AggregateUser[P]> |
| } |
|
|
|
|
|
|
|
|
| export type UserGroupByArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = { |
| where?: UserWhereInput |
| orderBy?: UserOrderByWithAggregationInput | UserOrderByWithAggregationInput[] |
| by: UserScalarFieldEnum[] | UserScalarFieldEnum |
| having?: UserScalarWhereWithAggregatesInput |
| take?: number |
| skip?: number |
| _count?: UserCountAggregateInputType | true |
| _avg?: UserAvgAggregateInputType |
| _sum?: UserSumAggregateInputType |
| _min?: UserMinAggregateInputType |
| _max?: UserMaxAggregateInputType |
| } |
|
|
| export type UserGroupByOutputType = { |
| id: number |
| email: string |
| passwordHash: string |
| isActive: boolean |
| telegramChatId: string | null |
| createdAt: Date |
| updatedAt: Date |
| _count: UserCountAggregateOutputType | null |
| _avg: UserAvgAggregateOutputType | null |
| _sum: UserSumAggregateOutputType | null |
| _min: UserMinAggregateOutputType | null |
| _max: UserMaxAggregateOutputType | null |
| } |
|
|
| type GetUserGroupByPayload<T extends UserGroupByArgs> = Prisma.PrismaPromise< |
| Array< |
| PickEnumerable<UserGroupByOutputType, T['by']> & |
| { |
| [P in ((keyof T) & (keyof UserGroupByOutputType))]: P extends '_count' |
| ? T[P] extends boolean |
| ? number |
| : GetScalarType<T[P], UserGroupByOutputType[P]> |
| : GetScalarType<T[P], UserGroupByOutputType[P]> |
| } |
| > |
| > |
|
|
|
|
| export type UserSelect<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{ |
| id?: boolean |
| email?: boolean |
| passwordHash?: boolean |
| isActive?: boolean |
| telegramChatId?: boolean |
| createdAt?: boolean |
| updatedAt?: boolean |
| positions?: boolean | User$positionsArgs<ExtArgs> |
| watchlist?: boolean | User$watchlistArgs<ExtArgs> |
| alerts?: boolean | User$alertsArgs<ExtArgs> |
| _count?: boolean | UserCountOutputTypeDefaultArgs<ExtArgs> |
| }, ExtArgs["result"]["user"]> |
|
|
| export type UserSelectCreateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{ |
| id?: boolean |
| email?: boolean |
| passwordHash?: boolean |
| isActive?: boolean |
| telegramChatId?: boolean |
| createdAt?: boolean |
| updatedAt?: boolean |
| }, ExtArgs["result"]["user"]> |
|
|
| export type UserSelectUpdateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{ |
| id?: boolean |
| email?: boolean |
| passwordHash?: boolean |
| isActive?: boolean |
| telegramChatId?: boolean |
| createdAt?: boolean |
| updatedAt?: boolean |
| }, ExtArgs["result"]["user"]> |
|
|
| export type UserSelectScalar = { |
| id?: boolean |
| email?: boolean |
| passwordHash?: boolean |
| isActive?: boolean |
| telegramChatId?: boolean |
| createdAt?: boolean |
| updatedAt?: boolean |
| } |
|
|
| export type UserOmit<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetOmit<"id" | "email" | "passwordHash" | "isActive" | "telegramChatId" | "createdAt" | "updatedAt", ExtArgs["result"]["user"]> |
| export type UserInclude<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = { |
| positions?: boolean | User$positionsArgs<ExtArgs> |
| watchlist?: boolean | User$watchlistArgs<ExtArgs> |
| alerts?: boolean | User$alertsArgs<ExtArgs> |
| _count?: boolean | UserCountOutputTypeDefaultArgs<ExtArgs> |
| } |
| export type UserIncludeCreateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {} |
| export type UserIncludeUpdateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {} |
|
|
| export type $UserPayload<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = { |
| name: "User" |
| objects: { |
| positions: Prisma.$PositionPayload<ExtArgs>[] |
| watchlist: Prisma.$WatchlistPayload<ExtArgs>[] |
| alerts: Prisma.$AlertPayload<ExtArgs>[] |
| } |
| scalars: $Extensions.GetPayloadResult<{ |
| id: number |
| email: string |
| passwordHash: string |
| isActive: boolean |
| telegramChatId: string | null |
| createdAt: Date |
| updatedAt: Date |
| }, ExtArgs["result"]["user"]> |
| composites: {} |
| } |
|
|
| type UserGetPayload<S extends boolean | null | undefined | UserDefaultArgs> = $Result.GetResult<Prisma.$UserPayload, S> |
|
|
| type UserCountArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = |
| Omit<UserFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & { |
| select?: UserCountAggregateInputType | true |
| } |
|
|
| export interface UserDelegate<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs, GlobalOmitOptions = {}> { |
| [K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['User'], meta: { name: 'User' } } |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| findUnique<T extends UserFindUniqueArgs>(args: SelectSubset<T, UserFindUniqueArgs<ExtArgs>>): Prisma__UserClient<$Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> |
|
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| findUniqueOrThrow<T extends UserFindUniqueOrThrowArgs>(args: SelectSubset<T, UserFindUniqueOrThrowArgs<ExtArgs>>): Prisma__UserClient<$Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> |
|
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| findFirst<T extends UserFindFirstArgs>(args?: SelectSubset<T, UserFindFirstArgs<ExtArgs>>): Prisma__UserClient<$Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> |
|
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| findFirstOrThrow<T extends UserFindFirstOrThrowArgs>(args?: SelectSubset<T, UserFindFirstOrThrowArgs<ExtArgs>>): Prisma__UserClient<$Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> |
|
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| findMany<T extends UserFindManyArgs>(args?: SelectSubset<T, UserFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>> |
|
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| create<T extends UserCreateArgs>(args: SelectSubset<T, UserCreateArgs<ExtArgs>>): Prisma__UserClient<$Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> |
|
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| createMany<T extends UserCreateManyArgs>(args?: SelectSubset<T, UserCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload> |
|
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| createManyAndReturn<T extends UserCreateManyAndReturnArgs>(args?: SelectSubset<T, UserCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>> |
|
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| delete<T extends UserDeleteArgs>(args: SelectSubset<T, UserDeleteArgs<ExtArgs>>): Prisma__UserClient<$Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> |
|
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| update<T extends UserUpdateArgs>(args: SelectSubset<T, UserUpdateArgs<ExtArgs>>): Prisma__UserClient<$Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> |
|
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| deleteMany<T extends UserDeleteManyArgs>(args?: SelectSubset<T, UserDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload> |
|
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| updateMany<T extends UserUpdateManyArgs>(args: SelectSubset<T, UserUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload> |
|
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| updateManyAndReturn<T extends UserUpdateManyAndReturnArgs>(args: SelectSubset<T, UserUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>> |
|
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| upsert<T extends UserUpsertArgs>(args: SelectSubset<T, UserUpsertArgs<ExtArgs>>): Prisma__UserClient<$Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> |
|
|
|
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| count<T extends UserCountArgs>( |
| args?: Subset<T, UserCountArgs>, |
| ): Prisma.PrismaPromise< |
| T extends $Utils.Record<'select', any> |
| ? T['select'] extends true |
| ? number |
| : GetScalarType<T['select'], UserCountAggregateOutputType> |
| : number |
| > |
|
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| aggregate<T extends UserAggregateArgs>(args: Subset<T, UserAggregateArgs>): Prisma.PrismaPromise<GetUserAggregateType<T>> |
|
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| groupBy< |
| T extends UserGroupByArgs, |
| HasSelectOrTake extends Or< |
| Extends<'skip', Keys<T>>, |
| Extends<'take', Keys<T>> |
| >, |
| OrderByArg extends True extends HasSelectOrTake |
| ? { orderBy: UserGroupByArgs['orderBy'] } |
| : { orderBy?: UserGroupByArgs['orderBy'] }, |
| OrderFields extends ExcludeUnderscoreKeys<Keys<MaybeTupleToUnion<T['orderBy']>>>, |
| ByFields extends MaybeTupleToUnion<T['by']>, |
| ByValid extends Has<ByFields, OrderFields>, |
| HavingFields extends GetHavingFields<T['having']>, |
| HavingValid extends Has<ByFields, HavingFields>, |
| ByEmpty extends T['by'] extends never[] ? True : False, |
| InputErrors extends ByEmpty extends True |
| ? `Error: "by" must not be empty.` |
| : HavingValid extends 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 Keys<T> |
| ? 'orderBy' extends Keys<T> |
| ? ByValid extends 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 Keys<T> |
| ? 'orderBy' extends Keys<T> |
| ? ByValid extends 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 True |
| ? {} |
| : { |
| [P in OrderFields]: P extends ByFields |
| ? never |
| : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` |
| }[OrderFields] |
| >(args: SubsetIntersection<T, UserGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetUserGroupByPayload<T> : Prisma.PrismaPromise<InputErrors> |
| |
| |
| |
| readonly fields: UserFieldRefs; |
| } |
|
|
| |
| |
| |
| |
| |
| |
| export interface Prisma__UserClient<T, Null = never, ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> { |
| readonly [Symbol.toStringTag]: "PrismaPromise" |
| positions<T extends User$positionsArgs<ExtArgs> = {}>(args?: Subset<T, User$positionsArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$PositionPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null> |
| watchlist<T extends User$watchlistArgs<ExtArgs> = {}>(args?: Subset<T, User$watchlistArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$WatchlistPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null> |
| alerts<T extends User$alertsArgs<ExtArgs> = {}>(args?: Subset<T, User$alertsArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$AlertPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null> |
| |
| |
| |
| |
| |
| |
| then<TResult1 = T, TResult2 = never>(onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined | null): $Utils.JsPromise<TResult1 | TResult2> |
| |
| |
| |
| |
| |
| catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): $Utils.JsPromise<T | TResult> |
| |
| |
| |
| |
| |
| |
| finally(onfinally?: (() => void) | undefined | null): $Utils.JsPromise<T> |
| } |
|
|
|
|
|
|
|
|
| |
| |
| |
| interface UserFieldRefs { |
| readonly id: FieldRef<"User", 'Int'> |
| readonly email: FieldRef<"User", 'String'> |
| readonly passwordHash: FieldRef<"User", 'String'> |
| readonly isActive: FieldRef<"User", 'Boolean'> |
| readonly telegramChatId: FieldRef<"User", 'String'> |
| readonly createdAt: FieldRef<"User", 'DateTime'> |
| readonly updatedAt: FieldRef<"User", 'DateTime'> |
| } |
| |
|
|
| |
| |
| |
| |
| export type UserFindUniqueArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = { |
| |
| |
| |
| select?: UserSelect<ExtArgs> | null |
| |
| |
| |
| omit?: UserOmit<ExtArgs> | null |
| |
| |
| |
| include?: UserInclude<ExtArgs> | null |
| |
| |
| |
| where: UserWhereUniqueInput |
| } |
|
|
| |
| |
| |
| export type UserFindUniqueOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = { |
| |
| |
| |
| select?: UserSelect<ExtArgs> | null |
| |
| |
| |
| omit?: UserOmit<ExtArgs> | null |
| |
| |
| |
| include?: UserInclude<ExtArgs> | null |
| |
| |
| |
| where: UserWhereUniqueInput |
| } |
|
|
| |
| |
| |
| export type UserFindFirstArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = { |
| |
| |
| |
| select?: UserSelect<ExtArgs> | null |
| |
| |
| |
| omit?: UserOmit<ExtArgs> | null |
| |
| |
| |
| include?: UserInclude<ExtArgs> | null |
| |
| |
| |
| where?: UserWhereInput |
| |
| |
| |
| |
| |
| orderBy?: UserOrderByWithRelationInput | UserOrderByWithRelationInput[] |
| |
| |
| |
| |
| |
| cursor?: UserWhereUniqueInput |
| |
| |
| |
| |
| |
| take?: number |
| |
| |
| |
| |
| |
| skip?: number |
| |
| |
| |
| |
| |
| distinct?: UserScalarFieldEnum | UserScalarFieldEnum[] |
| } |
|
|
| |
| |
| |
| export type UserFindFirstOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = { |
| |
| |
| |
| select?: UserSelect<ExtArgs> | null |
| |
| |
| |
| omit?: UserOmit<ExtArgs> | null |
| |
| |
| |
| include?: UserInclude<ExtArgs> | null |
| |
| |
| |
| where?: UserWhereInput |
| |
| |
| |
| |
| |
| orderBy?: UserOrderByWithRelationInput | UserOrderByWithRelationInput[] |
| |
| |
| |
| |
| |
| cursor?: UserWhereUniqueInput |
| |
| |
| |
| |
| |
| take?: number |
| |
| |
| |
| |
| |
| skip?: number |
| |
| |
| |
| |
| |
| distinct?: UserScalarFieldEnum | UserScalarFieldEnum[] |
| } |
|
|
| |
| |
| |
| export type UserFindManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = { |
| |
| |
| |
| select?: UserSelect<ExtArgs> | null |
| |
| |
| |
| omit?: UserOmit<ExtArgs> | null |
| |
| |
| |
| include?: UserInclude<ExtArgs> | null |
| |
| |
| |
| where?: UserWhereInput |
| |
| |
| |
| |
| |
| orderBy?: UserOrderByWithRelationInput | UserOrderByWithRelationInput[] |
| |
| |
| |
| |
| |
| cursor?: UserWhereUniqueInput |
| |
| |
| |
| |
| |
| take?: number |
| |
| |
| |
| |
| |
| skip?: number |
| distinct?: UserScalarFieldEnum | UserScalarFieldEnum[] |
| } |
|
|
| |
| |
| |
| export type UserCreateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = { |
| |
| |
| |
| select?: UserSelect<ExtArgs> | null |
| |
| |
| |
| omit?: UserOmit<ExtArgs> | null |
| |
| |
| |
| include?: UserInclude<ExtArgs> | null |
| |
| |
| |
| data: XOR<UserCreateInput, UserUncheckedCreateInput> |
| } |
|
|
| |
| |
| |
| export type UserCreateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = { |
| |
| |
| |
| data: UserCreateManyInput | UserCreateManyInput[] |
| } |
|
|
| |
| |
| |
| export type UserCreateManyAndReturnArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = { |
| |
| |
| |
| select?: UserSelectCreateManyAndReturn<ExtArgs> | null |
| |
| |
| |
| omit?: UserOmit<ExtArgs> | null |
| |
| |
| |
| data: UserCreateManyInput | UserCreateManyInput[] |
| } |
|
|
| |
| |
| |
| export type UserUpdateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = { |
| |
| |
| |
| select?: UserSelect<ExtArgs> | null |
| |
| |
| |
| omit?: UserOmit<ExtArgs> | null |
| |
| |
| |
| include?: UserInclude<ExtArgs> | null |
| |
| |
| |
| data: XOR<UserUpdateInput, UserUncheckedUpdateInput> |
| |
| |
| |
| where: UserWhereUniqueInput |
| } |
|
|
| |
| |
| |
| export type UserUpdateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = { |
| |
| |
| |
| data: XOR<UserUpdateManyMutationInput, UserUncheckedUpdateManyInput> |
| |
| |
| |
| where?: UserWhereInput |
| |
| |
| |
| limit?: number |
| } |
|
|
| |
| |
| |
| export type UserUpdateManyAndReturnArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = { |
| |
| |
| |
| select?: UserSelectUpdateManyAndReturn<ExtArgs> | null |
| |
| |
| |
| omit?: UserOmit<ExtArgs> | null |
| |
| |
| |
| data: XOR<UserUpdateManyMutationInput, UserUncheckedUpdateManyInput> |
| |
| |
| |
| where?: UserWhereInput |
| |
| |
| |
| limit?: number |
| } |
|
|
| |
| |
| |
| export type UserUpsertArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = { |
| |
| |
| |
| select?: UserSelect<ExtArgs> | null |
| |
| |
| |
| omit?: UserOmit<ExtArgs> | null |
| |
| |
| |
| include?: UserInclude<ExtArgs> | null |
| |
| |
| |
| where: UserWhereUniqueInput |
| |
| |
| |
| create: XOR<UserCreateInput, UserUncheckedCreateInput> |
| |
| |
| |
| update: XOR<UserUpdateInput, UserUncheckedUpdateInput> |
| } |
|
|
| |
| |
| |
| export type UserDeleteArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = { |
| |
| |
| |
| select?: UserSelect<ExtArgs> | null |
| |
| |
| |
| omit?: UserOmit<ExtArgs> | null |
| |
| |
| |
| include?: UserInclude<ExtArgs> | null |
| |
| |
| |
| where: UserWhereUniqueInput |
| } |
|
|
| |
| |
| |
| export type UserDeleteManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = { |
| |
| |
| |
| where?: UserWhereInput |
| |
| |
| |
| limit?: number |
| } |
|
|
| |
| |
| |
| export type User$positionsArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = { |
| |
| |
| |
| select?: PositionSelect<ExtArgs> | null |
| |
| |
| |
| omit?: PositionOmit<ExtArgs> | null |
| |
| |
| |
| include?: PositionInclude<ExtArgs> | null |
| where?: PositionWhereInput |
| orderBy?: PositionOrderByWithRelationInput | PositionOrderByWithRelationInput[] |
| cursor?: PositionWhereUniqueInput |
| take?: number |
| skip?: number |
| distinct?: PositionScalarFieldEnum | PositionScalarFieldEnum[] |
| } |
|
|
| |
| |
| |
| export type User$watchlistArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = { |
| |
| |
| |
| select?: WatchlistSelect<ExtArgs> | null |
| |
| |
| |
| omit?: WatchlistOmit<ExtArgs> | null |
| |
| |
| |
| include?: WatchlistInclude<ExtArgs> | null |
| where?: WatchlistWhereInput |
| orderBy?: WatchlistOrderByWithRelationInput | WatchlistOrderByWithRelationInput[] |
| cursor?: WatchlistWhereUniqueInput |
| take?: number |
| skip?: number |
| distinct?: WatchlistScalarFieldEnum | WatchlistScalarFieldEnum[] |
| } |
|
|
| |
| |
| |
| export type User$alertsArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = { |
| |
| |
| |
| select?: AlertSelect<ExtArgs> | null |
| |
| |
| |
| omit?: AlertOmit<ExtArgs> | null |
| |
| |
| |
| include?: AlertInclude<ExtArgs> | null |
| where?: AlertWhereInput |
| orderBy?: AlertOrderByWithRelationInput | AlertOrderByWithRelationInput[] |
| cursor?: AlertWhereUniqueInput |
| take?: number |
| skip?: number |
| distinct?: AlertScalarFieldEnum | AlertScalarFieldEnum[] |
| } |
|
|
| |
| |
| |
| export type UserDefaultArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = { |
| |
| |
| |
| select?: UserSelect<ExtArgs> | null |
| |
| |
| |
| omit?: UserOmit<ExtArgs> | null |
| |
| |
| |
| include?: UserInclude<ExtArgs> | null |
| } |
|
|
|
|
| |
| |
| |
|
|
| export type AggregateMarket = { |
| _count: MarketCountAggregateOutputType | null |
| _avg: MarketAvgAggregateOutputType | null |
| _sum: MarketSumAggregateOutputType | null |
| _min: MarketMinAggregateOutputType | null |
| _max: MarketMaxAggregateOutputType | null |
| } |
|
|
| export type MarketAvgAggregateOutputType = { |
| yesPrice: number | null |
| noPrice: number | null |
| volumeEur: number | null |
| liquidityEur: number | null |
| spread: number | null |
| bestBid: number | null |
| bestAsk: number | null |
| } |
|
|
| export type MarketSumAggregateOutputType = { |
| yesPrice: number | null |
| noPrice: number | null |
| volumeEur: number | null |
| liquidityEur: number | null |
| spread: number | null |
| bestBid: number | null |
| bestAsk: number | null |
| } |
|
|
| export type MarketMinAggregateOutputType = { |
| id: string | null |
| question: string | null |
| category: string | null |
| countryCode: string | null |
| yesPrice: number | null |
| noPrice: number | null |
| volumeEur: number | null |
| liquidityEur: number | null |
| spread: number | null |
| bestBid: number | null |
| bestAsk: number | null |
| clobTokenId: string | null |
| analyzable: boolean | null |
| status: string | null |
| closesAt: Date | null |
| lastSynced: Date | null |
| } |
|
|
| export type MarketMaxAggregateOutputType = { |
| id: string | null |
| question: string | null |
| category: string | null |
| countryCode: string | null |
| yesPrice: number | null |
| noPrice: number | null |
| volumeEur: number | null |
| liquidityEur: number | null |
| spread: number | null |
| bestBid: number | null |
| bestAsk: number | null |
| clobTokenId: string | null |
| analyzable: boolean | null |
| status: string | null |
| closesAt: Date | null |
| lastSynced: Date | null |
| } |
|
|
| export type MarketCountAggregateOutputType = { |
| id: number |
| question: number |
| category: number |
| countryCode: number |
| yesPrice: number |
| noPrice: number |
| volumeEur: number |
| liquidityEur: number |
| spread: number |
| bestBid: number |
| bestAsk: number |
| clobTokenId: number |
| analyzable: number |
| status: number |
| closesAt: number |
| lastSynced: number |
| _all: number |
| } |
|
|
|
|
| export type MarketAvgAggregateInputType = { |
| yesPrice?: true |
| noPrice?: true |
| volumeEur?: true |
| liquidityEur?: true |
| spread?: true |
| bestBid?: true |
| bestAsk?: true |
| } |
|
|
| export type MarketSumAggregateInputType = { |
| yesPrice?: true |
| noPrice?: true |
| volumeEur?: true |
| liquidityEur?: true |
| spread?: true |
| bestBid?: true |
| bestAsk?: true |
| } |
|
|
| export type MarketMinAggregateInputType = { |
| id?: true |
| question?: true |
| category?: true |
| countryCode?: true |
| yesPrice?: true |
| noPrice?: true |
| volumeEur?: true |
| liquidityEur?: true |
| spread?: true |
| bestBid?: true |
| bestAsk?: true |
| clobTokenId?: true |
| analyzable?: true |
| status?: true |
| closesAt?: true |
| lastSynced?: true |
| } |
|
|
| export type MarketMaxAggregateInputType = { |
| id?: true |
| question?: true |
| category?: true |
| countryCode?: true |
| yesPrice?: true |
| noPrice?: true |
| volumeEur?: true |
| liquidityEur?: true |
| spread?: true |
| bestBid?: true |
| bestAsk?: true |
| clobTokenId?: true |
| analyzable?: true |
| status?: true |
| closesAt?: true |
| lastSynced?: true |
| } |
|
|
| export type MarketCountAggregateInputType = { |
| id?: true |
| question?: true |
| category?: true |
| countryCode?: true |
| yesPrice?: true |
| noPrice?: true |
| volumeEur?: true |
| liquidityEur?: true |
| spread?: true |
| bestBid?: true |
| bestAsk?: true |
| clobTokenId?: true |
| analyzable?: true |
| status?: true |
| closesAt?: true |
| lastSynced?: true |
| _all?: true |
| } |
|
|
| export type MarketAggregateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = { |
| |
| |
| |
| where?: MarketWhereInput |
| |
| |
| |
| |
| |
| orderBy?: MarketOrderByWithRelationInput | MarketOrderByWithRelationInput[] |
| |
| |
| |
| |
| |
| cursor?: MarketWhereUniqueInput |
| |
| |
| |
| |
| |
| take?: number |
| |
| |
| |
| |
| |
| skip?: number |
| |
| |
| |
| |
| |
| _count?: true | MarketCountAggregateInputType |
| |
| |
| |
| |
| |
| _avg?: MarketAvgAggregateInputType |
| |
| |
| |
| |
| |
| _sum?: MarketSumAggregateInputType |
| |
| |
| |
| |
| |
| _min?: MarketMinAggregateInputType |
| |
| |
| |
| |
| |
| _max?: MarketMaxAggregateInputType |
| } |
|
|
| export type GetMarketAggregateType<T extends MarketAggregateArgs> = { |
| [P in keyof T & keyof AggregateMarket]: P extends '_count' | 'count' |
| ? T[P] extends true |
| ? number |
| : GetScalarType<T[P], AggregateMarket[P]> |
| : GetScalarType<T[P], AggregateMarket[P]> |
| } |
|
|
|
|
|
|
|
|
| export type MarketGroupByArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = { |
| where?: MarketWhereInput |
| orderBy?: MarketOrderByWithAggregationInput | MarketOrderByWithAggregationInput[] |
| by: MarketScalarFieldEnum[] | MarketScalarFieldEnum |
| having?: MarketScalarWhereWithAggregatesInput |
| take?: number |
| skip?: number |
| _count?: MarketCountAggregateInputType | true |
| _avg?: MarketAvgAggregateInputType |
| _sum?: MarketSumAggregateInputType |
| _min?: MarketMinAggregateInputType |
| _max?: MarketMaxAggregateInputType |
| } |
|
|
| export type MarketGroupByOutputType = { |
| id: string |
| question: string |
| category: string | null |
| countryCode: string | null |
| yesPrice: number | null |
| noPrice: number | null |
| volumeEur: number | null |
| liquidityEur: number | null |
| spread: number | null |
| bestBid: number | null |
| bestAsk: number | null |
| clobTokenId: string | null |
| analyzable: boolean |
| status: string |
| closesAt: Date | null |
| lastSynced: Date |
| _count: MarketCountAggregateOutputType | null |
| _avg: MarketAvgAggregateOutputType | null |
| _sum: MarketSumAggregateOutputType | null |
| _min: MarketMinAggregateOutputType | null |
| _max: MarketMaxAggregateOutputType | null |
| } |
|
|
| type GetMarketGroupByPayload<T extends MarketGroupByArgs> = Prisma.PrismaPromise< |
| Array< |
| PickEnumerable<MarketGroupByOutputType, T['by']> & |
| { |
| [P in ((keyof T) & (keyof MarketGroupByOutputType))]: P extends '_count' |
| ? T[P] extends boolean |
| ? number |
| : GetScalarType<T[P], MarketGroupByOutputType[P]> |
| : GetScalarType<T[P], MarketGroupByOutputType[P]> |
| } |
| > |
| > |
|
|
|
|
| export type MarketSelect<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{ |
| id?: boolean |
| question?: boolean |
| category?: boolean |
| countryCode?: boolean |
| yesPrice?: boolean |
| noPrice?: boolean |
| volumeEur?: boolean |
| liquidityEur?: boolean |
| spread?: boolean |
| bestBid?: boolean |
| bestAsk?: boolean |
| clobTokenId?: boolean |
| analyzable?: boolean |
| status?: boolean |
| closesAt?: boolean |
| lastSynced?: boolean |
| signals?: boolean | Market$signalsArgs<ExtArgs> |
| positions?: boolean | Market$positionsArgs<ExtArgs> |
| watchlist?: boolean | Market$watchlistArgs<ExtArgs> |
| alerts?: boolean | Market$alertsArgs<ExtArgs> |
| _count?: boolean | MarketCountOutputTypeDefaultArgs<ExtArgs> |
| }, ExtArgs["result"]["market"]> |
|
|
| export type MarketSelectCreateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{ |
| id?: boolean |
| question?: boolean |
| category?: boolean |
| countryCode?: boolean |
| yesPrice?: boolean |
| noPrice?: boolean |
| volumeEur?: boolean |
| liquidityEur?: boolean |
| spread?: boolean |
| bestBid?: boolean |
| bestAsk?: boolean |
| clobTokenId?: boolean |
| analyzable?: boolean |
| status?: boolean |
| closesAt?: boolean |
| lastSynced?: boolean |
| }, ExtArgs["result"]["market"]> |
|
|
| export type MarketSelectUpdateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{ |
| id?: boolean |
| question?: boolean |
| category?: boolean |
| countryCode?: boolean |
| yesPrice?: boolean |
| noPrice?: boolean |
| volumeEur?: boolean |
| liquidityEur?: boolean |
| spread?: boolean |
| bestBid?: boolean |
| bestAsk?: boolean |
| clobTokenId?: boolean |
| analyzable?: boolean |
| status?: boolean |
| closesAt?: boolean |
| lastSynced?: boolean |
| }, ExtArgs["result"]["market"]> |
|
|
| export type MarketSelectScalar = { |
| id?: boolean |
| question?: boolean |
| category?: boolean |
| countryCode?: boolean |
| yesPrice?: boolean |
| noPrice?: boolean |
| volumeEur?: boolean |
| liquidityEur?: boolean |
| spread?: boolean |
| bestBid?: boolean |
| bestAsk?: boolean |
| clobTokenId?: boolean |
| analyzable?: boolean |
| status?: boolean |
| closesAt?: boolean |
| lastSynced?: boolean |
| } |
|
|
| export type MarketOmit<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetOmit<"id" | "question" | "category" | "countryCode" | "yesPrice" | "noPrice" | "volumeEur" | "liquidityEur" | "spread" | "bestBid" | "bestAsk" | "clobTokenId" | "analyzable" | "status" | "closesAt" | "lastSynced", ExtArgs["result"]["market"]> |
| export type MarketInclude<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = { |
| signals?: boolean | Market$signalsArgs<ExtArgs> |
| positions?: boolean | Market$positionsArgs<ExtArgs> |
| watchlist?: boolean | Market$watchlistArgs<ExtArgs> |
| alerts?: boolean | Market$alertsArgs<ExtArgs> |
| _count?: boolean | MarketCountOutputTypeDefaultArgs<ExtArgs> |
| } |
| export type MarketIncludeCreateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {} |
| export type MarketIncludeUpdateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {} |
|
|
| export type $MarketPayload<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = { |
| name: "Market" |
| objects: { |
| signals: Prisma.$AISignalPayload<ExtArgs>[] |
| positions: Prisma.$PositionPayload<ExtArgs>[] |
| watchlist: Prisma.$WatchlistPayload<ExtArgs>[] |
| alerts: Prisma.$AlertPayload<ExtArgs>[] |
| } |
| scalars: $Extensions.GetPayloadResult<{ |
| id: string |
| question: string |
| category: string | null |
| countryCode: string | null |
| yesPrice: number | null |
| noPrice: number | null |
| volumeEur: number | null |
| liquidityEur: number | null |
| spread: number | null |
| bestBid: number | null |
| bestAsk: number | null |
| clobTokenId: string | null |
| analyzable: boolean |
| status: string |
| closesAt: Date | null |
| lastSynced: Date |
| }, ExtArgs["result"]["market"]> |
| composites: {} |
| } |
|
|
| type MarketGetPayload<S extends boolean | null | undefined | MarketDefaultArgs> = $Result.GetResult<Prisma.$MarketPayload, S> |
|
|
| type MarketCountArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = |
| Omit<MarketFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & { |
| select?: MarketCountAggregateInputType | true |
| } |
|
|
| export interface MarketDelegate<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs, GlobalOmitOptions = {}> { |
| [K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['Market'], meta: { name: 'Market' } } |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| findUnique<T extends MarketFindUniqueArgs>(args: SelectSubset<T, MarketFindUniqueArgs<ExtArgs>>): Prisma__MarketClient<$Result.GetResult<Prisma.$MarketPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> |
|
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| findUniqueOrThrow<T extends MarketFindUniqueOrThrowArgs>(args: SelectSubset<T, MarketFindUniqueOrThrowArgs<ExtArgs>>): Prisma__MarketClient<$Result.GetResult<Prisma.$MarketPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> |
|
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| findFirst<T extends MarketFindFirstArgs>(args?: SelectSubset<T, MarketFindFirstArgs<ExtArgs>>): Prisma__MarketClient<$Result.GetResult<Prisma.$MarketPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> |
|
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| findFirstOrThrow<T extends MarketFindFirstOrThrowArgs>(args?: SelectSubset<T, MarketFindFirstOrThrowArgs<ExtArgs>>): Prisma__MarketClient<$Result.GetResult<Prisma.$MarketPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> |
|
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| findMany<T extends MarketFindManyArgs>(args?: SelectSubset<T, MarketFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$MarketPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>> |
|
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| create<T extends MarketCreateArgs>(args: SelectSubset<T, MarketCreateArgs<ExtArgs>>): Prisma__MarketClient<$Result.GetResult<Prisma.$MarketPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> |
|
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| createMany<T extends MarketCreateManyArgs>(args?: SelectSubset<T, MarketCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload> |
|
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| createManyAndReturn<T extends MarketCreateManyAndReturnArgs>(args?: SelectSubset<T, MarketCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$MarketPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>> |
|
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| delete<T extends MarketDeleteArgs>(args: SelectSubset<T, MarketDeleteArgs<ExtArgs>>): Prisma__MarketClient<$Result.GetResult<Prisma.$MarketPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> |
|
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| update<T extends MarketUpdateArgs>(args: SelectSubset<T, MarketUpdateArgs<ExtArgs>>): Prisma__MarketClient<$Result.GetResult<Prisma.$MarketPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> |
|
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| deleteMany<T extends MarketDeleteManyArgs>(args?: SelectSubset<T, MarketDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload> |
|
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| updateMany<T extends MarketUpdateManyArgs>(args: SelectSubset<T, MarketUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload> |
|
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| updateManyAndReturn<T extends MarketUpdateManyAndReturnArgs>(args: SelectSubset<T, MarketUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$MarketPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>> |
|
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| upsert<T extends MarketUpsertArgs>(args: SelectSubset<T, MarketUpsertArgs<ExtArgs>>): Prisma__MarketClient<$Result.GetResult<Prisma.$MarketPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> |
|
|
|
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| count<T extends MarketCountArgs>( |
| args?: Subset<T, MarketCountArgs>, |
| ): Prisma.PrismaPromise< |
| T extends $Utils.Record<'select', any> |
| ? T['select'] extends true |
| ? number |
| : GetScalarType<T['select'], MarketCountAggregateOutputType> |
| : number |
| > |
|
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| aggregate<T extends MarketAggregateArgs>(args: Subset<T, MarketAggregateArgs>): Prisma.PrismaPromise<GetMarketAggregateType<T>> |
|
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| groupBy< |
| T extends MarketGroupByArgs, |
| HasSelectOrTake extends Or< |
| Extends<'skip', Keys<T>>, |
| Extends<'take', Keys<T>> |
| >, |
| OrderByArg extends True extends HasSelectOrTake |
| ? { orderBy: MarketGroupByArgs['orderBy'] } |
| : { orderBy?: MarketGroupByArgs['orderBy'] }, |
| OrderFields extends ExcludeUnderscoreKeys<Keys<MaybeTupleToUnion<T['orderBy']>>>, |
| ByFields extends MaybeTupleToUnion<T['by']>, |
| ByValid extends Has<ByFields, OrderFields>, |
| HavingFields extends GetHavingFields<T['having']>, |
| HavingValid extends Has<ByFields, HavingFields>, |
| ByEmpty extends T['by'] extends never[] ? True : False, |
| InputErrors extends ByEmpty extends True |
| ? `Error: "by" must not be empty.` |
| : HavingValid extends 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 Keys<T> |
| ? 'orderBy' extends Keys<T> |
| ? ByValid extends 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 Keys<T> |
| ? 'orderBy' extends Keys<T> |
| ? ByValid extends 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 True |
| ? {} |
| : { |
| [P in OrderFields]: P extends ByFields |
| ? never |
| : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` |
| }[OrderFields] |
| >(args: SubsetIntersection<T, MarketGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetMarketGroupByPayload<T> : Prisma.PrismaPromise<InputErrors> |
| |
| |
| |
| readonly fields: MarketFieldRefs; |
| } |
|
|
| |
| |
| |
| |
| |
| |
| export interface Prisma__MarketClient<T, Null = never, ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> { |
| readonly [Symbol.toStringTag]: "PrismaPromise" |
| signals<T extends Market$signalsArgs<ExtArgs> = {}>(args?: Subset<T, Market$signalsArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$AISignalPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null> |
| positions<T extends Market$positionsArgs<ExtArgs> = {}>(args?: Subset<T, Market$positionsArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$PositionPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null> |
| watchlist<T extends Market$watchlistArgs<ExtArgs> = {}>(args?: Subset<T, Market$watchlistArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$WatchlistPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null> |
| alerts<T extends Market$alertsArgs<ExtArgs> = {}>(args?: Subset<T, Market$alertsArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$AlertPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null> |
| |
| |
| |
| |
| |
| |
| then<TResult1 = T, TResult2 = never>(onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined | null): $Utils.JsPromise<TResult1 | TResult2> |
| |
| |
| |
| |
| |
| catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): $Utils.JsPromise<T | TResult> |
| |
| |
| |
| |
| |
| |
| finally(onfinally?: (() => void) | undefined | null): $Utils.JsPromise<T> |
| } |
|
|
|
|
|
|
|
|
| |
| |
| |
| interface MarketFieldRefs { |
| readonly id: FieldRef<"Market", 'String'> |
| readonly question: FieldRef<"Market", 'String'> |
| readonly category: FieldRef<"Market", 'String'> |
| readonly countryCode: FieldRef<"Market", 'String'> |
| readonly yesPrice: FieldRef<"Market", 'Float'> |
| readonly noPrice: FieldRef<"Market", 'Float'> |
| readonly volumeEur: FieldRef<"Market", 'Float'> |
| readonly liquidityEur: FieldRef<"Market", 'Float'> |
| readonly spread: FieldRef<"Market", 'Float'> |
| readonly bestBid: FieldRef<"Market", 'Float'> |
| readonly bestAsk: FieldRef<"Market", 'Float'> |
| readonly clobTokenId: FieldRef<"Market", 'String'> |
| readonly analyzable: FieldRef<"Market", 'Boolean'> |
| readonly status: FieldRef<"Market", 'String'> |
| readonly closesAt: FieldRef<"Market", 'DateTime'> |
| readonly lastSynced: FieldRef<"Market", 'DateTime'> |
| } |
| |
|
|
| |
| |
| |
| |
| export type MarketFindUniqueArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = { |
| |
| |
| |
| select?: MarketSelect<ExtArgs> | null |
| |
| |
| |
| omit?: MarketOmit<ExtArgs> | null |
| |
| |
| |
| include?: MarketInclude<ExtArgs> | null |
| |
| |
| |
| where: MarketWhereUniqueInput |
| } |
|
|
| |
| |
| |
| export type MarketFindUniqueOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = { |
| |
| |
| |
| select?: MarketSelect<ExtArgs> | null |
| |
| |
| |
| omit?: MarketOmit<ExtArgs> | null |
| |
| |
| |
| include?: MarketInclude<ExtArgs> | null |
| |
| |
| |
| where: MarketWhereUniqueInput |
| } |
|
|
| |
| |
| |
| export type MarketFindFirstArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = { |
| |
| |
| |
| select?: MarketSelect<ExtArgs> | null |
| |
| |
| |
| omit?: MarketOmit<ExtArgs> | null |
| |
| |
| |
| include?: MarketInclude<ExtArgs> | null |
| |
| |
| |
| where?: MarketWhereInput |
| |
| |
| |
| |
| |
| orderBy?: MarketOrderByWithRelationInput | MarketOrderByWithRelationInput[] |
| |
| |
| |
| |
| |
| cursor?: MarketWhereUniqueInput |
| |
| |
| |
| |
| |
| take?: number |
| |
| |
| |
| |
| |
| skip?: number |
| |
| |
| |
| |
| |
| distinct?: MarketScalarFieldEnum | MarketScalarFieldEnum[] |
| } |
|
|
| |
| |
| |
| export type MarketFindFirstOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = { |
| |
| |
| |
| select?: MarketSelect<ExtArgs> | null |
| |
| |
| |
| omit?: MarketOmit<ExtArgs> | null |
| |
| |
| |
| include?: MarketInclude<ExtArgs> | null |
| |
| |
| |
| where?: MarketWhereInput |
| |
| |
| |
| |
| |
| orderBy?: MarketOrderByWithRelationInput | MarketOrderByWithRelationInput[] |
| |
| |
| |
| |
| |
| cursor?: MarketWhereUniqueInput |
| |
| |
| |
| |
| |
| take?: number |
| |
| |
| |
| |
| |
| skip?: number |
| |
| |
| |
| |
| |
| distinct?: MarketScalarFieldEnum | MarketScalarFieldEnum[] |
| } |
|
|
| |
| |
| |
| export type MarketFindManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = { |
| |
| |
| |
| select?: MarketSelect<ExtArgs> | null |
| |
| |
| |
| omit?: MarketOmit<ExtArgs> | null |
| |
| |
| |
| include?: MarketInclude<ExtArgs> | null |
| |
| |
| |
| where?: MarketWhereInput |
| |
| |
| |
| |
| |
| orderBy?: MarketOrderByWithRelationInput | MarketOrderByWithRelationInput[] |
| |
| |
| |
| |
| |
| cursor?: MarketWhereUniqueInput |
| |
| |
| |
| |
| |
| take?: number |
| |
| |
| |
| |
| |
| skip?: number |
| distinct?: MarketScalarFieldEnum | MarketScalarFieldEnum[] |
| } |
|
|
| |
| |
| |
| export type MarketCreateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = { |
| |
| |
| |
| select?: MarketSelect<ExtArgs> | null |
| |
| |
| |
| omit?: MarketOmit<ExtArgs> | null |
| |
| |
| |
| include?: MarketInclude<ExtArgs> | null |
| |
| |
| |
| data: XOR<MarketCreateInput, MarketUncheckedCreateInput> |
| } |
|
|
| |
| |
| |
| export type MarketCreateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = { |
| |
| |
| |
| data: MarketCreateManyInput | MarketCreateManyInput[] |
| } |
|
|
| |
| |
| |
| export type MarketCreateManyAndReturnArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = { |
| |
| |
| |
| select?: MarketSelectCreateManyAndReturn<ExtArgs> | null |
| |
| |
| |
| omit?: MarketOmit<ExtArgs> | null |
| |
| |
| |
| data: MarketCreateManyInput | MarketCreateManyInput[] |
| } |
|
|
| |
| |
| |
| export type MarketUpdateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = { |
| |
| |
| |
| select?: MarketSelect<ExtArgs> | null |
| |
| |
| |
| omit?: MarketOmit<ExtArgs> | null |
| |
| |
| |
| include?: MarketInclude<ExtArgs> | null |
| |
| |
| |
| data: XOR<MarketUpdateInput, MarketUncheckedUpdateInput> |
| |
| |
| |
| where: MarketWhereUniqueInput |
| } |
|
|
| |
| |
| |
| export type MarketUpdateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = { |
| |
| |
| |
| data: XOR<MarketUpdateManyMutationInput, MarketUncheckedUpdateManyInput> |
| |
| |
| |
| where?: MarketWhereInput |
| |
| |
| |
| limit?: number |
| } |
|
|
| |
| |
| |
| export type MarketUpdateManyAndReturnArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = { |
| |
| |
| |
| select?: MarketSelectUpdateManyAndReturn<ExtArgs> | null |
| |
| |
| |
| omit?: MarketOmit<ExtArgs> | null |
| |
| |
| |
| data: XOR<MarketUpdateManyMutationInput, MarketUncheckedUpdateManyInput> |
| |
| |
| |
| where?: MarketWhereInput |
| |
| |
| |
| limit?: number |
| } |
|
|
| |
| |
| |
| export type MarketUpsertArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = { |
| |
| |
| |
| select?: MarketSelect<ExtArgs> | null |
| |
| |
| |
| omit?: MarketOmit<ExtArgs> | null |
| |
| |
| |
| include?: MarketInclude<ExtArgs> | null |
| |
| |
| |
| where: MarketWhereUniqueInput |
| |
| |
| |
| create: XOR<MarketCreateInput, MarketUncheckedCreateInput> |
| |
| |
| |
| update: XOR<MarketUpdateInput, MarketUncheckedUpdateInput> |
| } |
|
|
| |
| |
| |
| export type MarketDeleteArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = { |
| |
| |
| |
| select?: MarketSelect<ExtArgs> | null |
| |
| |
| |
| omit?: MarketOmit<ExtArgs> | null |
| |
| |
| |
| include?: MarketInclude<ExtArgs> | null |
| |
| |
| |
| where: MarketWhereUniqueInput |
| } |
|
|
| |
| |
| |
| export type MarketDeleteManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = { |
| |
| |
| |
| where?: MarketWhereInput |
| |
| |
| |
| limit?: number |
| } |
|
|
| |
| |
| |
| export type Market$signalsArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = { |
| |
| |
| |
| select?: AISignalSelect<ExtArgs> | null |
| |
| |
| |
| omit?: AISignalOmit<ExtArgs> | null |
| |
| |
| |
| include?: AISignalInclude<ExtArgs> | null |
| where?: AISignalWhereInput |
| orderBy?: AISignalOrderByWithRelationInput | AISignalOrderByWithRelationInput[] |
| cursor?: AISignalWhereUniqueInput |
| take?: number |
| skip?: number |
| distinct?: AISignalScalarFieldEnum | AISignalScalarFieldEnum[] |
| } |
|
|
| |
| |
| |
| export type Market$positionsArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = { |
| |
| |
| |
| select?: PositionSelect<ExtArgs> | null |
| |
| |
| |
| omit?: PositionOmit<ExtArgs> | null |
| |
| |
| |
| include?: PositionInclude<ExtArgs> | null |
| where?: PositionWhereInput |
| orderBy?: PositionOrderByWithRelationInput | PositionOrderByWithRelationInput[] |
| cursor?: PositionWhereUniqueInput |
| take?: number |
| skip?: number |
| distinct?: PositionScalarFieldEnum | PositionScalarFieldEnum[] |
| } |
|
|
| |
| |
| |
| export type Market$watchlistArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = { |
| |
| |
| |
| select?: WatchlistSelect<ExtArgs> | null |
| |
| |
| |
| omit?: WatchlistOmit<ExtArgs> | null |
| |
| |
| |
| include?: WatchlistInclude<ExtArgs> | null |
| where?: WatchlistWhereInput |
| orderBy?: WatchlistOrderByWithRelationInput | WatchlistOrderByWithRelationInput[] |
| cursor?: WatchlistWhereUniqueInput |
| take?: number |
| skip?: number |
| distinct?: WatchlistScalarFieldEnum | WatchlistScalarFieldEnum[] |
| } |
|
|
| |
| |
| |
| export type Market$alertsArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = { |
| |
| |
| |
| select?: AlertSelect<ExtArgs> | null |
| |
| |
| |
| omit?: AlertOmit<ExtArgs> | null |
| |
| |
| |
| include?: AlertInclude<ExtArgs> | null |
| where?: AlertWhereInput |
| orderBy?: AlertOrderByWithRelationInput | AlertOrderByWithRelationInput[] |
| cursor?: AlertWhereUniqueInput |
| take?: number |
| skip?: number |
| distinct?: AlertScalarFieldEnum | AlertScalarFieldEnum[] |
| } |
|
|
| |
| |
| |
| export type MarketDefaultArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = { |
| |
| |
| |
| select?: MarketSelect<ExtArgs> | null |
| |
| |
| |
| omit?: MarketOmit<ExtArgs> | null |
| |
| |
| |
| include?: MarketInclude<ExtArgs> | null |
| } |
|
|
|
|
| |
| |
| |
|
|
| export type AggregateAISignal = { |
| _count: AISignalCountAggregateOutputType | null |
| _avg: AISignalAvgAggregateOutputType | null |
| _sum: AISignalSumAggregateOutputType | null |
| _min: AISignalMinAggregateOutputType | null |
| _max: AISignalMaxAggregateOutputType | null |
| } |
|
|
| export type AISignalAvgAggregateOutputType = { |
| id: number | null |
| confidence: number | null |
| newsCount: number | null |
| impliedProb: number | null |
| fairProb: number | null |
| edgePoints: number | null |
| } |
|
|
| export type AISignalSumAggregateOutputType = { |
| id: number | null |
| confidence: number | null |
| newsCount: number | null |
| impliedProb: number | null |
| fairProb: number | null |
| edgePoints: number | null |
| } |
|
|
| export type AISignalMinAggregateOutputType = { |
| id: number | null |
| marketId: string | null |
| signal: string | null |
| confidence: number | null |
| summary: string | null |
| keyRisk: string | null |
| newsCount: number | null |
| modelVersion: string | null |
| impliedProb: number | null |
| fairProb: number | null |
| edgePoints: number | null |
| generatedAt: Date | null |
| } |
|
|
| export type AISignalMaxAggregateOutputType = { |
| id: number | null |
| marketId: string | null |
| signal: string | null |
| confidence: number | null |
| summary: string | null |
| keyRisk: string | null |
| newsCount: number | null |
| modelVersion: string | null |
| impliedProb: number | null |
| fairProb: number | null |
| edgePoints: number | null |
| generatedAt: Date | null |
| } |
|
|
| export type AISignalCountAggregateOutputType = { |
| id: number |
| marketId: number |
| signal: number |
| confidence: number |
| summary: number |
| keyRisk: number |
| newsCount: number |
| modelVersion: number |
| impliedProb: number |
| fairProb: number |
| edgePoints: number |
| generatedAt: number |
| _all: number |
| } |
|
|
|
|
| export type AISignalAvgAggregateInputType = { |
| id?: true |
| confidence?: true |
| newsCount?: true |
| impliedProb?: true |
| fairProb?: true |
| edgePoints?: true |
| } |
|
|
| export type AISignalSumAggregateInputType = { |
| id?: true |
| confidence?: true |
| newsCount?: true |
| impliedProb?: true |
| fairProb?: true |
| edgePoints?: true |
| } |
|
|
| export type AISignalMinAggregateInputType = { |
| id?: true |
| marketId?: true |
| signal?: true |
| confidence?: true |
| summary?: true |
| keyRisk?: true |
| newsCount?: true |
| modelVersion?: true |
| impliedProb?: true |
| fairProb?: true |
| edgePoints?: true |
| generatedAt?: true |
| } |
|
|
| export type AISignalMaxAggregateInputType = { |
| id?: true |
| marketId?: true |
| signal?: true |
| confidence?: true |
| summary?: true |
| keyRisk?: true |
| newsCount?: true |
| modelVersion?: true |
| impliedProb?: true |
| fairProb?: true |
| edgePoints?: true |
| generatedAt?: true |
| } |
|
|
| export type AISignalCountAggregateInputType = { |
| id?: true |
| marketId?: true |
| signal?: true |
| confidence?: true |
| summary?: true |
| keyRisk?: true |
| newsCount?: true |
| modelVersion?: true |
| impliedProb?: true |
| fairProb?: true |
| edgePoints?: true |
| generatedAt?: true |
| _all?: true |
| } |
|
|
| export type AISignalAggregateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = { |
| |
| |
| |
| where?: AISignalWhereInput |
| |
| |
| |
| |
| |
| orderBy?: AISignalOrderByWithRelationInput | AISignalOrderByWithRelationInput[] |
| |
| |
| |
| |
| |
| cursor?: AISignalWhereUniqueInput |
| |
| |
| |
| |
| |
| take?: number |
| |
| |
| |
| |
| |
| skip?: number |
| |
| |
| |
| |
| |
| _count?: true | AISignalCountAggregateInputType |
| |
| |
| |
| |
| |
| _avg?: AISignalAvgAggregateInputType |
| |
| |
| |
| |
| |
| _sum?: AISignalSumAggregateInputType |
| |
| |
| |
| |
| |
| _min?: AISignalMinAggregateInputType |
| |
| |
| |
| |
| |
| _max?: AISignalMaxAggregateInputType |
| } |
|
|
| export type GetAISignalAggregateType<T extends AISignalAggregateArgs> = { |
| [P in keyof T & keyof AggregateAISignal]: P extends '_count' | 'count' |
| ? T[P] extends true |
| ? number |
| : GetScalarType<T[P], AggregateAISignal[P]> |
| : GetScalarType<T[P], AggregateAISignal[P]> |
| } |
|
|
|
|
|
|
|
|
| export type AISignalGroupByArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = { |
| where?: AISignalWhereInput |
| orderBy?: AISignalOrderByWithAggregationInput | AISignalOrderByWithAggregationInput[] |
| by: AISignalScalarFieldEnum[] | AISignalScalarFieldEnum |
| having?: AISignalScalarWhereWithAggregatesInput |
| take?: number |
| skip?: number |
| _count?: AISignalCountAggregateInputType | true |
| _avg?: AISignalAvgAggregateInputType |
| _sum?: AISignalSumAggregateInputType |
| _min?: AISignalMinAggregateInputType |
| _max?: AISignalMaxAggregateInputType |
| } |
|
|
| export type AISignalGroupByOutputType = { |
| id: number |
| marketId: string |
| signal: string |
| confidence: number |
| summary: string | null |
| keyRisk: string | null |
| newsCount: number |
| modelVersion: string |
| impliedProb: number | null |
| fairProb: number | null |
| edgePoints: number | null |
| generatedAt: Date |
| _count: AISignalCountAggregateOutputType | null |
| _avg: AISignalAvgAggregateOutputType | null |
| _sum: AISignalSumAggregateOutputType | null |
| _min: AISignalMinAggregateOutputType | null |
| _max: AISignalMaxAggregateOutputType | null |
| } |
|
|
| type GetAISignalGroupByPayload<T extends AISignalGroupByArgs> = Prisma.PrismaPromise< |
| Array< |
| PickEnumerable<AISignalGroupByOutputType, T['by']> & |
| { |
| [P in ((keyof T) & (keyof AISignalGroupByOutputType))]: P extends '_count' |
| ? T[P] extends boolean |
| ? number |
| : GetScalarType<T[P], AISignalGroupByOutputType[P]> |
| : GetScalarType<T[P], AISignalGroupByOutputType[P]> |
| } |
| > |
| > |
|
|
|
|
| export type AISignalSelect<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{ |
| id?: boolean |
| marketId?: boolean |
| signal?: boolean |
| confidence?: boolean |
| summary?: boolean |
| keyRisk?: boolean |
| newsCount?: boolean |
| modelVersion?: boolean |
| impliedProb?: boolean |
| fairProb?: boolean |
| edgePoints?: boolean |
| generatedAt?: boolean |
| market?: boolean | MarketDefaultArgs<ExtArgs> |
| }, ExtArgs["result"]["aISignal"]> |
|
|
| export type AISignalSelectCreateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{ |
| id?: boolean |
| marketId?: boolean |
| signal?: boolean |
| confidence?: boolean |
| summary?: boolean |
| keyRisk?: boolean |
| newsCount?: boolean |
| modelVersion?: boolean |
| impliedProb?: boolean |
| fairProb?: boolean |
| edgePoints?: boolean |
| generatedAt?: boolean |
| market?: boolean | MarketDefaultArgs<ExtArgs> |
| }, ExtArgs["result"]["aISignal"]> |
|
|
| export type AISignalSelectUpdateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{ |
| id?: boolean |
| marketId?: boolean |
| signal?: boolean |
| confidence?: boolean |
| summary?: boolean |
| keyRisk?: boolean |
| newsCount?: boolean |
| modelVersion?: boolean |
| impliedProb?: boolean |
| fairProb?: boolean |
| edgePoints?: boolean |
| generatedAt?: boolean |
| market?: boolean | MarketDefaultArgs<ExtArgs> |
| }, ExtArgs["result"]["aISignal"]> |
|
|
| export type AISignalSelectScalar = { |
| id?: boolean |
| marketId?: boolean |
| signal?: boolean |
| confidence?: boolean |
| summary?: boolean |
| keyRisk?: boolean |
| newsCount?: boolean |
| modelVersion?: boolean |
| impliedProb?: boolean |
| fairProb?: boolean |
| edgePoints?: boolean |
| generatedAt?: boolean |
| } |
|
|
| export type AISignalOmit<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetOmit<"id" | "marketId" | "signal" | "confidence" | "summary" | "keyRisk" | "newsCount" | "modelVersion" | "impliedProb" | "fairProb" | "edgePoints" | "generatedAt", ExtArgs["result"]["aISignal"]> |
| export type AISignalInclude<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = { |
| market?: boolean | MarketDefaultArgs<ExtArgs> |
| } |
| export type AISignalIncludeCreateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = { |
| market?: boolean | MarketDefaultArgs<ExtArgs> |
| } |
| export type AISignalIncludeUpdateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = { |
| market?: boolean | MarketDefaultArgs<ExtArgs> |
| } |
|
|
| export type $AISignalPayload<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = { |
| name: "AISignal" |
| objects: { |
| market: Prisma.$MarketPayload<ExtArgs> |
| } |
| scalars: $Extensions.GetPayloadResult<{ |
| id: number |
| marketId: string |
| signal: string |
| confidence: number |
| summary: string | null |
| keyRisk: string | null |
| newsCount: number |
| modelVersion: string |
| impliedProb: number | null |
| fairProb: number | null |
| edgePoints: number | null |
| generatedAt: Date |
| }, ExtArgs["result"]["aISignal"]> |
| composites: {} |
| } |
|
|
| type AISignalGetPayload<S extends boolean | null | undefined | AISignalDefaultArgs> = $Result.GetResult<Prisma.$AISignalPayload, S> |
|
|
| type AISignalCountArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = |
| Omit<AISignalFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & { |
| select?: AISignalCountAggregateInputType | true |
| } |
|
|
| export interface AISignalDelegate<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs, GlobalOmitOptions = {}> { |
| [K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['AISignal'], meta: { name: 'AISignal' } } |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| findUnique<T extends AISignalFindUniqueArgs>(args: SelectSubset<T, AISignalFindUniqueArgs<ExtArgs>>): Prisma__AISignalClient<$Result.GetResult<Prisma.$AISignalPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> |
|
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| findUniqueOrThrow<T extends AISignalFindUniqueOrThrowArgs>(args: SelectSubset<T, AISignalFindUniqueOrThrowArgs<ExtArgs>>): Prisma__AISignalClient<$Result.GetResult<Prisma.$AISignalPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> |
|
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| findFirst<T extends AISignalFindFirstArgs>(args?: SelectSubset<T, AISignalFindFirstArgs<ExtArgs>>): Prisma__AISignalClient<$Result.GetResult<Prisma.$AISignalPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> |
|
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| findFirstOrThrow<T extends AISignalFindFirstOrThrowArgs>(args?: SelectSubset<T, AISignalFindFirstOrThrowArgs<ExtArgs>>): Prisma__AISignalClient<$Result.GetResult<Prisma.$AISignalPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> |
|
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| findMany<T extends AISignalFindManyArgs>(args?: SelectSubset<T, AISignalFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$AISignalPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>> |
|
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| create<T extends AISignalCreateArgs>(args: SelectSubset<T, AISignalCreateArgs<ExtArgs>>): Prisma__AISignalClient<$Result.GetResult<Prisma.$AISignalPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> |
|
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| createMany<T extends AISignalCreateManyArgs>(args?: SelectSubset<T, AISignalCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload> |
|
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| createManyAndReturn<T extends AISignalCreateManyAndReturnArgs>(args?: SelectSubset<T, AISignalCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$AISignalPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>> |
|
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| delete<T extends AISignalDeleteArgs>(args: SelectSubset<T, AISignalDeleteArgs<ExtArgs>>): Prisma__AISignalClient<$Result.GetResult<Prisma.$AISignalPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> |
|
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| update<T extends AISignalUpdateArgs>(args: SelectSubset<T, AISignalUpdateArgs<ExtArgs>>): Prisma__AISignalClient<$Result.GetResult<Prisma.$AISignalPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> |
|
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| deleteMany<T extends AISignalDeleteManyArgs>(args?: SelectSubset<T, AISignalDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload> |
|
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| updateMany<T extends AISignalUpdateManyArgs>(args: SelectSubset<T, AISignalUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload> |
|
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| updateManyAndReturn<T extends AISignalUpdateManyAndReturnArgs>(args: SelectSubset<T, AISignalUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$AISignalPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>> |
|
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| upsert<T extends AISignalUpsertArgs>(args: SelectSubset<T, AISignalUpsertArgs<ExtArgs>>): Prisma__AISignalClient<$Result.GetResult<Prisma.$AISignalPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> |
|
|
|
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| count<T extends AISignalCountArgs>( |
| args?: Subset<T, AISignalCountArgs>, |
| ): Prisma.PrismaPromise< |
| T extends $Utils.Record<'select', any> |
| ? T['select'] extends true |
| ? number |
| : GetScalarType<T['select'], AISignalCountAggregateOutputType> |
| : number |
| > |
|
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| aggregate<T extends AISignalAggregateArgs>(args: Subset<T, AISignalAggregateArgs>): Prisma.PrismaPromise<GetAISignalAggregateType<T>> |
|
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| groupBy< |
| T extends AISignalGroupByArgs, |
| HasSelectOrTake extends Or< |
| Extends<'skip', Keys<T>>, |
| Extends<'take', Keys<T>> |
| >, |
| OrderByArg extends True extends HasSelectOrTake |
| ? { orderBy: AISignalGroupByArgs['orderBy'] } |
| : { orderBy?: AISignalGroupByArgs['orderBy'] }, |
| OrderFields extends ExcludeUnderscoreKeys<Keys<MaybeTupleToUnion<T['orderBy']>>>, |
| ByFields extends MaybeTupleToUnion<T['by']>, |
| ByValid extends Has<ByFields, OrderFields>, |
| HavingFields extends GetHavingFields<T['having']>, |
| HavingValid extends Has<ByFields, HavingFields>, |
| ByEmpty extends T['by'] extends never[] ? True : False, |
| InputErrors extends ByEmpty extends True |
| ? `Error: "by" must not be empty.` |
| : HavingValid extends 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 Keys<T> |
| ? 'orderBy' extends Keys<T> |
| ? ByValid extends 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 Keys<T> |
| ? 'orderBy' extends Keys<T> |
| ? ByValid extends 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 True |
| ? {} |
| : { |
| [P in OrderFields]: P extends ByFields |
| ? never |
| : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` |
| }[OrderFields] |
| >(args: SubsetIntersection<T, AISignalGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetAISignalGroupByPayload<T> : Prisma.PrismaPromise<InputErrors> |
| |
| |
| |
| readonly fields: AISignalFieldRefs; |
| } |
|
|
| |
| |
| |
| |
| |
| |
| export interface Prisma__AISignalClient<T, Null = never, ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> { |
| readonly [Symbol.toStringTag]: "PrismaPromise" |
| market<T extends MarketDefaultArgs<ExtArgs> = {}>(args?: Subset<T, MarketDefaultArgs<ExtArgs>>): Prisma__MarketClient<$Result.GetResult<Prisma.$MarketPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions> |
| |
| |
| |
| |
| |
| |
| then<TResult1 = T, TResult2 = never>(onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined | null): $Utils.JsPromise<TResult1 | TResult2> |
| |
| |
| |
| |
| |
| catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): $Utils.JsPromise<T | TResult> |
| |
| |
| |
| |
| |
| |
| finally(onfinally?: (() => void) | undefined | null): $Utils.JsPromise<T> |
| } |
|
|
|
|
|
|
|
|
| |
| |
| |
| interface AISignalFieldRefs { |
| readonly id: FieldRef<"AISignal", 'Int'> |
| readonly marketId: FieldRef<"AISignal", 'String'> |
| readonly signal: FieldRef<"AISignal", 'String'> |
| readonly confidence: FieldRef<"AISignal", 'Float'> |
| readonly summary: FieldRef<"AISignal", 'String'> |
| readonly keyRisk: FieldRef<"AISignal", 'String'> |
| readonly newsCount: FieldRef<"AISignal", 'Int'> |
| readonly modelVersion: FieldRef<"AISignal", 'String'> |
| readonly impliedProb: FieldRef<"AISignal", 'Float'> |
| readonly fairProb: FieldRef<"AISignal", 'Float'> |
| readonly edgePoints: FieldRef<"AISignal", 'Float'> |
| readonly generatedAt: FieldRef<"AISignal", 'DateTime'> |
| } |
| |
|
|
| |
| |
| |
| |
| export type AISignalFindUniqueArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = { |
| |
| |
| |
| select?: AISignalSelect<ExtArgs> | null |
| |
| |
| |
| omit?: AISignalOmit<ExtArgs> | null |
| |
| |
| |
| include?: AISignalInclude<ExtArgs> | null |
| |
| |
| |
| where: AISignalWhereUniqueInput |
| } |
|
|
| |
| |
| |
| export type AISignalFindUniqueOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = { |
| |
| |
| |
| select?: AISignalSelect<ExtArgs> | null |
| |
| |
| |
| omit?: AISignalOmit<ExtArgs> | null |
| |
| |
| |
| include?: AISignalInclude<ExtArgs> | null |
| |
| |
| |
| where: AISignalWhereUniqueInput |
| } |
|
|
| |
| |
| |
| export type AISignalFindFirstArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = { |
| |
| |
| |
| select?: AISignalSelect<ExtArgs> | null |
| |
| |
| |
| omit?: AISignalOmit<ExtArgs> | null |
| |
| |
| |
| include?: AISignalInclude<ExtArgs> | null |
| |
| |
| |
| where?: AISignalWhereInput |
| |
| |
| |
| |
| |
| orderBy?: AISignalOrderByWithRelationInput | AISignalOrderByWithRelationInput[] |
| |
| |
| |
| |
| |
| cursor?: AISignalWhereUniqueInput |
| |
| |
| |
| |
| |
| take?: number |
| |
| |
| |
| |
| |
| skip?: number |
| |
| |
| |
| |
| |
| distinct?: AISignalScalarFieldEnum | AISignalScalarFieldEnum[] |
| } |
|
|
| |
| |
| |
| export type AISignalFindFirstOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = { |
| |
| |
| |
| select?: AISignalSelect<ExtArgs> | null |
| |
| |
| |
| omit?: AISignalOmit<ExtArgs> | null |
| |
| |
| |
| include?: AISignalInclude<ExtArgs> | null |
| |
| |
| |
| where?: AISignalWhereInput |
| |
| |
| |
| |
| |
| orderBy?: AISignalOrderByWithRelationInput | AISignalOrderByWithRelationInput[] |
| |
| |
| |
| |
| |
| cursor?: AISignalWhereUniqueInput |
| |
| |
| |
| |
| |
| take?: number |
| |
| |
| |
| |
| |
| skip?: number |
| |
| |
| |
| |
| |
| distinct?: AISignalScalarFieldEnum | AISignalScalarFieldEnum[] |
| } |
|
|
| |
| |
| |
| export type AISignalFindManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = { |
| |
| |
| |
| select?: AISignalSelect<ExtArgs> | null |
| |
| |
| |
| omit?: AISignalOmit<ExtArgs> | null |
| |
| |
| |
| include?: AISignalInclude<ExtArgs> | null |
| |
| |
| |
| where?: AISignalWhereInput |
| |
| |
| |
| |
| |
| orderBy?: AISignalOrderByWithRelationInput | AISignalOrderByWithRelationInput[] |
| |
| |
| |
| |
| |
| cursor?: AISignalWhereUniqueInput |
| |
| |
| |
| |
| |
| take?: number |
| |
| |
| |
| |
| |
| skip?: number |
| distinct?: AISignalScalarFieldEnum | AISignalScalarFieldEnum[] |
| } |
|
|
| |
| |
| |
| export type AISignalCreateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = { |
| |
| |
| |
| select?: AISignalSelect<ExtArgs> | null |
| |
| |
| |
| omit?: AISignalOmit<ExtArgs> | null |
| |
| |
| |
| include?: AISignalInclude<ExtArgs> | null |
| |
| |
| |
| data: XOR<AISignalCreateInput, AISignalUncheckedCreateInput> |
| } |
|
|
| |
| |
| |
| export type AISignalCreateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = { |
| |
| |
| |
| data: AISignalCreateManyInput | AISignalCreateManyInput[] |
| } |
|
|
| |
| |
| |
| export type AISignalCreateManyAndReturnArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = { |
| |
| |
| |
| select?: AISignalSelectCreateManyAndReturn<ExtArgs> | null |
| |
| |
| |
| omit?: AISignalOmit<ExtArgs> | null |
| |
| |
| |
| data: AISignalCreateManyInput | AISignalCreateManyInput[] |
| |
| |
| |
| include?: AISignalIncludeCreateManyAndReturn<ExtArgs> | null |
| } |
|
|
| |
| |
| |
| export type AISignalUpdateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = { |
| |
| |
| |
| select?: AISignalSelect<ExtArgs> | null |
| |
| |
| |
| omit?: AISignalOmit<ExtArgs> | null |
| |
| |
| |
| include?: AISignalInclude<ExtArgs> | null |
| |
| |
| |
| data: XOR<AISignalUpdateInput, AISignalUncheckedUpdateInput> |
| |
| |
| |
| where: AISignalWhereUniqueInput |
| } |
|
|
| |
| |
| |
| export type AISignalUpdateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = { |
| |
| |
| |
| data: XOR<AISignalUpdateManyMutationInput, AISignalUncheckedUpdateManyInput> |
| |
| |
| |
| where?: AISignalWhereInput |
| |
| |
| |
| limit?: number |
| } |
|
|
| |
| |
| |
| export type AISignalUpdateManyAndReturnArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = { |
| |
| |
| |
| select?: AISignalSelectUpdateManyAndReturn<ExtArgs> | null |
| |
| |
| |
| omit?: AISignalOmit<ExtArgs> | null |
| |
| |
| |
| data: XOR<AISignalUpdateManyMutationInput, AISignalUncheckedUpdateManyInput> |
| |
| |
| |
| where?: AISignalWhereInput |
| |
| |
| |
| limit?: number |
| |
| |
| |
| include?: AISignalIncludeUpdateManyAndReturn<ExtArgs> | null |
| } |
|
|
| |
| |
| |
| export type AISignalUpsertArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = { |
| |
| |
| |
| select?: AISignalSelect<ExtArgs> | null |
| |
| |
| |
| omit?: AISignalOmit<ExtArgs> | null |
| |
| |
| |
| include?: AISignalInclude<ExtArgs> | null |
| |
| |
| |
| where: AISignalWhereUniqueInput |
| |
| |
| |
| create: XOR<AISignalCreateInput, AISignalUncheckedCreateInput> |
| |
| |
| |
| update: XOR<AISignalUpdateInput, AISignalUncheckedUpdateInput> |
| } |
|
|
| |
| |
| |
| export type AISignalDeleteArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = { |
| |
| |
| |
| select?: AISignalSelect<ExtArgs> | null |
| |
| |
| |
| omit?: AISignalOmit<ExtArgs> | null |
| |
| |
| |
| include?: AISignalInclude<ExtArgs> | null |
| |
| |
| |
| where: AISignalWhereUniqueInput |
| } |
|
|
| |
| |
| |
| export type AISignalDeleteManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = { |
| |
| |
| |
| where?: AISignalWhereInput |
| |
| |
| |
| limit?: number |
| } |
|
|
| |
| |
| |
| export type AISignalDefaultArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = { |
| |
| |
| |
| select?: AISignalSelect<ExtArgs> | null |
| |
| |
| |
| omit?: AISignalOmit<ExtArgs> | null |
| |
| |
| |
| include?: AISignalInclude<ExtArgs> | null |
| } |
|
|
|
|
| |
| |
| |
|
|
| export type AggregatePosition = { |
| _count: PositionCountAggregateOutputType | null |
| _avg: PositionAvgAggregateOutputType | null |
| _sum: PositionSumAggregateOutputType | null |
| _min: PositionMinAggregateOutputType | null |
| _max: PositionMaxAggregateOutputType | null |
| } |
|
|
| export type PositionAvgAggregateOutputType = { |
| id: number | null |
| userId: number | null |
| amountEur: number | null |
| entryPrice: number | null |
| currentPrice: number | null |
| pnl: number | null |
| kellyFraction: number | null |
| } |
|
|
| export type PositionSumAggregateOutputType = { |
| id: number | null |
| userId: number | null |
| amountEur: number | null |
| entryPrice: number | null |
| currentPrice: number | null |
| pnl: number | null |
| kellyFraction: number | null |
| } |
|
|
| export type PositionMinAggregateOutputType = { |
| id: number | null |
| userId: number | null |
| marketId: string | null |
| outcome: string | null |
| amountEur: number | null |
| entryPrice: number | null |
| currentPrice: number | null |
| pnl: number | null |
| kellyFraction: number | null |
| status: string | null |
| openedAt: Date | null |
| closedAt: Date | null |
| } |
|
|
| export type PositionMaxAggregateOutputType = { |
| id: number | null |
| userId: number | null |
| marketId: string | null |
| outcome: string | null |
| amountEur: number | null |
| entryPrice: number | null |
| currentPrice: number | null |
| pnl: number | null |
| kellyFraction: number | null |
| status: string | null |
| openedAt: Date | null |
| closedAt: Date | null |
| } |
|
|
| export type PositionCountAggregateOutputType = { |
| id: number |
| userId: number |
| marketId: number |
| outcome: number |
| amountEur: number |
| entryPrice: number |
| currentPrice: number |
| pnl: number |
| kellyFraction: number |
| status: number |
| openedAt: number |
| closedAt: number |
| _all: number |
| } |
|
|
|
|
| export type PositionAvgAggregateInputType = { |
| id?: true |
| userId?: true |
| amountEur?: true |
| entryPrice?: true |
| currentPrice?: true |
| pnl?: true |
| kellyFraction?: true |
| } |
|
|
| export type PositionSumAggregateInputType = { |
| id?: true |
| userId?: true |
| amountEur?: true |
| entryPrice?: true |
| currentPrice?: true |
| pnl?: true |
| kellyFraction?: true |
| } |
|
|
| export type PositionMinAggregateInputType = { |
| id?: true |
| userId?: true |
| marketId?: true |
| outcome?: true |
| amountEur?: true |
| entryPrice?: true |
| currentPrice?: true |
| pnl?: true |
| kellyFraction?: true |
| status?: true |
| openedAt?: true |
| closedAt?: true |
| } |
|
|
| export type PositionMaxAggregateInputType = { |
| id?: true |
| userId?: true |
| marketId?: true |
| outcome?: true |
| amountEur?: true |
| entryPrice?: true |
| currentPrice?: true |
| pnl?: true |
| kellyFraction?: true |
| status?: true |
| openedAt?: true |
| closedAt?: true |
| } |
|
|
| export type PositionCountAggregateInputType = { |
| id?: true |
| userId?: true |
| marketId?: true |
| outcome?: true |
| amountEur?: true |
| entryPrice?: true |
| currentPrice?: true |
| pnl?: true |
| kellyFraction?: true |
| status?: true |
| openedAt?: true |
| closedAt?: true |
| _all?: true |
| } |
|
|
| export type PositionAggregateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = { |
| |
| |
| |
| where?: PositionWhereInput |
| |
| |
| |
| |
| |
| orderBy?: PositionOrderByWithRelationInput | PositionOrderByWithRelationInput[] |
| |
| |
| |
| |
| |
| cursor?: PositionWhereUniqueInput |
| |
| |
| |
| |
| |
| take?: number |
| |
| |
| |
| |
| |
| skip?: number |
| |
| |
| |
| |
| |
| _count?: true | PositionCountAggregateInputType |
| |
| |
| |
| |
| |
| _avg?: PositionAvgAggregateInputType |
| |
| |
| |
| |
| |
| _sum?: PositionSumAggregateInputType |
| |
| |
| |
| |
| |
| _min?: PositionMinAggregateInputType |
| |
| |
| |
| |
| |
| _max?: PositionMaxAggregateInputType |
| } |
|
|
| export type GetPositionAggregateType<T extends PositionAggregateArgs> = { |
| [P in keyof T & keyof AggregatePosition]: P extends '_count' | 'count' |
| ? T[P] extends true |
| ? number |
| : GetScalarType<T[P], AggregatePosition[P]> |
| : GetScalarType<T[P], AggregatePosition[P]> |
| } |
|
|
|
|
|
|
|
|
| export type PositionGroupByArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = { |
| where?: PositionWhereInput |
| orderBy?: PositionOrderByWithAggregationInput | PositionOrderByWithAggregationInput[] |
| by: PositionScalarFieldEnum[] | PositionScalarFieldEnum |
| having?: PositionScalarWhereWithAggregatesInput |
| take?: number |
| skip?: number |
| _count?: PositionCountAggregateInputType | true |
| _avg?: PositionAvgAggregateInputType |
| _sum?: PositionSumAggregateInputType |
| _min?: PositionMinAggregateInputType |
| _max?: PositionMaxAggregateInputType |
| } |
|
|
| export type PositionGroupByOutputType = { |
| id: number |
| userId: number |
| marketId: string |
| outcome: string |
| amountEur: number |
| entryPrice: number |
| currentPrice: number | null |
| pnl: number |
| kellyFraction: number | null |
| status: string |
| openedAt: Date |
| closedAt: Date | null |
| _count: PositionCountAggregateOutputType | null |
| _avg: PositionAvgAggregateOutputType | null |
| _sum: PositionSumAggregateOutputType | null |
| _min: PositionMinAggregateOutputType | null |
| _max: PositionMaxAggregateOutputType | null |
| } |
|
|
| type GetPositionGroupByPayload<T extends PositionGroupByArgs> = Prisma.PrismaPromise< |
| Array< |
| PickEnumerable<PositionGroupByOutputType, T['by']> & |
| { |
| [P in ((keyof T) & (keyof PositionGroupByOutputType))]: P extends '_count' |
| ? T[P] extends boolean |
| ? number |
| : GetScalarType<T[P], PositionGroupByOutputType[P]> |
| : GetScalarType<T[P], PositionGroupByOutputType[P]> |
| } |
| > |
| > |
|
|
|
|
| export type PositionSelect<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{ |
| id?: boolean |
| userId?: boolean |
| marketId?: boolean |
| outcome?: boolean |
| amountEur?: boolean |
| entryPrice?: boolean |
| currentPrice?: boolean |
| pnl?: boolean |
| kellyFraction?: boolean |
| status?: boolean |
| openedAt?: boolean |
| closedAt?: boolean |
| user?: boolean | UserDefaultArgs<ExtArgs> |
| market?: boolean | MarketDefaultArgs<ExtArgs> |
| }, ExtArgs["result"]["position"]> |
|
|
| export type PositionSelectCreateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{ |
| id?: boolean |
| userId?: boolean |
| marketId?: boolean |
| outcome?: boolean |
| amountEur?: boolean |
| entryPrice?: boolean |
| currentPrice?: boolean |
| pnl?: boolean |
| kellyFraction?: boolean |
| status?: boolean |
| openedAt?: boolean |
| closedAt?: boolean |
| user?: boolean | UserDefaultArgs<ExtArgs> |
| market?: boolean | MarketDefaultArgs<ExtArgs> |
| }, ExtArgs["result"]["position"]> |
|
|
| export type PositionSelectUpdateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{ |
| id?: boolean |
| userId?: boolean |
| marketId?: boolean |
| outcome?: boolean |
| amountEur?: boolean |
| entryPrice?: boolean |
| currentPrice?: boolean |
| pnl?: boolean |
| kellyFraction?: boolean |
| status?: boolean |
| openedAt?: boolean |
| closedAt?: boolean |
| user?: boolean | UserDefaultArgs<ExtArgs> |
| market?: boolean | MarketDefaultArgs<ExtArgs> |
| }, ExtArgs["result"]["position"]> |
|
|
| export type PositionSelectScalar = { |
| id?: boolean |
| userId?: boolean |
| marketId?: boolean |
| outcome?: boolean |
| amountEur?: boolean |
| entryPrice?: boolean |
| currentPrice?: boolean |
| pnl?: boolean |
| kellyFraction?: boolean |
| status?: boolean |
| openedAt?: boolean |
| closedAt?: boolean |
| } |
|
|
| export type PositionOmit<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetOmit<"id" | "userId" | "marketId" | "outcome" | "amountEur" | "entryPrice" | "currentPrice" | "pnl" | "kellyFraction" | "status" | "openedAt" | "closedAt", ExtArgs["result"]["position"]> |
| export type PositionInclude<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = { |
| user?: boolean | UserDefaultArgs<ExtArgs> |
| market?: boolean | MarketDefaultArgs<ExtArgs> |
| } |
| export type PositionIncludeCreateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = { |
| user?: boolean | UserDefaultArgs<ExtArgs> |
| market?: boolean | MarketDefaultArgs<ExtArgs> |
| } |
| export type PositionIncludeUpdateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = { |
| user?: boolean | UserDefaultArgs<ExtArgs> |
| market?: boolean | MarketDefaultArgs<ExtArgs> |
| } |
|
|
| export type $PositionPayload<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = { |
| name: "Position" |
| objects: { |
| user: Prisma.$UserPayload<ExtArgs> |
| market: Prisma.$MarketPayload<ExtArgs> |
| } |
| scalars: $Extensions.GetPayloadResult<{ |
| id: number |
| userId: number |
| marketId: string |
| outcome: string |
| amountEur: number |
| entryPrice: number |
| currentPrice: number | null |
| pnl: number |
| kellyFraction: number | null |
| status: string |
| openedAt: Date |
| closedAt: Date | null |
| }, ExtArgs["result"]["position"]> |
| composites: {} |
| } |
|
|
| type PositionGetPayload<S extends boolean | null | undefined | PositionDefaultArgs> = $Result.GetResult<Prisma.$PositionPayload, S> |
|
|
| type PositionCountArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = |
| Omit<PositionFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & { |
| select?: PositionCountAggregateInputType | true |
| } |
|
|
| export interface PositionDelegate<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs, GlobalOmitOptions = {}> { |
| [K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['Position'], meta: { name: 'Position' } } |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| findUnique<T extends PositionFindUniqueArgs>(args: SelectSubset<T, PositionFindUniqueArgs<ExtArgs>>): Prisma__PositionClient<$Result.GetResult<Prisma.$PositionPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> |
|
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| findUniqueOrThrow<T extends PositionFindUniqueOrThrowArgs>(args: SelectSubset<T, PositionFindUniqueOrThrowArgs<ExtArgs>>): Prisma__PositionClient<$Result.GetResult<Prisma.$PositionPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> |
|
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| findFirst<T extends PositionFindFirstArgs>(args?: SelectSubset<T, PositionFindFirstArgs<ExtArgs>>): Prisma__PositionClient<$Result.GetResult<Prisma.$PositionPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> |
|
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| findFirstOrThrow<T extends PositionFindFirstOrThrowArgs>(args?: SelectSubset<T, PositionFindFirstOrThrowArgs<ExtArgs>>): Prisma__PositionClient<$Result.GetResult<Prisma.$PositionPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> |
|
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| findMany<T extends PositionFindManyArgs>(args?: SelectSubset<T, PositionFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$PositionPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>> |
|
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| create<T extends PositionCreateArgs>(args: SelectSubset<T, PositionCreateArgs<ExtArgs>>): Prisma__PositionClient<$Result.GetResult<Prisma.$PositionPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> |
|
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| createMany<T extends PositionCreateManyArgs>(args?: SelectSubset<T, PositionCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload> |
|
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| createManyAndReturn<T extends PositionCreateManyAndReturnArgs>(args?: SelectSubset<T, PositionCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$PositionPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>> |
|
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| delete<T extends PositionDeleteArgs>(args: SelectSubset<T, PositionDeleteArgs<ExtArgs>>): Prisma__PositionClient<$Result.GetResult<Prisma.$PositionPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> |
|
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| update<T extends PositionUpdateArgs>(args: SelectSubset<T, PositionUpdateArgs<ExtArgs>>): Prisma__PositionClient<$Result.GetResult<Prisma.$PositionPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> |
|
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| deleteMany<T extends PositionDeleteManyArgs>(args?: SelectSubset<T, PositionDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload> |
|
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| updateMany<T extends PositionUpdateManyArgs>(args: SelectSubset<T, PositionUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload> |
|
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| updateManyAndReturn<T extends PositionUpdateManyAndReturnArgs>(args: SelectSubset<T, PositionUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$PositionPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>> |
|
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| upsert<T extends PositionUpsertArgs>(args: SelectSubset<T, PositionUpsertArgs<ExtArgs>>): Prisma__PositionClient<$Result.GetResult<Prisma.$PositionPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> |
|
|
|
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| count<T extends PositionCountArgs>( |
| args?: Subset<T, PositionCountArgs>, |
| ): Prisma.PrismaPromise< |
| T extends $Utils.Record<'select', any> |
| ? T['select'] extends true |
| ? number |
| : GetScalarType<T['select'], PositionCountAggregateOutputType> |
| : number |
| > |
|
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| aggregate<T extends PositionAggregateArgs>(args: Subset<T, PositionAggregateArgs>): Prisma.PrismaPromise<GetPositionAggregateType<T>> |
|
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| groupBy< |
| T extends PositionGroupByArgs, |
| HasSelectOrTake extends Or< |
| Extends<'skip', Keys<T>>, |
| Extends<'take', Keys<T>> |
| >, |
| OrderByArg extends True extends HasSelectOrTake |
| ? { orderBy: PositionGroupByArgs['orderBy'] } |
| : { orderBy?: PositionGroupByArgs['orderBy'] }, |
| OrderFields extends ExcludeUnderscoreKeys<Keys<MaybeTupleToUnion<T['orderBy']>>>, |
| ByFields extends MaybeTupleToUnion<T['by']>, |
| ByValid extends Has<ByFields, OrderFields>, |
| HavingFields extends GetHavingFields<T['having']>, |
| HavingValid extends Has<ByFields, HavingFields>, |
| ByEmpty extends T['by'] extends never[] ? True : False, |
| InputErrors extends ByEmpty extends True |
| ? `Error: "by" must not be empty.` |
| : HavingValid extends 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 Keys<T> |
| ? 'orderBy' extends Keys<T> |
| ? ByValid extends 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 Keys<T> |
| ? 'orderBy' extends Keys<T> |
| ? ByValid extends 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 True |
| ? {} |
| : { |
| [P in OrderFields]: P extends ByFields |
| ? never |
| : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` |
| }[OrderFields] |
| >(args: SubsetIntersection<T, PositionGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetPositionGroupByPayload<T> : Prisma.PrismaPromise<InputErrors> |
| |
| |
| |
| readonly fields: PositionFieldRefs; |
| } |
|
|
| |
| |
| |
| |
| |
| |
| export interface Prisma__PositionClient<T, Null = never, ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> { |
| readonly [Symbol.toStringTag]: "PrismaPromise" |
| user<T extends UserDefaultArgs<ExtArgs> = {}>(args?: Subset<T, UserDefaultArgs<ExtArgs>>): Prisma__UserClient<$Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions> |
| market<T extends MarketDefaultArgs<ExtArgs> = {}>(args?: Subset<T, MarketDefaultArgs<ExtArgs>>): Prisma__MarketClient<$Result.GetResult<Prisma.$MarketPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions> |
| |
| |
| |
| |
| |
| |
| then<TResult1 = T, TResult2 = never>(onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined | null): $Utils.JsPromise<TResult1 | TResult2> |
| |
| |
| |
| |
| |
| catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): $Utils.JsPromise<T | TResult> |
| |
| |
| |
| |
| |
| |
| finally(onfinally?: (() => void) | undefined | null): $Utils.JsPromise<T> |
| } |
|
|
|
|
|
|
|
|
| |
| |
| |
| interface PositionFieldRefs { |
| readonly id: FieldRef<"Position", 'Int'> |
| readonly userId: FieldRef<"Position", 'Int'> |
| readonly marketId: FieldRef<"Position", 'String'> |
| readonly outcome: FieldRef<"Position", 'String'> |
| readonly amountEur: FieldRef<"Position", 'Float'> |
| readonly entryPrice: FieldRef<"Position", 'Float'> |
| readonly currentPrice: FieldRef<"Position", 'Float'> |
| readonly pnl: FieldRef<"Position", 'Float'> |
| readonly kellyFraction: FieldRef<"Position", 'Float'> |
| readonly status: FieldRef<"Position", 'String'> |
| readonly openedAt: FieldRef<"Position", 'DateTime'> |
| readonly closedAt: FieldRef<"Position", 'DateTime'> |
| } |
| |
|
|
| |
| |
| |
| |
| export type PositionFindUniqueArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = { |
| |
| |
| |
| select?: PositionSelect<ExtArgs> | null |
| |
| |
| |
| omit?: PositionOmit<ExtArgs> | null |
| |
| |
| |
| include?: PositionInclude<ExtArgs> | null |
| |
| |
| |
| where: PositionWhereUniqueInput |
| } |
|
|
| |
| |
| |
| export type PositionFindUniqueOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = { |
| |
| |
| |
| select?: PositionSelect<ExtArgs> | null |
| |
| |
| |
| omit?: PositionOmit<ExtArgs> | null |
| |
| |
| |
| include?: PositionInclude<ExtArgs> | null |
| |
| |
| |
| where: PositionWhereUniqueInput |
| } |
|
|
| |
| |
| |
| export type PositionFindFirstArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = { |
| |
| |
| |
| select?: PositionSelect<ExtArgs> | null |
| |
| |
| |
| omit?: PositionOmit<ExtArgs> | null |
| |
| |
| |
| include?: PositionInclude<ExtArgs> | null |
| |
| |
| |
| where?: PositionWhereInput |
| |
| |
| |
| |
| |
| orderBy?: PositionOrderByWithRelationInput | PositionOrderByWithRelationInput[] |
| |
| |
| |
| |
| |
| cursor?: PositionWhereUniqueInput |
| |
| |
| |
| |
| |
| take?: number |
| |
| |
| |
| |
| |
| skip?: number |
| |
| |
| |
| |
| |
| distinct?: PositionScalarFieldEnum | PositionScalarFieldEnum[] |
| } |
|
|
| |
| |
| |
| export type PositionFindFirstOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = { |
| |
| |
| |
| select?: PositionSelect<ExtArgs> | null |
| |
| |
| |
| omit?: PositionOmit<ExtArgs> | null |
| |
| |
| |
| include?: PositionInclude<ExtArgs> | null |
| |
| |
| |
| where?: PositionWhereInput |
| |
| |
| |
| |
| |
| orderBy?: PositionOrderByWithRelationInput | PositionOrderByWithRelationInput[] |
| |
| |
| |
| |
| |
| cursor?: PositionWhereUniqueInput |
| |
| |
| |
| |
| |
| take?: number |
| |
| |
| |
| |
| |
| skip?: number |
| |
| |
| |
| |
| |
| distinct?: PositionScalarFieldEnum | PositionScalarFieldEnum[] |
| } |
|
|
| |
| |
| |
| export type PositionFindManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = { |
| |
| |
| |
| select?: PositionSelect<ExtArgs> | null |
| |
| |
| |
| omit?: PositionOmit<ExtArgs> | null |
| |
| |
| |
| include?: PositionInclude<ExtArgs> | null |
| |
| |
| |
| where?: PositionWhereInput |
| |
| |
| |
| |
| |
| orderBy?: PositionOrderByWithRelationInput | PositionOrderByWithRelationInput[] |
| |
| |
| |
| |
| |
| cursor?: PositionWhereUniqueInput |
| |
| |
| |
| |
| |
| take?: number |
| |
| |
| |
| |
| |
| skip?: number |
| distinct?: PositionScalarFieldEnum | PositionScalarFieldEnum[] |
| } |
|
|
| |
| |
| |
| export type PositionCreateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = { |
| |
| |
| |
| select?: PositionSelect<ExtArgs> | null |
| |
| |
| |
| omit?: PositionOmit<ExtArgs> | null |
| |
| |
| |
| include?: PositionInclude<ExtArgs> | null |
| |
| |
| |
| data: XOR<PositionCreateInput, PositionUncheckedCreateInput> |
| } |
|
|
| |
| |
| |
| export type PositionCreateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = { |
| |
| |
| |
| data: PositionCreateManyInput | PositionCreateManyInput[] |
| } |
|
|
| |
| |
| |
| export type PositionCreateManyAndReturnArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = { |
| |
| |
| |
| select?: PositionSelectCreateManyAndReturn<ExtArgs> | null |
| |
| |
| |
| omit?: PositionOmit<ExtArgs> | null |
| |
| |
| |
| data: PositionCreateManyInput | PositionCreateManyInput[] |
| |
| |
| |
| include?: PositionIncludeCreateManyAndReturn<ExtArgs> | null |
| } |
|
|
| |
| |
| |
| export type PositionUpdateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = { |
| |
| |
| |
| select?: PositionSelect<ExtArgs> | null |
| |
| |
| |
| omit?: PositionOmit<ExtArgs> | null |
| |
| |
| |
| include?: PositionInclude<ExtArgs> | null |
| |
| |
| |
| data: XOR<PositionUpdateInput, PositionUncheckedUpdateInput> |
| |
| |
| |
| where: PositionWhereUniqueInput |
| } |
|
|
| |
| |
| |
| export type PositionUpdateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = { |
| |
| |
| |
| data: XOR<PositionUpdateManyMutationInput, PositionUncheckedUpdateManyInput> |
| |
| |
| |
| where?: PositionWhereInput |
| |
| |
| |
| limit?: number |
| } |
|
|
| |
| |
| |
| export type PositionUpdateManyAndReturnArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = { |
| |
| |
| |
| select?: PositionSelectUpdateManyAndReturn<ExtArgs> | null |
| |
| |
| |
| omit?: PositionOmit<ExtArgs> | null |
| |
| |
| |
| data: XOR<PositionUpdateManyMutationInput, PositionUncheckedUpdateManyInput> |
| |
| |
| |
| where?: PositionWhereInput |
| |
| |
| |
| limit?: number |
| |
| |
| |
| include?: PositionIncludeUpdateManyAndReturn<ExtArgs> | null |
| } |
|
|
| |
| |
| |
| export type PositionUpsertArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = { |
| |
| |
| |
| select?: PositionSelect<ExtArgs> | null |
| |
| |
| |
| omit?: PositionOmit<ExtArgs> | null |
| |
| |
| |
| include?: PositionInclude<ExtArgs> | null |
| |
| |
| |
| where: PositionWhereUniqueInput |
| |
| |
| |
| create: XOR<PositionCreateInput, PositionUncheckedCreateInput> |
| |
| |
| |
| update: XOR<PositionUpdateInput, PositionUncheckedUpdateInput> |
| } |
|
|
| |
| |
| |
| export type PositionDeleteArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = { |
| |
| |
| |
| select?: PositionSelect<ExtArgs> | null |
| |
| |
| |
| omit?: PositionOmit<ExtArgs> | null |
| |
| |
| |
| include?: PositionInclude<ExtArgs> | null |
| |
| |
| |
| where: PositionWhereUniqueInput |
| } |
|
|
| |
| |
| |
| export type PositionDeleteManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = { |
| |
| |
| |
| where?: PositionWhereInput |
| |
| |
| |
| limit?: number |
| } |
|
|
| |
| |
| |
| export type PositionDefaultArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = { |
| |
| |
| |
| select?: PositionSelect<ExtArgs> | null |
| |
| |
| |
| omit?: PositionOmit<ExtArgs> | null |
| |
| |
| |
| include?: PositionInclude<ExtArgs> | null |
| } |
|
|
|
|
| |
| |
| |
|
|
| export type AggregateWatchlist = { |
| _count: WatchlistCountAggregateOutputType | null |
| _avg: WatchlistAvgAggregateOutputType | null |
| _sum: WatchlistSumAggregateOutputType | null |
| _min: WatchlistMinAggregateOutputType | null |
| _max: WatchlistMaxAggregateOutputType | null |
| } |
|
|
| export type WatchlistAvgAggregateOutputType = { |
| id: number | null |
| userId: number | null |
| alertThreshold: number | null |
| } |
|
|
| export type WatchlistSumAggregateOutputType = { |
| id: number | null |
| userId: number | null |
| alertThreshold: number | null |
| } |
|
|
| export type WatchlistMinAggregateOutputType = { |
| id: number | null |
| userId: number | null |
| marketId: string | null |
| alertThreshold: number | null |
| createdAt: Date | null |
| } |
|
|
| export type WatchlistMaxAggregateOutputType = { |
| id: number | null |
| userId: number | null |
| marketId: string | null |
| alertThreshold: number | null |
| createdAt: Date | null |
| } |
|
|
| export type WatchlistCountAggregateOutputType = { |
| id: number |
| userId: number |
| marketId: number |
| alertThreshold: number |
| createdAt: number |
| _all: number |
| } |
|
|
|
|
| export type WatchlistAvgAggregateInputType = { |
| id?: true |
| userId?: true |
| alertThreshold?: true |
| } |
|
|
| export type WatchlistSumAggregateInputType = { |
| id?: true |
| userId?: true |
| alertThreshold?: true |
| } |
|
|
| export type WatchlistMinAggregateInputType = { |
| id?: true |
| userId?: true |
| marketId?: true |
| alertThreshold?: true |
| createdAt?: true |
| } |
|
|
| export type WatchlistMaxAggregateInputType = { |
| id?: true |
| userId?: true |
| marketId?: true |
| alertThreshold?: true |
| createdAt?: true |
| } |
|
|
| export type WatchlistCountAggregateInputType = { |
| id?: true |
| userId?: true |
| marketId?: true |
| alertThreshold?: true |
| createdAt?: true |
| _all?: true |
| } |
|
|
| export type WatchlistAggregateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = { |
| |
| |
| |
| where?: WatchlistWhereInput |
| |
| |
| |
| |
| |
| orderBy?: WatchlistOrderByWithRelationInput | WatchlistOrderByWithRelationInput[] |
| |
| |
| |
| |
| |
| cursor?: WatchlistWhereUniqueInput |
| |
| |
| |
| |
| |
| take?: number |
| |
| |
| |
| |
| |
| skip?: number |
| |
| |
| |
| |
| |
| _count?: true | WatchlistCountAggregateInputType |
| |
| |
| |
| |
| |
| _avg?: WatchlistAvgAggregateInputType |
| |
| |
| |
| |
| |
| _sum?: WatchlistSumAggregateInputType |
| |
| |
| |
| |
| |
| _min?: WatchlistMinAggregateInputType |
| |
| |
| |
| |
| |
| _max?: WatchlistMaxAggregateInputType |
| } |
|
|
| export type GetWatchlistAggregateType<T extends WatchlistAggregateArgs> = { |
| [P in keyof T & keyof AggregateWatchlist]: P extends '_count' | 'count' |
| ? T[P] extends true |
| ? number |
| : GetScalarType<T[P], AggregateWatchlist[P]> |
| : GetScalarType<T[P], AggregateWatchlist[P]> |
| } |
|
|
|
|
|
|
|
|
| export type WatchlistGroupByArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = { |
| where?: WatchlistWhereInput |
| orderBy?: WatchlistOrderByWithAggregationInput | WatchlistOrderByWithAggregationInput[] |
| by: WatchlistScalarFieldEnum[] | WatchlistScalarFieldEnum |
| having?: WatchlistScalarWhereWithAggregatesInput |
| take?: number |
| skip?: number |
| _count?: WatchlistCountAggregateInputType | true |
| _avg?: WatchlistAvgAggregateInputType |
| _sum?: WatchlistSumAggregateInputType |
| _min?: WatchlistMinAggregateInputType |
| _max?: WatchlistMaxAggregateInputType |
| } |
|
|
| export type WatchlistGroupByOutputType = { |
| id: number |
| userId: number |
| marketId: string |
| alertThreshold: number | null |
| createdAt: Date |
| _count: WatchlistCountAggregateOutputType | null |
| _avg: WatchlistAvgAggregateOutputType | null |
| _sum: WatchlistSumAggregateOutputType | null |
| _min: WatchlistMinAggregateOutputType | null |
| _max: WatchlistMaxAggregateOutputType | null |
| } |
|
|
| type GetWatchlistGroupByPayload<T extends WatchlistGroupByArgs> = Prisma.PrismaPromise< |
| Array< |
| PickEnumerable<WatchlistGroupByOutputType, T['by']> & |
| { |
| [P in ((keyof T) & (keyof WatchlistGroupByOutputType))]: P extends '_count' |
| ? T[P] extends boolean |
| ? number |
| : GetScalarType<T[P], WatchlistGroupByOutputType[P]> |
| : GetScalarType<T[P], WatchlistGroupByOutputType[P]> |
| } |
| > |
| > |
|
|
|
|
| export type WatchlistSelect<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{ |
| id?: boolean |
| userId?: boolean |
| marketId?: boolean |
| alertThreshold?: boolean |
| createdAt?: boolean |
| user?: boolean | UserDefaultArgs<ExtArgs> |
| market?: boolean | MarketDefaultArgs<ExtArgs> |
| }, ExtArgs["result"]["watchlist"]> |
|
|
| export type WatchlistSelectCreateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{ |
| id?: boolean |
| userId?: boolean |
| marketId?: boolean |
| alertThreshold?: boolean |
| createdAt?: boolean |
| user?: boolean | UserDefaultArgs<ExtArgs> |
| market?: boolean | MarketDefaultArgs<ExtArgs> |
| }, ExtArgs["result"]["watchlist"]> |
|
|
| export type WatchlistSelectUpdateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{ |
| id?: boolean |
| userId?: boolean |
| marketId?: boolean |
| alertThreshold?: boolean |
| createdAt?: boolean |
| user?: boolean | UserDefaultArgs<ExtArgs> |
| market?: boolean | MarketDefaultArgs<ExtArgs> |
| }, ExtArgs["result"]["watchlist"]> |
|
|
| export type WatchlistSelectScalar = { |
| id?: boolean |
| userId?: boolean |
| marketId?: boolean |
| alertThreshold?: boolean |
| createdAt?: boolean |
| } |
|
|
| export type WatchlistOmit<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetOmit<"id" | "userId" | "marketId" | "alertThreshold" | "createdAt", ExtArgs["result"]["watchlist"]> |
| export type WatchlistInclude<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = { |
| user?: boolean | UserDefaultArgs<ExtArgs> |
| market?: boolean | MarketDefaultArgs<ExtArgs> |
| } |
| export type WatchlistIncludeCreateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = { |
| user?: boolean | UserDefaultArgs<ExtArgs> |
| market?: boolean | MarketDefaultArgs<ExtArgs> |
| } |
| export type WatchlistIncludeUpdateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = { |
| user?: boolean | UserDefaultArgs<ExtArgs> |
| market?: boolean | MarketDefaultArgs<ExtArgs> |
| } |
|
|
| export type $WatchlistPayload<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = { |
| name: "Watchlist" |
| objects: { |
| user: Prisma.$UserPayload<ExtArgs> |
| market: Prisma.$MarketPayload<ExtArgs> |
| } |
| scalars: $Extensions.GetPayloadResult<{ |
| id: number |
| userId: number |
| marketId: string |
| alertThreshold: number | null |
| createdAt: Date |
| }, ExtArgs["result"]["watchlist"]> |
| composites: {} |
| } |
|
|
| type WatchlistGetPayload<S extends boolean | null | undefined | WatchlistDefaultArgs> = $Result.GetResult<Prisma.$WatchlistPayload, S> |
|
|
| type WatchlistCountArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = |
| Omit<WatchlistFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & { |
| select?: WatchlistCountAggregateInputType | true |
| } |
|
|
| export interface WatchlistDelegate<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs, GlobalOmitOptions = {}> { |
| [K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['Watchlist'], meta: { name: 'Watchlist' } } |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| findUnique<T extends WatchlistFindUniqueArgs>(args: SelectSubset<T, WatchlistFindUniqueArgs<ExtArgs>>): Prisma__WatchlistClient<$Result.GetResult<Prisma.$WatchlistPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> |
|
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| findUniqueOrThrow<T extends WatchlistFindUniqueOrThrowArgs>(args: SelectSubset<T, WatchlistFindUniqueOrThrowArgs<ExtArgs>>): Prisma__WatchlistClient<$Result.GetResult<Prisma.$WatchlistPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> |
|
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| findFirst<T extends WatchlistFindFirstArgs>(args?: SelectSubset<T, WatchlistFindFirstArgs<ExtArgs>>): Prisma__WatchlistClient<$Result.GetResult<Prisma.$WatchlistPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> |
|
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| findFirstOrThrow<T extends WatchlistFindFirstOrThrowArgs>(args?: SelectSubset<T, WatchlistFindFirstOrThrowArgs<ExtArgs>>): Prisma__WatchlistClient<$Result.GetResult<Prisma.$WatchlistPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> |
|
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| findMany<T extends WatchlistFindManyArgs>(args?: SelectSubset<T, WatchlistFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$WatchlistPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>> |
|
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| create<T extends WatchlistCreateArgs>(args: SelectSubset<T, WatchlistCreateArgs<ExtArgs>>): Prisma__WatchlistClient<$Result.GetResult<Prisma.$WatchlistPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> |
|
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| createMany<T extends WatchlistCreateManyArgs>(args?: SelectSubset<T, WatchlistCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload> |
|
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| createManyAndReturn<T extends WatchlistCreateManyAndReturnArgs>(args?: SelectSubset<T, WatchlistCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$WatchlistPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>> |
|
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| delete<T extends WatchlistDeleteArgs>(args: SelectSubset<T, WatchlistDeleteArgs<ExtArgs>>): Prisma__WatchlistClient<$Result.GetResult<Prisma.$WatchlistPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> |
|
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| update<T extends WatchlistUpdateArgs>(args: SelectSubset<T, WatchlistUpdateArgs<ExtArgs>>): Prisma__WatchlistClient<$Result.GetResult<Prisma.$WatchlistPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> |
|
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| deleteMany<T extends WatchlistDeleteManyArgs>(args?: SelectSubset<T, WatchlistDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload> |
|
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| updateMany<T extends WatchlistUpdateManyArgs>(args: SelectSubset<T, WatchlistUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload> |
|
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| updateManyAndReturn<T extends WatchlistUpdateManyAndReturnArgs>(args: SelectSubset<T, WatchlistUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$WatchlistPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>> |
|
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| upsert<T extends WatchlistUpsertArgs>(args: SelectSubset<T, WatchlistUpsertArgs<ExtArgs>>): Prisma__WatchlistClient<$Result.GetResult<Prisma.$WatchlistPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> |
|
|
|
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| count<T extends WatchlistCountArgs>( |
| args?: Subset<T, WatchlistCountArgs>, |
| ): Prisma.PrismaPromise< |
| T extends $Utils.Record<'select', any> |
| ? T['select'] extends true |
| ? number |
| : GetScalarType<T['select'], WatchlistCountAggregateOutputType> |
| : number |
| > |
|
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| aggregate<T extends WatchlistAggregateArgs>(args: Subset<T, WatchlistAggregateArgs>): Prisma.PrismaPromise<GetWatchlistAggregateType<T>> |
|
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| groupBy< |
| T extends WatchlistGroupByArgs, |
| HasSelectOrTake extends Or< |
| Extends<'skip', Keys<T>>, |
| Extends<'take', Keys<T>> |
| >, |
| OrderByArg extends True extends HasSelectOrTake |
| ? { orderBy: WatchlistGroupByArgs['orderBy'] } |
| : { orderBy?: WatchlistGroupByArgs['orderBy'] }, |
| OrderFields extends ExcludeUnderscoreKeys<Keys<MaybeTupleToUnion<T['orderBy']>>>, |
| ByFields extends MaybeTupleToUnion<T['by']>, |
| ByValid extends Has<ByFields, OrderFields>, |
| HavingFields extends GetHavingFields<T['having']>, |
| HavingValid extends Has<ByFields, HavingFields>, |
| ByEmpty extends T['by'] extends never[] ? True : False, |
| InputErrors extends ByEmpty extends True |
| ? `Error: "by" must not be empty.` |
| : HavingValid extends 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 Keys<T> |
| ? 'orderBy' extends Keys<T> |
| ? ByValid extends 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 Keys<T> |
| ? 'orderBy' extends Keys<T> |
| ? ByValid extends 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 True |
| ? {} |
| : { |
| [P in OrderFields]: P extends ByFields |
| ? never |
| : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` |
| }[OrderFields] |
| >(args: SubsetIntersection<T, WatchlistGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetWatchlistGroupByPayload<T> : Prisma.PrismaPromise<InputErrors> |
| |
| |
| |
| readonly fields: WatchlistFieldRefs; |
| } |
|
|
| |
| |
| |
| |
| |
| |
| export interface Prisma__WatchlistClient<T, Null = never, ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> { |
| readonly [Symbol.toStringTag]: "PrismaPromise" |
| user<T extends UserDefaultArgs<ExtArgs> = {}>(args?: Subset<T, UserDefaultArgs<ExtArgs>>): Prisma__UserClient<$Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions> |
| market<T extends MarketDefaultArgs<ExtArgs> = {}>(args?: Subset<T, MarketDefaultArgs<ExtArgs>>): Prisma__MarketClient<$Result.GetResult<Prisma.$MarketPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions> |
| |
| |
| |
| |
| |
| |
| then<TResult1 = T, TResult2 = never>(onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined | null): $Utils.JsPromise<TResult1 | TResult2> |
| |
| |
| |
| |
| |
| catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): $Utils.JsPromise<T | TResult> |
| |
| |
| |
| |
| |
| |
| finally(onfinally?: (() => void) | undefined | null): $Utils.JsPromise<T> |
| } |
|
|
|
|
|
|
|
|
| |
| |
| |
| interface WatchlistFieldRefs { |
| readonly id: FieldRef<"Watchlist", 'Int'> |
| readonly userId: FieldRef<"Watchlist", 'Int'> |
| readonly marketId: FieldRef<"Watchlist", 'String'> |
| readonly alertThreshold: FieldRef<"Watchlist", 'Float'> |
| readonly createdAt: FieldRef<"Watchlist", 'DateTime'> |
| } |
| |
|
|
| |
| |
| |
| |
| export type WatchlistFindUniqueArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = { |
| |
| |
| |
| select?: WatchlistSelect<ExtArgs> | null |
| |
| |
| |
| omit?: WatchlistOmit<ExtArgs> | null |
| |
| |
| |
| include?: WatchlistInclude<ExtArgs> | null |
| |
| |
| |
| where: WatchlistWhereUniqueInput |
| } |
|
|
| |
| |
| |
| export type WatchlistFindUniqueOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = { |
| |
| |
| |
| select?: WatchlistSelect<ExtArgs> | null |
| |
| |
| |
| omit?: WatchlistOmit<ExtArgs> | null |
| |
| |
| |
| include?: WatchlistInclude<ExtArgs> | null |
| |
| |
| |
| where: WatchlistWhereUniqueInput |
| } |
|
|
| |
| |
| |
| export type WatchlistFindFirstArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = { |
| |
| |
| |
| select?: WatchlistSelect<ExtArgs> | null |
| |
| |
| |
| omit?: WatchlistOmit<ExtArgs> | null |
| |
| |
| |
| include?: WatchlistInclude<ExtArgs> | null |
| |
| |
| |
| where?: WatchlistWhereInput |
| |
| |
| |
| |
| |
| orderBy?: WatchlistOrderByWithRelationInput | WatchlistOrderByWithRelationInput[] |
| |
| |
| |
| |
| |
| cursor?: WatchlistWhereUniqueInput |
| |
| |
| |
| |
| |
| take?: number |
| |
| |
| |
| |
| |
| skip?: number |
| |
| |
| |
| |
| |
| distinct?: WatchlistScalarFieldEnum | WatchlistScalarFieldEnum[] |
| } |
|
|
| |
| |
| |
| export type WatchlistFindFirstOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = { |
| |
| |
| |
| select?: WatchlistSelect<ExtArgs> | null |
| |
| |
| |
| omit?: WatchlistOmit<ExtArgs> | null |
| |
| |
| |
| include?: WatchlistInclude<ExtArgs> | null |
| |
| |
| |
| where?: WatchlistWhereInput |
| |
| |
| |
| |
| |
| orderBy?: WatchlistOrderByWithRelationInput | WatchlistOrderByWithRelationInput[] |
| |
| |
| |
| |
| |
| cursor?: WatchlistWhereUniqueInput |
| |
| |
| |
| |
| |
| take?: number |
| |
| |
| |
| |
| |
| skip?: number |
| |
| |
| |
| |
| |
| distinct?: WatchlistScalarFieldEnum | WatchlistScalarFieldEnum[] |
| } |
|
|
| |
| |
| |
| export type WatchlistFindManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = { |
| |
| |
| |
| select?: WatchlistSelect<ExtArgs> | null |
| |
| |
| |
| omit?: WatchlistOmit<ExtArgs> | null |
| |
| |
| |
| include?: WatchlistInclude<ExtArgs> | null |
| |
| |
| |
| where?: WatchlistWhereInput |
| |
| |
| |
| |
| |
| orderBy?: WatchlistOrderByWithRelationInput | WatchlistOrderByWithRelationInput[] |
| |
| |
| |
| |
| |
| cursor?: WatchlistWhereUniqueInput |
| |
| |
| |
| |
| |
| take?: number |
| |
| |
| |
| |
| |
| skip?: number |
| distinct?: WatchlistScalarFieldEnum | WatchlistScalarFieldEnum[] |
| } |
|
|
| |
| |
| |
| export type WatchlistCreateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = { |
| |
| |
| |
| select?: WatchlistSelect<ExtArgs> | null |
| |
| |
| |
| omit?: WatchlistOmit<ExtArgs> | null |
| |
| |
| |
| include?: WatchlistInclude<ExtArgs> | null |
| |
| |
| |
| data: XOR<WatchlistCreateInput, WatchlistUncheckedCreateInput> |
| } |
|
|
| |
| |
| |
| export type WatchlistCreateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = { |
| |
| |
| |
| data: WatchlistCreateManyInput | WatchlistCreateManyInput[] |
| } |
|
|
| |
| |
| |
| export type WatchlistCreateManyAndReturnArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = { |
| |
| |
| |
| select?: WatchlistSelectCreateManyAndReturn<ExtArgs> | null |
| |
| |
| |
| omit?: WatchlistOmit<ExtArgs> | null |
| |
| |
| |
| data: WatchlistCreateManyInput | WatchlistCreateManyInput[] |
| |
| |
| |
| include?: WatchlistIncludeCreateManyAndReturn<ExtArgs> | null |
| } |
|
|
| |
| |
| |
| export type WatchlistUpdateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = { |
| |
| |
| |
| select?: WatchlistSelect<ExtArgs> | null |
| |
| |
| |
| omit?: WatchlistOmit<ExtArgs> | null |
| |
| |
| |
| include?: WatchlistInclude<ExtArgs> | null |
| |
| |
| |
| data: XOR<WatchlistUpdateInput, WatchlistUncheckedUpdateInput> |
| |
| |
| |
| where: WatchlistWhereUniqueInput |
| } |
|
|
| |
| |
| |
| export type WatchlistUpdateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = { |
| |
| |
| |
| data: XOR<WatchlistUpdateManyMutationInput, WatchlistUncheckedUpdateManyInput> |
| |
| |
| |
| where?: WatchlistWhereInput |
| |
| |
| |
| limit?: number |
| } |
|
|
| |
| |
| |
| export type WatchlistUpdateManyAndReturnArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = { |
| |
| |
| |
| select?: WatchlistSelectUpdateManyAndReturn<ExtArgs> | null |
| |
| |
| |
| omit?: WatchlistOmit<ExtArgs> | null |
| |
| |
| |
| data: XOR<WatchlistUpdateManyMutationInput, WatchlistUncheckedUpdateManyInput> |
| |
| |
| |
| where?: WatchlistWhereInput |
| |
| |
| |
| limit?: number |
| |
| |
| |
| include?: WatchlistIncludeUpdateManyAndReturn<ExtArgs> | null |
| } |
|
|
| |
| |
| |
| export type WatchlistUpsertArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = { |
| |
| |
| |
| select?: WatchlistSelect<ExtArgs> | null |
| |
| |
| |
| omit?: WatchlistOmit<ExtArgs> | null |
| |
| |
| |
| include?: WatchlistInclude<ExtArgs> | null |
| |
| |
| |
| where: WatchlistWhereUniqueInput |
| |
| |
| |
| create: XOR<WatchlistCreateInput, WatchlistUncheckedCreateInput> |
| |
| |
| |
| update: XOR<WatchlistUpdateInput, WatchlistUncheckedUpdateInput> |
| } |
|
|
| |
| |
| |
| export type WatchlistDeleteArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = { |
| |
| |
| |
| select?: WatchlistSelect<ExtArgs> | null |
| |
| |
| |
| omit?: WatchlistOmit<ExtArgs> | null |
| |
| |
| |
| include?: WatchlistInclude<ExtArgs> | null |
| |
| |
| |
| where: WatchlistWhereUniqueInput |
| } |
|
|
| |
| |
| |
| export type WatchlistDeleteManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = { |
| |
| |
| |
| where?: WatchlistWhereInput |
| |
| |
| |
| limit?: number |
| } |
|
|
| |
| |
| |
| export type WatchlistDefaultArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = { |
| |
| |
| |
| select?: WatchlistSelect<ExtArgs> | null |
| |
| |
| |
| omit?: WatchlistOmit<ExtArgs> | null |
| |
| |
| |
| include?: WatchlistInclude<ExtArgs> | null |
| } |
|
|
|
|
| |
| |
| |
|
|
| export type AggregateAlert = { |
| _count: AlertCountAggregateOutputType | null |
| _avg: AlertAvgAggregateOutputType | null |
| _sum: AlertSumAggregateOutputType | null |
| _min: AlertMinAggregateOutputType | null |
| _max: AlertMaxAggregateOutputType | null |
| } |
|
|
| export type AlertAvgAggregateOutputType = { |
| id: number | null |
| userId: number | null |
| } |
|
|
| export type AlertSumAggregateOutputType = { |
| id: number | null |
| userId: number | null |
| } |
|
|
| export type AlertMinAggregateOutputType = { |
| id: number | null |
| userId: number | null |
| marketId: string | null |
| type: string | null |
| message: string | null |
| sentAt: Date | null |
| } |
|
|
| export type AlertMaxAggregateOutputType = { |
| id: number | null |
| userId: number | null |
| marketId: string | null |
| type: string | null |
| message: string | null |
| sentAt: Date | null |
| } |
|
|
| export type AlertCountAggregateOutputType = { |
| id: number |
| userId: number |
| marketId: number |
| type: number |
| message: number |
| sentAt: number |
| _all: number |
| } |
|
|
|
|
| export type AlertAvgAggregateInputType = { |
| id?: true |
| userId?: true |
| } |
|
|
| export type AlertSumAggregateInputType = { |
| id?: true |
| userId?: true |
| } |
|
|
| export type AlertMinAggregateInputType = { |
| id?: true |
| userId?: true |
| marketId?: true |
| type?: true |
| message?: true |
| sentAt?: true |
| } |
|
|
| export type AlertMaxAggregateInputType = { |
| id?: true |
| userId?: true |
| marketId?: true |
| type?: true |
| message?: true |
| sentAt?: true |
| } |
|
|
| export type AlertCountAggregateInputType = { |
| id?: true |
| userId?: true |
| marketId?: true |
| type?: true |
| message?: true |
| sentAt?: true |
| _all?: true |
| } |
|
|
| export type AlertAggregateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = { |
| |
| |
| |
| where?: AlertWhereInput |
| |
| |
| |
| |
| |
| orderBy?: AlertOrderByWithRelationInput | AlertOrderByWithRelationInput[] |
| |
| |
| |
| |
| |
| cursor?: AlertWhereUniqueInput |
| |
| |
| |
| |
| |
| take?: number |
| |
| |
| |
| |
| |
| skip?: number |
| |
| |
| |
| |
| |
| _count?: true | AlertCountAggregateInputType |
| |
| |
| |
| |
| |
| _avg?: AlertAvgAggregateInputType |
| |
| |
| |
| |
| |
| _sum?: AlertSumAggregateInputType |
| |
| |
| |
| |
| |
| _min?: AlertMinAggregateInputType |
| |
| |
| |
| |
| |
| _max?: AlertMaxAggregateInputType |
| } |
|
|
| export type GetAlertAggregateType<T extends AlertAggregateArgs> = { |
| [P in keyof T & keyof AggregateAlert]: P extends '_count' | 'count' |
| ? T[P] extends true |
| ? number |
| : GetScalarType<T[P], AggregateAlert[P]> |
| : GetScalarType<T[P], AggregateAlert[P]> |
| } |
|
|
|
|
|
|
|
|
| export type AlertGroupByArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = { |
| where?: AlertWhereInput |
| orderBy?: AlertOrderByWithAggregationInput | AlertOrderByWithAggregationInput[] |
| by: AlertScalarFieldEnum[] | AlertScalarFieldEnum |
| having?: AlertScalarWhereWithAggregatesInput |
| take?: number |
| skip?: number |
| _count?: AlertCountAggregateInputType | true |
| _avg?: AlertAvgAggregateInputType |
| _sum?: AlertSumAggregateInputType |
| _min?: AlertMinAggregateInputType |
| _max?: AlertMaxAggregateInputType |
| } |
|
|
| export type AlertGroupByOutputType = { |
| id: number |
| userId: number |
| marketId: string |
| type: string |
| message: string |
| sentAt: Date |
| _count: AlertCountAggregateOutputType | null |
| _avg: AlertAvgAggregateOutputType | null |
| _sum: AlertSumAggregateOutputType | null |
| _min: AlertMinAggregateOutputType | null |
| _max: AlertMaxAggregateOutputType | null |
| } |
|
|
| type GetAlertGroupByPayload<T extends AlertGroupByArgs> = Prisma.PrismaPromise< |
| Array< |
| PickEnumerable<AlertGroupByOutputType, T['by']> & |
| { |
| [P in ((keyof T) & (keyof AlertGroupByOutputType))]: P extends '_count' |
| ? T[P] extends boolean |
| ? number |
| : GetScalarType<T[P], AlertGroupByOutputType[P]> |
| : GetScalarType<T[P], AlertGroupByOutputType[P]> |
| } |
| > |
| > |
|
|
|
|
| export type AlertSelect<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{ |
| id?: boolean |
| userId?: boolean |
| marketId?: boolean |
| type?: boolean |
| message?: boolean |
| sentAt?: boolean |
| user?: boolean | UserDefaultArgs<ExtArgs> |
| market?: boolean | MarketDefaultArgs<ExtArgs> |
| }, ExtArgs["result"]["alert"]> |
|
|
| export type AlertSelectCreateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{ |
| id?: boolean |
| userId?: boolean |
| marketId?: boolean |
| type?: boolean |
| message?: boolean |
| sentAt?: boolean |
| user?: boolean | UserDefaultArgs<ExtArgs> |
| market?: boolean | MarketDefaultArgs<ExtArgs> |
| }, ExtArgs["result"]["alert"]> |
|
|
| export type AlertSelectUpdateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{ |
| id?: boolean |
| userId?: boolean |
| marketId?: boolean |
| type?: boolean |
| message?: boolean |
| sentAt?: boolean |
| user?: boolean | UserDefaultArgs<ExtArgs> |
| market?: boolean | MarketDefaultArgs<ExtArgs> |
| }, ExtArgs["result"]["alert"]> |
|
|
| export type AlertSelectScalar = { |
| id?: boolean |
| userId?: boolean |
| marketId?: boolean |
| type?: boolean |
| message?: boolean |
| sentAt?: boolean |
| } |
|
|
| export type AlertOmit<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetOmit<"id" | "userId" | "marketId" | "type" | "message" | "sentAt", ExtArgs["result"]["alert"]> |
| export type AlertInclude<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = { |
| user?: boolean | UserDefaultArgs<ExtArgs> |
| market?: boolean | MarketDefaultArgs<ExtArgs> |
| } |
| export type AlertIncludeCreateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = { |
| user?: boolean | UserDefaultArgs<ExtArgs> |
| market?: boolean | MarketDefaultArgs<ExtArgs> |
| } |
| export type AlertIncludeUpdateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = { |
| user?: boolean | UserDefaultArgs<ExtArgs> |
| market?: boolean | MarketDefaultArgs<ExtArgs> |
| } |
|
|
| export type $AlertPayload<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = { |
| name: "Alert" |
| objects: { |
| user: Prisma.$UserPayload<ExtArgs> |
| market: Prisma.$MarketPayload<ExtArgs> |
| } |
| scalars: $Extensions.GetPayloadResult<{ |
| id: number |
| userId: number |
| marketId: string |
| type: string |
| message: string |
| sentAt: Date |
| }, ExtArgs["result"]["alert"]> |
| composites: {} |
| } |
|
|
| type AlertGetPayload<S extends boolean | null | undefined | AlertDefaultArgs> = $Result.GetResult<Prisma.$AlertPayload, S> |
|
|
| type AlertCountArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = |
| Omit<AlertFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & { |
| select?: AlertCountAggregateInputType | true |
| } |
|
|
| export interface AlertDelegate<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs, GlobalOmitOptions = {}> { |
| [K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['Alert'], meta: { name: 'Alert' } } |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| findUnique<T extends AlertFindUniqueArgs>(args: SelectSubset<T, AlertFindUniqueArgs<ExtArgs>>): Prisma__AlertClient<$Result.GetResult<Prisma.$AlertPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> |
|
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| findUniqueOrThrow<T extends AlertFindUniqueOrThrowArgs>(args: SelectSubset<T, AlertFindUniqueOrThrowArgs<ExtArgs>>): Prisma__AlertClient<$Result.GetResult<Prisma.$AlertPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> |
|
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| findFirst<T extends AlertFindFirstArgs>(args?: SelectSubset<T, AlertFindFirstArgs<ExtArgs>>): Prisma__AlertClient<$Result.GetResult<Prisma.$AlertPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> |
|
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| findFirstOrThrow<T extends AlertFindFirstOrThrowArgs>(args?: SelectSubset<T, AlertFindFirstOrThrowArgs<ExtArgs>>): Prisma__AlertClient<$Result.GetResult<Prisma.$AlertPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> |
|
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| findMany<T extends AlertFindManyArgs>(args?: SelectSubset<T, AlertFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$AlertPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>> |
|
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| create<T extends AlertCreateArgs>(args: SelectSubset<T, AlertCreateArgs<ExtArgs>>): Prisma__AlertClient<$Result.GetResult<Prisma.$AlertPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> |
|
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| createMany<T extends AlertCreateManyArgs>(args?: SelectSubset<T, AlertCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload> |
|
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| createManyAndReturn<T extends AlertCreateManyAndReturnArgs>(args?: SelectSubset<T, AlertCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$AlertPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>> |
|
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| delete<T extends AlertDeleteArgs>(args: SelectSubset<T, AlertDeleteArgs<ExtArgs>>): Prisma__AlertClient<$Result.GetResult<Prisma.$AlertPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> |
|
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| update<T extends AlertUpdateArgs>(args: SelectSubset<T, AlertUpdateArgs<ExtArgs>>): Prisma__AlertClient<$Result.GetResult<Prisma.$AlertPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> |
|
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| deleteMany<T extends AlertDeleteManyArgs>(args?: SelectSubset<T, AlertDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload> |
|
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| updateMany<T extends AlertUpdateManyArgs>(args: SelectSubset<T, AlertUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload> |
|
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| updateManyAndReturn<T extends AlertUpdateManyAndReturnArgs>(args: SelectSubset<T, AlertUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$AlertPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>> |
|
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| upsert<T extends AlertUpsertArgs>(args: SelectSubset<T, AlertUpsertArgs<ExtArgs>>): Prisma__AlertClient<$Result.GetResult<Prisma.$AlertPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> |
|
|
|
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| count<T extends AlertCountArgs>( |
| args?: Subset<T, AlertCountArgs>, |
| ): Prisma.PrismaPromise< |
| T extends $Utils.Record<'select', any> |
| ? T['select'] extends true |
| ? number |
| : GetScalarType<T['select'], AlertCountAggregateOutputType> |
| : number |
| > |
|
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| aggregate<T extends AlertAggregateArgs>(args: Subset<T, AlertAggregateArgs>): Prisma.PrismaPromise<GetAlertAggregateType<T>> |
|
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| groupBy< |
| T extends AlertGroupByArgs, |
| HasSelectOrTake extends Or< |
| Extends<'skip', Keys<T>>, |
| Extends<'take', Keys<T>> |
| >, |
| OrderByArg extends True extends HasSelectOrTake |
| ? { orderBy: AlertGroupByArgs['orderBy'] } |
| : { orderBy?: AlertGroupByArgs['orderBy'] }, |
| OrderFields extends ExcludeUnderscoreKeys<Keys<MaybeTupleToUnion<T['orderBy']>>>, |
| ByFields extends MaybeTupleToUnion<T['by']>, |
| ByValid extends Has<ByFields, OrderFields>, |
| HavingFields extends GetHavingFields<T['having']>, |
| HavingValid extends Has<ByFields, HavingFields>, |
| ByEmpty extends T['by'] extends never[] ? True : False, |
| InputErrors extends ByEmpty extends True |
| ? `Error: "by" must not be empty.` |
| : HavingValid extends 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 Keys<T> |
| ? 'orderBy' extends Keys<T> |
| ? ByValid extends 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 Keys<T> |
| ? 'orderBy' extends Keys<T> |
| ? ByValid extends 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 True |
| ? {} |
| : { |
| [P in OrderFields]: P extends ByFields |
| ? never |
| : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` |
| }[OrderFields] |
| >(args: SubsetIntersection<T, AlertGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetAlertGroupByPayload<T> : Prisma.PrismaPromise<InputErrors> |
| |
| |
| |
| readonly fields: AlertFieldRefs; |
| } |
|
|
| |
| |
| |
| |
| |
| |
| export interface Prisma__AlertClient<T, Null = never, ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> { |
| readonly [Symbol.toStringTag]: "PrismaPromise" |
| user<T extends UserDefaultArgs<ExtArgs> = {}>(args?: Subset<T, UserDefaultArgs<ExtArgs>>): Prisma__UserClient<$Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions> |
| market<T extends MarketDefaultArgs<ExtArgs> = {}>(args?: Subset<T, MarketDefaultArgs<ExtArgs>>): Prisma__MarketClient<$Result.GetResult<Prisma.$MarketPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions> |
| |
| |
| |
| |
| |
| |
| then<TResult1 = T, TResult2 = never>(onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined | null): $Utils.JsPromise<TResult1 | TResult2> |
| |
| |
| |
| |
| |
| catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): $Utils.JsPromise<T | TResult> |
| |
| |
| |
| |
| |
| |
| finally(onfinally?: (() => void) | undefined | null): $Utils.JsPromise<T> |
| } |
|
|
|
|
|
|
|
|
| |
| |
| |
| interface AlertFieldRefs { |
| readonly id: FieldRef<"Alert", 'Int'> |
| readonly userId: FieldRef<"Alert", 'Int'> |
| readonly marketId: FieldRef<"Alert", 'String'> |
| readonly type: FieldRef<"Alert", 'String'> |
| readonly message: FieldRef<"Alert", 'String'> |
| readonly sentAt: FieldRef<"Alert", 'DateTime'> |
| } |
| |
|
|
| |
| |
| |
| |
| export type AlertFindUniqueArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = { |
| |
| |
| |
| select?: AlertSelect<ExtArgs> | null |
| |
| |
| |
| omit?: AlertOmit<ExtArgs> | null |
| |
| |
| |
| include?: AlertInclude<ExtArgs> | null |
| |
| |
| |
| where: AlertWhereUniqueInput |
| } |
|
|
| |
| |
| |
| export type AlertFindUniqueOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = { |
| |
| |
| |
| select?: AlertSelect<ExtArgs> | null |
| |
| |
| |
| omit?: AlertOmit<ExtArgs> | null |
| |
| |
| |
| include?: AlertInclude<ExtArgs> | null |
| |
| |
| |
| where: AlertWhereUniqueInput |
| } |
|
|
| |
| |
| |
| export type AlertFindFirstArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = { |
| |
| |
| |
| select?: AlertSelect<ExtArgs> | null |
| |
| |
| |
| omit?: AlertOmit<ExtArgs> | null |
| |
| |
| |
| include?: AlertInclude<ExtArgs> | null |
| |
| |
| |
| where?: AlertWhereInput |
| |
| |
| |
| |
| |
| orderBy?: AlertOrderByWithRelationInput | AlertOrderByWithRelationInput[] |
| |
| |
| |
| |
| |
| cursor?: AlertWhereUniqueInput |
| |
| |
| |
| |
| |
| take?: number |
| |
| |
| |
| |
| |
| skip?: number |
| |
| |
| |
| |
| |
| distinct?: AlertScalarFieldEnum | AlertScalarFieldEnum[] |
| } |
|
|
| |
| |
| |
| export type AlertFindFirstOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = { |
| |
| |
| |
| select?: AlertSelect<ExtArgs> | null |
| |
| |
| |
| omit?: AlertOmit<ExtArgs> | null |
| |
| |
| |
| include?: AlertInclude<ExtArgs> | null |
| |
| |
| |
| where?: AlertWhereInput |
| |
| |
| |
| |
| |
| orderBy?: AlertOrderByWithRelationInput | AlertOrderByWithRelationInput[] |
| |
| |
| |
| |
| |
| cursor?: AlertWhereUniqueInput |
| |
| |
| |
| |
| |
| take?: number |
| |
| |
| |
| |
| |
| skip?: number |
| |
| |
| |
| |
| |
| distinct?: AlertScalarFieldEnum | AlertScalarFieldEnum[] |
| } |
|
|
| |
| |
| |
| export type AlertFindManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = { |
| |
| |
| |
| select?: AlertSelect<ExtArgs> | null |
| |
| |
| |
| omit?: AlertOmit<ExtArgs> | null |
| |
| |
| |
| include?: AlertInclude<ExtArgs> | null |
| |
| |
| |
| where?: AlertWhereInput |
| |
| |
| |
| |
| |
| orderBy?: AlertOrderByWithRelationInput | AlertOrderByWithRelationInput[] |
| |
| |
| |
| |
| |
| cursor?: AlertWhereUniqueInput |
| |
| |
| |
| |
| |
| take?: number |
| |
| |
| |
| |
| |
| skip?: number |
| distinct?: AlertScalarFieldEnum | AlertScalarFieldEnum[] |
| } |
|
|
| |
| |
| |
| export type AlertCreateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = { |
| |
| |
| |
| select?: AlertSelect<ExtArgs> | null |
| |
| |
| |
| omit?: AlertOmit<ExtArgs> | null |
| |
| |
| |
| include?: AlertInclude<ExtArgs> | null |
| |
| |
| |
| data: XOR<AlertCreateInput, AlertUncheckedCreateInput> |
| } |
|
|
| |
| |
| |
| export type AlertCreateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = { |
| |
| |
| |
| data: AlertCreateManyInput | AlertCreateManyInput[] |
| } |
|
|
| |
| |
| |
| export type AlertCreateManyAndReturnArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = { |
| |
| |
| |
| select?: AlertSelectCreateManyAndReturn<ExtArgs> | null |
| |
| |
| |
| omit?: AlertOmit<ExtArgs> | null |
| |
| |
| |
| data: AlertCreateManyInput | AlertCreateManyInput[] |
| |
| |
| |
| include?: AlertIncludeCreateManyAndReturn<ExtArgs> | null |
| } |
|
|
| |
| |
| |
| export type AlertUpdateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = { |
| |
| |
| |
| select?: AlertSelect<ExtArgs> | null |
| |
| |
| |
| omit?: AlertOmit<ExtArgs> | null |
| |
| |
| |
| include?: AlertInclude<ExtArgs> | null |
| |
| |
| |
| data: XOR<AlertUpdateInput, AlertUncheckedUpdateInput> |
| |
| |
| |
| where: AlertWhereUniqueInput |
| } |
|
|
| |
| |
| |
| export type AlertUpdateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = { |
| |
| |
| |
| data: XOR<AlertUpdateManyMutationInput, AlertUncheckedUpdateManyInput> |
| |
| |
| |
| where?: AlertWhereInput |
| |
| |
| |
| limit?: number |
| } |
|
|
| |
| |
| |
| export type AlertUpdateManyAndReturnArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = { |
| |
| |
| |
| select?: AlertSelectUpdateManyAndReturn<ExtArgs> | null |
| |
| |
| |
| omit?: AlertOmit<ExtArgs> | null |
| |
| |
| |
| data: XOR<AlertUpdateManyMutationInput, AlertUncheckedUpdateManyInput> |
| |
| |
| |
| where?: AlertWhereInput |
| |
| |
| |
| limit?: number |
| |
| |
| |
| include?: AlertIncludeUpdateManyAndReturn<ExtArgs> | null |
| } |
|
|
| |
| |
| |
| export type AlertUpsertArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = { |
| |
| |
| |
| select?: AlertSelect<ExtArgs> | null |
| |
| |
| |
| omit?: AlertOmit<ExtArgs> | null |
| |
| |
| |
| include?: AlertInclude<ExtArgs> | null |
| |
| |
| |
| where: AlertWhereUniqueInput |
| |
| |
| |
| create: XOR<AlertCreateInput, AlertUncheckedCreateInput> |
| |
| |
| |
| update: XOR<AlertUpdateInput, AlertUncheckedUpdateInput> |
| } |
|
|
| |
| |
| |
| export type AlertDeleteArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = { |
| |
| |
| |
| select?: AlertSelect<ExtArgs> | null |
| |
| |
| |
| omit?: AlertOmit<ExtArgs> | null |
| |
| |
| |
| include?: AlertInclude<ExtArgs> | null |
| |
| |
| |
| where: AlertWhereUniqueInput |
| } |
|
|
| |
| |
| |
| export type AlertDeleteManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = { |
| |
| |
| |
| where?: AlertWhereInput |
| |
| |
| |
| limit?: number |
| } |
|
|
| |
| |
| |
| export type AlertDefaultArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = { |
| |
| |
| |
| select?: AlertSelect<ExtArgs> | null |
| |
| |
| |
| omit?: AlertOmit<ExtArgs> | null |
| |
| |
| |
| include?: AlertInclude<ExtArgs> | null |
| } |
|
|
|
|
| |
| |
| |
|
|
| export const TransactionIsolationLevel: { |
| Serializable: 'Serializable' |
| }; |
|
|
| export type TransactionIsolationLevel = (typeof TransactionIsolationLevel)[keyof typeof TransactionIsolationLevel] |
|
|
|
|
| export const UserScalarFieldEnum: { |
| id: 'id', |
| email: 'email', |
| passwordHash: 'passwordHash', |
| isActive: 'isActive', |
| telegramChatId: 'telegramChatId', |
| createdAt: 'createdAt', |
| updatedAt: 'updatedAt' |
| }; |
|
|
| export type UserScalarFieldEnum = (typeof UserScalarFieldEnum)[keyof typeof UserScalarFieldEnum] |
|
|
|
|
| export const MarketScalarFieldEnum: { |
| id: 'id', |
| question: 'question', |
| category: 'category', |
| countryCode: 'countryCode', |
| yesPrice: 'yesPrice', |
| noPrice: 'noPrice', |
| volumeEur: 'volumeEur', |
| liquidityEur: 'liquidityEur', |
| spread: 'spread', |
| bestBid: 'bestBid', |
| bestAsk: 'bestAsk', |
| clobTokenId: 'clobTokenId', |
| analyzable: 'analyzable', |
| status: 'status', |
| closesAt: 'closesAt', |
| lastSynced: 'lastSynced' |
| }; |
|
|
| export type MarketScalarFieldEnum = (typeof MarketScalarFieldEnum)[keyof typeof MarketScalarFieldEnum] |
|
|
|
|
| export const AISignalScalarFieldEnum: { |
| id: 'id', |
| marketId: 'marketId', |
| signal: 'signal', |
| confidence: 'confidence', |
| summary: 'summary', |
| keyRisk: 'keyRisk', |
| newsCount: 'newsCount', |
| modelVersion: 'modelVersion', |
| impliedProb: 'impliedProb', |
| fairProb: 'fairProb', |
| edgePoints: 'edgePoints', |
| generatedAt: 'generatedAt' |
| }; |
|
|
| export type AISignalScalarFieldEnum = (typeof AISignalScalarFieldEnum)[keyof typeof AISignalScalarFieldEnum] |
|
|
|
|
| export const PositionScalarFieldEnum: { |
| id: 'id', |
| userId: 'userId', |
| marketId: 'marketId', |
| outcome: 'outcome', |
| amountEur: 'amountEur', |
| entryPrice: 'entryPrice', |
| currentPrice: 'currentPrice', |
| pnl: 'pnl', |
| kellyFraction: 'kellyFraction', |
| status: 'status', |
| openedAt: 'openedAt', |
| closedAt: 'closedAt' |
| }; |
|
|
| export type PositionScalarFieldEnum = (typeof PositionScalarFieldEnum)[keyof typeof PositionScalarFieldEnum] |
|
|
|
|
| export const WatchlistScalarFieldEnum: { |
| id: 'id', |
| userId: 'userId', |
| marketId: 'marketId', |
| alertThreshold: 'alertThreshold', |
| createdAt: 'createdAt' |
| }; |
|
|
| export type WatchlistScalarFieldEnum = (typeof WatchlistScalarFieldEnum)[keyof typeof WatchlistScalarFieldEnum] |
|
|
|
|
| export const AlertScalarFieldEnum: { |
| id: 'id', |
| userId: 'userId', |
| marketId: 'marketId', |
| type: 'type', |
| message: 'message', |
| sentAt: 'sentAt' |
| }; |
|
|
| export type AlertScalarFieldEnum = (typeof AlertScalarFieldEnum)[keyof typeof AlertScalarFieldEnum] |
|
|
|
|
| export const SortOrder: { |
| asc: 'asc', |
| desc: 'desc' |
| }; |
|
|
| export type SortOrder = (typeof SortOrder)[keyof typeof SortOrder] |
|
|
|
|
| export const NullsOrder: { |
| first: 'first', |
| last: 'last' |
| }; |
|
|
| export type NullsOrder = (typeof NullsOrder)[keyof typeof NullsOrder] |
|
|
|
|
| |
| |
| |
|
|
|
|
| |
| |
| |
| export type IntFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'Int'> |
| |
|
|
|
|
| |
| |
| |
| export type StringFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'String'> |
| |
|
|
|
|
| |
| |
| |
| export type BooleanFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'Boolean'> |
| |
|
|
|
|
| |
| |
| |
| export type DateTimeFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'DateTime'> |
| |
|
|
|
|
| |
| |
| |
| export type FloatFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'Float'> |
| |
| |
| |
| |
|
|
|
|
| export type UserWhereInput = { |
| AND?: UserWhereInput | UserWhereInput[] |
| OR?: UserWhereInput[] |
| NOT?: UserWhereInput | UserWhereInput[] |
| id?: IntFilter<"User"> | number |
| email?: StringFilter<"User"> | string |
| passwordHash?: StringFilter<"User"> | string |
| isActive?: BoolFilter<"User"> | boolean |
| telegramChatId?: StringNullableFilter<"User"> | string | null |
| createdAt?: DateTimeFilter<"User"> | Date | string |
| updatedAt?: DateTimeFilter<"User"> | Date | string |
| positions?: PositionListRelationFilter |
| watchlist?: WatchlistListRelationFilter |
| alerts?: AlertListRelationFilter |
| } |
|
|
| export type UserOrderByWithRelationInput = { |
| id?: SortOrder |
| email?: SortOrder |
| passwordHash?: SortOrder |
| isActive?: SortOrder |
| telegramChatId?: SortOrderInput | SortOrder |
| createdAt?: SortOrder |
| updatedAt?: SortOrder |
| positions?: PositionOrderByRelationAggregateInput |
| watchlist?: WatchlistOrderByRelationAggregateInput |
| alerts?: AlertOrderByRelationAggregateInput |
| } |
|
|
| export type UserWhereUniqueInput = Prisma.AtLeast<{ |
| id?: number |
| email?: string |
| AND?: UserWhereInput | UserWhereInput[] |
| OR?: UserWhereInput[] |
| NOT?: UserWhereInput | UserWhereInput[] |
| passwordHash?: StringFilter<"User"> | string |
| isActive?: BoolFilter<"User"> | boolean |
| telegramChatId?: StringNullableFilter<"User"> | string | null |
| createdAt?: DateTimeFilter<"User"> | Date | string |
| updatedAt?: DateTimeFilter<"User"> | Date | string |
| positions?: PositionListRelationFilter |
| watchlist?: WatchlistListRelationFilter |
| alerts?: AlertListRelationFilter |
| }, "id" | "email"> |
|
|
| export type UserOrderByWithAggregationInput = { |
| id?: SortOrder |
| email?: SortOrder |
| passwordHash?: SortOrder |
| isActive?: SortOrder |
| telegramChatId?: SortOrderInput | SortOrder |
| createdAt?: SortOrder |
| updatedAt?: SortOrder |
| _count?: UserCountOrderByAggregateInput |
| _avg?: UserAvgOrderByAggregateInput |
| _max?: UserMaxOrderByAggregateInput |
| _min?: UserMinOrderByAggregateInput |
| _sum?: UserSumOrderByAggregateInput |
| } |
|
|
| export type UserScalarWhereWithAggregatesInput = { |
| AND?: UserScalarWhereWithAggregatesInput | UserScalarWhereWithAggregatesInput[] |
| OR?: UserScalarWhereWithAggregatesInput[] |
| NOT?: UserScalarWhereWithAggregatesInput | UserScalarWhereWithAggregatesInput[] |
| id?: IntWithAggregatesFilter<"User"> | number |
| email?: StringWithAggregatesFilter<"User"> | string |
| passwordHash?: StringWithAggregatesFilter<"User"> | string |
| isActive?: BoolWithAggregatesFilter<"User"> | boolean |
| telegramChatId?: StringNullableWithAggregatesFilter<"User"> | string | null |
| createdAt?: DateTimeWithAggregatesFilter<"User"> | Date | string |
| updatedAt?: DateTimeWithAggregatesFilter<"User"> | Date | string |
| } |
|
|
| export type MarketWhereInput = { |
| AND?: MarketWhereInput | MarketWhereInput[] |
| OR?: MarketWhereInput[] |
| NOT?: MarketWhereInput | MarketWhereInput[] |
| id?: StringFilter<"Market"> | string |
| question?: StringFilter<"Market"> | string |
| category?: StringNullableFilter<"Market"> | string | null |
| countryCode?: StringNullableFilter<"Market"> | string | null |
| yesPrice?: FloatNullableFilter<"Market"> | number | null |
| noPrice?: FloatNullableFilter<"Market"> | number | null |
| volumeEur?: FloatNullableFilter<"Market"> | number | null |
| liquidityEur?: FloatNullableFilter<"Market"> | number | null |
| spread?: FloatNullableFilter<"Market"> | number | null |
| bestBid?: FloatNullableFilter<"Market"> | number | null |
| bestAsk?: FloatNullableFilter<"Market"> | number | null |
| clobTokenId?: StringNullableFilter<"Market"> | string | null |
| analyzable?: BoolFilter<"Market"> | boolean |
| status?: StringFilter<"Market"> | string |
| closesAt?: DateTimeNullableFilter<"Market"> | Date | string | null |
| lastSynced?: DateTimeFilter<"Market"> | Date | string |
| signals?: AISignalListRelationFilter |
| positions?: PositionListRelationFilter |
| watchlist?: WatchlistListRelationFilter |
| alerts?: AlertListRelationFilter |
| } |
|
|
| export type MarketOrderByWithRelationInput = { |
| id?: SortOrder |
| question?: SortOrder |
| category?: SortOrderInput | SortOrder |
| countryCode?: SortOrderInput | SortOrder |
| yesPrice?: SortOrderInput | SortOrder |
| noPrice?: SortOrderInput | SortOrder |
| volumeEur?: SortOrderInput | SortOrder |
| liquidityEur?: SortOrderInput | SortOrder |
| spread?: SortOrderInput | SortOrder |
| bestBid?: SortOrderInput | SortOrder |
| bestAsk?: SortOrderInput | SortOrder |
| clobTokenId?: SortOrderInput | SortOrder |
| analyzable?: SortOrder |
| status?: SortOrder |
| closesAt?: SortOrderInput | SortOrder |
| lastSynced?: SortOrder |
| signals?: AISignalOrderByRelationAggregateInput |
| positions?: PositionOrderByRelationAggregateInput |
| watchlist?: WatchlistOrderByRelationAggregateInput |
| alerts?: AlertOrderByRelationAggregateInput |
| } |
|
|
| export type MarketWhereUniqueInput = Prisma.AtLeast<{ |
| id?: string |
| AND?: MarketWhereInput | MarketWhereInput[] |
| OR?: MarketWhereInput[] |
| NOT?: MarketWhereInput | MarketWhereInput[] |
| question?: StringFilter<"Market"> | string |
| category?: StringNullableFilter<"Market"> | string | null |
| countryCode?: StringNullableFilter<"Market"> | string | null |
| yesPrice?: FloatNullableFilter<"Market"> | number | null |
| noPrice?: FloatNullableFilter<"Market"> | number | null |
| volumeEur?: FloatNullableFilter<"Market"> | number | null |
| liquidityEur?: FloatNullableFilter<"Market"> | number | null |
| spread?: FloatNullableFilter<"Market"> | number | null |
| bestBid?: FloatNullableFilter<"Market"> | number | null |
| bestAsk?: FloatNullableFilter<"Market"> | number | null |
| clobTokenId?: StringNullableFilter<"Market"> | string | null |
| analyzable?: BoolFilter<"Market"> | boolean |
| status?: StringFilter<"Market"> | string |
| closesAt?: DateTimeNullableFilter<"Market"> | Date | string | null |
| lastSynced?: DateTimeFilter<"Market"> | Date | string |
| signals?: AISignalListRelationFilter |
| positions?: PositionListRelationFilter |
| watchlist?: WatchlistListRelationFilter |
| alerts?: AlertListRelationFilter |
| }, "id"> |
|
|
| export type MarketOrderByWithAggregationInput = { |
| id?: SortOrder |
| question?: SortOrder |
| category?: SortOrderInput | SortOrder |
| countryCode?: SortOrderInput | SortOrder |
| yesPrice?: SortOrderInput | SortOrder |
| noPrice?: SortOrderInput | SortOrder |
| volumeEur?: SortOrderInput | SortOrder |
| liquidityEur?: SortOrderInput | SortOrder |
| spread?: SortOrderInput | SortOrder |
| bestBid?: SortOrderInput | SortOrder |
| bestAsk?: SortOrderInput | SortOrder |
| clobTokenId?: SortOrderInput | SortOrder |
| analyzable?: SortOrder |
| status?: SortOrder |
| closesAt?: SortOrderInput | SortOrder |
| lastSynced?: SortOrder |
| _count?: MarketCountOrderByAggregateInput |
| _avg?: MarketAvgOrderByAggregateInput |
| _max?: MarketMaxOrderByAggregateInput |
| _min?: MarketMinOrderByAggregateInput |
| _sum?: MarketSumOrderByAggregateInput |
| } |
|
|
| export type MarketScalarWhereWithAggregatesInput = { |
| AND?: MarketScalarWhereWithAggregatesInput | MarketScalarWhereWithAggregatesInput[] |
| OR?: MarketScalarWhereWithAggregatesInput[] |
| NOT?: MarketScalarWhereWithAggregatesInput | MarketScalarWhereWithAggregatesInput[] |
| id?: StringWithAggregatesFilter<"Market"> | string |
| question?: StringWithAggregatesFilter<"Market"> | string |
| category?: StringNullableWithAggregatesFilter<"Market"> | string | null |
| countryCode?: StringNullableWithAggregatesFilter<"Market"> | string | null |
| yesPrice?: FloatNullableWithAggregatesFilter<"Market"> | number | null |
| noPrice?: FloatNullableWithAggregatesFilter<"Market"> | number | null |
| volumeEur?: FloatNullableWithAggregatesFilter<"Market"> | number | null |
| liquidityEur?: FloatNullableWithAggregatesFilter<"Market"> | number | null |
| spread?: FloatNullableWithAggregatesFilter<"Market"> | number | null |
| bestBid?: FloatNullableWithAggregatesFilter<"Market"> | number | null |
| bestAsk?: FloatNullableWithAggregatesFilter<"Market"> | number | null |
| clobTokenId?: StringNullableWithAggregatesFilter<"Market"> | string | null |
| analyzable?: BoolWithAggregatesFilter<"Market"> | boolean |
| status?: StringWithAggregatesFilter<"Market"> | string |
| closesAt?: DateTimeNullableWithAggregatesFilter<"Market"> | Date | string | null |
| lastSynced?: DateTimeWithAggregatesFilter<"Market"> | Date | string |
| } |
|
|
| export type AISignalWhereInput = { |
| AND?: AISignalWhereInput | AISignalWhereInput[] |
| OR?: AISignalWhereInput[] |
| NOT?: AISignalWhereInput | AISignalWhereInput[] |
| id?: IntFilter<"AISignal"> | number |
| marketId?: StringFilter<"AISignal"> | string |
| signal?: StringFilter<"AISignal"> | string |
| confidence?: FloatFilter<"AISignal"> | number |
| summary?: StringNullableFilter<"AISignal"> | string | null |
| keyRisk?: StringNullableFilter<"AISignal"> | string | null |
| newsCount?: IntFilter<"AISignal"> | number |
| modelVersion?: StringFilter<"AISignal"> | string |
| impliedProb?: FloatNullableFilter<"AISignal"> | number | null |
| fairProb?: FloatNullableFilter<"AISignal"> | number | null |
| edgePoints?: FloatNullableFilter<"AISignal"> | number | null |
| generatedAt?: DateTimeFilter<"AISignal"> | Date | string |
| market?: XOR<MarketScalarRelationFilter, MarketWhereInput> |
| } |
|
|
| export type AISignalOrderByWithRelationInput = { |
| id?: SortOrder |
| marketId?: SortOrder |
| signal?: SortOrder |
| confidence?: SortOrder |
| summary?: SortOrderInput | SortOrder |
| keyRisk?: SortOrderInput | SortOrder |
| newsCount?: SortOrder |
| modelVersion?: SortOrder |
| impliedProb?: SortOrderInput | SortOrder |
| fairProb?: SortOrderInput | SortOrder |
| edgePoints?: SortOrderInput | SortOrder |
| generatedAt?: SortOrder |
| market?: MarketOrderByWithRelationInput |
| } |
|
|
| export type AISignalWhereUniqueInput = Prisma.AtLeast<{ |
| id?: number |
| AND?: AISignalWhereInput | AISignalWhereInput[] |
| OR?: AISignalWhereInput[] |
| NOT?: AISignalWhereInput | AISignalWhereInput[] |
| marketId?: StringFilter<"AISignal"> | string |
| signal?: StringFilter<"AISignal"> | string |
| confidence?: FloatFilter<"AISignal"> | number |
| summary?: StringNullableFilter<"AISignal"> | string | null |
| keyRisk?: StringNullableFilter<"AISignal"> | string | null |
| newsCount?: IntFilter<"AISignal"> | number |
| modelVersion?: StringFilter<"AISignal"> | string |
| impliedProb?: FloatNullableFilter<"AISignal"> | number | null |
| fairProb?: FloatNullableFilter<"AISignal"> | number | null |
| edgePoints?: FloatNullableFilter<"AISignal"> | number | null |
| generatedAt?: DateTimeFilter<"AISignal"> | Date | string |
| market?: XOR<MarketScalarRelationFilter, MarketWhereInput> |
| }, "id"> |
|
|
| export type AISignalOrderByWithAggregationInput = { |
| id?: SortOrder |
| marketId?: SortOrder |
| signal?: SortOrder |
| confidence?: SortOrder |
| summary?: SortOrderInput | SortOrder |
| keyRisk?: SortOrderInput | SortOrder |
| newsCount?: SortOrder |
| modelVersion?: SortOrder |
| impliedProb?: SortOrderInput | SortOrder |
| fairProb?: SortOrderInput | SortOrder |
| edgePoints?: SortOrderInput | SortOrder |
| generatedAt?: SortOrder |
| _count?: AISignalCountOrderByAggregateInput |
| _avg?: AISignalAvgOrderByAggregateInput |
| _max?: AISignalMaxOrderByAggregateInput |
| _min?: AISignalMinOrderByAggregateInput |
| _sum?: AISignalSumOrderByAggregateInput |
| } |
|
|
| export type AISignalScalarWhereWithAggregatesInput = { |
| AND?: AISignalScalarWhereWithAggregatesInput | AISignalScalarWhereWithAggregatesInput[] |
| OR?: AISignalScalarWhereWithAggregatesInput[] |
| NOT?: AISignalScalarWhereWithAggregatesInput | AISignalScalarWhereWithAggregatesInput[] |
| id?: IntWithAggregatesFilter<"AISignal"> | number |
| marketId?: StringWithAggregatesFilter<"AISignal"> | string |
| signal?: StringWithAggregatesFilter<"AISignal"> | string |
| confidence?: FloatWithAggregatesFilter<"AISignal"> | number |
| summary?: StringNullableWithAggregatesFilter<"AISignal"> | string | null |
| keyRisk?: StringNullableWithAggregatesFilter<"AISignal"> | string | null |
| newsCount?: IntWithAggregatesFilter<"AISignal"> | number |
| modelVersion?: StringWithAggregatesFilter<"AISignal"> | string |
| impliedProb?: FloatNullableWithAggregatesFilter<"AISignal"> | number | null |
| fairProb?: FloatNullableWithAggregatesFilter<"AISignal"> | number | null |
| edgePoints?: FloatNullableWithAggregatesFilter<"AISignal"> | number | null |
| generatedAt?: DateTimeWithAggregatesFilter<"AISignal"> | Date | string |
| } |
|
|
| export type PositionWhereInput = { |
| AND?: PositionWhereInput | PositionWhereInput[] |
| OR?: PositionWhereInput[] |
| NOT?: PositionWhereInput | PositionWhereInput[] |
| id?: IntFilter<"Position"> | number |
| userId?: IntFilter<"Position"> | number |
| marketId?: StringFilter<"Position"> | string |
| outcome?: StringFilter<"Position"> | string |
| amountEur?: FloatFilter<"Position"> | number |
| entryPrice?: FloatFilter<"Position"> | number |
| currentPrice?: FloatNullableFilter<"Position"> | number | null |
| pnl?: FloatFilter<"Position"> | number |
| kellyFraction?: FloatNullableFilter<"Position"> | number | null |
| status?: StringFilter<"Position"> | string |
| openedAt?: DateTimeFilter<"Position"> | Date | string |
| closedAt?: DateTimeNullableFilter<"Position"> | Date | string | null |
| user?: XOR<UserScalarRelationFilter, UserWhereInput> |
| market?: XOR<MarketScalarRelationFilter, MarketWhereInput> |
| } |
|
|
| export type PositionOrderByWithRelationInput = { |
| id?: SortOrder |
| userId?: SortOrder |
| marketId?: SortOrder |
| outcome?: SortOrder |
| amountEur?: SortOrder |
| entryPrice?: SortOrder |
| currentPrice?: SortOrderInput | SortOrder |
| pnl?: SortOrder |
| kellyFraction?: SortOrderInput | SortOrder |
| status?: SortOrder |
| openedAt?: SortOrder |
| closedAt?: SortOrderInput | SortOrder |
| user?: UserOrderByWithRelationInput |
| market?: MarketOrderByWithRelationInput |
| } |
|
|
| export type PositionWhereUniqueInput = Prisma.AtLeast<{ |
| id?: number |
| AND?: PositionWhereInput | PositionWhereInput[] |
| OR?: PositionWhereInput[] |
| NOT?: PositionWhereInput | PositionWhereInput[] |
| userId?: IntFilter<"Position"> | number |
| marketId?: StringFilter<"Position"> | string |
| outcome?: StringFilter<"Position"> | string |
| amountEur?: FloatFilter<"Position"> | number |
| entryPrice?: FloatFilter<"Position"> | number |
| currentPrice?: FloatNullableFilter<"Position"> | number | null |
| pnl?: FloatFilter<"Position"> | number |
| kellyFraction?: FloatNullableFilter<"Position"> | number | null |
| status?: StringFilter<"Position"> | string |
| openedAt?: DateTimeFilter<"Position"> | Date | string |
| closedAt?: DateTimeNullableFilter<"Position"> | Date | string | null |
| user?: XOR<UserScalarRelationFilter, UserWhereInput> |
| market?: XOR<MarketScalarRelationFilter, MarketWhereInput> |
| }, "id"> |
|
|
| export type PositionOrderByWithAggregationInput = { |
| id?: SortOrder |
| userId?: SortOrder |
| marketId?: SortOrder |
| outcome?: SortOrder |
| amountEur?: SortOrder |
| entryPrice?: SortOrder |
| currentPrice?: SortOrderInput | SortOrder |
| pnl?: SortOrder |
| kellyFraction?: SortOrderInput | SortOrder |
| status?: SortOrder |
| openedAt?: SortOrder |
| closedAt?: SortOrderInput | SortOrder |
| _count?: PositionCountOrderByAggregateInput |
| _avg?: PositionAvgOrderByAggregateInput |
| _max?: PositionMaxOrderByAggregateInput |
| _min?: PositionMinOrderByAggregateInput |
| _sum?: PositionSumOrderByAggregateInput |
| } |
|
|
| export type PositionScalarWhereWithAggregatesInput = { |
| AND?: PositionScalarWhereWithAggregatesInput | PositionScalarWhereWithAggregatesInput[] |
| OR?: PositionScalarWhereWithAggregatesInput[] |
| NOT?: PositionScalarWhereWithAggregatesInput | PositionScalarWhereWithAggregatesInput[] |
| id?: IntWithAggregatesFilter<"Position"> | number |
| userId?: IntWithAggregatesFilter<"Position"> | number |
| marketId?: StringWithAggregatesFilter<"Position"> | string |
| outcome?: StringWithAggregatesFilter<"Position"> | string |
| amountEur?: FloatWithAggregatesFilter<"Position"> | number |
| entryPrice?: FloatWithAggregatesFilter<"Position"> | number |
| currentPrice?: FloatNullableWithAggregatesFilter<"Position"> | number | null |
| pnl?: FloatWithAggregatesFilter<"Position"> | number |
| kellyFraction?: FloatNullableWithAggregatesFilter<"Position"> | number | null |
| status?: StringWithAggregatesFilter<"Position"> | string |
| openedAt?: DateTimeWithAggregatesFilter<"Position"> | Date | string |
| closedAt?: DateTimeNullableWithAggregatesFilter<"Position"> | Date | string | null |
| } |
|
|
| export type WatchlistWhereInput = { |
| AND?: WatchlistWhereInput | WatchlistWhereInput[] |
| OR?: WatchlistWhereInput[] |
| NOT?: WatchlistWhereInput | WatchlistWhereInput[] |
| id?: IntFilter<"Watchlist"> | number |
| userId?: IntFilter<"Watchlist"> | number |
| marketId?: StringFilter<"Watchlist"> | string |
| alertThreshold?: FloatNullableFilter<"Watchlist"> | number | null |
| createdAt?: DateTimeFilter<"Watchlist"> | Date | string |
| user?: XOR<UserScalarRelationFilter, UserWhereInput> |
| market?: XOR<MarketScalarRelationFilter, MarketWhereInput> |
| } |
|
|
| export type WatchlistOrderByWithRelationInput = { |
| id?: SortOrder |
| userId?: SortOrder |
| marketId?: SortOrder |
| alertThreshold?: SortOrderInput | SortOrder |
| createdAt?: SortOrder |
| user?: UserOrderByWithRelationInput |
| market?: MarketOrderByWithRelationInput |
| } |
|
|
| export type WatchlistWhereUniqueInput = Prisma.AtLeast<{ |
| id?: number |
| userId_marketId?: WatchlistUserIdMarketIdCompoundUniqueInput |
| AND?: WatchlistWhereInput | WatchlistWhereInput[] |
| OR?: WatchlistWhereInput[] |
| NOT?: WatchlistWhereInput | WatchlistWhereInput[] |
| userId?: IntFilter<"Watchlist"> | number |
| marketId?: StringFilter<"Watchlist"> | string |
| alertThreshold?: FloatNullableFilter<"Watchlist"> | number | null |
| createdAt?: DateTimeFilter<"Watchlist"> | Date | string |
| user?: XOR<UserScalarRelationFilter, UserWhereInput> |
| market?: XOR<MarketScalarRelationFilter, MarketWhereInput> |
| }, "id" | "userId_marketId"> |
|
|
| export type WatchlistOrderByWithAggregationInput = { |
| id?: SortOrder |
| userId?: SortOrder |
| marketId?: SortOrder |
| alertThreshold?: SortOrderInput | SortOrder |
| createdAt?: SortOrder |
| _count?: WatchlistCountOrderByAggregateInput |
| _avg?: WatchlistAvgOrderByAggregateInput |
| _max?: WatchlistMaxOrderByAggregateInput |
| _min?: WatchlistMinOrderByAggregateInput |
| _sum?: WatchlistSumOrderByAggregateInput |
| } |
|
|
| export type WatchlistScalarWhereWithAggregatesInput = { |
| AND?: WatchlistScalarWhereWithAggregatesInput | WatchlistScalarWhereWithAggregatesInput[] |
| OR?: WatchlistScalarWhereWithAggregatesInput[] |
| NOT?: WatchlistScalarWhereWithAggregatesInput | WatchlistScalarWhereWithAggregatesInput[] |
| id?: IntWithAggregatesFilter<"Watchlist"> | number |
| userId?: IntWithAggregatesFilter<"Watchlist"> | number |
| marketId?: StringWithAggregatesFilter<"Watchlist"> | string |
| alertThreshold?: FloatNullableWithAggregatesFilter<"Watchlist"> | number | null |
| createdAt?: DateTimeWithAggregatesFilter<"Watchlist"> | Date | string |
| } |
|
|
| export type AlertWhereInput = { |
| AND?: AlertWhereInput | AlertWhereInput[] |
| OR?: AlertWhereInput[] |
| NOT?: AlertWhereInput | AlertWhereInput[] |
| id?: IntFilter<"Alert"> | number |
| userId?: IntFilter<"Alert"> | number |
| marketId?: StringFilter<"Alert"> | string |
| type?: StringFilter<"Alert"> | string |
| message?: StringFilter<"Alert"> | string |
| sentAt?: DateTimeFilter<"Alert"> | Date | string |
| user?: XOR<UserScalarRelationFilter, UserWhereInput> |
| market?: XOR<MarketScalarRelationFilter, MarketWhereInput> |
| } |
|
|
| export type AlertOrderByWithRelationInput = { |
| id?: SortOrder |
| userId?: SortOrder |
| marketId?: SortOrder |
| type?: SortOrder |
| message?: SortOrder |
| sentAt?: SortOrder |
| user?: UserOrderByWithRelationInput |
| market?: MarketOrderByWithRelationInput |
| } |
|
|
| export type AlertWhereUniqueInput = Prisma.AtLeast<{ |
| id?: number |
| AND?: AlertWhereInput | AlertWhereInput[] |
| OR?: AlertWhereInput[] |
| NOT?: AlertWhereInput | AlertWhereInput[] |
| userId?: IntFilter<"Alert"> | number |
| marketId?: StringFilter<"Alert"> | string |
| type?: StringFilter<"Alert"> | string |
| message?: StringFilter<"Alert"> | string |
| sentAt?: DateTimeFilter<"Alert"> | Date | string |
| user?: XOR<UserScalarRelationFilter, UserWhereInput> |
| market?: XOR<MarketScalarRelationFilter, MarketWhereInput> |
| }, "id"> |
|
|
| export type AlertOrderByWithAggregationInput = { |
| id?: SortOrder |
| userId?: SortOrder |
| marketId?: SortOrder |
| type?: SortOrder |
| message?: SortOrder |
| sentAt?: SortOrder |
| _count?: AlertCountOrderByAggregateInput |
| _avg?: AlertAvgOrderByAggregateInput |
| _max?: AlertMaxOrderByAggregateInput |
| _min?: AlertMinOrderByAggregateInput |
| _sum?: AlertSumOrderByAggregateInput |
| } |
|
|
| export type AlertScalarWhereWithAggregatesInput = { |
| AND?: AlertScalarWhereWithAggregatesInput | AlertScalarWhereWithAggregatesInput[] |
| OR?: AlertScalarWhereWithAggregatesInput[] |
| NOT?: AlertScalarWhereWithAggregatesInput | AlertScalarWhereWithAggregatesInput[] |
| id?: IntWithAggregatesFilter<"Alert"> | number |
| userId?: IntWithAggregatesFilter<"Alert"> | number |
| marketId?: StringWithAggregatesFilter<"Alert"> | string |
| type?: StringWithAggregatesFilter<"Alert"> | string |
| message?: StringWithAggregatesFilter<"Alert"> | string |
| sentAt?: DateTimeWithAggregatesFilter<"Alert"> | Date | string |
| } |
|
|
| export type UserCreateInput = { |
| email: string |
| passwordHash: string |
| isActive?: boolean |
| telegramChatId?: string | null |
| createdAt?: Date | string |
| updatedAt?: Date | string |
| positions?: PositionCreateNestedManyWithoutUserInput |
| watchlist?: WatchlistCreateNestedManyWithoutUserInput |
| alerts?: AlertCreateNestedManyWithoutUserInput |
| } |
|
|
| export type UserUncheckedCreateInput = { |
| id?: number |
| email: string |
| passwordHash: string |
| isActive?: boolean |
| telegramChatId?: string | null |
| createdAt?: Date | string |
| updatedAt?: Date | string |
| positions?: PositionUncheckedCreateNestedManyWithoutUserInput |
| watchlist?: WatchlistUncheckedCreateNestedManyWithoutUserInput |
| alerts?: AlertUncheckedCreateNestedManyWithoutUserInput |
| } |
|
|
| export type UserUpdateInput = { |
| email?: StringFieldUpdateOperationsInput | string |
| passwordHash?: StringFieldUpdateOperationsInput | string |
| isActive?: BoolFieldUpdateOperationsInput | boolean |
| telegramChatId?: NullableStringFieldUpdateOperationsInput | string | null |
| createdAt?: DateTimeFieldUpdateOperationsInput | Date | string |
| updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string |
| positions?: PositionUpdateManyWithoutUserNestedInput |
| watchlist?: WatchlistUpdateManyWithoutUserNestedInput |
| alerts?: AlertUpdateManyWithoutUserNestedInput |
| } |
|
|
| export type UserUncheckedUpdateInput = { |
| id?: IntFieldUpdateOperationsInput | number |
| email?: StringFieldUpdateOperationsInput | string |
| passwordHash?: StringFieldUpdateOperationsInput | string |
| isActive?: BoolFieldUpdateOperationsInput | boolean |
| telegramChatId?: NullableStringFieldUpdateOperationsInput | string | null |
| createdAt?: DateTimeFieldUpdateOperationsInput | Date | string |
| updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string |
| positions?: PositionUncheckedUpdateManyWithoutUserNestedInput |
| watchlist?: WatchlistUncheckedUpdateManyWithoutUserNestedInput |
| alerts?: AlertUncheckedUpdateManyWithoutUserNestedInput |
| } |
|
|
| export type UserCreateManyInput = { |
| id?: number |
| email: string |
| passwordHash: string |
| isActive?: boolean |
| telegramChatId?: string | null |
| createdAt?: Date | string |
| updatedAt?: Date | string |
| } |
|
|
| export type UserUpdateManyMutationInput = { |
| email?: StringFieldUpdateOperationsInput | string |
| passwordHash?: StringFieldUpdateOperationsInput | string |
| isActive?: BoolFieldUpdateOperationsInput | boolean |
| telegramChatId?: NullableStringFieldUpdateOperationsInput | string | null |
| createdAt?: DateTimeFieldUpdateOperationsInput | Date | string |
| updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string |
| } |
|
|
| export type UserUncheckedUpdateManyInput = { |
| id?: IntFieldUpdateOperationsInput | number |
| email?: StringFieldUpdateOperationsInput | string |
| passwordHash?: StringFieldUpdateOperationsInput | string |
| isActive?: BoolFieldUpdateOperationsInput | boolean |
| telegramChatId?: NullableStringFieldUpdateOperationsInput | string | null |
| createdAt?: DateTimeFieldUpdateOperationsInput | Date | string |
| updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string |
| } |
|
|
| export type MarketCreateInput = { |
| id: string |
| question: string |
| category?: string | null |
| countryCode?: string | null |
| yesPrice?: number | null |
| noPrice?: number | null |
| volumeEur?: number | null |
| liquidityEur?: number | null |
| spread?: number | null |
| bestBid?: number | null |
| bestAsk?: number | null |
| clobTokenId?: string | null |
| analyzable?: boolean |
| status?: string |
| closesAt?: Date | string | null |
| lastSynced?: Date | string |
| signals?: AISignalCreateNestedManyWithoutMarketInput |
| positions?: PositionCreateNestedManyWithoutMarketInput |
| watchlist?: WatchlistCreateNestedManyWithoutMarketInput |
| alerts?: AlertCreateNestedManyWithoutMarketInput |
| } |
|
|
| export type MarketUncheckedCreateInput = { |
| id: string |
| question: string |
| category?: string | null |
| countryCode?: string | null |
| yesPrice?: number | null |
| noPrice?: number | null |
| volumeEur?: number | null |
| liquidityEur?: number | null |
| spread?: number | null |
| bestBid?: number | null |
| bestAsk?: number | null |
| clobTokenId?: string | null |
| analyzable?: boolean |
| status?: string |
| closesAt?: Date | string | null |
| lastSynced?: Date | string |
| signals?: AISignalUncheckedCreateNestedManyWithoutMarketInput |
| positions?: PositionUncheckedCreateNestedManyWithoutMarketInput |
| watchlist?: WatchlistUncheckedCreateNestedManyWithoutMarketInput |
| alerts?: AlertUncheckedCreateNestedManyWithoutMarketInput |
| } |
|
|
| export type MarketUpdateInput = { |
| id?: StringFieldUpdateOperationsInput | string |
| question?: StringFieldUpdateOperationsInput | string |
| category?: NullableStringFieldUpdateOperationsInput | string | null |
| countryCode?: NullableStringFieldUpdateOperationsInput | string | null |
| yesPrice?: NullableFloatFieldUpdateOperationsInput | number | null |
| noPrice?: NullableFloatFieldUpdateOperationsInput | number | null |
| volumeEur?: NullableFloatFieldUpdateOperationsInput | number | null |
| liquidityEur?: NullableFloatFieldUpdateOperationsInput | number | null |
| spread?: NullableFloatFieldUpdateOperationsInput | number | null |
| bestBid?: NullableFloatFieldUpdateOperationsInput | number | null |
| bestAsk?: NullableFloatFieldUpdateOperationsInput | number | null |
| clobTokenId?: NullableStringFieldUpdateOperationsInput | string | null |
| analyzable?: BoolFieldUpdateOperationsInput | boolean |
| status?: StringFieldUpdateOperationsInput | string |
| closesAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null |
| lastSynced?: DateTimeFieldUpdateOperationsInput | Date | string |
| signals?: AISignalUpdateManyWithoutMarketNestedInput |
| positions?: PositionUpdateManyWithoutMarketNestedInput |
| watchlist?: WatchlistUpdateManyWithoutMarketNestedInput |
| alerts?: AlertUpdateManyWithoutMarketNestedInput |
| } |
|
|
| export type MarketUncheckedUpdateInput = { |
| id?: StringFieldUpdateOperationsInput | string |
| question?: StringFieldUpdateOperationsInput | string |
| category?: NullableStringFieldUpdateOperationsInput | string | null |
| countryCode?: NullableStringFieldUpdateOperationsInput | string | null |
| yesPrice?: NullableFloatFieldUpdateOperationsInput | number | null |
| noPrice?: NullableFloatFieldUpdateOperationsInput | number | null |
| volumeEur?: NullableFloatFieldUpdateOperationsInput | number | null |
| liquidityEur?: NullableFloatFieldUpdateOperationsInput | number | null |
| spread?: NullableFloatFieldUpdateOperationsInput | number | null |
| bestBid?: NullableFloatFieldUpdateOperationsInput | number | null |
| bestAsk?: NullableFloatFieldUpdateOperationsInput | number | null |
| clobTokenId?: NullableStringFieldUpdateOperationsInput | string | null |
| analyzable?: BoolFieldUpdateOperationsInput | boolean |
| status?: StringFieldUpdateOperationsInput | string |
| closesAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null |
| lastSynced?: DateTimeFieldUpdateOperationsInput | Date | string |
| signals?: AISignalUncheckedUpdateManyWithoutMarketNestedInput |
| positions?: PositionUncheckedUpdateManyWithoutMarketNestedInput |
| watchlist?: WatchlistUncheckedUpdateManyWithoutMarketNestedInput |
| alerts?: AlertUncheckedUpdateManyWithoutMarketNestedInput |
| } |
|
|
| export type MarketCreateManyInput = { |
| id: string |
| question: string |
| category?: string | null |
| countryCode?: string | null |
| yesPrice?: number | null |
| noPrice?: number | null |
| volumeEur?: number | null |
| liquidityEur?: number | null |
| spread?: number | null |
| bestBid?: number | null |
| bestAsk?: number | null |
| clobTokenId?: string | null |
| analyzable?: boolean |
| status?: string |
| closesAt?: Date | string | null |
| lastSynced?: Date | string |
| } |
|
|
| export type MarketUpdateManyMutationInput = { |
| id?: StringFieldUpdateOperationsInput | string |
| question?: StringFieldUpdateOperationsInput | string |
| category?: NullableStringFieldUpdateOperationsInput | string | null |
| countryCode?: NullableStringFieldUpdateOperationsInput | string | null |
| yesPrice?: NullableFloatFieldUpdateOperationsInput | number | null |
| noPrice?: NullableFloatFieldUpdateOperationsInput | number | null |
| volumeEur?: NullableFloatFieldUpdateOperationsInput | number | null |
| liquidityEur?: NullableFloatFieldUpdateOperationsInput | number | null |
| spread?: NullableFloatFieldUpdateOperationsInput | number | null |
| bestBid?: NullableFloatFieldUpdateOperationsInput | number | null |
| bestAsk?: NullableFloatFieldUpdateOperationsInput | number | null |
| clobTokenId?: NullableStringFieldUpdateOperationsInput | string | null |
| analyzable?: BoolFieldUpdateOperationsInput | boolean |
| status?: StringFieldUpdateOperationsInput | string |
| closesAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null |
| lastSynced?: DateTimeFieldUpdateOperationsInput | Date | string |
| } |
|
|
| export type MarketUncheckedUpdateManyInput = { |
| id?: StringFieldUpdateOperationsInput | string |
| question?: StringFieldUpdateOperationsInput | string |
| category?: NullableStringFieldUpdateOperationsInput | string | null |
| countryCode?: NullableStringFieldUpdateOperationsInput | string | null |
| yesPrice?: NullableFloatFieldUpdateOperationsInput | number | null |
| noPrice?: NullableFloatFieldUpdateOperationsInput | number | null |
| volumeEur?: NullableFloatFieldUpdateOperationsInput | number | null |
| liquidityEur?: NullableFloatFieldUpdateOperationsInput | number | null |
| spread?: NullableFloatFieldUpdateOperationsInput | number | null |
| bestBid?: NullableFloatFieldUpdateOperationsInput | number | null |
| bestAsk?: NullableFloatFieldUpdateOperationsInput | number | null |
| clobTokenId?: NullableStringFieldUpdateOperationsInput | string | null |
| analyzable?: BoolFieldUpdateOperationsInput | boolean |
| status?: StringFieldUpdateOperationsInput | string |
| closesAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null |
| lastSynced?: DateTimeFieldUpdateOperationsInput | Date | string |
| } |
|
|
| export type AISignalCreateInput = { |
| signal: string |
| confidence: number |
| summary?: string | null |
| keyRisk?: string | null |
| newsCount?: number |
| modelVersion?: string |
| impliedProb?: number | null |
| fairProb?: number | null |
| edgePoints?: number | null |
| generatedAt?: Date | string |
| market: MarketCreateNestedOneWithoutSignalsInput |
| } |
|
|
| export type AISignalUncheckedCreateInput = { |
| id?: number |
| marketId: string |
| signal: string |
| confidence: number |
| summary?: string | null |
| keyRisk?: string | null |
| newsCount?: number |
| modelVersion?: string |
| impliedProb?: number | null |
| fairProb?: number | null |
| edgePoints?: number | null |
| generatedAt?: Date | string |
| } |
|
|
| export type AISignalUpdateInput = { |
| signal?: StringFieldUpdateOperationsInput | string |
| confidence?: FloatFieldUpdateOperationsInput | number |
| summary?: NullableStringFieldUpdateOperationsInput | string | null |
| keyRisk?: NullableStringFieldUpdateOperationsInput | string | null |
| newsCount?: IntFieldUpdateOperationsInput | number |
| modelVersion?: StringFieldUpdateOperationsInput | string |
| impliedProb?: NullableFloatFieldUpdateOperationsInput | number | null |
| fairProb?: NullableFloatFieldUpdateOperationsInput | number | null |
| edgePoints?: NullableFloatFieldUpdateOperationsInput | number | null |
| generatedAt?: DateTimeFieldUpdateOperationsInput | Date | string |
| market?: MarketUpdateOneRequiredWithoutSignalsNestedInput |
| } |
|
|
| export type AISignalUncheckedUpdateInput = { |
| id?: IntFieldUpdateOperationsInput | number |
| marketId?: StringFieldUpdateOperationsInput | string |
| signal?: StringFieldUpdateOperationsInput | string |
| confidence?: FloatFieldUpdateOperationsInput | number |
| summary?: NullableStringFieldUpdateOperationsInput | string | null |
| keyRisk?: NullableStringFieldUpdateOperationsInput | string | null |
| newsCount?: IntFieldUpdateOperationsInput | number |
| modelVersion?: StringFieldUpdateOperationsInput | string |
| impliedProb?: NullableFloatFieldUpdateOperationsInput | number | null |
| fairProb?: NullableFloatFieldUpdateOperationsInput | number | null |
| edgePoints?: NullableFloatFieldUpdateOperationsInput | number | null |
| generatedAt?: DateTimeFieldUpdateOperationsInput | Date | string |
| } |
|
|
| export type AISignalCreateManyInput = { |
| id?: number |
| marketId: string |
| signal: string |
| confidence: number |
| summary?: string | null |
| keyRisk?: string | null |
| newsCount?: number |
| modelVersion?: string |
| impliedProb?: number | null |
| fairProb?: number | null |
| edgePoints?: number | null |
| generatedAt?: Date | string |
| } |
|
|
| export type AISignalUpdateManyMutationInput = { |
| signal?: StringFieldUpdateOperationsInput | string |
| confidence?: FloatFieldUpdateOperationsInput | number |
| summary?: NullableStringFieldUpdateOperationsInput | string | null |
| keyRisk?: NullableStringFieldUpdateOperationsInput | string | null |
| newsCount?: IntFieldUpdateOperationsInput | number |
| modelVersion?: StringFieldUpdateOperationsInput | string |
| impliedProb?: NullableFloatFieldUpdateOperationsInput | number | null |
| fairProb?: NullableFloatFieldUpdateOperationsInput | number | null |
| edgePoints?: NullableFloatFieldUpdateOperationsInput | number | null |
| generatedAt?: DateTimeFieldUpdateOperationsInput | Date | string |
| } |
|
|
| export type AISignalUncheckedUpdateManyInput = { |
| id?: IntFieldUpdateOperationsInput | number |
| marketId?: StringFieldUpdateOperationsInput | string |
| signal?: StringFieldUpdateOperationsInput | string |
| confidence?: FloatFieldUpdateOperationsInput | number |
| summary?: NullableStringFieldUpdateOperationsInput | string | null |
| keyRisk?: NullableStringFieldUpdateOperationsInput | string | null |
| newsCount?: IntFieldUpdateOperationsInput | number |
| modelVersion?: StringFieldUpdateOperationsInput | string |
| impliedProb?: NullableFloatFieldUpdateOperationsInput | number | null |
| fairProb?: NullableFloatFieldUpdateOperationsInput | number | null |
| edgePoints?: NullableFloatFieldUpdateOperationsInput | number | null |
| generatedAt?: DateTimeFieldUpdateOperationsInput | Date | string |
| } |
|
|
| export type PositionCreateInput = { |
| outcome: string |
| amountEur: number |
| entryPrice: number |
| currentPrice?: number | null |
| pnl?: number |
| kellyFraction?: number | null |
| status?: string |
| openedAt?: Date | string |
| closedAt?: Date | string | null |
| user: UserCreateNestedOneWithoutPositionsInput |
| market: MarketCreateNestedOneWithoutPositionsInput |
| } |
|
|
| export type PositionUncheckedCreateInput = { |
| id?: number |
| userId: number |
| marketId: string |
| outcome: string |
| amountEur: number |
| entryPrice: number |
| currentPrice?: number | null |
| pnl?: number |
| kellyFraction?: number | null |
| status?: string |
| openedAt?: Date | string |
| closedAt?: Date | string | null |
| } |
|
|
| export type PositionUpdateInput = { |
| outcome?: StringFieldUpdateOperationsInput | string |
| amountEur?: FloatFieldUpdateOperationsInput | number |
| entryPrice?: FloatFieldUpdateOperationsInput | number |
| currentPrice?: NullableFloatFieldUpdateOperationsInput | number | null |
| pnl?: FloatFieldUpdateOperationsInput | number |
| kellyFraction?: NullableFloatFieldUpdateOperationsInput | number | null |
| status?: StringFieldUpdateOperationsInput | string |
| openedAt?: DateTimeFieldUpdateOperationsInput | Date | string |
| closedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null |
| user?: UserUpdateOneRequiredWithoutPositionsNestedInput |
| market?: MarketUpdateOneRequiredWithoutPositionsNestedInput |
| } |
|
|
| export type PositionUncheckedUpdateInput = { |
| id?: IntFieldUpdateOperationsInput | number |
| userId?: IntFieldUpdateOperationsInput | number |
| marketId?: StringFieldUpdateOperationsInput | string |
| outcome?: StringFieldUpdateOperationsInput | string |
| amountEur?: FloatFieldUpdateOperationsInput | number |
| entryPrice?: FloatFieldUpdateOperationsInput | number |
| currentPrice?: NullableFloatFieldUpdateOperationsInput | number | null |
| pnl?: FloatFieldUpdateOperationsInput | number |
| kellyFraction?: NullableFloatFieldUpdateOperationsInput | number | null |
| status?: StringFieldUpdateOperationsInput | string |
| openedAt?: DateTimeFieldUpdateOperationsInput | Date | string |
| closedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null |
| } |
|
|
| export type PositionCreateManyInput = { |
| id?: number |
| userId: number |
| marketId: string |
| outcome: string |
| amountEur: number |
| entryPrice: number |
| currentPrice?: number | null |
| pnl?: number |
| kellyFraction?: number | null |
| status?: string |
| openedAt?: Date | string |
| closedAt?: Date | string | null |
| } |
|
|
| export type PositionUpdateManyMutationInput = { |
| outcome?: StringFieldUpdateOperationsInput | string |
| amountEur?: FloatFieldUpdateOperationsInput | number |
| entryPrice?: FloatFieldUpdateOperationsInput | number |
| currentPrice?: NullableFloatFieldUpdateOperationsInput | number | null |
| pnl?: FloatFieldUpdateOperationsInput | number |
| kellyFraction?: NullableFloatFieldUpdateOperationsInput | number | null |
| status?: StringFieldUpdateOperationsInput | string |
| openedAt?: DateTimeFieldUpdateOperationsInput | Date | string |
| closedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null |
| } |
|
|
| export type PositionUncheckedUpdateManyInput = { |
| id?: IntFieldUpdateOperationsInput | number |
| userId?: IntFieldUpdateOperationsInput | number |
| marketId?: StringFieldUpdateOperationsInput | string |
| outcome?: StringFieldUpdateOperationsInput | string |
| amountEur?: FloatFieldUpdateOperationsInput | number |
| entryPrice?: FloatFieldUpdateOperationsInput | number |
| currentPrice?: NullableFloatFieldUpdateOperationsInput | number | null |
| pnl?: FloatFieldUpdateOperationsInput | number |
| kellyFraction?: NullableFloatFieldUpdateOperationsInput | number | null |
| status?: StringFieldUpdateOperationsInput | string |
| openedAt?: DateTimeFieldUpdateOperationsInput | Date | string |
| closedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null |
| } |
|
|
| export type WatchlistCreateInput = { |
| alertThreshold?: number | null |
| createdAt?: Date | string |
| user: UserCreateNestedOneWithoutWatchlistInput |
| market: MarketCreateNestedOneWithoutWatchlistInput |
| } |
|
|
| export type WatchlistUncheckedCreateInput = { |
| id?: number |
| userId: number |
| marketId: string |
| alertThreshold?: number | null |
| createdAt?: Date | string |
| } |
|
|
| export type WatchlistUpdateInput = { |
| alertThreshold?: NullableFloatFieldUpdateOperationsInput | number | null |
| createdAt?: DateTimeFieldUpdateOperationsInput | Date | string |
| user?: UserUpdateOneRequiredWithoutWatchlistNestedInput |
| market?: MarketUpdateOneRequiredWithoutWatchlistNestedInput |
| } |
|
|
| export type WatchlistUncheckedUpdateInput = { |
| id?: IntFieldUpdateOperationsInput | number |
| userId?: IntFieldUpdateOperationsInput | number |
| marketId?: StringFieldUpdateOperationsInput | string |
| alertThreshold?: NullableFloatFieldUpdateOperationsInput | number | null |
| createdAt?: DateTimeFieldUpdateOperationsInput | Date | string |
| } |
|
|
| export type WatchlistCreateManyInput = { |
| id?: number |
| userId: number |
| marketId: string |
| alertThreshold?: number | null |
| createdAt?: Date | string |
| } |
|
|
| export type WatchlistUpdateManyMutationInput = { |
| alertThreshold?: NullableFloatFieldUpdateOperationsInput | number | null |
| createdAt?: DateTimeFieldUpdateOperationsInput | Date | string |
| } |
|
|
| export type WatchlistUncheckedUpdateManyInput = { |
| id?: IntFieldUpdateOperationsInput | number |
| userId?: IntFieldUpdateOperationsInput | number |
| marketId?: StringFieldUpdateOperationsInput | string |
| alertThreshold?: NullableFloatFieldUpdateOperationsInput | number | null |
| createdAt?: DateTimeFieldUpdateOperationsInput | Date | string |
| } |
|
|
| export type AlertCreateInput = { |
| type: string |
| message: string |
| sentAt?: Date | string |
| user: UserCreateNestedOneWithoutAlertsInput |
| market: MarketCreateNestedOneWithoutAlertsInput |
| } |
|
|
| export type AlertUncheckedCreateInput = { |
| id?: number |
| userId: number |
| marketId: string |
| type: string |
| message: string |
| sentAt?: Date | string |
| } |
|
|
| export type AlertUpdateInput = { |
| type?: StringFieldUpdateOperationsInput | string |
| message?: StringFieldUpdateOperationsInput | string |
| sentAt?: DateTimeFieldUpdateOperationsInput | Date | string |
| user?: UserUpdateOneRequiredWithoutAlertsNestedInput |
| market?: MarketUpdateOneRequiredWithoutAlertsNestedInput |
| } |
|
|
| export type AlertUncheckedUpdateInput = { |
| id?: IntFieldUpdateOperationsInput | number |
| userId?: IntFieldUpdateOperationsInput | number |
| marketId?: StringFieldUpdateOperationsInput | string |
| type?: StringFieldUpdateOperationsInput | string |
| message?: StringFieldUpdateOperationsInput | string |
| sentAt?: DateTimeFieldUpdateOperationsInput | Date | string |
| } |
|
|
| export type AlertCreateManyInput = { |
| id?: number |
| userId: number |
| marketId: string |
| type: string |
| message: string |
| sentAt?: Date | string |
| } |
|
|
| export type AlertUpdateManyMutationInput = { |
| type?: StringFieldUpdateOperationsInput | string |
| message?: StringFieldUpdateOperationsInput | string |
| sentAt?: DateTimeFieldUpdateOperationsInput | Date | string |
| } |
|
|
| export type AlertUncheckedUpdateManyInput = { |
| id?: IntFieldUpdateOperationsInput | number |
| userId?: IntFieldUpdateOperationsInput | number |
| marketId?: StringFieldUpdateOperationsInput | string |
| type?: StringFieldUpdateOperationsInput | string |
| message?: StringFieldUpdateOperationsInput | string |
| sentAt?: DateTimeFieldUpdateOperationsInput | Date | string |
| } |
|
|
| export type IntFilter<$PrismaModel = never> = { |
| equals?: number | IntFieldRefInput<$PrismaModel> |
| in?: number[] |
| notIn?: number[] |
| lt?: number | IntFieldRefInput<$PrismaModel> |
| lte?: number | IntFieldRefInput<$PrismaModel> |
| gt?: number | IntFieldRefInput<$PrismaModel> |
| gte?: number | IntFieldRefInput<$PrismaModel> |
| not?: NestedIntFilter<$PrismaModel> | number |
| } |
|
|
| export type StringFilter<$PrismaModel = never> = { |
| equals?: string | StringFieldRefInput<$PrismaModel> |
| in?: string[] |
| notIn?: string[] |
| lt?: string | StringFieldRefInput<$PrismaModel> |
| lte?: string | StringFieldRefInput<$PrismaModel> |
| gt?: string | StringFieldRefInput<$PrismaModel> |
| gte?: string | StringFieldRefInput<$PrismaModel> |
| contains?: string | StringFieldRefInput<$PrismaModel> |
| startsWith?: string | StringFieldRefInput<$PrismaModel> |
| endsWith?: string | StringFieldRefInput<$PrismaModel> |
| not?: NestedStringFilter<$PrismaModel> | string |
| } |
|
|
| export type BoolFilter<$PrismaModel = never> = { |
| equals?: boolean | BooleanFieldRefInput<$PrismaModel> |
| not?: NestedBoolFilter<$PrismaModel> | boolean |
| } |
|
|
| export type StringNullableFilter<$PrismaModel = never> = { |
| equals?: string | StringFieldRefInput<$PrismaModel> | null |
| in?: string[] | null |
| notIn?: string[] | null |
| lt?: string | StringFieldRefInput<$PrismaModel> |
| lte?: string | StringFieldRefInput<$PrismaModel> |
| gt?: string | StringFieldRefInput<$PrismaModel> |
| gte?: string | StringFieldRefInput<$PrismaModel> |
| contains?: string | StringFieldRefInput<$PrismaModel> |
| startsWith?: string | StringFieldRefInput<$PrismaModel> |
| endsWith?: string | StringFieldRefInput<$PrismaModel> |
| not?: NestedStringNullableFilter<$PrismaModel> | string | null |
| } |
|
|
| export type DateTimeFilter<$PrismaModel = never> = { |
| equals?: Date | string | DateTimeFieldRefInput<$PrismaModel> |
| in?: Date[] | string[] |
| notIn?: Date[] | string[] |
| lt?: Date | string | DateTimeFieldRefInput<$PrismaModel> |
| lte?: Date | string | DateTimeFieldRefInput<$PrismaModel> |
| gt?: Date | string | DateTimeFieldRefInput<$PrismaModel> |
| gte?: Date | string | DateTimeFieldRefInput<$PrismaModel> |
| not?: NestedDateTimeFilter<$PrismaModel> | Date | string |
| } |
|
|
| export type PositionListRelationFilter = { |
| every?: PositionWhereInput |
| some?: PositionWhereInput |
| none?: PositionWhereInput |
| } |
|
|
| export type WatchlistListRelationFilter = { |
| every?: WatchlistWhereInput |
| some?: WatchlistWhereInput |
| none?: WatchlistWhereInput |
| } |
|
|
| export type AlertListRelationFilter = { |
| every?: AlertWhereInput |
| some?: AlertWhereInput |
| none?: AlertWhereInput |
| } |
|
|
| export type SortOrderInput = { |
| sort: SortOrder |
| nulls?: NullsOrder |
| } |
|
|
| export type PositionOrderByRelationAggregateInput = { |
| _count?: SortOrder |
| } |
|
|
| export type WatchlistOrderByRelationAggregateInput = { |
| _count?: SortOrder |
| } |
|
|
| export type AlertOrderByRelationAggregateInput = { |
| _count?: SortOrder |
| } |
|
|
| export type UserCountOrderByAggregateInput = { |
| id?: SortOrder |
| email?: SortOrder |
| passwordHash?: SortOrder |
| isActive?: SortOrder |
| telegramChatId?: SortOrder |
| createdAt?: SortOrder |
| updatedAt?: SortOrder |
| } |
|
|
| export type UserAvgOrderByAggregateInput = { |
| id?: SortOrder |
| } |
|
|
| export type UserMaxOrderByAggregateInput = { |
| id?: SortOrder |
| email?: SortOrder |
| passwordHash?: SortOrder |
| isActive?: SortOrder |
| telegramChatId?: SortOrder |
| createdAt?: SortOrder |
| updatedAt?: SortOrder |
| } |
|
|
| export type UserMinOrderByAggregateInput = { |
| id?: SortOrder |
| email?: SortOrder |
| passwordHash?: SortOrder |
| isActive?: SortOrder |
| telegramChatId?: SortOrder |
| createdAt?: SortOrder |
| updatedAt?: SortOrder |
| } |
|
|
| export type UserSumOrderByAggregateInput = { |
| id?: SortOrder |
| } |
|
|
| export type IntWithAggregatesFilter<$PrismaModel = never> = { |
| equals?: number | IntFieldRefInput<$PrismaModel> |
| in?: number[] |
| notIn?: number[] |
| lt?: number | IntFieldRefInput<$PrismaModel> |
| lte?: number | IntFieldRefInput<$PrismaModel> |
| gt?: number | IntFieldRefInput<$PrismaModel> |
| gte?: number | IntFieldRefInput<$PrismaModel> |
| not?: NestedIntWithAggregatesFilter<$PrismaModel> | number |
| _count?: NestedIntFilter<$PrismaModel> |
| _avg?: NestedFloatFilter<$PrismaModel> |
| _sum?: NestedIntFilter<$PrismaModel> |
| _min?: NestedIntFilter<$PrismaModel> |
| _max?: NestedIntFilter<$PrismaModel> |
| } |
|
|
| export type StringWithAggregatesFilter<$PrismaModel = never> = { |
| equals?: string | StringFieldRefInput<$PrismaModel> |
| in?: string[] |
| notIn?: string[] |
| lt?: string | StringFieldRefInput<$PrismaModel> |
| lte?: string | StringFieldRefInput<$PrismaModel> |
| gt?: string | StringFieldRefInput<$PrismaModel> |
| gte?: string | StringFieldRefInput<$PrismaModel> |
| contains?: string | StringFieldRefInput<$PrismaModel> |
| startsWith?: string | StringFieldRefInput<$PrismaModel> |
| endsWith?: string | StringFieldRefInput<$PrismaModel> |
| not?: NestedStringWithAggregatesFilter<$PrismaModel> | string |
| _count?: NestedIntFilter<$PrismaModel> |
| _min?: NestedStringFilter<$PrismaModel> |
| _max?: NestedStringFilter<$PrismaModel> |
| } |
|
|
| export type BoolWithAggregatesFilter<$PrismaModel = never> = { |
| equals?: boolean | BooleanFieldRefInput<$PrismaModel> |
| not?: NestedBoolWithAggregatesFilter<$PrismaModel> | boolean |
| _count?: NestedIntFilter<$PrismaModel> |
| _min?: NestedBoolFilter<$PrismaModel> |
| _max?: NestedBoolFilter<$PrismaModel> |
| } |
|
|
| export type StringNullableWithAggregatesFilter<$PrismaModel = never> = { |
| equals?: string | StringFieldRefInput<$PrismaModel> | null |
| in?: string[] | null |
| notIn?: string[] | null |
| lt?: string | StringFieldRefInput<$PrismaModel> |
| lte?: string | StringFieldRefInput<$PrismaModel> |
| gt?: string | StringFieldRefInput<$PrismaModel> |
| gte?: string | StringFieldRefInput<$PrismaModel> |
| contains?: string | StringFieldRefInput<$PrismaModel> |
| startsWith?: string | StringFieldRefInput<$PrismaModel> |
| endsWith?: string | StringFieldRefInput<$PrismaModel> |
| not?: NestedStringNullableWithAggregatesFilter<$PrismaModel> | string | null |
| _count?: NestedIntNullableFilter<$PrismaModel> |
| _min?: NestedStringNullableFilter<$PrismaModel> |
| _max?: NestedStringNullableFilter<$PrismaModel> |
| } |
|
|
| export type DateTimeWithAggregatesFilter<$PrismaModel = never> = { |
| equals?: Date | string | DateTimeFieldRefInput<$PrismaModel> |
| in?: Date[] | string[] |
| notIn?: Date[] | string[] |
| lt?: Date | string | DateTimeFieldRefInput<$PrismaModel> |
| lte?: Date | string | DateTimeFieldRefInput<$PrismaModel> |
| gt?: Date | string | DateTimeFieldRefInput<$PrismaModel> |
| gte?: Date | string | DateTimeFieldRefInput<$PrismaModel> |
| not?: NestedDateTimeWithAggregatesFilter<$PrismaModel> | Date | string |
| _count?: NestedIntFilter<$PrismaModel> |
| _min?: NestedDateTimeFilter<$PrismaModel> |
| _max?: NestedDateTimeFilter<$PrismaModel> |
| } |
|
|
| export type FloatNullableFilter<$PrismaModel = never> = { |
| equals?: number | FloatFieldRefInput<$PrismaModel> | null |
| in?: number[] | null |
| notIn?: number[] | null |
| lt?: number | FloatFieldRefInput<$PrismaModel> |
| lte?: number | FloatFieldRefInput<$PrismaModel> |
| gt?: number | FloatFieldRefInput<$PrismaModel> |
| gte?: number | FloatFieldRefInput<$PrismaModel> |
| not?: NestedFloatNullableFilter<$PrismaModel> | number | null |
| } |
|
|
| export type DateTimeNullableFilter<$PrismaModel = never> = { |
| equals?: Date | string | DateTimeFieldRefInput<$PrismaModel> | null |
| in?: Date[] | string[] | null |
| notIn?: Date[] | string[] | null |
| lt?: Date | string | DateTimeFieldRefInput<$PrismaModel> |
| lte?: Date | string | DateTimeFieldRefInput<$PrismaModel> |
| gt?: Date | string | DateTimeFieldRefInput<$PrismaModel> |
| gte?: Date | string | DateTimeFieldRefInput<$PrismaModel> |
| not?: NestedDateTimeNullableFilter<$PrismaModel> | Date | string | null |
| } |
|
|
| export type AISignalListRelationFilter = { |
| every?: AISignalWhereInput |
| some?: AISignalWhereInput |
| none?: AISignalWhereInput |
| } |
|
|
| export type AISignalOrderByRelationAggregateInput = { |
| _count?: SortOrder |
| } |
|
|
| export type MarketCountOrderByAggregateInput = { |
| id?: SortOrder |
| question?: SortOrder |
| category?: SortOrder |
| countryCode?: SortOrder |
| yesPrice?: SortOrder |
| noPrice?: SortOrder |
| volumeEur?: SortOrder |
| liquidityEur?: SortOrder |
| spread?: SortOrder |
| bestBid?: SortOrder |
| bestAsk?: SortOrder |
| clobTokenId?: SortOrder |
| analyzable?: SortOrder |
| status?: SortOrder |
| closesAt?: SortOrder |
| lastSynced?: SortOrder |
| } |
|
|
| export type MarketAvgOrderByAggregateInput = { |
| yesPrice?: SortOrder |
| noPrice?: SortOrder |
| volumeEur?: SortOrder |
| liquidityEur?: SortOrder |
| spread?: SortOrder |
| bestBid?: SortOrder |
| bestAsk?: SortOrder |
| } |
|
|
| export type MarketMaxOrderByAggregateInput = { |
| id?: SortOrder |
| question?: SortOrder |
| category?: SortOrder |
| countryCode?: SortOrder |
| yesPrice?: SortOrder |
| noPrice?: SortOrder |
| volumeEur?: SortOrder |
| liquidityEur?: SortOrder |
| spread?: SortOrder |
| bestBid?: SortOrder |
| bestAsk?: SortOrder |
| clobTokenId?: SortOrder |
| analyzable?: SortOrder |
| status?: SortOrder |
| closesAt?: SortOrder |
| lastSynced?: SortOrder |
| } |
|
|
| export type MarketMinOrderByAggregateInput = { |
| id?: SortOrder |
| question?: SortOrder |
| category?: SortOrder |
| countryCode?: SortOrder |
| yesPrice?: SortOrder |
| noPrice?: SortOrder |
| volumeEur?: SortOrder |
| liquidityEur?: SortOrder |
| spread?: SortOrder |
| bestBid?: SortOrder |
| bestAsk?: SortOrder |
| clobTokenId?: SortOrder |
| analyzable?: SortOrder |
| status?: SortOrder |
| closesAt?: SortOrder |
| lastSynced?: SortOrder |
| } |
|
|
| export type MarketSumOrderByAggregateInput = { |
| yesPrice?: SortOrder |
| noPrice?: SortOrder |
| volumeEur?: SortOrder |
| liquidityEur?: SortOrder |
| spread?: SortOrder |
| bestBid?: SortOrder |
| bestAsk?: SortOrder |
| } |
|
|
| export type FloatNullableWithAggregatesFilter<$PrismaModel = never> = { |
| equals?: number | FloatFieldRefInput<$PrismaModel> | null |
| in?: number[] | null |
| notIn?: number[] | null |
| lt?: number | FloatFieldRefInput<$PrismaModel> |
| lte?: number | FloatFieldRefInput<$PrismaModel> |
| gt?: number | FloatFieldRefInput<$PrismaModel> |
| gte?: number | FloatFieldRefInput<$PrismaModel> |
| not?: NestedFloatNullableWithAggregatesFilter<$PrismaModel> | number | null |
| _count?: NestedIntNullableFilter<$PrismaModel> |
| _avg?: NestedFloatNullableFilter<$PrismaModel> |
| _sum?: NestedFloatNullableFilter<$PrismaModel> |
| _min?: NestedFloatNullableFilter<$PrismaModel> |
| _max?: NestedFloatNullableFilter<$PrismaModel> |
| } |
|
|
| export type DateTimeNullableWithAggregatesFilter<$PrismaModel = never> = { |
| equals?: Date | string | DateTimeFieldRefInput<$PrismaModel> | null |
| in?: Date[] | string[] | null |
| notIn?: Date[] | string[] | null |
| lt?: Date | string | DateTimeFieldRefInput<$PrismaModel> |
| lte?: Date | string | DateTimeFieldRefInput<$PrismaModel> |
| gt?: Date | string | DateTimeFieldRefInput<$PrismaModel> |
| gte?: Date | string | DateTimeFieldRefInput<$PrismaModel> |
| not?: NestedDateTimeNullableWithAggregatesFilter<$PrismaModel> | Date | string | null |
| _count?: NestedIntNullableFilter<$PrismaModel> |
| _min?: NestedDateTimeNullableFilter<$PrismaModel> |
| _max?: NestedDateTimeNullableFilter<$PrismaModel> |
| } |
|
|
| export type FloatFilter<$PrismaModel = never> = { |
| equals?: number | FloatFieldRefInput<$PrismaModel> |
| in?: number[] |
| notIn?: number[] |
| lt?: number | FloatFieldRefInput<$PrismaModel> |
| lte?: number | FloatFieldRefInput<$PrismaModel> |
| gt?: number | FloatFieldRefInput<$PrismaModel> |
| gte?: number | FloatFieldRefInput<$PrismaModel> |
| not?: NestedFloatFilter<$PrismaModel> | number |
| } |
|
|
| export type MarketScalarRelationFilter = { |
| is?: MarketWhereInput |
| isNot?: MarketWhereInput |
| } |
|
|
| export type AISignalCountOrderByAggregateInput = { |
| id?: SortOrder |
| marketId?: SortOrder |
| signal?: SortOrder |
| confidence?: SortOrder |
| summary?: SortOrder |
| keyRisk?: SortOrder |
| newsCount?: SortOrder |
| modelVersion?: SortOrder |
| impliedProb?: SortOrder |
| fairProb?: SortOrder |
| edgePoints?: SortOrder |
| generatedAt?: SortOrder |
| } |
|
|
| export type AISignalAvgOrderByAggregateInput = { |
| id?: SortOrder |
| confidence?: SortOrder |
| newsCount?: SortOrder |
| impliedProb?: SortOrder |
| fairProb?: SortOrder |
| edgePoints?: SortOrder |
| } |
|
|
| export type AISignalMaxOrderByAggregateInput = { |
| id?: SortOrder |
| marketId?: SortOrder |
| signal?: SortOrder |
| confidence?: SortOrder |
| summary?: SortOrder |
| keyRisk?: SortOrder |
| newsCount?: SortOrder |
| modelVersion?: SortOrder |
| impliedProb?: SortOrder |
| fairProb?: SortOrder |
| edgePoints?: SortOrder |
| generatedAt?: SortOrder |
| } |
|
|
| export type AISignalMinOrderByAggregateInput = { |
| id?: SortOrder |
| marketId?: SortOrder |
| signal?: SortOrder |
| confidence?: SortOrder |
| summary?: SortOrder |
| keyRisk?: SortOrder |
| newsCount?: SortOrder |
| modelVersion?: SortOrder |
| impliedProb?: SortOrder |
| fairProb?: SortOrder |
| edgePoints?: SortOrder |
| generatedAt?: SortOrder |
| } |
|
|
| export type AISignalSumOrderByAggregateInput = { |
| id?: SortOrder |
| confidence?: SortOrder |
| newsCount?: SortOrder |
| impliedProb?: SortOrder |
| fairProb?: SortOrder |
| edgePoints?: SortOrder |
| } |
|
|
| export type FloatWithAggregatesFilter<$PrismaModel = never> = { |
| equals?: number | FloatFieldRefInput<$PrismaModel> |
| in?: number[] |
| notIn?: number[] |
| lt?: number | FloatFieldRefInput<$PrismaModel> |
| lte?: number | FloatFieldRefInput<$PrismaModel> |
| gt?: number | FloatFieldRefInput<$PrismaModel> |
| gte?: number | FloatFieldRefInput<$PrismaModel> |
| not?: NestedFloatWithAggregatesFilter<$PrismaModel> | number |
| _count?: NestedIntFilter<$PrismaModel> |
| _avg?: NestedFloatFilter<$PrismaModel> |
| _sum?: NestedFloatFilter<$PrismaModel> |
| _min?: NestedFloatFilter<$PrismaModel> |
| _max?: NestedFloatFilter<$PrismaModel> |
| } |
|
|
| export type UserScalarRelationFilter = { |
| is?: UserWhereInput |
| isNot?: UserWhereInput |
| } |
|
|
| export type PositionCountOrderByAggregateInput = { |
| id?: SortOrder |
| userId?: SortOrder |
| marketId?: SortOrder |
| outcome?: SortOrder |
| amountEur?: SortOrder |
| entryPrice?: SortOrder |
| currentPrice?: SortOrder |
| pnl?: SortOrder |
| kellyFraction?: SortOrder |
| status?: SortOrder |
| openedAt?: SortOrder |
| closedAt?: SortOrder |
| } |
|
|
| export type PositionAvgOrderByAggregateInput = { |
| id?: SortOrder |
| userId?: SortOrder |
| amountEur?: SortOrder |
| entryPrice?: SortOrder |
| currentPrice?: SortOrder |
| pnl?: SortOrder |
| kellyFraction?: SortOrder |
| } |
|
|
| export type PositionMaxOrderByAggregateInput = { |
| id?: SortOrder |
| userId?: SortOrder |
| marketId?: SortOrder |
| outcome?: SortOrder |
| amountEur?: SortOrder |
| entryPrice?: SortOrder |
| currentPrice?: SortOrder |
| pnl?: SortOrder |
| kellyFraction?: SortOrder |
| status?: SortOrder |
| openedAt?: SortOrder |
| closedAt?: SortOrder |
| } |
|
|
| export type PositionMinOrderByAggregateInput = { |
| id?: SortOrder |
| userId?: SortOrder |
| marketId?: SortOrder |
| outcome?: SortOrder |
| amountEur?: SortOrder |
| entryPrice?: SortOrder |
| currentPrice?: SortOrder |
| pnl?: SortOrder |
| kellyFraction?: SortOrder |
| status?: SortOrder |
| openedAt?: SortOrder |
| closedAt?: SortOrder |
| } |
|
|
| export type PositionSumOrderByAggregateInput = { |
| id?: SortOrder |
| userId?: SortOrder |
| amountEur?: SortOrder |
| entryPrice?: SortOrder |
| currentPrice?: SortOrder |
| pnl?: SortOrder |
| kellyFraction?: SortOrder |
| } |
|
|
| export type WatchlistUserIdMarketIdCompoundUniqueInput = { |
| userId: number |
| marketId: string |
| } |
|
|
| export type WatchlistCountOrderByAggregateInput = { |
| id?: SortOrder |
| userId?: SortOrder |
| marketId?: SortOrder |
| alertThreshold?: SortOrder |
| createdAt?: SortOrder |
| } |
|
|
| export type WatchlistAvgOrderByAggregateInput = { |
| id?: SortOrder |
| userId?: SortOrder |
| alertThreshold?: SortOrder |
| } |
|
|
| export type WatchlistMaxOrderByAggregateInput = { |
| id?: SortOrder |
| userId?: SortOrder |
| marketId?: SortOrder |
| alertThreshold?: SortOrder |
| createdAt?: SortOrder |
| } |
|
|
| export type WatchlistMinOrderByAggregateInput = { |
| id?: SortOrder |
| userId?: SortOrder |
| marketId?: SortOrder |
| alertThreshold?: SortOrder |
| createdAt?: SortOrder |
| } |
|
|
| export type WatchlistSumOrderByAggregateInput = { |
| id?: SortOrder |
| userId?: SortOrder |
| alertThreshold?: SortOrder |
| } |
|
|
| export type AlertCountOrderByAggregateInput = { |
| id?: SortOrder |
| userId?: SortOrder |
| marketId?: SortOrder |
| type?: SortOrder |
| message?: SortOrder |
| sentAt?: SortOrder |
| } |
|
|
| export type AlertAvgOrderByAggregateInput = { |
| id?: SortOrder |
| userId?: SortOrder |
| } |
|
|
| export type AlertMaxOrderByAggregateInput = { |
| id?: SortOrder |
| userId?: SortOrder |
| marketId?: SortOrder |
| type?: SortOrder |
| message?: SortOrder |
| sentAt?: SortOrder |
| } |
|
|
| export type AlertMinOrderByAggregateInput = { |
| id?: SortOrder |
| userId?: SortOrder |
| marketId?: SortOrder |
| type?: SortOrder |
| message?: SortOrder |
| sentAt?: SortOrder |
| } |
|
|
| export type AlertSumOrderByAggregateInput = { |
| id?: SortOrder |
| userId?: SortOrder |
| } |
|
|
| export type PositionCreateNestedManyWithoutUserInput = { |
| create?: XOR<PositionCreateWithoutUserInput, PositionUncheckedCreateWithoutUserInput> | PositionCreateWithoutUserInput[] | PositionUncheckedCreateWithoutUserInput[] |
| connectOrCreate?: PositionCreateOrConnectWithoutUserInput | PositionCreateOrConnectWithoutUserInput[] |
| createMany?: PositionCreateManyUserInputEnvelope |
| connect?: PositionWhereUniqueInput | PositionWhereUniqueInput[] |
| } |
|
|
| export type WatchlistCreateNestedManyWithoutUserInput = { |
| create?: XOR<WatchlistCreateWithoutUserInput, WatchlistUncheckedCreateWithoutUserInput> | WatchlistCreateWithoutUserInput[] | WatchlistUncheckedCreateWithoutUserInput[] |
| connectOrCreate?: WatchlistCreateOrConnectWithoutUserInput | WatchlistCreateOrConnectWithoutUserInput[] |
| createMany?: WatchlistCreateManyUserInputEnvelope |
| connect?: WatchlistWhereUniqueInput | WatchlistWhereUniqueInput[] |
| } |
|
|
| export type AlertCreateNestedManyWithoutUserInput = { |
| create?: XOR<AlertCreateWithoutUserInput, AlertUncheckedCreateWithoutUserInput> | AlertCreateWithoutUserInput[] | AlertUncheckedCreateWithoutUserInput[] |
| connectOrCreate?: AlertCreateOrConnectWithoutUserInput | AlertCreateOrConnectWithoutUserInput[] |
| createMany?: AlertCreateManyUserInputEnvelope |
| connect?: AlertWhereUniqueInput | AlertWhereUniqueInput[] |
| } |
|
|
| export type PositionUncheckedCreateNestedManyWithoutUserInput = { |
| create?: XOR<PositionCreateWithoutUserInput, PositionUncheckedCreateWithoutUserInput> | PositionCreateWithoutUserInput[] | PositionUncheckedCreateWithoutUserInput[] |
| connectOrCreate?: PositionCreateOrConnectWithoutUserInput | PositionCreateOrConnectWithoutUserInput[] |
| createMany?: PositionCreateManyUserInputEnvelope |
| connect?: PositionWhereUniqueInput | PositionWhereUniqueInput[] |
| } |
|
|
| export type WatchlistUncheckedCreateNestedManyWithoutUserInput = { |
| create?: XOR<WatchlistCreateWithoutUserInput, WatchlistUncheckedCreateWithoutUserInput> | WatchlistCreateWithoutUserInput[] | WatchlistUncheckedCreateWithoutUserInput[] |
| connectOrCreate?: WatchlistCreateOrConnectWithoutUserInput | WatchlistCreateOrConnectWithoutUserInput[] |
| createMany?: WatchlistCreateManyUserInputEnvelope |
| connect?: WatchlistWhereUniqueInput | WatchlistWhereUniqueInput[] |
| } |
|
|
| export type AlertUncheckedCreateNestedManyWithoutUserInput = { |
| create?: XOR<AlertCreateWithoutUserInput, AlertUncheckedCreateWithoutUserInput> | AlertCreateWithoutUserInput[] | AlertUncheckedCreateWithoutUserInput[] |
| connectOrCreate?: AlertCreateOrConnectWithoutUserInput | AlertCreateOrConnectWithoutUserInput[] |
| createMany?: AlertCreateManyUserInputEnvelope |
| connect?: AlertWhereUniqueInput | AlertWhereUniqueInput[] |
| } |
|
|
| export type StringFieldUpdateOperationsInput = { |
| set?: string |
| } |
|
|
| export type BoolFieldUpdateOperationsInput = { |
| set?: boolean |
| } |
|
|
| export type NullableStringFieldUpdateOperationsInput = { |
| set?: string | null |
| } |
|
|
| export type DateTimeFieldUpdateOperationsInput = { |
| set?: Date | string |
| } |
|
|
| export type PositionUpdateManyWithoutUserNestedInput = { |
| create?: XOR<PositionCreateWithoutUserInput, PositionUncheckedCreateWithoutUserInput> | PositionCreateWithoutUserInput[] | PositionUncheckedCreateWithoutUserInput[] |
| connectOrCreate?: PositionCreateOrConnectWithoutUserInput | PositionCreateOrConnectWithoutUserInput[] |
| upsert?: PositionUpsertWithWhereUniqueWithoutUserInput | PositionUpsertWithWhereUniqueWithoutUserInput[] |
| createMany?: PositionCreateManyUserInputEnvelope |
| set?: PositionWhereUniqueInput | PositionWhereUniqueInput[] |
| disconnect?: PositionWhereUniqueInput | PositionWhereUniqueInput[] |
| delete?: PositionWhereUniqueInput | PositionWhereUniqueInput[] |
| connect?: PositionWhereUniqueInput | PositionWhereUniqueInput[] |
| update?: PositionUpdateWithWhereUniqueWithoutUserInput | PositionUpdateWithWhereUniqueWithoutUserInput[] |
| updateMany?: PositionUpdateManyWithWhereWithoutUserInput | PositionUpdateManyWithWhereWithoutUserInput[] |
| deleteMany?: PositionScalarWhereInput | PositionScalarWhereInput[] |
| } |
|
|
| export type WatchlistUpdateManyWithoutUserNestedInput = { |
| create?: XOR<WatchlistCreateWithoutUserInput, WatchlistUncheckedCreateWithoutUserInput> | WatchlistCreateWithoutUserInput[] | WatchlistUncheckedCreateWithoutUserInput[] |
| connectOrCreate?: WatchlistCreateOrConnectWithoutUserInput | WatchlistCreateOrConnectWithoutUserInput[] |
| upsert?: WatchlistUpsertWithWhereUniqueWithoutUserInput | WatchlistUpsertWithWhereUniqueWithoutUserInput[] |
| createMany?: WatchlistCreateManyUserInputEnvelope |
| set?: WatchlistWhereUniqueInput | WatchlistWhereUniqueInput[] |
| disconnect?: WatchlistWhereUniqueInput | WatchlistWhereUniqueInput[] |
| delete?: WatchlistWhereUniqueInput | WatchlistWhereUniqueInput[] |
| connect?: WatchlistWhereUniqueInput | WatchlistWhereUniqueInput[] |
| update?: WatchlistUpdateWithWhereUniqueWithoutUserInput | WatchlistUpdateWithWhereUniqueWithoutUserInput[] |
| updateMany?: WatchlistUpdateManyWithWhereWithoutUserInput | WatchlistUpdateManyWithWhereWithoutUserInput[] |
| deleteMany?: WatchlistScalarWhereInput | WatchlistScalarWhereInput[] |
| } |
|
|
| export type AlertUpdateManyWithoutUserNestedInput = { |
| create?: XOR<AlertCreateWithoutUserInput, AlertUncheckedCreateWithoutUserInput> | AlertCreateWithoutUserInput[] | AlertUncheckedCreateWithoutUserInput[] |
| connectOrCreate?: AlertCreateOrConnectWithoutUserInput | AlertCreateOrConnectWithoutUserInput[] |
| upsert?: AlertUpsertWithWhereUniqueWithoutUserInput | AlertUpsertWithWhereUniqueWithoutUserInput[] |
| createMany?: AlertCreateManyUserInputEnvelope |
| set?: AlertWhereUniqueInput | AlertWhereUniqueInput[] |
| disconnect?: AlertWhereUniqueInput | AlertWhereUniqueInput[] |
| delete?: AlertWhereUniqueInput | AlertWhereUniqueInput[] |
| connect?: AlertWhereUniqueInput | AlertWhereUniqueInput[] |
| update?: AlertUpdateWithWhereUniqueWithoutUserInput | AlertUpdateWithWhereUniqueWithoutUserInput[] |
| updateMany?: AlertUpdateManyWithWhereWithoutUserInput | AlertUpdateManyWithWhereWithoutUserInput[] |
| deleteMany?: AlertScalarWhereInput | AlertScalarWhereInput[] |
| } |
|
|
| export type IntFieldUpdateOperationsInput = { |
| set?: number |
| increment?: number |
| decrement?: number |
| multiply?: number |
| divide?: number |
| } |
|
|
| export type PositionUncheckedUpdateManyWithoutUserNestedInput = { |
| create?: XOR<PositionCreateWithoutUserInput, PositionUncheckedCreateWithoutUserInput> | PositionCreateWithoutUserInput[] | PositionUncheckedCreateWithoutUserInput[] |
| connectOrCreate?: PositionCreateOrConnectWithoutUserInput | PositionCreateOrConnectWithoutUserInput[] |
| upsert?: PositionUpsertWithWhereUniqueWithoutUserInput | PositionUpsertWithWhereUniqueWithoutUserInput[] |
| createMany?: PositionCreateManyUserInputEnvelope |
| set?: PositionWhereUniqueInput | PositionWhereUniqueInput[] |
| disconnect?: PositionWhereUniqueInput | PositionWhereUniqueInput[] |
| delete?: PositionWhereUniqueInput | PositionWhereUniqueInput[] |
| connect?: PositionWhereUniqueInput | PositionWhereUniqueInput[] |
| update?: PositionUpdateWithWhereUniqueWithoutUserInput | PositionUpdateWithWhereUniqueWithoutUserInput[] |
| updateMany?: PositionUpdateManyWithWhereWithoutUserInput | PositionUpdateManyWithWhereWithoutUserInput[] |
| deleteMany?: PositionScalarWhereInput | PositionScalarWhereInput[] |
| } |
|
|
| export type WatchlistUncheckedUpdateManyWithoutUserNestedInput = { |
| create?: XOR<WatchlistCreateWithoutUserInput, WatchlistUncheckedCreateWithoutUserInput> | WatchlistCreateWithoutUserInput[] | WatchlistUncheckedCreateWithoutUserInput[] |
| connectOrCreate?: WatchlistCreateOrConnectWithoutUserInput | WatchlistCreateOrConnectWithoutUserInput[] |
| upsert?: WatchlistUpsertWithWhereUniqueWithoutUserInput | WatchlistUpsertWithWhereUniqueWithoutUserInput[] |
| createMany?: WatchlistCreateManyUserInputEnvelope |
| set?: WatchlistWhereUniqueInput | WatchlistWhereUniqueInput[] |
| disconnect?: WatchlistWhereUniqueInput | WatchlistWhereUniqueInput[] |
| delete?: WatchlistWhereUniqueInput | WatchlistWhereUniqueInput[] |
| connect?: WatchlistWhereUniqueInput | WatchlistWhereUniqueInput[] |
| update?: WatchlistUpdateWithWhereUniqueWithoutUserInput | WatchlistUpdateWithWhereUniqueWithoutUserInput[] |
| updateMany?: WatchlistUpdateManyWithWhereWithoutUserInput | WatchlistUpdateManyWithWhereWithoutUserInput[] |
| deleteMany?: WatchlistScalarWhereInput | WatchlistScalarWhereInput[] |
| } |
|
|
| export type AlertUncheckedUpdateManyWithoutUserNestedInput = { |
| create?: XOR<AlertCreateWithoutUserInput, AlertUncheckedCreateWithoutUserInput> | AlertCreateWithoutUserInput[] | AlertUncheckedCreateWithoutUserInput[] |
| connectOrCreate?: AlertCreateOrConnectWithoutUserInput | AlertCreateOrConnectWithoutUserInput[] |
| upsert?: AlertUpsertWithWhereUniqueWithoutUserInput | AlertUpsertWithWhereUniqueWithoutUserInput[] |
| createMany?: AlertCreateManyUserInputEnvelope |
| set?: AlertWhereUniqueInput | AlertWhereUniqueInput[] |
| disconnect?: AlertWhereUniqueInput | AlertWhereUniqueInput[] |
| delete?: AlertWhereUniqueInput | AlertWhereUniqueInput[] |
| connect?: AlertWhereUniqueInput | AlertWhereUniqueInput[] |
| update?: AlertUpdateWithWhereUniqueWithoutUserInput | AlertUpdateWithWhereUniqueWithoutUserInput[] |
| updateMany?: AlertUpdateManyWithWhereWithoutUserInput | AlertUpdateManyWithWhereWithoutUserInput[] |
| deleteMany?: AlertScalarWhereInput | AlertScalarWhereInput[] |
| } |
|
|
| export type AISignalCreateNestedManyWithoutMarketInput = { |
| create?: XOR<AISignalCreateWithoutMarketInput, AISignalUncheckedCreateWithoutMarketInput> | AISignalCreateWithoutMarketInput[] | AISignalUncheckedCreateWithoutMarketInput[] |
| connectOrCreate?: AISignalCreateOrConnectWithoutMarketInput | AISignalCreateOrConnectWithoutMarketInput[] |
| createMany?: AISignalCreateManyMarketInputEnvelope |
| connect?: AISignalWhereUniqueInput | AISignalWhereUniqueInput[] |
| } |
|
|
| export type PositionCreateNestedManyWithoutMarketInput = { |
| create?: XOR<PositionCreateWithoutMarketInput, PositionUncheckedCreateWithoutMarketInput> | PositionCreateWithoutMarketInput[] | PositionUncheckedCreateWithoutMarketInput[] |
| connectOrCreate?: PositionCreateOrConnectWithoutMarketInput | PositionCreateOrConnectWithoutMarketInput[] |
| createMany?: PositionCreateManyMarketInputEnvelope |
| connect?: PositionWhereUniqueInput | PositionWhereUniqueInput[] |
| } |
|
|
| export type WatchlistCreateNestedManyWithoutMarketInput = { |
| create?: XOR<WatchlistCreateWithoutMarketInput, WatchlistUncheckedCreateWithoutMarketInput> | WatchlistCreateWithoutMarketInput[] | WatchlistUncheckedCreateWithoutMarketInput[] |
| connectOrCreate?: WatchlistCreateOrConnectWithoutMarketInput | WatchlistCreateOrConnectWithoutMarketInput[] |
| createMany?: WatchlistCreateManyMarketInputEnvelope |
| connect?: WatchlistWhereUniqueInput | WatchlistWhereUniqueInput[] |
| } |
|
|
| export type AlertCreateNestedManyWithoutMarketInput = { |
| create?: XOR<AlertCreateWithoutMarketInput, AlertUncheckedCreateWithoutMarketInput> | AlertCreateWithoutMarketInput[] | AlertUncheckedCreateWithoutMarketInput[] |
| connectOrCreate?: AlertCreateOrConnectWithoutMarketInput | AlertCreateOrConnectWithoutMarketInput[] |
| createMany?: AlertCreateManyMarketInputEnvelope |
| connect?: AlertWhereUniqueInput | AlertWhereUniqueInput[] |
| } |
|
|
| export type AISignalUncheckedCreateNestedManyWithoutMarketInput = { |
| create?: XOR<AISignalCreateWithoutMarketInput, AISignalUncheckedCreateWithoutMarketInput> | AISignalCreateWithoutMarketInput[] | AISignalUncheckedCreateWithoutMarketInput[] |
| connectOrCreate?: AISignalCreateOrConnectWithoutMarketInput | AISignalCreateOrConnectWithoutMarketInput[] |
| createMany?: AISignalCreateManyMarketInputEnvelope |
| connect?: AISignalWhereUniqueInput | AISignalWhereUniqueInput[] |
| } |
|
|
| export type PositionUncheckedCreateNestedManyWithoutMarketInput = { |
| create?: XOR<PositionCreateWithoutMarketInput, PositionUncheckedCreateWithoutMarketInput> | PositionCreateWithoutMarketInput[] | PositionUncheckedCreateWithoutMarketInput[] |
| connectOrCreate?: PositionCreateOrConnectWithoutMarketInput | PositionCreateOrConnectWithoutMarketInput[] |
| createMany?: PositionCreateManyMarketInputEnvelope |
| connect?: PositionWhereUniqueInput | PositionWhereUniqueInput[] |
| } |
|
|
| export type WatchlistUncheckedCreateNestedManyWithoutMarketInput = { |
| create?: XOR<WatchlistCreateWithoutMarketInput, WatchlistUncheckedCreateWithoutMarketInput> | WatchlistCreateWithoutMarketInput[] | WatchlistUncheckedCreateWithoutMarketInput[] |
| connectOrCreate?: WatchlistCreateOrConnectWithoutMarketInput | WatchlistCreateOrConnectWithoutMarketInput[] |
| createMany?: WatchlistCreateManyMarketInputEnvelope |
| connect?: WatchlistWhereUniqueInput | WatchlistWhereUniqueInput[] |
| } |
|
|
| export type AlertUncheckedCreateNestedManyWithoutMarketInput = { |
| create?: XOR<AlertCreateWithoutMarketInput, AlertUncheckedCreateWithoutMarketInput> | AlertCreateWithoutMarketInput[] | AlertUncheckedCreateWithoutMarketInput[] |
| connectOrCreate?: AlertCreateOrConnectWithoutMarketInput | AlertCreateOrConnectWithoutMarketInput[] |
| createMany?: AlertCreateManyMarketInputEnvelope |
| connect?: AlertWhereUniqueInput | AlertWhereUniqueInput[] |
| } |
|
|
| export type NullableFloatFieldUpdateOperationsInput = { |
| set?: number | null |
| increment?: number |
| decrement?: number |
| multiply?: number |
| divide?: number |
| } |
|
|
| export type NullableDateTimeFieldUpdateOperationsInput = { |
| set?: Date | string | null |
| } |
|
|
| export type AISignalUpdateManyWithoutMarketNestedInput = { |
| create?: XOR<AISignalCreateWithoutMarketInput, AISignalUncheckedCreateWithoutMarketInput> | AISignalCreateWithoutMarketInput[] | AISignalUncheckedCreateWithoutMarketInput[] |
| connectOrCreate?: AISignalCreateOrConnectWithoutMarketInput | AISignalCreateOrConnectWithoutMarketInput[] |
| upsert?: AISignalUpsertWithWhereUniqueWithoutMarketInput | AISignalUpsertWithWhereUniqueWithoutMarketInput[] |
| createMany?: AISignalCreateManyMarketInputEnvelope |
| set?: AISignalWhereUniqueInput | AISignalWhereUniqueInput[] |
| disconnect?: AISignalWhereUniqueInput | AISignalWhereUniqueInput[] |
| delete?: AISignalWhereUniqueInput | AISignalWhereUniqueInput[] |
| connect?: AISignalWhereUniqueInput | AISignalWhereUniqueInput[] |
| update?: AISignalUpdateWithWhereUniqueWithoutMarketInput | AISignalUpdateWithWhereUniqueWithoutMarketInput[] |
| updateMany?: AISignalUpdateManyWithWhereWithoutMarketInput | AISignalUpdateManyWithWhereWithoutMarketInput[] |
| deleteMany?: AISignalScalarWhereInput | AISignalScalarWhereInput[] |
| } |
|
|
| export type PositionUpdateManyWithoutMarketNestedInput = { |
| create?: XOR<PositionCreateWithoutMarketInput, PositionUncheckedCreateWithoutMarketInput> | PositionCreateWithoutMarketInput[] | PositionUncheckedCreateWithoutMarketInput[] |
| connectOrCreate?: PositionCreateOrConnectWithoutMarketInput | PositionCreateOrConnectWithoutMarketInput[] |
| upsert?: PositionUpsertWithWhereUniqueWithoutMarketInput | PositionUpsertWithWhereUniqueWithoutMarketInput[] |
| createMany?: PositionCreateManyMarketInputEnvelope |
| set?: PositionWhereUniqueInput | PositionWhereUniqueInput[] |
| disconnect?: PositionWhereUniqueInput | PositionWhereUniqueInput[] |
| delete?: PositionWhereUniqueInput | PositionWhereUniqueInput[] |
| connect?: PositionWhereUniqueInput | PositionWhereUniqueInput[] |
| update?: PositionUpdateWithWhereUniqueWithoutMarketInput | PositionUpdateWithWhereUniqueWithoutMarketInput[] |
| updateMany?: PositionUpdateManyWithWhereWithoutMarketInput | PositionUpdateManyWithWhereWithoutMarketInput[] |
| deleteMany?: PositionScalarWhereInput | PositionScalarWhereInput[] |
| } |
|
|
| export type WatchlistUpdateManyWithoutMarketNestedInput = { |
| create?: XOR<WatchlistCreateWithoutMarketInput, WatchlistUncheckedCreateWithoutMarketInput> | WatchlistCreateWithoutMarketInput[] | WatchlistUncheckedCreateWithoutMarketInput[] |
| connectOrCreate?: WatchlistCreateOrConnectWithoutMarketInput | WatchlistCreateOrConnectWithoutMarketInput[] |
| upsert?: WatchlistUpsertWithWhereUniqueWithoutMarketInput | WatchlistUpsertWithWhereUniqueWithoutMarketInput[] |
| createMany?: WatchlistCreateManyMarketInputEnvelope |
| set?: WatchlistWhereUniqueInput | WatchlistWhereUniqueInput[] |
| disconnect?: WatchlistWhereUniqueInput | WatchlistWhereUniqueInput[] |
| delete?: WatchlistWhereUniqueInput | WatchlistWhereUniqueInput[] |
| connect?: WatchlistWhereUniqueInput | WatchlistWhereUniqueInput[] |
| update?: WatchlistUpdateWithWhereUniqueWithoutMarketInput | WatchlistUpdateWithWhereUniqueWithoutMarketInput[] |
| updateMany?: WatchlistUpdateManyWithWhereWithoutMarketInput | WatchlistUpdateManyWithWhereWithoutMarketInput[] |
| deleteMany?: WatchlistScalarWhereInput | WatchlistScalarWhereInput[] |
| } |
|
|
| export type AlertUpdateManyWithoutMarketNestedInput = { |
| create?: XOR<AlertCreateWithoutMarketInput, AlertUncheckedCreateWithoutMarketInput> | AlertCreateWithoutMarketInput[] | AlertUncheckedCreateWithoutMarketInput[] |
| connectOrCreate?: AlertCreateOrConnectWithoutMarketInput | AlertCreateOrConnectWithoutMarketInput[] |
| upsert?: AlertUpsertWithWhereUniqueWithoutMarketInput | AlertUpsertWithWhereUniqueWithoutMarketInput[] |
| createMany?: AlertCreateManyMarketInputEnvelope |
| set?: AlertWhereUniqueInput | AlertWhereUniqueInput[] |
| disconnect?: AlertWhereUniqueInput | AlertWhereUniqueInput[] |
| delete?: AlertWhereUniqueInput | AlertWhereUniqueInput[] |
| connect?: AlertWhereUniqueInput | AlertWhereUniqueInput[] |
| update?: AlertUpdateWithWhereUniqueWithoutMarketInput | AlertUpdateWithWhereUniqueWithoutMarketInput[] |
| updateMany?: AlertUpdateManyWithWhereWithoutMarketInput | AlertUpdateManyWithWhereWithoutMarketInput[] |
| deleteMany?: AlertScalarWhereInput | AlertScalarWhereInput[] |
| } |
|
|
| export type AISignalUncheckedUpdateManyWithoutMarketNestedInput = { |
| create?: XOR<AISignalCreateWithoutMarketInput, AISignalUncheckedCreateWithoutMarketInput> | AISignalCreateWithoutMarketInput[] | AISignalUncheckedCreateWithoutMarketInput[] |
| connectOrCreate?: AISignalCreateOrConnectWithoutMarketInput | AISignalCreateOrConnectWithoutMarketInput[] |
| upsert?: AISignalUpsertWithWhereUniqueWithoutMarketInput | AISignalUpsertWithWhereUniqueWithoutMarketInput[] |
| createMany?: AISignalCreateManyMarketInputEnvelope |
| set?: AISignalWhereUniqueInput | AISignalWhereUniqueInput[] |
| disconnect?: AISignalWhereUniqueInput | AISignalWhereUniqueInput[] |
| delete?: AISignalWhereUniqueInput | AISignalWhereUniqueInput[] |
| connect?: AISignalWhereUniqueInput | AISignalWhereUniqueInput[] |
| update?: AISignalUpdateWithWhereUniqueWithoutMarketInput | AISignalUpdateWithWhereUniqueWithoutMarketInput[] |
| updateMany?: AISignalUpdateManyWithWhereWithoutMarketInput | AISignalUpdateManyWithWhereWithoutMarketInput[] |
| deleteMany?: AISignalScalarWhereInput | AISignalScalarWhereInput[] |
| } |
|
|
| export type PositionUncheckedUpdateManyWithoutMarketNestedInput = { |
| create?: XOR<PositionCreateWithoutMarketInput, PositionUncheckedCreateWithoutMarketInput> | PositionCreateWithoutMarketInput[] | PositionUncheckedCreateWithoutMarketInput[] |
| connectOrCreate?: PositionCreateOrConnectWithoutMarketInput | PositionCreateOrConnectWithoutMarketInput[] |
| upsert?: PositionUpsertWithWhereUniqueWithoutMarketInput | PositionUpsertWithWhereUniqueWithoutMarketInput[] |
| createMany?: PositionCreateManyMarketInputEnvelope |
| set?: PositionWhereUniqueInput | PositionWhereUniqueInput[] |
| disconnect?: PositionWhereUniqueInput | PositionWhereUniqueInput[] |
| delete?: PositionWhereUniqueInput | PositionWhereUniqueInput[] |
| connect?: PositionWhereUniqueInput | PositionWhereUniqueInput[] |
| update?: PositionUpdateWithWhereUniqueWithoutMarketInput | PositionUpdateWithWhereUniqueWithoutMarketInput[] |
| updateMany?: PositionUpdateManyWithWhereWithoutMarketInput | PositionUpdateManyWithWhereWithoutMarketInput[] |
| deleteMany?: PositionScalarWhereInput | PositionScalarWhereInput[] |
| } |
|
|
| export type WatchlistUncheckedUpdateManyWithoutMarketNestedInput = { |
| create?: XOR<WatchlistCreateWithoutMarketInput, WatchlistUncheckedCreateWithoutMarketInput> | WatchlistCreateWithoutMarketInput[] | WatchlistUncheckedCreateWithoutMarketInput[] |
| connectOrCreate?: WatchlistCreateOrConnectWithoutMarketInput | WatchlistCreateOrConnectWithoutMarketInput[] |
| upsert?: WatchlistUpsertWithWhereUniqueWithoutMarketInput | WatchlistUpsertWithWhereUniqueWithoutMarketInput[] |
| createMany?: WatchlistCreateManyMarketInputEnvelope |
| set?: WatchlistWhereUniqueInput | WatchlistWhereUniqueInput[] |
| disconnect?: WatchlistWhereUniqueInput | WatchlistWhereUniqueInput[] |
| delete?: WatchlistWhereUniqueInput | WatchlistWhereUniqueInput[] |
| connect?: WatchlistWhereUniqueInput | WatchlistWhereUniqueInput[] |
| update?: WatchlistUpdateWithWhereUniqueWithoutMarketInput | WatchlistUpdateWithWhereUniqueWithoutMarketInput[] |
| updateMany?: WatchlistUpdateManyWithWhereWithoutMarketInput | WatchlistUpdateManyWithWhereWithoutMarketInput[] |
| deleteMany?: WatchlistScalarWhereInput | WatchlistScalarWhereInput[] |
| } |
|
|
| export type AlertUncheckedUpdateManyWithoutMarketNestedInput = { |
| create?: XOR<AlertCreateWithoutMarketInput, AlertUncheckedCreateWithoutMarketInput> | AlertCreateWithoutMarketInput[] | AlertUncheckedCreateWithoutMarketInput[] |
| connectOrCreate?: AlertCreateOrConnectWithoutMarketInput | AlertCreateOrConnectWithoutMarketInput[] |
| upsert?: AlertUpsertWithWhereUniqueWithoutMarketInput | AlertUpsertWithWhereUniqueWithoutMarketInput[] |
| createMany?: AlertCreateManyMarketInputEnvelope |
| set?: AlertWhereUniqueInput | AlertWhereUniqueInput[] |
| disconnect?: AlertWhereUniqueInput | AlertWhereUniqueInput[] |
| delete?: AlertWhereUniqueInput | AlertWhereUniqueInput[] |
| connect?: AlertWhereUniqueInput | AlertWhereUniqueInput[] |
| update?: AlertUpdateWithWhereUniqueWithoutMarketInput | AlertUpdateWithWhereUniqueWithoutMarketInput[] |
| updateMany?: AlertUpdateManyWithWhereWithoutMarketInput | AlertUpdateManyWithWhereWithoutMarketInput[] |
| deleteMany?: AlertScalarWhereInput | AlertScalarWhereInput[] |
| } |
|
|
| export type MarketCreateNestedOneWithoutSignalsInput = { |
| create?: XOR<MarketCreateWithoutSignalsInput, MarketUncheckedCreateWithoutSignalsInput> |
| connectOrCreate?: MarketCreateOrConnectWithoutSignalsInput |
| connect?: MarketWhereUniqueInput |
| } |
|
|
| export type FloatFieldUpdateOperationsInput = { |
| set?: number |
| increment?: number |
| decrement?: number |
| multiply?: number |
| divide?: number |
| } |
|
|
| export type MarketUpdateOneRequiredWithoutSignalsNestedInput = { |
| create?: XOR<MarketCreateWithoutSignalsInput, MarketUncheckedCreateWithoutSignalsInput> |
| connectOrCreate?: MarketCreateOrConnectWithoutSignalsInput |
| upsert?: MarketUpsertWithoutSignalsInput |
| connect?: MarketWhereUniqueInput |
| update?: XOR<XOR<MarketUpdateToOneWithWhereWithoutSignalsInput, MarketUpdateWithoutSignalsInput>, MarketUncheckedUpdateWithoutSignalsInput> |
| } |
|
|
| export type UserCreateNestedOneWithoutPositionsInput = { |
| create?: XOR<UserCreateWithoutPositionsInput, UserUncheckedCreateWithoutPositionsInput> |
| connectOrCreate?: UserCreateOrConnectWithoutPositionsInput |
| connect?: UserWhereUniqueInput |
| } |
|
|
| export type MarketCreateNestedOneWithoutPositionsInput = { |
| create?: XOR<MarketCreateWithoutPositionsInput, MarketUncheckedCreateWithoutPositionsInput> |
| connectOrCreate?: MarketCreateOrConnectWithoutPositionsInput |
| connect?: MarketWhereUniqueInput |
| } |
|
|
| export type UserUpdateOneRequiredWithoutPositionsNestedInput = { |
| create?: XOR<UserCreateWithoutPositionsInput, UserUncheckedCreateWithoutPositionsInput> |
| connectOrCreate?: UserCreateOrConnectWithoutPositionsInput |
| upsert?: UserUpsertWithoutPositionsInput |
| connect?: UserWhereUniqueInput |
| update?: XOR<XOR<UserUpdateToOneWithWhereWithoutPositionsInput, UserUpdateWithoutPositionsInput>, UserUncheckedUpdateWithoutPositionsInput> |
| } |
|
|
| export type MarketUpdateOneRequiredWithoutPositionsNestedInput = { |
| create?: XOR<MarketCreateWithoutPositionsInput, MarketUncheckedCreateWithoutPositionsInput> |
| connectOrCreate?: MarketCreateOrConnectWithoutPositionsInput |
| upsert?: MarketUpsertWithoutPositionsInput |
| connect?: MarketWhereUniqueInput |
| update?: XOR<XOR<MarketUpdateToOneWithWhereWithoutPositionsInput, MarketUpdateWithoutPositionsInput>, MarketUncheckedUpdateWithoutPositionsInput> |
| } |
|
|
| export type UserCreateNestedOneWithoutWatchlistInput = { |
| create?: XOR<UserCreateWithoutWatchlistInput, UserUncheckedCreateWithoutWatchlistInput> |
| connectOrCreate?: UserCreateOrConnectWithoutWatchlistInput |
| connect?: UserWhereUniqueInput |
| } |
|
|
| export type MarketCreateNestedOneWithoutWatchlistInput = { |
| create?: XOR<MarketCreateWithoutWatchlistInput, MarketUncheckedCreateWithoutWatchlistInput> |
| connectOrCreate?: MarketCreateOrConnectWithoutWatchlistInput |
| connect?: MarketWhereUniqueInput |
| } |
|
|
| export type UserUpdateOneRequiredWithoutWatchlistNestedInput = { |
| create?: XOR<UserCreateWithoutWatchlistInput, UserUncheckedCreateWithoutWatchlistInput> |
| connectOrCreate?: UserCreateOrConnectWithoutWatchlistInput |
| upsert?: UserUpsertWithoutWatchlistInput |
| connect?: UserWhereUniqueInput |
| update?: XOR<XOR<UserUpdateToOneWithWhereWithoutWatchlistInput, UserUpdateWithoutWatchlistInput>, UserUncheckedUpdateWithoutWatchlistInput> |
| } |
|
|
| export type MarketUpdateOneRequiredWithoutWatchlistNestedInput = { |
| create?: XOR<MarketCreateWithoutWatchlistInput, MarketUncheckedCreateWithoutWatchlistInput> |
| connectOrCreate?: MarketCreateOrConnectWithoutWatchlistInput |
| upsert?: MarketUpsertWithoutWatchlistInput |
| connect?: MarketWhereUniqueInput |
| update?: XOR<XOR<MarketUpdateToOneWithWhereWithoutWatchlistInput, MarketUpdateWithoutWatchlistInput>, MarketUncheckedUpdateWithoutWatchlistInput> |
| } |
|
|
| export type UserCreateNestedOneWithoutAlertsInput = { |
| create?: XOR<UserCreateWithoutAlertsInput, UserUncheckedCreateWithoutAlertsInput> |
| connectOrCreate?: UserCreateOrConnectWithoutAlertsInput |
| connect?: UserWhereUniqueInput |
| } |
|
|
| export type MarketCreateNestedOneWithoutAlertsInput = { |
| create?: XOR<MarketCreateWithoutAlertsInput, MarketUncheckedCreateWithoutAlertsInput> |
| connectOrCreate?: MarketCreateOrConnectWithoutAlertsInput |
| connect?: MarketWhereUniqueInput |
| } |
|
|
| export type UserUpdateOneRequiredWithoutAlertsNestedInput = { |
| create?: XOR<UserCreateWithoutAlertsInput, UserUncheckedCreateWithoutAlertsInput> |
| connectOrCreate?: UserCreateOrConnectWithoutAlertsInput |
| upsert?: UserUpsertWithoutAlertsInput |
| connect?: UserWhereUniqueInput |
| update?: XOR<XOR<UserUpdateToOneWithWhereWithoutAlertsInput, UserUpdateWithoutAlertsInput>, UserUncheckedUpdateWithoutAlertsInput> |
| } |
|
|
| export type MarketUpdateOneRequiredWithoutAlertsNestedInput = { |
| create?: XOR<MarketCreateWithoutAlertsInput, MarketUncheckedCreateWithoutAlertsInput> |
| connectOrCreate?: MarketCreateOrConnectWithoutAlertsInput |
| upsert?: MarketUpsertWithoutAlertsInput |
| connect?: MarketWhereUniqueInput |
| update?: XOR<XOR<MarketUpdateToOneWithWhereWithoutAlertsInput, MarketUpdateWithoutAlertsInput>, MarketUncheckedUpdateWithoutAlertsInput> |
| } |
|
|
| export type NestedIntFilter<$PrismaModel = never> = { |
| equals?: number | IntFieldRefInput<$PrismaModel> |
| in?: number[] |
| notIn?: number[] |
| lt?: number | IntFieldRefInput<$PrismaModel> |
| lte?: number | IntFieldRefInput<$PrismaModel> |
| gt?: number | IntFieldRefInput<$PrismaModel> |
| gte?: number | IntFieldRefInput<$PrismaModel> |
| not?: NestedIntFilter<$PrismaModel> | number |
| } |
|
|
| export type NestedStringFilter<$PrismaModel = never> = { |
| equals?: string | StringFieldRefInput<$PrismaModel> |
| in?: string[] |
| notIn?: string[] |
| lt?: string | StringFieldRefInput<$PrismaModel> |
| lte?: string | StringFieldRefInput<$PrismaModel> |
| gt?: string | StringFieldRefInput<$PrismaModel> |
| gte?: string | StringFieldRefInput<$PrismaModel> |
| contains?: string | StringFieldRefInput<$PrismaModel> |
| startsWith?: string | StringFieldRefInput<$PrismaModel> |
| endsWith?: string | StringFieldRefInput<$PrismaModel> |
| not?: NestedStringFilter<$PrismaModel> | string |
| } |
|
|
| export type NestedBoolFilter<$PrismaModel = never> = { |
| equals?: boolean | BooleanFieldRefInput<$PrismaModel> |
| not?: NestedBoolFilter<$PrismaModel> | boolean |
| } |
|
|
| export type NestedStringNullableFilter<$PrismaModel = never> = { |
| equals?: string | StringFieldRefInput<$PrismaModel> | null |
| in?: string[] | null |
| notIn?: string[] | null |
| lt?: string | StringFieldRefInput<$PrismaModel> |
| lte?: string | StringFieldRefInput<$PrismaModel> |
| gt?: string | StringFieldRefInput<$PrismaModel> |
| gte?: string | StringFieldRefInput<$PrismaModel> |
| contains?: string | StringFieldRefInput<$PrismaModel> |
| startsWith?: string | StringFieldRefInput<$PrismaModel> |
| endsWith?: string | StringFieldRefInput<$PrismaModel> |
| not?: NestedStringNullableFilter<$PrismaModel> | string | null |
| } |
|
|
| export type NestedDateTimeFilter<$PrismaModel = never> = { |
| equals?: Date | string | DateTimeFieldRefInput<$PrismaModel> |
| in?: Date[] | string[] |
| notIn?: Date[] | string[] |
| lt?: Date | string | DateTimeFieldRefInput<$PrismaModel> |
| lte?: Date | string | DateTimeFieldRefInput<$PrismaModel> |
| gt?: Date | string | DateTimeFieldRefInput<$PrismaModel> |
| gte?: Date | string | DateTimeFieldRefInput<$PrismaModel> |
| not?: NestedDateTimeFilter<$PrismaModel> | Date | string |
| } |
|
|
| export type NestedIntWithAggregatesFilter<$PrismaModel = never> = { |
| equals?: number | IntFieldRefInput<$PrismaModel> |
| in?: number[] |
| notIn?: number[] |
| lt?: number | IntFieldRefInput<$PrismaModel> |
| lte?: number | IntFieldRefInput<$PrismaModel> |
| gt?: number | IntFieldRefInput<$PrismaModel> |
| gte?: number | IntFieldRefInput<$PrismaModel> |
| not?: NestedIntWithAggregatesFilter<$PrismaModel> | number |
| _count?: NestedIntFilter<$PrismaModel> |
| _avg?: NestedFloatFilter<$PrismaModel> |
| _sum?: NestedIntFilter<$PrismaModel> |
| _min?: NestedIntFilter<$PrismaModel> |
| _max?: NestedIntFilter<$PrismaModel> |
| } |
|
|
| export type NestedFloatFilter<$PrismaModel = never> = { |
| equals?: number | FloatFieldRefInput<$PrismaModel> |
| in?: number[] |
| notIn?: number[] |
| lt?: number | FloatFieldRefInput<$PrismaModel> |
| lte?: number | FloatFieldRefInput<$PrismaModel> |
| gt?: number | FloatFieldRefInput<$PrismaModel> |
| gte?: number | FloatFieldRefInput<$PrismaModel> |
| not?: NestedFloatFilter<$PrismaModel> | number |
| } |
|
|
| export type NestedStringWithAggregatesFilter<$PrismaModel = never> = { |
| equals?: string | StringFieldRefInput<$PrismaModel> |
| in?: string[] |
| notIn?: string[] |
| lt?: string | StringFieldRefInput<$PrismaModel> |
| lte?: string | StringFieldRefInput<$PrismaModel> |
| gt?: string | StringFieldRefInput<$PrismaModel> |
| gte?: string | StringFieldRefInput<$PrismaModel> |
| contains?: string | StringFieldRefInput<$PrismaModel> |
| startsWith?: string | StringFieldRefInput<$PrismaModel> |
| endsWith?: string | StringFieldRefInput<$PrismaModel> |
| not?: NestedStringWithAggregatesFilter<$PrismaModel> | string |
| _count?: NestedIntFilter<$PrismaModel> |
| _min?: NestedStringFilter<$PrismaModel> |
| _max?: NestedStringFilter<$PrismaModel> |
| } |
|
|
| export type NestedBoolWithAggregatesFilter<$PrismaModel = never> = { |
| equals?: boolean | BooleanFieldRefInput<$PrismaModel> |
| not?: NestedBoolWithAggregatesFilter<$PrismaModel> | boolean |
| _count?: NestedIntFilter<$PrismaModel> |
| _min?: NestedBoolFilter<$PrismaModel> |
| _max?: NestedBoolFilter<$PrismaModel> |
| } |
|
|
| export type NestedStringNullableWithAggregatesFilter<$PrismaModel = never> = { |
| equals?: string | StringFieldRefInput<$PrismaModel> | null |
| in?: string[] | null |
| notIn?: string[] | null |
| lt?: string | StringFieldRefInput<$PrismaModel> |
| lte?: string | StringFieldRefInput<$PrismaModel> |
| gt?: string | StringFieldRefInput<$PrismaModel> |
| gte?: string | StringFieldRefInput<$PrismaModel> |
| contains?: string | StringFieldRefInput<$PrismaModel> |
| startsWith?: string | StringFieldRefInput<$PrismaModel> |
| endsWith?: string | StringFieldRefInput<$PrismaModel> |
| not?: NestedStringNullableWithAggregatesFilter<$PrismaModel> | string | null |
| _count?: NestedIntNullableFilter<$PrismaModel> |
| _min?: NestedStringNullableFilter<$PrismaModel> |
| _max?: NestedStringNullableFilter<$PrismaModel> |
| } |
|
|
| export type NestedIntNullableFilter<$PrismaModel = never> = { |
| equals?: number | IntFieldRefInput<$PrismaModel> | null |
| in?: number[] | null |
| notIn?: number[] | null |
| lt?: number | IntFieldRefInput<$PrismaModel> |
| lte?: number | IntFieldRefInput<$PrismaModel> |
| gt?: number | IntFieldRefInput<$PrismaModel> |
| gte?: number | IntFieldRefInput<$PrismaModel> |
| not?: NestedIntNullableFilter<$PrismaModel> | number | null |
| } |
|
|
| export type NestedDateTimeWithAggregatesFilter<$PrismaModel = never> = { |
| equals?: Date | string | DateTimeFieldRefInput<$PrismaModel> |
| in?: Date[] | string[] |
| notIn?: Date[] | string[] |
| lt?: Date | string | DateTimeFieldRefInput<$PrismaModel> |
| lte?: Date | string | DateTimeFieldRefInput<$PrismaModel> |
| gt?: Date | string | DateTimeFieldRefInput<$PrismaModel> |
| gte?: Date | string | DateTimeFieldRefInput<$PrismaModel> |
| not?: NestedDateTimeWithAggregatesFilter<$PrismaModel> | Date | string |
| _count?: NestedIntFilter<$PrismaModel> |
| _min?: NestedDateTimeFilter<$PrismaModel> |
| _max?: NestedDateTimeFilter<$PrismaModel> |
| } |
|
|
| export type NestedFloatNullableFilter<$PrismaModel = never> = { |
| equals?: number | FloatFieldRefInput<$PrismaModel> | null |
| in?: number[] | null |
| notIn?: number[] | null |
| lt?: number | FloatFieldRefInput<$PrismaModel> |
| lte?: number | FloatFieldRefInput<$PrismaModel> |
| gt?: number | FloatFieldRefInput<$PrismaModel> |
| gte?: number | FloatFieldRefInput<$PrismaModel> |
| not?: NestedFloatNullableFilter<$PrismaModel> | number | null |
| } |
|
|
| export type NestedDateTimeNullableFilter<$PrismaModel = never> = { |
| equals?: Date | string | DateTimeFieldRefInput<$PrismaModel> | null |
| in?: Date[] | string[] | null |
| notIn?: Date[] | string[] | null |
| lt?: Date | string | DateTimeFieldRefInput<$PrismaModel> |
| lte?: Date | string | DateTimeFieldRefInput<$PrismaModel> |
| gt?: Date | string | DateTimeFieldRefInput<$PrismaModel> |
| gte?: Date | string | DateTimeFieldRefInput<$PrismaModel> |
| not?: NestedDateTimeNullableFilter<$PrismaModel> | Date | string | null |
| } |
|
|
| export type NestedFloatNullableWithAggregatesFilter<$PrismaModel = never> = { |
| equals?: number | FloatFieldRefInput<$PrismaModel> | null |
| in?: number[] | null |
| notIn?: number[] | null |
| lt?: number | FloatFieldRefInput<$PrismaModel> |
| lte?: number | FloatFieldRefInput<$PrismaModel> |
| gt?: number | FloatFieldRefInput<$PrismaModel> |
| gte?: number | FloatFieldRefInput<$PrismaModel> |
| not?: NestedFloatNullableWithAggregatesFilter<$PrismaModel> | number | null |
| _count?: NestedIntNullableFilter<$PrismaModel> |
| _avg?: NestedFloatNullableFilter<$PrismaModel> |
| _sum?: NestedFloatNullableFilter<$PrismaModel> |
| _min?: NestedFloatNullableFilter<$PrismaModel> |
| _max?: NestedFloatNullableFilter<$PrismaModel> |
| } |
|
|
| export type NestedDateTimeNullableWithAggregatesFilter<$PrismaModel = never> = { |
| equals?: Date | string | DateTimeFieldRefInput<$PrismaModel> | null |
| in?: Date[] | string[] | null |
| notIn?: Date[] | string[] | null |
| lt?: Date | string | DateTimeFieldRefInput<$PrismaModel> |
| lte?: Date | string | DateTimeFieldRefInput<$PrismaModel> |
| gt?: Date | string | DateTimeFieldRefInput<$PrismaModel> |
| gte?: Date | string | DateTimeFieldRefInput<$PrismaModel> |
| not?: NestedDateTimeNullableWithAggregatesFilter<$PrismaModel> | Date | string | null |
| _count?: NestedIntNullableFilter<$PrismaModel> |
| _min?: NestedDateTimeNullableFilter<$PrismaModel> |
| _max?: NestedDateTimeNullableFilter<$PrismaModel> |
| } |
|
|
| export type NestedFloatWithAggregatesFilter<$PrismaModel = never> = { |
| equals?: number | FloatFieldRefInput<$PrismaModel> |
| in?: number[] |
| notIn?: number[] |
| lt?: number | FloatFieldRefInput<$PrismaModel> |
| lte?: number | FloatFieldRefInput<$PrismaModel> |
| gt?: number | FloatFieldRefInput<$PrismaModel> |
| gte?: number | FloatFieldRefInput<$PrismaModel> |
| not?: NestedFloatWithAggregatesFilter<$PrismaModel> | number |
| _count?: NestedIntFilter<$PrismaModel> |
| _avg?: NestedFloatFilter<$PrismaModel> |
| _sum?: NestedFloatFilter<$PrismaModel> |
| _min?: NestedFloatFilter<$PrismaModel> |
| _max?: NestedFloatFilter<$PrismaModel> |
| } |
|
|
| export type PositionCreateWithoutUserInput = { |
| outcome: string |
| amountEur: number |
| entryPrice: number |
| currentPrice?: number | null |
| pnl?: number |
| kellyFraction?: number | null |
| status?: string |
| openedAt?: Date | string |
| closedAt?: Date | string | null |
| market: MarketCreateNestedOneWithoutPositionsInput |
| } |
|
|
| export type PositionUncheckedCreateWithoutUserInput = { |
| id?: number |
| marketId: string |
| outcome: string |
| amountEur: number |
| entryPrice: number |
| currentPrice?: number | null |
| pnl?: number |
| kellyFraction?: number | null |
| status?: string |
| openedAt?: Date | string |
| closedAt?: Date | string | null |
| } |
|
|
| export type PositionCreateOrConnectWithoutUserInput = { |
| where: PositionWhereUniqueInput |
| create: XOR<PositionCreateWithoutUserInput, PositionUncheckedCreateWithoutUserInput> |
| } |
|
|
| export type PositionCreateManyUserInputEnvelope = { |
| data: PositionCreateManyUserInput | PositionCreateManyUserInput[] |
| } |
|
|
| export type WatchlistCreateWithoutUserInput = { |
| alertThreshold?: number | null |
| createdAt?: Date | string |
| market: MarketCreateNestedOneWithoutWatchlistInput |
| } |
|
|
| export type WatchlistUncheckedCreateWithoutUserInput = { |
| id?: number |
| marketId: string |
| alertThreshold?: number | null |
| createdAt?: Date | string |
| } |
|
|
| export type WatchlistCreateOrConnectWithoutUserInput = { |
| where: WatchlistWhereUniqueInput |
| create: XOR<WatchlistCreateWithoutUserInput, WatchlistUncheckedCreateWithoutUserInput> |
| } |
|
|
| export type WatchlistCreateManyUserInputEnvelope = { |
| data: WatchlistCreateManyUserInput | WatchlistCreateManyUserInput[] |
| } |
|
|
| export type AlertCreateWithoutUserInput = { |
| type: string |
| message: string |
| sentAt?: Date | string |
| market: MarketCreateNestedOneWithoutAlertsInput |
| } |
|
|
| export type AlertUncheckedCreateWithoutUserInput = { |
| id?: number |
| marketId: string |
| type: string |
| message: string |
| sentAt?: Date | string |
| } |
|
|
| export type AlertCreateOrConnectWithoutUserInput = { |
| where: AlertWhereUniqueInput |
| create: XOR<AlertCreateWithoutUserInput, AlertUncheckedCreateWithoutUserInput> |
| } |
|
|
| export type AlertCreateManyUserInputEnvelope = { |
| data: AlertCreateManyUserInput | AlertCreateManyUserInput[] |
| } |
|
|
| export type PositionUpsertWithWhereUniqueWithoutUserInput = { |
| where: PositionWhereUniqueInput |
| update: XOR<PositionUpdateWithoutUserInput, PositionUncheckedUpdateWithoutUserInput> |
| create: XOR<PositionCreateWithoutUserInput, PositionUncheckedCreateWithoutUserInput> |
| } |
|
|
| export type PositionUpdateWithWhereUniqueWithoutUserInput = { |
| where: PositionWhereUniqueInput |
| data: XOR<PositionUpdateWithoutUserInput, PositionUncheckedUpdateWithoutUserInput> |
| } |
|
|
| export type PositionUpdateManyWithWhereWithoutUserInput = { |
| where: PositionScalarWhereInput |
| data: XOR<PositionUpdateManyMutationInput, PositionUncheckedUpdateManyWithoutUserInput> |
| } |
|
|
| export type PositionScalarWhereInput = { |
| AND?: PositionScalarWhereInput | PositionScalarWhereInput[] |
| OR?: PositionScalarWhereInput[] |
| NOT?: PositionScalarWhereInput | PositionScalarWhereInput[] |
| id?: IntFilter<"Position"> | number |
| userId?: IntFilter<"Position"> | number |
| marketId?: StringFilter<"Position"> | string |
| outcome?: StringFilter<"Position"> | string |
| amountEur?: FloatFilter<"Position"> | number |
| entryPrice?: FloatFilter<"Position"> | number |
| currentPrice?: FloatNullableFilter<"Position"> | number | null |
| pnl?: FloatFilter<"Position"> | number |
| kellyFraction?: FloatNullableFilter<"Position"> | number | null |
| status?: StringFilter<"Position"> | string |
| openedAt?: DateTimeFilter<"Position"> | Date | string |
| closedAt?: DateTimeNullableFilter<"Position"> | Date | string | null |
| } |
|
|
| export type WatchlistUpsertWithWhereUniqueWithoutUserInput = { |
| where: WatchlistWhereUniqueInput |
| update: XOR<WatchlistUpdateWithoutUserInput, WatchlistUncheckedUpdateWithoutUserInput> |
| create: XOR<WatchlistCreateWithoutUserInput, WatchlistUncheckedCreateWithoutUserInput> |
| } |
|
|
| export type WatchlistUpdateWithWhereUniqueWithoutUserInput = { |
| where: WatchlistWhereUniqueInput |
| data: XOR<WatchlistUpdateWithoutUserInput, WatchlistUncheckedUpdateWithoutUserInput> |
| } |
|
|
| export type WatchlistUpdateManyWithWhereWithoutUserInput = { |
| where: WatchlistScalarWhereInput |
| data: XOR<WatchlistUpdateManyMutationInput, WatchlistUncheckedUpdateManyWithoutUserInput> |
| } |
|
|
| export type WatchlistScalarWhereInput = { |
| AND?: WatchlistScalarWhereInput | WatchlistScalarWhereInput[] |
| OR?: WatchlistScalarWhereInput[] |
| NOT?: WatchlistScalarWhereInput | WatchlistScalarWhereInput[] |
| id?: IntFilter<"Watchlist"> | number |
| userId?: IntFilter<"Watchlist"> | number |
| marketId?: StringFilter<"Watchlist"> | string |
| alertThreshold?: FloatNullableFilter<"Watchlist"> | number | null |
| createdAt?: DateTimeFilter<"Watchlist"> | Date | string |
| } |
|
|
| export type AlertUpsertWithWhereUniqueWithoutUserInput = { |
| where: AlertWhereUniqueInput |
| update: XOR<AlertUpdateWithoutUserInput, AlertUncheckedUpdateWithoutUserInput> |
| create: XOR<AlertCreateWithoutUserInput, AlertUncheckedCreateWithoutUserInput> |
| } |
|
|
| export type AlertUpdateWithWhereUniqueWithoutUserInput = { |
| where: AlertWhereUniqueInput |
| data: XOR<AlertUpdateWithoutUserInput, AlertUncheckedUpdateWithoutUserInput> |
| } |
|
|
| export type AlertUpdateManyWithWhereWithoutUserInput = { |
| where: AlertScalarWhereInput |
| data: XOR<AlertUpdateManyMutationInput, AlertUncheckedUpdateManyWithoutUserInput> |
| } |
|
|
| export type AlertScalarWhereInput = { |
| AND?: AlertScalarWhereInput | AlertScalarWhereInput[] |
| OR?: AlertScalarWhereInput[] |
| NOT?: AlertScalarWhereInput | AlertScalarWhereInput[] |
| id?: IntFilter<"Alert"> | number |
| userId?: IntFilter<"Alert"> | number |
| marketId?: StringFilter<"Alert"> | string |
| type?: StringFilter<"Alert"> | string |
| message?: StringFilter<"Alert"> | string |
| sentAt?: DateTimeFilter<"Alert"> | Date | string |
| } |
|
|
| export type AISignalCreateWithoutMarketInput = { |
| signal: string |
| confidence: number |
| summary?: string | null |
| keyRisk?: string | null |
| newsCount?: number |
| modelVersion?: string |
| impliedProb?: number | null |
| fairProb?: number | null |
| edgePoints?: number | null |
| generatedAt?: Date | string |
| } |
|
|
| export type AISignalUncheckedCreateWithoutMarketInput = { |
| id?: number |
| signal: string |
| confidence: number |
| summary?: string | null |
| keyRisk?: string | null |
| newsCount?: number |
| modelVersion?: string |
| impliedProb?: number | null |
| fairProb?: number | null |
| edgePoints?: number | null |
| generatedAt?: Date | string |
| } |
|
|
| export type AISignalCreateOrConnectWithoutMarketInput = { |
| where: AISignalWhereUniqueInput |
| create: XOR<AISignalCreateWithoutMarketInput, AISignalUncheckedCreateWithoutMarketInput> |
| } |
|
|
| export type AISignalCreateManyMarketInputEnvelope = { |
| data: AISignalCreateManyMarketInput | AISignalCreateManyMarketInput[] |
| } |
|
|
| export type PositionCreateWithoutMarketInput = { |
| outcome: string |
| amountEur: number |
| entryPrice: number |
| currentPrice?: number | null |
| pnl?: number |
| kellyFraction?: number | null |
| status?: string |
| openedAt?: Date | string |
| closedAt?: Date | string | null |
| user: UserCreateNestedOneWithoutPositionsInput |
| } |
|
|
| export type PositionUncheckedCreateWithoutMarketInput = { |
| id?: number |
| userId: number |
| outcome: string |
| amountEur: number |
| entryPrice: number |
| currentPrice?: number | null |
| pnl?: number |
| kellyFraction?: number | null |
| status?: string |
| openedAt?: Date | string |
| closedAt?: Date | string | null |
| } |
|
|
| export type PositionCreateOrConnectWithoutMarketInput = { |
| where: PositionWhereUniqueInput |
| create: XOR<PositionCreateWithoutMarketInput, PositionUncheckedCreateWithoutMarketInput> |
| } |
|
|
| export type PositionCreateManyMarketInputEnvelope = { |
| data: PositionCreateManyMarketInput | PositionCreateManyMarketInput[] |
| } |
|
|
| export type WatchlistCreateWithoutMarketInput = { |
| alertThreshold?: number | null |
| createdAt?: Date | string |
| user: UserCreateNestedOneWithoutWatchlistInput |
| } |
|
|
| export type WatchlistUncheckedCreateWithoutMarketInput = { |
| id?: number |
| userId: number |
| alertThreshold?: number | null |
| createdAt?: Date | string |
| } |
|
|
| export type WatchlistCreateOrConnectWithoutMarketInput = { |
| where: WatchlistWhereUniqueInput |
| create: XOR<WatchlistCreateWithoutMarketInput, WatchlistUncheckedCreateWithoutMarketInput> |
| } |
|
|
| export type WatchlistCreateManyMarketInputEnvelope = { |
| data: WatchlistCreateManyMarketInput | WatchlistCreateManyMarketInput[] |
| } |
|
|
| export type AlertCreateWithoutMarketInput = { |
| type: string |
| message: string |
| sentAt?: Date | string |
| user: UserCreateNestedOneWithoutAlertsInput |
| } |
|
|
| export type AlertUncheckedCreateWithoutMarketInput = { |
| id?: number |
| userId: number |
| type: string |
| message: string |
| sentAt?: Date | string |
| } |
|
|
| export type AlertCreateOrConnectWithoutMarketInput = { |
| where: AlertWhereUniqueInput |
| create: XOR<AlertCreateWithoutMarketInput, AlertUncheckedCreateWithoutMarketInput> |
| } |
|
|
| export type AlertCreateManyMarketInputEnvelope = { |
| data: AlertCreateManyMarketInput | AlertCreateManyMarketInput[] |
| } |
|
|
| export type AISignalUpsertWithWhereUniqueWithoutMarketInput = { |
| where: AISignalWhereUniqueInput |
| update: XOR<AISignalUpdateWithoutMarketInput, AISignalUncheckedUpdateWithoutMarketInput> |
| create: XOR<AISignalCreateWithoutMarketInput, AISignalUncheckedCreateWithoutMarketInput> |
| } |
|
|
| export type AISignalUpdateWithWhereUniqueWithoutMarketInput = { |
| where: AISignalWhereUniqueInput |
| data: XOR<AISignalUpdateWithoutMarketInput, AISignalUncheckedUpdateWithoutMarketInput> |
| } |
|
|
| export type AISignalUpdateManyWithWhereWithoutMarketInput = { |
| where: AISignalScalarWhereInput |
| data: XOR<AISignalUpdateManyMutationInput, AISignalUncheckedUpdateManyWithoutMarketInput> |
| } |
|
|
| export type AISignalScalarWhereInput = { |
| AND?: AISignalScalarWhereInput | AISignalScalarWhereInput[] |
| OR?: AISignalScalarWhereInput[] |
| NOT?: AISignalScalarWhereInput | AISignalScalarWhereInput[] |
| id?: IntFilter<"AISignal"> | number |
| marketId?: StringFilter<"AISignal"> | string |
| signal?: StringFilter<"AISignal"> | string |
| confidence?: FloatFilter<"AISignal"> | number |
| summary?: StringNullableFilter<"AISignal"> | string | null |
| keyRisk?: StringNullableFilter<"AISignal"> | string | null |
| newsCount?: IntFilter<"AISignal"> | number |
| modelVersion?: StringFilter<"AISignal"> | string |
| impliedProb?: FloatNullableFilter<"AISignal"> | number | null |
| fairProb?: FloatNullableFilter<"AISignal"> | number | null |
| edgePoints?: FloatNullableFilter<"AISignal"> | number | null |
| generatedAt?: DateTimeFilter<"AISignal"> | Date | string |
| } |
|
|
| export type PositionUpsertWithWhereUniqueWithoutMarketInput = { |
| where: PositionWhereUniqueInput |
| update: XOR<PositionUpdateWithoutMarketInput, PositionUncheckedUpdateWithoutMarketInput> |
| create: XOR<PositionCreateWithoutMarketInput, PositionUncheckedCreateWithoutMarketInput> |
| } |
|
|
| export type PositionUpdateWithWhereUniqueWithoutMarketInput = { |
| where: PositionWhereUniqueInput |
| data: XOR<PositionUpdateWithoutMarketInput, PositionUncheckedUpdateWithoutMarketInput> |
| } |
|
|
| export type PositionUpdateManyWithWhereWithoutMarketInput = { |
| where: PositionScalarWhereInput |
| data: XOR<PositionUpdateManyMutationInput, PositionUncheckedUpdateManyWithoutMarketInput> |
| } |
|
|
| export type WatchlistUpsertWithWhereUniqueWithoutMarketInput = { |
| where: WatchlistWhereUniqueInput |
| update: XOR<WatchlistUpdateWithoutMarketInput, WatchlistUncheckedUpdateWithoutMarketInput> |
| create: XOR<WatchlistCreateWithoutMarketInput, WatchlistUncheckedCreateWithoutMarketInput> |
| } |
|
|
| export type WatchlistUpdateWithWhereUniqueWithoutMarketInput = { |
| where: WatchlistWhereUniqueInput |
| data: XOR<WatchlistUpdateWithoutMarketInput, WatchlistUncheckedUpdateWithoutMarketInput> |
| } |
|
|
| export type WatchlistUpdateManyWithWhereWithoutMarketInput = { |
| where: WatchlistScalarWhereInput |
| data: XOR<WatchlistUpdateManyMutationInput, WatchlistUncheckedUpdateManyWithoutMarketInput> |
| } |
|
|
| export type AlertUpsertWithWhereUniqueWithoutMarketInput = { |
| where: AlertWhereUniqueInput |
| update: XOR<AlertUpdateWithoutMarketInput, AlertUncheckedUpdateWithoutMarketInput> |
| create: XOR<AlertCreateWithoutMarketInput, AlertUncheckedCreateWithoutMarketInput> |
| } |
|
|
| export type AlertUpdateWithWhereUniqueWithoutMarketInput = { |
| where: AlertWhereUniqueInput |
| data: XOR<AlertUpdateWithoutMarketInput, AlertUncheckedUpdateWithoutMarketInput> |
| } |
|
|
| export type AlertUpdateManyWithWhereWithoutMarketInput = { |
| where: AlertScalarWhereInput |
| data: XOR<AlertUpdateManyMutationInput, AlertUncheckedUpdateManyWithoutMarketInput> |
| } |
|
|
| export type MarketCreateWithoutSignalsInput = { |
| id: string |
| question: string |
| category?: string | null |
| countryCode?: string | null |
| yesPrice?: number | null |
| noPrice?: number | null |
| volumeEur?: number | null |
| liquidityEur?: number | null |
| spread?: number | null |
| bestBid?: number | null |
| bestAsk?: number | null |
| clobTokenId?: string | null |
| analyzable?: boolean |
| status?: string |
| closesAt?: Date | string | null |
| lastSynced?: Date | string |
| positions?: PositionCreateNestedManyWithoutMarketInput |
| watchlist?: WatchlistCreateNestedManyWithoutMarketInput |
| alerts?: AlertCreateNestedManyWithoutMarketInput |
| } |
|
|
| export type MarketUncheckedCreateWithoutSignalsInput = { |
| id: string |
| question: string |
| category?: string | null |
| countryCode?: string | null |
| yesPrice?: number | null |
| noPrice?: number | null |
| volumeEur?: number | null |
| liquidityEur?: number | null |
| spread?: number | null |
| bestBid?: number | null |
| bestAsk?: number | null |
| clobTokenId?: string | null |
| analyzable?: boolean |
| status?: string |
| closesAt?: Date | string | null |
| lastSynced?: Date | string |
| positions?: PositionUncheckedCreateNestedManyWithoutMarketInput |
| watchlist?: WatchlistUncheckedCreateNestedManyWithoutMarketInput |
| alerts?: AlertUncheckedCreateNestedManyWithoutMarketInput |
| } |
|
|
| export type MarketCreateOrConnectWithoutSignalsInput = { |
| where: MarketWhereUniqueInput |
| create: XOR<MarketCreateWithoutSignalsInput, MarketUncheckedCreateWithoutSignalsInput> |
| } |
|
|
| export type MarketUpsertWithoutSignalsInput = { |
| update: XOR<MarketUpdateWithoutSignalsInput, MarketUncheckedUpdateWithoutSignalsInput> |
| create: XOR<MarketCreateWithoutSignalsInput, MarketUncheckedCreateWithoutSignalsInput> |
| where?: MarketWhereInput |
| } |
|
|
| export type MarketUpdateToOneWithWhereWithoutSignalsInput = { |
| where?: MarketWhereInput |
| data: XOR<MarketUpdateWithoutSignalsInput, MarketUncheckedUpdateWithoutSignalsInput> |
| } |
|
|
| export type MarketUpdateWithoutSignalsInput = { |
| id?: StringFieldUpdateOperationsInput | string |
| question?: StringFieldUpdateOperationsInput | string |
| category?: NullableStringFieldUpdateOperationsInput | string | null |
| countryCode?: NullableStringFieldUpdateOperationsInput | string | null |
| yesPrice?: NullableFloatFieldUpdateOperationsInput | number | null |
| noPrice?: NullableFloatFieldUpdateOperationsInput | number | null |
| volumeEur?: NullableFloatFieldUpdateOperationsInput | number | null |
| liquidityEur?: NullableFloatFieldUpdateOperationsInput | number | null |
| spread?: NullableFloatFieldUpdateOperationsInput | number | null |
| bestBid?: NullableFloatFieldUpdateOperationsInput | number | null |
| bestAsk?: NullableFloatFieldUpdateOperationsInput | number | null |
| clobTokenId?: NullableStringFieldUpdateOperationsInput | string | null |
| analyzable?: BoolFieldUpdateOperationsInput | boolean |
| status?: StringFieldUpdateOperationsInput | string |
| closesAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null |
| lastSynced?: DateTimeFieldUpdateOperationsInput | Date | string |
| positions?: PositionUpdateManyWithoutMarketNestedInput |
| watchlist?: WatchlistUpdateManyWithoutMarketNestedInput |
| alerts?: AlertUpdateManyWithoutMarketNestedInput |
| } |
|
|
| export type MarketUncheckedUpdateWithoutSignalsInput = { |
| id?: StringFieldUpdateOperationsInput | string |
| question?: StringFieldUpdateOperationsInput | string |
| category?: NullableStringFieldUpdateOperationsInput | string | null |
| countryCode?: NullableStringFieldUpdateOperationsInput | string | null |
| yesPrice?: NullableFloatFieldUpdateOperationsInput | number | null |
| noPrice?: NullableFloatFieldUpdateOperationsInput | number | null |
| volumeEur?: NullableFloatFieldUpdateOperationsInput | number | null |
| liquidityEur?: NullableFloatFieldUpdateOperationsInput | number | null |
| spread?: NullableFloatFieldUpdateOperationsInput | number | null |
| bestBid?: NullableFloatFieldUpdateOperationsInput | number | null |
| bestAsk?: NullableFloatFieldUpdateOperationsInput | number | null |
| clobTokenId?: NullableStringFieldUpdateOperationsInput | string | null |
| analyzable?: BoolFieldUpdateOperationsInput | boolean |
| status?: StringFieldUpdateOperationsInput | string |
| closesAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null |
| lastSynced?: DateTimeFieldUpdateOperationsInput | Date | string |
| positions?: PositionUncheckedUpdateManyWithoutMarketNestedInput |
| watchlist?: WatchlistUncheckedUpdateManyWithoutMarketNestedInput |
| alerts?: AlertUncheckedUpdateManyWithoutMarketNestedInput |
| } |
|
|
| export type UserCreateWithoutPositionsInput = { |
| email: string |
| passwordHash: string |
| isActive?: boolean |
| telegramChatId?: string | null |
| createdAt?: Date | string |
| updatedAt?: Date | string |
| watchlist?: WatchlistCreateNestedManyWithoutUserInput |
| alerts?: AlertCreateNestedManyWithoutUserInput |
| } |
|
|
| export type UserUncheckedCreateWithoutPositionsInput = { |
| id?: number |
| email: string |
| passwordHash: string |
| isActive?: boolean |
| telegramChatId?: string | null |
| createdAt?: Date | string |
| updatedAt?: Date | string |
| watchlist?: WatchlistUncheckedCreateNestedManyWithoutUserInput |
| alerts?: AlertUncheckedCreateNestedManyWithoutUserInput |
| } |
|
|
| export type UserCreateOrConnectWithoutPositionsInput = { |
| where: UserWhereUniqueInput |
| create: XOR<UserCreateWithoutPositionsInput, UserUncheckedCreateWithoutPositionsInput> |
| } |
|
|
| export type MarketCreateWithoutPositionsInput = { |
| id: string |
| question: string |
| category?: string | null |
| countryCode?: string | null |
| yesPrice?: number | null |
| noPrice?: number | null |
| volumeEur?: number | null |
| liquidityEur?: number | null |
| spread?: number | null |
| bestBid?: number | null |
| bestAsk?: number | null |
| clobTokenId?: string | null |
| analyzable?: boolean |
| status?: string |
| closesAt?: Date | string | null |
| lastSynced?: Date | string |
| signals?: AISignalCreateNestedManyWithoutMarketInput |
| watchlist?: WatchlistCreateNestedManyWithoutMarketInput |
| alerts?: AlertCreateNestedManyWithoutMarketInput |
| } |
|
|
| export type MarketUncheckedCreateWithoutPositionsInput = { |
| id: string |
| question: string |
| category?: string | null |
| countryCode?: string | null |
| yesPrice?: number | null |
| noPrice?: number | null |
| volumeEur?: number | null |
| liquidityEur?: number | null |
| spread?: number | null |
| bestBid?: number | null |
| bestAsk?: number | null |
| clobTokenId?: string | null |
| analyzable?: boolean |
| status?: string |
| closesAt?: Date | string | null |
| lastSynced?: Date | string |
| signals?: AISignalUncheckedCreateNestedManyWithoutMarketInput |
| watchlist?: WatchlistUncheckedCreateNestedManyWithoutMarketInput |
| alerts?: AlertUncheckedCreateNestedManyWithoutMarketInput |
| } |
|
|
| export type MarketCreateOrConnectWithoutPositionsInput = { |
| where: MarketWhereUniqueInput |
| create: XOR<MarketCreateWithoutPositionsInput, MarketUncheckedCreateWithoutPositionsInput> |
| } |
|
|
| export type UserUpsertWithoutPositionsInput = { |
| update: XOR<UserUpdateWithoutPositionsInput, UserUncheckedUpdateWithoutPositionsInput> |
| create: XOR<UserCreateWithoutPositionsInput, UserUncheckedCreateWithoutPositionsInput> |
| where?: UserWhereInput |
| } |
|
|
| export type UserUpdateToOneWithWhereWithoutPositionsInput = { |
| where?: UserWhereInput |
| data: XOR<UserUpdateWithoutPositionsInput, UserUncheckedUpdateWithoutPositionsInput> |
| } |
|
|
| export type UserUpdateWithoutPositionsInput = { |
| email?: StringFieldUpdateOperationsInput | string |
| passwordHash?: StringFieldUpdateOperationsInput | string |
| isActive?: BoolFieldUpdateOperationsInput | boolean |
| telegramChatId?: NullableStringFieldUpdateOperationsInput | string | null |
| createdAt?: DateTimeFieldUpdateOperationsInput | Date | string |
| updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string |
| watchlist?: WatchlistUpdateManyWithoutUserNestedInput |
| alerts?: AlertUpdateManyWithoutUserNestedInput |
| } |
|
|
| export type UserUncheckedUpdateWithoutPositionsInput = { |
| id?: IntFieldUpdateOperationsInput | number |
| email?: StringFieldUpdateOperationsInput | string |
| passwordHash?: StringFieldUpdateOperationsInput | string |
| isActive?: BoolFieldUpdateOperationsInput | boolean |
| telegramChatId?: NullableStringFieldUpdateOperationsInput | string | null |
| createdAt?: DateTimeFieldUpdateOperationsInput | Date | string |
| updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string |
| watchlist?: WatchlistUncheckedUpdateManyWithoutUserNestedInput |
| alerts?: AlertUncheckedUpdateManyWithoutUserNestedInput |
| } |
|
|
| export type MarketUpsertWithoutPositionsInput = { |
| update: XOR<MarketUpdateWithoutPositionsInput, MarketUncheckedUpdateWithoutPositionsInput> |
| create: XOR<MarketCreateWithoutPositionsInput, MarketUncheckedCreateWithoutPositionsInput> |
| where?: MarketWhereInput |
| } |
|
|
| export type MarketUpdateToOneWithWhereWithoutPositionsInput = { |
| where?: MarketWhereInput |
| data: XOR<MarketUpdateWithoutPositionsInput, MarketUncheckedUpdateWithoutPositionsInput> |
| } |
|
|
| export type MarketUpdateWithoutPositionsInput = { |
| id?: StringFieldUpdateOperationsInput | string |
| question?: StringFieldUpdateOperationsInput | string |
| category?: NullableStringFieldUpdateOperationsInput | string | null |
| countryCode?: NullableStringFieldUpdateOperationsInput | string | null |
| yesPrice?: NullableFloatFieldUpdateOperationsInput | number | null |
| noPrice?: NullableFloatFieldUpdateOperationsInput | number | null |
| volumeEur?: NullableFloatFieldUpdateOperationsInput | number | null |
| liquidityEur?: NullableFloatFieldUpdateOperationsInput | number | null |
| spread?: NullableFloatFieldUpdateOperationsInput | number | null |
| bestBid?: NullableFloatFieldUpdateOperationsInput | number | null |
| bestAsk?: NullableFloatFieldUpdateOperationsInput | number | null |
| clobTokenId?: NullableStringFieldUpdateOperationsInput | string | null |
| analyzable?: BoolFieldUpdateOperationsInput | boolean |
| status?: StringFieldUpdateOperationsInput | string |
| closesAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null |
| lastSynced?: DateTimeFieldUpdateOperationsInput | Date | string |
| signals?: AISignalUpdateManyWithoutMarketNestedInput |
| watchlist?: WatchlistUpdateManyWithoutMarketNestedInput |
| alerts?: AlertUpdateManyWithoutMarketNestedInput |
| } |
|
|
| export type MarketUncheckedUpdateWithoutPositionsInput = { |
| id?: StringFieldUpdateOperationsInput | string |
| question?: StringFieldUpdateOperationsInput | string |
| category?: NullableStringFieldUpdateOperationsInput | string | null |
| countryCode?: NullableStringFieldUpdateOperationsInput | string | null |
| yesPrice?: NullableFloatFieldUpdateOperationsInput | number | null |
| noPrice?: NullableFloatFieldUpdateOperationsInput | number | null |
| volumeEur?: NullableFloatFieldUpdateOperationsInput | number | null |
| liquidityEur?: NullableFloatFieldUpdateOperationsInput | number | null |
| spread?: NullableFloatFieldUpdateOperationsInput | number | null |
| bestBid?: NullableFloatFieldUpdateOperationsInput | number | null |
| bestAsk?: NullableFloatFieldUpdateOperationsInput | number | null |
| clobTokenId?: NullableStringFieldUpdateOperationsInput | string | null |
| analyzable?: BoolFieldUpdateOperationsInput | boolean |
| status?: StringFieldUpdateOperationsInput | string |
| closesAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null |
| lastSynced?: DateTimeFieldUpdateOperationsInput | Date | string |
| signals?: AISignalUncheckedUpdateManyWithoutMarketNestedInput |
| watchlist?: WatchlistUncheckedUpdateManyWithoutMarketNestedInput |
| alerts?: AlertUncheckedUpdateManyWithoutMarketNestedInput |
| } |
|
|
| export type UserCreateWithoutWatchlistInput = { |
| email: string |
| passwordHash: string |
| isActive?: boolean |
| telegramChatId?: string | null |
| createdAt?: Date | string |
| updatedAt?: Date | string |
| positions?: PositionCreateNestedManyWithoutUserInput |
| alerts?: AlertCreateNestedManyWithoutUserInput |
| } |
|
|
| export type UserUncheckedCreateWithoutWatchlistInput = { |
| id?: number |
| email: string |
| passwordHash: string |
| isActive?: boolean |
| telegramChatId?: string | null |
| createdAt?: Date | string |
| updatedAt?: Date | string |
| positions?: PositionUncheckedCreateNestedManyWithoutUserInput |
| alerts?: AlertUncheckedCreateNestedManyWithoutUserInput |
| } |
|
|
| export type UserCreateOrConnectWithoutWatchlistInput = { |
| where: UserWhereUniqueInput |
| create: XOR<UserCreateWithoutWatchlistInput, UserUncheckedCreateWithoutWatchlistInput> |
| } |
|
|
| export type MarketCreateWithoutWatchlistInput = { |
| id: string |
| question: string |
| category?: string | null |
| countryCode?: string | null |
| yesPrice?: number | null |
| noPrice?: number | null |
| volumeEur?: number | null |
| liquidityEur?: number | null |
| spread?: number | null |
| bestBid?: number | null |
| bestAsk?: number | null |
| clobTokenId?: string | null |
| analyzable?: boolean |
| status?: string |
| closesAt?: Date | string | null |
| lastSynced?: Date | string |
| signals?: AISignalCreateNestedManyWithoutMarketInput |
| positions?: PositionCreateNestedManyWithoutMarketInput |
| alerts?: AlertCreateNestedManyWithoutMarketInput |
| } |
|
|
| export type MarketUncheckedCreateWithoutWatchlistInput = { |
| id: string |
| question: string |
| category?: string | null |
| countryCode?: string | null |
| yesPrice?: number | null |
| noPrice?: number | null |
| volumeEur?: number | null |
| liquidityEur?: number | null |
| spread?: number | null |
| bestBid?: number | null |
| bestAsk?: number | null |
| clobTokenId?: string | null |
| analyzable?: boolean |
| status?: string |
| closesAt?: Date | string | null |
| lastSynced?: Date | string |
| signals?: AISignalUncheckedCreateNestedManyWithoutMarketInput |
| positions?: PositionUncheckedCreateNestedManyWithoutMarketInput |
| alerts?: AlertUncheckedCreateNestedManyWithoutMarketInput |
| } |
|
|
| export type MarketCreateOrConnectWithoutWatchlistInput = { |
| where: MarketWhereUniqueInput |
| create: XOR<MarketCreateWithoutWatchlistInput, MarketUncheckedCreateWithoutWatchlistInput> |
| } |
|
|
| export type UserUpsertWithoutWatchlistInput = { |
| update: XOR<UserUpdateWithoutWatchlistInput, UserUncheckedUpdateWithoutWatchlistInput> |
| create: XOR<UserCreateWithoutWatchlistInput, UserUncheckedCreateWithoutWatchlistInput> |
| where?: UserWhereInput |
| } |
|
|
| export type UserUpdateToOneWithWhereWithoutWatchlistInput = { |
| where?: UserWhereInput |
| data: XOR<UserUpdateWithoutWatchlistInput, UserUncheckedUpdateWithoutWatchlistInput> |
| } |
|
|
| export type UserUpdateWithoutWatchlistInput = { |
| email?: StringFieldUpdateOperationsInput | string |
| passwordHash?: StringFieldUpdateOperationsInput | string |
| isActive?: BoolFieldUpdateOperationsInput | boolean |
| telegramChatId?: NullableStringFieldUpdateOperationsInput | string | null |
| createdAt?: DateTimeFieldUpdateOperationsInput | Date | string |
| updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string |
| positions?: PositionUpdateManyWithoutUserNestedInput |
| alerts?: AlertUpdateManyWithoutUserNestedInput |
| } |
|
|
| export type UserUncheckedUpdateWithoutWatchlistInput = { |
| id?: IntFieldUpdateOperationsInput | number |
| email?: StringFieldUpdateOperationsInput | string |
| passwordHash?: StringFieldUpdateOperationsInput | string |
| isActive?: BoolFieldUpdateOperationsInput | boolean |
| telegramChatId?: NullableStringFieldUpdateOperationsInput | string | null |
| createdAt?: DateTimeFieldUpdateOperationsInput | Date | string |
| updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string |
| positions?: PositionUncheckedUpdateManyWithoutUserNestedInput |
| alerts?: AlertUncheckedUpdateManyWithoutUserNestedInput |
| } |
|
|
| export type MarketUpsertWithoutWatchlistInput = { |
| update: XOR<MarketUpdateWithoutWatchlistInput, MarketUncheckedUpdateWithoutWatchlistInput> |
| create: XOR<MarketCreateWithoutWatchlistInput, MarketUncheckedCreateWithoutWatchlistInput> |
| where?: MarketWhereInput |
| } |
|
|
| export type MarketUpdateToOneWithWhereWithoutWatchlistInput = { |
| where?: MarketWhereInput |
| data: XOR<MarketUpdateWithoutWatchlistInput, MarketUncheckedUpdateWithoutWatchlistInput> |
| } |
|
|
| export type MarketUpdateWithoutWatchlistInput = { |
| id?: StringFieldUpdateOperationsInput | string |
| question?: StringFieldUpdateOperationsInput | string |
| category?: NullableStringFieldUpdateOperationsInput | string | null |
| countryCode?: NullableStringFieldUpdateOperationsInput | string | null |
| yesPrice?: NullableFloatFieldUpdateOperationsInput | number | null |
| noPrice?: NullableFloatFieldUpdateOperationsInput | number | null |
| volumeEur?: NullableFloatFieldUpdateOperationsInput | number | null |
| liquidityEur?: NullableFloatFieldUpdateOperationsInput | number | null |
| spread?: NullableFloatFieldUpdateOperationsInput | number | null |
| bestBid?: NullableFloatFieldUpdateOperationsInput | number | null |
| bestAsk?: NullableFloatFieldUpdateOperationsInput | number | null |
| clobTokenId?: NullableStringFieldUpdateOperationsInput | string | null |
| analyzable?: BoolFieldUpdateOperationsInput | boolean |
| status?: StringFieldUpdateOperationsInput | string |
| closesAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null |
| lastSynced?: DateTimeFieldUpdateOperationsInput | Date | string |
| signals?: AISignalUpdateManyWithoutMarketNestedInput |
| positions?: PositionUpdateManyWithoutMarketNestedInput |
| alerts?: AlertUpdateManyWithoutMarketNestedInput |
| } |
|
|
| export type MarketUncheckedUpdateWithoutWatchlistInput = { |
| id?: StringFieldUpdateOperationsInput | string |
| question?: StringFieldUpdateOperationsInput | string |
| category?: NullableStringFieldUpdateOperationsInput | string | null |
| countryCode?: NullableStringFieldUpdateOperationsInput | string | null |
| yesPrice?: NullableFloatFieldUpdateOperationsInput | number | null |
| noPrice?: NullableFloatFieldUpdateOperationsInput | number | null |
| volumeEur?: NullableFloatFieldUpdateOperationsInput | number | null |
| liquidityEur?: NullableFloatFieldUpdateOperationsInput | number | null |
| spread?: NullableFloatFieldUpdateOperationsInput | number | null |
| bestBid?: NullableFloatFieldUpdateOperationsInput | number | null |
| bestAsk?: NullableFloatFieldUpdateOperationsInput | number | null |
| clobTokenId?: NullableStringFieldUpdateOperationsInput | string | null |
| analyzable?: BoolFieldUpdateOperationsInput | boolean |
| status?: StringFieldUpdateOperationsInput | string |
| closesAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null |
| lastSynced?: DateTimeFieldUpdateOperationsInput | Date | string |
| signals?: AISignalUncheckedUpdateManyWithoutMarketNestedInput |
| positions?: PositionUncheckedUpdateManyWithoutMarketNestedInput |
| alerts?: AlertUncheckedUpdateManyWithoutMarketNestedInput |
| } |
|
|
| export type UserCreateWithoutAlertsInput = { |
| email: string |
| passwordHash: string |
| isActive?: boolean |
| telegramChatId?: string | null |
| createdAt?: Date | string |
| updatedAt?: Date | string |
| positions?: PositionCreateNestedManyWithoutUserInput |
| watchlist?: WatchlistCreateNestedManyWithoutUserInput |
| } |
|
|
| export type UserUncheckedCreateWithoutAlertsInput = { |
| id?: number |
| email: string |
| passwordHash: string |
| isActive?: boolean |
| telegramChatId?: string | null |
| createdAt?: Date | string |
| updatedAt?: Date | string |
| positions?: PositionUncheckedCreateNestedManyWithoutUserInput |
| watchlist?: WatchlistUncheckedCreateNestedManyWithoutUserInput |
| } |
|
|
| export type UserCreateOrConnectWithoutAlertsInput = { |
| where: UserWhereUniqueInput |
| create: XOR<UserCreateWithoutAlertsInput, UserUncheckedCreateWithoutAlertsInput> |
| } |
|
|
| export type MarketCreateWithoutAlertsInput = { |
| id: string |
| question: string |
| category?: string | null |
| countryCode?: string | null |
| yesPrice?: number | null |
| noPrice?: number | null |
| volumeEur?: number | null |
| liquidityEur?: number | null |
| spread?: number | null |
| bestBid?: number | null |
| bestAsk?: number | null |
| clobTokenId?: string | null |
| analyzable?: boolean |
| status?: string |
| closesAt?: Date | string | null |
| lastSynced?: Date | string |
| signals?: AISignalCreateNestedManyWithoutMarketInput |
| positions?: PositionCreateNestedManyWithoutMarketInput |
| watchlist?: WatchlistCreateNestedManyWithoutMarketInput |
| } |
|
|
| export type MarketUncheckedCreateWithoutAlertsInput = { |
| id: string |
| question: string |
| category?: string | null |
| countryCode?: string | null |
| yesPrice?: number | null |
| noPrice?: number | null |
| volumeEur?: number | null |
| liquidityEur?: number | null |
| spread?: number | null |
| bestBid?: number | null |
| bestAsk?: number | null |
| clobTokenId?: string | null |
| analyzable?: boolean |
| status?: string |
| closesAt?: Date | string | null |
| lastSynced?: Date | string |
| signals?: AISignalUncheckedCreateNestedManyWithoutMarketInput |
| positions?: PositionUncheckedCreateNestedManyWithoutMarketInput |
| watchlist?: WatchlistUncheckedCreateNestedManyWithoutMarketInput |
| } |
|
|
| export type MarketCreateOrConnectWithoutAlertsInput = { |
| where: MarketWhereUniqueInput |
| create: XOR<MarketCreateWithoutAlertsInput, MarketUncheckedCreateWithoutAlertsInput> |
| } |
|
|
| export type UserUpsertWithoutAlertsInput = { |
| update: XOR<UserUpdateWithoutAlertsInput, UserUncheckedUpdateWithoutAlertsInput> |
| create: XOR<UserCreateWithoutAlertsInput, UserUncheckedCreateWithoutAlertsInput> |
| where?: UserWhereInput |
| } |
|
|
| export type UserUpdateToOneWithWhereWithoutAlertsInput = { |
| where?: UserWhereInput |
| data: XOR<UserUpdateWithoutAlertsInput, UserUncheckedUpdateWithoutAlertsInput> |
| } |
|
|
| export type UserUpdateWithoutAlertsInput = { |
| email?: StringFieldUpdateOperationsInput | string |
| passwordHash?: StringFieldUpdateOperationsInput | string |
| isActive?: BoolFieldUpdateOperationsInput | boolean |
| telegramChatId?: NullableStringFieldUpdateOperationsInput | string | null |
| createdAt?: DateTimeFieldUpdateOperationsInput | Date | string |
| updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string |
| positions?: PositionUpdateManyWithoutUserNestedInput |
| watchlist?: WatchlistUpdateManyWithoutUserNestedInput |
| } |
|
|
| export type UserUncheckedUpdateWithoutAlertsInput = { |
| id?: IntFieldUpdateOperationsInput | number |
| email?: StringFieldUpdateOperationsInput | string |
| passwordHash?: StringFieldUpdateOperationsInput | string |
| isActive?: BoolFieldUpdateOperationsInput | boolean |
| telegramChatId?: NullableStringFieldUpdateOperationsInput | string | null |
| createdAt?: DateTimeFieldUpdateOperationsInput | Date | string |
| updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string |
| positions?: PositionUncheckedUpdateManyWithoutUserNestedInput |
| watchlist?: WatchlistUncheckedUpdateManyWithoutUserNestedInput |
| } |
|
|
| export type MarketUpsertWithoutAlertsInput = { |
| update: XOR<MarketUpdateWithoutAlertsInput, MarketUncheckedUpdateWithoutAlertsInput> |
| create: XOR<MarketCreateWithoutAlertsInput, MarketUncheckedCreateWithoutAlertsInput> |
| where?: MarketWhereInput |
| } |
|
|
| export type MarketUpdateToOneWithWhereWithoutAlertsInput = { |
| where?: MarketWhereInput |
| data: XOR<MarketUpdateWithoutAlertsInput, MarketUncheckedUpdateWithoutAlertsInput> |
| } |
|
|
| export type MarketUpdateWithoutAlertsInput = { |
| id?: StringFieldUpdateOperationsInput | string |
| question?: StringFieldUpdateOperationsInput | string |
| category?: NullableStringFieldUpdateOperationsInput | string | null |
| countryCode?: NullableStringFieldUpdateOperationsInput | string | null |
| yesPrice?: NullableFloatFieldUpdateOperationsInput | number | null |
| noPrice?: NullableFloatFieldUpdateOperationsInput | number | null |
| volumeEur?: NullableFloatFieldUpdateOperationsInput | number | null |
| liquidityEur?: NullableFloatFieldUpdateOperationsInput | number | null |
| spread?: NullableFloatFieldUpdateOperationsInput | number | null |
| bestBid?: NullableFloatFieldUpdateOperationsInput | number | null |
| bestAsk?: NullableFloatFieldUpdateOperationsInput | number | null |
| clobTokenId?: NullableStringFieldUpdateOperationsInput | string | null |
| analyzable?: BoolFieldUpdateOperationsInput | boolean |
| status?: StringFieldUpdateOperationsInput | string |
| closesAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null |
| lastSynced?: DateTimeFieldUpdateOperationsInput | Date | string |
| signals?: AISignalUpdateManyWithoutMarketNestedInput |
| positions?: PositionUpdateManyWithoutMarketNestedInput |
| watchlist?: WatchlistUpdateManyWithoutMarketNestedInput |
| } |
|
|
| export type MarketUncheckedUpdateWithoutAlertsInput = { |
| id?: StringFieldUpdateOperationsInput | string |
| question?: StringFieldUpdateOperationsInput | string |
| category?: NullableStringFieldUpdateOperationsInput | string | null |
| countryCode?: NullableStringFieldUpdateOperationsInput | string | null |
| yesPrice?: NullableFloatFieldUpdateOperationsInput | number | null |
| noPrice?: NullableFloatFieldUpdateOperationsInput | number | null |
| volumeEur?: NullableFloatFieldUpdateOperationsInput | number | null |
| liquidityEur?: NullableFloatFieldUpdateOperationsInput | number | null |
| spread?: NullableFloatFieldUpdateOperationsInput | number | null |
| bestBid?: NullableFloatFieldUpdateOperationsInput | number | null |
| bestAsk?: NullableFloatFieldUpdateOperationsInput | number | null |
| clobTokenId?: NullableStringFieldUpdateOperationsInput | string | null |
| analyzable?: BoolFieldUpdateOperationsInput | boolean |
| status?: StringFieldUpdateOperationsInput | string |
| closesAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null |
| lastSynced?: DateTimeFieldUpdateOperationsInput | Date | string |
| signals?: AISignalUncheckedUpdateManyWithoutMarketNestedInput |
| positions?: PositionUncheckedUpdateManyWithoutMarketNestedInput |
| watchlist?: WatchlistUncheckedUpdateManyWithoutMarketNestedInput |
| } |
|
|
| export type PositionCreateManyUserInput = { |
| id?: number |
| marketId: string |
| outcome: string |
| amountEur: number |
| entryPrice: number |
| currentPrice?: number | null |
| pnl?: number |
| kellyFraction?: number | null |
| status?: string |
| openedAt?: Date | string |
| closedAt?: Date | string | null |
| } |
|
|
| export type WatchlistCreateManyUserInput = { |
| id?: number |
| marketId: string |
| alertThreshold?: number | null |
| createdAt?: Date | string |
| } |
|
|
| export type AlertCreateManyUserInput = { |
| id?: number |
| marketId: string |
| type: string |
| message: string |
| sentAt?: Date | string |
| } |
|
|
| export type PositionUpdateWithoutUserInput = { |
| outcome?: StringFieldUpdateOperationsInput | string |
| amountEur?: FloatFieldUpdateOperationsInput | number |
| entryPrice?: FloatFieldUpdateOperationsInput | number |
| currentPrice?: NullableFloatFieldUpdateOperationsInput | number | null |
| pnl?: FloatFieldUpdateOperationsInput | number |
| kellyFraction?: NullableFloatFieldUpdateOperationsInput | number | null |
| status?: StringFieldUpdateOperationsInput | string |
| openedAt?: DateTimeFieldUpdateOperationsInput | Date | string |
| closedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null |
| market?: MarketUpdateOneRequiredWithoutPositionsNestedInput |
| } |
|
|
| export type PositionUncheckedUpdateWithoutUserInput = { |
| id?: IntFieldUpdateOperationsInput | number |
| marketId?: StringFieldUpdateOperationsInput | string |
| outcome?: StringFieldUpdateOperationsInput | string |
| amountEur?: FloatFieldUpdateOperationsInput | number |
| entryPrice?: FloatFieldUpdateOperationsInput | number |
| currentPrice?: NullableFloatFieldUpdateOperationsInput | number | null |
| pnl?: FloatFieldUpdateOperationsInput | number |
| kellyFraction?: NullableFloatFieldUpdateOperationsInput | number | null |
| status?: StringFieldUpdateOperationsInput | string |
| openedAt?: DateTimeFieldUpdateOperationsInput | Date | string |
| closedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null |
| } |
|
|
| export type PositionUncheckedUpdateManyWithoutUserInput = { |
| id?: IntFieldUpdateOperationsInput | number |
| marketId?: StringFieldUpdateOperationsInput | string |
| outcome?: StringFieldUpdateOperationsInput | string |
| amountEur?: FloatFieldUpdateOperationsInput | number |
| entryPrice?: FloatFieldUpdateOperationsInput | number |
| currentPrice?: NullableFloatFieldUpdateOperationsInput | number | null |
| pnl?: FloatFieldUpdateOperationsInput | number |
| kellyFraction?: NullableFloatFieldUpdateOperationsInput | number | null |
| status?: StringFieldUpdateOperationsInput | string |
| openedAt?: DateTimeFieldUpdateOperationsInput | Date | string |
| closedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null |
| } |
|
|
| export type WatchlistUpdateWithoutUserInput = { |
| alertThreshold?: NullableFloatFieldUpdateOperationsInput | number | null |
| createdAt?: DateTimeFieldUpdateOperationsInput | Date | string |
| market?: MarketUpdateOneRequiredWithoutWatchlistNestedInput |
| } |
|
|
| export type WatchlistUncheckedUpdateWithoutUserInput = { |
| id?: IntFieldUpdateOperationsInput | number |
| marketId?: StringFieldUpdateOperationsInput | string |
| alertThreshold?: NullableFloatFieldUpdateOperationsInput | number | null |
| createdAt?: DateTimeFieldUpdateOperationsInput | Date | string |
| } |
|
|
| export type WatchlistUncheckedUpdateManyWithoutUserInput = { |
| id?: IntFieldUpdateOperationsInput | number |
| marketId?: StringFieldUpdateOperationsInput | string |
| alertThreshold?: NullableFloatFieldUpdateOperationsInput | number | null |
| createdAt?: DateTimeFieldUpdateOperationsInput | Date | string |
| } |
|
|
| export type AlertUpdateWithoutUserInput = { |
| type?: StringFieldUpdateOperationsInput | string |
| message?: StringFieldUpdateOperationsInput | string |
| sentAt?: DateTimeFieldUpdateOperationsInput | Date | string |
| market?: MarketUpdateOneRequiredWithoutAlertsNestedInput |
| } |
|
|
| export type AlertUncheckedUpdateWithoutUserInput = { |
| id?: IntFieldUpdateOperationsInput | number |
| marketId?: StringFieldUpdateOperationsInput | string |
| type?: StringFieldUpdateOperationsInput | string |
| message?: StringFieldUpdateOperationsInput | string |
| sentAt?: DateTimeFieldUpdateOperationsInput | Date | string |
| } |
|
|
| export type AlertUncheckedUpdateManyWithoutUserInput = { |
| id?: IntFieldUpdateOperationsInput | number |
| marketId?: StringFieldUpdateOperationsInput | string |
| type?: StringFieldUpdateOperationsInput | string |
| message?: StringFieldUpdateOperationsInput | string |
| sentAt?: DateTimeFieldUpdateOperationsInput | Date | string |
| } |
|
|
| export type AISignalCreateManyMarketInput = { |
| id?: number |
| signal: string |
| confidence: number |
| summary?: string | null |
| keyRisk?: string | null |
| newsCount?: number |
| modelVersion?: string |
| impliedProb?: number | null |
| fairProb?: number | null |
| edgePoints?: number | null |
| generatedAt?: Date | string |
| } |
|
|
| export type PositionCreateManyMarketInput = { |
| id?: number |
| userId: number |
| outcome: string |
| amountEur: number |
| entryPrice: number |
| currentPrice?: number | null |
| pnl?: number |
| kellyFraction?: number | null |
| status?: string |
| openedAt?: Date | string |
| closedAt?: Date | string | null |
| } |
|
|
| export type WatchlistCreateManyMarketInput = { |
| id?: number |
| userId: number |
| alertThreshold?: number | null |
| createdAt?: Date | string |
| } |
|
|
| export type AlertCreateManyMarketInput = { |
| id?: number |
| userId: number |
| type: string |
| message: string |
| sentAt?: Date | string |
| } |
|
|
| export type AISignalUpdateWithoutMarketInput = { |
| signal?: StringFieldUpdateOperationsInput | string |
| confidence?: FloatFieldUpdateOperationsInput | number |
| summary?: NullableStringFieldUpdateOperationsInput | string | null |
| keyRisk?: NullableStringFieldUpdateOperationsInput | string | null |
| newsCount?: IntFieldUpdateOperationsInput | number |
| modelVersion?: StringFieldUpdateOperationsInput | string |
| impliedProb?: NullableFloatFieldUpdateOperationsInput | number | null |
| fairProb?: NullableFloatFieldUpdateOperationsInput | number | null |
| edgePoints?: NullableFloatFieldUpdateOperationsInput | number | null |
| generatedAt?: DateTimeFieldUpdateOperationsInput | Date | string |
| } |
|
|
| export type AISignalUncheckedUpdateWithoutMarketInput = { |
| id?: IntFieldUpdateOperationsInput | number |
| signal?: StringFieldUpdateOperationsInput | string |
| confidence?: FloatFieldUpdateOperationsInput | number |
| summary?: NullableStringFieldUpdateOperationsInput | string | null |
| keyRisk?: NullableStringFieldUpdateOperationsInput | string | null |
| newsCount?: IntFieldUpdateOperationsInput | number |
| modelVersion?: StringFieldUpdateOperationsInput | string |
| impliedProb?: NullableFloatFieldUpdateOperationsInput | number | null |
| fairProb?: NullableFloatFieldUpdateOperationsInput | number | null |
| edgePoints?: NullableFloatFieldUpdateOperationsInput | number | null |
| generatedAt?: DateTimeFieldUpdateOperationsInput | Date | string |
| } |
|
|
| export type AISignalUncheckedUpdateManyWithoutMarketInput = { |
| id?: IntFieldUpdateOperationsInput | number |
| signal?: StringFieldUpdateOperationsInput | string |
| confidence?: FloatFieldUpdateOperationsInput | number |
| summary?: NullableStringFieldUpdateOperationsInput | string | null |
| keyRisk?: NullableStringFieldUpdateOperationsInput | string | null |
| newsCount?: IntFieldUpdateOperationsInput | number |
| modelVersion?: StringFieldUpdateOperationsInput | string |
| impliedProb?: NullableFloatFieldUpdateOperationsInput | number | null |
| fairProb?: NullableFloatFieldUpdateOperationsInput | number | null |
| edgePoints?: NullableFloatFieldUpdateOperationsInput | number | null |
| generatedAt?: DateTimeFieldUpdateOperationsInput | Date | string |
| } |
|
|
| export type PositionUpdateWithoutMarketInput = { |
| outcome?: StringFieldUpdateOperationsInput | string |
| amountEur?: FloatFieldUpdateOperationsInput | number |
| entryPrice?: FloatFieldUpdateOperationsInput | number |
| currentPrice?: NullableFloatFieldUpdateOperationsInput | number | null |
| pnl?: FloatFieldUpdateOperationsInput | number |
| kellyFraction?: NullableFloatFieldUpdateOperationsInput | number | null |
| status?: StringFieldUpdateOperationsInput | string |
| openedAt?: DateTimeFieldUpdateOperationsInput | Date | string |
| closedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null |
| user?: UserUpdateOneRequiredWithoutPositionsNestedInput |
| } |
|
|
| export type PositionUncheckedUpdateWithoutMarketInput = { |
| id?: IntFieldUpdateOperationsInput | number |
| userId?: IntFieldUpdateOperationsInput | number |
| outcome?: StringFieldUpdateOperationsInput | string |
| amountEur?: FloatFieldUpdateOperationsInput | number |
| entryPrice?: FloatFieldUpdateOperationsInput | number |
| currentPrice?: NullableFloatFieldUpdateOperationsInput | number | null |
| pnl?: FloatFieldUpdateOperationsInput | number |
| kellyFraction?: NullableFloatFieldUpdateOperationsInput | number | null |
| status?: StringFieldUpdateOperationsInput | string |
| openedAt?: DateTimeFieldUpdateOperationsInput | Date | string |
| closedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null |
| } |
|
|
| export type PositionUncheckedUpdateManyWithoutMarketInput = { |
| id?: IntFieldUpdateOperationsInput | number |
| userId?: IntFieldUpdateOperationsInput | number |
| outcome?: StringFieldUpdateOperationsInput | string |
| amountEur?: FloatFieldUpdateOperationsInput | number |
| entryPrice?: FloatFieldUpdateOperationsInput | number |
| currentPrice?: NullableFloatFieldUpdateOperationsInput | number | null |
| pnl?: FloatFieldUpdateOperationsInput | number |
| kellyFraction?: NullableFloatFieldUpdateOperationsInput | number | null |
| status?: StringFieldUpdateOperationsInput | string |
| openedAt?: DateTimeFieldUpdateOperationsInput | Date | string |
| closedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null |
| } |
|
|
| export type WatchlistUpdateWithoutMarketInput = { |
| alertThreshold?: NullableFloatFieldUpdateOperationsInput | number | null |
| createdAt?: DateTimeFieldUpdateOperationsInput | Date | string |
| user?: UserUpdateOneRequiredWithoutWatchlistNestedInput |
| } |
|
|
| export type WatchlistUncheckedUpdateWithoutMarketInput = { |
| id?: IntFieldUpdateOperationsInput | number |
| userId?: IntFieldUpdateOperationsInput | number |
| alertThreshold?: NullableFloatFieldUpdateOperationsInput | number | null |
| createdAt?: DateTimeFieldUpdateOperationsInput | Date | string |
| } |
|
|
| export type WatchlistUncheckedUpdateManyWithoutMarketInput = { |
| id?: IntFieldUpdateOperationsInput | number |
| userId?: IntFieldUpdateOperationsInput | number |
| alertThreshold?: NullableFloatFieldUpdateOperationsInput | number | null |
| createdAt?: DateTimeFieldUpdateOperationsInput | Date | string |
| } |
|
|
| export type AlertUpdateWithoutMarketInput = { |
| type?: StringFieldUpdateOperationsInput | string |
| message?: StringFieldUpdateOperationsInput | string |
| sentAt?: DateTimeFieldUpdateOperationsInput | Date | string |
| user?: UserUpdateOneRequiredWithoutAlertsNestedInput |
| } |
|
|
| export type AlertUncheckedUpdateWithoutMarketInput = { |
| id?: IntFieldUpdateOperationsInput | number |
| userId?: IntFieldUpdateOperationsInput | number |
| type?: StringFieldUpdateOperationsInput | string |
| message?: StringFieldUpdateOperationsInput | string |
| sentAt?: DateTimeFieldUpdateOperationsInput | Date | string |
| } |
|
|
| export type AlertUncheckedUpdateManyWithoutMarketInput = { |
| id?: IntFieldUpdateOperationsInput | number |
| userId?: IntFieldUpdateOperationsInput | number |
| type?: StringFieldUpdateOperationsInput | string |
| message?: StringFieldUpdateOperationsInput | string |
| sentAt?: DateTimeFieldUpdateOperationsInput | Date | string |
| } |
|
|
|
|
|
|
| |
| |
| |
|
|
| export type BatchPayload = { |
| count: number |
| } |
|
|
| |
| |
| |
| export const dmmf: runtime.BaseDMMF |
| } |