Files
wajs-server/generated/prisma/index.d.ts
bipproduction 7d5bf004da tambahan
2025-10-21 16:56:18 +08:00

8475 lines
283 KiB
TypeScript

/**
* Client
**/
import * as runtime from './runtime/library.js';
import $Types = runtime.Types // general 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>
/**
* Model User
*
*/
export type User = $Result.DefaultSelection<Prisma.$UserPayload>
/**
* Model ApiKey
*
*/
export type ApiKey = $Result.DefaultSelection<Prisma.$ApiKeyPayload>
/**
* Model WebHook
*
*/
export type WebHook = $Result.DefaultSelection<Prisma.$WebHookPayload>
/**
* Model WaHook
*
*/
export type WaHook = $Result.DefaultSelection<Prisma.$WaHookPayload>
/**
* Model ChatFlows
*
*/
export type ChatFlows = $Result.DefaultSelection<Prisma.$ChatFlowsPayload>
/**
* ## Prisma Client ʲˢ
*
* Type-safe database client for TypeScript & Node.js
* @example
* ```
* const prisma = new PrismaClient()
* // Fetch zero or more Users
* const users = await prisma.user.findMany()
* ```
*
*
* Read more in our [docs](https://www.prisma.io/docs/reference/tools-and-interfaces/prisma-client).
*/
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'] }
/**
* ## Prisma Client ʲˢ
*
* Type-safe database client for TypeScript & Node.js
* @example
* ```
* const prisma = new PrismaClient()
* // Fetch zero or more Users
* const users = await prisma.user.findMany()
* ```
*
*
* Read more in our [docs](https://www.prisma.io/docs/reference/tools-and-interfaces/prisma-client).
*/
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 with the database
*/
$connect(): $Utils.JsPromise<void>;
/**
* Disconnect from the database
*/
$disconnect(): $Utils.JsPromise<void>;
/**
* Executes a prepared raw query and returns the number of affected rows.
* @example
* ```
* const result = await prisma.$executeRaw`UPDATE User SET cool = ${true} WHERE email = ${'user@email.com'};`
* ```
*
* Read more in our [docs](https://www.prisma.io/docs/reference/tools-and-interfaces/prisma-client/raw-database-access).
*/
$executeRaw<T = unknown>(query: TemplateStringsArray | Prisma.Sql, ...values: any[]): Prisma.PrismaPromise<number>;
/**
* Executes a raw query and returns the number of affected rows.
* Susceptible to SQL injections, see documentation.
* @example
* ```
* const result = await prisma.$executeRawUnsafe('UPDATE User SET cool = $1 WHERE email = $2 ;', true, 'user@email.com')
* ```
*
* Read more in our [docs](https://www.prisma.io/docs/reference/tools-and-interfaces/prisma-client/raw-database-access).
*/
$executeRawUnsafe<T = unknown>(query: string, ...values: any[]): Prisma.PrismaPromise<number>;
/**
* Performs a prepared raw query and returns the `SELECT` data.
* @example
* ```
* const result = await prisma.$queryRaw`SELECT * FROM User WHERE id = ${1} OR email = ${'user@email.com'};`
* ```
*
* Read more in our [docs](https://www.prisma.io/docs/reference/tools-and-interfaces/prisma-client/raw-database-access).
*/
$queryRaw<T = unknown>(query: TemplateStringsArray | Prisma.Sql, ...values: any[]): Prisma.PrismaPromise<T>;
/**
* Performs a raw query and returns the `SELECT` data.
* Susceptible to SQL injections, see documentation.
* @example
* ```
* const result = await prisma.$queryRawUnsafe('SELECT * FROM User WHERE id = $1 OR email = $2;', 1, 'user@email.com')
* ```
*
* Read more in our [docs](https://www.prisma.io/docs/reference/tools-and-interfaces/prisma-client/raw-database-access).
*/
$queryRawUnsafe<T = unknown>(query: string, ...values: any[]): Prisma.PrismaPromise<T>;
/**
* Allows the running of a sequence of read/write operations that are guaranteed to either succeed or fail as a whole.
* @example
* ```
* const [george, bob, alice] = await prisma.$transaction([
* prisma.user.create({ data: { name: 'George' } }),
* prisma.user.create({ data: { name: 'Bob' } }),
* prisma.user.create({ data: { name: 'Alice' } }),
* ])
* ```
*
* Read more in our [docs](https://www.prisma.io/docs/concepts/components/prisma-client/transactions).
*/
$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
}>>
/**
* `prisma.user`: Exposes CRUD operations for the **User** model.
* Example usage:
* ```ts
* // Fetch zero or more Users
* const users = await prisma.user.findMany()
* ```
*/
get user(): Prisma.UserDelegate<ExtArgs, ClientOptions>;
/**
* `prisma.apiKey`: Exposes CRUD operations for the **ApiKey** model.
* Example usage:
* ```ts
* // Fetch zero or more ApiKeys
* const apiKeys = await prisma.apiKey.findMany()
* ```
*/
get apiKey(): Prisma.ApiKeyDelegate<ExtArgs, ClientOptions>;
/**
* `prisma.webHook`: Exposes CRUD operations for the **WebHook** model.
* Example usage:
* ```ts
* // Fetch zero or more WebHooks
* const webHooks = await prisma.webHook.findMany()
* ```
*/
get webHook(): Prisma.WebHookDelegate<ExtArgs, ClientOptions>;
/**
* `prisma.waHook`: Exposes CRUD operations for the **WaHook** model.
* Example usage:
* ```ts
* // Fetch zero or more WaHooks
* const waHooks = await prisma.waHook.findMany()
* ```
*/
get waHook(): Prisma.WaHookDelegate<ExtArgs, ClientOptions>;
/**
* `prisma.chatFlows`: Exposes CRUD operations for the **ChatFlows** model.
* Example usage:
* ```ts
* // Fetch zero or more ChatFlows
* const chatFlows = await prisma.chatFlows.findMany()
* ```
*/
get chatFlows(): Prisma.ChatFlowsDelegate<ExtArgs, ClientOptions>;
}
export namespace Prisma {
export import DMMF = runtime.DMMF
export type PrismaPromise<T> = $Public.PrismaPromise<T>
/**
* Validator
*/
export import validator = runtime.Public.validator
/**
* Prisma Errors
*/
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
/**
* Re-export of sql-template-tag
*/
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
/**
* Decimal.js
*/
export import Decimal = runtime.Decimal
export type DecimalJsLike = runtime.DecimalJsLike
/**
* Metrics
*/
export type Metrics = runtime.Metrics
export type Metric<T> = runtime.Metric<T>
export type MetricHistogram = runtime.MetricHistogram
export type MetricHistogramBucket = runtime.MetricHistogramBucket
/**
* Extensions
*/
export 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
/**
* Prisma Client JS version: 6.17.1
* Query Engine version: 272a37d34178c2894197e17273bf937f25acdeac
*/
export type PrismaVersion = {
client: string
}
export const prismaVersion: PrismaVersion
/**
* Utility Types
*/
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
/**
* Types of the values used to represent different kinds of `null` values when working with JSON fields.
*
* @see https://www.prisma.io/docs/concepts/components/prisma-client/working-with-fields/working-with-json-fields#filtering-on-a-json-field
*/
namespace NullTypes {
/**
* Type of `Prisma.DbNull`.
*
* You cannot use other instances of this class. Please use the `Prisma.DbNull` value.
*
* @see https://www.prisma.io/docs/concepts/components/prisma-client/working-with-fields/working-with-json-fields#filtering-on-a-json-field
*/
class DbNull {
private DbNull: never
private constructor()
}
/**
* Type of `Prisma.JsonNull`.
*
* You cannot use other instances of this class. Please use the `Prisma.JsonNull` value.
*
* @see https://www.prisma.io/docs/concepts/components/prisma-client/working-with-fields/working-with-json-fields#filtering-on-a-json-field
*/
class JsonNull {
private JsonNull: never
private constructor()
}
/**
* Type of `Prisma.AnyNull`.
*
* You cannot use other instances of this class. Please use the `Prisma.AnyNull` value.
*
* @see https://www.prisma.io/docs/concepts/components/prisma-client/working-with-fields/working-with-json-fields#filtering-on-a-json-field
*/
class AnyNull {
private AnyNull: never
private constructor()
}
}
/**
* Helper for filtering JSON entries that have `null` on the database (empty on the db)
*
* @see https://www.prisma.io/docs/concepts/components/prisma-client/working-with-fields/working-with-json-fields#filtering-on-a-json-field
*/
export const DbNull: NullTypes.DbNull
/**
* Helper for filtering JSON entries that have JSON `null` values (not empty on the db)
*
* @see https://www.prisma.io/docs/concepts/components/prisma-client/working-with-fields/working-with-json-fields#filtering-on-a-json-field
*/
export const JsonNull: NullTypes.JsonNull
/**
* Helper for filtering JSON entries that are `Prisma.DbNull` or `Prisma.JsonNull`
*
* @see https://www.prisma.io/docs/concepts/components/prisma-client/working-with-fields/working-with-json-fields#filtering-on-a-json-field
*/
export const AnyNull: NullTypes.AnyNull
type SelectAndInclude = {
select: any
include: any
}
type SelectAndOmit = {
select: any
omit: any
}
/**
* Get the type of the value, that the Promise holds.
*/
export type PromiseType<T extends PromiseLike<any>> = T extends PromiseLike<infer U> ? U : T;
/**
* Get the return type of a function which returns a Promise.
*/
export type PromiseReturnType<T extends (...args: any) => $Utils.JsPromise<any>> = PromiseType<ReturnType<T>>
/**
* From T, pick a set of properties whose keys are in the union K
*/
type Prisma__Pick<T, K extends keyof T> = {
[P in K]: T[P];
};
export type Enumerable<T> = T | Array<T>;
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>>>
/**
* Subset
* @desc From `T` pick properties that exist in `U`. Simple version of Intersection
*/
export type Subset<T, U> = {
[key in keyof T]: key extends keyof U ? T[key] : never;
};
/**
* SelectSubset
* @desc From `T` pick properties that exist in `U`. Simple version of Intersection.
* Additionally, it validates, if both select and include are present. If the case, it errors.
*/
export type SelectSubset<T, U> = {
[key in keyof T]: key extends keyof U ? T[key] : never
} &
(T extends SelectAndInclude
? 'Please either choose `select` or `include`.'
: T extends SelectAndOmit
? 'Please either choose `select` or `omit`.'
: {})
/**
* Subset + Intersection
* @desc From `T` pick properties that exist in `U` and intersect `K`
*/
export type SubsetIntersection<T, U, K> = {
[key in keyof T]: key extends keyof U ? T[key] : never
} &
K
type Without<T, U> = { [P in Exclude<keyof T, keyof U>]?: never };
/**
* XOR is needed to have a real mutually exclusive union type
* https://stackoverflow.com/questions/42123407/does-typescript-support-mutually-exclusive-types
*/
type XOR<T, U> =
T extends object ?
U extends object ?
(Without<T, U> & U) | (Without<U, T> & T)
: U : T
/**
* Is T a Record?
*/
type IsObject<T extends any> = T extends Array<any>
? False
: T extends Date
? False
: T extends Uint8Array
? False
: T extends BigInt
? False
: T extends object
? True
: False
/**
* If it's T[], return T
*/
export type UnEnumerate<T extends unknown> = T extends Array<infer U> ? U : T
/**
* From ts-toolbelt
*/
type __Either<O extends object, K extends Key> = Omit<O, K> &
{
// Merge all but K
[P in K]: Prisma__Pick<O, P & keyof O> // With K possibilities
}[K]
type EitherStrict<O extends object, K extends Key> = Strict<__Either<O, K>>
type EitherLoose<O extends object, K extends Key> = ComputeRaw<__Either<O, K>>
type _Either<
O extends object,
K extends Key,
strict extends Boolean
> = {
1: EitherStrict<O, K>
0: EitherLoose<O, K>
}[strict]
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]
} & {}
/** Helper Types for "Merge" **/
export type IntersectOf<U extends Union> = (
U extends unknown ? (k: U) => void : never
) extends (k: infer I) => void
? I
: never
export type Overwrite<O extends object, O1 extends object> = {
[K in keyof O]: K extends keyof O1 ? O1[K] : O[K];
} & {};
type _Merge<U extends object> = IntersectOf<Overwrite<U, {
[K in keyof U]-?: At<U, K>;
}>>;
type Key = string | number | symbol;
type 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;
};
// cause typescript not to expand types and preserve names
type NoExpand<T> = T extends unknown ? T : never;
// this type assumes the passed object is entirely optional
type AtLeast<O extends object, K extends string> = NoExpand<
O extends unknown
? | (K extends keyof O ? { [P in K]: O[P] } & O : O)
| {[P in keyof O as P extends K ? P : never]-?: O[P]} & O
: never>;
type _Strict<U, _U = U> = U extends unknown ? U & OptionalFlat<_Record<Exclude<Keys<_U>, keyof U>, never>> : never;
export type Strict<U extends object> = ComputeRaw<_Strict<U>>;
/** End Helper Types for "Merge" **/
export type Merge<U extends object> = ComputeRaw<_Merge<Strict<U>>>;
/**
A [[Boolean]]
*/
export type Boolean = True | False
// /**
// 1
// */
export type True = 1
/**
0
*/
export type False = 0
export type Not<B extends Boolean> = {
0: 1
1: 0
}[B]
export type Extends<A1 extends any, A2 extends any> = [A1] extends [never]
? 0 // anything `never` is false
: A1 extends A2
? 1
: 0
export type Has<U extends Union, U1 extends Union> = Not<
Extends<Exclude<U1, U>, U1>
>
export type Or<B1 extends Boolean, B2 extends Boolean> = {
0: {
0: 0
1: 1
}
1: {
0: 1
1: 1
}
}[B1][B2]
export type Keys<U extends Union> = U extends unknown ? keyof U : never
type Cast<A, B> = A extends B ? A : B;
export const type: unique symbol;
/**
* Used by group by
*/
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
? // infer is only needed to not hit TS limit
// based on the brilliant idea of Pierre-Antoine Mills
// https://github.com/microsoft/TypeScript/issues/30188#issuecomment-478938437
T[K] extends infer TK
? GetHavingFields<UnEnumerate<TK> extends object ? Merge<UnEnumerate<TK>> : never>
: never
: {} extends FieldPaths<T[K]>
? never
: K
}[keyof T]
/**
* Convert tuple to union
*/
type _TupleToUnion<T> = T extends (infer E)[] ? E : never
type TupleToUnion<K extends readonly any[]> = _TupleToUnion<K>
type MaybeTupleToUnion<T> = T extends any[] ? TupleToUnion<T> : T
/**
* Like `Pick`, but additionally can also accept an array of keys
*/
type PickEnumerable<T, K extends Enumerable<keyof T> | keyof T> = Prisma__Pick<T, MaybeTupleToUnion<K>>
/**
* Exclude all keys with underscores
*/
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',
ApiKey: 'ApiKey',
WebHook: 'WebHook',
WaHook: 'WaHook',
ChatFlows: 'ChatFlows'
};
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" | "apiKey" | "webHook" | "waHook" | "chatFlows"
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
}
}
}
ApiKey: {
payload: Prisma.$ApiKeyPayload<ExtArgs>
fields: Prisma.ApiKeyFieldRefs
operations: {
findUnique: {
args: Prisma.ApiKeyFindUniqueArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$ApiKeyPayload> | null
}
findUniqueOrThrow: {
args: Prisma.ApiKeyFindUniqueOrThrowArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$ApiKeyPayload>
}
findFirst: {
args: Prisma.ApiKeyFindFirstArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$ApiKeyPayload> | null
}
findFirstOrThrow: {
args: Prisma.ApiKeyFindFirstOrThrowArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$ApiKeyPayload>
}
findMany: {
args: Prisma.ApiKeyFindManyArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$ApiKeyPayload>[]
}
create: {
args: Prisma.ApiKeyCreateArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$ApiKeyPayload>
}
createMany: {
args: Prisma.ApiKeyCreateManyArgs<ExtArgs>
result: BatchPayload
}
createManyAndReturn: {
args: Prisma.ApiKeyCreateManyAndReturnArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$ApiKeyPayload>[]
}
delete: {
args: Prisma.ApiKeyDeleteArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$ApiKeyPayload>
}
update: {
args: Prisma.ApiKeyUpdateArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$ApiKeyPayload>
}
deleteMany: {
args: Prisma.ApiKeyDeleteManyArgs<ExtArgs>
result: BatchPayload
}
updateMany: {
args: Prisma.ApiKeyUpdateManyArgs<ExtArgs>
result: BatchPayload
}
updateManyAndReturn: {
args: Prisma.ApiKeyUpdateManyAndReturnArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$ApiKeyPayload>[]
}
upsert: {
args: Prisma.ApiKeyUpsertArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$ApiKeyPayload>
}
aggregate: {
args: Prisma.ApiKeyAggregateArgs<ExtArgs>
result: $Utils.Optional<AggregateApiKey>
}
groupBy: {
args: Prisma.ApiKeyGroupByArgs<ExtArgs>
result: $Utils.Optional<ApiKeyGroupByOutputType>[]
}
count: {
args: Prisma.ApiKeyCountArgs<ExtArgs>
result: $Utils.Optional<ApiKeyCountAggregateOutputType> | number
}
}
}
WebHook: {
payload: Prisma.$WebHookPayload<ExtArgs>
fields: Prisma.WebHookFieldRefs
operations: {
findUnique: {
args: Prisma.WebHookFindUniqueArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$WebHookPayload> | null
}
findUniqueOrThrow: {
args: Prisma.WebHookFindUniqueOrThrowArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$WebHookPayload>
}
findFirst: {
args: Prisma.WebHookFindFirstArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$WebHookPayload> | null
}
findFirstOrThrow: {
args: Prisma.WebHookFindFirstOrThrowArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$WebHookPayload>
}
findMany: {
args: Prisma.WebHookFindManyArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$WebHookPayload>[]
}
create: {
args: Prisma.WebHookCreateArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$WebHookPayload>
}
createMany: {
args: Prisma.WebHookCreateManyArgs<ExtArgs>
result: BatchPayload
}
createManyAndReturn: {
args: Prisma.WebHookCreateManyAndReturnArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$WebHookPayload>[]
}
delete: {
args: Prisma.WebHookDeleteArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$WebHookPayload>
}
update: {
args: Prisma.WebHookUpdateArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$WebHookPayload>
}
deleteMany: {
args: Prisma.WebHookDeleteManyArgs<ExtArgs>
result: BatchPayload
}
updateMany: {
args: Prisma.WebHookUpdateManyArgs<ExtArgs>
result: BatchPayload
}
updateManyAndReturn: {
args: Prisma.WebHookUpdateManyAndReturnArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$WebHookPayload>[]
}
upsert: {
args: Prisma.WebHookUpsertArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$WebHookPayload>
}
aggregate: {
args: Prisma.WebHookAggregateArgs<ExtArgs>
result: $Utils.Optional<AggregateWebHook>
}
groupBy: {
args: Prisma.WebHookGroupByArgs<ExtArgs>
result: $Utils.Optional<WebHookGroupByOutputType>[]
}
count: {
args: Prisma.WebHookCountArgs<ExtArgs>
result: $Utils.Optional<WebHookCountAggregateOutputType> | number
}
}
}
WaHook: {
payload: Prisma.$WaHookPayload<ExtArgs>
fields: Prisma.WaHookFieldRefs
operations: {
findUnique: {
args: Prisma.WaHookFindUniqueArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$WaHookPayload> | null
}
findUniqueOrThrow: {
args: Prisma.WaHookFindUniqueOrThrowArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$WaHookPayload>
}
findFirst: {
args: Prisma.WaHookFindFirstArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$WaHookPayload> | null
}
findFirstOrThrow: {
args: Prisma.WaHookFindFirstOrThrowArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$WaHookPayload>
}
findMany: {
args: Prisma.WaHookFindManyArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$WaHookPayload>[]
}
create: {
args: Prisma.WaHookCreateArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$WaHookPayload>
}
createMany: {
args: Prisma.WaHookCreateManyArgs<ExtArgs>
result: BatchPayload
}
createManyAndReturn: {
args: Prisma.WaHookCreateManyAndReturnArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$WaHookPayload>[]
}
delete: {
args: Prisma.WaHookDeleteArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$WaHookPayload>
}
update: {
args: Prisma.WaHookUpdateArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$WaHookPayload>
}
deleteMany: {
args: Prisma.WaHookDeleteManyArgs<ExtArgs>
result: BatchPayload
}
updateMany: {
args: Prisma.WaHookUpdateManyArgs<ExtArgs>
result: BatchPayload
}
updateManyAndReturn: {
args: Prisma.WaHookUpdateManyAndReturnArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$WaHookPayload>[]
}
upsert: {
args: Prisma.WaHookUpsertArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$WaHookPayload>
}
aggregate: {
args: Prisma.WaHookAggregateArgs<ExtArgs>
result: $Utils.Optional<AggregateWaHook>
}
groupBy: {
args: Prisma.WaHookGroupByArgs<ExtArgs>
result: $Utils.Optional<WaHookGroupByOutputType>[]
}
count: {
args: Prisma.WaHookCountArgs<ExtArgs>
result: $Utils.Optional<WaHookCountAggregateOutputType> | number
}
}
}
ChatFlows: {
payload: Prisma.$ChatFlowsPayload<ExtArgs>
fields: Prisma.ChatFlowsFieldRefs
operations: {
findUnique: {
args: Prisma.ChatFlowsFindUniqueArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$ChatFlowsPayload> | null
}
findUniqueOrThrow: {
args: Prisma.ChatFlowsFindUniqueOrThrowArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$ChatFlowsPayload>
}
findFirst: {
args: Prisma.ChatFlowsFindFirstArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$ChatFlowsPayload> | null
}
findFirstOrThrow: {
args: Prisma.ChatFlowsFindFirstOrThrowArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$ChatFlowsPayload>
}
findMany: {
args: Prisma.ChatFlowsFindManyArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$ChatFlowsPayload>[]
}
create: {
args: Prisma.ChatFlowsCreateArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$ChatFlowsPayload>
}
createMany: {
args: Prisma.ChatFlowsCreateManyArgs<ExtArgs>
result: BatchPayload
}
createManyAndReturn: {
args: Prisma.ChatFlowsCreateManyAndReturnArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$ChatFlowsPayload>[]
}
delete: {
args: Prisma.ChatFlowsDeleteArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$ChatFlowsPayload>
}
update: {
args: Prisma.ChatFlowsUpdateArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$ChatFlowsPayload>
}
deleteMany: {
args: Prisma.ChatFlowsDeleteManyArgs<ExtArgs>
result: BatchPayload
}
updateMany: {
args: Prisma.ChatFlowsUpdateManyArgs<ExtArgs>
result: BatchPayload
}
updateManyAndReturn: {
args: Prisma.ChatFlowsUpdateManyAndReturnArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$ChatFlowsPayload>[]
}
upsert: {
args: Prisma.ChatFlowsUpsertArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$ChatFlowsPayload>
}
aggregate: {
args: Prisma.ChatFlowsAggregateArgs<ExtArgs>
result: $Utils.Optional<AggregateChatFlows>
}
groupBy: {
args: Prisma.ChatFlowsGroupByArgs<ExtArgs>
result: $Utils.Optional<ChatFlowsGroupByOutputType>[]
}
count: {
args: Prisma.ChatFlowsCountArgs<ExtArgs>
result: $Utils.Optional<ChatFlowsCountAggregateOutputType> | 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 {
/**
* Overwrites the datasource url from your schema.prisma file
*/
datasources?: Datasources
/**
* Overwrites the datasource url from your schema.prisma file
*/
datasourceUrl?: string
/**
* @default "colorless"
*/
errorFormat?: ErrorFormat
/**
* @example
* ```
* // Shorthand for `emit: 'stdout'`
* log: ['query', 'info', 'warn', 'error']
*
* // Emit as events only
* log: [
* { emit: 'event', level: 'query' },
* { emit: 'event', level: 'info' },
* { emit: 'event', level: 'warn' }
* { emit: 'event', level: 'error' }
* ]
*
* / Emit as events and log to stdout
* og: [
* { emit: 'stdout', level: 'query' },
* { emit: 'stdout', level: 'info' },
* { emit: 'stdout', level: 'warn' }
* { emit: 'stdout', level: 'error' }
*
* ```
* Read more in our [docs](https://www.prisma.io/docs/reference/tools-and-interfaces/prisma-client/logging#the-log-option).
*/
log?: (LogLevel | LogDefinition)[]
/**
* The default values for transactionOptions
* maxWait ?= 2000
* timeout ?= 5000
*/
transactionOptions?: {
maxWait?: number
timeout?: number
isolationLevel?: Prisma.TransactionIsolationLevel
}
/**
* Instance of a Driver Adapter, e.g., like one provided by `@prisma/adapter-planetscale`
*/
adapter?: runtime.SqlDriverAdapterFactory | null
/**
* Global configuration for omitting model fields by default.
*
* @example
* ```
* const prisma = new PrismaClient({
* omit: {
* user: {
* password: true
* }
* }
* })
* ```
*/
omit?: Prisma.GlobalOmitConfig
}
export type GlobalOmitConfig = {
user?: UserOmit
apiKey?: ApiKeyOmit
webHook?: WebHookOmit
waHook?: WaHookOmit
chatFlows?: ChatFlowsOmit
}
/* Types for Logging */
export type LogLevel = 'info' | 'query' | 'warn' | 'error'
export type LogDefinition = {
level: LogLevel
emit: 'stdout' | 'event'
}
export type CheckIsLogLevel<T> = T extends LogLevel ? T : never;
export type GetLogType<T> = CheckIsLogLevel<
T extends LogDefinition ? T['level'] : T
>;
export type GetEvents<T extends any[]> = T extends Array<LogLevel | LogDefinition>
? GetLogType<T[number]>
: never;
export type QueryEvent = {
timestamp: Date
query: string
params: string
duration: number
target: string
}
export type LogEvent = {
timestamp: Date
message: string
target: string
}
/* End Types for Logging */
export type PrismaAction =
| 'findUnique'
| 'findUniqueOrThrow'
| 'findMany'
| 'findFirst'
| 'findFirstOrThrow'
| 'create'
| 'createMany'
| 'createManyAndReturn'
| 'update'
| 'updateMany'
| 'updateManyAndReturn'
| 'upsert'
| 'delete'
| 'deleteMany'
| 'executeRaw'
| 'queryRaw'
| 'aggregate'
| 'count'
| 'runCommandRaw'
| 'findRaw'
| 'groupBy'
// tested in getLogLevel.test.ts
export function getLogLevel(log: Array<LogLevel | LogDefinition>): LogLevel | undefined;
/**
* `PrismaClient` proxy available in interactive transactions.
*/
export type TransactionClient = Omit<Prisma.DefaultPrismaClient, runtime.ITXClientDenyList>
export type Datasource = {
url?: string
}
/**
* Count Types
*/
/**
* Count Type UserCountOutputType
*/
export type UserCountOutputType = {
ApiKey: number
}
export type UserCountOutputTypeSelect<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
ApiKey?: boolean | UserCountOutputTypeCountApiKeyArgs
}
// Custom InputTypes
/**
* UserCountOutputType without action
*/
export type UserCountOutputTypeDefaultArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the UserCountOutputType
*/
select?: UserCountOutputTypeSelect<ExtArgs> | null
}
/**
* UserCountOutputType without action
*/
export type UserCountOutputTypeCountApiKeyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
where?: ApiKeyWhereInput
}
/**
* Models
*/
/**
* Model User
*/
export type AggregateUser = {
_count: UserCountAggregateOutputType | null
_min: UserMinAggregateOutputType | null
_max: UserMaxAggregateOutputType | null
}
export type UserMinAggregateOutputType = {
id: string | null
name: string | null
email: string | null
password: string | null
createdAt: Date | null
updatedAt: Date | null
}
export type UserMaxAggregateOutputType = {
id: string | null
name: string | null
email: string | null
password: string | null
createdAt: Date | null
updatedAt: Date | null
}
export type UserCountAggregateOutputType = {
id: number
name: number
email: number
password: number
createdAt: number
updatedAt: number
_all: number
}
export type UserMinAggregateInputType = {
id?: true
name?: true
email?: true
password?: true
createdAt?: true
updatedAt?: true
}
export type UserMaxAggregateInputType = {
id?: true
name?: true
email?: true
password?: true
createdAt?: true
updatedAt?: true
}
export type UserCountAggregateInputType = {
id?: true
name?: true
email?: true
password?: true
createdAt?: true
updatedAt?: true
_all?: true
}
export type UserAggregateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Filter which User to aggregate.
*/
where?: UserWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of Users to fetch.
*/
orderBy?: UserOrderByWithRelationInput | UserOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the start position
*/
cursor?: UserWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` Users from the position of the cursor.
*/
take?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Skip the first `n` Users.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Count returned Users
**/
_count?: true | UserCountAggregateInputType
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to find the minimum value
**/
_min?: UserMinAggregateInputType
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to find the maximum value
**/
_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
_min?: UserMinAggregateInputType
_max?: UserMaxAggregateInputType
}
export type UserGroupByOutputType = {
id: string
name: string | null
email: string | null
password: string | null
createdAt: Date
updatedAt: Date
_count: UserCountAggregateOutputType | 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
name?: boolean
email?: boolean
password?: boolean
createdAt?: boolean
updatedAt?: boolean
ApiKey?: boolean | User$ApiKeyArgs<ExtArgs>
_count?: boolean | UserCountOutputTypeDefaultArgs<ExtArgs>
}, ExtArgs["result"]["user"]>
export type UserSelectCreateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
id?: boolean
name?: boolean
email?: boolean
password?: boolean
createdAt?: boolean
updatedAt?: boolean
}, ExtArgs["result"]["user"]>
export type UserSelectUpdateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
id?: boolean
name?: boolean
email?: boolean
password?: boolean
createdAt?: boolean
updatedAt?: boolean
}, ExtArgs["result"]["user"]>
export type UserSelectScalar = {
id?: boolean
name?: boolean
email?: boolean
password?: boolean
createdAt?: boolean
updatedAt?: boolean
}
export type UserOmit<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetOmit<"id" | "name" | "email" | "password" | "createdAt" | "updatedAt", ExtArgs["result"]["user"]>
export type UserInclude<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
ApiKey?: boolean | User$ApiKeyArgs<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: {
ApiKey: Prisma.$ApiKeyPayload<ExtArgs>[]
}
scalars: $Extensions.GetPayloadResult<{
id: string
name: string | null
email: string | null
password: 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' } }
/**
* Find zero or one User that matches the filter.
* @param {UserFindUniqueArgs} args - Arguments to find a User
* @example
* // Get one User
* const user = await prisma.user.findUnique({
* where: {
* // ... provide filter here
* }
* })
*/
findUnique<T extends UserFindUniqueArgs>(args: SelectSubset<T, UserFindUniqueArgs<ExtArgs>>): Prisma__UserClient<$Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
/**
* Find one User that matches the filter or throw an error with `error.code='P2025'`
* if no matches were found.
* @param {UserFindUniqueOrThrowArgs} args - Arguments to find a User
* @example
* // Get one User
* const user = await prisma.user.findUniqueOrThrow({
* where: {
* // ... provide filter here
* }
* })
*/
findUniqueOrThrow<T extends UserFindUniqueOrThrowArgs>(args: SelectSubset<T, UserFindUniqueOrThrowArgs<ExtArgs>>): Prisma__UserClient<$Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Find the first User that matches the filter.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {UserFindFirstArgs} args - Arguments to find a User
* @example
* // Get one User
* const user = await prisma.user.findFirst({
* where: {
* // ... provide filter here
* }
* })
*/
findFirst<T extends UserFindFirstArgs>(args?: SelectSubset<T, UserFindFirstArgs<ExtArgs>>): Prisma__UserClient<$Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
/**
* Find the first User that matches the filter or
* throw `PrismaKnownClientError` with `P2025` code if no matches were found.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {UserFindFirstOrThrowArgs} args - Arguments to find a User
* @example
* // Get one User
* const user = await prisma.user.findFirstOrThrow({
* where: {
* // ... provide filter here
* }
* })
*/
findFirstOrThrow<T extends UserFindFirstOrThrowArgs>(args?: SelectSubset<T, UserFindFirstOrThrowArgs<ExtArgs>>): Prisma__UserClient<$Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Find zero or more Users that matches the filter.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {UserFindManyArgs} args - Arguments to filter and select certain fields only.
* @example
* // Get all Users
* const users = await prisma.user.findMany()
*
* // Get first 10 Users
* const users = await prisma.user.findMany({ take: 10 })
*
* // Only select the `id`
* const userWithIdOnly = await prisma.user.findMany({ select: { id: true } })
*
*/
findMany<T extends UserFindManyArgs>(args?: SelectSubset<T, UserFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
/**
* Create a User.
* @param {UserCreateArgs} args - Arguments to create a User.
* @example
* // Create one User
* const User = await prisma.user.create({
* data: {
* // ... data to create a User
* }
* })
*
*/
create<T extends UserCreateArgs>(args: SelectSubset<T, UserCreateArgs<ExtArgs>>): Prisma__UserClient<$Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Create many Users.
* @param {UserCreateManyArgs} args - Arguments to create many Users.
* @example
* // Create many Users
* const user = await prisma.user.createMany({
* data: [
* // ... provide data here
* ]
* })
*
*/
createMany<T extends UserCreateManyArgs>(args?: SelectSubset<T, UserCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
/**
* Create many Users and returns the data saved in the database.
* @param {UserCreateManyAndReturnArgs} args - Arguments to create many Users.
* @example
* // Create many Users
* const user = await prisma.user.createManyAndReturn({
* data: [
* // ... provide data here
* ]
* })
*
* // Create many Users and only return the `id`
* const userWithIdOnly = await prisma.user.createManyAndReturn({
* select: { id: true },
* data: [
* // ... provide data here
* ]
* })
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
*
*/
createManyAndReturn<T extends UserCreateManyAndReturnArgs>(args?: SelectSubset<T, UserCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>
/**
* Delete a User.
* @param {UserDeleteArgs} args - Arguments to delete one User.
* @example
* // Delete one User
* const User = await prisma.user.delete({
* where: {
* // ... filter to delete one User
* }
* })
*
*/
delete<T extends UserDeleteArgs>(args: SelectSubset<T, UserDeleteArgs<ExtArgs>>): Prisma__UserClient<$Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Update one User.
* @param {UserUpdateArgs} args - Arguments to update one User.
* @example
* // Update one User
* const user = await prisma.user.update({
* where: {
* // ... provide filter here
* },
* data: {
* // ... provide data here
* }
* })
*
*/
update<T extends UserUpdateArgs>(args: SelectSubset<T, UserUpdateArgs<ExtArgs>>): Prisma__UserClient<$Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Delete zero or more Users.
* @param {UserDeleteManyArgs} args - Arguments to filter Users to delete.
* @example
* // Delete a few Users
* const { count } = await prisma.user.deleteMany({
* where: {
* // ... provide filter here
* }
* })
*
*/
deleteMany<T extends UserDeleteManyArgs>(args?: SelectSubset<T, UserDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
/**
* Update zero or more Users.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {UserUpdateManyArgs} args - Arguments to update one or more rows.
* @example
* // Update many Users
* const user = await prisma.user.updateMany({
* where: {
* // ... provide filter here
* },
* data: {
* // ... provide data here
* }
* })
*
*/
updateMany<T extends UserUpdateManyArgs>(args: SelectSubset<T, UserUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
/**
* Update zero or more Users and returns the data updated in the database.
* @param {UserUpdateManyAndReturnArgs} args - Arguments to update many Users.
* @example
* // Update many Users
* const user = await prisma.user.updateManyAndReturn({
* where: {
* // ... provide filter here
* },
* data: [
* // ... provide data here
* ]
* })
*
* // Update zero or more Users and only return the `id`
* const userWithIdOnly = await prisma.user.updateManyAndReturn({
* select: { id: true },
* where: {
* // ... provide filter here
* },
* data: [
* // ... provide data here
* ]
* })
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
*
*/
updateManyAndReturn<T extends UserUpdateManyAndReturnArgs>(args: SelectSubset<T, UserUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>
/**
* Create or update one User.
* @param {UserUpsertArgs} args - Arguments to update or create a User.
* @example
* // Update or create a User
* const user = await prisma.user.upsert({
* create: {
* // ... data to create a User
* },
* update: {
* // ... in case it already exists, update
* },
* where: {
* // ... the filter for the User we want to update
* }
* })
*/
upsert<T extends UserUpsertArgs>(args: SelectSubset<T, UserUpsertArgs<ExtArgs>>): Prisma__UserClient<$Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Count the number of Users.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {UserCountArgs} args - Arguments to filter Users to count.
* @example
* // Count the number of Users
* const count = await prisma.user.count({
* where: {
* // ... the filter for the Users we want to count
* }
* })
**/
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
>
/**
* Allows you to perform aggregations operations on a User.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {UserAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
* @example
* // Ordered by age ascending
* // Where email contains prisma.io
* // Limited to the 10 users
* const aggregations = await prisma.user.aggregate({
* _avg: {
* age: true,
* },
* where: {
* email: {
* contains: "prisma.io",
* },
* },
* orderBy: {
* age: "asc",
* },
* take: 10,
* })
**/
aggregate<T extends UserAggregateArgs>(args: Subset<T, UserAggregateArgs>): Prisma.PrismaPromise<GetUserAggregateType<T>>
/**
* Group by User.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {UserGroupByArgs} args - Group by arguments.
* @example
* // Group by city, order by createdAt, get count
* const result = await prisma.user.groupBy({
* by: ['city', 'createdAt'],
* orderBy: {
* createdAt: true
* },
* _count: {
* _all: true
* },
* })
*
**/
groupBy<
T extends 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>
/**
* Fields of the User model
*/
readonly fields: UserFieldRefs;
}
/**
* The delegate class that acts as a "Promise-like" for User.
* Why is this prefixed with `Prisma__`?
* Because we want to prevent naming conflicts as mentioned in
* https://github.com/prisma/prisma-client-js/issues/707
*/
export interface Prisma__UserClient<T, Null = never, ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
readonly [Symbol.toStringTag]: "PrismaPromise"
ApiKey<T extends User$ApiKeyArgs<ExtArgs> = {}>(args?: Subset<T, User$ApiKeyArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$ApiKeyPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
/**
* Attaches callbacks for the resolution and/or rejection of the Promise.
* @param onfulfilled The callback to execute when the Promise is resolved.
* @param onrejected The callback to execute when the Promise is rejected.
* @returns A Promise for the completion of which ever callback is executed.
*/
then<TResult1 = T, TResult2 = never>(onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined | null): $Utils.JsPromise<TResult1 | TResult2>
/**
* Attaches a callback for only the rejection of the Promise.
* @param onrejected The callback to execute when the Promise is rejected.
* @returns A Promise for the completion of the callback.
*/
catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): $Utils.JsPromise<T | TResult>
/**
* Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
* resolved value cannot be modified from the callback.
* @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
* @returns A Promise for the completion of the callback.
*/
finally(onfinally?: (() => void) | undefined | null): $Utils.JsPromise<T>
}
/**
* Fields of the User model
*/
interface UserFieldRefs {
readonly id: FieldRef<"User", 'String'>
readonly name: FieldRef<"User", 'String'>
readonly email: FieldRef<"User", 'String'>
readonly password: FieldRef<"User", 'String'>
readonly createdAt: FieldRef<"User", 'DateTime'>
readonly updatedAt: FieldRef<"User", 'DateTime'>
}
// Custom InputTypes
/**
* User findUnique
*/
export type UserFindUniqueArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the User
*/
select?: UserSelect<ExtArgs> | null
/**
* Omit specific fields from the User
*/
omit?: UserOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: UserInclude<ExtArgs> | null
/**
* Filter, which User to fetch.
*/
where: UserWhereUniqueInput
}
/**
* User findUniqueOrThrow
*/
export type UserFindUniqueOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the User
*/
select?: UserSelect<ExtArgs> | null
/**
* Omit specific fields from the User
*/
omit?: UserOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: UserInclude<ExtArgs> | null
/**
* Filter, which User to fetch.
*/
where: UserWhereUniqueInput
}
/**
* User findFirst
*/
export type UserFindFirstArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the User
*/
select?: UserSelect<ExtArgs> | null
/**
* Omit specific fields from the User
*/
omit?: UserOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: UserInclude<ExtArgs> | null
/**
* Filter, which User to fetch.
*/
where?: UserWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of Users to fetch.
*/
orderBy?: UserOrderByWithRelationInput | UserOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the position for searching for Users.
*/
cursor?: UserWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` Users from the position of the cursor.
*/
take?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Skip the first `n` Users.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
*
* Filter by unique combinations of Users.
*/
distinct?: UserScalarFieldEnum | UserScalarFieldEnum[]
}
/**
* User findFirstOrThrow
*/
export type UserFindFirstOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the User
*/
select?: UserSelect<ExtArgs> | null
/**
* Omit specific fields from the User
*/
omit?: UserOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: UserInclude<ExtArgs> | null
/**
* Filter, which User to fetch.
*/
where?: UserWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of Users to fetch.
*/
orderBy?: UserOrderByWithRelationInput | UserOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the position for searching for Users.
*/
cursor?: UserWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` Users from the position of the cursor.
*/
take?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Skip the first `n` Users.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
*
* Filter by unique combinations of Users.
*/
distinct?: UserScalarFieldEnum | UserScalarFieldEnum[]
}
/**
* User findMany
*/
export type UserFindManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the User
*/
select?: UserSelect<ExtArgs> | null
/**
* Omit specific fields from the User
*/
omit?: UserOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: UserInclude<ExtArgs> | null
/**
* Filter, which Users to fetch.
*/
where?: UserWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of Users to fetch.
*/
orderBy?: UserOrderByWithRelationInput | UserOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the position for listing Users.
*/
cursor?: UserWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` Users from the position of the cursor.
*/
take?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Skip the first `n` Users.
*/
skip?: number
distinct?: UserScalarFieldEnum | UserScalarFieldEnum[]
}
/**
* User create
*/
export type UserCreateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the User
*/
select?: UserSelect<ExtArgs> | null
/**
* Omit specific fields from the User
*/
omit?: UserOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: UserInclude<ExtArgs> | null
/**
* The data needed to create a User.
*/
data: XOR<UserCreateInput, UserUncheckedCreateInput>
}
/**
* User createMany
*/
export type UserCreateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* The data used to create many Users.
*/
data: UserCreateManyInput | UserCreateManyInput[]
skipDuplicates?: boolean
}
/**
* User createManyAndReturn
*/
export type UserCreateManyAndReturnArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the User
*/
select?: UserSelectCreateManyAndReturn<ExtArgs> | null
/**
* Omit specific fields from the User
*/
omit?: UserOmit<ExtArgs> | null
/**
* The data used to create many Users.
*/
data: UserCreateManyInput | UserCreateManyInput[]
skipDuplicates?: boolean
}
/**
* User update
*/
export type UserUpdateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the User
*/
select?: UserSelect<ExtArgs> | null
/**
* Omit specific fields from the User
*/
omit?: UserOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: UserInclude<ExtArgs> | null
/**
* The data needed to update a User.
*/
data: XOR<UserUpdateInput, UserUncheckedUpdateInput>
/**
* Choose, which User to update.
*/
where: UserWhereUniqueInput
}
/**
* User updateMany
*/
export type UserUpdateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* The data used to update Users.
*/
data: XOR<UserUpdateManyMutationInput, UserUncheckedUpdateManyInput>
/**
* Filter which Users to update
*/
where?: UserWhereInput
/**
* Limit how many Users to update.
*/
limit?: number
}
/**
* User updateManyAndReturn
*/
export type UserUpdateManyAndReturnArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the User
*/
select?: UserSelectUpdateManyAndReturn<ExtArgs> | null
/**
* Omit specific fields from the User
*/
omit?: UserOmit<ExtArgs> | null
/**
* The data used to update Users.
*/
data: XOR<UserUpdateManyMutationInput, UserUncheckedUpdateManyInput>
/**
* Filter which Users to update
*/
where?: UserWhereInput
/**
* Limit how many Users to update.
*/
limit?: number
}
/**
* User upsert
*/
export type UserUpsertArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the User
*/
select?: UserSelect<ExtArgs> | null
/**
* Omit specific fields from the User
*/
omit?: UserOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: UserInclude<ExtArgs> | null
/**
* The filter to search for the User to update in case it exists.
*/
where: UserWhereUniqueInput
/**
* In case the User found by the `where` argument doesn't exist, create a new User with this data.
*/
create: XOR<UserCreateInput, UserUncheckedCreateInput>
/**
* In case the User was found with the provided `where` argument, update it with this data.
*/
update: XOR<UserUpdateInput, UserUncheckedUpdateInput>
}
/**
* User delete
*/
export type UserDeleteArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the User
*/
select?: UserSelect<ExtArgs> | null
/**
* Omit specific fields from the User
*/
omit?: UserOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: UserInclude<ExtArgs> | null
/**
* Filter which User to delete.
*/
where: UserWhereUniqueInput
}
/**
* User deleteMany
*/
export type UserDeleteManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Filter which Users to delete
*/
where?: UserWhereInput
/**
* Limit how many Users to delete.
*/
limit?: number
}
/**
* User.ApiKey
*/
export type User$ApiKeyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the ApiKey
*/
select?: ApiKeySelect<ExtArgs> | null
/**
* Omit specific fields from the ApiKey
*/
omit?: ApiKeyOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: ApiKeyInclude<ExtArgs> | null
where?: ApiKeyWhereInput
orderBy?: ApiKeyOrderByWithRelationInput | ApiKeyOrderByWithRelationInput[]
cursor?: ApiKeyWhereUniqueInput
take?: number
skip?: number
distinct?: ApiKeyScalarFieldEnum | ApiKeyScalarFieldEnum[]
}
/**
* User without action
*/
export type UserDefaultArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the User
*/
select?: UserSelect<ExtArgs> | null
/**
* Omit specific fields from the User
*/
omit?: UserOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: UserInclude<ExtArgs> | null
}
/**
* Model ApiKey
*/
export type AggregateApiKey = {
_count: ApiKeyCountAggregateOutputType | null
_min: ApiKeyMinAggregateOutputType | null
_max: ApiKeyMaxAggregateOutputType | null
}
export type ApiKeyMinAggregateOutputType = {
id: string | null
userId: string | null
name: string | null
key: string | null
description: string | null
expiredAt: Date | null
createdAt: Date | null
updatedAt: Date | null
}
export type ApiKeyMaxAggregateOutputType = {
id: string | null
userId: string | null
name: string | null
key: string | null
description: string | null
expiredAt: Date | null
createdAt: Date | null
updatedAt: Date | null
}
export type ApiKeyCountAggregateOutputType = {
id: number
userId: number
name: number
key: number
description: number
expiredAt: number
createdAt: number
updatedAt: number
_all: number
}
export type ApiKeyMinAggregateInputType = {
id?: true
userId?: true
name?: true
key?: true
description?: true
expiredAt?: true
createdAt?: true
updatedAt?: true
}
export type ApiKeyMaxAggregateInputType = {
id?: true
userId?: true
name?: true
key?: true
description?: true
expiredAt?: true
createdAt?: true
updatedAt?: true
}
export type ApiKeyCountAggregateInputType = {
id?: true
userId?: true
name?: true
key?: true
description?: true
expiredAt?: true
createdAt?: true
updatedAt?: true
_all?: true
}
export type ApiKeyAggregateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Filter which ApiKey to aggregate.
*/
where?: ApiKeyWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of ApiKeys to fetch.
*/
orderBy?: ApiKeyOrderByWithRelationInput | ApiKeyOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the start position
*/
cursor?: ApiKeyWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` ApiKeys from the position of the cursor.
*/
take?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Skip the first `n` ApiKeys.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Count returned ApiKeys
**/
_count?: true | ApiKeyCountAggregateInputType
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to find the minimum value
**/
_min?: ApiKeyMinAggregateInputType
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to find the maximum value
**/
_max?: ApiKeyMaxAggregateInputType
}
export type GetApiKeyAggregateType<T extends ApiKeyAggregateArgs> = {
[P in keyof T & keyof AggregateApiKey]: P extends '_count' | 'count'
? T[P] extends true
? number
: GetScalarType<T[P], AggregateApiKey[P]>
: GetScalarType<T[P], AggregateApiKey[P]>
}
export type ApiKeyGroupByArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
where?: ApiKeyWhereInput
orderBy?: ApiKeyOrderByWithAggregationInput | ApiKeyOrderByWithAggregationInput[]
by: ApiKeyScalarFieldEnum[] | ApiKeyScalarFieldEnum
having?: ApiKeyScalarWhereWithAggregatesInput
take?: number
skip?: number
_count?: ApiKeyCountAggregateInputType | true
_min?: ApiKeyMinAggregateInputType
_max?: ApiKeyMaxAggregateInputType
}
export type ApiKeyGroupByOutputType = {
id: string
userId: string
name: string
key: string
description: string | null
expiredAt: Date | null
createdAt: Date
updatedAt: Date
_count: ApiKeyCountAggregateOutputType | null
_min: ApiKeyMinAggregateOutputType | null
_max: ApiKeyMaxAggregateOutputType | null
}
type GetApiKeyGroupByPayload<T extends ApiKeyGroupByArgs> = Prisma.PrismaPromise<
Array<
PickEnumerable<ApiKeyGroupByOutputType, T['by']> &
{
[P in ((keyof T) & (keyof ApiKeyGroupByOutputType))]: P extends '_count'
? T[P] extends boolean
? number
: GetScalarType<T[P], ApiKeyGroupByOutputType[P]>
: GetScalarType<T[P], ApiKeyGroupByOutputType[P]>
}
>
>
export type ApiKeySelect<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
id?: boolean
userId?: boolean
name?: boolean
key?: boolean
description?: boolean
expiredAt?: boolean
createdAt?: boolean
updatedAt?: boolean
User?: boolean | ApiKey$UserArgs<ExtArgs>
}, ExtArgs["result"]["apiKey"]>
export type ApiKeySelectCreateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
id?: boolean
userId?: boolean
name?: boolean
key?: boolean
description?: boolean
expiredAt?: boolean
createdAt?: boolean
updatedAt?: boolean
User?: boolean | ApiKey$UserArgs<ExtArgs>
}, ExtArgs["result"]["apiKey"]>
export type ApiKeySelectUpdateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
id?: boolean
userId?: boolean
name?: boolean
key?: boolean
description?: boolean
expiredAt?: boolean
createdAt?: boolean
updatedAt?: boolean
User?: boolean | ApiKey$UserArgs<ExtArgs>
}, ExtArgs["result"]["apiKey"]>
export type ApiKeySelectScalar = {
id?: boolean
userId?: boolean
name?: boolean
key?: boolean
description?: boolean
expiredAt?: boolean
createdAt?: boolean
updatedAt?: boolean
}
export type ApiKeyOmit<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetOmit<"id" | "userId" | "name" | "key" | "description" | "expiredAt" | "createdAt" | "updatedAt", ExtArgs["result"]["apiKey"]>
export type ApiKeyInclude<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
User?: boolean | ApiKey$UserArgs<ExtArgs>
}
export type ApiKeyIncludeCreateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
User?: boolean | ApiKey$UserArgs<ExtArgs>
}
export type ApiKeyIncludeUpdateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
User?: boolean | ApiKey$UserArgs<ExtArgs>
}
export type $ApiKeyPayload<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
name: "ApiKey"
objects: {
User: Prisma.$UserPayload<ExtArgs> | null
}
scalars: $Extensions.GetPayloadResult<{
id: string
userId: string
name: string
key: string
description: string | null
expiredAt: Date | null
createdAt: Date
updatedAt: Date
}, ExtArgs["result"]["apiKey"]>
composites: {}
}
type ApiKeyGetPayload<S extends boolean | null | undefined | ApiKeyDefaultArgs> = $Result.GetResult<Prisma.$ApiKeyPayload, S>
type ApiKeyCountArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> =
Omit<ApiKeyFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
select?: ApiKeyCountAggregateInputType | true
}
export interface ApiKeyDelegate<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs, GlobalOmitOptions = {}> {
[K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['ApiKey'], meta: { name: 'ApiKey' } }
/**
* Find zero or one ApiKey that matches the filter.
* @param {ApiKeyFindUniqueArgs} args - Arguments to find a ApiKey
* @example
* // Get one ApiKey
* const apiKey = await prisma.apiKey.findUnique({
* where: {
* // ... provide filter here
* }
* })
*/
findUnique<T extends ApiKeyFindUniqueArgs>(args: SelectSubset<T, ApiKeyFindUniqueArgs<ExtArgs>>): Prisma__ApiKeyClient<$Result.GetResult<Prisma.$ApiKeyPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
/**
* Find one ApiKey that matches the filter or throw an error with `error.code='P2025'`
* if no matches were found.
* @param {ApiKeyFindUniqueOrThrowArgs} args - Arguments to find a ApiKey
* @example
* // Get one ApiKey
* const apiKey = await prisma.apiKey.findUniqueOrThrow({
* where: {
* // ... provide filter here
* }
* })
*/
findUniqueOrThrow<T extends ApiKeyFindUniqueOrThrowArgs>(args: SelectSubset<T, ApiKeyFindUniqueOrThrowArgs<ExtArgs>>): Prisma__ApiKeyClient<$Result.GetResult<Prisma.$ApiKeyPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Find the first ApiKey that matches the filter.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {ApiKeyFindFirstArgs} args - Arguments to find a ApiKey
* @example
* // Get one ApiKey
* const apiKey = await prisma.apiKey.findFirst({
* where: {
* // ... provide filter here
* }
* })
*/
findFirst<T extends ApiKeyFindFirstArgs>(args?: SelectSubset<T, ApiKeyFindFirstArgs<ExtArgs>>): Prisma__ApiKeyClient<$Result.GetResult<Prisma.$ApiKeyPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
/**
* Find the first ApiKey that matches the filter or
* throw `PrismaKnownClientError` with `P2025` code if no matches were found.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {ApiKeyFindFirstOrThrowArgs} args - Arguments to find a ApiKey
* @example
* // Get one ApiKey
* const apiKey = await prisma.apiKey.findFirstOrThrow({
* where: {
* // ... provide filter here
* }
* })
*/
findFirstOrThrow<T extends ApiKeyFindFirstOrThrowArgs>(args?: SelectSubset<T, ApiKeyFindFirstOrThrowArgs<ExtArgs>>): Prisma__ApiKeyClient<$Result.GetResult<Prisma.$ApiKeyPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Find zero or more ApiKeys that matches the filter.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {ApiKeyFindManyArgs} args - Arguments to filter and select certain fields only.
* @example
* // Get all ApiKeys
* const apiKeys = await prisma.apiKey.findMany()
*
* // Get first 10 ApiKeys
* const apiKeys = await prisma.apiKey.findMany({ take: 10 })
*
* // Only select the `id`
* const apiKeyWithIdOnly = await prisma.apiKey.findMany({ select: { id: true } })
*
*/
findMany<T extends ApiKeyFindManyArgs>(args?: SelectSubset<T, ApiKeyFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$ApiKeyPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
/**
* Create a ApiKey.
* @param {ApiKeyCreateArgs} args - Arguments to create a ApiKey.
* @example
* // Create one ApiKey
* const ApiKey = await prisma.apiKey.create({
* data: {
* // ... data to create a ApiKey
* }
* })
*
*/
create<T extends ApiKeyCreateArgs>(args: SelectSubset<T, ApiKeyCreateArgs<ExtArgs>>): Prisma__ApiKeyClient<$Result.GetResult<Prisma.$ApiKeyPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Create many ApiKeys.
* @param {ApiKeyCreateManyArgs} args - Arguments to create many ApiKeys.
* @example
* // Create many ApiKeys
* const apiKey = await prisma.apiKey.createMany({
* data: [
* // ... provide data here
* ]
* })
*
*/
createMany<T extends ApiKeyCreateManyArgs>(args?: SelectSubset<T, ApiKeyCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
/**
* Create many ApiKeys and returns the data saved in the database.
* @param {ApiKeyCreateManyAndReturnArgs} args - Arguments to create many ApiKeys.
* @example
* // Create many ApiKeys
* const apiKey = await prisma.apiKey.createManyAndReturn({
* data: [
* // ... provide data here
* ]
* })
*
* // Create many ApiKeys and only return the `id`
* const apiKeyWithIdOnly = await prisma.apiKey.createManyAndReturn({
* select: { id: true },
* data: [
* // ... provide data here
* ]
* })
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
*
*/
createManyAndReturn<T extends ApiKeyCreateManyAndReturnArgs>(args?: SelectSubset<T, ApiKeyCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$ApiKeyPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>
/**
* Delete a ApiKey.
* @param {ApiKeyDeleteArgs} args - Arguments to delete one ApiKey.
* @example
* // Delete one ApiKey
* const ApiKey = await prisma.apiKey.delete({
* where: {
* // ... filter to delete one ApiKey
* }
* })
*
*/
delete<T extends ApiKeyDeleteArgs>(args: SelectSubset<T, ApiKeyDeleteArgs<ExtArgs>>): Prisma__ApiKeyClient<$Result.GetResult<Prisma.$ApiKeyPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Update one ApiKey.
* @param {ApiKeyUpdateArgs} args - Arguments to update one ApiKey.
* @example
* // Update one ApiKey
* const apiKey = await prisma.apiKey.update({
* where: {
* // ... provide filter here
* },
* data: {
* // ... provide data here
* }
* })
*
*/
update<T extends ApiKeyUpdateArgs>(args: SelectSubset<T, ApiKeyUpdateArgs<ExtArgs>>): Prisma__ApiKeyClient<$Result.GetResult<Prisma.$ApiKeyPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Delete zero or more ApiKeys.
* @param {ApiKeyDeleteManyArgs} args - Arguments to filter ApiKeys to delete.
* @example
* // Delete a few ApiKeys
* const { count } = await prisma.apiKey.deleteMany({
* where: {
* // ... provide filter here
* }
* })
*
*/
deleteMany<T extends ApiKeyDeleteManyArgs>(args?: SelectSubset<T, ApiKeyDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
/**
* Update zero or more ApiKeys.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {ApiKeyUpdateManyArgs} args - Arguments to update one or more rows.
* @example
* // Update many ApiKeys
* const apiKey = await prisma.apiKey.updateMany({
* where: {
* // ... provide filter here
* },
* data: {
* // ... provide data here
* }
* })
*
*/
updateMany<T extends ApiKeyUpdateManyArgs>(args: SelectSubset<T, ApiKeyUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
/**
* Update zero or more ApiKeys and returns the data updated in the database.
* @param {ApiKeyUpdateManyAndReturnArgs} args - Arguments to update many ApiKeys.
* @example
* // Update many ApiKeys
* const apiKey = await prisma.apiKey.updateManyAndReturn({
* where: {
* // ... provide filter here
* },
* data: [
* // ... provide data here
* ]
* })
*
* // Update zero or more ApiKeys and only return the `id`
* const apiKeyWithIdOnly = await prisma.apiKey.updateManyAndReturn({
* select: { id: true },
* where: {
* // ... provide filter here
* },
* data: [
* // ... provide data here
* ]
* })
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
*
*/
updateManyAndReturn<T extends ApiKeyUpdateManyAndReturnArgs>(args: SelectSubset<T, ApiKeyUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$ApiKeyPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>
/**
* Create or update one ApiKey.
* @param {ApiKeyUpsertArgs} args - Arguments to update or create a ApiKey.
* @example
* // Update or create a ApiKey
* const apiKey = await prisma.apiKey.upsert({
* create: {
* // ... data to create a ApiKey
* },
* update: {
* // ... in case it already exists, update
* },
* where: {
* // ... the filter for the ApiKey we want to update
* }
* })
*/
upsert<T extends ApiKeyUpsertArgs>(args: SelectSubset<T, ApiKeyUpsertArgs<ExtArgs>>): Prisma__ApiKeyClient<$Result.GetResult<Prisma.$ApiKeyPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Count the number of ApiKeys.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {ApiKeyCountArgs} args - Arguments to filter ApiKeys to count.
* @example
* // Count the number of ApiKeys
* const count = await prisma.apiKey.count({
* where: {
* // ... the filter for the ApiKeys we want to count
* }
* })
**/
count<T extends ApiKeyCountArgs>(
args?: Subset<T, ApiKeyCountArgs>,
): Prisma.PrismaPromise<
T extends $Utils.Record<'select', any>
? T['select'] extends true
? number
: GetScalarType<T['select'], ApiKeyCountAggregateOutputType>
: number
>
/**
* Allows you to perform aggregations operations on a ApiKey.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {ApiKeyAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
* @example
* // Ordered by age ascending
* // Where email contains prisma.io
* // Limited to the 10 users
* const aggregations = await prisma.user.aggregate({
* _avg: {
* age: true,
* },
* where: {
* email: {
* contains: "prisma.io",
* },
* },
* orderBy: {
* age: "asc",
* },
* take: 10,
* })
**/
aggregate<T extends ApiKeyAggregateArgs>(args: Subset<T, ApiKeyAggregateArgs>): Prisma.PrismaPromise<GetApiKeyAggregateType<T>>
/**
* Group by ApiKey.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {ApiKeyGroupByArgs} args - Group by arguments.
* @example
* // Group by city, order by createdAt, get count
* const result = await prisma.user.groupBy({
* by: ['city', 'createdAt'],
* orderBy: {
* createdAt: true
* },
* _count: {
* _all: true
* },
* })
*
**/
groupBy<
T extends ApiKeyGroupByArgs,
HasSelectOrTake extends Or<
Extends<'skip', Keys<T>>,
Extends<'take', Keys<T>>
>,
OrderByArg extends True extends HasSelectOrTake
? { orderBy: ApiKeyGroupByArgs['orderBy'] }
: { orderBy?: ApiKeyGroupByArgs['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, ApiKeyGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetApiKeyGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
/**
* Fields of the ApiKey model
*/
readonly fields: ApiKeyFieldRefs;
}
/**
* The delegate class that acts as a "Promise-like" for ApiKey.
* Why is this prefixed with `Prisma__`?
* Because we want to prevent naming conflicts as mentioned in
* https://github.com/prisma/prisma-client-js/issues/707
*/
export interface Prisma__ApiKeyClient<T, Null = never, ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
readonly [Symbol.toStringTag]: "PrismaPromise"
User<T extends ApiKey$UserArgs<ExtArgs> = {}>(args?: Subset<T, ApiKey$UserArgs<ExtArgs>>): Prisma__UserClient<$Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
/**
* Attaches callbacks for the resolution and/or rejection of the Promise.
* @param onfulfilled The callback to execute when the Promise is resolved.
* @param onrejected The callback to execute when the Promise is rejected.
* @returns A Promise for the completion of which ever callback is executed.
*/
then<TResult1 = T, TResult2 = never>(onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined | null): $Utils.JsPromise<TResult1 | TResult2>
/**
* Attaches a callback for only the rejection of the Promise.
* @param onrejected The callback to execute when the Promise is rejected.
* @returns A Promise for the completion of the callback.
*/
catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): $Utils.JsPromise<T | TResult>
/**
* Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
* resolved value cannot be modified from the callback.
* @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
* @returns A Promise for the completion of the callback.
*/
finally(onfinally?: (() => void) | undefined | null): $Utils.JsPromise<T>
}
/**
* Fields of the ApiKey model
*/
interface ApiKeyFieldRefs {
readonly id: FieldRef<"ApiKey", 'String'>
readonly userId: FieldRef<"ApiKey", 'String'>
readonly name: FieldRef<"ApiKey", 'String'>
readonly key: FieldRef<"ApiKey", 'String'>
readonly description: FieldRef<"ApiKey", 'String'>
readonly expiredAt: FieldRef<"ApiKey", 'DateTime'>
readonly createdAt: FieldRef<"ApiKey", 'DateTime'>
readonly updatedAt: FieldRef<"ApiKey", 'DateTime'>
}
// Custom InputTypes
/**
* ApiKey findUnique
*/
export type ApiKeyFindUniqueArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the ApiKey
*/
select?: ApiKeySelect<ExtArgs> | null
/**
* Omit specific fields from the ApiKey
*/
omit?: ApiKeyOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: ApiKeyInclude<ExtArgs> | null
/**
* Filter, which ApiKey to fetch.
*/
where: ApiKeyWhereUniqueInput
}
/**
* ApiKey findUniqueOrThrow
*/
export type ApiKeyFindUniqueOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the ApiKey
*/
select?: ApiKeySelect<ExtArgs> | null
/**
* Omit specific fields from the ApiKey
*/
omit?: ApiKeyOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: ApiKeyInclude<ExtArgs> | null
/**
* Filter, which ApiKey to fetch.
*/
where: ApiKeyWhereUniqueInput
}
/**
* ApiKey findFirst
*/
export type ApiKeyFindFirstArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the ApiKey
*/
select?: ApiKeySelect<ExtArgs> | null
/**
* Omit specific fields from the ApiKey
*/
omit?: ApiKeyOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: ApiKeyInclude<ExtArgs> | null
/**
* Filter, which ApiKey to fetch.
*/
where?: ApiKeyWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of ApiKeys to fetch.
*/
orderBy?: ApiKeyOrderByWithRelationInput | ApiKeyOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the position for searching for ApiKeys.
*/
cursor?: ApiKeyWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` ApiKeys from the position of the cursor.
*/
take?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Skip the first `n` ApiKeys.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
*
* Filter by unique combinations of ApiKeys.
*/
distinct?: ApiKeyScalarFieldEnum | ApiKeyScalarFieldEnum[]
}
/**
* ApiKey findFirstOrThrow
*/
export type ApiKeyFindFirstOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the ApiKey
*/
select?: ApiKeySelect<ExtArgs> | null
/**
* Omit specific fields from the ApiKey
*/
omit?: ApiKeyOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: ApiKeyInclude<ExtArgs> | null
/**
* Filter, which ApiKey to fetch.
*/
where?: ApiKeyWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of ApiKeys to fetch.
*/
orderBy?: ApiKeyOrderByWithRelationInput | ApiKeyOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the position for searching for ApiKeys.
*/
cursor?: ApiKeyWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` ApiKeys from the position of the cursor.
*/
take?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Skip the first `n` ApiKeys.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
*
* Filter by unique combinations of ApiKeys.
*/
distinct?: ApiKeyScalarFieldEnum | ApiKeyScalarFieldEnum[]
}
/**
* ApiKey findMany
*/
export type ApiKeyFindManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the ApiKey
*/
select?: ApiKeySelect<ExtArgs> | null
/**
* Omit specific fields from the ApiKey
*/
omit?: ApiKeyOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: ApiKeyInclude<ExtArgs> | null
/**
* Filter, which ApiKeys to fetch.
*/
where?: ApiKeyWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of ApiKeys to fetch.
*/
orderBy?: ApiKeyOrderByWithRelationInput | ApiKeyOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the position for listing ApiKeys.
*/
cursor?: ApiKeyWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` ApiKeys from the position of the cursor.
*/
take?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Skip the first `n` ApiKeys.
*/
skip?: number
distinct?: ApiKeyScalarFieldEnum | ApiKeyScalarFieldEnum[]
}
/**
* ApiKey create
*/
export type ApiKeyCreateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the ApiKey
*/
select?: ApiKeySelect<ExtArgs> | null
/**
* Omit specific fields from the ApiKey
*/
omit?: ApiKeyOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: ApiKeyInclude<ExtArgs> | null
/**
* The data needed to create a ApiKey.
*/
data: XOR<ApiKeyCreateInput, ApiKeyUncheckedCreateInput>
}
/**
* ApiKey createMany
*/
export type ApiKeyCreateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* The data used to create many ApiKeys.
*/
data: ApiKeyCreateManyInput | ApiKeyCreateManyInput[]
skipDuplicates?: boolean
}
/**
* ApiKey createManyAndReturn
*/
export type ApiKeyCreateManyAndReturnArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the ApiKey
*/
select?: ApiKeySelectCreateManyAndReturn<ExtArgs> | null
/**
* Omit specific fields from the ApiKey
*/
omit?: ApiKeyOmit<ExtArgs> | null
/**
* The data used to create many ApiKeys.
*/
data: ApiKeyCreateManyInput | ApiKeyCreateManyInput[]
skipDuplicates?: boolean
/**
* Choose, which related nodes to fetch as well
*/
include?: ApiKeyIncludeCreateManyAndReturn<ExtArgs> | null
}
/**
* ApiKey update
*/
export type ApiKeyUpdateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the ApiKey
*/
select?: ApiKeySelect<ExtArgs> | null
/**
* Omit specific fields from the ApiKey
*/
omit?: ApiKeyOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: ApiKeyInclude<ExtArgs> | null
/**
* The data needed to update a ApiKey.
*/
data: XOR<ApiKeyUpdateInput, ApiKeyUncheckedUpdateInput>
/**
* Choose, which ApiKey to update.
*/
where: ApiKeyWhereUniqueInput
}
/**
* ApiKey updateMany
*/
export type ApiKeyUpdateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* The data used to update ApiKeys.
*/
data: XOR<ApiKeyUpdateManyMutationInput, ApiKeyUncheckedUpdateManyInput>
/**
* Filter which ApiKeys to update
*/
where?: ApiKeyWhereInput
/**
* Limit how many ApiKeys to update.
*/
limit?: number
}
/**
* ApiKey updateManyAndReturn
*/
export type ApiKeyUpdateManyAndReturnArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the ApiKey
*/
select?: ApiKeySelectUpdateManyAndReturn<ExtArgs> | null
/**
* Omit specific fields from the ApiKey
*/
omit?: ApiKeyOmit<ExtArgs> | null
/**
* The data used to update ApiKeys.
*/
data: XOR<ApiKeyUpdateManyMutationInput, ApiKeyUncheckedUpdateManyInput>
/**
* Filter which ApiKeys to update
*/
where?: ApiKeyWhereInput
/**
* Limit how many ApiKeys to update.
*/
limit?: number
/**
* Choose, which related nodes to fetch as well
*/
include?: ApiKeyIncludeUpdateManyAndReturn<ExtArgs> | null
}
/**
* ApiKey upsert
*/
export type ApiKeyUpsertArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the ApiKey
*/
select?: ApiKeySelect<ExtArgs> | null
/**
* Omit specific fields from the ApiKey
*/
omit?: ApiKeyOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: ApiKeyInclude<ExtArgs> | null
/**
* The filter to search for the ApiKey to update in case it exists.
*/
where: ApiKeyWhereUniqueInput
/**
* In case the ApiKey found by the `where` argument doesn't exist, create a new ApiKey with this data.
*/
create: XOR<ApiKeyCreateInput, ApiKeyUncheckedCreateInput>
/**
* In case the ApiKey was found with the provided `where` argument, update it with this data.
*/
update: XOR<ApiKeyUpdateInput, ApiKeyUncheckedUpdateInput>
}
/**
* ApiKey delete
*/
export type ApiKeyDeleteArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the ApiKey
*/
select?: ApiKeySelect<ExtArgs> | null
/**
* Omit specific fields from the ApiKey
*/
omit?: ApiKeyOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: ApiKeyInclude<ExtArgs> | null
/**
* Filter which ApiKey to delete.
*/
where: ApiKeyWhereUniqueInput
}
/**
* ApiKey deleteMany
*/
export type ApiKeyDeleteManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Filter which ApiKeys to delete
*/
where?: ApiKeyWhereInput
/**
* Limit how many ApiKeys to delete.
*/
limit?: number
}
/**
* ApiKey.User
*/
export type ApiKey$UserArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the User
*/
select?: UserSelect<ExtArgs> | null
/**
* Omit specific fields from the User
*/
omit?: UserOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: UserInclude<ExtArgs> | null
where?: UserWhereInput
}
/**
* ApiKey without action
*/
export type ApiKeyDefaultArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the ApiKey
*/
select?: ApiKeySelect<ExtArgs> | null
/**
* Omit specific fields from the ApiKey
*/
omit?: ApiKeyOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: ApiKeyInclude<ExtArgs> | null
}
/**
* Model WebHook
*/
export type AggregateWebHook = {
_count: WebHookCountAggregateOutputType | null
_avg: WebHookAvgAggregateOutputType | null
_sum: WebHookSumAggregateOutputType | null
_min: WebHookMinAggregateOutputType | null
_max: WebHookMaxAggregateOutputType | null
}
export type WebHookAvgAggregateOutputType = {
retries: number | null
}
export type WebHookSumAggregateOutputType = {
retries: number | null
}
export type WebHookMinAggregateOutputType = {
id: string | null
name: string | null
description: string | null
url: string | null
payload: string | null
method: string | null
headers: string | null
apiToken: string | null
retries: number | null
enabled: boolean | null
replay: boolean | null
replayKey: string | null
createdAt: Date | null
updatedAt: Date | null
}
export type WebHookMaxAggregateOutputType = {
id: string | null
name: string | null
description: string | null
url: string | null
payload: string | null
method: string | null
headers: string | null
apiToken: string | null
retries: number | null
enabled: boolean | null
replay: boolean | null
replayKey: string | null
createdAt: Date | null
updatedAt: Date | null
}
export type WebHookCountAggregateOutputType = {
id: number
name: number
description: number
url: number
payload: number
method: number
headers: number
apiToken: number
retries: number
enabled: number
replay: number
replayKey: number
createdAt: number
updatedAt: number
_all: number
}
export type WebHookAvgAggregateInputType = {
retries?: true
}
export type WebHookSumAggregateInputType = {
retries?: true
}
export type WebHookMinAggregateInputType = {
id?: true
name?: true
description?: true
url?: true
payload?: true
method?: true
headers?: true
apiToken?: true
retries?: true
enabled?: true
replay?: true
replayKey?: true
createdAt?: true
updatedAt?: true
}
export type WebHookMaxAggregateInputType = {
id?: true
name?: true
description?: true
url?: true
payload?: true
method?: true
headers?: true
apiToken?: true
retries?: true
enabled?: true
replay?: true
replayKey?: true
createdAt?: true
updatedAt?: true
}
export type WebHookCountAggregateInputType = {
id?: true
name?: true
description?: true
url?: true
payload?: true
method?: true
headers?: true
apiToken?: true
retries?: true
enabled?: true
replay?: true
replayKey?: true
createdAt?: true
updatedAt?: true
_all?: true
}
export type WebHookAggregateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Filter which WebHook to aggregate.
*/
where?: WebHookWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of WebHooks to fetch.
*/
orderBy?: WebHookOrderByWithRelationInput | WebHookOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the start position
*/
cursor?: WebHookWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` WebHooks from the position of the cursor.
*/
take?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Skip the first `n` WebHooks.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Count returned WebHooks
**/
_count?: true | WebHookCountAggregateInputType
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to average
**/
_avg?: WebHookAvgAggregateInputType
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to sum
**/
_sum?: WebHookSumAggregateInputType
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to find the minimum value
**/
_min?: WebHookMinAggregateInputType
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to find the maximum value
**/
_max?: WebHookMaxAggregateInputType
}
export type GetWebHookAggregateType<T extends WebHookAggregateArgs> = {
[P in keyof T & keyof AggregateWebHook]: P extends '_count' | 'count'
? T[P] extends true
? number
: GetScalarType<T[P], AggregateWebHook[P]>
: GetScalarType<T[P], AggregateWebHook[P]>
}
export type WebHookGroupByArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
where?: WebHookWhereInput
orderBy?: WebHookOrderByWithAggregationInput | WebHookOrderByWithAggregationInput[]
by: WebHookScalarFieldEnum[] | WebHookScalarFieldEnum
having?: WebHookScalarWhereWithAggregatesInput
take?: number
skip?: number
_count?: WebHookCountAggregateInputType | true
_avg?: WebHookAvgAggregateInputType
_sum?: WebHookSumAggregateInputType
_min?: WebHookMinAggregateInputType
_max?: WebHookMaxAggregateInputType
}
export type WebHookGroupByOutputType = {
id: string
name: string | null
description: string | null
url: string
payload: string | null
method: string
headers: string | null
apiToken: string | null
retries: number | null
enabled: boolean
replay: boolean
replayKey: string | null
createdAt: Date
updatedAt: Date
_count: WebHookCountAggregateOutputType | null
_avg: WebHookAvgAggregateOutputType | null
_sum: WebHookSumAggregateOutputType | null
_min: WebHookMinAggregateOutputType | null
_max: WebHookMaxAggregateOutputType | null
}
type GetWebHookGroupByPayload<T extends WebHookGroupByArgs> = Prisma.PrismaPromise<
Array<
PickEnumerable<WebHookGroupByOutputType, T['by']> &
{
[P in ((keyof T) & (keyof WebHookGroupByOutputType))]: P extends '_count'
? T[P] extends boolean
? number
: GetScalarType<T[P], WebHookGroupByOutputType[P]>
: GetScalarType<T[P], WebHookGroupByOutputType[P]>
}
>
>
export type WebHookSelect<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
id?: boolean
name?: boolean
description?: boolean
url?: boolean
payload?: boolean
method?: boolean
headers?: boolean
apiToken?: boolean
retries?: boolean
enabled?: boolean
replay?: boolean
replayKey?: boolean
createdAt?: boolean
updatedAt?: boolean
}, ExtArgs["result"]["webHook"]>
export type WebHookSelectCreateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
id?: boolean
name?: boolean
description?: boolean
url?: boolean
payload?: boolean
method?: boolean
headers?: boolean
apiToken?: boolean
retries?: boolean
enabled?: boolean
replay?: boolean
replayKey?: boolean
createdAt?: boolean
updatedAt?: boolean
}, ExtArgs["result"]["webHook"]>
export type WebHookSelectUpdateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
id?: boolean
name?: boolean
description?: boolean
url?: boolean
payload?: boolean
method?: boolean
headers?: boolean
apiToken?: boolean
retries?: boolean
enabled?: boolean
replay?: boolean
replayKey?: boolean
createdAt?: boolean
updatedAt?: boolean
}, ExtArgs["result"]["webHook"]>
export type WebHookSelectScalar = {
id?: boolean
name?: boolean
description?: boolean
url?: boolean
payload?: boolean
method?: boolean
headers?: boolean
apiToken?: boolean
retries?: boolean
enabled?: boolean
replay?: boolean
replayKey?: boolean
createdAt?: boolean
updatedAt?: boolean
}
export type WebHookOmit<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetOmit<"id" | "name" | "description" | "url" | "payload" | "method" | "headers" | "apiToken" | "retries" | "enabled" | "replay" | "replayKey" | "createdAt" | "updatedAt", ExtArgs["result"]["webHook"]>
export type $WebHookPayload<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
name: "WebHook"
objects: {}
scalars: $Extensions.GetPayloadResult<{
id: string
name: string | null
description: string | null
url: string
payload: string | null
method: string
headers: string | null
apiToken: string | null
retries: number | null
enabled: boolean
replay: boolean
replayKey: string | null
createdAt: Date
updatedAt: Date
}, ExtArgs["result"]["webHook"]>
composites: {}
}
type WebHookGetPayload<S extends boolean | null | undefined | WebHookDefaultArgs> = $Result.GetResult<Prisma.$WebHookPayload, S>
type WebHookCountArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> =
Omit<WebHookFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
select?: WebHookCountAggregateInputType | true
}
export interface WebHookDelegate<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs, GlobalOmitOptions = {}> {
[K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['WebHook'], meta: { name: 'WebHook' } }
/**
* Find zero or one WebHook that matches the filter.
* @param {WebHookFindUniqueArgs} args - Arguments to find a WebHook
* @example
* // Get one WebHook
* const webHook = await prisma.webHook.findUnique({
* where: {
* // ... provide filter here
* }
* })
*/
findUnique<T extends WebHookFindUniqueArgs>(args: SelectSubset<T, WebHookFindUniqueArgs<ExtArgs>>): Prisma__WebHookClient<$Result.GetResult<Prisma.$WebHookPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
/**
* Find one WebHook that matches the filter or throw an error with `error.code='P2025'`
* if no matches were found.
* @param {WebHookFindUniqueOrThrowArgs} args - Arguments to find a WebHook
* @example
* // Get one WebHook
* const webHook = await prisma.webHook.findUniqueOrThrow({
* where: {
* // ... provide filter here
* }
* })
*/
findUniqueOrThrow<T extends WebHookFindUniqueOrThrowArgs>(args: SelectSubset<T, WebHookFindUniqueOrThrowArgs<ExtArgs>>): Prisma__WebHookClient<$Result.GetResult<Prisma.$WebHookPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Find the first WebHook that matches the filter.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {WebHookFindFirstArgs} args - Arguments to find a WebHook
* @example
* // Get one WebHook
* const webHook = await prisma.webHook.findFirst({
* where: {
* // ... provide filter here
* }
* })
*/
findFirst<T extends WebHookFindFirstArgs>(args?: SelectSubset<T, WebHookFindFirstArgs<ExtArgs>>): Prisma__WebHookClient<$Result.GetResult<Prisma.$WebHookPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
/**
* Find the first WebHook that matches the filter or
* throw `PrismaKnownClientError` with `P2025` code if no matches were found.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {WebHookFindFirstOrThrowArgs} args - Arguments to find a WebHook
* @example
* // Get one WebHook
* const webHook = await prisma.webHook.findFirstOrThrow({
* where: {
* // ... provide filter here
* }
* })
*/
findFirstOrThrow<T extends WebHookFindFirstOrThrowArgs>(args?: SelectSubset<T, WebHookFindFirstOrThrowArgs<ExtArgs>>): Prisma__WebHookClient<$Result.GetResult<Prisma.$WebHookPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Find zero or more WebHooks that matches the filter.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {WebHookFindManyArgs} args - Arguments to filter and select certain fields only.
* @example
* // Get all WebHooks
* const webHooks = await prisma.webHook.findMany()
*
* // Get first 10 WebHooks
* const webHooks = await prisma.webHook.findMany({ take: 10 })
*
* // Only select the `id`
* const webHookWithIdOnly = await prisma.webHook.findMany({ select: { id: true } })
*
*/
findMany<T extends WebHookFindManyArgs>(args?: SelectSubset<T, WebHookFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$WebHookPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
/**
* Create a WebHook.
* @param {WebHookCreateArgs} args - Arguments to create a WebHook.
* @example
* // Create one WebHook
* const WebHook = await prisma.webHook.create({
* data: {
* // ... data to create a WebHook
* }
* })
*
*/
create<T extends WebHookCreateArgs>(args: SelectSubset<T, WebHookCreateArgs<ExtArgs>>): Prisma__WebHookClient<$Result.GetResult<Prisma.$WebHookPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Create many WebHooks.
* @param {WebHookCreateManyArgs} args - Arguments to create many WebHooks.
* @example
* // Create many WebHooks
* const webHook = await prisma.webHook.createMany({
* data: [
* // ... provide data here
* ]
* })
*
*/
createMany<T extends WebHookCreateManyArgs>(args?: SelectSubset<T, WebHookCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
/**
* Create many WebHooks and returns the data saved in the database.
* @param {WebHookCreateManyAndReturnArgs} args - Arguments to create many WebHooks.
* @example
* // Create many WebHooks
* const webHook = await prisma.webHook.createManyAndReturn({
* data: [
* // ... provide data here
* ]
* })
*
* // Create many WebHooks and only return the `id`
* const webHookWithIdOnly = await prisma.webHook.createManyAndReturn({
* select: { id: true },
* data: [
* // ... provide data here
* ]
* })
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
*
*/
createManyAndReturn<T extends WebHookCreateManyAndReturnArgs>(args?: SelectSubset<T, WebHookCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$WebHookPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>
/**
* Delete a WebHook.
* @param {WebHookDeleteArgs} args - Arguments to delete one WebHook.
* @example
* // Delete one WebHook
* const WebHook = await prisma.webHook.delete({
* where: {
* // ... filter to delete one WebHook
* }
* })
*
*/
delete<T extends WebHookDeleteArgs>(args: SelectSubset<T, WebHookDeleteArgs<ExtArgs>>): Prisma__WebHookClient<$Result.GetResult<Prisma.$WebHookPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Update one WebHook.
* @param {WebHookUpdateArgs} args - Arguments to update one WebHook.
* @example
* // Update one WebHook
* const webHook = await prisma.webHook.update({
* where: {
* // ... provide filter here
* },
* data: {
* // ... provide data here
* }
* })
*
*/
update<T extends WebHookUpdateArgs>(args: SelectSubset<T, WebHookUpdateArgs<ExtArgs>>): Prisma__WebHookClient<$Result.GetResult<Prisma.$WebHookPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Delete zero or more WebHooks.
* @param {WebHookDeleteManyArgs} args - Arguments to filter WebHooks to delete.
* @example
* // Delete a few WebHooks
* const { count } = await prisma.webHook.deleteMany({
* where: {
* // ... provide filter here
* }
* })
*
*/
deleteMany<T extends WebHookDeleteManyArgs>(args?: SelectSubset<T, WebHookDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
/**
* Update zero or more WebHooks.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {WebHookUpdateManyArgs} args - Arguments to update one or more rows.
* @example
* // Update many WebHooks
* const webHook = await prisma.webHook.updateMany({
* where: {
* // ... provide filter here
* },
* data: {
* // ... provide data here
* }
* })
*
*/
updateMany<T extends WebHookUpdateManyArgs>(args: SelectSubset<T, WebHookUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
/**
* Update zero or more WebHooks and returns the data updated in the database.
* @param {WebHookUpdateManyAndReturnArgs} args - Arguments to update many WebHooks.
* @example
* // Update many WebHooks
* const webHook = await prisma.webHook.updateManyAndReturn({
* where: {
* // ... provide filter here
* },
* data: [
* // ... provide data here
* ]
* })
*
* // Update zero or more WebHooks and only return the `id`
* const webHookWithIdOnly = await prisma.webHook.updateManyAndReturn({
* select: { id: true },
* where: {
* // ... provide filter here
* },
* data: [
* // ... provide data here
* ]
* })
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
*
*/
updateManyAndReturn<T extends WebHookUpdateManyAndReturnArgs>(args: SelectSubset<T, WebHookUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$WebHookPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>
/**
* Create or update one WebHook.
* @param {WebHookUpsertArgs} args - Arguments to update or create a WebHook.
* @example
* // Update or create a WebHook
* const webHook = await prisma.webHook.upsert({
* create: {
* // ... data to create a WebHook
* },
* update: {
* // ... in case it already exists, update
* },
* where: {
* // ... the filter for the WebHook we want to update
* }
* })
*/
upsert<T extends WebHookUpsertArgs>(args: SelectSubset<T, WebHookUpsertArgs<ExtArgs>>): Prisma__WebHookClient<$Result.GetResult<Prisma.$WebHookPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Count the number of WebHooks.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {WebHookCountArgs} args - Arguments to filter WebHooks to count.
* @example
* // Count the number of WebHooks
* const count = await prisma.webHook.count({
* where: {
* // ... the filter for the WebHooks we want to count
* }
* })
**/
count<T extends WebHookCountArgs>(
args?: Subset<T, WebHookCountArgs>,
): Prisma.PrismaPromise<
T extends $Utils.Record<'select', any>
? T['select'] extends true
? number
: GetScalarType<T['select'], WebHookCountAggregateOutputType>
: number
>
/**
* Allows you to perform aggregations operations on a WebHook.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {WebHookAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
* @example
* // Ordered by age ascending
* // Where email contains prisma.io
* // Limited to the 10 users
* const aggregations = await prisma.user.aggregate({
* _avg: {
* age: true,
* },
* where: {
* email: {
* contains: "prisma.io",
* },
* },
* orderBy: {
* age: "asc",
* },
* take: 10,
* })
**/
aggregate<T extends WebHookAggregateArgs>(args: Subset<T, WebHookAggregateArgs>): Prisma.PrismaPromise<GetWebHookAggregateType<T>>
/**
* Group by WebHook.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {WebHookGroupByArgs} args - Group by arguments.
* @example
* // Group by city, order by createdAt, get count
* const result = await prisma.user.groupBy({
* by: ['city', 'createdAt'],
* orderBy: {
* createdAt: true
* },
* _count: {
* _all: true
* },
* })
*
**/
groupBy<
T extends WebHookGroupByArgs,
HasSelectOrTake extends Or<
Extends<'skip', Keys<T>>,
Extends<'take', Keys<T>>
>,
OrderByArg extends True extends HasSelectOrTake
? { orderBy: WebHookGroupByArgs['orderBy'] }
: { orderBy?: WebHookGroupByArgs['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, WebHookGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetWebHookGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
/**
* Fields of the WebHook model
*/
readonly fields: WebHookFieldRefs;
}
/**
* The delegate class that acts as a "Promise-like" for WebHook.
* Why is this prefixed with `Prisma__`?
* Because we want to prevent naming conflicts as mentioned in
* https://github.com/prisma/prisma-client-js/issues/707
*/
export interface Prisma__WebHookClient<T, Null = never, ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
readonly [Symbol.toStringTag]: "PrismaPromise"
/**
* Attaches callbacks for the resolution and/or rejection of the Promise.
* @param onfulfilled The callback to execute when the Promise is resolved.
* @param onrejected The callback to execute when the Promise is rejected.
* @returns A Promise for the completion of which ever callback is executed.
*/
then<TResult1 = T, TResult2 = never>(onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined | null): $Utils.JsPromise<TResult1 | TResult2>
/**
* Attaches a callback for only the rejection of the Promise.
* @param onrejected The callback to execute when the Promise is rejected.
* @returns A Promise for the completion of the callback.
*/
catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): $Utils.JsPromise<T | TResult>
/**
* Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
* resolved value cannot be modified from the callback.
* @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
* @returns A Promise for the completion of the callback.
*/
finally(onfinally?: (() => void) | undefined | null): $Utils.JsPromise<T>
}
/**
* Fields of the WebHook model
*/
interface WebHookFieldRefs {
readonly id: FieldRef<"WebHook", 'String'>
readonly name: FieldRef<"WebHook", 'String'>
readonly description: FieldRef<"WebHook", 'String'>
readonly url: FieldRef<"WebHook", 'String'>
readonly payload: FieldRef<"WebHook", 'String'>
readonly method: FieldRef<"WebHook", 'String'>
readonly headers: FieldRef<"WebHook", 'String'>
readonly apiToken: FieldRef<"WebHook", 'String'>
readonly retries: FieldRef<"WebHook", 'Int'>
readonly enabled: FieldRef<"WebHook", 'Boolean'>
readonly replay: FieldRef<"WebHook", 'Boolean'>
readonly replayKey: FieldRef<"WebHook", 'String'>
readonly createdAt: FieldRef<"WebHook", 'DateTime'>
readonly updatedAt: FieldRef<"WebHook", 'DateTime'>
}
// Custom InputTypes
/**
* WebHook findUnique
*/
export type WebHookFindUniqueArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the WebHook
*/
select?: WebHookSelect<ExtArgs> | null
/**
* Omit specific fields from the WebHook
*/
omit?: WebHookOmit<ExtArgs> | null
/**
* Filter, which WebHook to fetch.
*/
where: WebHookWhereUniqueInput
}
/**
* WebHook findUniqueOrThrow
*/
export type WebHookFindUniqueOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the WebHook
*/
select?: WebHookSelect<ExtArgs> | null
/**
* Omit specific fields from the WebHook
*/
omit?: WebHookOmit<ExtArgs> | null
/**
* Filter, which WebHook to fetch.
*/
where: WebHookWhereUniqueInput
}
/**
* WebHook findFirst
*/
export type WebHookFindFirstArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the WebHook
*/
select?: WebHookSelect<ExtArgs> | null
/**
* Omit specific fields from the WebHook
*/
omit?: WebHookOmit<ExtArgs> | null
/**
* Filter, which WebHook to fetch.
*/
where?: WebHookWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of WebHooks to fetch.
*/
orderBy?: WebHookOrderByWithRelationInput | WebHookOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the position for searching for WebHooks.
*/
cursor?: WebHookWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` WebHooks from the position of the cursor.
*/
take?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Skip the first `n` WebHooks.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
*
* Filter by unique combinations of WebHooks.
*/
distinct?: WebHookScalarFieldEnum | WebHookScalarFieldEnum[]
}
/**
* WebHook findFirstOrThrow
*/
export type WebHookFindFirstOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the WebHook
*/
select?: WebHookSelect<ExtArgs> | null
/**
* Omit specific fields from the WebHook
*/
omit?: WebHookOmit<ExtArgs> | null
/**
* Filter, which WebHook to fetch.
*/
where?: WebHookWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of WebHooks to fetch.
*/
orderBy?: WebHookOrderByWithRelationInput | WebHookOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the position for searching for WebHooks.
*/
cursor?: WebHookWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` WebHooks from the position of the cursor.
*/
take?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Skip the first `n` WebHooks.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
*
* Filter by unique combinations of WebHooks.
*/
distinct?: WebHookScalarFieldEnum | WebHookScalarFieldEnum[]
}
/**
* WebHook findMany
*/
export type WebHookFindManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the WebHook
*/
select?: WebHookSelect<ExtArgs> | null
/**
* Omit specific fields from the WebHook
*/
omit?: WebHookOmit<ExtArgs> | null
/**
* Filter, which WebHooks to fetch.
*/
where?: WebHookWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of WebHooks to fetch.
*/
orderBy?: WebHookOrderByWithRelationInput | WebHookOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the position for listing WebHooks.
*/
cursor?: WebHookWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` WebHooks from the position of the cursor.
*/
take?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Skip the first `n` WebHooks.
*/
skip?: number
distinct?: WebHookScalarFieldEnum | WebHookScalarFieldEnum[]
}
/**
* WebHook create
*/
export type WebHookCreateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the WebHook
*/
select?: WebHookSelect<ExtArgs> | null
/**
* Omit specific fields from the WebHook
*/
omit?: WebHookOmit<ExtArgs> | null
/**
* The data needed to create a WebHook.
*/
data: XOR<WebHookCreateInput, WebHookUncheckedCreateInput>
}
/**
* WebHook createMany
*/
export type WebHookCreateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* The data used to create many WebHooks.
*/
data: WebHookCreateManyInput | WebHookCreateManyInput[]
skipDuplicates?: boolean
}
/**
* WebHook createManyAndReturn
*/
export type WebHookCreateManyAndReturnArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the WebHook
*/
select?: WebHookSelectCreateManyAndReturn<ExtArgs> | null
/**
* Omit specific fields from the WebHook
*/
omit?: WebHookOmit<ExtArgs> | null
/**
* The data used to create many WebHooks.
*/
data: WebHookCreateManyInput | WebHookCreateManyInput[]
skipDuplicates?: boolean
}
/**
* WebHook update
*/
export type WebHookUpdateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the WebHook
*/
select?: WebHookSelect<ExtArgs> | null
/**
* Omit specific fields from the WebHook
*/
omit?: WebHookOmit<ExtArgs> | null
/**
* The data needed to update a WebHook.
*/
data: XOR<WebHookUpdateInput, WebHookUncheckedUpdateInput>
/**
* Choose, which WebHook to update.
*/
where: WebHookWhereUniqueInput
}
/**
* WebHook updateMany
*/
export type WebHookUpdateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* The data used to update WebHooks.
*/
data: XOR<WebHookUpdateManyMutationInput, WebHookUncheckedUpdateManyInput>
/**
* Filter which WebHooks to update
*/
where?: WebHookWhereInput
/**
* Limit how many WebHooks to update.
*/
limit?: number
}
/**
* WebHook updateManyAndReturn
*/
export type WebHookUpdateManyAndReturnArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the WebHook
*/
select?: WebHookSelectUpdateManyAndReturn<ExtArgs> | null
/**
* Omit specific fields from the WebHook
*/
omit?: WebHookOmit<ExtArgs> | null
/**
* The data used to update WebHooks.
*/
data: XOR<WebHookUpdateManyMutationInput, WebHookUncheckedUpdateManyInput>
/**
* Filter which WebHooks to update
*/
where?: WebHookWhereInput
/**
* Limit how many WebHooks to update.
*/
limit?: number
}
/**
* WebHook upsert
*/
export type WebHookUpsertArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the WebHook
*/
select?: WebHookSelect<ExtArgs> | null
/**
* Omit specific fields from the WebHook
*/
omit?: WebHookOmit<ExtArgs> | null
/**
* The filter to search for the WebHook to update in case it exists.
*/
where: WebHookWhereUniqueInput
/**
* In case the WebHook found by the `where` argument doesn't exist, create a new WebHook with this data.
*/
create: XOR<WebHookCreateInput, WebHookUncheckedCreateInput>
/**
* In case the WebHook was found with the provided `where` argument, update it with this data.
*/
update: XOR<WebHookUpdateInput, WebHookUncheckedUpdateInput>
}
/**
* WebHook delete
*/
export type WebHookDeleteArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the WebHook
*/
select?: WebHookSelect<ExtArgs> | null
/**
* Omit specific fields from the WebHook
*/
omit?: WebHookOmit<ExtArgs> | null
/**
* Filter which WebHook to delete.
*/
where: WebHookWhereUniqueInput
}
/**
* WebHook deleteMany
*/
export type WebHookDeleteManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Filter which WebHooks to delete
*/
where?: WebHookWhereInput
/**
* Limit how many WebHooks to delete.
*/
limit?: number
}
/**
* WebHook without action
*/
export type WebHookDefaultArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the WebHook
*/
select?: WebHookSelect<ExtArgs> | null
/**
* Omit specific fields from the WebHook
*/
omit?: WebHookOmit<ExtArgs> | null
}
/**
* Model WaHook
*/
export type AggregateWaHook = {
_count: WaHookCountAggregateOutputType | null
_min: WaHookMinAggregateOutputType | null
_max: WaHookMaxAggregateOutputType | null
}
export type WaHookMinAggregateOutputType = {
id: string | null
createdAt: Date | null
updatedAt: Date | null
}
export type WaHookMaxAggregateOutputType = {
id: string | null
createdAt: Date | null
updatedAt: Date | null
}
export type WaHookCountAggregateOutputType = {
id: number
data: number
createdAt: number
updatedAt: number
_all: number
}
export type WaHookMinAggregateInputType = {
id?: true
createdAt?: true
updatedAt?: true
}
export type WaHookMaxAggregateInputType = {
id?: true
createdAt?: true
updatedAt?: true
}
export type WaHookCountAggregateInputType = {
id?: true
data?: true
createdAt?: true
updatedAt?: true
_all?: true
}
export type WaHookAggregateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Filter which WaHook to aggregate.
*/
where?: WaHookWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of WaHooks to fetch.
*/
orderBy?: WaHookOrderByWithRelationInput | WaHookOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the start position
*/
cursor?: WaHookWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` WaHooks from the position of the cursor.
*/
take?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Skip the first `n` WaHooks.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Count returned WaHooks
**/
_count?: true | WaHookCountAggregateInputType
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to find the minimum value
**/
_min?: WaHookMinAggregateInputType
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to find the maximum value
**/
_max?: WaHookMaxAggregateInputType
}
export type GetWaHookAggregateType<T extends WaHookAggregateArgs> = {
[P in keyof T & keyof AggregateWaHook]: P extends '_count' | 'count'
? T[P] extends true
? number
: GetScalarType<T[P], AggregateWaHook[P]>
: GetScalarType<T[P], AggregateWaHook[P]>
}
export type WaHookGroupByArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
where?: WaHookWhereInput
orderBy?: WaHookOrderByWithAggregationInput | WaHookOrderByWithAggregationInput[]
by: WaHookScalarFieldEnum[] | WaHookScalarFieldEnum
having?: WaHookScalarWhereWithAggregatesInput
take?: number
skip?: number
_count?: WaHookCountAggregateInputType | true
_min?: WaHookMinAggregateInputType
_max?: WaHookMaxAggregateInputType
}
export type WaHookGroupByOutputType = {
id: string
data: JsonValue | null
createdAt: Date
updatedAt: Date
_count: WaHookCountAggregateOutputType | null
_min: WaHookMinAggregateOutputType | null
_max: WaHookMaxAggregateOutputType | null
}
type GetWaHookGroupByPayload<T extends WaHookGroupByArgs> = Prisma.PrismaPromise<
Array<
PickEnumerable<WaHookGroupByOutputType, T['by']> &
{
[P in ((keyof T) & (keyof WaHookGroupByOutputType))]: P extends '_count'
? T[P] extends boolean
? number
: GetScalarType<T[P], WaHookGroupByOutputType[P]>
: GetScalarType<T[P], WaHookGroupByOutputType[P]>
}
>
>
export type WaHookSelect<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
id?: boolean
data?: boolean
createdAt?: boolean
updatedAt?: boolean
}, ExtArgs["result"]["waHook"]>
export type WaHookSelectCreateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
id?: boolean
data?: boolean
createdAt?: boolean
updatedAt?: boolean
}, ExtArgs["result"]["waHook"]>
export type WaHookSelectUpdateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
id?: boolean
data?: boolean
createdAt?: boolean
updatedAt?: boolean
}, ExtArgs["result"]["waHook"]>
export type WaHookSelectScalar = {
id?: boolean
data?: boolean
createdAt?: boolean
updatedAt?: boolean
}
export type WaHookOmit<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetOmit<"id" | "data" | "createdAt" | "updatedAt", ExtArgs["result"]["waHook"]>
export type $WaHookPayload<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
name: "WaHook"
objects: {}
scalars: $Extensions.GetPayloadResult<{
id: string
data: Prisma.JsonValue | null
createdAt: Date
updatedAt: Date
}, ExtArgs["result"]["waHook"]>
composites: {}
}
type WaHookGetPayload<S extends boolean | null | undefined | WaHookDefaultArgs> = $Result.GetResult<Prisma.$WaHookPayload, S>
type WaHookCountArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> =
Omit<WaHookFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
select?: WaHookCountAggregateInputType | true
}
export interface WaHookDelegate<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs, GlobalOmitOptions = {}> {
[K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['WaHook'], meta: { name: 'WaHook' } }
/**
* Find zero or one WaHook that matches the filter.
* @param {WaHookFindUniqueArgs} args - Arguments to find a WaHook
* @example
* // Get one WaHook
* const waHook = await prisma.waHook.findUnique({
* where: {
* // ... provide filter here
* }
* })
*/
findUnique<T extends WaHookFindUniqueArgs>(args: SelectSubset<T, WaHookFindUniqueArgs<ExtArgs>>): Prisma__WaHookClient<$Result.GetResult<Prisma.$WaHookPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
/**
* Find one WaHook that matches the filter or throw an error with `error.code='P2025'`
* if no matches were found.
* @param {WaHookFindUniqueOrThrowArgs} args - Arguments to find a WaHook
* @example
* // Get one WaHook
* const waHook = await prisma.waHook.findUniqueOrThrow({
* where: {
* // ... provide filter here
* }
* })
*/
findUniqueOrThrow<T extends WaHookFindUniqueOrThrowArgs>(args: SelectSubset<T, WaHookFindUniqueOrThrowArgs<ExtArgs>>): Prisma__WaHookClient<$Result.GetResult<Prisma.$WaHookPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Find the first WaHook that matches the filter.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {WaHookFindFirstArgs} args - Arguments to find a WaHook
* @example
* // Get one WaHook
* const waHook = await prisma.waHook.findFirst({
* where: {
* // ... provide filter here
* }
* })
*/
findFirst<T extends WaHookFindFirstArgs>(args?: SelectSubset<T, WaHookFindFirstArgs<ExtArgs>>): Prisma__WaHookClient<$Result.GetResult<Prisma.$WaHookPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
/**
* Find the first WaHook that matches the filter or
* throw `PrismaKnownClientError` with `P2025` code if no matches were found.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {WaHookFindFirstOrThrowArgs} args - Arguments to find a WaHook
* @example
* // Get one WaHook
* const waHook = await prisma.waHook.findFirstOrThrow({
* where: {
* // ... provide filter here
* }
* })
*/
findFirstOrThrow<T extends WaHookFindFirstOrThrowArgs>(args?: SelectSubset<T, WaHookFindFirstOrThrowArgs<ExtArgs>>): Prisma__WaHookClient<$Result.GetResult<Prisma.$WaHookPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Find zero or more WaHooks that matches the filter.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {WaHookFindManyArgs} args - Arguments to filter and select certain fields only.
* @example
* // Get all WaHooks
* const waHooks = await prisma.waHook.findMany()
*
* // Get first 10 WaHooks
* const waHooks = await prisma.waHook.findMany({ take: 10 })
*
* // Only select the `id`
* const waHookWithIdOnly = await prisma.waHook.findMany({ select: { id: true } })
*
*/
findMany<T extends WaHookFindManyArgs>(args?: SelectSubset<T, WaHookFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$WaHookPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
/**
* Create a WaHook.
* @param {WaHookCreateArgs} args - Arguments to create a WaHook.
* @example
* // Create one WaHook
* const WaHook = await prisma.waHook.create({
* data: {
* // ... data to create a WaHook
* }
* })
*
*/
create<T extends WaHookCreateArgs>(args: SelectSubset<T, WaHookCreateArgs<ExtArgs>>): Prisma__WaHookClient<$Result.GetResult<Prisma.$WaHookPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Create many WaHooks.
* @param {WaHookCreateManyArgs} args - Arguments to create many WaHooks.
* @example
* // Create many WaHooks
* const waHook = await prisma.waHook.createMany({
* data: [
* // ... provide data here
* ]
* })
*
*/
createMany<T extends WaHookCreateManyArgs>(args?: SelectSubset<T, WaHookCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
/**
* Create many WaHooks and returns the data saved in the database.
* @param {WaHookCreateManyAndReturnArgs} args - Arguments to create many WaHooks.
* @example
* // Create many WaHooks
* const waHook = await prisma.waHook.createManyAndReturn({
* data: [
* // ... provide data here
* ]
* })
*
* // Create many WaHooks and only return the `id`
* const waHookWithIdOnly = await prisma.waHook.createManyAndReturn({
* select: { id: true },
* data: [
* // ... provide data here
* ]
* })
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
*
*/
createManyAndReturn<T extends WaHookCreateManyAndReturnArgs>(args?: SelectSubset<T, WaHookCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$WaHookPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>
/**
* Delete a WaHook.
* @param {WaHookDeleteArgs} args - Arguments to delete one WaHook.
* @example
* // Delete one WaHook
* const WaHook = await prisma.waHook.delete({
* where: {
* // ... filter to delete one WaHook
* }
* })
*
*/
delete<T extends WaHookDeleteArgs>(args: SelectSubset<T, WaHookDeleteArgs<ExtArgs>>): Prisma__WaHookClient<$Result.GetResult<Prisma.$WaHookPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Update one WaHook.
* @param {WaHookUpdateArgs} args - Arguments to update one WaHook.
* @example
* // Update one WaHook
* const waHook = await prisma.waHook.update({
* where: {
* // ... provide filter here
* },
* data: {
* // ... provide data here
* }
* })
*
*/
update<T extends WaHookUpdateArgs>(args: SelectSubset<T, WaHookUpdateArgs<ExtArgs>>): Prisma__WaHookClient<$Result.GetResult<Prisma.$WaHookPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Delete zero or more WaHooks.
* @param {WaHookDeleteManyArgs} args - Arguments to filter WaHooks to delete.
* @example
* // Delete a few WaHooks
* const { count } = await prisma.waHook.deleteMany({
* where: {
* // ... provide filter here
* }
* })
*
*/
deleteMany<T extends WaHookDeleteManyArgs>(args?: SelectSubset<T, WaHookDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
/**
* Update zero or more WaHooks.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {WaHookUpdateManyArgs} args - Arguments to update one or more rows.
* @example
* // Update many WaHooks
* const waHook = await prisma.waHook.updateMany({
* where: {
* // ... provide filter here
* },
* data: {
* // ... provide data here
* }
* })
*
*/
updateMany<T extends WaHookUpdateManyArgs>(args: SelectSubset<T, WaHookUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
/**
* Update zero or more WaHooks and returns the data updated in the database.
* @param {WaHookUpdateManyAndReturnArgs} args - Arguments to update many WaHooks.
* @example
* // Update many WaHooks
* const waHook = await prisma.waHook.updateManyAndReturn({
* where: {
* // ... provide filter here
* },
* data: [
* // ... provide data here
* ]
* })
*
* // Update zero or more WaHooks and only return the `id`
* const waHookWithIdOnly = await prisma.waHook.updateManyAndReturn({
* select: { id: true },
* where: {
* // ... provide filter here
* },
* data: [
* // ... provide data here
* ]
* })
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
*
*/
updateManyAndReturn<T extends WaHookUpdateManyAndReturnArgs>(args: SelectSubset<T, WaHookUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$WaHookPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>
/**
* Create or update one WaHook.
* @param {WaHookUpsertArgs} args - Arguments to update or create a WaHook.
* @example
* // Update or create a WaHook
* const waHook = await prisma.waHook.upsert({
* create: {
* // ... data to create a WaHook
* },
* update: {
* // ... in case it already exists, update
* },
* where: {
* // ... the filter for the WaHook we want to update
* }
* })
*/
upsert<T extends WaHookUpsertArgs>(args: SelectSubset<T, WaHookUpsertArgs<ExtArgs>>): Prisma__WaHookClient<$Result.GetResult<Prisma.$WaHookPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Count the number of WaHooks.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {WaHookCountArgs} args - Arguments to filter WaHooks to count.
* @example
* // Count the number of WaHooks
* const count = await prisma.waHook.count({
* where: {
* // ... the filter for the WaHooks we want to count
* }
* })
**/
count<T extends WaHookCountArgs>(
args?: Subset<T, WaHookCountArgs>,
): Prisma.PrismaPromise<
T extends $Utils.Record<'select', any>
? T['select'] extends true
? number
: GetScalarType<T['select'], WaHookCountAggregateOutputType>
: number
>
/**
* Allows you to perform aggregations operations on a WaHook.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {WaHookAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
* @example
* // Ordered by age ascending
* // Where email contains prisma.io
* // Limited to the 10 users
* const aggregations = await prisma.user.aggregate({
* _avg: {
* age: true,
* },
* where: {
* email: {
* contains: "prisma.io",
* },
* },
* orderBy: {
* age: "asc",
* },
* take: 10,
* })
**/
aggregate<T extends WaHookAggregateArgs>(args: Subset<T, WaHookAggregateArgs>): Prisma.PrismaPromise<GetWaHookAggregateType<T>>
/**
* Group by WaHook.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {WaHookGroupByArgs} args - Group by arguments.
* @example
* // Group by city, order by createdAt, get count
* const result = await prisma.user.groupBy({
* by: ['city', 'createdAt'],
* orderBy: {
* createdAt: true
* },
* _count: {
* _all: true
* },
* })
*
**/
groupBy<
T extends WaHookGroupByArgs,
HasSelectOrTake extends Or<
Extends<'skip', Keys<T>>,
Extends<'take', Keys<T>>
>,
OrderByArg extends True extends HasSelectOrTake
? { orderBy: WaHookGroupByArgs['orderBy'] }
: { orderBy?: WaHookGroupByArgs['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, WaHookGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetWaHookGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
/**
* Fields of the WaHook model
*/
readonly fields: WaHookFieldRefs;
}
/**
* The delegate class that acts as a "Promise-like" for WaHook.
* Why is this prefixed with `Prisma__`?
* Because we want to prevent naming conflicts as mentioned in
* https://github.com/prisma/prisma-client-js/issues/707
*/
export interface Prisma__WaHookClient<T, Null = never, ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
readonly [Symbol.toStringTag]: "PrismaPromise"
/**
* Attaches callbacks for the resolution and/or rejection of the Promise.
* @param onfulfilled The callback to execute when the Promise is resolved.
* @param onrejected The callback to execute when the Promise is rejected.
* @returns A Promise for the completion of which ever callback is executed.
*/
then<TResult1 = T, TResult2 = never>(onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined | null): $Utils.JsPromise<TResult1 | TResult2>
/**
* Attaches a callback for only the rejection of the Promise.
* @param onrejected The callback to execute when the Promise is rejected.
* @returns A Promise for the completion of the callback.
*/
catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): $Utils.JsPromise<T | TResult>
/**
* Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
* resolved value cannot be modified from the callback.
* @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
* @returns A Promise for the completion of the callback.
*/
finally(onfinally?: (() => void) | undefined | null): $Utils.JsPromise<T>
}
/**
* Fields of the WaHook model
*/
interface WaHookFieldRefs {
readonly id: FieldRef<"WaHook", 'String'>
readonly data: FieldRef<"WaHook", 'Json'>
readonly createdAt: FieldRef<"WaHook", 'DateTime'>
readonly updatedAt: FieldRef<"WaHook", 'DateTime'>
}
// Custom InputTypes
/**
* WaHook findUnique
*/
export type WaHookFindUniqueArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the WaHook
*/
select?: WaHookSelect<ExtArgs> | null
/**
* Omit specific fields from the WaHook
*/
omit?: WaHookOmit<ExtArgs> | null
/**
* Filter, which WaHook to fetch.
*/
where: WaHookWhereUniqueInput
}
/**
* WaHook findUniqueOrThrow
*/
export type WaHookFindUniqueOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the WaHook
*/
select?: WaHookSelect<ExtArgs> | null
/**
* Omit specific fields from the WaHook
*/
omit?: WaHookOmit<ExtArgs> | null
/**
* Filter, which WaHook to fetch.
*/
where: WaHookWhereUniqueInput
}
/**
* WaHook findFirst
*/
export type WaHookFindFirstArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the WaHook
*/
select?: WaHookSelect<ExtArgs> | null
/**
* Omit specific fields from the WaHook
*/
omit?: WaHookOmit<ExtArgs> | null
/**
* Filter, which WaHook to fetch.
*/
where?: WaHookWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of WaHooks to fetch.
*/
orderBy?: WaHookOrderByWithRelationInput | WaHookOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the position for searching for WaHooks.
*/
cursor?: WaHookWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` WaHooks from the position of the cursor.
*/
take?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Skip the first `n` WaHooks.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
*
* Filter by unique combinations of WaHooks.
*/
distinct?: WaHookScalarFieldEnum | WaHookScalarFieldEnum[]
}
/**
* WaHook findFirstOrThrow
*/
export type WaHookFindFirstOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the WaHook
*/
select?: WaHookSelect<ExtArgs> | null
/**
* Omit specific fields from the WaHook
*/
omit?: WaHookOmit<ExtArgs> | null
/**
* Filter, which WaHook to fetch.
*/
where?: WaHookWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of WaHooks to fetch.
*/
orderBy?: WaHookOrderByWithRelationInput | WaHookOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the position for searching for WaHooks.
*/
cursor?: WaHookWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` WaHooks from the position of the cursor.
*/
take?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Skip the first `n` WaHooks.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
*
* Filter by unique combinations of WaHooks.
*/
distinct?: WaHookScalarFieldEnum | WaHookScalarFieldEnum[]
}
/**
* WaHook findMany
*/
export type WaHookFindManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the WaHook
*/
select?: WaHookSelect<ExtArgs> | null
/**
* Omit specific fields from the WaHook
*/
omit?: WaHookOmit<ExtArgs> | null
/**
* Filter, which WaHooks to fetch.
*/
where?: WaHookWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of WaHooks to fetch.
*/
orderBy?: WaHookOrderByWithRelationInput | WaHookOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the position for listing WaHooks.
*/
cursor?: WaHookWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` WaHooks from the position of the cursor.
*/
take?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Skip the first `n` WaHooks.
*/
skip?: number
distinct?: WaHookScalarFieldEnum | WaHookScalarFieldEnum[]
}
/**
* WaHook create
*/
export type WaHookCreateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the WaHook
*/
select?: WaHookSelect<ExtArgs> | null
/**
* Omit specific fields from the WaHook
*/
omit?: WaHookOmit<ExtArgs> | null
/**
* The data needed to create a WaHook.
*/
data: XOR<WaHookCreateInput, WaHookUncheckedCreateInput>
}
/**
* WaHook createMany
*/
export type WaHookCreateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* The data used to create many WaHooks.
*/
data: WaHookCreateManyInput | WaHookCreateManyInput[]
skipDuplicates?: boolean
}
/**
* WaHook createManyAndReturn
*/
export type WaHookCreateManyAndReturnArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the WaHook
*/
select?: WaHookSelectCreateManyAndReturn<ExtArgs> | null
/**
* Omit specific fields from the WaHook
*/
omit?: WaHookOmit<ExtArgs> | null
/**
* The data used to create many WaHooks.
*/
data: WaHookCreateManyInput | WaHookCreateManyInput[]
skipDuplicates?: boolean
}
/**
* WaHook update
*/
export type WaHookUpdateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the WaHook
*/
select?: WaHookSelect<ExtArgs> | null
/**
* Omit specific fields from the WaHook
*/
omit?: WaHookOmit<ExtArgs> | null
/**
* The data needed to update a WaHook.
*/
data: XOR<WaHookUpdateInput, WaHookUncheckedUpdateInput>
/**
* Choose, which WaHook to update.
*/
where: WaHookWhereUniqueInput
}
/**
* WaHook updateMany
*/
export type WaHookUpdateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* The data used to update WaHooks.
*/
data: XOR<WaHookUpdateManyMutationInput, WaHookUncheckedUpdateManyInput>
/**
* Filter which WaHooks to update
*/
where?: WaHookWhereInput
/**
* Limit how many WaHooks to update.
*/
limit?: number
}
/**
* WaHook updateManyAndReturn
*/
export type WaHookUpdateManyAndReturnArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the WaHook
*/
select?: WaHookSelectUpdateManyAndReturn<ExtArgs> | null
/**
* Omit specific fields from the WaHook
*/
omit?: WaHookOmit<ExtArgs> | null
/**
* The data used to update WaHooks.
*/
data: XOR<WaHookUpdateManyMutationInput, WaHookUncheckedUpdateManyInput>
/**
* Filter which WaHooks to update
*/
where?: WaHookWhereInput
/**
* Limit how many WaHooks to update.
*/
limit?: number
}
/**
* WaHook upsert
*/
export type WaHookUpsertArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the WaHook
*/
select?: WaHookSelect<ExtArgs> | null
/**
* Omit specific fields from the WaHook
*/
omit?: WaHookOmit<ExtArgs> | null
/**
* The filter to search for the WaHook to update in case it exists.
*/
where: WaHookWhereUniqueInput
/**
* In case the WaHook found by the `where` argument doesn't exist, create a new WaHook with this data.
*/
create: XOR<WaHookCreateInput, WaHookUncheckedCreateInput>
/**
* In case the WaHook was found with the provided `where` argument, update it with this data.
*/
update: XOR<WaHookUpdateInput, WaHookUncheckedUpdateInput>
}
/**
* WaHook delete
*/
export type WaHookDeleteArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the WaHook
*/
select?: WaHookSelect<ExtArgs> | null
/**
* Omit specific fields from the WaHook
*/
omit?: WaHookOmit<ExtArgs> | null
/**
* Filter which WaHook to delete.
*/
where: WaHookWhereUniqueInput
}
/**
* WaHook deleteMany
*/
export type WaHookDeleteManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Filter which WaHooks to delete
*/
where?: WaHookWhereInput
/**
* Limit how many WaHooks to delete.
*/
limit?: number
}
/**
* WaHook without action
*/
export type WaHookDefaultArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the WaHook
*/
select?: WaHookSelect<ExtArgs> | null
/**
* Omit specific fields from the WaHook
*/
omit?: WaHookOmit<ExtArgs> | null
}
/**
* Model ChatFlows
*/
export type AggregateChatFlows = {
_count: ChatFlowsCountAggregateOutputType | null
_min: ChatFlowsMinAggregateOutputType | null
_max: ChatFlowsMaxAggregateOutputType | null
}
export type ChatFlowsMinAggregateOutputType = {
id: string | null
defaultFlow: string | null
active: boolean | null
flowUrl: string | null
flowToken: string | null
waPhoneNumberId: string | null
waToken: string | null
createdAt: Date | null
updatedAt: Date | null
}
export type ChatFlowsMaxAggregateOutputType = {
id: string | null
defaultFlow: string | null
active: boolean | null
flowUrl: string | null
flowToken: string | null
waPhoneNumberId: string | null
waToken: string | null
createdAt: Date | null
updatedAt: Date | null
}
export type ChatFlowsCountAggregateOutputType = {
id: number
flows: number
defaultFlow: number
defaultData: number
active: number
flowUrl: number
flowToken: number
waPhoneNumberId: number
waToken: number
createdAt: number
updatedAt: number
_all: number
}
export type ChatFlowsMinAggregateInputType = {
id?: true
defaultFlow?: true
active?: true
flowUrl?: true
flowToken?: true
waPhoneNumberId?: true
waToken?: true
createdAt?: true
updatedAt?: true
}
export type ChatFlowsMaxAggregateInputType = {
id?: true
defaultFlow?: true
active?: true
flowUrl?: true
flowToken?: true
waPhoneNumberId?: true
waToken?: true
createdAt?: true
updatedAt?: true
}
export type ChatFlowsCountAggregateInputType = {
id?: true
flows?: true
defaultFlow?: true
defaultData?: true
active?: true
flowUrl?: true
flowToken?: true
waPhoneNumberId?: true
waToken?: true
createdAt?: true
updatedAt?: true
_all?: true
}
export type ChatFlowsAggregateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Filter which ChatFlows to aggregate.
*/
where?: ChatFlowsWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of ChatFlows to fetch.
*/
orderBy?: ChatFlowsOrderByWithRelationInput | ChatFlowsOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the start position
*/
cursor?: ChatFlowsWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` ChatFlows from the position of the cursor.
*/
take?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Skip the first `n` ChatFlows.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Count returned ChatFlows
**/
_count?: true | ChatFlowsCountAggregateInputType
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to find the minimum value
**/
_min?: ChatFlowsMinAggregateInputType
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to find the maximum value
**/
_max?: ChatFlowsMaxAggregateInputType
}
export type GetChatFlowsAggregateType<T extends ChatFlowsAggregateArgs> = {
[P in keyof T & keyof AggregateChatFlows]: P extends '_count' | 'count'
? T[P] extends true
? number
: GetScalarType<T[P], AggregateChatFlows[P]>
: GetScalarType<T[P], AggregateChatFlows[P]>
}
export type ChatFlowsGroupByArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
where?: ChatFlowsWhereInput
orderBy?: ChatFlowsOrderByWithAggregationInput | ChatFlowsOrderByWithAggregationInput[]
by: ChatFlowsScalarFieldEnum[] | ChatFlowsScalarFieldEnum
having?: ChatFlowsScalarWhereWithAggregatesInput
take?: number
skip?: number
_count?: ChatFlowsCountAggregateInputType | true
_min?: ChatFlowsMinAggregateInputType
_max?: ChatFlowsMaxAggregateInputType
}
export type ChatFlowsGroupByOutputType = {
id: string
flows: JsonValue | null
defaultFlow: string | null
defaultData: JsonValue | null
active: boolean
flowUrl: string | null
flowToken: string | null
waPhoneNumberId: string | null
waToken: string | null
createdAt: Date
updatedAt: Date
_count: ChatFlowsCountAggregateOutputType | null
_min: ChatFlowsMinAggregateOutputType | null
_max: ChatFlowsMaxAggregateOutputType | null
}
type GetChatFlowsGroupByPayload<T extends ChatFlowsGroupByArgs> = Prisma.PrismaPromise<
Array<
PickEnumerable<ChatFlowsGroupByOutputType, T['by']> &
{
[P in ((keyof T) & (keyof ChatFlowsGroupByOutputType))]: P extends '_count'
? T[P] extends boolean
? number
: GetScalarType<T[P], ChatFlowsGroupByOutputType[P]>
: GetScalarType<T[P], ChatFlowsGroupByOutputType[P]>
}
>
>
export type ChatFlowsSelect<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
id?: boolean
flows?: boolean
defaultFlow?: boolean
defaultData?: boolean
active?: boolean
flowUrl?: boolean
flowToken?: boolean
waPhoneNumberId?: boolean
waToken?: boolean
createdAt?: boolean
updatedAt?: boolean
}, ExtArgs["result"]["chatFlows"]>
export type ChatFlowsSelectCreateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
id?: boolean
flows?: boolean
defaultFlow?: boolean
defaultData?: boolean
active?: boolean
flowUrl?: boolean
flowToken?: boolean
waPhoneNumberId?: boolean
waToken?: boolean
createdAt?: boolean
updatedAt?: boolean
}, ExtArgs["result"]["chatFlows"]>
export type ChatFlowsSelectUpdateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
id?: boolean
flows?: boolean
defaultFlow?: boolean
defaultData?: boolean
active?: boolean
flowUrl?: boolean
flowToken?: boolean
waPhoneNumberId?: boolean
waToken?: boolean
createdAt?: boolean
updatedAt?: boolean
}, ExtArgs["result"]["chatFlows"]>
export type ChatFlowsSelectScalar = {
id?: boolean
flows?: boolean
defaultFlow?: boolean
defaultData?: boolean
active?: boolean
flowUrl?: boolean
flowToken?: boolean
waPhoneNumberId?: boolean
waToken?: boolean
createdAt?: boolean
updatedAt?: boolean
}
export type ChatFlowsOmit<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetOmit<"id" | "flows" | "defaultFlow" | "defaultData" | "active" | "flowUrl" | "flowToken" | "waPhoneNumberId" | "waToken" | "createdAt" | "updatedAt", ExtArgs["result"]["chatFlows"]>
export type $ChatFlowsPayload<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
name: "ChatFlows"
objects: {}
scalars: $Extensions.GetPayloadResult<{
id: string
flows: Prisma.JsonValue | null
defaultFlow: string | null
defaultData: Prisma.JsonValue | null
active: boolean
flowUrl: string | null
flowToken: string | null
waPhoneNumberId: string | null
waToken: string | null
createdAt: Date
updatedAt: Date
}, ExtArgs["result"]["chatFlows"]>
composites: {}
}
type ChatFlowsGetPayload<S extends boolean | null | undefined | ChatFlowsDefaultArgs> = $Result.GetResult<Prisma.$ChatFlowsPayload, S>
type ChatFlowsCountArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> =
Omit<ChatFlowsFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
select?: ChatFlowsCountAggregateInputType | true
}
export interface ChatFlowsDelegate<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs, GlobalOmitOptions = {}> {
[K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['ChatFlows'], meta: { name: 'ChatFlows' } }
/**
* Find zero or one ChatFlows that matches the filter.
* @param {ChatFlowsFindUniqueArgs} args - Arguments to find a ChatFlows
* @example
* // Get one ChatFlows
* const chatFlows = await prisma.chatFlows.findUnique({
* where: {
* // ... provide filter here
* }
* })
*/
findUnique<T extends ChatFlowsFindUniqueArgs>(args: SelectSubset<T, ChatFlowsFindUniqueArgs<ExtArgs>>): Prisma__ChatFlowsClient<$Result.GetResult<Prisma.$ChatFlowsPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
/**
* Find one ChatFlows that matches the filter or throw an error with `error.code='P2025'`
* if no matches were found.
* @param {ChatFlowsFindUniqueOrThrowArgs} args - Arguments to find a ChatFlows
* @example
* // Get one ChatFlows
* const chatFlows = await prisma.chatFlows.findUniqueOrThrow({
* where: {
* // ... provide filter here
* }
* })
*/
findUniqueOrThrow<T extends ChatFlowsFindUniqueOrThrowArgs>(args: SelectSubset<T, ChatFlowsFindUniqueOrThrowArgs<ExtArgs>>): Prisma__ChatFlowsClient<$Result.GetResult<Prisma.$ChatFlowsPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Find the first ChatFlows that matches the filter.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {ChatFlowsFindFirstArgs} args - Arguments to find a ChatFlows
* @example
* // Get one ChatFlows
* const chatFlows = await prisma.chatFlows.findFirst({
* where: {
* // ... provide filter here
* }
* })
*/
findFirst<T extends ChatFlowsFindFirstArgs>(args?: SelectSubset<T, ChatFlowsFindFirstArgs<ExtArgs>>): Prisma__ChatFlowsClient<$Result.GetResult<Prisma.$ChatFlowsPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
/**
* Find the first ChatFlows that matches the filter or
* throw `PrismaKnownClientError` with `P2025` code if no matches were found.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {ChatFlowsFindFirstOrThrowArgs} args - Arguments to find a ChatFlows
* @example
* // Get one ChatFlows
* const chatFlows = await prisma.chatFlows.findFirstOrThrow({
* where: {
* // ... provide filter here
* }
* })
*/
findFirstOrThrow<T extends ChatFlowsFindFirstOrThrowArgs>(args?: SelectSubset<T, ChatFlowsFindFirstOrThrowArgs<ExtArgs>>): Prisma__ChatFlowsClient<$Result.GetResult<Prisma.$ChatFlowsPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Find zero or more ChatFlows that matches the filter.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {ChatFlowsFindManyArgs} args - Arguments to filter and select certain fields only.
* @example
* // Get all ChatFlows
* const chatFlows = await prisma.chatFlows.findMany()
*
* // Get first 10 ChatFlows
* const chatFlows = await prisma.chatFlows.findMany({ take: 10 })
*
* // Only select the `id`
* const chatFlowsWithIdOnly = await prisma.chatFlows.findMany({ select: { id: true } })
*
*/
findMany<T extends ChatFlowsFindManyArgs>(args?: SelectSubset<T, ChatFlowsFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$ChatFlowsPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
/**
* Create a ChatFlows.
* @param {ChatFlowsCreateArgs} args - Arguments to create a ChatFlows.
* @example
* // Create one ChatFlows
* const ChatFlows = await prisma.chatFlows.create({
* data: {
* // ... data to create a ChatFlows
* }
* })
*
*/
create<T extends ChatFlowsCreateArgs>(args: SelectSubset<T, ChatFlowsCreateArgs<ExtArgs>>): Prisma__ChatFlowsClient<$Result.GetResult<Prisma.$ChatFlowsPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Create many ChatFlows.
* @param {ChatFlowsCreateManyArgs} args - Arguments to create many ChatFlows.
* @example
* // Create many ChatFlows
* const chatFlows = await prisma.chatFlows.createMany({
* data: [
* // ... provide data here
* ]
* })
*
*/
createMany<T extends ChatFlowsCreateManyArgs>(args?: SelectSubset<T, ChatFlowsCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
/**
* Create many ChatFlows and returns the data saved in the database.
* @param {ChatFlowsCreateManyAndReturnArgs} args - Arguments to create many ChatFlows.
* @example
* // Create many ChatFlows
* const chatFlows = await prisma.chatFlows.createManyAndReturn({
* data: [
* // ... provide data here
* ]
* })
*
* // Create many ChatFlows and only return the `id`
* const chatFlowsWithIdOnly = await prisma.chatFlows.createManyAndReturn({
* select: { id: true },
* data: [
* // ... provide data here
* ]
* })
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
*
*/
createManyAndReturn<T extends ChatFlowsCreateManyAndReturnArgs>(args?: SelectSubset<T, ChatFlowsCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$ChatFlowsPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>
/**
* Delete a ChatFlows.
* @param {ChatFlowsDeleteArgs} args - Arguments to delete one ChatFlows.
* @example
* // Delete one ChatFlows
* const ChatFlows = await prisma.chatFlows.delete({
* where: {
* // ... filter to delete one ChatFlows
* }
* })
*
*/
delete<T extends ChatFlowsDeleteArgs>(args: SelectSubset<T, ChatFlowsDeleteArgs<ExtArgs>>): Prisma__ChatFlowsClient<$Result.GetResult<Prisma.$ChatFlowsPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Update one ChatFlows.
* @param {ChatFlowsUpdateArgs} args - Arguments to update one ChatFlows.
* @example
* // Update one ChatFlows
* const chatFlows = await prisma.chatFlows.update({
* where: {
* // ... provide filter here
* },
* data: {
* // ... provide data here
* }
* })
*
*/
update<T extends ChatFlowsUpdateArgs>(args: SelectSubset<T, ChatFlowsUpdateArgs<ExtArgs>>): Prisma__ChatFlowsClient<$Result.GetResult<Prisma.$ChatFlowsPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Delete zero or more ChatFlows.
* @param {ChatFlowsDeleteManyArgs} args - Arguments to filter ChatFlows to delete.
* @example
* // Delete a few ChatFlows
* const { count } = await prisma.chatFlows.deleteMany({
* where: {
* // ... provide filter here
* }
* })
*
*/
deleteMany<T extends ChatFlowsDeleteManyArgs>(args?: SelectSubset<T, ChatFlowsDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
/**
* Update zero or more ChatFlows.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {ChatFlowsUpdateManyArgs} args - Arguments to update one or more rows.
* @example
* // Update many ChatFlows
* const chatFlows = await prisma.chatFlows.updateMany({
* where: {
* // ... provide filter here
* },
* data: {
* // ... provide data here
* }
* })
*
*/
updateMany<T extends ChatFlowsUpdateManyArgs>(args: SelectSubset<T, ChatFlowsUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
/**
* Update zero or more ChatFlows and returns the data updated in the database.
* @param {ChatFlowsUpdateManyAndReturnArgs} args - Arguments to update many ChatFlows.
* @example
* // Update many ChatFlows
* const chatFlows = await prisma.chatFlows.updateManyAndReturn({
* where: {
* // ... provide filter here
* },
* data: [
* // ... provide data here
* ]
* })
*
* // Update zero or more ChatFlows and only return the `id`
* const chatFlowsWithIdOnly = await prisma.chatFlows.updateManyAndReturn({
* select: { id: true },
* where: {
* // ... provide filter here
* },
* data: [
* // ... provide data here
* ]
* })
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
*
*/
updateManyAndReturn<T extends ChatFlowsUpdateManyAndReturnArgs>(args: SelectSubset<T, ChatFlowsUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$ChatFlowsPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>
/**
* Create or update one ChatFlows.
* @param {ChatFlowsUpsertArgs} args - Arguments to update or create a ChatFlows.
* @example
* // Update or create a ChatFlows
* const chatFlows = await prisma.chatFlows.upsert({
* create: {
* // ... data to create a ChatFlows
* },
* update: {
* // ... in case it already exists, update
* },
* where: {
* // ... the filter for the ChatFlows we want to update
* }
* })
*/
upsert<T extends ChatFlowsUpsertArgs>(args: SelectSubset<T, ChatFlowsUpsertArgs<ExtArgs>>): Prisma__ChatFlowsClient<$Result.GetResult<Prisma.$ChatFlowsPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Count the number of ChatFlows.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {ChatFlowsCountArgs} args - Arguments to filter ChatFlows to count.
* @example
* // Count the number of ChatFlows
* const count = await prisma.chatFlows.count({
* where: {
* // ... the filter for the ChatFlows we want to count
* }
* })
**/
count<T extends ChatFlowsCountArgs>(
args?: Subset<T, ChatFlowsCountArgs>,
): Prisma.PrismaPromise<
T extends $Utils.Record<'select', any>
? T['select'] extends true
? number
: GetScalarType<T['select'], ChatFlowsCountAggregateOutputType>
: number
>
/**
* Allows you to perform aggregations operations on a ChatFlows.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {ChatFlowsAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
* @example
* // Ordered by age ascending
* // Where email contains prisma.io
* // Limited to the 10 users
* const aggregations = await prisma.user.aggregate({
* _avg: {
* age: true,
* },
* where: {
* email: {
* contains: "prisma.io",
* },
* },
* orderBy: {
* age: "asc",
* },
* take: 10,
* })
**/
aggregate<T extends ChatFlowsAggregateArgs>(args: Subset<T, ChatFlowsAggregateArgs>): Prisma.PrismaPromise<GetChatFlowsAggregateType<T>>
/**
* Group by ChatFlows.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {ChatFlowsGroupByArgs} args - Group by arguments.
* @example
* // Group by city, order by createdAt, get count
* const result = await prisma.user.groupBy({
* by: ['city', 'createdAt'],
* orderBy: {
* createdAt: true
* },
* _count: {
* _all: true
* },
* })
*
**/
groupBy<
T extends ChatFlowsGroupByArgs,
HasSelectOrTake extends Or<
Extends<'skip', Keys<T>>,
Extends<'take', Keys<T>>
>,
OrderByArg extends True extends HasSelectOrTake
? { orderBy: ChatFlowsGroupByArgs['orderBy'] }
: { orderBy?: ChatFlowsGroupByArgs['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, ChatFlowsGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetChatFlowsGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
/**
* Fields of the ChatFlows model
*/
readonly fields: ChatFlowsFieldRefs;
}
/**
* The delegate class that acts as a "Promise-like" for ChatFlows.
* Why is this prefixed with `Prisma__`?
* Because we want to prevent naming conflicts as mentioned in
* https://github.com/prisma/prisma-client-js/issues/707
*/
export interface Prisma__ChatFlowsClient<T, Null = never, ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
readonly [Symbol.toStringTag]: "PrismaPromise"
/**
* Attaches callbacks for the resolution and/or rejection of the Promise.
* @param onfulfilled The callback to execute when the Promise is resolved.
* @param onrejected The callback to execute when the Promise is rejected.
* @returns A Promise for the completion of which ever callback is executed.
*/
then<TResult1 = T, TResult2 = never>(onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined | null): $Utils.JsPromise<TResult1 | TResult2>
/**
* Attaches a callback for only the rejection of the Promise.
* @param onrejected The callback to execute when the Promise is rejected.
* @returns A Promise for the completion of the callback.
*/
catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): $Utils.JsPromise<T | TResult>
/**
* Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
* resolved value cannot be modified from the callback.
* @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
* @returns A Promise for the completion of the callback.
*/
finally(onfinally?: (() => void) | undefined | null): $Utils.JsPromise<T>
}
/**
* Fields of the ChatFlows model
*/
interface ChatFlowsFieldRefs {
readonly id: FieldRef<"ChatFlows", 'String'>
readonly flows: FieldRef<"ChatFlows", 'Json'>
readonly defaultFlow: FieldRef<"ChatFlows", 'String'>
readonly defaultData: FieldRef<"ChatFlows", 'Json'>
readonly active: FieldRef<"ChatFlows", 'Boolean'>
readonly flowUrl: FieldRef<"ChatFlows", 'String'>
readonly flowToken: FieldRef<"ChatFlows", 'String'>
readonly waPhoneNumberId: FieldRef<"ChatFlows", 'String'>
readonly waToken: FieldRef<"ChatFlows", 'String'>
readonly createdAt: FieldRef<"ChatFlows", 'DateTime'>
readonly updatedAt: FieldRef<"ChatFlows", 'DateTime'>
}
// Custom InputTypes
/**
* ChatFlows findUnique
*/
export type ChatFlowsFindUniqueArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the ChatFlows
*/
select?: ChatFlowsSelect<ExtArgs> | null
/**
* Omit specific fields from the ChatFlows
*/
omit?: ChatFlowsOmit<ExtArgs> | null
/**
* Filter, which ChatFlows to fetch.
*/
where: ChatFlowsWhereUniqueInput
}
/**
* ChatFlows findUniqueOrThrow
*/
export type ChatFlowsFindUniqueOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the ChatFlows
*/
select?: ChatFlowsSelect<ExtArgs> | null
/**
* Omit specific fields from the ChatFlows
*/
omit?: ChatFlowsOmit<ExtArgs> | null
/**
* Filter, which ChatFlows to fetch.
*/
where: ChatFlowsWhereUniqueInput
}
/**
* ChatFlows findFirst
*/
export type ChatFlowsFindFirstArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the ChatFlows
*/
select?: ChatFlowsSelect<ExtArgs> | null
/**
* Omit specific fields from the ChatFlows
*/
omit?: ChatFlowsOmit<ExtArgs> | null
/**
* Filter, which ChatFlows to fetch.
*/
where?: ChatFlowsWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of ChatFlows to fetch.
*/
orderBy?: ChatFlowsOrderByWithRelationInput | ChatFlowsOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the position for searching for ChatFlows.
*/
cursor?: ChatFlowsWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` ChatFlows from the position of the cursor.
*/
take?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Skip the first `n` ChatFlows.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
*
* Filter by unique combinations of ChatFlows.
*/
distinct?: ChatFlowsScalarFieldEnum | ChatFlowsScalarFieldEnum[]
}
/**
* ChatFlows findFirstOrThrow
*/
export type ChatFlowsFindFirstOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the ChatFlows
*/
select?: ChatFlowsSelect<ExtArgs> | null
/**
* Omit specific fields from the ChatFlows
*/
omit?: ChatFlowsOmit<ExtArgs> | null
/**
* Filter, which ChatFlows to fetch.
*/
where?: ChatFlowsWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of ChatFlows to fetch.
*/
orderBy?: ChatFlowsOrderByWithRelationInput | ChatFlowsOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the position for searching for ChatFlows.
*/
cursor?: ChatFlowsWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` ChatFlows from the position of the cursor.
*/
take?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Skip the first `n` ChatFlows.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
*
* Filter by unique combinations of ChatFlows.
*/
distinct?: ChatFlowsScalarFieldEnum | ChatFlowsScalarFieldEnum[]
}
/**
* ChatFlows findMany
*/
export type ChatFlowsFindManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the ChatFlows
*/
select?: ChatFlowsSelect<ExtArgs> | null
/**
* Omit specific fields from the ChatFlows
*/
omit?: ChatFlowsOmit<ExtArgs> | null
/**
* Filter, which ChatFlows to fetch.
*/
where?: ChatFlowsWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of ChatFlows to fetch.
*/
orderBy?: ChatFlowsOrderByWithRelationInput | ChatFlowsOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the position for listing ChatFlows.
*/
cursor?: ChatFlowsWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` ChatFlows from the position of the cursor.
*/
take?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Skip the first `n` ChatFlows.
*/
skip?: number
distinct?: ChatFlowsScalarFieldEnum | ChatFlowsScalarFieldEnum[]
}
/**
* ChatFlows create
*/
export type ChatFlowsCreateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the ChatFlows
*/
select?: ChatFlowsSelect<ExtArgs> | null
/**
* Omit specific fields from the ChatFlows
*/
omit?: ChatFlowsOmit<ExtArgs> | null
/**
* The data needed to create a ChatFlows.
*/
data: XOR<ChatFlowsCreateInput, ChatFlowsUncheckedCreateInput>
}
/**
* ChatFlows createMany
*/
export type ChatFlowsCreateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* The data used to create many ChatFlows.
*/
data: ChatFlowsCreateManyInput | ChatFlowsCreateManyInput[]
skipDuplicates?: boolean
}
/**
* ChatFlows createManyAndReturn
*/
export type ChatFlowsCreateManyAndReturnArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the ChatFlows
*/
select?: ChatFlowsSelectCreateManyAndReturn<ExtArgs> | null
/**
* Omit specific fields from the ChatFlows
*/
omit?: ChatFlowsOmit<ExtArgs> | null
/**
* The data used to create many ChatFlows.
*/
data: ChatFlowsCreateManyInput | ChatFlowsCreateManyInput[]
skipDuplicates?: boolean
}
/**
* ChatFlows update
*/
export type ChatFlowsUpdateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the ChatFlows
*/
select?: ChatFlowsSelect<ExtArgs> | null
/**
* Omit specific fields from the ChatFlows
*/
omit?: ChatFlowsOmit<ExtArgs> | null
/**
* The data needed to update a ChatFlows.
*/
data: XOR<ChatFlowsUpdateInput, ChatFlowsUncheckedUpdateInput>
/**
* Choose, which ChatFlows to update.
*/
where: ChatFlowsWhereUniqueInput
}
/**
* ChatFlows updateMany
*/
export type ChatFlowsUpdateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* The data used to update ChatFlows.
*/
data: XOR<ChatFlowsUpdateManyMutationInput, ChatFlowsUncheckedUpdateManyInput>
/**
* Filter which ChatFlows to update
*/
where?: ChatFlowsWhereInput
/**
* Limit how many ChatFlows to update.
*/
limit?: number
}
/**
* ChatFlows updateManyAndReturn
*/
export type ChatFlowsUpdateManyAndReturnArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the ChatFlows
*/
select?: ChatFlowsSelectUpdateManyAndReturn<ExtArgs> | null
/**
* Omit specific fields from the ChatFlows
*/
omit?: ChatFlowsOmit<ExtArgs> | null
/**
* The data used to update ChatFlows.
*/
data: XOR<ChatFlowsUpdateManyMutationInput, ChatFlowsUncheckedUpdateManyInput>
/**
* Filter which ChatFlows to update
*/
where?: ChatFlowsWhereInput
/**
* Limit how many ChatFlows to update.
*/
limit?: number
}
/**
* ChatFlows upsert
*/
export type ChatFlowsUpsertArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the ChatFlows
*/
select?: ChatFlowsSelect<ExtArgs> | null
/**
* Omit specific fields from the ChatFlows
*/
omit?: ChatFlowsOmit<ExtArgs> | null
/**
* The filter to search for the ChatFlows to update in case it exists.
*/
where: ChatFlowsWhereUniqueInput
/**
* In case the ChatFlows found by the `where` argument doesn't exist, create a new ChatFlows with this data.
*/
create: XOR<ChatFlowsCreateInput, ChatFlowsUncheckedCreateInput>
/**
* In case the ChatFlows was found with the provided `where` argument, update it with this data.
*/
update: XOR<ChatFlowsUpdateInput, ChatFlowsUncheckedUpdateInput>
}
/**
* ChatFlows delete
*/
export type ChatFlowsDeleteArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the ChatFlows
*/
select?: ChatFlowsSelect<ExtArgs> | null
/**
* Omit specific fields from the ChatFlows
*/
omit?: ChatFlowsOmit<ExtArgs> | null
/**
* Filter which ChatFlows to delete.
*/
where: ChatFlowsWhereUniqueInput
}
/**
* ChatFlows deleteMany
*/
export type ChatFlowsDeleteManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Filter which ChatFlows to delete
*/
where?: ChatFlowsWhereInput
/**
* Limit how many ChatFlows to delete.
*/
limit?: number
}
/**
* ChatFlows without action
*/
export type ChatFlowsDefaultArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the ChatFlows
*/
select?: ChatFlowsSelect<ExtArgs> | null
/**
* Omit specific fields from the ChatFlows
*/
omit?: ChatFlowsOmit<ExtArgs> | null
}
/**
* Enums
*/
export const TransactionIsolationLevel: {
ReadUncommitted: 'ReadUncommitted',
ReadCommitted: 'ReadCommitted',
RepeatableRead: 'RepeatableRead',
Serializable: 'Serializable'
};
export type TransactionIsolationLevel = (typeof TransactionIsolationLevel)[keyof typeof TransactionIsolationLevel]
export const UserScalarFieldEnum: {
id: 'id',
name: 'name',
email: 'email',
password: 'password',
createdAt: 'createdAt',
updatedAt: 'updatedAt'
};
export type UserScalarFieldEnum = (typeof UserScalarFieldEnum)[keyof typeof UserScalarFieldEnum]
export const ApiKeyScalarFieldEnum: {
id: 'id',
userId: 'userId',
name: 'name',
key: 'key',
description: 'description',
expiredAt: 'expiredAt',
createdAt: 'createdAt',
updatedAt: 'updatedAt'
};
export type ApiKeyScalarFieldEnum = (typeof ApiKeyScalarFieldEnum)[keyof typeof ApiKeyScalarFieldEnum]
export const WebHookScalarFieldEnum: {
id: 'id',
name: 'name',
description: 'description',
url: 'url',
payload: 'payload',
method: 'method',
headers: 'headers',
apiToken: 'apiToken',
retries: 'retries',
enabled: 'enabled',
replay: 'replay',
replayKey: 'replayKey',
createdAt: 'createdAt',
updatedAt: 'updatedAt'
};
export type WebHookScalarFieldEnum = (typeof WebHookScalarFieldEnum)[keyof typeof WebHookScalarFieldEnum]
export const WaHookScalarFieldEnum: {
id: 'id',
data: 'data',
createdAt: 'createdAt',
updatedAt: 'updatedAt'
};
export type WaHookScalarFieldEnum = (typeof WaHookScalarFieldEnum)[keyof typeof WaHookScalarFieldEnum]
export const ChatFlowsScalarFieldEnum: {
id: 'id',
flows: 'flows',
defaultFlow: 'defaultFlow',
defaultData: 'defaultData',
active: 'active',
flowUrl: 'flowUrl',
flowToken: 'flowToken',
waPhoneNumberId: 'waPhoneNumberId',
waToken: 'waToken',
createdAt: 'createdAt',
updatedAt: 'updatedAt'
};
export type ChatFlowsScalarFieldEnum = (typeof ChatFlowsScalarFieldEnum)[keyof typeof ChatFlowsScalarFieldEnum]
export const SortOrder: {
asc: 'asc',
desc: 'desc'
};
export type SortOrder = (typeof SortOrder)[keyof typeof SortOrder]
export const NullableJsonNullValueInput: {
DbNull: typeof DbNull,
JsonNull: typeof JsonNull
};
export type NullableJsonNullValueInput = (typeof NullableJsonNullValueInput)[keyof typeof NullableJsonNullValueInput]
export const QueryMode: {
default: 'default',
insensitive: 'insensitive'
};
export type QueryMode = (typeof QueryMode)[keyof typeof QueryMode]
export const NullsOrder: {
first: 'first',
last: 'last'
};
export type NullsOrder = (typeof NullsOrder)[keyof typeof NullsOrder]
export const JsonNullValueFilter: {
DbNull: typeof DbNull,
JsonNull: typeof JsonNull,
AnyNull: typeof AnyNull
};
export type JsonNullValueFilter = (typeof JsonNullValueFilter)[keyof typeof JsonNullValueFilter]
/**
* Field references
*/
/**
* Reference to a field of type 'String'
*/
export type StringFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'String'>
/**
* Reference to a field of type 'String[]'
*/
export type ListStringFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'String[]'>
/**
* Reference to a field of type 'DateTime'
*/
export type DateTimeFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'DateTime'>
/**
* Reference to a field of type 'DateTime[]'
*/
export type ListDateTimeFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'DateTime[]'>
/**
* Reference to a field of type 'Int'
*/
export type IntFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'Int'>
/**
* Reference to a field of type 'Int[]'
*/
export type ListIntFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'Int[]'>
/**
* Reference to a field of type 'Boolean'
*/
export type BooleanFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'Boolean'>
/**
* Reference to a field of type 'Json'
*/
export type JsonFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'Json'>
/**
* Reference to a field of type 'QueryMode'
*/
export type EnumQueryModeFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'QueryMode'>
/**
* Reference to a field of type 'Float'
*/
export type FloatFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'Float'>
/**
* Reference to a field of type 'Float[]'
*/
export type ListFloatFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'Float[]'>
/**
* Deep Input Types
*/
export type UserWhereInput = {
AND?: UserWhereInput | UserWhereInput[]
OR?: UserWhereInput[]
NOT?: UserWhereInput | UserWhereInput[]
id?: StringFilter<"User"> | string
name?: StringNullableFilter<"User"> | string | null
email?: StringNullableFilter<"User"> | string | null
password?: StringNullableFilter<"User"> | string | null
createdAt?: DateTimeFilter<"User"> | Date | string
updatedAt?: DateTimeFilter<"User"> | Date | string
ApiKey?: ApiKeyListRelationFilter
}
export type UserOrderByWithRelationInput = {
id?: SortOrder
name?: SortOrderInput | SortOrder
email?: SortOrderInput | SortOrder
password?: SortOrderInput | SortOrder
createdAt?: SortOrder
updatedAt?: SortOrder
ApiKey?: ApiKeyOrderByRelationAggregateInput
}
export type UserWhereUniqueInput = Prisma.AtLeast<{
id?: string
email?: string
AND?: UserWhereInput | UserWhereInput[]
OR?: UserWhereInput[]
NOT?: UserWhereInput | UserWhereInput[]
name?: StringNullableFilter<"User"> | string | null
password?: StringNullableFilter<"User"> | string | null
createdAt?: DateTimeFilter<"User"> | Date | string
updatedAt?: DateTimeFilter<"User"> | Date | string
ApiKey?: ApiKeyListRelationFilter
}, "id" | "email">
export type UserOrderByWithAggregationInput = {
id?: SortOrder
name?: SortOrderInput | SortOrder
email?: SortOrderInput | SortOrder
password?: SortOrderInput | SortOrder
createdAt?: SortOrder
updatedAt?: SortOrder
_count?: UserCountOrderByAggregateInput
_max?: UserMaxOrderByAggregateInput
_min?: UserMinOrderByAggregateInput
}
export type UserScalarWhereWithAggregatesInput = {
AND?: UserScalarWhereWithAggregatesInput | UserScalarWhereWithAggregatesInput[]
OR?: UserScalarWhereWithAggregatesInput[]
NOT?: UserScalarWhereWithAggregatesInput | UserScalarWhereWithAggregatesInput[]
id?: StringWithAggregatesFilter<"User"> | string
name?: StringNullableWithAggregatesFilter<"User"> | string | null
email?: StringNullableWithAggregatesFilter<"User"> | string | null
password?: StringNullableWithAggregatesFilter<"User"> | string | null
createdAt?: DateTimeWithAggregatesFilter<"User"> | Date | string
updatedAt?: DateTimeWithAggregatesFilter<"User"> | Date | string
}
export type ApiKeyWhereInput = {
AND?: ApiKeyWhereInput | ApiKeyWhereInput[]
OR?: ApiKeyWhereInput[]
NOT?: ApiKeyWhereInput | ApiKeyWhereInput[]
id?: StringFilter<"ApiKey"> | string
userId?: StringFilter<"ApiKey"> | string
name?: StringFilter<"ApiKey"> | string
key?: StringFilter<"ApiKey"> | string
description?: StringNullableFilter<"ApiKey"> | string | null
expiredAt?: DateTimeNullableFilter<"ApiKey"> | Date | string | null
createdAt?: DateTimeFilter<"ApiKey"> | Date | string
updatedAt?: DateTimeFilter<"ApiKey"> | Date | string
User?: XOR<UserNullableScalarRelationFilter, UserWhereInput> | null
}
export type ApiKeyOrderByWithRelationInput = {
id?: SortOrder
userId?: SortOrder
name?: SortOrder
key?: SortOrder
description?: SortOrderInput | SortOrder
expiredAt?: SortOrderInput | SortOrder
createdAt?: SortOrder
updatedAt?: SortOrder
User?: UserOrderByWithRelationInput
}
export type ApiKeyWhereUniqueInput = Prisma.AtLeast<{
id?: string
key?: string
AND?: ApiKeyWhereInput | ApiKeyWhereInput[]
OR?: ApiKeyWhereInput[]
NOT?: ApiKeyWhereInput | ApiKeyWhereInput[]
userId?: StringFilter<"ApiKey"> | string
name?: StringFilter<"ApiKey"> | string
description?: StringNullableFilter<"ApiKey"> | string | null
expiredAt?: DateTimeNullableFilter<"ApiKey"> | Date | string | null
createdAt?: DateTimeFilter<"ApiKey"> | Date | string
updatedAt?: DateTimeFilter<"ApiKey"> | Date | string
User?: XOR<UserNullableScalarRelationFilter, UserWhereInput> | null
}, "id" | "key">
export type ApiKeyOrderByWithAggregationInput = {
id?: SortOrder
userId?: SortOrder
name?: SortOrder
key?: SortOrder
description?: SortOrderInput | SortOrder
expiredAt?: SortOrderInput | SortOrder
createdAt?: SortOrder
updatedAt?: SortOrder
_count?: ApiKeyCountOrderByAggregateInput
_max?: ApiKeyMaxOrderByAggregateInput
_min?: ApiKeyMinOrderByAggregateInput
}
export type ApiKeyScalarWhereWithAggregatesInput = {
AND?: ApiKeyScalarWhereWithAggregatesInput | ApiKeyScalarWhereWithAggregatesInput[]
OR?: ApiKeyScalarWhereWithAggregatesInput[]
NOT?: ApiKeyScalarWhereWithAggregatesInput | ApiKeyScalarWhereWithAggregatesInput[]
id?: StringWithAggregatesFilter<"ApiKey"> | string
userId?: StringWithAggregatesFilter<"ApiKey"> | string
name?: StringWithAggregatesFilter<"ApiKey"> | string
key?: StringWithAggregatesFilter<"ApiKey"> | string
description?: StringNullableWithAggregatesFilter<"ApiKey"> | string | null
expiredAt?: DateTimeNullableWithAggregatesFilter<"ApiKey"> | Date | string | null
createdAt?: DateTimeWithAggregatesFilter<"ApiKey"> | Date | string
updatedAt?: DateTimeWithAggregatesFilter<"ApiKey"> | Date | string
}
export type WebHookWhereInput = {
AND?: WebHookWhereInput | WebHookWhereInput[]
OR?: WebHookWhereInput[]
NOT?: WebHookWhereInput | WebHookWhereInput[]
id?: StringFilter<"WebHook"> | string
name?: StringNullableFilter<"WebHook"> | string | null
description?: StringNullableFilter<"WebHook"> | string | null
url?: StringFilter<"WebHook"> | string
payload?: StringNullableFilter<"WebHook"> | string | null
method?: StringFilter<"WebHook"> | string
headers?: StringNullableFilter<"WebHook"> | string | null
apiToken?: StringNullableFilter<"WebHook"> | string | null
retries?: IntNullableFilter<"WebHook"> | number | null
enabled?: BoolFilter<"WebHook"> | boolean
replay?: BoolFilter<"WebHook"> | boolean
replayKey?: StringNullableFilter<"WebHook"> | string | null
createdAt?: DateTimeFilter<"WebHook"> | Date | string
updatedAt?: DateTimeFilter<"WebHook"> | Date | string
}
export type WebHookOrderByWithRelationInput = {
id?: SortOrder
name?: SortOrderInput | SortOrder
description?: SortOrderInput | SortOrder
url?: SortOrder
payload?: SortOrderInput | SortOrder
method?: SortOrder
headers?: SortOrderInput | SortOrder
apiToken?: SortOrderInput | SortOrder
retries?: SortOrderInput | SortOrder
enabled?: SortOrder
replay?: SortOrder
replayKey?: SortOrderInput | SortOrder
createdAt?: SortOrder
updatedAt?: SortOrder
}
export type WebHookWhereUniqueInput = Prisma.AtLeast<{
id?: string
AND?: WebHookWhereInput | WebHookWhereInput[]
OR?: WebHookWhereInput[]
NOT?: WebHookWhereInput | WebHookWhereInput[]
name?: StringNullableFilter<"WebHook"> | string | null
description?: StringNullableFilter<"WebHook"> | string | null
url?: StringFilter<"WebHook"> | string
payload?: StringNullableFilter<"WebHook"> | string | null
method?: StringFilter<"WebHook"> | string
headers?: StringNullableFilter<"WebHook"> | string | null
apiToken?: StringNullableFilter<"WebHook"> | string | null
retries?: IntNullableFilter<"WebHook"> | number | null
enabled?: BoolFilter<"WebHook"> | boolean
replay?: BoolFilter<"WebHook"> | boolean
replayKey?: StringNullableFilter<"WebHook"> | string | null
createdAt?: DateTimeFilter<"WebHook"> | Date | string
updatedAt?: DateTimeFilter<"WebHook"> | Date | string
}, "id">
export type WebHookOrderByWithAggregationInput = {
id?: SortOrder
name?: SortOrderInput | SortOrder
description?: SortOrderInput | SortOrder
url?: SortOrder
payload?: SortOrderInput | SortOrder
method?: SortOrder
headers?: SortOrderInput | SortOrder
apiToken?: SortOrderInput | SortOrder
retries?: SortOrderInput | SortOrder
enabled?: SortOrder
replay?: SortOrder
replayKey?: SortOrderInput | SortOrder
createdAt?: SortOrder
updatedAt?: SortOrder
_count?: WebHookCountOrderByAggregateInput
_avg?: WebHookAvgOrderByAggregateInput
_max?: WebHookMaxOrderByAggregateInput
_min?: WebHookMinOrderByAggregateInput
_sum?: WebHookSumOrderByAggregateInput
}
export type WebHookScalarWhereWithAggregatesInput = {
AND?: WebHookScalarWhereWithAggregatesInput | WebHookScalarWhereWithAggregatesInput[]
OR?: WebHookScalarWhereWithAggregatesInput[]
NOT?: WebHookScalarWhereWithAggregatesInput | WebHookScalarWhereWithAggregatesInput[]
id?: StringWithAggregatesFilter<"WebHook"> | string
name?: StringNullableWithAggregatesFilter<"WebHook"> | string | null
description?: StringNullableWithAggregatesFilter<"WebHook"> | string | null
url?: StringWithAggregatesFilter<"WebHook"> | string
payload?: StringNullableWithAggregatesFilter<"WebHook"> | string | null
method?: StringWithAggregatesFilter<"WebHook"> | string
headers?: StringNullableWithAggregatesFilter<"WebHook"> | string | null
apiToken?: StringNullableWithAggregatesFilter<"WebHook"> | string | null
retries?: IntNullableWithAggregatesFilter<"WebHook"> | number | null
enabled?: BoolWithAggregatesFilter<"WebHook"> | boolean
replay?: BoolWithAggregatesFilter<"WebHook"> | boolean
replayKey?: StringNullableWithAggregatesFilter<"WebHook"> | string | null
createdAt?: DateTimeWithAggregatesFilter<"WebHook"> | Date | string
updatedAt?: DateTimeWithAggregatesFilter<"WebHook"> | Date | string
}
export type WaHookWhereInput = {
AND?: WaHookWhereInput | WaHookWhereInput[]
OR?: WaHookWhereInput[]
NOT?: WaHookWhereInput | WaHookWhereInput[]
id?: StringFilter<"WaHook"> | string
data?: JsonNullableFilter<"WaHook">
createdAt?: DateTimeFilter<"WaHook"> | Date | string
updatedAt?: DateTimeFilter<"WaHook"> | Date | string
}
export type WaHookOrderByWithRelationInput = {
id?: SortOrder
data?: SortOrderInput | SortOrder
createdAt?: SortOrder
updatedAt?: SortOrder
}
export type WaHookWhereUniqueInput = Prisma.AtLeast<{
id?: string
AND?: WaHookWhereInput | WaHookWhereInput[]
OR?: WaHookWhereInput[]
NOT?: WaHookWhereInput | WaHookWhereInput[]
data?: JsonNullableFilter<"WaHook">
createdAt?: DateTimeFilter<"WaHook"> | Date | string
updatedAt?: DateTimeFilter<"WaHook"> | Date | string
}, "id">
export type WaHookOrderByWithAggregationInput = {
id?: SortOrder
data?: SortOrderInput | SortOrder
createdAt?: SortOrder
updatedAt?: SortOrder
_count?: WaHookCountOrderByAggregateInput
_max?: WaHookMaxOrderByAggregateInput
_min?: WaHookMinOrderByAggregateInput
}
export type WaHookScalarWhereWithAggregatesInput = {
AND?: WaHookScalarWhereWithAggregatesInput | WaHookScalarWhereWithAggregatesInput[]
OR?: WaHookScalarWhereWithAggregatesInput[]
NOT?: WaHookScalarWhereWithAggregatesInput | WaHookScalarWhereWithAggregatesInput[]
id?: StringWithAggregatesFilter<"WaHook"> | string
data?: JsonNullableWithAggregatesFilter<"WaHook">
createdAt?: DateTimeWithAggregatesFilter<"WaHook"> | Date | string
updatedAt?: DateTimeWithAggregatesFilter<"WaHook"> | Date | string
}
export type ChatFlowsWhereInput = {
AND?: ChatFlowsWhereInput | ChatFlowsWhereInput[]
OR?: ChatFlowsWhereInput[]
NOT?: ChatFlowsWhereInput | ChatFlowsWhereInput[]
id?: StringFilter<"ChatFlows"> | string
flows?: JsonNullableFilter<"ChatFlows">
defaultFlow?: StringNullableFilter<"ChatFlows"> | string | null
defaultData?: JsonNullableFilter<"ChatFlows">
active?: BoolFilter<"ChatFlows"> | boolean
flowUrl?: StringNullableFilter<"ChatFlows"> | string | null
flowToken?: StringNullableFilter<"ChatFlows"> | string | null
waPhoneNumberId?: StringNullableFilter<"ChatFlows"> | string | null
waToken?: StringNullableFilter<"ChatFlows"> | string | null
createdAt?: DateTimeFilter<"ChatFlows"> | Date | string
updatedAt?: DateTimeFilter<"ChatFlows"> | Date | string
}
export type ChatFlowsOrderByWithRelationInput = {
id?: SortOrder
flows?: SortOrderInput | SortOrder
defaultFlow?: SortOrderInput | SortOrder
defaultData?: SortOrderInput | SortOrder
active?: SortOrder
flowUrl?: SortOrderInput | SortOrder
flowToken?: SortOrderInput | SortOrder
waPhoneNumberId?: SortOrderInput | SortOrder
waToken?: SortOrderInput | SortOrder
createdAt?: SortOrder
updatedAt?: SortOrder
}
export type ChatFlowsWhereUniqueInput = Prisma.AtLeast<{
id?: string
flowUrl?: string
AND?: ChatFlowsWhereInput | ChatFlowsWhereInput[]
OR?: ChatFlowsWhereInput[]
NOT?: ChatFlowsWhereInput | ChatFlowsWhereInput[]
flows?: JsonNullableFilter<"ChatFlows">
defaultFlow?: StringNullableFilter<"ChatFlows"> | string | null
defaultData?: JsonNullableFilter<"ChatFlows">
active?: BoolFilter<"ChatFlows"> | boolean
flowToken?: StringNullableFilter<"ChatFlows"> | string | null
waPhoneNumberId?: StringNullableFilter<"ChatFlows"> | string | null
waToken?: StringNullableFilter<"ChatFlows"> | string | null
createdAt?: DateTimeFilter<"ChatFlows"> | Date | string
updatedAt?: DateTimeFilter<"ChatFlows"> | Date | string
}, "id" | "flowUrl">
export type ChatFlowsOrderByWithAggregationInput = {
id?: SortOrder
flows?: SortOrderInput | SortOrder
defaultFlow?: SortOrderInput | SortOrder
defaultData?: SortOrderInput | SortOrder
active?: SortOrder
flowUrl?: SortOrderInput | SortOrder
flowToken?: SortOrderInput | SortOrder
waPhoneNumberId?: SortOrderInput | SortOrder
waToken?: SortOrderInput | SortOrder
createdAt?: SortOrder
updatedAt?: SortOrder
_count?: ChatFlowsCountOrderByAggregateInput
_max?: ChatFlowsMaxOrderByAggregateInput
_min?: ChatFlowsMinOrderByAggregateInput
}
export type ChatFlowsScalarWhereWithAggregatesInput = {
AND?: ChatFlowsScalarWhereWithAggregatesInput | ChatFlowsScalarWhereWithAggregatesInput[]
OR?: ChatFlowsScalarWhereWithAggregatesInput[]
NOT?: ChatFlowsScalarWhereWithAggregatesInput | ChatFlowsScalarWhereWithAggregatesInput[]
id?: StringWithAggregatesFilter<"ChatFlows"> | string
flows?: JsonNullableWithAggregatesFilter<"ChatFlows">
defaultFlow?: StringNullableWithAggregatesFilter<"ChatFlows"> | string | null
defaultData?: JsonNullableWithAggregatesFilter<"ChatFlows">
active?: BoolWithAggregatesFilter<"ChatFlows"> | boolean
flowUrl?: StringNullableWithAggregatesFilter<"ChatFlows"> | string | null
flowToken?: StringNullableWithAggregatesFilter<"ChatFlows"> | string | null
waPhoneNumberId?: StringNullableWithAggregatesFilter<"ChatFlows"> | string | null
waToken?: StringNullableWithAggregatesFilter<"ChatFlows"> | string | null
createdAt?: DateTimeWithAggregatesFilter<"ChatFlows"> | Date | string
updatedAt?: DateTimeWithAggregatesFilter<"ChatFlows"> | Date | string
}
export type UserCreateInput = {
id?: string
name?: string | null
email?: string | null
password?: string | null
createdAt?: Date | string
updatedAt?: Date | string
ApiKey?: ApiKeyCreateNestedManyWithoutUserInput
}
export type UserUncheckedCreateInput = {
id?: string
name?: string | null
email?: string | null
password?: string | null
createdAt?: Date | string
updatedAt?: Date | string
ApiKey?: ApiKeyUncheckedCreateNestedManyWithoutUserInput
}
export type UserUpdateInput = {
id?: StringFieldUpdateOperationsInput | string
name?: NullableStringFieldUpdateOperationsInput | string | null
email?: NullableStringFieldUpdateOperationsInput | string | null
password?: NullableStringFieldUpdateOperationsInput | string | null
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
ApiKey?: ApiKeyUpdateManyWithoutUserNestedInput
}
export type UserUncheckedUpdateInput = {
id?: StringFieldUpdateOperationsInput | string
name?: NullableStringFieldUpdateOperationsInput | string | null
email?: NullableStringFieldUpdateOperationsInput | string | null
password?: NullableStringFieldUpdateOperationsInput | string | null
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
ApiKey?: ApiKeyUncheckedUpdateManyWithoutUserNestedInput
}
export type UserCreateManyInput = {
id?: string
name?: string | null
email?: string | null
password?: string | null
createdAt?: Date | string
updatedAt?: Date | string
}
export type UserUpdateManyMutationInput = {
id?: StringFieldUpdateOperationsInput | string
name?: NullableStringFieldUpdateOperationsInput | string | null
email?: NullableStringFieldUpdateOperationsInput | string | null
password?: NullableStringFieldUpdateOperationsInput | string | null
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
}
export type UserUncheckedUpdateManyInput = {
id?: StringFieldUpdateOperationsInput | string
name?: NullableStringFieldUpdateOperationsInput | string | null
email?: NullableStringFieldUpdateOperationsInput | string | null
password?: NullableStringFieldUpdateOperationsInput | string | null
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
}
export type ApiKeyCreateInput = {
id?: string
name: string
key: string
description?: string | null
expiredAt?: Date | string | null
createdAt?: Date | string
updatedAt?: Date | string
User?: UserCreateNestedOneWithoutApiKeyInput
}
export type ApiKeyUncheckedCreateInput = {
id?: string
userId: string
name: string
key: string
description?: string | null
expiredAt?: Date | string | null
createdAt?: Date | string
updatedAt?: Date | string
}
export type ApiKeyUpdateInput = {
id?: StringFieldUpdateOperationsInput | string
name?: StringFieldUpdateOperationsInput | string
key?: StringFieldUpdateOperationsInput | string
description?: NullableStringFieldUpdateOperationsInput | string | null
expiredAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
User?: UserUpdateOneWithoutApiKeyNestedInput
}
export type ApiKeyUncheckedUpdateInput = {
id?: StringFieldUpdateOperationsInput | string
userId?: StringFieldUpdateOperationsInput | string
name?: StringFieldUpdateOperationsInput | string
key?: StringFieldUpdateOperationsInput | string
description?: NullableStringFieldUpdateOperationsInput | string | null
expiredAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
}
export type ApiKeyCreateManyInput = {
id?: string
userId: string
name: string
key: string
description?: string | null
expiredAt?: Date | string | null
createdAt?: Date | string
updatedAt?: Date | string
}
export type ApiKeyUpdateManyMutationInput = {
id?: StringFieldUpdateOperationsInput | string
name?: StringFieldUpdateOperationsInput | string
key?: StringFieldUpdateOperationsInput | string
description?: NullableStringFieldUpdateOperationsInput | string | null
expiredAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
}
export type ApiKeyUncheckedUpdateManyInput = {
id?: StringFieldUpdateOperationsInput | string
userId?: StringFieldUpdateOperationsInput | string
name?: StringFieldUpdateOperationsInput | string
key?: StringFieldUpdateOperationsInput | string
description?: NullableStringFieldUpdateOperationsInput | string | null
expiredAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
}
export type WebHookCreateInput = {
id?: string
name?: string | null
description?: string | null
url: string
payload?: string | null
method?: string
headers?: string | null
apiToken?: string | null
retries?: number | null
enabled?: boolean
replay?: boolean
replayKey?: string | null
createdAt?: Date | string
updatedAt?: Date | string
}
export type WebHookUncheckedCreateInput = {
id?: string
name?: string | null
description?: string | null
url: string
payload?: string | null
method?: string
headers?: string | null
apiToken?: string | null
retries?: number | null
enabled?: boolean
replay?: boolean
replayKey?: string | null
createdAt?: Date | string
updatedAt?: Date | string
}
export type WebHookUpdateInput = {
id?: StringFieldUpdateOperationsInput | string
name?: NullableStringFieldUpdateOperationsInput | string | null
description?: NullableStringFieldUpdateOperationsInput | string | null
url?: StringFieldUpdateOperationsInput | string
payload?: NullableStringFieldUpdateOperationsInput | string | null
method?: StringFieldUpdateOperationsInput | string
headers?: NullableStringFieldUpdateOperationsInput | string | null
apiToken?: NullableStringFieldUpdateOperationsInput | string | null
retries?: NullableIntFieldUpdateOperationsInput | number | null
enabled?: BoolFieldUpdateOperationsInput | boolean
replay?: BoolFieldUpdateOperationsInput | boolean
replayKey?: NullableStringFieldUpdateOperationsInput | string | null
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
}
export type WebHookUncheckedUpdateInput = {
id?: StringFieldUpdateOperationsInput | string
name?: NullableStringFieldUpdateOperationsInput | string | null
description?: NullableStringFieldUpdateOperationsInput | string | null
url?: StringFieldUpdateOperationsInput | string
payload?: NullableStringFieldUpdateOperationsInput | string | null
method?: StringFieldUpdateOperationsInput | string
headers?: NullableStringFieldUpdateOperationsInput | string | null
apiToken?: NullableStringFieldUpdateOperationsInput | string | null
retries?: NullableIntFieldUpdateOperationsInput | number | null
enabled?: BoolFieldUpdateOperationsInput | boolean
replay?: BoolFieldUpdateOperationsInput | boolean
replayKey?: NullableStringFieldUpdateOperationsInput | string | null
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
}
export type WebHookCreateManyInput = {
id?: string
name?: string | null
description?: string | null
url: string
payload?: string | null
method?: string
headers?: string | null
apiToken?: string | null
retries?: number | null
enabled?: boolean
replay?: boolean
replayKey?: string | null
createdAt?: Date | string
updatedAt?: Date | string
}
export type WebHookUpdateManyMutationInput = {
id?: StringFieldUpdateOperationsInput | string
name?: NullableStringFieldUpdateOperationsInput | string | null
description?: NullableStringFieldUpdateOperationsInput | string | null
url?: StringFieldUpdateOperationsInput | string
payload?: NullableStringFieldUpdateOperationsInput | string | null
method?: StringFieldUpdateOperationsInput | string
headers?: NullableStringFieldUpdateOperationsInput | string | null
apiToken?: NullableStringFieldUpdateOperationsInput | string | null
retries?: NullableIntFieldUpdateOperationsInput | number | null
enabled?: BoolFieldUpdateOperationsInput | boolean
replay?: BoolFieldUpdateOperationsInput | boolean
replayKey?: NullableStringFieldUpdateOperationsInput | string | null
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
}
export type WebHookUncheckedUpdateManyInput = {
id?: StringFieldUpdateOperationsInput | string
name?: NullableStringFieldUpdateOperationsInput | string | null
description?: NullableStringFieldUpdateOperationsInput | string | null
url?: StringFieldUpdateOperationsInput | string
payload?: NullableStringFieldUpdateOperationsInput | string | null
method?: StringFieldUpdateOperationsInput | string
headers?: NullableStringFieldUpdateOperationsInput | string | null
apiToken?: NullableStringFieldUpdateOperationsInput | string | null
retries?: NullableIntFieldUpdateOperationsInput | number | null
enabled?: BoolFieldUpdateOperationsInput | boolean
replay?: BoolFieldUpdateOperationsInput | boolean
replayKey?: NullableStringFieldUpdateOperationsInput | string | null
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
}
export type WaHookCreateInput = {
id?: string
data?: NullableJsonNullValueInput | InputJsonValue
createdAt?: Date | string
updatedAt?: Date | string
}
export type WaHookUncheckedCreateInput = {
id?: string
data?: NullableJsonNullValueInput | InputJsonValue
createdAt?: Date | string
updatedAt?: Date | string
}
export type WaHookUpdateInput = {
id?: StringFieldUpdateOperationsInput | string
data?: NullableJsonNullValueInput | InputJsonValue
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
}
export type WaHookUncheckedUpdateInput = {
id?: StringFieldUpdateOperationsInput | string
data?: NullableJsonNullValueInput | InputJsonValue
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
}
export type WaHookCreateManyInput = {
id?: string
data?: NullableJsonNullValueInput | InputJsonValue
createdAt?: Date | string
updatedAt?: Date | string
}
export type WaHookUpdateManyMutationInput = {
id?: StringFieldUpdateOperationsInput | string
data?: NullableJsonNullValueInput | InputJsonValue
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
}
export type WaHookUncheckedUpdateManyInput = {
id?: StringFieldUpdateOperationsInput | string
data?: NullableJsonNullValueInput | InputJsonValue
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
}
export type ChatFlowsCreateInput = {
id?: string
flows?: NullableJsonNullValueInput | InputJsonValue
defaultFlow?: string | null
defaultData?: NullableJsonNullValueInput | InputJsonValue
active?: boolean
flowUrl?: string | null
flowToken?: string | null
waPhoneNumberId?: string | null
waToken?: string | null
createdAt?: Date | string
updatedAt?: Date | string
}
export type ChatFlowsUncheckedCreateInput = {
id?: string
flows?: NullableJsonNullValueInput | InputJsonValue
defaultFlow?: string | null
defaultData?: NullableJsonNullValueInput | InputJsonValue
active?: boolean
flowUrl?: string | null
flowToken?: string | null
waPhoneNumberId?: string | null
waToken?: string | null
createdAt?: Date | string
updatedAt?: Date | string
}
export type ChatFlowsUpdateInput = {
id?: StringFieldUpdateOperationsInput | string
flows?: NullableJsonNullValueInput | InputJsonValue
defaultFlow?: NullableStringFieldUpdateOperationsInput | string | null
defaultData?: NullableJsonNullValueInput | InputJsonValue
active?: BoolFieldUpdateOperationsInput | boolean
flowUrl?: NullableStringFieldUpdateOperationsInput | string | null
flowToken?: NullableStringFieldUpdateOperationsInput | string | null
waPhoneNumberId?: NullableStringFieldUpdateOperationsInput | string | null
waToken?: NullableStringFieldUpdateOperationsInput | string | null
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
}
export type ChatFlowsUncheckedUpdateInput = {
id?: StringFieldUpdateOperationsInput | string
flows?: NullableJsonNullValueInput | InputJsonValue
defaultFlow?: NullableStringFieldUpdateOperationsInput | string | null
defaultData?: NullableJsonNullValueInput | InputJsonValue
active?: BoolFieldUpdateOperationsInput | boolean
flowUrl?: NullableStringFieldUpdateOperationsInput | string | null
flowToken?: NullableStringFieldUpdateOperationsInput | string | null
waPhoneNumberId?: NullableStringFieldUpdateOperationsInput | string | null
waToken?: NullableStringFieldUpdateOperationsInput | string | null
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
}
export type ChatFlowsCreateManyInput = {
id?: string
flows?: NullableJsonNullValueInput | InputJsonValue
defaultFlow?: string | null
defaultData?: NullableJsonNullValueInput | InputJsonValue
active?: boolean
flowUrl?: string | null
flowToken?: string | null
waPhoneNumberId?: string | null
waToken?: string | null
createdAt?: Date | string
updatedAt?: Date | string
}
export type ChatFlowsUpdateManyMutationInput = {
id?: StringFieldUpdateOperationsInput | string
flows?: NullableJsonNullValueInput | InputJsonValue
defaultFlow?: NullableStringFieldUpdateOperationsInput | string | null
defaultData?: NullableJsonNullValueInput | InputJsonValue
active?: BoolFieldUpdateOperationsInput | boolean
flowUrl?: NullableStringFieldUpdateOperationsInput | string | null
flowToken?: NullableStringFieldUpdateOperationsInput | string | null
waPhoneNumberId?: NullableStringFieldUpdateOperationsInput | string | null
waToken?: NullableStringFieldUpdateOperationsInput | string | null
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
}
export type ChatFlowsUncheckedUpdateManyInput = {
id?: StringFieldUpdateOperationsInput | string
flows?: NullableJsonNullValueInput | InputJsonValue
defaultFlow?: NullableStringFieldUpdateOperationsInput | string | null
defaultData?: NullableJsonNullValueInput | InputJsonValue
active?: BoolFieldUpdateOperationsInput | boolean
flowUrl?: NullableStringFieldUpdateOperationsInput | string | null
flowToken?: NullableStringFieldUpdateOperationsInput | string | null
waPhoneNumberId?: NullableStringFieldUpdateOperationsInput | string | null
waToken?: NullableStringFieldUpdateOperationsInput | string | null
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
}
export type StringFilter<$PrismaModel = never> = {
equals?: string | StringFieldRefInput<$PrismaModel>
in?: string[] | ListStringFieldRefInput<$PrismaModel>
notIn?: string[] | ListStringFieldRefInput<$PrismaModel>
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>
mode?: QueryMode
not?: NestedStringFilter<$PrismaModel> | string
}
export type StringNullableFilter<$PrismaModel = never> = {
equals?: string | StringFieldRefInput<$PrismaModel> | null
in?: string[] | ListStringFieldRefInput<$PrismaModel> | null
notIn?: string[] | ListStringFieldRefInput<$PrismaModel> | 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>
mode?: QueryMode
not?: NestedStringNullableFilter<$PrismaModel> | string | null
}
export type DateTimeFilter<$PrismaModel = never> = {
equals?: Date | string | DateTimeFieldRefInput<$PrismaModel>
in?: Date[] | string[] | ListDateTimeFieldRefInput<$PrismaModel>
notIn?: Date[] | string[] | ListDateTimeFieldRefInput<$PrismaModel>
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 ApiKeyListRelationFilter = {
every?: ApiKeyWhereInput
some?: ApiKeyWhereInput
none?: ApiKeyWhereInput
}
export type SortOrderInput = {
sort: SortOrder
nulls?: NullsOrder
}
export type ApiKeyOrderByRelationAggregateInput = {
_count?: SortOrder
}
export type UserCountOrderByAggregateInput = {
id?: SortOrder
name?: SortOrder
email?: SortOrder
password?: SortOrder
createdAt?: SortOrder
updatedAt?: SortOrder
}
export type UserMaxOrderByAggregateInput = {
id?: SortOrder
name?: SortOrder
email?: SortOrder
password?: SortOrder
createdAt?: SortOrder
updatedAt?: SortOrder
}
export type UserMinOrderByAggregateInput = {
id?: SortOrder
name?: SortOrder
email?: SortOrder
password?: SortOrder
createdAt?: SortOrder
updatedAt?: SortOrder
}
export type StringWithAggregatesFilter<$PrismaModel = never> = {
equals?: string | StringFieldRefInput<$PrismaModel>
in?: string[] | ListStringFieldRefInput<$PrismaModel>
notIn?: string[] | ListStringFieldRefInput<$PrismaModel>
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>
mode?: QueryMode
not?: NestedStringWithAggregatesFilter<$PrismaModel> | string
_count?: NestedIntFilter<$PrismaModel>
_min?: NestedStringFilter<$PrismaModel>
_max?: NestedStringFilter<$PrismaModel>
}
export type StringNullableWithAggregatesFilter<$PrismaModel = never> = {
equals?: string | StringFieldRefInput<$PrismaModel> | null
in?: string[] | ListStringFieldRefInput<$PrismaModel> | null
notIn?: string[] | ListStringFieldRefInput<$PrismaModel> | 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>
mode?: QueryMode
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[] | ListDateTimeFieldRefInput<$PrismaModel>
notIn?: Date[] | string[] | ListDateTimeFieldRefInput<$PrismaModel>
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 DateTimeNullableFilter<$PrismaModel = never> = {
equals?: Date | string | DateTimeFieldRefInput<$PrismaModel> | null
in?: Date[] | string[] | ListDateTimeFieldRefInput<$PrismaModel> | null
notIn?: Date[] | string[] | ListDateTimeFieldRefInput<$PrismaModel> | 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 UserNullableScalarRelationFilter = {
is?: UserWhereInput | null
isNot?: UserWhereInput | null
}
export type ApiKeyCountOrderByAggregateInput = {
id?: SortOrder
userId?: SortOrder
name?: SortOrder
key?: SortOrder
description?: SortOrder
expiredAt?: SortOrder
createdAt?: SortOrder
updatedAt?: SortOrder
}
export type ApiKeyMaxOrderByAggregateInput = {
id?: SortOrder
userId?: SortOrder
name?: SortOrder
key?: SortOrder
description?: SortOrder
expiredAt?: SortOrder
createdAt?: SortOrder
updatedAt?: SortOrder
}
export type ApiKeyMinOrderByAggregateInput = {
id?: SortOrder
userId?: SortOrder
name?: SortOrder
key?: SortOrder
description?: SortOrder
expiredAt?: SortOrder
createdAt?: SortOrder
updatedAt?: SortOrder
}
export type DateTimeNullableWithAggregatesFilter<$PrismaModel = never> = {
equals?: Date | string | DateTimeFieldRefInput<$PrismaModel> | null
in?: Date[] | string[] | ListDateTimeFieldRefInput<$PrismaModel> | null
notIn?: Date[] | string[] | ListDateTimeFieldRefInput<$PrismaModel> | 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 IntNullableFilter<$PrismaModel = never> = {
equals?: number | IntFieldRefInput<$PrismaModel> | null
in?: number[] | ListIntFieldRefInput<$PrismaModel> | null
notIn?: number[] | ListIntFieldRefInput<$PrismaModel> | null
lt?: number | IntFieldRefInput<$PrismaModel>
lte?: number | IntFieldRefInput<$PrismaModel>
gt?: number | IntFieldRefInput<$PrismaModel>
gte?: number | IntFieldRefInput<$PrismaModel>
not?: NestedIntNullableFilter<$PrismaModel> | number | null
}
export type BoolFilter<$PrismaModel = never> = {
equals?: boolean | BooleanFieldRefInput<$PrismaModel>
not?: NestedBoolFilter<$PrismaModel> | boolean
}
export type WebHookCountOrderByAggregateInput = {
id?: SortOrder
name?: SortOrder
description?: SortOrder
url?: SortOrder
payload?: SortOrder
method?: SortOrder
headers?: SortOrder
apiToken?: SortOrder
retries?: SortOrder
enabled?: SortOrder
replay?: SortOrder
replayKey?: SortOrder
createdAt?: SortOrder
updatedAt?: SortOrder
}
export type WebHookAvgOrderByAggregateInput = {
retries?: SortOrder
}
export type WebHookMaxOrderByAggregateInput = {
id?: SortOrder
name?: SortOrder
description?: SortOrder
url?: SortOrder
payload?: SortOrder
method?: SortOrder
headers?: SortOrder
apiToken?: SortOrder
retries?: SortOrder
enabled?: SortOrder
replay?: SortOrder
replayKey?: SortOrder
createdAt?: SortOrder
updatedAt?: SortOrder
}
export type WebHookMinOrderByAggregateInput = {
id?: SortOrder
name?: SortOrder
description?: SortOrder
url?: SortOrder
payload?: SortOrder
method?: SortOrder
headers?: SortOrder
apiToken?: SortOrder
retries?: SortOrder
enabled?: SortOrder
replay?: SortOrder
replayKey?: SortOrder
createdAt?: SortOrder
updatedAt?: SortOrder
}
export type WebHookSumOrderByAggregateInput = {
retries?: SortOrder
}
export type IntNullableWithAggregatesFilter<$PrismaModel = never> = {
equals?: number | IntFieldRefInput<$PrismaModel> | null
in?: number[] | ListIntFieldRefInput<$PrismaModel> | null
notIn?: number[] | ListIntFieldRefInput<$PrismaModel> | null
lt?: number | IntFieldRefInput<$PrismaModel>
lte?: number | IntFieldRefInput<$PrismaModel>
gt?: number | IntFieldRefInput<$PrismaModel>
gte?: number | IntFieldRefInput<$PrismaModel>
not?: NestedIntNullableWithAggregatesFilter<$PrismaModel> | number | null
_count?: NestedIntNullableFilter<$PrismaModel>
_avg?: NestedFloatNullableFilter<$PrismaModel>
_sum?: NestedIntNullableFilter<$PrismaModel>
_min?: NestedIntNullableFilter<$PrismaModel>
_max?: NestedIntNullableFilter<$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 JsonNullableFilter<$PrismaModel = never> =
| PatchUndefined<
Either<Required<JsonNullableFilterBase<$PrismaModel>>, Exclude<keyof Required<JsonNullableFilterBase<$PrismaModel>>, 'path'>>,
Required<JsonNullableFilterBase<$PrismaModel>>
>
| OptionalFlat<Omit<Required<JsonNullableFilterBase<$PrismaModel>>, 'path'>>
export type JsonNullableFilterBase<$PrismaModel = never> = {
equals?: InputJsonValue | JsonFieldRefInput<$PrismaModel> | JsonNullValueFilter
path?: string[]
mode?: QueryMode | EnumQueryModeFieldRefInput<$PrismaModel>
string_contains?: string | StringFieldRefInput<$PrismaModel>
string_starts_with?: string | StringFieldRefInput<$PrismaModel>
string_ends_with?: string | StringFieldRefInput<$PrismaModel>
array_starts_with?: InputJsonValue | JsonFieldRefInput<$PrismaModel> | null
array_ends_with?: InputJsonValue | JsonFieldRefInput<$PrismaModel> | null
array_contains?: InputJsonValue | JsonFieldRefInput<$PrismaModel> | null
lt?: InputJsonValue | JsonFieldRefInput<$PrismaModel>
lte?: InputJsonValue | JsonFieldRefInput<$PrismaModel>
gt?: InputJsonValue | JsonFieldRefInput<$PrismaModel>
gte?: InputJsonValue | JsonFieldRefInput<$PrismaModel>
not?: InputJsonValue | JsonFieldRefInput<$PrismaModel> | JsonNullValueFilter
}
export type WaHookCountOrderByAggregateInput = {
id?: SortOrder
data?: SortOrder
createdAt?: SortOrder
updatedAt?: SortOrder
}
export type WaHookMaxOrderByAggregateInput = {
id?: SortOrder
createdAt?: SortOrder
updatedAt?: SortOrder
}
export type WaHookMinOrderByAggregateInput = {
id?: SortOrder
createdAt?: SortOrder
updatedAt?: SortOrder
}
export type JsonNullableWithAggregatesFilter<$PrismaModel = never> =
| PatchUndefined<
Either<Required<JsonNullableWithAggregatesFilterBase<$PrismaModel>>, Exclude<keyof Required<JsonNullableWithAggregatesFilterBase<$PrismaModel>>, 'path'>>,
Required<JsonNullableWithAggregatesFilterBase<$PrismaModel>>
>
| OptionalFlat<Omit<Required<JsonNullableWithAggregatesFilterBase<$PrismaModel>>, 'path'>>
export type JsonNullableWithAggregatesFilterBase<$PrismaModel = never> = {
equals?: InputJsonValue | JsonFieldRefInput<$PrismaModel> | JsonNullValueFilter
path?: string[]
mode?: QueryMode | EnumQueryModeFieldRefInput<$PrismaModel>
string_contains?: string | StringFieldRefInput<$PrismaModel>
string_starts_with?: string | StringFieldRefInput<$PrismaModel>
string_ends_with?: string | StringFieldRefInput<$PrismaModel>
array_starts_with?: InputJsonValue | JsonFieldRefInput<$PrismaModel> | null
array_ends_with?: InputJsonValue | JsonFieldRefInput<$PrismaModel> | null
array_contains?: InputJsonValue | JsonFieldRefInput<$PrismaModel> | null
lt?: InputJsonValue | JsonFieldRefInput<$PrismaModel>
lte?: InputJsonValue | JsonFieldRefInput<$PrismaModel>
gt?: InputJsonValue | JsonFieldRefInput<$PrismaModel>
gte?: InputJsonValue | JsonFieldRefInput<$PrismaModel>
not?: InputJsonValue | JsonFieldRefInput<$PrismaModel> | JsonNullValueFilter
_count?: NestedIntNullableFilter<$PrismaModel>
_min?: NestedJsonNullableFilter<$PrismaModel>
_max?: NestedJsonNullableFilter<$PrismaModel>
}
export type ChatFlowsCountOrderByAggregateInput = {
id?: SortOrder
flows?: SortOrder
defaultFlow?: SortOrder
defaultData?: SortOrder
active?: SortOrder
flowUrl?: SortOrder
flowToken?: SortOrder
waPhoneNumberId?: SortOrder
waToken?: SortOrder
createdAt?: SortOrder
updatedAt?: SortOrder
}
export type ChatFlowsMaxOrderByAggregateInput = {
id?: SortOrder
defaultFlow?: SortOrder
active?: SortOrder
flowUrl?: SortOrder
flowToken?: SortOrder
waPhoneNumberId?: SortOrder
waToken?: SortOrder
createdAt?: SortOrder
updatedAt?: SortOrder
}
export type ChatFlowsMinOrderByAggregateInput = {
id?: SortOrder
defaultFlow?: SortOrder
active?: SortOrder
flowUrl?: SortOrder
flowToken?: SortOrder
waPhoneNumberId?: SortOrder
waToken?: SortOrder
createdAt?: SortOrder
updatedAt?: SortOrder
}
export type ApiKeyCreateNestedManyWithoutUserInput = {
create?: XOR<ApiKeyCreateWithoutUserInput, ApiKeyUncheckedCreateWithoutUserInput> | ApiKeyCreateWithoutUserInput[] | ApiKeyUncheckedCreateWithoutUserInput[]
connectOrCreate?: ApiKeyCreateOrConnectWithoutUserInput | ApiKeyCreateOrConnectWithoutUserInput[]
createMany?: ApiKeyCreateManyUserInputEnvelope
connect?: ApiKeyWhereUniqueInput | ApiKeyWhereUniqueInput[]
}
export type ApiKeyUncheckedCreateNestedManyWithoutUserInput = {
create?: XOR<ApiKeyCreateWithoutUserInput, ApiKeyUncheckedCreateWithoutUserInput> | ApiKeyCreateWithoutUserInput[] | ApiKeyUncheckedCreateWithoutUserInput[]
connectOrCreate?: ApiKeyCreateOrConnectWithoutUserInput | ApiKeyCreateOrConnectWithoutUserInput[]
createMany?: ApiKeyCreateManyUserInputEnvelope
connect?: ApiKeyWhereUniqueInput | ApiKeyWhereUniqueInput[]
}
export type StringFieldUpdateOperationsInput = {
set?: string
}
export type NullableStringFieldUpdateOperationsInput = {
set?: string | null
}
export type DateTimeFieldUpdateOperationsInput = {
set?: Date | string
}
export type ApiKeyUpdateManyWithoutUserNestedInput = {
create?: XOR<ApiKeyCreateWithoutUserInput, ApiKeyUncheckedCreateWithoutUserInput> | ApiKeyCreateWithoutUserInput[] | ApiKeyUncheckedCreateWithoutUserInput[]
connectOrCreate?: ApiKeyCreateOrConnectWithoutUserInput | ApiKeyCreateOrConnectWithoutUserInput[]
upsert?: ApiKeyUpsertWithWhereUniqueWithoutUserInput | ApiKeyUpsertWithWhereUniqueWithoutUserInput[]
createMany?: ApiKeyCreateManyUserInputEnvelope
set?: ApiKeyWhereUniqueInput | ApiKeyWhereUniqueInput[]
disconnect?: ApiKeyWhereUniqueInput | ApiKeyWhereUniqueInput[]
delete?: ApiKeyWhereUniqueInput | ApiKeyWhereUniqueInput[]
connect?: ApiKeyWhereUniqueInput | ApiKeyWhereUniqueInput[]
update?: ApiKeyUpdateWithWhereUniqueWithoutUserInput | ApiKeyUpdateWithWhereUniqueWithoutUserInput[]
updateMany?: ApiKeyUpdateManyWithWhereWithoutUserInput | ApiKeyUpdateManyWithWhereWithoutUserInput[]
deleteMany?: ApiKeyScalarWhereInput | ApiKeyScalarWhereInput[]
}
export type ApiKeyUncheckedUpdateManyWithoutUserNestedInput = {
create?: XOR<ApiKeyCreateWithoutUserInput, ApiKeyUncheckedCreateWithoutUserInput> | ApiKeyCreateWithoutUserInput[] | ApiKeyUncheckedCreateWithoutUserInput[]
connectOrCreate?: ApiKeyCreateOrConnectWithoutUserInput | ApiKeyCreateOrConnectWithoutUserInput[]
upsert?: ApiKeyUpsertWithWhereUniqueWithoutUserInput | ApiKeyUpsertWithWhereUniqueWithoutUserInput[]
createMany?: ApiKeyCreateManyUserInputEnvelope
set?: ApiKeyWhereUniqueInput | ApiKeyWhereUniqueInput[]
disconnect?: ApiKeyWhereUniqueInput | ApiKeyWhereUniqueInput[]
delete?: ApiKeyWhereUniqueInput | ApiKeyWhereUniqueInput[]
connect?: ApiKeyWhereUniqueInput | ApiKeyWhereUniqueInput[]
update?: ApiKeyUpdateWithWhereUniqueWithoutUserInput | ApiKeyUpdateWithWhereUniqueWithoutUserInput[]
updateMany?: ApiKeyUpdateManyWithWhereWithoutUserInput | ApiKeyUpdateManyWithWhereWithoutUserInput[]
deleteMany?: ApiKeyScalarWhereInput | ApiKeyScalarWhereInput[]
}
export type UserCreateNestedOneWithoutApiKeyInput = {
create?: XOR<UserCreateWithoutApiKeyInput, UserUncheckedCreateWithoutApiKeyInput>
connectOrCreate?: UserCreateOrConnectWithoutApiKeyInput
connect?: UserWhereUniqueInput
}
export type NullableDateTimeFieldUpdateOperationsInput = {
set?: Date | string | null
}
export type UserUpdateOneWithoutApiKeyNestedInput = {
create?: XOR<UserCreateWithoutApiKeyInput, UserUncheckedCreateWithoutApiKeyInput>
connectOrCreate?: UserCreateOrConnectWithoutApiKeyInput
upsert?: UserUpsertWithoutApiKeyInput
disconnect?: UserWhereInput | boolean
delete?: UserWhereInput | boolean
connect?: UserWhereUniqueInput
update?: XOR<XOR<UserUpdateToOneWithWhereWithoutApiKeyInput, UserUpdateWithoutApiKeyInput>, UserUncheckedUpdateWithoutApiKeyInput>
}
export type NullableIntFieldUpdateOperationsInput = {
set?: number | null
increment?: number
decrement?: number
multiply?: number
divide?: number
}
export type BoolFieldUpdateOperationsInput = {
set?: boolean
}
export type NestedStringFilter<$PrismaModel = never> = {
equals?: string | StringFieldRefInput<$PrismaModel>
in?: string[] | ListStringFieldRefInput<$PrismaModel>
notIn?: string[] | ListStringFieldRefInput<$PrismaModel>
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 NestedStringNullableFilter<$PrismaModel = never> = {
equals?: string | StringFieldRefInput<$PrismaModel> | null
in?: string[] | ListStringFieldRefInput<$PrismaModel> | null
notIn?: string[] | ListStringFieldRefInput<$PrismaModel> | 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[] | ListDateTimeFieldRefInput<$PrismaModel>
notIn?: Date[] | string[] | ListDateTimeFieldRefInput<$PrismaModel>
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 NestedStringWithAggregatesFilter<$PrismaModel = never> = {
equals?: string | StringFieldRefInput<$PrismaModel>
in?: string[] | ListStringFieldRefInput<$PrismaModel>
notIn?: string[] | ListStringFieldRefInput<$PrismaModel>
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 NestedIntFilter<$PrismaModel = never> = {
equals?: number | IntFieldRefInput<$PrismaModel>
in?: number[] | ListIntFieldRefInput<$PrismaModel>
notIn?: number[] | ListIntFieldRefInput<$PrismaModel>
lt?: number | IntFieldRefInput<$PrismaModel>
lte?: number | IntFieldRefInput<$PrismaModel>
gt?: number | IntFieldRefInput<$PrismaModel>
gte?: number | IntFieldRefInput<$PrismaModel>
not?: NestedIntFilter<$PrismaModel> | number
}
export type NestedStringNullableWithAggregatesFilter<$PrismaModel = never> = {
equals?: string | StringFieldRefInput<$PrismaModel> | null
in?: string[] | ListStringFieldRefInput<$PrismaModel> | null
notIn?: string[] | ListStringFieldRefInput<$PrismaModel> | 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[] | ListIntFieldRefInput<$PrismaModel> | null
notIn?: number[] | ListIntFieldRefInput<$PrismaModel> | 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[] | ListDateTimeFieldRefInput<$PrismaModel>
notIn?: Date[] | string[] | ListDateTimeFieldRefInput<$PrismaModel>
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 NestedDateTimeNullableFilter<$PrismaModel = never> = {
equals?: Date | string | DateTimeFieldRefInput<$PrismaModel> | null
in?: Date[] | string[] | ListDateTimeFieldRefInput<$PrismaModel> | null
notIn?: Date[] | string[] | ListDateTimeFieldRefInput<$PrismaModel> | 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 NestedDateTimeNullableWithAggregatesFilter<$PrismaModel = never> = {
equals?: Date | string | DateTimeFieldRefInput<$PrismaModel> | null
in?: Date[] | string[] | ListDateTimeFieldRefInput<$PrismaModel> | null
notIn?: Date[] | string[] | ListDateTimeFieldRefInput<$PrismaModel> | 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 NestedBoolFilter<$PrismaModel = never> = {
equals?: boolean | BooleanFieldRefInput<$PrismaModel>
not?: NestedBoolFilter<$PrismaModel> | boolean
}
export type NestedIntNullableWithAggregatesFilter<$PrismaModel = never> = {
equals?: number | IntFieldRefInput<$PrismaModel> | null
in?: number[] | ListIntFieldRefInput<$PrismaModel> | null
notIn?: number[] | ListIntFieldRefInput<$PrismaModel> | null
lt?: number | IntFieldRefInput<$PrismaModel>
lte?: number | IntFieldRefInput<$PrismaModel>
gt?: number | IntFieldRefInput<$PrismaModel>
gte?: number | IntFieldRefInput<$PrismaModel>
not?: NestedIntNullableWithAggregatesFilter<$PrismaModel> | number | null
_count?: NestedIntNullableFilter<$PrismaModel>
_avg?: NestedFloatNullableFilter<$PrismaModel>
_sum?: NestedIntNullableFilter<$PrismaModel>
_min?: NestedIntNullableFilter<$PrismaModel>
_max?: NestedIntNullableFilter<$PrismaModel>
}
export type NestedFloatNullableFilter<$PrismaModel = never> = {
equals?: number | FloatFieldRefInput<$PrismaModel> | null
in?: number[] | ListFloatFieldRefInput<$PrismaModel> | null
notIn?: number[] | ListFloatFieldRefInput<$PrismaModel> | null
lt?: number | FloatFieldRefInput<$PrismaModel>
lte?: number | FloatFieldRefInput<$PrismaModel>
gt?: number | FloatFieldRefInput<$PrismaModel>
gte?: number | FloatFieldRefInput<$PrismaModel>
not?: NestedFloatNullableFilter<$PrismaModel> | number | null
}
export type NestedBoolWithAggregatesFilter<$PrismaModel = never> = {
equals?: boolean | BooleanFieldRefInput<$PrismaModel>
not?: NestedBoolWithAggregatesFilter<$PrismaModel> | boolean
_count?: NestedIntFilter<$PrismaModel>
_min?: NestedBoolFilter<$PrismaModel>
_max?: NestedBoolFilter<$PrismaModel>
}
export type NestedJsonNullableFilter<$PrismaModel = never> =
| PatchUndefined<
Either<Required<NestedJsonNullableFilterBase<$PrismaModel>>, Exclude<keyof Required<NestedJsonNullableFilterBase<$PrismaModel>>, 'path'>>,
Required<NestedJsonNullableFilterBase<$PrismaModel>>
>
| OptionalFlat<Omit<Required<NestedJsonNullableFilterBase<$PrismaModel>>, 'path'>>
export type NestedJsonNullableFilterBase<$PrismaModel = never> = {
equals?: InputJsonValue | JsonFieldRefInput<$PrismaModel> | JsonNullValueFilter
path?: string[]
mode?: QueryMode | EnumQueryModeFieldRefInput<$PrismaModel>
string_contains?: string | StringFieldRefInput<$PrismaModel>
string_starts_with?: string | StringFieldRefInput<$PrismaModel>
string_ends_with?: string | StringFieldRefInput<$PrismaModel>
array_starts_with?: InputJsonValue | JsonFieldRefInput<$PrismaModel> | null
array_ends_with?: InputJsonValue | JsonFieldRefInput<$PrismaModel> | null
array_contains?: InputJsonValue | JsonFieldRefInput<$PrismaModel> | null
lt?: InputJsonValue | JsonFieldRefInput<$PrismaModel>
lte?: InputJsonValue | JsonFieldRefInput<$PrismaModel>
gt?: InputJsonValue | JsonFieldRefInput<$PrismaModel>
gte?: InputJsonValue | JsonFieldRefInput<$PrismaModel>
not?: InputJsonValue | JsonFieldRefInput<$PrismaModel> | JsonNullValueFilter
}
export type ApiKeyCreateWithoutUserInput = {
id?: string
name: string
key: string
description?: string | null
expiredAt?: Date | string | null
createdAt?: Date | string
updatedAt?: Date | string
}
export type ApiKeyUncheckedCreateWithoutUserInput = {
id?: string
name: string
key: string
description?: string | null
expiredAt?: Date | string | null
createdAt?: Date | string
updatedAt?: Date | string
}
export type ApiKeyCreateOrConnectWithoutUserInput = {
where: ApiKeyWhereUniqueInput
create: XOR<ApiKeyCreateWithoutUserInput, ApiKeyUncheckedCreateWithoutUserInput>
}
export type ApiKeyCreateManyUserInputEnvelope = {
data: ApiKeyCreateManyUserInput | ApiKeyCreateManyUserInput[]
skipDuplicates?: boolean
}
export type ApiKeyUpsertWithWhereUniqueWithoutUserInput = {
where: ApiKeyWhereUniqueInput
update: XOR<ApiKeyUpdateWithoutUserInput, ApiKeyUncheckedUpdateWithoutUserInput>
create: XOR<ApiKeyCreateWithoutUserInput, ApiKeyUncheckedCreateWithoutUserInput>
}
export type ApiKeyUpdateWithWhereUniqueWithoutUserInput = {
where: ApiKeyWhereUniqueInput
data: XOR<ApiKeyUpdateWithoutUserInput, ApiKeyUncheckedUpdateWithoutUserInput>
}
export type ApiKeyUpdateManyWithWhereWithoutUserInput = {
where: ApiKeyScalarWhereInput
data: XOR<ApiKeyUpdateManyMutationInput, ApiKeyUncheckedUpdateManyWithoutUserInput>
}
export type ApiKeyScalarWhereInput = {
AND?: ApiKeyScalarWhereInput | ApiKeyScalarWhereInput[]
OR?: ApiKeyScalarWhereInput[]
NOT?: ApiKeyScalarWhereInput | ApiKeyScalarWhereInput[]
id?: StringFilter<"ApiKey"> | string
userId?: StringFilter<"ApiKey"> | string
name?: StringFilter<"ApiKey"> | string
key?: StringFilter<"ApiKey"> | string
description?: StringNullableFilter<"ApiKey"> | string | null
expiredAt?: DateTimeNullableFilter<"ApiKey"> | Date | string | null
createdAt?: DateTimeFilter<"ApiKey"> | Date | string
updatedAt?: DateTimeFilter<"ApiKey"> | Date | string
}
export type UserCreateWithoutApiKeyInput = {
id?: string
name?: string | null
email?: string | null
password?: string | null
createdAt?: Date | string
updatedAt?: Date | string
}
export type UserUncheckedCreateWithoutApiKeyInput = {
id?: string
name?: string | null
email?: string | null
password?: string | null
createdAt?: Date | string
updatedAt?: Date | string
}
export type UserCreateOrConnectWithoutApiKeyInput = {
where: UserWhereUniqueInput
create: XOR<UserCreateWithoutApiKeyInput, UserUncheckedCreateWithoutApiKeyInput>
}
export type UserUpsertWithoutApiKeyInput = {
update: XOR<UserUpdateWithoutApiKeyInput, UserUncheckedUpdateWithoutApiKeyInput>
create: XOR<UserCreateWithoutApiKeyInput, UserUncheckedCreateWithoutApiKeyInput>
where?: UserWhereInput
}
export type UserUpdateToOneWithWhereWithoutApiKeyInput = {
where?: UserWhereInput
data: XOR<UserUpdateWithoutApiKeyInput, UserUncheckedUpdateWithoutApiKeyInput>
}
export type UserUpdateWithoutApiKeyInput = {
id?: StringFieldUpdateOperationsInput | string
name?: NullableStringFieldUpdateOperationsInput | string | null
email?: NullableStringFieldUpdateOperationsInput | string | null
password?: NullableStringFieldUpdateOperationsInput | string | null
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
}
export type UserUncheckedUpdateWithoutApiKeyInput = {
id?: StringFieldUpdateOperationsInput | string
name?: NullableStringFieldUpdateOperationsInput | string | null
email?: NullableStringFieldUpdateOperationsInput | string | null
password?: NullableStringFieldUpdateOperationsInput | string | null
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
}
export type ApiKeyCreateManyUserInput = {
id?: string
name: string
key: string
description?: string | null
expiredAt?: Date | string | null
createdAt?: Date | string
updatedAt?: Date | string
}
export type ApiKeyUpdateWithoutUserInput = {
id?: StringFieldUpdateOperationsInput | string
name?: StringFieldUpdateOperationsInput | string
key?: StringFieldUpdateOperationsInput | string
description?: NullableStringFieldUpdateOperationsInput | string | null
expiredAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
}
export type ApiKeyUncheckedUpdateWithoutUserInput = {
id?: StringFieldUpdateOperationsInput | string
name?: StringFieldUpdateOperationsInput | string
key?: StringFieldUpdateOperationsInput | string
description?: NullableStringFieldUpdateOperationsInput | string | null
expiredAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
}
export type ApiKeyUncheckedUpdateManyWithoutUserInput = {
id?: StringFieldUpdateOperationsInput | string
name?: StringFieldUpdateOperationsInput | string
key?: StringFieldUpdateOperationsInput | string
description?: NullableStringFieldUpdateOperationsInput | string | null
expiredAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
}
/**
* Batch Payload for updateMany & deleteMany & createMany
*/
export type BatchPayload = {
count: number
}
/**
* DMMF
*/
export const dmmf: runtime.BaseDMMF
}