diff --git a/.gitignore b/.gitignore index 0f4a1ec..874fa19 100644 --- a/.gitignore +++ b/.gitignore @@ -40,4 +40,4 @@ yarn-error.log* *.tsbuildinfo next-env.d.ts -/generated/prisma +/src/prisma/generated diff --git a/src/prisma/generated/browser.ts b/src/prisma/generated/browser.ts deleted file mode 100644 index b4d18dc..0000000 --- a/src/prisma/generated/browser.ts +++ /dev/null @@ -1,34 +0,0 @@ - -/* !!! This is code generated by Prisma. Do not edit directly. !!! */ -/* eslint-disable */ -// biome-ignore-all lint: generated file -// @ts-nocheck -/* - * This file should be your main import to use Prisma-related types and utilities in a browser. - * Use it to get access to models, enums, and input types. - * - * This file does not contain a `PrismaClient` class, nor several other helpers that are intended as server-side only. - * See `client.ts` for the standard, server-side entry point. - * - * 🟢 You can import this file directly. - */ - -import * as Prisma from './internal/prismaNamespaceBrowser' -export { Prisma } -export * as $Enums from './enums' -export * from './enums'; -/** - * Model Groups - * - */ -export type Groups = Prisma.GroupsModel -/** - * Model TotalStats - * - */ -export type TotalStats = Prisma.TotalStatsModel -/** - * Model DailyStats - * - */ -export type DailyStats = Prisma.DailyStatsModel diff --git a/src/prisma/generated/client.ts b/src/prisma/generated/client.ts deleted file mode 100644 index 8099a72..0000000 --- a/src/prisma/generated/client.ts +++ /dev/null @@ -1,61 +0,0 @@ - -/* !!! This is code generated by Prisma. Do not edit directly. !!! */ -/* eslint-disable */ -// biome-ignore-all lint: generated file -// @ts-nocheck -/* - * This file should be your main import to use Prisma. Through it you get access to all the models, enums, and input types. - * If you're looking for something you can import in the client-side of your application, please refer to the `browser.ts` file instead. - * - * 🟢 You can import this file directly. - */ - -import * as process from 'node:process' -import * as path from 'node:path' -import { fileURLToPath } from 'node:url' -globalThis['__dirname'] = path.dirname(fileURLToPath(import.meta.url)) - -import * as runtime from "@prisma/client/runtime/library" -import * as $Enums from "./enums" -import * as $Class from "./internal/class" -import * as Prisma from "./internal/prismaNamespace" - -export * as $Enums from './enums' -export * from "./enums" -/** - * ## Prisma Client - * - * Type-safe database client for TypeScript - * @example - * ``` - * const prisma = new PrismaClient() - * // Fetch zero or more Groups - * const groups = await prisma.groups.findMany() - * ``` - * - * Read more in our [docs](https://www.prisma.io/docs/reference/tools-and-interfaces/prisma-client). - */ -export const PrismaClient = $Class.getPrismaClientClass(__dirname) -export type PrismaClient = $Class.PrismaClient -export { Prisma } - - -// file annotations for bundling tools to include these files -path.join(__dirname, "libquery_engine-debian-openssl-3.0.x.so.node") -path.join(process.cwd(), "src/prisma/generated/libquery_engine-debian-openssl-3.0.x.so.node") - -/** - * Model Groups - * - */ -export type Groups = Prisma.GroupsModel -/** - * Model TotalStats - * - */ -export type TotalStats = Prisma.TotalStatsModel -/** - * Model DailyStats - * - */ -export type DailyStats = Prisma.DailyStatsModel diff --git a/src/prisma/generated/commonInputTypes.ts b/src/prisma/generated/commonInputTypes.ts deleted file mode 100644 index e3d7124..0000000 --- a/src/prisma/generated/commonInputTypes.ts +++ /dev/null @@ -1,250 +0,0 @@ - -/* !!! This is code generated by Prisma. Do not edit directly. !!! */ -/* eslint-disable */ -// biome-ignore-all lint: generated file -// @ts-nocheck -/* - * This file exports various common sort, input & filter types that are not directly linked to a particular model. - * - * 🟢 You can import this file directly. - */ - -import type * as runtime from "@prisma/client/runtime/library" -import * as $Enums from "./enums" -import type * as Prisma from "./internal/prismaNamespace" - - -export type BigIntFilter<$PrismaModel = never> = { - equals?: bigint | number | Prisma.BigIntFieldRefInput<$PrismaModel> - in?: bigint[] | number[] | Prisma.ListBigIntFieldRefInput<$PrismaModel> - notIn?: bigint[] | number[] | Prisma.ListBigIntFieldRefInput<$PrismaModel> - lt?: bigint | number | Prisma.BigIntFieldRefInput<$PrismaModel> - lte?: bigint | number | Prisma.BigIntFieldRefInput<$PrismaModel> - gt?: bigint | number | Prisma.BigIntFieldRefInput<$PrismaModel> - gte?: bigint | number | Prisma.BigIntFieldRefInput<$PrismaModel> - not?: Prisma.NestedBigIntFilter<$PrismaModel> | bigint | number -} - -export type StringFilter<$PrismaModel = never> = { - equals?: string | Prisma.StringFieldRefInput<$PrismaModel> - in?: string[] | Prisma.ListStringFieldRefInput<$PrismaModel> - notIn?: string[] | Prisma.ListStringFieldRefInput<$PrismaModel> - lt?: string | Prisma.StringFieldRefInput<$PrismaModel> - lte?: string | Prisma.StringFieldRefInput<$PrismaModel> - gt?: string | Prisma.StringFieldRefInput<$PrismaModel> - gte?: string | Prisma.StringFieldRefInput<$PrismaModel> - contains?: string | Prisma.StringFieldRefInput<$PrismaModel> - startsWith?: string | Prisma.StringFieldRefInput<$PrismaModel> - endsWith?: string | Prisma.StringFieldRefInput<$PrismaModel> - mode?: Prisma.QueryMode - not?: Prisma.NestedStringFilter<$PrismaModel> | string -} - -export type DateTimeFilter<$PrismaModel = never> = { - equals?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel> - in?: Date[] | string[] | Prisma.ListDateTimeFieldRefInput<$PrismaModel> - notIn?: Date[] | string[] | Prisma.ListDateTimeFieldRefInput<$PrismaModel> - lt?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel> - lte?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel> - gt?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel> - gte?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel> - not?: Prisma.NestedDateTimeFilter<$PrismaModel> | Date | string -} - -export type BigIntWithAggregatesFilter<$PrismaModel = never> = { - equals?: bigint | number | Prisma.BigIntFieldRefInput<$PrismaModel> - in?: bigint[] | number[] | Prisma.ListBigIntFieldRefInput<$PrismaModel> - notIn?: bigint[] | number[] | Prisma.ListBigIntFieldRefInput<$PrismaModel> - lt?: bigint | number | Prisma.BigIntFieldRefInput<$PrismaModel> - lte?: bigint | number | Prisma.BigIntFieldRefInput<$PrismaModel> - gt?: bigint | number | Prisma.BigIntFieldRefInput<$PrismaModel> - gte?: bigint | number | Prisma.BigIntFieldRefInput<$PrismaModel> - not?: Prisma.NestedBigIntWithAggregatesFilter<$PrismaModel> | bigint | number - _count?: Prisma.NestedIntFilter<$PrismaModel> - _avg?: Prisma.NestedFloatFilter<$PrismaModel> - _sum?: Prisma.NestedBigIntFilter<$PrismaModel> - _min?: Prisma.NestedBigIntFilter<$PrismaModel> - _max?: Prisma.NestedBigIntFilter<$PrismaModel> -} - -export type StringWithAggregatesFilter<$PrismaModel = never> = { - equals?: string | Prisma.StringFieldRefInput<$PrismaModel> - in?: string[] | Prisma.ListStringFieldRefInput<$PrismaModel> - notIn?: string[] | Prisma.ListStringFieldRefInput<$PrismaModel> - lt?: string | Prisma.StringFieldRefInput<$PrismaModel> - lte?: string | Prisma.StringFieldRefInput<$PrismaModel> - gt?: string | Prisma.StringFieldRefInput<$PrismaModel> - gte?: string | Prisma.StringFieldRefInput<$PrismaModel> - contains?: string | Prisma.StringFieldRefInput<$PrismaModel> - startsWith?: string | Prisma.StringFieldRefInput<$PrismaModel> - endsWith?: string | Prisma.StringFieldRefInput<$PrismaModel> - mode?: Prisma.QueryMode - not?: Prisma.NestedStringWithAggregatesFilter<$PrismaModel> | string - _count?: Prisma.NestedIntFilter<$PrismaModel> - _min?: Prisma.NestedStringFilter<$PrismaModel> - _max?: Prisma.NestedStringFilter<$PrismaModel> -} - -export type DateTimeWithAggregatesFilter<$PrismaModel = never> = { - equals?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel> - in?: Date[] | string[] | Prisma.ListDateTimeFieldRefInput<$PrismaModel> - notIn?: Date[] | string[] | Prisma.ListDateTimeFieldRefInput<$PrismaModel> - lt?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel> - lte?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel> - gt?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel> - gte?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel> - not?: Prisma.NestedDateTimeWithAggregatesFilter<$PrismaModel> | Date | string - _count?: Prisma.NestedIntFilter<$PrismaModel> - _min?: Prisma.NestedDateTimeFilter<$PrismaModel> - _max?: Prisma.NestedDateTimeFilter<$PrismaModel> -} - -export type IntFilter<$PrismaModel = never> = { - equals?: number | Prisma.IntFieldRefInput<$PrismaModel> - in?: number[] | Prisma.ListIntFieldRefInput<$PrismaModel> - notIn?: number[] | Prisma.ListIntFieldRefInput<$PrismaModel> - lt?: number | Prisma.IntFieldRefInput<$PrismaModel> - lte?: number | Prisma.IntFieldRefInput<$PrismaModel> - gt?: number | Prisma.IntFieldRefInput<$PrismaModel> - gte?: number | Prisma.IntFieldRefInput<$PrismaModel> - not?: Prisma.NestedIntFilter<$PrismaModel> | number -} - -export type IntWithAggregatesFilter<$PrismaModel = never> = { - equals?: number | Prisma.IntFieldRefInput<$PrismaModel> - in?: number[] | Prisma.ListIntFieldRefInput<$PrismaModel> - notIn?: number[] | Prisma.ListIntFieldRefInput<$PrismaModel> - lt?: number | Prisma.IntFieldRefInput<$PrismaModel> - lte?: number | Prisma.IntFieldRefInput<$PrismaModel> - gt?: number | Prisma.IntFieldRefInput<$PrismaModel> - gte?: number | Prisma.IntFieldRefInput<$PrismaModel> - not?: Prisma.NestedIntWithAggregatesFilter<$PrismaModel> | number - _count?: Prisma.NestedIntFilter<$PrismaModel> - _avg?: Prisma.NestedFloatFilter<$PrismaModel> - _sum?: Prisma.NestedIntFilter<$PrismaModel> - _min?: Prisma.NestedIntFilter<$PrismaModel> - _max?: Prisma.NestedIntFilter<$PrismaModel> -} - -export type NestedBigIntFilter<$PrismaModel = never> = { - equals?: bigint | number | Prisma.BigIntFieldRefInput<$PrismaModel> - in?: bigint[] | number[] | Prisma.ListBigIntFieldRefInput<$PrismaModel> - notIn?: bigint[] | number[] | Prisma.ListBigIntFieldRefInput<$PrismaModel> - lt?: bigint | number | Prisma.BigIntFieldRefInput<$PrismaModel> - lte?: bigint | number | Prisma.BigIntFieldRefInput<$PrismaModel> - gt?: bigint | number | Prisma.BigIntFieldRefInput<$PrismaModel> - gte?: bigint | number | Prisma.BigIntFieldRefInput<$PrismaModel> - not?: Prisma.NestedBigIntFilter<$PrismaModel> | bigint | number -} - -export type NestedStringFilter<$PrismaModel = never> = { - equals?: string | Prisma.StringFieldRefInput<$PrismaModel> - in?: string[] | Prisma.ListStringFieldRefInput<$PrismaModel> - notIn?: string[] | Prisma.ListStringFieldRefInput<$PrismaModel> - lt?: string | Prisma.StringFieldRefInput<$PrismaModel> - lte?: string | Prisma.StringFieldRefInput<$PrismaModel> - gt?: string | Prisma.StringFieldRefInput<$PrismaModel> - gte?: string | Prisma.StringFieldRefInput<$PrismaModel> - contains?: string | Prisma.StringFieldRefInput<$PrismaModel> - startsWith?: string | Prisma.StringFieldRefInput<$PrismaModel> - endsWith?: string | Prisma.StringFieldRefInput<$PrismaModel> - not?: Prisma.NestedStringFilter<$PrismaModel> | string -} - -export type NestedDateTimeFilter<$PrismaModel = never> = { - equals?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel> - in?: Date[] | string[] | Prisma.ListDateTimeFieldRefInput<$PrismaModel> - notIn?: Date[] | string[] | Prisma.ListDateTimeFieldRefInput<$PrismaModel> - lt?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel> - lte?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel> - gt?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel> - gte?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel> - not?: Prisma.NestedDateTimeFilter<$PrismaModel> | Date | string -} - -export type NestedBigIntWithAggregatesFilter<$PrismaModel = never> = { - equals?: bigint | number | Prisma.BigIntFieldRefInput<$PrismaModel> - in?: bigint[] | number[] | Prisma.ListBigIntFieldRefInput<$PrismaModel> - notIn?: bigint[] | number[] | Prisma.ListBigIntFieldRefInput<$PrismaModel> - lt?: bigint | number | Prisma.BigIntFieldRefInput<$PrismaModel> - lte?: bigint | number | Prisma.BigIntFieldRefInput<$PrismaModel> - gt?: bigint | number | Prisma.BigIntFieldRefInput<$PrismaModel> - gte?: bigint | number | Prisma.BigIntFieldRefInput<$PrismaModel> - not?: Prisma.NestedBigIntWithAggregatesFilter<$PrismaModel> | bigint | number - _count?: Prisma.NestedIntFilter<$PrismaModel> - _avg?: Prisma.NestedFloatFilter<$PrismaModel> - _sum?: Prisma.NestedBigIntFilter<$PrismaModel> - _min?: Prisma.NestedBigIntFilter<$PrismaModel> - _max?: Prisma.NestedBigIntFilter<$PrismaModel> -} - -export type NestedIntFilter<$PrismaModel = never> = { - equals?: number | Prisma.IntFieldRefInput<$PrismaModel> - in?: number[] | Prisma.ListIntFieldRefInput<$PrismaModel> - notIn?: number[] | Prisma.ListIntFieldRefInput<$PrismaModel> - lt?: number | Prisma.IntFieldRefInput<$PrismaModel> - lte?: number | Prisma.IntFieldRefInput<$PrismaModel> - gt?: number | Prisma.IntFieldRefInput<$PrismaModel> - gte?: number | Prisma.IntFieldRefInput<$PrismaModel> - not?: Prisma.NestedIntFilter<$PrismaModel> | number -} - -export type NestedFloatFilter<$PrismaModel = never> = { - equals?: number | Prisma.FloatFieldRefInput<$PrismaModel> - in?: number[] | Prisma.ListFloatFieldRefInput<$PrismaModel> - notIn?: number[] | Prisma.ListFloatFieldRefInput<$PrismaModel> - lt?: number | Prisma.FloatFieldRefInput<$PrismaModel> - lte?: number | Prisma.FloatFieldRefInput<$PrismaModel> - gt?: number | Prisma.FloatFieldRefInput<$PrismaModel> - gte?: number | Prisma.FloatFieldRefInput<$PrismaModel> - not?: Prisma.NestedFloatFilter<$PrismaModel> | number -} - -export type NestedStringWithAggregatesFilter<$PrismaModel = never> = { - equals?: string | Prisma.StringFieldRefInput<$PrismaModel> - in?: string[] | Prisma.ListStringFieldRefInput<$PrismaModel> - notIn?: string[] | Prisma.ListStringFieldRefInput<$PrismaModel> - lt?: string | Prisma.StringFieldRefInput<$PrismaModel> - lte?: string | Prisma.StringFieldRefInput<$PrismaModel> - gt?: string | Prisma.StringFieldRefInput<$PrismaModel> - gte?: string | Prisma.StringFieldRefInput<$PrismaModel> - contains?: string | Prisma.StringFieldRefInput<$PrismaModel> - startsWith?: string | Prisma.StringFieldRefInput<$PrismaModel> - endsWith?: string | Prisma.StringFieldRefInput<$PrismaModel> - not?: Prisma.NestedStringWithAggregatesFilter<$PrismaModel> | string - _count?: Prisma.NestedIntFilter<$PrismaModel> - _min?: Prisma.NestedStringFilter<$PrismaModel> - _max?: Prisma.NestedStringFilter<$PrismaModel> -} - -export type NestedDateTimeWithAggregatesFilter<$PrismaModel = never> = { - equals?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel> - in?: Date[] | string[] | Prisma.ListDateTimeFieldRefInput<$PrismaModel> - notIn?: Date[] | string[] | Prisma.ListDateTimeFieldRefInput<$PrismaModel> - lt?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel> - lte?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel> - gt?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel> - gte?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel> - not?: Prisma.NestedDateTimeWithAggregatesFilter<$PrismaModel> | Date | string - _count?: Prisma.NestedIntFilter<$PrismaModel> - _min?: Prisma.NestedDateTimeFilter<$PrismaModel> - _max?: Prisma.NestedDateTimeFilter<$PrismaModel> -} - -export type NestedIntWithAggregatesFilter<$PrismaModel = never> = { - equals?: number | Prisma.IntFieldRefInput<$PrismaModel> - in?: number[] | Prisma.ListIntFieldRefInput<$PrismaModel> - notIn?: number[] | Prisma.ListIntFieldRefInput<$PrismaModel> - lt?: number | Prisma.IntFieldRefInput<$PrismaModel> - lte?: number | Prisma.IntFieldRefInput<$PrismaModel> - gt?: number | Prisma.IntFieldRefInput<$PrismaModel> - gte?: number | Prisma.IntFieldRefInput<$PrismaModel> - not?: Prisma.NestedIntWithAggregatesFilter<$PrismaModel> | number - _count?: Prisma.NestedIntFilter<$PrismaModel> - _avg?: Prisma.NestedFloatFilter<$PrismaModel> - _sum?: Prisma.NestedIntFilter<$PrismaModel> - _min?: Prisma.NestedIntFilter<$PrismaModel> - _max?: Prisma.NestedIntFilter<$PrismaModel> -} - - diff --git a/src/prisma/generated/enums.ts b/src/prisma/generated/enums.ts deleted file mode 100644 index 043572d..0000000 --- a/src/prisma/generated/enums.ts +++ /dev/null @@ -1,15 +0,0 @@ - -/* !!! This is code generated by Prisma. Do not edit directly. !!! */ -/* eslint-disable */ -// biome-ignore-all lint: generated file -// @ts-nocheck -/* -* This file exports all enum related types from the schema. -* -* 🟢 You can import this file directly. -*/ - - - -// This file is empty because there are no enums in the schema. -export {} diff --git a/src/prisma/generated/internal/class.ts b/src/prisma/generated/internal/class.ts deleted file mode 100644 index c1ebff0..0000000 --- a/src/prisma/generated/internal/class.ts +++ /dev/null @@ -1,206 +0,0 @@ - -/* !!! This is code generated by Prisma. Do not edit directly. !!! */ -/* eslint-disable */ -// biome-ignore-all lint: generated file -// @ts-nocheck -/* - * WARNING: This is an internal file that is subject to change! - * - * 🛑 Under no circumstances should you import this file directly! 🛑 - * - * Please import the `PrismaClient` class from the `client.ts` file instead. - */ - -import * as runtime from "@prisma/client/runtime/library" -import type * as Prisma from "./prismaNamespace" - - -const config: runtime.GetPrismaClientConfig = { - "generator": { - "name": "client", - "provider": { - "fromEnvVar": null, - "value": "prisma-client" - }, - "output": { - "value": "/home/lucid/work/cove-gitea/no-twitter-bot-stats/src/prisma/generated", - "fromEnvVar": null - }, - "config": { - "engineType": "library" - }, - "binaryTargets": [ - { - "fromEnvVar": null, - "value": "debian-openssl-3.0.x", - "native": true - } - ], - "previewFeatures": [], - "sourceFilePath": "/home/lucid/work/cove-gitea/no-twitter-bot-stats/src/prisma/schema.prisma", - "isCustomOutput": true - }, - "relativePath": "..", - "clientVersion": "6.19.0", - "engineVersion": "2ba551f319ab1df4bc874a89965d8b3641056773", - "datasourceNames": [ - "db" - ], - "activeProvider": "mongodb", - "postinstall": false, - "inlineDatasources": { - "db": { - "url": { - "fromEnvVar": "DATABASE_URL", - "value": null - } - } - }, - "inlineSchema": "// This is your Prisma schema file,\n// learn more about it in the docs: https://pris.ly/d/prisma-schema\n\n// Looking for ways to speed up your queries, or scale easily with your serverless or edge functions?\n// Try Prisma Accelerate: https://pris.ly/cli/accelerate-init\n\ngenerator client {\n provider = \"prisma-client\"\n output = \"generated\"\n}\n\ndatasource db {\n provider = \"mongodb\"\n url = env(\"DATABASE_URL\")\n}\n\nmodel Groups {\n telegramID BigInt @id @map(\"_id\") @db.Long\n name String\n username String @default(\"\")\n linksDeleted BigInt @default(0) @db.Long\n createdAt DateTime @default(now())\n updatedAt DateTime @default(now()) @updatedAt\n}\n\nmodel TotalStats {\n createdAt DateTime @id @default(now()) @map(\"_id\")\n updatedAt DateTime @default(now()) @updatedAt\n linksDeleted BigInt @default(0) @db.Long\n commandResponses BigInt @default(0) @db.Long\n timesTriggered BigInt @default(0) @db.Long\n}\n\nmodel DailyStats {\n createdAt DateTime @id @default(now()) @map(\"_id\")\n updatedAt DateTime @default(now()) @updatedAt\n linksDeleted Int @default(0) @db.Int\n commandResponses Int @default(0) @db.Int\n timesTriggered Int @default(0) @db.Int\n}\n", - "inlineSchemaHash": "7ad3413e48bf8457ce655de4b457d4b5629952ca6a037b0fe084bc063b32d97d", - "copyEngine": true, - "runtimeDataModel": { - "models": {}, - "enums": {}, - "types": {} - }, - "dirname": "" -} - -config.runtimeDataModel = JSON.parse("{\"models\":{\"Groups\":{\"dbName\":null,\"schema\":null,\"fields\":[{\"name\":\"telegramID\",\"dbName\":\"_id\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":true,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"BigInt\",\"nativeType\":[\"Long\",[]],\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"name\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"username\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"String\",\"nativeType\":null,\"default\":\"\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"linksDeleted\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"BigInt\",\"nativeType\":[\"Long\",[]],\"default\":\"0\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"createdAt\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"DateTime\",\"nativeType\":null,\"default\":{\"name\":\"now\",\"args\":[]},\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"updatedAt\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"DateTime\",\"nativeType\":null,\"default\":{\"name\":\"now\",\"args\":[]},\"isGenerated\":false,\"isUpdatedAt\":true}],\"primaryKey\":null,\"uniqueFields\":[],\"uniqueIndexes\":[],\"isGenerated\":false},\"TotalStats\":{\"dbName\":null,\"schema\":null,\"fields\":[{\"name\":\"createdAt\",\"dbName\":\"_id\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":true,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"DateTime\",\"nativeType\":null,\"default\":{\"name\":\"now\",\"args\":[]},\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"updatedAt\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"DateTime\",\"nativeType\":null,\"default\":{\"name\":\"now\",\"args\":[]},\"isGenerated\":false,\"isUpdatedAt\":true},{\"name\":\"linksDeleted\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"BigInt\",\"nativeType\":[\"Long\",[]],\"default\":\"0\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"commandResponses\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"BigInt\",\"nativeType\":[\"Long\",[]],\"default\":\"0\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"timesTriggered\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"BigInt\",\"nativeType\":[\"Long\",[]],\"default\":\"0\",\"isGenerated\":false,\"isUpdatedAt\":false}],\"primaryKey\":null,\"uniqueFields\":[],\"uniqueIndexes\":[],\"isGenerated\":false},\"DailyStats\":{\"dbName\":null,\"schema\":null,\"fields\":[{\"name\":\"createdAt\",\"dbName\":\"_id\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":true,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"DateTime\",\"nativeType\":null,\"default\":{\"name\":\"now\",\"args\":[]},\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"updatedAt\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"DateTime\",\"nativeType\":null,\"default\":{\"name\":\"now\",\"args\":[]},\"isGenerated\":false,\"isUpdatedAt\":true},{\"name\":\"linksDeleted\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"Int\",\"nativeType\":[\"Int\",[]],\"default\":0,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"commandResponses\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"Int\",\"nativeType\":[\"Int\",[]],\"default\":0,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"timesTriggered\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"Int\",\"nativeType\":[\"Int\",[]],\"default\":0,\"isGenerated\":false,\"isUpdatedAt\":false}],\"primaryKey\":null,\"uniqueFields\":[],\"uniqueIndexes\":[],\"isGenerated\":false}},\"enums\":{},\"types\":{}}") -config.engineWasm = undefined -config.compilerWasm = undefined - - - - -export type LogOptions = - 'log' extends keyof ClientOptions ? ClientOptions['log'] extends Array ? Prisma.GetEvents : never : never - -export interface PrismaClientConstructor { - /** - * ## Prisma Client - * - * Type-safe database client for TypeScript - * @example - * ``` - * const prisma = new PrismaClient() - * // Fetch zero or more Groups - * const groups = await prisma.groups.findMany() - * ``` - * - * Read more in our [docs](https://www.prisma.io/docs/reference/tools-and-interfaces/prisma-client). - */ - - new < - Options extends Prisma.PrismaClientOptions = Prisma.PrismaClientOptions, - LogOpts extends LogOptions = LogOptions, - OmitOpts extends Prisma.PrismaClientOptions['omit'] = Options extends { omit: infer U } ? U : Prisma.PrismaClientOptions['omit'], - ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs - >(options?: Prisma.Subset ): PrismaClient -} - -/** - * ## Prisma Client - * - * Type-safe database client for TypeScript - * @example - * ``` - * const prisma = new PrismaClient() - * // Fetch zero or more Groups - * const groups = await prisma.groups.findMany() - * ``` - * - * Read more in our [docs](https://www.prisma.io/docs/reference/tools-and-interfaces/prisma-client). - */ - -export interface PrismaClient< - in LogOpts extends Prisma.LogLevel = never, - in out OmitOpts extends Prisma.PrismaClientOptions['omit'] = Prisma.PrismaClientOptions['omit'], - in out ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs -> { - [K: symbol]: { types: Prisma.TypeMap['other'] } - - $on(eventType: V, callback: (event: V extends 'query' ? Prisma.QueryEvent : Prisma.LogEvent) => void): PrismaClient; - - /** - * Connect with the database - */ - $connect(): runtime.Types.Utils.JsPromise; - - /** - * Disconnect from the database - */ - $disconnect(): runtime.Types.Utils.JsPromise; - -/** - * 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

[]>(arg: [...P]): runtime.Types.Utils.JsPromise> - - $transaction(fn: (prisma: Omit) => runtime.Types.Utils.JsPromise, options?: { maxWait?: number, timeout?: number }): runtime.Types.Utils.JsPromise - - /** - * Executes a raw MongoDB command and returns the result of it. - * @example - * ``` - * const user = await prisma.$runCommandRaw({ - * aggregate: 'User', - * pipeline: [{ $match: { name: 'Bob' } }, { $project: { email: true, _id: false } }], - * explain: false, - * }) - * ``` - * - * Read more in our [docs](https://www.prisma.io/docs/reference/tools-and-interfaces/prisma-client/raw-database-access). - */ - $runCommandRaw(command: Prisma.InputJsonObject): Prisma.PrismaPromise - - $extends: runtime.Types.Extensions.ExtendsHook<"extends", Prisma.TypeMapCb, ExtArgs, runtime.Types.Utils.Call, { - extArgs: ExtArgs - }>> - - /** - * `prisma.groups`: Exposes CRUD operations for the **Groups** model. - * Example usage: - * ```ts - * // Fetch zero or more Groups - * const groups = await prisma.groups.findMany() - * ``` - */ - get groups(): Prisma.GroupsDelegate; - - /** - * `prisma.totalStats`: Exposes CRUD operations for the **TotalStats** model. - * Example usage: - * ```ts - * // Fetch zero or more TotalStats - * const totalStats = await prisma.totalStats.findMany() - * ``` - */ - get totalStats(): Prisma.TotalStatsDelegate; - - /** - * `prisma.dailyStats`: Exposes CRUD operations for the **DailyStats** model. - * Example usage: - * ```ts - * // Fetch zero or more DailyStats - * const dailyStats = await prisma.dailyStats.findMany() - * ``` - */ - get dailyStats(): Prisma.DailyStatsDelegate; -} - -export function getPrismaClientClass(dirname: string): PrismaClientConstructor { - config.dirname = dirname - return runtime.getPrismaClient(config) as unknown as PrismaClientConstructor -} diff --git a/src/prisma/generated/internal/prismaNamespace.ts b/src/prisma/generated/internal/prismaNamespace.ts deleted file mode 100644 index acc8d8c..0000000 --- a/src/prisma/generated/internal/prismaNamespace.ts +++ /dev/null @@ -1,930 +0,0 @@ - -/* !!! This is code generated by Prisma. Do not edit directly. !!! */ -/* eslint-disable */ -// biome-ignore-all lint: generated file -// @ts-nocheck -/* - * WARNING: This is an internal file that is subject to change! - * - * 🛑 Under no circumstances should you import this file directly! 🛑 - * - * All exports from this file are wrapped under a `Prisma` namespace object in the client.ts file. - * While this enables partial backward compatibility, it is not part of the stable public API. - * - * If you are looking for your Models, Enums, and Input Types, please import them from the respective - * model files in the `model` directory! - */ - -import * as runtime from "@prisma/client/runtime/library" -import type * as Prisma from "../models" -import { type PrismaClient } from "./class" - -export type * from '../models' - -export type DMMF = typeof runtime.DMMF - -export type PrismaPromise = runtime.Types.Public.PrismaPromise - -/** - * Prisma Errors - */ - -export const PrismaClientKnownRequestError = runtime.PrismaClientKnownRequestError -export type PrismaClientKnownRequestError = runtime.PrismaClientKnownRequestError - -export const PrismaClientUnknownRequestError = runtime.PrismaClientUnknownRequestError -export type PrismaClientUnknownRequestError = runtime.PrismaClientUnknownRequestError - -export const PrismaClientRustPanicError = runtime.PrismaClientRustPanicError -export type PrismaClientRustPanicError = runtime.PrismaClientRustPanicError - -export const PrismaClientInitializationError = runtime.PrismaClientInitializationError -export type PrismaClientInitializationError = runtime.PrismaClientInitializationError - -export const PrismaClientValidationError = runtime.PrismaClientValidationError -export type PrismaClientValidationError = runtime.PrismaClientValidationError - -/** - * Re-export of sql-template-tag - */ -export const sql = runtime.sqltag -export const empty = runtime.empty -export const join = runtime.join -export const raw = runtime.raw -export const Sql = runtime.Sql -export type Sql = runtime.Sql - - - -/** - * Decimal.js - */ -export const Decimal = runtime.Decimal -export type Decimal = runtime.Decimal - -export type DecimalJsLike = runtime.DecimalJsLike - -/** - * Metrics - */ -export type Metrics = runtime.Metrics -export type Metric = runtime.Metric -export type MetricHistogram = runtime.MetricHistogram -export type MetricHistogramBucket = runtime.MetricHistogramBucket - -/** -* Extensions -*/ -export type Extension = runtime.Types.Extensions.UserArgs -export const getExtensionContext = runtime.Extensions.getExtensionContext -export type Args = runtime.Types.Public.Args -export type Payload = runtime.Types.Public.Payload -export type Result = runtime.Types.Public.Result -export type Exact = runtime.Types.Public.Exact - -export type PrismaVersion = { - client: string - engine: string -} - -/** - * Prisma Client JS version: 6.19.0 - * Query Engine version: 2ba551f319ab1df4bc874a89965d8b3641056773 - */ -export const prismaVersion: PrismaVersion = { - client: "6.19.0", - engine: "2ba551f319ab1df4bc874a89965d8b3641056773" -} - -/** - * Utility Types - */ - -export type Bytes = runtime.Bytes -export type JsonObject = runtime.JsonObject -export type JsonArray = runtime.JsonArray -export type JsonValue = runtime.JsonValue -export type InputJsonObject = runtime.InputJsonObject -export type InputJsonArray = runtime.InputJsonArray -export type InputJsonValue = runtime.InputJsonValue - - -export const NullTypes = { - DbNull: runtime.objectEnumValues.classes.DbNull as (new (secret: never) => typeof runtime.objectEnumValues.instances.DbNull), - JsonNull: runtime.objectEnumValues.classes.JsonNull as (new (secret: never) => typeof runtime.objectEnumValues.instances.JsonNull), - AnyNull: runtime.objectEnumValues.classes.AnyNull as (new (secret: never) => typeof runtime.objectEnumValues.instances.AnyNull), -} -/** - * Helper for filtering JSON entries that have `null` on the database (empty on the db) - * - * @see https://www.prisma.io/docs/concepts/components/prisma-client/working-with-fields/working-with-json-fields#filtering-on-a-json-field - */ -export const DbNull = runtime.objectEnumValues.instances.DbNull -/** - * Helper for filtering JSON entries that have JSON `null` values (not empty on the db) - * - * @see https://www.prisma.io/docs/concepts/components/prisma-client/working-with-fields/working-with-json-fields#filtering-on-a-json-field - */ -export const JsonNull = runtime.objectEnumValues.instances.JsonNull -/** - * Helper for filtering JSON entries that are `Prisma.DbNull` or `Prisma.JsonNull` - * - * @see https://www.prisma.io/docs/concepts/components/prisma-client/working-with-fields/working-with-json-fields#filtering-on-a-json-field - */ -export const AnyNull = runtime.objectEnumValues.instances.AnyNull - - -type SelectAndInclude = { - select: any - include: any -} - -type SelectAndOmit = { - select: any - omit: any -} - -/** - * From T, pick a set of properties whose keys are in the union K - */ -type Prisma__Pick = { - [P in K]: T[P]; -}; - -export type Enumerable = T | Array; - -/** - * Subset - * @desc From `T` pick properties that exist in `U`. Simple version of Intersection - */ -export type Subset = { - [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 = { - [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 = { - [key in keyof T]: key extends keyof U ? T[key] : never -} & - K - -type Without = { [P in Exclude]?: never }; - -/** - * XOR is needed to have a real mutually exclusive union type - * https://stackoverflow.com/questions/42123407/does-typescript-support-mutually-exclusive-types - */ -export type XOR = - T extends object ? - U extends object ? - (Without & U) | (Without & T) - : U : T - - -/** - * Is T a Record? - */ -type IsObject = T extends Array -? 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 Array ? U : T - -/** - * From ts-toolbelt - */ - -type __Either = Omit & - { - // Merge all but K - [P in K]: Prisma__Pick // With K possibilities - }[K] - -type EitherStrict = Strict<__Either> - -type EitherLoose = ComputeRaw<__Either> - -type _Either< - O extends object, - K extends Key, - strict extends Boolean -> = { - 1: EitherStrict - 0: EitherLoose -}[strict] - -export type Either< - O extends object, - K extends Key, - strict extends Boolean = 1 -> = O extends unknown ? _Either : never - -export type Union = any - -export type PatchUndefined = { - [K in keyof O]: O[K] extends undefined ? At : O[K] -} & {} - -/** Helper Types for "Merge" **/ -export type IntersectOf = ( - U extends unknown ? (k: U) => void : never -) extends (k: infer I) => void - ? I - : never - -export type Overwrite = { - [K in keyof O]: K extends keyof O1 ? O1[K] : O[K]; -} & {}; - -type _Merge = IntersectOf; -}>>; - -type Key = string | number | symbol; -type AtStrict = O[K & keyof O]; -type AtLoose = O extends unknown ? AtStrict : never; -export type At = { - 1: AtStrict; - 0: AtLoose; -}[strict]; - -export type ComputeRaw = A extends Function ? A : { - [K in keyof A]: A[K]; -} & {}; - -export type OptionalFlat = { - [K in keyof O]?: O[K]; -} & {}; - -type _Record = { - [P in K]: T; -}; - -// cause typescript not to expand types and preserve names -type NoExpand = T extends unknown ? T : never; - -// this type assumes the passed object is entirely optional -export type AtLeast = 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 extends unknown ? U & OptionalFlat<_Record, keyof U>, never>> : never; - -export type Strict = ComputeRaw<_Strict>; -/** End Helper Types for "Merge" **/ - -export type Merge = ComputeRaw<_Merge>>; - -export type Boolean = True | False - -export type True = 1 - -export type False = 0 - -export type Not = { - 0: 1 - 1: 0 -}[B] - -export type Extends = [A1] extends [never] - ? 0 // anything `never` is false - : A1 extends A2 - ? 1 - : 0 - -export type Has = Not< - Extends, U1> -> - -export type Or = { - 0: { - 0: 0 - 1: 1 - } - 1: { - 0: 1 - 1: 1 - } -}[B1][B2] - -export type Keys = U extends unknown ? keyof U : never - -export type GetScalarType = O extends object ? { - [P in keyof T]: P extends keyof O - ? O[P] - : never -} : never - -type FieldPaths< - T, - U = Omit -> = IsObject extends True ? U : T - -export type GetHavingFields = { - [K in keyof T]: Or< - Or, 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 extends object ? Merge> : never> - : never - : {} extends FieldPaths - ? never - : K -}[keyof T] - -/** - * Convert tuple to union - */ -type _TupleToUnion = T extends (infer E)[] ? E : never -type TupleToUnion = _TupleToUnion -export type MaybeTupleToUnion = T extends any[] ? TupleToUnion : T - -/** - * Like `Pick`, but additionally can also accept an array of keys - */ -export type PickEnumerable | keyof T> = Prisma__Pick> - -/** - * Exclude all keys with underscores - */ -export type ExcludeUnderscoreKeys = T extends `_${string}` ? never : T - - -export type FieldRef = runtime.FieldRef - -type FieldRefInputType = Model extends never ? never : FieldRef - - -export const ModelName = { - Groups: 'Groups', - TotalStats: 'TotalStats', - DailyStats: 'DailyStats' -} as const - -export type ModelName = (typeof ModelName)[keyof typeof ModelName] - - - -export interface TypeMapCb extends runtime.Types.Utils.Fn<{extArgs: runtime.Types.Extensions.InternalArgs }, runtime.Types.Utils.Record> { - returns: TypeMap -} - -export type TypeMap = { - globalOmitOptions: { - omit: GlobalOmitOptions - } - meta: { - modelProps: "groups" | "totalStats" | "dailyStats" - txIsolationLevel: never - } - model: { - Groups: { - payload: Prisma.$GroupsPayload - fields: Prisma.GroupsFieldRefs - operations: { - findUnique: { - args: Prisma.GroupsFindUniqueArgs - result: runtime.Types.Utils.PayloadToResult | null - } - findUniqueOrThrow: { - args: Prisma.GroupsFindUniqueOrThrowArgs - result: runtime.Types.Utils.PayloadToResult - } - findFirst: { - args: Prisma.GroupsFindFirstArgs - result: runtime.Types.Utils.PayloadToResult | null - } - findFirstOrThrow: { - args: Prisma.GroupsFindFirstOrThrowArgs - result: runtime.Types.Utils.PayloadToResult - } - findMany: { - args: Prisma.GroupsFindManyArgs - result: runtime.Types.Utils.PayloadToResult[] - } - create: { - args: Prisma.GroupsCreateArgs - result: runtime.Types.Utils.PayloadToResult - } - createMany: { - args: Prisma.GroupsCreateManyArgs - result: BatchPayload - } - delete: { - args: Prisma.GroupsDeleteArgs - result: runtime.Types.Utils.PayloadToResult - } - update: { - args: Prisma.GroupsUpdateArgs - result: runtime.Types.Utils.PayloadToResult - } - deleteMany: { - args: Prisma.GroupsDeleteManyArgs - result: BatchPayload - } - updateMany: { - args: Prisma.GroupsUpdateManyArgs - result: BatchPayload - } - upsert: { - args: Prisma.GroupsUpsertArgs - result: runtime.Types.Utils.PayloadToResult - } - aggregate: { - args: Prisma.GroupsAggregateArgs - result: runtime.Types.Utils.Optional - } - groupBy: { - args: Prisma.GroupsGroupByArgs - result: runtime.Types.Utils.Optional[] - } - findRaw: { - args: Prisma.GroupsFindRawArgs - result: Prisma.JsonObject - } - aggregateRaw: { - args: Prisma.GroupsAggregateRawArgs - result: Prisma.JsonObject - } - count: { - args: Prisma.GroupsCountArgs - result: runtime.Types.Utils.Optional | number - } - } - } - TotalStats: { - payload: Prisma.$TotalStatsPayload - fields: Prisma.TotalStatsFieldRefs - operations: { - findUnique: { - args: Prisma.TotalStatsFindUniqueArgs - result: runtime.Types.Utils.PayloadToResult | null - } - findUniqueOrThrow: { - args: Prisma.TotalStatsFindUniqueOrThrowArgs - result: runtime.Types.Utils.PayloadToResult - } - findFirst: { - args: Prisma.TotalStatsFindFirstArgs - result: runtime.Types.Utils.PayloadToResult | null - } - findFirstOrThrow: { - args: Prisma.TotalStatsFindFirstOrThrowArgs - result: runtime.Types.Utils.PayloadToResult - } - findMany: { - args: Prisma.TotalStatsFindManyArgs - result: runtime.Types.Utils.PayloadToResult[] - } - create: { - args: Prisma.TotalStatsCreateArgs - result: runtime.Types.Utils.PayloadToResult - } - createMany: { - args: Prisma.TotalStatsCreateManyArgs - result: BatchPayload - } - delete: { - args: Prisma.TotalStatsDeleteArgs - result: runtime.Types.Utils.PayloadToResult - } - update: { - args: Prisma.TotalStatsUpdateArgs - result: runtime.Types.Utils.PayloadToResult - } - deleteMany: { - args: Prisma.TotalStatsDeleteManyArgs - result: BatchPayload - } - updateMany: { - args: Prisma.TotalStatsUpdateManyArgs - result: BatchPayload - } - upsert: { - args: Prisma.TotalStatsUpsertArgs - result: runtime.Types.Utils.PayloadToResult - } - aggregate: { - args: Prisma.TotalStatsAggregateArgs - result: runtime.Types.Utils.Optional - } - groupBy: { - args: Prisma.TotalStatsGroupByArgs - result: runtime.Types.Utils.Optional[] - } - findRaw: { - args: Prisma.TotalStatsFindRawArgs - result: Prisma.JsonObject - } - aggregateRaw: { - args: Prisma.TotalStatsAggregateRawArgs - result: Prisma.JsonObject - } - count: { - args: Prisma.TotalStatsCountArgs - result: runtime.Types.Utils.Optional | number - } - } - } - DailyStats: { - payload: Prisma.$DailyStatsPayload - fields: Prisma.DailyStatsFieldRefs - operations: { - findUnique: { - args: Prisma.DailyStatsFindUniqueArgs - result: runtime.Types.Utils.PayloadToResult | null - } - findUniqueOrThrow: { - args: Prisma.DailyStatsFindUniqueOrThrowArgs - result: runtime.Types.Utils.PayloadToResult - } - findFirst: { - args: Prisma.DailyStatsFindFirstArgs - result: runtime.Types.Utils.PayloadToResult | null - } - findFirstOrThrow: { - args: Prisma.DailyStatsFindFirstOrThrowArgs - result: runtime.Types.Utils.PayloadToResult - } - findMany: { - args: Prisma.DailyStatsFindManyArgs - result: runtime.Types.Utils.PayloadToResult[] - } - create: { - args: Prisma.DailyStatsCreateArgs - result: runtime.Types.Utils.PayloadToResult - } - createMany: { - args: Prisma.DailyStatsCreateManyArgs - result: BatchPayload - } - delete: { - args: Prisma.DailyStatsDeleteArgs - result: runtime.Types.Utils.PayloadToResult - } - update: { - args: Prisma.DailyStatsUpdateArgs - result: runtime.Types.Utils.PayloadToResult - } - deleteMany: { - args: Prisma.DailyStatsDeleteManyArgs - result: BatchPayload - } - updateMany: { - args: Prisma.DailyStatsUpdateManyArgs - result: BatchPayload - } - upsert: { - args: Prisma.DailyStatsUpsertArgs - result: runtime.Types.Utils.PayloadToResult - } - aggregate: { - args: Prisma.DailyStatsAggregateArgs - result: runtime.Types.Utils.Optional - } - groupBy: { - args: Prisma.DailyStatsGroupByArgs - result: runtime.Types.Utils.Optional[] - } - findRaw: { - args: Prisma.DailyStatsFindRawArgs - result: Prisma.JsonObject - } - aggregateRaw: { - args: Prisma.DailyStatsAggregateRawArgs - result: Prisma.JsonObject - } - count: { - args: Prisma.DailyStatsCountArgs - result: runtime.Types.Utils.Optional | number - } - } - } - } -} & { - other: { - payload: any - operations: { - $runCommandRaw: { - args: Prisma.InputJsonObject, - result: JsonObject - } - } - } -} - -/** - * Enums - */ - -export const GroupsScalarFieldEnum = { - telegramID: 'telegramID', - name: 'name', - username: 'username', - linksDeleted: 'linksDeleted', - createdAt: 'createdAt', - updatedAt: 'updatedAt' -} as const - -export type GroupsScalarFieldEnum = (typeof GroupsScalarFieldEnum)[keyof typeof GroupsScalarFieldEnum] - - -export const TotalStatsScalarFieldEnum = { - createdAt: 'createdAt', - updatedAt: 'updatedAt', - linksDeleted: 'linksDeleted', - commandResponses: 'commandResponses', - timesTriggered: 'timesTriggered' -} as const - -export type TotalStatsScalarFieldEnum = (typeof TotalStatsScalarFieldEnum)[keyof typeof TotalStatsScalarFieldEnum] - - -export const DailyStatsScalarFieldEnum = { - createdAt: 'createdAt', - updatedAt: 'updatedAt', - linksDeleted: 'linksDeleted', - commandResponses: 'commandResponses', - timesTriggered: 'timesTriggered' -} as const - -export type DailyStatsScalarFieldEnum = (typeof DailyStatsScalarFieldEnum)[keyof typeof DailyStatsScalarFieldEnum] - - -export const SortOrder = { - asc: 'asc', - desc: 'desc' -} as const - -export type SortOrder = (typeof SortOrder)[keyof typeof SortOrder] - - -export const QueryMode = { - default: 'default', - insensitive: 'insensitive' -} as const - -export type QueryMode = (typeof QueryMode)[keyof typeof QueryMode] - - - -/** - * Field references - */ - - -/** - * Reference to a field of type 'BigInt' - */ -export type BigIntFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'BigInt'> - - - -/** - * Reference to a field of type 'BigInt[]' - */ -export type ListBigIntFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'BigInt[]'> - - - -/** - * Reference to a field of type 'String' - */ -export type StringFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'String'> - - - -/** - * Reference to a field of type 'String[]' - */ -export type ListStringFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'String[]'> - - - -/** - * Reference to a field of type 'DateTime' - */ -export type DateTimeFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'DateTime'> - - - -/** - * Reference to a field of type 'DateTime[]' - */ -export type ListDateTimeFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'DateTime[]'> - - - -/** - * Reference to a field of type 'Int' - */ -export type IntFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'Int'> - - - -/** - * Reference to a field of type 'Int[]' - */ -export type ListIntFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'Int[]'> - - - -/** - * Reference to a field of type 'Float' - */ -export type FloatFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'Float'> - - - -/** - * Reference to a field of type 'Float[]' - */ -export type ListFloatFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'Float[]'> - - -/** - * Batch Payload for updateMany & deleteMany & createMany - */ -export type BatchPayload = { - count: number -} - - -export type Datasource = { - url?: string -} -export type Datasources = { - db?: Datasource -} - -export const defineExtension = runtime.Extensions.defineExtension as unknown as runtime.Types.Extensions.ExtendsHook<"define", TypeMapCb, runtime.Types.Extensions.DefaultArgs> -export type DefaultPrismaClient = PrismaClient -export type ErrorFormat = 'pretty' | 'colorless' | 'minimal' -export interface PrismaClientOptions { - /** - * Overwrites the datasource url from your schema.prisma file - */ - datasources?: Datasources - /** - * Overwrites the datasource url from your schema.prisma file - */ - datasourceUrl?: string - /** - * @default "colorless" - */ - errorFormat?: ErrorFormat - /** - * @example - * ``` - * // Shorthand for `emit: 'stdout'` - * log: ['query', 'info', 'warn', 'error'] - * - * // Emit as events only - * log: [ - * { emit: 'event', level: 'query' }, - * { emit: 'event', level: 'info' }, - * { emit: 'event', level: 'warn' } - * { emit: 'event', level: 'error' } - * ] - * - * / Emit as events and log to stdout - * og: [ - * { emit: 'stdout', level: 'query' }, - * { emit: 'stdout', level: 'info' }, - * { emit: 'stdout', level: 'warn' } - * { emit: 'stdout', level: 'error' } - * - * ``` - * Read more in our [docs](https://www.prisma.io/docs/reference/tools-and-interfaces/prisma-client/logging#the-log-option). - */ - log?: (LogLevel | LogDefinition)[] - /** - * The default values for transactionOptions - * maxWait ?= 2000 - * timeout ?= 5000 - */ - transactionOptions?: { - maxWait?: number - timeout?: number - } - /** - * Instance of a Driver Adapter, e.g., like one provided by `@prisma/adapter-planetscale` - */ - adapter?: runtime.SqlDriverAdapterFactory | null - /** - * Global configuration for omitting model fields by default. - * - * @example - * ``` - * const prisma = new PrismaClient({ - * omit: { - * user: { - * password: true - * } - * } - * }) - * ``` - */ - omit?: GlobalOmitConfig -} -export type GlobalOmitConfig = { - groups?: Prisma.GroupsOmit - totalStats?: Prisma.TotalStatsOmit - dailyStats?: Prisma.DailyStatsOmit -} - -/* Types for Logging */ -export type LogLevel = 'info' | 'query' | 'warn' | 'error' -export type LogDefinition = { - level: LogLevel - emit: 'stdout' | 'event' -} - -export type CheckIsLogLevel = T extends LogLevel ? T : never; - -export type GetLogType = CheckIsLogLevel< - T extends LogDefinition ? T['level'] : T ->; - -export type GetEvents = T extends Array - ? GetLogType - : never; - -export type QueryEvent = { - timestamp: Date - query: string - params: string - duration: number - target: string -} - -export type LogEvent = { - timestamp: Date - message: string - target: string -} -/* End Types for Logging */ - - -export type PrismaAction = - | 'findUnique' - | 'findUniqueOrThrow' - | 'findMany' - | 'findFirst' - | 'findFirstOrThrow' - | 'create' - | 'createMany' - | 'createManyAndReturn' - | 'update' - | 'updateMany' - | 'updateManyAndReturn' - | 'upsert' - | 'delete' - | 'deleteMany' - | 'executeRaw' - | 'queryRaw' - | 'aggregate' - | 'count' - | 'runCommandRaw' - | 'findRaw' - | 'groupBy' - -/** - * `PrismaClient` proxy available in interactive transactions. - */ -export type TransactionClient = Omit - diff --git a/src/prisma/generated/internal/prismaNamespaceBrowser.ts b/src/prisma/generated/internal/prismaNamespaceBrowser.ts deleted file mode 100644 index 00ce5aa..0000000 --- a/src/prisma/generated/internal/prismaNamespaceBrowser.ts +++ /dev/null @@ -1,111 +0,0 @@ - -/* !!! This is code generated by Prisma. Do not edit directly. !!! */ -/* eslint-disable */ -// biome-ignore-all lint: generated file -// @ts-nocheck -/* - * WARNING: This is an internal file that is subject to change! - * - * 🛑 Under no circumstances should you import this file directly! 🛑 - * - * All exports from this file are wrapped under a `Prisma` namespace object in the browser.ts file. - * While this enables partial backward compatibility, it is not part of the stable public API. - * - * If you are looking for your Models, Enums, and Input Types, please import them from the respective - * model files in the `model` directory! - */ - -import * as runtime from "@prisma/client/runtime/index-browser" - -export type * from '../models' -export type * from './prismaNamespace' - -export const Decimal = runtime.Decimal - - -export const NullTypes = { - DbNull: runtime.objectEnumValues.classes.DbNull as (new (secret: never) => typeof runtime.objectEnumValues.instances.DbNull), - JsonNull: runtime.objectEnumValues.classes.JsonNull as (new (secret: never) => typeof runtime.objectEnumValues.instances.JsonNull), - AnyNull: runtime.objectEnumValues.classes.AnyNull as (new (secret: never) => typeof runtime.objectEnumValues.instances.AnyNull), -} -/** - * Helper for filtering JSON entries that have `null` on the database (empty on the db) - * - * @see https://www.prisma.io/docs/concepts/components/prisma-client/working-with-fields/working-with-json-fields#filtering-on-a-json-field - */ -export const DbNull = runtime.objectEnumValues.instances.DbNull -/** - * Helper for filtering JSON entries that have JSON `null` values (not empty on the db) - * - * @see https://www.prisma.io/docs/concepts/components/prisma-client/working-with-fields/working-with-json-fields#filtering-on-a-json-field - */ -export const JsonNull = runtime.objectEnumValues.instances.JsonNull -/** - * Helper for filtering JSON entries that are `Prisma.DbNull` or `Prisma.JsonNull` - * - * @see https://www.prisma.io/docs/concepts/components/prisma-client/working-with-fields/working-with-json-fields#filtering-on-a-json-field - */ -export const AnyNull = runtime.objectEnumValues.instances.AnyNull - - -export const ModelName = { - Groups: 'Groups', - TotalStats: 'TotalStats', - DailyStats: 'DailyStats' -} as const - -export type ModelName = (typeof ModelName)[keyof typeof ModelName] - -/* - * Enums - */ - -export const GroupsScalarFieldEnum = { - telegramID: 'telegramID', - name: 'name', - username: 'username', - linksDeleted: 'linksDeleted', - createdAt: 'createdAt', - updatedAt: 'updatedAt' -} as const - -export type GroupsScalarFieldEnum = (typeof GroupsScalarFieldEnum)[keyof typeof GroupsScalarFieldEnum] - - -export const TotalStatsScalarFieldEnum = { - createdAt: 'createdAt', - updatedAt: 'updatedAt', - linksDeleted: 'linksDeleted', - commandResponses: 'commandResponses', - timesTriggered: 'timesTriggered' -} as const - -export type TotalStatsScalarFieldEnum = (typeof TotalStatsScalarFieldEnum)[keyof typeof TotalStatsScalarFieldEnum] - - -export const DailyStatsScalarFieldEnum = { - createdAt: 'createdAt', - updatedAt: 'updatedAt', - linksDeleted: 'linksDeleted', - commandResponses: 'commandResponses', - timesTriggered: 'timesTriggered' -} as const - -export type DailyStatsScalarFieldEnum = (typeof DailyStatsScalarFieldEnum)[keyof typeof DailyStatsScalarFieldEnum] - - -export const SortOrder = { - asc: 'asc', - desc: 'desc' -} as const - -export type SortOrder = (typeof SortOrder)[keyof typeof SortOrder] - - -export const QueryMode = { - default: 'default', - insensitive: 'insensitive' -} as const - -export type QueryMode = (typeof QueryMode)[keyof typeof QueryMode] - diff --git a/src/prisma/generated/libquery_engine-debian-openssl-3.0.x.so.node b/src/prisma/generated/libquery_engine-debian-openssl-3.0.x.so.node deleted file mode 100755 index ed0a9c2..0000000 Binary files a/src/prisma/generated/libquery_engine-debian-openssl-3.0.x.so.node and /dev/null differ diff --git a/src/prisma/generated/models.ts b/src/prisma/generated/models.ts deleted file mode 100644 index ec78138..0000000 --- a/src/prisma/generated/models.ts +++ /dev/null @@ -1,14 +0,0 @@ - -/* !!! This is code generated by Prisma. Do not edit directly. !!! */ -/* eslint-disable */ -// biome-ignore-all lint: generated file -// @ts-nocheck -/* - * This is a barrel export file for all models and their related types. - * - * 🟢 You can import this file directly. - */ -export type * from './models/Groups' -export type * from './models/TotalStats' -export type * from './models/DailyStats' -export type * from './commonInputTypes' \ No newline at end of file diff --git a/src/prisma/generated/models/DailyStats.ts b/src/prisma/generated/models/DailyStats.ts deleted file mode 100644 index d4a051a..0000000 --- a/src/prisma/generated/models/DailyStats.ts +++ /dev/null @@ -1,1141 +0,0 @@ - -/* !!! This is code generated by Prisma. Do not edit directly. !!! */ -/* eslint-disable */ -// biome-ignore-all lint: generated file -// @ts-nocheck -/* - * This file exports the `DailyStats` model and its related types. - * - * 🟢 You can import this file directly. - */ -import type * as runtime from "@prisma/client/runtime/library" -import type * as $Enums from "../enums" -import type * as Prisma from "../internal/prismaNamespace" - -/** - * Model DailyStats - * - */ -export type DailyStatsModel = runtime.Types.Result.DefaultSelection - -export type AggregateDailyStats = { - _count: DailyStatsCountAggregateOutputType | null - _avg: DailyStatsAvgAggregateOutputType | null - _sum: DailyStatsSumAggregateOutputType | null - _min: DailyStatsMinAggregateOutputType | null - _max: DailyStatsMaxAggregateOutputType | null -} - -export type DailyStatsAvgAggregateOutputType = { - linksDeleted: number | null - commandResponses: number | null - timesTriggered: number | null -} - -export type DailyStatsSumAggregateOutputType = { - linksDeleted: number | null - commandResponses: number | null - timesTriggered: number | null -} - -export type DailyStatsMinAggregateOutputType = { - createdAt: Date | null - updatedAt: Date | null - linksDeleted: number | null - commandResponses: number | null - timesTriggered: number | null -} - -export type DailyStatsMaxAggregateOutputType = { - createdAt: Date | null - updatedAt: Date | null - linksDeleted: number | null - commandResponses: number | null - timesTriggered: number | null -} - -export type DailyStatsCountAggregateOutputType = { - createdAt: number - updatedAt: number - linksDeleted: number - commandResponses: number - timesTriggered: number - _all: number -} - - -export type DailyStatsAvgAggregateInputType = { - linksDeleted?: true - commandResponses?: true - timesTriggered?: true -} - -export type DailyStatsSumAggregateInputType = { - linksDeleted?: true - commandResponses?: true - timesTriggered?: true -} - -export type DailyStatsMinAggregateInputType = { - createdAt?: true - updatedAt?: true - linksDeleted?: true - commandResponses?: true - timesTriggered?: true -} - -export type DailyStatsMaxAggregateInputType = { - createdAt?: true - updatedAt?: true - linksDeleted?: true - commandResponses?: true - timesTriggered?: true -} - -export type DailyStatsCountAggregateInputType = { - createdAt?: true - updatedAt?: true - linksDeleted?: true - commandResponses?: true - timesTriggered?: true - _all?: true -} - -export type DailyStatsAggregateArgs = { - /** - * Filter which DailyStats to aggregate. - */ - where?: Prisma.DailyStatsWhereInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} - * - * Determine the order of DailyStats to fetch. - */ - orderBy?: Prisma.DailyStatsOrderByWithRelationInput | Prisma.DailyStatsOrderByWithRelationInput[] - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} - * - * Sets the start position - */ - cursor?: Prisma.DailyStatsWhereUniqueInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Take `±n` DailyStats 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` DailyStats. - */ - skip?: number - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} - * - * Count returned DailyStats - **/ - _count?: true | DailyStatsCountAggregateInputType - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} - * - * Select which fields to average - **/ - _avg?: DailyStatsAvgAggregateInputType - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} - * - * Select which fields to sum - **/ - _sum?: DailyStatsSumAggregateInputType - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} - * - * Select which fields to find the minimum value - **/ - _min?: DailyStatsMinAggregateInputType - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} - * - * Select which fields to find the maximum value - **/ - _max?: DailyStatsMaxAggregateInputType -} - -export type GetDailyStatsAggregateType = { - [P in keyof T & keyof AggregateDailyStats]: P extends '_count' | 'count' - ? T[P] extends true - ? number - : Prisma.GetScalarType - : Prisma.GetScalarType -} - - - - -export type DailyStatsGroupByArgs = { - where?: Prisma.DailyStatsWhereInput - orderBy?: Prisma.DailyStatsOrderByWithAggregationInput | Prisma.DailyStatsOrderByWithAggregationInput[] - by: Prisma.DailyStatsScalarFieldEnum[] | Prisma.DailyStatsScalarFieldEnum - having?: Prisma.DailyStatsScalarWhereWithAggregatesInput - take?: number - skip?: number - _count?: DailyStatsCountAggregateInputType | true - _avg?: DailyStatsAvgAggregateInputType - _sum?: DailyStatsSumAggregateInputType - _min?: DailyStatsMinAggregateInputType - _max?: DailyStatsMaxAggregateInputType -} - -export type DailyStatsGroupByOutputType = { - createdAt: Date - updatedAt: Date - linksDeleted: number - commandResponses: number - timesTriggered: number - _count: DailyStatsCountAggregateOutputType | null - _avg: DailyStatsAvgAggregateOutputType | null - _sum: DailyStatsSumAggregateOutputType | null - _min: DailyStatsMinAggregateOutputType | null - _max: DailyStatsMaxAggregateOutputType | null -} - -type GetDailyStatsGroupByPayload = Prisma.PrismaPromise< - Array< - Prisma.PickEnumerable & - { - [P in ((keyof T) & (keyof DailyStatsGroupByOutputType))]: P extends '_count' - ? T[P] extends boolean - ? number - : Prisma.GetScalarType - : Prisma.GetScalarType - } - > - > - - - -export type DailyStatsWhereInput = { - AND?: Prisma.DailyStatsWhereInput | Prisma.DailyStatsWhereInput[] - OR?: Prisma.DailyStatsWhereInput[] - NOT?: Prisma.DailyStatsWhereInput | Prisma.DailyStatsWhereInput[] - createdAt?: Prisma.DateTimeFilter<"DailyStats"> | Date | string - updatedAt?: Prisma.DateTimeFilter<"DailyStats"> | Date | string - linksDeleted?: Prisma.IntFilter<"DailyStats"> | number - commandResponses?: Prisma.IntFilter<"DailyStats"> | number - timesTriggered?: Prisma.IntFilter<"DailyStats"> | number -} - -export type DailyStatsOrderByWithRelationInput = { - createdAt?: Prisma.SortOrder - updatedAt?: Prisma.SortOrder - linksDeleted?: Prisma.SortOrder - commandResponses?: Prisma.SortOrder - timesTriggered?: Prisma.SortOrder -} - -export type DailyStatsWhereUniqueInput = Prisma.AtLeast<{ - createdAt?: Date | string - AND?: Prisma.DailyStatsWhereInput | Prisma.DailyStatsWhereInput[] - OR?: Prisma.DailyStatsWhereInput[] - NOT?: Prisma.DailyStatsWhereInput | Prisma.DailyStatsWhereInput[] - updatedAt?: Prisma.DateTimeFilter<"DailyStats"> | Date | string - linksDeleted?: Prisma.IntFilter<"DailyStats"> | number - commandResponses?: Prisma.IntFilter<"DailyStats"> | number - timesTriggered?: Prisma.IntFilter<"DailyStats"> | number -}, "createdAt"> - -export type DailyStatsOrderByWithAggregationInput = { - createdAt?: Prisma.SortOrder - updatedAt?: Prisma.SortOrder - linksDeleted?: Prisma.SortOrder - commandResponses?: Prisma.SortOrder - timesTriggered?: Prisma.SortOrder - _count?: Prisma.DailyStatsCountOrderByAggregateInput - _avg?: Prisma.DailyStatsAvgOrderByAggregateInput - _max?: Prisma.DailyStatsMaxOrderByAggregateInput - _min?: Prisma.DailyStatsMinOrderByAggregateInput - _sum?: Prisma.DailyStatsSumOrderByAggregateInput -} - -export type DailyStatsScalarWhereWithAggregatesInput = { - AND?: Prisma.DailyStatsScalarWhereWithAggregatesInput | Prisma.DailyStatsScalarWhereWithAggregatesInput[] - OR?: Prisma.DailyStatsScalarWhereWithAggregatesInput[] - NOT?: Prisma.DailyStatsScalarWhereWithAggregatesInput | Prisma.DailyStatsScalarWhereWithAggregatesInput[] - createdAt?: Prisma.DateTimeWithAggregatesFilter<"DailyStats"> | Date | string - updatedAt?: Prisma.DateTimeWithAggregatesFilter<"DailyStats"> | Date | string - linksDeleted?: Prisma.IntWithAggregatesFilter<"DailyStats"> | number - commandResponses?: Prisma.IntWithAggregatesFilter<"DailyStats"> | number - timesTriggered?: Prisma.IntWithAggregatesFilter<"DailyStats"> | number -} - -export type DailyStatsCreateInput = { - createdAt?: Date | string - updatedAt?: Date | string - linksDeleted?: number - commandResponses?: number - timesTriggered?: number -} - -export type DailyStatsUncheckedCreateInput = { - createdAt?: Date | string - updatedAt?: Date | string - linksDeleted?: number - commandResponses?: number - timesTriggered?: number -} - -export type DailyStatsUpdateInput = { - updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string - linksDeleted?: Prisma.IntFieldUpdateOperationsInput | number - commandResponses?: Prisma.IntFieldUpdateOperationsInput | number - timesTriggered?: Prisma.IntFieldUpdateOperationsInput | number -} - -export type DailyStatsUncheckedUpdateInput = { - updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string - linksDeleted?: Prisma.IntFieldUpdateOperationsInput | number - commandResponses?: Prisma.IntFieldUpdateOperationsInput | number - timesTriggered?: Prisma.IntFieldUpdateOperationsInput | number -} - -export type DailyStatsCreateManyInput = { - createdAt?: Date | string - updatedAt?: Date | string - linksDeleted?: number - commandResponses?: number - timesTriggered?: number -} - -export type DailyStatsUpdateManyMutationInput = { - updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string - linksDeleted?: Prisma.IntFieldUpdateOperationsInput | number - commandResponses?: Prisma.IntFieldUpdateOperationsInput | number - timesTriggered?: Prisma.IntFieldUpdateOperationsInput | number -} - -export type DailyStatsUncheckedUpdateManyInput = { - updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string - linksDeleted?: Prisma.IntFieldUpdateOperationsInput | number - commandResponses?: Prisma.IntFieldUpdateOperationsInput | number - timesTriggered?: Prisma.IntFieldUpdateOperationsInput | number -} - -export type DailyStatsCountOrderByAggregateInput = { - createdAt?: Prisma.SortOrder - updatedAt?: Prisma.SortOrder - linksDeleted?: Prisma.SortOrder - commandResponses?: Prisma.SortOrder - timesTriggered?: Prisma.SortOrder -} - -export type DailyStatsAvgOrderByAggregateInput = { - linksDeleted?: Prisma.SortOrder - commandResponses?: Prisma.SortOrder - timesTriggered?: Prisma.SortOrder -} - -export type DailyStatsMaxOrderByAggregateInput = { - createdAt?: Prisma.SortOrder - updatedAt?: Prisma.SortOrder - linksDeleted?: Prisma.SortOrder - commandResponses?: Prisma.SortOrder - timesTriggered?: Prisma.SortOrder -} - -export type DailyStatsMinOrderByAggregateInput = { - createdAt?: Prisma.SortOrder - updatedAt?: Prisma.SortOrder - linksDeleted?: Prisma.SortOrder - commandResponses?: Prisma.SortOrder - timesTriggered?: Prisma.SortOrder -} - -export type DailyStatsSumOrderByAggregateInput = { - linksDeleted?: Prisma.SortOrder - commandResponses?: Prisma.SortOrder - timesTriggered?: Prisma.SortOrder -} - -export type IntFieldUpdateOperationsInput = { - set?: number - increment?: number - decrement?: number - multiply?: number - divide?: number -} - - - -export type DailyStatsSelect = runtime.Types.Extensions.GetSelect<{ - createdAt?: boolean - updatedAt?: boolean - linksDeleted?: boolean - commandResponses?: boolean - timesTriggered?: boolean -}, ExtArgs["result"]["dailyStats"]> - - - -export type DailyStatsSelectScalar = { - createdAt?: boolean - updatedAt?: boolean - linksDeleted?: boolean - commandResponses?: boolean - timesTriggered?: boolean -} - -export type DailyStatsOmit = runtime.Types.Extensions.GetOmit<"createdAt" | "updatedAt" | "linksDeleted" | "commandResponses" | "timesTriggered", ExtArgs["result"]["dailyStats"]> - -export type $DailyStatsPayload = { - name: "DailyStats" - objects: {} - scalars: runtime.Types.Extensions.GetPayloadResult<{ - createdAt: Date - updatedAt: Date - linksDeleted: number - commandResponses: number - timesTriggered: number - }, ExtArgs["result"]["dailyStats"]> - composites: {} -} - -export type DailyStatsGetPayload = runtime.Types.Result.GetResult - -export type DailyStatsCountArgs = - Omit & { - select?: DailyStatsCountAggregateInputType | true - } - -export interface DailyStatsDelegate { - [K: symbol]: { types: Prisma.TypeMap['model']['DailyStats'], meta: { name: 'DailyStats' } } - /** - * Find zero or one DailyStats that matches the filter. - * @param {DailyStatsFindUniqueArgs} args - Arguments to find a DailyStats - * @example - * // Get one DailyStats - * const dailyStats = await prisma.dailyStats.findUnique({ - * where: { - * // ... provide filter here - * } - * }) - */ - findUnique(args: Prisma.SelectSubset>): Prisma.Prisma__DailyStatsClient, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> - - /** - * Find one DailyStats that matches the filter or throw an error with `error.code='P2025'` - * if no matches were found. - * @param {DailyStatsFindUniqueOrThrowArgs} args - Arguments to find a DailyStats - * @example - * // Get one DailyStats - * const dailyStats = await prisma.dailyStats.findUniqueOrThrow({ - * where: { - * // ... provide filter here - * } - * }) - */ - findUniqueOrThrow(args: Prisma.SelectSubset>): Prisma.Prisma__DailyStatsClient, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> - - /** - * Find the first DailyStats 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 {DailyStatsFindFirstArgs} args - Arguments to find a DailyStats - * @example - * // Get one DailyStats - * const dailyStats = await prisma.dailyStats.findFirst({ - * where: { - * // ... provide filter here - * } - * }) - */ - findFirst(args?: Prisma.SelectSubset>): Prisma.Prisma__DailyStatsClient, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> - - /** - * Find the first DailyStats 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 {DailyStatsFindFirstOrThrowArgs} args - Arguments to find a DailyStats - * @example - * // Get one DailyStats - * const dailyStats = await prisma.dailyStats.findFirstOrThrow({ - * where: { - * // ... provide filter here - * } - * }) - */ - findFirstOrThrow(args?: Prisma.SelectSubset>): Prisma.Prisma__DailyStatsClient, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> - - /** - * Find zero or more DailyStats 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 {DailyStatsFindManyArgs} args - Arguments to filter and select certain fields only. - * @example - * // Get all DailyStats - * const dailyStats = await prisma.dailyStats.findMany() - * - * // Get first 10 DailyStats - * const dailyStats = await prisma.dailyStats.findMany({ take: 10 }) - * - * // Only select the `createdAt` - * const dailyStatsWithCreatedAtOnly = await prisma.dailyStats.findMany({ select: { createdAt: true } }) - * - */ - findMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>> - - /** - * Create a DailyStats. - * @param {DailyStatsCreateArgs} args - Arguments to create a DailyStats. - * @example - * // Create one DailyStats - * const DailyStats = await prisma.dailyStats.create({ - * data: { - * // ... data to create a DailyStats - * } - * }) - * - */ - create(args: Prisma.SelectSubset>): Prisma.Prisma__DailyStatsClient, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> - - /** - * Create many DailyStats. - * @param {DailyStatsCreateManyArgs} args - Arguments to create many DailyStats. - * @example - * // Create many DailyStats - * const dailyStats = await prisma.dailyStats.createMany({ - * data: [ - * // ... provide data here - * ] - * }) - * - */ - createMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise - - /** - * Delete a DailyStats. - * @param {DailyStatsDeleteArgs} args - Arguments to delete one DailyStats. - * @example - * // Delete one DailyStats - * const DailyStats = await prisma.dailyStats.delete({ - * where: { - * // ... filter to delete one DailyStats - * } - * }) - * - */ - delete(args: Prisma.SelectSubset>): Prisma.Prisma__DailyStatsClient, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> - - /** - * Update one DailyStats. - * @param {DailyStatsUpdateArgs} args - Arguments to update one DailyStats. - * @example - * // Update one DailyStats - * const dailyStats = await prisma.dailyStats.update({ - * where: { - * // ... provide filter here - * }, - * data: { - * // ... provide data here - * } - * }) - * - */ - update(args: Prisma.SelectSubset>): Prisma.Prisma__DailyStatsClient, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> - - /** - * Delete zero or more DailyStats. - * @param {DailyStatsDeleteManyArgs} args - Arguments to filter DailyStats to delete. - * @example - * // Delete a few DailyStats - * const { count } = await prisma.dailyStats.deleteMany({ - * where: { - * // ... provide filter here - * } - * }) - * - */ - deleteMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise - - /** - * Update zero or more DailyStats. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {DailyStatsUpdateManyArgs} args - Arguments to update one or more rows. - * @example - * // Update many DailyStats - * const dailyStats = await prisma.dailyStats.updateMany({ - * where: { - * // ... provide filter here - * }, - * data: { - * // ... provide data here - * } - * }) - * - */ - updateMany(args: Prisma.SelectSubset>): Prisma.PrismaPromise - - /** - * Create or update one DailyStats. - * @param {DailyStatsUpsertArgs} args - Arguments to update or create a DailyStats. - * @example - * // Update or create a DailyStats - * const dailyStats = await prisma.dailyStats.upsert({ - * create: { - * // ... data to create a DailyStats - * }, - * update: { - * // ... in case it already exists, update - * }, - * where: { - * // ... the filter for the DailyStats we want to update - * } - * }) - */ - upsert(args: Prisma.SelectSubset>): Prisma.Prisma__DailyStatsClient, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> - - /** - * Find zero or more DailyStats that matches the filter. - * @param {DailyStatsFindRawArgs} args - Select which filters you would like to apply. - * @example - * const dailyStats = await prisma.dailyStats.findRaw({ - * filter: { age: { $gt: 25 } } - * }) - */ - findRaw(args?: Prisma.DailyStatsFindRawArgs): Prisma.PrismaPromise - - /** - * Perform aggregation operations on a DailyStats. - * @param {DailyStatsAggregateRawArgs} args - Select which aggregations you would like to apply. - * @example - * const dailyStats = await prisma.dailyStats.aggregateRaw({ - * pipeline: [ - * { $match: { status: "registered" } }, - * { $group: { _id: "$country", total: { $sum: 1 } } } - * ] - * }) - */ - aggregateRaw(args?: Prisma.DailyStatsAggregateRawArgs): Prisma.PrismaPromise - - - /** - * Count the number of DailyStats. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {DailyStatsCountArgs} args - Arguments to filter DailyStats to count. - * @example - * // Count the number of DailyStats - * const count = await prisma.dailyStats.count({ - * where: { - * // ... the filter for the DailyStats we want to count - * } - * }) - **/ - count( - args?: Prisma.Subset, - ): Prisma.PrismaPromise< - T extends runtime.Types.Utils.Record<'select', any> - ? T['select'] extends true - ? number - : Prisma.GetScalarType - : number - > - - /** - * Allows you to perform aggregations operations on a DailyStats. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {DailyStatsAggregateArgs} args - Select which aggregations you would like to apply and on what fields. - * @example - * // Ordered by age ascending - * // Where email contains prisma.io - * // Limited to the 10 users - * const aggregations = await prisma.user.aggregate({ - * _avg: { - * age: true, - * }, - * where: { - * email: { - * contains: "prisma.io", - * }, - * }, - * orderBy: { - * age: "asc", - * }, - * take: 10, - * }) - **/ - aggregate(args: Prisma.Subset): Prisma.PrismaPromise> - - /** - * Group by DailyStats. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {DailyStatsGroupByArgs} 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 DailyStatsGroupByArgs, - HasSelectOrTake extends Prisma.Or< - Prisma.Extends<'skip', Prisma.Keys>, - Prisma.Extends<'take', Prisma.Keys> - >, - OrderByArg extends Prisma.True extends HasSelectOrTake - ? { orderBy: DailyStatsGroupByArgs['orderBy'] } - : { orderBy?: DailyStatsGroupByArgs['orderBy'] }, - OrderFields extends Prisma.ExcludeUnderscoreKeys>>, - ByFields extends Prisma.MaybeTupleToUnion, - ByValid extends Prisma.Has, - HavingFields extends Prisma.GetHavingFields, - HavingValid extends Prisma.Has, - ByEmpty extends T['by'] extends never[] ? Prisma.True : Prisma.False, - InputErrors extends ByEmpty extends Prisma.True - ? `Error: "by" must not be empty.` - : HavingValid extends Prisma.False - ? { - [P in HavingFields]: P extends ByFields - ? never - : P extends string - ? `Error: Field "${P}" used in "having" needs to be provided in "by".` - : [ - Error, - 'Field ', - P, - ` in "having" needs to be provided in "by"`, - ] - }[HavingFields] - : 'take' extends Prisma.Keys - ? 'orderBy' extends Prisma.Keys - ? ByValid extends Prisma.True - ? {} - : { - [P in OrderFields]: P extends ByFields - ? never - : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` - }[OrderFields] - : 'Error: If you provide "take", you also need to provide "orderBy"' - : 'skip' extends Prisma.Keys - ? 'orderBy' extends Prisma.Keys - ? ByValid extends Prisma.True - ? {} - : { - [P in OrderFields]: P extends ByFields - ? never - : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` - }[OrderFields] - : 'Error: If you provide "skip", you also need to provide "orderBy"' - : ByValid extends Prisma.True - ? {} - : { - [P in OrderFields]: P extends ByFields - ? never - : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` - }[OrderFields] - >(args: Prisma.SubsetIntersection & InputErrors): {} extends InputErrors ? GetDailyStatsGroupByPayload : Prisma.PrismaPromise -/** - * Fields of the DailyStats model - */ -readonly fields: DailyStatsFieldRefs; -} - -/** - * The delegate class that acts as a "Promise-like" for DailyStats. - * 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__DailyStatsClient extends Prisma.PrismaPromise { - readonly [Symbol.toStringTag]: "PrismaPromise" - /** - * Attaches callbacks for the resolution and/or rejection of the Promise. - * @param onfulfilled The callback to execute when the Promise is resolved. - * @param onrejected The callback to execute when the Promise is rejected. - * @returns A Promise for the completion of which ever callback is executed. - */ - then(onfulfilled?: ((value: T) => TResult1 | PromiseLike) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike) | undefined | null): runtime.Types.Utils.JsPromise - /** - * Attaches a callback for only the rejection of the Promise. - * @param onrejected The callback to execute when the Promise is rejected. - * @returns A Promise for the completion of the callback. - */ - catch(onrejected?: ((reason: any) => TResult | PromiseLike) | undefined | null): runtime.Types.Utils.JsPromise - /** - * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The - * resolved value cannot be modified from the callback. - * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected). - * @returns A Promise for the completion of the callback. - */ - finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise -} - - - - -/** - * Fields of the DailyStats model - */ -export interface DailyStatsFieldRefs { - readonly createdAt: Prisma.FieldRef<"DailyStats", 'DateTime'> - readonly updatedAt: Prisma.FieldRef<"DailyStats", 'DateTime'> - readonly linksDeleted: Prisma.FieldRef<"DailyStats", 'Int'> - readonly commandResponses: Prisma.FieldRef<"DailyStats", 'Int'> - readonly timesTriggered: Prisma.FieldRef<"DailyStats", 'Int'> -} - - -// Custom InputTypes -/** - * DailyStats findUnique - */ -export type DailyStatsFindUniqueArgs = { - /** - * Select specific fields to fetch from the DailyStats - */ - select?: Prisma.DailyStatsSelect | null - /** - * Omit specific fields from the DailyStats - */ - omit?: Prisma.DailyStatsOmit | null - /** - * Filter, which DailyStats to fetch. - */ - where: Prisma.DailyStatsWhereUniqueInput -} - -/** - * DailyStats findUniqueOrThrow - */ -export type DailyStatsFindUniqueOrThrowArgs = { - /** - * Select specific fields to fetch from the DailyStats - */ - select?: Prisma.DailyStatsSelect | null - /** - * Omit specific fields from the DailyStats - */ - omit?: Prisma.DailyStatsOmit | null - /** - * Filter, which DailyStats to fetch. - */ - where: Prisma.DailyStatsWhereUniqueInput -} - -/** - * DailyStats findFirst - */ -export type DailyStatsFindFirstArgs = { - /** - * Select specific fields to fetch from the DailyStats - */ - select?: Prisma.DailyStatsSelect | null - /** - * Omit specific fields from the DailyStats - */ - omit?: Prisma.DailyStatsOmit | null - /** - * Filter, which DailyStats to fetch. - */ - where?: Prisma.DailyStatsWhereInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} - * - * Determine the order of DailyStats to fetch. - */ - orderBy?: Prisma.DailyStatsOrderByWithRelationInput | Prisma.DailyStatsOrderByWithRelationInput[] - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} - * - * Sets the position for searching for DailyStats. - */ - cursor?: Prisma.DailyStatsWhereUniqueInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Take `±n` DailyStats 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` DailyStats. - */ - skip?: number - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} - * - * Filter by unique combinations of DailyStats. - */ - distinct?: Prisma.DailyStatsScalarFieldEnum | Prisma.DailyStatsScalarFieldEnum[] -} - -/** - * DailyStats findFirstOrThrow - */ -export type DailyStatsFindFirstOrThrowArgs = { - /** - * Select specific fields to fetch from the DailyStats - */ - select?: Prisma.DailyStatsSelect | null - /** - * Omit specific fields from the DailyStats - */ - omit?: Prisma.DailyStatsOmit | null - /** - * Filter, which DailyStats to fetch. - */ - where?: Prisma.DailyStatsWhereInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} - * - * Determine the order of DailyStats to fetch. - */ - orderBy?: Prisma.DailyStatsOrderByWithRelationInput | Prisma.DailyStatsOrderByWithRelationInput[] - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} - * - * Sets the position for searching for DailyStats. - */ - cursor?: Prisma.DailyStatsWhereUniqueInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Take `±n` DailyStats 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` DailyStats. - */ - skip?: number - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} - * - * Filter by unique combinations of DailyStats. - */ - distinct?: Prisma.DailyStatsScalarFieldEnum | Prisma.DailyStatsScalarFieldEnum[] -} - -/** - * DailyStats findMany - */ -export type DailyStatsFindManyArgs = { - /** - * Select specific fields to fetch from the DailyStats - */ - select?: Prisma.DailyStatsSelect | null - /** - * Omit specific fields from the DailyStats - */ - omit?: Prisma.DailyStatsOmit | null - /** - * Filter, which DailyStats to fetch. - */ - where?: Prisma.DailyStatsWhereInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} - * - * Determine the order of DailyStats to fetch. - */ - orderBy?: Prisma.DailyStatsOrderByWithRelationInput | Prisma.DailyStatsOrderByWithRelationInput[] - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} - * - * Sets the position for listing DailyStats. - */ - cursor?: Prisma.DailyStatsWhereUniqueInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Take `±n` DailyStats 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` DailyStats. - */ - skip?: number - distinct?: Prisma.DailyStatsScalarFieldEnum | Prisma.DailyStatsScalarFieldEnum[] -} - -/** - * DailyStats create - */ -export type DailyStatsCreateArgs = { - /** - * Select specific fields to fetch from the DailyStats - */ - select?: Prisma.DailyStatsSelect | null - /** - * Omit specific fields from the DailyStats - */ - omit?: Prisma.DailyStatsOmit | null - /** - * The data needed to create a DailyStats. - */ - data?: Prisma.XOR -} - -/** - * DailyStats createMany - */ -export type DailyStatsCreateManyArgs = { - /** - * The data used to create many DailyStats. - */ - data: Prisma.DailyStatsCreateManyInput | Prisma.DailyStatsCreateManyInput[] -} - -/** - * DailyStats update - */ -export type DailyStatsUpdateArgs = { - /** - * Select specific fields to fetch from the DailyStats - */ - select?: Prisma.DailyStatsSelect | null - /** - * Omit specific fields from the DailyStats - */ - omit?: Prisma.DailyStatsOmit | null - /** - * The data needed to update a DailyStats. - */ - data: Prisma.XOR - /** - * Choose, which DailyStats to update. - */ - where: Prisma.DailyStatsWhereUniqueInput -} - -/** - * DailyStats updateMany - */ -export type DailyStatsUpdateManyArgs = { - /** - * The data used to update DailyStats. - */ - data: Prisma.XOR - /** - * Filter which DailyStats to update - */ - where?: Prisma.DailyStatsWhereInput - /** - * Limit how many DailyStats to update. - */ - limit?: number -} - -/** - * DailyStats upsert - */ -export type DailyStatsUpsertArgs = { - /** - * Select specific fields to fetch from the DailyStats - */ - select?: Prisma.DailyStatsSelect | null - /** - * Omit specific fields from the DailyStats - */ - omit?: Prisma.DailyStatsOmit | null - /** - * The filter to search for the DailyStats to update in case it exists. - */ - where: Prisma.DailyStatsWhereUniqueInput - /** - * In case the DailyStats found by the `where` argument doesn't exist, create a new DailyStats with this data. - */ - create: Prisma.XOR - /** - * In case the DailyStats was found with the provided `where` argument, update it with this data. - */ - update: Prisma.XOR -} - -/** - * DailyStats delete - */ -export type DailyStatsDeleteArgs = { - /** - * Select specific fields to fetch from the DailyStats - */ - select?: Prisma.DailyStatsSelect | null - /** - * Omit specific fields from the DailyStats - */ - omit?: Prisma.DailyStatsOmit | null - /** - * Filter which DailyStats to delete. - */ - where: Prisma.DailyStatsWhereUniqueInput -} - -/** - * DailyStats deleteMany - */ -export type DailyStatsDeleteManyArgs = { - /** - * Filter which DailyStats to delete - */ - where?: Prisma.DailyStatsWhereInput - /** - * Limit how many DailyStats to delete. - */ - limit?: number -} - -/** - * DailyStats findRaw - */ -export type DailyStatsFindRawArgs = { - /** - * The query predicate filter. If unspecified, then all documents in the collection will match the predicate. ${@link https://docs.mongodb.com/manual/reference/operator/query MongoDB Docs}. - */ - filter?: runtime.InputJsonValue - /** - * Additional options to pass to the `find` command ${@link https://docs.mongodb.com/manual/reference/command/find/#command-fields MongoDB Docs}. - */ - options?: runtime.InputJsonValue -} - -/** - * DailyStats aggregateRaw - */ -export type DailyStatsAggregateRawArgs = { - /** - * An array of aggregation stages to process and transform the document stream via the aggregation pipeline. ${@link https://docs.mongodb.com/manual/reference/operator/aggregation-pipeline MongoDB Docs}. - */ - pipeline?: runtime.InputJsonValue[] - /** - * Additional options to pass to the `aggregate` command ${@link https://docs.mongodb.com/manual/reference/command/aggregate/#command-fields MongoDB Docs}. - */ - options?: runtime.InputJsonValue -} - -/** - * DailyStats without action - */ -export type DailyStatsDefaultArgs = { - /** - * Select specific fields to fetch from the DailyStats - */ - select?: Prisma.DailyStatsSelect | null - /** - * Omit specific fields from the DailyStats - */ - omit?: Prisma.DailyStatsOmit | null -} diff --git a/src/prisma/generated/models/Groups.ts b/src/prisma/generated/models/Groups.ts deleted file mode 100644 index 0b3a697..0000000 --- a/src/prisma/generated/models/Groups.ts +++ /dev/null @@ -1,1169 +0,0 @@ - -/* !!! This is code generated by Prisma. Do not edit directly. !!! */ -/* eslint-disable */ -// biome-ignore-all lint: generated file -// @ts-nocheck -/* - * This file exports the `Groups` model and its related types. - * - * 🟢 You can import this file directly. - */ -import type * as runtime from "@prisma/client/runtime/library" -import type * as $Enums from "../enums" -import type * as Prisma from "../internal/prismaNamespace" - -/** - * Model Groups - * - */ -export type GroupsModel = runtime.Types.Result.DefaultSelection - -export type AggregateGroups = { - _count: GroupsCountAggregateOutputType | null - _avg: GroupsAvgAggregateOutputType | null - _sum: GroupsSumAggregateOutputType | null - _min: GroupsMinAggregateOutputType | null - _max: GroupsMaxAggregateOutputType | null -} - -export type GroupsAvgAggregateOutputType = { - telegramID: number | null - linksDeleted: number | null -} - -export type GroupsSumAggregateOutputType = { - telegramID: bigint | null - linksDeleted: bigint | null -} - -export type GroupsMinAggregateOutputType = { - telegramID: bigint | null - name: string | null - username: string | null - linksDeleted: bigint | null - createdAt: Date | null - updatedAt: Date | null -} - -export type GroupsMaxAggregateOutputType = { - telegramID: bigint | null - name: string | null - username: string | null - linksDeleted: bigint | null - createdAt: Date | null - updatedAt: Date | null -} - -export type GroupsCountAggregateOutputType = { - telegramID: number - name: number - username: number - linksDeleted: number - createdAt: number - updatedAt: number - _all: number -} - - -export type GroupsAvgAggregateInputType = { - telegramID?: true - linksDeleted?: true -} - -export type GroupsSumAggregateInputType = { - telegramID?: true - linksDeleted?: true -} - -export type GroupsMinAggregateInputType = { - telegramID?: true - name?: true - username?: true - linksDeleted?: true - createdAt?: true - updatedAt?: true -} - -export type GroupsMaxAggregateInputType = { - telegramID?: true - name?: true - username?: true - linksDeleted?: true - createdAt?: true - updatedAt?: true -} - -export type GroupsCountAggregateInputType = { - telegramID?: true - name?: true - username?: true - linksDeleted?: true - createdAt?: true - updatedAt?: true - _all?: true -} - -export type GroupsAggregateArgs = { - /** - * Filter which Groups to aggregate. - */ - where?: Prisma.GroupsWhereInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} - * - * Determine the order of Groups to fetch. - */ - orderBy?: Prisma.GroupsOrderByWithRelationInput | Prisma.GroupsOrderByWithRelationInput[] - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} - * - * Sets the start position - */ - cursor?: Prisma.GroupsWhereUniqueInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Take `±n` Groups 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` Groups. - */ - skip?: number - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} - * - * Count returned Groups - **/ - _count?: true | GroupsCountAggregateInputType - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} - * - * Select which fields to average - **/ - _avg?: GroupsAvgAggregateInputType - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} - * - * Select which fields to sum - **/ - _sum?: GroupsSumAggregateInputType - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} - * - * Select which fields to find the minimum value - **/ - _min?: GroupsMinAggregateInputType - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} - * - * Select which fields to find the maximum value - **/ - _max?: GroupsMaxAggregateInputType -} - -export type GetGroupsAggregateType = { - [P in keyof T & keyof AggregateGroups]: P extends '_count' | 'count' - ? T[P] extends true - ? number - : Prisma.GetScalarType - : Prisma.GetScalarType -} - - - - -export type GroupsGroupByArgs = { - where?: Prisma.GroupsWhereInput - orderBy?: Prisma.GroupsOrderByWithAggregationInput | Prisma.GroupsOrderByWithAggregationInput[] - by: Prisma.GroupsScalarFieldEnum[] | Prisma.GroupsScalarFieldEnum - having?: Prisma.GroupsScalarWhereWithAggregatesInput - take?: number - skip?: number - _count?: GroupsCountAggregateInputType | true - _avg?: GroupsAvgAggregateInputType - _sum?: GroupsSumAggregateInputType - _min?: GroupsMinAggregateInputType - _max?: GroupsMaxAggregateInputType -} - -export type GroupsGroupByOutputType = { - telegramID: bigint - name: string - username: string - linksDeleted: bigint - createdAt: Date - updatedAt: Date - _count: GroupsCountAggregateOutputType | null - _avg: GroupsAvgAggregateOutputType | null - _sum: GroupsSumAggregateOutputType | null - _min: GroupsMinAggregateOutputType | null - _max: GroupsMaxAggregateOutputType | null -} - -type GetGroupsGroupByPayload = Prisma.PrismaPromise< - Array< - Prisma.PickEnumerable & - { - [P in ((keyof T) & (keyof GroupsGroupByOutputType))]: P extends '_count' - ? T[P] extends boolean - ? number - : Prisma.GetScalarType - : Prisma.GetScalarType - } - > - > - - - -export type GroupsWhereInput = { - AND?: Prisma.GroupsWhereInput | Prisma.GroupsWhereInput[] - OR?: Prisma.GroupsWhereInput[] - NOT?: Prisma.GroupsWhereInput | Prisma.GroupsWhereInput[] - telegramID?: Prisma.BigIntFilter<"Groups"> | bigint | number - name?: Prisma.StringFilter<"Groups"> | string - username?: Prisma.StringFilter<"Groups"> | string - linksDeleted?: Prisma.BigIntFilter<"Groups"> | bigint | number - createdAt?: Prisma.DateTimeFilter<"Groups"> | Date | string - updatedAt?: Prisma.DateTimeFilter<"Groups"> | Date | string -} - -export type GroupsOrderByWithRelationInput = { - telegramID?: Prisma.SortOrder - name?: Prisma.SortOrder - username?: Prisma.SortOrder - linksDeleted?: Prisma.SortOrder - createdAt?: Prisma.SortOrder - updatedAt?: Prisma.SortOrder -} - -export type GroupsWhereUniqueInput = Prisma.AtLeast<{ - telegramID?: bigint | number - AND?: Prisma.GroupsWhereInput | Prisma.GroupsWhereInput[] - OR?: Prisma.GroupsWhereInput[] - NOT?: Prisma.GroupsWhereInput | Prisma.GroupsWhereInput[] - name?: Prisma.StringFilter<"Groups"> | string - username?: Prisma.StringFilter<"Groups"> | string - linksDeleted?: Prisma.BigIntFilter<"Groups"> | bigint | number - createdAt?: Prisma.DateTimeFilter<"Groups"> | Date | string - updatedAt?: Prisma.DateTimeFilter<"Groups"> | Date | string -}, "telegramID"> - -export type GroupsOrderByWithAggregationInput = { - telegramID?: Prisma.SortOrder - name?: Prisma.SortOrder - username?: Prisma.SortOrder - linksDeleted?: Prisma.SortOrder - createdAt?: Prisma.SortOrder - updatedAt?: Prisma.SortOrder - _count?: Prisma.GroupsCountOrderByAggregateInput - _avg?: Prisma.GroupsAvgOrderByAggregateInput - _max?: Prisma.GroupsMaxOrderByAggregateInput - _min?: Prisma.GroupsMinOrderByAggregateInput - _sum?: Prisma.GroupsSumOrderByAggregateInput -} - -export type GroupsScalarWhereWithAggregatesInput = { - AND?: Prisma.GroupsScalarWhereWithAggregatesInput | Prisma.GroupsScalarWhereWithAggregatesInput[] - OR?: Prisma.GroupsScalarWhereWithAggregatesInput[] - NOT?: Prisma.GroupsScalarWhereWithAggregatesInput | Prisma.GroupsScalarWhereWithAggregatesInput[] - telegramID?: Prisma.BigIntWithAggregatesFilter<"Groups"> | bigint | number - name?: Prisma.StringWithAggregatesFilter<"Groups"> | string - username?: Prisma.StringWithAggregatesFilter<"Groups"> | string - linksDeleted?: Prisma.BigIntWithAggregatesFilter<"Groups"> | bigint | number - createdAt?: Prisma.DateTimeWithAggregatesFilter<"Groups"> | Date | string - updatedAt?: Prisma.DateTimeWithAggregatesFilter<"Groups"> | Date | string -} - -export type GroupsCreateInput = { - telegramID: bigint | number - name: string - username?: string - linksDeleted?: bigint | number - createdAt?: Date | string - updatedAt?: Date | string -} - -export type GroupsUncheckedCreateInput = { - telegramID: bigint | number - name: string - username?: string - linksDeleted?: bigint | number - createdAt?: Date | string - updatedAt?: Date | string -} - -export type GroupsUpdateInput = { - name?: Prisma.StringFieldUpdateOperationsInput | string - username?: Prisma.StringFieldUpdateOperationsInput | string - linksDeleted?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number - createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string -} - -export type GroupsUncheckedUpdateInput = { - name?: Prisma.StringFieldUpdateOperationsInput | string - username?: Prisma.StringFieldUpdateOperationsInput | string - linksDeleted?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number - createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string -} - -export type GroupsCreateManyInput = { - telegramID: bigint | number - name: string - username?: string - linksDeleted?: bigint | number - createdAt?: Date | string - updatedAt?: Date | string -} - -export type GroupsUpdateManyMutationInput = { - name?: Prisma.StringFieldUpdateOperationsInput | string - username?: Prisma.StringFieldUpdateOperationsInput | string - linksDeleted?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number - createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string -} - -export type GroupsUncheckedUpdateManyInput = { - name?: Prisma.StringFieldUpdateOperationsInput | string - username?: Prisma.StringFieldUpdateOperationsInput | string - linksDeleted?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number - createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string -} - -export type GroupsCountOrderByAggregateInput = { - telegramID?: Prisma.SortOrder - name?: Prisma.SortOrder - username?: Prisma.SortOrder - linksDeleted?: Prisma.SortOrder - createdAt?: Prisma.SortOrder - updatedAt?: Prisma.SortOrder -} - -export type GroupsAvgOrderByAggregateInput = { - telegramID?: Prisma.SortOrder - linksDeleted?: Prisma.SortOrder -} - -export type GroupsMaxOrderByAggregateInput = { - telegramID?: Prisma.SortOrder - name?: Prisma.SortOrder - username?: Prisma.SortOrder - linksDeleted?: Prisma.SortOrder - createdAt?: Prisma.SortOrder - updatedAt?: Prisma.SortOrder -} - -export type GroupsMinOrderByAggregateInput = { - telegramID?: Prisma.SortOrder - name?: Prisma.SortOrder - username?: Prisma.SortOrder - linksDeleted?: Prisma.SortOrder - createdAt?: Prisma.SortOrder - updatedAt?: Prisma.SortOrder -} - -export type GroupsSumOrderByAggregateInput = { - telegramID?: Prisma.SortOrder - linksDeleted?: Prisma.SortOrder -} - -export type StringFieldUpdateOperationsInput = { - set?: string -} - -export type BigIntFieldUpdateOperationsInput = { - set?: bigint | number - increment?: bigint | number - decrement?: bigint | number - multiply?: bigint | number - divide?: bigint | number -} - -export type DateTimeFieldUpdateOperationsInput = { - set?: Date | string -} - - - -export type GroupsSelect = runtime.Types.Extensions.GetSelect<{ - telegramID?: boolean - name?: boolean - username?: boolean - linksDeleted?: boolean - createdAt?: boolean - updatedAt?: boolean -}, ExtArgs["result"]["groups"]> - - - -export type GroupsSelectScalar = { - telegramID?: boolean - name?: boolean - username?: boolean - linksDeleted?: boolean - createdAt?: boolean - updatedAt?: boolean -} - -export type GroupsOmit = runtime.Types.Extensions.GetOmit<"telegramID" | "name" | "username" | "linksDeleted" | "createdAt" | "updatedAt", ExtArgs["result"]["groups"]> - -export type $GroupsPayload = { - name: "Groups" - objects: {} - scalars: runtime.Types.Extensions.GetPayloadResult<{ - telegramID: bigint - name: string - username: string - linksDeleted: bigint - createdAt: Date - updatedAt: Date - }, ExtArgs["result"]["groups"]> - composites: {} -} - -export type GroupsGetPayload = runtime.Types.Result.GetResult - -export type GroupsCountArgs = - Omit & { - select?: GroupsCountAggregateInputType | true - } - -export interface GroupsDelegate { - [K: symbol]: { types: Prisma.TypeMap['model']['Groups'], meta: { name: 'Groups' } } - /** - * Find zero or one Groups that matches the filter. - * @param {GroupsFindUniqueArgs} args - Arguments to find a Groups - * @example - * // Get one Groups - * const groups = await prisma.groups.findUnique({ - * where: { - * // ... provide filter here - * } - * }) - */ - findUnique(args: Prisma.SelectSubset>): Prisma.Prisma__GroupsClient, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> - - /** - * Find one Groups that matches the filter or throw an error with `error.code='P2025'` - * if no matches were found. - * @param {GroupsFindUniqueOrThrowArgs} args - Arguments to find a Groups - * @example - * // Get one Groups - * const groups = await prisma.groups.findUniqueOrThrow({ - * where: { - * // ... provide filter here - * } - * }) - */ - findUniqueOrThrow(args: Prisma.SelectSubset>): Prisma.Prisma__GroupsClient, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> - - /** - * Find the first Groups 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 {GroupsFindFirstArgs} args - Arguments to find a Groups - * @example - * // Get one Groups - * const groups = await prisma.groups.findFirst({ - * where: { - * // ... provide filter here - * } - * }) - */ - findFirst(args?: Prisma.SelectSubset>): Prisma.Prisma__GroupsClient, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> - - /** - * Find the first Groups 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 {GroupsFindFirstOrThrowArgs} args - Arguments to find a Groups - * @example - * // Get one Groups - * const groups = await prisma.groups.findFirstOrThrow({ - * where: { - * // ... provide filter here - * } - * }) - */ - findFirstOrThrow(args?: Prisma.SelectSubset>): Prisma.Prisma__GroupsClient, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> - - /** - * Find zero or more Groups 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 {GroupsFindManyArgs} args - Arguments to filter and select certain fields only. - * @example - * // Get all Groups - * const groups = await prisma.groups.findMany() - * - * // Get first 10 Groups - * const groups = await prisma.groups.findMany({ take: 10 }) - * - * // Only select the `telegramID` - * const groupsWithTelegramIDOnly = await prisma.groups.findMany({ select: { telegramID: true } }) - * - */ - findMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>> - - /** - * Create a Groups. - * @param {GroupsCreateArgs} args - Arguments to create a Groups. - * @example - * // Create one Groups - * const Groups = await prisma.groups.create({ - * data: { - * // ... data to create a Groups - * } - * }) - * - */ - create(args: Prisma.SelectSubset>): Prisma.Prisma__GroupsClient, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> - - /** - * Create many Groups. - * @param {GroupsCreateManyArgs} args - Arguments to create many Groups. - * @example - * // Create many Groups - * const groups = await prisma.groups.createMany({ - * data: [ - * // ... provide data here - * ] - * }) - * - */ - createMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise - - /** - * Delete a Groups. - * @param {GroupsDeleteArgs} args - Arguments to delete one Groups. - * @example - * // Delete one Groups - * const Groups = await prisma.groups.delete({ - * where: { - * // ... filter to delete one Groups - * } - * }) - * - */ - delete(args: Prisma.SelectSubset>): Prisma.Prisma__GroupsClient, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> - - /** - * Update one Groups. - * @param {GroupsUpdateArgs} args - Arguments to update one Groups. - * @example - * // Update one Groups - * const groups = await prisma.groups.update({ - * where: { - * // ... provide filter here - * }, - * data: { - * // ... provide data here - * } - * }) - * - */ - update(args: Prisma.SelectSubset>): Prisma.Prisma__GroupsClient, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> - - /** - * Delete zero or more Groups. - * @param {GroupsDeleteManyArgs} args - Arguments to filter Groups to delete. - * @example - * // Delete a few Groups - * const { count } = await prisma.groups.deleteMany({ - * where: { - * // ... provide filter here - * } - * }) - * - */ - deleteMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise - - /** - * Update zero or more Groups. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {GroupsUpdateManyArgs} args - Arguments to update one or more rows. - * @example - * // Update many Groups - * const groups = await prisma.groups.updateMany({ - * where: { - * // ... provide filter here - * }, - * data: { - * // ... provide data here - * } - * }) - * - */ - updateMany(args: Prisma.SelectSubset>): Prisma.PrismaPromise - - /** - * Create or update one Groups. - * @param {GroupsUpsertArgs} args - Arguments to update or create a Groups. - * @example - * // Update or create a Groups - * const groups = await prisma.groups.upsert({ - * create: { - * // ... data to create a Groups - * }, - * update: { - * // ... in case it already exists, update - * }, - * where: { - * // ... the filter for the Groups we want to update - * } - * }) - */ - upsert(args: Prisma.SelectSubset>): Prisma.Prisma__GroupsClient, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> - - /** - * Find zero or more Groups that matches the filter. - * @param {GroupsFindRawArgs} args - Select which filters you would like to apply. - * @example - * const groups = await prisma.groups.findRaw({ - * filter: { age: { $gt: 25 } } - * }) - */ - findRaw(args?: Prisma.GroupsFindRawArgs): Prisma.PrismaPromise - - /** - * Perform aggregation operations on a Groups. - * @param {GroupsAggregateRawArgs} args - Select which aggregations you would like to apply. - * @example - * const groups = await prisma.groups.aggregateRaw({ - * pipeline: [ - * { $match: { status: "registered" } }, - * { $group: { _id: "$country", total: { $sum: 1 } } } - * ] - * }) - */ - aggregateRaw(args?: Prisma.GroupsAggregateRawArgs): Prisma.PrismaPromise - - - /** - * Count the number of Groups. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {GroupsCountArgs} args - Arguments to filter Groups to count. - * @example - * // Count the number of Groups - * const count = await prisma.groups.count({ - * where: { - * // ... the filter for the Groups we want to count - * } - * }) - **/ - count( - args?: Prisma.Subset, - ): Prisma.PrismaPromise< - T extends runtime.Types.Utils.Record<'select', any> - ? T['select'] extends true - ? number - : Prisma.GetScalarType - : number - > - - /** - * Allows you to perform aggregations operations on a Groups. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {GroupsAggregateArgs} args - Select which aggregations you would like to apply and on what fields. - * @example - * // Ordered by age ascending - * // Where email contains prisma.io - * // Limited to the 10 users - * const aggregations = await prisma.user.aggregate({ - * _avg: { - * age: true, - * }, - * where: { - * email: { - * contains: "prisma.io", - * }, - * }, - * orderBy: { - * age: "asc", - * }, - * take: 10, - * }) - **/ - aggregate(args: Prisma.Subset): Prisma.PrismaPromise> - - /** - * Group by Groups. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {GroupsGroupByArgs} 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 GroupsGroupByArgs, - HasSelectOrTake extends Prisma.Or< - Prisma.Extends<'skip', Prisma.Keys>, - Prisma.Extends<'take', Prisma.Keys> - >, - OrderByArg extends Prisma.True extends HasSelectOrTake - ? { orderBy: GroupsGroupByArgs['orderBy'] } - : { orderBy?: GroupsGroupByArgs['orderBy'] }, - OrderFields extends Prisma.ExcludeUnderscoreKeys>>, - ByFields extends Prisma.MaybeTupleToUnion, - ByValid extends Prisma.Has, - HavingFields extends Prisma.GetHavingFields, - HavingValid extends Prisma.Has, - ByEmpty extends T['by'] extends never[] ? Prisma.True : Prisma.False, - InputErrors extends ByEmpty extends Prisma.True - ? `Error: "by" must not be empty.` - : HavingValid extends Prisma.False - ? { - [P in HavingFields]: P extends ByFields - ? never - : P extends string - ? `Error: Field "${P}" used in "having" needs to be provided in "by".` - : [ - Error, - 'Field ', - P, - ` in "having" needs to be provided in "by"`, - ] - }[HavingFields] - : 'take' extends Prisma.Keys - ? 'orderBy' extends Prisma.Keys - ? ByValid extends Prisma.True - ? {} - : { - [P in OrderFields]: P extends ByFields - ? never - : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` - }[OrderFields] - : 'Error: If you provide "take", you also need to provide "orderBy"' - : 'skip' extends Prisma.Keys - ? 'orderBy' extends Prisma.Keys - ? ByValid extends Prisma.True - ? {} - : { - [P in OrderFields]: P extends ByFields - ? never - : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` - }[OrderFields] - : 'Error: If you provide "skip", you also need to provide "orderBy"' - : ByValid extends Prisma.True - ? {} - : { - [P in OrderFields]: P extends ByFields - ? never - : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` - }[OrderFields] - >(args: Prisma.SubsetIntersection & InputErrors): {} extends InputErrors ? GetGroupsGroupByPayload : Prisma.PrismaPromise -/** - * Fields of the Groups model - */ -readonly fields: GroupsFieldRefs; -} - -/** - * The delegate class that acts as a "Promise-like" for Groups. - * 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__GroupsClient extends Prisma.PrismaPromise { - readonly [Symbol.toStringTag]: "PrismaPromise" - /** - * Attaches callbacks for the resolution and/or rejection of the Promise. - * @param onfulfilled The callback to execute when the Promise is resolved. - * @param onrejected The callback to execute when the Promise is rejected. - * @returns A Promise for the completion of which ever callback is executed. - */ - then(onfulfilled?: ((value: T) => TResult1 | PromiseLike) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike) | undefined | null): runtime.Types.Utils.JsPromise - /** - * Attaches a callback for only the rejection of the Promise. - * @param onrejected The callback to execute when the Promise is rejected. - * @returns A Promise for the completion of the callback. - */ - catch(onrejected?: ((reason: any) => TResult | PromiseLike) | undefined | null): runtime.Types.Utils.JsPromise - /** - * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The - * resolved value cannot be modified from the callback. - * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected). - * @returns A Promise for the completion of the callback. - */ - finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise -} - - - - -/** - * Fields of the Groups model - */ -export interface GroupsFieldRefs { - readonly telegramID: Prisma.FieldRef<"Groups", 'BigInt'> - readonly name: Prisma.FieldRef<"Groups", 'String'> - readonly username: Prisma.FieldRef<"Groups", 'String'> - readonly linksDeleted: Prisma.FieldRef<"Groups", 'BigInt'> - readonly createdAt: Prisma.FieldRef<"Groups", 'DateTime'> - readonly updatedAt: Prisma.FieldRef<"Groups", 'DateTime'> -} - - -// Custom InputTypes -/** - * Groups findUnique - */ -export type GroupsFindUniqueArgs = { - /** - * Select specific fields to fetch from the Groups - */ - select?: Prisma.GroupsSelect | null - /** - * Omit specific fields from the Groups - */ - omit?: Prisma.GroupsOmit | null - /** - * Filter, which Groups to fetch. - */ - where: Prisma.GroupsWhereUniqueInput -} - -/** - * Groups findUniqueOrThrow - */ -export type GroupsFindUniqueOrThrowArgs = { - /** - * Select specific fields to fetch from the Groups - */ - select?: Prisma.GroupsSelect | null - /** - * Omit specific fields from the Groups - */ - omit?: Prisma.GroupsOmit | null - /** - * Filter, which Groups to fetch. - */ - where: Prisma.GroupsWhereUniqueInput -} - -/** - * Groups findFirst - */ -export type GroupsFindFirstArgs = { - /** - * Select specific fields to fetch from the Groups - */ - select?: Prisma.GroupsSelect | null - /** - * Omit specific fields from the Groups - */ - omit?: Prisma.GroupsOmit | null - /** - * Filter, which Groups to fetch. - */ - where?: Prisma.GroupsWhereInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} - * - * Determine the order of Groups to fetch. - */ - orderBy?: Prisma.GroupsOrderByWithRelationInput | Prisma.GroupsOrderByWithRelationInput[] - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} - * - * Sets the position for searching for Groups. - */ - cursor?: Prisma.GroupsWhereUniqueInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Take `±n` Groups 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` Groups. - */ - skip?: number - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} - * - * Filter by unique combinations of Groups. - */ - distinct?: Prisma.GroupsScalarFieldEnum | Prisma.GroupsScalarFieldEnum[] -} - -/** - * Groups findFirstOrThrow - */ -export type GroupsFindFirstOrThrowArgs = { - /** - * Select specific fields to fetch from the Groups - */ - select?: Prisma.GroupsSelect | null - /** - * Omit specific fields from the Groups - */ - omit?: Prisma.GroupsOmit | null - /** - * Filter, which Groups to fetch. - */ - where?: Prisma.GroupsWhereInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} - * - * Determine the order of Groups to fetch. - */ - orderBy?: Prisma.GroupsOrderByWithRelationInput | Prisma.GroupsOrderByWithRelationInput[] - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} - * - * Sets the position for searching for Groups. - */ - cursor?: Prisma.GroupsWhereUniqueInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Take `±n` Groups 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` Groups. - */ - skip?: number - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} - * - * Filter by unique combinations of Groups. - */ - distinct?: Prisma.GroupsScalarFieldEnum | Prisma.GroupsScalarFieldEnum[] -} - -/** - * Groups findMany - */ -export type GroupsFindManyArgs = { - /** - * Select specific fields to fetch from the Groups - */ - select?: Prisma.GroupsSelect | null - /** - * Omit specific fields from the Groups - */ - omit?: Prisma.GroupsOmit | null - /** - * Filter, which Groups to fetch. - */ - where?: Prisma.GroupsWhereInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} - * - * Determine the order of Groups to fetch. - */ - orderBy?: Prisma.GroupsOrderByWithRelationInput | Prisma.GroupsOrderByWithRelationInput[] - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} - * - * Sets the position for listing Groups. - */ - cursor?: Prisma.GroupsWhereUniqueInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Take `±n` Groups 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` Groups. - */ - skip?: number - distinct?: Prisma.GroupsScalarFieldEnum | Prisma.GroupsScalarFieldEnum[] -} - -/** - * Groups create - */ -export type GroupsCreateArgs = { - /** - * Select specific fields to fetch from the Groups - */ - select?: Prisma.GroupsSelect | null - /** - * Omit specific fields from the Groups - */ - omit?: Prisma.GroupsOmit | null - /** - * The data needed to create a Groups. - */ - data: Prisma.XOR -} - -/** - * Groups createMany - */ -export type GroupsCreateManyArgs = { - /** - * The data used to create many Groups. - */ - data: Prisma.GroupsCreateManyInput | Prisma.GroupsCreateManyInput[] -} - -/** - * Groups update - */ -export type GroupsUpdateArgs = { - /** - * Select specific fields to fetch from the Groups - */ - select?: Prisma.GroupsSelect | null - /** - * Omit specific fields from the Groups - */ - omit?: Prisma.GroupsOmit | null - /** - * The data needed to update a Groups. - */ - data: Prisma.XOR - /** - * Choose, which Groups to update. - */ - where: Prisma.GroupsWhereUniqueInput -} - -/** - * Groups updateMany - */ -export type GroupsUpdateManyArgs = { - /** - * The data used to update Groups. - */ - data: Prisma.XOR - /** - * Filter which Groups to update - */ - where?: Prisma.GroupsWhereInput - /** - * Limit how many Groups to update. - */ - limit?: number -} - -/** - * Groups upsert - */ -export type GroupsUpsertArgs = { - /** - * Select specific fields to fetch from the Groups - */ - select?: Prisma.GroupsSelect | null - /** - * Omit specific fields from the Groups - */ - omit?: Prisma.GroupsOmit | null - /** - * The filter to search for the Groups to update in case it exists. - */ - where: Prisma.GroupsWhereUniqueInput - /** - * In case the Groups found by the `where` argument doesn't exist, create a new Groups with this data. - */ - create: Prisma.XOR - /** - * In case the Groups was found with the provided `where` argument, update it with this data. - */ - update: Prisma.XOR -} - -/** - * Groups delete - */ -export type GroupsDeleteArgs = { - /** - * Select specific fields to fetch from the Groups - */ - select?: Prisma.GroupsSelect | null - /** - * Omit specific fields from the Groups - */ - omit?: Prisma.GroupsOmit | null - /** - * Filter which Groups to delete. - */ - where: Prisma.GroupsWhereUniqueInput -} - -/** - * Groups deleteMany - */ -export type GroupsDeleteManyArgs = { - /** - * Filter which Groups to delete - */ - where?: Prisma.GroupsWhereInput - /** - * Limit how many Groups to delete. - */ - limit?: number -} - -/** - * Groups findRaw - */ -export type GroupsFindRawArgs = { - /** - * The query predicate filter. If unspecified, then all documents in the collection will match the predicate. ${@link https://docs.mongodb.com/manual/reference/operator/query MongoDB Docs}. - */ - filter?: runtime.InputJsonValue - /** - * Additional options to pass to the `find` command ${@link https://docs.mongodb.com/manual/reference/command/find/#command-fields MongoDB Docs}. - */ - options?: runtime.InputJsonValue -} - -/** - * Groups aggregateRaw - */ -export type GroupsAggregateRawArgs = { - /** - * An array of aggregation stages to process and transform the document stream via the aggregation pipeline. ${@link https://docs.mongodb.com/manual/reference/operator/aggregation-pipeline MongoDB Docs}. - */ - pipeline?: runtime.InputJsonValue[] - /** - * Additional options to pass to the `aggregate` command ${@link https://docs.mongodb.com/manual/reference/command/aggregate/#command-fields MongoDB Docs}. - */ - options?: runtime.InputJsonValue -} - -/** - * Groups without action - */ -export type GroupsDefaultArgs = { - /** - * Select specific fields to fetch from the Groups - */ - select?: Prisma.GroupsSelect | null - /** - * Omit specific fields from the Groups - */ - omit?: Prisma.GroupsOmit | null -} diff --git a/src/prisma/generated/models/TotalStats.ts b/src/prisma/generated/models/TotalStats.ts deleted file mode 100644 index e9dcd51..0000000 --- a/src/prisma/generated/models/TotalStats.ts +++ /dev/null @@ -1,1133 +0,0 @@ - -/* !!! This is code generated by Prisma. Do not edit directly. !!! */ -/* eslint-disable */ -// biome-ignore-all lint: generated file -// @ts-nocheck -/* - * This file exports the `TotalStats` model and its related types. - * - * 🟢 You can import this file directly. - */ -import type * as runtime from "@prisma/client/runtime/library" -import type * as $Enums from "../enums" -import type * as Prisma from "../internal/prismaNamespace" - -/** - * Model TotalStats - * - */ -export type TotalStatsModel = runtime.Types.Result.DefaultSelection - -export type AggregateTotalStats = { - _count: TotalStatsCountAggregateOutputType | null - _avg: TotalStatsAvgAggregateOutputType | null - _sum: TotalStatsSumAggregateOutputType | null - _min: TotalStatsMinAggregateOutputType | null - _max: TotalStatsMaxAggregateOutputType | null -} - -export type TotalStatsAvgAggregateOutputType = { - linksDeleted: number | null - commandResponses: number | null - timesTriggered: number | null -} - -export type TotalStatsSumAggregateOutputType = { - linksDeleted: bigint | null - commandResponses: bigint | null - timesTriggered: bigint | null -} - -export type TotalStatsMinAggregateOutputType = { - createdAt: Date | null - updatedAt: Date | null - linksDeleted: bigint | null - commandResponses: bigint | null - timesTriggered: bigint | null -} - -export type TotalStatsMaxAggregateOutputType = { - createdAt: Date | null - updatedAt: Date | null - linksDeleted: bigint | null - commandResponses: bigint | null - timesTriggered: bigint | null -} - -export type TotalStatsCountAggregateOutputType = { - createdAt: number - updatedAt: number - linksDeleted: number - commandResponses: number - timesTriggered: number - _all: number -} - - -export type TotalStatsAvgAggregateInputType = { - linksDeleted?: true - commandResponses?: true - timesTriggered?: true -} - -export type TotalStatsSumAggregateInputType = { - linksDeleted?: true - commandResponses?: true - timesTriggered?: true -} - -export type TotalStatsMinAggregateInputType = { - createdAt?: true - updatedAt?: true - linksDeleted?: true - commandResponses?: true - timesTriggered?: true -} - -export type TotalStatsMaxAggregateInputType = { - createdAt?: true - updatedAt?: true - linksDeleted?: true - commandResponses?: true - timesTriggered?: true -} - -export type TotalStatsCountAggregateInputType = { - createdAt?: true - updatedAt?: true - linksDeleted?: true - commandResponses?: true - timesTriggered?: true - _all?: true -} - -export type TotalStatsAggregateArgs = { - /** - * Filter which TotalStats to aggregate. - */ - where?: Prisma.TotalStatsWhereInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} - * - * Determine the order of TotalStats to fetch. - */ - orderBy?: Prisma.TotalStatsOrderByWithRelationInput | Prisma.TotalStatsOrderByWithRelationInput[] - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} - * - * Sets the start position - */ - cursor?: Prisma.TotalStatsWhereUniqueInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Take `±n` TotalStats 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` TotalStats. - */ - skip?: number - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} - * - * Count returned TotalStats - **/ - _count?: true | TotalStatsCountAggregateInputType - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} - * - * Select which fields to average - **/ - _avg?: TotalStatsAvgAggregateInputType - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} - * - * Select which fields to sum - **/ - _sum?: TotalStatsSumAggregateInputType - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} - * - * Select which fields to find the minimum value - **/ - _min?: TotalStatsMinAggregateInputType - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} - * - * Select which fields to find the maximum value - **/ - _max?: TotalStatsMaxAggregateInputType -} - -export type GetTotalStatsAggregateType = { - [P in keyof T & keyof AggregateTotalStats]: P extends '_count' | 'count' - ? T[P] extends true - ? number - : Prisma.GetScalarType - : Prisma.GetScalarType -} - - - - -export type TotalStatsGroupByArgs = { - where?: Prisma.TotalStatsWhereInput - orderBy?: Prisma.TotalStatsOrderByWithAggregationInput | Prisma.TotalStatsOrderByWithAggregationInput[] - by: Prisma.TotalStatsScalarFieldEnum[] | Prisma.TotalStatsScalarFieldEnum - having?: Prisma.TotalStatsScalarWhereWithAggregatesInput - take?: number - skip?: number - _count?: TotalStatsCountAggregateInputType | true - _avg?: TotalStatsAvgAggregateInputType - _sum?: TotalStatsSumAggregateInputType - _min?: TotalStatsMinAggregateInputType - _max?: TotalStatsMaxAggregateInputType -} - -export type TotalStatsGroupByOutputType = { - createdAt: Date - updatedAt: Date - linksDeleted: bigint - commandResponses: bigint - timesTriggered: bigint - _count: TotalStatsCountAggregateOutputType | null - _avg: TotalStatsAvgAggregateOutputType | null - _sum: TotalStatsSumAggregateOutputType | null - _min: TotalStatsMinAggregateOutputType | null - _max: TotalStatsMaxAggregateOutputType | null -} - -type GetTotalStatsGroupByPayload = Prisma.PrismaPromise< - Array< - Prisma.PickEnumerable & - { - [P in ((keyof T) & (keyof TotalStatsGroupByOutputType))]: P extends '_count' - ? T[P] extends boolean - ? number - : Prisma.GetScalarType - : Prisma.GetScalarType - } - > - > - - - -export type TotalStatsWhereInput = { - AND?: Prisma.TotalStatsWhereInput | Prisma.TotalStatsWhereInput[] - OR?: Prisma.TotalStatsWhereInput[] - NOT?: Prisma.TotalStatsWhereInput | Prisma.TotalStatsWhereInput[] - createdAt?: Prisma.DateTimeFilter<"TotalStats"> | Date | string - updatedAt?: Prisma.DateTimeFilter<"TotalStats"> | Date | string - linksDeleted?: Prisma.BigIntFilter<"TotalStats"> | bigint | number - commandResponses?: Prisma.BigIntFilter<"TotalStats"> | bigint | number - timesTriggered?: Prisma.BigIntFilter<"TotalStats"> | bigint | number -} - -export type TotalStatsOrderByWithRelationInput = { - createdAt?: Prisma.SortOrder - updatedAt?: Prisma.SortOrder - linksDeleted?: Prisma.SortOrder - commandResponses?: Prisma.SortOrder - timesTriggered?: Prisma.SortOrder -} - -export type TotalStatsWhereUniqueInput = Prisma.AtLeast<{ - createdAt?: Date | string - AND?: Prisma.TotalStatsWhereInput | Prisma.TotalStatsWhereInput[] - OR?: Prisma.TotalStatsWhereInput[] - NOT?: Prisma.TotalStatsWhereInput | Prisma.TotalStatsWhereInput[] - updatedAt?: Prisma.DateTimeFilter<"TotalStats"> | Date | string - linksDeleted?: Prisma.BigIntFilter<"TotalStats"> | bigint | number - commandResponses?: Prisma.BigIntFilter<"TotalStats"> | bigint | number - timesTriggered?: Prisma.BigIntFilter<"TotalStats"> | bigint | number -}, "createdAt"> - -export type TotalStatsOrderByWithAggregationInput = { - createdAt?: Prisma.SortOrder - updatedAt?: Prisma.SortOrder - linksDeleted?: Prisma.SortOrder - commandResponses?: Prisma.SortOrder - timesTriggered?: Prisma.SortOrder - _count?: Prisma.TotalStatsCountOrderByAggregateInput - _avg?: Prisma.TotalStatsAvgOrderByAggregateInput - _max?: Prisma.TotalStatsMaxOrderByAggregateInput - _min?: Prisma.TotalStatsMinOrderByAggregateInput - _sum?: Prisma.TotalStatsSumOrderByAggregateInput -} - -export type TotalStatsScalarWhereWithAggregatesInput = { - AND?: Prisma.TotalStatsScalarWhereWithAggregatesInput | Prisma.TotalStatsScalarWhereWithAggregatesInput[] - OR?: Prisma.TotalStatsScalarWhereWithAggregatesInput[] - NOT?: Prisma.TotalStatsScalarWhereWithAggregatesInput | Prisma.TotalStatsScalarWhereWithAggregatesInput[] - createdAt?: Prisma.DateTimeWithAggregatesFilter<"TotalStats"> | Date | string - updatedAt?: Prisma.DateTimeWithAggregatesFilter<"TotalStats"> | Date | string - linksDeleted?: Prisma.BigIntWithAggregatesFilter<"TotalStats"> | bigint | number - commandResponses?: Prisma.BigIntWithAggregatesFilter<"TotalStats"> | bigint | number - timesTriggered?: Prisma.BigIntWithAggregatesFilter<"TotalStats"> | bigint | number -} - -export type TotalStatsCreateInput = { - createdAt?: Date | string - updatedAt?: Date | string - linksDeleted?: bigint | number - commandResponses?: bigint | number - timesTriggered?: bigint | number -} - -export type TotalStatsUncheckedCreateInput = { - createdAt?: Date | string - updatedAt?: Date | string - linksDeleted?: bigint | number - commandResponses?: bigint | number - timesTriggered?: bigint | number -} - -export type TotalStatsUpdateInput = { - updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string - linksDeleted?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number - commandResponses?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number - timesTriggered?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number -} - -export type TotalStatsUncheckedUpdateInput = { - updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string - linksDeleted?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number - commandResponses?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number - timesTriggered?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number -} - -export type TotalStatsCreateManyInput = { - createdAt?: Date | string - updatedAt?: Date | string - linksDeleted?: bigint | number - commandResponses?: bigint | number - timesTriggered?: bigint | number -} - -export type TotalStatsUpdateManyMutationInput = { - updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string - linksDeleted?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number - commandResponses?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number - timesTriggered?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number -} - -export type TotalStatsUncheckedUpdateManyInput = { - updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string - linksDeleted?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number - commandResponses?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number - timesTriggered?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number -} - -export type TotalStatsCountOrderByAggregateInput = { - createdAt?: Prisma.SortOrder - updatedAt?: Prisma.SortOrder - linksDeleted?: Prisma.SortOrder - commandResponses?: Prisma.SortOrder - timesTriggered?: Prisma.SortOrder -} - -export type TotalStatsAvgOrderByAggregateInput = { - linksDeleted?: Prisma.SortOrder - commandResponses?: Prisma.SortOrder - timesTriggered?: Prisma.SortOrder -} - -export type TotalStatsMaxOrderByAggregateInput = { - createdAt?: Prisma.SortOrder - updatedAt?: Prisma.SortOrder - linksDeleted?: Prisma.SortOrder - commandResponses?: Prisma.SortOrder - timesTriggered?: Prisma.SortOrder -} - -export type TotalStatsMinOrderByAggregateInput = { - createdAt?: Prisma.SortOrder - updatedAt?: Prisma.SortOrder - linksDeleted?: Prisma.SortOrder - commandResponses?: Prisma.SortOrder - timesTriggered?: Prisma.SortOrder -} - -export type TotalStatsSumOrderByAggregateInput = { - linksDeleted?: Prisma.SortOrder - commandResponses?: Prisma.SortOrder - timesTriggered?: Prisma.SortOrder -} - - - -export type TotalStatsSelect = runtime.Types.Extensions.GetSelect<{ - createdAt?: boolean - updatedAt?: boolean - linksDeleted?: boolean - commandResponses?: boolean - timesTriggered?: boolean -}, ExtArgs["result"]["totalStats"]> - - - -export type TotalStatsSelectScalar = { - createdAt?: boolean - updatedAt?: boolean - linksDeleted?: boolean - commandResponses?: boolean - timesTriggered?: boolean -} - -export type TotalStatsOmit = runtime.Types.Extensions.GetOmit<"createdAt" | "updatedAt" | "linksDeleted" | "commandResponses" | "timesTriggered", ExtArgs["result"]["totalStats"]> - -export type $TotalStatsPayload = { - name: "TotalStats" - objects: {} - scalars: runtime.Types.Extensions.GetPayloadResult<{ - createdAt: Date - updatedAt: Date - linksDeleted: bigint - commandResponses: bigint - timesTriggered: bigint - }, ExtArgs["result"]["totalStats"]> - composites: {} -} - -export type TotalStatsGetPayload = runtime.Types.Result.GetResult - -export type TotalStatsCountArgs = - Omit & { - select?: TotalStatsCountAggregateInputType | true - } - -export interface TotalStatsDelegate { - [K: symbol]: { types: Prisma.TypeMap['model']['TotalStats'], meta: { name: 'TotalStats' } } - /** - * Find zero or one TotalStats that matches the filter. - * @param {TotalStatsFindUniqueArgs} args - Arguments to find a TotalStats - * @example - * // Get one TotalStats - * const totalStats = await prisma.totalStats.findUnique({ - * where: { - * // ... provide filter here - * } - * }) - */ - findUnique(args: Prisma.SelectSubset>): Prisma.Prisma__TotalStatsClient, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> - - /** - * Find one TotalStats that matches the filter or throw an error with `error.code='P2025'` - * if no matches were found. - * @param {TotalStatsFindUniqueOrThrowArgs} args - Arguments to find a TotalStats - * @example - * // Get one TotalStats - * const totalStats = await prisma.totalStats.findUniqueOrThrow({ - * where: { - * // ... provide filter here - * } - * }) - */ - findUniqueOrThrow(args: Prisma.SelectSubset>): Prisma.Prisma__TotalStatsClient, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> - - /** - * Find the first TotalStats 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 {TotalStatsFindFirstArgs} args - Arguments to find a TotalStats - * @example - * // Get one TotalStats - * const totalStats = await prisma.totalStats.findFirst({ - * where: { - * // ... provide filter here - * } - * }) - */ - findFirst(args?: Prisma.SelectSubset>): Prisma.Prisma__TotalStatsClient, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> - - /** - * Find the first TotalStats 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 {TotalStatsFindFirstOrThrowArgs} args - Arguments to find a TotalStats - * @example - * // Get one TotalStats - * const totalStats = await prisma.totalStats.findFirstOrThrow({ - * where: { - * // ... provide filter here - * } - * }) - */ - findFirstOrThrow(args?: Prisma.SelectSubset>): Prisma.Prisma__TotalStatsClient, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> - - /** - * Find zero or more TotalStats 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 {TotalStatsFindManyArgs} args - Arguments to filter and select certain fields only. - * @example - * // Get all TotalStats - * const totalStats = await prisma.totalStats.findMany() - * - * // Get first 10 TotalStats - * const totalStats = await prisma.totalStats.findMany({ take: 10 }) - * - * // Only select the `createdAt` - * const totalStatsWithCreatedAtOnly = await prisma.totalStats.findMany({ select: { createdAt: true } }) - * - */ - findMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>> - - /** - * Create a TotalStats. - * @param {TotalStatsCreateArgs} args - Arguments to create a TotalStats. - * @example - * // Create one TotalStats - * const TotalStats = await prisma.totalStats.create({ - * data: { - * // ... data to create a TotalStats - * } - * }) - * - */ - create(args: Prisma.SelectSubset>): Prisma.Prisma__TotalStatsClient, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> - - /** - * Create many TotalStats. - * @param {TotalStatsCreateManyArgs} args - Arguments to create many TotalStats. - * @example - * // Create many TotalStats - * const totalStats = await prisma.totalStats.createMany({ - * data: [ - * // ... provide data here - * ] - * }) - * - */ - createMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise - - /** - * Delete a TotalStats. - * @param {TotalStatsDeleteArgs} args - Arguments to delete one TotalStats. - * @example - * // Delete one TotalStats - * const TotalStats = await prisma.totalStats.delete({ - * where: { - * // ... filter to delete one TotalStats - * } - * }) - * - */ - delete(args: Prisma.SelectSubset>): Prisma.Prisma__TotalStatsClient, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> - - /** - * Update one TotalStats. - * @param {TotalStatsUpdateArgs} args - Arguments to update one TotalStats. - * @example - * // Update one TotalStats - * const totalStats = await prisma.totalStats.update({ - * where: { - * // ... provide filter here - * }, - * data: { - * // ... provide data here - * } - * }) - * - */ - update(args: Prisma.SelectSubset>): Prisma.Prisma__TotalStatsClient, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> - - /** - * Delete zero or more TotalStats. - * @param {TotalStatsDeleteManyArgs} args - Arguments to filter TotalStats to delete. - * @example - * // Delete a few TotalStats - * const { count } = await prisma.totalStats.deleteMany({ - * where: { - * // ... provide filter here - * } - * }) - * - */ - deleteMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise - - /** - * Update zero or more TotalStats. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {TotalStatsUpdateManyArgs} args - Arguments to update one or more rows. - * @example - * // Update many TotalStats - * const totalStats = await prisma.totalStats.updateMany({ - * where: { - * // ... provide filter here - * }, - * data: { - * // ... provide data here - * } - * }) - * - */ - updateMany(args: Prisma.SelectSubset>): Prisma.PrismaPromise - - /** - * Create or update one TotalStats. - * @param {TotalStatsUpsertArgs} args - Arguments to update or create a TotalStats. - * @example - * // Update or create a TotalStats - * const totalStats = await prisma.totalStats.upsert({ - * create: { - * // ... data to create a TotalStats - * }, - * update: { - * // ... in case it already exists, update - * }, - * where: { - * // ... the filter for the TotalStats we want to update - * } - * }) - */ - upsert(args: Prisma.SelectSubset>): Prisma.Prisma__TotalStatsClient, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> - - /** - * Find zero or more TotalStats that matches the filter. - * @param {TotalStatsFindRawArgs} args - Select which filters you would like to apply. - * @example - * const totalStats = await prisma.totalStats.findRaw({ - * filter: { age: { $gt: 25 } } - * }) - */ - findRaw(args?: Prisma.TotalStatsFindRawArgs): Prisma.PrismaPromise - - /** - * Perform aggregation operations on a TotalStats. - * @param {TotalStatsAggregateRawArgs} args - Select which aggregations you would like to apply. - * @example - * const totalStats = await prisma.totalStats.aggregateRaw({ - * pipeline: [ - * { $match: { status: "registered" } }, - * { $group: { _id: "$country", total: { $sum: 1 } } } - * ] - * }) - */ - aggregateRaw(args?: Prisma.TotalStatsAggregateRawArgs): Prisma.PrismaPromise - - - /** - * Count the number of TotalStats. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {TotalStatsCountArgs} args - Arguments to filter TotalStats to count. - * @example - * // Count the number of TotalStats - * const count = await prisma.totalStats.count({ - * where: { - * // ... the filter for the TotalStats we want to count - * } - * }) - **/ - count( - args?: Prisma.Subset, - ): Prisma.PrismaPromise< - T extends runtime.Types.Utils.Record<'select', any> - ? T['select'] extends true - ? number - : Prisma.GetScalarType - : number - > - - /** - * Allows you to perform aggregations operations on a TotalStats. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {TotalStatsAggregateArgs} args - Select which aggregations you would like to apply and on what fields. - * @example - * // Ordered by age ascending - * // Where email contains prisma.io - * // Limited to the 10 users - * const aggregations = await prisma.user.aggregate({ - * _avg: { - * age: true, - * }, - * where: { - * email: { - * contains: "prisma.io", - * }, - * }, - * orderBy: { - * age: "asc", - * }, - * take: 10, - * }) - **/ - aggregate(args: Prisma.Subset): Prisma.PrismaPromise> - - /** - * Group by TotalStats. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {TotalStatsGroupByArgs} 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 TotalStatsGroupByArgs, - HasSelectOrTake extends Prisma.Or< - Prisma.Extends<'skip', Prisma.Keys>, - Prisma.Extends<'take', Prisma.Keys> - >, - OrderByArg extends Prisma.True extends HasSelectOrTake - ? { orderBy: TotalStatsGroupByArgs['orderBy'] } - : { orderBy?: TotalStatsGroupByArgs['orderBy'] }, - OrderFields extends Prisma.ExcludeUnderscoreKeys>>, - ByFields extends Prisma.MaybeTupleToUnion, - ByValid extends Prisma.Has, - HavingFields extends Prisma.GetHavingFields, - HavingValid extends Prisma.Has, - ByEmpty extends T['by'] extends never[] ? Prisma.True : Prisma.False, - InputErrors extends ByEmpty extends Prisma.True - ? `Error: "by" must not be empty.` - : HavingValid extends Prisma.False - ? { - [P in HavingFields]: P extends ByFields - ? never - : P extends string - ? `Error: Field "${P}" used in "having" needs to be provided in "by".` - : [ - Error, - 'Field ', - P, - ` in "having" needs to be provided in "by"`, - ] - }[HavingFields] - : 'take' extends Prisma.Keys - ? 'orderBy' extends Prisma.Keys - ? ByValid extends Prisma.True - ? {} - : { - [P in OrderFields]: P extends ByFields - ? never - : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` - }[OrderFields] - : 'Error: If you provide "take", you also need to provide "orderBy"' - : 'skip' extends Prisma.Keys - ? 'orderBy' extends Prisma.Keys - ? ByValid extends Prisma.True - ? {} - : { - [P in OrderFields]: P extends ByFields - ? never - : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` - }[OrderFields] - : 'Error: If you provide "skip", you also need to provide "orderBy"' - : ByValid extends Prisma.True - ? {} - : { - [P in OrderFields]: P extends ByFields - ? never - : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` - }[OrderFields] - >(args: Prisma.SubsetIntersection & InputErrors): {} extends InputErrors ? GetTotalStatsGroupByPayload : Prisma.PrismaPromise -/** - * Fields of the TotalStats model - */ -readonly fields: TotalStatsFieldRefs; -} - -/** - * The delegate class that acts as a "Promise-like" for TotalStats. - * 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__TotalStatsClient extends Prisma.PrismaPromise { - readonly [Symbol.toStringTag]: "PrismaPromise" - /** - * Attaches callbacks for the resolution and/or rejection of the Promise. - * @param onfulfilled The callback to execute when the Promise is resolved. - * @param onrejected The callback to execute when the Promise is rejected. - * @returns A Promise for the completion of which ever callback is executed. - */ - then(onfulfilled?: ((value: T) => TResult1 | PromiseLike) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike) | undefined | null): runtime.Types.Utils.JsPromise - /** - * Attaches a callback for only the rejection of the Promise. - * @param onrejected The callback to execute when the Promise is rejected. - * @returns A Promise for the completion of the callback. - */ - catch(onrejected?: ((reason: any) => TResult | PromiseLike) | undefined | null): runtime.Types.Utils.JsPromise - /** - * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The - * resolved value cannot be modified from the callback. - * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected). - * @returns A Promise for the completion of the callback. - */ - finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise -} - - - - -/** - * Fields of the TotalStats model - */ -export interface TotalStatsFieldRefs { - readonly createdAt: Prisma.FieldRef<"TotalStats", 'DateTime'> - readonly updatedAt: Prisma.FieldRef<"TotalStats", 'DateTime'> - readonly linksDeleted: Prisma.FieldRef<"TotalStats", 'BigInt'> - readonly commandResponses: Prisma.FieldRef<"TotalStats", 'BigInt'> - readonly timesTriggered: Prisma.FieldRef<"TotalStats", 'BigInt'> -} - - -// Custom InputTypes -/** - * TotalStats findUnique - */ -export type TotalStatsFindUniqueArgs = { - /** - * Select specific fields to fetch from the TotalStats - */ - select?: Prisma.TotalStatsSelect | null - /** - * Omit specific fields from the TotalStats - */ - omit?: Prisma.TotalStatsOmit | null - /** - * Filter, which TotalStats to fetch. - */ - where: Prisma.TotalStatsWhereUniqueInput -} - -/** - * TotalStats findUniqueOrThrow - */ -export type TotalStatsFindUniqueOrThrowArgs = { - /** - * Select specific fields to fetch from the TotalStats - */ - select?: Prisma.TotalStatsSelect | null - /** - * Omit specific fields from the TotalStats - */ - omit?: Prisma.TotalStatsOmit | null - /** - * Filter, which TotalStats to fetch. - */ - where: Prisma.TotalStatsWhereUniqueInput -} - -/** - * TotalStats findFirst - */ -export type TotalStatsFindFirstArgs = { - /** - * Select specific fields to fetch from the TotalStats - */ - select?: Prisma.TotalStatsSelect | null - /** - * Omit specific fields from the TotalStats - */ - omit?: Prisma.TotalStatsOmit | null - /** - * Filter, which TotalStats to fetch. - */ - where?: Prisma.TotalStatsWhereInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} - * - * Determine the order of TotalStats to fetch. - */ - orderBy?: Prisma.TotalStatsOrderByWithRelationInput | Prisma.TotalStatsOrderByWithRelationInput[] - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} - * - * Sets the position for searching for TotalStats. - */ - cursor?: Prisma.TotalStatsWhereUniqueInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Take `±n` TotalStats 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` TotalStats. - */ - skip?: number - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} - * - * Filter by unique combinations of TotalStats. - */ - distinct?: Prisma.TotalStatsScalarFieldEnum | Prisma.TotalStatsScalarFieldEnum[] -} - -/** - * TotalStats findFirstOrThrow - */ -export type TotalStatsFindFirstOrThrowArgs = { - /** - * Select specific fields to fetch from the TotalStats - */ - select?: Prisma.TotalStatsSelect | null - /** - * Omit specific fields from the TotalStats - */ - omit?: Prisma.TotalStatsOmit | null - /** - * Filter, which TotalStats to fetch. - */ - where?: Prisma.TotalStatsWhereInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} - * - * Determine the order of TotalStats to fetch. - */ - orderBy?: Prisma.TotalStatsOrderByWithRelationInput | Prisma.TotalStatsOrderByWithRelationInput[] - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} - * - * Sets the position for searching for TotalStats. - */ - cursor?: Prisma.TotalStatsWhereUniqueInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Take `±n` TotalStats 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` TotalStats. - */ - skip?: number - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} - * - * Filter by unique combinations of TotalStats. - */ - distinct?: Prisma.TotalStatsScalarFieldEnum | Prisma.TotalStatsScalarFieldEnum[] -} - -/** - * TotalStats findMany - */ -export type TotalStatsFindManyArgs = { - /** - * Select specific fields to fetch from the TotalStats - */ - select?: Prisma.TotalStatsSelect | null - /** - * Omit specific fields from the TotalStats - */ - omit?: Prisma.TotalStatsOmit | null - /** - * Filter, which TotalStats to fetch. - */ - where?: Prisma.TotalStatsWhereInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} - * - * Determine the order of TotalStats to fetch. - */ - orderBy?: Prisma.TotalStatsOrderByWithRelationInput | Prisma.TotalStatsOrderByWithRelationInput[] - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} - * - * Sets the position for listing TotalStats. - */ - cursor?: Prisma.TotalStatsWhereUniqueInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Take `±n` TotalStats 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` TotalStats. - */ - skip?: number - distinct?: Prisma.TotalStatsScalarFieldEnum | Prisma.TotalStatsScalarFieldEnum[] -} - -/** - * TotalStats create - */ -export type TotalStatsCreateArgs = { - /** - * Select specific fields to fetch from the TotalStats - */ - select?: Prisma.TotalStatsSelect | null - /** - * Omit specific fields from the TotalStats - */ - omit?: Prisma.TotalStatsOmit | null - /** - * The data needed to create a TotalStats. - */ - data?: Prisma.XOR -} - -/** - * TotalStats createMany - */ -export type TotalStatsCreateManyArgs = { - /** - * The data used to create many TotalStats. - */ - data: Prisma.TotalStatsCreateManyInput | Prisma.TotalStatsCreateManyInput[] -} - -/** - * TotalStats update - */ -export type TotalStatsUpdateArgs = { - /** - * Select specific fields to fetch from the TotalStats - */ - select?: Prisma.TotalStatsSelect | null - /** - * Omit specific fields from the TotalStats - */ - omit?: Prisma.TotalStatsOmit | null - /** - * The data needed to update a TotalStats. - */ - data: Prisma.XOR - /** - * Choose, which TotalStats to update. - */ - where: Prisma.TotalStatsWhereUniqueInput -} - -/** - * TotalStats updateMany - */ -export type TotalStatsUpdateManyArgs = { - /** - * The data used to update TotalStats. - */ - data: Prisma.XOR - /** - * Filter which TotalStats to update - */ - where?: Prisma.TotalStatsWhereInput - /** - * Limit how many TotalStats to update. - */ - limit?: number -} - -/** - * TotalStats upsert - */ -export type TotalStatsUpsertArgs = { - /** - * Select specific fields to fetch from the TotalStats - */ - select?: Prisma.TotalStatsSelect | null - /** - * Omit specific fields from the TotalStats - */ - omit?: Prisma.TotalStatsOmit | null - /** - * The filter to search for the TotalStats to update in case it exists. - */ - where: Prisma.TotalStatsWhereUniqueInput - /** - * In case the TotalStats found by the `where` argument doesn't exist, create a new TotalStats with this data. - */ - create: Prisma.XOR - /** - * In case the TotalStats was found with the provided `where` argument, update it with this data. - */ - update: Prisma.XOR -} - -/** - * TotalStats delete - */ -export type TotalStatsDeleteArgs = { - /** - * Select specific fields to fetch from the TotalStats - */ - select?: Prisma.TotalStatsSelect | null - /** - * Omit specific fields from the TotalStats - */ - omit?: Prisma.TotalStatsOmit | null - /** - * Filter which TotalStats to delete. - */ - where: Prisma.TotalStatsWhereUniqueInput -} - -/** - * TotalStats deleteMany - */ -export type TotalStatsDeleteManyArgs = { - /** - * Filter which TotalStats to delete - */ - where?: Prisma.TotalStatsWhereInput - /** - * Limit how many TotalStats to delete. - */ - limit?: number -} - -/** - * TotalStats findRaw - */ -export type TotalStatsFindRawArgs = { - /** - * The query predicate filter. If unspecified, then all documents in the collection will match the predicate. ${@link https://docs.mongodb.com/manual/reference/operator/query MongoDB Docs}. - */ - filter?: runtime.InputJsonValue - /** - * Additional options to pass to the `find` command ${@link https://docs.mongodb.com/manual/reference/command/find/#command-fields MongoDB Docs}. - */ - options?: runtime.InputJsonValue -} - -/** - * TotalStats aggregateRaw - */ -export type TotalStatsAggregateRawArgs = { - /** - * An array of aggregation stages to process and transform the document stream via the aggregation pipeline. ${@link https://docs.mongodb.com/manual/reference/operator/aggregation-pipeline MongoDB Docs}. - */ - pipeline?: runtime.InputJsonValue[] - /** - * Additional options to pass to the `aggregate` command ${@link https://docs.mongodb.com/manual/reference/command/aggregate/#command-fields MongoDB Docs}. - */ - options?: runtime.InputJsonValue -} - -/** - * TotalStats without action - */ -export type TotalStatsDefaultArgs = { - /** - * Select specific fields to fetch from the TotalStats - */ - select?: Prisma.TotalStatsSelect | null - /** - * Omit specific fields from the TotalStats - */ - omit?: Prisma.TotalStatsOmit | null -}