a71f801c3f
- Prisma schema: User, Session, RepoConfig, Preview, Job, WebhookToken, NoConfigComment, AdminSettings - Backend: auth (login/logout/me/first-user setup), webhook handler with HMAC verification, EC2 service, SSH service, deploy pipeline, job queue worker, cron workers - Frontend: Login with first-user detection, Dashboard, PreviewDetail with live log streaming, Settings, Repos config, Admin panel, SetupWizard, Privacy page - Docker Compose and Dockerfile for self-hosted deployment - Uses bcryptjs for Node 24 compatibility Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
15585 lines
554 KiB
TypeScript
15585 lines
554 KiB
TypeScript
|
|
/**
|
|
* Client
|
|
**/
|
|
|
|
import * as runtime from '@prisma/client/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 Session
|
|
*
|
|
*/
|
|
export type Session = $Result.DefaultSelection<Prisma.$SessionPayload>
|
|
/**
|
|
* Model RepoConfig
|
|
*
|
|
*/
|
|
export type RepoConfig = $Result.DefaultSelection<Prisma.$RepoConfigPayload>
|
|
/**
|
|
* Model Preview
|
|
*
|
|
*/
|
|
export type Preview = $Result.DefaultSelection<Prisma.$PreviewPayload>
|
|
/**
|
|
* Model Job
|
|
*
|
|
*/
|
|
export type Job = $Result.DefaultSelection<Prisma.$JobPayload>
|
|
/**
|
|
* Model WebhookToken
|
|
*
|
|
*/
|
|
export type WebhookToken = $Result.DefaultSelection<Prisma.$WebhookTokenPayload>
|
|
/**
|
|
* Model NoConfigComment
|
|
*
|
|
*/
|
|
export type NoConfigComment = $Result.DefaultSelection<Prisma.$NoConfigCommentPayload>
|
|
/**
|
|
* Model AdminSettings
|
|
*
|
|
*/
|
|
export type AdminSettings = $Result.DefaultSelection<Prisma.$AdminSettingsPayload>
|
|
|
|
/**
|
|
* Enums
|
|
*/
|
|
export namespace $Enums {
|
|
export const PreviewStatus: {
|
|
PROVISIONING: 'PROVISIONING',
|
|
BUILDING: 'BUILDING',
|
|
RUNNING: 'RUNNING',
|
|
FAILED: 'FAILED',
|
|
STOPPED: 'STOPPED',
|
|
IGNORED: 'IGNORED'
|
|
};
|
|
|
|
export type PreviewStatus = (typeof PreviewStatus)[keyof typeof PreviewStatus]
|
|
|
|
|
|
export const JobType: {
|
|
DEPLOY: 'DEPLOY',
|
|
STOP: 'STOP',
|
|
INACTIVITY_STOP: 'INACTIVITY_STOP'
|
|
};
|
|
|
|
export type JobType = (typeof JobType)[keyof typeof JobType]
|
|
|
|
|
|
export const JobStatus: {
|
|
PENDING: 'PENDING',
|
|
RUNNING: 'RUNNING',
|
|
DONE: 'DONE',
|
|
FAILED: 'FAILED'
|
|
};
|
|
|
|
export type JobStatus = (typeof JobStatus)[keyof typeof JobStatus]
|
|
|
|
}
|
|
|
|
export type PreviewStatus = $Enums.PreviewStatus
|
|
|
|
export const PreviewStatus: typeof $Enums.PreviewStatus
|
|
|
|
export type JobType = $Enums.JobType
|
|
|
|
export const JobType: typeof $Enums.JobType
|
|
|
|
export type JobStatus = $Enums.JobStatus
|
|
|
|
export const JobStatus: typeof $Enums.JobStatus
|
|
|
|
/**
|
|
* ## 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.session`: Exposes CRUD operations for the **Session** model.
|
|
* Example usage:
|
|
* ```ts
|
|
* // Fetch zero or more Sessions
|
|
* const sessions = await prisma.session.findMany()
|
|
* ```
|
|
*/
|
|
get session(): Prisma.SessionDelegate<ExtArgs, ClientOptions>;
|
|
|
|
/**
|
|
* `prisma.repoConfig`: Exposes CRUD operations for the **RepoConfig** model.
|
|
* Example usage:
|
|
* ```ts
|
|
* // Fetch zero or more RepoConfigs
|
|
* const repoConfigs = await prisma.repoConfig.findMany()
|
|
* ```
|
|
*/
|
|
get repoConfig(): Prisma.RepoConfigDelegate<ExtArgs, ClientOptions>;
|
|
|
|
/**
|
|
* `prisma.preview`: Exposes CRUD operations for the **Preview** model.
|
|
* Example usage:
|
|
* ```ts
|
|
* // Fetch zero or more Previews
|
|
* const previews = await prisma.preview.findMany()
|
|
* ```
|
|
*/
|
|
get preview(): Prisma.PreviewDelegate<ExtArgs, ClientOptions>;
|
|
|
|
/**
|
|
* `prisma.job`: Exposes CRUD operations for the **Job** model.
|
|
* Example usage:
|
|
* ```ts
|
|
* // Fetch zero or more Jobs
|
|
* const jobs = await prisma.job.findMany()
|
|
* ```
|
|
*/
|
|
get job(): Prisma.JobDelegate<ExtArgs, ClientOptions>;
|
|
|
|
/**
|
|
* `prisma.webhookToken`: Exposes CRUD operations for the **WebhookToken** model.
|
|
* Example usage:
|
|
* ```ts
|
|
* // Fetch zero or more WebhookTokens
|
|
* const webhookTokens = await prisma.webhookToken.findMany()
|
|
* ```
|
|
*/
|
|
get webhookToken(): Prisma.WebhookTokenDelegate<ExtArgs, ClientOptions>;
|
|
|
|
/**
|
|
* `prisma.noConfigComment`: Exposes CRUD operations for the **NoConfigComment** model.
|
|
* Example usage:
|
|
* ```ts
|
|
* // Fetch zero or more NoConfigComments
|
|
* const noConfigComments = await prisma.noConfigComment.findMany()
|
|
* ```
|
|
*/
|
|
get noConfigComment(): Prisma.NoConfigCommentDelegate<ExtArgs, ClientOptions>;
|
|
|
|
/**
|
|
* `prisma.adminSettings`: Exposes CRUD operations for the **AdminSettings** model.
|
|
* Example usage:
|
|
* ```ts
|
|
* // Fetch zero or more AdminSettings
|
|
* const adminSettings = await prisma.adminSettings.findMany()
|
|
* ```
|
|
*/
|
|
get adminSettings(): Prisma.AdminSettingsDelegate<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.19.3
|
|
* Query Engine version: c2990dca591cba766e3b7ef5d9e8a84796e47ab7
|
|
*/
|
|
export type PrismaVersion = {
|
|
client: string
|
|
}
|
|
|
|
export const prismaVersion: PrismaVersion
|
|
|
|
/**
|
|
* Utility Types
|
|
*/
|
|
|
|
|
|
export import Bytes = runtime.Bytes
|
|
export import JsonObject = runtime.JsonObject
|
|
export import JsonArray = runtime.JsonArray
|
|
export import JsonValue = runtime.JsonValue
|
|
export import InputJsonObject = runtime.InputJsonObject
|
|
export import InputJsonArray = runtime.InputJsonArray
|
|
export import InputJsonValue = runtime.InputJsonValue
|
|
|
|
/**
|
|
* 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',
|
|
Session: 'Session',
|
|
RepoConfig: 'RepoConfig',
|
|
Preview: 'Preview',
|
|
Job: 'Job',
|
|
WebhookToken: 'WebhookToken',
|
|
NoConfigComment: 'NoConfigComment',
|
|
AdminSettings: 'AdminSettings'
|
|
};
|
|
|
|
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" | "session" | "repoConfig" | "preview" | "job" | "webhookToken" | "noConfigComment" | "adminSettings"
|
|
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
|
|
}
|
|
}
|
|
}
|
|
Session: {
|
|
payload: Prisma.$SessionPayload<ExtArgs>
|
|
fields: Prisma.SessionFieldRefs
|
|
operations: {
|
|
findUnique: {
|
|
args: Prisma.SessionFindUniqueArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$SessionPayload> | null
|
|
}
|
|
findUniqueOrThrow: {
|
|
args: Prisma.SessionFindUniqueOrThrowArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$SessionPayload>
|
|
}
|
|
findFirst: {
|
|
args: Prisma.SessionFindFirstArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$SessionPayload> | null
|
|
}
|
|
findFirstOrThrow: {
|
|
args: Prisma.SessionFindFirstOrThrowArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$SessionPayload>
|
|
}
|
|
findMany: {
|
|
args: Prisma.SessionFindManyArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$SessionPayload>[]
|
|
}
|
|
create: {
|
|
args: Prisma.SessionCreateArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$SessionPayload>
|
|
}
|
|
createMany: {
|
|
args: Prisma.SessionCreateManyArgs<ExtArgs>
|
|
result: BatchPayload
|
|
}
|
|
createManyAndReturn: {
|
|
args: Prisma.SessionCreateManyAndReturnArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$SessionPayload>[]
|
|
}
|
|
delete: {
|
|
args: Prisma.SessionDeleteArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$SessionPayload>
|
|
}
|
|
update: {
|
|
args: Prisma.SessionUpdateArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$SessionPayload>
|
|
}
|
|
deleteMany: {
|
|
args: Prisma.SessionDeleteManyArgs<ExtArgs>
|
|
result: BatchPayload
|
|
}
|
|
updateMany: {
|
|
args: Prisma.SessionUpdateManyArgs<ExtArgs>
|
|
result: BatchPayload
|
|
}
|
|
updateManyAndReturn: {
|
|
args: Prisma.SessionUpdateManyAndReturnArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$SessionPayload>[]
|
|
}
|
|
upsert: {
|
|
args: Prisma.SessionUpsertArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$SessionPayload>
|
|
}
|
|
aggregate: {
|
|
args: Prisma.SessionAggregateArgs<ExtArgs>
|
|
result: $Utils.Optional<AggregateSession>
|
|
}
|
|
groupBy: {
|
|
args: Prisma.SessionGroupByArgs<ExtArgs>
|
|
result: $Utils.Optional<SessionGroupByOutputType>[]
|
|
}
|
|
count: {
|
|
args: Prisma.SessionCountArgs<ExtArgs>
|
|
result: $Utils.Optional<SessionCountAggregateOutputType> | number
|
|
}
|
|
}
|
|
}
|
|
RepoConfig: {
|
|
payload: Prisma.$RepoConfigPayload<ExtArgs>
|
|
fields: Prisma.RepoConfigFieldRefs
|
|
operations: {
|
|
findUnique: {
|
|
args: Prisma.RepoConfigFindUniqueArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$RepoConfigPayload> | null
|
|
}
|
|
findUniqueOrThrow: {
|
|
args: Prisma.RepoConfigFindUniqueOrThrowArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$RepoConfigPayload>
|
|
}
|
|
findFirst: {
|
|
args: Prisma.RepoConfigFindFirstArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$RepoConfigPayload> | null
|
|
}
|
|
findFirstOrThrow: {
|
|
args: Prisma.RepoConfigFindFirstOrThrowArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$RepoConfigPayload>
|
|
}
|
|
findMany: {
|
|
args: Prisma.RepoConfigFindManyArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$RepoConfigPayload>[]
|
|
}
|
|
create: {
|
|
args: Prisma.RepoConfigCreateArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$RepoConfigPayload>
|
|
}
|
|
createMany: {
|
|
args: Prisma.RepoConfigCreateManyArgs<ExtArgs>
|
|
result: BatchPayload
|
|
}
|
|
createManyAndReturn: {
|
|
args: Prisma.RepoConfigCreateManyAndReturnArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$RepoConfigPayload>[]
|
|
}
|
|
delete: {
|
|
args: Prisma.RepoConfigDeleteArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$RepoConfigPayload>
|
|
}
|
|
update: {
|
|
args: Prisma.RepoConfigUpdateArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$RepoConfigPayload>
|
|
}
|
|
deleteMany: {
|
|
args: Prisma.RepoConfigDeleteManyArgs<ExtArgs>
|
|
result: BatchPayload
|
|
}
|
|
updateMany: {
|
|
args: Prisma.RepoConfigUpdateManyArgs<ExtArgs>
|
|
result: BatchPayload
|
|
}
|
|
updateManyAndReturn: {
|
|
args: Prisma.RepoConfigUpdateManyAndReturnArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$RepoConfigPayload>[]
|
|
}
|
|
upsert: {
|
|
args: Prisma.RepoConfigUpsertArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$RepoConfigPayload>
|
|
}
|
|
aggregate: {
|
|
args: Prisma.RepoConfigAggregateArgs<ExtArgs>
|
|
result: $Utils.Optional<AggregateRepoConfig>
|
|
}
|
|
groupBy: {
|
|
args: Prisma.RepoConfigGroupByArgs<ExtArgs>
|
|
result: $Utils.Optional<RepoConfigGroupByOutputType>[]
|
|
}
|
|
count: {
|
|
args: Prisma.RepoConfigCountArgs<ExtArgs>
|
|
result: $Utils.Optional<RepoConfigCountAggregateOutputType> | number
|
|
}
|
|
}
|
|
}
|
|
Preview: {
|
|
payload: Prisma.$PreviewPayload<ExtArgs>
|
|
fields: Prisma.PreviewFieldRefs
|
|
operations: {
|
|
findUnique: {
|
|
args: Prisma.PreviewFindUniqueArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$PreviewPayload> | null
|
|
}
|
|
findUniqueOrThrow: {
|
|
args: Prisma.PreviewFindUniqueOrThrowArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$PreviewPayload>
|
|
}
|
|
findFirst: {
|
|
args: Prisma.PreviewFindFirstArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$PreviewPayload> | null
|
|
}
|
|
findFirstOrThrow: {
|
|
args: Prisma.PreviewFindFirstOrThrowArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$PreviewPayload>
|
|
}
|
|
findMany: {
|
|
args: Prisma.PreviewFindManyArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$PreviewPayload>[]
|
|
}
|
|
create: {
|
|
args: Prisma.PreviewCreateArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$PreviewPayload>
|
|
}
|
|
createMany: {
|
|
args: Prisma.PreviewCreateManyArgs<ExtArgs>
|
|
result: BatchPayload
|
|
}
|
|
createManyAndReturn: {
|
|
args: Prisma.PreviewCreateManyAndReturnArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$PreviewPayload>[]
|
|
}
|
|
delete: {
|
|
args: Prisma.PreviewDeleteArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$PreviewPayload>
|
|
}
|
|
update: {
|
|
args: Prisma.PreviewUpdateArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$PreviewPayload>
|
|
}
|
|
deleteMany: {
|
|
args: Prisma.PreviewDeleteManyArgs<ExtArgs>
|
|
result: BatchPayload
|
|
}
|
|
updateMany: {
|
|
args: Prisma.PreviewUpdateManyArgs<ExtArgs>
|
|
result: BatchPayload
|
|
}
|
|
updateManyAndReturn: {
|
|
args: Prisma.PreviewUpdateManyAndReturnArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$PreviewPayload>[]
|
|
}
|
|
upsert: {
|
|
args: Prisma.PreviewUpsertArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$PreviewPayload>
|
|
}
|
|
aggregate: {
|
|
args: Prisma.PreviewAggregateArgs<ExtArgs>
|
|
result: $Utils.Optional<AggregatePreview>
|
|
}
|
|
groupBy: {
|
|
args: Prisma.PreviewGroupByArgs<ExtArgs>
|
|
result: $Utils.Optional<PreviewGroupByOutputType>[]
|
|
}
|
|
count: {
|
|
args: Prisma.PreviewCountArgs<ExtArgs>
|
|
result: $Utils.Optional<PreviewCountAggregateOutputType> | number
|
|
}
|
|
}
|
|
}
|
|
Job: {
|
|
payload: Prisma.$JobPayload<ExtArgs>
|
|
fields: Prisma.JobFieldRefs
|
|
operations: {
|
|
findUnique: {
|
|
args: Prisma.JobFindUniqueArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$JobPayload> | null
|
|
}
|
|
findUniqueOrThrow: {
|
|
args: Prisma.JobFindUniqueOrThrowArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$JobPayload>
|
|
}
|
|
findFirst: {
|
|
args: Prisma.JobFindFirstArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$JobPayload> | null
|
|
}
|
|
findFirstOrThrow: {
|
|
args: Prisma.JobFindFirstOrThrowArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$JobPayload>
|
|
}
|
|
findMany: {
|
|
args: Prisma.JobFindManyArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$JobPayload>[]
|
|
}
|
|
create: {
|
|
args: Prisma.JobCreateArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$JobPayload>
|
|
}
|
|
createMany: {
|
|
args: Prisma.JobCreateManyArgs<ExtArgs>
|
|
result: BatchPayload
|
|
}
|
|
createManyAndReturn: {
|
|
args: Prisma.JobCreateManyAndReturnArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$JobPayload>[]
|
|
}
|
|
delete: {
|
|
args: Prisma.JobDeleteArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$JobPayload>
|
|
}
|
|
update: {
|
|
args: Prisma.JobUpdateArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$JobPayload>
|
|
}
|
|
deleteMany: {
|
|
args: Prisma.JobDeleteManyArgs<ExtArgs>
|
|
result: BatchPayload
|
|
}
|
|
updateMany: {
|
|
args: Prisma.JobUpdateManyArgs<ExtArgs>
|
|
result: BatchPayload
|
|
}
|
|
updateManyAndReturn: {
|
|
args: Prisma.JobUpdateManyAndReturnArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$JobPayload>[]
|
|
}
|
|
upsert: {
|
|
args: Prisma.JobUpsertArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$JobPayload>
|
|
}
|
|
aggregate: {
|
|
args: Prisma.JobAggregateArgs<ExtArgs>
|
|
result: $Utils.Optional<AggregateJob>
|
|
}
|
|
groupBy: {
|
|
args: Prisma.JobGroupByArgs<ExtArgs>
|
|
result: $Utils.Optional<JobGroupByOutputType>[]
|
|
}
|
|
count: {
|
|
args: Prisma.JobCountArgs<ExtArgs>
|
|
result: $Utils.Optional<JobCountAggregateOutputType> | number
|
|
}
|
|
}
|
|
}
|
|
WebhookToken: {
|
|
payload: Prisma.$WebhookTokenPayload<ExtArgs>
|
|
fields: Prisma.WebhookTokenFieldRefs
|
|
operations: {
|
|
findUnique: {
|
|
args: Prisma.WebhookTokenFindUniqueArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$WebhookTokenPayload> | null
|
|
}
|
|
findUniqueOrThrow: {
|
|
args: Prisma.WebhookTokenFindUniqueOrThrowArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$WebhookTokenPayload>
|
|
}
|
|
findFirst: {
|
|
args: Prisma.WebhookTokenFindFirstArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$WebhookTokenPayload> | null
|
|
}
|
|
findFirstOrThrow: {
|
|
args: Prisma.WebhookTokenFindFirstOrThrowArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$WebhookTokenPayload>
|
|
}
|
|
findMany: {
|
|
args: Prisma.WebhookTokenFindManyArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$WebhookTokenPayload>[]
|
|
}
|
|
create: {
|
|
args: Prisma.WebhookTokenCreateArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$WebhookTokenPayload>
|
|
}
|
|
createMany: {
|
|
args: Prisma.WebhookTokenCreateManyArgs<ExtArgs>
|
|
result: BatchPayload
|
|
}
|
|
createManyAndReturn: {
|
|
args: Prisma.WebhookTokenCreateManyAndReturnArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$WebhookTokenPayload>[]
|
|
}
|
|
delete: {
|
|
args: Prisma.WebhookTokenDeleteArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$WebhookTokenPayload>
|
|
}
|
|
update: {
|
|
args: Prisma.WebhookTokenUpdateArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$WebhookTokenPayload>
|
|
}
|
|
deleteMany: {
|
|
args: Prisma.WebhookTokenDeleteManyArgs<ExtArgs>
|
|
result: BatchPayload
|
|
}
|
|
updateMany: {
|
|
args: Prisma.WebhookTokenUpdateManyArgs<ExtArgs>
|
|
result: BatchPayload
|
|
}
|
|
updateManyAndReturn: {
|
|
args: Prisma.WebhookTokenUpdateManyAndReturnArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$WebhookTokenPayload>[]
|
|
}
|
|
upsert: {
|
|
args: Prisma.WebhookTokenUpsertArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$WebhookTokenPayload>
|
|
}
|
|
aggregate: {
|
|
args: Prisma.WebhookTokenAggregateArgs<ExtArgs>
|
|
result: $Utils.Optional<AggregateWebhookToken>
|
|
}
|
|
groupBy: {
|
|
args: Prisma.WebhookTokenGroupByArgs<ExtArgs>
|
|
result: $Utils.Optional<WebhookTokenGroupByOutputType>[]
|
|
}
|
|
count: {
|
|
args: Prisma.WebhookTokenCountArgs<ExtArgs>
|
|
result: $Utils.Optional<WebhookTokenCountAggregateOutputType> | number
|
|
}
|
|
}
|
|
}
|
|
NoConfigComment: {
|
|
payload: Prisma.$NoConfigCommentPayload<ExtArgs>
|
|
fields: Prisma.NoConfigCommentFieldRefs
|
|
operations: {
|
|
findUnique: {
|
|
args: Prisma.NoConfigCommentFindUniqueArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$NoConfigCommentPayload> | null
|
|
}
|
|
findUniqueOrThrow: {
|
|
args: Prisma.NoConfigCommentFindUniqueOrThrowArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$NoConfigCommentPayload>
|
|
}
|
|
findFirst: {
|
|
args: Prisma.NoConfigCommentFindFirstArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$NoConfigCommentPayload> | null
|
|
}
|
|
findFirstOrThrow: {
|
|
args: Prisma.NoConfigCommentFindFirstOrThrowArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$NoConfigCommentPayload>
|
|
}
|
|
findMany: {
|
|
args: Prisma.NoConfigCommentFindManyArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$NoConfigCommentPayload>[]
|
|
}
|
|
create: {
|
|
args: Prisma.NoConfigCommentCreateArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$NoConfigCommentPayload>
|
|
}
|
|
createMany: {
|
|
args: Prisma.NoConfigCommentCreateManyArgs<ExtArgs>
|
|
result: BatchPayload
|
|
}
|
|
createManyAndReturn: {
|
|
args: Prisma.NoConfigCommentCreateManyAndReturnArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$NoConfigCommentPayload>[]
|
|
}
|
|
delete: {
|
|
args: Prisma.NoConfigCommentDeleteArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$NoConfigCommentPayload>
|
|
}
|
|
update: {
|
|
args: Prisma.NoConfigCommentUpdateArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$NoConfigCommentPayload>
|
|
}
|
|
deleteMany: {
|
|
args: Prisma.NoConfigCommentDeleteManyArgs<ExtArgs>
|
|
result: BatchPayload
|
|
}
|
|
updateMany: {
|
|
args: Prisma.NoConfigCommentUpdateManyArgs<ExtArgs>
|
|
result: BatchPayload
|
|
}
|
|
updateManyAndReturn: {
|
|
args: Prisma.NoConfigCommentUpdateManyAndReturnArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$NoConfigCommentPayload>[]
|
|
}
|
|
upsert: {
|
|
args: Prisma.NoConfigCommentUpsertArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$NoConfigCommentPayload>
|
|
}
|
|
aggregate: {
|
|
args: Prisma.NoConfigCommentAggregateArgs<ExtArgs>
|
|
result: $Utils.Optional<AggregateNoConfigComment>
|
|
}
|
|
groupBy: {
|
|
args: Prisma.NoConfigCommentGroupByArgs<ExtArgs>
|
|
result: $Utils.Optional<NoConfigCommentGroupByOutputType>[]
|
|
}
|
|
count: {
|
|
args: Prisma.NoConfigCommentCountArgs<ExtArgs>
|
|
result: $Utils.Optional<NoConfigCommentCountAggregateOutputType> | number
|
|
}
|
|
}
|
|
}
|
|
AdminSettings: {
|
|
payload: Prisma.$AdminSettingsPayload<ExtArgs>
|
|
fields: Prisma.AdminSettingsFieldRefs
|
|
operations: {
|
|
findUnique: {
|
|
args: Prisma.AdminSettingsFindUniqueArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$AdminSettingsPayload> | null
|
|
}
|
|
findUniqueOrThrow: {
|
|
args: Prisma.AdminSettingsFindUniqueOrThrowArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$AdminSettingsPayload>
|
|
}
|
|
findFirst: {
|
|
args: Prisma.AdminSettingsFindFirstArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$AdminSettingsPayload> | null
|
|
}
|
|
findFirstOrThrow: {
|
|
args: Prisma.AdminSettingsFindFirstOrThrowArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$AdminSettingsPayload>
|
|
}
|
|
findMany: {
|
|
args: Prisma.AdminSettingsFindManyArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$AdminSettingsPayload>[]
|
|
}
|
|
create: {
|
|
args: Prisma.AdminSettingsCreateArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$AdminSettingsPayload>
|
|
}
|
|
createMany: {
|
|
args: Prisma.AdminSettingsCreateManyArgs<ExtArgs>
|
|
result: BatchPayload
|
|
}
|
|
createManyAndReturn: {
|
|
args: Prisma.AdminSettingsCreateManyAndReturnArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$AdminSettingsPayload>[]
|
|
}
|
|
delete: {
|
|
args: Prisma.AdminSettingsDeleteArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$AdminSettingsPayload>
|
|
}
|
|
update: {
|
|
args: Prisma.AdminSettingsUpdateArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$AdminSettingsPayload>
|
|
}
|
|
deleteMany: {
|
|
args: Prisma.AdminSettingsDeleteManyArgs<ExtArgs>
|
|
result: BatchPayload
|
|
}
|
|
updateMany: {
|
|
args: Prisma.AdminSettingsUpdateManyArgs<ExtArgs>
|
|
result: BatchPayload
|
|
}
|
|
updateManyAndReturn: {
|
|
args: Prisma.AdminSettingsUpdateManyAndReturnArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$AdminSettingsPayload>[]
|
|
}
|
|
upsert: {
|
|
args: Prisma.AdminSettingsUpsertArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$AdminSettingsPayload>
|
|
}
|
|
aggregate: {
|
|
args: Prisma.AdminSettingsAggregateArgs<ExtArgs>
|
|
result: $Utils.Optional<AggregateAdminSettings>
|
|
}
|
|
groupBy: {
|
|
args: Prisma.AdminSettingsGroupByArgs<ExtArgs>
|
|
result: $Utils.Optional<AdminSettingsGroupByOutputType>[]
|
|
}
|
|
count: {
|
|
args: Prisma.AdminSettingsCountArgs<ExtArgs>
|
|
result: $Utils.Optional<AdminSettingsCountAggregateOutputType> | 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
|
|
session?: SessionOmit
|
|
repoConfig?: RepoConfigOmit
|
|
preview?: PreviewOmit
|
|
job?: JobOmit
|
|
webhookToken?: WebhookTokenOmit
|
|
noConfigComment?: NoConfigCommentOmit
|
|
adminSettings?: AdminSettingsOmit
|
|
}
|
|
|
|
/* 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 = {
|
|
sessions: number
|
|
repoConfigs: number
|
|
noConfigComments: number
|
|
}
|
|
|
|
export type UserCountOutputTypeSelect<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
sessions?: boolean | UserCountOutputTypeCountSessionsArgs
|
|
repoConfigs?: boolean | UserCountOutputTypeCountRepoConfigsArgs
|
|
noConfigComments?: boolean | UserCountOutputTypeCountNoConfigCommentsArgs
|
|
}
|
|
|
|
// 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 UserCountOutputTypeCountSessionsArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
where?: SessionWhereInput
|
|
}
|
|
|
|
/**
|
|
* UserCountOutputType without action
|
|
*/
|
|
export type UserCountOutputTypeCountRepoConfigsArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
where?: RepoConfigWhereInput
|
|
}
|
|
|
|
/**
|
|
* UserCountOutputType without action
|
|
*/
|
|
export type UserCountOutputTypeCountNoConfigCommentsArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
where?: NoConfigCommentWhereInput
|
|
}
|
|
|
|
|
|
/**
|
|
* Count Type RepoConfigCountOutputType
|
|
*/
|
|
|
|
export type RepoConfigCountOutputType = {
|
|
previews: number
|
|
}
|
|
|
|
export type RepoConfigCountOutputTypeSelect<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
previews?: boolean | RepoConfigCountOutputTypeCountPreviewsArgs
|
|
}
|
|
|
|
// Custom InputTypes
|
|
/**
|
|
* RepoConfigCountOutputType without action
|
|
*/
|
|
export type RepoConfigCountOutputTypeDefaultArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the RepoConfigCountOutputType
|
|
*/
|
|
select?: RepoConfigCountOutputTypeSelect<ExtArgs> | null
|
|
}
|
|
|
|
/**
|
|
* RepoConfigCountOutputType without action
|
|
*/
|
|
export type RepoConfigCountOutputTypeCountPreviewsArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
where?: PreviewWhereInput
|
|
}
|
|
|
|
|
|
/**
|
|
* Count Type PreviewCountOutputType
|
|
*/
|
|
|
|
export type PreviewCountOutputType = {
|
|
jobs: number
|
|
}
|
|
|
|
export type PreviewCountOutputTypeSelect<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
jobs?: boolean | PreviewCountOutputTypeCountJobsArgs
|
|
}
|
|
|
|
// Custom InputTypes
|
|
/**
|
|
* PreviewCountOutputType without action
|
|
*/
|
|
export type PreviewCountOutputTypeDefaultArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the PreviewCountOutputType
|
|
*/
|
|
select?: PreviewCountOutputTypeSelect<ExtArgs> | null
|
|
}
|
|
|
|
/**
|
|
* PreviewCountOutputType without action
|
|
*/
|
|
export type PreviewCountOutputTypeCountJobsArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
where?: JobWhereInput
|
|
}
|
|
|
|
|
|
/**
|
|
* Models
|
|
*/
|
|
|
|
/**
|
|
* Model User
|
|
*/
|
|
|
|
export type AggregateUser = {
|
|
_count: UserCountAggregateOutputType | null
|
|
_avg: UserAvgAggregateOutputType | null
|
|
_sum: UserSumAggregateOutputType | null
|
|
_min: UserMinAggregateOutputType | null
|
|
_max: UserMaxAggregateOutputType | null
|
|
}
|
|
|
|
export type UserAvgAggregateOutputType = {
|
|
id: number | null
|
|
}
|
|
|
|
export type UserSumAggregateOutputType = {
|
|
id: number | null
|
|
}
|
|
|
|
export type UserMinAggregateOutputType = {
|
|
id: number | null
|
|
username: string | null
|
|
passwordHash: string | null
|
|
isAdmin: boolean | null
|
|
isFounder: boolean | null
|
|
createdAt: Date | null
|
|
updatedAt: Date | null
|
|
giteaUsername: string | null
|
|
giteaPAT: string | null
|
|
giteaInstanceUrl: string | null
|
|
awsAccessKeyId: string | null
|
|
awsSecretAccessKey: string | null
|
|
awsRegion: string | null
|
|
}
|
|
|
|
export type UserMaxAggregateOutputType = {
|
|
id: number | null
|
|
username: string | null
|
|
passwordHash: string | null
|
|
isAdmin: boolean | null
|
|
isFounder: boolean | null
|
|
createdAt: Date | null
|
|
updatedAt: Date | null
|
|
giteaUsername: string | null
|
|
giteaPAT: string | null
|
|
giteaInstanceUrl: string | null
|
|
awsAccessKeyId: string | null
|
|
awsSecretAccessKey: string | null
|
|
awsRegion: string | null
|
|
}
|
|
|
|
export type UserCountAggregateOutputType = {
|
|
id: number
|
|
username: number
|
|
passwordHash: number
|
|
isAdmin: number
|
|
isFounder: number
|
|
createdAt: number
|
|
updatedAt: number
|
|
giteaUsername: number
|
|
giteaPAT: number
|
|
giteaInstanceUrl: number
|
|
awsAccessKeyId: number
|
|
awsSecretAccessKey: number
|
|
awsRegion: number
|
|
_all: number
|
|
}
|
|
|
|
|
|
export type UserAvgAggregateInputType = {
|
|
id?: true
|
|
}
|
|
|
|
export type UserSumAggregateInputType = {
|
|
id?: true
|
|
}
|
|
|
|
export type UserMinAggregateInputType = {
|
|
id?: true
|
|
username?: true
|
|
passwordHash?: true
|
|
isAdmin?: true
|
|
isFounder?: true
|
|
createdAt?: true
|
|
updatedAt?: true
|
|
giteaUsername?: true
|
|
giteaPAT?: true
|
|
giteaInstanceUrl?: true
|
|
awsAccessKeyId?: true
|
|
awsSecretAccessKey?: true
|
|
awsRegion?: true
|
|
}
|
|
|
|
export type UserMaxAggregateInputType = {
|
|
id?: true
|
|
username?: true
|
|
passwordHash?: true
|
|
isAdmin?: true
|
|
isFounder?: true
|
|
createdAt?: true
|
|
updatedAt?: true
|
|
giteaUsername?: true
|
|
giteaPAT?: true
|
|
giteaInstanceUrl?: true
|
|
awsAccessKeyId?: true
|
|
awsSecretAccessKey?: true
|
|
awsRegion?: true
|
|
}
|
|
|
|
export type UserCountAggregateInputType = {
|
|
id?: true
|
|
username?: true
|
|
passwordHash?: true
|
|
isAdmin?: true
|
|
isFounder?: true
|
|
createdAt?: true
|
|
updatedAt?: true
|
|
giteaUsername?: true
|
|
giteaPAT?: true
|
|
giteaInstanceUrl?: true
|
|
awsAccessKeyId?: true
|
|
awsSecretAccessKey?: true
|
|
awsRegion?: 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 average
|
|
**/
|
|
_avg?: UserAvgAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to sum
|
|
**/
|
|
_sum?: UserSumAggregateInputType
|
|
/**
|
|
* {@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
|
|
_avg?: UserAvgAggregateInputType
|
|
_sum?: UserSumAggregateInputType
|
|
_min?: UserMinAggregateInputType
|
|
_max?: UserMaxAggregateInputType
|
|
}
|
|
|
|
export type UserGroupByOutputType = {
|
|
id: number
|
|
username: string
|
|
passwordHash: string
|
|
isAdmin: boolean
|
|
isFounder: boolean
|
|
createdAt: Date
|
|
updatedAt: Date
|
|
giteaUsername: string | null
|
|
giteaPAT: string | null
|
|
giteaInstanceUrl: string | null
|
|
awsAccessKeyId: string | null
|
|
awsSecretAccessKey: string | null
|
|
awsRegion: string | null
|
|
_count: UserCountAggregateOutputType | null
|
|
_avg: UserAvgAggregateOutputType | null
|
|
_sum: UserSumAggregateOutputType | null
|
|
_min: UserMinAggregateOutputType | null
|
|
_max: UserMaxAggregateOutputType | null
|
|
}
|
|
|
|
type GetUserGroupByPayload<T extends UserGroupByArgs> = Prisma.PrismaPromise<
|
|
Array<
|
|
PickEnumerable<UserGroupByOutputType, T['by']> &
|
|
{
|
|
[P in ((keyof T) & (keyof UserGroupByOutputType))]: P extends '_count'
|
|
? T[P] extends boolean
|
|
? number
|
|
: GetScalarType<T[P], UserGroupByOutputType[P]>
|
|
: GetScalarType<T[P], UserGroupByOutputType[P]>
|
|
}
|
|
>
|
|
>
|
|
|
|
|
|
export type UserSelect<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
|
|
id?: boolean
|
|
username?: boolean
|
|
passwordHash?: boolean
|
|
isAdmin?: boolean
|
|
isFounder?: boolean
|
|
createdAt?: boolean
|
|
updatedAt?: boolean
|
|
giteaUsername?: boolean
|
|
giteaPAT?: boolean
|
|
giteaInstanceUrl?: boolean
|
|
awsAccessKeyId?: boolean
|
|
awsSecretAccessKey?: boolean
|
|
awsRegion?: boolean
|
|
sessions?: boolean | User$sessionsArgs<ExtArgs>
|
|
repoConfigs?: boolean | User$repoConfigsArgs<ExtArgs>
|
|
webhookToken?: boolean | User$webhookTokenArgs<ExtArgs>
|
|
noConfigComments?: boolean | User$noConfigCommentsArgs<ExtArgs>
|
|
_count?: boolean | UserCountOutputTypeDefaultArgs<ExtArgs>
|
|
}, ExtArgs["result"]["user"]>
|
|
|
|
export type UserSelectCreateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
|
|
id?: boolean
|
|
username?: boolean
|
|
passwordHash?: boolean
|
|
isAdmin?: boolean
|
|
isFounder?: boolean
|
|
createdAt?: boolean
|
|
updatedAt?: boolean
|
|
giteaUsername?: boolean
|
|
giteaPAT?: boolean
|
|
giteaInstanceUrl?: boolean
|
|
awsAccessKeyId?: boolean
|
|
awsSecretAccessKey?: boolean
|
|
awsRegion?: boolean
|
|
}, ExtArgs["result"]["user"]>
|
|
|
|
export type UserSelectUpdateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
|
|
id?: boolean
|
|
username?: boolean
|
|
passwordHash?: boolean
|
|
isAdmin?: boolean
|
|
isFounder?: boolean
|
|
createdAt?: boolean
|
|
updatedAt?: boolean
|
|
giteaUsername?: boolean
|
|
giteaPAT?: boolean
|
|
giteaInstanceUrl?: boolean
|
|
awsAccessKeyId?: boolean
|
|
awsSecretAccessKey?: boolean
|
|
awsRegion?: boolean
|
|
}, ExtArgs["result"]["user"]>
|
|
|
|
export type UserSelectScalar = {
|
|
id?: boolean
|
|
username?: boolean
|
|
passwordHash?: boolean
|
|
isAdmin?: boolean
|
|
isFounder?: boolean
|
|
createdAt?: boolean
|
|
updatedAt?: boolean
|
|
giteaUsername?: boolean
|
|
giteaPAT?: boolean
|
|
giteaInstanceUrl?: boolean
|
|
awsAccessKeyId?: boolean
|
|
awsSecretAccessKey?: boolean
|
|
awsRegion?: boolean
|
|
}
|
|
|
|
export type UserOmit<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetOmit<"id" | "username" | "passwordHash" | "isAdmin" | "isFounder" | "createdAt" | "updatedAt" | "giteaUsername" | "giteaPAT" | "giteaInstanceUrl" | "awsAccessKeyId" | "awsSecretAccessKey" | "awsRegion", ExtArgs["result"]["user"]>
|
|
export type UserInclude<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
sessions?: boolean | User$sessionsArgs<ExtArgs>
|
|
repoConfigs?: boolean | User$repoConfigsArgs<ExtArgs>
|
|
webhookToken?: boolean | User$webhookTokenArgs<ExtArgs>
|
|
noConfigComments?: boolean | User$noConfigCommentsArgs<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: {
|
|
sessions: Prisma.$SessionPayload<ExtArgs>[]
|
|
repoConfigs: Prisma.$RepoConfigPayload<ExtArgs>[]
|
|
webhookToken: Prisma.$WebhookTokenPayload<ExtArgs> | null
|
|
noConfigComments: Prisma.$NoConfigCommentPayload<ExtArgs>[]
|
|
}
|
|
scalars: $Extensions.GetPayloadResult<{
|
|
id: number
|
|
username: string
|
|
passwordHash: string
|
|
isAdmin: boolean
|
|
isFounder: boolean
|
|
createdAt: Date
|
|
updatedAt: Date
|
|
giteaUsername: string | null
|
|
giteaPAT: string | null
|
|
giteaInstanceUrl: string | null
|
|
awsAccessKeyId: string | null
|
|
awsSecretAccessKey: string | null
|
|
awsRegion: string | null
|
|
}, 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"
|
|
sessions<T extends User$sessionsArgs<ExtArgs> = {}>(args?: Subset<T, User$sessionsArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$SessionPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
|
|
repoConfigs<T extends User$repoConfigsArgs<ExtArgs> = {}>(args?: Subset<T, User$repoConfigsArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$RepoConfigPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
|
|
webhookToken<T extends User$webhookTokenArgs<ExtArgs> = {}>(args?: Subset<T, User$webhookTokenArgs<ExtArgs>>): Prisma__WebhookTokenClient<$Result.GetResult<Prisma.$WebhookTokenPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
|
|
noConfigComments<T extends User$noConfigCommentsArgs<ExtArgs> = {}>(args?: Subset<T, User$noConfigCommentsArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$NoConfigCommentPayload<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", 'Int'>
|
|
readonly username: FieldRef<"User", 'String'>
|
|
readonly passwordHash: FieldRef<"User", 'String'>
|
|
readonly isAdmin: FieldRef<"User", 'Boolean'>
|
|
readonly isFounder: FieldRef<"User", 'Boolean'>
|
|
readonly createdAt: FieldRef<"User", 'DateTime'>
|
|
readonly updatedAt: FieldRef<"User", 'DateTime'>
|
|
readonly giteaUsername: FieldRef<"User", 'String'>
|
|
readonly giteaPAT: FieldRef<"User", 'String'>
|
|
readonly giteaInstanceUrl: FieldRef<"User", 'String'>
|
|
readonly awsAccessKeyId: FieldRef<"User", 'String'>
|
|
readonly awsSecretAccessKey: FieldRef<"User", 'String'>
|
|
readonly awsRegion: FieldRef<"User", 'String'>
|
|
}
|
|
|
|
|
|
// 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.sessions
|
|
*/
|
|
export type User$sessionsArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the Session
|
|
*/
|
|
select?: SessionSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the Session
|
|
*/
|
|
omit?: SessionOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: SessionInclude<ExtArgs> | null
|
|
where?: SessionWhereInput
|
|
orderBy?: SessionOrderByWithRelationInput | SessionOrderByWithRelationInput[]
|
|
cursor?: SessionWhereUniqueInput
|
|
take?: number
|
|
skip?: number
|
|
distinct?: SessionScalarFieldEnum | SessionScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* User.repoConfigs
|
|
*/
|
|
export type User$repoConfigsArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the RepoConfig
|
|
*/
|
|
select?: RepoConfigSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the RepoConfig
|
|
*/
|
|
omit?: RepoConfigOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: RepoConfigInclude<ExtArgs> | null
|
|
where?: RepoConfigWhereInput
|
|
orderBy?: RepoConfigOrderByWithRelationInput | RepoConfigOrderByWithRelationInput[]
|
|
cursor?: RepoConfigWhereUniqueInput
|
|
take?: number
|
|
skip?: number
|
|
distinct?: RepoConfigScalarFieldEnum | RepoConfigScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* User.webhookToken
|
|
*/
|
|
export type User$webhookTokenArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the WebhookToken
|
|
*/
|
|
select?: WebhookTokenSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the WebhookToken
|
|
*/
|
|
omit?: WebhookTokenOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: WebhookTokenInclude<ExtArgs> | null
|
|
where?: WebhookTokenWhereInput
|
|
}
|
|
|
|
/**
|
|
* User.noConfigComments
|
|
*/
|
|
export type User$noConfigCommentsArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the NoConfigComment
|
|
*/
|
|
select?: NoConfigCommentSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the NoConfigComment
|
|
*/
|
|
omit?: NoConfigCommentOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: NoConfigCommentInclude<ExtArgs> | null
|
|
where?: NoConfigCommentWhereInput
|
|
orderBy?: NoConfigCommentOrderByWithRelationInput | NoConfigCommentOrderByWithRelationInput[]
|
|
cursor?: NoConfigCommentWhereUniqueInput
|
|
take?: number
|
|
skip?: number
|
|
distinct?: NoConfigCommentScalarFieldEnum | NoConfigCommentScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* 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 Session
|
|
*/
|
|
|
|
export type AggregateSession = {
|
|
_count: SessionCountAggregateOutputType | null
|
|
_avg: SessionAvgAggregateOutputType | null
|
|
_sum: SessionSumAggregateOutputType | null
|
|
_min: SessionMinAggregateOutputType | null
|
|
_max: SessionMaxAggregateOutputType | null
|
|
}
|
|
|
|
export type SessionAvgAggregateOutputType = {
|
|
id: number | null
|
|
userId: number | null
|
|
}
|
|
|
|
export type SessionSumAggregateOutputType = {
|
|
id: number | null
|
|
userId: number | null
|
|
}
|
|
|
|
export type SessionMinAggregateOutputType = {
|
|
id: number | null
|
|
hash: string | null
|
|
userId: number | null
|
|
createdAt: Date | null
|
|
updatedAt: Date | null
|
|
}
|
|
|
|
export type SessionMaxAggregateOutputType = {
|
|
id: number | null
|
|
hash: string | null
|
|
userId: number | null
|
|
createdAt: Date | null
|
|
updatedAt: Date | null
|
|
}
|
|
|
|
export type SessionCountAggregateOutputType = {
|
|
id: number
|
|
hash: number
|
|
userId: number
|
|
createdAt: number
|
|
updatedAt: number
|
|
_all: number
|
|
}
|
|
|
|
|
|
export type SessionAvgAggregateInputType = {
|
|
id?: true
|
|
userId?: true
|
|
}
|
|
|
|
export type SessionSumAggregateInputType = {
|
|
id?: true
|
|
userId?: true
|
|
}
|
|
|
|
export type SessionMinAggregateInputType = {
|
|
id?: true
|
|
hash?: true
|
|
userId?: true
|
|
createdAt?: true
|
|
updatedAt?: true
|
|
}
|
|
|
|
export type SessionMaxAggregateInputType = {
|
|
id?: true
|
|
hash?: true
|
|
userId?: true
|
|
createdAt?: true
|
|
updatedAt?: true
|
|
}
|
|
|
|
export type SessionCountAggregateInputType = {
|
|
id?: true
|
|
hash?: true
|
|
userId?: true
|
|
createdAt?: true
|
|
updatedAt?: true
|
|
_all?: true
|
|
}
|
|
|
|
export type SessionAggregateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Filter which Session to aggregate.
|
|
*/
|
|
where?: SessionWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of Sessions to fetch.
|
|
*/
|
|
orderBy?: SessionOrderByWithRelationInput | SessionOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the start position
|
|
*/
|
|
cursor?: SessionWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` Sessions 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` Sessions.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Count returned Sessions
|
|
**/
|
|
_count?: true | SessionCountAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to average
|
|
**/
|
|
_avg?: SessionAvgAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to sum
|
|
**/
|
|
_sum?: SessionSumAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to find the minimum value
|
|
**/
|
|
_min?: SessionMinAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to find the maximum value
|
|
**/
|
|
_max?: SessionMaxAggregateInputType
|
|
}
|
|
|
|
export type GetSessionAggregateType<T extends SessionAggregateArgs> = {
|
|
[P in keyof T & keyof AggregateSession]: P extends '_count' | 'count'
|
|
? T[P] extends true
|
|
? number
|
|
: GetScalarType<T[P], AggregateSession[P]>
|
|
: GetScalarType<T[P], AggregateSession[P]>
|
|
}
|
|
|
|
|
|
|
|
|
|
export type SessionGroupByArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
where?: SessionWhereInput
|
|
orderBy?: SessionOrderByWithAggregationInput | SessionOrderByWithAggregationInput[]
|
|
by: SessionScalarFieldEnum[] | SessionScalarFieldEnum
|
|
having?: SessionScalarWhereWithAggregatesInput
|
|
take?: number
|
|
skip?: number
|
|
_count?: SessionCountAggregateInputType | true
|
|
_avg?: SessionAvgAggregateInputType
|
|
_sum?: SessionSumAggregateInputType
|
|
_min?: SessionMinAggregateInputType
|
|
_max?: SessionMaxAggregateInputType
|
|
}
|
|
|
|
export type SessionGroupByOutputType = {
|
|
id: number
|
|
hash: string
|
|
userId: number
|
|
createdAt: Date
|
|
updatedAt: Date
|
|
_count: SessionCountAggregateOutputType | null
|
|
_avg: SessionAvgAggregateOutputType | null
|
|
_sum: SessionSumAggregateOutputType | null
|
|
_min: SessionMinAggregateOutputType | null
|
|
_max: SessionMaxAggregateOutputType | null
|
|
}
|
|
|
|
type GetSessionGroupByPayload<T extends SessionGroupByArgs> = Prisma.PrismaPromise<
|
|
Array<
|
|
PickEnumerable<SessionGroupByOutputType, T['by']> &
|
|
{
|
|
[P in ((keyof T) & (keyof SessionGroupByOutputType))]: P extends '_count'
|
|
? T[P] extends boolean
|
|
? number
|
|
: GetScalarType<T[P], SessionGroupByOutputType[P]>
|
|
: GetScalarType<T[P], SessionGroupByOutputType[P]>
|
|
}
|
|
>
|
|
>
|
|
|
|
|
|
export type SessionSelect<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
|
|
id?: boolean
|
|
hash?: boolean
|
|
userId?: boolean
|
|
createdAt?: boolean
|
|
updatedAt?: boolean
|
|
user?: boolean | UserDefaultArgs<ExtArgs>
|
|
}, ExtArgs["result"]["session"]>
|
|
|
|
export type SessionSelectCreateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
|
|
id?: boolean
|
|
hash?: boolean
|
|
userId?: boolean
|
|
createdAt?: boolean
|
|
updatedAt?: boolean
|
|
user?: boolean | UserDefaultArgs<ExtArgs>
|
|
}, ExtArgs["result"]["session"]>
|
|
|
|
export type SessionSelectUpdateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
|
|
id?: boolean
|
|
hash?: boolean
|
|
userId?: boolean
|
|
createdAt?: boolean
|
|
updatedAt?: boolean
|
|
user?: boolean | UserDefaultArgs<ExtArgs>
|
|
}, ExtArgs["result"]["session"]>
|
|
|
|
export type SessionSelectScalar = {
|
|
id?: boolean
|
|
hash?: boolean
|
|
userId?: boolean
|
|
createdAt?: boolean
|
|
updatedAt?: boolean
|
|
}
|
|
|
|
export type SessionOmit<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetOmit<"id" | "hash" | "userId" | "createdAt" | "updatedAt", ExtArgs["result"]["session"]>
|
|
export type SessionInclude<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
user?: boolean | UserDefaultArgs<ExtArgs>
|
|
}
|
|
export type SessionIncludeCreateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
user?: boolean | UserDefaultArgs<ExtArgs>
|
|
}
|
|
export type SessionIncludeUpdateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
user?: boolean | UserDefaultArgs<ExtArgs>
|
|
}
|
|
|
|
export type $SessionPayload<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
name: "Session"
|
|
objects: {
|
|
user: Prisma.$UserPayload<ExtArgs>
|
|
}
|
|
scalars: $Extensions.GetPayloadResult<{
|
|
id: number
|
|
hash: string
|
|
userId: number
|
|
createdAt: Date
|
|
updatedAt: Date
|
|
}, ExtArgs["result"]["session"]>
|
|
composites: {}
|
|
}
|
|
|
|
type SessionGetPayload<S extends boolean | null | undefined | SessionDefaultArgs> = $Result.GetResult<Prisma.$SessionPayload, S>
|
|
|
|
type SessionCountArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> =
|
|
Omit<SessionFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
|
|
select?: SessionCountAggregateInputType | true
|
|
}
|
|
|
|
export interface SessionDelegate<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs, GlobalOmitOptions = {}> {
|
|
[K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['Session'], meta: { name: 'Session' } }
|
|
/**
|
|
* Find zero or one Session that matches the filter.
|
|
* @param {SessionFindUniqueArgs} args - Arguments to find a Session
|
|
* @example
|
|
* // Get one Session
|
|
* const session = await prisma.session.findUnique({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findUnique<T extends SessionFindUniqueArgs>(args: SelectSubset<T, SessionFindUniqueArgs<ExtArgs>>): Prisma__SessionClient<$Result.GetResult<Prisma.$SessionPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Find one Session that matches the filter or throw an error with `error.code='P2025'`
|
|
* if no matches were found.
|
|
* @param {SessionFindUniqueOrThrowArgs} args - Arguments to find a Session
|
|
* @example
|
|
* // Get one Session
|
|
* const session = await prisma.session.findUniqueOrThrow({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findUniqueOrThrow<T extends SessionFindUniqueOrThrowArgs>(args: SelectSubset<T, SessionFindUniqueOrThrowArgs<ExtArgs>>): Prisma__SessionClient<$Result.GetResult<Prisma.$SessionPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Find the first Session 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 {SessionFindFirstArgs} args - Arguments to find a Session
|
|
* @example
|
|
* // Get one Session
|
|
* const session = await prisma.session.findFirst({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findFirst<T extends SessionFindFirstArgs>(args?: SelectSubset<T, SessionFindFirstArgs<ExtArgs>>): Prisma__SessionClient<$Result.GetResult<Prisma.$SessionPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Find the first Session 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 {SessionFindFirstOrThrowArgs} args - Arguments to find a Session
|
|
* @example
|
|
* // Get one Session
|
|
* const session = await prisma.session.findFirstOrThrow({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findFirstOrThrow<T extends SessionFindFirstOrThrowArgs>(args?: SelectSubset<T, SessionFindFirstOrThrowArgs<ExtArgs>>): Prisma__SessionClient<$Result.GetResult<Prisma.$SessionPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Find zero or more Sessions 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 {SessionFindManyArgs} args - Arguments to filter and select certain fields only.
|
|
* @example
|
|
* // Get all Sessions
|
|
* const sessions = await prisma.session.findMany()
|
|
*
|
|
* // Get first 10 Sessions
|
|
* const sessions = await prisma.session.findMany({ take: 10 })
|
|
*
|
|
* // Only select the `id`
|
|
* const sessionWithIdOnly = await prisma.session.findMany({ select: { id: true } })
|
|
*
|
|
*/
|
|
findMany<T extends SessionFindManyArgs>(args?: SelectSubset<T, SessionFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$SessionPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
|
|
|
|
/**
|
|
* Create a Session.
|
|
* @param {SessionCreateArgs} args - Arguments to create a Session.
|
|
* @example
|
|
* // Create one Session
|
|
* const Session = await prisma.session.create({
|
|
* data: {
|
|
* // ... data to create a Session
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
create<T extends SessionCreateArgs>(args: SelectSubset<T, SessionCreateArgs<ExtArgs>>): Prisma__SessionClient<$Result.GetResult<Prisma.$SessionPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Create many Sessions.
|
|
* @param {SessionCreateManyArgs} args - Arguments to create many Sessions.
|
|
* @example
|
|
* // Create many Sessions
|
|
* const session = await prisma.session.createMany({
|
|
* data: [
|
|
* // ... provide data here
|
|
* ]
|
|
* })
|
|
*
|
|
*/
|
|
createMany<T extends SessionCreateManyArgs>(args?: SelectSubset<T, SessionCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
|
|
|
|
/**
|
|
* Create many Sessions and returns the data saved in the database.
|
|
* @param {SessionCreateManyAndReturnArgs} args - Arguments to create many Sessions.
|
|
* @example
|
|
* // Create many Sessions
|
|
* const session = await prisma.session.createManyAndReturn({
|
|
* data: [
|
|
* // ... provide data here
|
|
* ]
|
|
* })
|
|
*
|
|
* // Create many Sessions and only return the `id`
|
|
* const sessionWithIdOnly = await prisma.session.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 SessionCreateManyAndReturnArgs>(args?: SelectSubset<T, SessionCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$SessionPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>
|
|
|
|
/**
|
|
* Delete a Session.
|
|
* @param {SessionDeleteArgs} args - Arguments to delete one Session.
|
|
* @example
|
|
* // Delete one Session
|
|
* const Session = await prisma.session.delete({
|
|
* where: {
|
|
* // ... filter to delete one Session
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
delete<T extends SessionDeleteArgs>(args: SelectSubset<T, SessionDeleteArgs<ExtArgs>>): Prisma__SessionClient<$Result.GetResult<Prisma.$SessionPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Update one Session.
|
|
* @param {SessionUpdateArgs} args - Arguments to update one Session.
|
|
* @example
|
|
* // Update one Session
|
|
* const session = await prisma.session.update({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* },
|
|
* data: {
|
|
* // ... provide data here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
update<T extends SessionUpdateArgs>(args: SelectSubset<T, SessionUpdateArgs<ExtArgs>>): Prisma__SessionClient<$Result.GetResult<Prisma.$SessionPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Delete zero or more Sessions.
|
|
* @param {SessionDeleteManyArgs} args - Arguments to filter Sessions to delete.
|
|
* @example
|
|
* // Delete a few Sessions
|
|
* const { count } = await prisma.session.deleteMany({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
deleteMany<T extends SessionDeleteManyArgs>(args?: SelectSubset<T, SessionDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
|
|
|
|
/**
|
|
* Update zero or more Sessions.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {SessionUpdateManyArgs} args - Arguments to update one or more rows.
|
|
* @example
|
|
* // Update many Sessions
|
|
* const session = await prisma.session.updateMany({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* },
|
|
* data: {
|
|
* // ... provide data here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
updateMany<T extends SessionUpdateManyArgs>(args: SelectSubset<T, SessionUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
|
|
|
|
/**
|
|
* Update zero or more Sessions and returns the data updated in the database.
|
|
* @param {SessionUpdateManyAndReturnArgs} args - Arguments to update many Sessions.
|
|
* @example
|
|
* // Update many Sessions
|
|
* const session = await prisma.session.updateManyAndReturn({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* },
|
|
* data: [
|
|
* // ... provide data here
|
|
* ]
|
|
* })
|
|
*
|
|
* // Update zero or more Sessions and only return the `id`
|
|
* const sessionWithIdOnly = await prisma.session.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 SessionUpdateManyAndReturnArgs>(args: SelectSubset<T, SessionUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$SessionPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>
|
|
|
|
/**
|
|
* Create or update one Session.
|
|
* @param {SessionUpsertArgs} args - Arguments to update or create a Session.
|
|
* @example
|
|
* // Update or create a Session
|
|
* const session = await prisma.session.upsert({
|
|
* create: {
|
|
* // ... data to create a Session
|
|
* },
|
|
* update: {
|
|
* // ... in case it already exists, update
|
|
* },
|
|
* where: {
|
|
* // ... the filter for the Session we want to update
|
|
* }
|
|
* })
|
|
*/
|
|
upsert<T extends SessionUpsertArgs>(args: SelectSubset<T, SessionUpsertArgs<ExtArgs>>): Prisma__SessionClient<$Result.GetResult<Prisma.$SessionPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
|
|
/**
|
|
* Count the number of Sessions.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {SessionCountArgs} args - Arguments to filter Sessions to count.
|
|
* @example
|
|
* // Count the number of Sessions
|
|
* const count = await prisma.session.count({
|
|
* where: {
|
|
* // ... the filter for the Sessions we want to count
|
|
* }
|
|
* })
|
|
**/
|
|
count<T extends SessionCountArgs>(
|
|
args?: Subset<T, SessionCountArgs>,
|
|
): Prisma.PrismaPromise<
|
|
T extends $Utils.Record<'select', any>
|
|
? T['select'] extends true
|
|
? number
|
|
: GetScalarType<T['select'], SessionCountAggregateOutputType>
|
|
: number
|
|
>
|
|
|
|
/**
|
|
* Allows you to perform aggregations operations on a Session.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {SessionAggregateArgs} 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 SessionAggregateArgs>(args: Subset<T, SessionAggregateArgs>): Prisma.PrismaPromise<GetSessionAggregateType<T>>
|
|
|
|
/**
|
|
* Group by Session.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {SessionGroupByArgs} 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 SessionGroupByArgs,
|
|
HasSelectOrTake extends Or<
|
|
Extends<'skip', Keys<T>>,
|
|
Extends<'take', Keys<T>>
|
|
>,
|
|
OrderByArg extends True extends HasSelectOrTake
|
|
? { orderBy: SessionGroupByArgs['orderBy'] }
|
|
: { orderBy?: SessionGroupByArgs['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, SessionGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetSessionGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
|
|
/**
|
|
* Fields of the Session model
|
|
*/
|
|
readonly fields: SessionFieldRefs;
|
|
}
|
|
|
|
/**
|
|
* The delegate class that acts as a "Promise-like" for Session.
|
|
* 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__SessionClient<T, Null = never, ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
|
|
readonly [Symbol.toStringTag]: "PrismaPromise"
|
|
user<T extends UserDefaultArgs<ExtArgs> = {}>(args?: Subset<T, UserDefaultArgs<ExtArgs>>): Prisma__UserClient<$Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>
|
|
/**
|
|
* 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 Session model
|
|
*/
|
|
interface SessionFieldRefs {
|
|
readonly id: FieldRef<"Session", 'Int'>
|
|
readonly hash: FieldRef<"Session", 'String'>
|
|
readonly userId: FieldRef<"Session", 'Int'>
|
|
readonly createdAt: FieldRef<"Session", 'DateTime'>
|
|
readonly updatedAt: FieldRef<"Session", 'DateTime'>
|
|
}
|
|
|
|
|
|
// Custom InputTypes
|
|
/**
|
|
* Session findUnique
|
|
*/
|
|
export type SessionFindUniqueArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the Session
|
|
*/
|
|
select?: SessionSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the Session
|
|
*/
|
|
omit?: SessionOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: SessionInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which Session to fetch.
|
|
*/
|
|
where: SessionWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* Session findUniqueOrThrow
|
|
*/
|
|
export type SessionFindUniqueOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the Session
|
|
*/
|
|
select?: SessionSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the Session
|
|
*/
|
|
omit?: SessionOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: SessionInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which Session to fetch.
|
|
*/
|
|
where: SessionWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* Session findFirst
|
|
*/
|
|
export type SessionFindFirstArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the Session
|
|
*/
|
|
select?: SessionSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the Session
|
|
*/
|
|
omit?: SessionOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: SessionInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which Session to fetch.
|
|
*/
|
|
where?: SessionWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of Sessions to fetch.
|
|
*/
|
|
orderBy?: SessionOrderByWithRelationInput | SessionOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for searching for Sessions.
|
|
*/
|
|
cursor?: SessionWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` Sessions 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` Sessions.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
*
|
|
* Filter by unique combinations of Sessions.
|
|
*/
|
|
distinct?: SessionScalarFieldEnum | SessionScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* Session findFirstOrThrow
|
|
*/
|
|
export type SessionFindFirstOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the Session
|
|
*/
|
|
select?: SessionSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the Session
|
|
*/
|
|
omit?: SessionOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: SessionInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which Session to fetch.
|
|
*/
|
|
where?: SessionWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of Sessions to fetch.
|
|
*/
|
|
orderBy?: SessionOrderByWithRelationInput | SessionOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for searching for Sessions.
|
|
*/
|
|
cursor?: SessionWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` Sessions 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` Sessions.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
*
|
|
* Filter by unique combinations of Sessions.
|
|
*/
|
|
distinct?: SessionScalarFieldEnum | SessionScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* Session findMany
|
|
*/
|
|
export type SessionFindManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the Session
|
|
*/
|
|
select?: SessionSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the Session
|
|
*/
|
|
omit?: SessionOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: SessionInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which Sessions to fetch.
|
|
*/
|
|
where?: SessionWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of Sessions to fetch.
|
|
*/
|
|
orderBy?: SessionOrderByWithRelationInput | SessionOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for listing Sessions.
|
|
*/
|
|
cursor?: SessionWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` Sessions 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` Sessions.
|
|
*/
|
|
skip?: number
|
|
distinct?: SessionScalarFieldEnum | SessionScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* Session create
|
|
*/
|
|
export type SessionCreateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the Session
|
|
*/
|
|
select?: SessionSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the Session
|
|
*/
|
|
omit?: SessionOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: SessionInclude<ExtArgs> | null
|
|
/**
|
|
* The data needed to create a Session.
|
|
*/
|
|
data: XOR<SessionCreateInput, SessionUncheckedCreateInput>
|
|
}
|
|
|
|
/**
|
|
* Session createMany
|
|
*/
|
|
export type SessionCreateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* The data used to create many Sessions.
|
|
*/
|
|
data: SessionCreateManyInput | SessionCreateManyInput[]
|
|
skipDuplicates?: boolean
|
|
}
|
|
|
|
/**
|
|
* Session createManyAndReturn
|
|
*/
|
|
export type SessionCreateManyAndReturnArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the Session
|
|
*/
|
|
select?: SessionSelectCreateManyAndReturn<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the Session
|
|
*/
|
|
omit?: SessionOmit<ExtArgs> | null
|
|
/**
|
|
* The data used to create many Sessions.
|
|
*/
|
|
data: SessionCreateManyInput | SessionCreateManyInput[]
|
|
skipDuplicates?: boolean
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: SessionIncludeCreateManyAndReturn<ExtArgs> | null
|
|
}
|
|
|
|
/**
|
|
* Session update
|
|
*/
|
|
export type SessionUpdateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the Session
|
|
*/
|
|
select?: SessionSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the Session
|
|
*/
|
|
omit?: SessionOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: SessionInclude<ExtArgs> | null
|
|
/**
|
|
* The data needed to update a Session.
|
|
*/
|
|
data: XOR<SessionUpdateInput, SessionUncheckedUpdateInput>
|
|
/**
|
|
* Choose, which Session to update.
|
|
*/
|
|
where: SessionWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* Session updateMany
|
|
*/
|
|
export type SessionUpdateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* The data used to update Sessions.
|
|
*/
|
|
data: XOR<SessionUpdateManyMutationInput, SessionUncheckedUpdateManyInput>
|
|
/**
|
|
* Filter which Sessions to update
|
|
*/
|
|
where?: SessionWhereInput
|
|
/**
|
|
* Limit how many Sessions to update.
|
|
*/
|
|
limit?: number
|
|
}
|
|
|
|
/**
|
|
* Session updateManyAndReturn
|
|
*/
|
|
export type SessionUpdateManyAndReturnArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the Session
|
|
*/
|
|
select?: SessionSelectUpdateManyAndReturn<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the Session
|
|
*/
|
|
omit?: SessionOmit<ExtArgs> | null
|
|
/**
|
|
* The data used to update Sessions.
|
|
*/
|
|
data: XOR<SessionUpdateManyMutationInput, SessionUncheckedUpdateManyInput>
|
|
/**
|
|
* Filter which Sessions to update
|
|
*/
|
|
where?: SessionWhereInput
|
|
/**
|
|
* Limit how many Sessions to update.
|
|
*/
|
|
limit?: number
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: SessionIncludeUpdateManyAndReturn<ExtArgs> | null
|
|
}
|
|
|
|
/**
|
|
* Session upsert
|
|
*/
|
|
export type SessionUpsertArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the Session
|
|
*/
|
|
select?: SessionSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the Session
|
|
*/
|
|
omit?: SessionOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: SessionInclude<ExtArgs> | null
|
|
/**
|
|
* The filter to search for the Session to update in case it exists.
|
|
*/
|
|
where: SessionWhereUniqueInput
|
|
/**
|
|
* In case the Session found by the `where` argument doesn't exist, create a new Session with this data.
|
|
*/
|
|
create: XOR<SessionCreateInput, SessionUncheckedCreateInput>
|
|
/**
|
|
* In case the Session was found with the provided `where` argument, update it with this data.
|
|
*/
|
|
update: XOR<SessionUpdateInput, SessionUncheckedUpdateInput>
|
|
}
|
|
|
|
/**
|
|
* Session delete
|
|
*/
|
|
export type SessionDeleteArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the Session
|
|
*/
|
|
select?: SessionSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the Session
|
|
*/
|
|
omit?: SessionOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: SessionInclude<ExtArgs> | null
|
|
/**
|
|
* Filter which Session to delete.
|
|
*/
|
|
where: SessionWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* Session deleteMany
|
|
*/
|
|
export type SessionDeleteManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Filter which Sessions to delete
|
|
*/
|
|
where?: SessionWhereInput
|
|
/**
|
|
* Limit how many Sessions to delete.
|
|
*/
|
|
limit?: number
|
|
}
|
|
|
|
/**
|
|
* Session without action
|
|
*/
|
|
export type SessionDefaultArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the Session
|
|
*/
|
|
select?: SessionSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the Session
|
|
*/
|
|
omit?: SessionOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: SessionInclude<ExtArgs> | null
|
|
}
|
|
|
|
|
|
/**
|
|
* Model RepoConfig
|
|
*/
|
|
|
|
export type AggregateRepoConfig = {
|
|
_count: RepoConfigCountAggregateOutputType | null
|
|
_avg: RepoConfigAvgAggregateOutputType | null
|
|
_sum: RepoConfigSumAggregateOutputType | null
|
|
_min: RepoConfigMinAggregateOutputType | null
|
|
_max: RepoConfigMaxAggregateOutputType | null
|
|
}
|
|
|
|
export type RepoConfigAvgAggregateOutputType = {
|
|
id: number | null
|
|
userId: number | null
|
|
inactivityHours: number | null
|
|
port: number | null
|
|
}
|
|
|
|
export type RepoConfigSumAggregateOutputType = {
|
|
id: number | null
|
|
userId: number | null
|
|
inactivityHours: number | null
|
|
port: number | null
|
|
}
|
|
|
|
export type RepoConfigMinAggregateOutputType = {
|
|
id: number | null
|
|
userId: number | null
|
|
repoOwner: string | null
|
|
repoName: string | null
|
|
isEnabled: boolean | null
|
|
giteaWebhookId: string | null
|
|
instanceType: string | null
|
|
inactivityHours: number | null
|
|
port: number | null
|
|
useDockerCompose: boolean | null
|
|
composeFilePath: string | null
|
|
runCommand: string | null
|
|
createdAt: Date | null
|
|
updatedAt: Date | null
|
|
}
|
|
|
|
export type RepoConfigMaxAggregateOutputType = {
|
|
id: number | null
|
|
userId: number | null
|
|
repoOwner: string | null
|
|
repoName: string | null
|
|
isEnabled: boolean | null
|
|
giteaWebhookId: string | null
|
|
instanceType: string | null
|
|
inactivityHours: number | null
|
|
port: number | null
|
|
useDockerCompose: boolean | null
|
|
composeFilePath: string | null
|
|
runCommand: string | null
|
|
createdAt: Date | null
|
|
updatedAt: Date | null
|
|
}
|
|
|
|
export type RepoConfigCountAggregateOutputType = {
|
|
id: number
|
|
userId: number
|
|
repoOwner: number
|
|
repoName: number
|
|
isEnabled: number
|
|
giteaWebhookId: number
|
|
denyList: number
|
|
instanceType: number
|
|
inactivityHours: number
|
|
port: number
|
|
envVars: number
|
|
useDockerCompose: number
|
|
composeFilePath: number
|
|
aptPackages: number
|
|
setupCommands: number
|
|
buildCommands: number
|
|
postBuildCommands: number
|
|
runCommand: number
|
|
createdAt: number
|
|
updatedAt: number
|
|
_all: number
|
|
}
|
|
|
|
|
|
export type RepoConfigAvgAggregateInputType = {
|
|
id?: true
|
|
userId?: true
|
|
inactivityHours?: true
|
|
port?: true
|
|
}
|
|
|
|
export type RepoConfigSumAggregateInputType = {
|
|
id?: true
|
|
userId?: true
|
|
inactivityHours?: true
|
|
port?: true
|
|
}
|
|
|
|
export type RepoConfigMinAggregateInputType = {
|
|
id?: true
|
|
userId?: true
|
|
repoOwner?: true
|
|
repoName?: true
|
|
isEnabled?: true
|
|
giteaWebhookId?: true
|
|
instanceType?: true
|
|
inactivityHours?: true
|
|
port?: true
|
|
useDockerCompose?: true
|
|
composeFilePath?: true
|
|
runCommand?: true
|
|
createdAt?: true
|
|
updatedAt?: true
|
|
}
|
|
|
|
export type RepoConfigMaxAggregateInputType = {
|
|
id?: true
|
|
userId?: true
|
|
repoOwner?: true
|
|
repoName?: true
|
|
isEnabled?: true
|
|
giteaWebhookId?: true
|
|
instanceType?: true
|
|
inactivityHours?: true
|
|
port?: true
|
|
useDockerCompose?: true
|
|
composeFilePath?: true
|
|
runCommand?: true
|
|
createdAt?: true
|
|
updatedAt?: true
|
|
}
|
|
|
|
export type RepoConfigCountAggregateInputType = {
|
|
id?: true
|
|
userId?: true
|
|
repoOwner?: true
|
|
repoName?: true
|
|
isEnabled?: true
|
|
giteaWebhookId?: true
|
|
denyList?: true
|
|
instanceType?: true
|
|
inactivityHours?: true
|
|
port?: true
|
|
envVars?: true
|
|
useDockerCompose?: true
|
|
composeFilePath?: true
|
|
aptPackages?: true
|
|
setupCommands?: true
|
|
buildCommands?: true
|
|
postBuildCommands?: true
|
|
runCommand?: true
|
|
createdAt?: true
|
|
updatedAt?: true
|
|
_all?: true
|
|
}
|
|
|
|
export type RepoConfigAggregateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Filter which RepoConfig to aggregate.
|
|
*/
|
|
where?: RepoConfigWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of RepoConfigs to fetch.
|
|
*/
|
|
orderBy?: RepoConfigOrderByWithRelationInput | RepoConfigOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the start position
|
|
*/
|
|
cursor?: RepoConfigWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` RepoConfigs 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` RepoConfigs.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Count returned RepoConfigs
|
|
**/
|
|
_count?: true | RepoConfigCountAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to average
|
|
**/
|
|
_avg?: RepoConfigAvgAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to sum
|
|
**/
|
|
_sum?: RepoConfigSumAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to find the minimum value
|
|
**/
|
|
_min?: RepoConfigMinAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to find the maximum value
|
|
**/
|
|
_max?: RepoConfigMaxAggregateInputType
|
|
}
|
|
|
|
export type GetRepoConfigAggregateType<T extends RepoConfigAggregateArgs> = {
|
|
[P in keyof T & keyof AggregateRepoConfig]: P extends '_count' | 'count'
|
|
? T[P] extends true
|
|
? number
|
|
: GetScalarType<T[P], AggregateRepoConfig[P]>
|
|
: GetScalarType<T[P], AggregateRepoConfig[P]>
|
|
}
|
|
|
|
|
|
|
|
|
|
export type RepoConfigGroupByArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
where?: RepoConfigWhereInput
|
|
orderBy?: RepoConfigOrderByWithAggregationInput | RepoConfigOrderByWithAggregationInput[]
|
|
by: RepoConfigScalarFieldEnum[] | RepoConfigScalarFieldEnum
|
|
having?: RepoConfigScalarWhereWithAggregatesInput
|
|
take?: number
|
|
skip?: number
|
|
_count?: RepoConfigCountAggregateInputType | true
|
|
_avg?: RepoConfigAvgAggregateInputType
|
|
_sum?: RepoConfigSumAggregateInputType
|
|
_min?: RepoConfigMinAggregateInputType
|
|
_max?: RepoConfigMaxAggregateInputType
|
|
}
|
|
|
|
export type RepoConfigGroupByOutputType = {
|
|
id: number
|
|
userId: number
|
|
repoOwner: string
|
|
repoName: string
|
|
isEnabled: boolean
|
|
giteaWebhookId: string | null
|
|
denyList: string[]
|
|
instanceType: string
|
|
inactivityHours: number
|
|
port: number
|
|
envVars: JsonValue
|
|
useDockerCompose: boolean
|
|
composeFilePath: string | null
|
|
aptPackages: string[]
|
|
setupCommands: string[]
|
|
buildCommands: string[]
|
|
postBuildCommands: string[]
|
|
runCommand: string | null
|
|
createdAt: Date
|
|
updatedAt: Date
|
|
_count: RepoConfigCountAggregateOutputType | null
|
|
_avg: RepoConfigAvgAggregateOutputType | null
|
|
_sum: RepoConfigSumAggregateOutputType | null
|
|
_min: RepoConfigMinAggregateOutputType | null
|
|
_max: RepoConfigMaxAggregateOutputType | null
|
|
}
|
|
|
|
type GetRepoConfigGroupByPayload<T extends RepoConfigGroupByArgs> = Prisma.PrismaPromise<
|
|
Array<
|
|
PickEnumerable<RepoConfigGroupByOutputType, T['by']> &
|
|
{
|
|
[P in ((keyof T) & (keyof RepoConfigGroupByOutputType))]: P extends '_count'
|
|
? T[P] extends boolean
|
|
? number
|
|
: GetScalarType<T[P], RepoConfigGroupByOutputType[P]>
|
|
: GetScalarType<T[P], RepoConfigGroupByOutputType[P]>
|
|
}
|
|
>
|
|
>
|
|
|
|
|
|
export type RepoConfigSelect<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
|
|
id?: boolean
|
|
userId?: boolean
|
|
repoOwner?: boolean
|
|
repoName?: boolean
|
|
isEnabled?: boolean
|
|
giteaWebhookId?: boolean
|
|
denyList?: boolean
|
|
instanceType?: boolean
|
|
inactivityHours?: boolean
|
|
port?: boolean
|
|
envVars?: boolean
|
|
useDockerCompose?: boolean
|
|
composeFilePath?: boolean
|
|
aptPackages?: boolean
|
|
setupCommands?: boolean
|
|
buildCommands?: boolean
|
|
postBuildCommands?: boolean
|
|
runCommand?: boolean
|
|
createdAt?: boolean
|
|
updatedAt?: boolean
|
|
user?: boolean | UserDefaultArgs<ExtArgs>
|
|
previews?: boolean | RepoConfig$previewsArgs<ExtArgs>
|
|
_count?: boolean | RepoConfigCountOutputTypeDefaultArgs<ExtArgs>
|
|
}, ExtArgs["result"]["repoConfig"]>
|
|
|
|
export type RepoConfigSelectCreateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
|
|
id?: boolean
|
|
userId?: boolean
|
|
repoOwner?: boolean
|
|
repoName?: boolean
|
|
isEnabled?: boolean
|
|
giteaWebhookId?: boolean
|
|
denyList?: boolean
|
|
instanceType?: boolean
|
|
inactivityHours?: boolean
|
|
port?: boolean
|
|
envVars?: boolean
|
|
useDockerCompose?: boolean
|
|
composeFilePath?: boolean
|
|
aptPackages?: boolean
|
|
setupCommands?: boolean
|
|
buildCommands?: boolean
|
|
postBuildCommands?: boolean
|
|
runCommand?: boolean
|
|
createdAt?: boolean
|
|
updatedAt?: boolean
|
|
user?: boolean | UserDefaultArgs<ExtArgs>
|
|
}, ExtArgs["result"]["repoConfig"]>
|
|
|
|
export type RepoConfigSelectUpdateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
|
|
id?: boolean
|
|
userId?: boolean
|
|
repoOwner?: boolean
|
|
repoName?: boolean
|
|
isEnabled?: boolean
|
|
giteaWebhookId?: boolean
|
|
denyList?: boolean
|
|
instanceType?: boolean
|
|
inactivityHours?: boolean
|
|
port?: boolean
|
|
envVars?: boolean
|
|
useDockerCompose?: boolean
|
|
composeFilePath?: boolean
|
|
aptPackages?: boolean
|
|
setupCommands?: boolean
|
|
buildCommands?: boolean
|
|
postBuildCommands?: boolean
|
|
runCommand?: boolean
|
|
createdAt?: boolean
|
|
updatedAt?: boolean
|
|
user?: boolean | UserDefaultArgs<ExtArgs>
|
|
}, ExtArgs["result"]["repoConfig"]>
|
|
|
|
export type RepoConfigSelectScalar = {
|
|
id?: boolean
|
|
userId?: boolean
|
|
repoOwner?: boolean
|
|
repoName?: boolean
|
|
isEnabled?: boolean
|
|
giteaWebhookId?: boolean
|
|
denyList?: boolean
|
|
instanceType?: boolean
|
|
inactivityHours?: boolean
|
|
port?: boolean
|
|
envVars?: boolean
|
|
useDockerCompose?: boolean
|
|
composeFilePath?: boolean
|
|
aptPackages?: boolean
|
|
setupCommands?: boolean
|
|
buildCommands?: boolean
|
|
postBuildCommands?: boolean
|
|
runCommand?: boolean
|
|
createdAt?: boolean
|
|
updatedAt?: boolean
|
|
}
|
|
|
|
export type RepoConfigOmit<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetOmit<"id" | "userId" | "repoOwner" | "repoName" | "isEnabled" | "giteaWebhookId" | "denyList" | "instanceType" | "inactivityHours" | "port" | "envVars" | "useDockerCompose" | "composeFilePath" | "aptPackages" | "setupCommands" | "buildCommands" | "postBuildCommands" | "runCommand" | "createdAt" | "updatedAt", ExtArgs["result"]["repoConfig"]>
|
|
export type RepoConfigInclude<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
user?: boolean | UserDefaultArgs<ExtArgs>
|
|
previews?: boolean | RepoConfig$previewsArgs<ExtArgs>
|
|
_count?: boolean | RepoConfigCountOutputTypeDefaultArgs<ExtArgs>
|
|
}
|
|
export type RepoConfigIncludeCreateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
user?: boolean | UserDefaultArgs<ExtArgs>
|
|
}
|
|
export type RepoConfigIncludeUpdateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
user?: boolean | UserDefaultArgs<ExtArgs>
|
|
}
|
|
|
|
export type $RepoConfigPayload<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
name: "RepoConfig"
|
|
objects: {
|
|
user: Prisma.$UserPayload<ExtArgs>
|
|
previews: Prisma.$PreviewPayload<ExtArgs>[]
|
|
}
|
|
scalars: $Extensions.GetPayloadResult<{
|
|
id: number
|
|
userId: number
|
|
repoOwner: string
|
|
repoName: string
|
|
isEnabled: boolean
|
|
giteaWebhookId: string | null
|
|
denyList: string[]
|
|
instanceType: string
|
|
inactivityHours: number
|
|
port: number
|
|
envVars: Prisma.JsonValue
|
|
useDockerCompose: boolean
|
|
composeFilePath: string | null
|
|
aptPackages: string[]
|
|
setupCommands: string[]
|
|
buildCommands: string[]
|
|
postBuildCommands: string[]
|
|
runCommand: string | null
|
|
createdAt: Date
|
|
updatedAt: Date
|
|
}, ExtArgs["result"]["repoConfig"]>
|
|
composites: {}
|
|
}
|
|
|
|
type RepoConfigGetPayload<S extends boolean | null | undefined | RepoConfigDefaultArgs> = $Result.GetResult<Prisma.$RepoConfigPayload, S>
|
|
|
|
type RepoConfigCountArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> =
|
|
Omit<RepoConfigFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
|
|
select?: RepoConfigCountAggregateInputType | true
|
|
}
|
|
|
|
export interface RepoConfigDelegate<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs, GlobalOmitOptions = {}> {
|
|
[K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['RepoConfig'], meta: { name: 'RepoConfig' } }
|
|
/**
|
|
* Find zero or one RepoConfig that matches the filter.
|
|
* @param {RepoConfigFindUniqueArgs} args - Arguments to find a RepoConfig
|
|
* @example
|
|
* // Get one RepoConfig
|
|
* const repoConfig = await prisma.repoConfig.findUnique({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findUnique<T extends RepoConfigFindUniqueArgs>(args: SelectSubset<T, RepoConfigFindUniqueArgs<ExtArgs>>): Prisma__RepoConfigClient<$Result.GetResult<Prisma.$RepoConfigPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Find one RepoConfig that matches the filter or throw an error with `error.code='P2025'`
|
|
* if no matches were found.
|
|
* @param {RepoConfigFindUniqueOrThrowArgs} args - Arguments to find a RepoConfig
|
|
* @example
|
|
* // Get one RepoConfig
|
|
* const repoConfig = await prisma.repoConfig.findUniqueOrThrow({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findUniqueOrThrow<T extends RepoConfigFindUniqueOrThrowArgs>(args: SelectSubset<T, RepoConfigFindUniqueOrThrowArgs<ExtArgs>>): Prisma__RepoConfigClient<$Result.GetResult<Prisma.$RepoConfigPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Find the first RepoConfig 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 {RepoConfigFindFirstArgs} args - Arguments to find a RepoConfig
|
|
* @example
|
|
* // Get one RepoConfig
|
|
* const repoConfig = await prisma.repoConfig.findFirst({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findFirst<T extends RepoConfigFindFirstArgs>(args?: SelectSubset<T, RepoConfigFindFirstArgs<ExtArgs>>): Prisma__RepoConfigClient<$Result.GetResult<Prisma.$RepoConfigPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Find the first RepoConfig 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 {RepoConfigFindFirstOrThrowArgs} args - Arguments to find a RepoConfig
|
|
* @example
|
|
* // Get one RepoConfig
|
|
* const repoConfig = await prisma.repoConfig.findFirstOrThrow({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findFirstOrThrow<T extends RepoConfigFindFirstOrThrowArgs>(args?: SelectSubset<T, RepoConfigFindFirstOrThrowArgs<ExtArgs>>): Prisma__RepoConfigClient<$Result.GetResult<Prisma.$RepoConfigPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Find zero or more RepoConfigs 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 {RepoConfigFindManyArgs} args - Arguments to filter and select certain fields only.
|
|
* @example
|
|
* // Get all RepoConfigs
|
|
* const repoConfigs = await prisma.repoConfig.findMany()
|
|
*
|
|
* // Get first 10 RepoConfigs
|
|
* const repoConfigs = await prisma.repoConfig.findMany({ take: 10 })
|
|
*
|
|
* // Only select the `id`
|
|
* const repoConfigWithIdOnly = await prisma.repoConfig.findMany({ select: { id: true } })
|
|
*
|
|
*/
|
|
findMany<T extends RepoConfigFindManyArgs>(args?: SelectSubset<T, RepoConfigFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$RepoConfigPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
|
|
|
|
/**
|
|
* Create a RepoConfig.
|
|
* @param {RepoConfigCreateArgs} args - Arguments to create a RepoConfig.
|
|
* @example
|
|
* // Create one RepoConfig
|
|
* const RepoConfig = await prisma.repoConfig.create({
|
|
* data: {
|
|
* // ... data to create a RepoConfig
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
create<T extends RepoConfigCreateArgs>(args: SelectSubset<T, RepoConfigCreateArgs<ExtArgs>>): Prisma__RepoConfigClient<$Result.GetResult<Prisma.$RepoConfigPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Create many RepoConfigs.
|
|
* @param {RepoConfigCreateManyArgs} args - Arguments to create many RepoConfigs.
|
|
* @example
|
|
* // Create many RepoConfigs
|
|
* const repoConfig = await prisma.repoConfig.createMany({
|
|
* data: [
|
|
* // ... provide data here
|
|
* ]
|
|
* })
|
|
*
|
|
*/
|
|
createMany<T extends RepoConfigCreateManyArgs>(args?: SelectSubset<T, RepoConfigCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
|
|
|
|
/**
|
|
* Create many RepoConfigs and returns the data saved in the database.
|
|
* @param {RepoConfigCreateManyAndReturnArgs} args - Arguments to create many RepoConfigs.
|
|
* @example
|
|
* // Create many RepoConfigs
|
|
* const repoConfig = await prisma.repoConfig.createManyAndReturn({
|
|
* data: [
|
|
* // ... provide data here
|
|
* ]
|
|
* })
|
|
*
|
|
* // Create many RepoConfigs and only return the `id`
|
|
* const repoConfigWithIdOnly = await prisma.repoConfig.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 RepoConfigCreateManyAndReturnArgs>(args?: SelectSubset<T, RepoConfigCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$RepoConfigPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>
|
|
|
|
/**
|
|
* Delete a RepoConfig.
|
|
* @param {RepoConfigDeleteArgs} args - Arguments to delete one RepoConfig.
|
|
* @example
|
|
* // Delete one RepoConfig
|
|
* const RepoConfig = await prisma.repoConfig.delete({
|
|
* where: {
|
|
* // ... filter to delete one RepoConfig
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
delete<T extends RepoConfigDeleteArgs>(args: SelectSubset<T, RepoConfigDeleteArgs<ExtArgs>>): Prisma__RepoConfigClient<$Result.GetResult<Prisma.$RepoConfigPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Update one RepoConfig.
|
|
* @param {RepoConfigUpdateArgs} args - Arguments to update one RepoConfig.
|
|
* @example
|
|
* // Update one RepoConfig
|
|
* const repoConfig = await prisma.repoConfig.update({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* },
|
|
* data: {
|
|
* // ... provide data here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
update<T extends RepoConfigUpdateArgs>(args: SelectSubset<T, RepoConfigUpdateArgs<ExtArgs>>): Prisma__RepoConfigClient<$Result.GetResult<Prisma.$RepoConfigPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Delete zero or more RepoConfigs.
|
|
* @param {RepoConfigDeleteManyArgs} args - Arguments to filter RepoConfigs to delete.
|
|
* @example
|
|
* // Delete a few RepoConfigs
|
|
* const { count } = await prisma.repoConfig.deleteMany({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
deleteMany<T extends RepoConfigDeleteManyArgs>(args?: SelectSubset<T, RepoConfigDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
|
|
|
|
/**
|
|
* Update zero or more RepoConfigs.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {RepoConfigUpdateManyArgs} args - Arguments to update one or more rows.
|
|
* @example
|
|
* // Update many RepoConfigs
|
|
* const repoConfig = await prisma.repoConfig.updateMany({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* },
|
|
* data: {
|
|
* // ... provide data here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
updateMany<T extends RepoConfigUpdateManyArgs>(args: SelectSubset<T, RepoConfigUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
|
|
|
|
/**
|
|
* Update zero or more RepoConfigs and returns the data updated in the database.
|
|
* @param {RepoConfigUpdateManyAndReturnArgs} args - Arguments to update many RepoConfigs.
|
|
* @example
|
|
* // Update many RepoConfigs
|
|
* const repoConfig = await prisma.repoConfig.updateManyAndReturn({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* },
|
|
* data: [
|
|
* // ... provide data here
|
|
* ]
|
|
* })
|
|
*
|
|
* // Update zero or more RepoConfigs and only return the `id`
|
|
* const repoConfigWithIdOnly = await prisma.repoConfig.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 RepoConfigUpdateManyAndReturnArgs>(args: SelectSubset<T, RepoConfigUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$RepoConfigPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>
|
|
|
|
/**
|
|
* Create or update one RepoConfig.
|
|
* @param {RepoConfigUpsertArgs} args - Arguments to update or create a RepoConfig.
|
|
* @example
|
|
* // Update or create a RepoConfig
|
|
* const repoConfig = await prisma.repoConfig.upsert({
|
|
* create: {
|
|
* // ... data to create a RepoConfig
|
|
* },
|
|
* update: {
|
|
* // ... in case it already exists, update
|
|
* },
|
|
* where: {
|
|
* // ... the filter for the RepoConfig we want to update
|
|
* }
|
|
* })
|
|
*/
|
|
upsert<T extends RepoConfigUpsertArgs>(args: SelectSubset<T, RepoConfigUpsertArgs<ExtArgs>>): Prisma__RepoConfigClient<$Result.GetResult<Prisma.$RepoConfigPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
|
|
/**
|
|
* Count the number of RepoConfigs.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {RepoConfigCountArgs} args - Arguments to filter RepoConfigs to count.
|
|
* @example
|
|
* // Count the number of RepoConfigs
|
|
* const count = await prisma.repoConfig.count({
|
|
* where: {
|
|
* // ... the filter for the RepoConfigs we want to count
|
|
* }
|
|
* })
|
|
**/
|
|
count<T extends RepoConfigCountArgs>(
|
|
args?: Subset<T, RepoConfigCountArgs>,
|
|
): Prisma.PrismaPromise<
|
|
T extends $Utils.Record<'select', any>
|
|
? T['select'] extends true
|
|
? number
|
|
: GetScalarType<T['select'], RepoConfigCountAggregateOutputType>
|
|
: number
|
|
>
|
|
|
|
/**
|
|
* Allows you to perform aggregations operations on a RepoConfig.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {RepoConfigAggregateArgs} 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 RepoConfigAggregateArgs>(args: Subset<T, RepoConfigAggregateArgs>): Prisma.PrismaPromise<GetRepoConfigAggregateType<T>>
|
|
|
|
/**
|
|
* Group by RepoConfig.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {RepoConfigGroupByArgs} 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 RepoConfigGroupByArgs,
|
|
HasSelectOrTake extends Or<
|
|
Extends<'skip', Keys<T>>,
|
|
Extends<'take', Keys<T>>
|
|
>,
|
|
OrderByArg extends True extends HasSelectOrTake
|
|
? { orderBy: RepoConfigGroupByArgs['orderBy'] }
|
|
: { orderBy?: RepoConfigGroupByArgs['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, RepoConfigGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetRepoConfigGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
|
|
/**
|
|
* Fields of the RepoConfig model
|
|
*/
|
|
readonly fields: RepoConfigFieldRefs;
|
|
}
|
|
|
|
/**
|
|
* The delegate class that acts as a "Promise-like" for RepoConfig.
|
|
* 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__RepoConfigClient<T, Null = never, ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
|
|
readonly [Symbol.toStringTag]: "PrismaPromise"
|
|
user<T extends UserDefaultArgs<ExtArgs> = {}>(args?: Subset<T, UserDefaultArgs<ExtArgs>>): Prisma__UserClient<$Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>
|
|
previews<T extends RepoConfig$previewsArgs<ExtArgs> = {}>(args?: Subset<T, RepoConfig$previewsArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$PreviewPayload<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 RepoConfig model
|
|
*/
|
|
interface RepoConfigFieldRefs {
|
|
readonly id: FieldRef<"RepoConfig", 'Int'>
|
|
readonly userId: FieldRef<"RepoConfig", 'Int'>
|
|
readonly repoOwner: FieldRef<"RepoConfig", 'String'>
|
|
readonly repoName: FieldRef<"RepoConfig", 'String'>
|
|
readonly isEnabled: FieldRef<"RepoConfig", 'Boolean'>
|
|
readonly giteaWebhookId: FieldRef<"RepoConfig", 'String'>
|
|
readonly denyList: FieldRef<"RepoConfig", 'String[]'>
|
|
readonly instanceType: FieldRef<"RepoConfig", 'String'>
|
|
readonly inactivityHours: FieldRef<"RepoConfig", 'Float'>
|
|
readonly port: FieldRef<"RepoConfig", 'Int'>
|
|
readonly envVars: FieldRef<"RepoConfig", 'Json'>
|
|
readonly useDockerCompose: FieldRef<"RepoConfig", 'Boolean'>
|
|
readonly composeFilePath: FieldRef<"RepoConfig", 'String'>
|
|
readonly aptPackages: FieldRef<"RepoConfig", 'String[]'>
|
|
readonly setupCommands: FieldRef<"RepoConfig", 'String[]'>
|
|
readonly buildCommands: FieldRef<"RepoConfig", 'String[]'>
|
|
readonly postBuildCommands: FieldRef<"RepoConfig", 'String[]'>
|
|
readonly runCommand: FieldRef<"RepoConfig", 'String'>
|
|
readonly createdAt: FieldRef<"RepoConfig", 'DateTime'>
|
|
readonly updatedAt: FieldRef<"RepoConfig", 'DateTime'>
|
|
}
|
|
|
|
|
|
// Custom InputTypes
|
|
/**
|
|
* RepoConfig findUnique
|
|
*/
|
|
export type RepoConfigFindUniqueArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the RepoConfig
|
|
*/
|
|
select?: RepoConfigSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the RepoConfig
|
|
*/
|
|
omit?: RepoConfigOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: RepoConfigInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which RepoConfig to fetch.
|
|
*/
|
|
where: RepoConfigWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* RepoConfig findUniqueOrThrow
|
|
*/
|
|
export type RepoConfigFindUniqueOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the RepoConfig
|
|
*/
|
|
select?: RepoConfigSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the RepoConfig
|
|
*/
|
|
omit?: RepoConfigOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: RepoConfigInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which RepoConfig to fetch.
|
|
*/
|
|
where: RepoConfigWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* RepoConfig findFirst
|
|
*/
|
|
export type RepoConfigFindFirstArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the RepoConfig
|
|
*/
|
|
select?: RepoConfigSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the RepoConfig
|
|
*/
|
|
omit?: RepoConfigOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: RepoConfigInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which RepoConfig to fetch.
|
|
*/
|
|
where?: RepoConfigWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of RepoConfigs to fetch.
|
|
*/
|
|
orderBy?: RepoConfigOrderByWithRelationInput | RepoConfigOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for searching for RepoConfigs.
|
|
*/
|
|
cursor?: RepoConfigWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` RepoConfigs 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` RepoConfigs.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
*
|
|
* Filter by unique combinations of RepoConfigs.
|
|
*/
|
|
distinct?: RepoConfigScalarFieldEnum | RepoConfigScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* RepoConfig findFirstOrThrow
|
|
*/
|
|
export type RepoConfigFindFirstOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the RepoConfig
|
|
*/
|
|
select?: RepoConfigSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the RepoConfig
|
|
*/
|
|
omit?: RepoConfigOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: RepoConfigInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which RepoConfig to fetch.
|
|
*/
|
|
where?: RepoConfigWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of RepoConfigs to fetch.
|
|
*/
|
|
orderBy?: RepoConfigOrderByWithRelationInput | RepoConfigOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for searching for RepoConfigs.
|
|
*/
|
|
cursor?: RepoConfigWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` RepoConfigs 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` RepoConfigs.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
*
|
|
* Filter by unique combinations of RepoConfigs.
|
|
*/
|
|
distinct?: RepoConfigScalarFieldEnum | RepoConfigScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* RepoConfig findMany
|
|
*/
|
|
export type RepoConfigFindManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the RepoConfig
|
|
*/
|
|
select?: RepoConfigSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the RepoConfig
|
|
*/
|
|
omit?: RepoConfigOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: RepoConfigInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which RepoConfigs to fetch.
|
|
*/
|
|
where?: RepoConfigWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of RepoConfigs to fetch.
|
|
*/
|
|
orderBy?: RepoConfigOrderByWithRelationInput | RepoConfigOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for listing RepoConfigs.
|
|
*/
|
|
cursor?: RepoConfigWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` RepoConfigs 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` RepoConfigs.
|
|
*/
|
|
skip?: number
|
|
distinct?: RepoConfigScalarFieldEnum | RepoConfigScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* RepoConfig create
|
|
*/
|
|
export type RepoConfigCreateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the RepoConfig
|
|
*/
|
|
select?: RepoConfigSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the RepoConfig
|
|
*/
|
|
omit?: RepoConfigOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: RepoConfigInclude<ExtArgs> | null
|
|
/**
|
|
* The data needed to create a RepoConfig.
|
|
*/
|
|
data: XOR<RepoConfigCreateInput, RepoConfigUncheckedCreateInput>
|
|
}
|
|
|
|
/**
|
|
* RepoConfig createMany
|
|
*/
|
|
export type RepoConfigCreateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* The data used to create many RepoConfigs.
|
|
*/
|
|
data: RepoConfigCreateManyInput | RepoConfigCreateManyInput[]
|
|
skipDuplicates?: boolean
|
|
}
|
|
|
|
/**
|
|
* RepoConfig createManyAndReturn
|
|
*/
|
|
export type RepoConfigCreateManyAndReturnArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the RepoConfig
|
|
*/
|
|
select?: RepoConfigSelectCreateManyAndReturn<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the RepoConfig
|
|
*/
|
|
omit?: RepoConfigOmit<ExtArgs> | null
|
|
/**
|
|
* The data used to create many RepoConfigs.
|
|
*/
|
|
data: RepoConfigCreateManyInput | RepoConfigCreateManyInput[]
|
|
skipDuplicates?: boolean
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: RepoConfigIncludeCreateManyAndReturn<ExtArgs> | null
|
|
}
|
|
|
|
/**
|
|
* RepoConfig update
|
|
*/
|
|
export type RepoConfigUpdateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the RepoConfig
|
|
*/
|
|
select?: RepoConfigSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the RepoConfig
|
|
*/
|
|
omit?: RepoConfigOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: RepoConfigInclude<ExtArgs> | null
|
|
/**
|
|
* The data needed to update a RepoConfig.
|
|
*/
|
|
data: XOR<RepoConfigUpdateInput, RepoConfigUncheckedUpdateInput>
|
|
/**
|
|
* Choose, which RepoConfig to update.
|
|
*/
|
|
where: RepoConfigWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* RepoConfig updateMany
|
|
*/
|
|
export type RepoConfigUpdateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* The data used to update RepoConfigs.
|
|
*/
|
|
data: XOR<RepoConfigUpdateManyMutationInput, RepoConfigUncheckedUpdateManyInput>
|
|
/**
|
|
* Filter which RepoConfigs to update
|
|
*/
|
|
where?: RepoConfigWhereInput
|
|
/**
|
|
* Limit how many RepoConfigs to update.
|
|
*/
|
|
limit?: number
|
|
}
|
|
|
|
/**
|
|
* RepoConfig updateManyAndReturn
|
|
*/
|
|
export type RepoConfigUpdateManyAndReturnArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the RepoConfig
|
|
*/
|
|
select?: RepoConfigSelectUpdateManyAndReturn<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the RepoConfig
|
|
*/
|
|
omit?: RepoConfigOmit<ExtArgs> | null
|
|
/**
|
|
* The data used to update RepoConfigs.
|
|
*/
|
|
data: XOR<RepoConfigUpdateManyMutationInput, RepoConfigUncheckedUpdateManyInput>
|
|
/**
|
|
* Filter which RepoConfigs to update
|
|
*/
|
|
where?: RepoConfigWhereInput
|
|
/**
|
|
* Limit how many RepoConfigs to update.
|
|
*/
|
|
limit?: number
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: RepoConfigIncludeUpdateManyAndReturn<ExtArgs> | null
|
|
}
|
|
|
|
/**
|
|
* RepoConfig upsert
|
|
*/
|
|
export type RepoConfigUpsertArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the RepoConfig
|
|
*/
|
|
select?: RepoConfigSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the RepoConfig
|
|
*/
|
|
omit?: RepoConfigOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: RepoConfigInclude<ExtArgs> | null
|
|
/**
|
|
* The filter to search for the RepoConfig to update in case it exists.
|
|
*/
|
|
where: RepoConfigWhereUniqueInput
|
|
/**
|
|
* In case the RepoConfig found by the `where` argument doesn't exist, create a new RepoConfig with this data.
|
|
*/
|
|
create: XOR<RepoConfigCreateInput, RepoConfigUncheckedCreateInput>
|
|
/**
|
|
* In case the RepoConfig was found with the provided `where` argument, update it with this data.
|
|
*/
|
|
update: XOR<RepoConfigUpdateInput, RepoConfigUncheckedUpdateInput>
|
|
}
|
|
|
|
/**
|
|
* RepoConfig delete
|
|
*/
|
|
export type RepoConfigDeleteArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the RepoConfig
|
|
*/
|
|
select?: RepoConfigSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the RepoConfig
|
|
*/
|
|
omit?: RepoConfigOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: RepoConfigInclude<ExtArgs> | null
|
|
/**
|
|
* Filter which RepoConfig to delete.
|
|
*/
|
|
where: RepoConfigWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* RepoConfig deleteMany
|
|
*/
|
|
export type RepoConfigDeleteManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Filter which RepoConfigs to delete
|
|
*/
|
|
where?: RepoConfigWhereInput
|
|
/**
|
|
* Limit how many RepoConfigs to delete.
|
|
*/
|
|
limit?: number
|
|
}
|
|
|
|
/**
|
|
* RepoConfig.previews
|
|
*/
|
|
export type RepoConfig$previewsArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the Preview
|
|
*/
|
|
select?: PreviewSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the Preview
|
|
*/
|
|
omit?: PreviewOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: PreviewInclude<ExtArgs> | null
|
|
where?: PreviewWhereInput
|
|
orderBy?: PreviewOrderByWithRelationInput | PreviewOrderByWithRelationInput[]
|
|
cursor?: PreviewWhereUniqueInput
|
|
take?: number
|
|
skip?: number
|
|
distinct?: PreviewScalarFieldEnum | PreviewScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* RepoConfig without action
|
|
*/
|
|
export type RepoConfigDefaultArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the RepoConfig
|
|
*/
|
|
select?: RepoConfigSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the RepoConfig
|
|
*/
|
|
omit?: RepoConfigOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: RepoConfigInclude<ExtArgs> | null
|
|
}
|
|
|
|
|
|
/**
|
|
* Model Preview
|
|
*/
|
|
|
|
export type AggregatePreview = {
|
|
_count: PreviewCountAggregateOutputType | null
|
|
_avg: PreviewAvgAggregateOutputType | null
|
|
_sum: PreviewSumAggregateOutputType | null
|
|
_min: PreviewMinAggregateOutputType | null
|
|
_max: PreviewMaxAggregateOutputType | null
|
|
}
|
|
|
|
export type PreviewAvgAggregateOutputType = {
|
|
id: number | null
|
|
repoConfigId: number | null
|
|
prNumber: number | null
|
|
port: number | null
|
|
pid: number | null
|
|
giteaCommentId: number | null
|
|
}
|
|
|
|
export type PreviewSumAggregateOutputType = {
|
|
id: number | null
|
|
repoConfigId: number | null
|
|
prNumber: number | null
|
|
port: number | null
|
|
pid: number | null
|
|
giteaCommentId: number | null
|
|
}
|
|
|
|
export type PreviewMinAggregateOutputType = {
|
|
id: number | null
|
|
repoConfigId: number | null
|
|
prNumber: number | null
|
|
prTitle: string | null
|
|
commitSha: string | null
|
|
instanceId: string | null
|
|
instanceIp: string | null
|
|
port: number | null
|
|
status: $Enums.PreviewStatus | null
|
|
logs: string | null
|
|
pid: number | null
|
|
sshPrivateKey: string | null
|
|
sshKeyName: string | null
|
|
giteaCommentId: number | null
|
|
lastActivityAt: Date | null
|
|
createdAt: Date | null
|
|
updatedAt: Date | null
|
|
stoppedAt: Date | null
|
|
}
|
|
|
|
export type PreviewMaxAggregateOutputType = {
|
|
id: number | null
|
|
repoConfigId: number | null
|
|
prNumber: number | null
|
|
prTitle: string | null
|
|
commitSha: string | null
|
|
instanceId: string | null
|
|
instanceIp: string | null
|
|
port: number | null
|
|
status: $Enums.PreviewStatus | null
|
|
logs: string | null
|
|
pid: number | null
|
|
sshPrivateKey: string | null
|
|
sshKeyName: string | null
|
|
giteaCommentId: number | null
|
|
lastActivityAt: Date | null
|
|
createdAt: Date | null
|
|
updatedAt: Date | null
|
|
stoppedAt: Date | null
|
|
}
|
|
|
|
export type PreviewCountAggregateOutputType = {
|
|
id: number
|
|
repoConfigId: number
|
|
prNumber: number
|
|
prTitle: number
|
|
commitSha: number
|
|
instanceId: number
|
|
instanceIp: number
|
|
port: number
|
|
status: number
|
|
logs: number
|
|
pid: number
|
|
sshPrivateKey: number
|
|
sshKeyName: number
|
|
giteaCommentId: number
|
|
lastActivityAt: number
|
|
createdAt: number
|
|
updatedAt: number
|
|
stoppedAt: number
|
|
_all: number
|
|
}
|
|
|
|
|
|
export type PreviewAvgAggregateInputType = {
|
|
id?: true
|
|
repoConfigId?: true
|
|
prNumber?: true
|
|
port?: true
|
|
pid?: true
|
|
giteaCommentId?: true
|
|
}
|
|
|
|
export type PreviewSumAggregateInputType = {
|
|
id?: true
|
|
repoConfigId?: true
|
|
prNumber?: true
|
|
port?: true
|
|
pid?: true
|
|
giteaCommentId?: true
|
|
}
|
|
|
|
export type PreviewMinAggregateInputType = {
|
|
id?: true
|
|
repoConfigId?: true
|
|
prNumber?: true
|
|
prTitle?: true
|
|
commitSha?: true
|
|
instanceId?: true
|
|
instanceIp?: true
|
|
port?: true
|
|
status?: true
|
|
logs?: true
|
|
pid?: true
|
|
sshPrivateKey?: true
|
|
sshKeyName?: true
|
|
giteaCommentId?: true
|
|
lastActivityAt?: true
|
|
createdAt?: true
|
|
updatedAt?: true
|
|
stoppedAt?: true
|
|
}
|
|
|
|
export type PreviewMaxAggregateInputType = {
|
|
id?: true
|
|
repoConfigId?: true
|
|
prNumber?: true
|
|
prTitle?: true
|
|
commitSha?: true
|
|
instanceId?: true
|
|
instanceIp?: true
|
|
port?: true
|
|
status?: true
|
|
logs?: true
|
|
pid?: true
|
|
sshPrivateKey?: true
|
|
sshKeyName?: true
|
|
giteaCommentId?: true
|
|
lastActivityAt?: true
|
|
createdAt?: true
|
|
updatedAt?: true
|
|
stoppedAt?: true
|
|
}
|
|
|
|
export type PreviewCountAggregateInputType = {
|
|
id?: true
|
|
repoConfigId?: true
|
|
prNumber?: true
|
|
prTitle?: true
|
|
commitSha?: true
|
|
instanceId?: true
|
|
instanceIp?: true
|
|
port?: true
|
|
status?: true
|
|
logs?: true
|
|
pid?: true
|
|
sshPrivateKey?: true
|
|
sshKeyName?: true
|
|
giteaCommentId?: true
|
|
lastActivityAt?: true
|
|
createdAt?: true
|
|
updatedAt?: true
|
|
stoppedAt?: true
|
|
_all?: true
|
|
}
|
|
|
|
export type PreviewAggregateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Filter which Preview to aggregate.
|
|
*/
|
|
where?: PreviewWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of Previews to fetch.
|
|
*/
|
|
orderBy?: PreviewOrderByWithRelationInput | PreviewOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the start position
|
|
*/
|
|
cursor?: PreviewWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` Previews 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` Previews.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Count returned Previews
|
|
**/
|
|
_count?: true | PreviewCountAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to average
|
|
**/
|
|
_avg?: PreviewAvgAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to sum
|
|
**/
|
|
_sum?: PreviewSumAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to find the minimum value
|
|
**/
|
|
_min?: PreviewMinAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to find the maximum value
|
|
**/
|
|
_max?: PreviewMaxAggregateInputType
|
|
}
|
|
|
|
export type GetPreviewAggregateType<T extends PreviewAggregateArgs> = {
|
|
[P in keyof T & keyof AggregatePreview]: P extends '_count' | 'count'
|
|
? T[P] extends true
|
|
? number
|
|
: GetScalarType<T[P], AggregatePreview[P]>
|
|
: GetScalarType<T[P], AggregatePreview[P]>
|
|
}
|
|
|
|
|
|
|
|
|
|
export type PreviewGroupByArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
where?: PreviewWhereInput
|
|
orderBy?: PreviewOrderByWithAggregationInput | PreviewOrderByWithAggregationInput[]
|
|
by: PreviewScalarFieldEnum[] | PreviewScalarFieldEnum
|
|
having?: PreviewScalarWhereWithAggregatesInput
|
|
take?: number
|
|
skip?: number
|
|
_count?: PreviewCountAggregateInputType | true
|
|
_avg?: PreviewAvgAggregateInputType
|
|
_sum?: PreviewSumAggregateInputType
|
|
_min?: PreviewMinAggregateInputType
|
|
_max?: PreviewMaxAggregateInputType
|
|
}
|
|
|
|
export type PreviewGroupByOutputType = {
|
|
id: number
|
|
repoConfigId: number
|
|
prNumber: number
|
|
prTitle: string
|
|
commitSha: string
|
|
instanceId: string | null
|
|
instanceIp: string | null
|
|
port: number
|
|
status: $Enums.PreviewStatus
|
|
logs: string
|
|
pid: number | null
|
|
sshPrivateKey: string | null
|
|
sshKeyName: string | null
|
|
giteaCommentId: number | null
|
|
lastActivityAt: Date
|
|
createdAt: Date
|
|
updatedAt: Date
|
|
stoppedAt: Date | null
|
|
_count: PreviewCountAggregateOutputType | null
|
|
_avg: PreviewAvgAggregateOutputType | null
|
|
_sum: PreviewSumAggregateOutputType | null
|
|
_min: PreviewMinAggregateOutputType | null
|
|
_max: PreviewMaxAggregateOutputType | null
|
|
}
|
|
|
|
type GetPreviewGroupByPayload<T extends PreviewGroupByArgs> = Prisma.PrismaPromise<
|
|
Array<
|
|
PickEnumerable<PreviewGroupByOutputType, T['by']> &
|
|
{
|
|
[P in ((keyof T) & (keyof PreviewGroupByOutputType))]: P extends '_count'
|
|
? T[P] extends boolean
|
|
? number
|
|
: GetScalarType<T[P], PreviewGroupByOutputType[P]>
|
|
: GetScalarType<T[P], PreviewGroupByOutputType[P]>
|
|
}
|
|
>
|
|
>
|
|
|
|
|
|
export type PreviewSelect<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
|
|
id?: boolean
|
|
repoConfigId?: boolean
|
|
prNumber?: boolean
|
|
prTitle?: boolean
|
|
commitSha?: boolean
|
|
instanceId?: boolean
|
|
instanceIp?: boolean
|
|
port?: boolean
|
|
status?: boolean
|
|
logs?: boolean
|
|
pid?: boolean
|
|
sshPrivateKey?: boolean
|
|
sshKeyName?: boolean
|
|
giteaCommentId?: boolean
|
|
lastActivityAt?: boolean
|
|
createdAt?: boolean
|
|
updatedAt?: boolean
|
|
stoppedAt?: boolean
|
|
repoConfig?: boolean | RepoConfigDefaultArgs<ExtArgs>
|
|
jobs?: boolean | Preview$jobsArgs<ExtArgs>
|
|
_count?: boolean | PreviewCountOutputTypeDefaultArgs<ExtArgs>
|
|
}, ExtArgs["result"]["preview"]>
|
|
|
|
export type PreviewSelectCreateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
|
|
id?: boolean
|
|
repoConfigId?: boolean
|
|
prNumber?: boolean
|
|
prTitle?: boolean
|
|
commitSha?: boolean
|
|
instanceId?: boolean
|
|
instanceIp?: boolean
|
|
port?: boolean
|
|
status?: boolean
|
|
logs?: boolean
|
|
pid?: boolean
|
|
sshPrivateKey?: boolean
|
|
sshKeyName?: boolean
|
|
giteaCommentId?: boolean
|
|
lastActivityAt?: boolean
|
|
createdAt?: boolean
|
|
updatedAt?: boolean
|
|
stoppedAt?: boolean
|
|
repoConfig?: boolean | RepoConfigDefaultArgs<ExtArgs>
|
|
}, ExtArgs["result"]["preview"]>
|
|
|
|
export type PreviewSelectUpdateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
|
|
id?: boolean
|
|
repoConfigId?: boolean
|
|
prNumber?: boolean
|
|
prTitle?: boolean
|
|
commitSha?: boolean
|
|
instanceId?: boolean
|
|
instanceIp?: boolean
|
|
port?: boolean
|
|
status?: boolean
|
|
logs?: boolean
|
|
pid?: boolean
|
|
sshPrivateKey?: boolean
|
|
sshKeyName?: boolean
|
|
giteaCommentId?: boolean
|
|
lastActivityAt?: boolean
|
|
createdAt?: boolean
|
|
updatedAt?: boolean
|
|
stoppedAt?: boolean
|
|
repoConfig?: boolean | RepoConfigDefaultArgs<ExtArgs>
|
|
}, ExtArgs["result"]["preview"]>
|
|
|
|
export type PreviewSelectScalar = {
|
|
id?: boolean
|
|
repoConfigId?: boolean
|
|
prNumber?: boolean
|
|
prTitle?: boolean
|
|
commitSha?: boolean
|
|
instanceId?: boolean
|
|
instanceIp?: boolean
|
|
port?: boolean
|
|
status?: boolean
|
|
logs?: boolean
|
|
pid?: boolean
|
|
sshPrivateKey?: boolean
|
|
sshKeyName?: boolean
|
|
giteaCommentId?: boolean
|
|
lastActivityAt?: boolean
|
|
createdAt?: boolean
|
|
updatedAt?: boolean
|
|
stoppedAt?: boolean
|
|
}
|
|
|
|
export type PreviewOmit<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetOmit<"id" | "repoConfigId" | "prNumber" | "prTitle" | "commitSha" | "instanceId" | "instanceIp" | "port" | "status" | "logs" | "pid" | "sshPrivateKey" | "sshKeyName" | "giteaCommentId" | "lastActivityAt" | "createdAt" | "updatedAt" | "stoppedAt", ExtArgs["result"]["preview"]>
|
|
export type PreviewInclude<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
repoConfig?: boolean | RepoConfigDefaultArgs<ExtArgs>
|
|
jobs?: boolean | Preview$jobsArgs<ExtArgs>
|
|
_count?: boolean | PreviewCountOutputTypeDefaultArgs<ExtArgs>
|
|
}
|
|
export type PreviewIncludeCreateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
repoConfig?: boolean | RepoConfigDefaultArgs<ExtArgs>
|
|
}
|
|
export type PreviewIncludeUpdateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
repoConfig?: boolean | RepoConfigDefaultArgs<ExtArgs>
|
|
}
|
|
|
|
export type $PreviewPayload<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
name: "Preview"
|
|
objects: {
|
|
repoConfig: Prisma.$RepoConfigPayload<ExtArgs>
|
|
jobs: Prisma.$JobPayload<ExtArgs>[]
|
|
}
|
|
scalars: $Extensions.GetPayloadResult<{
|
|
id: number
|
|
repoConfigId: number
|
|
prNumber: number
|
|
prTitle: string
|
|
commitSha: string
|
|
instanceId: string | null
|
|
instanceIp: string | null
|
|
port: number
|
|
status: $Enums.PreviewStatus
|
|
logs: string
|
|
pid: number | null
|
|
sshPrivateKey: string | null
|
|
sshKeyName: string | null
|
|
giteaCommentId: number | null
|
|
lastActivityAt: Date
|
|
createdAt: Date
|
|
updatedAt: Date
|
|
stoppedAt: Date | null
|
|
}, ExtArgs["result"]["preview"]>
|
|
composites: {}
|
|
}
|
|
|
|
type PreviewGetPayload<S extends boolean | null | undefined | PreviewDefaultArgs> = $Result.GetResult<Prisma.$PreviewPayload, S>
|
|
|
|
type PreviewCountArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> =
|
|
Omit<PreviewFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
|
|
select?: PreviewCountAggregateInputType | true
|
|
}
|
|
|
|
export interface PreviewDelegate<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs, GlobalOmitOptions = {}> {
|
|
[K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['Preview'], meta: { name: 'Preview' } }
|
|
/**
|
|
* Find zero or one Preview that matches the filter.
|
|
* @param {PreviewFindUniqueArgs} args - Arguments to find a Preview
|
|
* @example
|
|
* // Get one Preview
|
|
* const preview = await prisma.preview.findUnique({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findUnique<T extends PreviewFindUniqueArgs>(args: SelectSubset<T, PreviewFindUniqueArgs<ExtArgs>>): Prisma__PreviewClient<$Result.GetResult<Prisma.$PreviewPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Find one Preview that matches the filter or throw an error with `error.code='P2025'`
|
|
* if no matches were found.
|
|
* @param {PreviewFindUniqueOrThrowArgs} args - Arguments to find a Preview
|
|
* @example
|
|
* // Get one Preview
|
|
* const preview = await prisma.preview.findUniqueOrThrow({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findUniqueOrThrow<T extends PreviewFindUniqueOrThrowArgs>(args: SelectSubset<T, PreviewFindUniqueOrThrowArgs<ExtArgs>>): Prisma__PreviewClient<$Result.GetResult<Prisma.$PreviewPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Find the first Preview 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 {PreviewFindFirstArgs} args - Arguments to find a Preview
|
|
* @example
|
|
* // Get one Preview
|
|
* const preview = await prisma.preview.findFirst({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findFirst<T extends PreviewFindFirstArgs>(args?: SelectSubset<T, PreviewFindFirstArgs<ExtArgs>>): Prisma__PreviewClient<$Result.GetResult<Prisma.$PreviewPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Find the first Preview 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 {PreviewFindFirstOrThrowArgs} args - Arguments to find a Preview
|
|
* @example
|
|
* // Get one Preview
|
|
* const preview = await prisma.preview.findFirstOrThrow({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findFirstOrThrow<T extends PreviewFindFirstOrThrowArgs>(args?: SelectSubset<T, PreviewFindFirstOrThrowArgs<ExtArgs>>): Prisma__PreviewClient<$Result.GetResult<Prisma.$PreviewPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Find zero or more Previews 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 {PreviewFindManyArgs} args - Arguments to filter and select certain fields only.
|
|
* @example
|
|
* // Get all Previews
|
|
* const previews = await prisma.preview.findMany()
|
|
*
|
|
* // Get first 10 Previews
|
|
* const previews = await prisma.preview.findMany({ take: 10 })
|
|
*
|
|
* // Only select the `id`
|
|
* const previewWithIdOnly = await prisma.preview.findMany({ select: { id: true } })
|
|
*
|
|
*/
|
|
findMany<T extends PreviewFindManyArgs>(args?: SelectSubset<T, PreviewFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$PreviewPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
|
|
|
|
/**
|
|
* Create a Preview.
|
|
* @param {PreviewCreateArgs} args - Arguments to create a Preview.
|
|
* @example
|
|
* // Create one Preview
|
|
* const Preview = await prisma.preview.create({
|
|
* data: {
|
|
* // ... data to create a Preview
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
create<T extends PreviewCreateArgs>(args: SelectSubset<T, PreviewCreateArgs<ExtArgs>>): Prisma__PreviewClient<$Result.GetResult<Prisma.$PreviewPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Create many Previews.
|
|
* @param {PreviewCreateManyArgs} args - Arguments to create many Previews.
|
|
* @example
|
|
* // Create many Previews
|
|
* const preview = await prisma.preview.createMany({
|
|
* data: [
|
|
* // ... provide data here
|
|
* ]
|
|
* })
|
|
*
|
|
*/
|
|
createMany<T extends PreviewCreateManyArgs>(args?: SelectSubset<T, PreviewCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
|
|
|
|
/**
|
|
* Create many Previews and returns the data saved in the database.
|
|
* @param {PreviewCreateManyAndReturnArgs} args - Arguments to create many Previews.
|
|
* @example
|
|
* // Create many Previews
|
|
* const preview = await prisma.preview.createManyAndReturn({
|
|
* data: [
|
|
* // ... provide data here
|
|
* ]
|
|
* })
|
|
*
|
|
* // Create many Previews and only return the `id`
|
|
* const previewWithIdOnly = await prisma.preview.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 PreviewCreateManyAndReturnArgs>(args?: SelectSubset<T, PreviewCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$PreviewPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>
|
|
|
|
/**
|
|
* Delete a Preview.
|
|
* @param {PreviewDeleteArgs} args - Arguments to delete one Preview.
|
|
* @example
|
|
* // Delete one Preview
|
|
* const Preview = await prisma.preview.delete({
|
|
* where: {
|
|
* // ... filter to delete one Preview
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
delete<T extends PreviewDeleteArgs>(args: SelectSubset<T, PreviewDeleteArgs<ExtArgs>>): Prisma__PreviewClient<$Result.GetResult<Prisma.$PreviewPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Update one Preview.
|
|
* @param {PreviewUpdateArgs} args - Arguments to update one Preview.
|
|
* @example
|
|
* // Update one Preview
|
|
* const preview = await prisma.preview.update({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* },
|
|
* data: {
|
|
* // ... provide data here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
update<T extends PreviewUpdateArgs>(args: SelectSubset<T, PreviewUpdateArgs<ExtArgs>>): Prisma__PreviewClient<$Result.GetResult<Prisma.$PreviewPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Delete zero or more Previews.
|
|
* @param {PreviewDeleteManyArgs} args - Arguments to filter Previews to delete.
|
|
* @example
|
|
* // Delete a few Previews
|
|
* const { count } = await prisma.preview.deleteMany({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
deleteMany<T extends PreviewDeleteManyArgs>(args?: SelectSubset<T, PreviewDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
|
|
|
|
/**
|
|
* Update zero or more Previews.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {PreviewUpdateManyArgs} args - Arguments to update one or more rows.
|
|
* @example
|
|
* // Update many Previews
|
|
* const preview = await prisma.preview.updateMany({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* },
|
|
* data: {
|
|
* // ... provide data here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
updateMany<T extends PreviewUpdateManyArgs>(args: SelectSubset<T, PreviewUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
|
|
|
|
/**
|
|
* Update zero or more Previews and returns the data updated in the database.
|
|
* @param {PreviewUpdateManyAndReturnArgs} args - Arguments to update many Previews.
|
|
* @example
|
|
* // Update many Previews
|
|
* const preview = await prisma.preview.updateManyAndReturn({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* },
|
|
* data: [
|
|
* // ... provide data here
|
|
* ]
|
|
* })
|
|
*
|
|
* // Update zero or more Previews and only return the `id`
|
|
* const previewWithIdOnly = await prisma.preview.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 PreviewUpdateManyAndReturnArgs>(args: SelectSubset<T, PreviewUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$PreviewPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>
|
|
|
|
/**
|
|
* Create or update one Preview.
|
|
* @param {PreviewUpsertArgs} args - Arguments to update or create a Preview.
|
|
* @example
|
|
* // Update or create a Preview
|
|
* const preview = await prisma.preview.upsert({
|
|
* create: {
|
|
* // ... data to create a Preview
|
|
* },
|
|
* update: {
|
|
* // ... in case it already exists, update
|
|
* },
|
|
* where: {
|
|
* // ... the filter for the Preview we want to update
|
|
* }
|
|
* })
|
|
*/
|
|
upsert<T extends PreviewUpsertArgs>(args: SelectSubset<T, PreviewUpsertArgs<ExtArgs>>): Prisma__PreviewClient<$Result.GetResult<Prisma.$PreviewPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
|
|
/**
|
|
* Count the number of Previews.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {PreviewCountArgs} args - Arguments to filter Previews to count.
|
|
* @example
|
|
* // Count the number of Previews
|
|
* const count = await prisma.preview.count({
|
|
* where: {
|
|
* // ... the filter for the Previews we want to count
|
|
* }
|
|
* })
|
|
**/
|
|
count<T extends PreviewCountArgs>(
|
|
args?: Subset<T, PreviewCountArgs>,
|
|
): Prisma.PrismaPromise<
|
|
T extends $Utils.Record<'select', any>
|
|
? T['select'] extends true
|
|
? number
|
|
: GetScalarType<T['select'], PreviewCountAggregateOutputType>
|
|
: number
|
|
>
|
|
|
|
/**
|
|
* Allows you to perform aggregations operations on a Preview.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {PreviewAggregateArgs} 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 PreviewAggregateArgs>(args: Subset<T, PreviewAggregateArgs>): Prisma.PrismaPromise<GetPreviewAggregateType<T>>
|
|
|
|
/**
|
|
* Group by Preview.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {PreviewGroupByArgs} 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 PreviewGroupByArgs,
|
|
HasSelectOrTake extends Or<
|
|
Extends<'skip', Keys<T>>,
|
|
Extends<'take', Keys<T>>
|
|
>,
|
|
OrderByArg extends True extends HasSelectOrTake
|
|
? { orderBy: PreviewGroupByArgs['orderBy'] }
|
|
: { orderBy?: PreviewGroupByArgs['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, PreviewGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetPreviewGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
|
|
/**
|
|
* Fields of the Preview model
|
|
*/
|
|
readonly fields: PreviewFieldRefs;
|
|
}
|
|
|
|
/**
|
|
* The delegate class that acts as a "Promise-like" for Preview.
|
|
* 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__PreviewClient<T, Null = never, ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
|
|
readonly [Symbol.toStringTag]: "PrismaPromise"
|
|
repoConfig<T extends RepoConfigDefaultArgs<ExtArgs> = {}>(args?: Subset<T, RepoConfigDefaultArgs<ExtArgs>>): Prisma__RepoConfigClient<$Result.GetResult<Prisma.$RepoConfigPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>
|
|
jobs<T extends Preview$jobsArgs<ExtArgs> = {}>(args?: Subset<T, Preview$jobsArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$JobPayload<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 Preview model
|
|
*/
|
|
interface PreviewFieldRefs {
|
|
readonly id: FieldRef<"Preview", 'Int'>
|
|
readonly repoConfigId: FieldRef<"Preview", 'Int'>
|
|
readonly prNumber: FieldRef<"Preview", 'Int'>
|
|
readonly prTitle: FieldRef<"Preview", 'String'>
|
|
readonly commitSha: FieldRef<"Preview", 'String'>
|
|
readonly instanceId: FieldRef<"Preview", 'String'>
|
|
readonly instanceIp: FieldRef<"Preview", 'String'>
|
|
readonly port: FieldRef<"Preview", 'Int'>
|
|
readonly status: FieldRef<"Preview", 'PreviewStatus'>
|
|
readonly logs: FieldRef<"Preview", 'String'>
|
|
readonly pid: FieldRef<"Preview", 'Int'>
|
|
readonly sshPrivateKey: FieldRef<"Preview", 'String'>
|
|
readonly sshKeyName: FieldRef<"Preview", 'String'>
|
|
readonly giteaCommentId: FieldRef<"Preview", 'Int'>
|
|
readonly lastActivityAt: FieldRef<"Preview", 'DateTime'>
|
|
readonly createdAt: FieldRef<"Preview", 'DateTime'>
|
|
readonly updatedAt: FieldRef<"Preview", 'DateTime'>
|
|
readonly stoppedAt: FieldRef<"Preview", 'DateTime'>
|
|
}
|
|
|
|
|
|
// Custom InputTypes
|
|
/**
|
|
* Preview findUnique
|
|
*/
|
|
export type PreviewFindUniqueArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the Preview
|
|
*/
|
|
select?: PreviewSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the Preview
|
|
*/
|
|
omit?: PreviewOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: PreviewInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which Preview to fetch.
|
|
*/
|
|
where: PreviewWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* Preview findUniqueOrThrow
|
|
*/
|
|
export type PreviewFindUniqueOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the Preview
|
|
*/
|
|
select?: PreviewSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the Preview
|
|
*/
|
|
omit?: PreviewOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: PreviewInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which Preview to fetch.
|
|
*/
|
|
where: PreviewWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* Preview findFirst
|
|
*/
|
|
export type PreviewFindFirstArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the Preview
|
|
*/
|
|
select?: PreviewSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the Preview
|
|
*/
|
|
omit?: PreviewOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: PreviewInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which Preview to fetch.
|
|
*/
|
|
where?: PreviewWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of Previews to fetch.
|
|
*/
|
|
orderBy?: PreviewOrderByWithRelationInput | PreviewOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for searching for Previews.
|
|
*/
|
|
cursor?: PreviewWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` Previews 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` Previews.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
*
|
|
* Filter by unique combinations of Previews.
|
|
*/
|
|
distinct?: PreviewScalarFieldEnum | PreviewScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* Preview findFirstOrThrow
|
|
*/
|
|
export type PreviewFindFirstOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the Preview
|
|
*/
|
|
select?: PreviewSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the Preview
|
|
*/
|
|
omit?: PreviewOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: PreviewInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which Preview to fetch.
|
|
*/
|
|
where?: PreviewWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of Previews to fetch.
|
|
*/
|
|
orderBy?: PreviewOrderByWithRelationInput | PreviewOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for searching for Previews.
|
|
*/
|
|
cursor?: PreviewWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` Previews 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` Previews.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
*
|
|
* Filter by unique combinations of Previews.
|
|
*/
|
|
distinct?: PreviewScalarFieldEnum | PreviewScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* Preview findMany
|
|
*/
|
|
export type PreviewFindManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the Preview
|
|
*/
|
|
select?: PreviewSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the Preview
|
|
*/
|
|
omit?: PreviewOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: PreviewInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which Previews to fetch.
|
|
*/
|
|
where?: PreviewWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of Previews to fetch.
|
|
*/
|
|
orderBy?: PreviewOrderByWithRelationInput | PreviewOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for listing Previews.
|
|
*/
|
|
cursor?: PreviewWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` Previews 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` Previews.
|
|
*/
|
|
skip?: number
|
|
distinct?: PreviewScalarFieldEnum | PreviewScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* Preview create
|
|
*/
|
|
export type PreviewCreateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the Preview
|
|
*/
|
|
select?: PreviewSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the Preview
|
|
*/
|
|
omit?: PreviewOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: PreviewInclude<ExtArgs> | null
|
|
/**
|
|
* The data needed to create a Preview.
|
|
*/
|
|
data: XOR<PreviewCreateInput, PreviewUncheckedCreateInput>
|
|
}
|
|
|
|
/**
|
|
* Preview createMany
|
|
*/
|
|
export type PreviewCreateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* The data used to create many Previews.
|
|
*/
|
|
data: PreviewCreateManyInput | PreviewCreateManyInput[]
|
|
skipDuplicates?: boolean
|
|
}
|
|
|
|
/**
|
|
* Preview createManyAndReturn
|
|
*/
|
|
export type PreviewCreateManyAndReturnArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the Preview
|
|
*/
|
|
select?: PreviewSelectCreateManyAndReturn<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the Preview
|
|
*/
|
|
omit?: PreviewOmit<ExtArgs> | null
|
|
/**
|
|
* The data used to create many Previews.
|
|
*/
|
|
data: PreviewCreateManyInput | PreviewCreateManyInput[]
|
|
skipDuplicates?: boolean
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: PreviewIncludeCreateManyAndReturn<ExtArgs> | null
|
|
}
|
|
|
|
/**
|
|
* Preview update
|
|
*/
|
|
export type PreviewUpdateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the Preview
|
|
*/
|
|
select?: PreviewSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the Preview
|
|
*/
|
|
omit?: PreviewOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: PreviewInclude<ExtArgs> | null
|
|
/**
|
|
* The data needed to update a Preview.
|
|
*/
|
|
data: XOR<PreviewUpdateInput, PreviewUncheckedUpdateInput>
|
|
/**
|
|
* Choose, which Preview to update.
|
|
*/
|
|
where: PreviewWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* Preview updateMany
|
|
*/
|
|
export type PreviewUpdateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* The data used to update Previews.
|
|
*/
|
|
data: XOR<PreviewUpdateManyMutationInput, PreviewUncheckedUpdateManyInput>
|
|
/**
|
|
* Filter which Previews to update
|
|
*/
|
|
where?: PreviewWhereInput
|
|
/**
|
|
* Limit how many Previews to update.
|
|
*/
|
|
limit?: number
|
|
}
|
|
|
|
/**
|
|
* Preview updateManyAndReturn
|
|
*/
|
|
export type PreviewUpdateManyAndReturnArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the Preview
|
|
*/
|
|
select?: PreviewSelectUpdateManyAndReturn<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the Preview
|
|
*/
|
|
omit?: PreviewOmit<ExtArgs> | null
|
|
/**
|
|
* The data used to update Previews.
|
|
*/
|
|
data: XOR<PreviewUpdateManyMutationInput, PreviewUncheckedUpdateManyInput>
|
|
/**
|
|
* Filter which Previews to update
|
|
*/
|
|
where?: PreviewWhereInput
|
|
/**
|
|
* Limit how many Previews to update.
|
|
*/
|
|
limit?: number
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: PreviewIncludeUpdateManyAndReturn<ExtArgs> | null
|
|
}
|
|
|
|
/**
|
|
* Preview upsert
|
|
*/
|
|
export type PreviewUpsertArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the Preview
|
|
*/
|
|
select?: PreviewSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the Preview
|
|
*/
|
|
omit?: PreviewOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: PreviewInclude<ExtArgs> | null
|
|
/**
|
|
* The filter to search for the Preview to update in case it exists.
|
|
*/
|
|
where: PreviewWhereUniqueInput
|
|
/**
|
|
* In case the Preview found by the `where` argument doesn't exist, create a new Preview with this data.
|
|
*/
|
|
create: XOR<PreviewCreateInput, PreviewUncheckedCreateInput>
|
|
/**
|
|
* In case the Preview was found with the provided `where` argument, update it with this data.
|
|
*/
|
|
update: XOR<PreviewUpdateInput, PreviewUncheckedUpdateInput>
|
|
}
|
|
|
|
/**
|
|
* Preview delete
|
|
*/
|
|
export type PreviewDeleteArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the Preview
|
|
*/
|
|
select?: PreviewSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the Preview
|
|
*/
|
|
omit?: PreviewOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: PreviewInclude<ExtArgs> | null
|
|
/**
|
|
* Filter which Preview to delete.
|
|
*/
|
|
where: PreviewWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* Preview deleteMany
|
|
*/
|
|
export type PreviewDeleteManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Filter which Previews to delete
|
|
*/
|
|
where?: PreviewWhereInput
|
|
/**
|
|
* Limit how many Previews to delete.
|
|
*/
|
|
limit?: number
|
|
}
|
|
|
|
/**
|
|
* Preview.jobs
|
|
*/
|
|
export type Preview$jobsArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the Job
|
|
*/
|
|
select?: JobSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the Job
|
|
*/
|
|
omit?: JobOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: JobInclude<ExtArgs> | null
|
|
where?: JobWhereInput
|
|
orderBy?: JobOrderByWithRelationInput | JobOrderByWithRelationInput[]
|
|
cursor?: JobWhereUniqueInput
|
|
take?: number
|
|
skip?: number
|
|
distinct?: JobScalarFieldEnum | JobScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* Preview without action
|
|
*/
|
|
export type PreviewDefaultArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the Preview
|
|
*/
|
|
select?: PreviewSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the Preview
|
|
*/
|
|
omit?: PreviewOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: PreviewInclude<ExtArgs> | null
|
|
}
|
|
|
|
|
|
/**
|
|
* Model Job
|
|
*/
|
|
|
|
export type AggregateJob = {
|
|
_count: JobCountAggregateOutputType | null
|
|
_avg: JobAvgAggregateOutputType | null
|
|
_sum: JobSumAggregateOutputType | null
|
|
_min: JobMinAggregateOutputType | null
|
|
_max: JobMaxAggregateOutputType | null
|
|
}
|
|
|
|
export type JobAvgAggregateOutputType = {
|
|
id: number | null
|
|
previewId: number | null
|
|
}
|
|
|
|
export type JobSumAggregateOutputType = {
|
|
id: number | null
|
|
previewId: number | null
|
|
}
|
|
|
|
export type JobMinAggregateOutputType = {
|
|
id: number | null
|
|
previewId: number | null
|
|
type: $Enums.JobType | null
|
|
status: $Enums.JobStatus | null
|
|
error: string | null
|
|
createdAt: Date | null
|
|
startedAt: Date | null
|
|
finishedAt: Date | null
|
|
}
|
|
|
|
export type JobMaxAggregateOutputType = {
|
|
id: number | null
|
|
previewId: number | null
|
|
type: $Enums.JobType | null
|
|
status: $Enums.JobStatus | null
|
|
error: string | null
|
|
createdAt: Date | null
|
|
startedAt: Date | null
|
|
finishedAt: Date | null
|
|
}
|
|
|
|
export type JobCountAggregateOutputType = {
|
|
id: number
|
|
previewId: number
|
|
type: number
|
|
status: number
|
|
payload: number
|
|
error: number
|
|
createdAt: number
|
|
startedAt: number
|
|
finishedAt: number
|
|
_all: number
|
|
}
|
|
|
|
|
|
export type JobAvgAggregateInputType = {
|
|
id?: true
|
|
previewId?: true
|
|
}
|
|
|
|
export type JobSumAggregateInputType = {
|
|
id?: true
|
|
previewId?: true
|
|
}
|
|
|
|
export type JobMinAggregateInputType = {
|
|
id?: true
|
|
previewId?: true
|
|
type?: true
|
|
status?: true
|
|
error?: true
|
|
createdAt?: true
|
|
startedAt?: true
|
|
finishedAt?: true
|
|
}
|
|
|
|
export type JobMaxAggregateInputType = {
|
|
id?: true
|
|
previewId?: true
|
|
type?: true
|
|
status?: true
|
|
error?: true
|
|
createdAt?: true
|
|
startedAt?: true
|
|
finishedAt?: true
|
|
}
|
|
|
|
export type JobCountAggregateInputType = {
|
|
id?: true
|
|
previewId?: true
|
|
type?: true
|
|
status?: true
|
|
payload?: true
|
|
error?: true
|
|
createdAt?: true
|
|
startedAt?: true
|
|
finishedAt?: true
|
|
_all?: true
|
|
}
|
|
|
|
export type JobAggregateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Filter which Job to aggregate.
|
|
*/
|
|
where?: JobWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of Jobs to fetch.
|
|
*/
|
|
orderBy?: JobOrderByWithRelationInput | JobOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the start position
|
|
*/
|
|
cursor?: JobWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` Jobs 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` Jobs.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Count returned Jobs
|
|
**/
|
|
_count?: true | JobCountAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to average
|
|
**/
|
|
_avg?: JobAvgAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to sum
|
|
**/
|
|
_sum?: JobSumAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to find the minimum value
|
|
**/
|
|
_min?: JobMinAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to find the maximum value
|
|
**/
|
|
_max?: JobMaxAggregateInputType
|
|
}
|
|
|
|
export type GetJobAggregateType<T extends JobAggregateArgs> = {
|
|
[P in keyof T & keyof AggregateJob]: P extends '_count' | 'count'
|
|
? T[P] extends true
|
|
? number
|
|
: GetScalarType<T[P], AggregateJob[P]>
|
|
: GetScalarType<T[P], AggregateJob[P]>
|
|
}
|
|
|
|
|
|
|
|
|
|
export type JobGroupByArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
where?: JobWhereInput
|
|
orderBy?: JobOrderByWithAggregationInput | JobOrderByWithAggregationInput[]
|
|
by: JobScalarFieldEnum[] | JobScalarFieldEnum
|
|
having?: JobScalarWhereWithAggregatesInput
|
|
take?: number
|
|
skip?: number
|
|
_count?: JobCountAggregateInputType | true
|
|
_avg?: JobAvgAggregateInputType
|
|
_sum?: JobSumAggregateInputType
|
|
_min?: JobMinAggregateInputType
|
|
_max?: JobMaxAggregateInputType
|
|
}
|
|
|
|
export type JobGroupByOutputType = {
|
|
id: number
|
|
previewId: number | null
|
|
type: $Enums.JobType
|
|
status: $Enums.JobStatus
|
|
payload: JsonValue
|
|
error: string | null
|
|
createdAt: Date
|
|
startedAt: Date | null
|
|
finishedAt: Date | null
|
|
_count: JobCountAggregateOutputType | null
|
|
_avg: JobAvgAggregateOutputType | null
|
|
_sum: JobSumAggregateOutputType | null
|
|
_min: JobMinAggregateOutputType | null
|
|
_max: JobMaxAggregateOutputType | null
|
|
}
|
|
|
|
type GetJobGroupByPayload<T extends JobGroupByArgs> = Prisma.PrismaPromise<
|
|
Array<
|
|
PickEnumerable<JobGroupByOutputType, T['by']> &
|
|
{
|
|
[P in ((keyof T) & (keyof JobGroupByOutputType))]: P extends '_count'
|
|
? T[P] extends boolean
|
|
? number
|
|
: GetScalarType<T[P], JobGroupByOutputType[P]>
|
|
: GetScalarType<T[P], JobGroupByOutputType[P]>
|
|
}
|
|
>
|
|
>
|
|
|
|
|
|
export type JobSelect<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
|
|
id?: boolean
|
|
previewId?: boolean
|
|
type?: boolean
|
|
status?: boolean
|
|
payload?: boolean
|
|
error?: boolean
|
|
createdAt?: boolean
|
|
startedAt?: boolean
|
|
finishedAt?: boolean
|
|
preview?: boolean | Job$previewArgs<ExtArgs>
|
|
}, ExtArgs["result"]["job"]>
|
|
|
|
export type JobSelectCreateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
|
|
id?: boolean
|
|
previewId?: boolean
|
|
type?: boolean
|
|
status?: boolean
|
|
payload?: boolean
|
|
error?: boolean
|
|
createdAt?: boolean
|
|
startedAt?: boolean
|
|
finishedAt?: boolean
|
|
preview?: boolean | Job$previewArgs<ExtArgs>
|
|
}, ExtArgs["result"]["job"]>
|
|
|
|
export type JobSelectUpdateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
|
|
id?: boolean
|
|
previewId?: boolean
|
|
type?: boolean
|
|
status?: boolean
|
|
payload?: boolean
|
|
error?: boolean
|
|
createdAt?: boolean
|
|
startedAt?: boolean
|
|
finishedAt?: boolean
|
|
preview?: boolean | Job$previewArgs<ExtArgs>
|
|
}, ExtArgs["result"]["job"]>
|
|
|
|
export type JobSelectScalar = {
|
|
id?: boolean
|
|
previewId?: boolean
|
|
type?: boolean
|
|
status?: boolean
|
|
payload?: boolean
|
|
error?: boolean
|
|
createdAt?: boolean
|
|
startedAt?: boolean
|
|
finishedAt?: boolean
|
|
}
|
|
|
|
export type JobOmit<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetOmit<"id" | "previewId" | "type" | "status" | "payload" | "error" | "createdAt" | "startedAt" | "finishedAt", ExtArgs["result"]["job"]>
|
|
export type JobInclude<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
preview?: boolean | Job$previewArgs<ExtArgs>
|
|
}
|
|
export type JobIncludeCreateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
preview?: boolean | Job$previewArgs<ExtArgs>
|
|
}
|
|
export type JobIncludeUpdateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
preview?: boolean | Job$previewArgs<ExtArgs>
|
|
}
|
|
|
|
export type $JobPayload<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
name: "Job"
|
|
objects: {
|
|
preview: Prisma.$PreviewPayload<ExtArgs> | null
|
|
}
|
|
scalars: $Extensions.GetPayloadResult<{
|
|
id: number
|
|
previewId: number | null
|
|
type: $Enums.JobType
|
|
status: $Enums.JobStatus
|
|
payload: Prisma.JsonValue
|
|
error: string | null
|
|
createdAt: Date
|
|
startedAt: Date | null
|
|
finishedAt: Date | null
|
|
}, ExtArgs["result"]["job"]>
|
|
composites: {}
|
|
}
|
|
|
|
type JobGetPayload<S extends boolean | null | undefined | JobDefaultArgs> = $Result.GetResult<Prisma.$JobPayload, S>
|
|
|
|
type JobCountArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> =
|
|
Omit<JobFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
|
|
select?: JobCountAggregateInputType | true
|
|
}
|
|
|
|
export interface JobDelegate<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs, GlobalOmitOptions = {}> {
|
|
[K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['Job'], meta: { name: 'Job' } }
|
|
/**
|
|
* Find zero or one Job that matches the filter.
|
|
* @param {JobFindUniqueArgs} args - Arguments to find a Job
|
|
* @example
|
|
* // Get one Job
|
|
* const job = await prisma.job.findUnique({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findUnique<T extends JobFindUniqueArgs>(args: SelectSubset<T, JobFindUniqueArgs<ExtArgs>>): Prisma__JobClient<$Result.GetResult<Prisma.$JobPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Find one Job that matches the filter or throw an error with `error.code='P2025'`
|
|
* if no matches were found.
|
|
* @param {JobFindUniqueOrThrowArgs} args - Arguments to find a Job
|
|
* @example
|
|
* // Get one Job
|
|
* const job = await prisma.job.findUniqueOrThrow({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findUniqueOrThrow<T extends JobFindUniqueOrThrowArgs>(args: SelectSubset<T, JobFindUniqueOrThrowArgs<ExtArgs>>): Prisma__JobClient<$Result.GetResult<Prisma.$JobPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Find the first Job 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 {JobFindFirstArgs} args - Arguments to find a Job
|
|
* @example
|
|
* // Get one Job
|
|
* const job = await prisma.job.findFirst({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findFirst<T extends JobFindFirstArgs>(args?: SelectSubset<T, JobFindFirstArgs<ExtArgs>>): Prisma__JobClient<$Result.GetResult<Prisma.$JobPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Find the first Job 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 {JobFindFirstOrThrowArgs} args - Arguments to find a Job
|
|
* @example
|
|
* // Get one Job
|
|
* const job = await prisma.job.findFirstOrThrow({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findFirstOrThrow<T extends JobFindFirstOrThrowArgs>(args?: SelectSubset<T, JobFindFirstOrThrowArgs<ExtArgs>>): Prisma__JobClient<$Result.GetResult<Prisma.$JobPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Find zero or more Jobs 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 {JobFindManyArgs} args - Arguments to filter and select certain fields only.
|
|
* @example
|
|
* // Get all Jobs
|
|
* const jobs = await prisma.job.findMany()
|
|
*
|
|
* // Get first 10 Jobs
|
|
* const jobs = await prisma.job.findMany({ take: 10 })
|
|
*
|
|
* // Only select the `id`
|
|
* const jobWithIdOnly = await prisma.job.findMany({ select: { id: true } })
|
|
*
|
|
*/
|
|
findMany<T extends JobFindManyArgs>(args?: SelectSubset<T, JobFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$JobPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
|
|
|
|
/**
|
|
* Create a Job.
|
|
* @param {JobCreateArgs} args - Arguments to create a Job.
|
|
* @example
|
|
* // Create one Job
|
|
* const Job = await prisma.job.create({
|
|
* data: {
|
|
* // ... data to create a Job
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
create<T extends JobCreateArgs>(args: SelectSubset<T, JobCreateArgs<ExtArgs>>): Prisma__JobClient<$Result.GetResult<Prisma.$JobPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Create many Jobs.
|
|
* @param {JobCreateManyArgs} args - Arguments to create many Jobs.
|
|
* @example
|
|
* // Create many Jobs
|
|
* const job = await prisma.job.createMany({
|
|
* data: [
|
|
* // ... provide data here
|
|
* ]
|
|
* })
|
|
*
|
|
*/
|
|
createMany<T extends JobCreateManyArgs>(args?: SelectSubset<T, JobCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
|
|
|
|
/**
|
|
* Create many Jobs and returns the data saved in the database.
|
|
* @param {JobCreateManyAndReturnArgs} args - Arguments to create many Jobs.
|
|
* @example
|
|
* // Create many Jobs
|
|
* const job = await prisma.job.createManyAndReturn({
|
|
* data: [
|
|
* // ... provide data here
|
|
* ]
|
|
* })
|
|
*
|
|
* // Create many Jobs and only return the `id`
|
|
* const jobWithIdOnly = await prisma.job.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 JobCreateManyAndReturnArgs>(args?: SelectSubset<T, JobCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$JobPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>
|
|
|
|
/**
|
|
* Delete a Job.
|
|
* @param {JobDeleteArgs} args - Arguments to delete one Job.
|
|
* @example
|
|
* // Delete one Job
|
|
* const Job = await prisma.job.delete({
|
|
* where: {
|
|
* // ... filter to delete one Job
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
delete<T extends JobDeleteArgs>(args: SelectSubset<T, JobDeleteArgs<ExtArgs>>): Prisma__JobClient<$Result.GetResult<Prisma.$JobPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Update one Job.
|
|
* @param {JobUpdateArgs} args - Arguments to update one Job.
|
|
* @example
|
|
* // Update one Job
|
|
* const job = await prisma.job.update({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* },
|
|
* data: {
|
|
* // ... provide data here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
update<T extends JobUpdateArgs>(args: SelectSubset<T, JobUpdateArgs<ExtArgs>>): Prisma__JobClient<$Result.GetResult<Prisma.$JobPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Delete zero or more Jobs.
|
|
* @param {JobDeleteManyArgs} args - Arguments to filter Jobs to delete.
|
|
* @example
|
|
* // Delete a few Jobs
|
|
* const { count } = await prisma.job.deleteMany({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
deleteMany<T extends JobDeleteManyArgs>(args?: SelectSubset<T, JobDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
|
|
|
|
/**
|
|
* Update zero or more Jobs.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {JobUpdateManyArgs} args - Arguments to update one or more rows.
|
|
* @example
|
|
* // Update many Jobs
|
|
* const job = await prisma.job.updateMany({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* },
|
|
* data: {
|
|
* // ... provide data here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
updateMany<T extends JobUpdateManyArgs>(args: SelectSubset<T, JobUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
|
|
|
|
/**
|
|
* Update zero or more Jobs and returns the data updated in the database.
|
|
* @param {JobUpdateManyAndReturnArgs} args - Arguments to update many Jobs.
|
|
* @example
|
|
* // Update many Jobs
|
|
* const job = await prisma.job.updateManyAndReturn({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* },
|
|
* data: [
|
|
* // ... provide data here
|
|
* ]
|
|
* })
|
|
*
|
|
* // Update zero or more Jobs and only return the `id`
|
|
* const jobWithIdOnly = await prisma.job.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 JobUpdateManyAndReturnArgs>(args: SelectSubset<T, JobUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$JobPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>
|
|
|
|
/**
|
|
* Create or update one Job.
|
|
* @param {JobUpsertArgs} args - Arguments to update or create a Job.
|
|
* @example
|
|
* // Update or create a Job
|
|
* const job = await prisma.job.upsert({
|
|
* create: {
|
|
* // ... data to create a Job
|
|
* },
|
|
* update: {
|
|
* // ... in case it already exists, update
|
|
* },
|
|
* where: {
|
|
* // ... the filter for the Job we want to update
|
|
* }
|
|
* })
|
|
*/
|
|
upsert<T extends JobUpsertArgs>(args: SelectSubset<T, JobUpsertArgs<ExtArgs>>): Prisma__JobClient<$Result.GetResult<Prisma.$JobPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
|
|
/**
|
|
* Count the number of Jobs.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {JobCountArgs} args - Arguments to filter Jobs to count.
|
|
* @example
|
|
* // Count the number of Jobs
|
|
* const count = await prisma.job.count({
|
|
* where: {
|
|
* // ... the filter for the Jobs we want to count
|
|
* }
|
|
* })
|
|
**/
|
|
count<T extends JobCountArgs>(
|
|
args?: Subset<T, JobCountArgs>,
|
|
): Prisma.PrismaPromise<
|
|
T extends $Utils.Record<'select', any>
|
|
? T['select'] extends true
|
|
? number
|
|
: GetScalarType<T['select'], JobCountAggregateOutputType>
|
|
: number
|
|
>
|
|
|
|
/**
|
|
* Allows you to perform aggregations operations on a Job.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {JobAggregateArgs} 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 JobAggregateArgs>(args: Subset<T, JobAggregateArgs>): Prisma.PrismaPromise<GetJobAggregateType<T>>
|
|
|
|
/**
|
|
* Group by Job.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {JobGroupByArgs} 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 JobGroupByArgs,
|
|
HasSelectOrTake extends Or<
|
|
Extends<'skip', Keys<T>>,
|
|
Extends<'take', Keys<T>>
|
|
>,
|
|
OrderByArg extends True extends HasSelectOrTake
|
|
? { orderBy: JobGroupByArgs['orderBy'] }
|
|
: { orderBy?: JobGroupByArgs['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, JobGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetJobGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
|
|
/**
|
|
* Fields of the Job model
|
|
*/
|
|
readonly fields: JobFieldRefs;
|
|
}
|
|
|
|
/**
|
|
* The delegate class that acts as a "Promise-like" for Job.
|
|
* 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__JobClient<T, Null = never, ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
|
|
readonly [Symbol.toStringTag]: "PrismaPromise"
|
|
preview<T extends Job$previewArgs<ExtArgs> = {}>(args?: Subset<T, Job$previewArgs<ExtArgs>>): Prisma__PreviewClient<$Result.GetResult<Prisma.$PreviewPayload<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 Job model
|
|
*/
|
|
interface JobFieldRefs {
|
|
readonly id: FieldRef<"Job", 'Int'>
|
|
readonly previewId: FieldRef<"Job", 'Int'>
|
|
readonly type: FieldRef<"Job", 'JobType'>
|
|
readonly status: FieldRef<"Job", 'JobStatus'>
|
|
readonly payload: FieldRef<"Job", 'Json'>
|
|
readonly error: FieldRef<"Job", 'String'>
|
|
readonly createdAt: FieldRef<"Job", 'DateTime'>
|
|
readonly startedAt: FieldRef<"Job", 'DateTime'>
|
|
readonly finishedAt: FieldRef<"Job", 'DateTime'>
|
|
}
|
|
|
|
|
|
// Custom InputTypes
|
|
/**
|
|
* Job findUnique
|
|
*/
|
|
export type JobFindUniqueArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the Job
|
|
*/
|
|
select?: JobSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the Job
|
|
*/
|
|
omit?: JobOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: JobInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which Job to fetch.
|
|
*/
|
|
where: JobWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* Job findUniqueOrThrow
|
|
*/
|
|
export type JobFindUniqueOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the Job
|
|
*/
|
|
select?: JobSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the Job
|
|
*/
|
|
omit?: JobOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: JobInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which Job to fetch.
|
|
*/
|
|
where: JobWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* Job findFirst
|
|
*/
|
|
export type JobFindFirstArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the Job
|
|
*/
|
|
select?: JobSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the Job
|
|
*/
|
|
omit?: JobOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: JobInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which Job to fetch.
|
|
*/
|
|
where?: JobWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of Jobs to fetch.
|
|
*/
|
|
orderBy?: JobOrderByWithRelationInput | JobOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for searching for Jobs.
|
|
*/
|
|
cursor?: JobWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` Jobs 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` Jobs.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
*
|
|
* Filter by unique combinations of Jobs.
|
|
*/
|
|
distinct?: JobScalarFieldEnum | JobScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* Job findFirstOrThrow
|
|
*/
|
|
export type JobFindFirstOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the Job
|
|
*/
|
|
select?: JobSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the Job
|
|
*/
|
|
omit?: JobOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: JobInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which Job to fetch.
|
|
*/
|
|
where?: JobWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of Jobs to fetch.
|
|
*/
|
|
orderBy?: JobOrderByWithRelationInput | JobOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for searching for Jobs.
|
|
*/
|
|
cursor?: JobWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` Jobs 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` Jobs.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
*
|
|
* Filter by unique combinations of Jobs.
|
|
*/
|
|
distinct?: JobScalarFieldEnum | JobScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* Job findMany
|
|
*/
|
|
export type JobFindManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the Job
|
|
*/
|
|
select?: JobSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the Job
|
|
*/
|
|
omit?: JobOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: JobInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which Jobs to fetch.
|
|
*/
|
|
where?: JobWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of Jobs to fetch.
|
|
*/
|
|
orderBy?: JobOrderByWithRelationInput | JobOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for listing Jobs.
|
|
*/
|
|
cursor?: JobWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` Jobs 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` Jobs.
|
|
*/
|
|
skip?: number
|
|
distinct?: JobScalarFieldEnum | JobScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* Job create
|
|
*/
|
|
export type JobCreateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the Job
|
|
*/
|
|
select?: JobSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the Job
|
|
*/
|
|
omit?: JobOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: JobInclude<ExtArgs> | null
|
|
/**
|
|
* The data needed to create a Job.
|
|
*/
|
|
data: XOR<JobCreateInput, JobUncheckedCreateInput>
|
|
}
|
|
|
|
/**
|
|
* Job createMany
|
|
*/
|
|
export type JobCreateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* The data used to create many Jobs.
|
|
*/
|
|
data: JobCreateManyInput | JobCreateManyInput[]
|
|
skipDuplicates?: boolean
|
|
}
|
|
|
|
/**
|
|
* Job createManyAndReturn
|
|
*/
|
|
export type JobCreateManyAndReturnArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the Job
|
|
*/
|
|
select?: JobSelectCreateManyAndReturn<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the Job
|
|
*/
|
|
omit?: JobOmit<ExtArgs> | null
|
|
/**
|
|
* The data used to create many Jobs.
|
|
*/
|
|
data: JobCreateManyInput | JobCreateManyInput[]
|
|
skipDuplicates?: boolean
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: JobIncludeCreateManyAndReturn<ExtArgs> | null
|
|
}
|
|
|
|
/**
|
|
* Job update
|
|
*/
|
|
export type JobUpdateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the Job
|
|
*/
|
|
select?: JobSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the Job
|
|
*/
|
|
omit?: JobOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: JobInclude<ExtArgs> | null
|
|
/**
|
|
* The data needed to update a Job.
|
|
*/
|
|
data: XOR<JobUpdateInput, JobUncheckedUpdateInput>
|
|
/**
|
|
* Choose, which Job to update.
|
|
*/
|
|
where: JobWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* Job updateMany
|
|
*/
|
|
export type JobUpdateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* The data used to update Jobs.
|
|
*/
|
|
data: XOR<JobUpdateManyMutationInput, JobUncheckedUpdateManyInput>
|
|
/**
|
|
* Filter which Jobs to update
|
|
*/
|
|
where?: JobWhereInput
|
|
/**
|
|
* Limit how many Jobs to update.
|
|
*/
|
|
limit?: number
|
|
}
|
|
|
|
/**
|
|
* Job updateManyAndReturn
|
|
*/
|
|
export type JobUpdateManyAndReturnArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the Job
|
|
*/
|
|
select?: JobSelectUpdateManyAndReturn<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the Job
|
|
*/
|
|
omit?: JobOmit<ExtArgs> | null
|
|
/**
|
|
* The data used to update Jobs.
|
|
*/
|
|
data: XOR<JobUpdateManyMutationInput, JobUncheckedUpdateManyInput>
|
|
/**
|
|
* Filter which Jobs to update
|
|
*/
|
|
where?: JobWhereInput
|
|
/**
|
|
* Limit how many Jobs to update.
|
|
*/
|
|
limit?: number
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: JobIncludeUpdateManyAndReturn<ExtArgs> | null
|
|
}
|
|
|
|
/**
|
|
* Job upsert
|
|
*/
|
|
export type JobUpsertArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the Job
|
|
*/
|
|
select?: JobSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the Job
|
|
*/
|
|
omit?: JobOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: JobInclude<ExtArgs> | null
|
|
/**
|
|
* The filter to search for the Job to update in case it exists.
|
|
*/
|
|
where: JobWhereUniqueInput
|
|
/**
|
|
* In case the Job found by the `where` argument doesn't exist, create a new Job with this data.
|
|
*/
|
|
create: XOR<JobCreateInput, JobUncheckedCreateInput>
|
|
/**
|
|
* In case the Job was found with the provided `where` argument, update it with this data.
|
|
*/
|
|
update: XOR<JobUpdateInput, JobUncheckedUpdateInput>
|
|
}
|
|
|
|
/**
|
|
* Job delete
|
|
*/
|
|
export type JobDeleteArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the Job
|
|
*/
|
|
select?: JobSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the Job
|
|
*/
|
|
omit?: JobOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: JobInclude<ExtArgs> | null
|
|
/**
|
|
* Filter which Job to delete.
|
|
*/
|
|
where: JobWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* Job deleteMany
|
|
*/
|
|
export type JobDeleteManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Filter which Jobs to delete
|
|
*/
|
|
where?: JobWhereInput
|
|
/**
|
|
* Limit how many Jobs to delete.
|
|
*/
|
|
limit?: number
|
|
}
|
|
|
|
/**
|
|
* Job.preview
|
|
*/
|
|
export type Job$previewArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the Preview
|
|
*/
|
|
select?: PreviewSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the Preview
|
|
*/
|
|
omit?: PreviewOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: PreviewInclude<ExtArgs> | null
|
|
where?: PreviewWhereInput
|
|
}
|
|
|
|
/**
|
|
* Job without action
|
|
*/
|
|
export type JobDefaultArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the Job
|
|
*/
|
|
select?: JobSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the Job
|
|
*/
|
|
omit?: JobOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: JobInclude<ExtArgs> | null
|
|
}
|
|
|
|
|
|
/**
|
|
* Model WebhookToken
|
|
*/
|
|
|
|
export type AggregateWebhookToken = {
|
|
_count: WebhookTokenCountAggregateOutputType | null
|
|
_avg: WebhookTokenAvgAggregateOutputType | null
|
|
_sum: WebhookTokenSumAggregateOutputType | null
|
|
_min: WebhookTokenMinAggregateOutputType | null
|
|
_max: WebhookTokenMaxAggregateOutputType | null
|
|
}
|
|
|
|
export type WebhookTokenAvgAggregateOutputType = {
|
|
id: number | null
|
|
userId: number | null
|
|
}
|
|
|
|
export type WebhookTokenSumAggregateOutputType = {
|
|
id: number | null
|
|
userId: number | null
|
|
}
|
|
|
|
export type WebhookTokenMinAggregateOutputType = {
|
|
id: number | null
|
|
userId: number | null
|
|
token: string | null
|
|
createdAt: Date | null
|
|
}
|
|
|
|
export type WebhookTokenMaxAggregateOutputType = {
|
|
id: number | null
|
|
userId: number | null
|
|
token: string | null
|
|
createdAt: Date | null
|
|
}
|
|
|
|
export type WebhookTokenCountAggregateOutputType = {
|
|
id: number
|
|
userId: number
|
|
token: number
|
|
createdAt: number
|
|
_all: number
|
|
}
|
|
|
|
|
|
export type WebhookTokenAvgAggregateInputType = {
|
|
id?: true
|
|
userId?: true
|
|
}
|
|
|
|
export type WebhookTokenSumAggregateInputType = {
|
|
id?: true
|
|
userId?: true
|
|
}
|
|
|
|
export type WebhookTokenMinAggregateInputType = {
|
|
id?: true
|
|
userId?: true
|
|
token?: true
|
|
createdAt?: true
|
|
}
|
|
|
|
export type WebhookTokenMaxAggregateInputType = {
|
|
id?: true
|
|
userId?: true
|
|
token?: true
|
|
createdAt?: true
|
|
}
|
|
|
|
export type WebhookTokenCountAggregateInputType = {
|
|
id?: true
|
|
userId?: true
|
|
token?: true
|
|
createdAt?: true
|
|
_all?: true
|
|
}
|
|
|
|
export type WebhookTokenAggregateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Filter which WebhookToken to aggregate.
|
|
*/
|
|
where?: WebhookTokenWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of WebhookTokens to fetch.
|
|
*/
|
|
orderBy?: WebhookTokenOrderByWithRelationInput | WebhookTokenOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the start position
|
|
*/
|
|
cursor?: WebhookTokenWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` WebhookTokens 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` WebhookTokens.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Count returned WebhookTokens
|
|
**/
|
|
_count?: true | WebhookTokenCountAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to average
|
|
**/
|
|
_avg?: WebhookTokenAvgAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to sum
|
|
**/
|
|
_sum?: WebhookTokenSumAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to find the minimum value
|
|
**/
|
|
_min?: WebhookTokenMinAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to find the maximum value
|
|
**/
|
|
_max?: WebhookTokenMaxAggregateInputType
|
|
}
|
|
|
|
export type GetWebhookTokenAggregateType<T extends WebhookTokenAggregateArgs> = {
|
|
[P in keyof T & keyof AggregateWebhookToken]: P extends '_count' | 'count'
|
|
? T[P] extends true
|
|
? number
|
|
: GetScalarType<T[P], AggregateWebhookToken[P]>
|
|
: GetScalarType<T[P], AggregateWebhookToken[P]>
|
|
}
|
|
|
|
|
|
|
|
|
|
export type WebhookTokenGroupByArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
where?: WebhookTokenWhereInput
|
|
orderBy?: WebhookTokenOrderByWithAggregationInput | WebhookTokenOrderByWithAggregationInput[]
|
|
by: WebhookTokenScalarFieldEnum[] | WebhookTokenScalarFieldEnum
|
|
having?: WebhookTokenScalarWhereWithAggregatesInput
|
|
take?: number
|
|
skip?: number
|
|
_count?: WebhookTokenCountAggregateInputType | true
|
|
_avg?: WebhookTokenAvgAggregateInputType
|
|
_sum?: WebhookTokenSumAggregateInputType
|
|
_min?: WebhookTokenMinAggregateInputType
|
|
_max?: WebhookTokenMaxAggregateInputType
|
|
}
|
|
|
|
export type WebhookTokenGroupByOutputType = {
|
|
id: number
|
|
userId: number
|
|
token: string
|
|
createdAt: Date
|
|
_count: WebhookTokenCountAggregateOutputType | null
|
|
_avg: WebhookTokenAvgAggregateOutputType | null
|
|
_sum: WebhookTokenSumAggregateOutputType | null
|
|
_min: WebhookTokenMinAggregateOutputType | null
|
|
_max: WebhookTokenMaxAggregateOutputType | null
|
|
}
|
|
|
|
type GetWebhookTokenGroupByPayload<T extends WebhookTokenGroupByArgs> = Prisma.PrismaPromise<
|
|
Array<
|
|
PickEnumerable<WebhookTokenGroupByOutputType, T['by']> &
|
|
{
|
|
[P in ((keyof T) & (keyof WebhookTokenGroupByOutputType))]: P extends '_count'
|
|
? T[P] extends boolean
|
|
? number
|
|
: GetScalarType<T[P], WebhookTokenGroupByOutputType[P]>
|
|
: GetScalarType<T[P], WebhookTokenGroupByOutputType[P]>
|
|
}
|
|
>
|
|
>
|
|
|
|
|
|
export type WebhookTokenSelect<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
|
|
id?: boolean
|
|
userId?: boolean
|
|
token?: boolean
|
|
createdAt?: boolean
|
|
user?: boolean | UserDefaultArgs<ExtArgs>
|
|
}, ExtArgs["result"]["webhookToken"]>
|
|
|
|
export type WebhookTokenSelectCreateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
|
|
id?: boolean
|
|
userId?: boolean
|
|
token?: boolean
|
|
createdAt?: boolean
|
|
user?: boolean | UserDefaultArgs<ExtArgs>
|
|
}, ExtArgs["result"]["webhookToken"]>
|
|
|
|
export type WebhookTokenSelectUpdateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
|
|
id?: boolean
|
|
userId?: boolean
|
|
token?: boolean
|
|
createdAt?: boolean
|
|
user?: boolean | UserDefaultArgs<ExtArgs>
|
|
}, ExtArgs["result"]["webhookToken"]>
|
|
|
|
export type WebhookTokenSelectScalar = {
|
|
id?: boolean
|
|
userId?: boolean
|
|
token?: boolean
|
|
createdAt?: boolean
|
|
}
|
|
|
|
export type WebhookTokenOmit<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetOmit<"id" | "userId" | "token" | "createdAt", ExtArgs["result"]["webhookToken"]>
|
|
export type WebhookTokenInclude<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
user?: boolean | UserDefaultArgs<ExtArgs>
|
|
}
|
|
export type WebhookTokenIncludeCreateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
user?: boolean | UserDefaultArgs<ExtArgs>
|
|
}
|
|
export type WebhookTokenIncludeUpdateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
user?: boolean | UserDefaultArgs<ExtArgs>
|
|
}
|
|
|
|
export type $WebhookTokenPayload<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
name: "WebhookToken"
|
|
objects: {
|
|
user: Prisma.$UserPayload<ExtArgs>
|
|
}
|
|
scalars: $Extensions.GetPayloadResult<{
|
|
id: number
|
|
userId: number
|
|
token: string
|
|
createdAt: Date
|
|
}, ExtArgs["result"]["webhookToken"]>
|
|
composites: {}
|
|
}
|
|
|
|
type WebhookTokenGetPayload<S extends boolean | null | undefined | WebhookTokenDefaultArgs> = $Result.GetResult<Prisma.$WebhookTokenPayload, S>
|
|
|
|
type WebhookTokenCountArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> =
|
|
Omit<WebhookTokenFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
|
|
select?: WebhookTokenCountAggregateInputType | true
|
|
}
|
|
|
|
export interface WebhookTokenDelegate<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs, GlobalOmitOptions = {}> {
|
|
[K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['WebhookToken'], meta: { name: 'WebhookToken' } }
|
|
/**
|
|
* Find zero or one WebhookToken that matches the filter.
|
|
* @param {WebhookTokenFindUniqueArgs} args - Arguments to find a WebhookToken
|
|
* @example
|
|
* // Get one WebhookToken
|
|
* const webhookToken = await prisma.webhookToken.findUnique({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findUnique<T extends WebhookTokenFindUniqueArgs>(args: SelectSubset<T, WebhookTokenFindUniqueArgs<ExtArgs>>): Prisma__WebhookTokenClient<$Result.GetResult<Prisma.$WebhookTokenPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Find one WebhookToken that matches the filter or throw an error with `error.code='P2025'`
|
|
* if no matches were found.
|
|
* @param {WebhookTokenFindUniqueOrThrowArgs} args - Arguments to find a WebhookToken
|
|
* @example
|
|
* // Get one WebhookToken
|
|
* const webhookToken = await prisma.webhookToken.findUniqueOrThrow({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findUniqueOrThrow<T extends WebhookTokenFindUniqueOrThrowArgs>(args: SelectSubset<T, WebhookTokenFindUniqueOrThrowArgs<ExtArgs>>): Prisma__WebhookTokenClient<$Result.GetResult<Prisma.$WebhookTokenPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Find the first WebhookToken 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 {WebhookTokenFindFirstArgs} args - Arguments to find a WebhookToken
|
|
* @example
|
|
* // Get one WebhookToken
|
|
* const webhookToken = await prisma.webhookToken.findFirst({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findFirst<T extends WebhookTokenFindFirstArgs>(args?: SelectSubset<T, WebhookTokenFindFirstArgs<ExtArgs>>): Prisma__WebhookTokenClient<$Result.GetResult<Prisma.$WebhookTokenPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Find the first WebhookToken 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 {WebhookTokenFindFirstOrThrowArgs} args - Arguments to find a WebhookToken
|
|
* @example
|
|
* // Get one WebhookToken
|
|
* const webhookToken = await prisma.webhookToken.findFirstOrThrow({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findFirstOrThrow<T extends WebhookTokenFindFirstOrThrowArgs>(args?: SelectSubset<T, WebhookTokenFindFirstOrThrowArgs<ExtArgs>>): Prisma__WebhookTokenClient<$Result.GetResult<Prisma.$WebhookTokenPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Find zero or more WebhookTokens 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 {WebhookTokenFindManyArgs} args - Arguments to filter and select certain fields only.
|
|
* @example
|
|
* // Get all WebhookTokens
|
|
* const webhookTokens = await prisma.webhookToken.findMany()
|
|
*
|
|
* // Get first 10 WebhookTokens
|
|
* const webhookTokens = await prisma.webhookToken.findMany({ take: 10 })
|
|
*
|
|
* // Only select the `id`
|
|
* const webhookTokenWithIdOnly = await prisma.webhookToken.findMany({ select: { id: true } })
|
|
*
|
|
*/
|
|
findMany<T extends WebhookTokenFindManyArgs>(args?: SelectSubset<T, WebhookTokenFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$WebhookTokenPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
|
|
|
|
/**
|
|
* Create a WebhookToken.
|
|
* @param {WebhookTokenCreateArgs} args - Arguments to create a WebhookToken.
|
|
* @example
|
|
* // Create one WebhookToken
|
|
* const WebhookToken = await prisma.webhookToken.create({
|
|
* data: {
|
|
* // ... data to create a WebhookToken
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
create<T extends WebhookTokenCreateArgs>(args: SelectSubset<T, WebhookTokenCreateArgs<ExtArgs>>): Prisma__WebhookTokenClient<$Result.GetResult<Prisma.$WebhookTokenPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Create many WebhookTokens.
|
|
* @param {WebhookTokenCreateManyArgs} args - Arguments to create many WebhookTokens.
|
|
* @example
|
|
* // Create many WebhookTokens
|
|
* const webhookToken = await prisma.webhookToken.createMany({
|
|
* data: [
|
|
* // ... provide data here
|
|
* ]
|
|
* })
|
|
*
|
|
*/
|
|
createMany<T extends WebhookTokenCreateManyArgs>(args?: SelectSubset<T, WebhookTokenCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
|
|
|
|
/**
|
|
* Create many WebhookTokens and returns the data saved in the database.
|
|
* @param {WebhookTokenCreateManyAndReturnArgs} args - Arguments to create many WebhookTokens.
|
|
* @example
|
|
* // Create many WebhookTokens
|
|
* const webhookToken = await prisma.webhookToken.createManyAndReturn({
|
|
* data: [
|
|
* // ... provide data here
|
|
* ]
|
|
* })
|
|
*
|
|
* // Create many WebhookTokens and only return the `id`
|
|
* const webhookTokenWithIdOnly = await prisma.webhookToken.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 WebhookTokenCreateManyAndReturnArgs>(args?: SelectSubset<T, WebhookTokenCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$WebhookTokenPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>
|
|
|
|
/**
|
|
* Delete a WebhookToken.
|
|
* @param {WebhookTokenDeleteArgs} args - Arguments to delete one WebhookToken.
|
|
* @example
|
|
* // Delete one WebhookToken
|
|
* const WebhookToken = await prisma.webhookToken.delete({
|
|
* where: {
|
|
* // ... filter to delete one WebhookToken
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
delete<T extends WebhookTokenDeleteArgs>(args: SelectSubset<T, WebhookTokenDeleteArgs<ExtArgs>>): Prisma__WebhookTokenClient<$Result.GetResult<Prisma.$WebhookTokenPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Update one WebhookToken.
|
|
* @param {WebhookTokenUpdateArgs} args - Arguments to update one WebhookToken.
|
|
* @example
|
|
* // Update one WebhookToken
|
|
* const webhookToken = await prisma.webhookToken.update({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* },
|
|
* data: {
|
|
* // ... provide data here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
update<T extends WebhookTokenUpdateArgs>(args: SelectSubset<T, WebhookTokenUpdateArgs<ExtArgs>>): Prisma__WebhookTokenClient<$Result.GetResult<Prisma.$WebhookTokenPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Delete zero or more WebhookTokens.
|
|
* @param {WebhookTokenDeleteManyArgs} args - Arguments to filter WebhookTokens to delete.
|
|
* @example
|
|
* // Delete a few WebhookTokens
|
|
* const { count } = await prisma.webhookToken.deleteMany({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
deleteMany<T extends WebhookTokenDeleteManyArgs>(args?: SelectSubset<T, WebhookTokenDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
|
|
|
|
/**
|
|
* Update zero or more WebhookTokens.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {WebhookTokenUpdateManyArgs} args - Arguments to update one or more rows.
|
|
* @example
|
|
* // Update many WebhookTokens
|
|
* const webhookToken = await prisma.webhookToken.updateMany({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* },
|
|
* data: {
|
|
* // ... provide data here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
updateMany<T extends WebhookTokenUpdateManyArgs>(args: SelectSubset<T, WebhookTokenUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
|
|
|
|
/**
|
|
* Update zero or more WebhookTokens and returns the data updated in the database.
|
|
* @param {WebhookTokenUpdateManyAndReturnArgs} args - Arguments to update many WebhookTokens.
|
|
* @example
|
|
* // Update many WebhookTokens
|
|
* const webhookToken = await prisma.webhookToken.updateManyAndReturn({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* },
|
|
* data: [
|
|
* // ... provide data here
|
|
* ]
|
|
* })
|
|
*
|
|
* // Update zero or more WebhookTokens and only return the `id`
|
|
* const webhookTokenWithIdOnly = await prisma.webhookToken.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 WebhookTokenUpdateManyAndReturnArgs>(args: SelectSubset<T, WebhookTokenUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$WebhookTokenPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>
|
|
|
|
/**
|
|
* Create or update one WebhookToken.
|
|
* @param {WebhookTokenUpsertArgs} args - Arguments to update or create a WebhookToken.
|
|
* @example
|
|
* // Update or create a WebhookToken
|
|
* const webhookToken = await prisma.webhookToken.upsert({
|
|
* create: {
|
|
* // ... data to create a WebhookToken
|
|
* },
|
|
* update: {
|
|
* // ... in case it already exists, update
|
|
* },
|
|
* where: {
|
|
* // ... the filter for the WebhookToken we want to update
|
|
* }
|
|
* })
|
|
*/
|
|
upsert<T extends WebhookTokenUpsertArgs>(args: SelectSubset<T, WebhookTokenUpsertArgs<ExtArgs>>): Prisma__WebhookTokenClient<$Result.GetResult<Prisma.$WebhookTokenPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
|
|
/**
|
|
* Count the number of WebhookTokens.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {WebhookTokenCountArgs} args - Arguments to filter WebhookTokens to count.
|
|
* @example
|
|
* // Count the number of WebhookTokens
|
|
* const count = await prisma.webhookToken.count({
|
|
* where: {
|
|
* // ... the filter for the WebhookTokens we want to count
|
|
* }
|
|
* })
|
|
**/
|
|
count<T extends WebhookTokenCountArgs>(
|
|
args?: Subset<T, WebhookTokenCountArgs>,
|
|
): Prisma.PrismaPromise<
|
|
T extends $Utils.Record<'select', any>
|
|
? T['select'] extends true
|
|
? number
|
|
: GetScalarType<T['select'], WebhookTokenCountAggregateOutputType>
|
|
: number
|
|
>
|
|
|
|
/**
|
|
* Allows you to perform aggregations operations on a WebhookToken.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {WebhookTokenAggregateArgs} 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 WebhookTokenAggregateArgs>(args: Subset<T, WebhookTokenAggregateArgs>): Prisma.PrismaPromise<GetWebhookTokenAggregateType<T>>
|
|
|
|
/**
|
|
* Group by WebhookToken.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {WebhookTokenGroupByArgs} 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 WebhookTokenGroupByArgs,
|
|
HasSelectOrTake extends Or<
|
|
Extends<'skip', Keys<T>>,
|
|
Extends<'take', Keys<T>>
|
|
>,
|
|
OrderByArg extends True extends HasSelectOrTake
|
|
? { orderBy: WebhookTokenGroupByArgs['orderBy'] }
|
|
: { orderBy?: WebhookTokenGroupByArgs['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, WebhookTokenGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetWebhookTokenGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
|
|
/**
|
|
* Fields of the WebhookToken model
|
|
*/
|
|
readonly fields: WebhookTokenFieldRefs;
|
|
}
|
|
|
|
/**
|
|
* The delegate class that acts as a "Promise-like" for WebhookToken.
|
|
* 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__WebhookTokenClient<T, Null = never, ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
|
|
readonly [Symbol.toStringTag]: "PrismaPromise"
|
|
user<T extends UserDefaultArgs<ExtArgs> = {}>(args?: Subset<T, UserDefaultArgs<ExtArgs>>): Prisma__UserClient<$Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>
|
|
/**
|
|
* 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 WebhookToken model
|
|
*/
|
|
interface WebhookTokenFieldRefs {
|
|
readonly id: FieldRef<"WebhookToken", 'Int'>
|
|
readonly userId: FieldRef<"WebhookToken", 'Int'>
|
|
readonly token: FieldRef<"WebhookToken", 'String'>
|
|
readonly createdAt: FieldRef<"WebhookToken", 'DateTime'>
|
|
}
|
|
|
|
|
|
// Custom InputTypes
|
|
/**
|
|
* WebhookToken findUnique
|
|
*/
|
|
export type WebhookTokenFindUniqueArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the WebhookToken
|
|
*/
|
|
select?: WebhookTokenSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the WebhookToken
|
|
*/
|
|
omit?: WebhookTokenOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: WebhookTokenInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which WebhookToken to fetch.
|
|
*/
|
|
where: WebhookTokenWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* WebhookToken findUniqueOrThrow
|
|
*/
|
|
export type WebhookTokenFindUniqueOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the WebhookToken
|
|
*/
|
|
select?: WebhookTokenSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the WebhookToken
|
|
*/
|
|
omit?: WebhookTokenOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: WebhookTokenInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which WebhookToken to fetch.
|
|
*/
|
|
where: WebhookTokenWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* WebhookToken findFirst
|
|
*/
|
|
export type WebhookTokenFindFirstArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the WebhookToken
|
|
*/
|
|
select?: WebhookTokenSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the WebhookToken
|
|
*/
|
|
omit?: WebhookTokenOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: WebhookTokenInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which WebhookToken to fetch.
|
|
*/
|
|
where?: WebhookTokenWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of WebhookTokens to fetch.
|
|
*/
|
|
orderBy?: WebhookTokenOrderByWithRelationInput | WebhookTokenOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for searching for WebhookTokens.
|
|
*/
|
|
cursor?: WebhookTokenWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` WebhookTokens 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` WebhookTokens.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
*
|
|
* Filter by unique combinations of WebhookTokens.
|
|
*/
|
|
distinct?: WebhookTokenScalarFieldEnum | WebhookTokenScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* WebhookToken findFirstOrThrow
|
|
*/
|
|
export type WebhookTokenFindFirstOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the WebhookToken
|
|
*/
|
|
select?: WebhookTokenSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the WebhookToken
|
|
*/
|
|
omit?: WebhookTokenOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: WebhookTokenInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which WebhookToken to fetch.
|
|
*/
|
|
where?: WebhookTokenWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of WebhookTokens to fetch.
|
|
*/
|
|
orderBy?: WebhookTokenOrderByWithRelationInput | WebhookTokenOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for searching for WebhookTokens.
|
|
*/
|
|
cursor?: WebhookTokenWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` WebhookTokens 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` WebhookTokens.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
*
|
|
* Filter by unique combinations of WebhookTokens.
|
|
*/
|
|
distinct?: WebhookTokenScalarFieldEnum | WebhookTokenScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* WebhookToken findMany
|
|
*/
|
|
export type WebhookTokenFindManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the WebhookToken
|
|
*/
|
|
select?: WebhookTokenSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the WebhookToken
|
|
*/
|
|
omit?: WebhookTokenOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: WebhookTokenInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which WebhookTokens to fetch.
|
|
*/
|
|
where?: WebhookTokenWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of WebhookTokens to fetch.
|
|
*/
|
|
orderBy?: WebhookTokenOrderByWithRelationInput | WebhookTokenOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for listing WebhookTokens.
|
|
*/
|
|
cursor?: WebhookTokenWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` WebhookTokens 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` WebhookTokens.
|
|
*/
|
|
skip?: number
|
|
distinct?: WebhookTokenScalarFieldEnum | WebhookTokenScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* WebhookToken create
|
|
*/
|
|
export type WebhookTokenCreateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the WebhookToken
|
|
*/
|
|
select?: WebhookTokenSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the WebhookToken
|
|
*/
|
|
omit?: WebhookTokenOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: WebhookTokenInclude<ExtArgs> | null
|
|
/**
|
|
* The data needed to create a WebhookToken.
|
|
*/
|
|
data: XOR<WebhookTokenCreateInput, WebhookTokenUncheckedCreateInput>
|
|
}
|
|
|
|
/**
|
|
* WebhookToken createMany
|
|
*/
|
|
export type WebhookTokenCreateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* The data used to create many WebhookTokens.
|
|
*/
|
|
data: WebhookTokenCreateManyInput | WebhookTokenCreateManyInput[]
|
|
skipDuplicates?: boolean
|
|
}
|
|
|
|
/**
|
|
* WebhookToken createManyAndReturn
|
|
*/
|
|
export type WebhookTokenCreateManyAndReturnArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the WebhookToken
|
|
*/
|
|
select?: WebhookTokenSelectCreateManyAndReturn<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the WebhookToken
|
|
*/
|
|
omit?: WebhookTokenOmit<ExtArgs> | null
|
|
/**
|
|
* The data used to create many WebhookTokens.
|
|
*/
|
|
data: WebhookTokenCreateManyInput | WebhookTokenCreateManyInput[]
|
|
skipDuplicates?: boolean
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: WebhookTokenIncludeCreateManyAndReturn<ExtArgs> | null
|
|
}
|
|
|
|
/**
|
|
* WebhookToken update
|
|
*/
|
|
export type WebhookTokenUpdateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the WebhookToken
|
|
*/
|
|
select?: WebhookTokenSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the WebhookToken
|
|
*/
|
|
omit?: WebhookTokenOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: WebhookTokenInclude<ExtArgs> | null
|
|
/**
|
|
* The data needed to update a WebhookToken.
|
|
*/
|
|
data: XOR<WebhookTokenUpdateInput, WebhookTokenUncheckedUpdateInput>
|
|
/**
|
|
* Choose, which WebhookToken to update.
|
|
*/
|
|
where: WebhookTokenWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* WebhookToken updateMany
|
|
*/
|
|
export type WebhookTokenUpdateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* The data used to update WebhookTokens.
|
|
*/
|
|
data: XOR<WebhookTokenUpdateManyMutationInput, WebhookTokenUncheckedUpdateManyInput>
|
|
/**
|
|
* Filter which WebhookTokens to update
|
|
*/
|
|
where?: WebhookTokenWhereInput
|
|
/**
|
|
* Limit how many WebhookTokens to update.
|
|
*/
|
|
limit?: number
|
|
}
|
|
|
|
/**
|
|
* WebhookToken updateManyAndReturn
|
|
*/
|
|
export type WebhookTokenUpdateManyAndReturnArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the WebhookToken
|
|
*/
|
|
select?: WebhookTokenSelectUpdateManyAndReturn<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the WebhookToken
|
|
*/
|
|
omit?: WebhookTokenOmit<ExtArgs> | null
|
|
/**
|
|
* The data used to update WebhookTokens.
|
|
*/
|
|
data: XOR<WebhookTokenUpdateManyMutationInput, WebhookTokenUncheckedUpdateManyInput>
|
|
/**
|
|
* Filter which WebhookTokens to update
|
|
*/
|
|
where?: WebhookTokenWhereInput
|
|
/**
|
|
* Limit how many WebhookTokens to update.
|
|
*/
|
|
limit?: number
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: WebhookTokenIncludeUpdateManyAndReturn<ExtArgs> | null
|
|
}
|
|
|
|
/**
|
|
* WebhookToken upsert
|
|
*/
|
|
export type WebhookTokenUpsertArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the WebhookToken
|
|
*/
|
|
select?: WebhookTokenSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the WebhookToken
|
|
*/
|
|
omit?: WebhookTokenOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: WebhookTokenInclude<ExtArgs> | null
|
|
/**
|
|
* The filter to search for the WebhookToken to update in case it exists.
|
|
*/
|
|
where: WebhookTokenWhereUniqueInput
|
|
/**
|
|
* In case the WebhookToken found by the `where` argument doesn't exist, create a new WebhookToken with this data.
|
|
*/
|
|
create: XOR<WebhookTokenCreateInput, WebhookTokenUncheckedCreateInput>
|
|
/**
|
|
* In case the WebhookToken was found with the provided `where` argument, update it with this data.
|
|
*/
|
|
update: XOR<WebhookTokenUpdateInput, WebhookTokenUncheckedUpdateInput>
|
|
}
|
|
|
|
/**
|
|
* WebhookToken delete
|
|
*/
|
|
export type WebhookTokenDeleteArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the WebhookToken
|
|
*/
|
|
select?: WebhookTokenSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the WebhookToken
|
|
*/
|
|
omit?: WebhookTokenOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: WebhookTokenInclude<ExtArgs> | null
|
|
/**
|
|
* Filter which WebhookToken to delete.
|
|
*/
|
|
where: WebhookTokenWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* WebhookToken deleteMany
|
|
*/
|
|
export type WebhookTokenDeleteManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Filter which WebhookTokens to delete
|
|
*/
|
|
where?: WebhookTokenWhereInput
|
|
/**
|
|
* Limit how many WebhookTokens to delete.
|
|
*/
|
|
limit?: number
|
|
}
|
|
|
|
/**
|
|
* WebhookToken without action
|
|
*/
|
|
export type WebhookTokenDefaultArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the WebhookToken
|
|
*/
|
|
select?: WebhookTokenSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the WebhookToken
|
|
*/
|
|
omit?: WebhookTokenOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: WebhookTokenInclude<ExtArgs> | null
|
|
}
|
|
|
|
|
|
/**
|
|
* Model NoConfigComment
|
|
*/
|
|
|
|
export type AggregateNoConfigComment = {
|
|
_count: NoConfigCommentCountAggregateOutputType | null
|
|
_avg: NoConfigCommentAvgAggregateOutputType | null
|
|
_sum: NoConfigCommentSumAggregateOutputType | null
|
|
_min: NoConfigCommentMinAggregateOutputType | null
|
|
_max: NoConfigCommentMaxAggregateOutputType | null
|
|
}
|
|
|
|
export type NoConfigCommentAvgAggregateOutputType = {
|
|
id: number | null
|
|
userId: number | null
|
|
prNumber: number | null
|
|
}
|
|
|
|
export type NoConfigCommentSumAggregateOutputType = {
|
|
id: number | null
|
|
userId: number | null
|
|
prNumber: number | null
|
|
}
|
|
|
|
export type NoConfigCommentMinAggregateOutputType = {
|
|
id: number | null
|
|
userId: number | null
|
|
repoOwner: string | null
|
|
repoName: string | null
|
|
prNumber: number | null
|
|
createdAt: Date | null
|
|
}
|
|
|
|
export type NoConfigCommentMaxAggregateOutputType = {
|
|
id: number | null
|
|
userId: number | null
|
|
repoOwner: string | null
|
|
repoName: string | null
|
|
prNumber: number | null
|
|
createdAt: Date | null
|
|
}
|
|
|
|
export type NoConfigCommentCountAggregateOutputType = {
|
|
id: number
|
|
userId: number
|
|
repoOwner: number
|
|
repoName: number
|
|
prNumber: number
|
|
createdAt: number
|
|
_all: number
|
|
}
|
|
|
|
|
|
export type NoConfigCommentAvgAggregateInputType = {
|
|
id?: true
|
|
userId?: true
|
|
prNumber?: true
|
|
}
|
|
|
|
export type NoConfigCommentSumAggregateInputType = {
|
|
id?: true
|
|
userId?: true
|
|
prNumber?: true
|
|
}
|
|
|
|
export type NoConfigCommentMinAggregateInputType = {
|
|
id?: true
|
|
userId?: true
|
|
repoOwner?: true
|
|
repoName?: true
|
|
prNumber?: true
|
|
createdAt?: true
|
|
}
|
|
|
|
export type NoConfigCommentMaxAggregateInputType = {
|
|
id?: true
|
|
userId?: true
|
|
repoOwner?: true
|
|
repoName?: true
|
|
prNumber?: true
|
|
createdAt?: true
|
|
}
|
|
|
|
export type NoConfigCommentCountAggregateInputType = {
|
|
id?: true
|
|
userId?: true
|
|
repoOwner?: true
|
|
repoName?: true
|
|
prNumber?: true
|
|
createdAt?: true
|
|
_all?: true
|
|
}
|
|
|
|
export type NoConfigCommentAggregateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Filter which NoConfigComment to aggregate.
|
|
*/
|
|
where?: NoConfigCommentWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of NoConfigComments to fetch.
|
|
*/
|
|
orderBy?: NoConfigCommentOrderByWithRelationInput | NoConfigCommentOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the start position
|
|
*/
|
|
cursor?: NoConfigCommentWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` NoConfigComments 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` NoConfigComments.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Count returned NoConfigComments
|
|
**/
|
|
_count?: true | NoConfigCommentCountAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to average
|
|
**/
|
|
_avg?: NoConfigCommentAvgAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to sum
|
|
**/
|
|
_sum?: NoConfigCommentSumAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to find the minimum value
|
|
**/
|
|
_min?: NoConfigCommentMinAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to find the maximum value
|
|
**/
|
|
_max?: NoConfigCommentMaxAggregateInputType
|
|
}
|
|
|
|
export type GetNoConfigCommentAggregateType<T extends NoConfigCommentAggregateArgs> = {
|
|
[P in keyof T & keyof AggregateNoConfigComment]: P extends '_count' | 'count'
|
|
? T[P] extends true
|
|
? number
|
|
: GetScalarType<T[P], AggregateNoConfigComment[P]>
|
|
: GetScalarType<T[P], AggregateNoConfigComment[P]>
|
|
}
|
|
|
|
|
|
|
|
|
|
export type NoConfigCommentGroupByArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
where?: NoConfigCommentWhereInput
|
|
orderBy?: NoConfigCommentOrderByWithAggregationInput | NoConfigCommentOrderByWithAggregationInput[]
|
|
by: NoConfigCommentScalarFieldEnum[] | NoConfigCommentScalarFieldEnum
|
|
having?: NoConfigCommentScalarWhereWithAggregatesInput
|
|
take?: number
|
|
skip?: number
|
|
_count?: NoConfigCommentCountAggregateInputType | true
|
|
_avg?: NoConfigCommentAvgAggregateInputType
|
|
_sum?: NoConfigCommentSumAggregateInputType
|
|
_min?: NoConfigCommentMinAggregateInputType
|
|
_max?: NoConfigCommentMaxAggregateInputType
|
|
}
|
|
|
|
export type NoConfigCommentGroupByOutputType = {
|
|
id: number
|
|
userId: number
|
|
repoOwner: string
|
|
repoName: string
|
|
prNumber: number
|
|
createdAt: Date
|
|
_count: NoConfigCommentCountAggregateOutputType | null
|
|
_avg: NoConfigCommentAvgAggregateOutputType | null
|
|
_sum: NoConfigCommentSumAggregateOutputType | null
|
|
_min: NoConfigCommentMinAggregateOutputType | null
|
|
_max: NoConfigCommentMaxAggregateOutputType | null
|
|
}
|
|
|
|
type GetNoConfigCommentGroupByPayload<T extends NoConfigCommentGroupByArgs> = Prisma.PrismaPromise<
|
|
Array<
|
|
PickEnumerable<NoConfigCommentGroupByOutputType, T['by']> &
|
|
{
|
|
[P in ((keyof T) & (keyof NoConfigCommentGroupByOutputType))]: P extends '_count'
|
|
? T[P] extends boolean
|
|
? number
|
|
: GetScalarType<T[P], NoConfigCommentGroupByOutputType[P]>
|
|
: GetScalarType<T[P], NoConfigCommentGroupByOutputType[P]>
|
|
}
|
|
>
|
|
>
|
|
|
|
|
|
export type NoConfigCommentSelect<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
|
|
id?: boolean
|
|
userId?: boolean
|
|
repoOwner?: boolean
|
|
repoName?: boolean
|
|
prNumber?: boolean
|
|
createdAt?: boolean
|
|
user?: boolean | UserDefaultArgs<ExtArgs>
|
|
}, ExtArgs["result"]["noConfigComment"]>
|
|
|
|
export type NoConfigCommentSelectCreateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
|
|
id?: boolean
|
|
userId?: boolean
|
|
repoOwner?: boolean
|
|
repoName?: boolean
|
|
prNumber?: boolean
|
|
createdAt?: boolean
|
|
user?: boolean | UserDefaultArgs<ExtArgs>
|
|
}, ExtArgs["result"]["noConfigComment"]>
|
|
|
|
export type NoConfigCommentSelectUpdateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
|
|
id?: boolean
|
|
userId?: boolean
|
|
repoOwner?: boolean
|
|
repoName?: boolean
|
|
prNumber?: boolean
|
|
createdAt?: boolean
|
|
user?: boolean | UserDefaultArgs<ExtArgs>
|
|
}, ExtArgs["result"]["noConfigComment"]>
|
|
|
|
export type NoConfigCommentSelectScalar = {
|
|
id?: boolean
|
|
userId?: boolean
|
|
repoOwner?: boolean
|
|
repoName?: boolean
|
|
prNumber?: boolean
|
|
createdAt?: boolean
|
|
}
|
|
|
|
export type NoConfigCommentOmit<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetOmit<"id" | "userId" | "repoOwner" | "repoName" | "prNumber" | "createdAt", ExtArgs["result"]["noConfigComment"]>
|
|
export type NoConfigCommentInclude<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
user?: boolean | UserDefaultArgs<ExtArgs>
|
|
}
|
|
export type NoConfigCommentIncludeCreateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
user?: boolean | UserDefaultArgs<ExtArgs>
|
|
}
|
|
export type NoConfigCommentIncludeUpdateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
user?: boolean | UserDefaultArgs<ExtArgs>
|
|
}
|
|
|
|
export type $NoConfigCommentPayload<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
name: "NoConfigComment"
|
|
objects: {
|
|
user: Prisma.$UserPayload<ExtArgs>
|
|
}
|
|
scalars: $Extensions.GetPayloadResult<{
|
|
id: number
|
|
userId: number
|
|
repoOwner: string
|
|
repoName: string
|
|
prNumber: number
|
|
createdAt: Date
|
|
}, ExtArgs["result"]["noConfigComment"]>
|
|
composites: {}
|
|
}
|
|
|
|
type NoConfigCommentGetPayload<S extends boolean | null | undefined | NoConfigCommentDefaultArgs> = $Result.GetResult<Prisma.$NoConfigCommentPayload, S>
|
|
|
|
type NoConfigCommentCountArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> =
|
|
Omit<NoConfigCommentFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
|
|
select?: NoConfigCommentCountAggregateInputType | true
|
|
}
|
|
|
|
export interface NoConfigCommentDelegate<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs, GlobalOmitOptions = {}> {
|
|
[K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['NoConfigComment'], meta: { name: 'NoConfigComment' } }
|
|
/**
|
|
* Find zero or one NoConfigComment that matches the filter.
|
|
* @param {NoConfigCommentFindUniqueArgs} args - Arguments to find a NoConfigComment
|
|
* @example
|
|
* // Get one NoConfigComment
|
|
* const noConfigComment = await prisma.noConfigComment.findUnique({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findUnique<T extends NoConfigCommentFindUniqueArgs>(args: SelectSubset<T, NoConfigCommentFindUniqueArgs<ExtArgs>>): Prisma__NoConfigCommentClient<$Result.GetResult<Prisma.$NoConfigCommentPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Find one NoConfigComment that matches the filter or throw an error with `error.code='P2025'`
|
|
* if no matches were found.
|
|
* @param {NoConfigCommentFindUniqueOrThrowArgs} args - Arguments to find a NoConfigComment
|
|
* @example
|
|
* // Get one NoConfigComment
|
|
* const noConfigComment = await prisma.noConfigComment.findUniqueOrThrow({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findUniqueOrThrow<T extends NoConfigCommentFindUniqueOrThrowArgs>(args: SelectSubset<T, NoConfigCommentFindUniqueOrThrowArgs<ExtArgs>>): Prisma__NoConfigCommentClient<$Result.GetResult<Prisma.$NoConfigCommentPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Find the first NoConfigComment 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 {NoConfigCommentFindFirstArgs} args - Arguments to find a NoConfigComment
|
|
* @example
|
|
* // Get one NoConfigComment
|
|
* const noConfigComment = await prisma.noConfigComment.findFirst({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findFirst<T extends NoConfigCommentFindFirstArgs>(args?: SelectSubset<T, NoConfigCommentFindFirstArgs<ExtArgs>>): Prisma__NoConfigCommentClient<$Result.GetResult<Prisma.$NoConfigCommentPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Find the first NoConfigComment 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 {NoConfigCommentFindFirstOrThrowArgs} args - Arguments to find a NoConfigComment
|
|
* @example
|
|
* // Get one NoConfigComment
|
|
* const noConfigComment = await prisma.noConfigComment.findFirstOrThrow({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findFirstOrThrow<T extends NoConfigCommentFindFirstOrThrowArgs>(args?: SelectSubset<T, NoConfigCommentFindFirstOrThrowArgs<ExtArgs>>): Prisma__NoConfigCommentClient<$Result.GetResult<Prisma.$NoConfigCommentPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Find zero or more NoConfigComments 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 {NoConfigCommentFindManyArgs} args - Arguments to filter and select certain fields only.
|
|
* @example
|
|
* // Get all NoConfigComments
|
|
* const noConfigComments = await prisma.noConfigComment.findMany()
|
|
*
|
|
* // Get first 10 NoConfigComments
|
|
* const noConfigComments = await prisma.noConfigComment.findMany({ take: 10 })
|
|
*
|
|
* // Only select the `id`
|
|
* const noConfigCommentWithIdOnly = await prisma.noConfigComment.findMany({ select: { id: true } })
|
|
*
|
|
*/
|
|
findMany<T extends NoConfigCommentFindManyArgs>(args?: SelectSubset<T, NoConfigCommentFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$NoConfigCommentPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
|
|
|
|
/**
|
|
* Create a NoConfigComment.
|
|
* @param {NoConfigCommentCreateArgs} args - Arguments to create a NoConfigComment.
|
|
* @example
|
|
* // Create one NoConfigComment
|
|
* const NoConfigComment = await prisma.noConfigComment.create({
|
|
* data: {
|
|
* // ... data to create a NoConfigComment
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
create<T extends NoConfigCommentCreateArgs>(args: SelectSubset<T, NoConfigCommentCreateArgs<ExtArgs>>): Prisma__NoConfigCommentClient<$Result.GetResult<Prisma.$NoConfigCommentPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Create many NoConfigComments.
|
|
* @param {NoConfigCommentCreateManyArgs} args - Arguments to create many NoConfigComments.
|
|
* @example
|
|
* // Create many NoConfigComments
|
|
* const noConfigComment = await prisma.noConfigComment.createMany({
|
|
* data: [
|
|
* // ... provide data here
|
|
* ]
|
|
* })
|
|
*
|
|
*/
|
|
createMany<T extends NoConfigCommentCreateManyArgs>(args?: SelectSubset<T, NoConfigCommentCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
|
|
|
|
/**
|
|
* Create many NoConfigComments and returns the data saved in the database.
|
|
* @param {NoConfigCommentCreateManyAndReturnArgs} args - Arguments to create many NoConfigComments.
|
|
* @example
|
|
* // Create many NoConfigComments
|
|
* const noConfigComment = await prisma.noConfigComment.createManyAndReturn({
|
|
* data: [
|
|
* // ... provide data here
|
|
* ]
|
|
* })
|
|
*
|
|
* // Create many NoConfigComments and only return the `id`
|
|
* const noConfigCommentWithIdOnly = await prisma.noConfigComment.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 NoConfigCommentCreateManyAndReturnArgs>(args?: SelectSubset<T, NoConfigCommentCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$NoConfigCommentPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>
|
|
|
|
/**
|
|
* Delete a NoConfigComment.
|
|
* @param {NoConfigCommentDeleteArgs} args - Arguments to delete one NoConfigComment.
|
|
* @example
|
|
* // Delete one NoConfigComment
|
|
* const NoConfigComment = await prisma.noConfigComment.delete({
|
|
* where: {
|
|
* // ... filter to delete one NoConfigComment
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
delete<T extends NoConfigCommentDeleteArgs>(args: SelectSubset<T, NoConfigCommentDeleteArgs<ExtArgs>>): Prisma__NoConfigCommentClient<$Result.GetResult<Prisma.$NoConfigCommentPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Update one NoConfigComment.
|
|
* @param {NoConfigCommentUpdateArgs} args - Arguments to update one NoConfigComment.
|
|
* @example
|
|
* // Update one NoConfigComment
|
|
* const noConfigComment = await prisma.noConfigComment.update({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* },
|
|
* data: {
|
|
* // ... provide data here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
update<T extends NoConfigCommentUpdateArgs>(args: SelectSubset<T, NoConfigCommentUpdateArgs<ExtArgs>>): Prisma__NoConfigCommentClient<$Result.GetResult<Prisma.$NoConfigCommentPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Delete zero or more NoConfigComments.
|
|
* @param {NoConfigCommentDeleteManyArgs} args - Arguments to filter NoConfigComments to delete.
|
|
* @example
|
|
* // Delete a few NoConfigComments
|
|
* const { count } = await prisma.noConfigComment.deleteMany({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
deleteMany<T extends NoConfigCommentDeleteManyArgs>(args?: SelectSubset<T, NoConfigCommentDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
|
|
|
|
/**
|
|
* Update zero or more NoConfigComments.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {NoConfigCommentUpdateManyArgs} args - Arguments to update one or more rows.
|
|
* @example
|
|
* // Update many NoConfigComments
|
|
* const noConfigComment = await prisma.noConfigComment.updateMany({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* },
|
|
* data: {
|
|
* // ... provide data here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
updateMany<T extends NoConfigCommentUpdateManyArgs>(args: SelectSubset<T, NoConfigCommentUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
|
|
|
|
/**
|
|
* Update zero or more NoConfigComments and returns the data updated in the database.
|
|
* @param {NoConfigCommentUpdateManyAndReturnArgs} args - Arguments to update many NoConfigComments.
|
|
* @example
|
|
* // Update many NoConfigComments
|
|
* const noConfigComment = await prisma.noConfigComment.updateManyAndReturn({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* },
|
|
* data: [
|
|
* // ... provide data here
|
|
* ]
|
|
* })
|
|
*
|
|
* // Update zero or more NoConfigComments and only return the `id`
|
|
* const noConfigCommentWithIdOnly = await prisma.noConfigComment.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 NoConfigCommentUpdateManyAndReturnArgs>(args: SelectSubset<T, NoConfigCommentUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$NoConfigCommentPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>
|
|
|
|
/**
|
|
* Create or update one NoConfigComment.
|
|
* @param {NoConfigCommentUpsertArgs} args - Arguments to update or create a NoConfigComment.
|
|
* @example
|
|
* // Update or create a NoConfigComment
|
|
* const noConfigComment = await prisma.noConfigComment.upsert({
|
|
* create: {
|
|
* // ... data to create a NoConfigComment
|
|
* },
|
|
* update: {
|
|
* // ... in case it already exists, update
|
|
* },
|
|
* where: {
|
|
* // ... the filter for the NoConfigComment we want to update
|
|
* }
|
|
* })
|
|
*/
|
|
upsert<T extends NoConfigCommentUpsertArgs>(args: SelectSubset<T, NoConfigCommentUpsertArgs<ExtArgs>>): Prisma__NoConfigCommentClient<$Result.GetResult<Prisma.$NoConfigCommentPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
|
|
/**
|
|
* Count the number of NoConfigComments.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {NoConfigCommentCountArgs} args - Arguments to filter NoConfigComments to count.
|
|
* @example
|
|
* // Count the number of NoConfigComments
|
|
* const count = await prisma.noConfigComment.count({
|
|
* where: {
|
|
* // ... the filter for the NoConfigComments we want to count
|
|
* }
|
|
* })
|
|
**/
|
|
count<T extends NoConfigCommentCountArgs>(
|
|
args?: Subset<T, NoConfigCommentCountArgs>,
|
|
): Prisma.PrismaPromise<
|
|
T extends $Utils.Record<'select', any>
|
|
? T['select'] extends true
|
|
? number
|
|
: GetScalarType<T['select'], NoConfigCommentCountAggregateOutputType>
|
|
: number
|
|
>
|
|
|
|
/**
|
|
* Allows you to perform aggregations operations on a NoConfigComment.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {NoConfigCommentAggregateArgs} 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 NoConfigCommentAggregateArgs>(args: Subset<T, NoConfigCommentAggregateArgs>): Prisma.PrismaPromise<GetNoConfigCommentAggregateType<T>>
|
|
|
|
/**
|
|
* Group by NoConfigComment.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {NoConfigCommentGroupByArgs} 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 NoConfigCommentGroupByArgs,
|
|
HasSelectOrTake extends Or<
|
|
Extends<'skip', Keys<T>>,
|
|
Extends<'take', Keys<T>>
|
|
>,
|
|
OrderByArg extends True extends HasSelectOrTake
|
|
? { orderBy: NoConfigCommentGroupByArgs['orderBy'] }
|
|
: { orderBy?: NoConfigCommentGroupByArgs['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, NoConfigCommentGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetNoConfigCommentGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
|
|
/**
|
|
* Fields of the NoConfigComment model
|
|
*/
|
|
readonly fields: NoConfigCommentFieldRefs;
|
|
}
|
|
|
|
/**
|
|
* The delegate class that acts as a "Promise-like" for NoConfigComment.
|
|
* 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__NoConfigCommentClient<T, Null = never, ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
|
|
readonly [Symbol.toStringTag]: "PrismaPromise"
|
|
user<T extends UserDefaultArgs<ExtArgs> = {}>(args?: Subset<T, UserDefaultArgs<ExtArgs>>): Prisma__UserClient<$Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>
|
|
/**
|
|
* 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 NoConfigComment model
|
|
*/
|
|
interface NoConfigCommentFieldRefs {
|
|
readonly id: FieldRef<"NoConfigComment", 'Int'>
|
|
readonly userId: FieldRef<"NoConfigComment", 'Int'>
|
|
readonly repoOwner: FieldRef<"NoConfigComment", 'String'>
|
|
readonly repoName: FieldRef<"NoConfigComment", 'String'>
|
|
readonly prNumber: FieldRef<"NoConfigComment", 'Int'>
|
|
readonly createdAt: FieldRef<"NoConfigComment", 'DateTime'>
|
|
}
|
|
|
|
|
|
// Custom InputTypes
|
|
/**
|
|
* NoConfigComment findUnique
|
|
*/
|
|
export type NoConfigCommentFindUniqueArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the NoConfigComment
|
|
*/
|
|
select?: NoConfigCommentSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the NoConfigComment
|
|
*/
|
|
omit?: NoConfigCommentOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: NoConfigCommentInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which NoConfigComment to fetch.
|
|
*/
|
|
where: NoConfigCommentWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* NoConfigComment findUniqueOrThrow
|
|
*/
|
|
export type NoConfigCommentFindUniqueOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the NoConfigComment
|
|
*/
|
|
select?: NoConfigCommentSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the NoConfigComment
|
|
*/
|
|
omit?: NoConfigCommentOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: NoConfigCommentInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which NoConfigComment to fetch.
|
|
*/
|
|
where: NoConfigCommentWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* NoConfigComment findFirst
|
|
*/
|
|
export type NoConfigCommentFindFirstArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the NoConfigComment
|
|
*/
|
|
select?: NoConfigCommentSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the NoConfigComment
|
|
*/
|
|
omit?: NoConfigCommentOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: NoConfigCommentInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which NoConfigComment to fetch.
|
|
*/
|
|
where?: NoConfigCommentWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of NoConfigComments to fetch.
|
|
*/
|
|
orderBy?: NoConfigCommentOrderByWithRelationInput | NoConfigCommentOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for searching for NoConfigComments.
|
|
*/
|
|
cursor?: NoConfigCommentWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` NoConfigComments 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` NoConfigComments.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
*
|
|
* Filter by unique combinations of NoConfigComments.
|
|
*/
|
|
distinct?: NoConfigCommentScalarFieldEnum | NoConfigCommentScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* NoConfigComment findFirstOrThrow
|
|
*/
|
|
export type NoConfigCommentFindFirstOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the NoConfigComment
|
|
*/
|
|
select?: NoConfigCommentSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the NoConfigComment
|
|
*/
|
|
omit?: NoConfigCommentOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: NoConfigCommentInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which NoConfigComment to fetch.
|
|
*/
|
|
where?: NoConfigCommentWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of NoConfigComments to fetch.
|
|
*/
|
|
orderBy?: NoConfigCommentOrderByWithRelationInput | NoConfigCommentOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for searching for NoConfigComments.
|
|
*/
|
|
cursor?: NoConfigCommentWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` NoConfigComments 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` NoConfigComments.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
*
|
|
* Filter by unique combinations of NoConfigComments.
|
|
*/
|
|
distinct?: NoConfigCommentScalarFieldEnum | NoConfigCommentScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* NoConfigComment findMany
|
|
*/
|
|
export type NoConfigCommentFindManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the NoConfigComment
|
|
*/
|
|
select?: NoConfigCommentSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the NoConfigComment
|
|
*/
|
|
omit?: NoConfigCommentOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: NoConfigCommentInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which NoConfigComments to fetch.
|
|
*/
|
|
where?: NoConfigCommentWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of NoConfigComments to fetch.
|
|
*/
|
|
orderBy?: NoConfigCommentOrderByWithRelationInput | NoConfigCommentOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for listing NoConfigComments.
|
|
*/
|
|
cursor?: NoConfigCommentWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` NoConfigComments 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` NoConfigComments.
|
|
*/
|
|
skip?: number
|
|
distinct?: NoConfigCommentScalarFieldEnum | NoConfigCommentScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* NoConfigComment create
|
|
*/
|
|
export type NoConfigCommentCreateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the NoConfigComment
|
|
*/
|
|
select?: NoConfigCommentSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the NoConfigComment
|
|
*/
|
|
omit?: NoConfigCommentOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: NoConfigCommentInclude<ExtArgs> | null
|
|
/**
|
|
* The data needed to create a NoConfigComment.
|
|
*/
|
|
data: XOR<NoConfigCommentCreateInput, NoConfigCommentUncheckedCreateInput>
|
|
}
|
|
|
|
/**
|
|
* NoConfigComment createMany
|
|
*/
|
|
export type NoConfigCommentCreateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* The data used to create many NoConfigComments.
|
|
*/
|
|
data: NoConfigCommentCreateManyInput | NoConfigCommentCreateManyInput[]
|
|
skipDuplicates?: boolean
|
|
}
|
|
|
|
/**
|
|
* NoConfigComment createManyAndReturn
|
|
*/
|
|
export type NoConfigCommentCreateManyAndReturnArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the NoConfigComment
|
|
*/
|
|
select?: NoConfigCommentSelectCreateManyAndReturn<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the NoConfigComment
|
|
*/
|
|
omit?: NoConfigCommentOmit<ExtArgs> | null
|
|
/**
|
|
* The data used to create many NoConfigComments.
|
|
*/
|
|
data: NoConfigCommentCreateManyInput | NoConfigCommentCreateManyInput[]
|
|
skipDuplicates?: boolean
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: NoConfigCommentIncludeCreateManyAndReturn<ExtArgs> | null
|
|
}
|
|
|
|
/**
|
|
* NoConfigComment update
|
|
*/
|
|
export type NoConfigCommentUpdateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the NoConfigComment
|
|
*/
|
|
select?: NoConfigCommentSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the NoConfigComment
|
|
*/
|
|
omit?: NoConfigCommentOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: NoConfigCommentInclude<ExtArgs> | null
|
|
/**
|
|
* The data needed to update a NoConfigComment.
|
|
*/
|
|
data: XOR<NoConfigCommentUpdateInput, NoConfigCommentUncheckedUpdateInput>
|
|
/**
|
|
* Choose, which NoConfigComment to update.
|
|
*/
|
|
where: NoConfigCommentWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* NoConfigComment updateMany
|
|
*/
|
|
export type NoConfigCommentUpdateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* The data used to update NoConfigComments.
|
|
*/
|
|
data: XOR<NoConfigCommentUpdateManyMutationInput, NoConfigCommentUncheckedUpdateManyInput>
|
|
/**
|
|
* Filter which NoConfigComments to update
|
|
*/
|
|
where?: NoConfigCommentWhereInput
|
|
/**
|
|
* Limit how many NoConfigComments to update.
|
|
*/
|
|
limit?: number
|
|
}
|
|
|
|
/**
|
|
* NoConfigComment updateManyAndReturn
|
|
*/
|
|
export type NoConfigCommentUpdateManyAndReturnArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the NoConfigComment
|
|
*/
|
|
select?: NoConfigCommentSelectUpdateManyAndReturn<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the NoConfigComment
|
|
*/
|
|
omit?: NoConfigCommentOmit<ExtArgs> | null
|
|
/**
|
|
* The data used to update NoConfigComments.
|
|
*/
|
|
data: XOR<NoConfigCommentUpdateManyMutationInput, NoConfigCommentUncheckedUpdateManyInput>
|
|
/**
|
|
* Filter which NoConfigComments to update
|
|
*/
|
|
where?: NoConfigCommentWhereInput
|
|
/**
|
|
* Limit how many NoConfigComments to update.
|
|
*/
|
|
limit?: number
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: NoConfigCommentIncludeUpdateManyAndReturn<ExtArgs> | null
|
|
}
|
|
|
|
/**
|
|
* NoConfigComment upsert
|
|
*/
|
|
export type NoConfigCommentUpsertArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the NoConfigComment
|
|
*/
|
|
select?: NoConfigCommentSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the NoConfigComment
|
|
*/
|
|
omit?: NoConfigCommentOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: NoConfigCommentInclude<ExtArgs> | null
|
|
/**
|
|
* The filter to search for the NoConfigComment to update in case it exists.
|
|
*/
|
|
where: NoConfigCommentWhereUniqueInput
|
|
/**
|
|
* In case the NoConfigComment found by the `where` argument doesn't exist, create a new NoConfigComment with this data.
|
|
*/
|
|
create: XOR<NoConfigCommentCreateInput, NoConfigCommentUncheckedCreateInput>
|
|
/**
|
|
* In case the NoConfigComment was found with the provided `where` argument, update it with this data.
|
|
*/
|
|
update: XOR<NoConfigCommentUpdateInput, NoConfigCommentUncheckedUpdateInput>
|
|
}
|
|
|
|
/**
|
|
* NoConfigComment delete
|
|
*/
|
|
export type NoConfigCommentDeleteArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the NoConfigComment
|
|
*/
|
|
select?: NoConfigCommentSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the NoConfigComment
|
|
*/
|
|
omit?: NoConfigCommentOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: NoConfigCommentInclude<ExtArgs> | null
|
|
/**
|
|
* Filter which NoConfigComment to delete.
|
|
*/
|
|
where: NoConfigCommentWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* NoConfigComment deleteMany
|
|
*/
|
|
export type NoConfigCommentDeleteManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Filter which NoConfigComments to delete
|
|
*/
|
|
where?: NoConfigCommentWhereInput
|
|
/**
|
|
* Limit how many NoConfigComments to delete.
|
|
*/
|
|
limit?: number
|
|
}
|
|
|
|
/**
|
|
* NoConfigComment without action
|
|
*/
|
|
export type NoConfigCommentDefaultArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the NoConfigComment
|
|
*/
|
|
select?: NoConfigCommentSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the NoConfigComment
|
|
*/
|
|
omit?: NoConfigCommentOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: NoConfigCommentInclude<ExtArgs> | null
|
|
}
|
|
|
|
|
|
/**
|
|
* Model AdminSettings
|
|
*/
|
|
|
|
export type AggregateAdminSettings = {
|
|
_count: AdminSettingsCountAggregateOutputType | null
|
|
_avg: AdminSettingsAvgAggregateOutputType | null
|
|
_sum: AdminSettingsSumAggregateOutputType | null
|
|
_min: AdminSettingsMinAggregateOutputType | null
|
|
_max: AdminSettingsMaxAggregateOutputType | null
|
|
}
|
|
|
|
export type AdminSettingsAvgAggregateOutputType = {
|
|
id: number | null
|
|
maxConcurrentInstancesPerUser: number | null
|
|
logSizeLimitBytes: number | null
|
|
previewRetentionDays: number | null
|
|
webhookRateLimitPerMinute: number | null
|
|
}
|
|
|
|
export type AdminSettingsSumAggregateOutputType = {
|
|
id: number | null
|
|
maxConcurrentInstancesPerUser: number | null
|
|
logSizeLimitBytes: number | null
|
|
previewRetentionDays: number | null
|
|
webhookRateLimitPerMinute: number | null
|
|
}
|
|
|
|
export type AdminSettingsMinAggregateOutputType = {
|
|
id: number | null
|
|
defaultInstanceType: string | null
|
|
maxConcurrentInstancesPerUser: number | null
|
|
logSizeLimitBytes: number | null
|
|
previewRetentionDays: number | null
|
|
webhookRateLimitPerMinute: number | null
|
|
contactEmail: string | null
|
|
}
|
|
|
|
export type AdminSettingsMaxAggregateOutputType = {
|
|
id: number | null
|
|
defaultInstanceType: string | null
|
|
maxConcurrentInstancesPerUser: number | null
|
|
logSizeLimitBytes: number | null
|
|
previewRetentionDays: number | null
|
|
webhookRateLimitPerMinute: number | null
|
|
contactEmail: string | null
|
|
}
|
|
|
|
export type AdminSettingsCountAggregateOutputType = {
|
|
id: number
|
|
defaultInstanceType: number
|
|
maxConcurrentInstancesPerUser: number
|
|
logSizeLimitBytes: number
|
|
previewRetentionDays: number
|
|
webhookRateLimitPerMinute: number
|
|
contactEmail: number
|
|
_all: number
|
|
}
|
|
|
|
|
|
export type AdminSettingsAvgAggregateInputType = {
|
|
id?: true
|
|
maxConcurrentInstancesPerUser?: true
|
|
logSizeLimitBytes?: true
|
|
previewRetentionDays?: true
|
|
webhookRateLimitPerMinute?: true
|
|
}
|
|
|
|
export type AdminSettingsSumAggregateInputType = {
|
|
id?: true
|
|
maxConcurrentInstancesPerUser?: true
|
|
logSizeLimitBytes?: true
|
|
previewRetentionDays?: true
|
|
webhookRateLimitPerMinute?: true
|
|
}
|
|
|
|
export type AdminSettingsMinAggregateInputType = {
|
|
id?: true
|
|
defaultInstanceType?: true
|
|
maxConcurrentInstancesPerUser?: true
|
|
logSizeLimitBytes?: true
|
|
previewRetentionDays?: true
|
|
webhookRateLimitPerMinute?: true
|
|
contactEmail?: true
|
|
}
|
|
|
|
export type AdminSettingsMaxAggregateInputType = {
|
|
id?: true
|
|
defaultInstanceType?: true
|
|
maxConcurrentInstancesPerUser?: true
|
|
logSizeLimitBytes?: true
|
|
previewRetentionDays?: true
|
|
webhookRateLimitPerMinute?: true
|
|
contactEmail?: true
|
|
}
|
|
|
|
export type AdminSettingsCountAggregateInputType = {
|
|
id?: true
|
|
defaultInstanceType?: true
|
|
maxConcurrentInstancesPerUser?: true
|
|
logSizeLimitBytes?: true
|
|
previewRetentionDays?: true
|
|
webhookRateLimitPerMinute?: true
|
|
contactEmail?: true
|
|
_all?: true
|
|
}
|
|
|
|
export type AdminSettingsAggregateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Filter which AdminSettings to aggregate.
|
|
*/
|
|
where?: AdminSettingsWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of AdminSettings to fetch.
|
|
*/
|
|
orderBy?: AdminSettingsOrderByWithRelationInput | AdminSettingsOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the start position
|
|
*/
|
|
cursor?: AdminSettingsWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` AdminSettings 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` AdminSettings.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Count returned AdminSettings
|
|
**/
|
|
_count?: true | AdminSettingsCountAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to average
|
|
**/
|
|
_avg?: AdminSettingsAvgAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to sum
|
|
**/
|
|
_sum?: AdminSettingsSumAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to find the minimum value
|
|
**/
|
|
_min?: AdminSettingsMinAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to find the maximum value
|
|
**/
|
|
_max?: AdminSettingsMaxAggregateInputType
|
|
}
|
|
|
|
export type GetAdminSettingsAggregateType<T extends AdminSettingsAggregateArgs> = {
|
|
[P in keyof T & keyof AggregateAdminSettings]: P extends '_count' | 'count'
|
|
? T[P] extends true
|
|
? number
|
|
: GetScalarType<T[P], AggregateAdminSettings[P]>
|
|
: GetScalarType<T[P], AggregateAdminSettings[P]>
|
|
}
|
|
|
|
|
|
|
|
|
|
export type AdminSettingsGroupByArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
where?: AdminSettingsWhereInput
|
|
orderBy?: AdminSettingsOrderByWithAggregationInput | AdminSettingsOrderByWithAggregationInput[]
|
|
by: AdminSettingsScalarFieldEnum[] | AdminSettingsScalarFieldEnum
|
|
having?: AdminSettingsScalarWhereWithAggregatesInput
|
|
take?: number
|
|
skip?: number
|
|
_count?: AdminSettingsCountAggregateInputType | true
|
|
_avg?: AdminSettingsAvgAggregateInputType
|
|
_sum?: AdminSettingsSumAggregateInputType
|
|
_min?: AdminSettingsMinAggregateInputType
|
|
_max?: AdminSettingsMaxAggregateInputType
|
|
}
|
|
|
|
export type AdminSettingsGroupByOutputType = {
|
|
id: number
|
|
defaultInstanceType: string
|
|
maxConcurrentInstancesPerUser: number
|
|
logSizeLimitBytes: number
|
|
previewRetentionDays: number
|
|
webhookRateLimitPerMinute: number
|
|
contactEmail: string
|
|
_count: AdminSettingsCountAggregateOutputType | null
|
|
_avg: AdminSettingsAvgAggregateOutputType | null
|
|
_sum: AdminSettingsSumAggregateOutputType | null
|
|
_min: AdminSettingsMinAggregateOutputType | null
|
|
_max: AdminSettingsMaxAggregateOutputType | null
|
|
}
|
|
|
|
type GetAdminSettingsGroupByPayload<T extends AdminSettingsGroupByArgs> = Prisma.PrismaPromise<
|
|
Array<
|
|
PickEnumerable<AdminSettingsGroupByOutputType, T['by']> &
|
|
{
|
|
[P in ((keyof T) & (keyof AdminSettingsGroupByOutputType))]: P extends '_count'
|
|
? T[P] extends boolean
|
|
? number
|
|
: GetScalarType<T[P], AdminSettingsGroupByOutputType[P]>
|
|
: GetScalarType<T[P], AdminSettingsGroupByOutputType[P]>
|
|
}
|
|
>
|
|
>
|
|
|
|
|
|
export type AdminSettingsSelect<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
|
|
id?: boolean
|
|
defaultInstanceType?: boolean
|
|
maxConcurrentInstancesPerUser?: boolean
|
|
logSizeLimitBytes?: boolean
|
|
previewRetentionDays?: boolean
|
|
webhookRateLimitPerMinute?: boolean
|
|
contactEmail?: boolean
|
|
}, ExtArgs["result"]["adminSettings"]>
|
|
|
|
export type AdminSettingsSelectCreateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
|
|
id?: boolean
|
|
defaultInstanceType?: boolean
|
|
maxConcurrentInstancesPerUser?: boolean
|
|
logSizeLimitBytes?: boolean
|
|
previewRetentionDays?: boolean
|
|
webhookRateLimitPerMinute?: boolean
|
|
contactEmail?: boolean
|
|
}, ExtArgs["result"]["adminSettings"]>
|
|
|
|
export type AdminSettingsSelectUpdateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
|
|
id?: boolean
|
|
defaultInstanceType?: boolean
|
|
maxConcurrentInstancesPerUser?: boolean
|
|
logSizeLimitBytes?: boolean
|
|
previewRetentionDays?: boolean
|
|
webhookRateLimitPerMinute?: boolean
|
|
contactEmail?: boolean
|
|
}, ExtArgs["result"]["adminSettings"]>
|
|
|
|
export type AdminSettingsSelectScalar = {
|
|
id?: boolean
|
|
defaultInstanceType?: boolean
|
|
maxConcurrentInstancesPerUser?: boolean
|
|
logSizeLimitBytes?: boolean
|
|
previewRetentionDays?: boolean
|
|
webhookRateLimitPerMinute?: boolean
|
|
contactEmail?: boolean
|
|
}
|
|
|
|
export type AdminSettingsOmit<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetOmit<"id" | "defaultInstanceType" | "maxConcurrentInstancesPerUser" | "logSizeLimitBytes" | "previewRetentionDays" | "webhookRateLimitPerMinute" | "contactEmail", ExtArgs["result"]["adminSettings"]>
|
|
|
|
export type $AdminSettingsPayload<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
name: "AdminSettings"
|
|
objects: {}
|
|
scalars: $Extensions.GetPayloadResult<{
|
|
id: number
|
|
defaultInstanceType: string
|
|
maxConcurrentInstancesPerUser: number
|
|
logSizeLimitBytes: number
|
|
previewRetentionDays: number
|
|
webhookRateLimitPerMinute: number
|
|
contactEmail: string
|
|
}, ExtArgs["result"]["adminSettings"]>
|
|
composites: {}
|
|
}
|
|
|
|
type AdminSettingsGetPayload<S extends boolean | null | undefined | AdminSettingsDefaultArgs> = $Result.GetResult<Prisma.$AdminSettingsPayload, S>
|
|
|
|
type AdminSettingsCountArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> =
|
|
Omit<AdminSettingsFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
|
|
select?: AdminSettingsCountAggregateInputType | true
|
|
}
|
|
|
|
export interface AdminSettingsDelegate<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs, GlobalOmitOptions = {}> {
|
|
[K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['AdminSettings'], meta: { name: 'AdminSettings' } }
|
|
/**
|
|
* Find zero or one AdminSettings that matches the filter.
|
|
* @param {AdminSettingsFindUniqueArgs} args - Arguments to find a AdminSettings
|
|
* @example
|
|
* // Get one AdminSettings
|
|
* const adminSettings = await prisma.adminSettings.findUnique({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findUnique<T extends AdminSettingsFindUniqueArgs>(args: SelectSubset<T, AdminSettingsFindUniqueArgs<ExtArgs>>): Prisma__AdminSettingsClient<$Result.GetResult<Prisma.$AdminSettingsPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Find one AdminSettings that matches the filter or throw an error with `error.code='P2025'`
|
|
* if no matches were found.
|
|
* @param {AdminSettingsFindUniqueOrThrowArgs} args - Arguments to find a AdminSettings
|
|
* @example
|
|
* // Get one AdminSettings
|
|
* const adminSettings = await prisma.adminSettings.findUniqueOrThrow({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findUniqueOrThrow<T extends AdminSettingsFindUniqueOrThrowArgs>(args: SelectSubset<T, AdminSettingsFindUniqueOrThrowArgs<ExtArgs>>): Prisma__AdminSettingsClient<$Result.GetResult<Prisma.$AdminSettingsPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Find the first AdminSettings 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 {AdminSettingsFindFirstArgs} args - Arguments to find a AdminSettings
|
|
* @example
|
|
* // Get one AdminSettings
|
|
* const adminSettings = await prisma.adminSettings.findFirst({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findFirst<T extends AdminSettingsFindFirstArgs>(args?: SelectSubset<T, AdminSettingsFindFirstArgs<ExtArgs>>): Prisma__AdminSettingsClient<$Result.GetResult<Prisma.$AdminSettingsPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Find the first AdminSettings 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 {AdminSettingsFindFirstOrThrowArgs} args - Arguments to find a AdminSettings
|
|
* @example
|
|
* // Get one AdminSettings
|
|
* const adminSettings = await prisma.adminSettings.findFirstOrThrow({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findFirstOrThrow<T extends AdminSettingsFindFirstOrThrowArgs>(args?: SelectSubset<T, AdminSettingsFindFirstOrThrowArgs<ExtArgs>>): Prisma__AdminSettingsClient<$Result.GetResult<Prisma.$AdminSettingsPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Find zero or more AdminSettings 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 {AdminSettingsFindManyArgs} args - Arguments to filter and select certain fields only.
|
|
* @example
|
|
* // Get all AdminSettings
|
|
* const adminSettings = await prisma.adminSettings.findMany()
|
|
*
|
|
* // Get first 10 AdminSettings
|
|
* const adminSettings = await prisma.adminSettings.findMany({ take: 10 })
|
|
*
|
|
* // Only select the `id`
|
|
* const adminSettingsWithIdOnly = await prisma.adminSettings.findMany({ select: { id: true } })
|
|
*
|
|
*/
|
|
findMany<T extends AdminSettingsFindManyArgs>(args?: SelectSubset<T, AdminSettingsFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$AdminSettingsPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
|
|
|
|
/**
|
|
* Create a AdminSettings.
|
|
* @param {AdminSettingsCreateArgs} args - Arguments to create a AdminSettings.
|
|
* @example
|
|
* // Create one AdminSettings
|
|
* const AdminSettings = await prisma.adminSettings.create({
|
|
* data: {
|
|
* // ... data to create a AdminSettings
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
create<T extends AdminSettingsCreateArgs>(args: SelectSubset<T, AdminSettingsCreateArgs<ExtArgs>>): Prisma__AdminSettingsClient<$Result.GetResult<Prisma.$AdminSettingsPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Create many AdminSettings.
|
|
* @param {AdminSettingsCreateManyArgs} args - Arguments to create many AdminSettings.
|
|
* @example
|
|
* // Create many AdminSettings
|
|
* const adminSettings = await prisma.adminSettings.createMany({
|
|
* data: [
|
|
* // ... provide data here
|
|
* ]
|
|
* })
|
|
*
|
|
*/
|
|
createMany<T extends AdminSettingsCreateManyArgs>(args?: SelectSubset<T, AdminSettingsCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
|
|
|
|
/**
|
|
* Create many AdminSettings and returns the data saved in the database.
|
|
* @param {AdminSettingsCreateManyAndReturnArgs} args - Arguments to create many AdminSettings.
|
|
* @example
|
|
* // Create many AdminSettings
|
|
* const adminSettings = await prisma.adminSettings.createManyAndReturn({
|
|
* data: [
|
|
* // ... provide data here
|
|
* ]
|
|
* })
|
|
*
|
|
* // Create many AdminSettings and only return the `id`
|
|
* const adminSettingsWithIdOnly = await prisma.adminSettings.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 AdminSettingsCreateManyAndReturnArgs>(args?: SelectSubset<T, AdminSettingsCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$AdminSettingsPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>
|
|
|
|
/**
|
|
* Delete a AdminSettings.
|
|
* @param {AdminSettingsDeleteArgs} args - Arguments to delete one AdminSettings.
|
|
* @example
|
|
* // Delete one AdminSettings
|
|
* const AdminSettings = await prisma.adminSettings.delete({
|
|
* where: {
|
|
* // ... filter to delete one AdminSettings
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
delete<T extends AdminSettingsDeleteArgs>(args: SelectSubset<T, AdminSettingsDeleteArgs<ExtArgs>>): Prisma__AdminSettingsClient<$Result.GetResult<Prisma.$AdminSettingsPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Update one AdminSettings.
|
|
* @param {AdminSettingsUpdateArgs} args - Arguments to update one AdminSettings.
|
|
* @example
|
|
* // Update one AdminSettings
|
|
* const adminSettings = await prisma.adminSettings.update({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* },
|
|
* data: {
|
|
* // ... provide data here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
update<T extends AdminSettingsUpdateArgs>(args: SelectSubset<T, AdminSettingsUpdateArgs<ExtArgs>>): Prisma__AdminSettingsClient<$Result.GetResult<Prisma.$AdminSettingsPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Delete zero or more AdminSettings.
|
|
* @param {AdminSettingsDeleteManyArgs} args - Arguments to filter AdminSettings to delete.
|
|
* @example
|
|
* // Delete a few AdminSettings
|
|
* const { count } = await prisma.adminSettings.deleteMany({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
deleteMany<T extends AdminSettingsDeleteManyArgs>(args?: SelectSubset<T, AdminSettingsDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
|
|
|
|
/**
|
|
* Update zero or more AdminSettings.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {AdminSettingsUpdateManyArgs} args - Arguments to update one or more rows.
|
|
* @example
|
|
* // Update many AdminSettings
|
|
* const adminSettings = await prisma.adminSettings.updateMany({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* },
|
|
* data: {
|
|
* // ... provide data here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
updateMany<T extends AdminSettingsUpdateManyArgs>(args: SelectSubset<T, AdminSettingsUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
|
|
|
|
/**
|
|
* Update zero or more AdminSettings and returns the data updated in the database.
|
|
* @param {AdminSettingsUpdateManyAndReturnArgs} args - Arguments to update many AdminSettings.
|
|
* @example
|
|
* // Update many AdminSettings
|
|
* const adminSettings = await prisma.adminSettings.updateManyAndReturn({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* },
|
|
* data: [
|
|
* // ... provide data here
|
|
* ]
|
|
* })
|
|
*
|
|
* // Update zero or more AdminSettings and only return the `id`
|
|
* const adminSettingsWithIdOnly = await prisma.adminSettings.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 AdminSettingsUpdateManyAndReturnArgs>(args: SelectSubset<T, AdminSettingsUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$AdminSettingsPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>
|
|
|
|
/**
|
|
* Create or update one AdminSettings.
|
|
* @param {AdminSettingsUpsertArgs} args - Arguments to update or create a AdminSettings.
|
|
* @example
|
|
* // Update or create a AdminSettings
|
|
* const adminSettings = await prisma.adminSettings.upsert({
|
|
* create: {
|
|
* // ... data to create a AdminSettings
|
|
* },
|
|
* update: {
|
|
* // ... in case it already exists, update
|
|
* },
|
|
* where: {
|
|
* // ... the filter for the AdminSettings we want to update
|
|
* }
|
|
* })
|
|
*/
|
|
upsert<T extends AdminSettingsUpsertArgs>(args: SelectSubset<T, AdminSettingsUpsertArgs<ExtArgs>>): Prisma__AdminSettingsClient<$Result.GetResult<Prisma.$AdminSettingsPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
|
|
/**
|
|
* Count the number of AdminSettings.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {AdminSettingsCountArgs} args - Arguments to filter AdminSettings to count.
|
|
* @example
|
|
* // Count the number of AdminSettings
|
|
* const count = await prisma.adminSettings.count({
|
|
* where: {
|
|
* // ... the filter for the AdminSettings we want to count
|
|
* }
|
|
* })
|
|
**/
|
|
count<T extends AdminSettingsCountArgs>(
|
|
args?: Subset<T, AdminSettingsCountArgs>,
|
|
): Prisma.PrismaPromise<
|
|
T extends $Utils.Record<'select', any>
|
|
? T['select'] extends true
|
|
? number
|
|
: GetScalarType<T['select'], AdminSettingsCountAggregateOutputType>
|
|
: number
|
|
>
|
|
|
|
/**
|
|
* Allows you to perform aggregations operations on a AdminSettings.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {AdminSettingsAggregateArgs} 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 AdminSettingsAggregateArgs>(args: Subset<T, AdminSettingsAggregateArgs>): Prisma.PrismaPromise<GetAdminSettingsAggregateType<T>>
|
|
|
|
/**
|
|
* Group by AdminSettings.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {AdminSettingsGroupByArgs} 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 AdminSettingsGroupByArgs,
|
|
HasSelectOrTake extends Or<
|
|
Extends<'skip', Keys<T>>,
|
|
Extends<'take', Keys<T>>
|
|
>,
|
|
OrderByArg extends True extends HasSelectOrTake
|
|
? { orderBy: AdminSettingsGroupByArgs['orderBy'] }
|
|
: { orderBy?: AdminSettingsGroupByArgs['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, AdminSettingsGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetAdminSettingsGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
|
|
/**
|
|
* Fields of the AdminSettings model
|
|
*/
|
|
readonly fields: AdminSettingsFieldRefs;
|
|
}
|
|
|
|
/**
|
|
* The delegate class that acts as a "Promise-like" for AdminSettings.
|
|
* 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__AdminSettingsClient<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 AdminSettings model
|
|
*/
|
|
interface AdminSettingsFieldRefs {
|
|
readonly id: FieldRef<"AdminSettings", 'Int'>
|
|
readonly defaultInstanceType: FieldRef<"AdminSettings", 'String'>
|
|
readonly maxConcurrentInstancesPerUser: FieldRef<"AdminSettings", 'Int'>
|
|
readonly logSizeLimitBytes: FieldRef<"AdminSettings", 'Int'>
|
|
readonly previewRetentionDays: FieldRef<"AdminSettings", 'Int'>
|
|
readonly webhookRateLimitPerMinute: FieldRef<"AdminSettings", 'Int'>
|
|
readonly contactEmail: FieldRef<"AdminSettings", 'String'>
|
|
}
|
|
|
|
|
|
// Custom InputTypes
|
|
/**
|
|
* AdminSettings findUnique
|
|
*/
|
|
export type AdminSettingsFindUniqueArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the AdminSettings
|
|
*/
|
|
select?: AdminSettingsSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the AdminSettings
|
|
*/
|
|
omit?: AdminSettingsOmit<ExtArgs> | null
|
|
/**
|
|
* Filter, which AdminSettings to fetch.
|
|
*/
|
|
where: AdminSettingsWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* AdminSettings findUniqueOrThrow
|
|
*/
|
|
export type AdminSettingsFindUniqueOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the AdminSettings
|
|
*/
|
|
select?: AdminSettingsSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the AdminSettings
|
|
*/
|
|
omit?: AdminSettingsOmit<ExtArgs> | null
|
|
/**
|
|
* Filter, which AdminSettings to fetch.
|
|
*/
|
|
where: AdminSettingsWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* AdminSettings findFirst
|
|
*/
|
|
export type AdminSettingsFindFirstArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the AdminSettings
|
|
*/
|
|
select?: AdminSettingsSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the AdminSettings
|
|
*/
|
|
omit?: AdminSettingsOmit<ExtArgs> | null
|
|
/**
|
|
* Filter, which AdminSettings to fetch.
|
|
*/
|
|
where?: AdminSettingsWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of AdminSettings to fetch.
|
|
*/
|
|
orderBy?: AdminSettingsOrderByWithRelationInput | AdminSettingsOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for searching for AdminSettings.
|
|
*/
|
|
cursor?: AdminSettingsWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` AdminSettings 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` AdminSettings.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
*
|
|
* Filter by unique combinations of AdminSettings.
|
|
*/
|
|
distinct?: AdminSettingsScalarFieldEnum | AdminSettingsScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* AdminSettings findFirstOrThrow
|
|
*/
|
|
export type AdminSettingsFindFirstOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the AdminSettings
|
|
*/
|
|
select?: AdminSettingsSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the AdminSettings
|
|
*/
|
|
omit?: AdminSettingsOmit<ExtArgs> | null
|
|
/**
|
|
* Filter, which AdminSettings to fetch.
|
|
*/
|
|
where?: AdminSettingsWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of AdminSettings to fetch.
|
|
*/
|
|
orderBy?: AdminSettingsOrderByWithRelationInput | AdminSettingsOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for searching for AdminSettings.
|
|
*/
|
|
cursor?: AdminSettingsWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` AdminSettings 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` AdminSettings.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
*
|
|
* Filter by unique combinations of AdminSettings.
|
|
*/
|
|
distinct?: AdminSettingsScalarFieldEnum | AdminSettingsScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* AdminSettings findMany
|
|
*/
|
|
export type AdminSettingsFindManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the AdminSettings
|
|
*/
|
|
select?: AdminSettingsSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the AdminSettings
|
|
*/
|
|
omit?: AdminSettingsOmit<ExtArgs> | null
|
|
/**
|
|
* Filter, which AdminSettings to fetch.
|
|
*/
|
|
where?: AdminSettingsWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of AdminSettings to fetch.
|
|
*/
|
|
orderBy?: AdminSettingsOrderByWithRelationInput | AdminSettingsOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for listing AdminSettings.
|
|
*/
|
|
cursor?: AdminSettingsWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` AdminSettings 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` AdminSettings.
|
|
*/
|
|
skip?: number
|
|
distinct?: AdminSettingsScalarFieldEnum | AdminSettingsScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* AdminSettings create
|
|
*/
|
|
export type AdminSettingsCreateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the AdminSettings
|
|
*/
|
|
select?: AdminSettingsSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the AdminSettings
|
|
*/
|
|
omit?: AdminSettingsOmit<ExtArgs> | null
|
|
/**
|
|
* The data needed to create a AdminSettings.
|
|
*/
|
|
data?: XOR<AdminSettingsCreateInput, AdminSettingsUncheckedCreateInput>
|
|
}
|
|
|
|
/**
|
|
* AdminSettings createMany
|
|
*/
|
|
export type AdminSettingsCreateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* The data used to create many AdminSettings.
|
|
*/
|
|
data: AdminSettingsCreateManyInput | AdminSettingsCreateManyInput[]
|
|
skipDuplicates?: boolean
|
|
}
|
|
|
|
/**
|
|
* AdminSettings createManyAndReturn
|
|
*/
|
|
export type AdminSettingsCreateManyAndReturnArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the AdminSettings
|
|
*/
|
|
select?: AdminSettingsSelectCreateManyAndReturn<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the AdminSettings
|
|
*/
|
|
omit?: AdminSettingsOmit<ExtArgs> | null
|
|
/**
|
|
* The data used to create many AdminSettings.
|
|
*/
|
|
data: AdminSettingsCreateManyInput | AdminSettingsCreateManyInput[]
|
|
skipDuplicates?: boolean
|
|
}
|
|
|
|
/**
|
|
* AdminSettings update
|
|
*/
|
|
export type AdminSettingsUpdateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the AdminSettings
|
|
*/
|
|
select?: AdminSettingsSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the AdminSettings
|
|
*/
|
|
omit?: AdminSettingsOmit<ExtArgs> | null
|
|
/**
|
|
* The data needed to update a AdminSettings.
|
|
*/
|
|
data: XOR<AdminSettingsUpdateInput, AdminSettingsUncheckedUpdateInput>
|
|
/**
|
|
* Choose, which AdminSettings to update.
|
|
*/
|
|
where: AdminSettingsWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* AdminSettings updateMany
|
|
*/
|
|
export type AdminSettingsUpdateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* The data used to update AdminSettings.
|
|
*/
|
|
data: XOR<AdminSettingsUpdateManyMutationInput, AdminSettingsUncheckedUpdateManyInput>
|
|
/**
|
|
* Filter which AdminSettings to update
|
|
*/
|
|
where?: AdminSettingsWhereInput
|
|
/**
|
|
* Limit how many AdminSettings to update.
|
|
*/
|
|
limit?: number
|
|
}
|
|
|
|
/**
|
|
* AdminSettings updateManyAndReturn
|
|
*/
|
|
export type AdminSettingsUpdateManyAndReturnArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the AdminSettings
|
|
*/
|
|
select?: AdminSettingsSelectUpdateManyAndReturn<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the AdminSettings
|
|
*/
|
|
omit?: AdminSettingsOmit<ExtArgs> | null
|
|
/**
|
|
* The data used to update AdminSettings.
|
|
*/
|
|
data: XOR<AdminSettingsUpdateManyMutationInput, AdminSettingsUncheckedUpdateManyInput>
|
|
/**
|
|
* Filter which AdminSettings to update
|
|
*/
|
|
where?: AdminSettingsWhereInput
|
|
/**
|
|
* Limit how many AdminSettings to update.
|
|
*/
|
|
limit?: number
|
|
}
|
|
|
|
/**
|
|
* AdminSettings upsert
|
|
*/
|
|
export type AdminSettingsUpsertArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the AdminSettings
|
|
*/
|
|
select?: AdminSettingsSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the AdminSettings
|
|
*/
|
|
omit?: AdminSettingsOmit<ExtArgs> | null
|
|
/**
|
|
* The filter to search for the AdminSettings to update in case it exists.
|
|
*/
|
|
where: AdminSettingsWhereUniqueInput
|
|
/**
|
|
* In case the AdminSettings found by the `where` argument doesn't exist, create a new AdminSettings with this data.
|
|
*/
|
|
create: XOR<AdminSettingsCreateInput, AdminSettingsUncheckedCreateInput>
|
|
/**
|
|
* In case the AdminSettings was found with the provided `where` argument, update it with this data.
|
|
*/
|
|
update: XOR<AdminSettingsUpdateInput, AdminSettingsUncheckedUpdateInput>
|
|
}
|
|
|
|
/**
|
|
* AdminSettings delete
|
|
*/
|
|
export type AdminSettingsDeleteArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the AdminSettings
|
|
*/
|
|
select?: AdminSettingsSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the AdminSettings
|
|
*/
|
|
omit?: AdminSettingsOmit<ExtArgs> | null
|
|
/**
|
|
* Filter which AdminSettings to delete.
|
|
*/
|
|
where: AdminSettingsWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* AdminSettings deleteMany
|
|
*/
|
|
export type AdminSettingsDeleteManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Filter which AdminSettings to delete
|
|
*/
|
|
where?: AdminSettingsWhereInput
|
|
/**
|
|
* Limit how many AdminSettings to delete.
|
|
*/
|
|
limit?: number
|
|
}
|
|
|
|
/**
|
|
* AdminSettings without action
|
|
*/
|
|
export type AdminSettingsDefaultArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the AdminSettings
|
|
*/
|
|
select?: AdminSettingsSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the AdminSettings
|
|
*/
|
|
omit?: AdminSettingsOmit<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',
|
|
username: 'username',
|
|
passwordHash: 'passwordHash',
|
|
isAdmin: 'isAdmin',
|
|
isFounder: 'isFounder',
|
|
createdAt: 'createdAt',
|
|
updatedAt: 'updatedAt',
|
|
giteaUsername: 'giteaUsername',
|
|
giteaPAT: 'giteaPAT',
|
|
giteaInstanceUrl: 'giteaInstanceUrl',
|
|
awsAccessKeyId: 'awsAccessKeyId',
|
|
awsSecretAccessKey: 'awsSecretAccessKey',
|
|
awsRegion: 'awsRegion'
|
|
};
|
|
|
|
export type UserScalarFieldEnum = (typeof UserScalarFieldEnum)[keyof typeof UserScalarFieldEnum]
|
|
|
|
|
|
export const SessionScalarFieldEnum: {
|
|
id: 'id',
|
|
hash: 'hash',
|
|
userId: 'userId',
|
|
createdAt: 'createdAt',
|
|
updatedAt: 'updatedAt'
|
|
};
|
|
|
|
export type SessionScalarFieldEnum = (typeof SessionScalarFieldEnum)[keyof typeof SessionScalarFieldEnum]
|
|
|
|
|
|
export const RepoConfigScalarFieldEnum: {
|
|
id: 'id',
|
|
userId: 'userId',
|
|
repoOwner: 'repoOwner',
|
|
repoName: 'repoName',
|
|
isEnabled: 'isEnabled',
|
|
giteaWebhookId: 'giteaWebhookId',
|
|
denyList: 'denyList',
|
|
instanceType: 'instanceType',
|
|
inactivityHours: 'inactivityHours',
|
|
port: 'port',
|
|
envVars: 'envVars',
|
|
useDockerCompose: 'useDockerCompose',
|
|
composeFilePath: 'composeFilePath',
|
|
aptPackages: 'aptPackages',
|
|
setupCommands: 'setupCommands',
|
|
buildCommands: 'buildCommands',
|
|
postBuildCommands: 'postBuildCommands',
|
|
runCommand: 'runCommand',
|
|
createdAt: 'createdAt',
|
|
updatedAt: 'updatedAt'
|
|
};
|
|
|
|
export type RepoConfigScalarFieldEnum = (typeof RepoConfigScalarFieldEnum)[keyof typeof RepoConfigScalarFieldEnum]
|
|
|
|
|
|
export const PreviewScalarFieldEnum: {
|
|
id: 'id',
|
|
repoConfigId: 'repoConfigId',
|
|
prNumber: 'prNumber',
|
|
prTitle: 'prTitle',
|
|
commitSha: 'commitSha',
|
|
instanceId: 'instanceId',
|
|
instanceIp: 'instanceIp',
|
|
port: 'port',
|
|
status: 'status',
|
|
logs: 'logs',
|
|
pid: 'pid',
|
|
sshPrivateKey: 'sshPrivateKey',
|
|
sshKeyName: 'sshKeyName',
|
|
giteaCommentId: 'giteaCommentId',
|
|
lastActivityAt: 'lastActivityAt',
|
|
createdAt: 'createdAt',
|
|
updatedAt: 'updatedAt',
|
|
stoppedAt: 'stoppedAt'
|
|
};
|
|
|
|
export type PreviewScalarFieldEnum = (typeof PreviewScalarFieldEnum)[keyof typeof PreviewScalarFieldEnum]
|
|
|
|
|
|
export const JobScalarFieldEnum: {
|
|
id: 'id',
|
|
previewId: 'previewId',
|
|
type: 'type',
|
|
status: 'status',
|
|
payload: 'payload',
|
|
error: 'error',
|
|
createdAt: 'createdAt',
|
|
startedAt: 'startedAt',
|
|
finishedAt: 'finishedAt'
|
|
};
|
|
|
|
export type JobScalarFieldEnum = (typeof JobScalarFieldEnum)[keyof typeof JobScalarFieldEnum]
|
|
|
|
|
|
export const WebhookTokenScalarFieldEnum: {
|
|
id: 'id',
|
|
userId: 'userId',
|
|
token: 'token',
|
|
createdAt: 'createdAt'
|
|
};
|
|
|
|
export type WebhookTokenScalarFieldEnum = (typeof WebhookTokenScalarFieldEnum)[keyof typeof WebhookTokenScalarFieldEnum]
|
|
|
|
|
|
export const NoConfigCommentScalarFieldEnum: {
|
|
id: 'id',
|
|
userId: 'userId',
|
|
repoOwner: 'repoOwner',
|
|
repoName: 'repoName',
|
|
prNumber: 'prNumber',
|
|
createdAt: 'createdAt'
|
|
};
|
|
|
|
export type NoConfigCommentScalarFieldEnum = (typeof NoConfigCommentScalarFieldEnum)[keyof typeof NoConfigCommentScalarFieldEnum]
|
|
|
|
|
|
export const AdminSettingsScalarFieldEnum: {
|
|
id: 'id',
|
|
defaultInstanceType: 'defaultInstanceType',
|
|
maxConcurrentInstancesPerUser: 'maxConcurrentInstancesPerUser',
|
|
logSizeLimitBytes: 'logSizeLimitBytes',
|
|
previewRetentionDays: 'previewRetentionDays',
|
|
webhookRateLimitPerMinute: 'webhookRateLimitPerMinute',
|
|
contactEmail: 'contactEmail'
|
|
};
|
|
|
|
export type AdminSettingsScalarFieldEnum = (typeof AdminSettingsScalarFieldEnum)[keyof typeof AdminSettingsScalarFieldEnum]
|
|
|
|
|
|
export const SortOrder: {
|
|
asc: 'asc',
|
|
desc: 'desc'
|
|
};
|
|
|
|
export type SortOrder = (typeof SortOrder)[keyof typeof SortOrder]
|
|
|
|
|
|
export const JsonNullValueInput: {
|
|
JsonNull: typeof JsonNull
|
|
};
|
|
|
|
export type JsonNullValueInput = (typeof JsonNullValueInput)[keyof typeof JsonNullValueInput]
|
|
|
|
|
|
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 '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 '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 'Boolean'
|
|
*/
|
|
export type BooleanFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'Boolean'>
|
|
|
|
|
|
|
|
/**
|
|
* 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 'Float'
|
|
*/
|
|
export type FloatFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'Float'>
|
|
|
|
|
|
|
|
/**
|
|
* Reference to a field of type 'Float[]'
|
|
*/
|
|
export type ListFloatFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'Float[]'>
|
|
|
|
|
|
|
|
/**
|
|
* 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 'PreviewStatus'
|
|
*/
|
|
export type EnumPreviewStatusFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'PreviewStatus'>
|
|
|
|
|
|
|
|
/**
|
|
* Reference to a field of type 'PreviewStatus[]'
|
|
*/
|
|
export type ListEnumPreviewStatusFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'PreviewStatus[]'>
|
|
|
|
|
|
|
|
/**
|
|
* Reference to a field of type 'JobType'
|
|
*/
|
|
export type EnumJobTypeFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'JobType'>
|
|
|
|
|
|
|
|
/**
|
|
* Reference to a field of type 'JobType[]'
|
|
*/
|
|
export type ListEnumJobTypeFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'JobType[]'>
|
|
|
|
|
|
|
|
/**
|
|
* Reference to a field of type 'JobStatus'
|
|
*/
|
|
export type EnumJobStatusFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'JobStatus'>
|
|
|
|
|
|
|
|
/**
|
|
* Reference to a field of type 'JobStatus[]'
|
|
*/
|
|
export type ListEnumJobStatusFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'JobStatus[]'>
|
|
|
|
/**
|
|
* Deep Input Types
|
|
*/
|
|
|
|
|
|
export type UserWhereInput = {
|
|
AND?: UserWhereInput | UserWhereInput[]
|
|
OR?: UserWhereInput[]
|
|
NOT?: UserWhereInput | UserWhereInput[]
|
|
id?: IntFilter<"User"> | number
|
|
username?: StringFilter<"User"> | string
|
|
passwordHash?: StringFilter<"User"> | string
|
|
isAdmin?: BoolFilter<"User"> | boolean
|
|
isFounder?: BoolFilter<"User"> | boolean
|
|
createdAt?: DateTimeFilter<"User"> | Date | string
|
|
updatedAt?: DateTimeFilter<"User"> | Date | string
|
|
giteaUsername?: StringNullableFilter<"User"> | string | null
|
|
giteaPAT?: StringNullableFilter<"User"> | string | null
|
|
giteaInstanceUrl?: StringNullableFilter<"User"> | string | null
|
|
awsAccessKeyId?: StringNullableFilter<"User"> | string | null
|
|
awsSecretAccessKey?: StringNullableFilter<"User"> | string | null
|
|
awsRegion?: StringNullableFilter<"User"> | string | null
|
|
sessions?: SessionListRelationFilter
|
|
repoConfigs?: RepoConfigListRelationFilter
|
|
webhookToken?: XOR<WebhookTokenNullableScalarRelationFilter, WebhookTokenWhereInput> | null
|
|
noConfigComments?: NoConfigCommentListRelationFilter
|
|
}
|
|
|
|
export type UserOrderByWithRelationInput = {
|
|
id?: SortOrder
|
|
username?: SortOrder
|
|
passwordHash?: SortOrder
|
|
isAdmin?: SortOrder
|
|
isFounder?: SortOrder
|
|
createdAt?: SortOrder
|
|
updatedAt?: SortOrder
|
|
giteaUsername?: SortOrderInput | SortOrder
|
|
giteaPAT?: SortOrderInput | SortOrder
|
|
giteaInstanceUrl?: SortOrderInput | SortOrder
|
|
awsAccessKeyId?: SortOrderInput | SortOrder
|
|
awsSecretAccessKey?: SortOrderInput | SortOrder
|
|
awsRegion?: SortOrderInput | SortOrder
|
|
sessions?: SessionOrderByRelationAggregateInput
|
|
repoConfigs?: RepoConfigOrderByRelationAggregateInput
|
|
webhookToken?: WebhookTokenOrderByWithRelationInput
|
|
noConfigComments?: NoConfigCommentOrderByRelationAggregateInput
|
|
}
|
|
|
|
export type UserWhereUniqueInput = Prisma.AtLeast<{
|
|
id?: number
|
|
username?: string
|
|
AND?: UserWhereInput | UserWhereInput[]
|
|
OR?: UserWhereInput[]
|
|
NOT?: UserWhereInput | UserWhereInput[]
|
|
passwordHash?: StringFilter<"User"> | string
|
|
isAdmin?: BoolFilter<"User"> | boolean
|
|
isFounder?: BoolFilter<"User"> | boolean
|
|
createdAt?: DateTimeFilter<"User"> | Date | string
|
|
updatedAt?: DateTimeFilter<"User"> | Date | string
|
|
giteaUsername?: StringNullableFilter<"User"> | string | null
|
|
giteaPAT?: StringNullableFilter<"User"> | string | null
|
|
giteaInstanceUrl?: StringNullableFilter<"User"> | string | null
|
|
awsAccessKeyId?: StringNullableFilter<"User"> | string | null
|
|
awsSecretAccessKey?: StringNullableFilter<"User"> | string | null
|
|
awsRegion?: StringNullableFilter<"User"> | string | null
|
|
sessions?: SessionListRelationFilter
|
|
repoConfigs?: RepoConfigListRelationFilter
|
|
webhookToken?: XOR<WebhookTokenNullableScalarRelationFilter, WebhookTokenWhereInput> | null
|
|
noConfigComments?: NoConfigCommentListRelationFilter
|
|
}, "id" | "username">
|
|
|
|
export type UserOrderByWithAggregationInput = {
|
|
id?: SortOrder
|
|
username?: SortOrder
|
|
passwordHash?: SortOrder
|
|
isAdmin?: SortOrder
|
|
isFounder?: SortOrder
|
|
createdAt?: SortOrder
|
|
updatedAt?: SortOrder
|
|
giteaUsername?: SortOrderInput | SortOrder
|
|
giteaPAT?: SortOrderInput | SortOrder
|
|
giteaInstanceUrl?: SortOrderInput | SortOrder
|
|
awsAccessKeyId?: SortOrderInput | SortOrder
|
|
awsSecretAccessKey?: SortOrderInput | SortOrder
|
|
awsRegion?: SortOrderInput | SortOrder
|
|
_count?: UserCountOrderByAggregateInput
|
|
_avg?: UserAvgOrderByAggregateInput
|
|
_max?: UserMaxOrderByAggregateInput
|
|
_min?: UserMinOrderByAggregateInput
|
|
_sum?: UserSumOrderByAggregateInput
|
|
}
|
|
|
|
export type UserScalarWhereWithAggregatesInput = {
|
|
AND?: UserScalarWhereWithAggregatesInput | UserScalarWhereWithAggregatesInput[]
|
|
OR?: UserScalarWhereWithAggregatesInput[]
|
|
NOT?: UserScalarWhereWithAggregatesInput | UserScalarWhereWithAggregatesInput[]
|
|
id?: IntWithAggregatesFilter<"User"> | number
|
|
username?: StringWithAggregatesFilter<"User"> | string
|
|
passwordHash?: StringWithAggregatesFilter<"User"> | string
|
|
isAdmin?: BoolWithAggregatesFilter<"User"> | boolean
|
|
isFounder?: BoolWithAggregatesFilter<"User"> | boolean
|
|
createdAt?: DateTimeWithAggregatesFilter<"User"> | Date | string
|
|
updatedAt?: DateTimeWithAggregatesFilter<"User"> | Date | string
|
|
giteaUsername?: StringNullableWithAggregatesFilter<"User"> | string | null
|
|
giteaPAT?: StringNullableWithAggregatesFilter<"User"> | string | null
|
|
giteaInstanceUrl?: StringNullableWithAggregatesFilter<"User"> | string | null
|
|
awsAccessKeyId?: StringNullableWithAggregatesFilter<"User"> | string | null
|
|
awsSecretAccessKey?: StringNullableWithAggregatesFilter<"User"> | string | null
|
|
awsRegion?: StringNullableWithAggregatesFilter<"User"> | string | null
|
|
}
|
|
|
|
export type SessionWhereInput = {
|
|
AND?: SessionWhereInput | SessionWhereInput[]
|
|
OR?: SessionWhereInput[]
|
|
NOT?: SessionWhereInput | SessionWhereInput[]
|
|
id?: IntFilter<"Session"> | number
|
|
hash?: StringFilter<"Session"> | string
|
|
userId?: IntFilter<"Session"> | number
|
|
createdAt?: DateTimeFilter<"Session"> | Date | string
|
|
updatedAt?: DateTimeFilter<"Session"> | Date | string
|
|
user?: XOR<UserScalarRelationFilter, UserWhereInput>
|
|
}
|
|
|
|
export type SessionOrderByWithRelationInput = {
|
|
id?: SortOrder
|
|
hash?: SortOrder
|
|
userId?: SortOrder
|
|
createdAt?: SortOrder
|
|
updatedAt?: SortOrder
|
|
user?: UserOrderByWithRelationInput
|
|
}
|
|
|
|
export type SessionWhereUniqueInput = Prisma.AtLeast<{
|
|
id?: number
|
|
AND?: SessionWhereInput | SessionWhereInput[]
|
|
OR?: SessionWhereInput[]
|
|
NOT?: SessionWhereInput | SessionWhereInput[]
|
|
hash?: StringFilter<"Session"> | string
|
|
userId?: IntFilter<"Session"> | number
|
|
createdAt?: DateTimeFilter<"Session"> | Date | string
|
|
updatedAt?: DateTimeFilter<"Session"> | Date | string
|
|
user?: XOR<UserScalarRelationFilter, UserWhereInput>
|
|
}, "id">
|
|
|
|
export type SessionOrderByWithAggregationInput = {
|
|
id?: SortOrder
|
|
hash?: SortOrder
|
|
userId?: SortOrder
|
|
createdAt?: SortOrder
|
|
updatedAt?: SortOrder
|
|
_count?: SessionCountOrderByAggregateInput
|
|
_avg?: SessionAvgOrderByAggregateInput
|
|
_max?: SessionMaxOrderByAggregateInput
|
|
_min?: SessionMinOrderByAggregateInput
|
|
_sum?: SessionSumOrderByAggregateInput
|
|
}
|
|
|
|
export type SessionScalarWhereWithAggregatesInput = {
|
|
AND?: SessionScalarWhereWithAggregatesInput | SessionScalarWhereWithAggregatesInput[]
|
|
OR?: SessionScalarWhereWithAggregatesInput[]
|
|
NOT?: SessionScalarWhereWithAggregatesInput | SessionScalarWhereWithAggregatesInput[]
|
|
id?: IntWithAggregatesFilter<"Session"> | number
|
|
hash?: StringWithAggregatesFilter<"Session"> | string
|
|
userId?: IntWithAggregatesFilter<"Session"> | number
|
|
createdAt?: DateTimeWithAggregatesFilter<"Session"> | Date | string
|
|
updatedAt?: DateTimeWithAggregatesFilter<"Session"> | Date | string
|
|
}
|
|
|
|
export type RepoConfigWhereInput = {
|
|
AND?: RepoConfigWhereInput | RepoConfigWhereInput[]
|
|
OR?: RepoConfigWhereInput[]
|
|
NOT?: RepoConfigWhereInput | RepoConfigWhereInput[]
|
|
id?: IntFilter<"RepoConfig"> | number
|
|
userId?: IntFilter<"RepoConfig"> | number
|
|
repoOwner?: StringFilter<"RepoConfig"> | string
|
|
repoName?: StringFilter<"RepoConfig"> | string
|
|
isEnabled?: BoolFilter<"RepoConfig"> | boolean
|
|
giteaWebhookId?: StringNullableFilter<"RepoConfig"> | string | null
|
|
denyList?: StringNullableListFilter<"RepoConfig">
|
|
instanceType?: StringFilter<"RepoConfig"> | string
|
|
inactivityHours?: FloatFilter<"RepoConfig"> | number
|
|
port?: IntFilter<"RepoConfig"> | number
|
|
envVars?: JsonFilter<"RepoConfig">
|
|
useDockerCompose?: BoolFilter<"RepoConfig"> | boolean
|
|
composeFilePath?: StringNullableFilter<"RepoConfig"> | string | null
|
|
aptPackages?: StringNullableListFilter<"RepoConfig">
|
|
setupCommands?: StringNullableListFilter<"RepoConfig">
|
|
buildCommands?: StringNullableListFilter<"RepoConfig">
|
|
postBuildCommands?: StringNullableListFilter<"RepoConfig">
|
|
runCommand?: StringNullableFilter<"RepoConfig"> | string | null
|
|
createdAt?: DateTimeFilter<"RepoConfig"> | Date | string
|
|
updatedAt?: DateTimeFilter<"RepoConfig"> | Date | string
|
|
user?: XOR<UserScalarRelationFilter, UserWhereInput>
|
|
previews?: PreviewListRelationFilter
|
|
}
|
|
|
|
export type RepoConfigOrderByWithRelationInput = {
|
|
id?: SortOrder
|
|
userId?: SortOrder
|
|
repoOwner?: SortOrder
|
|
repoName?: SortOrder
|
|
isEnabled?: SortOrder
|
|
giteaWebhookId?: SortOrderInput | SortOrder
|
|
denyList?: SortOrder
|
|
instanceType?: SortOrder
|
|
inactivityHours?: SortOrder
|
|
port?: SortOrder
|
|
envVars?: SortOrder
|
|
useDockerCompose?: SortOrder
|
|
composeFilePath?: SortOrderInput | SortOrder
|
|
aptPackages?: SortOrder
|
|
setupCommands?: SortOrder
|
|
buildCommands?: SortOrder
|
|
postBuildCommands?: SortOrder
|
|
runCommand?: SortOrderInput | SortOrder
|
|
createdAt?: SortOrder
|
|
updatedAt?: SortOrder
|
|
user?: UserOrderByWithRelationInput
|
|
previews?: PreviewOrderByRelationAggregateInput
|
|
}
|
|
|
|
export type RepoConfigWhereUniqueInput = Prisma.AtLeast<{
|
|
id?: number
|
|
repoOwner_repoName?: RepoConfigRepoOwnerRepoNameCompoundUniqueInput
|
|
AND?: RepoConfigWhereInput | RepoConfigWhereInput[]
|
|
OR?: RepoConfigWhereInput[]
|
|
NOT?: RepoConfigWhereInput | RepoConfigWhereInput[]
|
|
userId?: IntFilter<"RepoConfig"> | number
|
|
repoOwner?: StringFilter<"RepoConfig"> | string
|
|
repoName?: StringFilter<"RepoConfig"> | string
|
|
isEnabled?: BoolFilter<"RepoConfig"> | boolean
|
|
giteaWebhookId?: StringNullableFilter<"RepoConfig"> | string | null
|
|
denyList?: StringNullableListFilter<"RepoConfig">
|
|
instanceType?: StringFilter<"RepoConfig"> | string
|
|
inactivityHours?: FloatFilter<"RepoConfig"> | number
|
|
port?: IntFilter<"RepoConfig"> | number
|
|
envVars?: JsonFilter<"RepoConfig">
|
|
useDockerCompose?: BoolFilter<"RepoConfig"> | boolean
|
|
composeFilePath?: StringNullableFilter<"RepoConfig"> | string | null
|
|
aptPackages?: StringNullableListFilter<"RepoConfig">
|
|
setupCommands?: StringNullableListFilter<"RepoConfig">
|
|
buildCommands?: StringNullableListFilter<"RepoConfig">
|
|
postBuildCommands?: StringNullableListFilter<"RepoConfig">
|
|
runCommand?: StringNullableFilter<"RepoConfig"> | string | null
|
|
createdAt?: DateTimeFilter<"RepoConfig"> | Date | string
|
|
updatedAt?: DateTimeFilter<"RepoConfig"> | Date | string
|
|
user?: XOR<UserScalarRelationFilter, UserWhereInput>
|
|
previews?: PreviewListRelationFilter
|
|
}, "id" | "repoOwner_repoName">
|
|
|
|
export type RepoConfigOrderByWithAggregationInput = {
|
|
id?: SortOrder
|
|
userId?: SortOrder
|
|
repoOwner?: SortOrder
|
|
repoName?: SortOrder
|
|
isEnabled?: SortOrder
|
|
giteaWebhookId?: SortOrderInput | SortOrder
|
|
denyList?: SortOrder
|
|
instanceType?: SortOrder
|
|
inactivityHours?: SortOrder
|
|
port?: SortOrder
|
|
envVars?: SortOrder
|
|
useDockerCompose?: SortOrder
|
|
composeFilePath?: SortOrderInput | SortOrder
|
|
aptPackages?: SortOrder
|
|
setupCommands?: SortOrder
|
|
buildCommands?: SortOrder
|
|
postBuildCommands?: SortOrder
|
|
runCommand?: SortOrderInput | SortOrder
|
|
createdAt?: SortOrder
|
|
updatedAt?: SortOrder
|
|
_count?: RepoConfigCountOrderByAggregateInput
|
|
_avg?: RepoConfigAvgOrderByAggregateInput
|
|
_max?: RepoConfigMaxOrderByAggregateInput
|
|
_min?: RepoConfigMinOrderByAggregateInput
|
|
_sum?: RepoConfigSumOrderByAggregateInput
|
|
}
|
|
|
|
export type RepoConfigScalarWhereWithAggregatesInput = {
|
|
AND?: RepoConfigScalarWhereWithAggregatesInput | RepoConfigScalarWhereWithAggregatesInput[]
|
|
OR?: RepoConfigScalarWhereWithAggregatesInput[]
|
|
NOT?: RepoConfigScalarWhereWithAggregatesInput | RepoConfigScalarWhereWithAggregatesInput[]
|
|
id?: IntWithAggregatesFilter<"RepoConfig"> | number
|
|
userId?: IntWithAggregatesFilter<"RepoConfig"> | number
|
|
repoOwner?: StringWithAggregatesFilter<"RepoConfig"> | string
|
|
repoName?: StringWithAggregatesFilter<"RepoConfig"> | string
|
|
isEnabled?: BoolWithAggregatesFilter<"RepoConfig"> | boolean
|
|
giteaWebhookId?: StringNullableWithAggregatesFilter<"RepoConfig"> | string | null
|
|
denyList?: StringNullableListFilter<"RepoConfig">
|
|
instanceType?: StringWithAggregatesFilter<"RepoConfig"> | string
|
|
inactivityHours?: FloatWithAggregatesFilter<"RepoConfig"> | number
|
|
port?: IntWithAggregatesFilter<"RepoConfig"> | number
|
|
envVars?: JsonWithAggregatesFilter<"RepoConfig">
|
|
useDockerCompose?: BoolWithAggregatesFilter<"RepoConfig"> | boolean
|
|
composeFilePath?: StringNullableWithAggregatesFilter<"RepoConfig"> | string | null
|
|
aptPackages?: StringNullableListFilter<"RepoConfig">
|
|
setupCommands?: StringNullableListFilter<"RepoConfig">
|
|
buildCommands?: StringNullableListFilter<"RepoConfig">
|
|
postBuildCommands?: StringNullableListFilter<"RepoConfig">
|
|
runCommand?: StringNullableWithAggregatesFilter<"RepoConfig"> | string | null
|
|
createdAt?: DateTimeWithAggregatesFilter<"RepoConfig"> | Date | string
|
|
updatedAt?: DateTimeWithAggregatesFilter<"RepoConfig"> | Date | string
|
|
}
|
|
|
|
export type PreviewWhereInput = {
|
|
AND?: PreviewWhereInput | PreviewWhereInput[]
|
|
OR?: PreviewWhereInput[]
|
|
NOT?: PreviewWhereInput | PreviewWhereInput[]
|
|
id?: IntFilter<"Preview"> | number
|
|
repoConfigId?: IntFilter<"Preview"> | number
|
|
prNumber?: IntFilter<"Preview"> | number
|
|
prTitle?: StringFilter<"Preview"> | string
|
|
commitSha?: StringFilter<"Preview"> | string
|
|
instanceId?: StringNullableFilter<"Preview"> | string | null
|
|
instanceIp?: StringNullableFilter<"Preview"> | string | null
|
|
port?: IntFilter<"Preview"> | number
|
|
status?: EnumPreviewStatusFilter<"Preview"> | $Enums.PreviewStatus
|
|
logs?: StringFilter<"Preview"> | string
|
|
pid?: IntNullableFilter<"Preview"> | number | null
|
|
sshPrivateKey?: StringNullableFilter<"Preview"> | string | null
|
|
sshKeyName?: StringNullableFilter<"Preview"> | string | null
|
|
giteaCommentId?: IntNullableFilter<"Preview"> | number | null
|
|
lastActivityAt?: DateTimeFilter<"Preview"> | Date | string
|
|
createdAt?: DateTimeFilter<"Preview"> | Date | string
|
|
updatedAt?: DateTimeFilter<"Preview"> | Date | string
|
|
stoppedAt?: DateTimeNullableFilter<"Preview"> | Date | string | null
|
|
repoConfig?: XOR<RepoConfigScalarRelationFilter, RepoConfigWhereInput>
|
|
jobs?: JobListRelationFilter
|
|
}
|
|
|
|
export type PreviewOrderByWithRelationInput = {
|
|
id?: SortOrder
|
|
repoConfigId?: SortOrder
|
|
prNumber?: SortOrder
|
|
prTitle?: SortOrder
|
|
commitSha?: SortOrder
|
|
instanceId?: SortOrderInput | SortOrder
|
|
instanceIp?: SortOrderInput | SortOrder
|
|
port?: SortOrder
|
|
status?: SortOrder
|
|
logs?: SortOrder
|
|
pid?: SortOrderInput | SortOrder
|
|
sshPrivateKey?: SortOrderInput | SortOrder
|
|
sshKeyName?: SortOrderInput | SortOrder
|
|
giteaCommentId?: SortOrderInput | SortOrder
|
|
lastActivityAt?: SortOrder
|
|
createdAt?: SortOrder
|
|
updatedAt?: SortOrder
|
|
stoppedAt?: SortOrderInput | SortOrder
|
|
repoConfig?: RepoConfigOrderByWithRelationInput
|
|
jobs?: JobOrderByRelationAggregateInput
|
|
}
|
|
|
|
export type PreviewWhereUniqueInput = Prisma.AtLeast<{
|
|
id?: number
|
|
AND?: PreviewWhereInput | PreviewWhereInput[]
|
|
OR?: PreviewWhereInput[]
|
|
NOT?: PreviewWhereInput | PreviewWhereInput[]
|
|
repoConfigId?: IntFilter<"Preview"> | number
|
|
prNumber?: IntFilter<"Preview"> | number
|
|
prTitle?: StringFilter<"Preview"> | string
|
|
commitSha?: StringFilter<"Preview"> | string
|
|
instanceId?: StringNullableFilter<"Preview"> | string | null
|
|
instanceIp?: StringNullableFilter<"Preview"> | string | null
|
|
port?: IntFilter<"Preview"> | number
|
|
status?: EnumPreviewStatusFilter<"Preview"> | $Enums.PreviewStatus
|
|
logs?: StringFilter<"Preview"> | string
|
|
pid?: IntNullableFilter<"Preview"> | number | null
|
|
sshPrivateKey?: StringNullableFilter<"Preview"> | string | null
|
|
sshKeyName?: StringNullableFilter<"Preview"> | string | null
|
|
giteaCommentId?: IntNullableFilter<"Preview"> | number | null
|
|
lastActivityAt?: DateTimeFilter<"Preview"> | Date | string
|
|
createdAt?: DateTimeFilter<"Preview"> | Date | string
|
|
updatedAt?: DateTimeFilter<"Preview"> | Date | string
|
|
stoppedAt?: DateTimeNullableFilter<"Preview"> | Date | string | null
|
|
repoConfig?: XOR<RepoConfigScalarRelationFilter, RepoConfigWhereInput>
|
|
jobs?: JobListRelationFilter
|
|
}, "id">
|
|
|
|
export type PreviewOrderByWithAggregationInput = {
|
|
id?: SortOrder
|
|
repoConfigId?: SortOrder
|
|
prNumber?: SortOrder
|
|
prTitle?: SortOrder
|
|
commitSha?: SortOrder
|
|
instanceId?: SortOrderInput | SortOrder
|
|
instanceIp?: SortOrderInput | SortOrder
|
|
port?: SortOrder
|
|
status?: SortOrder
|
|
logs?: SortOrder
|
|
pid?: SortOrderInput | SortOrder
|
|
sshPrivateKey?: SortOrderInput | SortOrder
|
|
sshKeyName?: SortOrderInput | SortOrder
|
|
giteaCommentId?: SortOrderInput | SortOrder
|
|
lastActivityAt?: SortOrder
|
|
createdAt?: SortOrder
|
|
updatedAt?: SortOrder
|
|
stoppedAt?: SortOrderInput | SortOrder
|
|
_count?: PreviewCountOrderByAggregateInput
|
|
_avg?: PreviewAvgOrderByAggregateInput
|
|
_max?: PreviewMaxOrderByAggregateInput
|
|
_min?: PreviewMinOrderByAggregateInput
|
|
_sum?: PreviewSumOrderByAggregateInput
|
|
}
|
|
|
|
export type PreviewScalarWhereWithAggregatesInput = {
|
|
AND?: PreviewScalarWhereWithAggregatesInput | PreviewScalarWhereWithAggregatesInput[]
|
|
OR?: PreviewScalarWhereWithAggregatesInput[]
|
|
NOT?: PreviewScalarWhereWithAggregatesInput | PreviewScalarWhereWithAggregatesInput[]
|
|
id?: IntWithAggregatesFilter<"Preview"> | number
|
|
repoConfigId?: IntWithAggregatesFilter<"Preview"> | number
|
|
prNumber?: IntWithAggregatesFilter<"Preview"> | number
|
|
prTitle?: StringWithAggregatesFilter<"Preview"> | string
|
|
commitSha?: StringWithAggregatesFilter<"Preview"> | string
|
|
instanceId?: StringNullableWithAggregatesFilter<"Preview"> | string | null
|
|
instanceIp?: StringNullableWithAggregatesFilter<"Preview"> | string | null
|
|
port?: IntWithAggregatesFilter<"Preview"> | number
|
|
status?: EnumPreviewStatusWithAggregatesFilter<"Preview"> | $Enums.PreviewStatus
|
|
logs?: StringWithAggregatesFilter<"Preview"> | string
|
|
pid?: IntNullableWithAggregatesFilter<"Preview"> | number | null
|
|
sshPrivateKey?: StringNullableWithAggregatesFilter<"Preview"> | string | null
|
|
sshKeyName?: StringNullableWithAggregatesFilter<"Preview"> | string | null
|
|
giteaCommentId?: IntNullableWithAggregatesFilter<"Preview"> | number | null
|
|
lastActivityAt?: DateTimeWithAggregatesFilter<"Preview"> | Date | string
|
|
createdAt?: DateTimeWithAggregatesFilter<"Preview"> | Date | string
|
|
updatedAt?: DateTimeWithAggregatesFilter<"Preview"> | Date | string
|
|
stoppedAt?: DateTimeNullableWithAggregatesFilter<"Preview"> | Date | string | null
|
|
}
|
|
|
|
export type JobWhereInput = {
|
|
AND?: JobWhereInput | JobWhereInput[]
|
|
OR?: JobWhereInput[]
|
|
NOT?: JobWhereInput | JobWhereInput[]
|
|
id?: IntFilter<"Job"> | number
|
|
previewId?: IntNullableFilter<"Job"> | number | null
|
|
type?: EnumJobTypeFilter<"Job"> | $Enums.JobType
|
|
status?: EnumJobStatusFilter<"Job"> | $Enums.JobStatus
|
|
payload?: JsonFilter<"Job">
|
|
error?: StringNullableFilter<"Job"> | string | null
|
|
createdAt?: DateTimeFilter<"Job"> | Date | string
|
|
startedAt?: DateTimeNullableFilter<"Job"> | Date | string | null
|
|
finishedAt?: DateTimeNullableFilter<"Job"> | Date | string | null
|
|
preview?: XOR<PreviewNullableScalarRelationFilter, PreviewWhereInput> | null
|
|
}
|
|
|
|
export type JobOrderByWithRelationInput = {
|
|
id?: SortOrder
|
|
previewId?: SortOrderInput | SortOrder
|
|
type?: SortOrder
|
|
status?: SortOrder
|
|
payload?: SortOrder
|
|
error?: SortOrderInput | SortOrder
|
|
createdAt?: SortOrder
|
|
startedAt?: SortOrderInput | SortOrder
|
|
finishedAt?: SortOrderInput | SortOrder
|
|
preview?: PreviewOrderByWithRelationInput
|
|
}
|
|
|
|
export type JobWhereUniqueInput = Prisma.AtLeast<{
|
|
id?: number
|
|
AND?: JobWhereInput | JobWhereInput[]
|
|
OR?: JobWhereInput[]
|
|
NOT?: JobWhereInput | JobWhereInput[]
|
|
previewId?: IntNullableFilter<"Job"> | number | null
|
|
type?: EnumJobTypeFilter<"Job"> | $Enums.JobType
|
|
status?: EnumJobStatusFilter<"Job"> | $Enums.JobStatus
|
|
payload?: JsonFilter<"Job">
|
|
error?: StringNullableFilter<"Job"> | string | null
|
|
createdAt?: DateTimeFilter<"Job"> | Date | string
|
|
startedAt?: DateTimeNullableFilter<"Job"> | Date | string | null
|
|
finishedAt?: DateTimeNullableFilter<"Job"> | Date | string | null
|
|
preview?: XOR<PreviewNullableScalarRelationFilter, PreviewWhereInput> | null
|
|
}, "id">
|
|
|
|
export type JobOrderByWithAggregationInput = {
|
|
id?: SortOrder
|
|
previewId?: SortOrderInput | SortOrder
|
|
type?: SortOrder
|
|
status?: SortOrder
|
|
payload?: SortOrder
|
|
error?: SortOrderInput | SortOrder
|
|
createdAt?: SortOrder
|
|
startedAt?: SortOrderInput | SortOrder
|
|
finishedAt?: SortOrderInput | SortOrder
|
|
_count?: JobCountOrderByAggregateInput
|
|
_avg?: JobAvgOrderByAggregateInput
|
|
_max?: JobMaxOrderByAggregateInput
|
|
_min?: JobMinOrderByAggregateInput
|
|
_sum?: JobSumOrderByAggregateInput
|
|
}
|
|
|
|
export type JobScalarWhereWithAggregatesInput = {
|
|
AND?: JobScalarWhereWithAggregatesInput | JobScalarWhereWithAggregatesInput[]
|
|
OR?: JobScalarWhereWithAggregatesInput[]
|
|
NOT?: JobScalarWhereWithAggregatesInput | JobScalarWhereWithAggregatesInput[]
|
|
id?: IntWithAggregatesFilter<"Job"> | number
|
|
previewId?: IntNullableWithAggregatesFilter<"Job"> | number | null
|
|
type?: EnumJobTypeWithAggregatesFilter<"Job"> | $Enums.JobType
|
|
status?: EnumJobStatusWithAggregatesFilter<"Job"> | $Enums.JobStatus
|
|
payload?: JsonWithAggregatesFilter<"Job">
|
|
error?: StringNullableWithAggregatesFilter<"Job"> | string | null
|
|
createdAt?: DateTimeWithAggregatesFilter<"Job"> | Date | string
|
|
startedAt?: DateTimeNullableWithAggregatesFilter<"Job"> | Date | string | null
|
|
finishedAt?: DateTimeNullableWithAggregatesFilter<"Job"> | Date | string | null
|
|
}
|
|
|
|
export type WebhookTokenWhereInput = {
|
|
AND?: WebhookTokenWhereInput | WebhookTokenWhereInput[]
|
|
OR?: WebhookTokenWhereInput[]
|
|
NOT?: WebhookTokenWhereInput | WebhookTokenWhereInput[]
|
|
id?: IntFilter<"WebhookToken"> | number
|
|
userId?: IntFilter<"WebhookToken"> | number
|
|
token?: StringFilter<"WebhookToken"> | string
|
|
createdAt?: DateTimeFilter<"WebhookToken"> | Date | string
|
|
user?: XOR<UserScalarRelationFilter, UserWhereInput>
|
|
}
|
|
|
|
export type WebhookTokenOrderByWithRelationInput = {
|
|
id?: SortOrder
|
|
userId?: SortOrder
|
|
token?: SortOrder
|
|
createdAt?: SortOrder
|
|
user?: UserOrderByWithRelationInput
|
|
}
|
|
|
|
export type WebhookTokenWhereUniqueInput = Prisma.AtLeast<{
|
|
id?: number
|
|
userId?: number
|
|
AND?: WebhookTokenWhereInput | WebhookTokenWhereInput[]
|
|
OR?: WebhookTokenWhereInput[]
|
|
NOT?: WebhookTokenWhereInput | WebhookTokenWhereInput[]
|
|
token?: StringFilter<"WebhookToken"> | string
|
|
createdAt?: DateTimeFilter<"WebhookToken"> | Date | string
|
|
user?: XOR<UserScalarRelationFilter, UserWhereInput>
|
|
}, "id" | "userId">
|
|
|
|
export type WebhookTokenOrderByWithAggregationInput = {
|
|
id?: SortOrder
|
|
userId?: SortOrder
|
|
token?: SortOrder
|
|
createdAt?: SortOrder
|
|
_count?: WebhookTokenCountOrderByAggregateInput
|
|
_avg?: WebhookTokenAvgOrderByAggregateInput
|
|
_max?: WebhookTokenMaxOrderByAggregateInput
|
|
_min?: WebhookTokenMinOrderByAggregateInput
|
|
_sum?: WebhookTokenSumOrderByAggregateInput
|
|
}
|
|
|
|
export type WebhookTokenScalarWhereWithAggregatesInput = {
|
|
AND?: WebhookTokenScalarWhereWithAggregatesInput | WebhookTokenScalarWhereWithAggregatesInput[]
|
|
OR?: WebhookTokenScalarWhereWithAggregatesInput[]
|
|
NOT?: WebhookTokenScalarWhereWithAggregatesInput | WebhookTokenScalarWhereWithAggregatesInput[]
|
|
id?: IntWithAggregatesFilter<"WebhookToken"> | number
|
|
userId?: IntWithAggregatesFilter<"WebhookToken"> | number
|
|
token?: StringWithAggregatesFilter<"WebhookToken"> | string
|
|
createdAt?: DateTimeWithAggregatesFilter<"WebhookToken"> | Date | string
|
|
}
|
|
|
|
export type NoConfigCommentWhereInput = {
|
|
AND?: NoConfigCommentWhereInput | NoConfigCommentWhereInput[]
|
|
OR?: NoConfigCommentWhereInput[]
|
|
NOT?: NoConfigCommentWhereInput | NoConfigCommentWhereInput[]
|
|
id?: IntFilter<"NoConfigComment"> | number
|
|
userId?: IntFilter<"NoConfigComment"> | number
|
|
repoOwner?: StringFilter<"NoConfigComment"> | string
|
|
repoName?: StringFilter<"NoConfigComment"> | string
|
|
prNumber?: IntFilter<"NoConfigComment"> | number
|
|
createdAt?: DateTimeFilter<"NoConfigComment"> | Date | string
|
|
user?: XOR<UserScalarRelationFilter, UserWhereInput>
|
|
}
|
|
|
|
export type NoConfigCommentOrderByWithRelationInput = {
|
|
id?: SortOrder
|
|
userId?: SortOrder
|
|
repoOwner?: SortOrder
|
|
repoName?: SortOrder
|
|
prNumber?: SortOrder
|
|
createdAt?: SortOrder
|
|
user?: UserOrderByWithRelationInput
|
|
}
|
|
|
|
export type NoConfigCommentWhereUniqueInput = Prisma.AtLeast<{
|
|
id?: number
|
|
userId_repoOwner_repoName_prNumber?: NoConfigCommentUserIdRepoOwnerRepoNamePrNumberCompoundUniqueInput
|
|
AND?: NoConfigCommentWhereInput | NoConfigCommentWhereInput[]
|
|
OR?: NoConfigCommentWhereInput[]
|
|
NOT?: NoConfigCommentWhereInput | NoConfigCommentWhereInput[]
|
|
userId?: IntFilter<"NoConfigComment"> | number
|
|
repoOwner?: StringFilter<"NoConfigComment"> | string
|
|
repoName?: StringFilter<"NoConfigComment"> | string
|
|
prNumber?: IntFilter<"NoConfigComment"> | number
|
|
createdAt?: DateTimeFilter<"NoConfigComment"> | Date | string
|
|
user?: XOR<UserScalarRelationFilter, UserWhereInput>
|
|
}, "id" | "userId_repoOwner_repoName_prNumber">
|
|
|
|
export type NoConfigCommentOrderByWithAggregationInput = {
|
|
id?: SortOrder
|
|
userId?: SortOrder
|
|
repoOwner?: SortOrder
|
|
repoName?: SortOrder
|
|
prNumber?: SortOrder
|
|
createdAt?: SortOrder
|
|
_count?: NoConfigCommentCountOrderByAggregateInput
|
|
_avg?: NoConfigCommentAvgOrderByAggregateInput
|
|
_max?: NoConfigCommentMaxOrderByAggregateInput
|
|
_min?: NoConfigCommentMinOrderByAggregateInput
|
|
_sum?: NoConfigCommentSumOrderByAggregateInput
|
|
}
|
|
|
|
export type NoConfigCommentScalarWhereWithAggregatesInput = {
|
|
AND?: NoConfigCommentScalarWhereWithAggregatesInput | NoConfigCommentScalarWhereWithAggregatesInput[]
|
|
OR?: NoConfigCommentScalarWhereWithAggregatesInput[]
|
|
NOT?: NoConfigCommentScalarWhereWithAggregatesInput | NoConfigCommentScalarWhereWithAggregatesInput[]
|
|
id?: IntWithAggregatesFilter<"NoConfigComment"> | number
|
|
userId?: IntWithAggregatesFilter<"NoConfigComment"> | number
|
|
repoOwner?: StringWithAggregatesFilter<"NoConfigComment"> | string
|
|
repoName?: StringWithAggregatesFilter<"NoConfigComment"> | string
|
|
prNumber?: IntWithAggregatesFilter<"NoConfigComment"> | number
|
|
createdAt?: DateTimeWithAggregatesFilter<"NoConfigComment"> | Date | string
|
|
}
|
|
|
|
export type AdminSettingsWhereInput = {
|
|
AND?: AdminSettingsWhereInput | AdminSettingsWhereInput[]
|
|
OR?: AdminSettingsWhereInput[]
|
|
NOT?: AdminSettingsWhereInput | AdminSettingsWhereInput[]
|
|
id?: IntFilter<"AdminSettings"> | number
|
|
defaultInstanceType?: StringFilter<"AdminSettings"> | string
|
|
maxConcurrentInstancesPerUser?: IntFilter<"AdminSettings"> | number
|
|
logSizeLimitBytes?: IntFilter<"AdminSettings"> | number
|
|
previewRetentionDays?: IntFilter<"AdminSettings"> | number
|
|
webhookRateLimitPerMinute?: IntFilter<"AdminSettings"> | number
|
|
contactEmail?: StringFilter<"AdminSettings"> | string
|
|
}
|
|
|
|
export type AdminSettingsOrderByWithRelationInput = {
|
|
id?: SortOrder
|
|
defaultInstanceType?: SortOrder
|
|
maxConcurrentInstancesPerUser?: SortOrder
|
|
logSizeLimitBytes?: SortOrder
|
|
previewRetentionDays?: SortOrder
|
|
webhookRateLimitPerMinute?: SortOrder
|
|
contactEmail?: SortOrder
|
|
}
|
|
|
|
export type AdminSettingsWhereUniqueInput = Prisma.AtLeast<{
|
|
id?: number
|
|
AND?: AdminSettingsWhereInput | AdminSettingsWhereInput[]
|
|
OR?: AdminSettingsWhereInput[]
|
|
NOT?: AdminSettingsWhereInput | AdminSettingsWhereInput[]
|
|
defaultInstanceType?: StringFilter<"AdminSettings"> | string
|
|
maxConcurrentInstancesPerUser?: IntFilter<"AdminSettings"> | number
|
|
logSizeLimitBytes?: IntFilter<"AdminSettings"> | number
|
|
previewRetentionDays?: IntFilter<"AdminSettings"> | number
|
|
webhookRateLimitPerMinute?: IntFilter<"AdminSettings"> | number
|
|
contactEmail?: StringFilter<"AdminSettings"> | string
|
|
}, "id">
|
|
|
|
export type AdminSettingsOrderByWithAggregationInput = {
|
|
id?: SortOrder
|
|
defaultInstanceType?: SortOrder
|
|
maxConcurrentInstancesPerUser?: SortOrder
|
|
logSizeLimitBytes?: SortOrder
|
|
previewRetentionDays?: SortOrder
|
|
webhookRateLimitPerMinute?: SortOrder
|
|
contactEmail?: SortOrder
|
|
_count?: AdminSettingsCountOrderByAggregateInput
|
|
_avg?: AdminSettingsAvgOrderByAggregateInput
|
|
_max?: AdminSettingsMaxOrderByAggregateInput
|
|
_min?: AdminSettingsMinOrderByAggregateInput
|
|
_sum?: AdminSettingsSumOrderByAggregateInput
|
|
}
|
|
|
|
export type AdminSettingsScalarWhereWithAggregatesInput = {
|
|
AND?: AdminSettingsScalarWhereWithAggregatesInput | AdminSettingsScalarWhereWithAggregatesInput[]
|
|
OR?: AdminSettingsScalarWhereWithAggregatesInput[]
|
|
NOT?: AdminSettingsScalarWhereWithAggregatesInput | AdminSettingsScalarWhereWithAggregatesInput[]
|
|
id?: IntWithAggregatesFilter<"AdminSettings"> | number
|
|
defaultInstanceType?: StringWithAggregatesFilter<"AdminSettings"> | string
|
|
maxConcurrentInstancesPerUser?: IntWithAggregatesFilter<"AdminSettings"> | number
|
|
logSizeLimitBytes?: IntWithAggregatesFilter<"AdminSettings"> | number
|
|
previewRetentionDays?: IntWithAggregatesFilter<"AdminSettings"> | number
|
|
webhookRateLimitPerMinute?: IntWithAggregatesFilter<"AdminSettings"> | number
|
|
contactEmail?: StringWithAggregatesFilter<"AdminSettings"> | string
|
|
}
|
|
|
|
export type UserCreateInput = {
|
|
username: string
|
|
passwordHash: string
|
|
isAdmin?: boolean
|
|
isFounder?: boolean
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
giteaUsername?: string | null
|
|
giteaPAT?: string | null
|
|
giteaInstanceUrl?: string | null
|
|
awsAccessKeyId?: string | null
|
|
awsSecretAccessKey?: string | null
|
|
awsRegion?: string | null
|
|
sessions?: SessionCreateNestedManyWithoutUserInput
|
|
repoConfigs?: RepoConfigCreateNestedManyWithoutUserInput
|
|
webhookToken?: WebhookTokenCreateNestedOneWithoutUserInput
|
|
noConfigComments?: NoConfigCommentCreateNestedManyWithoutUserInput
|
|
}
|
|
|
|
export type UserUncheckedCreateInput = {
|
|
id?: number
|
|
username: string
|
|
passwordHash: string
|
|
isAdmin?: boolean
|
|
isFounder?: boolean
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
giteaUsername?: string | null
|
|
giteaPAT?: string | null
|
|
giteaInstanceUrl?: string | null
|
|
awsAccessKeyId?: string | null
|
|
awsSecretAccessKey?: string | null
|
|
awsRegion?: string | null
|
|
sessions?: SessionUncheckedCreateNestedManyWithoutUserInput
|
|
repoConfigs?: RepoConfigUncheckedCreateNestedManyWithoutUserInput
|
|
webhookToken?: WebhookTokenUncheckedCreateNestedOneWithoutUserInput
|
|
noConfigComments?: NoConfigCommentUncheckedCreateNestedManyWithoutUserInput
|
|
}
|
|
|
|
export type UserUpdateInput = {
|
|
username?: StringFieldUpdateOperationsInput | string
|
|
passwordHash?: StringFieldUpdateOperationsInput | string
|
|
isAdmin?: BoolFieldUpdateOperationsInput | boolean
|
|
isFounder?: BoolFieldUpdateOperationsInput | boolean
|
|
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
giteaUsername?: NullableStringFieldUpdateOperationsInput | string | null
|
|
giteaPAT?: NullableStringFieldUpdateOperationsInput | string | null
|
|
giteaInstanceUrl?: NullableStringFieldUpdateOperationsInput | string | null
|
|
awsAccessKeyId?: NullableStringFieldUpdateOperationsInput | string | null
|
|
awsSecretAccessKey?: NullableStringFieldUpdateOperationsInput | string | null
|
|
awsRegion?: NullableStringFieldUpdateOperationsInput | string | null
|
|
sessions?: SessionUpdateManyWithoutUserNestedInput
|
|
repoConfigs?: RepoConfigUpdateManyWithoutUserNestedInput
|
|
webhookToken?: WebhookTokenUpdateOneWithoutUserNestedInput
|
|
noConfigComments?: NoConfigCommentUpdateManyWithoutUserNestedInput
|
|
}
|
|
|
|
export type UserUncheckedUpdateInput = {
|
|
id?: IntFieldUpdateOperationsInput | number
|
|
username?: StringFieldUpdateOperationsInput | string
|
|
passwordHash?: StringFieldUpdateOperationsInput | string
|
|
isAdmin?: BoolFieldUpdateOperationsInput | boolean
|
|
isFounder?: BoolFieldUpdateOperationsInput | boolean
|
|
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
giteaUsername?: NullableStringFieldUpdateOperationsInput | string | null
|
|
giteaPAT?: NullableStringFieldUpdateOperationsInput | string | null
|
|
giteaInstanceUrl?: NullableStringFieldUpdateOperationsInput | string | null
|
|
awsAccessKeyId?: NullableStringFieldUpdateOperationsInput | string | null
|
|
awsSecretAccessKey?: NullableStringFieldUpdateOperationsInput | string | null
|
|
awsRegion?: NullableStringFieldUpdateOperationsInput | string | null
|
|
sessions?: SessionUncheckedUpdateManyWithoutUserNestedInput
|
|
repoConfigs?: RepoConfigUncheckedUpdateManyWithoutUserNestedInput
|
|
webhookToken?: WebhookTokenUncheckedUpdateOneWithoutUserNestedInput
|
|
noConfigComments?: NoConfigCommentUncheckedUpdateManyWithoutUserNestedInput
|
|
}
|
|
|
|
export type UserCreateManyInput = {
|
|
id?: number
|
|
username: string
|
|
passwordHash: string
|
|
isAdmin?: boolean
|
|
isFounder?: boolean
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
giteaUsername?: string | null
|
|
giteaPAT?: string | null
|
|
giteaInstanceUrl?: string | null
|
|
awsAccessKeyId?: string | null
|
|
awsSecretAccessKey?: string | null
|
|
awsRegion?: string | null
|
|
}
|
|
|
|
export type UserUpdateManyMutationInput = {
|
|
username?: StringFieldUpdateOperationsInput | string
|
|
passwordHash?: StringFieldUpdateOperationsInput | string
|
|
isAdmin?: BoolFieldUpdateOperationsInput | boolean
|
|
isFounder?: BoolFieldUpdateOperationsInput | boolean
|
|
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
giteaUsername?: NullableStringFieldUpdateOperationsInput | string | null
|
|
giteaPAT?: NullableStringFieldUpdateOperationsInput | string | null
|
|
giteaInstanceUrl?: NullableStringFieldUpdateOperationsInput | string | null
|
|
awsAccessKeyId?: NullableStringFieldUpdateOperationsInput | string | null
|
|
awsSecretAccessKey?: NullableStringFieldUpdateOperationsInput | string | null
|
|
awsRegion?: NullableStringFieldUpdateOperationsInput | string | null
|
|
}
|
|
|
|
export type UserUncheckedUpdateManyInput = {
|
|
id?: IntFieldUpdateOperationsInput | number
|
|
username?: StringFieldUpdateOperationsInput | string
|
|
passwordHash?: StringFieldUpdateOperationsInput | string
|
|
isAdmin?: BoolFieldUpdateOperationsInput | boolean
|
|
isFounder?: BoolFieldUpdateOperationsInput | boolean
|
|
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
giteaUsername?: NullableStringFieldUpdateOperationsInput | string | null
|
|
giteaPAT?: NullableStringFieldUpdateOperationsInput | string | null
|
|
giteaInstanceUrl?: NullableStringFieldUpdateOperationsInput | string | null
|
|
awsAccessKeyId?: NullableStringFieldUpdateOperationsInput | string | null
|
|
awsSecretAccessKey?: NullableStringFieldUpdateOperationsInput | string | null
|
|
awsRegion?: NullableStringFieldUpdateOperationsInput | string | null
|
|
}
|
|
|
|
export type SessionCreateInput = {
|
|
hash: string
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
user: UserCreateNestedOneWithoutSessionsInput
|
|
}
|
|
|
|
export type SessionUncheckedCreateInput = {
|
|
id?: number
|
|
hash: string
|
|
userId: number
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
}
|
|
|
|
export type SessionUpdateInput = {
|
|
hash?: StringFieldUpdateOperationsInput | string
|
|
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
user?: UserUpdateOneRequiredWithoutSessionsNestedInput
|
|
}
|
|
|
|
export type SessionUncheckedUpdateInput = {
|
|
id?: IntFieldUpdateOperationsInput | number
|
|
hash?: StringFieldUpdateOperationsInput | string
|
|
userId?: IntFieldUpdateOperationsInput | number
|
|
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
}
|
|
|
|
export type SessionCreateManyInput = {
|
|
id?: number
|
|
hash: string
|
|
userId: number
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
}
|
|
|
|
export type SessionUpdateManyMutationInput = {
|
|
hash?: StringFieldUpdateOperationsInput | string
|
|
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
}
|
|
|
|
export type SessionUncheckedUpdateManyInput = {
|
|
id?: IntFieldUpdateOperationsInput | number
|
|
hash?: StringFieldUpdateOperationsInput | string
|
|
userId?: IntFieldUpdateOperationsInput | number
|
|
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
}
|
|
|
|
export type RepoConfigCreateInput = {
|
|
repoOwner: string
|
|
repoName: string
|
|
isEnabled?: boolean
|
|
giteaWebhookId?: string | null
|
|
denyList?: RepoConfigCreatedenyListInput | string[]
|
|
instanceType?: string
|
|
inactivityHours?: number
|
|
port?: number
|
|
envVars?: JsonNullValueInput | InputJsonValue
|
|
useDockerCompose?: boolean
|
|
composeFilePath?: string | null
|
|
aptPackages?: RepoConfigCreateaptPackagesInput | string[]
|
|
setupCommands?: RepoConfigCreatesetupCommandsInput | string[]
|
|
buildCommands?: RepoConfigCreatebuildCommandsInput | string[]
|
|
postBuildCommands?: RepoConfigCreatepostBuildCommandsInput | string[]
|
|
runCommand?: string | null
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
user: UserCreateNestedOneWithoutRepoConfigsInput
|
|
previews?: PreviewCreateNestedManyWithoutRepoConfigInput
|
|
}
|
|
|
|
export type RepoConfigUncheckedCreateInput = {
|
|
id?: number
|
|
userId: number
|
|
repoOwner: string
|
|
repoName: string
|
|
isEnabled?: boolean
|
|
giteaWebhookId?: string | null
|
|
denyList?: RepoConfigCreatedenyListInput | string[]
|
|
instanceType?: string
|
|
inactivityHours?: number
|
|
port?: number
|
|
envVars?: JsonNullValueInput | InputJsonValue
|
|
useDockerCompose?: boolean
|
|
composeFilePath?: string | null
|
|
aptPackages?: RepoConfigCreateaptPackagesInput | string[]
|
|
setupCommands?: RepoConfigCreatesetupCommandsInput | string[]
|
|
buildCommands?: RepoConfigCreatebuildCommandsInput | string[]
|
|
postBuildCommands?: RepoConfigCreatepostBuildCommandsInput | string[]
|
|
runCommand?: string | null
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
previews?: PreviewUncheckedCreateNestedManyWithoutRepoConfigInput
|
|
}
|
|
|
|
export type RepoConfigUpdateInput = {
|
|
repoOwner?: StringFieldUpdateOperationsInput | string
|
|
repoName?: StringFieldUpdateOperationsInput | string
|
|
isEnabled?: BoolFieldUpdateOperationsInput | boolean
|
|
giteaWebhookId?: NullableStringFieldUpdateOperationsInput | string | null
|
|
denyList?: RepoConfigUpdatedenyListInput | string[]
|
|
instanceType?: StringFieldUpdateOperationsInput | string
|
|
inactivityHours?: FloatFieldUpdateOperationsInput | number
|
|
port?: IntFieldUpdateOperationsInput | number
|
|
envVars?: JsonNullValueInput | InputJsonValue
|
|
useDockerCompose?: BoolFieldUpdateOperationsInput | boolean
|
|
composeFilePath?: NullableStringFieldUpdateOperationsInput | string | null
|
|
aptPackages?: RepoConfigUpdateaptPackagesInput | string[]
|
|
setupCommands?: RepoConfigUpdatesetupCommandsInput | string[]
|
|
buildCommands?: RepoConfigUpdatebuildCommandsInput | string[]
|
|
postBuildCommands?: RepoConfigUpdatepostBuildCommandsInput | string[]
|
|
runCommand?: NullableStringFieldUpdateOperationsInput | string | null
|
|
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
user?: UserUpdateOneRequiredWithoutRepoConfigsNestedInput
|
|
previews?: PreviewUpdateManyWithoutRepoConfigNestedInput
|
|
}
|
|
|
|
export type RepoConfigUncheckedUpdateInput = {
|
|
id?: IntFieldUpdateOperationsInput | number
|
|
userId?: IntFieldUpdateOperationsInput | number
|
|
repoOwner?: StringFieldUpdateOperationsInput | string
|
|
repoName?: StringFieldUpdateOperationsInput | string
|
|
isEnabled?: BoolFieldUpdateOperationsInput | boolean
|
|
giteaWebhookId?: NullableStringFieldUpdateOperationsInput | string | null
|
|
denyList?: RepoConfigUpdatedenyListInput | string[]
|
|
instanceType?: StringFieldUpdateOperationsInput | string
|
|
inactivityHours?: FloatFieldUpdateOperationsInput | number
|
|
port?: IntFieldUpdateOperationsInput | number
|
|
envVars?: JsonNullValueInput | InputJsonValue
|
|
useDockerCompose?: BoolFieldUpdateOperationsInput | boolean
|
|
composeFilePath?: NullableStringFieldUpdateOperationsInput | string | null
|
|
aptPackages?: RepoConfigUpdateaptPackagesInput | string[]
|
|
setupCommands?: RepoConfigUpdatesetupCommandsInput | string[]
|
|
buildCommands?: RepoConfigUpdatebuildCommandsInput | string[]
|
|
postBuildCommands?: RepoConfigUpdatepostBuildCommandsInput | string[]
|
|
runCommand?: NullableStringFieldUpdateOperationsInput | string | null
|
|
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
previews?: PreviewUncheckedUpdateManyWithoutRepoConfigNestedInput
|
|
}
|
|
|
|
export type RepoConfigCreateManyInput = {
|
|
id?: number
|
|
userId: number
|
|
repoOwner: string
|
|
repoName: string
|
|
isEnabled?: boolean
|
|
giteaWebhookId?: string | null
|
|
denyList?: RepoConfigCreatedenyListInput | string[]
|
|
instanceType?: string
|
|
inactivityHours?: number
|
|
port?: number
|
|
envVars?: JsonNullValueInput | InputJsonValue
|
|
useDockerCompose?: boolean
|
|
composeFilePath?: string | null
|
|
aptPackages?: RepoConfigCreateaptPackagesInput | string[]
|
|
setupCommands?: RepoConfigCreatesetupCommandsInput | string[]
|
|
buildCommands?: RepoConfigCreatebuildCommandsInput | string[]
|
|
postBuildCommands?: RepoConfigCreatepostBuildCommandsInput | string[]
|
|
runCommand?: string | null
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
}
|
|
|
|
export type RepoConfigUpdateManyMutationInput = {
|
|
repoOwner?: StringFieldUpdateOperationsInput | string
|
|
repoName?: StringFieldUpdateOperationsInput | string
|
|
isEnabled?: BoolFieldUpdateOperationsInput | boolean
|
|
giteaWebhookId?: NullableStringFieldUpdateOperationsInput | string | null
|
|
denyList?: RepoConfigUpdatedenyListInput | string[]
|
|
instanceType?: StringFieldUpdateOperationsInput | string
|
|
inactivityHours?: FloatFieldUpdateOperationsInput | number
|
|
port?: IntFieldUpdateOperationsInput | number
|
|
envVars?: JsonNullValueInput | InputJsonValue
|
|
useDockerCompose?: BoolFieldUpdateOperationsInput | boolean
|
|
composeFilePath?: NullableStringFieldUpdateOperationsInput | string | null
|
|
aptPackages?: RepoConfigUpdateaptPackagesInput | string[]
|
|
setupCommands?: RepoConfigUpdatesetupCommandsInput | string[]
|
|
buildCommands?: RepoConfigUpdatebuildCommandsInput | string[]
|
|
postBuildCommands?: RepoConfigUpdatepostBuildCommandsInput | string[]
|
|
runCommand?: NullableStringFieldUpdateOperationsInput | string | null
|
|
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
}
|
|
|
|
export type RepoConfigUncheckedUpdateManyInput = {
|
|
id?: IntFieldUpdateOperationsInput | number
|
|
userId?: IntFieldUpdateOperationsInput | number
|
|
repoOwner?: StringFieldUpdateOperationsInput | string
|
|
repoName?: StringFieldUpdateOperationsInput | string
|
|
isEnabled?: BoolFieldUpdateOperationsInput | boolean
|
|
giteaWebhookId?: NullableStringFieldUpdateOperationsInput | string | null
|
|
denyList?: RepoConfigUpdatedenyListInput | string[]
|
|
instanceType?: StringFieldUpdateOperationsInput | string
|
|
inactivityHours?: FloatFieldUpdateOperationsInput | number
|
|
port?: IntFieldUpdateOperationsInput | number
|
|
envVars?: JsonNullValueInput | InputJsonValue
|
|
useDockerCompose?: BoolFieldUpdateOperationsInput | boolean
|
|
composeFilePath?: NullableStringFieldUpdateOperationsInput | string | null
|
|
aptPackages?: RepoConfigUpdateaptPackagesInput | string[]
|
|
setupCommands?: RepoConfigUpdatesetupCommandsInput | string[]
|
|
buildCommands?: RepoConfigUpdatebuildCommandsInput | string[]
|
|
postBuildCommands?: RepoConfigUpdatepostBuildCommandsInput | string[]
|
|
runCommand?: NullableStringFieldUpdateOperationsInput | string | null
|
|
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
}
|
|
|
|
export type PreviewCreateInput = {
|
|
prNumber: number
|
|
prTitle: string
|
|
commitSha: string
|
|
instanceId?: string | null
|
|
instanceIp?: string | null
|
|
port?: number
|
|
status?: $Enums.PreviewStatus
|
|
logs?: string
|
|
pid?: number | null
|
|
sshPrivateKey?: string | null
|
|
sshKeyName?: string | null
|
|
giteaCommentId?: number | null
|
|
lastActivityAt?: Date | string
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
stoppedAt?: Date | string | null
|
|
repoConfig: RepoConfigCreateNestedOneWithoutPreviewsInput
|
|
jobs?: JobCreateNestedManyWithoutPreviewInput
|
|
}
|
|
|
|
export type PreviewUncheckedCreateInput = {
|
|
id?: number
|
|
repoConfigId: number
|
|
prNumber: number
|
|
prTitle: string
|
|
commitSha: string
|
|
instanceId?: string | null
|
|
instanceIp?: string | null
|
|
port?: number
|
|
status?: $Enums.PreviewStatus
|
|
logs?: string
|
|
pid?: number | null
|
|
sshPrivateKey?: string | null
|
|
sshKeyName?: string | null
|
|
giteaCommentId?: number | null
|
|
lastActivityAt?: Date | string
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
stoppedAt?: Date | string | null
|
|
jobs?: JobUncheckedCreateNestedManyWithoutPreviewInput
|
|
}
|
|
|
|
export type PreviewUpdateInput = {
|
|
prNumber?: IntFieldUpdateOperationsInput | number
|
|
prTitle?: StringFieldUpdateOperationsInput | string
|
|
commitSha?: StringFieldUpdateOperationsInput | string
|
|
instanceId?: NullableStringFieldUpdateOperationsInput | string | null
|
|
instanceIp?: NullableStringFieldUpdateOperationsInput | string | null
|
|
port?: IntFieldUpdateOperationsInput | number
|
|
status?: EnumPreviewStatusFieldUpdateOperationsInput | $Enums.PreviewStatus
|
|
logs?: StringFieldUpdateOperationsInput | string
|
|
pid?: NullableIntFieldUpdateOperationsInput | number | null
|
|
sshPrivateKey?: NullableStringFieldUpdateOperationsInput | string | null
|
|
sshKeyName?: NullableStringFieldUpdateOperationsInput | string | null
|
|
giteaCommentId?: NullableIntFieldUpdateOperationsInput | number | null
|
|
lastActivityAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
stoppedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
repoConfig?: RepoConfigUpdateOneRequiredWithoutPreviewsNestedInput
|
|
jobs?: JobUpdateManyWithoutPreviewNestedInput
|
|
}
|
|
|
|
export type PreviewUncheckedUpdateInput = {
|
|
id?: IntFieldUpdateOperationsInput | number
|
|
repoConfigId?: IntFieldUpdateOperationsInput | number
|
|
prNumber?: IntFieldUpdateOperationsInput | number
|
|
prTitle?: StringFieldUpdateOperationsInput | string
|
|
commitSha?: StringFieldUpdateOperationsInput | string
|
|
instanceId?: NullableStringFieldUpdateOperationsInput | string | null
|
|
instanceIp?: NullableStringFieldUpdateOperationsInput | string | null
|
|
port?: IntFieldUpdateOperationsInput | number
|
|
status?: EnumPreviewStatusFieldUpdateOperationsInput | $Enums.PreviewStatus
|
|
logs?: StringFieldUpdateOperationsInput | string
|
|
pid?: NullableIntFieldUpdateOperationsInput | number | null
|
|
sshPrivateKey?: NullableStringFieldUpdateOperationsInput | string | null
|
|
sshKeyName?: NullableStringFieldUpdateOperationsInput | string | null
|
|
giteaCommentId?: NullableIntFieldUpdateOperationsInput | number | null
|
|
lastActivityAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
stoppedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
jobs?: JobUncheckedUpdateManyWithoutPreviewNestedInput
|
|
}
|
|
|
|
export type PreviewCreateManyInput = {
|
|
id?: number
|
|
repoConfigId: number
|
|
prNumber: number
|
|
prTitle: string
|
|
commitSha: string
|
|
instanceId?: string | null
|
|
instanceIp?: string | null
|
|
port?: number
|
|
status?: $Enums.PreviewStatus
|
|
logs?: string
|
|
pid?: number | null
|
|
sshPrivateKey?: string | null
|
|
sshKeyName?: string | null
|
|
giteaCommentId?: number | null
|
|
lastActivityAt?: Date | string
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
stoppedAt?: Date | string | null
|
|
}
|
|
|
|
export type PreviewUpdateManyMutationInput = {
|
|
prNumber?: IntFieldUpdateOperationsInput | number
|
|
prTitle?: StringFieldUpdateOperationsInput | string
|
|
commitSha?: StringFieldUpdateOperationsInput | string
|
|
instanceId?: NullableStringFieldUpdateOperationsInput | string | null
|
|
instanceIp?: NullableStringFieldUpdateOperationsInput | string | null
|
|
port?: IntFieldUpdateOperationsInput | number
|
|
status?: EnumPreviewStatusFieldUpdateOperationsInput | $Enums.PreviewStatus
|
|
logs?: StringFieldUpdateOperationsInput | string
|
|
pid?: NullableIntFieldUpdateOperationsInput | number | null
|
|
sshPrivateKey?: NullableStringFieldUpdateOperationsInput | string | null
|
|
sshKeyName?: NullableStringFieldUpdateOperationsInput | string | null
|
|
giteaCommentId?: NullableIntFieldUpdateOperationsInput | number | null
|
|
lastActivityAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
stoppedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
}
|
|
|
|
export type PreviewUncheckedUpdateManyInput = {
|
|
id?: IntFieldUpdateOperationsInput | number
|
|
repoConfigId?: IntFieldUpdateOperationsInput | number
|
|
prNumber?: IntFieldUpdateOperationsInput | number
|
|
prTitle?: StringFieldUpdateOperationsInput | string
|
|
commitSha?: StringFieldUpdateOperationsInput | string
|
|
instanceId?: NullableStringFieldUpdateOperationsInput | string | null
|
|
instanceIp?: NullableStringFieldUpdateOperationsInput | string | null
|
|
port?: IntFieldUpdateOperationsInput | number
|
|
status?: EnumPreviewStatusFieldUpdateOperationsInput | $Enums.PreviewStatus
|
|
logs?: StringFieldUpdateOperationsInput | string
|
|
pid?: NullableIntFieldUpdateOperationsInput | number | null
|
|
sshPrivateKey?: NullableStringFieldUpdateOperationsInput | string | null
|
|
sshKeyName?: NullableStringFieldUpdateOperationsInput | string | null
|
|
giteaCommentId?: NullableIntFieldUpdateOperationsInput | number | null
|
|
lastActivityAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
stoppedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
}
|
|
|
|
export type JobCreateInput = {
|
|
type: $Enums.JobType
|
|
status?: $Enums.JobStatus
|
|
payload?: JsonNullValueInput | InputJsonValue
|
|
error?: string | null
|
|
createdAt?: Date | string
|
|
startedAt?: Date | string | null
|
|
finishedAt?: Date | string | null
|
|
preview?: PreviewCreateNestedOneWithoutJobsInput
|
|
}
|
|
|
|
export type JobUncheckedCreateInput = {
|
|
id?: number
|
|
previewId?: number | null
|
|
type: $Enums.JobType
|
|
status?: $Enums.JobStatus
|
|
payload?: JsonNullValueInput | InputJsonValue
|
|
error?: string | null
|
|
createdAt?: Date | string
|
|
startedAt?: Date | string | null
|
|
finishedAt?: Date | string | null
|
|
}
|
|
|
|
export type JobUpdateInput = {
|
|
type?: EnumJobTypeFieldUpdateOperationsInput | $Enums.JobType
|
|
status?: EnumJobStatusFieldUpdateOperationsInput | $Enums.JobStatus
|
|
payload?: JsonNullValueInput | InputJsonValue
|
|
error?: NullableStringFieldUpdateOperationsInput | string | null
|
|
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
startedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
finishedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
preview?: PreviewUpdateOneWithoutJobsNestedInput
|
|
}
|
|
|
|
export type JobUncheckedUpdateInput = {
|
|
id?: IntFieldUpdateOperationsInput | number
|
|
previewId?: NullableIntFieldUpdateOperationsInput | number | null
|
|
type?: EnumJobTypeFieldUpdateOperationsInput | $Enums.JobType
|
|
status?: EnumJobStatusFieldUpdateOperationsInput | $Enums.JobStatus
|
|
payload?: JsonNullValueInput | InputJsonValue
|
|
error?: NullableStringFieldUpdateOperationsInput | string | null
|
|
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
startedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
finishedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
}
|
|
|
|
export type JobCreateManyInput = {
|
|
id?: number
|
|
previewId?: number | null
|
|
type: $Enums.JobType
|
|
status?: $Enums.JobStatus
|
|
payload?: JsonNullValueInput | InputJsonValue
|
|
error?: string | null
|
|
createdAt?: Date | string
|
|
startedAt?: Date | string | null
|
|
finishedAt?: Date | string | null
|
|
}
|
|
|
|
export type JobUpdateManyMutationInput = {
|
|
type?: EnumJobTypeFieldUpdateOperationsInput | $Enums.JobType
|
|
status?: EnumJobStatusFieldUpdateOperationsInput | $Enums.JobStatus
|
|
payload?: JsonNullValueInput | InputJsonValue
|
|
error?: NullableStringFieldUpdateOperationsInput | string | null
|
|
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
startedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
finishedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
}
|
|
|
|
export type JobUncheckedUpdateManyInput = {
|
|
id?: IntFieldUpdateOperationsInput | number
|
|
previewId?: NullableIntFieldUpdateOperationsInput | number | null
|
|
type?: EnumJobTypeFieldUpdateOperationsInput | $Enums.JobType
|
|
status?: EnumJobStatusFieldUpdateOperationsInput | $Enums.JobStatus
|
|
payload?: JsonNullValueInput | InputJsonValue
|
|
error?: NullableStringFieldUpdateOperationsInput | string | null
|
|
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
startedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
finishedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
}
|
|
|
|
export type WebhookTokenCreateInput = {
|
|
token: string
|
|
createdAt?: Date | string
|
|
user: UserCreateNestedOneWithoutWebhookTokenInput
|
|
}
|
|
|
|
export type WebhookTokenUncheckedCreateInput = {
|
|
id?: number
|
|
userId: number
|
|
token: string
|
|
createdAt?: Date | string
|
|
}
|
|
|
|
export type WebhookTokenUpdateInput = {
|
|
token?: StringFieldUpdateOperationsInput | string
|
|
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
user?: UserUpdateOneRequiredWithoutWebhookTokenNestedInput
|
|
}
|
|
|
|
export type WebhookTokenUncheckedUpdateInput = {
|
|
id?: IntFieldUpdateOperationsInput | number
|
|
userId?: IntFieldUpdateOperationsInput | number
|
|
token?: StringFieldUpdateOperationsInput | string
|
|
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
}
|
|
|
|
export type WebhookTokenCreateManyInput = {
|
|
id?: number
|
|
userId: number
|
|
token: string
|
|
createdAt?: Date | string
|
|
}
|
|
|
|
export type WebhookTokenUpdateManyMutationInput = {
|
|
token?: StringFieldUpdateOperationsInput | string
|
|
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
}
|
|
|
|
export type WebhookTokenUncheckedUpdateManyInput = {
|
|
id?: IntFieldUpdateOperationsInput | number
|
|
userId?: IntFieldUpdateOperationsInput | number
|
|
token?: StringFieldUpdateOperationsInput | string
|
|
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
}
|
|
|
|
export type NoConfigCommentCreateInput = {
|
|
repoOwner: string
|
|
repoName: string
|
|
prNumber: number
|
|
createdAt?: Date | string
|
|
user: UserCreateNestedOneWithoutNoConfigCommentsInput
|
|
}
|
|
|
|
export type NoConfigCommentUncheckedCreateInput = {
|
|
id?: number
|
|
userId: number
|
|
repoOwner: string
|
|
repoName: string
|
|
prNumber: number
|
|
createdAt?: Date | string
|
|
}
|
|
|
|
export type NoConfigCommentUpdateInput = {
|
|
repoOwner?: StringFieldUpdateOperationsInput | string
|
|
repoName?: StringFieldUpdateOperationsInput | string
|
|
prNumber?: IntFieldUpdateOperationsInput | number
|
|
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
user?: UserUpdateOneRequiredWithoutNoConfigCommentsNestedInput
|
|
}
|
|
|
|
export type NoConfigCommentUncheckedUpdateInput = {
|
|
id?: IntFieldUpdateOperationsInput | number
|
|
userId?: IntFieldUpdateOperationsInput | number
|
|
repoOwner?: StringFieldUpdateOperationsInput | string
|
|
repoName?: StringFieldUpdateOperationsInput | string
|
|
prNumber?: IntFieldUpdateOperationsInput | number
|
|
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
}
|
|
|
|
export type NoConfigCommentCreateManyInput = {
|
|
id?: number
|
|
userId: number
|
|
repoOwner: string
|
|
repoName: string
|
|
prNumber: number
|
|
createdAt?: Date | string
|
|
}
|
|
|
|
export type NoConfigCommentUpdateManyMutationInput = {
|
|
repoOwner?: StringFieldUpdateOperationsInput | string
|
|
repoName?: StringFieldUpdateOperationsInput | string
|
|
prNumber?: IntFieldUpdateOperationsInput | number
|
|
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
}
|
|
|
|
export type NoConfigCommentUncheckedUpdateManyInput = {
|
|
id?: IntFieldUpdateOperationsInput | number
|
|
userId?: IntFieldUpdateOperationsInput | number
|
|
repoOwner?: StringFieldUpdateOperationsInput | string
|
|
repoName?: StringFieldUpdateOperationsInput | string
|
|
prNumber?: IntFieldUpdateOperationsInput | number
|
|
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
}
|
|
|
|
export type AdminSettingsCreateInput = {
|
|
id?: number
|
|
defaultInstanceType?: string
|
|
maxConcurrentInstancesPerUser?: number
|
|
logSizeLimitBytes?: number
|
|
previewRetentionDays?: number
|
|
webhookRateLimitPerMinute?: number
|
|
contactEmail?: string
|
|
}
|
|
|
|
export type AdminSettingsUncheckedCreateInput = {
|
|
id?: number
|
|
defaultInstanceType?: string
|
|
maxConcurrentInstancesPerUser?: number
|
|
logSizeLimitBytes?: number
|
|
previewRetentionDays?: number
|
|
webhookRateLimitPerMinute?: number
|
|
contactEmail?: string
|
|
}
|
|
|
|
export type AdminSettingsUpdateInput = {
|
|
id?: IntFieldUpdateOperationsInput | number
|
|
defaultInstanceType?: StringFieldUpdateOperationsInput | string
|
|
maxConcurrentInstancesPerUser?: IntFieldUpdateOperationsInput | number
|
|
logSizeLimitBytes?: IntFieldUpdateOperationsInput | number
|
|
previewRetentionDays?: IntFieldUpdateOperationsInput | number
|
|
webhookRateLimitPerMinute?: IntFieldUpdateOperationsInput | number
|
|
contactEmail?: StringFieldUpdateOperationsInput | string
|
|
}
|
|
|
|
export type AdminSettingsUncheckedUpdateInput = {
|
|
id?: IntFieldUpdateOperationsInput | number
|
|
defaultInstanceType?: StringFieldUpdateOperationsInput | string
|
|
maxConcurrentInstancesPerUser?: IntFieldUpdateOperationsInput | number
|
|
logSizeLimitBytes?: IntFieldUpdateOperationsInput | number
|
|
previewRetentionDays?: IntFieldUpdateOperationsInput | number
|
|
webhookRateLimitPerMinute?: IntFieldUpdateOperationsInput | number
|
|
contactEmail?: StringFieldUpdateOperationsInput | string
|
|
}
|
|
|
|
export type AdminSettingsCreateManyInput = {
|
|
id?: number
|
|
defaultInstanceType?: string
|
|
maxConcurrentInstancesPerUser?: number
|
|
logSizeLimitBytes?: number
|
|
previewRetentionDays?: number
|
|
webhookRateLimitPerMinute?: number
|
|
contactEmail?: string
|
|
}
|
|
|
|
export type AdminSettingsUpdateManyMutationInput = {
|
|
id?: IntFieldUpdateOperationsInput | number
|
|
defaultInstanceType?: StringFieldUpdateOperationsInput | string
|
|
maxConcurrentInstancesPerUser?: IntFieldUpdateOperationsInput | number
|
|
logSizeLimitBytes?: IntFieldUpdateOperationsInput | number
|
|
previewRetentionDays?: IntFieldUpdateOperationsInput | number
|
|
webhookRateLimitPerMinute?: IntFieldUpdateOperationsInput | number
|
|
contactEmail?: StringFieldUpdateOperationsInput | string
|
|
}
|
|
|
|
export type AdminSettingsUncheckedUpdateManyInput = {
|
|
id?: IntFieldUpdateOperationsInput | number
|
|
defaultInstanceType?: StringFieldUpdateOperationsInput | string
|
|
maxConcurrentInstancesPerUser?: IntFieldUpdateOperationsInput | number
|
|
logSizeLimitBytes?: IntFieldUpdateOperationsInput | number
|
|
previewRetentionDays?: IntFieldUpdateOperationsInput | number
|
|
webhookRateLimitPerMinute?: IntFieldUpdateOperationsInput | number
|
|
contactEmail?: StringFieldUpdateOperationsInput | string
|
|
}
|
|
|
|
export type IntFilter<$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 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 BoolFilter<$PrismaModel = never> = {
|
|
equals?: boolean | BooleanFieldRefInput<$PrismaModel>
|
|
not?: NestedBoolFilter<$PrismaModel> | boolean
|
|
}
|
|
|
|
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 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 SessionListRelationFilter = {
|
|
every?: SessionWhereInput
|
|
some?: SessionWhereInput
|
|
none?: SessionWhereInput
|
|
}
|
|
|
|
export type RepoConfigListRelationFilter = {
|
|
every?: RepoConfigWhereInput
|
|
some?: RepoConfigWhereInput
|
|
none?: RepoConfigWhereInput
|
|
}
|
|
|
|
export type WebhookTokenNullableScalarRelationFilter = {
|
|
is?: WebhookTokenWhereInput | null
|
|
isNot?: WebhookTokenWhereInput | null
|
|
}
|
|
|
|
export type NoConfigCommentListRelationFilter = {
|
|
every?: NoConfigCommentWhereInput
|
|
some?: NoConfigCommentWhereInput
|
|
none?: NoConfigCommentWhereInput
|
|
}
|
|
|
|
export type SortOrderInput = {
|
|
sort: SortOrder
|
|
nulls?: NullsOrder
|
|
}
|
|
|
|
export type SessionOrderByRelationAggregateInput = {
|
|
_count?: SortOrder
|
|
}
|
|
|
|
export type RepoConfigOrderByRelationAggregateInput = {
|
|
_count?: SortOrder
|
|
}
|
|
|
|
export type NoConfigCommentOrderByRelationAggregateInput = {
|
|
_count?: SortOrder
|
|
}
|
|
|
|
export type UserCountOrderByAggregateInput = {
|
|
id?: SortOrder
|
|
username?: SortOrder
|
|
passwordHash?: SortOrder
|
|
isAdmin?: SortOrder
|
|
isFounder?: SortOrder
|
|
createdAt?: SortOrder
|
|
updatedAt?: SortOrder
|
|
giteaUsername?: SortOrder
|
|
giteaPAT?: SortOrder
|
|
giteaInstanceUrl?: SortOrder
|
|
awsAccessKeyId?: SortOrder
|
|
awsSecretAccessKey?: SortOrder
|
|
awsRegion?: SortOrder
|
|
}
|
|
|
|
export type UserAvgOrderByAggregateInput = {
|
|
id?: SortOrder
|
|
}
|
|
|
|
export type UserMaxOrderByAggregateInput = {
|
|
id?: SortOrder
|
|
username?: SortOrder
|
|
passwordHash?: SortOrder
|
|
isAdmin?: SortOrder
|
|
isFounder?: SortOrder
|
|
createdAt?: SortOrder
|
|
updatedAt?: SortOrder
|
|
giteaUsername?: SortOrder
|
|
giteaPAT?: SortOrder
|
|
giteaInstanceUrl?: SortOrder
|
|
awsAccessKeyId?: SortOrder
|
|
awsSecretAccessKey?: SortOrder
|
|
awsRegion?: SortOrder
|
|
}
|
|
|
|
export type UserMinOrderByAggregateInput = {
|
|
id?: SortOrder
|
|
username?: SortOrder
|
|
passwordHash?: SortOrder
|
|
isAdmin?: SortOrder
|
|
isFounder?: SortOrder
|
|
createdAt?: SortOrder
|
|
updatedAt?: SortOrder
|
|
giteaUsername?: SortOrder
|
|
giteaPAT?: SortOrder
|
|
giteaInstanceUrl?: SortOrder
|
|
awsAccessKeyId?: SortOrder
|
|
awsSecretAccessKey?: SortOrder
|
|
awsRegion?: SortOrder
|
|
}
|
|
|
|
export type UserSumOrderByAggregateInput = {
|
|
id?: SortOrder
|
|
}
|
|
|
|
export type IntWithAggregatesFilter<$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?: NestedIntWithAggregatesFilter<$PrismaModel> | number
|
|
_count?: NestedIntFilter<$PrismaModel>
|
|
_avg?: NestedFloatFilter<$PrismaModel>
|
|
_sum?: NestedIntFilter<$PrismaModel>
|
|
_min?: NestedIntFilter<$PrismaModel>
|
|
_max?: NestedIntFilter<$PrismaModel>
|
|
}
|
|
|
|
export type StringWithAggregatesFilter<$PrismaModel = never> = {
|
|
equals?: string | StringFieldRefInput<$PrismaModel>
|
|
in?: string[] | 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 BoolWithAggregatesFilter<$PrismaModel = never> = {
|
|
equals?: boolean | BooleanFieldRefInput<$PrismaModel>
|
|
not?: NestedBoolWithAggregatesFilter<$PrismaModel> | boolean
|
|
_count?: NestedIntFilter<$PrismaModel>
|
|
_min?: NestedBoolFilter<$PrismaModel>
|
|
_max?: NestedBoolFilter<$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 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 UserScalarRelationFilter = {
|
|
is?: UserWhereInput
|
|
isNot?: UserWhereInput
|
|
}
|
|
|
|
export type SessionCountOrderByAggregateInput = {
|
|
id?: SortOrder
|
|
hash?: SortOrder
|
|
userId?: SortOrder
|
|
createdAt?: SortOrder
|
|
updatedAt?: SortOrder
|
|
}
|
|
|
|
export type SessionAvgOrderByAggregateInput = {
|
|
id?: SortOrder
|
|
userId?: SortOrder
|
|
}
|
|
|
|
export type SessionMaxOrderByAggregateInput = {
|
|
id?: SortOrder
|
|
hash?: SortOrder
|
|
userId?: SortOrder
|
|
createdAt?: SortOrder
|
|
updatedAt?: SortOrder
|
|
}
|
|
|
|
export type SessionMinOrderByAggregateInput = {
|
|
id?: SortOrder
|
|
hash?: SortOrder
|
|
userId?: SortOrder
|
|
createdAt?: SortOrder
|
|
updatedAt?: SortOrder
|
|
}
|
|
|
|
export type SessionSumOrderByAggregateInput = {
|
|
id?: SortOrder
|
|
userId?: SortOrder
|
|
}
|
|
|
|
export type StringNullableListFilter<$PrismaModel = never> = {
|
|
equals?: string[] | ListStringFieldRefInput<$PrismaModel> | null
|
|
has?: string | StringFieldRefInput<$PrismaModel> | null
|
|
hasEvery?: string[] | ListStringFieldRefInput<$PrismaModel>
|
|
hasSome?: string[] | ListStringFieldRefInput<$PrismaModel>
|
|
isEmpty?: boolean
|
|
}
|
|
|
|
export type FloatFilter<$PrismaModel = never> = {
|
|
equals?: number | FloatFieldRefInput<$PrismaModel>
|
|
in?: number[] | ListFloatFieldRefInput<$PrismaModel>
|
|
notIn?: number[] | ListFloatFieldRefInput<$PrismaModel>
|
|
lt?: number | FloatFieldRefInput<$PrismaModel>
|
|
lte?: number | FloatFieldRefInput<$PrismaModel>
|
|
gt?: number | FloatFieldRefInput<$PrismaModel>
|
|
gte?: number | FloatFieldRefInput<$PrismaModel>
|
|
not?: NestedFloatFilter<$PrismaModel> | number
|
|
}
|
|
export type JsonFilter<$PrismaModel = never> =
|
|
| PatchUndefined<
|
|
Either<Required<JsonFilterBase<$PrismaModel>>, Exclude<keyof Required<JsonFilterBase<$PrismaModel>>, 'path'>>,
|
|
Required<JsonFilterBase<$PrismaModel>>
|
|
>
|
|
| OptionalFlat<Omit<Required<JsonFilterBase<$PrismaModel>>, 'path'>>
|
|
|
|
export type JsonFilterBase<$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 PreviewListRelationFilter = {
|
|
every?: PreviewWhereInput
|
|
some?: PreviewWhereInput
|
|
none?: PreviewWhereInput
|
|
}
|
|
|
|
export type PreviewOrderByRelationAggregateInput = {
|
|
_count?: SortOrder
|
|
}
|
|
|
|
export type RepoConfigRepoOwnerRepoNameCompoundUniqueInput = {
|
|
repoOwner: string
|
|
repoName: string
|
|
}
|
|
|
|
export type RepoConfigCountOrderByAggregateInput = {
|
|
id?: SortOrder
|
|
userId?: SortOrder
|
|
repoOwner?: SortOrder
|
|
repoName?: SortOrder
|
|
isEnabled?: SortOrder
|
|
giteaWebhookId?: SortOrder
|
|
denyList?: SortOrder
|
|
instanceType?: SortOrder
|
|
inactivityHours?: SortOrder
|
|
port?: SortOrder
|
|
envVars?: SortOrder
|
|
useDockerCompose?: SortOrder
|
|
composeFilePath?: SortOrder
|
|
aptPackages?: SortOrder
|
|
setupCommands?: SortOrder
|
|
buildCommands?: SortOrder
|
|
postBuildCommands?: SortOrder
|
|
runCommand?: SortOrder
|
|
createdAt?: SortOrder
|
|
updatedAt?: SortOrder
|
|
}
|
|
|
|
export type RepoConfigAvgOrderByAggregateInput = {
|
|
id?: SortOrder
|
|
userId?: SortOrder
|
|
inactivityHours?: SortOrder
|
|
port?: SortOrder
|
|
}
|
|
|
|
export type RepoConfigMaxOrderByAggregateInput = {
|
|
id?: SortOrder
|
|
userId?: SortOrder
|
|
repoOwner?: SortOrder
|
|
repoName?: SortOrder
|
|
isEnabled?: SortOrder
|
|
giteaWebhookId?: SortOrder
|
|
instanceType?: SortOrder
|
|
inactivityHours?: SortOrder
|
|
port?: SortOrder
|
|
useDockerCompose?: SortOrder
|
|
composeFilePath?: SortOrder
|
|
runCommand?: SortOrder
|
|
createdAt?: SortOrder
|
|
updatedAt?: SortOrder
|
|
}
|
|
|
|
export type RepoConfigMinOrderByAggregateInput = {
|
|
id?: SortOrder
|
|
userId?: SortOrder
|
|
repoOwner?: SortOrder
|
|
repoName?: SortOrder
|
|
isEnabled?: SortOrder
|
|
giteaWebhookId?: SortOrder
|
|
instanceType?: SortOrder
|
|
inactivityHours?: SortOrder
|
|
port?: SortOrder
|
|
useDockerCompose?: SortOrder
|
|
composeFilePath?: SortOrder
|
|
runCommand?: SortOrder
|
|
createdAt?: SortOrder
|
|
updatedAt?: SortOrder
|
|
}
|
|
|
|
export type RepoConfigSumOrderByAggregateInput = {
|
|
id?: SortOrder
|
|
userId?: SortOrder
|
|
inactivityHours?: SortOrder
|
|
port?: SortOrder
|
|
}
|
|
|
|
export type FloatWithAggregatesFilter<$PrismaModel = never> = {
|
|
equals?: number | FloatFieldRefInput<$PrismaModel>
|
|
in?: number[] | ListFloatFieldRefInput<$PrismaModel>
|
|
notIn?: number[] | ListFloatFieldRefInput<$PrismaModel>
|
|
lt?: number | FloatFieldRefInput<$PrismaModel>
|
|
lte?: number | FloatFieldRefInput<$PrismaModel>
|
|
gt?: number | FloatFieldRefInput<$PrismaModel>
|
|
gte?: number | FloatFieldRefInput<$PrismaModel>
|
|
not?: NestedFloatWithAggregatesFilter<$PrismaModel> | number
|
|
_count?: NestedIntFilter<$PrismaModel>
|
|
_avg?: NestedFloatFilter<$PrismaModel>
|
|
_sum?: NestedFloatFilter<$PrismaModel>
|
|
_min?: NestedFloatFilter<$PrismaModel>
|
|
_max?: NestedFloatFilter<$PrismaModel>
|
|
}
|
|
export type JsonWithAggregatesFilter<$PrismaModel = never> =
|
|
| PatchUndefined<
|
|
Either<Required<JsonWithAggregatesFilterBase<$PrismaModel>>, Exclude<keyof Required<JsonWithAggregatesFilterBase<$PrismaModel>>, 'path'>>,
|
|
Required<JsonWithAggregatesFilterBase<$PrismaModel>>
|
|
>
|
|
| OptionalFlat<Omit<Required<JsonWithAggregatesFilterBase<$PrismaModel>>, 'path'>>
|
|
|
|
export type JsonWithAggregatesFilterBase<$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?: NestedIntFilter<$PrismaModel>
|
|
_min?: NestedJsonFilter<$PrismaModel>
|
|
_max?: NestedJsonFilter<$PrismaModel>
|
|
}
|
|
|
|
export type EnumPreviewStatusFilter<$PrismaModel = never> = {
|
|
equals?: $Enums.PreviewStatus | EnumPreviewStatusFieldRefInput<$PrismaModel>
|
|
in?: $Enums.PreviewStatus[] | ListEnumPreviewStatusFieldRefInput<$PrismaModel>
|
|
notIn?: $Enums.PreviewStatus[] | ListEnumPreviewStatusFieldRefInput<$PrismaModel>
|
|
not?: NestedEnumPreviewStatusFilter<$PrismaModel> | $Enums.PreviewStatus
|
|
}
|
|
|
|
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 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 RepoConfigScalarRelationFilter = {
|
|
is?: RepoConfigWhereInput
|
|
isNot?: RepoConfigWhereInput
|
|
}
|
|
|
|
export type JobListRelationFilter = {
|
|
every?: JobWhereInput
|
|
some?: JobWhereInput
|
|
none?: JobWhereInput
|
|
}
|
|
|
|
export type JobOrderByRelationAggregateInput = {
|
|
_count?: SortOrder
|
|
}
|
|
|
|
export type PreviewCountOrderByAggregateInput = {
|
|
id?: SortOrder
|
|
repoConfigId?: SortOrder
|
|
prNumber?: SortOrder
|
|
prTitle?: SortOrder
|
|
commitSha?: SortOrder
|
|
instanceId?: SortOrder
|
|
instanceIp?: SortOrder
|
|
port?: SortOrder
|
|
status?: SortOrder
|
|
logs?: SortOrder
|
|
pid?: SortOrder
|
|
sshPrivateKey?: SortOrder
|
|
sshKeyName?: SortOrder
|
|
giteaCommentId?: SortOrder
|
|
lastActivityAt?: SortOrder
|
|
createdAt?: SortOrder
|
|
updatedAt?: SortOrder
|
|
stoppedAt?: SortOrder
|
|
}
|
|
|
|
export type PreviewAvgOrderByAggregateInput = {
|
|
id?: SortOrder
|
|
repoConfigId?: SortOrder
|
|
prNumber?: SortOrder
|
|
port?: SortOrder
|
|
pid?: SortOrder
|
|
giteaCommentId?: SortOrder
|
|
}
|
|
|
|
export type PreviewMaxOrderByAggregateInput = {
|
|
id?: SortOrder
|
|
repoConfigId?: SortOrder
|
|
prNumber?: SortOrder
|
|
prTitle?: SortOrder
|
|
commitSha?: SortOrder
|
|
instanceId?: SortOrder
|
|
instanceIp?: SortOrder
|
|
port?: SortOrder
|
|
status?: SortOrder
|
|
logs?: SortOrder
|
|
pid?: SortOrder
|
|
sshPrivateKey?: SortOrder
|
|
sshKeyName?: SortOrder
|
|
giteaCommentId?: SortOrder
|
|
lastActivityAt?: SortOrder
|
|
createdAt?: SortOrder
|
|
updatedAt?: SortOrder
|
|
stoppedAt?: SortOrder
|
|
}
|
|
|
|
export type PreviewMinOrderByAggregateInput = {
|
|
id?: SortOrder
|
|
repoConfigId?: SortOrder
|
|
prNumber?: SortOrder
|
|
prTitle?: SortOrder
|
|
commitSha?: SortOrder
|
|
instanceId?: SortOrder
|
|
instanceIp?: SortOrder
|
|
port?: SortOrder
|
|
status?: SortOrder
|
|
logs?: SortOrder
|
|
pid?: SortOrder
|
|
sshPrivateKey?: SortOrder
|
|
sshKeyName?: SortOrder
|
|
giteaCommentId?: SortOrder
|
|
lastActivityAt?: SortOrder
|
|
createdAt?: SortOrder
|
|
updatedAt?: SortOrder
|
|
stoppedAt?: SortOrder
|
|
}
|
|
|
|
export type PreviewSumOrderByAggregateInput = {
|
|
id?: SortOrder
|
|
repoConfigId?: SortOrder
|
|
prNumber?: SortOrder
|
|
port?: SortOrder
|
|
pid?: SortOrder
|
|
giteaCommentId?: SortOrder
|
|
}
|
|
|
|
export type EnumPreviewStatusWithAggregatesFilter<$PrismaModel = never> = {
|
|
equals?: $Enums.PreviewStatus | EnumPreviewStatusFieldRefInput<$PrismaModel>
|
|
in?: $Enums.PreviewStatus[] | ListEnumPreviewStatusFieldRefInput<$PrismaModel>
|
|
notIn?: $Enums.PreviewStatus[] | ListEnumPreviewStatusFieldRefInput<$PrismaModel>
|
|
not?: NestedEnumPreviewStatusWithAggregatesFilter<$PrismaModel> | $Enums.PreviewStatus
|
|
_count?: NestedIntFilter<$PrismaModel>
|
|
_min?: NestedEnumPreviewStatusFilter<$PrismaModel>
|
|
_max?: NestedEnumPreviewStatusFilter<$PrismaModel>
|
|
}
|
|
|
|
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 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 EnumJobTypeFilter<$PrismaModel = never> = {
|
|
equals?: $Enums.JobType | EnumJobTypeFieldRefInput<$PrismaModel>
|
|
in?: $Enums.JobType[] | ListEnumJobTypeFieldRefInput<$PrismaModel>
|
|
notIn?: $Enums.JobType[] | ListEnumJobTypeFieldRefInput<$PrismaModel>
|
|
not?: NestedEnumJobTypeFilter<$PrismaModel> | $Enums.JobType
|
|
}
|
|
|
|
export type EnumJobStatusFilter<$PrismaModel = never> = {
|
|
equals?: $Enums.JobStatus | EnumJobStatusFieldRefInput<$PrismaModel>
|
|
in?: $Enums.JobStatus[] | ListEnumJobStatusFieldRefInput<$PrismaModel>
|
|
notIn?: $Enums.JobStatus[] | ListEnumJobStatusFieldRefInput<$PrismaModel>
|
|
not?: NestedEnumJobStatusFilter<$PrismaModel> | $Enums.JobStatus
|
|
}
|
|
|
|
export type PreviewNullableScalarRelationFilter = {
|
|
is?: PreviewWhereInput | null
|
|
isNot?: PreviewWhereInput | null
|
|
}
|
|
|
|
export type JobCountOrderByAggregateInput = {
|
|
id?: SortOrder
|
|
previewId?: SortOrder
|
|
type?: SortOrder
|
|
status?: SortOrder
|
|
payload?: SortOrder
|
|
error?: SortOrder
|
|
createdAt?: SortOrder
|
|
startedAt?: SortOrder
|
|
finishedAt?: SortOrder
|
|
}
|
|
|
|
export type JobAvgOrderByAggregateInput = {
|
|
id?: SortOrder
|
|
previewId?: SortOrder
|
|
}
|
|
|
|
export type JobMaxOrderByAggregateInput = {
|
|
id?: SortOrder
|
|
previewId?: SortOrder
|
|
type?: SortOrder
|
|
status?: SortOrder
|
|
error?: SortOrder
|
|
createdAt?: SortOrder
|
|
startedAt?: SortOrder
|
|
finishedAt?: SortOrder
|
|
}
|
|
|
|
export type JobMinOrderByAggregateInput = {
|
|
id?: SortOrder
|
|
previewId?: SortOrder
|
|
type?: SortOrder
|
|
status?: SortOrder
|
|
error?: SortOrder
|
|
createdAt?: SortOrder
|
|
startedAt?: SortOrder
|
|
finishedAt?: SortOrder
|
|
}
|
|
|
|
export type JobSumOrderByAggregateInput = {
|
|
id?: SortOrder
|
|
previewId?: SortOrder
|
|
}
|
|
|
|
export type EnumJobTypeWithAggregatesFilter<$PrismaModel = never> = {
|
|
equals?: $Enums.JobType | EnumJobTypeFieldRefInput<$PrismaModel>
|
|
in?: $Enums.JobType[] | ListEnumJobTypeFieldRefInput<$PrismaModel>
|
|
notIn?: $Enums.JobType[] | ListEnumJobTypeFieldRefInput<$PrismaModel>
|
|
not?: NestedEnumJobTypeWithAggregatesFilter<$PrismaModel> | $Enums.JobType
|
|
_count?: NestedIntFilter<$PrismaModel>
|
|
_min?: NestedEnumJobTypeFilter<$PrismaModel>
|
|
_max?: NestedEnumJobTypeFilter<$PrismaModel>
|
|
}
|
|
|
|
export type EnumJobStatusWithAggregatesFilter<$PrismaModel = never> = {
|
|
equals?: $Enums.JobStatus | EnumJobStatusFieldRefInput<$PrismaModel>
|
|
in?: $Enums.JobStatus[] | ListEnumJobStatusFieldRefInput<$PrismaModel>
|
|
notIn?: $Enums.JobStatus[] | ListEnumJobStatusFieldRefInput<$PrismaModel>
|
|
not?: NestedEnumJobStatusWithAggregatesFilter<$PrismaModel> | $Enums.JobStatus
|
|
_count?: NestedIntFilter<$PrismaModel>
|
|
_min?: NestedEnumJobStatusFilter<$PrismaModel>
|
|
_max?: NestedEnumJobStatusFilter<$PrismaModel>
|
|
}
|
|
|
|
export type WebhookTokenCountOrderByAggregateInput = {
|
|
id?: SortOrder
|
|
userId?: SortOrder
|
|
token?: SortOrder
|
|
createdAt?: SortOrder
|
|
}
|
|
|
|
export type WebhookTokenAvgOrderByAggregateInput = {
|
|
id?: SortOrder
|
|
userId?: SortOrder
|
|
}
|
|
|
|
export type WebhookTokenMaxOrderByAggregateInput = {
|
|
id?: SortOrder
|
|
userId?: SortOrder
|
|
token?: SortOrder
|
|
createdAt?: SortOrder
|
|
}
|
|
|
|
export type WebhookTokenMinOrderByAggregateInput = {
|
|
id?: SortOrder
|
|
userId?: SortOrder
|
|
token?: SortOrder
|
|
createdAt?: SortOrder
|
|
}
|
|
|
|
export type WebhookTokenSumOrderByAggregateInput = {
|
|
id?: SortOrder
|
|
userId?: SortOrder
|
|
}
|
|
|
|
export type NoConfigCommentUserIdRepoOwnerRepoNamePrNumberCompoundUniqueInput = {
|
|
userId: number
|
|
repoOwner: string
|
|
repoName: string
|
|
prNumber: number
|
|
}
|
|
|
|
export type NoConfigCommentCountOrderByAggregateInput = {
|
|
id?: SortOrder
|
|
userId?: SortOrder
|
|
repoOwner?: SortOrder
|
|
repoName?: SortOrder
|
|
prNumber?: SortOrder
|
|
createdAt?: SortOrder
|
|
}
|
|
|
|
export type NoConfigCommentAvgOrderByAggregateInput = {
|
|
id?: SortOrder
|
|
userId?: SortOrder
|
|
prNumber?: SortOrder
|
|
}
|
|
|
|
export type NoConfigCommentMaxOrderByAggregateInput = {
|
|
id?: SortOrder
|
|
userId?: SortOrder
|
|
repoOwner?: SortOrder
|
|
repoName?: SortOrder
|
|
prNumber?: SortOrder
|
|
createdAt?: SortOrder
|
|
}
|
|
|
|
export type NoConfigCommentMinOrderByAggregateInput = {
|
|
id?: SortOrder
|
|
userId?: SortOrder
|
|
repoOwner?: SortOrder
|
|
repoName?: SortOrder
|
|
prNumber?: SortOrder
|
|
createdAt?: SortOrder
|
|
}
|
|
|
|
export type NoConfigCommentSumOrderByAggregateInput = {
|
|
id?: SortOrder
|
|
userId?: SortOrder
|
|
prNumber?: SortOrder
|
|
}
|
|
|
|
export type AdminSettingsCountOrderByAggregateInput = {
|
|
id?: SortOrder
|
|
defaultInstanceType?: SortOrder
|
|
maxConcurrentInstancesPerUser?: SortOrder
|
|
logSizeLimitBytes?: SortOrder
|
|
previewRetentionDays?: SortOrder
|
|
webhookRateLimitPerMinute?: SortOrder
|
|
contactEmail?: SortOrder
|
|
}
|
|
|
|
export type AdminSettingsAvgOrderByAggregateInput = {
|
|
id?: SortOrder
|
|
maxConcurrentInstancesPerUser?: SortOrder
|
|
logSizeLimitBytes?: SortOrder
|
|
previewRetentionDays?: SortOrder
|
|
webhookRateLimitPerMinute?: SortOrder
|
|
}
|
|
|
|
export type AdminSettingsMaxOrderByAggregateInput = {
|
|
id?: SortOrder
|
|
defaultInstanceType?: SortOrder
|
|
maxConcurrentInstancesPerUser?: SortOrder
|
|
logSizeLimitBytes?: SortOrder
|
|
previewRetentionDays?: SortOrder
|
|
webhookRateLimitPerMinute?: SortOrder
|
|
contactEmail?: SortOrder
|
|
}
|
|
|
|
export type AdminSettingsMinOrderByAggregateInput = {
|
|
id?: SortOrder
|
|
defaultInstanceType?: SortOrder
|
|
maxConcurrentInstancesPerUser?: SortOrder
|
|
logSizeLimitBytes?: SortOrder
|
|
previewRetentionDays?: SortOrder
|
|
webhookRateLimitPerMinute?: SortOrder
|
|
contactEmail?: SortOrder
|
|
}
|
|
|
|
export type AdminSettingsSumOrderByAggregateInput = {
|
|
id?: SortOrder
|
|
maxConcurrentInstancesPerUser?: SortOrder
|
|
logSizeLimitBytes?: SortOrder
|
|
previewRetentionDays?: SortOrder
|
|
webhookRateLimitPerMinute?: SortOrder
|
|
}
|
|
|
|
export type SessionCreateNestedManyWithoutUserInput = {
|
|
create?: XOR<SessionCreateWithoutUserInput, SessionUncheckedCreateWithoutUserInput> | SessionCreateWithoutUserInput[] | SessionUncheckedCreateWithoutUserInput[]
|
|
connectOrCreate?: SessionCreateOrConnectWithoutUserInput | SessionCreateOrConnectWithoutUserInput[]
|
|
createMany?: SessionCreateManyUserInputEnvelope
|
|
connect?: SessionWhereUniqueInput | SessionWhereUniqueInput[]
|
|
}
|
|
|
|
export type RepoConfigCreateNestedManyWithoutUserInput = {
|
|
create?: XOR<RepoConfigCreateWithoutUserInput, RepoConfigUncheckedCreateWithoutUserInput> | RepoConfigCreateWithoutUserInput[] | RepoConfigUncheckedCreateWithoutUserInput[]
|
|
connectOrCreate?: RepoConfigCreateOrConnectWithoutUserInput | RepoConfigCreateOrConnectWithoutUserInput[]
|
|
createMany?: RepoConfigCreateManyUserInputEnvelope
|
|
connect?: RepoConfigWhereUniqueInput | RepoConfigWhereUniqueInput[]
|
|
}
|
|
|
|
export type WebhookTokenCreateNestedOneWithoutUserInput = {
|
|
create?: XOR<WebhookTokenCreateWithoutUserInput, WebhookTokenUncheckedCreateWithoutUserInput>
|
|
connectOrCreate?: WebhookTokenCreateOrConnectWithoutUserInput
|
|
connect?: WebhookTokenWhereUniqueInput
|
|
}
|
|
|
|
export type NoConfigCommentCreateNestedManyWithoutUserInput = {
|
|
create?: XOR<NoConfigCommentCreateWithoutUserInput, NoConfigCommentUncheckedCreateWithoutUserInput> | NoConfigCommentCreateWithoutUserInput[] | NoConfigCommentUncheckedCreateWithoutUserInput[]
|
|
connectOrCreate?: NoConfigCommentCreateOrConnectWithoutUserInput | NoConfigCommentCreateOrConnectWithoutUserInput[]
|
|
createMany?: NoConfigCommentCreateManyUserInputEnvelope
|
|
connect?: NoConfigCommentWhereUniqueInput | NoConfigCommentWhereUniqueInput[]
|
|
}
|
|
|
|
export type SessionUncheckedCreateNestedManyWithoutUserInput = {
|
|
create?: XOR<SessionCreateWithoutUserInput, SessionUncheckedCreateWithoutUserInput> | SessionCreateWithoutUserInput[] | SessionUncheckedCreateWithoutUserInput[]
|
|
connectOrCreate?: SessionCreateOrConnectWithoutUserInput | SessionCreateOrConnectWithoutUserInput[]
|
|
createMany?: SessionCreateManyUserInputEnvelope
|
|
connect?: SessionWhereUniqueInput | SessionWhereUniqueInput[]
|
|
}
|
|
|
|
export type RepoConfigUncheckedCreateNestedManyWithoutUserInput = {
|
|
create?: XOR<RepoConfigCreateWithoutUserInput, RepoConfigUncheckedCreateWithoutUserInput> | RepoConfigCreateWithoutUserInput[] | RepoConfigUncheckedCreateWithoutUserInput[]
|
|
connectOrCreate?: RepoConfigCreateOrConnectWithoutUserInput | RepoConfigCreateOrConnectWithoutUserInput[]
|
|
createMany?: RepoConfigCreateManyUserInputEnvelope
|
|
connect?: RepoConfigWhereUniqueInput | RepoConfigWhereUniqueInput[]
|
|
}
|
|
|
|
export type WebhookTokenUncheckedCreateNestedOneWithoutUserInput = {
|
|
create?: XOR<WebhookTokenCreateWithoutUserInput, WebhookTokenUncheckedCreateWithoutUserInput>
|
|
connectOrCreate?: WebhookTokenCreateOrConnectWithoutUserInput
|
|
connect?: WebhookTokenWhereUniqueInput
|
|
}
|
|
|
|
export type NoConfigCommentUncheckedCreateNestedManyWithoutUserInput = {
|
|
create?: XOR<NoConfigCommentCreateWithoutUserInput, NoConfigCommentUncheckedCreateWithoutUserInput> | NoConfigCommentCreateWithoutUserInput[] | NoConfigCommentUncheckedCreateWithoutUserInput[]
|
|
connectOrCreate?: NoConfigCommentCreateOrConnectWithoutUserInput | NoConfigCommentCreateOrConnectWithoutUserInput[]
|
|
createMany?: NoConfigCommentCreateManyUserInputEnvelope
|
|
connect?: NoConfigCommentWhereUniqueInput | NoConfigCommentWhereUniqueInput[]
|
|
}
|
|
|
|
export type StringFieldUpdateOperationsInput = {
|
|
set?: string
|
|
}
|
|
|
|
export type BoolFieldUpdateOperationsInput = {
|
|
set?: boolean
|
|
}
|
|
|
|
export type DateTimeFieldUpdateOperationsInput = {
|
|
set?: Date | string
|
|
}
|
|
|
|
export type NullableStringFieldUpdateOperationsInput = {
|
|
set?: string | null
|
|
}
|
|
|
|
export type SessionUpdateManyWithoutUserNestedInput = {
|
|
create?: XOR<SessionCreateWithoutUserInput, SessionUncheckedCreateWithoutUserInput> | SessionCreateWithoutUserInput[] | SessionUncheckedCreateWithoutUserInput[]
|
|
connectOrCreate?: SessionCreateOrConnectWithoutUserInput | SessionCreateOrConnectWithoutUserInput[]
|
|
upsert?: SessionUpsertWithWhereUniqueWithoutUserInput | SessionUpsertWithWhereUniqueWithoutUserInput[]
|
|
createMany?: SessionCreateManyUserInputEnvelope
|
|
set?: SessionWhereUniqueInput | SessionWhereUniqueInput[]
|
|
disconnect?: SessionWhereUniqueInput | SessionWhereUniqueInput[]
|
|
delete?: SessionWhereUniqueInput | SessionWhereUniqueInput[]
|
|
connect?: SessionWhereUniqueInput | SessionWhereUniqueInput[]
|
|
update?: SessionUpdateWithWhereUniqueWithoutUserInput | SessionUpdateWithWhereUniqueWithoutUserInput[]
|
|
updateMany?: SessionUpdateManyWithWhereWithoutUserInput | SessionUpdateManyWithWhereWithoutUserInput[]
|
|
deleteMany?: SessionScalarWhereInput | SessionScalarWhereInput[]
|
|
}
|
|
|
|
export type RepoConfigUpdateManyWithoutUserNestedInput = {
|
|
create?: XOR<RepoConfigCreateWithoutUserInput, RepoConfigUncheckedCreateWithoutUserInput> | RepoConfigCreateWithoutUserInput[] | RepoConfigUncheckedCreateWithoutUserInput[]
|
|
connectOrCreate?: RepoConfigCreateOrConnectWithoutUserInput | RepoConfigCreateOrConnectWithoutUserInput[]
|
|
upsert?: RepoConfigUpsertWithWhereUniqueWithoutUserInput | RepoConfigUpsertWithWhereUniqueWithoutUserInput[]
|
|
createMany?: RepoConfigCreateManyUserInputEnvelope
|
|
set?: RepoConfigWhereUniqueInput | RepoConfigWhereUniqueInput[]
|
|
disconnect?: RepoConfigWhereUniqueInput | RepoConfigWhereUniqueInput[]
|
|
delete?: RepoConfigWhereUniqueInput | RepoConfigWhereUniqueInput[]
|
|
connect?: RepoConfigWhereUniqueInput | RepoConfigWhereUniqueInput[]
|
|
update?: RepoConfigUpdateWithWhereUniqueWithoutUserInput | RepoConfigUpdateWithWhereUniqueWithoutUserInput[]
|
|
updateMany?: RepoConfigUpdateManyWithWhereWithoutUserInput | RepoConfigUpdateManyWithWhereWithoutUserInput[]
|
|
deleteMany?: RepoConfigScalarWhereInput | RepoConfigScalarWhereInput[]
|
|
}
|
|
|
|
export type WebhookTokenUpdateOneWithoutUserNestedInput = {
|
|
create?: XOR<WebhookTokenCreateWithoutUserInput, WebhookTokenUncheckedCreateWithoutUserInput>
|
|
connectOrCreate?: WebhookTokenCreateOrConnectWithoutUserInput
|
|
upsert?: WebhookTokenUpsertWithoutUserInput
|
|
disconnect?: WebhookTokenWhereInput | boolean
|
|
delete?: WebhookTokenWhereInput | boolean
|
|
connect?: WebhookTokenWhereUniqueInput
|
|
update?: XOR<XOR<WebhookTokenUpdateToOneWithWhereWithoutUserInput, WebhookTokenUpdateWithoutUserInput>, WebhookTokenUncheckedUpdateWithoutUserInput>
|
|
}
|
|
|
|
export type NoConfigCommentUpdateManyWithoutUserNestedInput = {
|
|
create?: XOR<NoConfigCommentCreateWithoutUserInput, NoConfigCommentUncheckedCreateWithoutUserInput> | NoConfigCommentCreateWithoutUserInput[] | NoConfigCommentUncheckedCreateWithoutUserInput[]
|
|
connectOrCreate?: NoConfigCommentCreateOrConnectWithoutUserInput | NoConfigCommentCreateOrConnectWithoutUserInput[]
|
|
upsert?: NoConfigCommentUpsertWithWhereUniqueWithoutUserInput | NoConfigCommentUpsertWithWhereUniqueWithoutUserInput[]
|
|
createMany?: NoConfigCommentCreateManyUserInputEnvelope
|
|
set?: NoConfigCommentWhereUniqueInput | NoConfigCommentWhereUniqueInput[]
|
|
disconnect?: NoConfigCommentWhereUniqueInput | NoConfigCommentWhereUniqueInput[]
|
|
delete?: NoConfigCommentWhereUniqueInput | NoConfigCommentWhereUniqueInput[]
|
|
connect?: NoConfigCommentWhereUniqueInput | NoConfigCommentWhereUniqueInput[]
|
|
update?: NoConfigCommentUpdateWithWhereUniqueWithoutUserInput | NoConfigCommentUpdateWithWhereUniqueWithoutUserInput[]
|
|
updateMany?: NoConfigCommentUpdateManyWithWhereWithoutUserInput | NoConfigCommentUpdateManyWithWhereWithoutUserInput[]
|
|
deleteMany?: NoConfigCommentScalarWhereInput | NoConfigCommentScalarWhereInput[]
|
|
}
|
|
|
|
export type IntFieldUpdateOperationsInput = {
|
|
set?: number
|
|
increment?: number
|
|
decrement?: number
|
|
multiply?: number
|
|
divide?: number
|
|
}
|
|
|
|
export type SessionUncheckedUpdateManyWithoutUserNestedInput = {
|
|
create?: XOR<SessionCreateWithoutUserInput, SessionUncheckedCreateWithoutUserInput> | SessionCreateWithoutUserInput[] | SessionUncheckedCreateWithoutUserInput[]
|
|
connectOrCreate?: SessionCreateOrConnectWithoutUserInput | SessionCreateOrConnectWithoutUserInput[]
|
|
upsert?: SessionUpsertWithWhereUniqueWithoutUserInput | SessionUpsertWithWhereUniqueWithoutUserInput[]
|
|
createMany?: SessionCreateManyUserInputEnvelope
|
|
set?: SessionWhereUniqueInput | SessionWhereUniqueInput[]
|
|
disconnect?: SessionWhereUniqueInput | SessionWhereUniqueInput[]
|
|
delete?: SessionWhereUniqueInput | SessionWhereUniqueInput[]
|
|
connect?: SessionWhereUniqueInput | SessionWhereUniqueInput[]
|
|
update?: SessionUpdateWithWhereUniqueWithoutUserInput | SessionUpdateWithWhereUniqueWithoutUserInput[]
|
|
updateMany?: SessionUpdateManyWithWhereWithoutUserInput | SessionUpdateManyWithWhereWithoutUserInput[]
|
|
deleteMany?: SessionScalarWhereInput | SessionScalarWhereInput[]
|
|
}
|
|
|
|
export type RepoConfigUncheckedUpdateManyWithoutUserNestedInput = {
|
|
create?: XOR<RepoConfigCreateWithoutUserInput, RepoConfigUncheckedCreateWithoutUserInput> | RepoConfigCreateWithoutUserInput[] | RepoConfigUncheckedCreateWithoutUserInput[]
|
|
connectOrCreate?: RepoConfigCreateOrConnectWithoutUserInput | RepoConfigCreateOrConnectWithoutUserInput[]
|
|
upsert?: RepoConfigUpsertWithWhereUniqueWithoutUserInput | RepoConfigUpsertWithWhereUniqueWithoutUserInput[]
|
|
createMany?: RepoConfigCreateManyUserInputEnvelope
|
|
set?: RepoConfigWhereUniqueInput | RepoConfigWhereUniqueInput[]
|
|
disconnect?: RepoConfigWhereUniqueInput | RepoConfigWhereUniqueInput[]
|
|
delete?: RepoConfigWhereUniqueInput | RepoConfigWhereUniqueInput[]
|
|
connect?: RepoConfigWhereUniqueInput | RepoConfigWhereUniqueInput[]
|
|
update?: RepoConfigUpdateWithWhereUniqueWithoutUserInput | RepoConfigUpdateWithWhereUniqueWithoutUserInput[]
|
|
updateMany?: RepoConfigUpdateManyWithWhereWithoutUserInput | RepoConfigUpdateManyWithWhereWithoutUserInput[]
|
|
deleteMany?: RepoConfigScalarWhereInput | RepoConfigScalarWhereInput[]
|
|
}
|
|
|
|
export type WebhookTokenUncheckedUpdateOneWithoutUserNestedInput = {
|
|
create?: XOR<WebhookTokenCreateWithoutUserInput, WebhookTokenUncheckedCreateWithoutUserInput>
|
|
connectOrCreate?: WebhookTokenCreateOrConnectWithoutUserInput
|
|
upsert?: WebhookTokenUpsertWithoutUserInput
|
|
disconnect?: WebhookTokenWhereInput | boolean
|
|
delete?: WebhookTokenWhereInput | boolean
|
|
connect?: WebhookTokenWhereUniqueInput
|
|
update?: XOR<XOR<WebhookTokenUpdateToOneWithWhereWithoutUserInput, WebhookTokenUpdateWithoutUserInput>, WebhookTokenUncheckedUpdateWithoutUserInput>
|
|
}
|
|
|
|
export type NoConfigCommentUncheckedUpdateManyWithoutUserNestedInput = {
|
|
create?: XOR<NoConfigCommentCreateWithoutUserInput, NoConfigCommentUncheckedCreateWithoutUserInput> | NoConfigCommentCreateWithoutUserInput[] | NoConfigCommentUncheckedCreateWithoutUserInput[]
|
|
connectOrCreate?: NoConfigCommentCreateOrConnectWithoutUserInput | NoConfigCommentCreateOrConnectWithoutUserInput[]
|
|
upsert?: NoConfigCommentUpsertWithWhereUniqueWithoutUserInput | NoConfigCommentUpsertWithWhereUniqueWithoutUserInput[]
|
|
createMany?: NoConfigCommentCreateManyUserInputEnvelope
|
|
set?: NoConfigCommentWhereUniqueInput | NoConfigCommentWhereUniqueInput[]
|
|
disconnect?: NoConfigCommentWhereUniqueInput | NoConfigCommentWhereUniqueInput[]
|
|
delete?: NoConfigCommentWhereUniqueInput | NoConfigCommentWhereUniqueInput[]
|
|
connect?: NoConfigCommentWhereUniqueInput | NoConfigCommentWhereUniqueInput[]
|
|
update?: NoConfigCommentUpdateWithWhereUniqueWithoutUserInput | NoConfigCommentUpdateWithWhereUniqueWithoutUserInput[]
|
|
updateMany?: NoConfigCommentUpdateManyWithWhereWithoutUserInput | NoConfigCommentUpdateManyWithWhereWithoutUserInput[]
|
|
deleteMany?: NoConfigCommentScalarWhereInput | NoConfigCommentScalarWhereInput[]
|
|
}
|
|
|
|
export type UserCreateNestedOneWithoutSessionsInput = {
|
|
create?: XOR<UserCreateWithoutSessionsInput, UserUncheckedCreateWithoutSessionsInput>
|
|
connectOrCreate?: UserCreateOrConnectWithoutSessionsInput
|
|
connect?: UserWhereUniqueInput
|
|
}
|
|
|
|
export type UserUpdateOneRequiredWithoutSessionsNestedInput = {
|
|
create?: XOR<UserCreateWithoutSessionsInput, UserUncheckedCreateWithoutSessionsInput>
|
|
connectOrCreate?: UserCreateOrConnectWithoutSessionsInput
|
|
upsert?: UserUpsertWithoutSessionsInput
|
|
connect?: UserWhereUniqueInput
|
|
update?: XOR<XOR<UserUpdateToOneWithWhereWithoutSessionsInput, UserUpdateWithoutSessionsInput>, UserUncheckedUpdateWithoutSessionsInput>
|
|
}
|
|
|
|
export type RepoConfigCreatedenyListInput = {
|
|
set: string[]
|
|
}
|
|
|
|
export type RepoConfigCreateaptPackagesInput = {
|
|
set: string[]
|
|
}
|
|
|
|
export type RepoConfigCreatesetupCommandsInput = {
|
|
set: string[]
|
|
}
|
|
|
|
export type RepoConfigCreatebuildCommandsInput = {
|
|
set: string[]
|
|
}
|
|
|
|
export type RepoConfigCreatepostBuildCommandsInput = {
|
|
set: string[]
|
|
}
|
|
|
|
export type UserCreateNestedOneWithoutRepoConfigsInput = {
|
|
create?: XOR<UserCreateWithoutRepoConfigsInput, UserUncheckedCreateWithoutRepoConfigsInput>
|
|
connectOrCreate?: UserCreateOrConnectWithoutRepoConfigsInput
|
|
connect?: UserWhereUniqueInput
|
|
}
|
|
|
|
export type PreviewCreateNestedManyWithoutRepoConfigInput = {
|
|
create?: XOR<PreviewCreateWithoutRepoConfigInput, PreviewUncheckedCreateWithoutRepoConfigInput> | PreviewCreateWithoutRepoConfigInput[] | PreviewUncheckedCreateWithoutRepoConfigInput[]
|
|
connectOrCreate?: PreviewCreateOrConnectWithoutRepoConfigInput | PreviewCreateOrConnectWithoutRepoConfigInput[]
|
|
createMany?: PreviewCreateManyRepoConfigInputEnvelope
|
|
connect?: PreviewWhereUniqueInput | PreviewWhereUniqueInput[]
|
|
}
|
|
|
|
export type PreviewUncheckedCreateNestedManyWithoutRepoConfigInput = {
|
|
create?: XOR<PreviewCreateWithoutRepoConfigInput, PreviewUncheckedCreateWithoutRepoConfigInput> | PreviewCreateWithoutRepoConfigInput[] | PreviewUncheckedCreateWithoutRepoConfigInput[]
|
|
connectOrCreate?: PreviewCreateOrConnectWithoutRepoConfigInput | PreviewCreateOrConnectWithoutRepoConfigInput[]
|
|
createMany?: PreviewCreateManyRepoConfigInputEnvelope
|
|
connect?: PreviewWhereUniqueInput | PreviewWhereUniqueInput[]
|
|
}
|
|
|
|
export type RepoConfigUpdatedenyListInput = {
|
|
set?: string[]
|
|
push?: string | string[]
|
|
}
|
|
|
|
export type FloatFieldUpdateOperationsInput = {
|
|
set?: number
|
|
increment?: number
|
|
decrement?: number
|
|
multiply?: number
|
|
divide?: number
|
|
}
|
|
|
|
export type RepoConfigUpdateaptPackagesInput = {
|
|
set?: string[]
|
|
push?: string | string[]
|
|
}
|
|
|
|
export type RepoConfigUpdatesetupCommandsInput = {
|
|
set?: string[]
|
|
push?: string | string[]
|
|
}
|
|
|
|
export type RepoConfigUpdatebuildCommandsInput = {
|
|
set?: string[]
|
|
push?: string | string[]
|
|
}
|
|
|
|
export type RepoConfigUpdatepostBuildCommandsInput = {
|
|
set?: string[]
|
|
push?: string | string[]
|
|
}
|
|
|
|
export type UserUpdateOneRequiredWithoutRepoConfigsNestedInput = {
|
|
create?: XOR<UserCreateWithoutRepoConfigsInput, UserUncheckedCreateWithoutRepoConfigsInput>
|
|
connectOrCreate?: UserCreateOrConnectWithoutRepoConfigsInput
|
|
upsert?: UserUpsertWithoutRepoConfigsInput
|
|
connect?: UserWhereUniqueInput
|
|
update?: XOR<XOR<UserUpdateToOneWithWhereWithoutRepoConfigsInput, UserUpdateWithoutRepoConfigsInput>, UserUncheckedUpdateWithoutRepoConfigsInput>
|
|
}
|
|
|
|
export type PreviewUpdateManyWithoutRepoConfigNestedInput = {
|
|
create?: XOR<PreviewCreateWithoutRepoConfigInput, PreviewUncheckedCreateWithoutRepoConfigInput> | PreviewCreateWithoutRepoConfigInput[] | PreviewUncheckedCreateWithoutRepoConfigInput[]
|
|
connectOrCreate?: PreviewCreateOrConnectWithoutRepoConfigInput | PreviewCreateOrConnectWithoutRepoConfigInput[]
|
|
upsert?: PreviewUpsertWithWhereUniqueWithoutRepoConfigInput | PreviewUpsertWithWhereUniqueWithoutRepoConfigInput[]
|
|
createMany?: PreviewCreateManyRepoConfigInputEnvelope
|
|
set?: PreviewWhereUniqueInput | PreviewWhereUniqueInput[]
|
|
disconnect?: PreviewWhereUniqueInput | PreviewWhereUniqueInput[]
|
|
delete?: PreviewWhereUniqueInput | PreviewWhereUniqueInput[]
|
|
connect?: PreviewWhereUniqueInput | PreviewWhereUniqueInput[]
|
|
update?: PreviewUpdateWithWhereUniqueWithoutRepoConfigInput | PreviewUpdateWithWhereUniqueWithoutRepoConfigInput[]
|
|
updateMany?: PreviewUpdateManyWithWhereWithoutRepoConfigInput | PreviewUpdateManyWithWhereWithoutRepoConfigInput[]
|
|
deleteMany?: PreviewScalarWhereInput | PreviewScalarWhereInput[]
|
|
}
|
|
|
|
export type PreviewUncheckedUpdateManyWithoutRepoConfigNestedInput = {
|
|
create?: XOR<PreviewCreateWithoutRepoConfigInput, PreviewUncheckedCreateWithoutRepoConfigInput> | PreviewCreateWithoutRepoConfigInput[] | PreviewUncheckedCreateWithoutRepoConfigInput[]
|
|
connectOrCreate?: PreviewCreateOrConnectWithoutRepoConfigInput | PreviewCreateOrConnectWithoutRepoConfigInput[]
|
|
upsert?: PreviewUpsertWithWhereUniqueWithoutRepoConfigInput | PreviewUpsertWithWhereUniqueWithoutRepoConfigInput[]
|
|
createMany?: PreviewCreateManyRepoConfigInputEnvelope
|
|
set?: PreviewWhereUniqueInput | PreviewWhereUniqueInput[]
|
|
disconnect?: PreviewWhereUniqueInput | PreviewWhereUniqueInput[]
|
|
delete?: PreviewWhereUniqueInput | PreviewWhereUniqueInput[]
|
|
connect?: PreviewWhereUniqueInput | PreviewWhereUniqueInput[]
|
|
update?: PreviewUpdateWithWhereUniqueWithoutRepoConfigInput | PreviewUpdateWithWhereUniqueWithoutRepoConfigInput[]
|
|
updateMany?: PreviewUpdateManyWithWhereWithoutRepoConfigInput | PreviewUpdateManyWithWhereWithoutRepoConfigInput[]
|
|
deleteMany?: PreviewScalarWhereInput | PreviewScalarWhereInput[]
|
|
}
|
|
|
|
export type RepoConfigCreateNestedOneWithoutPreviewsInput = {
|
|
create?: XOR<RepoConfigCreateWithoutPreviewsInput, RepoConfigUncheckedCreateWithoutPreviewsInput>
|
|
connectOrCreate?: RepoConfigCreateOrConnectWithoutPreviewsInput
|
|
connect?: RepoConfigWhereUniqueInput
|
|
}
|
|
|
|
export type JobCreateNestedManyWithoutPreviewInput = {
|
|
create?: XOR<JobCreateWithoutPreviewInput, JobUncheckedCreateWithoutPreviewInput> | JobCreateWithoutPreviewInput[] | JobUncheckedCreateWithoutPreviewInput[]
|
|
connectOrCreate?: JobCreateOrConnectWithoutPreviewInput | JobCreateOrConnectWithoutPreviewInput[]
|
|
createMany?: JobCreateManyPreviewInputEnvelope
|
|
connect?: JobWhereUniqueInput | JobWhereUniqueInput[]
|
|
}
|
|
|
|
export type JobUncheckedCreateNestedManyWithoutPreviewInput = {
|
|
create?: XOR<JobCreateWithoutPreviewInput, JobUncheckedCreateWithoutPreviewInput> | JobCreateWithoutPreviewInput[] | JobUncheckedCreateWithoutPreviewInput[]
|
|
connectOrCreate?: JobCreateOrConnectWithoutPreviewInput | JobCreateOrConnectWithoutPreviewInput[]
|
|
createMany?: JobCreateManyPreviewInputEnvelope
|
|
connect?: JobWhereUniqueInput | JobWhereUniqueInput[]
|
|
}
|
|
|
|
export type EnumPreviewStatusFieldUpdateOperationsInput = {
|
|
set?: $Enums.PreviewStatus
|
|
}
|
|
|
|
export type NullableIntFieldUpdateOperationsInput = {
|
|
set?: number | null
|
|
increment?: number
|
|
decrement?: number
|
|
multiply?: number
|
|
divide?: number
|
|
}
|
|
|
|
export type NullableDateTimeFieldUpdateOperationsInput = {
|
|
set?: Date | string | null
|
|
}
|
|
|
|
export type RepoConfigUpdateOneRequiredWithoutPreviewsNestedInput = {
|
|
create?: XOR<RepoConfigCreateWithoutPreviewsInput, RepoConfigUncheckedCreateWithoutPreviewsInput>
|
|
connectOrCreate?: RepoConfigCreateOrConnectWithoutPreviewsInput
|
|
upsert?: RepoConfigUpsertWithoutPreviewsInput
|
|
connect?: RepoConfigWhereUniqueInput
|
|
update?: XOR<XOR<RepoConfigUpdateToOneWithWhereWithoutPreviewsInput, RepoConfigUpdateWithoutPreviewsInput>, RepoConfigUncheckedUpdateWithoutPreviewsInput>
|
|
}
|
|
|
|
export type JobUpdateManyWithoutPreviewNestedInput = {
|
|
create?: XOR<JobCreateWithoutPreviewInput, JobUncheckedCreateWithoutPreviewInput> | JobCreateWithoutPreviewInput[] | JobUncheckedCreateWithoutPreviewInput[]
|
|
connectOrCreate?: JobCreateOrConnectWithoutPreviewInput | JobCreateOrConnectWithoutPreviewInput[]
|
|
upsert?: JobUpsertWithWhereUniqueWithoutPreviewInput | JobUpsertWithWhereUniqueWithoutPreviewInput[]
|
|
createMany?: JobCreateManyPreviewInputEnvelope
|
|
set?: JobWhereUniqueInput | JobWhereUniqueInput[]
|
|
disconnect?: JobWhereUniqueInput | JobWhereUniqueInput[]
|
|
delete?: JobWhereUniqueInput | JobWhereUniqueInput[]
|
|
connect?: JobWhereUniqueInput | JobWhereUniqueInput[]
|
|
update?: JobUpdateWithWhereUniqueWithoutPreviewInput | JobUpdateWithWhereUniqueWithoutPreviewInput[]
|
|
updateMany?: JobUpdateManyWithWhereWithoutPreviewInput | JobUpdateManyWithWhereWithoutPreviewInput[]
|
|
deleteMany?: JobScalarWhereInput | JobScalarWhereInput[]
|
|
}
|
|
|
|
export type JobUncheckedUpdateManyWithoutPreviewNestedInput = {
|
|
create?: XOR<JobCreateWithoutPreviewInput, JobUncheckedCreateWithoutPreviewInput> | JobCreateWithoutPreviewInput[] | JobUncheckedCreateWithoutPreviewInput[]
|
|
connectOrCreate?: JobCreateOrConnectWithoutPreviewInput | JobCreateOrConnectWithoutPreviewInput[]
|
|
upsert?: JobUpsertWithWhereUniqueWithoutPreviewInput | JobUpsertWithWhereUniqueWithoutPreviewInput[]
|
|
createMany?: JobCreateManyPreviewInputEnvelope
|
|
set?: JobWhereUniqueInput | JobWhereUniqueInput[]
|
|
disconnect?: JobWhereUniqueInput | JobWhereUniqueInput[]
|
|
delete?: JobWhereUniqueInput | JobWhereUniqueInput[]
|
|
connect?: JobWhereUniqueInput | JobWhereUniqueInput[]
|
|
update?: JobUpdateWithWhereUniqueWithoutPreviewInput | JobUpdateWithWhereUniqueWithoutPreviewInput[]
|
|
updateMany?: JobUpdateManyWithWhereWithoutPreviewInput | JobUpdateManyWithWhereWithoutPreviewInput[]
|
|
deleteMany?: JobScalarWhereInput | JobScalarWhereInput[]
|
|
}
|
|
|
|
export type PreviewCreateNestedOneWithoutJobsInput = {
|
|
create?: XOR<PreviewCreateWithoutJobsInput, PreviewUncheckedCreateWithoutJobsInput>
|
|
connectOrCreate?: PreviewCreateOrConnectWithoutJobsInput
|
|
connect?: PreviewWhereUniqueInput
|
|
}
|
|
|
|
export type EnumJobTypeFieldUpdateOperationsInput = {
|
|
set?: $Enums.JobType
|
|
}
|
|
|
|
export type EnumJobStatusFieldUpdateOperationsInput = {
|
|
set?: $Enums.JobStatus
|
|
}
|
|
|
|
export type PreviewUpdateOneWithoutJobsNestedInput = {
|
|
create?: XOR<PreviewCreateWithoutJobsInput, PreviewUncheckedCreateWithoutJobsInput>
|
|
connectOrCreate?: PreviewCreateOrConnectWithoutJobsInput
|
|
upsert?: PreviewUpsertWithoutJobsInput
|
|
disconnect?: PreviewWhereInput | boolean
|
|
delete?: PreviewWhereInput | boolean
|
|
connect?: PreviewWhereUniqueInput
|
|
update?: XOR<XOR<PreviewUpdateToOneWithWhereWithoutJobsInput, PreviewUpdateWithoutJobsInput>, PreviewUncheckedUpdateWithoutJobsInput>
|
|
}
|
|
|
|
export type UserCreateNestedOneWithoutWebhookTokenInput = {
|
|
create?: XOR<UserCreateWithoutWebhookTokenInput, UserUncheckedCreateWithoutWebhookTokenInput>
|
|
connectOrCreate?: UserCreateOrConnectWithoutWebhookTokenInput
|
|
connect?: UserWhereUniqueInput
|
|
}
|
|
|
|
export type UserUpdateOneRequiredWithoutWebhookTokenNestedInput = {
|
|
create?: XOR<UserCreateWithoutWebhookTokenInput, UserUncheckedCreateWithoutWebhookTokenInput>
|
|
connectOrCreate?: UserCreateOrConnectWithoutWebhookTokenInput
|
|
upsert?: UserUpsertWithoutWebhookTokenInput
|
|
connect?: UserWhereUniqueInput
|
|
update?: XOR<XOR<UserUpdateToOneWithWhereWithoutWebhookTokenInput, UserUpdateWithoutWebhookTokenInput>, UserUncheckedUpdateWithoutWebhookTokenInput>
|
|
}
|
|
|
|
export type UserCreateNestedOneWithoutNoConfigCommentsInput = {
|
|
create?: XOR<UserCreateWithoutNoConfigCommentsInput, UserUncheckedCreateWithoutNoConfigCommentsInput>
|
|
connectOrCreate?: UserCreateOrConnectWithoutNoConfigCommentsInput
|
|
connect?: UserWhereUniqueInput
|
|
}
|
|
|
|
export type UserUpdateOneRequiredWithoutNoConfigCommentsNestedInput = {
|
|
create?: XOR<UserCreateWithoutNoConfigCommentsInput, UserUncheckedCreateWithoutNoConfigCommentsInput>
|
|
connectOrCreate?: UserCreateOrConnectWithoutNoConfigCommentsInput
|
|
upsert?: UserUpsertWithoutNoConfigCommentsInput
|
|
connect?: UserWhereUniqueInput
|
|
update?: XOR<XOR<UserUpdateToOneWithWhereWithoutNoConfigCommentsInput, UserUpdateWithoutNoConfigCommentsInput>, UserUncheckedUpdateWithoutNoConfigCommentsInput>
|
|
}
|
|
|
|
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 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 NestedBoolFilter<$PrismaModel = never> = {
|
|
equals?: boolean | BooleanFieldRefInput<$PrismaModel>
|
|
not?: NestedBoolFilter<$PrismaModel> | boolean
|
|
}
|
|
|
|
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 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 NestedIntWithAggregatesFilter<$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?: NestedIntWithAggregatesFilter<$PrismaModel> | number
|
|
_count?: NestedIntFilter<$PrismaModel>
|
|
_avg?: NestedFloatFilter<$PrismaModel>
|
|
_sum?: NestedIntFilter<$PrismaModel>
|
|
_min?: NestedIntFilter<$PrismaModel>
|
|
_max?: NestedIntFilter<$PrismaModel>
|
|
}
|
|
|
|
export type NestedFloatFilter<$PrismaModel = never> = {
|
|
equals?: number | FloatFieldRefInput<$PrismaModel>
|
|
in?: number[] | ListFloatFieldRefInput<$PrismaModel>
|
|
notIn?: number[] | ListFloatFieldRefInput<$PrismaModel>
|
|
lt?: number | FloatFieldRefInput<$PrismaModel>
|
|
lte?: number | FloatFieldRefInput<$PrismaModel>
|
|
gt?: number | FloatFieldRefInput<$PrismaModel>
|
|
gte?: number | FloatFieldRefInput<$PrismaModel>
|
|
not?: NestedFloatFilter<$PrismaModel> | number
|
|
}
|
|
|
|
export type NestedStringWithAggregatesFilter<$PrismaModel = never> = {
|
|
equals?: string | StringFieldRefInput<$PrismaModel>
|
|
in?: string[] | 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 NestedBoolWithAggregatesFilter<$PrismaModel = never> = {
|
|
equals?: boolean | BooleanFieldRefInput<$PrismaModel>
|
|
not?: NestedBoolWithAggregatesFilter<$PrismaModel> | boolean
|
|
_count?: NestedIntFilter<$PrismaModel>
|
|
_min?: NestedBoolFilter<$PrismaModel>
|
|
_max?: NestedBoolFilter<$PrismaModel>
|
|
}
|
|
|
|
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 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 NestedFloatWithAggregatesFilter<$PrismaModel = never> = {
|
|
equals?: number | FloatFieldRefInput<$PrismaModel>
|
|
in?: number[] | ListFloatFieldRefInput<$PrismaModel>
|
|
notIn?: number[] | ListFloatFieldRefInput<$PrismaModel>
|
|
lt?: number | FloatFieldRefInput<$PrismaModel>
|
|
lte?: number | FloatFieldRefInput<$PrismaModel>
|
|
gt?: number | FloatFieldRefInput<$PrismaModel>
|
|
gte?: number | FloatFieldRefInput<$PrismaModel>
|
|
not?: NestedFloatWithAggregatesFilter<$PrismaModel> | number
|
|
_count?: NestedIntFilter<$PrismaModel>
|
|
_avg?: NestedFloatFilter<$PrismaModel>
|
|
_sum?: NestedFloatFilter<$PrismaModel>
|
|
_min?: NestedFloatFilter<$PrismaModel>
|
|
_max?: NestedFloatFilter<$PrismaModel>
|
|
}
|
|
export type NestedJsonFilter<$PrismaModel = never> =
|
|
| PatchUndefined<
|
|
Either<Required<NestedJsonFilterBase<$PrismaModel>>, Exclude<keyof Required<NestedJsonFilterBase<$PrismaModel>>, 'path'>>,
|
|
Required<NestedJsonFilterBase<$PrismaModel>>
|
|
>
|
|
| OptionalFlat<Omit<Required<NestedJsonFilterBase<$PrismaModel>>, 'path'>>
|
|
|
|
export type NestedJsonFilterBase<$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 NestedEnumPreviewStatusFilter<$PrismaModel = never> = {
|
|
equals?: $Enums.PreviewStatus | EnumPreviewStatusFieldRefInput<$PrismaModel>
|
|
in?: $Enums.PreviewStatus[] | ListEnumPreviewStatusFieldRefInput<$PrismaModel>
|
|
notIn?: $Enums.PreviewStatus[] | ListEnumPreviewStatusFieldRefInput<$PrismaModel>
|
|
not?: NestedEnumPreviewStatusFilter<$PrismaModel> | $Enums.PreviewStatus
|
|
}
|
|
|
|
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 NestedEnumPreviewStatusWithAggregatesFilter<$PrismaModel = never> = {
|
|
equals?: $Enums.PreviewStatus | EnumPreviewStatusFieldRefInput<$PrismaModel>
|
|
in?: $Enums.PreviewStatus[] | ListEnumPreviewStatusFieldRefInput<$PrismaModel>
|
|
notIn?: $Enums.PreviewStatus[] | ListEnumPreviewStatusFieldRefInput<$PrismaModel>
|
|
not?: NestedEnumPreviewStatusWithAggregatesFilter<$PrismaModel> | $Enums.PreviewStatus
|
|
_count?: NestedIntFilter<$PrismaModel>
|
|
_min?: NestedEnumPreviewStatusFilter<$PrismaModel>
|
|
_max?: NestedEnumPreviewStatusFilter<$PrismaModel>
|
|
}
|
|
|
|
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 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 NestedEnumJobTypeFilter<$PrismaModel = never> = {
|
|
equals?: $Enums.JobType | EnumJobTypeFieldRefInput<$PrismaModel>
|
|
in?: $Enums.JobType[] | ListEnumJobTypeFieldRefInput<$PrismaModel>
|
|
notIn?: $Enums.JobType[] | ListEnumJobTypeFieldRefInput<$PrismaModel>
|
|
not?: NestedEnumJobTypeFilter<$PrismaModel> | $Enums.JobType
|
|
}
|
|
|
|
export type NestedEnumJobStatusFilter<$PrismaModel = never> = {
|
|
equals?: $Enums.JobStatus | EnumJobStatusFieldRefInput<$PrismaModel>
|
|
in?: $Enums.JobStatus[] | ListEnumJobStatusFieldRefInput<$PrismaModel>
|
|
notIn?: $Enums.JobStatus[] | ListEnumJobStatusFieldRefInput<$PrismaModel>
|
|
not?: NestedEnumJobStatusFilter<$PrismaModel> | $Enums.JobStatus
|
|
}
|
|
|
|
export type NestedEnumJobTypeWithAggregatesFilter<$PrismaModel = never> = {
|
|
equals?: $Enums.JobType | EnumJobTypeFieldRefInput<$PrismaModel>
|
|
in?: $Enums.JobType[] | ListEnumJobTypeFieldRefInput<$PrismaModel>
|
|
notIn?: $Enums.JobType[] | ListEnumJobTypeFieldRefInput<$PrismaModel>
|
|
not?: NestedEnumJobTypeWithAggregatesFilter<$PrismaModel> | $Enums.JobType
|
|
_count?: NestedIntFilter<$PrismaModel>
|
|
_min?: NestedEnumJobTypeFilter<$PrismaModel>
|
|
_max?: NestedEnumJobTypeFilter<$PrismaModel>
|
|
}
|
|
|
|
export type NestedEnumJobStatusWithAggregatesFilter<$PrismaModel = never> = {
|
|
equals?: $Enums.JobStatus | EnumJobStatusFieldRefInput<$PrismaModel>
|
|
in?: $Enums.JobStatus[] | ListEnumJobStatusFieldRefInput<$PrismaModel>
|
|
notIn?: $Enums.JobStatus[] | ListEnumJobStatusFieldRefInput<$PrismaModel>
|
|
not?: NestedEnumJobStatusWithAggregatesFilter<$PrismaModel> | $Enums.JobStatus
|
|
_count?: NestedIntFilter<$PrismaModel>
|
|
_min?: NestedEnumJobStatusFilter<$PrismaModel>
|
|
_max?: NestedEnumJobStatusFilter<$PrismaModel>
|
|
}
|
|
|
|
export type SessionCreateWithoutUserInput = {
|
|
hash: string
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
}
|
|
|
|
export type SessionUncheckedCreateWithoutUserInput = {
|
|
id?: number
|
|
hash: string
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
}
|
|
|
|
export type SessionCreateOrConnectWithoutUserInput = {
|
|
where: SessionWhereUniqueInput
|
|
create: XOR<SessionCreateWithoutUserInput, SessionUncheckedCreateWithoutUserInput>
|
|
}
|
|
|
|
export type SessionCreateManyUserInputEnvelope = {
|
|
data: SessionCreateManyUserInput | SessionCreateManyUserInput[]
|
|
skipDuplicates?: boolean
|
|
}
|
|
|
|
export type RepoConfigCreateWithoutUserInput = {
|
|
repoOwner: string
|
|
repoName: string
|
|
isEnabled?: boolean
|
|
giteaWebhookId?: string | null
|
|
denyList?: RepoConfigCreatedenyListInput | string[]
|
|
instanceType?: string
|
|
inactivityHours?: number
|
|
port?: number
|
|
envVars?: JsonNullValueInput | InputJsonValue
|
|
useDockerCompose?: boolean
|
|
composeFilePath?: string | null
|
|
aptPackages?: RepoConfigCreateaptPackagesInput | string[]
|
|
setupCommands?: RepoConfigCreatesetupCommandsInput | string[]
|
|
buildCommands?: RepoConfigCreatebuildCommandsInput | string[]
|
|
postBuildCommands?: RepoConfigCreatepostBuildCommandsInput | string[]
|
|
runCommand?: string | null
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
previews?: PreviewCreateNestedManyWithoutRepoConfigInput
|
|
}
|
|
|
|
export type RepoConfigUncheckedCreateWithoutUserInput = {
|
|
id?: number
|
|
repoOwner: string
|
|
repoName: string
|
|
isEnabled?: boolean
|
|
giteaWebhookId?: string | null
|
|
denyList?: RepoConfigCreatedenyListInput | string[]
|
|
instanceType?: string
|
|
inactivityHours?: number
|
|
port?: number
|
|
envVars?: JsonNullValueInput | InputJsonValue
|
|
useDockerCompose?: boolean
|
|
composeFilePath?: string | null
|
|
aptPackages?: RepoConfigCreateaptPackagesInput | string[]
|
|
setupCommands?: RepoConfigCreatesetupCommandsInput | string[]
|
|
buildCommands?: RepoConfigCreatebuildCommandsInput | string[]
|
|
postBuildCommands?: RepoConfigCreatepostBuildCommandsInput | string[]
|
|
runCommand?: string | null
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
previews?: PreviewUncheckedCreateNestedManyWithoutRepoConfigInput
|
|
}
|
|
|
|
export type RepoConfigCreateOrConnectWithoutUserInput = {
|
|
where: RepoConfigWhereUniqueInput
|
|
create: XOR<RepoConfigCreateWithoutUserInput, RepoConfigUncheckedCreateWithoutUserInput>
|
|
}
|
|
|
|
export type RepoConfigCreateManyUserInputEnvelope = {
|
|
data: RepoConfigCreateManyUserInput | RepoConfigCreateManyUserInput[]
|
|
skipDuplicates?: boolean
|
|
}
|
|
|
|
export type WebhookTokenCreateWithoutUserInput = {
|
|
token: string
|
|
createdAt?: Date | string
|
|
}
|
|
|
|
export type WebhookTokenUncheckedCreateWithoutUserInput = {
|
|
id?: number
|
|
token: string
|
|
createdAt?: Date | string
|
|
}
|
|
|
|
export type WebhookTokenCreateOrConnectWithoutUserInput = {
|
|
where: WebhookTokenWhereUniqueInput
|
|
create: XOR<WebhookTokenCreateWithoutUserInput, WebhookTokenUncheckedCreateWithoutUserInput>
|
|
}
|
|
|
|
export type NoConfigCommentCreateWithoutUserInput = {
|
|
repoOwner: string
|
|
repoName: string
|
|
prNumber: number
|
|
createdAt?: Date | string
|
|
}
|
|
|
|
export type NoConfigCommentUncheckedCreateWithoutUserInput = {
|
|
id?: number
|
|
repoOwner: string
|
|
repoName: string
|
|
prNumber: number
|
|
createdAt?: Date | string
|
|
}
|
|
|
|
export type NoConfigCommentCreateOrConnectWithoutUserInput = {
|
|
where: NoConfigCommentWhereUniqueInput
|
|
create: XOR<NoConfigCommentCreateWithoutUserInput, NoConfigCommentUncheckedCreateWithoutUserInput>
|
|
}
|
|
|
|
export type NoConfigCommentCreateManyUserInputEnvelope = {
|
|
data: NoConfigCommentCreateManyUserInput | NoConfigCommentCreateManyUserInput[]
|
|
skipDuplicates?: boolean
|
|
}
|
|
|
|
export type SessionUpsertWithWhereUniqueWithoutUserInput = {
|
|
where: SessionWhereUniqueInput
|
|
update: XOR<SessionUpdateWithoutUserInput, SessionUncheckedUpdateWithoutUserInput>
|
|
create: XOR<SessionCreateWithoutUserInput, SessionUncheckedCreateWithoutUserInput>
|
|
}
|
|
|
|
export type SessionUpdateWithWhereUniqueWithoutUserInput = {
|
|
where: SessionWhereUniqueInput
|
|
data: XOR<SessionUpdateWithoutUserInput, SessionUncheckedUpdateWithoutUserInput>
|
|
}
|
|
|
|
export type SessionUpdateManyWithWhereWithoutUserInput = {
|
|
where: SessionScalarWhereInput
|
|
data: XOR<SessionUpdateManyMutationInput, SessionUncheckedUpdateManyWithoutUserInput>
|
|
}
|
|
|
|
export type SessionScalarWhereInput = {
|
|
AND?: SessionScalarWhereInput | SessionScalarWhereInput[]
|
|
OR?: SessionScalarWhereInput[]
|
|
NOT?: SessionScalarWhereInput | SessionScalarWhereInput[]
|
|
id?: IntFilter<"Session"> | number
|
|
hash?: StringFilter<"Session"> | string
|
|
userId?: IntFilter<"Session"> | number
|
|
createdAt?: DateTimeFilter<"Session"> | Date | string
|
|
updatedAt?: DateTimeFilter<"Session"> | Date | string
|
|
}
|
|
|
|
export type RepoConfigUpsertWithWhereUniqueWithoutUserInput = {
|
|
where: RepoConfigWhereUniqueInput
|
|
update: XOR<RepoConfigUpdateWithoutUserInput, RepoConfigUncheckedUpdateWithoutUserInput>
|
|
create: XOR<RepoConfigCreateWithoutUserInput, RepoConfigUncheckedCreateWithoutUserInput>
|
|
}
|
|
|
|
export type RepoConfigUpdateWithWhereUniqueWithoutUserInput = {
|
|
where: RepoConfigWhereUniqueInput
|
|
data: XOR<RepoConfigUpdateWithoutUserInput, RepoConfigUncheckedUpdateWithoutUserInput>
|
|
}
|
|
|
|
export type RepoConfigUpdateManyWithWhereWithoutUserInput = {
|
|
where: RepoConfigScalarWhereInput
|
|
data: XOR<RepoConfigUpdateManyMutationInput, RepoConfigUncheckedUpdateManyWithoutUserInput>
|
|
}
|
|
|
|
export type RepoConfigScalarWhereInput = {
|
|
AND?: RepoConfigScalarWhereInput | RepoConfigScalarWhereInput[]
|
|
OR?: RepoConfigScalarWhereInput[]
|
|
NOT?: RepoConfigScalarWhereInput | RepoConfigScalarWhereInput[]
|
|
id?: IntFilter<"RepoConfig"> | number
|
|
userId?: IntFilter<"RepoConfig"> | number
|
|
repoOwner?: StringFilter<"RepoConfig"> | string
|
|
repoName?: StringFilter<"RepoConfig"> | string
|
|
isEnabled?: BoolFilter<"RepoConfig"> | boolean
|
|
giteaWebhookId?: StringNullableFilter<"RepoConfig"> | string | null
|
|
denyList?: StringNullableListFilter<"RepoConfig">
|
|
instanceType?: StringFilter<"RepoConfig"> | string
|
|
inactivityHours?: FloatFilter<"RepoConfig"> | number
|
|
port?: IntFilter<"RepoConfig"> | number
|
|
envVars?: JsonFilter<"RepoConfig">
|
|
useDockerCompose?: BoolFilter<"RepoConfig"> | boolean
|
|
composeFilePath?: StringNullableFilter<"RepoConfig"> | string | null
|
|
aptPackages?: StringNullableListFilter<"RepoConfig">
|
|
setupCommands?: StringNullableListFilter<"RepoConfig">
|
|
buildCommands?: StringNullableListFilter<"RepoConfig">
|
|
postBuildCommands?: StringNullableListFilter<"RepoConfig">
|
|
runCommand?: StringNullableFilter<"RepoConfig"> | string | null
|
|
createdAt?: DateTimeFilter<"RepoConfig"> | Date | string
|
|
updatedAt?: DateTimeFilter<"RepoConfig"> | Date | string
|
|
}
|
|
|
|
export type WebhookTokenUpsertWithoutUserInput = {
|
|
update: XOR<WebhookTokenUpdateWithoutUserInput, WebhookTokenUncheckedUpdateWithoutUserInput>
|
|
create: XOR<WebhookTokenCreateWithoutUserInput, WebhookTokenUncheckedCreateWithoutUserInput>
|
|
where?: WebhookTokenWhereInput
|
|
}
|
|
|
|
export type WebhookTokenUpdateToOneWithWhereWithoutUserInput = {
|
|
where?: WebhookTokenWhereInput
|
|
data: XOR<WebhookTokenUpdateWithoutUserInput, WebhookTokenUncheckedUpdateWithoutUserInput>
|
|
}
|
|
|
|
export type WebhookTokenUpdateWithoutUserInput = {
|
|
token?: StringFieldUpdateOperationsInput | string
|
|
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
}
|
|
|
|
export type WebhookTokenUncheckedUpdateWithoutUserInput = {
|
|
id?: IntFieldUpdateOperationsInput | number
|
|
token?: StringFieldUpdateOperationsInput | string
|
|
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
}
|
|
|
|
export type NoConfigCommentUpsertWithWhereUniqueWithoutUserInput = {
|
|
where: NoConfigCommentWhereUniqueInput
|
|
update: XOR<NoConfigCommentUpdateWithoutUserInput, NoConfigCommentUncheckedUpdateWithoutUserInput>
|
|
create: XOR<NoConfigCommentCreateWithoutUserInput, NoConfigCommentUncheckedCreateWithoutUserInput>
|
|
}
|
|
|
|
export type NoConfigCommentUpdateWithWhereUniqueWithoutUserInput = {
|
|
where: NoConfigCommentWhereUniqueInput
|
|
data: XOR<NoConfigCommentUpdateWithoutUserInput, NoConfigCommentUncheckedUpdateWithoutUserInput>
|
|
}
|
|
|
|
export type NoConfigCommentUpdateManyWithWhereWithoutUserInput = {
|
|
where: NoConfigCommentScalarWhereInput
|
|
data: XOR<NoConfigCommentUpdateManyMutationInput, NoConfigCommentUncheckedUpdateManyWithoutUserInput>
|
|
}
|
|
|
|
export type NoConfigCommentScalarWhereInput = {
|
|
AND?: NoConfigCommentScalarWhereInput | NoConfigCommentScalarWhereInput[]
|
|
OR?: NoConfigCommentScalarWhereInput[]
|
|
NOT?: NoConfigCommentScalarWhereInput | NoConfigCommentScalarWhereInput[]
|
|
id?: IntFilter<"NoConfigComment"> | number
|
|
userId?: IntFilter<"NoConfigComment"> | number
|
|
repoOwner?: StringFilter<"NoConfigComment"> | string
|
|
repoName?: StringFilter<"NoConfigComment"> | string
|
|
prNumber?: IntFilter<"NoConfigComment"> | number
|
|
createdAt?: DateTimeFilter<"NoConfigComment"> | Date | string
|
|
}
|
|
|
|
export type UserCreateWithoutSessionsInput = {
|
|
username: string
|
|
passwordHash: string
|
|
isAdmin?: boolean
|
|
isFounder?: boolean
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
giteaUsername?: string | null
|
|
giteaPAT?: string | null
|
|
giteaInstanceUrl?: string | null
|
|
awsAccessKeyId?: string | null
|
|
awsSecretAccessKey?: string | null
|
|
awsRegion?: string | null
|
|
repoConfigs?: RepoConfigCreateNestedManyWithoutUserInput
|
|
webhookToken?: WebhookTokenCreateNestedOneWithoutUserInput
|
|
noConfigComments?: NoConfigCommentCreateNestedManyWithoutUserInput
|
|
}
|
|
|
|
export type UserUncheckedCreateWithoutSessionsInput = {
|
|
id?: number
|
|
username: string
|
|
passwordHash: string
|
|
isAdmin?: boolean
|
|
isFounder?: boolean
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
giteaUsername?: string | null
|
|
giteaPAT?: string | null
|
|
giteaInstanceUrl?: string | null
|
|
awsAccessKeyId?: string | null
|
|
awsSecretAccessKey?: string | null
|
|
awsRegion?: string | null
|
|
repoConfigs?: RepoConfigUncheckedCreateNestedManyWithoutUserInput
|
|
webhookToken?: WebhookTokenUncheckedCreateNestedOneWithoutUserInput
|
|
noConfigComments?: NoConfigCommentUncheckedCreateNestedManyWithoutUserInput
|
|
}
|
|
|
|
export type UserCreateOrConnectWithoutSessionsInput = {
|
|
where: UserWhereUniqueInput
|
|
create: XOR<UserCreateWithoutSessionsInput, UserUncheckedCreateWithoutSessionsInput>
|
|
}
|
|
|
|
export type UserUpsertWithoutSessionsInput = {
|
|
update: XOR<UserUpdateWithoutSessionsInput, UserUncheckedUpdateWithoutSessionsInput>
|
|
create: XOR<UserCreateWithoutSessionsInput, UserUncheckedCreateWithoutSessionsInput>
|
|
where?: UserWhereInput
|
|
}
|
|
|
|
export type UserUpdateToOneWithWhereWithoutSessionsInput = {
|
|
where?: UserWhereInput
|
|
data: XOR<UserUpdateWithoutSessionsInput, UserUncheckedUpdateWithoutSessionsInput>
|
|
}
|
|
|
|
export type UserUpdateWithoutSessionsInput = {
|
|
username?: StringFieldUpdateOperationsInput | string
|
|
passwordHash?: StringFieldUpdateOperationsInput | string
|
|
isAdmin?: BoolFieldUpdateOperationsInput | boolean
|
|
isFounder?: BoolFieldUpdateOperationsInput | boolean
|
|
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
giteaUsername?: NullableStringFieldUpdateOperationsInput | string | null
|
|
giteaPAT?: NullableStringFieldUpdateOperationsInput | string | null
|
|
giteaInstanceUrl?: NullableStringFieldUpdateOperationsInput | string | null
|
|
awsAccessKeyId?: NullableStringFieldUpdateOperationsInput | string | null
|
|
awsSecretAccessKey?: NullableStringFieldUpdateOperationsInput | string | null
|
|
awsRegion?: NullableStringFieldUpdateOperationsInput | string | null
|
|
repoConfigs?: RepoConfigUpdateManyWithoutUserNestedInput
|
|
webhookToken?: WebhookTokenUpdateOneWithoutUserNestedInput
|
|
noConfigComments?: NoConfigCommentUpdateManyWithoutUserNestedInput
|
|
}
|
|
|
|
export type UserUncheckedUpdateWithoutSessionsInput = {
|
|
id?: IntFieldUpdateOperationsInput | number
|
|
username?: StringFieldUpdateOperationsInput | string
|
|
passwordHash?: StringFieldUpdateOperationsInput | string
|
|
isAdmin?: BoolFieldUpdateOperationsInput | boolean
|
|
isFounder?: BoolFieldUpdateOperationsInput | boolean
|
|
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
giteaUsername?: NullableStringFieldUpdateOperationsInput | string | null
|
|
giteaPAT?: NullableStringFieldUpdateOperationsInput | string | null
|
|
giteaInstanceUrl?: NullableStringFieldUpdateOperationsInput | string | null
|
|
awsAccessKeyId?: NullableStringFieldUpdateOperationsInput | string | null
|
|
awsSecretAccessKey?: NullableStringFieldUpdateOperationsInput | string | null
|
|
awsRegion?: NullableStringFieldUpdateOperationsInput | string | null
|
|
repoConfigs?: RepoConfigUncheckedUpdateManyWithoutUserNestedInput
|
|
webhookToken?: WebhookTokenUncheckedUpdateOneWithoutUserNestedInput
|
|
noConfigComments?: NoConfigCommentUncheckedUpdateManyWithoutUserNestedInput
|
|
}
|
|
|
|
export type UserCreateWithoutRepoConfigsInput = {
|
|
username: string
|
|
passwordHash: string
|
|
isAdmin?: boolean
|
|
isFounder?: boolean
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
giteaUsername?: string | null
|
|
giteaPAT?: string | null
|
|
giteaInstanceUrl?: string | null
|
|
awsAccessKeyId?: string | null
|
|
awsSecretAccessKey?: string | null
|
|
awsRegion?: string | null
|
|
sessions?: SessionCreateNestedManyWithoutUserInput
|
|
webhookToken?: WebhookTokenCreateNestedOneWithoutUserInput
|
|
noConfigComments?: NoConfigCommentCreateNestedManyWithoutUserInput
|
|
}
|
|
|
|
export type UserUncheckedCreateWithoutRepoConfigsInput = {
|
|
id?: number
|
|
username: string
|
|
passwordHash: string
|
|
isAdmin?: boolean
|
|
isFounder?: boolean
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
giteaUsername?: string | null
|
|
giteaPAT?: string | null
|
|
giteaInstanceUrl?: string | null
|
|
awsAccessKeyId?: string | null
|
|
awsSecretAccessKey?: string | null
|
|
awsRegion?: string | null
|
|
sessions?: SessionUncheckedCreateNestedManyWithoutUserInput
|
|
webhookToken?: WebhookTokenUncheckedCreateNestedOneWithoutUserInput
|
|
noConfigComments?: NoConfigCommentUncheckedCreateNestedManyWithoutUserInput
|
|
}
|
|
|
|
export type UserCreateOrConnectWithoutRepoConfigsInput = {
|
|
where: UserWhereUniqueInput
|
|
create: XOR<UserCreateWithoutRepoConfigsInput, UserUncheckedCreateWithoutRepoConfigsInput>
|
|
}
|
|
|
|
export type PreviewCreateWithoutRepoConfigInput = {
|
|
prNumber: number
|
|
prTitle: string
|
|
commitSha: string
|
|
instanceId?: string | null
|
|
instanceIp?: string | null
|
|
port?: number
|
|
status?: $Enums.PreviewStatus
|
|
logs?: string
|
|
pid?: number | null
|
|
sshPrivateKey?: string | null
|
|
sshKeyName?: string | null
|
|
giteaCommentId?: number | null
|
|
lastActivityAt?: Date | string
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
stoppedAt?: Date | string | null
|
|
jobs?: JobCreateNestedManyWithoutPreviewInput
|
|
}
|
|
|
|
export type PreviewUncheckedCreateWithoutRepoConfigInput = {
|
|
id?: number
|
|
prNumber: number
|
|
prTitle: string
|
|
commitSha: string
|
|
instanceId?: string | null
|
|
instanceIp?: string | null
|
|
port?: number
|
|
status?: $Enums.PreviewStatus
|
|
logs?: string
|
|
pid?: number | null
|
|
sshPrivateKey?: string | null
|
|
sshKeyName?: string | null
|
|
giteaCommentId?: number | null
|
|
lastActivityAt?: Date | string
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
stoppedAt?: Date | string | null
|
|
jobs?: JobUncheckedCreateNestedManyWithoutPreviewInput
|
|
}
|
|
|
|
export type PreviewCreateOrConnectWithoutRepoConfigInput = {
|
|
where: PreviewWhereUniqueInput
|
|
create: XOR<PreviewCreateWithoutRepoConfigInput, PreviewUncheckedCreateWithoutRepoConfigInput>
|
|
}
|
|
|
|
export type PreviewCreateManyRepoConfigInputEnvelope = {
|
|
data: PreviewCreateManyRepoConfigInput | PreviewCreateManyRepoConfigInput[]
|
|
skipDuplicates?: boolean
|
|
}
|
|
|
|
export type UserUpsertWithoutRepoConfigsInput = {
|
|
update: XOR<UserUpdateWithoutRepoConfigsInput, UserUncheckedUpdateWithoutRepoConfigsInput>
|
|
create: XOR<UserCreateWithoutRepoConfigsInput, UserUncheckedCreateWithoutRepoConfigsInput>
|
|
where?: UserWhereInput
|
|
}
|
|
|
|
export type UserUpdateToOneWithWhereWithoutRepoConfigsInput = {
|
|
where?: UserWhereInput
|
|
data: XOR<UserUpdateWithoutRepoConfigsInput, UserUncheckedUpdateWithoutRepoConfigsInput>
|
|
}
|
|
|
|
export type UserUpdateWithoutRepoConfigsInput = {
|
|
username?: StringFieldUpdateOperationsInput | string
|
|
passwordHash?: StringFieldUpdateOperationsInput | string
|
|
isAdmin?: BoolFieldUpdateOperationsInput | boolean
|
|
isFounder?: BoolFieldUpdateOperationsInput | boolean
|
|
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
giteaUsername?: NullableStringFieldUpdateOperationsInput | string | null
|
|
giteaPAT?: NullableStringFieldUpdateOperationsInput | string | null
|
|
giteaInstanceUrl?: NullableStringFieldUpdateOperationsInput | string | null
|
|
awsAccessKeyId?: NullableStringFieldUpdateOperationsInput | string | null
|
|
awsSecretAccessKey?: NullableStringFieldUpdateOperationsInput | string | null
|
|
awsRegion?: NullableStringFieldUpdateOperationsInput | string | null
|
|
sessions?: SessionUpdateManyWithoutUserNestedInput
|
|
webhookToken?: WebhookTokenUpdateOneWithoutUserNestedInput
|
|
noConfigComments?: NoConfigCommentUpdateManyWithoutUserNestedInput
|
|
}
|
|
|
|
export type UserUncheckedUpdateWithoutRepoConfigsInput = {
|
|
id?: IntFieldUpdateOperationsInput | number
|
|
username?: StringFieldUpdateOperationsInput | string
|
|
passwordHash?: StringFieldUpdateOperationsInput | string
|
|
isAdmin?: BoolFieldUpdateOperationsInput | boolean
|
|
isFounder?: BoolFieldUpdateOperationsInput | boolean
|
|
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
giteaUsername?: NullableStringFieldUpdateOperationsInput | string | null
|
|
giteaPAT?: NullableStringFieldUpdateOperationsInput | string | null
|
|
giteaInstanceUrl?: NullableStringFieldUpdateOperationsInput | string | null
|
|
awsAccessKeyId?: NullableStringFieldUpdateOperationsInput | string | null
|
|
awsSecretAccessKey?: NullableStringFieldUpdateOperationsInput | string | null
|
|
awsRegion?: NullableStringFieldUpdateOperationsInput | string | null
|
|
sessions?: SessionUncheckedUpdateManyWithoutUserNestedInput
|
|
webhookToken?: WebhookTokenUncheckedUpdateOneWithoutUserNestedInput
|
|
noConfigComments?: NoConfigCommentUncheckedUpdateManyWithoutUserNestedInput
|
|
}
|
|
|
|
export type PreviewUpsertWithWhereUniqueWithoutRepoConfigInput = {
|
|
where: PreviewWhereUniqueInput
|
|
update: XOR<PreviewUpdateWithoutRepoConfigInput, PreviewUncheckedUpdateWithoutRepoConfigInput>
|
|
create: XOR<PreviewCreateWithoutRepoConfigInput, PreviewUncheckedCreateWithoutRepoConfigInput>
|
|
}
|
|
|
|
export type PreviewUpdateWithWhereUniqueWithoutRepoConfigInput = {
|
|
where: PreviewWhereUniqueInput
|
|
data: XOR<PreviewUpdateWithoutRepoConfigInput, PreviewUncheckedUpdateWithoutRepoConfigInput>
|
|
}
|
|
|
|
export type PreviewUpdateManyWithWhereWithoutRepoConfigInput = {
|
|
where: PreviewScalarWhereInput
|
|
data: XOR<PreviewUpdateManyMutationInput, PreviewUncheckedUpdateManyWithoutRepoConfigInput>
|
|
}
|
|
|
|
export type PreviewScalarWhereInput = {
|
|
AND?: PreviewScalarWhereInput | PreviewScalarWhereInput[]
|
|
OR?: PreviewScalarWhereInput[]
|
|
NOT?: PreviewScalarWhereInput | PreviewScalarWhereInput[]
|
|
id?: IntFilter<"Preview"> | number
|
|
repoConfigId?: IntFilter<"Preview"> | number
|
|
prNumber?: IntFilter<"Preview"> | number
|
|
prTitle?: StringFilter<"Preview"> | string
|
|
commitSha?: StringFilter<"Preview"> | string
|
|
instanceId?: StringNullableFilter<"Preview"> | string | null
|
|
instanceIp?: StringNullableFilter<"Preview"> | string | null
|
|
port?: IntFilter<"Preview"> | number
|
|
status?: EnumPreviewStatusFilter<"Preview"> | $Enums.PreviewStatus
|
|
logs?: StringFilter<"Preview"> | string
|
|
pid?: IntNullableFilter<"Preview"> | number | null
|
|
sshPrivateKey?: StringNullableFilter<"Preview"> | string | null
|
|
sshKeyName?: StringNullableFilter<"Preview"> | string | null
|
|
giteaCommentId?: IntNullableFilter<"Preview"> | number | null
|
|
lastActivityAt?: DateTimeFilter<"Preview"> | Date | string
|
|
createdAt?: DateTimeFilter<"Preview"> | Date | string
|
|
updatedAt?: DateTimeFilter<"Preview"> | Date | string
|
|
stoppedAt?: DateTimeNullableFilter<"Preview"> | Date | string | null
|
|
}
|
|
|
|
export type RepoConfigCreateWithoutPreviewsInput = {
|
|
repoOwner: string
|
|
repoName: string
|
|
isEnabled?: boolean
|
|
giteaWebhookId?: string | null
|
|
denyList?: RepoConfigCreatedenyListInput | string[]
|
|
instanceType?: string
|
|
inactivityHours?: number
|
|
port?: number
|
|
envVars?: JsonNullValueInput | InputJsonValue
|
|
useDockerCompose?: boolean
|
|
composeFilePath?: string | null
|
|
aptPackages?: RepoConfigCreateaptPackagesInput | string[]
|
|
setupCommands?: RepoConfigCreatesetupCommandsInput | string[]
|
|
buildCommands?: RepoConfigCreatebuildCommandsInput | string[]
|
|
postBuildCommands?: RepoConfigCreatepostBuildCommandsInput | string[]
|
|
runCommand?: string | null
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
user: UserCreateNestedOneWithoutRepoConfigsInput
|
|
}
|
|
|
|
export type RepoConfigUncheckedCreateWithoutPreviewsInput = {
|
|
id?: number
|
|
userId: number
|
|
repoOwner: string
|
|
repoName: string
|
|
isEnabled?: boolean
|
|
giteaWebhookId?: string | null
|
|
denyList?: RepoConfigCreatedenyListInput | string[]
|
|
instanceType?: string
|
|
inactivityHours?: number
|
|
port?: number
|
|
envVars?: JsonNullValueInput | InputJsonValue
|
|
useDockerCompose?: boolean
|
|
composeFilePath?: string | null
|
|
aptPackages?: RepoConfigCreateaptPackagesInput | string[]
|
|
setupCommands?: RepoConfigCreatesetupCommandsInput | string[]
|
|
buildCommands?: RepoConfigCreatebuildCommandsInput | string[]
|
|
postBuildCommands?: RepoConfigCreatepostBuildCommandsInput | string[]
|
|
runCommand?: string | null
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
}
|
|
|
|
export type RepoConfigCreateOrConnectWithoutPreviewsInput = {
|
|
where: RepoConfigWhereUniqueInput
|
|
create: XOR<RepoConfigCreateWithoutPreviewsInput, RepoConfigUncheckedCreateWithoutPreviewsInput>
|
|
}
|
|
|
|
export type JobCreateWithoutPreviewInput = {
|
|
type: $Enums.JobType
|
|
status?: $Enums.JobStatus
|
|
payload?: JsonNullValueInput | InputJsonValue
|
|
error?: string | null
|
|
createdAt?: Date | string
|
|
startedAt?: Date | string | null
|
|
finishedAt?: Date | string | null
|
|
}
|
|
|
|
export type JobUncheckedCreateWithoutPreviewInput = {
|
|
id?: number
|
|
type: $Enums.JobType
|
|
status?: $Enums.JobStatus
|
|
payload?: JsonNullValueInput | InputJsonValue
|
|
error?: string | null
|
|
createdAt?: Date | string
|
|
startedAt?: Date | string | null
|
|
finishedAt?: Date | string | null
|
|
}
|
|
|
|
export type JobCreateOrConnectWithoutPreviewInput = {
|
|
where: JobWhereUniqueInput
|
|
create: XOR<JobCreateWithoutPreviewInput, JobUncheckedCreateWithoutPreviewInput>
|
|
}
|
|
|
|
export type JobCreateManyPreviewInputEnvelope = {
|
|
data: JobCreateManyPreviewInput | JobCreateManyPreviewInput[]
|
|
skipDuplicates?: boolean
|
|
}
|
|
|
|
export type RepoConfigUpsertWithoutPreviewsInput = {
|
|
update: XOR<RepoConfigUpdateWithoutPreviewsInput, RepoConfigUncheckedUpdateWithoutPreviewsInput>
|
|
create: XOR<RepoConfigCreateWithoutPreviewsInput, RepoConfigUncheckedCreateWithoutPreviewsInput>
|
|
where?: RepoConfigWhereInput
|
|
}
|
|
|
|
export type RepoConfigUpdateToOneWithWhereWithoutPreviewsInput = {
|
|
where?: RepoConfigWhereInput
|
|
data: XOR<RepoConfigUpdateWithoutPreviewsInput, RepoConfigUncheckedUpdateWithoutPreviewsInput>
|
|
}
|
|
|
|
export type RepoConfigUpdateWithoutPreviewsInput = {
|
|
repoOwner?: StringFieldUpdateOperationsInput | string
|
|
repoName?: StringFieldUpdateOperationsInput | string
|
|
isEnabled?: BoolFieldUpdateOperationsInput | boolean
|
|
giteaWebhookId?: NullableStringFieldUpdateOperationsInput | string | null
|
|
denyList?: RepoConfigUpdatedenyListInput | string[]
|
|
instanceType?: StringFieldUpdateOperationsInput | string
|
|
inactivityHours?: FloatFieldUpdateOperationsInput | number
|
|
port?: IntFieldUpdateOperationsInput | number
|
|
envVars?: JsonNullValueInput | InputJsonValue
|
|
useDockerCompose?: BoolFieldUpdateOperationsInput | boolean
|
|
composeFilePath?: NullableStringFieldUpdateOperationsInput | string | null
|
|
aptPackages?: RepoConfigUpdateaptPackagesInput | string[]
|
|
setupCommands?: RepoConfigUpdatesetupCommandsInput | string[]
|
|
buildCommands?: RepoConfigUpdatebuildCommandsInput | string[]
|
|
postBuildCommands?: RepoConfigUpdatepostBuildCommandsInput | string[]
|
|
runCommand?: NullableStringFieldUpdateOperationsInput | string | null
|
|
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
user?: UserUpdateOneRequiredWithoutRepoConfigsNestedInput
|
|
}
|
|
|
|
export type RepoConfigUncheckedUpdateWithoutPreviewsInput = {
|
|
id?: IntFieldUpdateOperationsInput | number
|
|
userId?: IntFieldUpdateOperationsInput | number
|
|
repoOwner?: StringFieldUpdateOperationsInput | string
|
|
repoName?: StringFieldUpdateOperationsInput | string
|
|
isEnabled?: BoolFieldUpdateOperationsInput | boolean
|
|
giteaWebhookId?: NullableStringFieldUpdateOperationsInput | string | null
|
|
denyList?: RepoConfigUpdatedenyListInput | string[]
|
|
instanceType?: StringFieldUpdateOperationsInput | string
|
|
inactivityHours?: FloatFieldUpdateOperationsInput | number
|
|
port?: IntFieldUpdateOperationsInput | number
|
|
envVars?: JsonNullValueInput | InputJsonValue
|
|
useDockerCompose?: BoolFieldUpdateOperationsInput | boolean
|
|
composeFilePath?: NullableStringFieldUpdateOperationsInput | string | null
|
|
aptPackages?: RepoConfigUpdateaptPackagesInput | string[]
|
|
setupCommands?: RepoConfigUpdatesetupCommandsInput | string[]
|
|
buildCommands?: RepoConfigUpdatebuildCommandsInput | string[]
|
|
postBuildCommands?: RepoConfigUpdatepostBuildCommandsInput | string[]
|
|
runCommand?: NullableStringFieldUpdateOperationsInput | string | null
|
|
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
}
|
|
|
|
export type JobUpsertWithWhereUniqueWithoutPreviewInput = {
|
|
where: JobWhereUniqueInput
|
|
update: XOR<JobUpdateWithoutPreviewInput, JobUncheckedUpdateWithoutPreviewInput>
|
|
create: XOR<JobCreateWithoutPreviewInput, JobUncheckedCreateWithoutPreviewInput>
|
|
}
|
|
|
|
export type JobUpdateWithWhereUniqueWithoutPreviewInput = {
|
|
where: JobWhereUniqueInput
|
|
data: XOR<JobUpdateWithoutPreviewInput, JobUncheckedUpdateWithoutPreviewInput>
|
|
}
|
|
|
|
export type JobUpdateManyWithWhereWithoutPreviewInput = {
|
|
where: JobScalarWhereInput
|
|
data: XOR<JobUpdateManyMutationInput, JobUncheckedUpdateManyWithoutPreviewInput>
|
|
}
|
|
|
|
export type JobScalarWhereInput = {
|
|
AND?: JobScalarWhereInput | JobScalarWhereInput[]
|
|
OR?: JobScalarWhereInput[]
|
|
NOT?: JobScalarWhereInput | JobScalarWhereInput[]
|
|
id?: IntFilter<"Job"> | number
|
|
previewId?: IntNullableFilter<"Job"> | number | null
|
|
type?: EnumJobTypeFilter<"Job"> | $Enums.JobType
|
|
status?: EnumJobStatusFilter<"Job"> | $Enums.JobStatus
|
|
payload?: JsonFilter<"Job">
|
|
error?: StringNullableFilter<"Job"> | string | null
|
|
createdAt?: DateTimeFilter<"Job"> | Date | string
|
|
startedAt?: DateTimeNullableFilter<"Job"> | Date | string | null
|
|
finishedAt?: DateTimeNullableFilter<"Job"> | Date | string | null
|
|
}
|
|
|
|
export type PreviewCreateWithoutJobsInput = {
|
|
prNumber: number
|
|
prTitle: string
|
|
commitSha: string
|
|
instanceId?: string | null
|
|
instanceIp?: string | null
|
|
port?: number
|
|
status?: $Enums.PreviewStatus
|
|
logs?: string
|
|
pid?: number | null
|
|
sshPrivateKey?: string | null
|
|
sshKeyName?: string | null
|
|
giteaCommentId?: number | null
|
|
lastActivityAt?: Date | string
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
stoppedAt?: Date | string | null
|
|
repoConfig: RepoConfigCreateNestedOneWithoutPreviewsInput
|
|
}
|
|
|
|
export type PreviewUncheckedCreateWithoutJobsInput = {
|
|
id?: number
|
|
repoConfigId: number
|
|
prNumber: number
|
|
prTitle: string
|
|
commitSha: string
|
|
instanceId?: string | null
|
|
instanceIp?: string | null
|
|
port?: number
|
|
status?: $Enums.PreviewStatus
|
|
logs?: string
|
|
pid?: number | null
|
|
sshPrivateKey?: string | null
|
|
sshKeyName?: string | null
|
|
giteaCommentId?: number | null
|
|
lastActivityAt?: Date | string
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
stoppedAt?: Date | string | null
|
|
}
|
|
|
|
export type PreviewCreateOrConnectWithoutJobsInput = {
|
|
where: PreviewWhereUniqueInput
|
|
create: XOR<PreviewCreateWithoutJobsInput, PreviewUncheckedCreateWithoutJobsInput>
|
|
}
|
|
|
|
export type PreviewUpsertWithoutJobsInput = {
|
|
update: XOR<PreviewUpdateWithoutJobsInput, PreviewUncheckedUpdateWithoutJobsInput>
|
|
create: XOR<PreviewCreateWithoutJobsInput, PreviewUncheckedCreateWithoutJobsInput>
|
|
where?: PreviewWhereInput
|
|
}
|
|
|
|
export type PreviewUpdateToOneWithWhereWithoutJobsInput = {
|
|
where?: PreviewWhereInput
|
|
data: XOR<PreviewUpdateWithoutJobsInput, PreviewUncheckedUpdateWithoutJobsInput>
|
|
}
|
|
|
|
export type PreviewUpdateWithoutJobsInput = {
|
|
prNumber?: IntFieldUpdateOperationsInput | number
|
|
prTitle?: StringFieldUpdateOperationsInput | string
|
|
commitSha?: StringFieldUpdateOperationsInput | string
|
|
instanceId?: NullableStringFieldUpdateOperationsInput | string | null
|
|
instanceIp?: NullableStringFieldUpdateOperationsInput | string | null
|
|
port?: IntFieldUpdateOperationsInput | number
|
|
status?: EnumPreviewStatusFieldUpdateOperationsInput | $Enums.PreviewStatus
|
|
logs?: StringFieldUpdateOperationsInput | string
|
|
pid?: NullableIntFieldUpdateOperationsInput | number | null
|
|
sshPrivateKey?: NullableStringFieldUpdateOperationsInput | string | null
|
|
sshKeyName?: NullableStringFieldUpdateOperationsInput | string | null
|
|
giteaCommentId?: NullableIntFieldUpdateOperationsInput | number | null
|
|
lastActivityAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
stoppedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
repoConfig?: RepoConfigUpdateOneRequiredWithoutPreviewsNestedInput
|
|
}
|
|
|
|
export type PreviewUncheckedUpdateWithoutJobsInput = {
|
|
id?: IntFieldUpdateOperationsInput | number
|
|
repoConfigId?: IntFieldUpdateOperationsInput | number
|
|
prNumber?: IntFieldUpdateOperationsInput | number
|
|
prTitle?: StringFieldUpdateOperationsInput | string
|
|
commitSha?: StringFieldUpdateOperationsInput | string
|
|
instanceId?: NullableStringFieldUpdateOperationsInput | string | null
|
|
instanceIp?: NullableStringFieldUpdateOperationsInput | string | null
|
|
port?: IntFieldUpdateOperationsInput | number
|
|
status?: EnumPreviewStatusFieldUpdateOperationsInput | $Enums.PreviewStatus
|
|
logs?: StringFieldUpdateOperationsInput | string
|
|
pid?: NullableIntFieldUpdateOperationsInput | number | null
|
|
sshPrivateKey?: NullableStringFieldUpdateOperationsInput | string | null
|
|
sshKeyName?: NullableStringFieldUpdateOperationsInput | string | null
|
|
giteaCommentId?: NullableIntFieldUpdateOperationsInput | number | null
|
|
lastActivityAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
stoppedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
}
|
|
|
|
export type UserCreateWithoutWebhookTokenInput = {
|
|
username: string
|
|
passwordHash: string
|
|
isAdmin?: boolean
|
|
isFounder?: boolean
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
giteaUsername?: string | null
|
|
giteaPAT?: string | null
|
|
giteaInstanceUrl?: string | null
|
|
awsAccessKeyId?: string | null
|
|
awsSecretAccessKey?: string | null
|
|
awsRegion?: string | null
|
|
sessions?: SessionCreateNestedManyWithoutUserInput
|
|
repoConfigs?: RepoConfigCreateNestedManyWithoutUserInput
|
|
noConfigComments?: NoConfigCommentCreateNestedManyWithoutUserInput
|
|
}
|
|
|
|
export type UserUncheckedCreateWithoutWebhookTokenInput = {
|
|
id?: number
|
|
username: string
|
|
passwordHash: string
|
|
isAdmin?: boolean
|
|
isFounder?: boolean
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
giteaUsername?: string | null
|
|
giteaPAT?: string | null
|
|
giteaInstanceUrl?: string | null
|
|
awsAccessKeyId?: string | null
|
|
awsSecretAccessKey?: string | null
|
|
awsRegion?: string | null
|
|
sessions?: SessionUncheckedCreateNestedManyWithoutUserInput
|
|
repoConfigs?: RepoConfigUncheckedCreateNestedManyWithoutUserInput
|
|
noConfigComments?: NoConfigCommentUncheckedCreateNestedManyWithoutUserInput
|
|
}
|
|
|
|
export type UserCreateOrConnectWithoutWebhookTokenInput = {
|
|
where: UserWhereUniqueInput
|
|
create: XOR<UserCreateWithoutWebhookTokenInput, UserUncheckedCreateWithoutWebhookTokenInput>
|
|
}
|
|
|
|
export type UserUpsertWithoutWebhookTokenInput = {
|
|
update: XOR<UserUpdateWithoutWebhookTokenInput, UserUncheckedUpdateWithoutWebhookTokenInput>
|
|
create: XOR<UserCreateWithoutWebhookTokenInput, UserUncheckedCreateWithoutWebhookTokenInput>
|
|
where?: UserWhereInput
|
|
}
|
|
|
|
export type UserUpdateToOneWithWhereWithoutWebhookTokenInput = {
|
|
where?: UserWhereInput
|
|
data: XOR<UserUpdateWithoutWebhookTokenInput, UserUncheckedUpdateWithoutWebhookTokenInput>
|
|
}
|
|
|
|
export type UserUpdateWithoutWebhookTokenInput = {
|
|
username?: StringFieldUpdateOperationsInput | string
|
|
passwordHash?: StringFieldUpdateOperationsInput | string
|
|
isAdmin?: BoolFieldUpdateOperationsInput | boolean
|
|
isFounder?: BoolFieldUpdateOperationsInput | boolean
|
|
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
giteaUsername?: NullableStringFieldUpdateOperationsInput | string | null
|
|
giteaPAT?: NullableStringFieldUpdateOperationsInput | string | null
|
|
giteaInstanceUrl?: NullableStringFieldUpdateOperationsInput | string | null
|
|
awsAccessKeyId?: NullableStringFieldUpdateOperationsInput | string | null
|
|
awsSecretAccessKey?: NullableStringFieldUpdateOperationsInput | string | null
|
|
awsRegion?: NullableStringFieldUpdateOperationsInput | string | null
|
|
sessions?: SessionUpdateManyWithoutUserNestedInput
|
|
repoConfigs?: RepoConfigUpdateManyWithoutUserNestedInput
|
|
noConfigComments?: NoConfigCommentUpdateManyWithoutUserNestedInput
|
|
}
|
|
|
|
export type UserUncheckedUpdateWithoutWebhookTokenInput = {
|
|
id?: IntFieldUpdateOperationsInput | number
|
|
username?: StringFieldUpdateOperationsInput | string
|
|
passwordHash?: StringFieldUpdateOperationsInput | string
|
|
isAdmin?: BoolFieldUpdateOperationsInput | boolean
|
|
isFounder?: BoolFieldUpdateOperationsInput | boolean
|
|
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
giteaUsername?: NullableStringFieldUpdateOperationsInput | string | null
|
|
giteaPAT?: NullableStringFieldUpdateOperationsInput | string | null
|
|
giteaInstanceUrl?: NullableStringFieldUpdateOperationsInput | string | null
|
|
awsAccessKeyId?: NullableStringFieldUpdateOperationsInput | string | null
|
|
awsSecretAccessKey?: NullableStringFieldUpdateOperationsInput | string | null
|
|
awsRegion?: NullableStringFieldUpdateOperationsInput | string | null
|
|
sessions?: SessionUncheckedUpdateManyWithoutUserNestedInput
|
|
repoConfigs?: RepoConfigUncheckedUpdateManyWithoutUserNestedInput
|
|
noConfigComments?: NoConfigCommentUncheckedUpdateManyWithoutUserNestedInput
|
|
}
|
|
|
|
export type UserCreateWithoutNoConfigCommentsInput = {
|
|
username: string
|
|
passwordHash: string
|
|
isAdmin?: boolean
|
|
isFounder?: boolean
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
giteaUsername?: string | null
|
|
giteaPAT?: string | null
|
|
giteaInstanceUrl?: string | null
|
|
awsAccessKeyId?: string | null
|
|
awsSecretAccessKey?: string | null
|
|
awsRegion?: string | null
|
|
sessions?: SessionCreateNestedManyWithoutUserInput
|
|
repoConfigs?: RepoConfigCreateNestedManyWithoutUserInput
|
|
webhookToken?: WebhookTokenCreateNestedOneWithoutUserInput
|
|
}
|
|
|
|
export type UserUncheckedCreateWithoutNoConfigCommentsInput = {
|
|
id?: number
|
|
username: string
|
|
passwordHash: string
|
|
isAdmin?: boolean
|
|
isFounder?: boolean
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
giteaUsername?: string | null
|
|
giteaPAT?: string | null
|
|
giteaInstanceUrl?: string | null
|
|
awsAccessKeyId?: string | null
|
|
awsSecretAccessKey?: string | null
|
|
awsRegion?: string | null
|
|
sessions?: SessionUncheckedCreateNestedManyWithoutUserInput
|
|
repoConfigs?: RepoConfigUncheckedCreateNestedManyWithoutUserInput
|
|
webhookToken?: WebhookTokenUncheckedCreateNestedOneWithoutUserInput
|
|
}
|
|
|
|
export type UserCreateOrConnectWithoutNoConfigCommentsInput = {
|
|
where: UserWhereUniqueInput
|
|
create: XOR<UserCreateWithoutNoConfigCommentsInput, UserUncheckedCreateWithoutNoConfigCommentsInput>
|
|
}
|
|
|
|
export type UserUpsertWithoutNoConfigCommentsInput = {
|
|
update: XOR<UserUpdateWithoutNoConfigCommentsInput, UserUncheckedUpdateWithoutNoConfigCommentsInput>
|
|
create: XOR<UserCreateWithoutNoConfigCommentsInput, UserUncheckedCreateWithoutNoConfigCommentsInput>
|
|
where?: UserWhereInput
|
|
}
|
|
|
|
export type UserUpdateToOneWithWhereWithoutNoConfigCommentsInput = {
|
|
where?: UserWhereInput
|
|
data: XOR<UserUpdateWithoutNoConfigCommentsInput, UserUncheckedUpdateWithoutNoConfigCommentsInput>
|
|
}
|
|
|
|
export type UserUpdateWithoutNoConfigCommentsInput = {
|
|
username?: StringFieldUpdateOperationsInput | string
|
|
passwordHash?: StringFieldUpdateOperationsInput | string
|
|
isAdmin?: BoolFieldUpdateOperationsInput | boolean
|
|
isFounder?: BoolFieldUpdateOperationsInput | boolean
|
|
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
giteaUsername?: NullableStringFieldUpdateOperationsInput | string | null
|
|
giteaPAT?: NullableStringFieldUpdateOperationsInput | string | null
|
|
giteaInstanceUrl?: NullableStringFieldUpdateOperationsInput | string | null
|
|
awsAccessKeyId?: NullableStringFieldUpdateOperationsInput | string | null
|
|
awsSecretAccessKey?: NullableStringFieldUpdateOperationsInput | string | null
|
|
awsRegion?: NullableStringFieldUpdateOperationsInput | string | null
|
|
sessions?: SessionUpdateManyWithoutUserNestedInput
|
|
repoConfigs?: RepoConfigUpdateManyWithoutUserNestedInput
|
|
webhookToken?: WebhookTokenUpdateOneWithoutUserNestedInput
|
|
}
|
|
|
|
export type UserUncheckedUpdateWithoutNoConfigCommentsInput = {
|
|
id?: IntFieldUpdateOperationsInput | number
|
|
username?: StringFieldUpdateOperationsInput | string
|
|
passwordHash?: StringFieldUpdateOperationsInput | string
|
|
isAdmin?: BoolFieldUpdateOperationsInput | boolean
|
|
isFounder?: BoolFieldUpdateOperationsInput | boolean
|
|
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
giteaUsername?: NullableStringFieldUpdateOperationsInput | string | null
|
|
giteaPAT?: NullableStringFieldUpdateOperationsInput | string | null
|
|
giteaInstanceUrl?: NullableStringFieldUpdateOperationsInput | string | null
|
|
awsAccessKeyId?: NullableStringFieldUpdateOperationsInput | string | null
|
|
awsSecretAccessKey?: NullableStringFieldUpdateOperationsInput | string | null
|
|
awsRegion?: NullableStringFieldUpdateOperationsInput | string | null
|
|
sessions?: SessionUncheckedUpdateManyWithoutUserNestedInput
|
|
repoConfigs?: RepoConfigUncheckedUpdateManyWithoutUserNestedInput
|
|
webhookToken?: WebhookTokenUncheckedUpdateOneWithoutUserNestedInput
|
|
}
|
|
|
|
export type SessionCreateManyUserInput = {
|
|
id?: number
|
|
hash: string
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
}
|
|
|
|
export type RepoConfigCreateManyUserInput = {
|
|
id?: number
|
|
repoOwner: string
|
|
repoName: string
|
|
isEnabled?: boolean
|
|
giteaWebhookId?: string | null
|
|
denyList?: RepoConfigCreatedenyListInput | string[]
|
|
instanceType?: string
|
|
inactivityHours?: number
|
|
port?: number
|
|
envVars?: JsonNullValueInput | InputJsonValue
|
|
useDockerCompose?: boolean
|
|
composeFilePath?: string | null
|
|
aptPackages?: RepoConfigCreateaptPackagesInput | string[]
|
|
setupCommands?: RepoConfigCreatesetupCommandsInput | string[]
|
|
buildCommands?: RepoConfigCreatebuildCommandsInput | string[]
|
|
postBuildCommands?: RepoConfigCreatepostBuildCommandsInput | string[]
|
|
runCommand?: string | null
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
}
|
|
|
|
export type NoConfigCommentCreateManyUserInput = {
|
|
id?: number
|
|
repoOwner: string
|
|
repoName: string
|
|
prNumber: number
|
|
createdAt?: Date | string
|
|
}
|
|
|
|
export type SessionUpdateWithoutUserInput = {
|
|
hash?: StringFieldUpdateOperationsInput | string
|
|
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
}
|
|
|
|
export type SessionUncheckedUpdateWithoutUserInput = {
|
|
id?: IntFieldUpdateOperationsInput | number
|
|
hash?: StringFieldUpdateOperationsInput | string
|
|
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
}
|
|
|
|
export type SessionUncheckedUpdateManyWithoutUserInput = {
|
|
id?: IntFieldUpdateOperationsInput | number
|
|
hash?: StringFieldUpdateOperationsInput | string
|
|
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
}
|
|
|
|
export type RepoConfigUpdateWithoutUserInput = {
|
|
repoOwner?: StringFieldUpdateOperationsInput | string
|
|
repoName?: StringFieldUpdateOperationsInput | string
|
|
isEnabled?: BoolFieldUpdateOperationsInput | boolean
|
|
giteaWebhookId?: NullableStringFieldUpdateOperationsInput | string | null
|
|
denyList?: RepoConfigUpdatedenyListInput | string[]
|
|
instanceType?: StringFieldUpdateOperationsInput | string
|
|
inactivityHours?: FloatFieldUpdateOperationsInput | number
|
|
port?: IntFieldUpdateOperationsInput | number
|
|
envVars?: JsonNullValueInput | InputJsonValue
|
|
useDockerCompose?: BoolFieldUpdateOperationsInput | boolean
|
|
composeFilePath?: NullableStringFieldUpdateOperationsInput | string | null
|
|
aptPackages?: RepoConfigUpdateaptPackagesInput | string[]
|
|
setupCommands?: RepoConfigUpdatesetupCommandsInput | string[]
|
|
buildCommands?: RepoConfigUpdatebuildCommandsInput | string[]
|
|
postBuildCommands?: RepoConfigUpdatepostBuildCommandsInput | string[]
|
|
runCommand?: NullableStringFieldUpdateOperationsInput | string | null
|
|
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
previews?: PreviewUpdateManyWithoutRepoConfigNestedInput
|
|
}
|
|
|
|
export type RepoConfigUncheckedUpdateWithoutUserInput = {
|
|
id?: IntFieldUpdateOperationsInput | number
|
|
repoOwner?: StringFieldUpdateOperationsInput | string
|
|
repoName?: StringFieldUpdateOperationsInput | string
|
|
isEnabled?: BoolFieldUpdateOperationsInput | boolean
|
|
giteaWebhookId?: NullableStringFieldUpdateOperationsInput | string | null
|
|
denyList?: RepoConfigUpdatedenyListInput | string[]
|
|
instanceType?: StringFieldUpdateOperationsInput | string
|
|
inactivityHours?: FloatFieldUpdateOperationsInput | number
|
|
port?: IntFieldUpdateOperationsInput | number
|
|
envVars?: JsonNullValueInput | InputJsonValue
|
|
useDockerCompose?: BoolFieldUpdateOperationsInput | boolean
|
|
composeFilePath?: NullableStringFieldUpdateOperationsInput | string | null
|
|
aptPackages?: RepoConfigUpdateaptPackagesInput | string[]
|
|
setupCommands?: RepoConfigUpdatesetupCommandsInput | string[]
|
|
buildCommands?: RepoConfigUpdatebuildCommandsInput | string[]
|
|
postBuildCommands?: RepoConfigUpdatepostBuildCommandsInput | string[]
|
|
runCommand?: NullableStringFieldUpdateOperationsInput | string | null
|
|
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
previews?: PreviewUncheckedUpdateManyWithoutRepoConfigNestedInput
|
|
}
|
|
|
|
export type RepoConfigUncheckedUpdateManyWithoutUserInput = {
|
|
id?: IntFieldUpdateOperationsInput | number
|
|
repoOwner?: StringFieldUpdateOperationsInput | string
|
|
repoName?: StringFieldUpdateOperationsInput | string
|
|
isEnabled?: BoolFieldUpdateOperationsInput | boolean
|
|
giteaWebhookId?: NullableStringFieldUpdateOperationsInput | string | null
|
|
denyList?: RepoConfigUpdatedenyListInput | string[]
|
|
instanceType?: StringFieldUpdateOperationsInput | string
|
|
inactivityHours?: FloatFieldUpdateOperationsInput | number
|
|
port?: IntFieldUpdateOperationsInput | number
|
|
envVars?: JsonNullValueInput | InputJsonValue
|
|
useDockerCompose?: BoolFieldUpdateOperationsInput | boolean
|
|
composeFilePath?: NullableStringFieldUpdateOperationsInput | string | null
|
|
aptPackages?: RepoConfigUpdateaptPackagesInput | string[]
|
|
setupCommands?: RepoConfigUpdatesetupCommandsInput | string[]
|
|
buildCommands?: RepoConfigUpdatebuildCommandsInput | string[]
|
|
postBuildCommands?: RepoConfigUpdatepostBuildCommandsInput | string[]
|
|
runCommand?: NullableStringFieldUpdateOperationsInput | string | null
|
|
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
}
|
|
|
|
export type NoConfigCommentUpdateWithoutUserInput = {
|
|
repoOwner?: StringFieldUpdateOperationsInput | string
|
|
repoName?: StringFieldUpdateOperationsInput | string
|
|
prNumber?: IntFieldUpdateOperationsInput | number
|
|
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
}
|
|
|
|
export type NoConfigCommentUncheckedUpdateWithoutUserInput = {
|
|
id?: IntFieldUpdateOperationsInput | number
|
|
repoOwner?: StringFieldUpdateOperationsInput | string
|
|
repoName?: StringFieldUpdateOperationsInput | string
|
|
prNumber?: IntFieldUpdateOperationsInput | number
|
|
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
}
|
|
|
|
export type NoConfigCommentUncheckedUpdateManyWithoutUserInput = {
|
|
id?: IntFieldUpdateOperationsInput | number
|
|
repoOwner?: StringFieldUpdateOperationsInput | string
|
|
repoName?: StringFieldUpdateOperationsInput | string
|
|
prNumber?: IntFieldUpdateOperationsInput | number
|
|
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
}
|
|
|
|
export type PreviewCreateManyRepoConfigInput = {
|
|
id?: number
|
|
prNumber: number
|
|
prTitle: string
|
|
commitSha: string
|
|
instanceId?: string | null
|
|
instanceIp?: string | null
|
|
port?: number
|
|
status?: $Enums.PreviewStatus
|
|
logs?: string
|
|
pid?: number | null
|
|
sshPrivateKey?: string | null
|
|
sshKeyName?: string | null
|
|
giteaCommentId?: number | null
|
|
lastActivityAt?: Date | string
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
stoppedAt?: Date | string | null
|
|
}
|
|
|
|
export type PreviewUpdateWithoutRepoConfigInput = {
|
|
prNumber?: IntFieldUpdateOperationsInput | number
|
|
prTitle?: StringFieldUpdateOperationsInput | string
|
|
commitSha?: StringFieldUpdateOperationsInput | string
|
|
instanceId?: NullableStringFieldUpdateOperationsInput | string | null
|
|
instanceIp?: NullableStringFieldUpdateOperationsInput | string | null
|
|
port?: IntFieldUpdateOperationsInput | number
|
|
status?: EnumPreviewStatusFieldUpdateOperationsInput | $Enums.PreviewStatus
|
|
logs?: StringFieldUpdateOperationsInput | string
|
|
pid?: NullableIntFieldUpdateOperationsInput | number | null
|
|
sshPrivateKey?: NullableStringFieldUpdateOperationsInput | string | null
|
|
sshKeyName?: NullableStringFieldUpdateOperationsInput | string | null
|
|
giteaCommentId?: NullableIntFieldUpdateOperationsInput | number | null
|
|
lastActivityAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
stoppedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
jobs?: JobUpdateManyWithoutPreviewNestedInput
|
|
}
|
|
|
|
export type PreviewUncheckedUpdateWithoutRepoConfigInput = {
|
|
id?: IntFieldUpdateOperationsInput | number
|
|
prNumber?: IntFieldUpdateOperationsInput | number
|
|
prTitle?: StringFieldUpdateOperationsInput | string
|
|
commitSha?: StringFieldUpdateOperationsInput | string
|
|
instanceId?: NullableStringFieldUpdateOperationsInput | string | null
|
|
instanceIp?: NullableStringFieldUpdateOperationsInput | string | null
|
|
port?: IntFieldUpdateOperationsInput | number
|
|
status?: EnumPreviewStatusFieldUpdateOperationsInput | $Enums.PreviewStatus
|
|
logs?: StringFieldUpdateOperationsInput | string
|
|
pid?: NullableIntFieldUpdateOperationsInput | number | null
|
|
sshPrivateKey?: NullableStringFieldUpdateOperationsInput | string | null
|
|
sshKeyName?: NullableStringFieldUpdateOperationsInput | string | null
|
|
giteaCommentId?: NullableIntFieldUpdateOperationsInput | number | null
|
|
lastActivityAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
stoppedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
jobs?: JobUncheckedUpdateManyWithoutPreviewNestedInput
|
|
}
|
|
|
|
export type PreviewUncheckedUpdateManyWithoutRepoConfigInput = {
|
|
id?: IntFieldUpdateOperationsInput | number
|
|
prNumber?: IntFieldUpdateOperationsInput | number
|
|
prTitle?: StringFieldUpdateOperationsInput | string
|
|
commitSha?: StringFieldUpdateOperationsInput | string
|
|
instanceId?: NullableStringFieldUpdateOperationsInput | string | null
|
|
instanceIp?: NullableStringFieldUpdateOperationsInput | string | null
|
|
port?: IntFieldUpdateOperationsInput | number
|
|
status?: EnumPreviewStatusFieldUpdateOperationsInput | $Enums.PreviewStatus
|
|
logs?: StringFieldUpdateOperationsInput | string
|
|
pid?: NullableIntFieldUpdateOperationsInput | number | null
|
|
sshPrivateKey?: NullableStringFieldUpdateOperationsInput | string | null
|
|
sshKeyName?: NullableStringFieldUpdateOperationsInput | string | null
|
|
giteaCommentId?: NullableIntFieldUpdateOperationsInput | number | null
|
|
lastActivityAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
stoppedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
}
|
|
|
|
export type JobCreateManyPreviewInput = {
|
|
id?: number
|
|
type: $Enums.JobType
|
|
status?: $Enums.JobStatus
|
|
payload?: JsonNullValueInput | InputJsonValue
|
|
error?: string | null
|
|
createdAt?: Date | string
|
|
startedAt?: Date | string | null
|
|
finishedAt?: Date | string | null
|
|
}
|
|
|
|
export type JobUpdateWithoutPreviewInput = {
|
|
type?: EnumJobTypeFieldUpdateOperationsInput | $Enums.JobType
|
|
status?: EnumJobStatusFieldUpdateOperationsInput | $Enums.JobStatus
|
|
payload?: JsonNullValueInput | InputJsonValue
|
|
error?: NullableStringFieldUpdateOperationsInput | string | null
|
|
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
startedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
finishedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
}
|
|
|
|
export type JobUncheckedUpdateWithoutPreviewInput = {
|
|
id?: IntFieldUpdateOperationsInput | number
|
|
type?: EnumJobTypeFieldUpdateOperationsInput | $Enums.JobType
|
|
status?: EnumJobStatusFieldUpdateOperationsInput | $Enums.JobStatus
|
|
payload?: JsonNullValueInput | InputJsonValue
|
|
error?: NullableStringFieldUpdateOperationsInput | string | null
|
|
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
startedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
finishedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
}
|
|
|
|
export type JobUncheckedUpdateManyWithoutPreviewInput = {
|
|
id?: IntFieldUpdateOperationsInput | number
|
|
type?: EnumJobTypeFieldUpdateOperationsInput | $Enums.JobType
|
|
status?: EnumJobStatusFieldUpdateOperationsInput | $Enums.JobStatus
|
|
payload?: JsonNullValueInput | InputJsonValue
|
|
error?: NullableStringFieldUpdateOperationsInput | string | null
|
|
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
startedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
finishedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
* Batch Payload for updateMany & deleteMany & createMany
|
|
*/
|
|
|
|
export type BatchPayload = {
|
|
count: number
|
|
}
|
|
|
|
/**
|
|
* DMMF
|
|
*/
|
|
export const dmmf: runtime.BaseDMMF
|
|
} |